"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,2486,4867,5343,7248],{84867:function(t,n,e){e.r(n),e.d(n,{__assign:function(){return u},__asyncDelegator:function(){return O},__asyncGenerator:function(){return m},__asyncValues:function(){return g},__await:function(){return w},__awaiter:function(){return l},__classPrivateFieldGet:function(){return E},__classPrivateFieldIn:function(){return k},__classPrivateFieldSet:function(){return T},__createBinding:function(){return p},__decorate:function(){return i},__exportStar:function(){return y},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return x},__importStar:function(){return S},__makeTemplateObject:function(){return j},__metadata:function(){return f},__param:function(){return c},__read:function(){return _},__rest:function(){return a},__spread:function(){return b},__spreadArray:function(){return v},__spreadArrays:function(){return d},__values:function(){return h}});var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(t,n)};function o(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var u=function(){return u=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},u.apply(this,arguments)};function a(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function i(t,n,e,r){var o,u=arguments.length,a=u<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(u<3?o(a):u>3?o(n,e,a):o(n,e))||a);return u>3&&a&&Object.defineProperty(n,e,a),a}function c(t,n){return function(e,r){n(e,r,t)}}function f(t,n){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,n)}function l(t,n,e,r){return new(e||(e=Promise))((function(o,u){function a(t){try{c(r.next(t))}catch(n){u(n)}}function i(t){try{c(r.throw(t))}catch(n){u(n)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,i)}c((r=r.apply(t,n||[])).next())}))}function s(t,n){var e,r,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(t,a)}catch(i){u=[6,i],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var p=Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]};function y(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||p(n,t,e)}function h(t){var n="function"===typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,n){var e="function"===typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,u=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=u.next()).done;)a.push(r.value)}catch(i){o={error:i}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(o)throw o.error}}return a}function b(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(_(arguments[n]));return t}function d(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var u=arguments[n],a=0,i=u.length;a<i;a++,o++)r[o]=u[a];return r}function v(t,n,e){if(e||2===arguments.length)for(var r,o=0,u=n.length;o<u;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function m(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),u=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){u.push([t,n,e,r])>1||i(t,n)}))})}function i(t,n){try{(e=o[t](n)).value instanceof w?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(r){l(u[0][3],r)}var e}function c(t){i("next",t)}function f(t){i("throw",t)}function l(t,n){t(n),u.shift(),u.length&&i(u[0][0],u[0][1])}}function O(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:w(t[r](n)),done:"return"===r}:o?o(n):n}:o}}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=h(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function j(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}var P=Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n};function S(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&p(n,t,e);return P(n,t),n}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,n,e,r){if("a"===e&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof n?t!==n||!r:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(t):r?r.value:n.get(t)}function T(t,n,e,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 n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,e):o?o.value=e:n.set(t,e),e}function k(t,n){if(null===n||"object"!==typeof n&&"function"!==typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?n===t:t.has(n)}}}]);
//# sourceMappingURL=105.7cc7cc58.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[1179,3560],{63560:function(e,t,r){r.r(t),r.d(t,{createSharedReactContext:function(){return p}});var n=r(80322),a={};var c,u,i=(u={},(c="@1js/create-shared-react-context")in a||(a[c]=u),{get:function(){return a[c]},set:function(e){return a[c]=e}});function p(e,t){var r=i.get();return r[t]||(r[t]=n.createContext(e))}}}]);
//# sourceMappingURL=1179.8e2e40fd.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,1396,2486,4867,5343,7248,9015],{59015:function(t,r,n){n.r(r),n.d(r,{memoizeSelector:function(){return i}});var e=n(84867),o=Object.keys,u=function(t,r){if(!t||!r||t===r)return t===r;var n=o(t);return n.length===o(r).length&&n.every((function(n){return r.hasOwnProperty(n)&&t[n]===r[n]}))},i=function(t,r){var n=function(t){var r=[];return function(n){var o=void 0;if(r.forEach((function(t){var r=(0,e.__read)(t,2),i=r[0],a=r[1];return u(i,n)&&(o=a)})),o)return o;var i=t(n);return r.unshift([n,i]),r=r.slice(0,25),i}}(r),o=void 0;return function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var a=n(t.apply(void 0,(0,e.__spreadArray)([],(0,e.__read)(r),!1)));if(void 0!==o&&o!==a)if(Array.isArray(a)&&Array.isArray(o)){var c=o;if(a.length===c.length&&a.every((function(t,r){return t===c[r]})))return o}else if("object"===typeof a&&"object"===typeof o&&u(o,a))return o;return o=a,a}}},84867:function(t,r,n){n.r(r),n.d(r,{__assign:function(){return u},__asyncDelegator:function(){return g},__asyncGenerator:function(){return m},__asyncValues:function(){return O},__await:function(){return w},__awaiter:function(){return l},__classPrivateFieldGet:function(){return E},__classPrivateFieldIn:function(){return A},__classPrivateFieldSet:function(){return T},__createBinding:function(){return y},__decorate:function(){return a},__exportStar:function(){return p},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return x},__importStar:function(){return S},__makeTemplateObject:function(){return j},__metadata:function(){return f},__param:function(){return c},__read:function(){return v},__rest:function(){return i},__spread:function(){return _},__spreadArray:function(){return b},__spreadArrays:function(){return d},__values:function(){return h}});var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},e(t,r)};function o(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var u=function(){return u=Object.assign||function(t){for(var r,n=1,e=arguments.length;n<e;n++)for(var o in r=arguments[n])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},u.apply(this,arguments)};function i(t,r){var n={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(n[e]=t[e]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(n[e[o]]=t[e[o]])}return n}function a(t,r,n,e){var o,u=arguments.length,i=u<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,n):e;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(t,r,n,e);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(i=(u<3?o(i):u>3?o(r,n,i):o(r,n))||i);return u>3&&i&&Object.defineProperty(r,n,i),i}function c(t,r){return function(n,e){r(n,e,t)}}function f(t,r){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,r)}function l(t,r,n,e){return new(n||(n=Promise))((function(o,u){function i(t){try{c(e.next(t))}catch(r){u(r)}}function a(t){try{c(e.throw(t))}catch(r){u(r)}}function c(t){var r;t.done?o(t.value):(r=t.value,r instanceof n?r:new n((function(t){t(r)}))).then(i,a)}c((e=e.apply(t,r||[])).next())}))}function s(t,r){var n,e,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,e&&(o=2&u[0]?e.return:u[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,u[1])).done)return o;switch(e=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,e=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){i=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){i.label=u[1];break}if(6===u[0]&&i.label<o[1]){i.label=o[1],o=u;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(u);break}o[2]&&i.ops.pop(),i.trys.pop();continue}u=r.call(t,i)}catch(a){u=[6,a],e=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var y=Object.create?function(t,r,n,e){void 0===e&&(e=n);var o=Object.getOwnPropertyDescriptor(r,n);o&&!("get"in o?!r.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return r[n]}}),Object.defineProperty(t,e,o)}:function(t,r,n,e){void 0===e&&(e=n),t[e]=r[n]};function p(t,r){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||y(r,t,n)}function h(t){var r="function"===typeof Symbol&&Symbol.iterator,n=r&&t[r],e=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,r){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var e,o,u=n.call(t),i=[];try{for(;(void 0===r||r-- >0)&&!(e=u.next()).done;)i.push(e.value)}catch(a){o={error:a}}finally{try{e&&!e.done&&(n=u.return)&&n.call(u)}finally{if(o)throw o.error}}return i}function _(){for(var t=[],r=0;r<arguments.length;r++)t=t.concat(v(arguments[r]));return t}function d(){for(var t=0,r=0,n=arguments.length;r<n;r++)t+=arguments[r].length;var e=Array(t),o=0;for(r=0;r<n;r++)for(var u=arguments[r],i=0,a=u.length;i<a;i++,o++)e[o]=u[i];return e}function b(t,r,n){if(n||2===arguments.length)for(var e,o=0,u=r.length;o<u;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return t.concat(e||Array.prototype.slice.call(r))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function m(t,r,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,o=n.apply(t,r||[]),u=[];return e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e;function i(t){o[t]&&(e[t]=function(r){return new Promise((function(n,e){u.push([t,r,n,e])>1||a(t,r)}))})}function a(t,r){try{(n=o[t](r)).value instanceof w?Promise.resolve(n.value.v).then(c,f):l(u[0][2],n)}catch(e){l(u[0][3],e)}var n}function c(t){a("next",t)}function f(t){a("throw",t)}function l(t,r){t(r),u.shift(),u.length&&a(u[0][0],u[0][1])}}function g(t){var r,n;return r={},e("next"),e("throw",(function(t){throw t})),e("return"),r[Symbol.iterator]=function(){return this},r;function e(e,o){r[e]=t[e]?function(r){return(n=!n)?{value:w(t[e](r)),done:"return"===e}:o?o(r):r}:o}}function O(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,n=t[Symbol.asyncIterator];return n?n.call(t):(t=h(t),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r);function e(n){r[n]=t[n]&&function(r){return new Promise((function(e,o){(function(t,r,n,e){Promise.resolve(e).then((function(r){t({value:r,done:n})}),r)})(e,o,(r=t[n](r)).done,r.value)}))}}}function j(t,r){return Object.defineProperty?Object.defineProperty(t,"raw",{value:r}):t.raw=r,t}var P=Object.create?function(t,r){Object.defineProperty(t,"default",{enumerable:!0,value:r})}:function(t,r){t.default=r};function S(t){if(t&&t.__esModule)return t;var r={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&y(r,t,n);return P(r,t),r}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,r,n,e){if("a"===n&&!e)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof r?t!==r||!e:!r.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?e:"a"===n?e.call(t):e?e.value:r.get(t)}function T(t,r,n,e,o){if("m"===e)throw new TypeError("Private method is not writable");if("a"===e&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof r?t!==r||!o:!r.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===e?o.call(t,n):o?o.value=n:r.set(t,n),n}function A(t,r){if(null===r||"object"!==typeof r&&"function"!==typeof r)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?r===t:t.has(r)}}}]);
//# sourceMappingURL=1396.60905de3.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[1707],{21707:function(e,t,o){o.r(t),o.d(t,{PhotoPicker:function(){return Ot},PhotoPickerStore:function(){return $},StandalonePhotoPicker:function(){return Gt},initIcons:function(){return Wt}});var n=o(34561),a=o(80322),i=o(97012),r=o(46548);function l(e,t){try{return t?e.toDataURL():e.toDataURL("image/jpeg")}catch(o){return console.error(o),""}}var s={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]},c=256,u="white",d="rgba(0, 120, 215, 0.5)",p=function(e){return e*Math.PI/180};function m(e,t,o,n,a,i){e.save(),e.translate(t/2,t/2),e.transform.apply(e,s[n]),e.rotate(p(o)),e.translate(-t/2,-t/2),i(e,a),e.restore()}function g(e,t,o,n){var a=p(n),i=s[o],r=i[0],l=i[2];return{x:(t=(e=(e-=128)*r+(t-=128)*i[1])*l+t*i[3])*Math.sin(a)+e*Math.cos(a)+128,y:t*Math.cos(a)-e*Math.sin(a)+128}}function h(e,t,o){return Math.min(o,Math.max(e,t))}var f="photoPickerFirstFocusableSelector",v="PhotoPicker";function b(e,t){void 0===t&&(t=null);var o="".concat(v).concat(e,"Action");return(0,n.makeActionCreator)(o,{featureName:v,exportOptions:t?{exportType:"UserInteraction",exportName:t}:void 0})}var S=b("UploadedPhotoTooSmall"),y=b("CancelButtonClicked","PhotoPickerCancelButtonClicked"),x=b("CloseButtonClicked","PhotoPickerCloseButtonClickedAction"),w=b("DoneButtonClicked","PhotoPickerDoneButtonClickedAction"),C=b("UploadNewPhotoButtonClicked","PhotoPickerUploadNewPhotoButtonClickedAction"),I=b("ImageEditPaneDismissed","PhotoPickerImageEditPaneDismissed"),k=b("ImageUpdated"),P=b("LoadedCurrentImage"),E=b("LoadedEmptyImage"),A=b("LoadedNewImage"),R=b("SomethingWentWrong"),L=b("UploadStarted","PhotoPickerApplyButtonClicked"),U=b("UploadProgress"),N=b("UploadSucceeded"),T=b("WarningDismissed"),_=b("Keyboard"),D=b("ImageRotate"),B=b("Zoom"),O=b("ImageLoaded"),M=b("DragStarted"),W=b("DragProgress"),z=b("ResetEditCanvas"),F=b("EmptyImageRendered"),V=b("SetImageUpdated"),H=b("PhotoListImageSelected"),j=b("NewImageUploaded"),G=b("PhotoListLoadPhotos");var Z=o(15800),K=function(){return K=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},K.apply(this,arguments)},Y=function(e,t,o){if(o||2===arguments.length)for(var n,a=0,i=t.length;a<i;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))},q={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},X={photoPicker:{dataUrl:void 0,currentImageDataUrl:void 0,status:"READY",warning:void 0,show:!1,isUpdated:!1,uploadStart:0,uploadDuration:0,isUploadedPhotoTooSmall:!1},editCanvas:K(K({},q),{originalCanvasState:q}),photoList:{selectedIndex:0,imageUrls:[]}},J=(0,i.HY)({photoPicker:(0,n.buildReducer)().handleAction(y,Q).handleAction(x,Q).handleAction(w,Q).handleAction(I,Q).handleAction(T,(function(e){return(0,Z.updateWith)(e,{status:"READY",warning:void 0})})).handleAction(P,(function(e,t){var o=t.payload.dataUrl;return(0,Z.updateWith)(e,{dataUrl:e.dataUrl||o,currentImageDataUrl:e.currentImageDataUrl||o,isUpdated:!!t.payload.isSuggestedPhoto||!!t.payload.isPhotoListPresent})})).handleAction(A,(function(e,t){return(0,Z.updateWith)(e,{dataUrl:t.payload.dataUrl,status:"READY",warning:void 0,isUpdated:t.payload.dataUrl!==e.currentImageDataUrl||!!t.payload.isPhotoListPresent,fileName:t.payload.fileName})})).handleAction(E,(function(e,t){return(0,Z.updateWith)(e,{dataUrl:"",status:"READY",warning:void 0,isUpdated:!!e.currentImageDataUrl||!!t.payload.isPhotoListPresent,fileName:void 0})})).handleAction(L,(function(e,t){return(0,Z.updateWith)(e,{status:"IN_PROGRESS",warning:void 0,uploadStart:t.payload.now,uploadDuration:0})})).handleAction(U,(function(e,t){return"IN_PROGRESS"===e.status?(0,Z.updateWith)(e,{uploadDuration:t.payload.now-e.uploadStart}):e})).handleAction(N,(function(e,t){return(0,Z.updateWith)(e,{currentImageDataUrl:t.payload.dataUrl,status:"SUCCESS",warning:void 0})})).handleAction(R,(function(e,t){return(0,Z.updateWith)(e,{status:"SOMETHING_WENT_WRONG",warning:t.payload.warning})})).handleAction(k,(function(e){return(0,Z.updateWith)(e,{isUpdated:!0})})).handleAction(S,(function(e,t){return(0,Z.updateWith)(e,t.payload)})).done(X.photoPicker),editCanvas:(0,n.buildReducer)().handleAction(z,ee).handleAction(_,(function(e,t){return(0,Z.updateWith)(e,t.payload)})).handleAction(B,(function(e,t){return(0,Z.updateWith)(e,t.payload)})).handleAction(O,(function(e,t){return(0,Z.updateWith)(e,K(K({},t.payload),{originalCanvasState:e.originalCanvasState.initialRender?(0,Z.updateWith)(e.originalCanvasState,t.payload):e.originalCanvasState}))})).handleAction(M,(function(e,t){return(0,Z.updateWith)(e,t.payload)})).handleAction(W,(function(e,t){return(0,Z.updateWith)(e,t.payload)})).handleAction(V,(function(e){return(0,Z.updateWith)(e,{imageUpdated:!0})})).handleAction(F,(function(e){return(0,Z.updateWith)(e,{initialRender:!1})})).handleAction(y,ee).handleAction(x,ee).handleAction(w,ee).handleAction(I,ee).handleAction(D,(function(e,t){return(0,Z.updateWith)(e,t.payload)})).done(X.editCanvas),photoList:(0,n.buildReducer)().handleAction(H,(function(e,t){return(0,Z.updateWith)(e,t.payload)})).handleAction(E,(function(e){return(0,Z.updateWith)(e,{selectedIndex:-1})})).handleAction(j,(function(e,t){return(0,Z.updateWith)(e,{selectedIndex:t.payload.selectedIndex,imageUrls:Y([t.payload.newImageUrl],e.imageUrls,!0)})})).handleAction(G,(function(e,t){return(0,Z.updateWith)(e,t.payload)})).handleAction(y,te).handleAction(x,te).handleAction(w,te).handleAction(I,te).done(X.photoList)}),$=(0,n.makeFunctionalStore)("PhotoPickerStore",J,(function(e){return{getPhotoPickerState:function(){return e.photoPicker},getEditCanvasState:function(){return e.editCanvas},getPhotoListState:function(){return e.photoList}}}));function Q(e){return(0,Z.updateWith)(e,{dataUrl:void 0,currentImageDataUrl:void 0,status:"READY",warning:void 0,isUpdated:!1,fileName:void 0})}function ee(e){return(0,Z.updateWith)(e,X.editCanvas)}function te(e){return(0,Z.updateWith)(e,X.photoList)}var oe=["absoluteScale","imageRotationAngle","xpos","ypos"],ne=o(29178),ae=o(77557),ie=o(84496),re=o(47751),le=o(93258),se=o(65808),ce=o(7354),ue=(0,se.J9)((function(){return(0,ce.l8)({closeButton:{float:"right",marginTop:-20,marginRight:-20},removeButton:{marginLeft:"auto"}})})),de=function(e){var t=e.onClick,o=e.dataLogName,n=e.ariaLabel,i=e.title,r=ue();switch(e.buttonType){case"Primary":return a.createElement(ne.j,{disabled:e.disabled,onClick:t,"data-log-name":o,ariaLabel:n,title:i,componentRef:e.buttonRef},e.buttonLabel);case"Action":return a.createElement(ae.r,{className:r.removeButton,iconProps:{iconName:e.iconName},onClick:t,"data-log-name":o,disabled:e.disabled,title:i},e.buttonLabel);case"Icon":return a.createElement(ie.S,{content:i,styles:{root:r.closeButton}},a.createElement(re.K,{iconProps:{iconName:e.iconName},onClick:t,"data-log-name":o,ariaLabel:n}));case"Default":return a.createElement(le.Y,{onClick:t,"data-log-name":o,ariaLabel:n,title:i},e.buttonLabel);default:return e}},pe=o(45589),me=o(56758),ge=o(88714),he=(0,se.J9)((function(e,t){return(0,ce.l8)({root:(0,ce.Zq)({margin:"7px 0",color:e.palette.neutralPrimary},null===t||void 0===t?void 0:t.root),text:(0,ce.Zq)(e.fonts.medium,null===t||void 0===t?void 0:t.text)})})),fe=function(e){var t=he((0,pe.useTheme)(),e.styles),o="UNKNOWN"===e.warning,n="IMAGE_TOO_SMALL_ERROR"===e.warning,i=o||n?me.H.error:me.H.warning,r=o?void 0:e.onDismiss;return a.createElement(ge.n,{className:t.root,messageBarType:i,onDismiss:r,isMultiline:!0,"aria-live":"polite",styles:t,dismissButtonAriaLabel:e.dismissButtonAriaLabel},e.warningText)},ve=o(65086),be=o(28483),Se=(0,se.J9)((function(e,t){var o=e.palette;return(0,ce.l8)({modal:(0,ce.Zq)({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:o.themePrimary},"#lpc-photo-picker .ms-Button--icon &active":{color:o.themeDarker},"#lpc-photo-picker .ms-Button--primary &:not([disabled])":{backgroundColor:o.themePrimary},"#lpc-photo-picker .ms-Button--primary &:hover":{backgroundColor:o.themeDarkAlt},"#lpc-photo-picker .ms-Button--primary &:active":{backgroundColor:o.themeDark},"#lpc-photo-picker .ms-Button--default .ms-Button-label":{color:o.neutralDark},"#lpc-photo-picker .ms-Button--default &:hover":{backgroundColor:o.neutralLight},"#lpc-photo-picker .ms-Button--default &:active":{backgroundColor:o.neutralTertiaryAlt}}},null===t||void 0===t?void 0:t.modal),picker:(0,ce.Zq)(e.fonts.medium,{padding:32,overflow:"hidden"},null===t||void 0===t?void 0:t.root),header:(0,ce.Zq)(e.fonts.xLarge,{display:"flex",alignContent:"space-between",color:o.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"}})})),ye=function(e){var t=e.hideTitleText,o=e.isComponentInline,n=e.titleText,i=e.closeIcon,r=e.infoBar,l=e.uploadPhoto,s=e.editCanvas,c=e.applyButton,u=e.cancelButton,d=e.removeButton,p=e.onDismiss,m=e.focusTrapRef,g=e.hideEndActions,h=e.imageEditorDescription,v=e.customUploadButton,b=e.photoList,S=e.styles,y=Se((0,pe.useTheme)(),S),x=a.createElement(a.Fragment,null,!o&&i,!t&&a.createElement("div",{className:y.header,id:"dialogTitle",role:"heading","aria-level":1},n),r,l,a.createElement("div",{className:y.editCanvasAndPhotoListContainer},s,b),h,!g&&a.createElement("div",{className:y.endActions},c,u,d),v);return a.createElement(a.Fragment,null,o?a.createElement("div",{id:"lpc-photo-picker",className:y.picker},x):a.createElement(ve.a,{className:"lpc_nested_popup",containerClassName:y.modal,isOpen:!0,onDismiss:p,titleAriaId:"dialogTitle"},a.createElement(be.Y,{id:"lpc-photo-picker",className:y.picker,componentRef:m,firstFocusableSelector:f},x)))},xe=(0,se.J9)((function(e,t){return(0,ce.l8)({fileInput:{display:"none"},button:(0,ce.Zq)({color:e.palette.themePrimary,padding:0,margin:"0 0 12px -4px"},null===t||void 0===t?void 0:t.button)})})),we=function(e){var t=xe((0,pe.useTheme)(),e.styles),o=a.useRef(null);return a.createElement(a.Fragment,null,a.createElement("input",{role:"button",className:t.fileInput,type:"file",ref:o,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/*"}),a.createElement(ae.r,{componentRef:e.buttonRef,className:"".concat(t.button," ").concat(f),iconProps:{iconName:"Add"},onClick:function(){var t;null===(t=o.current)||void 0===t||t.click(),e.onUploadNewPhoto()}},e.uploadText))},Ce=o(89575),Ie=o(16758),ke=o(54121),Pe=o(51027),Ee=o(16711),Ae=o(12300);function Re(e){var t=new DataView(function(e){for(var t=e.replace(/^data\:([^\;]+)\;base64,/i,""),o=atob(t),n=o.length,a=new ArrayBuffer(n),i=new Uint8Array(a),r=0;r<n;r++)i[r]=o.charCodeAt(r);return a}(e));if(65496!==t.getUint16(0,!1))return 1;for(var o,n=t.byteLength,a=2;a<n;){var i=t.getUint16(a,!1);if(a+=2,65505===i){if(1165519206!==t.getUint32(a+=2,!1))break;var r=18761===t.getUint16(a+=6,!1);a+=t.getUint32(a+4,r);var l=t.getUint16(a,r);a+=2;for(var s=0;s<l;s++)if(274===t.getUint16(a+12*s,r))return(o=t.getUint16(a+12*s+8,r))<1||o>8?1:o}else{if(65280!==(65280&i))break;a+=t.getUint16(a,!1)}}return 1}var Le=o(75425),Ue=o(84867),Ne=o(13578),Te=o(42682),_e=o(52922),De=o(30749),Be=o(60278),Oe=o(66848),Me=o(26858),We=o(64710),ze=o(33347),Fe=(0,Me.Z)(),Ve=function(e){return function(t){var o;return(o={})[e]="".concat(t,"%"),o}},He=function(e,t,o){return o===t?0:(e-t)/(o-t)*100},je=function(e,t){var o=e.step,n=void 0===o?1:o,i=e.className,r=e.disabled,l=void 0!==r&&r,s=e.label,c=e.max,u=void 0===c?10:c,d=e.min,p=void 0===d?0:d,m=e.showValue,g=void 0===m||m,h=e.buttonProps,f=void 0===h?{}:h,v=e.vertical,b=void 0!==v&&v,S=e.snapToStep,y=e.valueFormat,x=e.styles,w=e.theme,C=e.originFromZero,I=e["aria-labelledby"],k=e.ariaLabel,P=void 0===k?e["aria-label"]:k,E=e.ranged,A=e.onChange,R=e.onChanged,L=a.useRef([]),U=(0,_e.j)(),N=U.setTimeout,T=U.clearTimeout,_=a.useRef(null),D=(0,De.k)(e.value,e.defaultValue,(function(e,t){return null===A||void 0===A?void 0:A(t,E?[H.latestLowerValue,t]:void 0,e)})),B=D[0],O=D[1],M=(0,De.k)(e.lowerValue,e.defaultLowerValue,(function(e,t){return null===A||void 0===A?void 0:A(H.latestValue,[t,H.latestValue],e)})),W=M[0],z=M[1],F=Math.max(p,Math.min(u,B||0)),V=Math.max(p,Math.min(F,W||0)),H=(0,Be.d)({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:F,latestLowerValue:V});H.latestValue=F,H.latestLowerValue=V;var j=(0,Oe.B)("Slider",e.id||(null===f||void 0===f?void 0:f.id)),G=Fe(x,{className:i,disabled:l,vertical:b,showTransitions:!S&&!H.isBetweenSteps,showValue:g,ranged:E,theme:w}),Z=(u-p)/n,K=function(){T(H.onKeyDownTimer),H.onKeyDownTimer=-1},Y=function(e){K(),R&&(H.onKeyDownTimer=N((function(){R(e,H.latestValue,E?[H.latestLowerValue,H.latestValue]:void 0)}),1e3))},q=function(t){var o=e.ariaValueText;if(void 0!==t)return o?o(t):t.toString()},X=function(e,t,o){t=Math.min(u,Math.max(p,t)),o=void 0!==o?Math.min(u,Math.max(p,o)):void 0;var a=0;if(isFinite(n))for(;Math.round(n*Math.pow(10,a))/Math.pow(10,a)!==n;)a++;var i=parseFloat(t.toFixed(a));H.isBetweenSteps=void 0!==o&&o!==i,E?H.isAdjustingLowerValue&&(C?i<=0:i<=H.latestValue)?z(i,e):!H.isAdjustingLowerValue&&(C?i>=0:i>=H.latestLowerValue)&&O(i,e):O(i,e)},J=function(e,t){var o=0;switch(e.type){case"mousedown":case"mousemove":o=t?e.clientY:e.clientX;break;case"touchstart":case"touchmove":o=t?e.touches[0].clientY:e.touches[0].clientX}return o},$=function(t){var o,n=_.current.getBoundingClientRect(),a=(e.vertical?n.height:n.width)/Z;if(e.vertical){var i=J(t,e.vertical);o=(n.bottom-i)/a}else{var r=J(t,e.vertical);o=((0,Ie.jI)(e.theme)?n.right-r:r-n.left)/a}return o},Q=function(e,t){var o=$(e),a=p+n*o,i=p+n*Math.round(o);X(e,i,a),t||(e.preventDefault(),e.stopPropagation())},ee=function(e){if(E){var t=$(e),o=p+n*t;H.isAdjustingLowerValue=o<=H.latestLowerValue||o-H.latestLowerValue<=H.latestValue-o}"mousedown"===e.type?L.current.push((0,We.on)(window,"mousemove",Q,!0),(0,We.on)(window,"mouseup",te,!0)):"touchstart"===e.type&&L.current.push((0,We.on)(window,"touchmove",Q,!0),(0,We.on)(window,"touchend",te,!0)),Q(e,!0)},te=function(e){H.isBetweenSteps=void 0,null===R||void 0===R||R(e,H.latestValue,E?[H.latestLowerValue,H.latestValue]:void 0),oe()},oe=a.useCallback((function(){L.current.forEach((function(e){return e()})),L.current=[]}),[]);a.useEffect((function(){return oe}),[oe]);var ne=a.useRef(null),ae=a.useRef(null),ie=a.useRef(null);!function(e,t,o,n){a.useImperativeHandle(e.componentRef,(function(){return{get value(){return o},get range(){return n},focus:function(){var e;null===(e=t.current)||void 0===e||e.focus()}}}),[n,t,o])}(e,ie,F,E?[V,F]:void 0);var re=Ve(b?"bottom":(0,Ie.jI)(e.theme)?"right":"left"),le=Ve(b?"height":"width"),se=C?0:p,ce=He(F,p,u),ue=He(V,p,u),de=He(se,p,u),pe=E?ce-ue:Math.abs(de-ce),me=Math.min(100-ce,100-de),ge=E?ue:Math.min(ce,de),he={className:G.root,ref:t},fe={className:G.titleLabel,children:s,disabled:l,htmlFor:P?void 0:j},ve=g?{className:G.valueLabel,children:y?y(F):F,disabled:l,htmlFor:l?j:void 0}:void 0,be=E&&g?{className:G.valueLabel,children:y?y(V):V,disabled:l}:void 0,Se=C?{className:G.zeroTick,style:re(de)}:void 0,ye={className:(0,Ee.A)(G.lineContainer,G.activeSection),style:le(pe)},xe={className:(0,Ee.A)(G.lineContainer,G.inactiveSection),style:le(me)},we={className:(0,Ee.A)(G.lineContainer,G.inactiveSection),style:le(ge)},Ce=(0,Ue.__assign)({"aria-disabled":l,role:"slider",tabIndex:l?void 0:0},{"data-is-focusable":!l}),Pe=(0,Ue.__assign)((0,Ue.__assign)((0,Ue.__assign)({id:j,className:(0,Ee.A)(G.slideBox,f.className),ref:ie},!l&&{onMouseDown:ee,onTouchStart:ee,onKeyDown:function(t){var o=H.isAdjustingLowerValue?H.latestLowerValue:H.latestValue,a=0;switch(t.which){case(0,Ie.SM)(ke.c.left,e.theme):case ke.c.down:a=-n,K(),Y(t);break;case(0,Ie.SM)(ke.c.right,e.theme):case ke.c.up:a=n,K(),Y(t);break;case ke.c.home:o=p,K(),Y(t);break;case ke.c.end:o=u,K(),Y(t);break;default:return}X(t,o+a),t.preventDefault(),t.stopPropagation()}}),f&&(0,ze.G1)(f,ze.JM,["id","className"])),!E&&(0,Ue.__assign)((0,Ue.__assign)({},Ce),{"aria-valuemin":p,"aria-valuemax":u,"aria-valuenow":F,"aria-valuetext":q(F),"aria-label":P||s,"aria-labelledby":I})),Ae=l?{}:{onFocus:function(e){H.isAdjustingLowerValue=e.target===ne.current}},Re=(0,Ue.__assign)({ref:ae,className:G.thumb,style:re(ce)},E&&(0,Ue.__assign)((0,Ue.__assign)((0,Ue.__assign)({},Ce),Ae),{id:"max-".concat(j),"aria-valuemin":V,"aria-valuemax":u,"aria-valuenow":F,"aria-valuetext":q(F),"aria-label":"max ".concat(P||s)})),Le=E?(0,Ue.__assign)((0,Ue.__assign)((0,Ue.__assign)({ref:ne,className:G.thumb,style:re(ue)},Ce),Ae),{id:"min-".concat(j),"aria-valuemin":p,"aria-valuemax":F,"aria-valuenow":V,"aria-valuetext":q(V),"aria-label":"min ".concat(P||s)}):void 0;return{root:he,label:fe,sliderBox:Pe,container:{className:G.container},valueLabel:ve,lowerValueLabel:be,thumb:Re,lowerValueThumb:Le,zeroTick:Se,activeTrack:ye,topInactiveTrack:xe,bottomInactiveTrack:we,sliderLine:{ref:_,className:G.line}}},Ge=a.forwardRef((function(e,t){var o=je(e,t);return a.createElement("div",(0,Ue.__assign)({},o.root),o&&a.createElement(Te.J,(0,Ue.__assign)({},o.label)),a.createElement("div",(0,Ue.__assign)({},o.container),e.ranged&&(e.vertical?o.valueLabel&&a.createElement(Te.J,(0,Ue.__assign)({},o.valueLabel)):o.lowerValueLabel&&a.createElement(Te.J,(0,Ue.__assign)({},o.lowerValueLabel))),a.createElement("div",(0,Ue.__assign)({},o.sliderBox),a.createElement("div",(0,Ue.__assign)({},o.sliderLine),e.ranged&&a.createElement("span",(0,Ue.__assign)({},o.lowerValueThumb)),a.createElement("span",(0,Ue.__assign)({},o.thumb)),o.zeroTick&&a.createElement("span",(0,Ue.__assign)({},o.zeroTick)),a.createElement("span",(0,Ue.__assign)({},o.bottomInactiveTrack)),a.createElement("span",(0,Ue.__assign)({},o.activeTrack)),a.createElement("span",(0,Ue.__assign)({},o.topInactiveTrack)))),e.ranged&&e.vertical?o.lowerValueLabel&&a.createElement(Te.J,(0,Ue.__assign)({},o.lowerValueLabel)):o.valueLabel&&a.createElement(Te.J,(0,Ue.__assign)({},o.valueLabel))),a.createElement(Ne.MO,null))}));Ge.displayName="SliderBase";var Ze={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"},Ke=(0,Le.I)(Ge,(function(e){var t,o,n,a,i,r,l,s,c,u,d,p,m,g=e.className,h=e.titleLabelClassName,f=e.theme,v=e.vertical,b=e.disabled,S=e.showTransitions,y=e.showValue,x=e.ranged,w=f.semanticColors,C=f.palette,I=(0,ce.Km)(Ze,f),k=w.inputBackgroundCheckedHovered,P=w.inputBackgroundChecked,E=C.neutralSecondaryAlt,A=C.neutralPrimary,R=C.neutralSecondaryAlt,L=w.disabledText,U=w.disabledBackground,N=w.inputBackground,T=w.smallInputBorder,_=w.disabledBorder,D=!b&&{backgroundColor:k,selectors:(t={},t[ce.up]={backgroundColor:"Highlight"},t)},B=!b&&{backgroundColor:E,selectors:(o={},o[ce.up]={borderColor:"Highlight"},o)},O=!b&&{backgroundColor:P,selectors:(n={},n[ce.up]={backgroundColor:"Highlight"},n)},M=!b&&{border:"2px solid ".concat(k),selectors:(a={},a[ce.up]={borderColor:"Highlight"},a)},W=!e.disabled&&{backgroundColor:w.inputPlaceholderBackgroundChecked,selectors:(i={},i[ce.up]={backgroundColor:"Highlight"},i)};return{root:(0,Ue.__spreadArray)((0,Ue.__spreadArray)((0,Ue.__spreadArray)((0,Ue.__spreadArray)((0,Ue.__spreadArray)([I.root,f.fonts.medium,{userSelect:"none"},v&&{marginRight:8}],[b?void 0:I.enabled],!1),[b?I.disabled:void 0],!1),[v?void 0:I.row],!1),[v?I.column:void 0],!1),[g],!1),titleLabel:[{padding:0},h],container:[I.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},v&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:(0,Ue.__spreadArray)((0,Ue.__spreadArray)([I.slideBox,!x&&(0,ce.gm)(f),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(r={},r[":active .".concat(I.activeSection)]=D,r[":hover .".concat(I.activeSection)]=O,r[":active .".concat(I.inactiveSection)]=B,r[":hover .".concat(I.inactiveSection)]=B,r[":active .".concat(I.thumb)]=M,r[":hover .".concat(I.thumb)]=M,r[":active .".concat(I.zeroTick)]=W,r[":hover .".concat(I.zeroTick)]=W,r[ce.up]={forcedColorAdjust:"none"},r)},v?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[y?I.showValue:void 0],!1),[S?I.showTransitions:void 0],!1),thumb:[I.thumb,x&&(0,ce.gm)(f,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:T,borderRadius:10,boxSizing:"border-box",background:N,display:"block",width:16,height:16,position:"absolute"},v?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:(0,Ie.jI)(f)?"translateX(50%)":"translateX(-50%)"},S&&{transition:"left ".concat(ce.cs.durationValue3," ").concat(ce.cs.easeFunction1)},b&&{borderColor:_,selectors:(l={},l[ce.up]={borderColor:"GrayText"},l)}],line:[I.line,{display:"flex",position:"relative"},v?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},v?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[I.activeSection,{background:A,selectors:(s={},s[ce.up]={backgroundColor:"WindowText"},s)},S&&{transition:"width ".concat(ce.cs.durationValue3," ").concat(ce.cs.easeFunction1)},b&&{background:L,selectors:(c={},c[ce.up]={backgroundColor:"GrayText",borderColor:"GrayText"},c)}],inactiveSection:[I.inactiveSection,{background:R,selectors:(u={},u[ce.up]={border:"1px solid WindowText"},u)},S&&{transition:"width ".concat(ce.cs.durationValue3," ").concat(ce.cs.easeFunction1)},b&&{background:U,selectors:(d={},d[ce.up]={borderColor:"GrayText"},d)}],zeroTick:[I.zeroTick,{position:"absolute",background:w.disabledBorder,selectors:(p={},p[ce.up]={backgroundColor:"WindowText"},p)},e.disabled&&{background:w.disabledBackground,selectors:(m={},m[ce.up]={backgroundColor:"GrayText"},m)},e.vertical?{width:"16px",height:"1px",transform:(0,Ie.jI)(f)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[I.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},v?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}}),void 0,{scope:"Slider"}),Ye=o(2203),qe=(0,Z.memoizeFunction)((function(e,t){return(0,ce.l8)({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:(0,ce.Zq)({selectors:{"&:disabled":{background:"transparent",cursor:"not-allowed"}}},null===t||void 0===t?void 0:t.root),slideBox:(0,ce.Zq)({padding:"0 10px"},null===t||void 0===t?void 0:t.slideBox),thumb:(0,ce.Zq)({border:"2px solid ".concat(e.palette.themePrimary)},null===t||void 0===t?void 0:t.thumb),activeThumb:(0,ce.Zq)({backgroundColor:e.palette.themePrimary},null===t||void 0===t?void 0:t.activeThumb),inactiveThumb:(0,ce.Zq)({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"}})})),Xe=function(e){return"".concat(Math.round(e),"\xb0")},Je=function(e){return"".concat(Math.round(e))},$e=function(e){var t,o,n=(0,pe.useTheme)(),i=qe(n,e.styles),r=e.onImageRotate,l=e.setBaseAngleForStraightening,s=a.useCallback((function(t){var o=t-e.imageRotationAngle+e.baseAngleForStraightening;r(o)}),[r,e.baseAngleForStraightening,e.imageRotationAngle]),c=a.useCallback((function(){r(90),l(e.baseAngleForStraightening+90)}),[r,l,e.baseAngleForStraightening]),u=a.useCallback((function(){e.onImageRotate(-90),e.setBaseAngleForStraightening(e.baseAngleForStraightening-90)}),[e]),d=null!==(o=null===(t=e.imagePositionInformationString)||void 0===t?void 0:t.call(e,{p0:Xe(e.imageRotationAngle)}))&&void 0!==o?o:Xe(e.imageRotationAngle);return a.createElement("div",{className:i.editControls},a.createElement(re.K,{className:i.sliderButton,title:e.counterClockwiseString,ariaLabel:e.counterClockwiseString,onClick:u,onRenderIcon:Qe,disabled:e.isPhotoUploading}),a.createElement(ie.S,{content:d,styles:{root:i.sliderContainer}},a.createElement(Ke,{styles:{root:i.root,slideBox:i.slideBox,thumb:i.thumb,activeSection:i.activeThumb,inactiveSection:i.inactiveThumb},min:-45,max:45,step:1,value:e.imageRotationAngle-e.baseAngleForStraightening,showValue:!1,disabled:e.isPhotoUploading,originFromZero:!0,onChange:s,ariaValueText:Je,"aria-label":e.rotateString})),a.createElement(re.K,{className:i.sliderButton,disabled:e.isPhotoUploading,title:e.clockwiseString,ariaLabel:e.clockwiseString,onClick:c,onRenderIcon:et}),a.createElement("div",{"aria-live":"assertive",role:"status",className:i.announcement},Xe(e.imageRotationAngle)))};function Qe(){return a.createElement("span",null,a.createElement(Ye.pfk,null))}function et(){return a.createElement("span",null,a.createElement(Ye.yl$,null))}var tt=function(e){return"".concat(e,"%")},ot=function(e,t){return Math.round(100*(e*(t-1)+1))},nt=function(e){var t,o,n=a.useState(!1),i=n[0],r=n[1],l=a.useRef(0),s=e.zoom,c=a.useCallback((function(t,o,n){var a,i;!e.image||e.maximumScale<1||isNaN(t)?null===n||void 0===n||n.stopPropagation():s((a=t,i=e.maximumScale,Math.round((a/100-1)/(i-1)*100)/100-e.relativeScale),.5*e.canvasSize,.5*e.canvasSize)}),[e.image,e.maximumScale,e.relativeScale,s,e.canvasSize]),u=a.useCallback((function(t){s(t,e.canvasSize/2,e.canvasSize/2),r(!0),l.current&&clearTimeout(l.current),l.current=window.setTimeout((function(){return r(!1)}),3e3)}),[s,l,e.canvasSize]);a.useEffect((function(){return function(){return clearTimeout(l.current)}}),[l]);var d=(0,pe.useTheme)(),p=qe(d,e.styles),m=h(2*e.stepSize,.1,.2),g=ot(0,e.maximumScale),f=ot(1,e.maximumScale),v=ot(e.relativeScale,e.maximumScale),b=ot(h(e.stepSize,.05,.1),e.maximumScale)-ot(0,e.maximumScale),S=e.maximumScale<=1?e.zoomAtMaxString:null!==(o=null===(t=e.imageScaleInformationString)||void 0===t?void 0:t.call(e,{p0:tt(v)}))&&void 0!==o?o:tt(v);return a.createElement("div",{className:p.editControls},a.createElement(re.K,{className:p.sliderButton,iconProps:{iconName:"CalculatorSubtract"},title:e.zoomOutString,ariaLabel:e.zoomOutString,onClick:function(){return u(-m)},disabled:e.isPhotoUploading||e.zoomOutDisabled}),a.createElement(ie.S,{content:S,styles:{root:p.sliderContainer}},a.createElement(Ke,{styles:{root:p.root,slideBox:p.slideBox,thumb:p.thumb,activeSection:p.activeThumb,inactiveSection:p.inactiveThumb},ariaValueText:tt,ariaLabel:e.zoomString,min:g,max:f,disabled:e.isPhotoUploading||e.maximumScale<=1,step:b,value:v,showValue:!1,onChange:c})),a.createElement(re.K,{className:p.sliderButton,iconProps:{iconName:"CalculatorAddition"},title:e.zoomInString,ariaLabel:e.zoomInString,onClick:function(){return u(m)},disabled:e.isPhotoUploading||e.zoomInDisabled}),i&&a.createElement("div",{"aria-live":"assertive",role:"status",className:p.announcement},tt(ot(e.relativeScale,e.maximumScale))))},at=o(58753),it=o(52324),rt=o(70056),lt=(0,se.J9)((function(e,t){var o=e.palette;return(0,ce.l8)({editPivot:{height:46},link:(0,ce.Zq)({lineHeight:10,width:46,height:46,padding:0,marginRight:0,color:o.neutralSecondary},null===t||void 0===t?void 0:t.link),linkSelected:(0,ce.Zq)({color:o.neutralDark,fontWeight:600},null===t||void 0===t?void 0:t.linkSelected),button:(0,ce.Zq)({flex:"0 1 100%",height:44},null===t||void 0===t?void 0:t.button),buttonText:(0,ce.Zq)({fontSize:10,marginTop:5},null===t||void 0===t?void 0:t.buttonText)})})),st=function(e){var t=(0,pe.useTheme)(),o=lt(t,e.styles),n=e.setSelectedKey,i=a.useCallback((function(e){var t;(null===(t=null===e||void 0===e?void 0:e.props)||void 0===t?void 0:t.itemKey)&&n(e.props.itemKey)}),[n]),r=a.useCallback((function(t){if(!(null===t||void 0===t?void 0:t.itemKey))return null;var n=t.itemKey,i="Rotate"===n?[a.createElement(Ye.nHW,{key:n}),e.rotateString]:[a.createElement(rt.$97,{key:n}),e.zoomString],r=i[0],l=i[1];return a.createElement("span",{className:o.button},r,a.createElement("div",{className:o.buttonText},l))}),[e.rotateString,e.zoomString,o.button,o.buttonText]);return a.createElement(at.f,{styles:{root:o.editPivot,link:o.link,linkIsSelected:o.linkSelected},"aria-label":e.pivotString,selectedKey:e.selectedKey,onLinkClick:i,headersOnly:!0,"aria-disabled":e.isPhotoUploading},a.createElement(it.y,{itemKey:"Zoom",onRenderItemLink:r}),a.createElement(it.y,{itemKey:"Rotate",onRenderItemLink:r}))},ct=function(){return ct=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},ct.apply(this,arguments)},ut=(0,se.J9)((function(e,t,o,n){return(0,ce.l8)({editControlsPlaceholderSpace:{height:32},editCanvas:(0,ce.Zq)({backgroundColor:e.palette.neutralLight,cursor:t?"move":"inherit"},null===o||void 0===o?void 0:o.root),isDropActive:{outline:"1px solid purple"},invisible:ct({clip:"rect(1px, 1px, 1px, 1px)"},{height:1,overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:1}),canvasContainer:{margin:n?"0 0 0 auto":"0 auto",display:"flex",alignItems:"center",flexDirection:"column",width:256,position:"relative"},textboy:(0,ce.Zq)({color:e.palette.white,position:"absolute",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",top:0,left:0,width:256,height:256},null===o||void 0===o?void 0:o.textboy),initials:(0,ce.Zq)({fontSize:128,lineHeight:128},null===o||void 0===o?void 0:o.initials)})})),dt=function(e){e.stopPropagation(),e.preventDefault()},pt=function(e){return"targetTouches"in e?[e.targetTouches[0].clientX,e.targetTouches[0].clientY]:[e.clientX,e.clientY]};var mt=(0,r.Ng)((function(e){return $.getSelectors(e).getEditCanvasState()}),(function(e){return{onReset:function(){return e(z())},onKeyboardEvent:function(t){return e(_({xpos:t.xpos,ypos:t.ypos}))},onZoomEvent:function(t){return e(B({absoluteScale:t.absoluteScale,relativeScale:t.relativeScale,zoomOutDisabled:t.zoomOutDisabled,zoomInDisabled:t.zoomInDisabled,xpos:t.xpos,ypos:t.ypos}))},onImageLoaded:function(t){return e(O({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(M({moving:t.moving,lastMouseX:t.lastMouseX,lastMouseY:t.lastMouseY}))},onDragProgress:function(t){return e(W({moving:t.moving,xpos:t.xpos,ypos:t.ypos,lastMouseX:t.lastMouseX,lastMouseY:t.lastMouseY}))},onEmptyImageRendered:function(){return e(F())},onRotateEvent:function(t){return e(D({imageRotationAngle:t.imageRotationAngle}))}}}))((function(e){var t,o=a.useRef(!1),n=a.useRef(null),i=a.useRef(null),r=(0,Ce.I)(e.personDisplayName,(0,Ie.jI)()),l=!e.image||e.maximumScale<=1||e.progress>0,s=e.image,p=e.progress>0&&e.progress<1,f=!l||e.naturalHeight!==e.naturalWidth,v=(0,pe.useTheme)(),b=ut(v,f,e.styles.canvas,e.isPhotoListPresent),S=a.useState(!1),y=S[0],x=S[1],w=a.useState(0),C=w[0],I=w[1],k=a.useState(),P=k[0],E=k[1],A=a.useCallback((function(e){return I(e%360)}),[]),R=e.onRefocus,L=e.onZoomEvent,U=e.onError,N=e.onDragProgress,T=e.onReset,_=e.onDragStart,D=e.onCanvasUpdated,B=e.onEmptyImageRendered,O=e.onFileSelected,M=e.onImageLoaded,W=e.onKeyboardEvent,z=e.onRotateEvent,F=e.isUploadedPhotoTooSmall,V=a.useCallback((function(t,o){return"Fit"===e.imageScaling&&o<c?(c-o)/2:t>0?0:t+o<c?c-o:t}),[e.imageScaling]),H=a.useCallback((function(t,o,n,a){var i=t+(o-t)*a/e.absoluteScale,r=a*n/e.maximumScale;return V(i,r)}),[V,e.absoluteScale,e.maximumScale]),j=a.useCallback((function(t,o,n){if(!(!e.image||e.maximumScale<1||isNaN(t)||"Rotate"===P)){var a=Math.min(1,Math.max(0,e.relativeScale+t));if(a!==e.relativeScale){var i=Math.exp(a*Math.log(e.maximumScale)),r=i<=1,l=i>=e.maximumScale,s=H(o,e.xpos,e.naturalWidth,i),c=H(n,e.ypos,e.naturalHeight,i);L({absoluteScale:i,relativeScale:a,zoomOutDisabled:r,zoomInDisabled:l,xpos:s,ypos:c})}}}),[e.image,e.maximumScale,e.relativeScale,e.xpos,e.naturalWidth,e.ypos,e.naturalHeight,H,L,P]),G=a.useCallback((function(t){var o=(e.imageRotationAngle+t)%360;z({imageRotationAngle:o})}),[e.imageRotationAngle,z]),K=a.useCallback((function(t){var o,n,a,i,r,l,s,c;if(e.image&&!(e.maximumScale<1)){var u="",d=e.xpos.toFixed(1),p=e.ypos.toFixed(1);switch(t.key){case"+":return j(e.stepSize,128,128);case"-":return j(-1*e.stepSize,128,128);case"ArrowLeft":u=null===(n=(o=e.strings).leftArrowKeyAriaLabel)||void 0===n?void 0:n.call(o,{p0:d,p1:p});break;case"ArrowRight":u=null===(i=(a=e.strings).rightArrowKeyAriaLabel)||void 0===i?void 0:i.call(a,{p0:d,p1:p});break;case"ArrowUp":u=null===(l=(r=e.strings).upArrowKeyAriaLabel)||void 0===l?void 0:l.call(r,{p0:d,p1:p});break;case"ArrowDown":u=null===(c=(s=e.strings).downArrowKeyAriaLabel)||void 0===c?void 0:c.call(s,{p0:d,p1:p})}t.currentTarget.setAttribute("aria-label","".concat(u));var m=g((t.which===ke.c.left?1:t.which===ke.c.right&&-1)||0,(t.which===ke.c.up?1:t.which===ke.c.down&&-1)||0,e.orientation,e.imageRotationAngle),h=m.x,f=m.y,v=h*e.naturalWidth/100,b=f*e.naturalHeight/100,S=V(e.xpos+v,e.naturalWidth*e.absoluteScale/e.maximumScale),y=V(e.ypos+b,e.naturalHeight*e.absoluteScale/e.maximumScale);W({xpos:S,ypos:y})}}),[e.stepSize,e.orientation,e.image,e.naturalWidth,e.naturalHeight,e.xpos,e.ypos,e.absoluteScale,e.maximumScale,W,e.imageRotationAngle,j,V,e.strings]),Y=a.useCallback((function(t){var a,i,r,l=1;"Fit"===e.imageScaling?(l=1.2,i=Math.max(t.naturalWidth,t.naturalHeight),r=i*l/c):(i=Math.min(t.naturalWidth,t.naturalHeight),r=i/c);var s=function(e){return-.5*(e/r-c)},u=Math.min(1,Math.max(.01,c/(2*Math.max(t.naturalWidth,t.naturalHeight))));A(0),!e.initialRender&&r<1&&(t.naturalHeight<48||t.naturalWidth<48?setTimeout((function(){return U("IMAGE_TOO_SMALL_ERROR")}),0):setTimeout((function(){return U("IMAGE_TOO_SMALL_WARNING")}),0)),F(t.naturalHeight<48||t.naturalWidth<48),o.current||M({naturalMin:i,naturalWidth:t.naturalWidth*l,naturalHeight:t.naturalHeight*l,stepSize:u,maximumScale:r,orientation:Re(t.src),imageRotationAngle:0,image:t,zoomInDisabled:!1,initialRender:!1,xpos:s(t.naturalWidth*l),ypos:s(t.naturalHeight*l),absoluteScale:1,relativeScale:0,imageUpdated:!1}),!e.initialRender&&(null===(a=n.current)||void 0===a||a.focus())}),[e.initialRender,U,F,M,o,n,e.imageScaling,A]),q=a.useCallback((function(t){if(t){var o=new Image;o.onload=function(){return Y(o)},o.src=t,o.alt=e.fileName||""}else T(),""===t&&B()}),[T,Y,B,e.fileName]),X=a.useCallback((function(t){if(e.image){dt(t);var o=t.deltaY>0?-1:1,n=g(t.nativeEvent.offsetX,t.nativeEvent.offsetY,e.orientation,e.imageRotationAngle),a=n.x,i=n.y;j(h(e.stepSize,.05,.1)*o,a,i)}}),[e.image,e.orientation,e.stepSize,j,e.imageRotationAngle]),J=a.useCallback((function(t){var o=pt(t),n=g(o[0],o[1],e.orientation,e.imageRotationAngle),a=n.x,i=n.y;e.image&&(dt(t),_({moving:!0,lastMouseX:a,lastMouseY:i}))}),[e.image,_,e.orientation,e.imageRotationAngle]),$=a.useCallback((function(t){if(dt(t),e.image)if(["mousemove","touchmove"].includes(t.type)&&e.moving){var o=pt(t),n=g(o[0],o[1],e.orientation,e.imageRotationAngle),a=n.x,i=n.y,r=V(e.xpos+(a-e.lastMouseX),e.naturalWidth*e.absoluteScale/e.maximumScale),l=V(e.ypos+(i-e.lastMouseY),e.naturalHeight*e.absoluteScale/e.maximumScale);N({moving:!0,xpos:r,ypos:l,lastMouseX:a,lastMouseY:i})}else N({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,V,N,e.imageRotationAngle]),Q=a.useCallback((function(e){dt(e),x(!0)}),[x]),ee=a.useCallback((function(e){dt(e),x(!1)}),[x]),te=a.useCallback((function(t){ee(t),t.dataTransfer&&O(t.dataTransfer.files[0],e.isPhotoListPresent)}),[ee,O,e.isPhotoListPresent]),oe=a.useCallback((function(){var t=n.current;if(t&&i.current){var o=t.getContext("2d");if(o){var a=window.getComputedStyle(t);o.fillStyle=a.backgroundColor||"#ffffff",o.fillRect(0,0,1,1);var r=o.getImageData(0,0,1,1).data,l="rgba(".concat(r[0],", ").concat(r[1],", ").concat(r[2],", 0.6)"),s="rgba(".concat(r[0],", ").concat(r[1],", ").concat(r[2],", 1)"),p=(0,Pe.X)({text:e.personDisplayName});""===e.dataUrl?(o.fillStyle=p,i.current.style.display="flex"):(o.fillStyle=e.customBackgroundColor||u,i.current.style.display="none"),o.fillRect(0,0,c,c),e.image&&m(o,c,e.imageRotationAngle,e.orientation,e.image,(function(t,o){return t.drawImage(o,e.xpos,e.ypos,e.naturalWidth*e.absoluteScale/e.maximumScale,e.naturalHeight*e.absoluteScale/e.maximumScale)})),null===D||void 0===D||D(t),"Circle"===e.imageCropShape&&(o.save(),o.beginPath(),o.rect(0,0,c,c),o.arc(128,128,125,0,2*Math.PI,!0),o.clip(),o.fillStyle=l,o.fillRect(0,0,c,c),o.restore(),o.save(),o.beginPath(),o.arc(128,128,126,0,2*Math.PI,!0),o.lineWidth=2,o.strokeStyle=s,o.stroke(),o.restore(),o.save(),o.beginPath(),o.lineWidth=4,o.fillStyle=d,o.strokeStyle=d,o.arc(128,128,125,-Math.PI/2,2*e.progress*Math.PI-Math.PI/2,!1),1===e.progress&&o.fill(),o.stroke(),o.restore())}else U("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,U,e.customBackgroundColor,D,e.imageCropShape,i]);a.useEffect((function(){return oe(),function(){o.current=!0}}),[]),a.useEffect((function(){oe()})),a.useEffect((function(){1===e.progress&&R()}),[e.progress,R]),a.useEffect((function(){e.dataUrl&&E(l?"Rotate":"Zoom")}),[e.dataUrl,l]),a.useEffect((function(){e.dataUrl?e.imageUpdated&&q(e.dataUrl):e.image&&(T(),B())}),[e.dataUrl,e.imageUpdated,e.image,T,B,l,q]);var ne=a.useMemo((function(){var t,o;return e.image?1===e.progress?e.strings.success:e.fileName?null===(o=(t=e.strings).photoSelected)||void 0===o?void 0:o.call(t,{p0:e.fileName}):e.strings.dropZoneImageAriaLabel:e.strings.dropZoneEmptyAriaLabel}),[e.image,e.progress,e.fileName,e.strings]),ae=a.useRef((0,Z.generateGuid)());return a.createElement("div",{className:b.canvasContainer},a.createElement("div",{"aria-live":"polite"},a.createElement("canvas",{className:(0,Ee.A)(b.editCanvas,(t={},t[b.isDropActive]=y,t)),role:"img",tabIndex:s?0:-1,ref:n,width:c,height:c,onKeyDown:K,"aria-label":ne,onDragEnter:Q,onDrop:te,onDragLeave:ee,onDragOver:dt,onMouseDown:J,onMouseMove:$,onMouseUp:$,onMouseLeave:$,onWheel:X,onTouchStart:J,onTouchMove:$,onTouchEnd:$,"aria-describedby":ae.current}),e.image&&e.fileName&&a.createElement("img",{alt:e.fileName,id:ae.current,"aria-hidden":!0,hidden:!0}),a.createElement("div",{className:b.textboy,ref:i,onDragEnter:Q,onDragLeave:ee,onDragOver:dt,onDrop:te},a.createElement("div",{className:b.initials},r),a.createElement("div",null,e.strings.dropZone))),a.createElement("div",{role:"region","aria-live":"assertive","aria-atomic":!0},1===e.progress?a.createElement("div",{className:b.textboy},a.createElement("span",{className:b.invisible},e.strings.success),a.createElement(Ae.I,{className:b.initials,iconName:"CheckMark"})):null),s?a.createElement(a.Fragment,null,"Zoom"!==P&&e.enableImageRotation?a.createElement($e,{styles:e.styles.slider,isPhotoUploading:p,clockwiseString:e.strings.clockwise,counterClockwiseString:e.strings.counterClockwise,rotateString:e.strings.rotate,baseAngleForStraightening:C,imagePositionInformationString:e.strings.imagePositionInformationString,setBaseAngleForStraightening:A,onImageRotate:G,imageRotationAngle:e.imageRotationAngle,panEnabled:f}):a.createElement(nt,{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:p,canvasSize:c,image:e.image,maximumScale:e.maximumScale,stepSize:e.stepSize,zoomOutDisabled:e.zoomOutDisabled,relativeScale:e.relativeScale,zoomInDisabled:e.zoomInDisabled,panEnabled:f,zoom:j}),e.enableImageRotation&&a.createElement(st,{styles:e.styles.pivot,zoomAtMaxString:e.strings.zoomAtMax,isPhotoUploading:p,maximumScale:e.maximumScale,selectedKey:P,setSelectedKey:E,rotateString:e.strings.rotate,zoomString:e.strings.zoom,pivotString:e.strings.pivot})):a.createElement("div",{className:b.editControlsPlaceholderSpace,"aria-live":"polite"}))})),gt=o(36118),ht=o(35566),ft=o(92256),vt=o(48560),bt=function(e){var t,o,n=(0,pe.useTheme)(),i=(o=e.styles,(0,pe.makeGetStyles)((function(e){return(0,ce.l8)({listItem:(0,ce.Zq)({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(e.palette.themePrimary)},"&:hover":{opacity:.9,border:"1px solid ".concat(e.palette.neutralLighter)}}},null===o||void 0===o?void 0:o.listItem),lastListItem:{marginBottom:0},listItemSelected:(0,ce.Zq)({outline:"2px solid ".concat(e.palette.themePrimary),opacity:.9},null===o||void 0===o?void 0:o.listItemSelected),listItemWithBackground:{background:e.palette.neutralLighter},photoListItemImage:{height:"100%",width:"100%"},emptyListIcon:(0,ce.Zq)({margin:"auto",fontSize:"24px",color:e.palette.neutralSecondaryAlt},null===o||void 0===o?void 0:o.emptyListIcon)})})))(n);return a.createElement("button",{className:(0,Ee.A)(i.listItem,(t={},t[i.listItemSelected]=e.index===e.selectedIndex,t[i.listItemWithBackground]=e.isEmptyPhoto,t[i.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?a.createElement(ht.l8,{"aria-label":e.photoListEmptyImageAriaLabel,iconName:"Contact",className:i.emptyListIcon}):a.createElement(ft._,{src:e.imageUrl,className:i.photoListItemImage,alt:e.photoListImageAriaLabel,imageFit:vt.N_.cover}))},St=function(e){var t,o=(t=e.styles,(0,pe.makeGetStylesFromStyleObject)((0,ce.l8)({root:(0,ce.Zq)({height:256,width:56,padding:"0px 25px 0px 12px",overflowY:"auto",margin:0,listStyle:"none"},null===t||void 0===t?void 0:t.root)}))()),n=e.imageUrls,i=e.showEmptyPhoto?n.length:n.length-1;return a.createElement("ul",{className:o.root,"aria-label":e.strings.photoListAriaLabel},n.map((function(t,o){return a.createElement(gt.RenderListItemDescription,{posInSet:o+1,setSize:i+1,key:o,onRenderDescribedElement:function(n){return a.createElement("li",{key:o},a.createElement(bt,{key:o,styles:e.styles,imageUrl:t,index:o,selectedIndex:e.selectedIndex,isLastPhoto:o===i,isEmptyPhoto:!1,photoListImageAriaLabel:e.strings.photoListImageAriaLabel,onClickHandler:e.onPhotoListImageSelected,ariaDescribedBy:n}))}})})),!!e.showEmptyPhoto&&a.createElement(gt.RenderListItemDescription,{posInSet:i+1,setSize:i+1,onRenderDescribedElement:function(t){return a.createElement("li",null,a.createElement(bt,{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}))}}))},yt=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xt=function(){return xt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},xt.apply(this,arguments)},wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return yt(t,e),t.prototype.componentDidMount=function(){this.props.photoListLoadPhotos(this.props.photoListSelectedIndex||0,this.props.photoListImageUrls)},t.prototype.render=function(){return a.createElement(St,xt({},this.props))},t}(a.Component);var Ct=(0,r.Ng)((function(e){return $.getSelectors(e).getPhotoListState()}),(function(e){return{photoListLoadPhotos:function(t,o){e(G({selectedIndex:t,imageUrls:o}))},onPhotoListImageSelected:function(t){!function(e,t,o,n){if(!t)return e(E({isPhotoListPresent:!0})),void e(H({selectedIndex:o}));if(t.startsWith("data:image/"))return e(A({dataUrl:t,isPhotoListPresent:!0,fileName:n})),e(V()),void e(H({selectedIndex:o}));var a=new Image;a.crossOrigin="Anonymous",a.onload=function(){var t=document.createElement("canvas");t.width=a.naturalWidth,a.alt=n||"",t.height=a.naturalHeight;var i=t.getContext("2d");i&&(i.drawImage(a,0,0),e(A({dataUrl:l(t,!1),isPhotoListPresent:!0,fileName:n})),e(V()),e(H({selectedIndex:o})))},a.src=t}(e,t.imageUrl,t.selectedIndex,t.fileName)}}}))(wt),It=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),kt=function(){return kt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},kt.apply(this,arguments)},Pt=function(e,t){var o={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(o[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var a=0;for(n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(o[n[a]]=e[n[a]])}return o},Et=function(e){function t(t){return 1/(1+Math.exp(-e*t))-.5}var o=.5/t(1);return function(e){return e<=0?0:e>1?1:o*t(2*e-1)+.5}}(5),At=function(e){function t(t){var o=e.call(this,t)||this;return o.focusTrap=null,o.primaryButton=null,o.uploadFileButton=null,o.onCanvasUpdated=function(e){var t,n;o.props.isCanvasDirty&&o.props.onImageChanged?o.props.onImageChanged(o.props.latestImageStats):null===(n=(t=o.props).onCanvasUpdated)||void 0===n||n.call(t,e,o.props.isCanvasDirty)},o.handleOnRemoveButtonClicked=function(){o.props.loadedEmptyImage(Array.isArray(o.props.personImageUrl)),o.uploadFileButton&&o.uploadFileButton.focus()},o.handleOnSaveButtonClicked=function(){if("SUCCESS"===o.props.status)return o.props.onDone(),o.props.onDismiss();o.props.startUpload()},o.handleUploadAnimation=function(){"IN_PROGRESS"===o.props.status&&o.props.onUploadProgress(Date.now())},o.handleOnCancelButtonClicked=function(){o.props.onCancel(),o.props.onDismiss()},o.handleOnCloseButtonClicked=function(){o.props.onClose(),o.props.onDismiss()},o.getFocusTrapRef=o.getFocusTrapRef.bind(o),o.getButtonRef=o.getButtonRef.bind(o),o.getUploadButtonRef=o.getUploadButtonRef.bind(o),o}return It(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,o=this,n=this.getWarningText(this.props.warning);return a.createElement(ye,{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:a.createElement(de,{buttonType:"Icon",iconName:"Cancel",onClick:this.handleOnCloseButtonClicked,dataLogName:"PhotoPickerClose",title:this.props.strings.closeIconTitle,ariaLabel:this.props.strings.closeIconAriaLabel}),infoBar:n?a.createElement(fe,{styles:this.props.styles.infoBar,warning:this.props.warning,warningText:n,onDismiss:this.props.onDismissInfoBar,dismissButtonAriaLabel:this.props.strings.infoBarDismissButtonAriaLabel}):null,uploadPhoto:this.props.hideUploadPhotoButton&&this.props.renderCustomUploadButton?null:a.createElement(we,{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:a.createElement(mt,{dataUrl:this.props.dataUrl,enableImageRotation:this.props.enableImageRotation,fileName:this.props.fileName,personDisplayName:this.props.personDisplayName,progress:this.props.progress,warning:n,strings:this.props.strings,onError:this.props.onError,isUploadedPhotoTooSmall:function(e){return o.props.onUploadedPhotoTooSmall(e)},styles:this.props.styles,onFileSelected:this.props.onFileSelected,onRefocus:function(){return o.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)?a.createElement(Ct,{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=o.uploadFileButton)||void 0===e||e.focus()}}):null,applyButton:a.createElement(de,{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:a.createElement(de,{buttonType:"Default",buttonLabel:this.props.strings.cancel,dataLogName:"PhotoPickerCancel",onClick:this.handleOnCancelButtonClicked}),removeButton:this.props.isImageRemovable?a.createElement(de,{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,Z.neverGuard)(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}(a.Component);var Rt={absoluteScale:0,imageRotationAngle:0,xpos:0,ypos:0},Lt=function(e){return oe.reduce((function(t,o){var n;return kt(kt({},t),((n={})[o]=Number(e[o]),n))}),Rt)},Ut=function(e,t){return oe.some((function(o){return t[o].toFixed(4)!==e[o].toFixed(4)}))},Nt=function(e,t){switch(e){case"IN_PROGRESS":return.999999*Et(t/2e3);case"SUCCESS":return 1;case"READY":case"SOMETHING_WENT_WRONG":return 0;default:(0,Z.neverGuard)(e)}};var Tt=(0,r.Ng)((function(e){var t=$.getSelectors(e).getPhotoPickerState(),o=$.getSelectors(e).getEditCanvasState(),n=o.originalCanvasState,a=Pt(o,["originalCanvasState"]),i=Lt(a),r=Lt(n);return{dataUrl:t.dataUrl,initialImage:t.currentImageDataUrl,warning:t.warning,status:t.status,isCanvasDirty:t.isUpdated||Ut(r,i),isUploadedPhotoTooSmall:t.isUploadedPhotoTooSmall,progress:Nt(t.status,t.uploadDuration),latestImageStats:i,fileName:t.fileName}}),(function(e){return{onUploadedPhotoTooSmall:function(t){return e(S({isUploadedPhotoTooSmall:t}))},onDismissInfoBar:function(){return e(T())},onError:function(t){return e(R({warning:t}))},onUploadNewPhoto:function(){return e(C())},onFileSelected:function(t,o){return function(e,t,o){var n=new FileReader,a=function(){return e(R({warning:"NOT_AN_IMAGE"}))};n.onerror=a,n.onloadend=function(){var i=document.createElement("img");i.onerror=a,i.onload=function(){i.alt=t.name,e(A({dataUrl:i.src,fileName:t.name})),e(V()),o&&e(j({selectedIndex:0,newImageUrl:i.src}))},i.src=String(n.result)},n.readAsDataURL(t)}(e,t,o)},onCancel:function(){return e(y())},onClose:function(){return e(x())},onDone:function(){return e(w())},onImageEditPaneDismissed:function(){return e(I())},onImageUpdated:function(){return e(k())},onUploadProgress:function(t){return e(U({now:t}))}}}))(At),_t=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Dt=function(){return Dt=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Dt.apply(this,arguments)},Bt=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 o=document.createElement("canvas");o.width=e.naturalWidth,o.height=e.naturalHeight;var n=o.getContext("2d");n?(n.drawImage(e,0,0),t.props.onLoadedCurrentImage(l(o,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 o=document.createElement("canvas"),n=t.props.naturalMin/t.props.absoluteScale;o.width=n,o.height=n;var a=o.getContext("2d");if(!a)return t.props.onError("UNSUPPORTED_BROWSER"),"";a.fillStyle=t.props.customBackgroundColor||u,a.fillRect(0,0,o.width,o.height),t.props.image&&m(a,o.width,t.props.imageRotationAngle,t.props.orientation,t.props.image,(function(e,n){return a.drawImage(n,t.props.xpos*o.width/c,t.props.ypos*o.height/c,t.props.naturalWidth,t.props.naturalHeight)}));for(var i=1;o.width*i/4>=e;)i/=2,a.drawImage(o,0,0,o.width*i,o.height*i);var r=document.createElement("canvas"),s=Math.min(t.props.naturalMin/t.props.absoluteScale,e);r.width=s,r.height=s;var d=r.getContext("2d");return d?(d.drawImage(o,0,0,o.width*i,o.width*i,0,0,s,s),l(r,t.props.isComponentInline)):(t.props.onError("UNSUPPORTED_BROWSER"),"")},t.stopEventDefaults=function(e){e.stopPropagation(),e.preventDefault()},t}return _t(t,e),t.prototype.render=function(){return a.createElement(Tt,Dt({loadCurrentImage:this.loadCurrentImage,startUpload:this.startUpload,loadedEmptyImage:this.props.onLoadedEmptyImage,styles:this.props.styles||{}},this.props))},t}(a.Component);var Ot=(0,r.Ng)((function(e){return Dt(Dt({},$.getSelectors(e).getEditCanvasState()),$.getSelectors(e).getPhotoListState())}),(function(e){return{onError:function(t){return e(R({warning:t}))},onLoadedCurrentImage:function(t,o,n){return e(P({dataUrl:t,isSuggestedPhoto:o,isPhotoListPresent:n}))},onLoadedEmptyImage:function(t){return e(E({isPhotoListPresent:t}))},onStartUpload:function(t,o,n,a,i,r){return function(e,t,o,n,a,i,r){e(L({now:t})),i(o,(function(){e(N({dataUrl:o})),null===r||void 0===r||r(n===a.length?-1:n,a)}),(function(){return e(R({warning:"UNKNOWN"}))}))}(e,t,o,n,a,i,r)}}}))(Bt),Mt=o(79989);function Wt(){(0,Mt.v)(void 0,{disableWarnings:!0})}var zt=function(){var e=function(t,o){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])},e(t,o)};return function(t,o){if("function"!==typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=t}e(t,o),t.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Ft=function(){return Ft=Object.assign||function(e){for(var t,o=1,n=arguments.length;o<n;o++)for(var a in t=arguments[o])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},Ft.apply(this,arguments)},Vt=null,Ht=!1,jt=0,Gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return zt(t,e),t.prototype.UNSAFE_componentWillMount=function(){if(jt>=1)throw new Error("Can only mount one StandalonePhotoPicker at a time.");if(jt+=1,Ht||(Ht=!0,Wt()),null===Vt){var e=(0,i.y$)((0,n.makeReducer)([$]));Vt=new n.AppContext({reduxStore:e})}},t.prototype.componentWillUnmount=function(){jt-=1},t.prototype.render=function(){return Vt?a.createElement(n.App,{context:Vt},a.createElement(Ot,Ft({},this.props))):null},t}(a.Component)}}]);
//# sourceMappingURL=1707.b87b3e2c.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[1815],{1815:function(e,t,a){a(51216),a(91747),a(38579);var n=a(84867),r="!START",i="Ms.Web.PageView",o="Ms.Web.PageAction",c="Ms.Qos.OutgoingServiceRequest",s="Ms.Osgs.ExperimentTrigger",l="Ms.Osgs.ClientReliability",d="Ms.Webi.MeePortal.UserFeedbackV2",u=(function(){function e(t){var a=this;if(this.options=t,this.context={},this.maxResultLength=1024,this.serialize=function(){var t=Object.keys(a.context);if(!t.length)return"";for(var n=["v=1"],r=0,i=t;r<i.length;r++){var o=i[r],c=e.contextKeyMap[o]||encodeURIComponent(o),s=a.options.normalizePropertyValue&&a.options.normalizePropertyValue(o,a.context[o])||a.context[o];n.push("".concat(c,"=").concat(encodeURIComponent(s)))}var l=n.join(",");return l.length>a.maxResultLength?"":l},this.getProperty=function(e){return a.context[e]},this.setProperty=function(e,t){t&&(a.context[e]=t)},this.deleteProperty=function(e){return!!a.context[e]&&(delete a.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"}}(),a(76084)),m=a.n(u),p=-1,g=1,h=2,f=0,v=1,y=document.referrer,E=document.cookie;function w(e){var t=e||b;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||y).split("?")[0]||"")},getPageId:S,getQueryParameter:x,getCookie:k,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){m()(window).on("load",e)}}}function b(e){return e}function x(e){return function(e,t){var a=new RegExp("".concat(e,"=([^&]+)"),"i"),n=t.match(a);return n&&2===n.length?n[1]:""}(e,window.location.search)}function k(e){for(var t=e.toLowerCase(),a=E.split(";"),n=0;n<a.length;n++){var r=a[n].split("="),i=decodeURIComponent(r[0].trim().toLowerCase()),o=r.length>1?r[1]:"";if(i===t)return decodeURIComponent(o)}return""}function C(){return!!m()("meta[name='noAutoPageView']").length}function T(e){var t=document.createElement("a");return t.href=e,t}function S(){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=k("oref");if(e)y=e,function(e){var t=new Date;t.setDate(t.getDate()-1),function(e,t,a,n){void 0===n&&(n="/");var r=a;r||(r=new Date).setDate(r.getDate()+1);var i="".concat(encodeURIComponent(e),"=").concat(encodeURIComponent(t),";expires=").concat(r.toUTCString(),";path=").concat(n);document.cookie=i}(e,"",t)}("oref")})(),y=function(e,t){var a=/^https:\/\/login\.live[\-\.]/i,n=/^https:\/\/login\.microsoftonline\.com/i,r=/^https:\/\/login\.windows-ppe\.net/i,i=/^http(s?):\/\/directvisit/i,o=/\brefd=([0-9a-z\.\-]+)\b/i,c=/\brefp=([0-9a-z\.\-]+)\b/i;if(e&&!a.test(e)&&!n.test(e)&&!r.test(e)&&!i.test(e))return e;if(!t)return e;var s=t.match(o);if(!s||2!==s.length)return e;var l="https://".concat(s[1].toLowerCase(),"/"),d=t.match(c);return d&&2===d.length&&(l+=d[1].replace("-","/").toLowerCase()),l}(y,window.location.search);!function(){function e(t,a,n,r){var i=this;if(this.options=t,this.cvManager=a,this.ccManager=n,this.qosLogger=r,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 i.prepareRequest(e),i.flattenDataAndAppendAntiForgeryToken(e,p),i.sendRequest(e,i.getImpl)},this.ajaxPost=function(e){return i.prepareRequest(e),i.flattenDataAndAppendAntiForgeryToken(e,e.antiforgeryTokenBehavior),i.sendRequest(e,i.postImpl)},this.ajaxPut=function(e){return i.prepareRequest(e),i.flattenDataAndAppendAntiForgeryToken(e,e.antiforgeryTokenBehavior),i.sendRequest(e,i.putImpl)},this.ajaxDelete=function(e){return i.prepareRequest(e),i.flattenDataAndAppendAntiForgeryToken(e,e.antiforgeryTokenBehavior),i.sendRequest(e,i.delImpl)},this.getAntiForgeryToken=function(e,t){for(var a=e&&typeof e===typeof window?e:window,n=t&&"string"===typeof t?"_".concat(t.toString()):"",r="__RequestVerificationToken".concat(n),i=a.document.getElementsByTagName("input"),o=0;o<i.length;o++){var c=i[o];if("hidden"===c.type&&c.name===r)return{name:r,value:c.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.");i.mockedAjaxOps[e.toLowerCase()]=t},this.clearAjaxOperationMocks=function(){i.mockedAjaxOps={}},this.targetUriOverrideCallbackFunction=function(e){return e},this.getAntiForgeryTokenForRequest=function(e){return e.token?e.token:i.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 a=T(t.url);a.search+=(a.search?"&":"?")+"X-Requested-With=XMLHttpRequest",t.url=a.href}i.options.useJsll3xQuirks&&("auto"!==t.dataType?t.dataType=t.dataType||"json":delete t.dataType),i.cvManager.incrementCv(),t.cV=i.cvManager.getCurrentCvValue();var n=i.ccManager.serialize();n&&(void 0===t.addCvToRequestHeader||t.addCvToRequestHeader)&&(t.additionalHeaders["Correlation-Context"]=n),t.cache&&(t.noCacheBusting=!0),(i.options.overrideRequestQosData||t.overrideRequestQosData)&&(t.QosCallback=e.overrideRequestQosData.bind(i,i.options,t)),t.antiforgeryTokenBehavior||(i.isCrossDomainRequest(t)?t.antiforgeryTokenBehavior=p:i.isJsonContentType(t)&&(t.antiforgeryTokenBehavior=h))},this.flattenDataAndAppendAntiForgeryToken=function(e,t){var a=t||g,n=e.data;switch(n&&"string"!==typeof n&&(n=m().param(n)),a){case g:i.getTokenAndExecuteCommandIfTokenIsValid(e,(function(e){n=n?"".concat(n,"&"):"",n+="".concat(encodeURIComponent(e.name),"=").concat(encodeURIComponent(e.value))}));break;case h:i.getTokenAndExecuteCommandIfTokenIsValid(e,(function(t){e.additionalHeaders[encodeURIComponent(t.name)]=encodeURIComponent(t.value)}));break;case p:break;default:throw new Error("Unsupported AntiforgeryTokenBehavior: ".concat(a))}e.data=n},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(c){var a=document.createElement("a");a.href="",t=a.href}var n=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,r=n.exec(t.toLowerCase()),o=n.exec(e.url?e.url.toLowerCase():"");return!(!(o&&o.length>3&&r&&r.length>3)||o[1]===r[1]&&o[i.hostIdx]===r[i.hostIdx]&&(o[i.portIdx]||("http:"===o[1]?"80":"443"))===(r[i.portIdx]||("http:"===r[1]?"80":"443")))},this.sendRequest=function(e,t){if(e.operationName){var a=e.operationName.toLowerCase();if(i.mockedAjaxOps[a]){var n=i.mockedAjaxOps[a],r=m().Deferred();return setTimeout((function(){n(r)})),r}}return t(e)},this.postImpl=function(e){return e.method="POST",i.makeRequest(e)},this.getImpl=function(e){return e.method="GET",i.makeRequest(e)},this.putImpl=function(e){return e.method="PUT",i.makeRequest(e)},this.delImpl=function(e){return e.method="DELETE",i.makeRequest(e)},this.makeRequest=function(e){var t=i;if("function"===typeof m()){i.willChangeSupportCors&&(m().support.cors=!0);var a,n=e.additionalHeaders||{},r=e.body,o=r?JSON.stringify(r):e.data||void 0,s=e.maxRetry||0,l=0,d=e.operationName||e.url,u=e.errorFormatter||function(e){return e},p={url:e.url,type:e.method,data:o,crossDomain:!0,headers:{},success:e.success,timeout:e.timeout,error:e.error,jsonp:e.jsonp,jsonpCallback:e.jsonpCallback,cache:e.cache,beforeSend:function(r){if(e.contractVersion&&r.setRequestHeader("MS-Contract-Version",e.contractVersion),(!0===e.addCvToRequestHeader||!1!==e.addCvToRequestHeader&&t.alwaysAddCvToRequestHeader)&&t.isValid(a)&&r.setRequestHeader("MS-CV",a),n)for(var i in n)n.hasOwnProperty(i)&&r.setRequestHeader(i,n[i])}};e.dataType&&(p.dataType=e.dataType),e.noCacheBusting||(p.cache=!1),e.contentType&&(p.contentType=e.contentType),e.accept&&(p.headers.Accept=e.accept),e.accepts&&(p.accepts=e.accepts),e.async&&(p.async=e.async),e.xhrFields&&(p.xhrFields=e.xhrFields),e.complete&&(p.complete=e.complete),e.contents&&(p.contents=e.contents),e.context&&(p.context=e.context),e.dataFilter&&(p.dataFilter=e.dataFilter),e.global&&(p.global=e.global),e.ifModified&&(p.ifModified=e.ifModified),e.isLocal&&(p.isLocal=e.isLocal),e.mimeType&&(p.mimeType=e.mimeType),e.password&&(p.password=e.password),e.processData&&(p.processData=e.processData),e.scriptCharset&&(p.scriptCharset=e.scriptCharset),e.statusCode&&(p.statusCode=e.statusCode),e.traditional&&(p.traditional=e.traditional),e.type&&(p.type=e.type),e.username&&(p.username=e.username),e.xhr&&(p.xhr=e.xhr),a=i.isValid(e.cV)?e.cV:i.increment();var g=function(n,r,i){var o=n.getResponseHeader("Content-Length"),s={name:"Ms.Webi.OutgoingRequest",data:{cV:a,baseData:{operationName:e.currentOperationName,targetUri:t.targetUriOverrideCallbackFunction?t.targetUriOverrideCallbackFunction(p.url):p.url,latencyMs:i,serviceErrorCode:!r&&n.responseJSON&&n.responseJSON.code&&!isNaN(n.responseJSON.code)?n.responseJSON.code:-1,succeeded:r,requestMethod:p.type,responseContentType:p.dataType,protocolStatusCode:n.status.toString(),dependencyOperationName:d,dependencyOperationVersion:e.version&&e.version.toString(),dependencyName:e.serviceName,dependencyType:"WebService",responseSizeBytes:o&&parseInt(o,10)},baseType:c,message:r?void 0:JSON.stringify(n.errorThrown),retryCount:l,customData:e.customDataCallBack&&"function"===typeof e.customDataCallBack?JSON.stringify(e.customDataCallBack(n)):void 0}};e.QosCallback&&"function"===typeof e.QosCallback&&e.QosCallback(n,s),t.reportEvent(s.data)};return function n(){var r="".concat(d,"_Retry_").concat(l);return t.recordTimeSpan(r,!1),m().ajax(p).then((function(e,a,n){var i=t.recordTimeSpan(r,!0);return g(n,!0,i),n}),(function(i,o){var c=t.recordTimeSpan(r,!0);g(i,!1,c);var d=m().Deferred();return s>l&&(0===i.status||i.status>=t.minServerErrorStatusCode&&i.status<t.maxServerErrorStatusCode)?(l++,a=t.isValid(e.cV)?t.incrementExternal(a):t.increment(),setTimeout((function(){n().done(d.resolve).fail(d.reject)}),t.retryTimeout)):d.reject(i,o),d.promise()}))}().then((function(e,t,a){return a}),(function(t){return u(t,e)}))}},this.isValid=function(e){if(e){var t=e.split(".")[0];if(t){if(t.length===i.cv1Length)return i.validateWithCv1(e);if(t.length===i.cv2Length)return i.validateWithCv2(e)}}return!1},this.validateWithCv1=function(e){return!!(i.cv1Constants.validationPattern.test(e)&&e.length<=i.cv1Constants.maxCorrelationVectorLength)},this.validateWithCv2=function(e){return!!(i.cv2Constants.validationPattern.test(e)&&e.length<=i.cv2Constants.maxCorrelationVectorLength)},this.increment=function(){return i.cvManager.incrementCv(),i.cvManager.getCurrentCvValue()},this.incrementExternal=function(e){if(i.isValid(e)){var t=e.split("."),a=t.length;t[a-1]=(parseInt(t[a-1],10)+1).toString();for(var n="",r=0;r<a;r++)n+=t[r],r<a-1&&(n+=".");var o=t[0].length===i.cv2Length?i.cv2Constants.maxCorrelationVectorLength:i.cv1Constants.maxCorrelationVectorLength;if(n.length<=o)return n}return""},this.reportEvent=function(e){var t=e.baseData,a={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};i.qosLogger.reportOutgoingApi(a)},!t)throw new Error("options must be specified.");this.willChangeSupportCors=!1}e.prototype.getTokenAndExecuteCommandIfTokenIsValid=function(e,t){var a=this.getAntiForgeryTokenForRequest(e);a&&t(a)},e.overrideRequestQosData=function(e,t,a,n){if((n||n.data)&&(t.overrideRequestQosData||e.overrideRequestQosData)){var r=n.data.baseData,i=n.data,o={isSuccess:r&&r.succeeded,latencyMs:r&&r.latencyMs,httpStatusCode:r&&r.protocolStatusCode,serviceErrorCode:r&&r.serviceErrorCode,errorMessage:i&&i.message};o.responseStatus=a.status,o.requestTimeout=t.timeout;var c=f;t.overrideRequestQosData&&(c=t.overrideRequestQosData(t,a,o)),f===c&&e.overrideRequestQosData&&(e.overrideRequestQosData(o),c=v),v===c&&(r&&(r.succeeded=o.isSuccess,r.latencyMs=o.latencyMs,r.protocolStatusCode=o.httpStatusCode,r.serviceErrorCode=o.serviceErrorCode),i&&(i.message=o.errorMessage))}},e.prototype.recordTimeSpan=function(e,t){var a=(new Date).getTime();return t?a-this.timers[e]:void(this.timers[e]=a)}}();var A,P=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}))}},D=function(){this.serialize=function(){return""},this.getProperty=function(e){return""},this.setProperty=function(e,t){},this.deleteProperty=function(e){return!1}},I=function(){this.getCurrentCvValue=function(){return"cv.1"},this.getCorrelationVectorFormFieldName=function(){return"cv"},this.seedCv=function(e){},this.incrementCv=function(){}},_=(function(){function e(e){var t=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=t.toTelemetryProvider(),t.dom.setWindowLoadHandler(t.$notifyPageLoaded)},this.toTelemetryProvider=function(){return{cv:t.cvManager,cc:t.ccManager,qos:t,perf:t,bi:t,scenarios:t,experiments:t,ajax:t.ajaxTelemetry,utilities:t.utilities,configuration:t}},this.setCorrelationVectorManager=function(e){t.cvManager=e},this.setCorrelationContextManager=function(e){t.ccManager=e},this.setUtilityFunctions=function(e){t.utilities=e},this.setAjaxTelemetrySink=function(e){t.ajaxTelemetry=e},this.registerInitializer=function(e){t.initializers.push(e)},this.registerBiSink=function(e){t.biSinks.push(e)},this.registerQosSink=function(e){t.qosSinks.push(e)},this.registerPerfSink=function(e){t.perfSinks.push(e)},this.registerScenariosSink=function(e){t.scenariosSinks.push(e)},this.registerExperimentsSink=function(e){t.experimentsSinks.push(e)},this.registerTelemetryConfigurationUpdateSink=function(e){t.configurationUpdateSinks.push(e)},this.updateFlights=function(e){t.configurationUpdateSinks.forEach((function(t){return t.updateFlights(e)}))},this.updateUserPuid=function(e){t.configurationUpdateSinks.forEach((function(t){return t.updateUserPuid(e)}))},this.reportOutgoingApi=function(e){t.ccManager.deleteProperty("root-operation"),t.ccManager.setProperty("root-operation",e.operationName),t.reportQosOperation((function(t){return t.reportOutgoingApi(e)}))},this.reportClientError=function(e){t.reportQosOperation((function(t){return t.reportClientError(e)}))},this.reportFatalError=function(e){t.reportQosOperation((function(t){return t.reportFatalError(e)}))},this.reportRawEvent=function(e){t.reportQosOperation((function(t){return t.reportRawEvent(e)}))},this.reportViewPerformanceMetrics=function(e,a){t.reportClientPerformance((function(t){return t.reportViewPerformanceMetrics(e,a)}))},this.$notifyPageLoaded=function(){t.setExperimentData(),t.reportBiOperation((function(e){return e.$notifyPageLoaded()})),t.options.allowAutoPageView&&!t.dom.isPageOptedOutFromAutoPageView()&&t.reportPageView({url:t.dom.getLocationHref(),viewId:t.dom.getPageId()})},this.reportClick=function(e){t.executeAfterPageView((function(){return t.reportBiOperation((function(t){return t.reportClick(e)}))}))},this.reportPartialView=function(e){t.executeAfterPageView((function(){return t.reportBiOperation((function(t){return t.reportPartialView(e)}))}))},this.reportPageView=function(e){if(t.setExperimentData(),e.$hosted)t.executeAfterPageView((function(){return t.reportBiOperation((function(t){return t.reportPageView(e)}))}));else{if(t.reportBiOperation((function(t){return t.reportPageView(e)})),t.executeOnPageViewQueue.length){var a=t.executeOnPageViewQueue;t.executeOnPageViewQueue=[];for(var n=0,r=a;n<r.length;n++){(0,r[n])()}}t.pageViewOccurred=!0}},this.reportSpaPageView=function(e){t.setExperimentData(),e.$hosted?t.executeAfterPageView((function(){return t.reportSpaPageViewImpl(e)})):t.reportSpaPageViewImpl(e)},this.getDefaultPlt=function(){return function(e){var t=e.getNow().getTime(),a=e.getPerformanceTiming();return(a.domComplete||t)-(a.fetchStart||t)||0}(t.dom)},this.getCurrentLocation=function(){return t.dom.getLocationHref()},this.getCurrentReferrer=function(){return t.dom.getReferrer()},this.getCurrentPageId=function(){return t.dom.getPageId()},this.getTrafficOriginator=function(){return t.dom.getCookie("tref").toLowerCase()},this.beginScenario=function(e,a,n){return t.$beginScenario({area:e,name:a,currentStep:r,attribution:n&&n.attribution,data:n&&n.data}),a},this.beginMultiStepScenario=function(e,a,n,i){return t.$beginScenario({area:e,name:a,currentStep:r,nextStep:n,attribution:i&&i.attribution,data:i&&i.data}),a},this.endScenario=function(e){t.$completeStep({area:e.area,name:e.name,currentStep:r,nextStep:t.getVirtualStepNameForTaskResult(!1,e),successful:e.isSuccess,canceled:!1,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data,timeMsec:t.calculateScenarioTime(e)})},this.cancelScenario=function(e){t.$completeStep({area:e.area,name:e.name,currentStep:r,nextStep:t.getVirtualStepNameForTaskResult(!0,e),successful:e.isSuccess,canceled:!0,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data,timeMsec:t.calculateScenarioTime(e)})},this.endStep=function(e){t.$completeStep({area:e.area,name:e.name,isStep:!0,currentStep:e.step,nextStep:e.next,successful:e.isSuccess,canceled:!1,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data})},this.cancelStep=function(e){t.$completeStep({area:e.area,name:e.name,isStep:!0,currentStep:e.step,nextStep:e.next,successful:e.isSuccess,canceled:!0,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,data:e.data})},this.endMultiStepScenario=function(e){t.$completeStep({area:e.area,name:e.name,currentStep:e.step,nextStep:t.getVirtualStepNameForTaskResult(!1,e),successful:e.isSuccess,canceled:!1,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,timeMsec:t.calculateScenarioTime(e),data:e.data})},this.cancelMultiStepScenario=function(e){t.$completeStep({area:e.area,name:e.name,currentStep:e.step,nextStep:t.getVirtualStepNameForTaskResult(!0,e),successful:e.isSuccess,canceled:!0,error:t.getSafeStepErrorCodeValue(e.error),attribution:e.attribution,timeMsec:t.calculateScenarioTime(e),data:e.data})},this.$beginScenario=function(e){t.ccManager.deleteProperty("scenario-id"),t.ccManager.deleteProperty("scenario-step"),t.ccManager.setProperty("scenario-id",t.getCorrelationScenarioId(e)),e.nextStep&&t.ccManager.setProperty("scenario-step",e.nextStep),t.executeAfterPageView((function(){var a=t.createScenarioId(e.area,e.name);t.scenarioStartPoints[a]=t.dom.getNow().getTime(),e.attribution=t.populateScenarioAttribution(e.attribution||{}),e.market=t.options.market,e.language=t.options.language,t.reportScenarioEvent((function(t){return t.$beginScenario(e)}))}))},this.$completeStep=function(e){t.ccManager.deleteProperty("scenario-id"),t.ccManager.deleteProperty("scenario-step"),e.isStep&&(t.ccManager.setProperty("scenario-id",t.getCorrelationScenarioId(e)),e.nextStep&&t.ccManager.setProperty("scenario-step",e.nextStep)),t.executeAfterPageView((function(){e.attribution=t.populateScenarioAttribution(e.attribution||{}),e.market=t.options.market,e.language=t.options.language,t.reportScenarioEvent((function(t){return t.$completeStep(e)}))}))},this.reportExperimentTrigger=function(e){t.reportExperimentOperation((function(t){return t.reportExperimentTrigger(e)}))},this.getCorrelationScenarioId=function(e){return"".concat(e.area,".").concat(e.name)},this.executeAfterPageView=function(e){t.pageViewOccurred||t.options.$ignorePageViewQueue?e():t.executeOnPageViewQueue.push(e)},this.reportBiOperation=function(e){if(!t.initializers.length||t.initializeTelemetry((function(){return t.reportBiOperation(e)})))for(var a=0,n=t.biSinks;a<n.length;a++){var r=n[a];e(r)}},this.reportQosOperation=function(e){if(!t.initializers.length||t.initializeTelemetry((function(){return t.reportQosOperation(e)})))for(var a=0,n=t.qosSinks;a<n.length;a++){var r=n[a];e(r)}},this.reportClientPerformance=function(e){if(!t.initializers.length||t.initializeTelemetry((function(){return t.reportClientPerformance(e)})))for(var a=0,n=t.perfSinks;a<n.length;a++){var r=n[a];e(r)}},this.reportScenarioEvent=function(e){if(!t.initializers.length||t.initializeTelemetry((function(){return t.reportScenarioEvent(e)})))for(var a=0,n=t.scenariosSinks;a<n.length;a++){var r=n[a];e(r)}},this.reportExperimentOperation=function(e){if(!t.initializers.length||t.initializeTelemetry((function(){return t.reportExperimentOperation(e)})))for(var a=0,n=t.experimentsSinks;a<n.length;a++){var r=n[a];e(r)}},this.reportSpaPageViewImpl=function(e){var a=T(t.dom.getRealLocationHref()),n=t.dom.getSpaLocationHref();t.dom.setSpaPageId(e.viewId),t.dom.setSpaLocationHref("".concat(a.protocol.toLowerCase(),"//").concat(a.host.toLowerCase()).concat(function(e){var t=e||"/";return"/"!==t[0]&&(t="/".concat(t)),t}(e.path)).concat(a.search)),n&&t.dom.setSpaReferrer(n),t.reportPageView({url:t.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 a=t.createScenarioId(e.area,e.name),n=0;return t.scenarioStartPoints[a]&&(n=t.dom.getNow().getTime()-t.scenarioStartPoints[a],delete t.scenarioStartPoints[a]),n},this.getVirtualStepNameForTaskResult=function(e,t){return e?t.isSuccess?"!CANCELOK":"!CANCELFAIL":t.isSuccess?"!OK":"!FAIL"},this.getSafeStepErrorCodeValue=function(e){var a=e;return(a=(a=a||"").substr(0,t.maxErrorStringLength))&&!/^[0-9a-zA-Z-_. ]+$/.test(a)&&(a="InvalidErrorCodeValue_ReadDocumentation"),a},this.populateScenarioAttribution=function(e){var a=t.getTrafficOriginator(),n=(e.flow||t.dom.getQueryParameter("fref")).toLowerCase();return n||(n=a?"ext":"int"),a||(a="int"),e.origin=a,e.flow=n,e.owner=(e.owner||"").toLowerCase(),e},this.initializeTelemetry=function(e){if(!t.initializers.length)return!0;for(var a=[],n=0,r=t.initializers;n<r.length;n++){var i=r[n];i.initialize(t.initializationAttempt)||a.push(i)}return a.length?(t.initializationAttempt++,t.initializers=a,setTimeout(e,t.initializationAttempt*t.timeoutMultiplier),!1):(t.initializers=[],!0)},this.dom=e.dom||w(e.urlScrubber),this.cvManager=new I,this.ccManager=new D,this.ajaxTelemetry=new P,this.utilities={}}e.prototype.setExperimentData=function(){this.reportExperimentOperation((function(e){return e.setExperimentData()}))}}(),a(93205)),L=a(79697),R=a(99677),N=a(75262),M=a(18500),B=a(14371),O=a(5322),F=function(e){var t={referrerUri:ne.dom.getReferrer()};te.capturePageView(t)},V=function(e){if(ne.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&&ne.urlScrubber(e.targetUri)||ne.dom.getLocationHref(),pageName:ne.dom.getPageId(),refUri:ne.dom.getReferrer(),actionType:B.X.CLICKLEFT};te.capturePageAction(ne.dummyElement,t)}},U={reportPageView:F,reportClick:V,reportPartialView:function(e){var t={behavior:O.n.IMPRESSION,pageName:e.viewId},a={pageLoadTime:e.pltMsec};te.captureContentUpdate(t,a)},$notifyPageLoaded:function(){}},H=function(e){var t={errorInfo:(0,n.__assign)({Page:e.location,PageName:e.pageId,Script:e.script,Message:e.message,LineNumber:e.lineNumber,UserAgent:e.userAgent,flights:ne.flights},e.ext),wasDisplayed:!1,uri:ne.dom.getLocationHref(),pageName:e.pageId,market:ne.market};te.trackException({},t)},G=function(e){var t=e.content,a=t.baseData,r=(0,n.__rest)(t,["baseData"]),i={name:e.name,baseType:e.baseType,data:r,baseData:a};te.trackEvent(i)},q=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:ne.urlScrubber(e.requestUri),dependencyName:e.serviceName,dependencyOperationName:e.operationName,dependencyOperationVersion:e.operationVersion},a={errorMessage:e.errorMessage,customData:e._optionalData&&JSON.stringify(e._optionalData)||e.customData,pageName:ne.dom.getPageId(),uri:ne.dom.getLocationHref(),market:ne.market,cV:e.cV};ae.trackServiceOutgoingQos(t,a)},W={reportClientError:function(e){var t=e&&e.data&&JSON.stringify(e.data),a={location:ne.dom.getLocationHref(),pageId:ne.dom.getPageId(),script:ne.dom.getLocationHref(),message:e&&e.message||t||"unknown",userAgent:window.navigator.userAgent||""};H(a)},reportFatalError:H,reportRawEvent:G,reportOutgoingApi:q},z="awa-",j=function(){for(var e=document.getElementsByTagName("meta"),t={},a=0;a<e.length;a++){var n=e[a].name,r=e[a].content;if(n&&0===n.indexOf(z))t[n.replace(z,"")]=r}return t},Q=function(e){var t={name:s,baseType:"Ms.Content.PageView",baseData:{pageTags:{flight:e,metaTags:j()}}};te.trackEvent(t)},X={reportExperimentTrigger:Q,setExperimentData:function(){}},Y=a(50144),K=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.clickCaptureInputTypes={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},t.KeyCodes={GamePadA:195,GamePadMenu:207},t.ActionTypes={GamePadA:"CGA",GamePadMenu:"CGM"},t}return(0,n.__extends)(t,e),t.prototype.click=function(){var e=this,t=(0,Y.zk)(),a=(0,Y.YE)();if(t&&t.addEventListener){var n=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";t.addEventListener(n,(function(t){e._processClick(t)}),!1),t.addEventListener("keydown",(function(t){e._processClick(t)}),!1)}else a&&a.attachEvent&&(a.attachEvent("onclick",(function(t){e._processClick(t)})),a.attachEvent("keydown",(function(t){e._processClick(t)})))},t.prototype._processClick=function(t){var a={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=(0,Y.zk)(),r=t||(null===n||void 0===n?void 0:n.event),i=r.srcElement||r.target,o={isAuto:!0,clickCoordinateX:r.pageX,clickCoordinateY:r.pageY};if(r.keyCode===this.KeyCodes.GamePadA)o.actionType=this.ActionTypes.GamePadA;else{if(r.keyCode!==this.KeyCodes.GamePadMenu)return void e.prototype._processClick.call(this,t);o.actionType=this.ActionTypes.GamePadMenu}for(;i&&i.tagName;){if(i.control&&a[i.control.tagName.toUpperCase()]&&(i=i.control),a[i.tagName.toUpperCase()]){("INPUT"!==i.tagName.toUpperCase()||this.clickCaptureInputTypes[i.type.toUpperCase()])&&this._analyticsPlugin.capturePageAction(i,o,{});break}i=i.parentElement||i.parentNode}},t}(a(6746).O),J=function(e,t){var a={alt:ee(e),vlt:Math.round(e.loadTimeMsec),data:e.components&&e.components.map((function(e){return(0,n.__assign)((0,n.__assign)({},e.data),{componentName:e.name,startTime:Math.round(e.started),endTime:Math.round(e.ended)})})),customData:{}};t&&t.forEach((function(e){a.customData[e.name]=e.value}));var r={pageName:e.viewName||ne.dom.getPageId(),isDomComplete:!0},i={uri:ne.dom.getLocationHref(),timings:a,pageTypeForPerf:e.viewName||ne.dom.getPageId()};te.captureContentUpdate(r,i)},Z={reportViewPerformanceMetrics:J},ee=function(e){var t=e;return t.application?Math.round(t.application.loadTimeMsec):void 0},te=new _.a,ae=new M.A,ne={},re=[o,i,"Ms.Web.ContentUpdate","Ms.Web.ClientError",c,s,d,l];function ie(e,t){var a=new L.o;A=new N.A(t.seedCv);var r=t.features.join("|"),l=t.urlScrubber||b;if(ne.allowClickTracking=e.allowClickTracking,ne.flights=r,ne.urlScrubber=l,ne.dom=t.dom||w(l),ne.market=t.market,ne.dummyElement=document.createElement("div"),e.useKeydownEvent){var u=te.getWebAnalyticsExtension(),m=new K(u,u.diagLog());u.setAutoCaptureHandler(m)}var p={instrumentationKey:e.instrumentationKey,propertyConfiguration:{env:e.environment,populateBrowserInfo:!0,populateOperatingSystemInfo:!0,gpcDataSharingOptIn:oe(),callback:{userConsentDetails:function(){return window.siteConsent?window.siteConsent.getConsent():{Required:!0,Analytics:!1,Advertising:!1,SocialMedia:!1}}}},webAnalyticsConfiguration:{autoCapture:{pageView:!1,onLoad:!1,lineage:!0,click:e.allowClickTracking,scroll:e.allowScrollTracking,jsError:!1},coreData:{market:t.market,pageTags:{flight:r}},shareAuthStatus:!0,useDefaultContentName:!0,manageCv:!0,urlCollectHash:!0,urlCollectQuery:!0,isLoggedIn:e.isUserSignedIn},extensions:[a,A,ae],extensionConfig:[]},g={callback:{},appId:e.appId,enableCvHeaders:!0,disableAjaxTracking:!0,disableFetchTracking:!0};p.extensionConfig[ae.identifier]=g;var h={authType:R.h.MSA,loggedInStatusCallback:function(){return e.isUserSignedIn||!1}};p.extensionConfig[a.identifier]=h,te.initialize(p,[]),e.userPuid&&e.isUserSignedIn&&(te.getPropertyManager().getPropertiesContext().user.localId="p:".concat(e.userPuid)),window.onGPCLoaded=function(){te.getPropertyManager().getPropertiesContext().web.gpcDataSharingOptIn=oe()},te.addTelemetryInitializer((function(e){var t,a,r,u,m;if(e.baseData||(e.baseData={}),e.data||(e.data={}),re.indexOf(e.name)>-1){e.data.referrerUri=ne.dom.getReferrer(),e.data.isLoggedIn=e.baseData.isLoggedIn,e.data.isManual=e.baseData.isManual,e.baseData.pageName=ne.dom.getPageId(),e.baseData.impressionGuid=e.baseData.id;var p=e.baseData.properties.pageTags||{},g=e.baseData.pageTags||{};if(e.baseData.pageTags=(0,n.__assign)((0,n.__assign)((0,n.__assign)({},g),p),{metaTags:(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},g.metaTags),p.metaTags),j()),{pageTypeForPerf:e.data.pageTypeForPerf})}),delete e.baseData.properties.pageTags,e.name===o){e.data.refUri=l(e.data.refUri);var h=l(e.baseData.targetUri);e.baseData.targetUri=h,e.baseData.destUri=h;var f=JSON.parse(e.baseData.content||"");f=f.map((function(e){return(0,n.__assign)((0,n.__assign)({},e),{cN:e.cN?"REMOVED":void 0,srchq:e.srchq?"REMOVED":void 0})})),e.baseData.content=JSON.stringify(f)}else e.name===c?(e.baseData.targetUri=e.baseData.target,(null===(a=null===(t=e.ext)||void 0===t?void 0:t.mscv)||void 0===a?void 0:a.cV)&&e.data.overrideCv&&(e.ext.mscv.cV=e.data.overrideCv,delete e.data.overrideCv)):e.name===s||e.name===d?e.baseData.market=ne.market||"":e.name===i&&(e.baseData.name=e.baseData.pageName);e.baseData.uri=ne.dom.getLocationHref()}"Ms.Web.PageUnload"===e.name&&e.baseData.uri&&(e.baseData.uri=l(e.baseData.uri)),(null===(m=null===(u=null===(r=e.ext)||void 0===r?void 0:r.ingest)||void 0===u?void 0:u.userAgent)||void 0===m?void 0:m.appInfo)&&delete e.ext.ingest.userAgent.appInfo}))}var oe=function(){return"undefined"!==typeof GPC_DataSharingOptIn&&GPC_DataSharingOptIn},ce="awa-",se="Ms.Osgs.Scenario",le={$beginScenario:function(e){var t={name:se,data:(0,n.__assign)({uri:ne.dom.getLocationHref(),referrerUri:ne.dom.getReferrer(),pageName:ne.dom.getPageId(),area:e.area,name:e.name,step:e.currentStep,next:e.nextStep||"",type:"s"},de(e))};te.trackEvent(t);var a={behavior:O.n.STARTPROCESS,actionType:"A",contentTags:(0,n.__assign)({scn:e.name,scnstp:e.currentStep,scnnxtstp:e.nextStep},ue(e.data))};te.capturePageAction(ne.dummyElement,a)},$completeStep:function(e){var t="ef";e.canceled?t=e.successful?"cs":"cf":e.successful&&(t="es");var a={name:se,data:(0,n.__assign)({uri:ne.dom.getLocationHref(),referrerUri:ne.dom.getReferrer(),pageName:ne.dom.getPageId(),area:e.area,name:e.name,step:e.currentStep,next:e.nextStep||"",type:e.isStep?"t":"x",result:t,tmsec:e.timeMsec||0,error:e.error},de(e))};te.trackEvent(a);var r=e.isStep?O.n.PROCESSCHECKPOINT:O.n.COMPLETEPROCESS;!e.isStep&&e.canceled&&(r=O.n.SCENARIOCANCEL);var i={behavior:r,actionType:"A",contentTags:(0,n.__assign)({scn:e.name,scnstp:e.currentStep,scnnxtstp:e.nextStep,isSuccess:!!e.successful,isCancel:!!e.canceled,scnerror:e.error},ue(e.data))};te.capturePageAction(ne.dummyElement,i)}},de=function(e){var t,a,n;return{data:e.data&&JSON.stringify(e.data),origin:null===(t=e.attribution)||void 0===t?void 0:t.origin,flow:null===(a=e.attribution)||void 0===a?void 0:a.flow,owner:null===(n=e.attribution)||void 0===n?void 0:n.owner,mkt:e.market,lang:e.language}},ue=function(e){if(e){var t={};return Object.keys(e).forEach((function(a){var n=a;a.startsWith(ce)&&(n=n.replace(ce,"")),t[n]=e[a]})),t}},me={getCorrelationVectorFormFieldName:function(){return"MS-CV"},getCurrentCvValue:function(){return A.getCv().getValue()},incrementCv:function(){A.getCv().increment()},seedCv:function(e){return e?A.getCv().init(e):A.getCv().seed()}},pe={updateFlights:function(e){ne.flights=e.join("|"),te.getWebAnalyticsExtension().updateCoreDataConfig({pageTags:{flight:ne.flights}})},updateUserPuid:function(e){te.getPropertyManager().getPropertiesContext().user.localId="p:".concat(e)}};window.OneDS={initialize:ie,BiSink:U,ClientQosSink:W,CorrelationVectorManager:me,ExperimentsSink:X,ScenarioSink:le,PerformanceSink:Z,TelemetryConfigurationUpdateSink:pe},window.owap=te;var ge,he=1,fe=2,ve=3,ye=4,Ee=a(80322),we=a.n(Ee),be=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)},xe=function(){return"".concat(be()).concat(be(),"-").concat(be(),"-").concat(be(),"-").concat(be(),"-").concat(be()).concat(be()).concat(be())},ke=function(e,t,a,n){void 0===a&&(a="default"),void 0===n&&(n=void 0);var r=null===t||void 0===t?void 0:t.toLowerCase(),i=Object.keys(e).find((function(e){var t=e.toLowerCase();return r===t||n&&t.indexOf(n)>-1&&t.split(n).indexOf(r)>-1}));return e[null!==i&&void 0!==i?i:a]},Ce=[],Te=function(e){(0,Ee.useEffect)((function(){return e}),Ce)},Se=function(e){var t=(0,Ee.useRef)(!1);t.current||(t.current=!0,e())},Ae=function(){var e=navigator.userAgentData;if(e){var t=e.brands;if(t)for(var a=0;a<t.length;a++)if("microsoft edge"===t[a].brand.toLowerCase())return!0}return!1},Pe=(new Map,a(94786)),De=a.n(Pe),Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.getSnapshotBeforeUpdate=function(e){if(!e.isUpdating&&this.props.isUpdating&&document.activeElement){var t=De().findDOMNode(this);t&&t.contains(document.activeElement)&&(this.savedFocusElement=document.activeElement,ge=this)}return null},t.prototype.componentDidUpdate=function(e){if(e.isUpdating&&!this.props.isUpdating&&this.savedFocusElement){var t=De().findDOMNode(this);if(t&&document.activeElement===document.body&&ge===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 a=t.querySelector("".concat(this.savedFocusElement.tagName,'[data-bi-id="').concat(this.savedFocusElement.dataset.biId,'"]'));a&&a.focus()}this.savedFocusElement=void 0}},t.prototype.render=function(){return this.props.children},t}(we().Component),_e=JSON.parse('{"Q":"main-content-landing","$":"main-content-landing-react"}');function Le(e,t){var a=e;if(!a)return a;if(null===t||!Array.isArray(t)&&"object"!==typeof t){var n=null===t||void 0===t?"":t;a=a.replace(/\{0\}/g,n)}else a=a.replace(/\{(\w+)\}/g,(function(e,a){var n=t[a];return null===n||void 0===n?"":n}));return a}var Re=function(e){var t=function(e){for(var t=encodeURIComponent(e).toLowerCase(),a=document.cookie.split(";"),n=0;n<a.length;n++){var r=a[n].split("="),i=decodeURIComponent(r[0].trim().toLowerCase());r.shift();var o=r.join("=");if(i===t)return decodeURIComponent(o)}return""}("mock-scenarios").split(",");return e?t.filter((function(t){return 0===t.indexOf(e)})):t},Ne=/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;function Me(e){return Ne.test(e)&&!function(e){for(var t=0;t<e.length;++t)if(e.charCodeAt(t)>127)return!0;return!1}(e)}var Be=function(e,t,a){var r=encodeURIComponent(t),i=encodeURIComponent(a),o=e.split("#"),c=o[0],s=o[1],l=c.split("?"),d=l[0],u=l[1],m=[];(null===u||void 0===u?void 0:u.length)>0&&(m=null===u||void 0===u?void 0:u.split("&"));var p=m.filter((function(e){return e.split("=")[0]!==r})),g="".concat(r,"=").concat(i),h=(0,n.__spreadArray)((0,n.__spreadArray)([],p,!0),[g],!1).join("&"),f="".concat(d,"?").concat(h);return(null===s||void 0===s?void 0:s.length)>0&&(f="".concat(f,"#").concat(s)),f},Oe=function(e,t){return null!==e&&t?t.reduce((function(e,t){var a=Object.entries(t)[0],n=a[0],r=a[1];return Be(e,n,r)}),e):e};function Fe(e,t){if(!e)throw new Error("".concat(t," not found"))}var Ve,Ue=a(45),He=((0,n.__assign)((0,n.__assign)({},Ue.XZ),{billingOrderFilter:1,suiteHeaderWholeHeader:10,feedBackButton:10,suiteHeaderSkipToMainContent:1e4}),a(3200),function(e){var t,a=function(e){var t,a=localStorage.getItem(e);if(a){var n=new Date(JSON.parse(a));t=new Date(Date.now()).getTime()-n.getTime()}return t}(e);return a&&(t=Math.floor(a/864e5)),t}),Ge="prod",qe="en-US",We=document.querySelector("html > head"),ze={},je=function e(t,a){if("string"===typeof t)if(ze[t]){var n=document.head.getElementsByTagName("meta").namedItem(t);n&&(n.content=a)}else{if(null!==Qe(t))throw new Error("Metatag not added through MetatagService already exists");ze[t]=!0;var r=document.createElement("meta");r.name=t,r.content=a,We.appendChild(r)}else for(var i=t,o=0,c=Object.keys(i);o<c.length;o++){var s=c[o];e(s,i[s])}};function Qe(e){return We.getElementsByTagName("meta").namedItem(e)}!function(e){e.AlreadyRunning="alreadyRunning"}(Ve||(Ve={}));var Xe=1e3;var Ye,$e="mountStart",Ke="mountEnd",Je="updateStart",Ze="updateEnd",et="onClickNewStep",tt="onClickNoStep",at="Cancel",nt="PreScenario",rt=nt,it=!0,ot=function(e,t){return"".concat(e,"-").concat(t)},ct=function(e){return ot(e,$e)},st=function(e){return ot(e,Ke)},lt=function(e){return ot(e,Je)},dt=function(e){return ot(e,Ze)},ut=ct(nt),mt=st(nt),pt=lt(nt),gt=dt(nt);function ht(e){var t=window.performance.getEntriesByType&&window.performance.getEntriesByType("navigation");if(t&&t.length){var a=t[0],r=function(e){try{return{beforeJSTime:(e.domContentLoadedEventStart-e.startTime)/Xe,redirectTime:(e.redirectEnd-e.redirectStart)/Xe,contentDownloadTime:(e.responseEnd-e.responseStart)/Xe,TTFB:(e.responseStart-e.requestStart)/Xe,PLT:(e.loadEventStart-e.startTime)/Xe,DNS:(e.domainLookupEnd-e.domainLookupStart)/Xe,TCP:(e.connectEnd-e.connectStart)/Xe,SSL:(e.requestStart-e.secureConnectionStart)/Xe}}catch(t){return{beforeJSTime:-1,redirectTime:-1,contentDownloadTime:-1,TTFB:-1,PLT:-1,DNS:-1,TCP:-1,SSL:-1}}}(a),i=window.performance.getEntriesByType("mark").map((function(e){return JSON.stringify(e)})).toString(),o=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}}}(a);Wt((0,n.__assign)((0,n.__assign)((0,n.__assign)({name:"Ms.Webi.MeePortal.OneNavigationPerfEvent",scenarioName:Ye,successStatus:e,isFirstScenarioOnPage:it},r),o),{timeMarkers:i}))}window.performance.clearMarks&&window.performance.clearMarks(),ft(nt),it=!1}function ft(e){ut=ct(rt=e),mt=st(rt),pt=lt(rt),gt=dt(rt)}function vt(e){if(window.performance.mark){var t=function(e){return ot(e,et)}(e);window.performance.mark(t)}}function yt(){if(window.performance.mark){var e=ot(rt,tt);window.performance.mark(e)}}function Et(e){vt(e),ft(e)}var wt,bt,xt,kt,Ct,Tt="Scenario not started or already ended",St=!1,At={isReact:!0};function Pt(e){var t;St&&Wt({name:"Ms.Webi.MeePortal.ScenarioErrorEvent",message:"Scenario begin called, but Scenario '".concat(e.scenario,"' is already started"),area:e.area,scenario:e.scenario,eventType:Ve.AlreadyRunning}),Mt(e),ft(e.step),null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.beginMultiStepScenario(e.area,e.scenario,e.step,{attribution:e.attribution,data:(0,n.__assign)((0,n.__assign)((0,n.__assign)({},e.data),At),{scenarioStartTimestamp:Date.now()})})}function Dt(e){var t;if(!St)throw new Error(Tt);ft(e.step),wt.push(bt),null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.endStep(Bt(e))}function It(e){var t;if(!St)throw new Error(Tt);e&&e.step&&ft(e.step);var a=(0,n.__assign)({step:bt.step,data:bt.data},e);null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.cancelMultiStepScenario(Bt(a)),ht("error"),St=!1}function _t(e){var t;if(!St)throw new Error(Tt);e&&e.step&&ft(e.step);var a=(0,n.__assign)((0,n.__assign)({},bt.data),{timeElapsedFromScenarioStart:bt.data&&bt.data.scenarioStartTimestamp?Date.now()-bt.data.scenarioStartTimestamp:null}),r=(0,n.__assign)({step:bt.step,data:a},e);null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.endMultiStepScenario(Bt(r)),ht("success"),St=!1}function Lt(e){var t;Mt(e),ft(e.step),null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.endStep({area:e.area,name:e.scenario,step:e.fromStep,next:e.step,isSuccess:!e.error,error:e.error,attribution:e.attribution,data:(0,n.__assign)((0,n.__assign)({},e.data),At)})}function Rt(e){var t;if(!St)throw new Error(Tt);ft(e.step),null===(t=window.BradburyTelemetry)||void 0===t||t.scenarios.endStep(Bt(e)),ht("error"),St=!1}function Nt(){return St}function Mt(e){if(wt=[],function(e){if(!e)throw new Error("Performance tracking begin(): no scenario specified");Ye=e}(e.scenario),!e.area)throw new Error("no area specified");if(!e.scenario)throw new Error("no scenario specified");if(!e.step)throw new Error("Scenario '".concat(kt,"': no step specified"));xt=e.area,kt=e.scenario,Ct=e.attribution,St=!0,bt={step:e.step,data:(0,n.__assign)((0,n.__assign)({},e.data),{scenarioStartTimestamp:Date.now()})}}function Bt(e){if(!e||!e.step)throw new Error("Scenario '".concat(kt,"': next step not specified"));var t=bt.data||e.data?(0,n.__assign)((0,n.__assign)({},bt.data),e.data):{},a=bt.data?bt.data.scenarioStartTimestamp:null,r={area:xt,name:kt,attribution:Ct,data:(0,n.__assign)((0,n.__assign)((0,n.__assign)({},t),At),{timeElapsedFromScenarioStart:a?Date.now()-a:null}),step:bt.step,next:e.step,isSuccess:!e.error,error:e.error};return bt={step:r.next,data:r.data},r}var Ot=function(){var e;return null===(e=window.BradburyTelemetry)||void 0===e?void 0:e.cv.getCurrentCvValue()},Ft=function(){var e;null===(e=window.BradburyTelemetry)||void 0===e||e.cv.incrementCv()},Vt=a(47802),Ut=function(e){var t,a,r,i={name:l,baseType:l,content:{}};e.data&&e.data.error&&(e.data.error.config&&delete e.data.error.config.data,"{}"===JSON.stringify(e.data.error)&&(e.data.error=e.data.error.toString()));var o=St?kt:void 0;try{e.data=(0,n.__assign)((0,n.__assign)({},e.data),{scenario:o,devServer:null!==Qe("awa-devserver")}),r=JSON.stringify(e.data)}catch(Qo){r=JSON.stringify({isReact:!0,scenario:o,devServer:!1,errorMessage:"Unable to parse customData."})}i.content={name:e.name,uri:e.uri,referrerUri:null===(t=window.BradburyTelemetry)||void 0===t?void 0:t.bi.getCurrentReferrer(),pageName:e.pageName,area:e.area,result:e.result,durationMs:e.durationMs,kind:e.kind,data:r},null===(a=window.BradburyTelemetry)||void 0===a||a.qos.reportRawEvent(i)},Ht=function(e,t){var a;null===(a=window.BradburyTelemetry)||void 0===a||a.perf.reportViewPerformanceMetrics(e,t)},Gt=function(e,t){var a,r,i,o,c=e.httpStatusCode?e.httpStatusCode:0,s="https://request-uri-missing.com";(null===(r=null===(a=window.BradburyTelemetry)||void 0===a?void 0:a.utilities)||void 0===r?void 0:r.globalUrlScrubber)&&(s=null===(i=window.BradburyTelemetry)||void 0===i?void 0:i.utilities.globalUrlScrubber(e.requestUri));var l,d={isSuccess:void 0!==e.isSuccess?e.isSuccess:c<500,latencyMs:Math.floor(e.latency),httpStatusCode:c.toString(),serviceErrorCode:e.serviceErrorCode||-1,errorMessage:e.errorMessage,errorCode:e.errorCode,requestTimeout:e.timeout,responseStatus:c,responseDataError:e.responseDataError};!function(e,t){var a,n,r;if(!e)return;var i=f;t&&(i=t(e));i!==v&&(null===(r=null===(n=null===(a=window.BradburyTelemetry)||void 0===a?void 0:a.utilities)||void 0===n?void 0:n.overrideRequestQosData)||void 0===r||r.call(n,e))}(d,t);try{e.customData=(0,n.__assign)((0,n.__assign)({},e.customData),{devServer:null!==Qe("awa-devserver")}),l=JSON.stringify(e.customData)}catch(u){l="Unable to parse customData."}null===(o=window.BradburyTelemetry)||void 0===o||o.qos.reportOutgoingApi({cV:e.overrideCv||Ot(),currentOperationName:e.operationName,requestUri:s,latencyMs:d.latencyMs||-1,serviceErrorCode:d.serviceErrorCode,isSuccess:d.isSuccess,httpMethod:e.httpMethod,httpStatusCode:d.httpStatusCode,contentType:e.contentType,operationName:e.operationName,serviceName:e.partnerName||"MeePortal",responseSize:e.responseSize,errorMessage:d.errorMessage,operationVersion:"ReactJS",customData:l})};function qt(e,t){var a,n={path:window.location.pathname,viewId:"".concat(e,".").concat(t)};null===(a=window.BradburyTelemetry)||void 0===a||a.bi.reportSpaPageView(n)}function Wt(e){var t,a={name:e.name,content:(0,n.__rest)(e,["name"])};null===(t=window.BradburyTelemetry)||void 0===t||t.qos.reportRawEvent(a)}function zt(e){var t,a,r=e.name,i=(0,n.__rest)(e,["name"]),o=null===(t=window.MeePortal)||void 0===t?void 0:t.g_userFeatures,c={name:r,content:(0,n.__assign)((0,n.__assign)({},i),{baseData:{pageTags:{flight:(o||[]).join("|")}}})};null===(a=window.BradburyTelemetry)||void 0===a||a.qos.reportRawEvent(c)}function jt(e){var t,a,n,r,i="http://uri-missing.com";(null===(a=null===(t=window.BradburyTelemetry)||void 0===t?void 0:t.utilities)||void 0===a?void 0:a.globalUrlScrubber)&&(i=null===(n=window.BradburyTelemetry)||void 0===n?void 0:n.utilities.globalUrlScrubber(e)),Wt({name:"Ms.Webi.MeePortal.HttpUrlEvent",url:i,page:null===(r=window.BradburyTelemetry)||void 0===r?void 0:r.bi.getCurrentLocation()})}function Qt(e,t,a){var n;Wt({name:"Ms.Webi.MeePortal.ComponentErrorEvent",componentName:e,errorMessage:t,errorCount:a,page:null===(n=window.BradburyTelemetry)||void 0===n?void 0:n.bi.getCurrentLocation()})}function Xt(e,t,a){var n,r,i;Wt({name:"Ms.Webi.MeePortal.ComponentMountedEvent",componentName:t,componentId:a||"",twouiVersion:e,location:null===(n=window.BradburyTelemetry)||void 0===n?void 0:n.bi.getCurrentLocation(),pageId:null===(r=window.BradburyTelemetry)||void 0===r?void 0:r.bi.getCurrentPageId(),environment:(null===(i=null===Vt||void 0===Vt?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)||""})}var Yt="Field entirely removed due to scrub failure.",$t=["identitytoolkit.googleapis.com","www.google-analytics.com","send.emailcloudplatform.com","auth.withcarrot.com"];function Kt(e){for(var t,a,n,r,i,o,c,s,l=(null===(t=performance.getEntriesByType)||void 0===t?void 0:t.call(performance,"resource"))||[],d=null===(n=null===(a=window.BradburyTelemetry)||void 0===a?void 0:a.utilities)||void 0===n?void 0:n.globalUrlScrubber,u=null===(i=null===(r=window.BradburyTelemetry)||void 0===r?void 0:r.utilities)||void 0===i?void 0:i.resourceNameScrubber,m=null===(o=window.BradburyTelemetry)||void 0===o?void 0:o.bi.getCurrentPageId(),p=null===(c=window.BradburyTelemetry)||void 0===c?void 0:c.bi.getCurrentLocation(),g=0;g<l.length;g++){var h=l[g];try{var f=new URL(h.name),v=f.pathname.split("/"),y=v[v.length-1];if("file:"===f.protocol)continue;if($t.includes(f.hostname))continue;var E=d&&d(f.href),w=u&&u(f.pathname),b=u&&u(y),x=d&&d(f.search);Wt({name:"Ms.Webi.MeePortal.ResourceTiming",domain:f.hostname,path:w||Yt,resourceName:b||Yt,fullUrl:E||Yt,queryString:x||Yt,size:h.transferSize,duration:Math.floor(h.duration),entryType:h.entryType,initiatorType:h.initiatorType,url:p,area:e,pageName:m})}catch(k){Wt({name:"Ms.Webi.MeePortal.ResourceTiming",fullUrl:(E=d&&d(h.name))||Yt,url:p,pageName:m,area:e,error:k.message||"unknown error"})}finally{null===(s=performance.clearResourceTimings)||void 0===s||s.call(performance)}}}var Jt=function(e,t,a,n){var r=performance.now()-a;Ht({application:{loadTimeMsec:r},loadTimeMsec:r},[{name:"area",value:t},{name:"pageName",value:"app"},{name:"result",value:e},{name:"isReact",value:!0},{name:"error",value:n&&n.message},{name:"stack",value:n&&n.stack}])},Zt=a(14766);function ea(e){var t;null===(t=window.BradburyTelemetry)||void 0===t||t.bi.reportClick(e)}var ta=function(e){var t=(0,Ee.useRef)(!1);window.performance.mark&&(t.current?window.performance.mark(function(e){return"".concat(pt,"-").concat(e)}(e)):window.performance.mark(function(e){return"".concat(ut,"-").concat(e)}(e))),(0,Ee.useEffect)((function(){window.performance.mark&&(t.current?window.performance.mark(function(e){return"".concat(gt,"-").concat(e)}(e)):(window.performance.mark(function(e){return"".concat(mt,"-").concat(e)}(e)),t.current=!0))}))},aa=(0,Ee.createContext)(null),na=function(){var e=(0,Ee.useContext)(aa);if(null===e)throw new Error("ViewQosContext: Context is uninitialized. Confirm that your component is contained within a ViewQosProvider component.");return e},ra=function(e){var t=e.area,a=e.view,r=e.manualPageView,i=void 0!==r&&r,o=e.requiredComponents,c=e.autoTrackComponents,s=void 0!==c&&c,l=e.children,d=(0,Ee.useRef)({requiredComponents:o.slice(),actualComponents:[],reportedViewName:"".concat(t,".").concat(a),eventSent:!1,timeoutHandle:void 0,startTime:performance.now()}).current,u=function(){var e=new Set(d.actualComponents.map((function(e){return e.name})));return d.requiredComponents.every((function(t){return e.has(t)}))},m=function(){var e=new Set(d.actualComponents.map((function(e){return e.name})));return d.requiredComponents.filter((function(t){return!e.has(t)}))},p=function(){return d.actualComponents.filter((function(e){return e.status!==he})).map((function(e){return e.name}))},g=function(e){var a=performance.now()-d.startTime;v(d.reportedViewName,"page",e,a),y(e,a),Kt(t)},h=function(){if(!d.eventSent&&u()){d.eventSent=!0;var e=d.actualComponents.map((function(e){return e.endTime})),a=(e.length?Math.max.apply(Math,e):performance.now())-d.startTime;!function(){var e=new Set(d.actualComponents.filter((function(e){return e.status===he})).map((function(e){return e.name})));return d.requiredComponents.every((function(t){return e.has(t)}))}()?(v(d.reportedViewName,"page",fe,a),y(fe,a)):(v(d.reportedViewName,"page",he,a),y(he,a)),Kt(t),clearTimeout(d.timeoutHandle)}},f=s?function(){return setTimeout(h)}:h,v=function(e,a,r,i){var o,c={};r!==he&&(c.failedComponents=p()),r!==ye&&r!==ve||(c.missingComponents=m()),Ut({area:t,name:e,result:r,durationMs:i,uri:null===(o=window.BradburyTelemetry)||void 0===o?void 0:o.bi.getCurrentLocation(),pageName:d.reportedViewName,kind:a,data:(0,n.__assign)((0,n.__assign)({},c),{isReact:!0})})},y=function(e,a){var n=[{name:"area",value:t},{name:"pageName",value:d.reportedViewName},{name:"result",value:e},{name:"isReact",value:!0}];e!==he&&n.push({name:"failedComponents",value:p()}),e!==ye&&e!==ve||n.push({name:"missingComponents",value:m()}),Ht({loadTimeMsec:a},n)};return Se((function(){d.timeoutHandle=setTimeout((function(){d.eventSent=!0,g(ye)}),3e4),f()})),Te((function(){d.eventSent||u()||(d.eventSent=!0,clearTimeout(d.timeoutHandle),g(ve))})),we().createElement(aa.Provider,{value:{area:t,view:a,sendPageViewEvent:i?function(){qt(t,a)}:function(){console.warn("ViewQosContext: Calling sendPageViewEvent without manualPageView. This is unsupported.")},reportComponentLoaded:function(e){d.requiredComponents.includes(e.name)&&d.actualComponents.push(e),f()},addRequiredComponent:function(e){d.requiredComponents.includes(e)||d.requiredComponents.push(e)},autoTrackComponents:s}},l)},ia={},oa=(0,Ee.createContext)(null),ca=function(){var e=(0,Ee.useContext)(oa);if(null===e)throw new Error("ComponentQosContext: Context is uninitialized. Confirm that your component is contained within a ComponentQosProvider component.");return e},sa=function(e){var t,a=e.children,r=na(),i=r.area,o=r.view,c=r.addRequiredComponent,s=r.reportComponentLoaded,l=r.autoTrackComponents,d="".concat(i,".").concat(o),u=null===(t=window.BradburyTelemetry)||void 0===t?void 0:t.bi.getCurrentLocation(),m=function(e,t,a,r){void 0===r&&(r={});var o="".concat(e,":").concat(t);if(ia[o]){var c=performance.now(),l=c-ia[o].startTime;clearTimeout(ia[o].timeoutHandle),Ut({area:i,name:"".concat(i,".").concat(e,":").concat(t),result:a,durationMs:l,uri:u,pageName:d,kind:"component",data:(0,n.__assign)((0,n.__assign)({},r),{isReact:!0})}),ia[o].isInit&&s({name:e,status:a,startTime:ia[o].startTime,endTime:c}),delete ia[o]}},p=function(e,t){m(e,t,ye)},g=function(e,t){m(e,t,ve)};return(0,Ee.useEffect)((function(){return function(){Object.keys(ia).forEach((function(e){var t=e.split(":"),a=t[0],n=t[1];g(a,n)}))}}),[]),we().createElement(oa.Provider,{value:{startOperation:function(e,t,a){var n="".concat(e,":").concat(t),r=performance.now();ia[n]||(l&&a&&c(e),ia[n]={startTime:r,timeoutHandle:setTimeout((function(){p(e,t)}),3e4),isInit:a})},reportSuccess:function(e,t,a){m(e,t,he,a)},reportFailure:function(e,t,a,n){m(e,t,fe,{error:a,customData:n})},reportCancel:g}},a)},la=we().createContext(null),da=function(){var e=(0,Ee.useContext)(la);if(null===e)throw new Error("OperationStateContext: Context is uninitialized. Confirm that your component is contained within an OperationStateContext.Provider component.");return e},ua=we().createContext(null),ma=function(){var e=(0,Ee.useContext)(ua);if(null===e)throw new Error("OperationDispatchContext: Context is uninitialized. Confirm that your component is contained within an OperationDispatchContext.Provider component.");return e},pa=we().createContext(null),ga=function(e){var t=e.children,a=(0,Ee.useState)((function(){return new Map}))[0],r=da(),i=ca(),o=i.reportSuccess,c=i.reportFailure;(0,Ee.useEffect)((function(){a.forEach((function(e,t){var i=r[e.operationName];if(i){var s=(0,n.__assign)((0,n.__assign)({},i.customData),{reportedAfterUnmount:!0});switch(i.status){case"finished":o(e.componentName,e.operationName,s),a.delete(t);break;case"update-failed":case"failed":c(e.componentName,e.operationName,i.error||new Error("unspecified error"),s),a.delete(t)}}else a.delete(t)}))}),[r]);var s=(0,Ee.useMemo)((function(){return{abandon:function(e,t){return a.set("".concat(e,":").concat(t),{componentName:e,operationName:t})},claim:function(e,t){return a.delete("".concat(e,":").concat(t))}}}),[]);return we().createElement(pa.Provider,{value:s,children:t})},ha=function(e){var t,a=da();if(e.updatingView){var r=null===(t=a[e.operationData.operationName])||void 0===t?void 0:t.status;return we().createElement(Ie,{isUpdating:"updating"===r},we().createElement(fa,(0,n.__assign)({},e)))}return we().createElement(fa,(0,n.__assign)({},e))},fa=function(e){var t=e.operationData,a=e.finishedView,n=e.failedView,r=void 0===n?null:n,i=e.firstLoadView,o=void 0===i?null:i,c=e.inertView,s=void 0===c?null:c,l=e.updateFailedView,d=void 0===l?r:l,u=e.updatingView,m=void 0===u?a:u,p=da(),g=ca(),h=g.startOperation,f=g.reportSuccess,v=g.reportFailure,y=p[t.operationName],E=null===y||void 0===y?void 0:y.status,w=(0,Ee.useRef)(E);(0,Ee.useEffect)((function(){w.current=E}),[E]);var b=(0,Ee.useContext)(pa);if((0,Ee.useEffect)((function(){return b.claim(t.componentName,t.operationName),function(){"first-load"!==w.current&&"updating"!==w.current||b.abandon(t.componentName,t.operationName)}}),[t.componentName,t.operationName]),!E)return"finished"===t.defaultState?a:s;switch(E){case"updating":return h(t.componentName,t.operationName,!1),m;case"first-load":return h(t.componentName,t.operationName,!0),o;case"finished":return f(t.componentName,t.operationName,y.customData),a;case"update-failed":return v(t.componentName,t.operationName,y.error||new Error("unspecified error"),y.customData),d;case"failed":return v(t.componentName,t.operationName,y.error||new Error("unspecified error"),y.customData),r;default:return s}},va=function(e){var t=e.children,a=e.shareParentOperations,r=(0,Ee.useReducer)((function(e,t){var a;return(0,n.__assign)((0,n.__assign)({},e),((a={})[t.name]={status:t.status,error:t.error,customData:t.customData},a))}),{}),i=r[0],o=r[1];return we().createElement(we().Fragment,null,a?we().createElement(sa,null,t):we().createElement(ua.Provider,{value:o},we().createElement(la.Provider,{value:i},we().createElement(sa,null,we().createElement(ga,null,t)))))},ya=(a(32445),a(35913)),Ea=(ya.PF,a(95235)),wa=a(7093),ba=a.n(wa),xa=3e4;function ka(e,t,a,n){return void 0===a&&(a={}),Ia(e,a,t,n),_a("GET",e,t,a,Ea.A.get(e,a),n)}function Ca(e,t,a,n,r){return void 0===n&&(n={}),Ia(e,n,t,r),_a("POST",e,t,n,Ea.A.post(e,a,n),r)}function Ta(e,t,a,n,r){return void 0===n&&(n={}),Ia(e,n,t,r),_a("PUT",e,t,n,Ea.A.put(e,a,n),r)}function Sa(e,t,a,n){return void 0===a&&(a={}),Ia(e,a,t,n),_a("DELETE",e,t,a,Ea.A.delete(e,a),n)}function Aa(e,t,a){return void 0===a&&(a={}),Da(e,"DirectClientCall",t,a)}function Pa(e,t,a){return void 0===a&&(a={}),Da(new Promise((function(t,n){ba()(e,{param:a.callbackName,timeout:a.timeout||xa},(function(e,a){e?n(e):t(a)}))})),e,t,a)}function Da(e,t,a,n){var r={operationName:a.operation,requestUri:t,partnerName:a.partnerName,customData:a.customData},i=performance.now();return e.then((function(e){return n.errorField&&e[n.errorField]?Promise.reject(e[n.errorField]):(r.httpStatusCode=200,Promise.resolve(e))})).catch((function(e){return r.httpStatusCode=500,r.errorMessage=e.message?e.message.toString():e.toString(),Promise.reject(e)})).finally((function(){var e,t=performance.now();r.latency=t-i,r.timeout=null!==(e=n.timeout)&&void 0!==e?e:xa,Gt(r)}))}function Ia(e,t,a,n){var r,i,o,c;if(void 0===t.timeout&&(t.timeout=xa),t.headers||(t.headers={}),!1!==(null===n||void 0===n?void 0:n.addXRequestedWithHeader)&&(t.headers["X-Requested-With"]="XMLHttpRequest"),Ft(),!1!==(null===n||void 0===n?void 0:n.addCVHeader)&&(t.headers["MS-CV"]=Ot()),(null===n||void 0===n?void 0:n.withCredentials)&&(t.withCredentials=!0),!function(e){var t;try{t=location.href}catch(o){var a=document.createElement("a");a.href="",t=a.href}var n=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,r=n.exec(t.toLowerCase()),i=n.exec(e?e.toLowerCase():"");return!(!i||!r||i[1]===r[1]&&i[2]===r[2]&&(i[3]||("http:"===i[1]?"80":"443"))===(r[3]||("http:"===r[1]?"80":"443")))}(e)){var s=function(){for(var e="__RequestVerificationToken",t=document.getElementsByTagName("input"),a=0;a<t.length;a++){var n=t[a];if("hidden"===n.type&&n.name===e)return{name:e,value:n.value}}return null}();s&&(t.headers[s.name]=s.value)}if((null===a||void 0===a?void 0:a.operation)&&(null===(i=null===(r=window.BradburyTelemetry)||void 0===r?void 0:r.cc)||void 0===i||i.setProperty("root-operation",null!==(o=null===a||void 0===a?void 0:a.operation)&&void 0!==o?o:"")),null===(c=window.BradburyTelemetry)||void 0===c?void 0:c.cc){var l=window.BradburyTelemetry.cc.serialize();l&&!1!==(null===n||void 0===n?void 0:n.addCorrelationContextHeader)&&(t.headers["Correlation-Context"]=l)}}var _a=function(e,t,a,r,i,o){var c,s={operationName:a.operation,requestUri:t,httpMethod:e,partnerName:a.partnerName,customData:a.customData,overrideCv:null===(c=r.headers)||void 0===c?void 0:c["MS-CV"]},l=performance.now();return i.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,a,r,i,o,c=NaN,l="";return e.code&&(c=parseInt(e.code,10)||NaN,l=String(e.code)||""),"ECONNABORTED"!==l&&"ERR_NETWORK"!==e.code&&"ERR_CANCELED"!==e.code||(s.customData=(0,n.__assign)((0,n.__assign)({},s.customData),{axiosError:e})),s.serviceErrorCode=c,s.errorCode=l,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===(a=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===a?void 0:a.error)&&(s.responseDataError=null===(i=null===(r=e.response)||void 0===r?void 0:r.data)||void 0===i?void 0:i.error),e.config&&(e.config.headers={},e.config.data={}),e.response&&(e.response.headers={}),(null===(o=e.response)||void 0===o?void 0:o.config)&&(e.response.config.headers={},e.response.config.data={}),Promise.reject(e)})).finally((function(){var e,t=performance.now();s.latency=t-l,s.timeout=null!==(e=r.timeout)&&void 0!==e?e:xa,Gt(s,null===o||void 0===o?void 0:o.overrideRequestQosData)}))},La={top:-2,height:1,position:"absolute",overflow:"hidden"},Ra=function(e){var t=e.area,a=e.view,r=e.manualPageView,i=void 0!==r&&r,o=e.requiredComponents,c=e.withoutQosTracking,s=void 0!==c&&c,l=e.shareParentOperations,d=void 0!==l&&l,u=e.scrollToTopOnNav,m=void 0===u||u,p=e.routeHeader,g=e.children,h=(0,n.__rest)(e,["area","view","manualPageView","requiredComponents","withoutQosTracking","shareParentOperations","scrollToTopOnNav","routeHeader","children"]);return we().createElement(Zt.Route,(0,n.__assign)({},h,{key:"".concat(t,".").concat(a)}),p?we().createElement("div",{style:La,"aria-live":"assertive"},p):null,we().createElement(Oa,{area:t,view:a,manualPageView:i}),m?we().createElement(Ba,null):null,s?we().createElement(Ma,null,g):we().createElement(Na,{area:t,view:a,manualPageView:i,requiredComponents:o,shareParentOperations:d},g))},Na=function(e){var t=e.area,a=e.view,n=e.manualPageView,r=void 0!==n&&n,i=e.shareParentOperations,o=void 0!==i&&i,c=e.requiredComponents,s=e.children;return we().createElement(ra,{area:t,view:a,manualPageView:r,requiredComponents:c||[],autoTrackComponents:!c},we().createElement(va,{shareParentOperations:o},s))},Ma=function(e){var t=e.children;return we().createElement(we().Fragment,null,t)},Ba=function(){var e=document.getElementById(_e.Q);return(0,Ee.useLayoutEffect)((function(){e?e.scrollTop=0:window.scrollTo(0,0)}),[]),null},Oa=function(e){var t=e.area,a=e.view,n=e.manualPageView;return(0,Ee.useEffect)((function(){n?w().setSpaPageId("".concat(t,".").concat(a)):qt(t,a)}),[]),we().createElement(we().Fragment,null)},Fa=[],Va=[],Ua=!1;function Ha(e,t,a){if(!e)throw new Error("CookieManager.getCookie - name argument should not be false-y");if(ja(),t&&!Wa(a))return"";for(var n=e.toLowerCase(),r=0,i=document.cookie.split(";");r<i.length;r++){var o=i[r].split("=");if(decodeURIComponent(o[0].trim().toLowerCase())===n)return o.shift(),decodeURIComponent(o.join("="))}return""}function Ga(e){if(!e)throw new Error("CookieManager.setCookie - cookie argument should not be false-y");if(ja(),e.requiresConsent&&!Wa(e.category))return Fa=(0,n.__spreadArray)((0,n.__spreadArray)([],Fa,!0),[e],!1),!1;var t="";if(e.expiresOn){if(e.expiresOn.getTime()-Date.now()>63072e6)throw new Error("CookieManager.setCookie - cookies must expire within two years");var a=e.expiresOn.toUTCString();t=";expires=".concat(a)}var r="";e.domain&&("."!==e.domain[0]&&(e.domain=".".concat(e.domain)),r=";domain=".concat(e.domain)),e.path||(e.path="/");var i="";e.isSecure&&(i=";secure");var o=encodeURIComponent(e.name),c=encodeURIComponent(e.value),s="".concat(o,"=").concat(c).concat(t).concat(r,";path=").concat(e.path).concat(i);return document.cookie=s,e.requiresConsent&&(Va=(0,n.__spreadArray)((0,n.__spreadArray)([],Va,!0),[e],!1)),!0}function qa(e,t){if(!e)throw new Error("CookieManager.expireCookie - name argument should not e false-y");var a=new Date;a.setDate(a.getDate()-1),Ga({name:e,value:"",requiresConsent:!1,expiresOn:a,domain:t})}function Wa(e){return!window.siteConsent||window.siteConsent.getConsentFor(null!==e&&void 0!==e?e:WcpConsent.consentCategories.Required)}function za(e){var t=[],a=[];Fa.forEach((function(n){n.category===WcpConsent.consentCategories.Analytics&&e.Analytics||n.category===WcpConsent.consentCategories.Advertising&&e.Advertising||n.category===WcpConsent.consentCategories.SocialMedia&&e.SocialMedia?t.push(n):a.push(n)})),Fa=(0,n.__spreadArray)([],a,!0);var r=[],i=[];Va.forEach((function(t){t.category===WcpConsent.consentCategories.Analytics&&!e.Analytics||t.category===WcpConsent.consentCategories.Advertising&&!e.Advertising||t.category===WcpConsent.consentCategories.SocialMedia&&!e.SocialMedia?r.push(t):i.push(t)})),Va=(0,n.__spreadArray)([],i,!0),t.forEach((function(e){return Ga(e)})),r.forEach((function(e){qa(e.name)})),Fa=(0,n.__spreadArray)((0,n.__spreadArray)([],Fa,!0),r,!0),window.clarity&&e.Analytics&&window.clarity("consent")}function ja(){!Ua&&window.siteConsent&&(window.siteConsent.onConsentChanged(za),Ua=!0)}function Qa(e,t){var a;void 0===t&&(t=!0);var n,r=e.toLowerCase(),i=(null===(a=window.MeePortal)||void 0===a?void 0:a.g_userFeatures)||[];n=Ya(r)?r.substr(0,r.length-Xa.length):"".concat(r,"cf");var o=i.filter((function(e){return e.split(":")[0]===r||e.split(":")[0]===n}));return o.length>0&&t&&function(e){var t;null===(t=window.BradburyTelemetry)||void 0===t||t.experiments.reportExperimentTrigger(e)}(o.join("|")),i.some((function(e){return e.split(":")[0]===r}))}var Xa="cf",Ya=function(e){return e.substr(-Xa.length)===Xa};var $a=function(){var e=Ha("inflights",!1),t=Ha("outflights",!1),a=e?e.split(",").map((function(e){return e.toLowerCase()})):[],n=t?t.split(",").map((function(e){return e.toLowerCase()})):[];return e||t?{inflights:a,outflights:n}:void 0},Ka=a(84077),Ja="ViewportProvider",Za="Fluentv9Theming",en=["TwoUIV9Text","TwoUIV9Group2","TwoUIV9Group3","TwoUIV9CustomThemes","TwoUIV9Group4"],tn=function(e){var t=e.areaBiId,a=e.children,r=Qa("GTwouiLogging")?Xt:void 0,i=Qa(Ja),o=Qa(Za),c=Qa("XGPUPhaseTwo",!1),s=Qa("XGPUPhaseTwoComingSoon",!1);var l={areaBiId:t||"areaUndefined"},d=c||s||true?["lowerMediaImageHeight"]:[],u=i?[Ja]:[],m=o?[Za]:[],p=[];en.forEach((function(e){Qa(e)&&p.push(e)}));var g=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([],d,!0),u,!0),["exampleComponentFlight"],!1),m,!0),p,!0);return we().createElement(Ka.TwoUITelemetryProvider,{twoUITelemetryIds:l,logComponentMountEvent:r,getCv:Ot,reportClick:ea,reportHttpUrl:jt,reportComponentValidationErrorEvent:Qt,externalEntities:{operationEntities:{operationDispatchContext:ua,ExternalProgressView:ha},componentQosContext:oa},twoUIFlights:g},a)},an=function(e,t){if(!e)throw Error("inMemoryCache: null promiseCache sent to removePromiseCacheEntry");e[t]=null},nn=function(e,t,a,r){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var i,o,c,s;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:if(!e)throw Error("inMemoryCache: null promiseCache sent to fromInMemoryCache");return(i=e[t])?(null===r||void 0===r?void 0:r.reload)?[4,o=a()]:[3,2]:[3,3];case 1:n.sent(),e[t]=o,i=o,n.label=2;case 2:return[2,i];case 3:c=a(),e[t]=c,n.label=4;case 4:return n.trys.push([4,6,,7]),[4,c];case 5:return n.sent(),[3,7];case 6:throw s=n.sent(),e[t]=null,s;case 7:return[2,c]}}))}))},rn=new Set(["ERR_NETWORK","ECONNABORTED"]),on={};var cn,sn=function(e){var t,a=null!==(t=e.errorCode)&&void 0!==t?t:"";return rn.has(a)&&!function(e){return e.requestTimeout&&e.latencyMs&&e.latencyMs>=e.requestTimeout}(e)?(e.isSuccess=!0,v):f},ln=function(e){var t=e.errorMessage,a=e.errorComponent,r=(0,Ee.useState)({title:"",summary:""}),i=r[0],o=r[1];Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e;return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return[2,nn(on,"getFatalErrorContent",(function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,ka("/CmsContent/fatalError",{operation:"GetFatalErrorPageContent"},{},{overrideRequestQosData:sn})];case 1:return[2,a.sent().data];case 2:return e=a.sent(),401===(null===(t=e.response)||void 0===t?void 0:t.status)&&window.location.reload(),[2,Promise.reject(e)];case 3:return[2]}}))}))}))]}))}))];case 1:return e=t.sent(),o(e),[2]}}))}))}));try{_t({error:"ErrorComponentWrapper_unhandledException",data:{errorMessage:t||"unhandled exception"}})}catch(Qo){}return a({content:i,cv:Ot()})},dn=function(e,t){var a,n=window.BradburyTelemetry.bi.getCurrentPageId()||"unknown.unknown",r=t?t.componentStack:e.stack;!function(e){var t;null===(t=window.BradburyTelemetry)||void 0===t||t.qos.reportFatalError(e)}({location:null===(a=window.BradburyTelemetry)||void 0===a?void 0:a.bi.getCurrentLocation(),message:e?e.message:"",pageId:n,script:"",userAgent:window.navigator.userAgent||"",ext:{Area:n.split(".")[0],Stack:JSON.stringify(r),isReact:!0,devServer:null!==Qe("awa-devserver")}})},un=(0,Ee.createContext)(null),mn=function(e){var t=e.children,a=e.errorComponent,r=(0,Ee.useState)(!1),i=r[0],o=r[1],c=(0,Ee.useState)(""),s=c[0],l=c[1];return i?we().createElement(ln,{errorMessage:s,errorComponent:a}):we().createElement(un.Provider,{value:{protectedOperation:function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,e()];case 1:return[2,a.sent()];case 2:return t=a.sent(),console.error(t),o(!0),l(t.message),dn(t),[3,3];case 3:return[2,Promise.resolve(null)]}}))}))}}},t)},pn=function(e){function t(t){var a=e.call(this,t)||this;return a.resetErrorState=function(){a.setState({hasError:!1})},a.state={hasError:!1},a}return(0,n.__extends)(t,e),t.getDerivedStateFromError=function(e){return{hasError:!0,errorMessage:null===e||void 0===e?void 0:e.message}},t.prototype.componentDidMount=function(){window.addEventListener("popstate",this.resetErrorState)},t.prototype.componentDidCatch=function(e,t){dn(e,t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("popstate",this.resetErrorState)},t.prototype.render=function(){return this.state.hasError?we().createElement(ln,{errorMessage:this.state.errorMessage,errorComponent:this.props.errorComponent}):we().createElement(mn,{errorComponent:this.props.errorComponent},this.props.children)},t}(we().Component),gn=a(77801),hn=function(e){return"".concat(e,"/Acw.Read")},fn=a(77833),vn=a(65783),yn=function(e){var t,a,n=null!==(t=e.userAgent)&&void 0!==t?t:window.navigator.userAgent,r=n.indexOf("Trident/")>0||n.indexOf("Edge/")>0||n.indexOf("MSIE ")>0,i=!!e.navigateToLoginRequestUrl,o=null!==(a=e.cacheLocation)&&void 0!==a?a:"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:o,storeAuthStateInCookie:r}}},En=function(e){return"https://".concat(e.amcRedirectDomain,"/auth/complete-client-signin-oauth")},wn=a(38191),bn=(0,Ee.createContext)({signInName:""}),xn=function(e){var t=e.instance,a=e.msalAuthConfig,n=e.children;return we().createElement(wn.r7,{instance:t},we().createElement(bn.Provider,{value:a},we().createElement(Cn,null,n)))},kn=function(){var e,t=(0,wn.dk)().accounts,a=(0,Ee.useContext)(bn).signInName,n=t.find((function(e){return e.username===a}));e=(0,wn.F7)(n);var r=(0,wn.F7)(t[0]);return e||a||(e=r),e},Cn=function(e){var t=e.children,a=(0,wn.dk)().instance,n=kn();return(0,Ee.useEffect)((function(){a.setActiveAccount(n)}),[a,n]),we().createElement(we().Fragment,null,t)},Tn={operation:"GLOBAL.MSALJS.LOGIN"},Sn={operation:"GLOBAL.MSALJS.ACQUIRE-TOKEN-SILENT"},An=function(e){return Aa(e,Tn)},Pn="failed",Dn="success",In="unknown";!function(e){e.Popup="popup",e.Redirect="redirect",e.None="none"}(cn||(cn={}));var _n,Ln=function(e){var t=e.scopes,a=e.fallback,r=void 0===a?"redirect":a,i=e.shouldLoad,o=void 0!==i&&i,c=e.forceRefresh,s=void 0!==c&&c,l=kn(),d=(0,wn.dk)(),u=d.instance,m=d.inProgress,p=(0,Ee.useState)(In),g=p[0],h=p[1],f=(0,Ee.useState)(""),v=f[0],y=f[1],E=(0,Ee.useState)(),w=E[0],b=E[1],x=(0,Ee.useCallback)((function(e){h(Pn),b(e),y("")}),[]),k=(0,Ee.useCallback)((function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,u.loginRedirect({scopes:t.slice(),redirectUri:"".concat(e).concat("-redirect")})];case 1:return a.sent(),[2]}}))}))}),[u]),C=(0,Ee.useCallback)((function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,u.loginPopup({scopes:t.slice(),redirectUri:"".concat(e).concat("-popup")})];case 1:return a.sent(),[2]}}))}))}),[u]),T=(0,Ee.useCallback)((function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t,a,i,o;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:if(n.trys.push([0,7,,8]),m===fn.T$.Login||m===fn.T$.HandleRedirect)return[3,6];switch(t=u.getConfiguration(),a=t.auth,i=a.redirectUri,r){case cn.None:return[3,1];case cn.Popup:return[3,2];case cn.Redirect:return[3,4]}return[3,6];case 1:return[3,6];case 2:return[4,An(C(i,e))];case 3:case 5:return n.sent(),[3,6];case 4:return[4,An(k(i,e))];case 6:return[3,8];case 7:return o=n.sent(),x(o),[3,8];case 8:return[2]}}))}))}),[r,u,C,k,x,m]),S=(0,Ee.useCallback)((function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(a){switch(a.label){case 0:switch(e.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,T(t)];case 2:return a.sent(),[3,4];case 3:throw e;case 4:return[2]}}))}))}),[T]),A=(0,Ee.useCallback)((function(e,a){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var r,i,o;return(0,n.__generator)(this,(function(c){switch(c.label){case 0:if(r=(0,n.__spreadArray)([],e||t,!0),!l)return[3,6];i=null!==a&&void 0!==a?a:s,c.label=1;case 1:return c.trys.push([1,3,,5]),[4,(d=u.acquireTokenSilent({scopes:r,account:l,forceRefresh:i,cacheLookupPolicy:fn.nN.Default}),Aa(d,Sn))];case 2:return[2,c.sent().accessToken];case 3:return o=c.sent(),[4,S(o,r)];case 4:return c.sent(),[2];case 5:return[3,8];case 6:return[4,T(r)];case 7:return c.sent(),[2];case 8:return[2]}var d}))}))}),[l,t,s,S,u,T]),P=(0,Ee.useCallback)((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,A()];case 1:return e=a.sent(),h(Dn),y(null!==e&&void 0!==e?e:""),b(void 0),[3,3];case 2:return t=a.sent(),x(t),[3,3];case 3:return[2]}}))}))}),[A,x]);return(0,Ee.useEffect)((function(){(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return o?[4,P()]:[2];case 1:return e.sent(),[2]}}))}))}),[o,P]),{getToken:A,isAuthenticated:null!==l,accessToken:v,accessTokenAcquisitionStatus:g,error:w}},Rn=(0,Ee.createContext)(null),Nn=function(e){var t=e.children,a=e.marketizationServiceConfig;return we().createElement(Rn.Provider,{value:a},t)};function Mn(e){var t=e,a=[];return{setValue:function(e){t!==e&&(t=e,De().unstable_batchedUpdates((function(){a.forEach((function(t){return t(e)}))})))},useValue:function(){var e=function(e){var t=(0,Ee.useState)(e)[1];return(0,Ee.useCallback)((function(e){t(e)}),[])}(t);return Se((function(){a=a.concat(e)})),Te((function(){a=a.filter((function(t){return t!==e}))})),t}}}var Bn=function(){return _n.useValue()},On=a(18188),Fn=a(61249),Vn={};var Un="/auth/acquire-onbehalf-of-token",Hn="GLOBAL.OAUTH.GETTOKENS",Gn={},qn=function(e,t){return void 0===e&&(e="MSComServiceMBISSL"),void 0===t&&(t=!1),(0,n.__awaiter)(void 0,void 0,void 0,(function(){var a;return(0,n.__generator)(this,(function(r){return a=Wn(e),t&&an(Gn,a),[2,nn(Gn,a,(function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,ka(Un,{operation:Hn},{params:{scopes:e}})];case 1:return[2,t.sent().data]}}))}))}))]}))}))},Wn=function(e){return"token_".concat(e)},zn=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t,a,r;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),[4,qn(e)];case 1:return t=n.sent(),(a=jn(t))?!a.expiration||Qn(a.expiration)?[3,3]:[4,qn(e,!0)]:(function(e){an(Gn,e)}(Wn(e)),[2,Promise.reject({message:Xn(t)})]);case 2:if(t=n.sent(),!(a=jn(t)))return[2,Promise.reject({message:"No access token after reload"})];n.label=3;case 3:return[2,Promise.resolve(a)];case 4:return r=n.sent(),[2,Promise.reject(r)];case 5:return[2]}}))}))},jn=function(e){if(e&&e.length>0){var t=e[0].token,a=e[0].tokenExpiry;if(e[0].isSuccess&&t&&t.length>0&&a)return{token:t,expiration:a,scope:e[0].tokenName,type:"bearer"}}},Qn=function(e){return new Date(e).valueOf()>(new Date).valueOf()},Xn=function(e){return e&&e.length>0&&!e[0].isSuccess&&e[0].errorMessage?e[0].errorMessage:"No access token"},Yn="profile",$n="".concat(Yn,".engaged"),Kn="".concat(Yn,".unengaged"),Jn=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t,a,r,i,o;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:switch(t=function(e){var t=Ha("mock-scenarios",!1).split(",").filter((function(t){return-1!==t.indexOf(e)}));return t.length>0?t[0]:""}(Yn),t){case $n:return[2,{pictureStatus:"hasPicture",url:"https://account.microsoft.com/Resources/Images/testProfilePicture.png"}];case Kn:return[2,{pictureStatus:"noProfilePicture",url:""}]}n.label=1;case 1:return n.trys.push([1,3,,4]),e.userId&&"0"!==e.userId?[4,ka("https://graph.microsoft.com/v1.0/users/PUID:".concat(e.userId.padStart(16,"0"),"@").concat("84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa","/photo/$value"),{operation:"GLOBAL.MSGRAPH.GET.USER.PROFILEIMAGE"},{responseType:"blob",headers:{Authorization:"Bearer ".concat(e.accessToken)}})]:[2,{pictureStatus:"noUserId",url:""}];case 2:return a=n.sent(),[2,{pictureStatus:"hasPicture",url:URL.createObjectURL(a.data)}];case 3:if(r=n.sent(),(i=r).isAxiosError&&404===(null===(o=i.response)||void 0===o?void 0:o.status))return[2,{pictureStatus:"noProfilePicture",url:""}];throw i;case 4:return[2]}}))}))},Zn=function(e){var t=e.operationName,a=e.userIds,r=ma(),i=(0,Ee.useState)({}),o=i[0],c=i[1],s=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,i,o,s,l,d,u,m,p,g,h,f,v,y,E;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,3,,4]),r({name:t,status:"first-load"}),[4,zn("MSGraphUserRead")];case 1:for(e=n.sent(),i=[],o={},s=function(t){i.push(Jn({accessToken:e.token,userId:t}).then((function(e){o[t]=e})))},l=0,d=a;l<d.length;l++)u=d[l],s(u);return[4,Promise.all(i)];case 2:return n.sent(),c(o),r({name:t,status:"finished"}),[3,4];case 3:return m=n.sent(),p=m,h=null===(y=null===(v=null===(f=(g=m).response)||void 0===f?void 0:f.data)||void 0===v?void 0:v.data)||void 0===y?void 0:y.signInLink,401===(null===(E=g.response)||void 0===E?void 0:E.status)?(r({name:t,status:"finished"}),h&&(window.location.href=h)):r({name:t,status:"update-failed",error:p}),[3,4];case 4:return[2]}}))}))};return(0,Ee.useEffect)((function(){s()}),[a]),{profilePictureData:o,reloadImages:s}},er=a(688),tr=a(16542),ar=a(71630),nr={next:Dt,leave:Rt,resume:Lt,scenarioIsActive:Nt},rr={reportRawEvent:Wt},ir=(0,Ee.createContext)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},nr),rr),{isInFlight:Qa,formatDataBiId:function(e){return e}})),or=function(){return(0,Ee.useContext)(ir)},cr="amcweb",sr=function(){return we().createElement(gn.Stack,{horizontal:!1,childrenGap:16},we().createElement(gn.ShimmerLine,{width:292,height:8}),we().createElement(gn.ShimmerLine,{width:65,height:8}),we().createElement(gn.ShimmerLine,{width:336,height:8}),we().createElement(gn.ShimmerLine,{width:307,height:8}),we().createElement(gn.ShimmerLine,{width:298,height:8}),we().createElement(gn.ShimmerLine,{width:180,height:12}))},lr=function(e){return e||"error code undefined"};function dr(e){switch(e){case"AccountNotFound":case"AuthenticationFailure":case"InvalidCreditCardType":case"InvalidPaymentMethodFamilyOrType":case"InvalidCvv":case"InvalidRequestData":case"PaymentInstrumentAddAlready":case"InvalidPaymentInstrumentType":case"ValidationFailed":case"ExceedRetryMaximum":case"ExpiredCard":case"riskRejected":case"DeclinedByKlarna":case"MOAccountBarred":case"MOAccountNotEnabled":case"login_required":case"AuthTimedOut":case"networkError":case"interaction_required":case"invalid_grant":case"invalid_or_missing_json_web_token_cookie":case"ValidatePIOnAttachFailed":case"RejectedByProvider":return{isQoSImpactedError:!1,isUserError:!0,isRefreshNeeded:!1,isTryAgainNeeded:!1};case"BannedPaymentInstrument":case"InvalidOperationException":case"RedirectGenericError":return{isQoSImpactedError:!1,isUserError:!0,isRefreshNeeded:!1,isTryAgainNeeded:!0};case"InternalError":return{isQoSImpactedError:!0,isUserError:!1,isRefreshNeeded:!1,isTryAgainNeeded:!0};default:return{isQoSImpactedError:!0,isUserError:!1,isRefreshNeeded:!1,isTryAgainNeeded:!1}}}var ur="amcweb",mr="PIDL error not detected",pr="stored_value",gr="NoBackupPISelected",hr=["credit_card","direct_debit","mobile_billing_non_sim","ewallet.alipay_billing_agreement","ewallet.paypal","ewallet.inicis","ewallet.qiwi_billing_agreement","invoice_credit.klarna","finance_leasing.dell_preferred_account","ewallet.venmo","ewallet.googlepay","ewallet.applepay"],fr=["credit_card","mobile_billing_non_sim","ewallet.alipay_billing_agreement","ewallet.paypal","ewallet.venmo"];function vr(e,t,a,n){void 0===a&&(a="AMC Team");var r=encodeURIComponent(a);if(e("SvcExpiredPiTest")){switch(t){case"Select":return{"x-ms-test":'{scenarios: "'.concat("px.pims.listpi.expiredcc.success",'", contact: "').concat(r,'"}')};case"Add":case"Edit":return{"x-ms-test":'{scenarios: "'.concat("px.pims.cc.add.success",'", contact: "').concat(r,'"}')}}}if(e("SvcVenmoTest",!1))return{"x-ms-test":'{Scenarios:"PspTestScenarioViaPPS", contact: "'.concat(r,'"}')};var i={"x-ms-flight":"pidl-enable-payment-agent-challenge"};return n&&(i["x-ms-test"]='{scenarios: "'.concat(n,'", contact: "').concat(r,'"}')),e("BillUpiIndia")&&(i["x-ms-flight"]=i["x-ms-flight"].concat(",vnext,IndiaUPIEnable,PXUsePartnerSettingsService")),i}function yr(e,t){var a,n,r=e;r.error.innererror?r.error.innererror.innererror?(a=r.error.innererror.innererror.code,n=r.error.innererror.innererror.message):(a=r.error.innererror.code,n=r.error.innererror.message):(a=r.error.code,n=r.error.message);var i=dr(a).isUserError;return{name:t,errorCode:a,message:n,stack:JSON.stringify(e),isUserError:i}}function Er(e,t){return{userId:"me",authToken:'MSADELEGATE1.0="'.concat(e,'"'),additionalHeaders:t}}function wr(e,t){return{contextData:{cvInitValue:e(),scenarioId:t,partnerName:ur}}}var br="mock",xr="Succeeded",kr=["ValidVisa"];function Cr(e){switch(e){case"AmcPayNow":case"AmcPayNowBackup":case"PayNow":case"PayNowBackup":return"paynow";case"AmcProfileAddress":return"profileaddress";case"AmcChangePi":case"AmcChangeBackupPi":case"AmcManageAddressVerification":case"AmcBillingChangePi":case"AmcRenew":case"AmcRenewViaPartner":case"AmcSwitchPlan":case"AmcCancel":return"changepi";default:return"amc"}}function Tr(e,t,a,r,i,o,c){var s=[];if(t.forEach((function(e){-1===r.toLowerCase().indexOf("paynow")?s.push(e):"mobile_billing_non_sim"===e?"mobile_billing_non_sim"===c&&s.push(e):"ewallet.alipay_billing_agreement"===e?"ewallet.alipay_billing_agreement"===c&&s.push(e):s.push(e)})),"AmcChangePi"===r&&"select"===i&&s.push("ewallet.stored_value"),e("BillUpiIndia")&&s.push("real_time_payments.upi"),a&&0!==a.length){var l=[];return a.forEach((function(e){var t=e.split(".")[0];(s.indexOf(e)>-1||s.indexOf(t)>-1)&&l.push(e)})),0===l.length&&o({step:"AllowedPaymentMethodIsEmpty",error:"No allowed payment methods from intersection of Service and AMC. piInclusionTags: ".concat(a)}),l}return(0,n.__spreadArray)([],s,!0)}var Sr={main:{width:"480px"}},Ar={unit:"%",height:85},Pr=function(e){return e("PidlSuccess")||e("PidlFail")||e("PidlTimeout")||e("PidlCancel")},Dr=function(e,t,a){var r,i,o,c,s=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([],t?[(r={},r.skuid=t,r)]:[],!0),a?[(i={},i.modelId=a,i)]:[],!0),[(o={},o[e]="true",o),(c={},c.isAddPiFailed="true",c)],!1);return Oe(window.location.href,s)};var Ir=function(e,t,a,r,i){return void 0===i&&(i=!1),(0,n.__awaiter)(void 0,void 0,void 0,(function(){var o,c,s,l,d,u,m,p,g,h,f,v,y,E,w,b,x,k,C,T,S,A;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),_r(e,"OboAuthStart",i),[4,zn("pidl")];case 1:return o=n.sent(),_r(e,"OboAuthSuccess",i),[2,Promise.resolve(o)];case 2:return c=n.sent(),l=(null===(h=(s=c).response)||void 0===h?void 0:h.data.error)||"OboAuthErrorUnknown",d=!1,u=(null===(y=null===(v=null===(f=s.response)||void 0===f?void 0:f.data)||void 0===v?void 0:v.data)||void 0===y?void 0:y.message)||(null===s||void 0===s?void 0:s.message)||"UnknownAuthMessage",m=null===(b=null===(w=null===(E=s.response)||void 0===E?void 0:E.data)||void 0===w?void 0:w.data)||void 0===b?void 0:b.signInLink,p=null===(x=s.response)||void 0===x?void 0:x.status,null===(T=null===(C=null===(k=s.response)||void 0===k?void 0:k.data)||void 0===C?void 0:C.data)||void 0===T||delete T.signInLink,"networkError"!==(l=Lr(u,l))&&401!==p||(d=!0),g=function(e,t,a){return{name:"DelegateAuthError",errorCode:e,challengeStatus:"Unknown",message:t,isUserError:a}}(l,u,d),401===p?(a({name:e,status:"finished"}),r?r(g):_r(e,"AuthFail",i,l,null!==(S=s.response)&&void 0!==S?S:s,d),m&&(window.location.href=m)):(a({name:e,status:"failed",error:s}),t(g),_r(e,"OboAuthFailStart",i,l,null!==(A=s.response)&&void 0!==A?A:s,d)),[2,Promise.reject(c)];case 3:return[2]}}))}))},_r=function(e,t,a,n,r,i){void 0===a&&(a=!1),void 0===i&&(i=!1),a||Dt(n&&r?{step:"".concat(e,"AuthFail"),error:n,data:{errorDetails:r,isUserError:i}}:r?{step:"".concat(e,"AuthFail"),data:{errorDetails:r,isUserError:i}}:{step:"".concat(e).concat(t)})},Lr=function(e,t){var a=t;return e.includes("Network Error")||e.includes("Request aborted")?a="networkError":e.includes("timeout of 30000ms exceeded")&&(a="30sAuthTimeout"),a},Rr=function(e){var t=e.onSuccessCallback,a=e.onFailureCallback,r=e.onPIDLEventCallback,i=e.onLoginRequiredEventCallback,o=e.onGoHome,c=e.onReady,s=e.mockScenarios,l=e.authenticationToken,d=e.data,u=or(),m=u.next,p=u.leave,g=u.reportRawEvent,h=u.isInFlight,f=(0,Ka.useTwoUITelemetry)().getCv,v="getAccessTokenOrAddResource",y="add-resource",E=(0,Ka.useTwoUIOperationDispatcher)(),w=Tr(h,fr,d.allowedPaymentMethods,d.scenario,"add",m,d.currPiType),b=(0,Ee.useState)({}),x=b[0],k=b[1],C=(0,Ee.useState)(!1),T=C[0],S=C[1],A=(0,Ee.useState)(!1),P=A[0],D=A[1];Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t,r;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return E({name:v,status:"updating"}),l?(m({step:"AddResourceSetAuthenticationTokenFromParam"}),k(l),[3,4]):[3,1];case 1:return n.trys.push([1,3,,4]),[4,Ir(v,a,E,i)];case 2:return e=n.sent(),k(e),[3,4];case 3:return t=n.sent(),r={name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:y,message:t.toString()},g(r),[3,4];case 4:return E({name:v,status:"first-load"}),S(!0),[2]}}))}))}));var I={containerId:"pidl-container",busyBlockShowHideHandler:function(t){if(t)E({name:v,status:"updating"}),D(!1);else{try{m({step:"AddResourceView"})}catch(e){}E({name:v,status:"finished"}),D(!0),c()}},showSubmitBlock:!1},_={userId:"me",authToken:'MSADELEGATE1.0="'.concat(x.token,'"'),additionalHeaders:vr(h,"Add",s)},L={callbacks:{success:function(e){var a,n,r,i,o,c,s,l,d=e,u=null===(n=null===(a=d.response)||void 0===a?void 0:a.details)||void 0===n?void 0:n.defaultDisplayName,p=null===(o=null===(i=null===(r=d.response)||void 0===r?void 0:r.details)||void 0===i?void 0:i.paymentMethod)||void 0===o?void 0:o.paymentMethodType,g=null===(l=null===(s=null===(c=d.response)||void 0===c?void 0:c.paymentMethod)||void 0===s?void 0:s.properties)||void 0===l?void 0:l.soldToAddressRequired;u||m({step:"AddResourceMissingPaymentName",error:"No payment default display name returned from PIDL."}),m({step:"AddResourceSuccess",data:{paymentType:p}}),t(d.id,u,g,p)},failure:function(e){m({step:"AddResourceFail",data:{errorDetails:e}}),D(!1);var t=yr(e,"AddResourceFail");E({name:v,status:"failed",error:t}),a(t)},gohome:o},urls:{success:d.redirectSuccessUrl,failure:d.redirectFailureUrl}},R=function(e,t){var a;if(e===tr.pidl.internal.constants.eventNames.navigate&&t.piRedirection&&(window.open(t.url,"_self"),function(e){e({step:"AddPiLeave"})}(p)),e===tr.pidl.internal.constants.eventNames.pidlDownloading&&E({name:v,status:"updating"}),e===tr.pidl.internal.constants.eventNames.pageRefreshed&&(m({step:"AddResourceView"}),E({name:v,status:"finished"}),c()),e===tr.pidl.internal.constants.eventNames.pageRefreshed||e===tr.pidl.internal.constants.eventNames.selectionChanged){var n=null===(a=d.ref.current)||void 0===a?void 0:a.getNextButtonProps();"moveNext"===(null===n||void 0===n?void 0:n.type)?r&&(r(!1),m({step:"AddResourceForNextAction"})):r&&(r(!0),m({step:"AddResourceForNonNextAction"}))}e===tr.pidl.internal.constants.eventNames.selectionChanged&&"paymentMethod"===t.displayId&&m({step:"AddResourceSelectionChanged",data:{piDetails:t.propertyValue}})},N={parameters:{partner:cr,market:d.market,language:d.language,allowedPaymentMethods:w,currency:d.transactionCurrency,billableAccountId:d.billableAccountId,filters:{exclusionTags:d.exclusionTags,chargeThreshold:d.transactionAmount},scenario:Cr(d.scenario),completePrerequisites:!0},resourceType:"PaymentInstrument"},M=function(){var e=Ha("GRNID",!1);return""===e?void 0:{riskData:{greenId:e}}},B=we().useMemo((function(){return x.token?we().createElement(ar.AddPaymentInstrument,{ref:d.ref,displayOptions:I,userContext:_,env:d.env,returnOptions:L,pidlDocInfo:N,elementFactory:new er.FluentUIElementFactory,onEvent:R,telemetryOptions:wr(f,d.scenario),options:M()}):we().createElement(we().Fragment,null)}),[x]);return we().createElement(we().Fragment,null,we().createElement(gn.ShimmerProgressView,{operationData:{componentName:y,operationName:v},firstLoadView:we().createElement(we().Fragment,null),updatingView:we().createElement(sr,null),finishedView:we().createElement(we().Fragment,null),failedView:we().createElement(sr,null)}),T?we().createElement("div",{style:{display:P?"":"none"}},B):we().createElement(we().Fragment,null))},Nr=function(e){var t=e.onSuccessCallback,a=e.onFailureCallback,r=e.onGoHome,i=e.onReady,o=e.onLoginRequiredEventCallback,c=e.mockScenarios,s=e.authenticationToken,l=e.data,d=or(),u=d.next,m=d.reportRawEvent,p=d.isInFlight,g=(0,Ka.useTwoUITelemetry)().getCv,h="getAccessTokenOrEditResource",f="edit-resource",v=(0,Ka.useTwoUIOperationDispatcher)(),y=(0,Ee.useState)({}),E=y[0],w=y[1],b=(0,Ee.useState)(!1),x=b[0],k=b[1],C=(0,Ee.useState)(!1),T=C[0],S=C[1];Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t,r;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return v({name:h,status:"updating"}),s?(u({step:"EditResourceSetAuthenticationTokenFromParam"}),w(s),[3,4]):[3,1];case 1:return n.trys.push([1,3,,4]),[4,Ir(h,a,v,o)];case 2:return e=n.sent(),w(e),[3,4];case 3:return t=n.sent(),r={name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:f,message:t.toString()},m(r),[3,4];case 4:return v({name:h,status:"first-load"}),k(!0),[2]}}))}))}));var A={containerId:"pidl-container",busyBlockShowHideHandler:function(e){e?(v({name:h,status:"updating"}),S(!1)):(u({step:"EditResourceView"}),v({name:h,status:"finished"}),S(!0),i())},showSubmitBlock:!1},P={userId:"me",authToken:'MSADELEGATE1.0="'.concat(E.token,'"'),additionalHeaders:vr(p,"Edit",c)},D={callbacks:{success:function(e){var a,n,r,i,o,c=e,s=null===(n=null===(a=c.response)||void 0===a?void 0:a.details)||void 0===n?void 0:n.defaultDisplayName,l=null===(o=null===(i=null===(r=c.instance)||void 0===r?void 0:r.paymentMethod)||void 0===i?void 0:i.properties)||void 0===o?void 0:o.soldToAddressRequired;s||u({step:"EditResourceMissingPaymentName",error:"No payment default display name returned from PIDL."}),u({step:"EditResourceSuccess"}),t(c.id,s,l)},failure:function(e){u({step:"EditResourceFail",data:{errorDetails:e}});var t=yr(e,"EditResourceFail");v({name:h,status:"failed",error:t}),a(t)},gohome:r}},I={parameters:{partner:cr,market:l.market,language:l.language,allowedPaymentMethods:l.allowedPaymentMethods,currency:l.transactionCurrency,billableAccountId:l.billableAccountId,filters:{exclusionTags:l.exclusionTags,chargeThreshold:l.transactionAmount},family:l.piFamily,type:l.piType,scenario:Cr(l.scenario)},resourceType:"PaymentInstrument"},_={resourceType:"PaymentInstrument",parameters:{},id:l.piid},L=we().useMemo((function(){return E.token?we().createElement(ar.EditPaymentInstrument,{ref:l.ref,displayOptions:A,userContext:P,env:l.env,returnOptions:D,pidlDocInfo:I,elementFactory:new er.FluentUIElementFactory,resourceInfo:_,telemetryOptions:wr(g,l.scenario)}):we().createElement(we().Fragment,null)}),[E]);return we().createElement(we().Fragment,null,we().createElement(gn.ShimmerProgressView,{operationData:{componentName:f,operationName:h},firstLoadView:we().createElement(we().Fragment,null),updatingView:we().createElement(sr,null),finishedView:we().createElement(we().Fragment,null),failedView:we().createElement(sr,null)}),x?we().createElement("div",{style:{display:T?"":"none"}},L):we().createElement(we().Fragment,null))},Mr=a(72357),Br=function(e,t,a,r){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var i,o;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),(0,Mr.initializeResources)(),[4,Mr.PaymentAgent.initAsync(ur,wr(r),void 0,t)];case 1:return n.sent(),[3,3];case 2:return i=n.sent(),o={name:"Ms.Webi.MeePortal.PaymentAgentInitErrorEvent",componentName:e,message:i.toString()},a(o),[3,3];case 3:return[2]}}))}))},Or=function(){var e=(0,gn.useViewport)(),t=(0,gn.isMobileViewport)(e)?327:415;return we().createElement(we().Fragment,null,we().createElement(gn.Stack,{horizontal:!0,backgroundColor:"neutralMed",width:t,height:65,childrenGap:16,padding:"12px 11px 11px 49px"},we().createElement(gn.StackItem,null,we().createElement(gn.ShimmerLine,{width:40,height:42})),we().createElement(gn.StackItem,{padding:"16px 0 28px 0"},we().createElement(gn.ShimmerLine,{width:211,height:8}))),we().createElement(gn.Stack,{horizontal:!0,backgroundColor:"neutralMed",width:t,height:65,margin:"5px 0 0 0",childrenGap:16,padding:"12px 11px 11px 49px"},we().createElement(gn.StackItem,null,we().createElement(gn.ShimmerLine,{width:40,height:42})),we().createElement(gn.StackItem,{padding:"16px 0 28px 0"},we().createElement(gn.ShimmerLine,{width:162,height:8}))),we().createElement(gn.Stack,{horizontal:!0,backgroundColor:"neutralMed",width:t,height:65,margin:"5px 0 5px 0",childrenGap:16,padding:"12px 11px 11px 49px"},we().createElement(gn.StackItem,null,we().createElement(gn.ShimmerLine,{width:40,height:42})),we().createElement(gn.StackItem,{padding:"16px 0 28px 0"},we().createElement(gn.ShimmerLine,{width:211,height:8}))),we().createElement(gn.Stack,{horizontal:!0,backgroundColor:"neutralMed",width:t,height:65,childrenGap:16,padding:"12px 11px 11px 49px"},we().createElement(gn.StackItem,{padding:"16px 0 28px 0"},we().createElement(gn.ShimmerLine,{width:223,height:8}))))},Fr=function(e){var t=e.onSuccessCallback,a=e.onFailureCallback,r=e.onAddPiClickedCallback,i=e.onUpdatePiClickedCallback,o=e.onReady,c=e.onPIDLEventCallback,s=e.onLoginRequiredEventCallback,l=e.mockScenarios,d=e.authenticationToken,u=e.data,m=or(),p=m.next,g=m.reportRawEvent,h=m.isInFlight,f=(0,Ka.useTwoUITelemetry)().getCv,v="getAccessTokenOrSelectPaymentResource",y="pi-selector",E=(0,Ka.useTwoUIOperationDispatcher)(),w=Tr(h,hr,u.allowedPaymentMethods,u.scenario,"select",p,u.currPiType),b=(0,Ee.useState)({}),x=b[0],k=b[1],C=(0,Ee.useState)(!1),T=C[0],S=C[1],A=(0,Ee.useState)(!1),P=A[0],D=A[1];Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t,r,i,o;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:E({name:v,status:"updating"}),n.label=1;case 1:return n.trys.push([1,6,,7]),d?[4,Br(y,u.env,g,f)]:[3,3];case 2:return n.sent(),p({step:"SetAuthenticationTokenFromParam"}),k(d),[3,5];case 3:return e=Ir(v,a,E,s),t=Br(y,u.env,g,f),[4,Promise.all([e,t])];case 4:r=n.sent()[0],k(r),n.label=5;case 5:return[3,7];case 6:return i=n.sent(),o={name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:y,message:i.toString()},g(o),[3,7];case 7:return E({name:v,status:"first-load"}),S(!0),[2]}}))}))}));var I=function(e,t){t===gr||e||p({step:"PiSelectorMissingPaymentName",error:"No payment default display name returned from PIDL."})},_={containerId:"pidl-container",busyBlockShowHideHandler:function(t){if(t)E({name:v,status:"updating"}),D(!1);else{try{p({step:"PiSelectorView"})}catch(e){}E({name:v,status:"finished"}),D(!0),o()}},showSubmitBlock:!1},L={userId:"me",authToken:'MSADELEGATE1.0="'.concat(x.token,'"'),additionalHeaders:vr(h,"Select",l)},R={callbacks:{success:function(e){var a,n,o,c,s,l,d,u,m,g,h,f,v,y=e,E=y.id,w=null===(n=null===(a=y.resourceActionContext)||void 0===a?void 0:a.pidlDocInfo)||void 0===n?void 0:n.parameters.family,b=null===(c=null===(o=y.resourceActionContext)||void 0===o?void 0:o.pidlDocInfo)||void 0===c?void 0:c.parameters.type,x=null===(l=null===(s=y.instance)||void 0===s?void 0:s.details)||void 0===l?void 0:l.defaultDisplayName,k=null===(m=null===(u=null===(d=y.instance)||void 0===d?void 0:d.paymentMethod)||void 0===u?void 0:u.properties)||void 0===m?void 0:m.soldToAddressRequired;if(y.resourceActionContext&&y.resourceActionContext.action){var C=y.resourceActionContext.action;if("addPaymentInstrument"===C){var T=null!==(g=y.partnerHints&&y.partnerHints.triggeredBy)&&void 0!==g?g:"empty";p({step:"AddResource-".concat(T)}),r(T)}else if("editPaymentInstrument"===C){T=null!==(h=y.partnerHints&&y.partnerHints.triggeredBy)&&void 0!==h?h:"submitGroup";p({step:"UpdateResource-".concat(T)}),i(E,w,b,T)}else I(x,E),p({step:"PiSelected"}),t(E,x,k,b)}else{var S=null===(v=null===(f=y.instance)||void 0===f?void 0:f.paymentMethod)||void 0===v?void 0:v.paymentMethodType;I(x,E),p({step:"PiSelected"}),t(E,x,k,S)}},failure:function(e){p({step:"PiSelectedFail",data:{errorDetails:e}});var t=yr(e,"SelectPiFail");E({name:v,status:"failed",error:t}),a(t)}}},N={parameters:{partner:cr,market:u.market,language:u.language,allowedPaymentMethods:w,currency:u.transactionCurrency,billableAccountId:u.billableAccountId,filters:{exclusionTags:u.exclusionTags,chargeThreshold:u.transactionAmount,splitPaymentSupported:u.splitPaymentSupported,isBackupPiOptional:u.isBackupPiOptional,id:u.piid},scenario:Cr(u.scenario)},resourceType:"PaymentInstrument"},M=function(e){var t,a,n,r;if("selectionChanged"===e){var i=null===(a=null===(t=u.ref)||void 0===t?void 0:t.current)||void 0===a?void 0:a.getSelectedResource(),o=null===i||void 0===i?void 0:i.instance;i?i.resourceActionContext&&"editPaymentInstrument"===i.resourceActionContext.action?c&&(p({step:"PiSelectorExpiredPiSelected",data:{paymentFamily:null===(n=null===o||void 0===o?void 0:o.paymentMethod)||void 0===n?void 0:n.paymentMethodFamily,paymentType:null===(r=null===o||void 0===o?void 0:o.paymentMethod)||void 0===r?void 0:r.paymentMethodType}}),c(!0,i.id)):i.id===gr?c&&(p({step:"PiSelectorNoBackupPiSelected"}),c(!1,i.id)):c&&(p({step:"PiSelectorNonExpiredPiSelected",data:{paymentFamily:o.paymentMethod.paymentMethodFamily,paymentType:o.paymentMethod.paymentMethodType}}),c(!1,i.id)):p({step:"PiSelectorChangePIFailed",error:"resourceNotDefined",data:{isUserError:!0}})}},B=we().useMemo((function(){return x.token?we().createElement(we().Fragment,null,we().createElement(ar.SelectPaymentInstrument,{displayOptions:_,userContext:L,env:u.env,returnOptions:R,pidlDocInfo:N,elementFactory:new er.FluentUIElementFactory,telemetryOptions:wr(f,u.scenario),ref:u.ref,onEvent:M})):we().createElement(we().Fragment,null)}),[x]);return we().createElement(we().Fragment,null,we().createElement(gn.ShimmerProgressView,{operationData:{componentName:y,operationName:v},firstLoadView:we().createElement(we().Fragment,null),updatingView:we().createElement(Or,null),finishedView:we().createElement(we().Fragment,null),failedView:we().createElement(Or,null)}),T?we().createElement("div",{style:{display:P?"":"none"}},B):we().createElement(we().Fragment,null))},Vr=(0,Ee.forwardRef)((function(e,t){var a=e.market,r=e.language,i=e.paymentId,o=e.billingId,c=e.environment,s=e.transactionAmount,l=e.transactionCurrency,d=e.allowedPaymentMethods,u=e.exclusionTags,m=e.splitPaymentSupported,p=e.isBackupPiOptional,g=e.scenario,h=e.initialState,f=e.currPiType,v=e.returnUrl,y=e.redirectFailureUrl,E=e.onReadyCallback,w=e.onStateChangeCallback,b=e.onSuccessCallback,x=e.onFailureCallback,k=e.onSelectorEventCallback,C=e.onAddResourceEventCallback,T=e.onLoginRequiredEventCallback,S=e.selectPaymentInstrumentRef,A=e.addResourceRef,P=e.editResourceRef,D=e.authenticationToken,I=or().next,_=null!==h&&void 0!==h?h:"Select",L=(0,Ee.useState)(_),R=L[0],N=L[1],M=(0,Ee.useState)(""),B=M[0],O=M[1],F=(0,Ee.useState)(""),V=F[0],U=F[1],H=(0,Ee.useState)(""),G=H[0],q=H[1],W=(0,Ee.useState)(""),z=W[0],j=W[1],Q=(0,Ee.useState)(""),X=Q[0],Y=Q[1],$=(0,Ee.useState)(""),K=$[0],J=$[1],Z=(0,Ee.useState)(!1),ee=Z[0],te=Z[1],ae=function(){N("Select"),w("Select")},ne=function(){N("SelectBackup"),w("SelectBackup")};(0,Ee.useImperativeHandle)(t,(function(){return{goToPickerState:ae,goToPickerBackupState:ne}}));var re=function(){N("Select")},ie=function(){N("SelectBackup")},oe=function(e,t){I({step:"".concat(e,"-").concat(t)}),N(e),w&&w(e,t)},ce=function(e,t,a,n,r){O(e),U(t),q(a),I({step:"".concat(n,"-").concat(r)}),N(n),w&&w(n,r)},se=function(e,t,a,n){b(z,X,ee,e,t,n,K)},le={onSuccessCallback:function(e,t,a,n){if(n===pr){j(e),Y(t),te(a),J(pr);var r="SelectBackup";I({step:r}),N(r),w&&w(r)}else b(e,t,a)},onFailureCallback:x,onAddPiClickedCallback:function(e){oe("Add",e)},onUpdatePiClickedCallback:function(e,t,a,n){ce(e,t,a,"Edit",n)},onReady:E,onPIDLEventCallback:k,onLoginRequiredEventCallback:T,data:{market:a,language:r,piid:i,billableAccountId:o,env:c,transactionAmount:s,transactionCurrency:l,allowedPaymentMethods:d,exclusionTags:u,splitPaymentSupported:m,isBackupPiOptional:p,currPiType:f,scenario:g,returnUrl:v,ref:S},authenticationToken:D},de={onSuccessCallback:function(e,t,a,n){b(z,X,ee,e,t,n,K)},onFailureCallback:x,onAddPiClickedCallback:function(e){oe("AddBackup",e)},onUpdatePiClickedCallback:function(e,t,a,n){ce(e,t,a,"EditBackup",n)},onReady:E,onPIDLEventCallback:k,onLoginRequiredEventCallback:T,data:{market:a,language:r,piid:i,billableAccountId:o,env:c,transactionAmount:s,transactionCurrency:l,allowedPaymentMethods:d,exclusionTags:u,splitPaymentSupported:!0,isBackupPiOptional:!1,scenario:g,returnUrl:v,ref:S},authenticationToken:D},ue="Select"===R?we().createElement(Fr,(0,n.__assign)({},le)):we().createElement(we().Fragment,null),me="SelectBackup"===R?we().createElement(Fr,(0,n.__assign)({},de)):we().createElement(we().Fragment,null),pe={market:a,language:r,env:c,billableAccountId:o,transactionAmount:s,transactionCurrency:l,allowedPaymentMethods:d,exclusionTags:u,currPiType:f,scenario:g,returnUrl:v,redirectSuccessUrl:v,redirectFailureUrl:y,ref:A},ge={onSuccessCallback:b,onFailureCallback:x,onPIDLEventCallback:C,onGoHome:re,onReady:E,onLoginRequiredEventCallback:T,data:pe,authenticationToken:D},he="Add"===R?we().createElement(Rr,(0,n.__assign)({},ge)):we().createElement(we().Fragment,null),fe={onSuccessCallback:se,onFailureCallback:x,onPIDLEventCallback:C,onGoHome:ie,onReady:E,onLoginRequiredEventCallback:T,data:pe,authenticationToken:D},ve="AddBackup"===R?we().createElement(Rr,(0,n.__assign)({},fe)):we().createElement(we().Fragment,null),ye={market:a,language:r,env:c,piid:B,piFamily:V,piType:G,transactionAmount:s,transactionCurrency:l,allowedPaymentMethods:d,exclusionTags:u,scenario:g,returnUrl:v,ref:P},be={onSuccessCallback:b,onFailureCallback:x,onGoHome:re,onReady:E,onLoginRequiredEventCallback:T,data:ye,authenticationToken:D},xe="Edit"===R?we().createElement(Nr,(0,n.__assign)({},be)):we().createElement(we().Fragment,null),ke={onSuccessCallback:se,onFailureCallback:x,onGoHome:ie,onReady:E,onLoginRequiredEventCallback:T,data:ye,authenticationToken:D},Ce="EditBackup"===R?we().createElement(Nr,(0,n.__assign)({},ke)):we().createElement(we().Fragment,null);return we().createElement(we().Fragment,null,ue,me,he,ve,xe,Ce)})),Ur=function(e){var t=e.error,a=e.onClose,r=e.operationData,i=e.strings,o="".concat(r.componentName,"-error-dialog"),c=function(e,t){var a,r;switch(t){case"AccountNotFound":a=e.accountNotFoundTitle,r=e.accountNotFoundText;break;case"InvalidCreditCardType":a=e.invalidCreditCardTypeTitle,r=e.invalidCreditCardTypeText;break;case"InvalidPaymentMethodFamilyOrType":a=e.invalidPaymentMethodFamilyOrTypeTitle,r=e.invalidPaymentMethodFamilyOrTypeText;break;case"PaymentInstrumentAddAlready":a=e.paymentInstrumentAddAlreadyTitle,r=e.paymentInstrumentAddAlreadyText;break;case"InvalidPaymentInstrumentType":a=e.invalidPaymentInstrumentTypeTitle,r=e.invalidPaymentInstrumentTypeText;break;case"ValidationFailed":a=e.validationFailedTitle,r=e.validationFailedText;break;case"ExceedRetryMaximum":a=e.exceededRetryMaximumTitle,r=e.exceededRetryMaximumText;break;case"DeclinedByKlarna":a=e.declinedByKlarnaTitle,r=e.declinedByKlarnaText;break;case"RedirectGenericError":a=e.redirectGenericErrorTitle,r=e.redirectGenericErrorText;break;case"BannedPaymentInstrument":a=e.bannedPaymentInstrumentErrorTitle,r=e.bannedPaymentInstrumentErrorText;break;default:a=e.addEditPaymentOptionErrorTitle,r=e.addEditPaymentOptionErrorText}return(0,n.__assign)((0,n.__assign)({},dr(t)),{errorTitle:a,errorMessage:r,errorCode:t})}(i,t.errorCode),s=c.errorTitle,l=c.errorMessage,d=c.buttonText,u=void 0===d?i.close:d,m="string"===typeof l?we().createElement(gn.Text,null,l):we().createElement(gn.RichText,(0,n.__assign)({},l));return we().createElement(gn.Dialog,{isOpen:!0,onDismiss:a,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:s,closeButton:{"data-bi-id":"".concat(o,"-close"),"aria-label":i.close},dialogFooterProps:{buttonPrimary:{onClick:a,text:u,"aria-label":u,"data-bi-id":"".concat(o,"-primary-btn")}},minBodyHeight:Ar,dialogStylesTemp:Sr},we().createElement(gn.Stack,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24},we().createElement(gn.Image,{imageFit:"contain",height:"56px",width:"56px",imageType:"ariaHiddenImage",src:i.failureImageSrc}),m))},Hr="PiPickerDialogError",Gr=function(e){return"AddBackup"===e||"EditBackup"===e||"SelectBackup"===e};function qr(e){return"object"===typeof e?we().createElement(gn.RichText,(0,n.__assign)({},e)):we().createElement(we().Fragment,null,e)}var Wr=function(e){var t,a,r,i=e.piPickerParams,o=e.initialPrimaryPi,c=e.initialBackupPi,s=e.strings,l=e.operationData,d=e.dialogParams,u=e.onSuccess,m=e.onCancel,p=e.onFailure,g=or(),h=g.next,f=g.isInFlight,v=null===(t=e.isChecked)||void 0===t||t,y=l.componentName,E=l.operationName,w=(0,Ka.useTwoUIOperationDispatcher)(),b=(0,gn.useDialogController)(),x=(0,Ee.useState)({piPickerState:"Select",triggeredBy:void 0,addPiSubState:"Save"}),k=x[0],C=x[1],T=(0,Ee.useState)(o),S=T[0],A=T[1],P=(0,Ee.useState)(c),D=P[0],I=P[1],_={piPickerRef:(0,Ee.useRef)(null),selectRef:(0,Ee.useRef)(null),addRef:(0,Ee.useRef)(null),editRef:(0,Ee.useRef)(null)},L="Select"===k.piPickerState&&(null===S||void 0===S?void 0:S.isExpired)||"SelectBackup"===k.piPickerState&&(null===D||void 0===D?void 0:D.isExpired)||"Edit"===k.piPickerState||"EditBackup"===k.piPickerState,R=function(){h({step:"CancelPiPickerDialog"}),m()},N=function(e){b.switchToDialog(we().createElement(Ur,{error:e,strings:(0,n.__assign)((0,n.__assign)({},s.addEditPiError),{close:s.close,failureImageSrc:s.failureImageSrc}),operationData:l,onClose:function(){p(e)}}))},M=(0,n.__assign)((0,n.__assign)({isBackupPiOptional:!1},i),{paymentId:Gr(k.piPickerState)?null===D||void 0===D?void 0:D.id:null===S||void 0===S?void 0:S.id,onReadyCallback:function(){w({name:E,status:"finished"})},onStateChangeCallback:function(e,t){w({name:E,status:Pr(f)?"finished":"updating"}),C((function(a){return(0,n.__assign)((0,n.__assign)({},a),{piPickerState:e,triggeredBy:t})}))},onSelectorEventCallback:function(e,t){w({name:E,status:"finished"}),Gr(k.piPickerState)?I({id:t,isExpired:e}):A({id:t,isExpired:e})},onAddResourceEventCallback:function(e){w({name:E,status:"finished"}),C((function(t){var a=e?"Save":"Next";return a!==t.addPiSubState?(0,n.__assign)((0,n.__assign)({},t),{addPiSubState:a}):t}))},onSuccessCallback:function(e,t,a,n,r,i,o){if(w({name:E,status:"finished"}),"EditBackup"===k.piPickerState&&"submitGroup"!==k.triggeredBy)I({id:n,isExpired:!1}),_.piPickerRef.current.goToPickerBackupState();else if("Edit"===k.piPickerState&&"submitGroup"!==k.triggeredBy)A({id:e,isExpired:!1}),_.piPickerRef.current.goToPickerState();else{if(e===gr||n===gr)throw h({step:"removeBackupPi"}),new Error("Unexpectedly rendered RemoveBackupPi in PiPickerDialog");h({step:"OnSuccessSelect"}),u(e,t,a,n,r,i,o)}},onFailureCallback:function(e){var t=dr(e.errorCode).isUserError;w(t?{name:E,status:"finished"}:{name:E,status:"failed",error:{name:"ChangePaymentError",message:e.message}}),h({step:Hr,data:{error:lr(e.errorCode),isUserError:t,errorDetails:e}}),N(e)},onLoginRequiredEventCallback:function(e){w({name:E,status:"finished"}),h({step:Hr,data:{error:lr(e.errorCode),isUserError:e.isUserError,errorDetails:e}}),p(e)},selectPaymentInstrumentRef:_.selectRef,addResourceRef:_.addRef,editResourceRef:_.editRef,authenticationToken:e.authenticationToken});return Se((function(){w({name:E,status:Pr(f)?"finished":"updating"})})),(0,Ee.useEffect)((function(){var e=document.getElementById(y);e&&e.hasAttribute("tabindex")&&e.removeAttribute("tabindex")})),we().createElement(gn.Dialog,(0,n.__assign)({isOpen:!0,onDismiss:(null===d||void 0===d?void 0:d.onDismiss)?function(){h({step:"DismissPiPickerDialog"}),(null===d||void 0===d?void 0:d.onDismiss)&&d.onDismiss()}:R,contentId:y,staticBodyWidth:null===d||void 0===d?void 0:d.staticBodyWidth,closeButton:{"data-bi-id":"".concat(y,"-close"),"aria-label":s.close},title:null!==(a=null===d||void 0===d?void 0:d.title)&&void 0!==a?a:Gr(k.piPickerState)?s.addBackupPi:s.selectPaymentTitle,subtitle:null===d||void 0===d?void 0:d.subtitle,stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0},minBodyHeight:null!==(r=null===d||void 0===d?void 0:d.minBodyHeight)&&void 0!==r?r:Ar,dialogStylesTemp:Sr,operationData:{progressViewOperationData:{operationName:E,componentName:y},errorDialogProps:{title:s.tryAgainTitle,subText:s.genericErrorMessage,dialogFooterProps:{buttonPrimary:{onClick:R,text:s.close,"aria-label":s.close,"data-bi-id":"".concat(y,"-close-window")}}}}},function(e,t,a,r,i,o,c,s,l,d,u,m){var p=a.addRef,g=a.selectRef,h=a.editRef,f=!!u,v=t.saveChanges;if(f)switch(e.piPickerState){case"Add":case"AddBackup":v=t.add;break;case"Select":case"SelectBackup":v=t.next;break;case"Edit":case"EditBackup":v=t.update}var y={"data-bi-id":"".concat(r,"-back"),"aria-label":t.back,onClick:s},E={"data-bi-id":"".concat(r,"-cancel"),"aria-label":f?t.back:t.cancel,onClick:o},w={text:v,"aria-label":v,"data-bi-id":"".concat(r,"-save-changes"),disabled:m,onClick:function(){if(Pr(d))i("mockPrimaryPiid","Mock Primary PI",!0,"mockBackupPiid","Mock Backup Payment","Mock Payment Type");else switch(e.piPickerState){case"Add":p.current.moveNextPage(),l({step:"SaveChangesFromAdd"});break;case"AddBackup":p.current.moveNextPage(),l({step:"SaveChangesFromAddBackup"});break;case"Select":g.current.moveNextPage(),l({step:"SaveChangesFromSelect"});break;case"SelectBackup":g.current.moveNextPage(),l({step:"SaveChangesFromSelectBackup"});break;case"Edit":h.current.moveNextPage(),l({step:"SaveChangesFromEditSubmit"});break;case"EditBackup":h.current.moveNextPage(),l({step:"SaveChangesFromEditSubmitBackup"});break;default:l({step:"SaveChangesUnsupportedState",data:e.piPickerState}),c({errorCode:"PiPickerDialgoError",name:"PiPickerDialgoError",message:"Unsupported state: ".concat(e.piPickerState)})}}},b=(0,n.__assign)({text:t.cancel},E),x=(0,n.__assign)({text:t.back},y),k={text:t.next,"aria-label":t.next,"data-bi-id":"".concat(r,"-next"),onClick:function(){p.current.moveNextPage(),l({step:"NextFromAdd"})}},C={text:v,"aria-label":t.saveChanges,"data-bi-id":"".concat(r,"-edit-save-changes"),onClick:function(){h.current.moveNextPage(),l({step:"SaveFromEdit"})}};switch(e.piPickerState){case"Add":case"AddBackup":return"Next"===e.addPiSubState?f?{dialogFooterProps:{dialogType:"default",buttonPrimary:k},backButton:y}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:k,buttonSecondary:x}}:"emptyResourceList"===e.triggeredBy?f?{dialogFooterProps:{dialogType:"default",buttonPrimary:w,richTextProps:t.footerText},backButton:E}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:w,buttonSecondary:b,richTextProps:t.footerText}}:f?{dialogFooterProps:{dialogType:"default",buttonPrimary:w,richTextProps:t.footerText},backButton:y}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:w,buttonSecondary:x,richTextProps:t.footerText}};case"Edit":case"EditBackup":return"submitGroup"===e.triggeredBy?f?{dialogFooterProps:{dialogType:"default",buttonPrimary:w,richTextProps:t.footerText},backButton:y}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:w,buttonSecondary:x,richTextProps:t.footerText}}:f?{dialogFooterProps:{dialogType:"default",buttonPrimary:C},backButton:y}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:C,buttonSecondary:x}};case"SelectBackup":return f?{dialogFooterProps:{dialogType:"default",buttonPrimary:w,richTextProps:t.footerText},backButton:y}:{dialogFooterProps:{dialogType:"flow",buttonPrimary:w,buttonSecondary:x,richTextProps:t.footerText}};default:return f?{dialogFooterProps:{dialogType:"default",buttonPrimary:w,richTextProps:t.footerText},backButton:E}:{dialogFooterProps:{buttonPrimary:w,buttonSecondary:b,richTextProps:t.footerText}}}}(k,s,_,y,u,R,N,(function(){"AddBackup"===k.piPickerState||"EditBackup"===k.piPickerState?(_.piPickerRef.current.goToPickerBackupState(),h({step:"GoBackFromBackup"})):(_.piPickerRef.current.goToPickerState(),h({step:"GoBackFromPrimary"}))}),h,f,null===d||void 0===d?void 0:d.showBackButton,!v)),we().createElement(gn.Stack,{childrenGap:15},s.selectPaymentHelperText?we().createElement(gn.Stack,{id:"pipicker-helper-text"},we().createElement(gn.Text,{variant:"headerText",id:"".concat(y,"-helper-text")},qr(s.selectPaymentHelperText))):we().createElement(we().Fragment,null),we().createElement(gn.Stack,{id:"change-payment-with-text"},function(e,t,a){switch(t){case"SelectBackup":return we().createElement(gn.Text,{variant:"headerText",id:"".concat(a,"-backup-message")},qr(e.selectBackupPiSubText));case"Add":case"AddBackup":return we().createElement(gn.Text,{variant:"headerText",id:"".concat(a,"-message-add")},qr(e.addPiSubText));case"Edit":case"EditBackup":return we().createElement(gn.Text,{variant:"headerText",id:"".concat(a,"-update-text-submit")},qr(e.updatePiSubText));default:return we().createElement(gn.Text,{variant:"headerText",id:"".concat(a,"-message")},qr(e.selectPaymentSubText))}}(s,k.piPickerState,y)),Gr(k.piPickerState)?we().createElement(gn.MessageBar,{messageBarType:"warning",messageContent:s.selectBackupPiAlertMessage}):we().createElement(we().Fragment,null),L?we().createElement(gn.MessageBar,{messageBarType:"severe-warning",messageContent:s.expiredPiAlertMessage}):we().createElement(we().Fragment,null),we().createElement(gn.Stack,{id:"pi-picker"},we().createElement("div",{"aria-labelledby":"change-payment-with-text",tabIndex:-1},Pr(f)?we().createElement(we().Fragment,null):we().createElement(Vr,(0,n.__assign)({ref:_.piPickerRef},M)))),s.disclaimerText?we().createElement(gn.RichText,(0,n.__assign)({},s.disclaimerText)):we().createElement(we().Fragment,null)))},zr=function(e){var t=e.spinnerAriaLabel,a=e.spinnerMessage;return we().createElement(gn.Stack,{height:"100%",width:"100%",verticalAlign:"center",horizontalAlign:"center",childrenGap:38},we().createElement(gn.Spinner,{"aria-label":t,spinnerSize:2}),a?we().createElement(gn.Stack,{textAlignment:"center"},we().createElement(gn.Text,{variant:"paneHeader"},a)):we().createElement(we().Fragment,null))},jr="Invalid Date",Qr=function(e){var t=e.env,a=e.onSuccessCallback,r=e.onFailureCallback,i=e.spinnerAriaLabel,o=e.data,c=e.failedText,s=e.firstLoadView,l=void 0===s?"Spinner":s,d=e.failedViewOverride,u=or(),m=u.reportRawEvent,p=u.isInFlight,g="payment-display-handler",h="getAccessTokenOrHandlePiDisplay",f=(0,Ka.useTwoUIOperationDispatcher)(),v=(0,Ee.useState)({}),y=v[0],E=v[1],w=(0,Ee.useState)(!1),b=w[0],x=w[1],k=we().createRef();Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t,i;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return f({name:h,status:"updating"}),Pr(p)||kr.includes(o.piid)?(a({id:"mock",name:"Mock **1234",status:"Active"}),[3,5]):[3,1];case 1:return n.trys.push([1,3,,4]),[4,Ir(h,r,f,void 0,!0)];case 2:return e=n.sent(),E(e),[3,4];case 3:return t=n.sent(),i={name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:g,message:t.toString()},m(i),[3,4];case 4:f({name:h,status:"finished"}),n.label=5;case 5:return[2]}}))}))}));var C=we().createElement(zr,{spinnerAriaLabel:i}),T=we().createElement(gn.Stack,{width:"100%",horizontal:!0,childrenGap:14,verticalAlign:"center",height:40},we().createElement(gn.StackItem,null,we().createElement(gn.ShimmerLine,{width:40,height:40})),we().createElement(gn.StackItem,null,we().createElement(gn.ShimmerLine,{height:12,width:120}))),S="Shimmer"===l?T:C,A={containerId:"pidl-container",busyBlockShowHideHandler:function(e){e||(x(!0),f({name:h,status:"finished"}))}},P={userId:"me",authToken:'MSADELEGATE1.0="'.concat(y.token,'"'),additionalHeaders:vr(p,"Display")},D={parameters:{partner:cr,market:o.market,language:o.language,currency:o.transactionCurrency,billableAccountId:o.billableAccountId,filters:{id:o.piid},completePrerequisites:!0},resourceType:"PaymentInstrument"},I={callbacks:{failure:function(e){var t=yr(e,"PiDisplayFailed");f({name:h,status:"failed",error:t}),r(t)}}},_=function(e){var t,n,r,i,c,s,l,d,u;if(e===tr.pidl.internal.constants.eventNames.pageRendered){var m=null===(t=null===k||void 0===k?void 0:k.current)||void 0===t?void 0:t.getSelectedResource(),p=null===m||void 0===m?void 0:m.instance,g=void 0,h=void 0,f=null===(n=null===p||void 0===p?void 0:p.details)||void 0===n?void 0:n.currency,v=null===(r=null===p||void 0===p?void 0:p.details)||void 0===r?void 0:r.balance;if(v&&f&&(h=new Intl.NumberFormat(o.language,{style:"currency",currency:f}).format(v)),(null===(i=null===p||void 0===p?void 0:p.details)||void 0===i?void 0:i.expiryYear)&&(null===(c=null===p||void 0===p?void 0:p.details)||void 0===c?void 0:c.expiryMonth)&&(g=new Date(Number(p.details.expiryYear),Number(p.details.expiryMonth),0).toLocaleDateString(o.language,{year:"numeric",month:"2-digit"})),p){var y={id:p.id,name:p.details.defaultDisplayName,accountId:null===p||void 0===p?void 0:p.accountId,paymentMethodType:null===(s=null===p||void 0===p?void 0:p.paymentMethod)||void 0===s?void 0:s.paymentMethodType,expirationDate:g,daysUntilExpired:null===(l=null===p||void 0===p?void 0:p.details)||void 0===l?void 0:l.daysUntilExpired,csvBalanceAmount:v,csvBalanceFormatted:h,status:p.status,isSoldToAddressRequired:null===(u=null===(d=null===p||void 0===p?void 0:p.paymentMethod)||void 0===d?void 0:d.properties)||void 0===u?void 0:u.soldToAddressRequired};a(y)}}},L=we().useMemo((function(){return y.token?we().createElement(we().Fragment,null,b?we().createElement(we().Fragment,null):S,we().createElement(tr.SelectSingleResource,{displayOptions:A,elementFactory:new er.FluentUIElementFactory,userContext:P,env:t,returnOptions:I,ref:k,pidlDocInfo:D,onEvent:_})):S}),[y,b]),R=null!==d&&void 0!==d?d:we().createElement(gn.Text,{variant:"headerText"},c);return we().createElement(Ka.TwoUIProgressView,{operationData:{componentName:g,operationName:h},firstLoadView:S,finishedView:L,failedView:R})};function Xr(e,t){return Be(window.location.href,e,t?"true":"false")}var Yr=function(e){var t=e.env,a=e.piChallengeData,r=e.onSuccessCallback,i=e.onFailureCallback,o=e.onCancelCallback,c=e.onReady,s=e.redirectSuccessUrl,l=e.redirectFailureUrl,d=e.spinnerAriaLabel,u=e.spinnerMessage,m=e.mockScenarios,p=e.authenticationToken,g=or(),h=g.next,f=g.leave,v=g.reportRawEvent,y=g.scenarioIsActive,E=g.isInFlight,w=(0,Ka.useTwoUITelemetry)().getCv,b="payment-challenge-handler",x="getAccessTokenOrHandlePiChallenge",k=(0,Ka.useTwoUIOperationDispatcher)(),C=(0,gn.useViewport)(),T=(0,gn.isMobileViewport)(C),S=(0,Ee.useState)({}),A=S[0],P=S[1],D=(0,Ee.useState)(!0),I=D[0],_=D[1];Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,a,c,s,l;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return k({name:x,status:"first-load"}),E("PidlSuccess")?(r(xr,br),[3,11]):[3,1];case 1:return E("PidlFailPIValError")?(k({name:x,status:"failed"}),i({name:"ValidatePIOnAttachFailed",errorCode:"ValidatePIOnAttachFailed",message:"Your bank could not authorize this payment method. Contact them for more info.",challengeStatus:"Failed",isUserError:!0}),[3,11]):[3,2];case 2:return E("PidlFail")?(k({name:x,status:"failed"}),i({name:"PidlFailed",errorCode:"PidlFailed",message:"Mock PidlFailed",challengeStatus:"Failed"}),[3,11]):[3,3];case 3:return E("PidlTimeout")?(k({name:x,status:"failed"}),i({name:"PidlTimedOut",errorCode:"PidlTimedOut",message:"Mock PidlTimedOut",challengeStatus:"TimedOut"}),[3,11]):[3,4];case 4:return E("PidlCancel")?(o(),[3,11]):[3,5];case 5:return p?[4,Br(b,t,v,w)]:[3,7];case 6:return n.sent(),h({step:"PiChallengeSetAuthenticationTokenFromParam"}),P(p),[3,10];case 7:return n.trys.push([7,9,,10]),e=Ir(x,i,k),a=Br(b,t,v,w),[4,Promise.all([e,a])];case 8:return c=n.sent()[0],P(c),[3,10];case 9:return s=n.sent(),l={name:"Ms.Webi.MeePortal.AuthErrorEvent",componentName:b,message:s.toString()},v(l),[3,10];case 10:k({name:x,status:"finished"}),n.label=11;case 11:return[2]}}))}))}));var L={containerId:"pidl-container",busyBlockShowHideHandler:function(e){e?(_(!0),k({name:x,status:"updating"})):(_(!1),k({name:x,status:"finished"}))}},R={callbacks:{success:function(e){var t=e,n=t.challengeStatus,o=t.id;(function(e,t,a){t&&a&&t===a||e({step:"PiChallengePiidMismatch",error:"piidMismatchError",data:{errorDetails:"Piid is different from PIDL response. "+"PIDL response piid is ".concat(a,". Selected piid is ").concat(t)}})}(h,a.piid,t.piid),"Succeeded"===n||"NotApplicable"===n||"ByPassed"===n)?(h({step:"HandlePaymentChallengeSuccess.Challenge".concat(n)}),r(n,o)):(h({step:"HandlePaymentChallengeFail.Challenge".concat(n)}),i({name:"PiChallengeStatusError",errorCode:"PiChallengeStatusError",message:"Handle payment challenge failed with challenge status error",challengeStatus:n}))},failure:function(e){var t=function(e,t){var a,n=e,r="UnknownError",i=mr,o="Unknown",c=!1,s=JSON.stringify(e),l="invalidSetup",d="paymentMethodFailure",u="failedToOpenWindow",m="RejectedByProvider";if(null===(a=null===n||void 0===n?void 0:n.error)||void 0===a?void 0:a.innererror){switch(n.error.innererror.InnerError&&(n.error.innererror.InnerError.ErrorCode&&(r=n.error.innererror.InnerError.ErrorCode),n.error.innererror.InnerError.UserDisplayMessage&&(i=n.error.innererror.InnerError.UserDisplayMessage),o=n.error.innererror.InnerError.Message),r){case"ValidatePIOnAttachFailed":case m:c=!0}"UnknownError"===r&&-1!==s.indexOf(m)&&(r=m,i="Rejected by provider",o="Failed",c=!0)}return"UnknownError"===r&&-1!==s.indexOf(l)?(r=l,i="GPay/APay Invalid Setup",o="Failed"):"UnknownError"===r&&-1!==s.indexOf(d)?(r=d,i="GPay/APay Payment MethodFailure",o="Failed"):"UnknownError"===r&&-1!==s.indexOf(u)&&(r=u,i="GPay/APay failed to open new window due to pop up blocker",o="Failed",c=!0),{name:t,errorCode:r,message:i,challengeStatus:o,stack:s,isUserError:c}}(e,"HandlePaymentChallengeFail");h({step:"HandlePaymentChallengeFail",error:t.errorCode,data:{errorDetails:e,isUserError:t.isUserError}}),k({name:x,status:"failed",error:t}),i(t)},gohome:function(){h({step:"HandlePaymentChallengeCancel"}),o()}},urls:{success:s,failure:l}},N=function(e,t){e===tr.pidl.internal.constants.eventNames.navigate&&t.piRedirection&&(!function(e){e({step:"India2FARedirectLeave"})}(f),window.open(t.url,"_self")),e===tr.pidl.internal.constants.eventNames.pidlDownloaded&&c&&c(),e===tr.pidl.internal.constants.eventNames.pageRefreshed&&y()&&h({step:"RenderPiChallengeHandler"})},M=function(){var e=a.country,t="SvcIndia2FATest";E(t)&&(e="IN",y()&&h({step:t}));return(0,n.__assign)((0,n.__assign)({partner:cr,challengeWindowSize:a.windowSize?a.windowSize:"03"},a),{country:e,recurringPaymentDetails:function(){var e=a.renewalDate,t=a.futurePrice,n=a.frequencyUnit,r=a.frequency,i=a.productName;if(e&&!isNaN(Date.parse(e))){var o=new Date(e);return t&&n&&r&&i?{amount:t,frequencyUnit:n,frequency:r,startTime:o,label:i}:void 0}}()})},B=we().createElement(zr,{spinnerAriaLabel:d,spinnerMessage:u}),O=function(e,t){var a,n=Re("px."),r=encodeURIComponent("AMC Team");return t?a=t:e("SvcPSD2XboxTest")?a="px-service-psd2-e2e-emulator":e("SvcValPITest")?a="px.pims.validate.failed":e("SvcExpiredPiTest")?a="px.payerauth.psd2.challenge.success,px.pims.3ds":e("SvcIndia2FATest")?a="px-service-billdesk-provider,px-service-psd2-e2e-emulator":e("RoleEngineer")&&n.length>0&&(a=n.join(",")),a?{"x-ms-test":'{scenarios: "'.concat(a,'", contact: "').concat(r,'"}')}:e("SvcGooglePayTest")?{"x-ms-test":'{scenarios: "real,px-use-google-apple-pay-test-env", contact: "AMC Team"}',"x-ms-flight":"vnext,EnableThreeDSOne,pidl-enable-payment-agent-challenge"}:{"x-ms-flight":"EnableThreeDSOne,pidl-enable-payment-agent-challenge"}}(E,m),F=we().useMemo((function(){return A.token?we().createElement(we().Fragment,null,we().createElement("div",{style:{display:I?"block":"none",height:"100%",width:"100%"}},B),we().createElement("div",{style:{display:I?"none":"block",padding:T?"0px":"0 0 0 15px"}},we().createElement(tr.HandlePaymentChallenge,{displayOptions:L,elementFactory:new er.FluentUIElementFactory,userContext:Er(A.token,O),env:t,onEvent:N,paymentSessionOrData:M(),returnOptions:R,telemetryOptions:wr(w)}))):we().createElement(we().Fragment,null)}),[A,I,T]);return we().createElement(Ka.TwoUIProgressView,{operationData:{componentName:b,operationName:x},firstLoadView:B,updatingView:F,finishedView:F,failedView:B})},$r=function(e){var t,a,r,i,o=e.piChallengeProps,c=e.dialogTitle,s=e.closeAriaLabel,l=e.dialogComponentName,d=e.dialogOperationName,u=e.minBodyHeight,m=e.staticBodyWidth,p=e.dialogParams,g=or().next,h=(0,Ka.useTwoUIOperationDispatcher)();Se((function(){h({name:d,status:"updating"}),g({step:"ChallengeStart"})}));var f={progressViewOperationData:{operationName:d,componentName:l},errorDialogProps:{},progressDialogProps:{}},v={isOpen:!0,onDismiss:function(){h({name:d,status:"finished"}),g({step:"CancelPiChallengeDialog"}),o.onCancelCallback()},stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:null!==(t=null===p||void 0===p?void 0:p.title)&&void 0!==t?t:c,subtitle:null===p||void 0===p?void 0:p.subtitle,closeButton:{"data-bi-id":"".concat(l,"-close"),"aria-label":s},dialogStylesTemp:Sr,operationData:f,minBodyHeight:null!==(r=null!==(a=null===p||void 0===p?void 0:p.minBodyHeight)&&void 0!==a?a:u)&&void 0!==r?r:Ar,staticBodyWidth:null!==(i=null===p||void 0===p?void 0:p.staticBodyWidth)&&void 0!==i?i:m},y=we().createElement(Yr,(0,n.__assign)({},o,{onReady:function(){h({name:d,status:"finished"})}}));return we().createElement(gn.Dialog,(0,n.__assign)({},v),we().createElement(Ka.TwoUIProgressView,{operationData:{componentName:l,operationName:d},firstLoadView:we().createElement(we().Fragment,null),updatingView:y,failedView:we().createElement(we().Fragment,null),finishedView:y}))},Kr=["VerifyExperienceAuthError","FailedToRenderThreeDsChallenge","UserLoginAbsenceError","InternalServerError"],Jr=function(e,t){return function(e,t,a,n,r,i,o,c){var s,l=!1,d=!1;switch(e.challengeStatus){case"Failed":e.errorCode&&Kr.indexOf(e.errorCode)>=0?(s=a,d=!0):e.errorCode&&"invalidSetup"===e.errorCode?(s=i,d=!0):e.errorCode&&"paymentMethodFailure"===e.errorCode?(s=o,d=!0):e.errorCode&&"failedToOpenWindow"===e.errorCode?(s=c,d=!1,l=!0):(s=e.message&&e.message!==mr?e.message:n,l=!0);break;case"TimedOut":s=r,l=!0;break;default:s=a,d=!0}return{errorTitle:t,errorMessage:s,errorCode:e.errorCode?e.errorCode:"ChallengeError",isUserError:l,isQoSImpactedError:d,isRefreshNeeded:!1}}(t,e.genericErrorTitle,e.genericErrorMessage,e.bankAuthFailMessage,e.bankAuthTimeoutMessage,e.invalidSetupMessage,e.paymentMethodFailureMessage,e.failedToOpenNewWindowMessage)},Zr=["quotaLimitReached.AlreadyHasManageability","concurrentWritesConflict","notAllowed.EntityChangeConflict","forbidden","QuotaLimitReached.GroupMemberSizeExceedLimit","invitationDoesNotExist","quotaLimitReached.InviteLimitExceeded","quotaLimitReached.JoinLimitExceeded","itemAlreadyExists.MemberAlreadyInGroup","itemNotFound.MemberNotInGroup","networkError","notAllowed.NonAdminMemberNotAllowedToAddMember","sharingActionNotAllowed","sharingSlotsExhausted","subscriptionReachedMaxUsers","NotAllowed.UserAccountDoesNotExist","userAlreadyGuestInSubscription","userAlreadyHasSubscription","userErrorAccountClosed","userErrorAlreadyInvited","userErrorCantShareAlreadyOnSubscription","userErrorTrialShareLimit","userIsNotSharedWithSubscription","userThrottled","xboxUserErrorAdminShareThrottled","xboxUserErrorCantShareNoSpace","xboxUserErrorCountryMismatch","xboxUserErrorGuestNotInFlight","xboxUserErrorGuestShareThrottled","xboxUserErrorInvitationExpired","xboxUserErrorSubscriptionNotActive","licenseNotFound","previousRequestInProgress","orderLocked","badRequest","insufficientFunds","invalidPaymentInstrument","processorDeclined","transactionNotAllowed","expiredPaymentInstrument","amountLimitExceeded","authCaptureInProgress","riskRejected","partnerForbiddenProcessorDeclined","partnerForbiddenInsufficientFunds","unauthorized","maxStackingDurationExceeded","invalid_grant"],ei={},ti="/services/api/",ai="MeePortal",ni="178",ri="179",ii='"1"',oi='"2"',ci="os-sku",si="os-mode";function li(e,t,a,r,i){return(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return e&&an(ei,t),[4,nn(ei,t,(function(){return function(e,t,a,n){return mi((function(e,t,a,n){return ka(e,t,a,n)}),e,t,a,n)}(a,r,i)}))];case 1:return[2,n.sent()]}}))}))}function di(e,t,a,n,r){return ui(Ta,e,t,a,n,r)}function ui(e,t,a,r,i,o){var c,s,l,d,u,m;return(0,n.__awaiter)(this,void 0,void 0,(function(){var p,g,h,f;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:p=ti+a,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e(p,{partnerName:ai,operation:t},r,gi(i||{}),o)];case 2:return[2,n.sent().data];case 3:return g=n.sent(),f=null===(l=null===(s=null===(c=(h=g).response)||void 0===c?void 0:c.data)||void 0===s?void 0:s.data)||void 0===l?void 0:l.signInLink,401===(null===(d=h.response)||void 0===d?void 0:d.status)&&f&&(window.location.href=f),(null===(m=null===(u=h.response)||void 0===u?void 0:u.data)||void 0===m?void 0:m.error)||(h.response=h.response||{},h.response.data=h.response.data||{},h.response.data.error=pi(h)),[2,Promise.reject(g)];case 4:return[2]}}))}))}function mi(e,t,a,r,i){var o,c,s,l,d,u;return(0,n.__awaiter)(this,void 0,void 0,(function(){var m,p,g,h;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:m=ti+a,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,e(m,{partnerName:ai,operation:t},gi(r||{}),i)];case 2:return[2,n.sent().data];case 3:return p=n.sent(),h=null===(s=null===(c=null===(o=(g=p).response)||void 0===o?void 0:o.data)||void 0===c?void 0:c.data)||void 0===s?void 0:s.signInLink,401===(null===(l=g.response)||void 0===l?void 0:l.status)&&h&&(window.location.href=h),(null===(u=null===(d=g.response)||void 0===d?void 0:d.data)||void 0===u?void 0:u.error)||(g.response=g.response||{},g.response.data=g.response.data||{},g.response.data.error=pi(g)),[2,Promise.reject(p)];case 4:return[2]}}))}))}function pi(e){var t,a,n,r="";switch(null!==(n=null===(a=null===(t=e.response)||void 0===t?void 0:t.data)||void 0===a?void 0:a.message)&&void 0!==n?n:e.message){case"timeout of 90000ms exceeded":r="90sTimeout";break;case"timeout of 60000ms exceeded":r="60sTimeout";break;case"timeout of 30000ms exceeded":r="30sTimeout";break;case"Network Error":r="networkError"}return r}function gi(e){var t;return e.headers=e.headers||{},e.headers["X-TzOffset"]=-(new Date).getTimezoneOffset(),e.headers["X-IsCloudOS"]=function(){try{if(window.external&&"getHostEnvironmentValue"in window.external){var e=window.external,a=[ni,ri],n=[ii,oi];try{var r=e.getHostEnvironmentValue(ci);if(r&&a.some((function(e){return-1!==r.indexOf(e)})))return!0}catch(t){return!1}try{var i=e.getHostEnvironmentValue(si);if(i&&n.some((function(e){return-1!==i.indexOf(e)})))return!0}catch(jo){return!1}}}catch(Qo){return!1}return!1}(),e.timeout=null!==(t=e.timeout)&&void 0!==t?t:6e4,e}function hi(e){return(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,di("GLOBAL.SERVICES.CREATERECURRENCE","create-recurrence",{productId:e.productId,skuId:e.skuId,availabilityId:e.availabilityId,paymentInstrumentId:e.paymentInstrumentId,backupPaymentInstrumentId:e.backupPaymentInstrumentId,market:e.market,locale:e.locale,soldToAddressId:e.soldToAddressId,paymentSessionId:e.paymentSessionId,challengeCompletedStatus:e.challengeCompletedStatus,consentRecord:e.consentRecord,campaignId:e.campaignId})];case 1:return[2,t.sent()]}}))}))}function fi(e){return void 0===e&&(e=!0),(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,li(e,"xbox-personalized","GLOBAL.SERVICES.PERSONALIZEDXBOXDETAILS","get-personalized-xbox-details")];case 1:return[2,t.sent()]}}))}))}function vi(e,t,a){return void 0===a&&(a=!1),(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return[4,li(a,t,"GLOBAL.SERVICES.GAMEINFOV1DUNNING","get-game-info-v1",{params:{surfaceNames:e.surfaces,gamingPlatforms:e.gamingPlatforms,picksForYouCategory:e.pfuCategory,subscriptionNames:e.subscriptionNames,minimumGamesPerSurface:1}})];case 1:return[2,n.sent()]}}))}))}var yi={MostPopular:"services.iris.dunningmostpopulargames",RecentlyAdded:"services.iris.dunningrecentlyaddedgames",ComingSoon:"services.iris.dunningcomingsoongames",PicksForYou:"services.iris.dunningpicksforyougames",AllGames:"services.iris.dunningallgames"};var Ei={Unknown:0,ActiveAutoRenewOn:1,ActiveAutoRenewOff:2,ExpiredPrimaryPI:3,ExpiringPrimaryPI:4,LowCsvWithoutBackup:5,LowCsvExpiredBackup:6,LowCsvExpiringBackup:7,InDunning:8,PartnerBilled:9,FreeRenewal:10,Expired:11,LowCsvSupportBackup:12},wi=1;function bi(e){var t,a;return(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return[4,di("GLOBAL.SERVICES.SWITCHRENEWALPLAN","switch-renewal-plan",{serviceId:e.service.id,serviceType:e.service.type,skuId:e.skuId,paymentInstrumentId:null!==(t=e.paymentInstrumentId)&&void 0!==t?t:null===(a=e.service.payment)||void 0===a?void 0:a.id,availabilityId:e.availabilityId,paymentSessionId:e.paymentSessionId,challengeCompletedStatus:e.challengeCompletedStatus,conversionPathTypes:e.conversionPathTypes,soldToAddressId:e.soldToAddressId,backupPaymentInstrumentId:e.backupPaymentInstrumentId,locale:e.service.locale,isTrial:e.service.isTrial,market:e.service.market,consentRecord:e.consentRecord,campaignId:e.campaignId})];case 1:return[2,n.sent()]}}))}))}var xi=3,ki=4,Ci="taxesnotincluded",Ti="vatincluded",Si="taxincluded",Ai="PCGamePass",Pi="XboxGamePass",Di="XboxGamePassStandard",Ii="XboxGamePassUltimate",_i="XboxLive",Li="CoPilot",Ri="Ultimate",Ni="Premium",Mi="Essential",Bi="CFQ7TTC0K5BF",Oi="CFQ7TTC0K5DM",Fi="CFQ7TTC0TNCN",Vi="CFQ7TTC0TNCP",Ui="CFQ7TTC11Z3Q",Hi="CFQ7TTC0KTXS",Gi="CFQ7TTC0KHS0",qi="CFQ7TTC0P85B",Wi="CFQ7TTC0KGQ8",zi="CFQ7TTC0K5DJ",ji="CFQ7TTC0KHS0",Qi="CFQ7TTC0P85B",Xi="CFQ7TTC0K5DJ",Yi="immediate";function $i(){return Qa("SvcXboxRose",!1)}var Ki={isSvcXboxRoseFlightEnabled:$i,checkXboxGamePassUltimate:function(e){return $i()?e===Ri:e===Ii},checkXboxGamePassStandard:function(e){return $i()?e===Ni:e===Di},checkXboxGamePassLive:function(e){return $i()?e===Mi:e===_i},getBrandIdForXboxGamePassUltimate:function(){return $i()?Ri:Ii},getBrandIdForXboxGamePassStandard:function(){return $i()?Ni:Di},getBrandIdForXboxGamePassLive:function(){return $i()?Mi:_i},isNewXboxBrand:function(e,t){return void 0===t&&(t=""),e===Ri||e===Ni||e===Mi||t===ji||t===Qi||t===Xi}},Ji=function(e,t,a,n,r,i,o,c){var s;switch(e.toLowerCase()){case"day":s=t>1?Le(n,t):a;break;case"month":s=t>1?Le(i,t):r;break;case"year":s=t>1?Le(c,t):o;break;default:throw new Error("Cycle unit not supported")}return s};function Zi(e){var t=new URLSearchParams(window.location.search),a=window.location.href.split("#")[0],n=window.location.href.split("#")[1];return t.toString()?n?"".concat(a,"&").concat(e,"=true#").concat(n):"".concat(a,"&").concat(e,"=true"):n?"".concat(a,"?").concat(e,"=true#").concat(n):"".concat(a,"?").concat(e,"=true")}var eo=["CA"],to=["US"];var ao=function(e){return"US"===e&&Qa("SvcNOR")},no=function(){return Qa("SvcCelaApi",!1)},ro=function(e,t){var a=!1;return Ki.checkXboxGamePassUltimate(t)?a=Qa("RenewBenefitsXGPU",!!e):t===Ai&&(a=Qa("RenewBenefitsXPC",!!e)),a};function io(e){var t,a,n,r;return(null===(a=null===(t=null===e||void 0===e?void 0:e.productRenewal)||void 0===t?void 0:t.immediatePrice)||void 0===a?void 0:a.msrp)!==(null===(n=null===e||void 0===e?void 0:e.nextCharge)||void 0===n?void 0:n.net)&&Qa("SvcXboxRecurringDiscount",!0)&&(null===(r=null===e||void 0===e?void 0:e.productRenewal)||void 0===r?void 0:r.remainingDiscountedRenewals)}var oo={};function co(e,t,a){var r;return(0,n.__awaiter)(this,void 0,void 0,(function(){var i,o,c=this;return(0,n.__generator)(this,(function(s){switch(s.label){case 0:return i="getSurvey-".concat(e,"-").concat(t),[4,nn(oo,i,(function(){return(0,n.__awaiter)(c,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){return[2,ka("/survey/api/surveyDefinition",{partnerName:"MeePortal",operation:"Survey.GetSurveyDefinition"},{params:{surveyItemId:e}}).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 a&&n&&a(n),e}))]}))}))}))];case 1:return o=s.sent(),[2,null===(r=o.data)||void 0===r?void 0:r.content]}}))}))}var so=a(50779),lo=function(e,t,a,n,r){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,telemetryGroup:{loggableUserId:n?"p:".concat(n.valueAsHex):void 0,tenantId:"9188040d-6c67-4c5b-b112-36a304b66dad",sku:r},userEmail:a}},uo=function(e,t,a){return mo(e,a,t.taxDetails,t.taxType,t.listPrice,t.totalTax,t.fullPrice)},mo=function(e,t,a,n,r,i,o){var c,s=i,l=n&&""!==n?n:Si,d=r;return i?(c=e,eo.includes((null===c||void 0===c?void 0:c.toUpperCase())||"")?(s=a&&a.length>0?a.map((function(e){return"".concat(e.impositionName," ").concat(e.taxAmount)})).join(" "):i,l="MultipleTaxes"):!function(e){return to.includes((null===e||void 0===e?void 0:e.toUpperCase())||"")}(e)?l.toLowerCase()===Ci?(d=o,l=Si):l=l.toLowerCase()===Ti?Ti:Si:(s=i,l=Ci),Le(ke(t,l),{price:d,taxAmount:s})):d},po=function(e){var t=e.service,a=e.celaStrings,n=e.cycleLength,r=e.cycleUnit,i=e.nextChargeDate,o=e.immediatePriceDetails,c=e.futurePriceDetails,s=e.flowType,l=e.isConsentRecording,d=o||c;if(!d)return"";var u=d.listPrice,m=d.taxType,p=d.isTaxPopulated,g=s===Yi;if(!p)return function(e){var t=e.service,a=e.celaStrings,n=e.cycleLength,r=e.cycleUnit,i=e.nextChargeDate,o=e.price,c=e.taxType,s=e.isImmediateConversion,l=e.isConsentRecording?a.recurringBillingTitle:Le(a.recurringBillingTitle,{startDate:i||t.productRenewal.startDateShortString}),d=s?a.recurringBillingFutureCharge:l,u=Le(a.recurringBillingSecondText,{amount:o,tax:ho(t,a,n,r,c)});return Le("{0} {1}",{0:d,1:u})}({service:t,celaStrings:a,cycleLength:n,cycleUnit:r,nextChargeDate:i,price:u,taxType:m,isImmediateConversion:g,dataBiIdPrefix:"",isConsentRecording:l});var h=l?a.recurringBillingTitle:Le(a.recurringBillingTitle,{startDate:i||t.productRenewal.startDateShortString}),f=g?a.recurringBillingFutureCharge:h,v=g?a.taxBreakdownImmediate:a.taxBreakdown,y=uo(t.market,d,v),E=Ji(r||t.productRenewal.cycleUnit,n||t.productRenewal.cycleLength,a.day,a.days,a.month,a.months,a.year,a.years),w=Le(a.everyText,{price:y,cycle:E});return Le("{0} {1}",{0:f,1:w})},go=function(e,t){var a=e.service,n=e.celaStrings,r=e.cycleLength,i=e.cycleUnit,o=e.immediatePriceDetails,c=e.isImmediateConversion,s=e.futurePriceDetails,l=null===o||void 0===o?void 0:o.taxType,d=null===o||void 0===o?void 0:o.listPrice,u=null===s||void 0===s?void 0:s.listPrice;if(!(c?null===o||void 0===o?void 0:o.isTaxPopulated:null===s||void 0===s?void 0:s.isTaxPopulated))return function(e,t){var a=e.service,n=e.celaStrings,r=e.cycleLength,i=e.cycleUnit,o=e.price,c=e.taxType,s=e.isImmediateConversion;return Le(t?n.recurringBillingSecondTextWithOffer:n.recurringBillingSecondText,{amount:o,tax:ho(a,n,r,i,c,!0,s)})}({service:a,celaStrings:n,cycleLength:r,cycleUnit:i,price:c?d:u,taxType:c?l:null===s||void 0===s?void 0:s.taxType,isImmediateConversion:c,dataBiIdPrefix:""},t);if(c&&o)return uo(a.market,o,n.taxBreakdownImmediate);var m=uo(a.market,s,n.taxBreakdown),p=Ji(i||a.productRenewal.cycleUnit,r||a.productRenewal.cycleLength,n.day,n.days,n.month,n.months,n.year,n.years);return t?Le(n.recurringBillingSecondTextWithOfferAndTax,{priceinfo:m,interval:p}):Le(n.everyText,{price:m,cycle:p})},ho=function(e,t,a,n,r,i,o){var c,s,l,d,u=Ji(n||e.productRenewal.cycleUnit,a||e.productRenewal.cycleLength,t.day,t.days,t.month,t.months,t.year,t.years);return(null===r||void 0===r?void 0:r.toLowerCase())===Ti||(null===(s=null===(c=e.productRenewal)||void 0===c?void 0:c.taxType)||void 0===s?void 0:s.toLowerCase())===Ti?Le(i?o?t.plusApplicableVAT:t.includesVATTitle:t.includesVAT,{interval:u}):(null===r||void 0===r?void 0:r.toLowerCase())===Ci||(null===(d=null===(l=e.productRenewal)||void 0===l?void 0:l.taxType)||void 0===d?void 0:d.toLowerCase())===Ci?Le(i?o?t.plusApplicableTaxes:t.plusTaxesTitle:t.plusTaxes,{interval:u}):Le(i?t.includesTaxesTitle:t.includesTaxes,{interval:u})},fo=function(e,t,a,n){var r,i,o,c;return(null===a||void 0===a?void 0:a.toLowerCase())===Ti||(null===(i=null===(r=e.productRenewal)||void 0===r?void 0:r.taxType)||void 0===i?void 0:i.toLowerCase())===Ti?Le(t.recurringBillingSecondText,{amount:n,tax:t.includingVAT}):(null===a||void 0===a?void 0:a.toLowerCase())===Ci||(null===(c=null===(o=e.productRenewal)||void 0===o?void 0:o.taxType)||void 0===c?void 0:c.toLowerCase())===Ci?Le(t.recurringBillingSecondText,{amount:n,tax:t.plusApplicableTaxes}):n};var vo="Console",yo="PC",Eo="RecentlyPlayed",wo="PicksForYou",bo="MostPopular",xo="ComingSoon",ko="RecentlyAdded",Co="AllGames",To=["9P5HV0HVZTSK","9N58QRBG9WDG","9PNCL2R6G8D0","9PF528M6CRHQ"],So=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t,a,r,i,o;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return[4,Promise.allSettled([vi(Ao(e),e),fi(!1)])];case 1:return t=n.sent(),a=t[0],r=t[1],[2,{GameInfo:"fulfilled"===a.status?a.value:null,Friends:"fulfilled"===r.status?null===(i=r.value)||void 0===i?void 0:i.friendsDetails:null,RecentlyPlayed:"fulfilled"===r.status?null===(o=r.value)||void 0===o?void 0:o.recentlyPlayedGames:null}]}}))}))},Ao=function(e){var t="",a="",n="",r=[yi.MostPopular,yi.ComingSoon,yi.PicksForYou,yi.RecentlyAdded].join(",");if(Qa("SvcXboxRose",!1))switch(e){case Ri:a=vo,t=vo,n="Ultimate";break;case Ni:a=vo,t=vo,n="Premium";break;case Mi:a=vo,t=vo,n="Essential";break;case Ai:a=yo,t=yo,n="PCGamePass";break;case Pi:a=vo,t=vo,n="GamePass"}else switch(e){case Ii:a=yo,t=[yo,vo].join(","),n="GamePassUltimate";break;case Ai:a=yo,t=yo,n="PCGamePass";break;case _i:a=vo,t=vo,n="Gold";break;case Pi:a=vo,t=vo,n="GamePass"}return{gamingPlatforms:t,pfuCategory:a,surfaces:r,subscriptionNames:n,minimumGamesPerSurface:3}},Po=we().createElement(gn.Stack,{padding:"32px 0"},we().createElement(gn.ShimmerLine,{height:96,width:300}),we().createElement(gn.Stack,{padding:"8px"}),we().createElement(gn.ShimmerLine,{height:16,width:300})),Do=we().createElement(gn.Stack,{horizontalAlign:"center",padding:"16px 0"},we().createElement(gn.Stack,{horizontal:!0,padding:"16px 0"},we().createElement(gn.ShimmerCircle,{height:40}),we().createElement(gn.ShimmerCircle,{height:40}),we().createElement(gn.ShimmerCircle,{height:40})),we().createElement(gn.ShimmerLine,{height:16,width:300})),Io=we().createElement(gn.Stack,{horizontalAlign:"center",padding:"16px 0"},we().createElement(gn.Stack,{horizontal:!0,padding:"16px 0"},we().createElement(gn.ShimmerLine,{height:48,width:144})),we().createElement(gn.ShimmerLine,{height:16,width:300})),_o=function(e,t){var a=we().createElement(we().Fragment,null);if(Qa("SvcXboxRose",!1))switch(e){case Ri:a=we().createElement(we().Fragment,null,Po,Do,Io);break;case Mi:a=we().createElement(we().Fragment,null,Po,Po,Do);break;case Ai:case Pi:a=we().createElement(we().Fragment,null,Po,Po,Po)}else switch(e){case Ii:a=we().createElement(we().Fragment,null,Po,Do,Io);break;case _i:a=we().createElement(we().Fragment,null,Po,Po,Do);break;case Ai:case Pi:a=we().createElement(we().Fragment,null,Po,Po,Po)}return we().createElement(gn.Stack,{horizontal:!1,horizontalAlign:"center",height:"100%",overflow:"auto"},t?Po:a)},Lo=function(e,t){var a,n=null===(a=null===t||void 0===t?void 0:t.surfaceInfoByNameV1[e])||void 0===a?void 0:a.gameIds;return null===n||void 0===n?void 0:n.map((function(e){var a=t.gameInfoById[e];return{id:a.productId,title:a.title,imageUrl:a.imageBoxArtUrl}}))},Ro=function(e,t,a,n){var r,i,o,c,s,l,d,u,m,p,g,h,f,v,y,E,w,b,x,k,C,T,S,A,P,D,I=[],_=function(e,t){var a=function(e,t){var a,n;switch(e){case"MostPopular":a=t.mostPopular,n=t.mostPopularBold;break;case"ComingSoon":a=t.placeholder,n=t.comingSoonBold;break;case"RecentlyPlayed":a=t.recentlyPlayed,n="";break;case"RecentlyAdded":a=t.recentlyAdded,n=t.recentlyAddedBold;break;case"PicksForYou":a=t.topPicks,n=t.topPicksBold;break;case"AllGames":a=t.allGames,n=t.allGamesBold;break;default:a="",n=""}return[a,n]}(t,n);return{games:e,mediaText:a[0],highlightText:a[1],category:t}},L=_(function(e){var t=Object.keys(e);return null===t||void 0===t?void 0:t.map((function(t){var a=e[t];return{id:a.productId,title:a.title,imageUrl:a.imageBoxArtUrl}}))}(t),Eo),R=_(Lo(bo,e),wo),N=_(Lo(xo,e),ko),M=_(Lo(wo,e),bo),B=_(Lo(ko,e),xo),O=_(Lo(Co,e),Co);if(Qa("SvcXboxRose",!1))switch(a){case Ri:(null===(r=L.games)||void 0===r?void 0:r.length)>0&&I.push(L),(null===(i=M.games)||void 0===i?void 0:i.length)>0&&I.push(M),(null===(o=R.games)||void 0===o?void 0:o.length)>0&&I.push(R),(null===(c=N.games)||void 0===c?void 0:c.length)>0&&I.push(N);break;case Mi:(null===(s=R.games)||void 0===s?void 0:s.length)>0&&I.push(R),(null===(l=O.games)||void 0===l?void 0:l.length)>0&&I.push(O);break;case Ai:(null===(d=M.games)||void 0===d?void 0:d.length)>0&&I.push(M),(null===(u=R.games)||void 0===u?void 0:u.length)>0&&I.push(R),(null===(m=B.games)||void 0===m?void 0:m.length)>0&&I.push(B),(null===(p=N.games)||void 0===p?void 0:p.length)>0&&I.push(N);break;case Pi:(null===(g=R.games)||void 0===g?void 0:g.length)>0&&I.push(R),(null===(h=B.games)||void 0===h?void 0:h.length)>0&&I.push(B),(null===(f=N.games)||void 0===f?void 0:f.length)>0&&I.push(N)}else switch(a){case Ii:(null===(v=L.games)||void 0===v?void 0:v.length)>0&&I.push(L),(null===(y=M.games)||void 0===y?void 0:y.length)>0&&I.push(M),(null===(E=R.games)||void 0===E?void 0:E.length)>0&&I.push(R),(null===(w=N.games)||void 0===w?void 0:w.length)>0&&I.push(N);break;case Ai:(null===(b=M.games)||void 0===b?void 0:b.length)>0&&I.push(M),(null===(x=R.games)||void 0===x?void 0:x.length)>0&&I.push(R),(null===(k=B.games)||void 0===k?void 0:k.length)>0&&I.push(B),(null===(C=N.games)||void 0===C?void 0:C.length)>0&&I.push(N);break;case Pi:(null===(T=R.games)||void 0===T?void 0:T.length)>0&&I.push(R),(null===(S=B.games)||void 0===S?void 0:S.length)>0&&I.push(B),(null===(A=N.games)||void 0===A?void 0:A.length)>0&&I.push(N);break;case _i:(null===(P=R.games)||void 0===P?void 0:P.length)>0&&I.push(R),(null===(D=O.games)||void 0===D?void 0:D.length)>0&&I.push(O)}return I},No=function(e,t){var a;if(!(null===(a=null===e||void 0===e?void 0:e.paynowCODImage)||void 0===a?void 0:a.src)||0===e.paynowCODImage.src.length)return Wt({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"XboxBenefitsUtility",message:"Unable to load CMS for Xbox benefits paynow COD image"}),we().createElement(we().Fragment,null);var n=we().createElement(gn.Stack,{textAlignment:t?"left":"center"},we().createElement(gn.RichText,{textWithTokens:e.bestGame,tokensAndValues:{0:we().createElement(gn.Text,{weightOverride:"bold"},e.bestGameBold)}}));return we().createElement(gn.Stack,null,t?n:we().createElement(we().Fragment,null),we().createElement(gn.Stack,{width:"304px",padding:t?"8px 0px":"0px 0px 8px 0px"},we().createElement(gn.Image,{id:"paynowCODImage",height:"80px",borderRadius:"4px",imageFit:"cover",imageType:"altTextImage",src:e.paynowCODImage.src,alt:e.paynowCODImage.alt})),t?we().createElement(we().Fragment,null):n)},Mo=function(e){var t,a=e.gameInfo,n=e.mediaText,r=e.mediaTextHighlight,i=e.isMobile,o=void 0!==i&&i,c=e.showBestGameCard,s=void 0!==c&&c,l=we().createElement(gn.Stack,{textAlignment:o?"left":"center"},we().createElement(gn.RichText,{textWithTokens:n,tokensAndValues:{0:we().createElement(gn.Text,{weightOverride:"bold"},r)}})),d=a;return s&&(d=null===a||void 0===a?void 0:a.filter((function(e){return!To.includes(e.id)}))),(null===(d=null===(t=null===d||void 0===d?void 0:d.filter((function(e){return e.imageUrl})))||void 0===t?void 0:t.splice(0,3))||void 0===d?void 0:d.length)>0?we().createElement(gn.Stack,{padding:o?"8px 0 0 0":s?"":"0 0 24px 0"},o?l:we().createElement(we().Fragment,null),we().createElement(gn.Stack,{horizontalAlign:o?"start":"center",padding:o||s?"0 0 8px 0":"16px 0"},we().createElement(gn.MediaGroup,{padding:"8px","aria-label":"",products:d.map((function(e){var t=e.imageUrl.includes("?")?"".concat(e.imageUrl,"&w=96"):"".concat(e.imageUrl,"?w=96");return{"aria-label":e.title,"data-bi-id":e.id,mediaImage:{imageType:"image",src:t}}})),variant:"minimalNoShadow"})),o?we().createElement(we().Fragment,null):l):we().createElement(we().Fragment,null)},Bo=function(e){var t=e.gameInfo,a=e.showBestGameCard,n=void 0!==a&&a,r=e.benefitsStrings,i=e.isTurnOnRBFlow,o=void 0!==i&&i,c=e.isConsentFlow,s=void 0!==c&&c,l=r;return l?we().createElement(gn.Stack,{padding:n?"16px 20px 0px":"20px 20px 0px",backgroundColor:"neutralMed",boxShadow:!0,borderRadius:"4px"},s?we().createElement(we().Fragment,null):we().createElement(we().Fragment,null,we().createElement(gn.StackItem,{padding:"0px 0px 12px"},we().createElement(gn.Heading,{tag:"h2",variant:"headerText"},o?l.turnOnRBBenefitsTitle:l.title))),t?we().createElement(gn.Stack,{padding:n?"0px 0px 16px":"0px 0px 20px"},n&&No(l,!0),we().createElement(Mo,{gameInfo:t.games,mediaText:t.mediaText,mediaTextHighlight:t.highlightText,isMobile:!0,showBestGameCard:n})):we().createElement(we().Fragment,null)):(Wt({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"XboxBenefitsSection",message:"Unable to load CMS for Xbox benefits"}),we().createElement(we().Fragment,null))},Oo=function(e){var t=e.friends,a=e.cmsContent,n=e.brandId,r=t.length||0,i="";Ki.checkXboxGamePassUltimate(n)?i=a.multiplayerXgpu:Ki.checkXboxGamePassLive(n)&&(i=a.multiplayerCore);var o=t.map((function(e){return{ariaLabel:e.gamertag,imageUrl:e.displayPicRaw,personaName:e.gamertag,tabIndex:-1}}));return we().createElement(gn.Stack,{horizontalAlign:"center",padding:"16px 0"},we().createElement(gn.Stack,{"aria-hidden":"true",padding:"16px 0"},we().createElement(gn.Facepile,{personas:o,personaSize:"40",maxDisplayablePersonas:2,showTooltip:!1,overflowButton:"descriptive",overflowButtonProps:{tabIndex:-1}})),we().createElement(gn.Stack,null,we().createElement(gn.RichText,{textWithTokens:i,tokensAndValues:{0:we().createElement(gn.RichText,{weightOverride:"bold",textWithTokens:a.noOfFriends,tokensAndValues:{0:we().createElement(gn.Text,{weightOverride:"bold"},r)}})}})))},Fo=function(e){var t=e.cmsContent,a=e.region,n=e.brandId,r=function(e,t,a){var n=[];return Qa("SvcXboxRose",!1)?Ki.checkXboxGamePassUltimate(a)?(n=[{"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"PC1",iconColor:"messageWebSuccess"},mediaText:""},{"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"XboxOneConsole",iconColor:"messageWebSuccess"},mediaText:""}],e.cloudSupportedCountries.split(",").includes(t)&&n.push({"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"Cloud",iconColor:"messageWebSuccess"},mediaText:""})):a===Mi&&(n=[{"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"MultiplayerJoinChallenge",iconColor:"messageWebSuccess"},mediaText:""}]):Ki.checkXboxGamePassUltimate(a)?(n=[{"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"PC1",iconColor:"messageWebSuccess"},mediaText:""},{"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"XboxOneConsole",iconColor:"messageWebSuccess"},mediaText:""}],e.cloudSupportedCountries.split(",").includes(t)&&n.push({"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"Cloud",iconColor:"messageWebSuccess"},mediaText:""})):Ki.checkXboxGamePassLive(a)&&(n=[{"aria-label":"","data-bi-id":"",mediaImage:{imageType:"icon",iconName:"MultiplayerJoinChallenge",iconColor:"messageWebSuccess"},mediaText:""}]),n}(t,a,n),i=function(e,t,a){var n=e.cloudSupportedCountries.split(",").includes(t),r="",i="";return Qa("SvcXboxRose",!1)?a===Ri&&n?(r=e.benefitText,i=e.benefitPlatformsCloud):a!==Ri||n?a===Mi&&(r=e.multiplayerCoreNoFriends,i=e.multiplayerCoreNoFriendsBold):(r=e.benefitText,i=e.benefitPlatforms):a===Ii&&n?(r=e.benefitText,i=e.benefitPlatformsCloud):a!==Ii||n?a===_i&&(r=e.multiplayerCoreNoFriends,i=e.multiplayerCoreNoFriendsBold):(r=e.benefitText,i=e.benefitPlatforms),[r,i]}(t,a,n),o=i[0],c=i[1];return we().createElement(gn.Stack,{horizontalAlign:"center",padding:"16px 0"},we().createElement(gn.MediaGroup,{padding:"8px","aria-label":"",products:r,variant:"minimalNoShadow"}),we().createElement(gn.Stack,{textAlignment:"center"},we().createElement(gn.RichText,{textWithTokens:o,tokensAndValues:{0:we().createElement(gn.Text,{weightOverride:"bold"},c)}})))},Vo=function(e){var t,a,n,r,i=e.gamesInfo,o=e.friends,c=e.brandId,s=e.market,l=e.benefitsStrings,d=e.showBestGameCard,u=void 0!==d&&d,m=l,p=null!==(t=o&&o.length>0)&&void 0!==t&&t,g=[Ki.getBrandIdForXboxGamePassUltimate(),Ki.getBrandIdForXboxGamePassLive()].includes(c)&&p,h=Ki.checkXboxGamePassUltimate(c)||Ki.checkXboxGamePassLive(c)&&!p,f=(0,Ee.useState)(0),v=f[0],y=f[1];return Se((function(){m?function(){var e=1;if(Ki.isSvcXboxRoseFlightEnabled())switch(c){case Mi:e=2;break;case Ai:case Pi:e=3}else switch(c){case _i:e=2;break;case Ai:case Pi:e=3}Ki.checkXboxGamePassUltimate(c)&&!p&&e++,y(e)}():Wt({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"XboxBenefitsVerticalSection",message:"Unable to load CMS for Xbox benefits"})})),i&&m?we().createElement(gn.Stack,{childrenGap:u?"16px":"",horizontal:!1,horizontalAlign:"center",height:"100%",overflow:"auto"},u&&No(m,!1),v>=1&&(null===(a=i[0])||void 0===a?void 0:a.games)&&we().createElement(Mo,{key:i[0].category,gameInfo:i[0].games,mediaText:i[0].mediaText,mediaTextHighlight:i[0].highlightText,showBestGameCard:u}),v>=2&&(null===(n=i[1])||void 0===n?void 0:n.games)&&we().createElement(Mo,{key:i[1].category,gameInfo:i[1].games,mediaText:i[1].mediaText,mediaTextHighlight:i[1].highlightText,showBestGameCard:u}),v>=3&&(null===(r=i[2])||void 0===r?void 0:r.games)&&we().createElement(Mo,{key:i[2].category,gameInfo:i[2].games,mediaText:i[2].mediaText,mediaTextHighlight:i[2].highlightText,showBestGameCard:u}),g&&o?we().createElement(gn.Stack,{padding:"0 0 24px 0"},we().createElement(Oo,{friends:o,cmsContent:m,brandId:c})):null,h?we().createElement(gn.Stack,{padding:"0 0 24px 0"},we().createElement(Fo,{cmsContent:m,region:s,brandId:c})):null):we().createElement(we().Fragment,null)},Uo="XboxBenefitsDunning",Ho=function(e){var t=e.brandId,a=e.market,r=e.benefitsStrings,i=e.isMobile,o=e.showBestGameCard,c=void 0!==o&&o,s=e.isTurnOnRBFlow,l=void 0!==s&&s,d=e.isConsentFlow,u=void 0!==d&&d,m=ma(),p=r,g=(0,Ee.useState)(),h=g[0],f=g[1],v=(0,Ee.useState)(),y=v[0],E=v[1];return Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,a,r,i;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:if(!p)return Wt({name:"Ms.Webi.MeePortal.ServicesEvent",eventType:"warning",component:"XboxBenefitsVerticalSection",message:"Unable to load CMS for Xbox benefits"}),[2];m({name:Uo,status:"first-load"}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,So(t)];case 2:return e=n.sent(),a=Ro(e.GameInfo,e.RecentlyPlayed,t,p),f(a),E(e.Friends),r=function(e,t){var a={};return null===e||void 0===e||e.forEach((function(e){a[e.category]=e.games.length})),a.FriendsCount=null===t||void 0===t?void 0:t.length,a}(a,e.Friends),m({name:Uo,status:"finished",customData:{gameStats:r}}),[3,4];case 3:return i=n.sent(),m({name:Uo,status:"failed",error:i}),[3,4];case 4:return[2]}}))}))})),we().createElement(gn.ShimmerProgressView,{operationData:{operationName:Uo,componentName:"xbox-benefits-dunning"},firstLoadView:_o(t,i),finishedView:i?we().createElement(Bo,{gameInfo:null===h||void 0===h?void 0:h[0],showBestGameCard:c,benefitsStrings:r,isTurnOnRBFlow:l,isConsentFlow:u}):we().createElement(Vo,{brandId:t,gamesInfo:h,friends:y,showBestGameCard:c,market:a,benefitsStrings:r}),failedView:we().createElement(we().Fragment,null)})},Go=function(e){var t=e.src;return we().createElement(gn.Image,{imageFit:"contain",height:"56px",width:"56px",imageType:"ariaHiddenImage",src:t})};Qa("SvcPayNowQuasarCdn");var qo,Wo=function(e){var t,a=e.dataBiIdPrefix,n=e.onConsentChange,r=e.celaStrings,i=e.celaNORRichText,o=e.celaNORAriaLabel,c=(0,Ee.useState)(!1),s=c[0],l=c[1],d=i||r.recurringBillingConsent,u=o||r.recurringBillingConsent;return null!==(t=we().createElement(gn.Checkbox,{"data-bi-id":"".concat(a,".userConsentBox"),"aria-label":u,onChange:function(e,t){l(t||!s),n&&n()},checked:s,label:d}))&&void 0!==t?t:we().createElement(we().Fragment,null)};!function(e){e.Amc="amc",e.None="none"}(qo||(qo={}));var zo,jo,Qo,Xo,Yo=a(55142),$o=2,Ko=500,Jo=function e(t,a,r,i){return void 0===i&&(i=1),(0,n.__awaiter)(void 0,void 0,void 0,(function(){var o;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,4]),[4,t(i)];case 1:return[2,n.sent()];case 2:if(o=n.sent(),a<=0)throw o;return[4,new Promise((function(e){return setTimeout(e,r)}))];case 3:return n.sent(),[2,e(t,a-1,r,i+1)];case 4:return[2]}}))}))},Zo=function(e,t){if(!e||!e[t])throw new Error('Module "'.concat(t,'" not found in the remote module'));return function(){return e[t]}},ec="fetch-remote-module",tc=function(e){var t=(0,Ee.useState)((function(){return function(){return we().createElement(we().Fragment,null)}})),a=t[0],r=t[1],i=(0,Ka.useTwoUIOperationDispatcher)(),o=function(e){var t=e.serviceName,a=e.environment,r=e.enableCdn,i=void 0===r||r,o=e.scope,c=e.module,s=e.remoteEntryFileName,l=void 0===s?"remoteEntry.js":s,d=e.operationName,u=void 0===d?"GLOBAL.HOST.GET-REMOTE-MODULE":d,m=e.shouldInvalidateCache,p=void 0===m||m,g=(0,Ee.useMemo)((function(){return{serviceName:t,environment:a,enableCdn:i,scope:o,module:c,remoteEntryFileName:l,operationName:u,shouldInvalidateCache:p}}),[t,a,i,o,c,l,u,p]),h=(0,Ee.useMemo)((function(){if("local"===a)return{cdnUrl:"https://".concat("localhost:44494"),serverUrl:"https://".concat("localhost:8087")};var e="prod"===a?"":"-".concat(a),n="".concat("msdxcdn.microsoft").concat(e,".com"),r="".concat("msdx.microsoft").concat(e,".com");return{cdnUrl:"https://".concat(t,".").concat(n),serverUrl:"https://".concat(t,".").concat(r)}}),[t,a]),f=(0,Ee.useCallback)((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t,r,i,o,c,s,l;return(0,n.__generator)(this,(function(d){switch(d.label){case 0:return e=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,ka("".concat(h.serverUrl,"/").concat("version.json"),{operation:"GLOBAL.HOST.GET-REMOTE-MODULE-CURRENT-VERSION",customData:{attempt:e}})];case 1:return[2,a.sent().data];case 2:throw t=a.sent(),new Error("Failed to fetch version: ".concat(t instanceof Error?t.message:String(t)));case 3:return[2]}}))}))},t=function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var a;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Aa((0,Yo.importRemote)({url:e,scope:g.scope,module:"./".concat(g.module),remoteEntryFileName:g.remoteEntryFileName,bustRemoteEntryCache:g.shouldInvalidateCache}),{operation:g.operationName,customData:{attempt:t}})];case 1:return[2,n.sent()];case 2:throw a=n.sent(),new Error("Failed to load remote module from ".concat(e,": ").concat(a instanceof Error?a.message:String(a)));case 3:return[2]}}))}))},"local"!==a?[3,2]:[4,t(h.cdnUrl,1)];case 1:return r=d.sent(),[2,Zo(r,g.module)];case 2:if(!g.enableCdn)return[3,7];d.label=3;case 3:return d.trys.push([3,6,,7]),[4,Jo(e,$o,Ko)];case 4:return i=d.sent(),o="".concat(h.cdnUrl,"/").concat(i.version),[4,Jo((function(e){return t(o,e)}),$o,Ko)];case 5:return c=d.sent(),[2,Zo(c,g.module)];case 6:return d.sent(),Wt({name:"Ms.Webi.MeePortal.HttpUrlEvent",url:h.cdnUrl,page:"FederatedModule"}),[3,7];case 7:return d.trys.push([7,9,,10]),[4,Jo((function(e){return t(h.serverUrl,e)}),$o,Ko)];case 8:return s=d.sent(),[2,Zo(s,g.module)];case 9:throw l=d.sent(),Wt({name:"Ms.Webi.MeePortal.HttpUrlEvent",url:h.serverUrl,page:"FederatedModule"}),l;case 10:return[2]}}))}))}),[g,h,a]);return{getComponent:f}}(e).getComponent;return(0,Ee.useEffect)((function(){(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:i({name:ec,status:"first-load"}),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,o()];case 2:return e=a.sent(),r(e),i({name:ec,status:"finished"}),[3,4];case 3:return t=a.sent(),i({name:ec,status:"failed",error:t}),[3,4];case 4:return[2]}}))}))}),[o,i]),a},ac=a(81006),nc=function(e){var t=(0,gn.useDialogController)(),a="essentials-failure-dialog",r=e.errorStrings,i=we().createElement(gn.Text,null,r.errorMessage);(0,gn.useMount)((function(){Nt()&&(e.isAuthError?_t({error:"EssentialsQuasarAuthError",data:{isUserError:!0}}):_t({error:"EssentialsQuasarHostError"}))}));var o=function(){var e=r.close;return{buttonPrimary:{onClick:function(){return t.closeDialog()},text:e,"aria-label":e,"data-bi-id":"".concat(a,"-error-href")}}}(),c={isOpen:!0,onDismiss:function(){t.closeDialog()},title:r.errorTitle,stickyHeaderFooter:{hasStickyHeaderFooters:!0},closeButton:{"data-bi-id":"".concat(a,"-close"),"aria-label":r.close},dialogFooterProps:o};return we().createElement(gn.Dialog,(0,n.__assign)({},c),we().createElement(gn.FocusZone,null,we().createElement(gn.Stack,{horizontalAlign:"center",textAlignment:"center",childrenGap:24,padding:"50px 0 150px 0","data-is-focusable":!0},we().createElement(Go,{src:"https://assets.account.microsoft.com/family/compassassets/74078fee-540c-4af4-aacf-e7b898a77c51.svg?n=DeviceSecurityError.svg"}),i)))},rc="essentials-host",ic={serviceName:"subs-paynow",enableCdn:Qa("SvcPayNowQuasarCdn"),scope:"acw",module:"Essentials",operationName:"GLOBAL.ESSENTIALS-HOST.GET-REMOTE-MODULE"},oc=function(){return we().createElement(we().Fragment,null,we().createElement(gn.Stack,{horizontalAlign:"center",childrenGap:10},we().createElement(gn.Stack,null,we().createElement(gn.ShimmerLine,{width:120,height:20})),we().createElement(gn.Stack,null,we().createElement(gn.ShimmerLine,{width:650,height:40})),we().createElement(gn.Stack,{padding:"1.0rem 2.5rem"},we().createElement(gn.ShimmerLine,{width:90,height:20}))),we().createElement(gn.Stack,null,we().createElement(gn.CardGroupBeta,{maxWidth:444,minWidth:290},Array.from({length:9}).map((function(e,t){return we().createElement(gn.DetailsCardShimmer,{key:t})})))))},cc=function(e){var t=e.area,a=e.cmmid,r=e.triggerBIId,i=e.errorStrings,o=e.succeededCallback,c=e.isComFlightEnabled,s=void 0!==c&&c,l=(0,gn.useViewport)(),d=["xl","xxl","xxxl"].includes(l),u=(0,gn.useDialogController)(),m=ma(),p=(0,Zt.useHistory)(),g="area",h="cmmid",f="triggerBIId",v=(0,Ee.useState)(!1),y=v[0],E=v[1],w=(0,Ee.useMemo)((function(){var e,t=document.getElementById("root");if(t){var a=qe;try{a=JSON.parse(t.dataset.areaConfig||"{}").language||a}catch(c){}return{environment:(null===(e=t.dataset.environment)||void 0===e?void 0:e.toLowerCase())||Ge,locale:a}}return{environment:Ge,locale:qe}}),[]),b=w.environment,x=w.locale,k="fetch-remote-module",C=function(){var e=new URLSearchParams(window.location.search);e.delete(g),e.delete(h),e.delete(f),e.delete("cv"),p.replace({search:"?".concat(e.toString())})},T=null;try{T=function(e,t,a,r,i,o,c,s){var l=(0,Ee.useState)([])[0],d=(0,Ee.useRef)(!1),u=Ln({scopes:l,fallback:cn.Redirect,shouldLoad:!1}).getToken;return(0,Ee.useMemo)((function(){return{auth:{getToken:function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var a;return(0,n.__generator)(this,(function(n){try{if(a=u(e,"interactive"===(null===t||void 0===t?void 0:t.fallback)))return[2,a];throw new Error("NoGsaAccessTokenError")}catch(r){i&&(i(r),d.current=!0)}return[2]}))}))}},expOverrides:$a(),hostActions:{openUrl:function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(a){return window.open(e,t),[2]}))}))},closeDialog:function(t,a){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){return a?window.open(a,"_self"):e.closeDialog(),[2]}))}))},onFlowSuccess:null!==t&&void 0!==t?t:function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return[2]}))}))},onFlowCancelled:null!==r&&void 0!==r?r:function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return[2]}))}))},onTryAgain:null!==o&&void 0!==o?o:function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return[2]}))}))},onFlowFailure:function(e,t,r){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(n){return a&&!d.current&&a(e,t,r),[2]}))}))}},alcContextParams:new URLSearchParams({}),hideDialogCloseButton:!1,reverseProxyHost:c,serviceFlightsFromHost:s}}),[l,u,e])}(u,(function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return C(),_t(),null===o||void 0===o||o(),[2]}))}))}),(function(e,t,a){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return C(),_t({error:t,data:a}),[2]}))}))}),(function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return C(),It(),[2]}))}))}),(function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){return C(),m({name:k,status:"failed",error:e}),E(!0),[2]}))}))}))}catch(P){m({name:k,status:"failed",error:P}),E(!0)}var S=tc(function(e){return(0,n.__assign)((0,n.__assign)({},ic),{environment:Qa("EnableEnvOverride")?e.toLowerCase():{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:"localhost",WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_ENV||"prod"})}(b));(0,Ee.useEffect)((function(){var e;Pt({area:t||"leftnav",scenario:"EssentialsBenefits",step:"Essentials.Index",data:{flow:r}});for(var n=new URLSearchParams(window.location.search),i=((e={}).triggerBIId=r,e.cmmid=a,e.cv=Ot(),e.area=t||"leftnav",e),o=0,c=Object.entries(i);o<c.length;o++){var s=c[o],l=s[0],d=s[1];"string"===typeof d&&void 0!==d&&n.set(l,d)}p.replace({search:"?".concat(n.toString())})}),[p]);var A=(0,n.__assign)({isOpen:!0,title:{src:"https://assets.account.microsoft.com/services/compassassets/93c56220-f0ab-4662-ba77-f2a5f86e9008.png?n=microsoft-logo.png",imageType:"ariaHiddenImage"},withHeaderHorizontalLine:!0,staticBodyWidth:"480px",stickyHeaderFooter:{hasStickyHeaderFooters:!0,firstFocusOnContent:!0,bodyMaxHeight:"85vh"},minBodyHeight:{unit:"%",height:100},dialogFooterProps:{buttonPrimary:{disabled:!0,text:"Close","aria-label":"close","data-bi-id":"essentials-dialog-error-close-window",onClick:function(){}}},onDismiss:function(){var e,t,a,n;null===(t=null===T||void 0===T?void 0:(e=T.hostActions).onFlowCancelled)||void 0===t||t.call(e,"Essentials"),null===(n=null===T||void 0===T?void 0:(a=T.hostActions).closeDialog)||void 0===n||n.call(a,"CANCELLED")},closeButton:(null===T||void 0===T?void 0:T.hideDialogCloseButton)?void 0:{id:"".concat(rc,"-close"),"data-bi-id":"".concat(rc,"-close"),"aria-label":"close"}},function(e){var t=e.showFullScreen,a=e.showWideDialog;return(0,n.__assign)((0,n.__assign)({},a&&{staticBodyWidth:"968px"}),t&&{fullScreenMode:{fullScreenViewports:"smallToLarge"}})}({showFullScreen:null===T||void 0===T?void 0:T.hideDialogCloseButton,showWideDialog:d}));return we().createElement(ac.TwoUIProgressView,{operationData:{componentName:rc,operationName:k},firstLoadView:we().createElement(gn.Dialog,(0,n.__assign)({},A),we().createElement(oc,null)),finishedView:we().createElement(S,{bridgeImplementation:T,displayLanguage:x,isComFlightEnabled:s}),failedView:we().createElement(nc,{area:t,triggerBIId:r,isAuthError:y,errorStrings:i})})},sc=((zo={})[Hi]={month:1.99,year:19.99},zo[Bi]={month:6.99,year:69.99},zo[Oi]={month:9.99,year:99.99},zo[Ui]={month:19.99,year:199.99},zo["Xbox Game Pass for Console"]={month:24.99,year:0},zo[Gi]={month:19.99,year:0},zo[Wi]={month:11.99,year:0},zo[qi]={month:14.99,year:0},zo[zi]={month:9.99,year:0},zo),lc=((jo={})[Hi]={month:"$1.99",year:"$19.99"},jo[Bi]={month:"$6.99",year:"$69.99"},jo[Oi]={month:"$9.99",year:"$99.99"},jo[Ui]={month:"$19.99",year:"$199.99"},jo["Xbox Game Pass for Console"]={month:"$24.99",year:"$0.00"},jo[Gi]={month:"$19.99",year:"$0.00"},jo[Wi]={month:"$11.99",year:"$0.00"},jo[qi]={month:"$14.99",year:"$0.00"},jo[zi]={month:"$9.99",year:"$0.00"},(Qo={})[Hi]={month:1.99,year:19.99},Qo[Bi]={month:9.99,year:99.99},Qo[Oi]={month:12.99,year:129.99},Qo[Fi]={month:6.99,year:69.99},Qo[Vi]={month:9.99,year:99.99},Qo[Ui]={month:19.99,year:199.99},Qo["Xbox Game Pass for Console"]={month:24.99,year:0},Qo[Gi]={month:19.99,year:0},Qo[Wi]={month:11.99,year:0},Qo[qi]={month:14.99,year:0},Qo[zi]={month:9.99,year:0},(Xo={})[Hi]={month:"$1.99",year:"$19.99"},Xo[Bi]={month:"$9.99",year:"$99.99"},Xo[Oi]={month:"$12.99",year:"$129.99"},Xo[Fi]={month:"$6.99",year:"$69.99"},Xo[Vi]={month:"$9.99",year:"$99.99"},Xo[Ui]={month:"$19.99",year:"$199.99"},Xo["Xbox Game Pass for Console"]={month:"$24.99",year:"$0.00"},Xo[Gi]={month:"$19.99",year:"$0.00"},Xo[Wi]={month:"$11.99",year:"$0.00"},Xo[qi]={month:"$14.99",year:"$0.00"},Xo[zi]={month:"$9.99",year:"$0.00"},new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}));new Intl.NumberFormat("en-CA",{style:"currency",currency:"CAD"});function dc(e){return{listPrice:lc.format(e),listPriceInDecimal:e,msrp:lc.format(e),msrpInDecimal:e,isPIRequired:0,recurrencePrice:e,currencyCode:"USD",taxType:"TaxesNotIncluded",totalTax:(.1*e).toFixed(2),totalTaxInDecimal:.1,fullPrice:(e+.1*e).toFixed(2),fullPriceInDecimal:e+.1*e,taxDetails:[],isTaxPopulated:!0}}function uc(e){var t=new Date;t.setFullYear(t.getFullYear()+1),t.setDate(t.getDate()+e);return function(e){var t=function(e){return e<10?"0".concat(e):e};return"".concat(t(e.getMonth()+1),"/").concat(t(e.getDate()),"/").concat(e.getFullYear()," ").concat(t(e.getHours()),":").concat(t(e.getMinutes()),":").concat(t(e.getSeconds()))}(t)}var mc={availabilityId:"A",currencyCode:"USD",current:!1,cycle:1,nextChargeDate:"",upgradeProrateNextChargeDate:"",conversionDetailsUrl:"",futurePriceV2:dc(9.99),taxType:"TaxesNotIncluded",skuId:"Monthly",cycleLength:1,cycleUnit:"month",relativeSavingsPercent:0,paymentInstrumentExclusionFilters:[],paymentInstrumentInclusionFilters:[],showUserConsentText:!1,selected:!1,isImmediateConversion:!1,immediatePrice:{}};function pc(){var e={};return{withM365Basic:function(){return e=(0,n.__assign)((0,n.__assign)({},mc),{productId:Hi,productName:"Microsoft 365 Basic",hasAIBenefits:!1}),this},withM365Premium:function(){return e=(0,n.__assign)((0,n.__assign)({},mc),{productId:Ui,productName:"Microsoft 365 Premium",hasAIBenefits:!0}),this},withM365Family:function(){return e=(0,n.__assign)((0,n.__assign)({},mc),{productId:Oi,productName:"Microsoft 365 Family",hasAIBenefits:!1}),this},withM365Personal:function(){return e=(0,n.__assign)((0,n.__assign)({},mc),{productId:Bi,productName:"Microsoft 365 Personal",hasAIBenefits:!1}),this},withM365FamilyAI:function(){return e=(0,n.__assign)((0,n.__assign)({},mc),{productId:Oi,productName:"Microsoft 365 Family",hasAIBenefits:!0}),this},withM365PersonalAI:function(){return e=(0,n.__assign)((0,n.__assign)({},mc),{productId:Bi,productName:"Microsoft 365 Personal",hasAIBenefits:!0}),this},withXboxGamePassUltimate:function(){return e=(0,n.__assign)((0,n.__assign)({},mc),{productId:Gi,productName:"Xbox Game Pass Ultimate"}),this},withMonthly:function(){if(!e.productId)throw new Error("Product ID is required to build a Renew Path");return e=(0,n.__assign)((0,n.__assign)({},e),{skuId:"Monthly",cycleUnit:"month",cycle:1,futurePriceV2:dc(sc[e.productId].month),nextChargeDate:uc(30)}),this},withYearly:function(){if(!e.productId)throw new Error("Product ID is required build a Renew Path ");return e=(0,n.__assign)((0,n.__assign)({},e),{skuId:"Yearly",cycleUnit:"year",cycle:12,futurePriceV2:dc(sc[e.productId].year),nextChargeDate:uc(365)}),this},withSavings:function(t){return e=(0,n.__assign)((0,n.__assign)({},e),{savingsAmount:t}),this},withImmediateConversion:function(){if(!e.futurePriceV2||!e.futurePriceV2.listPriceInDecimal)throw new Error("Price in decimal is required to set immediate conversion");return e=(0,n.__assign)((0,n.__assign)({},e),{isImmediateConversion:!0,immediatePrice:dc(e.futurePriceV2.listPriceInDecimal)}),this},withNextChargeDate:function(t){return e=(0,n.__assign)((0,n.__assign)({},e),{nextChargeDate:t}),this},withOneMonthOffer:function(){return e=(0,n.__assign)((0,n.__assign)({},e),{promotionalCycleUnit:"month",promotionalCycleLength:1,relativeSavingsPercent:0,hasOneMonthOffer:!0}),this},withSavingsPercent:function(t){return e=(0,n.__assign)((0,n.__assign)({},e),{relativeSavingsPercent:t}),this},withPrice:function(t){return e=(0,n.__assign)((0,n.__assign)({},e),{futurePriceV2:dc(t)}),this},withTaxType:function(t){return e=(0,n.__assign)((0,n.__assign)({},e),{futurePriceV2:(0,n.__assign)((0,n.__assign)({},dc(e.futurePriceV2.listPriceInDecimal)),{taxType:t}),taxType:t,immediatePrice:e.isImmediateConversion?(0,n.__assign)((0,n.__assign)({},dc(e.futurePriceV2.listPriceInDecimal)),{taxType:t}):e.immediatePrice}),this},withUpgradeProrateNextChargeDate:function(t){return e=(0,n.__assign)((0,n.__assign)({},e),{upgradeProrateNextChargeDate:t}),this},currentPath:function(){return e=(0,n.__assign)((0,n.__assign)({},e),{current:!0}),this},selectedPath:function(){return e=(0,n.__assign)((0,n.__assign)({},e),{selected:!0}),this},build:function(){return e}}}var gc=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"});function hc(e){return{listPrice:gc.format(e),listPriceInDecimal:e,msrp:gc.format(e),msrpInDecimal:e,isPIRequired:0,recurrencePrice:e,currencyCode:"USD",taxType:"TaxesNotIncluded",totalTax:(.1*e).toFixed(2),totalTaxInDecimal:.1,fullPrice:(e+.1*e).toFixed(2),fullPriceInDecimal:e+.1*e,taxDetails:[],isTaxPopulated:!0}}(9.99*.05).toFixed(2),(9.99*.1).toFixed(2),hc(9.99),hc(9.99),Ei.ActiveAutoRenewOn,hc(9.99),Ei.ActiveAutoRenewOn,hc(9.99),Ei.Unknown,hc(9.99),pc().withM365Personal().withYearly().withNextChargeDate("11/19/2024 11:36:46").withImmediateConversion().withPrice(39.99).withSavings("$30").withSavingsPercent(16).build();var fc,vc=pc().withM365Family().withMonthly().withNextChargeDate("10/26/2021 15:14:43").build(),yc=(pc().withM365Basic().withMonthly().withNextChargeDate("10/26/2021 15:14:43").build(),pc().withM365Family().withYearly().withNextChargeDate("12/09/2022 14:56:53").build(),pc().withM365Family().withMonthly().withNextChargeDate("10/26/2021 15:14:43").withImmediateConversion().build()),Ec=(pc().withM365Family().withYearly().withNextChargeDate("10/26/2021 15:14:43").withImmediateConversion().build(),pc().withM365Family().withYearly().withOneMonthOffer().withSavingsPercent(5).withNextChargeDate("12/09/2022 14:56:53").currentPath().build(),pc().withM365Family().withMonthly().withOneMonthOffer().withNextChargeDate("10/26/2021 15:14:43").build(),hc(6.99),hc(6.99),function(e){return"_self"===e||"_blank"===e?e:void 0}),wc=we().createContext({updateSessionId:function(e){}}),bc=function(e){var t,a,r,i=e.componentName,o=e.title,c=e.confirmationTitle,s=e.immediatePaymentMessage,l=e.confirmationMessage,d=e.buttonUrlReplacementString,u=e.buttonText,m=e.isError,p=e.commonCmsContent,g=e.staticBodyWidth,h=e.onCloseAction,f=e.onPrimaryButtonClickAction,v=e.dialogParams,y=(0,gn.useDialogController)(),E=function(){h?h():d?window.location.replace(d):y.closeDialog()},w=function(e,t){return t&&"string"===typeof e?we().createElement(gn.Heading,{variant:"paneHeader",tag:"h2"},e):"string"===typeof e?we().createElement(gn.Text,null,e):we().createElement(gn.RichText,(0,n.__assign)({},e))},b={isOpen:!0,onDismiss:E,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:null!==(t=null===v||void 0===v?void 0:v.title)&&void 0!==t?t:o,subtitle:null===v||void 0===v?void 0:v.subtitle,closeButton:{"data-bi-id":"".concat(i,"-").concat(m?"error":"success","-close"),"aria-label":p.closeButton},dialogFooterProps:{hasFooterBackground:!0,hasFooterHorizontalLine:!0,buttonPrimary:{onClick:null!==f&&void 0!==f?f:E,text:u,"aria-label":u,"data-bi-id":"".concat(i,"-").concat(m?"error":"success","-href")}},minBodyHeight:null!==(a=null===v||void 0===v?void 0:v.minBodyHeight)&&void 0!==a?a:Ar,staticBodyWidth:null!==(r=null===v||void 0===v?void 0:v.staticBodyWidth)&&void 0!==r?r:g};return we().createElement(gn.Dialog,(0,n.__assign)({},b),we().createElement(gn.Stack,{height:"100%",verticalAlign:"center",horizontalAlign:"center",textAlignment:"center",childrenGap:24},we().createElement(gn.Image,{imageFit:"contain",height:"56px",width:"56px",imageType:"ariaHiddenImage",src:m?p.failureIcon:p.successIcon}),w(c,!0),we().createElement(gn.Text,null,s),w(l)))},xc=1,kc=2,Cc=3,Tc=4,Sc=5,Ac=6,Pc=7;function Dc(e,t,a){if(!e)return kc;if(void 0!==e.daysUntilExpired&&e.daysUntilExpired<=0)return Cc;if(e.paymentMethodType===pr)if(e.csvBalanceAmount&&a&&e.csvBalanceAmount<a){if(!t)return Ac;if(void 0!==t.daysUntilExpired&&t.daysUntilExpired<=0)return Pc}else{if(!t)return Tc;if(void 0!==t.daysUntilExpired&&t.daysUntilExpired<=0)return Sc}return xc}var Ic=function(){return fc.useValue()},_c=function(e){fc.setValue(e)},Lc="560px",Rc=function(e){var t,a,r,i,o,c,s,l,d,u=e.service,m=e.selectedRenewPath,p=e.primaryCTAText,g=e.celaDisclaimerContent,h=e.commonCELAResource,f=e.onConsentChange,v=e.flowType,y=e.isConsentRecording,E=void 0!==y&&y,w=e.flow,b=u.market,x=u.brandId===Li,k=null!==(t=ke(g.storeTermsCopilotList,b,"default",","))&&void 0!==t?t:"",C=Le(x?k:g.storeTerms,p),T=g.storeTermsLinkText,S=g.storeTermsLink,A=g.termsOfUseLinkText,P=g.termsOfUseLink,D=!Qa("SvcNORRollback")&&ao(u.market),I="upgradeProrateNextChargeDate"in m?(0,gn.toShortDate)((null===m||void 0===m?void 0:m.upgradeProrateNextChargeDate)||(null===m||void 0===m?void 0:m.nextChargeDate)):(0,gn.toShortDate)(null===m||void 0===m?void 0:m.nextChargeDate),_="";if(io(u)){var L=Ji(u.productRenewal.cycleUnit,u.productRenewal.cycleLength,h.day,h.days,h.month,h.months,h.year,h.years);_=Le(null===h||void 0===h?void 0:h.recurringBillingOnRDBody,{listPrice:m.futurePriceV2.listPrice,remainingDiscountedRenewals:null===(a=u.productRenewal)||void 0===a?void 0:a.remainingDiscountedRenewals,msrp:(null===(i=null===(r=u.productRenewal)||void 0===r?void 0:r.immediatePrice)||void 0===i?void 0:i.msrp)||(null===(c=null===(o=u.productRenewal)||void 0===o?void 0:o.futurePriceV2)||void 0===c?void 0:c.msrp),cycleUnit:u.productRenewal.cycleUnit,cycleFormat:L})}else _=po({service:u,celaStrings:h,cycleLength:m.cycleLength,cycleUnit:m.cycleUnit,nextChargeDate:I,isImmediateConversion:m.isImmediateConversion,immediatePriceDetails:m.futurePriceV2,isConsentRecording:E});var R=function(e){var t=e.service,a=e.celaStrings,n=e.cycleLength,r=e.cycleUnit,i=e.immediatePriceDetails,o=e.futurePriceDetails,c=e.flowType,s=i||o;if(!s)return"";var l=c===Yi?a.taxBreakdownImmediate:a.taxBreakdown,d=uo(t.market,s,l),u=Ji(r||t.productRenewal.cycleUnit,n||t.productRenewal.cycleLength,a.day,a.days,a.month,a.months,a.year,a.years);return Le(a.everyText,{price:d,cycle:u})}({service:u,celaStrings:h,cycleLength:m.cycleLength,cycleUnit:m.cycleUnit,nextChargeDate:I,isImmediateConversion:m.isImmediateConversion,immediatePriceDetails:m.futurePriceV2,flowType:v}),N=ke(g.learnMoreList,b,"default",","),M=ke(g.learnMoreLinkList,b,"default",","),B=we().createElement(Wo,{dataBiIdPrefix:"user-consent-checkbox",celaStrings:h,onConsentChange:f}),O=null!==(s=ke(x?g.refundTextCopilotList:g.refundTextList,b,"default",","))&&void 0!==s?s:"",F=Ji(m.cycleUnit,m.cycleLength,h.day,h.days,h.month,h.months,h.year,h.years);O&&(O=Le(O,F));var V=ke(x?g.stopChargesCopilotList:g.stopChargesListUpdated,b,"default",","),U="",H={},G="",q=ke(x?g.priceNotifyCopilotList:g.priceNotifyListUpdated,b,"default",","),W=null!==(l=ke(g.proratedRefundList,b,"default",","))&&void 0!==l?l:"";W&&(W=Le(W,F));var z=g.learnAboutCancellationText,j=ke(g.learnAboutCancellationLinkList,b,"default",","),Q=m.showRenewalCheckbox,X=g.cancelTerms,Y=g.turnOffTerms,$=g.selectCheckbox,K=g.storeTermsWithoutAISKU,J=g.storeTermsBasic,Z=g.userConsentXboxTerms,ee=Le(g.xboxStoreTerms,p),te=g.learnAboutRecurringBilling,ae=g.learnAboutRecurringBillingLink;if(x)D?(U="".concat($," ").concat(_," ").concat(q," ").concat(V," ").concat(O," {lineBreak}{lineBreak} ").concat(C),G="".concat($," ").concat(_," ").concat(q," ").concat(V," ").concat(O," ").concat(C)):U=Q?"".concat(C," ").concat(_," ").concat(q," ").concat(V," ").concat(O," {lineBreak}{lineBreak} {userConsent}"):"".concat(C," ").concat(_," ").concat(q," ").concat(V," ").concat(O);else if(D&&u.isXboxBrandId){U="".concat(Z," {lineBreak} {lineBreak} ").concat(ee);var ne=Z.replace("{xboxPrice}",R).replace("{xboxLearnMore}",h.learnMoreText);G="".concat(ne," ").concat(ee)}else U=Q?"".concat(C," ").concat(_," ").concat(q," ").concat(V," ").concat(O," {learnAboutCancellation} {lineBreak}{lineBreak} {userConsent}"):"".concat(C," ").concat(_," ").concat(q," ").concat(V," ").concat(O," {learnAboutCancellation}");if(u.isM365BrandId&&m.productId!==Hi){var re=null!==(d=ke(g.stopFutureChargesList,b,"default",","))&&void 0!==d?d:"",ie=m.hasAIBenefits?Le(g.storeTermsWithAI,p):Le(g.storeTermsWithoutAI,p);if(D){var oe=Qa("SvcArbutusCopilot",!1)?g.storeTermsWithAISKUPremium:g.storeTermsWithAISKU;ie=m.hasAIBenefits?Le(oe,p):Le(K,p),U="".concat($," ").concat(_," ").concat(q," ").concat(X," ").concat(Y," ").concat(W," {learnAboutCancellation} {lineBreak}{lineBreak} ").concat(ie),G="".concat($," ").concat(_," ").concat(q," ").concat(X," ").concat(Y," ").concat(W," ").concat(z," ").concat(ie)}else if("Upgrade"===w&&m.productId===Ui&&Qa("SvcArbutusUpgrade",!1)){var ce=Mc(m.cycleUnit,b,g,p),se=ce.storeTermsForPremium,le=ce.marketSpecificTerms;U=Q?"".concat(se," ").concat(le," {lineBreak}{lineBreak} {userConsent}"):"".concat(se," ").concat(le)}else U=Q?"".concat(ie," ").concat(_," ").concat(q," ").concat(re," ").concat(W," {learnAboutCancellation} {lineBreak}{lineBreak} {userConsent}"):"".concat(ie," ").concat(_," ").concat(q," ").concat(re," ").concat(W," {learnAboutCancellation}")}if(u.isM365BrandId&&m.productId===Hi&&D){ie=Le(J,p);U="".concat($," ").concat(_," ").concat(q," ").concat(X," ").concat(Y," ").concat(W," {learnAboutCancellation} {lineBreak}{lineBreak} ").concat(ie),G="".concat($," ").concat(_," ").concat(q," ").concat(X," ").concat(Y," ").concat(W," ").concat(z," ").concat(ie)}if(H={storeTerms:we().createElement(gn.Hyperlink,{href:S,textVariant:"bodyThemeText","aria-label":T,"data-bi-id":"store-terms-link",target:"_blank",underline:!0},T),termsOfUse:we().createElement(gn.Hyperlink,{href:P,textVariant:"bodyThemeText","aria-label":A,"data-bi-id":"terms-of-use-link",target:"_blank",underline:!0},A),learnMore:we().createElement(gn.Hyperlink,{href:M,textVariant:"bodyThemeText","aria-label":N,"data-bi-id":"learn-more-link",target:"_blank",underline:!0},N),lineBreak:we().createElement("br",null),userConsent:B,learnAboutCancellation:we().createElement(gn.Hyperlink,{"aria-label":z,"data-bi-id":"learn-more-cancellation",href:j,textVariant:"bodyThemeText",target:"_blank"},z),learnAboutRecurringBilling:we().createElement(gn.Hyperlink,{"aria-label":te,"data-bi-id":"learn-more-recurring-billing",href:ae,textVariant:"bodyThemeText",target:"_blank"},te),storeSupplement:we().createElement(gn.Hyperlink,{"aria-label":g.storeSupplementLinkText,"data-bi-id":"store-supplement-link",href:g.storeSupplementLink,textVariant:"bodyThemeText",target:"_blank"},g.storeSupplementLinkText),xboxPrice:R,xboxLearnMore:we().createElement(gn.Hyperlink,{href:M,textVariant:"bodyThemeText","aria-label":h.learnMoreText,"data-bi-id":"learn-more-link",target:"_blank",underline:!0},h.learnMoreText)},E)H={storeTerms:S,learnAboutCancellation:j,storeSupplement:g.storeSupplementLink,startDate:I},m.hasAIBenefits&&(H=(0,n.__assign)((0,n.__assign)({},H),{termsOfUse:P})),U=U.replace(/{lineBreak}/g,"");else if(D){H={userConsent:we().createElement(Wo,{dataBiIdPrefix:"user-consent-checkbox-nor",celaStrings:h,onConsentChange:f,celaNORRichText:{textWithTokens:U,tokensAndValues:H},celaNORAriaLabel:G})},U="{userConsent}"}return{textWithTokens:U,tokensAndValues:H}},Nc=function(e,t,a,n,r,i,o){var c=Rc({service:e,selectedRenewPath:t,primaryCTAText:a,celaDisclaimerContent:n,commonCELAResource:r,isConsentRecording:!0}),s=Object.fromEntries(Object.entries(c.tokensAndValues).filter((function(e){return"string"===typeof e[1]}))),l={};return l.ConfirmString={template:c.textWithTokens,args:s},{consentArtifacts:l,pricingInfo:{currencyCode:o,price:i}}},Mc=function(e,t,a,n){var r,i=Le(a.storeTermsforPremium,n);if("month"===e){var o=ke(a.storeTermsforPremiumByMarketMonthly,t,"default",",");if(o)return{storeTermsForPremium:i,marketSpecificTerms:o}}return{storeTermsForPremium:i,marketSpecificTerms:null!==(r=ke(a.storeTermsforPremiumByMarket,t,"default",","))&&void 0!==r?r:""}},Bc=(0,gn.listItemComponent)((function(e){var t=e.pageArea,a=e.addPiText,n=e.isBackup,r=e.serviceRenewProvider,i=e.dialogController,o=n?"backup":"primary";return we().createElement(gn.ListItem,{key:"add-".concat(o,"-pi-list"),"aria-label":a,onClickProps:{"aria-label":a,"data-bi-id":"add-".concat(o,"-pi-cta"),onClick:function(){ns(n,i,r)},pageArea:t},columns:[we().createElement(gn.CustomColumn,{children:[we().createElement(gn.Stack,{margin:"16px 0",horizontal:!0,key:"add-pi-cta"},we().createElement(gn.StackItem,{padding:"0 0 0 16px"},we().createElement(gn.Icon,{iconName:"Add"})),we().createElement(gn.StackItem,{padding:"0 0 0 24px"},we().createElement(gn.Text,{variant:"headerText"},a)))]})],variant:"Twelve"})})),Oc=(0,gn.listItemComponent)((function(e){var t,a,r,i=e.ctaText,o=e.pageArea,c=e.isPiReady,s=e.piDisplayProp,l=e.isBackup,d=e.serviceRenewProvider,u=e.dialogController,m=e.piInfo,p=e.ariaLabel,g=e.isPiDisplayFailed,h=ro(!1,null===(t=d.service)||void 0===t?void 0:t.brandId),f=function(){ns(l,u,d)},v=l?"backup":"primary";return we().createElement(gn.ListItem,{key:"".concat(v,"-pi-list"),"aria-label":p,onClickProps:{"aria-label":i,"data-bi-id":"".concat(v,"-pi-change"),onClick:f,pageArea:o},columns:[(a=c,r=s,we().createElement(gn.CustomColumn,{children:[we().createElement(gn.Stack,{margin:a?"4px 0 0 0":"16px 0",key:"pi-display-column"},we().createElement(Qr,(0,n.__assign)({},r)))]})),function(e,t,a){return e||t?a?we().createElement(gn.TextColumn,{textElements:[{children:a,variant:"bodySecondaryText"}]}):we().createElement(gn.EmptyColumn,null):we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{width:"100%"}]})}(c,g,m),function(e){return e?we().createElement(gn.ActionButtonFinalColumn,{actionButtonProps:[{"aria-label":i,"data-bi-id":"change-pi-cta",onClick:f,text:i}],contentType:"none",columnAlign:"end",key:"change-cta-column"}):we().createElement(gn.EmptyColumn,null)}(c)],variant:h?"SixTwoFour":"SixThreeThree"})})),Fc=function(){var e,t,a,r=Ic(),i=(0,gn.useDialogController)(),o=r.service,c=r.commonResource;Fe(o,"Service not found in RenewDialog");var s=null===(e=r.primaryPI)||void 0===e?void 0:e.id,l=null===(t=r.backupPI)||void 0===t?void 0:t.id,d=(null===(a=r.primaryPI)||void 0===a?void 0:a.paymentMethodType)===pr,u=(0,Ee.useState)(!s),m=u[0],p=u[1],g=(0,Ee.useState)(!l),h=g[0],f=g[1],v=(0,Ee.useState)(!1),y=v[0],E=v[1],w=(0,Ee.useState)(!1),b=w[0],x=w[1];(0,gn.useMount)((function(){s||_c((0,n.__assign)((0,n.__assign)({},r),{piState:kc}))}));var k,C,T=we().createElement(gn.Stack,{horizontal:!0,key:"choose-pi-cta"},we().createElement(gn.StackItem,{padding:"0 0 0 16px"},we().createElement(gn.Icon,{iconName:"Add"})),we().createElement(gn.StackItem,{padding:"0 0 0 24px"},we().createElement(gn.Text,{variant:"headerText"},c.piList.chooseAWayToPay))),S={env:r.renewAreaConfig.pidlEnvironment,onFailureCallback:function(e){Dt({step:"switchRenewal.pi.display.error",error:lr(e.errorCode),data:{errorDetails:e}})},returnUrl:"mock",spinnerAriaLabel:c.psd2Resource.loadingMessage,failedText:c.piList.chooseAWayToPay,firstLoadView:"Shimmer",failedViewOverride:T},A={market:o.market,language:r.renewAreaConfig.language,env:r.renewAreaConfig.pidlEnvironment,returnUrl:"mock"},P=function(){var e,t,a,n,i;return(null===(e=r.selectedRenewPath)||void 0===e?void 0:e.isImmediateConversion)?null===(a=null===(t=r.selectedRenewPath)||void 0===t?void 0:t.immediatePrice)||void 0===a?void 0:a.fullPriceInDecimal:null===(i=null===(n=r.selectedRenewPath)||void 0===n?void 0:n.futurePriceV2)||void 0===i?void 0:i.fullPriceInDecimal},D=function(e){var t=e&&r.piState!==Ac?r.commonResource.piList.addABackupWayToPay:r.commonResource.piList.addAWayToPay;return we().createElement(Bc,{pageArea:r.renewAreaConfig.area,addPiText:t,isBackup:e,serviceRenewProvider:r,dialogController:i})};k=s?function(){var e,t,a,o,l,d=(0,n.__assign)((0,n.__assign)({},S),{onSuccessCallback:function(e){var t;p(!0),t=e.paymentMethodType===pr&&e.csvBalanceFormatted?(0,n.__assign)((0,n.__assign)({},r.primaryPI),{displayName:e.name,csvBalanceFormatted:e.csvBalanceFormatted,csvBalanceAmount:e.csvBalanceAmount}):e.expirationDate&&e.expirationDate!==jr?(0,n.__assign)((0,n.__assign)({},r.primaryPI),{displayName:e.name,daysUntilExpired:e.daysUntilExpired,expirationDate:c.piList.expDate.replace("{date}",e.expirationDate)}):(0,n.__assign)((0,n.__assign)({},r.primaryPI),{displayName:e.name,isSoldToAddressRequired:e.isSoldToAddressRequired}),_c((0,n.__assign)((0,n.__assign)({},r),{primaryPI:t,piState:h?Dc(t,r.backupPI,P()):r.piState}))},onFailureCallback:function(){E(!0)},data:(0,n.__assign)((0,n.__assign)({},A),{piid:s})}),u=null!==(t=null===(e=r.primaryPI)||void 0===e?void 0:e.expirationDate)&&void 0!==t?t:null===(a=r.primaryPI)||void 0===a?void 0:a.csvBalanceFormatted,g=r.changePaymentCmsContent.changePaymentTitle.concat(" ",null!==(l=null===(o=r.primaryPI)||void 0===o?void 0:o.displayName)&&void 0!==l?l:"").concat(" ",null!==u&&void 0!==u?u:"");return we().createElement(Oc,{pageArea:r.renewAreaConfig.area,ctaText:r.commonResource.piList.change,isPiReady:m,piDisplayProp:d,isBackup:!1,piInfo:u,ariaLabel:g,serviceRenewProvider:r,dialogController:i,isPiDisplayFailed:y})}():D(!1),C=l?function(){var e,t=(0,n.__assign)((0,n.__assign)({},S),{onSuccessCallback:function(e){var t;f(!0),e.expirationDate&&e.expirationDate!==jr&&(t=c.piList.expDate.replace("{date}",e.expirationDate));var a=(0,n.__assign)((0,n.__assign)({},r.backupPI),{displayName:e.name,daysUntilExpired:e.daysUntilExpired,expirationDate:t,isSoldToAddressRequired:e.isSoldToAddressRequired});_c((0,n.__assign)((0,n.__assign)({},r),{backupPI:a,piState:m?Dc(r.primaryPI,a):r.piState}))},onFailureCallback:function(){x(!0)},data:(0,n.__assign)((0,n.__assign)({},A),{piid:l})});return we().createElement(Oc,{pageArea:r.renewAreaConfig.area,ctaText:r.commonResource.piList.change,isPiReady:h,piDisplayProp:t,isBackup:!0,piInfo:null===(e=r.backupPI)||void 0===e?void 0:e.expirationDate,serviceRenewProvider:r,dialogController:i,isPiDisplayFailed:b})}():D(!0);var I=we().createElement(gn.Stack,{textAlignment:"left",margin:"0 0 0 -16px"},we().createElement(gn.Heading,{tag:"h2",variant:"headerText"},c.piList.paidWith)),_=d&&(l||m)?we().createElement(gn.List,{isAlwaysExpanded:!0,header:I},k,C):we().createElement(gn.List,{isAlwaysExpanded:!0,header:I},k);return we().createElement(gn.Stack,{width:"100%",textAlignment:"center"},_)},Vc="isRenewIndia2FASuccess";var Uc={scenarioName:{renew:"AmcRenew",renewToken:"AmcTokenRenew",renewViaPartner:"AmcRenewViaPartner",switchPlan:"AmcSwitchPlan",none:"AmcNonRenew"},stepName:{landing:"Index",switchPlanStepScenario:"amcswitchplan.stepscenario",selectPlan:"switchRenewal.planSelector",selectPlanOnBack:"switchRenewal.planSelector.back",selectPlanOnNext:"switchRenewal.planSelector.next",renewSummary:"switchRenewal.renewSummary",renewSummaryOnBack:"switchRenewal.renewSummary.back",renewSummaryOnBuy:"switchRenewal.renewSummary.buy",updatePi:"switchRenewal.updatePI",final:"Final",addPiRedirectFailed:"renew.onFailureAddPiRedirect",switchPlanStepScenarioSuccess:"amcswitchplan.stepscenario.success",renewCurrentPlan:"renewCurrentPlan.Final",switchCurrentPlan:"switchCurrentPlan.Final",renewAddPiRedirect:"switchRenewal.AddPi.Redirect",renewIndia2FARedirect:"Renew.India2FA.Redirect",onConsentChange:"onConsentChange"}},Hc="launchRenewDialog",Gc="isPrimaryPiPicker",qc="isBackupPiPicker",Wc=function(e,t,a){var n,r,i,o=function(e){return Zi(e?qc:Gc)}(e),c=[(n={},n.skuid=t,n),(r={},r.modelId=a,r),(i={},i.launchRenewDialog="true",i)];return Oe(o,c)};var zc=function(e,t,a){if(t&&a&&!(t in["unknown","none"])){var n="".concat(t,"-").concat(1===a?"singular":"plural");return(0,gn.formatString)(e[n],a)||""}return""},jc="renew-smd-threatmetrix-api-dialog",Qc="renew-smd-threatmetrix-api-operation",Xc=function(e){var t=e.challengeStatus,a=e.paymentSessionId,r=e.isSoldToAddressRequired,i=Ic(),o=ma(),c=(0,gn.useDialogController)(),s=(0,Ee.useContext)(wc),l=i.turnOnRBCmsContent.smdThreatMetrixAPICallDialog,d=i.turnOnRBCmsContent.successConfirmationDialog,u=i.turnOnRBCmsContent.errorConfirmationDialog,m=i.commonResource,p=i.service,g=i.selectedRenewPath,h=i.isScenarioStep,f=i.campaignId;Fe(p,"Service in RenewSMDThreatMetrixAPICallDialog"),Fe(g,"renewPath in RenewSMDThreatMetrixAPICallDialog");var v=we().createElement(zr,{spinnerAriaLabel:null===l||void 0===l?void 0:l.loadingMessage}),y={progressViewOperationData:{operationName:Qc,componentName:jc},errorDialogProps:{},progressDialogProps:{}},E={isOpen:!0,onDismiss:function(){c.closeDialog()},stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:null===l||void 0===l?void 0:l.title.replace("{product}",p.name),closeButton:{"data-bi-id":"".concat(jc,"-close"),"aria-label":null===m||void 0===m?void 0:m.closeButton},staticBodyWidth:Lc,dialogStylesTemp:Sr,operationData:y,minBodyHeight:Ar};return Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,v,y,E,w,b,x,k,C,T,S,A,P,D,I,_,L,R,N,M,B,O,F,V,U,H,G,q,W,z,j,Q,X,Y,$,K,J;return(0,n.__generator)(this,(function(Z){switch(Z.label){case 0:if(o({name:Qc,status:"updating"}),s.updateSessionId(a),e=function(e,t){if(Qa("SMDFailed"))return{addressIdToSend:"127.0.0.1",isFailed:!0};if(Qa("SMDPass"))return{addressIdToSend:"127.0.0.1",isFailed:!1};if("recurrence"!==e.type||!t)return{soldToAddressId:void 0,isFailed:!1};var a,n;if(Dt({step:"SoldToAddressStart"}),(null===e||void 0===e?void 0:e.allPossibleAddressIds)&&e.market)for(var r=Object.entries(e.allPossibleAddressIds),i=0;i<r.length;i++){var o=r[i][0],c=r[i][1];if(e.market.toUpperCase()===c.toUpperCase()){if(e.soldToAddressId===o){a=o;break}n||(n=o)}}return a||n?(Dt({step:"SoldToAddressSucceeded"}),{addressIdToSend:null!==a&&void 0!==a?a:n,isFailed:!1}):(Dt({step:"SoldToAddressFailed"}),{addressIdToSend:null!==a&&void 0!==a?a:n,isFailed:!0})}(p,null!==r&&void 0!==r&&r),e.isFailed)return te=null===l||void 0===l?void 0:l.smdError,v={buttonText:te.smdErrorCta,buttonUrlReplacementString:"/billing/addresses",errorTitle:te.smdErrorTitle,errorMessage:te.smdErrorBody,errorCode:"soldToAddressId not found",isUserError:!0,isQoSImpactedError:!1,isRefreshNeeded:!1},h?Dt({step:"renew.error.smd",error:v.errorCode,data:{challengeStatus:t,isUserError:v.isUserError}}):_t({error:v.errorCode,data:{challengeStatus:t,isUserError:v.isUserError}}),c.switchToDialog(we().createElement(bc,{componentName:"".concat(jc,"-smd-error-dialog"),confirmationTitle:v.errorTitle,confirmationMessage:v.errorMessage,buttonText:v.buttonText||(null===l||void 0===l?void 0:l.smdError.smdErrorCta),buttonUrlReplacementString:v.buttonUrlReplacementString,isError:!0,commonCmsContent:m,staticBodyWidth:Lc})),[2];(y={})["awa-mee_custom6"]=null===(B=null===g||void 0===g?void 0:g.cycle)||void 0===B?void 0:B.toString(),y["awa-mee_custom13"]=null===g||void 0===g?void 0:g.skuId,y.hasPromotionalCycle=!!(null===g||void 0===g?void 0:g.promotionalCycleLength),y.piTypeUsed=null===(O=i.primaryPI)||void 0===O?void 0:O.paymentMethodType,y.isImmediateConversion=null===g||void 0===g?void 0:g.isImmediateConversion,Z.label=1;case 1:return Z.trys.push([1,6,,7]),Dt({step:Uc.stepName.final}),E=e.addressIdToSend,w=i.primaryPI.paymentMethodType!==pr||null===(F=i.backupPI)||void 0===F?void 0:F.id,(null===g||void 0===g?void 0:g.cycle)!==p.cycleDurationInMonths?Dt({step:Uc.stepName.switchCurrentPlan}):Dt({step:Uc.stepName.renewCurrentPlan}),b=void 0,x=void 0,k=void 0,C=void 0,T=(0,n.__assign)((0,n.__assign)({},{href:(ee=d.toServiceLandingLink).url,target:Ec(ee.target),"aria-label":ee.ariaLabel,"data-bi-id":ee.id,children:ee.text}),{underline:!0}),S=Ji(g.cycleUnit,g.cycleLength,m.celaSection.day,m.celaSection.days,m.celaSection.month,m.celaSection.months,m.celaSection.year,m.celaSection.years),A=ke(i.turnOnRBCmsContent.renewSummaryFooter.primaryCTAList,p.market,"default",","),(null===g||void 0===g?void 0:g.isImmediateConversion)?[4,hi((0,n.__assign)({productId:g.productId,skuId:g.skuId,availabilityId:g.availabilityId,paymentInstrumentId:i.primaryPI.id,backupPaymentInstrumentId:w,soldToAddressId:e.addressIdToSend,market:p.market,locale:p.locale,paymentSessionId:a,challengeCompletedStatus:t,campaignId:f},ao(p.market)&&no()&&{consentRecord:Nc(p,g,A,i.turnOnRBCmsContent.renewSummaryFooter.celaDisclaimer,m.celaSection,null===g||void 0===g?void 0:g.futurePriceV2.listPriceInDecimal,null===g||void 0===g?void 0:g.futurePriceV2.currencyCode)}))]:[3,3];case 2:return Z.sent(),b=g.immediatePrice.isTaxPopulated?(0,gn.formatString)(d.immediatePaymentMessageTaxBreakdown,uo(p.market,g.immediatePrice,i.commonResource.celaSection.taxBreakdownImmediate)):(0,gn.formatString)(d.immediatePaymentMessageTaxBreakdown,g.immediatePrice.listPrice),k=ke(d.immediatePaymentMessage2,p.market),P=(null===(V=g.futurePriceV2)||void 0===V?void 0:V.isTaxPopulated)?uo(p.market,g.futurePriceV2,i.commonResource.celaSection.taxBreakdown):fo(i.service,i.commonResource.celaSection,g.taxType,g.futurePriceV2.listPrice),C={priceInfo:P,cardName:null!==(H=null===(U=i.primaryPI)||void 0===U?void 0:U.displayName)&&void 0!==H?H:"",cycleFormat:S,accountLink:we().createElement(gn.Hyperlink,(0,n.__assign)({},T))},[3,5];case 3:return[4,bi((0,n.__assign)({service:p,skuId:null===g||void 0===g?void 0:g.skuId,availabilityId:null===g||void 0===g?void 0:g.availabilityId,paymentSessionId:a,challengeCompletedStatus:t,soldToAddressId:E,paymentInstrumentId:i.primaryPI.id,backupPaymentInstrumentId:w,campaignId:f},ao(p.market)&&no()&&{consentRecord:Nc(p,g,A,i.turnOnRBCmsContent.renewSummaryFooter.celaDisclaimer,m.celaSection,null===g||void 0===g?void 0:g.futurePriceV2.listPriceInDecimal,null===g||void 0===g?void 0:g.futurePriceV2.currencyCode)}))];case 4:Z.sent(),io(i.service)?(k=d.confirmationMessageRecurringDiscount,C={listPrice:(null===(G=null===g||void 0===g?void 0:g.futurePriceV2)||void 0===G?void 0:G.isTaxPopulated)?uo(p.market,g.futurePriceV2,i.commonResource.celaSection.taxBreakdown):fo(i.service,i.commonResource.celaSection,g.taxType,null===(q=g.futurePriceV2)||void 0===q?void 0:q.listPrice),remainingDiscountRenewals:String((null===(W=null===p||void 0===p?void 0:p.productRenewal)||void 0===W?void 0:W.remainingDiscountedRenewals)||0),cycleUnit:S,priceInfo:null===(z=null===g||void 0===g?void 0:g.futurePriceV2)||void 0===z?void 0:z.msrp,cardName:null!==(Q=null===(j=i.primaryPI)||void 0===j?void 0:j.displayName)&&void 0!==Q?Q:"",cycleFormat:S,chargeDate:g.nextChargeDate?(0,gn.toShortDate)(g.nextChargeDate):"",accountLink:we().createElement(gn.Hyperlink,(0,n.__assign)({},T))}):(k=ke(d.confirmationMessage,p.market),C={priceInfo:(null===g||void 0===g?void 0:g.futurePriceV2.isTaxPopulated)?uo(p.market,g.futurePriceV2,i.commonResource.celaSection.taxBreakdown):fo(i.service,i.commonResource.celaSection,g.taxType,g.futurePriceV2.listPrice),cardName:null!==(Y=null===(X=i.primaryPI)||void 0===X?void 0:X.displayName)&&void 0!==Y?Y:"",cycleFormat:S,chargeDate:g.nextChargeDate?(0,gn.toShortDate)(g.nextChargeDate):"",accountLink:we().createElement(gn.Hyperlink,(0,n.__assign)({},T))}),Z.label=5;case 5:return x={textWithTokens:k,tokensAndValues:C},i.succeededCallback&&i.succeededCallback(),h?(Dt({step:Uc.stepName.switchPlanStepScenarioSuccess}),It()):_t({data:y}),o({name:Qc,status:"finished"}),D=ke(d.confirmationTitle,p.market),I=(0,gn.formatString)(D,[p.name,S]),c.switchToDialog(we().createElement(bc,{componentName:"".concat(jc,"-confirm-dialog"),title:d.title,confirmationTitle:I,immediatePaymentMessage:b,confirmationMessage:x,buttonText:m.doneButton,isError:!1,commonCmsContent:m,buttonUrlReplacementString:h?"/services/".concat(p.modelId,"/details"):void 0,staticBodyWidth:Lc})),[3,7];case 6:return _=Z.sent(),R=null!==(J=null===(K=null===($=(L=_).response)||void 0===$?void 0:$.data)||void 0===K?void 0:K.error)&&void 0!==J?J:"switchRenewalPlanNoErrorCode",N=u.errorTitle,M=u.errorMessage,y.errorDetails=L,Zr.indexOf(R)>=0?("processorDeclined"===R&&(N=u.processorDeclinedTitle,M=u.processorDeclinedMessage),y.isUserError=!0,h?Dt({step:"Renew.Error",error:R,data:y}):_t({error:R,data:y}),o({name:Qc,status:"finished"})):(y.isUserError=!1,h?Dt({step:"Renew.Error",error:R,data:y}):_t({error:R,data:y}),o({name:Qc,status:"failed",error:L})),c.switchToDialog(we().createElement(bc,{componentName:"".concat(jc,"-error-dialog"),confirmationTitle:N,confirmationMessage:M,buttonText:m.closeButton,isError:!0,commonCmsContent:m,staticBodyWidth:Lc,title:u.errorDialogTitle})),[3,7];case 7:return[2]}var ee,te}))}))})),we().createElement(gn.Dialog,(0,n.__assign)({},E),we().createElement(ha,{operationData:{componentName:jc,operationName:Qc},firstLoadView:v,finishedView:v}))},Yc="renew-pi-challenge",$c=function(){var e,t,a,r,i,o=Ic(),c=(0,gn.useDialogController)(),s=o.selectedRenewPath,l=o.campaignId;Fe(s,"RenewPath in RenewPIChallenge");var d=function(e){var t,a=e.primaryPI;if((null===(t=e.primaryPI)||void 0===t?void 0:t.paymentMethodType)===pr&&e.backupPI&&(a=e.backupPI),void 0===a)throw new Error("selectedPaymentInstrument not found");return a}(o),u=(null===(e=null===o||void 0===o?void 0:o.primaryPI)||void 0===e?void 0:e.paymentMethodType)===pr,m=function(e){var t,a,r,i,o,c,s,l,d,u,m,p,g=Xr(e.india2FASuccessParam,!0),h=(0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)((0,n.__spreadArray)([],e.productId?[(t={},t.productid=e.productId,t)]:[],!0),e.productId?[(a={},a.modelId=e.productId,a)]:[],!0),e.skuId?[(r={},r.skuid=e.skuId,r)]:[],!0),e.piid?[(i={},i.selectedPiid=e.piid,i)]:[],!0),e.paymentName?[(o={},o.paymentName=e.paymentName,o)]:[],!0),e.paymentType?[(c={},c.paymentType=e.paymentType,c)]:[],!0),e.isSoldToAddressIdRequired?[(s={},s.isSoldToAddressIdRequired=e.isSoldToAddressIdRequired.toString(),s)]:[],!0),e.launchDialogParamName?[(l={},l[e.launchDialogParamName]="true",l)]:[],!0),e.isBackup?[(d={},d.isBackup=e.isBackup.toString(),d)]:[],!0),e.csvPiid?[(u={},u.csvPiid=e.csvPiid,u)]:[],!0),e.csvPaymentName?[(m={},m.csvPaymentName=e.csvPaymentName,m)]:[],!0),e.campaignId?[(p={},p.campaignId=e.campaignId,p)]:[],!0);return Oe(g,h)}({india2FASuccessParam:Vc,productId:s.productId,skuId:s.skuId,piid:d.id,paymentName:d.displayName,paymentType:d.paymentMethodType,isSoldToAddressIdRequired:d.isSoldToAddressRequired,launchDialogParamName:Hc,isBackup:u,csvPiid:u?null===(t=null===o||void 0===o?void 0:o.primaryPI)||void 0===t?void 0:t.id:void 0,csvPaymentName:u?null===(a=null===o||void 0===o?void 0:o.primaryPI)||void 0===a?void 0:a.displayName:void 0,campaignId:l}),p=function(e,t,a){var r,i,o=Xr(e,!1),c=(0,n.__spreadArray)((0,n.__spreadArray)([],a?[(r={},r.modelId=a,r)]:[],!0),t?[(i={},i[t]="true",i)]:[],!0);return Oe(o,c)}(Vc,Hc,s.productId),g=function(e,t,a,n,r,i,o,c,s,l,d,u,m,p,g,h,f,v,y,E,w){var b,x=ma(),k=(0,gn.useDialogController)(),C=a.psd2Resource,T="".concat(n,"-operation"),S=r;"IN"!==t.market&&!Qa("SvcIndia2FATest")||0!==r||(S=null===(b=t.nextCharge)||void 0===b?void 0:b.totalInDecimal);var A=n===Yc?"560px":"480px",P={env:e.pidlEnvironment,piChallengeData:{amount:S,currency:null!==i&&void 0!==i?i:t.productRenewal.currency,language:t.locale,country:t.market,challengeScenario:"RecurringTransaction",isLegacy:"subscription"===t.type,isMOTO:!1,hasPreOrder:!1,windowSize:"02",piid:o,frequency:s,frequencyUnit:l,renewalDate:d,productName:u,futurePrice:m},onSuccessCallback:function(e,t){h(e,t)},onFailureCallback:function(e){var t,r=Jr(C,e);r.isQoSImpactedError?x({name:T,status:"failed",error:e}):x({name:T,status:"finished"}),f(r,e),k.switchToDialog(we().createElement(bc,{componentName:"".concat(n,"-error-dialog"),confirmationTitle:r.errorTitle||C.genericErrorTitle,confirmationMessage:r.errorMessage||C.genericErrorMessage,buttonText:r.buttonText||C.closeButton,buttonUrlReplacementString:r.buttonUrlReplacementString,isError:!0,commonCmsContent:a,staticBodyWidth:null!==(t=null===w||void 0===w?void 0:w.staticBodyWidth)&&void 0!==t?t:A}))},onCancelCallback:function(){v?v():Dt({step:"".concat(n,".cancel")}),k.closeDialog()},redirectSuccessUrl:p,redirectFailureUrl:g,returnUrl:window.location.href,spinnerAriaLabel:C.loadingMessage,spinnerMessage:y?C.spinnerMessage.replace("{piName}",c):void 0};return{dialogTitle:null!==E&&void 0!==E?E:C.title.replace("{piName}",c),closeAriaLabel:C.closeButton,dialogComponentName:n,dialogOperationName:T,staticBodyWidth:A,piChallengeProps:P,dialogParams:w}}(o.renewAreaConfig,o.service,o.commonResource,Yc,function(){var e,t;return"IN"===o.service.market||Qa("SvcIndia2FATest")||s.isImmediateConversion?s.immediatePrice?s.immediatePrice.fullPriceInDecimal:null!==(t=null===(e=s.futurePriceV2)||void 0===e?void 0:e.fullPriceInDecimal)&&void 0!==t?t:0:0}(),s.currencyCode,d.id,d.displayName,s.cycleLength,s.cycleUnit,s.isImmediateConversion?(new Date).toISOString():s.nextChargeDate,o.service.name,null!==(i=null===(r=s.futurePriceV2)||void 0===r?void 0:r.fullPriceInDecimal)&&void 0!==i?i:0,m,p,(function(e,t){c.switchToDialog(we().createElement(Xc,{challengeStatus:e,isSoldToAddressRequired:d.isSoldToAddressRequired,paymentSessionId:t}))}),(function(e,t){_t({error:lr(e.errorCode),data:{challengeStatus:t.challengeStatus,isUserError:e.isUserError,errorDetails:t}})}));return we().createElement($r,(0,n.__assign)({},g))},Kc=function(e){var t=e.showBestGameCard,a=void 0!==t&&t,r=(0,gn.useDialogController)(),i=Ic(),o=i.service,c=i.commonResource,s=c.xboxGamePassBenefits,l=c.saveSection,d="renew-save-flow-dialog",u=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return It(),r.closeDialog(),[2]}))}))},m={isOpen:!0,onDismiss:u,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:l.cancelTitleTurnonRB,dialogStylesTemp:Sr,closeButton:{"data-bi-id":"".concat(d,"-close"),"aria-label":l.closeWindow},dialogFooterProps:{buttonPrimary:{onClick:function(){Dt({step:"RenewSummaryDialogFromKeepBenefits"}),r.switchToDialog(we().createElement(ts,null))},text:l.subscribeNow,"aria-label":l.subscribeNow,"data-bi-id":"".concat(d,"-keep-benefits")},buttonSecondary:{onClick:u,text:l.cancel,"aria-label":l.cancel,"data-bi-id":"".concat(d,"-cancel")}},minBodyHeight:Ar};return we().createElement(gn.Dialog,(0,n.__assign)({},m),we().createElement(gn.Stack,{childrenGap:24},we().createElement(Ho,{brandId:o.brandId,market:o.market,benefitsStrings:s,isMobile:!1,showBestGameCard:a,isTurnOnRBFlow:!0}),";"))},Jc=function(){var e,t=Ic(),a=t.turnOnRBCmsContent.renewSummaryDialog,n=null===(e=t.primaryPI)||void 0===e?void 0:e.displayName;switch(t.piState){case Cc:return we().createElement(gn.MessageBar,{isMultiline:!0,messageBarType:"severe-warning",messageContent:(0,gn.formatString)(a.expiredPrimaryMessage,{paymentName:n})});case Tc:return we().createElement(gn.MessageBar,{isMultiline:!0,messageBarType:"warning",messageContent:a.noBackupMessage});case Sc:return we().createElement(gn.MessageBar,{isMultiline:!0,messageBarType:"severe-warning",messageContent:a.expiredBackupMessage});case Ac:case Pc:return we().createElement(gn.MessageBar,{isMultiline:!0,messageBarType:"warning",messageContent:a.lowBalanceMessage});default:return null}},Zc=function(){var e,t,a,r=Ic(),i=r.selectedRenewPath,o=r.commonResource;Fe(i,"Renewal Billing Message");var c={service:r.service,dataBiIdPrefix:"RenewSummary",celaStrings:o.celaSection},s=i.isImmediateConversion?i.immediatePrice.listPrice:i.futurePriceV2.listPrice,l=i.futurePriceV2.listPrice,d=(0,n.__assign)((0,n.__assign)({},c),{price:s,taxType:i.taxType,cycleUnit:i.cycleUnit,cycleLength:i.cycleLength,futurePrice:l,futureTaxDetails:null===(e=i.futurePriceV2)||void 0===e?void 0:e.taxDetails,nextChargeDate:(0,gn.toShortDate)(i.nextChargeDate),isImmediateConversion:i.isImmediateConversion}),u=i.isImmediateConversion?null===(t=i.immediatePrice)||void 0===t?void 0:t.isTaxPopulated:null===(a=i.futurePriceV2)||void 0===a?void 0:a.isTaxPopulated;return we().createElement(gn.Text,{variant:"bodySecondaryText"},u?function(e){var t=e.service,a=e.celaStrings,n=e.cycleLength,r=e.cycleUnit,i=e.nextChargeDate,o=e.futurePriceDetails,c=e.isImmediateConversion,s=e.immediatePriceDetails,l=c?a.taxBreakdownImmediate:a.taxBreakdown,d=c&&s?uo(t.market,s,l):"",u=o?uo(t.market,o,a.taxBreakdown):"",m=c?Le(a.renewBillingChargesTodayTaxBreakdown,{price:d,futurePrice:u}):Le(a.renewBillingNoChargeToday,{recurrenceDate:i||t.productRenewal.startDateShortString}),p=Ji(r||t.productRenewal.cycleUnit,n||t.productRenewal.cycleLength,a.day,a.days,a.month,a.months,a.year,a.years),g=c?null:Le(a.everyText,{price:c?d:u,cycle:p});return Le("{0} {1}",{0:m,1:g})}((0,n.__assign)((0,n.__assign)({},d),{immediatePriceDetails:i.immediatePrice,futurePriceDetails:i.futurePriceV2,nextChargeDate:(0,gn.toShortDate)(i.nextChargeDate)})):function(e){var t=e.service,a=e.celaStrings,n=e.cycleLength,r=e.cycleUnit,i=e.nextChargeDate,o=e.price,c=e.futurePrice,s=e.taxType,l=e.isImmediateConversion,d=a.renewBillingChargesTodayTaxBreakdown,u=l?Le(d,{price:o,futurePrice:c}):Le(a.renewBillingNoChargeToday,{recurrenceDate:i||t.productRenewal.startDateShortString}),m=l?null:Le(a.recurringBillingSecondText,{amount:o,tax:ho(t,a,n,r,s)});return Le("{0} {1}",{0:u,1:m})}(d))},es=function(){var e,t,a=Ic(),r=a.selectedRenewPath,i=a.turnOnRBCmsContent.renewSummaryDialog,o=(0,gn.useDialogController)();Fe(r,"Renew Summary");var c=r.isImmediateConversion,s=!!r.promotionalCycleLength&&1===r.promotionalCycleLength,l={service:a.service,celaStrings:a.commonResource.celaSection,isImmediateConversion:c,cycleUnit:r.cycleUnit,cycleLength:r.cycleLength,immediatePriceDetails:r.immediatePrice,futurePriceDetails:r.futurePriceV2},d={service:a.service,celaStrings:a.commonResource.celaSection,cycleUnit:r.cycleUnit,cycleLength:r.cycleLength,price:(null===(e=r.futurePriceV2)||void 0===e?void 0:e.listPrice)||(null===(t=r.immediatePrice)||void 0===t?void 0:t.listPrice),dataBiIdPrefix:"renew-summary"},u=a.allRenewPaths&&a.allRenewPaths.length>1&&!a.service.isTrial&&!a.isDirectRenew,m=(0,gn.formatString)(i.switchToYearly,r.savingsAmount);return we().createElement(gn.Stack,{childrenGap:16,horizontalAlign:"center",horizontal:!1},we().createElement(gn.Image,{height:"72px",width:"72px",src:a.service.brandLogo,imageType:"ariaHiddenImage"}),c?we().createElement(gn.Badge,{text:m}):we().createElement(we().Fragment,null),we().createElement(gn.Stack,{childrenGap:8,horizontalAlign:"center",horizontal:!1},we().createElement(gn.TruncatedText,{variant:"pageHeader",type:"heading",tag:"h2"},a.service.name),we().createElement(gn.Stack,{textAlignment:"center",childrenGap:16,horizontalAlign:"center",horizontal:!1},io(a.service)?we().createElement(we().Fragment,null,function(e){var t,a,n=e.service,r=e.celaStrings,i=e.cycleUnit,o=e.price,c=(null===r||void 0===r?void 0:r.recurringBillingOnRDTitle)||"{0}/{1} {2}/{3}",s={0:we().createElement(gn.Text,{variant:"paneHeader"},o),1:we().createElement("span",{style:{fontWeight:"normal"}},we().createElement(gn.Text,{variant:"paneHeader"},i)),2:we().createElement("span",{style:{textDecoration:"line-through"}},we().createElement(gn.Text,{children:"".concat(null===(a=null===(t=null===n||void 0===n?void 0:n.productRenewal)||void 0===t?void 0:t.immediatePrice)||void 0===a?void 0:a.msrp),variant:"bodyMediumRegular"})),3:we().createElement("span",{style:{textDecoration:"line-through"}},we().createElement(gn.Text,{children:"".concat(i),variant:"bodyMediumRegular"}))};return we().createElement(gn.RichText,{textWithTokens:c,tokensAndValues:s})}(d),function(e){var t,a,n,r,i,o,c=e.service,s=e.celaStrings,l=e.price,d=null===s||void 0===s?void 0:s.recurringBillingOnRDBody,u=Ji(null===(t=c.productRenewal)||void 0===t?void 0:t.cycleUnit,null===(a=c.productRenewal)||void 0===a?void 0:a.cycleLength,s.day,s.days,s.month,s.months,s.year,s.years),m={0:we().createElement("span",{style:{fontWeight:"normal"}},we().createElement(gn.Text,null,l)),1:we().createElement("span",{style:{fontWeight:"normal"}},we().createElement(gn.Text,null,null===(n=null===c||void 0===c?void 0:c.productRenewal)||void 0===n?void 0:n.remainingDiscountedRenewals)),2:we().createElement("span",{style:{fontWeight:"normal"}},we().createElement(gn.Text,null,null===(i=null===(r=null===c||void 0===c?void 0:c.productRenewal)||void 0===r?void 0:r.immediatePrice)||void 0===i?void 0:i.msrp)),3:we().createElement("span",{style:{fontWeight:"normal"}},we().createElement(gn.Text,null,null===(o=c.productRenewal)||void 0===o?void 0:o.cycleUnit)),4:we().createElement("span",{style:{fontWeight:"normal"}},we().createElement(gn.Text,null,u))};return we().createElement(gn.RichText,{textWithTokens:d,tokensAndValues:m})}(d)):we().createElement(gn.Text,{variant:"paneHeader"},go((0,n.__assign)({},l),s)))),u?we().createElement(gn.NoHrefLink,{onClick:function(){o.switchToDialog(we().createElement(as,null))},"data-bi-id":"renew-summary-switch-plan-link","aria-label":i.switchPlanButtonAriaText},i.switchPlanButtonText):we().createElement(we().Fragment,null))},ts=function(){var e=(0,gn.useDialogController)(),t=Ic(),a=t.commonResource,r=t.turnOnRBCmsContent.renewSummaryFooter,i=t.turnOnRBCmsContent.renewSummaryDialog,o=(0,Ee.useState)(!1),c=o[0],s=o[1],l=t.service,d=t.isScenarioStep,u=(0,gn.useViewport)(),m=["xl","xxl","xxxl"].includes(u),p=ro(!0,null===l||void 0===l?void 0:l.brandId),g=p,h=!Qa("SvcNORRollback")&&ao(l.market);Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return Dt({step:Uc.stepName.renewSummary}),[2]}))}))}));var f=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,n.__generator)(this,(function(a){return p?(t={showBestGameCard:g},e.switchToDialog(we().createElement(Kc,(0,n.__assign)({},t)))):(d?Dt({step:"renew.cancel"}):It(),e.closeDialog()),[2]}))}))},v=ke(r.primaryCTAList,l.market,"default",","),y={onClick:function(){Dt({step:Uc.stepName.renewSummaryOnBuy}),e.switchToDialog(we().createElement($c,null))},text:v,"aria-label":v,"data-bi-id":"renew-summary-buynow",disabled:function(){var e;return!(!h&&!(null===(e=t.selectedRenewPath)||void 0===e?void 0:e.showRenewalCheckbox)||c)||t.piState!==xc&&t.piState!==Tc}()},E={onClick:f,text:r.cancel,"aria-label":r.cancel,"data-bi-id":"renew-summary-cancel"},w={service:t.service,selectedRenewPath:t.selectedRenewPath,primaryCTAText:v,celaDisclaimerContent:r.celaDisclaimer,commonCELAResource:t.commonResource.celaSection,onConsentChange:function(){s(!c),Dt({step:"".concat(Uc.stepName.onConsentChange,".").concat(c)})}},b=Rc(w),x=h?{buttonPrimary:y,buttonSecondary:E}:{buttonPrimary:y,buttonSecondary:E,richTextProps:b},k=ke(i.renewDialogTitle,l.market,"default",","),C={isOpen:!0,onDismiss:f,backButton:l.renewFlow!==xi&&l.renewFlow!==ki||t.isDirectRenew?void 0:{"aria-label":a.backButton,"data-bi-id":"renew-summary-back",onClick:function(){Dt({step:Uc.stepName.renewSummaryOnBack}),e.switchToDialog(we().createElement(as,null))}},closeButton:{"data-bi-id":"renew-summary-dialog-close","aria-label":a.closeButton},staticBodyWidth:m&&p?"968px":Lc,minBodyHeight:Ar,dialogFooterProps:x,stickyHeaderFooter:{hasStickyHeaderFooters:!0},title:m&&p?{src:a.xboxGamePassBenefits.xboxLogoTitle.src,imageType:"ariaHiddenImage"}:l.renewFlow===xi?i.switchPlanDialogTitle:k},T=h?we().createElement(gn.Stack,{childrenGap:24},we().createElement(es,null),we().createElement(Jc,null),we().createElement(Fc,null),we().createElement(gn.RichText,(0,n.__assign)({},b))):we().createElement(gn.Stack,{childrenGap:24},we().createElement(es,null),we().createElement(Zc,null),we().createElement(Jc,null),we().createElement(Fc,null)),S=function(){return l.isXboxBrandId&&m?we().createElement(Ho,{brandId:l.brandId,market:l.market,benefitsStrings:a.xboxGamePassBenefits,isMobile:!1,showBestGameCard:g}):l.isXboxBrandId&&!m?we().createElement(Ho,{brandId:l.brandId,market:l.market,benefitsStrings:a.xboxGamePassBenefits,isMobile:!0,showBestGameCard:g,isTurnOnRBFlow:!0}):we().createElement(we().Fragment,null)},A=we().createElement(gn.Stack,{childrenGap:16},S(),T),P=we().createElement(gn.SlotStack,{totalSlots:2,horizontalAlign:"space-evenly",height:"100%"},we().createElement(gn.SlotStackItem,{slots:1},we().createElement(gn.Stack,{boxShadow:!0,borderRadius:"4px",padding:20,height:"100%",childrenGap:20},we().createElement(gn.Heading,{tag:"h2",variant:"paneHeader"},a.xboxGamePassBenefits.turnOnRBBenefitsTitle),we().createElement(gn.Stack,{height:"100%",overflow:"auto"},S()))),we().createElement(gn.SlotStackItem,{slots:1},we().createElement(gn.Stack,{boxShadow:!0,borderRadius:"4px",padding:20,height:"100%",childrenGap:20},we().createElement(gn.Heading,{tag:"h2",variant:"paneHeader"},k),we().createElement(gn.Stack,{height:"100%",overflow:"auto"},T)))),D=we().useMemo((function(){return p?m?P:A:T}),[m,p,c]);return we().createElement(gn.Dialog,(0,n.__assign)({},C),we().createElement(ha,{operationData:{componentName:"renew-summary",operationName:"renew-summary-operation",defaultState:"finished"},updatingView:D,firstLoadView:we().createElement(we().Fragment,null),failedView:we().createElement(we().Fragment,null),finishedView:D}))},as=function(){var e,t,a=Ic(),r=(0,gn.useDialogController)(),i=a.turnOnRBCmsContent,o=a.commonResource,c=a.renewPathResource,s=a.service,l=a.allRenewPaths,d=a.isScenarioStep,u=null===l||void 0===l?void 0:l.find((function(e){return e.current}));Fe(s,"Renew plan selector dialog"),Fe(a.allRenewPaths,"Renew plan selector dialog"),Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return Dt({step:Uc.stepName.selectPlan}),[2]}))}))}));var m=null!==(t=null===(e=a.selectedRenewPath)||void 0===e?void 0:e.skuId)&&void 0!==t?t:a.allRenewPaths[0].skuId,p=(0,Ee.useState)(m),g=p[0],h=p[1],f={isOpen:!0,onDismiss:function(){d?Dt({step:"renew.cancel"}):It(),r.closeDialog()},title:{image:{src:s.brandLogo,alt:(0,gn.formatString)(i.planSelectorDialog.planSelectorDialogName,s.name)},text:s.name},backButton:s.renewFlow===xi||s.renewFlow===ki?void 0:{"aria-label":o.backButton,"data-bi-id":"renew-plan-selector-back",onClick:function(){Dt({step:Uc.stepName.selectPlanOnBack}),r.switchToDialog(we().createElement(ts,null))}},closeButton:{"data-bi-id":"renew-plan-selector-close","aria-label":o.closeButton},dialogFooterProps:{hasFooterBackground:!0,buttonPrimary:{text:o.nextButton,"aria-label":o.nextButton,"data-bi-id":"renew-plan-selector-next",onClick:function(){var e,t=null===(e=a.allRenewPaths)||void 0===e?void 0:e.find((function(e){return e.skuId===g}));_c((0,n.__assign)((0,n.__assign)({},a),{selectedRenewPath:t})),Dt({step:Uc.stepName.selectPlanOnNext}),r.switchToDialog(we().createElement(ts,null))},disabled:s.renewFlow===xi&&g===(null===u||void 0===u?void 0:u.skuId)}},staticBodyWidth:Lc,minBodyHeight:Ar,stickyHeaderFooter:{hasStickyHeaderFooters:!0}},v=we().createElement(gn.ChoiceGroup,{optionType:"selectButton",isSingleColumn:!0,options:function(){var e=[];return null===l||void 0===l||l.forEach((function(t){var a,n,r,o,s=t.relativeSavingsPercent>0,l=t.isImmediateConversion?null===(a=t.immediatePrice)||void 0===a?void 0:a.listPrice:null===(n=t.futurePriceV2)||void 0===n?void 0:n.listPrice,d=t.isImmediateConversion?null===(r=t.immediatePrice)||void 0===r?void 0:r.msrp:null===(o=t.futurePriceV2)||void 0===o?void 0:o.msrp,u=(0,gn.formatString)(c.planSave,t.relativeSavingsPercent),m=zc(c.planTitles,t.cycleUnit,t.cycleLength),p=zc(c.planSubTitles,t.promotionalCycleUnit,t.promotionalCycleLength),g=t.current?"".concat(i.planSelectorDialog.currentPlan," | ").concat(m):m,h=s?"".concat(g," ").concat(l," ").concat(u):"".concat(g," ").concat(l);if(p&&(h="".concat(h," ").concat(p)),t.isImmediateConversion){var f=(0,gn.formatString)(i.planSelectorDialog.savingsAriaLabel,{0:l,1:d}),v=(0,gn.formatString)(i.planSelectorDialog.immediateConversationAriaLabel,{0:m,1:t.savingsAmount,2:t.relativeSavingsPercent});h="".concat(v," ").concat(f),e.push({"data-bi-id":"renew-dialog-".concat(t.productId,"-").concat(t.skuId),"aria-label":h,key:t.skuId,text:m,subTextWithMedia:s?{lineItemType:"media",height:"18px",size:"sm",image:{imageType:"icon",iconName:"TagSolid",iconColor:"themePrimary"},text:(0,gn.formatString)(i.planSelectorDialog.savings,{0:t.savingsAmount,1:t.relativeSavingsPercent})}:void 0,lines:p?[{text:p}]:void 0,topRightText:{lineItemType:"richText",textWithTokens:"{0} {1}",ariaLabelOverride:f,tokensAndValues:{0:we().createElement(gn.Text,{variant:"headerText",weightOverride:"bold"},l),1:we().createElement("div",{style:{display:"inline",textDecoration:"line-through"}},we().createElement(gn.Text,{variant:"bodySecondaryText",weightOverride:"semi-bold"},d))}}})}else e.push({"data-bi-id":"renew-dialog-".concat(t.productId,"-").concat(t.skuId),"aria-label":h,key:t.skuId,text:g,subTextWithMedia:s?{lineItemType:"media",height:"18px",size:"sm",image:{imageType:"icon",iconName:"Completed",iconColor:"themePrimary"},text:u}:void 0,lines:p?[{text:p}]:void 0,topRightText:{text:l,isBold:!0}})})),e}(),selectedKey:g,height:115,onChange:function(e){h(e.key)},label:i.planSelectorDialog.chooseAPlan});return we().createElement(gn.Dialog,(0,n.__assign)({},f),v)},ns=function(e,t,a,r){var i,o,c=a.changePaymentCmsContent,s=a.selectedRenewPath,l=a.renewAreaConfig,d=a.service;Fe(d,"Open PiPickerDialog");var u="subscription"===d.type?d.includedPaymentInstrumentTagsForLegacySubsForPIDL?d.includedPaymentInstrumentTagsForLegacySubsForPIDL.split(","):void 0:null!==(i=null===s||void 0===s?void 0:s.paymentInstrumentInclusionFilters)&&void 0!==i?i:void 0,m={market:d.market,language:d.locale,billingId:d.billingId,environment:l.pidlEnvironment,transactionAmount:function(){var e,t;return(null===s||void 0===s?void 0:s.isImmediateConversion)?null!==(e=null===s||void 0===s?void 0:s.immediatePrice.fullPriceInDecimal)&&void 0!==e?e:0:null!==(t=null===s||void 0===s?void 0:s.futurePriceV2.fullPriceInDecimal)&&void 0!==t?t:0}(),transactionCurrency:s.currencyCode,scenario:"AmcChangePi",splitPaymentSupported:e,exclusionTags:null!==(o=null===s||void 0===s?void 0:s.paymentInstrumentExclusionFilters)&&void 0!==o?o:void 0,allowedPaymentMethods:u,returnUrl:Wc(e,s.skuId,s.productId),redirectFailureUrl:Dr(Hc,s.skuId,s.productId)},p=r?{id:r}:void 0,g=we().createElement(Wr,{piPickerParams:m,initialPrimaryPi:null!==p&&void 0!==p?p:a.primaryPI?{id:a.primaryPI.id,isExpired:void 0!==a.primaryPI.daysUntilExpired?a.primaryPI.daysUntilExpired<=0:void 0}:void 0,initialBackupPi:null!==p&&void 0!==p?p:a.backupPI?{id:a.backupPI.id,isExpired:void 0!==a.backupPI.daysUntilExpired?a.backupPI.daysUntilExpired<=0:void 0}:void 0,onCancel:function(){return t.switchToDialog(we().createElement(ts,null))},onSuccess:function(r,i,o,c,s,l,d){var u={id:r,displayName:i,isSoldToAddressRequired:o,paymentMethodType:d};if(e)_c((0,n.__assign)((0,n.__assign)({},a),{backupPI:u}));else if(c){var m={id:c,displayName:s,isSoldToAddressRequired:o,paymentMethodType:l};_c((0,n.__assign)((0,n.__assign)({},a),{primaryPI:u,backupPI:m}))}else _c((0,n.__assign)((0,n.__assign)({},a),{primaryPI:u}));t.switchToDialog(we().createElement(ts,null))},onFailure:function(){Dt({step:"backToSummaryOnFailure"}),t.switchToDialog(we().createElement(ts,null))},operationData:{componentName:"renew-dialog-pi-picker",operationName:"renew-dialog-pi-picker"},strings:(0,n.__assign)((0,n.__assign)({},c),{failureImageSrc:c.failureIcon,selectBackupPiAlertMessage:c.changeBackupPiAlertMessage,selectPaymentTitle:e?c.renewAddBackupTitle:c.changePaymentTitle,updatePiSubText:c.renewUpdatePiSubtitle,addPiSubText:c.renewAddPiSubtitle,selectPaymentSubText:c.renewChangePiSubtitle,selectBackupPiSubText:c.renewAddBackupSubtitle}),dialogParams:{staticBodyWidth:"560px",showBackButton:!0,onDismiss:function(){It(),t.closeDialog()}}});t.switchToDialog(g)};we().createContext({setSdk:function(){},config:{partnerId:"",language:"",market:void 0,sessionId:void 0,correlationVector:void 0,authHint:void 0,isLaunchPad:void 0,customTelemetrySink:void 0,userInfo:void 0},setError:function(){}});var rs,is,os=we().createContext({initialPersonalInfo:void 0,initialProfilePhoto:void 0}),cs="GetPersonalInfoOperationName",ss="GetProfilePhotoOperationName",ls="account-leftnav",ds=function(e){return"".concat(ls,".").concat(e)},us=function(e){var t=e.strings,a=e.selectedNavLink,r=e.getNavigationIconName,i=e.userIds,o=e.mainContentAnchor,c=(0,Ee.useContext)(os),s=c.initialPersonalInfo,l=c.initialProfilePhoto,d=ds(cs),u=ds(ss),m=(0,Ee.useState)(""),p=m[0],g=m[1],h=(0,Ee.useState)(""),f=h[0],v=h[1],y=(0,Ee.useState)(""),E=y[0],w=y[1],b=(0,gn.useDialogController)(),x=!1,k=!1;Qa("baseexp")?x=!0:Qa("baseexpcom")&&(k=!0);var C=x||k;(0,Ue.JO)((function(){C&&(Pt({area:"leftnav",scenario:"EssentialsBenefitsCTA",step:"EssentialsEntryImpression",data:{flow:"AMC_All_ViewBenefits"}}),_t())})),(0,Ee.useEffect)((function(){var e;void 0!==s&&(g(s.fullName),v(s.signInName)),void 0!==l&&w(null===(e=l[i[0]])||void 0===e?void 0:e.url)}),[s,l]);var T={"aria-label":t.ariaNavButton,"data-bi-id":ds("expand-collapse-nav-button"),removeNavButtonBorder:!0},S={imageUrl:E,fallback:"initials",operationData:{componentName:"leftNav.profile-column.persona",operationName:u},itemInteractiveProps:{"aria-label":t.ariaAddProfilePicture,"data-bi-id":"leftnav.profile-image-link",itemInteraction:{interactionType:"withHref",href:t.editPictureLink.url}}},A=p?{kind:"text",text:p,itemInteractiveProps:{"aria-label":Le(t.ariaEditProfile,{fullName:p}),"data-bi-id":"leftnav.profile-name-link",itemInteraction:{interactionType:"withHref",href:t.profilePageLink.url}}}:{kind:"text",text:t.addYourName,itemInteractiveProps:{"aria-label":t.editProfile,"data-bi-id":"leftnav.profile-name-link",itemInteraction:{interactionType:"withHref",href:t.editNameLink.url}}},P={text:f,itemInteractiveProps:{"aria-label":Le(t.ariaViewInbox,{email:f}),"data-bi-id":"leftnav.profile-email-link",itemInteraction:{interactionType:"withHref",href:t.viewInboxLink.url,target:"_blank"}}},D={children:t.benefitsNavButton_variant4,"aria-label":t.benefitsNavButton_variant4,"data-bi-id":"AMC_All_ViewBenefits",onClick:function(){var e={errorMessage:t.genericErrorMessage,primaryCTA:t.reloadButton,close:t.closeButton};b.openDialog(we().createElement(cc,{triggerBIId:"AMC_All_ViewBenefits",area:a,errorStrings:e,isComFlightEnabled:k}))}},I=Object.entries(t.menu).map((function(e){var t=e[0],a=e[1];return{linkType:"directlink",itemKey:t,icon:r(t),text:a.text,"aria-label":a.text,"data-bi-id":a.id,linkInteraction:{interactionType:"withHref",href:"".concat(a.url).concat(o||"")}}})),_={navLinks:I,key:"leftnav-group"},L={expandCollapseNavButton:T,navHeader:{headerType:"profileHeader",persona:S,primaryInfo:A,secondaryInfo:P,tertiaryInfo:!C||!Qa("billingessentials")&&["orderHistory","paymentOptions"].includes(a)?void 0:D},navLinkGroups:[_],selectedNavLink:{mainKey:a}},R={expandCollapseNavButton:T,navHeader:{headerType:"profileHeaderShimmer"},navLinkGroups:[_],selectedNavLink:{mainKey:a}};return we().createElement(ha,{operationData:{componentName:ls,operationName:d},firstLoadView:we().createElement(gn.LeftNav,(0,n.__assign)({},R)),updatingView:we().createElement(gn.LeftNav,(0,n.__assign)({},R)),finishedView:we().createElement(gn.LeftNav,(0,n.__assign)({},L)),failedView:we().createElement(gn.LeftNav,(0,n.__assign)({},L))})},ms=function(e){var t=e.strings,a=e.userIds,r=e.selectedNavLink,i=e.getPersonalInfo,o=e.getProfilePhoto,c=e.getNavigationIconName,s=e.mainContentAnchor,l=ma(),d=o({operationName:ds(ss),userIds:a}).profilePictureData,u=(0,Ee.useState)(void 0),m=u[0],p=u[1];return Se((function(){(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t,a;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),l({name:ds(cs),status:"first-load"}),[4,i()];case 1:return e=n.sent(),p(e),l({name:ds(cs),status:"finished"}),[3,3];case 2:return t=n.sent(),a=t,l({name:ds(cs),status:"failed",error:a}),[3,3];case 3:return[2]}}))}))})),we().createElement(os.Provider,{value:{initialPersonalInfo:m,initialProfilePhoto:d}},we().createElement(gn.DialogControlProvider,null,we().createElement(us,{strings:t,selectedNavLink:r,userIds:a,getNavigationIconName:c,mainContentAnchor:s})))},ps=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return[2,nn(Vn,"getPersonalInfo",(function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,ka("".concat("/home/api").concat("/profile","/personal-info"),{operation:"".concat("GLOBAL.HOME.PROFILE",".GETPERSONALINFO")})];case 1:return[2,e.sent().data]}}))}))}))]}))}))];case 1:return[2,e.sent()]}}))}))},gs=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"}},hs=function(e){var t=e.strings,a=e.userIds,n=e.selectedNavLink;return we().createElement(ms,{strings:t,userIds:a,selectedNavLink:n,getPersonalInfo:ps,getProfilePhoto:Zn,getNavigationIconName:gs,mainContentAnchor:"#main-content-landing-react"})},fs=function(e){var t=e.isSignedIn,a=e.pageLayoutProps,r=e.amcAccountLeftNavProps;return t?we().createElement(gn.PageLayout,(0,n.__assign)({},a,{layoutType:"withNavBar",leftNavContainer:we().createElement(hs,(0,n.__assign)({},r))})):we().createElement(gn.PageLayout,(0,n.__assign)({},a,{layoutType:"withoutNavBar"}))},vs=function(){return rs.useValue()},ys=a(31802),Es=a(42732),ws=a.n(Es),bs={},xs="get",ks="del";!function(e){e.Unauthorized="401",e.Conflict="409",e.PreconditionFailed="412",e.TooManyRequests="429",e.UnavailableForLegalReasons="451"}(is||(is={}));var Cs=function(e){return function(t){var a=f;return e.forEach((function(e){t.httpStatusCode===e&&(t.httpStatusCode="200",t.isSuccess=!0,a=v)})),a}};function Ts(e,t,a,n){return Ds("get",ka,e,t,a,{},n)}function Ss(e,t,a,n,r){return Ds("putOrPost",Ca,e,t,n,a,r)}function As(e,t,a,n,r){return Ds("putOrPost",Ta,e,t,n,a,r)}function Ps(e,t,a,n){return Ds("del",Sa,e,t,a,{},n)}function Ds(e,t,a,r,i,o,c){var s;return(0,n.__awaiter)(this,void 0,void 0,(function(){var l,d;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),l=void 0,e!==xs&&e!==ks?[3,2]:[4,t(a,{operation:r},i||{},c||{})];case 1:return l=n.sent(),[3,4];case 2:return[4,t(a,{operation:r},o,i||{},c||{})];case 3:l=n.sent(),n.label=4;case 4:return[2,l.data];case 5:return d=n.sent(),401===(null===(s=d.response)||void 0===s?void 0:s.status)&&window.location.reload(),[2,Promise.reject(d)];case 6:return[2]}}))}))}function Is(e,t,a,r,i,o){return(0,n.__awaiter)(this,void 0,void 0,(function(){return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return e&&_s(t),[4,nn(bs,t,(function(){return Ts(a,r,i,o)}))];case 1:return[2,n.sent()]}}))}))}function _s(e){an(bs,e)}var Ls,Rs="/privacy/api",Ns="".concat(Rs,"/test"),Ms="PRIVACY",Bs=[is.Unauthorized],Os=Cs(Bs),Fs=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ts("".concat(Rs,"/custom-dictionary-data"),"".concat(Ms,".CUSTOMDICTIONARY.GET"),{},{overrideRequestQosData:Os})];case 1:return[2,e.sent()]}}))}))},Vs=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,As("".concat(Rs,"/custom-dictionary-data"),"".concat(Ms,".CUSTOMDICTIONARY.PUT"),{customDictionary:e},{},{overrideRequestQosData:Os})];case 1:return t.sent(),[2]}}))}))},Us=function(e,t,a,n){ea({clickId:"".concat(t,".").concat(e?"opening":"closing"),pageArea:a}),null===n||void 0===n||n()},Hs=1e9,Gs=1e6,qs=function(e,t,a){var n=e.toLocaleString(a);return e>=Hs?n=Le(t.dataCountOverBillion,Math.floor(e/Hs)):e>=Gs&&(n=Le(t.dataCountOverMillion,Math.floor(e/Gs))),n},Ws=function(e,t,a,n){return e>0?Le(t,qs(e,a,n)):a.dataCountZero},zs=["location","browse","search","usage"],js=401,Qs="show-all-dialog-body";!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"}(Ls||(Ls={}));var Xs,Ys=["browse","search","usage"],$s="FIRST_LOAD",Ks="LOAD_MORE",Js="DELETE_BY_IDS",Zs="RESET",el="startTime_today",tl="/privacy",al="/download-data",nl=2e3,rl="privacy",il="".concat(rl,".overview"),ol=("".concat(il,".intro"),"".concat(il,".product-settings"),"".concat(rl,".download-your-data")),cl="".concat(ol,".archive"),sl="".concat(ol,".create-archive-dialog"),ll="".concat(ol,".delete-archive-dialog"),dl=("".concat(il,".clear-all-dialog"),"".concat(il,".show-all-dialog"),"".concat(rl,".ad-settings")),ul="".concat(dl,".signed-in"),ml="".concat(rl,".third-party-sharing"),pl="".concat(ml,".signed-in"),gl="".concat(dl,".signed-out"),hl="".concat(gl,".third-party-ads"),fl="".concat(rl,".mac-address-opt-out"),vl="".concat(rl,".office-settings"),yl="".concat(vl,".drawers"),El="".concat(rl,".timeline-v2"),wl="".concat(El,".clear-all-dialog"),bl="Privacy",xl="BulkDelete",kl="FilteredBulkDelete",Cl="DeleteConfirm",Tl="DeleteRetryAfterFailure",Sl="DeleteFailure",Al="ManageRecurringDelete",Pl="download-data",Dl="personalized-ad-settings",Il="ad-settings-signedout",_l="third-party-ads",Ll="child-activity",Rl="thirdPartyAdsOptOut",Nl="3PAdsOptOut",Ml="peopleSuggestions.recommendPeople.set",Bl="https://assets.account.microsoft.com/privacy/",Ol=function(e){var t=e.clearDictionaryItemsCallback,a=e.clearAllErrorCallback,n=(0,gn.useDialogController)(),r=vs().overviewContent.customDictionary.dialogContent,i=Bn().areaPrefix,o=function(){n.closeDialog()},c="CustomDictionary",s={iconName:"ErrorBadge",color:"errorIcon"},l=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Pt({area:i,scenario:Cl,step:"confirm",data:{}}),e.prev=1,e.next=4,Vs([]);case 4:t(),_t(),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),a(),_t({error:e.t0.message});case 12:n.closeDialog();case 13:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(){return e.apply(this,arguments)}}();return we().createElement(gn.Dialog,{closeButton:{"aria-label":r.close,"data-bi-id":"".concat(c,".dialog.close")},dialogFooterProps:{buttonPrimary:{"aria-label":r.delete,"data-bi-id":"".concat(c,".dialog.clearAll"),onClick:function(){l()},text:r.delete},buttonSecondary:{"aria-label":r.close,"data-bi-id":"".concat(c,".dialog.cancel"),onClick:o,text:r.dontDelete}},isOpen:!0,onDismiss:o,title:r.title},we().createElement(gn.Stack,{horizontalAlign:"center",childrenGap:"33px"},we().createElement(gn.Image,{src:r.image.src,alt:r.image.alt}),we().createElement(gn.Text,{variant:"paneTitle"},r.areYouSure),we().createElement(gn.MessageBar,{messageBarType:"secondary",messageBarVariant:"floating",iconProps:s,messageContent:r.line1}),we().createElement(gn.MessageBar,{messageBarType:"secondary",messageBarVariant:"floating",iconProps:s,messageContent:r.line2})))},Fl="CustomDictionary",Vl=function(e){var t=e.isL2,a=void 0!==t&&t,n=(0,gn.useDialogController)(),r=ma(),i=vs().overviewContent.customDictionary,o=(0,Ee.useState)([]),c=(0,Fn.A)(o,2),s=c[0],l=c[1],d=(0,Ee.useState)([]),u=(0,Fn.A)(d,2),m=u[0],p=u[1],g="customDictionary.get",h="customDictionary.put",f=(0,Ee.useState)(""),v=(0,Fn.A)(f,2),y=v[0],E=v[1],w=(0,Ee.useState)(!1),b=(0,Fn.A)(w,2),x=b[0],k=b[1],C=300,T=["s","m"].includes((0,gn.useViewport)());(0,gn.useMount)((0,ys.A)(ws().mark((function e(){var t,a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r({name:g,status:"first-load"}),e.next=4,Fs();case 4:t=e.sent,a=t.customDictionary,l(a),p(a.slice(0,C)),r({name:g,status:"finished"}),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),r({name:g,status:"failed"});case 14:case"end":return e.stop()}}),e,null,[[0,11]])}))));var S,A=function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return k(!1),e.prev=1,r({name:h,status:"updating"}),e.next=5,Vs(t).then((function(){l(t),p(t)}));case 5:r({name:h,status:"finished"}),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),k(!0),r({name:h,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)}}(),P=function(){l([])},D=function(){k(!0)},I=we().createElement(we().Fragment,null,s.length>C?m.map((function(e){return we().createElement(gn.Pill,{"aria-label":"".concat(i.drawerArea.header," - ").concat(e),"data-bi-id":"".concat(Fl,".item"),"data-testid":"Pill item",text:e,onClick:function(){}})})):we().createElement(gn.Stack,{backgroundColor:"transparent",horizontal:!0,padding:15},we().createElement(gn.ChoiceSummary,{"aria-label":i.detailsArea.title,"data-bi-id":"".concat(Fl,".item.list"),options:m.map((function(e){return{"aria-label":i.detailsArea.removeItemAriaLabel,"data-bi-id":"".concat(Fl,".item.remove"),label:e,onClick:function(){var t=s.filter((function(t){return t!==e}));A(t)}}}))}))),_=we().createElement(gn.ListItem,{backgroundColor:"transparent",columns:[we().createElement(gn.TextColumn,{textElements:[{children:I}]})],variant:"Twelve"}),L=function(e,t,a,n,r,i){var o=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=Bn(),s=vs().sharedContent,l=["s","m"].includes((0,gn.useViewport)()),d=Bn().areaPrefix,u="".concat(e,".drawer"),m=Ws(r,i,s,c.language),p=-1!==r,g=we().createElement(gn.Text,{variant:"headerText"},a);p&&l&&(g=we().createElement(gn.RichText,{textWithTokens:"{0} {1}",tokensAndValues:{0:we().createElement(gn.Text,{variant:"headerText"},a),1:we().createElement(gn.Text,{variant:"bodyPrimaryText"},"(",m,")")}}));var h=[{column:we().createElement(gn.DrawerHeaderTitle,{media:{size:"sm",image:{imageType:"image",src:t.src},padding:"0px 4px"},title:{kind:"text",weightOverride:"semi-bold",children:g},subtitleTextProps:{children:n}}),slots:p&&!l?9:12}];return p&&!l&&h.push({column:we().createElement(gn.DrawerHeaderStatus,{statusAlignment:"end",textWeightOverride:"semi-bold"},m),slots:3}),{onClickToOpen:function(){return Us(!0,u,d)},onClickToClose:function(){return Us(!1,u,d)},defaultExpanded:o,drawerHeader:we().createElement(gn.DrawerHeader,{totalSlots:12,chevronPosition:"end",columns:h})}}("customDictionary",i.drawerArea.icon,i.drawerArea.header,i.drawerArea.subtitle,s.length,i.drawerArea.dataCount,a),R={"aria-label":i.detailsArea.downloadLinkText,children:i.detailsArea.downloadLinkText,"data-bi-id":"".concat(Fl,".download"),download:"CustomDictionary",href:URL.createObjectURL(new Blob([s.join("\r\n").toString()],{type:"text/csv"}))},N={"aria-label":i.detailsArea.clearLinkText,children:i.detailsArea.clearLinkText,"data-bi-id":"".concat(Fl,".clearAll"),onClick:function(){n.openDialog(we().createElement(Ol,{clearDictionaryItemsCallback:P,clearAllErrorCallback:D}))}},M=we().createElement(gn.SearchBox,{value:y,onChange:function(e,t){t?(E(t),p(s.filter((function(e){return e.toLowerCase().includes(t.toLowerCase())})))):(E(""),p(s.slice(0,C)))},"data-bi-id":"".concat(Fl,".search-box"),"aria-label":i.drawerArea.searchAriaLabel}),B=we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0,header:(S=i.detailsArea.title,T?we().createElement(gn.Stack,{padding:"10px 16px 10px 0px"},we().createElement(gn.StackItem,null,we().createElement(gn.Text,{weightOverride:"semi-bold"},S)),we().createElement(gn.StackItem,null,M)):we().createElement(gn.Stack,{padding:"10px 16px 10px 0px"},we().createElement(gn.SlotStack,{totalSlots:12},we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Text,{weightOverride:"semi-bold"},S)),we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,{horizontal:!0,horizontalAlign:"end",childrenGap:"16px",padding:"0 16px 0 0"})),we().createElement(gn.SlotStackItem,{slots:4},M)))),footer:{type:"twocolumn",leftLinks:[R],rightLink:N,shouldRightLinkRightAligned:!0,shadow:!1,borderRadius:!1}},_),O=[we().createElement(gn.MessageBar,{messageBarType:"info",messageContent:{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Text,null,i.detailsArea.warningLarge)}}}),B],F=[B,we().createElement(gn.MessageBar,{messageBarType:"error",messageContent:{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Text,null,i.detailsArea.updateError)}}})],V=x?F:s.length>C?O:B,U=we().createElement(gn.MessageBar,{messageBarType:"secondary",messageContent:{textWithTokens:"{0} {1}",tokensAndValues:{0:we().createElement(gn.Text,null,i.detailsArea.noData),1:we().createElement(gn.Hyperlink,{"aria-label":i.detailsArea.learnMoreLink.text,"data-bi-id":"CustomDictionary-learn-more",href:i.detailsArea.learnMoreLink.url,target:"_blank"},i.detailsArea.learnMoreLink.text)}}}),H=we().createElement(gn.MessageBar,{messageBarType:"error",messageContent:{textWithTokens:"{0} {1}",tokensAndValues:{0:we().createElement(gn.Text,null,i.detailsArea.loadError),1:we().createElement(gn.NoHrefLink,{"aria-label":i.detailsArea.tryAgain,"data-bi-id":"".concat(Fl,".retry"),onClick:function(){Fs()}},i.detailsArea.tryAgain)}}});return we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.ShimmerProgressView,{operationData:{operationName:g,componentName:Fl},firstLoadView:we().createElement(gn.DrawerShimmer,{anchor:"right"}),finishedView:s.length>0?we().createElement(gn.ExpandedFeatureGroup,{drawerAreaProps:L,detailsArea:V}):we().createElement(gn.ExpandedFeatureGroup,{drawerAreaProps:L,detailsArea:U}),failedView:we().createElement(gn.ExpandedFeatureGroup,{drawerAreaProps:L,detailsArea:H})}))},Ul=a(8778),Hl="".concat(Rs,"/activity-data/recurring-deletes"),Gl="getRecurringDeletes",ql=[is.Unauthorized,is.TooManyRequests],Wl=Cs(ql),zl=function(e,t,a){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var r,i,o,c;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return r=Jl(e,t),i=Zl(e,t),o="".concat(Rs,"/history/timeline").concat(r),c=ad(a),[4,Ts(o,"".concat(Ms,".").concat(i),c,{overrideRequestQosData:Wl})];case 1:return[2,n.sent()]}}))}))},jl=function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var a,r,i,o,c;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return a=e.toUpperCase().replace("CARDTYPEFILTER_",""),r="GETTIMELINEHISTORY.AGGREGATECOUNT.".concat(a),i="activityType=".concat(encodeURIComponent(e)),o="".concat(Rs,"/activity-data/count?").concat(i),c=ad(t),[4,Ts(o,"".concat(Ms,".").concat(r),c,{overrideRequestQosData:Wl})];case 1:return[2,n.sent()]}}))}))},Ql=function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var a,r,i,o;return(0,n.__generator)(this,(function(c){switch(c.label){case 0:return a=ed(e&&e[0]),r=null===a||void 0===a?void 0:a.toUpperCase(),i="".concat(Rs,"/history/timeline/types?reportedType=").concat(a),o=ad(t),[4,Ps(i,"".concat(Ms,".DELETETIMELINEHISTORYBYTYPES.").concat(r),(0,n.__assign)((0,n.__assign)({},o),{data:{types:e}}))];case 1:return c.sent(),[2]}}))}))},Xl=function(e,t,a){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var r,i,o,c;return(0,n.__generator)(this,(function(s){switch(s.label){case 0:return r=ed(t),i=null===r||void 0===r?void 0:r.toUpperCase(),o="".concat(Rs,"/history/timeline/ids?reportedType=").concat(r),c=ad(a),[4,Ps(o,"".concat(Ms,".DELETETIMELINEHISTORYBYIDS.").concat(i),(0,n.__assign)((0,n.__assign)({},c),{data:{ids:e}}))];case 1:return s.sent(),[2]}}))}))},Yl=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return t=ad(e),[4,Is(!1,Gl,Hl,"".concat(Ms,".GETRECURRINGDELETES"),t)];case 1:return[2,a.sent()]}}))}))},$l=function(e,t,a,r){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var i;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return td(),i=ad(r),[4,Ss(Hl,"".concat(Ms,".CREATEORUPDATERECURRINGDELETES"),{activityType:e,interval:t,status:a},i,{overrideRequestQosData:Cs([is.Unauthorized])})];case 1:return[2,n.sent()]}}))}))},Kl=function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var a;return(0,n.__generator)(this,(function(r){switch(r.label){case 0:return td(),a=ad(t),[4,Ps(Hl,"".concat(Ms,".DELETERECURRINGDELETES"),(0,n.__assign)((0,n.__assign)({},a),{data:{dataType:e}}),{overrideRequestQosData:Cs([is.Unauthorized])})];case 1:return r.sent(),[2]}}))}))},Jl=function(e,t){var a=null===t||void 0===t?void 0:t.types,n=null===t||void 0===t?void 0:t.startTime,r=null===t||void 0===t?void 0:t.searchTerm,i=e?"state=".concat(encodeURIComponent(e)):"",o=a?"types=".concat(encodeURIComponent(a.join(","))):"",c=n?"startTime=".concat(n.split("_")[1]):"",s=r?"searchTerm=".concat(encodeURIComponent(r)):"";return"?".concat(o,"&").concat(i,"&").concat(c,"&").concat(s)},Zl=function(e,t){var a=t.searchTerm,n=ed(t.types&&t.types[0]),r=null===n||void 0===n?void 0:n.toUpperCase();return a?e?"GETTIMELINEHISTORY.LOADMORE.SEARCHFILTER.".concat(r):"GETTIMELINEHISTORY.SEARCHFILTER.".concat(r):e?"GETTIMELINEHISTORY.LOADMORE.".concat(r):"GETTIMELINEHISTORY.".concat(r)},ed=function(e){var t;return e&&e.split("_").length>1&&(t=e.split("_")[1]),t},td=function(){_s(Gl)},ad=function(e){return e?{headers:{"X-Obo":e}}:{}},nd=function(e,t){Pt({area:bl,scenario:e,step:Cl,data:{isObo:t}})},rd="awa-mee_custom1",id="awa-mee_custom3",od="awa-mee_custom5",cd="awa-mee_custom6",sd="awa-mee_custom9",ld=function(e,t){var a,n,r,i,o,c;switch(t.type){case $s:return c={},null===(a=t.firstLoadResult)||void 0===a||null===(n=a.items)||void 0===n||n.forEach((function(e){var t;c[null!==(t=e.id)&&void 0!==t?t:xe()]=e})),{state:t.firstLoadResult.state,items:c};case Ks:return c=(0,On.A)({},e.items),null===(r=t.loadMoreResult)||void 0===r||null===(i=r.items)||void 0===i||i.forEach((function(e){var t;c[null!==(t=e.id)&&void 0!==t?t:xe()]=e})),{state:t.loadMoreResult.state,items:c};case Js:return c=(0,On.A)({},e.items),null===(o=t.idsToDelete)||void 0===o||o.forEach((function(e){delete c[e]})),{state:e.state,items:c};case Zs:return{state:"",items:{}};default:throw new Error("Incorrect timeline data action type")}},dd="recurring-delete",ud={componentName:"recurring-delete-dialog-v2",operationName:dd},md={days2:2,days30:30,days90:90,days180:180},pd=function(e){var t,a,n,r,i=e.filterType,o=e.interval,c=e.variant,s=e.status,l=void 0===s?"active":s,d=e.onSuccessCallback,u=e.authToken,m=(0,gn.useDialogController)(),p=ma(),g=vs().overviewContent,h=g.recurringDelete,f=h.dialog,v="turnOff",y="450px",E="create"===c,w=(0,Ee.useState)(),b=(0,Fn.A)(w,2),x=b[0],k=b[1],C=(0,Ee.useState)(!1),T=(0,Fn.A)(C,2),S=T[0],A=T[1],P=Le(f.updateDialogDescription,i.split("_")[1]),D=E?h.buttons.turnOn:h.buttons.save,I=E?h.buttons.dontTurnOn:h.buttons.cancel;switch(i){case"cardTypeFilter_location":var _=g.overviewActivities.drawers.location.drawerArea.header.toLowerCase();t=Le(E?f.createSuccessMessage:f.manageSuccessMessage,[_,x&&md[x]]),a=Le(E?f.createDialogTitle:f.manageDialogTitle,_),n=Le(f.description,_),r=E?Le(f.clearDataSuccessMessage,_):void 0;break;case"cardTypeFilter_browse":t=E?f.createBrowseDialogSuccess:f.updateBrowseDialogSuccess,a=E?f.browseDialogTitle:f.updateDialogTitle,n=E?f.browseDialogDescription:P,r=E?f.clearBrowseDataSuccess:void 0;break;case"cardTypeFilter_search":t=E?f.createSearchDialogSuccess:f.updateSearchDialogSuccess,a=E?f.searchDialogTitle:f.updateDialogTitle,n=E?f.searchDialogDescription:P,r=E?f.clearSearchDataSuccess:void 0;break;case"cardTypeFilter_usage":var L=g.overviewActivities.drawers.usage.drawerArea.header.toLowerCase();t=Le(E?f.createSuccessMessage:f.manageSuccessMessage,[L,x&&md[x]]),a=Le(E?f.createDialogTitle:f.manageDialogTitle,L),n=Le(f.description,L),r=E?Le(f.clearDataSuccessMessage,L):void 0;break;default:throw Error("RecurringDeleteDialog: Unexpected filterType")}x===v&&(t=f.turnOffSuccessMessage);var R=function(e){var t=md[e];return{"data-bi-id":"recurring-delete-interval-".concat(t),"aria-label":Le(f.interval,t),key:e,text:Le(f.interval,t)}},N=[];Qa("RoleEngineer")&&N.push({"data-bi-id":"recurring-delete-interval-2","aria-label":"2 days (INTERNAL ONLY)",key:"days2",text:"2 days (INTERNAL ONLY)"}),N.push(R("days30")),N.push(R("days90")),N.push(R("days180")),"manage"===c&&N.push({"data-bi-id":"recurring-delete-turnoff","aria-label":f.turnOff,key:v,text:f.turnOff});var M=function(){Nt()&&It(),m.closeDialog()},B=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a,n;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,p({name:dd,status:"updating"}),"manage"!==c||x!==v){e.next=8;break}return e.next=5,Kl(i,u);case 5:null===d||void 0===d||d(S),e.next=12;break;case 8:return e.next=10,$l(i,x,l,u);case 10:t=e.sent,null===d||void 0===d||d(S,t);case 12:p({name:dd,status:"finished"}),_t({data:{interval:x}}),e.next=22;break;case 16:e.prev=16,e.t0=e.catch(0),p({name:dd,status:"failed",error:e.t0}),n=e.t0,Dt({step:"RetryAfterFailure",error:null!==(a=n.toString())&&void 0!==a?a:"RecurringDeleteFailed"});case 22:case"end":return e.stop()}}),e,null,[[0,16]])})));return function(){return e.apply(this,arguments)}}();(0,Ee.useEffect)((function(){o&&k(o),p({name:dd,status:"inert"})}),[o,p]);var O=function(){return{buttonPrimary:{text:D,"aria-label":D,"data-bi-id":"recurring-delete-save",onClick:B,disabled:!!("manage"===c&&"paused"!==l&&x===o||"create"===c&&!x)},buttonSecondary:{text:I,"aria-label":I,"data-bi-id":"recurring-delete-cancel",onClick:M}}},F={title:a,isOpen:!0,staticBodyWidth:"480px",closeButton:{"aria-label":f.dismissButtonAriaLabel,"data-bi-id":"recurring-delete-dismiss"},onDismiss:M,stickyHeaderFooter:{hasStickyHeaderFooters:!0},dialogFooterProps:O(),operationData:{progressViewOperationData:ud,errorDialogProps:{title:a,dialogFooterProps:(0,On.A)((0,On.A)({},O()),{},{richTextProps:{textWithTokens:"{errorMessage}",tokensAndValues:{errorMessage:we().createElement(gn.Text,{colorOverride:"error"},f.errorMessage)}}})},successDialogProps:{title:a,dialogFooterProps:{buttonPrimary:{text:h.buttons.ok,"aria-label":h.buttons.ok,"data-bi-id":"recurring-delete-success-ok",onClick:function(){return m.closeDialog()}}}},progressDialogProps:{title:a}}},V=function(e){return we().createElement(gn.Media,{size:"sm",image:{iconColor:"successIcon",iconName:"CompletedSolid",imageType:"icon"}},we().createElement(gn.Text,{variant:"bodySecondaryText"},e))},U=we().createElement(gn.Stack,{height:"create"===c?y:void 0,horizontal:!1,childrenGap:"12"},r&&we().createElement(gn.Stack,null,V(r),we().createElement(gn.Separator,null)),n&&we().createElement(gn.Text,{variant:"bodySecondaryText"},n),we().createElement(gn.ChoiceGroup,{optionType:"basic",label:f.intervalsLabel,"aria-label":f.intervalsAriaLabel,"data-bi-id":"recurring-delete-interval-options",onChange:function(e){var t=e.key;k(t),A(t===v)},options:N,selectedKey:x})),H=we().createElement(gn.Stack,{height:y,horizontal:!1},we().createElement(gn.Stack,{childrenGap:"12"},V(t))),G=we().createElement(gn.Stack,{height:y,horizontal:!1},we().createElement(gn.Stack,{padding:"80"},we().createElement(gn.Spinner,{"aria-label":f.progressMessage})));return we().createElement(gn.Dialog,F,we().createElement(ha,{operationData:ud,inertView:U,finishedView:H,updatingView:G,failedView:U}))},gd=function(e,t,a,n,r,i){var o=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=Bn(),s=vs().sharedContent,l=["s","m"].includes((0,gn.useViewport)()),d=Bn(),u=d.areaPrefix,m="".concat(e,".drawer"),p=Ws(r,i,s,c.language),g=-1!==r,h=we().createElement(gn.Text,{variant:"headerText"},a);g&&l&&(h=we().createElement(gn.RichText,{textWithTokens:"{0} {1}",tokensAndValues:{0:we().createElement(gn.Text,{variant:"headerText"},a),1:we().createElement(gn.Text,{variant:"bodyPrimaryText"},"(",p,")")}}));var f=[{column:we().createElement(gn.DrawerHeaderTitle,{media:{size:"sm",image:{imageType:"icon",iconName:t},padding:"0px 4px"},title:{kind:"text",weightOverride:"semi-bold",children:h},subtitleTextProps:{children:n}}),slots:g&&!l?9:12}];return g&&!l&&f.push({column:we().createElement(gn.DrawerHeaderStatus,{statusAlignment:"end",textWeightOverride:"semi-bold"},p),slots:3}),{onClickToOpen:function(){return Us(!0,m,u)},onClickToClose:function(){return Us(!1,m,u)},defaultExpanded:o,drawerHeader:we().createElement(gn.DrawerHeader,{totalSlots:12,chevronPosition:"end",columns:f})}},hd=function(e,t,a){var n,r=Object.values(a.bodyText);return"appAccess"===e&&(n={src:"https://assets.account.microsoft.com/privacy/compassassets/app-access-highlight-content.svg",alt:""}),{height:"small",backgroundType:"card",bodyText:fd(r,t,e),imageProps:{alt:n&&n.src?n.alt:a.image.alt,src:n&&n.src?n.src:a.image.src},layoutType:"2/3",paddingVariant:"24px",borderRadius:"0px",ctaProps:[]}},fd=function(e,t,a){return e.map((function(n,r){return 0===r?{textWithTokens:n,tokensAndValues:t}:"location"===a&&r===e.length-1||"search"===a||"browse"===a||"usage"===a||"performance"===a?{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{padding:"8px 0px 0px 0px"},we().createElement(gn.RichText,{textWithTokens:n,tokensAndValues:t}))}}:{textWithTokens:"{0}",tokensAndValues:{0:we().createElement("ul",{style:{padding:"8px 16px 0px"}},we().createElement("li",null,we().createElement(gn.RichText,{textWithTokens:n,tokensAndValues:t})))}}}))},vd=function(e){var t=e.dataType,a="timeLine-confirmation-dialog-content-v2.".concat(t);ta(a);var n=vs().overviewContent.overviewActivities.dialogs,r=[],i=[],o={},c={iconName:"ErrorBadge",color:"errorIcon"},s={iconName:"Info"};switch(t){case"location":r=Object.values(n.location.body2),i=[c,c];break;case"browse":r=Object.values(n.browse.body2),i=[c,c,s,s],o={viewDeleteLink:we().createElement(gn.Hyperlink,{"aria-label":n.browse.tokens.viewDeleteToken,"data-bi-id":"".concat(wl,".browse-view-delete-link"),href:n.browse.links.viewDeleteLink,target:"_blank"},n.browse.tokens.viewDeleteToken)};break;case"search":r=Object.values(n.search.body2),i=[c,c,s];break;case"usage":r=Object.values(n.usage.body),i=[c,c,c];break;case"performance":r=Object.values(n.performance.body),i=[c,c,c]}return we().createElement(gn.Stack,null,we().createElement(gn.Stack,{childrenGap:"5px"},we().createElement(we().Fragment,null,r.map((function(e,t){return we().createElement(gn.MessageBar,{messageBarType:"info",iconProps:i[t],messageContent:{textWithTokens:e,tokensAndValues:o}})})),"browse"===t?we().createElement(gn.Hyperlink,{"aria-label":n.browse.learnMoreText,"data-bi-id":"".concat(wl,".browse-learn-more-link"),href:n.browse.learnMoreLink,target:"_blank"},n.browse.learnMoreText):null)))},yd=function(e){var t=e.confirmationDialogState,a=e.setConfirmationDialogState,n=e.onClearAllCancel,r=e.deleteAll,i=e.onRecurringDeleteSuccessCallback,o=e.recurringDeletes,c=e.child,s="timeline-confirmation-dialog-v2.".concat(t.dialogDataType);ta(s);var l,d="cardTypeFilter_".concat(t.dialogDataType),u=Bn(),m=(0,gn.useDialogController)(),p=ma(),g=vs().overviewContent.overviewActivities.dialogs,h=o&&o[d],f="".concat(wl,".").concat(t.dialogDataType);if(!t.dialogDataType)return null;switch(t.dialogDataType){case"browse":l=g.browse.areYouSure;break;case"location":l=g.location.areYouSure;break;case"search":l=g.search.areYouSure;break;case"usage":l=g.usage.areYouSure;break;case"performance":l=g.performance.areYouSure}var v=(0,Ul.A)({},rd,t.dialogDataType),y="ConfirmationDialog.DeleteAllByType.".concat(t.dialogDataType),E=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e&&Et(at),a({showDialog:!1,dialogDataType:null}),e&&It({data:v})},w=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Et("End"),p({name:y,status:"updating"}),e.next=5,r();case 5:p({name:y,status:"finished"}),E(!1),_t({data:v}),h||"performance"===t.dialogDataType||(Pt({area:u.areaPrefix,scenario:"CreateRecurringDelete",step:"Index",data:{activityType:t.dialogDataType}}),m.openDialog(we().createElement(pd,{filterType:d,variant:"create",onSuccessCallback:i,authToken:null===c||void 0===c?void 0:c.authToken}))),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(0),Et(Tl),p({name:y,status:"failed"}),Dt({step:Tl,error:Sl,data:v});case 16:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();return we().createElement(gn.Dialog,function(){var e={buttonPrimary:{onClick:w,text:g.clear,"aria-label":g.clear,"data-bi-id":"".concat(f,".clear")},buttonSecondary:{onClick:n,text:g.dontClear,"aria-label":g.dontClear,"data-bi-id":"".concat(f,".cancel")}};return{isOpen:t.showDialog,staticBodyWidth:"480px",closeButton:{"data-bi-id":"".concat(f,".close"),"aria-label":g.closeAriaLabel},title:l,onDismiss:function(){return E(!0)},stickyHeaderFooter:{hasStickyHeaderFooters:!0,forceStickyOnSmallScreens:!0},dialogFooterProps:e,operationData:{progressViewOperationData:{operationName:y,componentName:s},errorDialogProps:{title:l,dialogFooterProps:e}}}}(),we().createElement(ha,{operationData:{operationName:y,componentName:s,defaultState:"finished"},finishedView:we().createElement(vd,{dataType:t.dialogDataType}),updatingView:we().createElement(vd,{dataType:t.dialogDataType}),failedView:we().createElement(we().Fragment,null,we().createElement(vd,{dataType:t.dialogDataType}),we().createElement(gn.Text,{colorOverride:"error"},g.clearFailed))}))},Ed=function(e){var t=new Date(e.getTime());return t.setHours(0,0,0,0),t},wd=function(e,t,a,n){var r=Ed(new Date),i=Ed(new Date);i.setDate(r.getDate()-1);var o=new Date(e);if(t&&"Monthly"===t){var c=new Date(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate());return(0,gn.toShortMonthYear)(c)}Xs&&Xs.getTime()===Ed(o).getTime()||(Xs=Ed(o));var s=(0,gn.toShortMonthDayYear)(Xs);return r.getTime()===Xs.getTime()?n?a.today:(0,gn.toShortTime)(o):i.getTime()===Xs.getTime()?a.yesterday:s},bd=function(e){var t=new Date(e);return(0,gn.toShortTime)(t)},xd="BrowseListItemV2.SingleRowDelete",kd=(0,gn.listItemComponent)((function(e){var t,a,n=e.timelineItem,r=e.deleteByIds,i=e.isDialog,o=void 0!==i&&i,c=(0,gn.useViewport)(),s=ma(),l=null===(t=Bn().selfRights)||void 0===t?void 0:t.canManage,d=vs(),u=d.sharedContent,m=d.webSearchContent.pageContent,p=(0,Ee.useState)(!1),g=(0,Fn.A)(p,2),h=g[0],f=g[1],v=(0,Ee.useState)(),y=(0,Fn.A)(v,2),E=y[0],w=y[1],b=(0,Ee.useState)(!1),x=(0,Fn.A)(b,2),k=x[0],C=x[1],T=n,S="".concat(El,o?".dialog.browse":".browse"),A=o?bd(T.timestamp):wd(T.timestamp,T.aggregationMethod,u),P=(0,gn.formatString)(m.webListItemVisits,{count:T.count}),D=T.hasWebContent?" \u2022 ".concat(m.hasWebContent):"",I=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s({name:"".concat(xd,".").concat(T.id),status:"updating"}),e.next=4,r([T.id]);case 4:f(!1),s({name:"".concat(xd,".").concat(T.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),f(!1),C(!0),s({name:"".concat(xd,".").concat(T.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)}}(),_=(0,Ee.useCallback)((function(){f(!1),clearTimeout(E)}),[E]),L=we().createElement(gn.DrawerHeaderAction,{actionAlignment:"flex-end",actionButton:{"aria-label":h?u.cancelAriaLabel:u.deleteAriaLabel,"data-bi-id":"".concat(S,h?".cancel":".delete"),disabled:!1,onClick:h?_:function(){f(!0),C(!1),w(setTimeout(I,nl))},text:"",iconName:h?"Cancel":"Delete",buttonColor:"neutralPrimary",operationData:{progressViewOperationData:{componentName:"timeline-browse-list-item-v2",operationName:"".concat(xd,".").concat(T.id),defaultState:"finished"},textWhileUpdating:["s","m"].includes(c)?"":u.clearing}},"aria-label":"","data-bi-id":""}),R=we().createElement(gn.DrawerHeaderCallout,{calloutProps:{"aria-label":u.tryAgainLongText,children:u.tryAgainLongText,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":u.tryAgainLongText,"data-bi-id":"".concat(S,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}}),N=we().createElement(gn.DrawerHeaderTitle,{title:{children:T.title,kind:"text",nowrap:!0}}),M=we().createElement(gn.DrawerHeaderStatus,null,"".concat(P+D)),B=we().createElement(gn.DrawerHeaderStatus,null,A),O=we().createElement(gn.DrawerHeaderTitle,{title:{children:"".concat(T.title," \u2022 ").concat(P+D," \u2022 ").concat(A),kind:"text",nowrap:!0}}),F=we().createElement(gn.DrawerHeader,{columns:[{column:N,slots:4},{column:M,slots:3},{column:B,slots:3},{column:L,slots:2}],totalSlots:12}),V=we().createElement(gn.DrawerHeader,{columns:[{column:N,slots:4},{column:M,slots:4},{column:B,slots:4}],totalSlots:12}),U=we().createElement(gn.DrawerHeader,{columns:[{column:N,slots:4},{column:M,slots:3},{column:B,slots:3},{column:R,slots:1},{column:L,slots:1}],totalSlots:12}),H=we().createElement(gn.DrawerHeader,{columns:[{column:O,slots:8},{column:L,slots:4}],totalSlots:12}),G=we().createElement(gn.DrawerHeader,{columns:[{column:O,slots:12}],totalSlots:12}),q=we().createElement(gn.DrawerHeader,{columns:[{column:O,slots:8},{column:R,slots:1},{column:L,slots:3}],totalSlots:12}),W=we().createElement(gn.ListItem,{variant:"Twelve",backgroundColor:"neutralMed",columns:[we().createElement(gn.TextColumn,{textElements:[{children:u.noAvailableData}]})]}),z=null!==(a=T.browsedUrls)&&void 0!==a&&a.length?T.browsedUrls.map((function(e,t){return we().createElement(gn.ListItem,{key:t,backgroundColor:"neutralMed",columns:[we().createElement(gn.TextColumn,{textElements:[{children:e.title}]}),we().createElement(gn.HyperlinkColumn,{hyperlinks:[{"aria-label":e.title,"data-bi-id":"".concat(S,".browsed-url"),href:e.url,children:e.url,target:"_blank","data-bi-dnt":!0}]})],variant:"ThreeNine"})})):W;switch(c){case"xxxl":case"xxl":case"xl":case"l":case"m":return we().createElement(gn.Drawer,{drawerHeader:l?k?U:F:V,isListItem:!0},we().createElement(gn.Stack,{tabIndex:0,"data-is-focusable":!0},we().createElement(gn.List,{isAlwaysExpanded:!0},z)));case"s":return we().createElement(gn.Drawer,{drawerHeader:l?k?q:H:G,isListItem:!0},z)}})),Cd={},Td=function(e,t){return nn(Cd,"".concat(t.lat,",").concat(t.long),(function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var a;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:if(!t.lat||!t.long)throw Error("Latitude and longitude MUST be provided to call getLocationLookupAddress");a="".concat(e.restApiUrl)+"".concat(e.restLocationApi)+"".concat(t.lat,",").concat(t.long)+"?key=".concat(e.apiKey)+"&c=".concat(e.locale)+"&includeEntityTypes=".concat("Address,Neighborhood,PopulatedPlace,AdminDivision1"),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,Pa(a,{partnerName:"BingMaps",operation:"LookupLocation"},{callbackName:"jsonp",errorField:"errorDetails"})];case 2:return[2,n.sent().resourceSets[0].resources[0].address];case 3:return n.sent(),[2,{formattedAddress:"".concat(t.lat.toFixed(4),", ").concat(t.long.toFixed(4))}];case 4:return[2]}}))}))}))},Sd="LocationListItem.SingleRowDelete",Ad="".concat(El,".location"),Pd=(0,gn.listItemComponent)((function(e){var t,a=e.timelineItem,n=e.deleteByIds,r=(0,gn.useViewport)(),i=ma(),o=vs(),c=o.overviewContent.overviewActivities.drawers.listItems,s=o.overviewContent.overviewActivities.drawers.detailsArea,l=Bn(),d=l.bingMapsConfig,u=null===(t=l.selfRights)||void 0===t?void 0:t.canManage,m=(0,Ee.useState)(!1),p=(0,Fn.A)(m,2),g=p[0],h=p[1],f=(0,Ee.useState)(),v=(0,Fn.A)(f,2),y=v[0],E=v[1],w=(0,Ee.useState)(!1),b=(0,Fn.A)(w,2),x=b[0],k=b[1],C=(0,Ee.useState)(""),T=(0,Fn.A)(C,2),S=T[0],A=T[1],P=a,D=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!P.location.lat||!P.location.long){e.next=5;break}return e.next=3,Td(d,{lat:P.location.lat,long:P.location.long});case 3:t=e.sent,A(t.formattedAddress);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();Se((function(){D()}));var I=[{children:S},Od(P,s)],_={children:wd(P.timestamp,P.aggregationMethod,c),variant:"bodySecondaryText"},L=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:"".concat(Sd,".").concat(P.id),status:"updating"}),e.next=4,n([P.id]);case 4:h(!1),i({name:"".concat(Sd,".").concat(P.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),h(!1),k(!0),i({name:"".concat(Sd,".").concat(P.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)}}(),R=(0,Ee.useCallback)((function(){h(!1),clearTimeout(y)}),[y]),N=[{"aria-label":g?c.cancelAriaLabel:c.deleteAriaLabel,"data-bi-id":"".concat(Ad,g?".cancel":".delete"),iconName:g?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:g?R:function(){h(!0),k(!1),E(setTimeout(L,nl))},text:"",operationData:{progressViewOperationData:{componentName:"LocationListItem",operationName:"".concat(Sd,".").concat(P.id),defaultState:"finished"}}}],M=[{"aria-label":c.tryAgain,children:c.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":c.tryAgain,"data-bi-id":"".concat(Ad,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],B=function(){return u?we().createElement(gn.ActionButtonFinalColumn,{contentType:x?"callout":"none",columnAlign:"end",calloutElements:M,actionButtonProps:N}):we().createElement(gn.EmptyColumn,null)};switch(r){case"xxxl":case"xxl":case"xl":case"l":case"m":return we().createElement(gn.ListItem,{key:P.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[we().createElement(gn.TextColumn,{textElements:I}),we().createElement(gn.TextColumn,{textElements:[_]}),B()]});case"s":return we().createElement(gn.ListItem,{key:P.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[we().createElement(gn.TextColumn,{textElements:[].concat(I,[_])}),B()]})}})),Dd="SearchListItemV2.SingleRowDelete",Id=(0,gn.listItemComponent)((function(e){var t,a,n=e.timelineItem,r=e.deleteByIds,i=e.isDialog,o=void 0!==i&&i,c=(0,gn.useViewport)(),s=ma(),l=null===(t=Bn().selfRights)||void 0===t?void 0:t.canManage,d=vs(),u=d.sharedContent,m=d.webSearchContent.pageContent,p=(0,Ee.useState)(!1),g=(0,Fn.A)(p,2),h=g[0],f=g[1],v=(0,Ee.useState)(!1),y=(0,Fn.A)(v,2),E=y[0],w=y[1],b=(0,Ee.useState)(),x=(0,Fn.A)(b,2),k=x[0],C=x[1],T=n,S=(0,gn.formatString)(m.searchListItemSearches,{count:T.count}),A="".concat(El,o?".dialog.search":".search"),P=o?bd(T.timestamp):wd(T.timestamp,T.aggregationMethod,u),D=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,s({name:"".concat(Dd,".").concat(T.id),status:"updating"}),e.next=4,r([T.id]);case 4:f(!1),s({name:"".concat(Dd,".").concat(T.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),f(!1),w(!0),s({name:"".concat(Dd,".").concat(T.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,Ee.useCallback)((function(){f(!1),clearTimeout(k)}),[k]),_=we().createElement(gn.DrawerHeaderAction,{actionAlignment:"flex-end",actionButton:{"aria-label":h?u.cancelAriaLabel:u.deleteAriaLabel,"data-bi-id":"".concat(A,h?".cancel":".delete"),disabled:!1,onClick:h?I:function(){f(!0),w(!1),C(setTimeout(D,nl))},text:"",iconName:h?"Cancel":"Delete",buttonColor:"neutralPrimary",operationData:{progressViewOperationData:{componentName:"timeline-search-list-item-v2",operationName:"".concat(Dd,".").concat(T.id),defaultState:"finished"},textWhileUpdating:["s","m"].includes(c)?"":u.clearing}},"aria-label":"","data-bi-id":""}),L=we().createElement(gn.DrawerHeaderCallout,{calloutProps:{"aria-label":u.tryAgainLongText,children:u.tryAgainLongText,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":u.tryAgainLongText,"data-bi-id":"".concat(A,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}}),R=we().createElement(gn.DrawerHeaderTitle,{title:{children:T.terms,kind:"text",nowrap:!0}}),N=we().createElement(gn.DrawerHeaderStatus,null,S),M=we().createElement(gn.DrawerHeaderStatus,null,P),B=we().createElement(gn.DrawerHeaderTitle,{title:{children:"".concat(T.terms," \u2022 ").concat(S," \u2022 ").concat(P),kind:"text",nowrap:!0}}),O=we().createElement(gn.DrawerHeader,{columns:[{column:R,slots:4},{column:N,slots:3},{column:M,slots:3},{column:_,slots:2}],totalSlots:12}),F=we().createElement(gn.DrawerHeader,{columns:[{column:R,slots:4},{column:N,slots:4},{column:M,slots:4}],totalSlots:12}),V=we().createElement(gn.DrawerHeader,{columns:[{column:R,slots:4},{column:N,slots:3},{column:M,slots:3},{column:L,slots:1},{column:_,slots:1}],totalSlots:12}),U=we().createElement(gn.DrawerHeader,{columns:[{column:B,slots:8},{column:_,slots:4}],totalSlots:12}),H=we().createElement(gn.DrawerHeader,{columns:[{column:B,slots:12}],totalSlots:12}),G=we().createElement(gn.DrawerHeader,{columns:[{column:B,slots:8},{column:L,slots:1},{column:_,slots:3}],totalSlots:12}),q=we().createElement(gn.ListItem,{variant:"Twelve",backgroundColor:"neutralMed",columns:[we().createElement(gn.TextColumn,{textElements:[{children:u.noAvailableData}]})]}),W=null!==(a=T.sites)&&void 0!==a&&a.length?T.sites.map((function(e,t){return we().createElement(gn.ListItem,{key:t,backgroundColor:"neutralMed",columns:[we().createElement(gn.TextColumn,{textElements:[{children:e.title}]}),we().createElement(gn.HyperlinkColumn,{hyperlinks:[{"aria-label":e.title,"data-bi-id":"".concat(A,".visited-url"),href:e.url,children:e.url,target:"_blank","data-bi-dnt":!0}]})],variant:"ThreeNine"})})):q;switch(c){case"xxxl":case"xxl":case"xl":case"l":case"m":return we().createElement(gn.Drawer,{isListItem:!0,drawerHeader:l?E?V:O:F},we().createElement(gn.Stack,{tabIndex:0,"data-is-focusable":!0},we().createElement(gn.List,{isAlwaysExpanded:!0},W)));case"s":return we().createElement(gn.Drawer,{isListItem:!0,drawerHeader:l?E?G:U:H},W)}})),_d=a(49839),Ld=function(e){return e.appIconUrl||!e.appName?{imageType:"image",src:e.appIconUrl}:{imageType:"character",character:e.appName.charAt(0).toLocaleUpperCase()}},Rd=["timelineItem","deleteByIds"],Nd="UsageListItem.SingleRowDelete",Md="".concat(El,".apps-services.usage"),Bd=(0,gn.listItemComponent)((function(e){var t,a=e.timelineItem,n=e.deleteByIds,r=(0,_d.A)(e,Rd),i=(0,gn.useViewport)(),o=ma(),c=vs().overviewContent.overviewActivities.drawers.listItems,s=null===(t=Bn().selfRights)||void 0===t?void 0:t.canManage,l=(0,Ee.useState)(!1),d=(0,Fn.A)(l,2),u=d[0],m=d[1],p=(0,Ee.useState)(),g=(0,Fn.A)(p,2),h=g[0],f=g[1],v=(0,Ee.useState)(!1),y=(0,Fn.A)(v,2),E=y[0],w=y[1],b=a,x="".concat(wd(b.timestamp,b.aggregationMethod,c)),k={listItemMediaProps:{image:Ld(b),size:"sm"},title:b.appName},C={children:"".concat(b.appPublisher),variant:"bodySecondaryText"},T={children:x,variant:"bodySecondaryText"},S={children:u?c.clearing:"",variant:"bodySecondaryText"},A=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,o({name:"".concat(Nd,".").concat(b.id),status:"updating"}),e.next=4,n([b.id]);case 4:m(!1),o({name:"".concat(Nd,".").concat(b.id),status:"finished"}),e.next=13;break;case 8:e.prev=8,e.t0=e.catch(0),m(!1),w(!0),o({name:"".concat(Nd,".").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)}}(),P=(0,Ee.useCallback)((function(){m(!1),clearTimeout(h)}),[h]),D=[{"aria-label":c.tryAgain,children:c.tryAgain,calloutTrigger:"IconButton",calloutTriggerProps:{"aria-label":c.tryAgain,"data-bi-id":"".concat(Md,".error-callout"),iconName:"Info",iconColor:"errorIcon"}}],I=[{"aria-label":u?c.cancelAriaLabel:c.deleteAriaLabel,"data-bi-id":"".concat(Md,u?".cancel":".delete"),iconName:u?"Cancel":"Delete",buttonColor:"neutralPrimary",onClick:u?P:function(){m(!0),w(!1),f(setTimeout(A,nl))},text:"",operationData:{progressViewOperationData:{componentName:"AppsServices.UsageListItem",operationName:"".concat(Nd,".").concat(b.id),defaultState:"finished"}}}],_=function(){return s?["xl","xxl","xxxl"].includes(i)?we().createElement(gn.ActionButtonFinalColumn,{contentType:E?"callout":"text",columnAlign:"end",calloutElements:D,textElements:[S],actionButtonProps:I}):we().createElement(gn.ActionButtonFinalColumn,{contentType:E?"callout":"none",columnAlign:"end",calloutElements:D,actionButtonProps:I}):we().createElement(gn.EmptyColumn,null)};switch(i){case"xxxl":case"xxl":case"xl":return we().createElement(gn.ListItem,Object.assign({},r,{key:b.id,variant:"SixTwoTwoTwo",backgroundColor:"neutralMed",columns:[we().createElement(gn.MediaTitleColumn,k),we().createElement(gn.TextColumn,{textElements:[C]}),we().createElement(gn.TextColumn,{textElements:[T],"data-fct-id":x}),_()]}));case"l":case"m":return we().createElement(gn.ListItem,Object.assign({},r,{key:b.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[we().createElement(gn.MediaTitleColumn,Object.assign({},k,{subtitles:[C,S]})),we().createElement(gn.TextColumn,{textElements:[T],"data-fct-id":x}),_()]}));case"s":return we().createElement(gn.ListItem,Object.assign({},r,{key:b.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[we().createElement(gn.MediaTitleColumn,Object.assign({},k,{subtitles:[C,T,S],"data-fct-id":x})),_()]}))}})),Od=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(Le(t.visits,{count:e.count})),variant:"bodySecondaryText"}:{children:Le(t.visits,{count:e.count}),variant:"bodySecondaryText"}},Fd=function(e){var t=e.prefix,a=e.sharedContent;return we().createElement(gn.Stack,{horizontal:!0,childrenGap:"12px",padding:"0 16px 0 0"},we().createElement(gn.Icon,{iconName:"Info",size:"16px"}),we().createElement(gn.RichText,{textWithTokens:a.noData,tokensAndValues:{"learn-more":we().createElement(gn.Hyperlink,{"aria-label":a.learnMoreToken,"data-bi-id":"".concat(t,"-noData-learnMore-link"),href:a.learnMoreLink,target:"_blank"},a.learnMoreToken)}}))},Vd=function(e){var t=e.sharedContent,a=e.header,n=e.prefix,r=e.onSearchChange,i=e.searchValue,o=e.isSmallViewport,c=e.hideSearchBox,s=void 0!==c&&c,l=we().createElement(gn.SearchBox,{"aria-label":t.searchBoxPlaceHolder,"data-bi-id":"".concat(n,"-search-box"),onChange:function(e,t){r(t||"")},placeholder:t.searchBoxPlaceHolder,value:i,id:"".concat(n,"-search-box")});return o?we().createElement(gn.Stack,null,we().createElement(gn.StackItem,null,we().createElement(gn.Stack,null,we().createElement(gn.Heading,{tag:"h3",variant:"headerText"},a))),s?void 0:we().createElement(gn.StackItem,{padding:"10px 16px 10px 0px"},l)):we().createElement(gn.SlotStack,{totalSlots:12},we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,{horizontal:!0,padding:"5px 0 0 0"},we().createElement(gn.Heading,{tag:"h3",variant:"headerText"},a))),s?void 0:we().createElement(gn.SlotStackItem,{slots:8},we().createElement(gn.Stack,{horizontal:!0,horizontalAlign:"end",padding:"0 16px 0 0"},l)))},Ud=function(e){var t=e.prefix,a=e.sharedContent,n=e.isRetrying,r=e.onRetryClick;return we().createElement(gn.Stack,{horizontal:!0,childrenGap:"12px"},we().createElement(gn.Icon,{iconName:"Info",size:"16px",color:"errorIcon"}),we().createElement(gn.Text,null,a.retryHeader),we().createElement(gn.NoHrefLink,{key:"".concat(t,".try-again"),"aria-label":a.retryHeader,"data-bi-id":"".concat(t,".try-again"),onClick:r,disabled:n},a.tryAgain),n?we().createElement(gn.Spinner,{"aria-label":a.retryInProgressAriaLabel}):null)};var Hd,Gd={hasStickyHeaderFooters:!0,forceStickyOnSmallScreens:!0},qd={padding:"0px",smallScreenPadding:"0px"},Wd=function(e){var t=e.date,a=e.timelineItemsAtDate,n=e.deleteByIds,r=a,i={initialListLength:r.length};return we().createElement(gn.List,Object.assign({isAlwaysExpanded:!1,isTabbable:!0,key:t},i,{header:we().createElement(gn.TextColumn,{textElements:[{children:t,variant:"headerText"}]})}),r.map((function(e){return we().createElement(kd,{key:e.id,timelineItem:e,deleteByIds:n,isDialog:!0})})))},zd=function(e){var t=e.date,a=e.timelineItemsAtDate,n=e.deleteByIds,r=a;return we().createElement(gn.List,{key:t,header:we().createElement(gn.Stack,null,we().createElement(gn.Text,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},r.map((function(e){return we().createElement(Pd,{key:e.id,timelineItem:e,deleteByIds:n})})))},jd=function(e){var t=e.date,a=e.timelineItemsAtDate,n=e.deleteByIds,r=a,i={initialListLength:r.length};return we().createElement(gn.List,Object.assign({isAlwaysExpanded:!1,isTabbable:!0,key:t},i,{header:we().createElement(gn.TextColumn,{textElements:[{children:t,variant:"headerText"}]})}),r.map((function(e){return we().createElement(Id,{key:e.id,timelineItem:e,deleteByIds:n,isDialog:!0})})))},Qd=function(e){var t=e.date,a=e.timelineItemsAtDate,n=e.deleteByIds,r=a;return we().createElement(gn.List,{key:t,header:we().createElement(gn.Stack,null,we().createElement(gn.Text,{weightOverride:"semi-bold"},t)),isAlwaysExpanded:!0,shadow:!0,listItemBackgroundColor:"neutralMed",roundedCorners:!1},r.map((function(e){return we().createElement(Bd,{key:e.id,timelineItem:e,deleteByIds:n})})))},Xd=function(e){var t=e.isHistoryView,a=e.timelineData,n=e.cardType,r=e.loadMore,i=e.deleteByIds,o="ShowAllDialog.loadMore.".concat(n),c="Overview.ShowAllDialogContent.".concat(n);ta(c);var s="privacy.overview.show-all-dialog.".concat(n),l=vs().overviewContent.overviewActivities.drawers.listItems,d=vs().overviewContent.overviewActivities.dialogs,u=ma(),m=(0,Ee.useState)(null),p=(0,Fn.A)(m,2),g=p[0],h=p[1],f=(0,Ee.useState)(!1),v=(0,Fn.A)(f,2),y=v[0],E=v[1];(0,Ee.useEffect)((function(){h(document.getElementById(Qs))}),[]),(0,Ee.useEffect)((function(){t&&g&&(g.scrollTop=0)}),[t,g]);var w=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,E(!0),u({name:o,status:"updating"}),e.next=5,r();case 5:u({name:o,status:"finished"}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),u({name:o,status:"update-failed",error:e.t0});case 11:return e.prev=11,E(!1),e.finish(11);case 14:case"end":return e.stop()}}),e,null,[[0,8,11,14]])}))),[o,u,r]);(0,Ee.useEffect)((function(){var e=!!a.state,t=function(){g&&(g.scrollTop+g.offsetHeight+5>=g.scrollHeight&&!y&&e&&w())};return e?null===g||void 0===g||g.addEventListener("scroll",t):null===g||void 0===g||g.removeEventListener("scroll",t),g&&e&&g.scrollHeight<=g.clientHeight&&!y&&w(),function(){null===g||void 0===g||g.removeEventListener("scroll",t)}}),[g,y,a,w]);var b=function(e,t){for(var a={},n=0,r=Object.values(e);n<r.length;n++){var i=r[n],o=wd(i.timestamp,i.aggregationMethod,t,!0);a.hasOwnProperty(o)?a[o].push(i):a[o]=[i]}return a}(a.items,l),x=Object.entries(b);return we().createElement(we().Fragment,null,we().createElement(gn.Stack,{horizontal:!1},x.map((function(e){var t=(0,Fn.A)(e,2),a=t[0],r=t[1];return function(e,t,a,n){var r={key:t,date:t,timelineItemsAtDate:a,deleteByIds:n};switch(e){case"usage":return we().createElement(Qd,r);case"location":return we().createElement(zd,r);case"search":return we().createElement(jd,r);case"browse":return we().createElement(Wd,r);default:throw new Error("Dialog list requested for an unsupported data type")}}(n,a,r,i)}))),we().createElement(ha,{operationData:{operationName:o,componentName:c,defaultState:"finished"},finishedView:we().createElement(we().Fragment,null),updatingView:we().createElement(gn.List,{isAlwaysExpanded:!0},Array.from({length:5},(function(e,t){return we().createElement(gn.ListItem,{key:t,"aria-label":d.loadMoreAriaLabel,columns:[we().createElement(gn.MediaShimmerColumn,{mediaShimmerSize:16,shimmerLineProps:[{}]}),we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),updateFailedView:we().createElement(gn.List,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:we().createElement(gn.Stack,{horizontal:!0,childrenGap:"12px"},we().createElement(gn.Icon,{iconName:"Info",size:"16px",color:"errorIcon"}),we().createElement(gn.RichText,{textWithTokens:"".concat(d.loadMoreError," {tryAgainCta}"),tokensAndValues:{tryAgainCta:we().createElement(gn.NoHrefLink,{"aria-label":d.loadMoreError,"data-bi-id":"".concat(s,".load-more.try-again"),onClick:w},d.tryAgain)}})),isAlwaysExpanded:!0})}))},Yd=function(e,t){var a=(0,Ee.useState)(e),n=(0,Fn.A)(a,2),r=n[0],i=n[1];return(0,Ee.useEffect)((function(){var a=setTimeout((function(){i(e)}),t);return function(){clearTimeout(a)}}),[e,t]),r},$d=function(e){var t,a=e.showAllDialogState,n=e.setshowAllDialogState,r=e.onClearAllClick,i=e.historyViewData,o=e.deleteHistoryViewDataByIds,c=e.recurringDeletes,s=e.onRecurringDeleteSuccessCallback,l=e.child,d=e.initialSearchTerm,u=e.totalCount,m="timeline.show-all-dialog-v2.".concat(a.dialogDataType);ta(m);var p="ShowAllDialog.SearchFilter.".concat(a.dialogDataType),g="ShowAllDialog.SearchBulkDelete.".concat(a.dialogDataType),h="".concat(El,".dialog.").concat(a.dialogDataType),f="cardTypeFilter_".concat(a.dialogDataType),v=(0,Zt.useHistory)(),y=ma(),E=(0,gn.useDialogController)(),w=Bn(),b=vs(),x=b.overviewContent.overviewActivities.dialogs,k=x[a.dialogDataType].showAllTitle,C=qs(u,b.sharedContent,w.language),T=Le(b.sharedContent.clearAllText,C),S=x.manageScheduledDelete,A=(0,Ee.useReducer)(ld,{state:"",items:i.items}),P=(0,Fn.A)(A,2),D=P[0],I=P[1],_=(0,Ee.useState)(null!==d&&void 0!==d?d:""),L=(0,Fn.A)(_,2),R=L[0],N=L[1],M=Yd(R,500),B=(0,Ee.useState)(!0),O=(0,Fn.A)(B,2),F=O[0],V=O[1],U=(0,Ee.useState)(!1),H=(0,Fn.A)(U,2),G=H[0],q=H[1],W=(0,Ee.useState)(!1),z=(0,Fn.A)(W,2),j=z[0],Q=z[1],X=c&&c[f],Y=null===(t=w.selfRights)||void 0===t?void 0:t.canManage,$=!l,K=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Q(!0),y({name:p,status:"updating"}),e.next=5,zl("",{startTime:el,types:[f],searchTerm:M},null===l||void 0===l?void 0:l.authToken);case 5:t=e.sent,I({type:$s,firstLoadResult:t}),V(!0),q(!1),y({name:p,status:"finished"}),e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),q(!0),y({name:p,status:"failed",error:e.t0});case 16:return e.prev=16,Q(!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,f,p]),J=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Q(!0),e.next=4,zl(D.state,{startTime:el,types:[f],searchTerm:M},null===l||void 0===l?void 0:l.authToken);case 4:t=e.sent,I({type:Ks,loadMoreResult:t});case 6:return e.prev=6,Q(!1),e.finish(6);case 9:case"end":return e.stop()}}),e,null,[[0,,6,9]])}))),[f,null===l||void 0===l?void 0:l.authToken,M,D.state]),Z=(0,Ee.useCallback)(function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,Q(!0),e.next=4,o(t);case 4:setTimeout((function(){I({type:Js,idsToDelete:t})}));case 5:return e.prev=5,setTimeout((function(){Q(!1)})),e.finish(5);case 8:case"end":return e.stop()}}),e,null,[[0,,5,8]])})));return function(t){return e.apply(this,arguments)}}(),[o]);(0,Ee.useEffect)((function(){K()}),[M,K]);var ee=Ys.includes(a.dialogDataType),te=x[a.dialogDataType].searchBoxAriaLabel,ae=Object.keys(D.items).length,ne=0===ae,re=!!!D.state&&ne,ie=j||ne,oe=F&&re||G,ce=F&&""!==M,se=Le(x.clearList,{numOfItems:ae}),le=Le(ae<=1?x.clearListAriaLabelSingular:x.clearListAriaLabel,{numOfItems:ae}),de=(0,Ul.A)({},rd,a.dialogDataType),ue=function(){n({showDialog:!1,dialogDataType:null})},me=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t=Object.keys(D.items),nd(kl,!(null===l||void 0===l||!l.authToken)),y({name:g,status:"updating"}),e.next=6,Z(t);case 6:setTimeout((function(){_t({data:de}),y({name:g,status:"finished"})})),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),_t({error:e.t0,data:de}),y({name:g,status:"failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,9]])}))),[Z,y,g,D.items]),pe=we().createElement(gn.NoHrefLink,{"aria-label":ce?le:T,"data-bi-id":"".concat(h,ce?".clear-list":".clear-all"),onClick:ce?me:function(){r(a.dialogDataType)},disabled:ie},ce?se:T),ge=we().createElement(gn.NoHrefLink,{"aria-label":S,"data-bi-id":"".concat(h,".manage-scheduled-delete"),onClick:function(){ue();var e=c[f];Pt({area:w.areaPrefix,scenario:Al,step:"Index",data:{activityType:a.dialogDataType,previousInterval:c,source:"ShowAllDialog"}}),E.openDialog(we().createElement(pd,{filterType:f,variant:"manage",interval:e.interval,status:e.status,onSuccessCallback:s}))}},S),he={isOpen:a.showDialog,title:k,closeButton:{"data-bi-id":"close-button","aria-label":x.closeAriaLabel},searchBoxProps:ee?{"aria-label":te,"data-bi-id":"".concat(h,".search-box"),placeholder:x.searchBoxPlaceholder,onChange:function(e,t){N(t||"")},value:R}:void 0,subtitle:Y&&!oe?{textWithTokens:X?"{clearAllCtaWithManageScheduledDelete}":"{clearAllCta}",tokensAndValues:{clearAllCtaWithManageScheduledDelete:we().createElement(gn.Stack,{horizontal:!0,childrenGap:"16px"},pe,ge),clearAllCta:pe}}:void 0,headerLeftRightPadding:"16px",onDismiss:ue,stickyHeaderFooter:Gd,staticBodyWidth:"968px",contentId:Qs,minBodyHeight:{height:80,unit:"vh"},bodyStyleTemp:qd,dialogFooterProps:{dialogType:"secondary",buttonLeft:$?{onClick:function(){v.push({pathname:al})},text:x.downloadData,"aria-label":x.downloadData,"data-bi-id":"".concat(h,".download-your-data")}:void 0,buttonRight:{onClick:ue,text:x.close,"aria-label":x.closeAriaLabel,"data-bi-id":"".concat(h,".cancel")}}},fe=we().useMemo((function(){return we().createElement(Xd,{isHistoryView:!1,cardType:a.dialogDataType,timelineData:D,loadMore:J,deleteByIds:Z})}),[a.dialogDataType,D,J,Z]),ve=we().createElement(gn.List,{roundedCorners:!1,listItemBackgroundColor:"transparent",header:we().createElement(gn.Stack,{horizontal:!0,childrenGap:"12px"},we().createElement(gn.Icon,{iconName:"Blocked",size:"16px"}),we().createElement(gn.RichText,{textWithTokens:x.noResultMessage,tokensAndValues:{searchTerm:we().createElement(gn.Text,{weightOverride:"bold"},M)}})),isAlwaysExpanded:!0}),ye=we().createElement(gn.List,{isAlwaysExpanded:!0},Array.from({length:11},(function(e,t){return we().createElement(gn.ListItem,{key:t,"aria-label":x.loadMoreAriaLabel,columns:[we().createElement(gn.MediaShimmerColumn,{mediaShimmerSize:16,shimmerLineProps:[{}]}),we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{}]})],variant:"EightFour"})}))),be=we().createElement(gn.List,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:we().createElement(gn.Stack,{horizontal:!0,childrenGap:"12px"},we().createElement(gn.Icon,{iconName:"Info",size:"16px",color:"errorIcon"}),we().createElement(gn.RichText,{textWithTokens:x.newSearchErrorMessage,tokensAndValues:{tryAgainCta:we().createElement(gn.NoHrefLink,{"aria-label":x.newSearchTryAgainAriaLabel,"data-bi-id":"".concat(h,".new-search.try-again"),onClick:K},x.tryAgain)}})),isAlwaysExpanded:!0}),xe=we().createElement(gn.Stack,{width:"100%",height:"100%",verticalAlign:"center",horizontalAlign:"center"},we().createElement(gn.Spinner,{spinnerSize:3,"aria-label":x.clearingListMessage,label:x.clearingListMessage,labelPosition:"bottom"})),ke=we().createElement(we().Fragment,null,we().createElement(gn.List,{roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:we().createElement(gn.Stack,{horizontal:!0,childrenGap:"12px"},we().createElement(gn.Icon,{iconName:"Info",size:"16px",color:"errorIcon"}),we().createElement(gn.RichText,{textWithTokens:x.clearListErrorMessage,tokensAndValues:{tryAgainCta:we().createElement(gn.NoHrefLink,{"aria-label":x.clearListTryAgainAriaLabel,"data-bi-id":"".concat(h,".clear-list.try-again"),onClick:me},x.tryAgain)}})),isAlwaysExpanded:!0}),fe),Ce=we().createElement(ha,{operationData:{operationName:p,componentName:m,defaultState:"finished"},updatingView:ye,failedView:be,finishedView:we().createElement(ha,{operationData:{operationName:g,componentName:m,defaultState:"finished"},updatingView:xe,failedView:ke,finishedView:re?ve:fe})});return a.dialogDataType?we().createElement(gn.Dialog,he,Ce):null},Kd="timeline-drawer-v2",Jd=(0,Ee.forwardRef)((function(e,t){var a=e.dataType,n=e.child,r="".concat(Kd,".").concat(a);ta(r);var i,o,c="".concat("ActivityDrawers.getTimelineHistory",".").concat(a),s="cardTypeFilter_".concat(a),l=(0,Ul.A)({},rd,a),d=Bn(),u=ma(),m=(0,gn.useDialogController)(),p=vs(),g=p.overviewContent.recurringDelete,h=p.locationContent.drawer,f=p.webSearchContent.webDrawer,v=p.webSearchContent.searchDrawer,y=p.appsServicesContent.usageDrawer,E=p.appsServicesContent.performanceDrawer,w=p.sharedContent,b=(0,Ee.useReducer)(ld,{state:"",items:{}}),x=(0,Fn.A)(b,2),k=x[0],C=x[1],T=(0,Ee.useState)({showDialog:!1,dialogDataType:null}),S=(0,Fn.A)(T,2),A=S[0],P=S[1],D=(0,Ee.useState)({showDialog:!1,dialogDataType:null}),I=(0,Fn.A)(D,2),_=I[0],L=I[1],R=(0,Ee.useState)(!1),N=(0,Fn.A)(R,2),M=N[0],B=N[1],O=(0,Ee.useState)(!1),F=(0,Fn.A)(O,2),V=F[0],U=F[1],H=(0,Ee.useState)(""),G=(0,Fn.A)(H,2),q=G[0],W=G[1],z=(0,Ee.useState)(""),j=(0,Fn.A)(z,2),Q=j[0],X=j[1],Y=(0,Ee.useState)(!1),$=(0,Fn.A)(Y,2),K=$[0],J=$[1],Z=(0,Ee.useState)(!1),ee=(0,Fn.A)(Z,2),te=ee[0],ae=ee[1],ne=Yd(q,500),re=(0,Ee.useState)(-1),ie=(0,Fn.A)(re,2),oe=ie[0],ce=ie[1],se=(0,Ee.useState)({}),le=(0,Fn.A)(se,2),de=le[0],ue=le[1],me=(0,Ee.useRef)(null),pe=(0,Ee.useState)(!1),ge=(0,Fn.A)(pe,2),he=ge[0],fe=ge[1],ve=!n,ye="".concat(El,".").concat(a),be={};switch(a){case"location":i=h.drawerArea;break;case"browse":i=f.drawerArea,o=f.highlightArea,be["web-learnMoreLink"]=we().createElement(gn.Hyperlink,{"aria-label":o.tokens.learnToken,"data-bi-id":"".concat(ye,".learn-More-link"),href:o.links.learnLink,target:"_blank"},o.tokens.learnToken);break;case"search":i=v.drawerArea,o=v.highlightArea,be["search-viewChangeLink"]=we().createElement(gn.Hyperlink,{"aria-label":o.tokens.viewChangeToken,"data-bi-id":"".concat(ye,".view-change-link"),href:o.links.viewChangeLink,target:"_blank"},o.tokens.viewChangeToken),be["search-learnMoreLink"]=we().createElement(gn.Hyperlink,{"aria-label":o.tokens.learnToken,"data-bi-id":"".concat(ye,".learn-More-link"),href:o.links.learnLink,target:"_blank"},o.tokens.learnToken);break;case"usage":i=y.drawerArea,o=y.highlightArea;break;case"performance":i=E.drawerArea,o=E.highlightArea;break;default:throw new Error("Drawer requested for unsupported data type")}var xe,ke=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t,r,i,o=arguments;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"",J(!0),r=-1,e.prev=3,e.next=6,jl(s,null===n||void 0===n?void 0:n.authToken);case 6:r=e.sent,ce(r),e.next=12;break;case 10:e.prev=10,e.t0=e.catch(3);case 12:if(i={state:"",items:[]},0===r&&"search"!==a){e.next=17;break}return e.next=16,zl("",{startTime:el,types:[s],searchTerm:""!==t?t:ne},null===n||void 0===n?void 0:n.authToken);case 16:i=e.sent;case 17:i.items.length<=5?ce(i.items.length):0===r&&i.items.length>0&&ce(-1),J(!1),C({type:$s,firstLoadResult:i}),""!==ne&&ae(!0);case 21:case"end":return e.stop()}}),e,null,[[3,10]])}))),[null===n||void 0===n?void 0:n.authToken,s,ne]),Ce=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zl(k.state,{startTime:el,types:[s],searchTerm:ne},null===n||void 0===n?void 0:n.authToken);case 2:t=e.sent,C({type:Ks,loadMoreResult:t});case 4:case"end":return e.stop()}}),e)}))),[s,k.state,null===n||void 0===n?void 0:n.authToken,ne]),Te=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,jl(s,null===n||void 0===n?void 0:n.authToken);case 3:t=e.sent,ce(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,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Yl(null===n||void 0===n?void 0:n.authToken);case 3:t=e.sent,ue(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]),Ae=(0,Ee.useCallback)(function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xl(t,s,null===n||void 0===n?void 0:n.authToken);case 2:return e.next=4,Te();case 4:setTimeout((function(){C({type:Js,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,Te]),Pe=(0,Ee.useCallback)(function(){var e=(0,ys.A)(ws().mark((function e(t,a,r){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,u({name:c,status:"updating"}),J(!0),fe(!1),nd(kl,!(null===n||void 0===n||!n.authToken)),e.next=7,Xl(t,s,null===n||void 0===n?void 0:n.authToken);case 7:if(!r){e.next=12;break}return e.next=10,ke(a);case 10:e.next=14;break;case 12:return e.next=14,Te();case 14:J(!1),setTimeout((function(){C({type:Js,idsToDelete:t}),_t({data:l}),u({name:c,status:"finished"})})),e.next=23;break;case 18:e.prev=18,e.t0=e.catch(0),_t({error:e.t0,data:l}),fe(!0),u({name:c,status:"failed",error:e.t0});case 23:case"end":return e.stop()}}),e,null,[[0,18]])})));return function(t,a,n){return e.apply(this,arguments)}}(),[s,null===n||void 0===n?void 0:n.authToken,Te]),De={message:w.tryAgainLongText,ariaMessage:w.tryAgainLongText,closeButton:{"aria-label":w.close,"data-bi-id":"".concat(ye,".bulk-delete-failed.close"),id:"".concat(ye,".bulk-delete-failed.close")},iconName:"Error",notificationBarType:"error"};he&&(null===(xe=me.current)||void 0===xe||xe.showNotificationBar(),fe(!1));var Ie=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ql([s],null===n||void 0===n?void 0:n.authToken);case 2:return e.next=4,Te();case 4:C({type:Zs});case 5:case"end":return e.stop()}}),e)}))),[s,null===n||void 0===n?void 0:n.authToken,Te]),_e=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,B(!0),u({name:c,status:"updating"}),e.next=5,ke();case 5:u({name:c,status:"finished"}),U(!1),e.next=14;break;case 9:e.prev=9,e.t0=e.catch(0),u({name:c,status:"failed",error:e.t0}),J(!1),U(!0);case 14:return e.prev=14,B(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,9,14,17]])})));return function(){return e.apply(this,arguments)}}(),Re=function(e,t){if(!e&&!t)throw Error("TimelineDrawer: Must provide recurringDelete data if recurringDelete is not turned off");ue({});var a=de;e?delete a[s]:a[t.activityType]=t,ue(a)};(0,Ee.useImperativeHandle)(t,(function(){return{flushData:function(){ce(0),C({type:Zs})}}})),(0,Ee.useEffect)((function(){var e=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"performance"!==a){e.next=4;break}return u({name:c,status:"finished"}),e.abrupt("return");case 4:return u({name:c,status:"first-load"}),e.next=7,Promise.all([ke(),Se()]);case 7:u({name:c,status:"finished"}),U(!1),e.next=16;break;case 11:e.prev=11,e.t0=e.catch(0),u({name:c,status:"failed",error:e.t0}),J(!1),U(!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,a,u,c,ne]);var Ne,Me=Object.values(k.items),Be=Me.slice(0,5),Oe=gd(a,{location:"POI",browse:"Globe",search:"Search",usage:"BoardActivityFeed",performance:"BoardActivityFeed"}[a],i.header,i.subtitle,oe,i.dataCount,!n);if("location"!==a){var Fe=hd(a,be,o);Ne=we().createElement(gn.Feature,Object.assign({key:a},Fe))}(0,Ee.useEffect)((function(){var e;Q&&(null===(e=document.getElementById(Q))||void 0===e||e.focus())}));var Ve=""===ne?oe:Object.keys(k.items).length>5?5:Object.keys(k.items).length,Ue=function(e,t,a,n,r,i,o,c,s,l,d,u){var m,p=!(arguments.length>12&&void 0!==arguments[12])||arguments[12],g=vs(),h=Bn(),f=(0,Zt.useHistory)(),v=(0,gn.useViewport)(),y=null===(m=h.selfRights)||void 0===m?void 0:m.canManage,E=g.sharedContent,w=g.webSearchContent.pageContent,b=g.appsServicesContent,x="".concat(El,".").concat(n),k=""!==u,C=!(!e.state||""===e.state),T="s"===v,S="",A="";switch(n){case"location":S=g.locationContent.drawer.detailsArea.text.showMoreAriaLabel,A=g.locationContent.drawer.detailsArea.text.listHeader;break;case"browse":S=w.webShowMoreAriaLabel,A=w.webListHeader;break;case"search":S=w.searchShowMoreAriaLabel,A=w.searchListHeader;break;case"usage":A=w.searchListHeader;break;case"performance":return{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",footer:y?{leftLinks:[],rightLink:{onClick:function(){return i(n)},"data-bi-id":"".concat(x,".clear-all"),"aria-label":b.performanceDrawer.detailsArea.text.clearAll,id:"".concat(x,".clear-all"),children:b.performanceDrawer.detailsArea.text.clearAll},shadow:!1,shouldRightLinkRightAligned:!0,type:"twocolumn"}:void 0}}var P,D=Object.values(e.items),I=D.length,_=D.slice(0,5).map((function(e){return e.id})),L=qs(a,E,h.language),R=we().createElement(Ud,{prefix:x,sharedContent:E,isRetrying:d,onRetryClick:c}),N=we().createElement(Vd,{prefix:x,sharedContent:E,header:A,openConfirmationDialog:i,dataType:n,showDownload:p,onSearchChange:o,searchValue:u,isSmallViewport:T,hideSearchBox:"location"===n});P=l?u?we().createElement(gn.Stack,{childrenGap:10},R,N):R:k&&0===D.length?we().createElement(gn.Stack,{childrenGap:10},N,we().createElement(Fd,{prefix:x,sharedContent:E})):0!==t||k?N:we().createElement(Fd,{prefix:x,sharedContent:E});var M="".concat(x,k?".show-more-results":".show-more-activities"),B=k?e.state&&""!==e.state?Le(E.showMoreResultsWithCount,I-5):Le(E.showMoreResultsWithCount2,I-5):E.showMoreText,O=[],F=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s(_,u,C);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(I>5||e.state&&""!==e.state)&&O.push({onClick:function(){return r(n)},"data-bi-id":M,"aria-label":S,id:M,children:B}),p&&O.push({onClick:function(){f.push("/download-data")},"data-bi-id":"".concat(x,".download-your-data"),"aria-label":E.downloadData,id:"".concat(x,".download-your-data"),children:E.downloadData,href:"/privacy/download-data"});var V=k?Le(E.clearListCtaAriaLabel,L):Le(E.clearAllText,"-1"!==L?L:""),U={onClick:function(){return k?F():i(n)},"data-bi-id":"".concat(x,k?".clear-list":".clear-all"),"aria-label":V,id:"".concat(x,k?".clear-list":".clear-all"),children:V};return{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:P,footer:D.length>=1?y?{type:"twocolumn",leftLinks:O,rightLink:U,shouldRightLinkRightAligned:!0,shadow:!1}:{links:O,shadow:!1}:void 0}}(k,oe,Ve,a,(function(e){yt(),P({showDialog:!0,dialogDataType:e})}),(function(e){vt(Cl),nd(xl,!(null===n||void 0===n||!n.authToken)),L({showDialog:!0,dialogDataType:e})}),(function(e){W(e),X("".concat(ye,"-search-box")),J(!0),ae(!1)}),_e,Pe,V,M,q,ve),He=we().createElement(gn.List,Object.assign({isAlwaysExpanded:!1,isTabbable:!0,listRole:"list",key:a},Ue),K?Array.from({length:5},(function(e,t){return we().createElement(gn.ListItem,{listItemRole:"listitem",key:t,columns:[we().createElement(gn.MediaShimmerColumn,{mediaShimmerSize:16,shimmerLineProps:[{}]}),we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{}]})],variant:"EightFour"})})):Be.map((function(e){return function(e,t,a){switch(e){case"usage":return we().createElement(Bd,{key:t.id,timelineItem:t,deleteByIds:a});case"location":return we().createElement(Pd,{key:t.id,timelineItem:t,deleteByIds:a});case"search":return we().createElement(Id,{key:t.id,timelineItem:t,deleteByIds:a});case"browse":return we().createElement(kd,{key:t.id,timelineItem:t,deleteByIds:a});default:throw new Error("List item requested for an unsupported data type")}}(a,e,Ae)}))),Ge=we().createElement(gn.List,Object.assign({isAlwaysExpanded:!0},Ue),we().createElement(gn.ListItem,{key:"web-search-line-item",id:"web-search-line-item",variant:"Twelve",columns:[we().createElement(gn.TextColumn,{textElements:[{children:we().createElement(gn.RichText,{textWithTokens:w.noResultsFound,tokensAndValues:{0:we().createElement(gn.Text,{weightOverride:"bold"},ne)}}),variant:"bodyPrimaryText"}]})]})),qe=[];if(de&&de[s]){var We=de[s],ze="info",je="";switch(We.status){case"active":je=Le(g.status.active,[md[We.interval],(0,gn.toShortMonthDayYear)(We.nextDelete)]);break;case"paused":ze="warning",je=We.lastSucceededDelete?Le(g.status.paused,(0,gn.toShortMonthDayYear)(We.lastSucceededDelete)):g.status.pausedWithNoLastSucceededDelete;break;case"failed":ze="warning",je=Le(g.status.failed,(0,gn.toShortMonthDayYear)(We.nextDelete))}qe=qe.concat(we().createElement(gn.MessageBar,{key:"manage-recurring-delete-".concat(a),messageBarType:ze,messageContent:je,actionProps:{actionType:"noHrefLink",children:g.status.manageActionText,"data-bi-id":"manage-recurring-delete-".concat(a),"aria-label":g.status.manageLinkAriaLabel,onClick:function(){return e=We.interval,t=We.status,Pt({area:d.areaPrefix,scenario:Al,step:"Index",data:{activityType:a,previousInterval:e,source:"TimelineDrawer"}}),void m.openDialog(we().createElement(pd,{filterType:s,variant:"manage",interval:e,status:t,onSuccessCallback:Re}));var e,t}}}))}qe=oe>0&&0===Me.length&&""!==ne?qe.concat(Ge):qe.concat(He);var Qe=we().createElement(gn.Stack,{id:"".concat(a,"-drawer")},A.showDialog?we().createElement($d,{showAllDialogState:A,setshowAllDialogState:P,onClearAllClick:function(e){vt(Cl),nd(xl,!(null===n||void 0===n||!n.authToken)),L({showDialog:!0,dialogDataType:e}),P((0,On.A)((0,On.A)({},A),{},{showDialog:!1}))},historyViewData:k,loadMoreHistoryViewData:Ce,deleteHistoryViewDataByIds:Ae,recurringDeletes:de,onRecurringDeleteSuccessCallback:Re,child:n,initialSearchTerm:ne,totalCount:oe}):null,_.showDialog?we().createElement(yd,{confirmationDialogState:_,setConfirmationDialogState:L,onClearAllCancel:function(){vt(at),A.dialogDataType&&P((0,On.A)((0,On.A)({},A),{},{showDialog:!0})),L({showDialog:!1,dialogDataType:null}),It({data:l})},deleteAll:Ie,recurringDeletes:de,onRecurringDeleteSuccessCallback:Re}):null);return we().createElement(gn.Stack,{id:r},we().createElement(gn.ExpandedFeatureGroup,{key:a,drawerAreaProps:Oe,highlightArea:Ne,detailsArea:qe}),""!==ne&&!0===te?we().createElement(gn.Announced,{ariaLive:"assertive",message:"".concat(w.searchComplete," ").concat(Me.length)}):null,we().createElement(gn.ShimmerProgressView,{operationData:{componentName:r,operationName:c},firstLoadView:Qe,finishedView:Qe}),we().createElement(gn.NotificationBar,Object.assign({ref:me},De)))})),Zd="".concat(Rs,"/signedout/third-party-sharing-preference"),eu=function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,As(Zd,"".concat(Ms,".UPDATETHIRDPARTYSHARINGPREFERENCE"),{muid:e,optOut:t})];case 1:return[2,a.sent()]}}))}))},tu=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,As("".concat(Rs,"/user/settings/a"),"".concat(Ms,".UPDATEUSERSETTINGSADVERTISING"),{etag:"-",enabled:e})];case 1:return[2,t.sent()]}}))}))},au=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,As("".concat(Rs,"/user/settings/t"),"".concat(Ms,".UPDATEUSERSETTINGSTHIRDPARTYSHARING"),{etag:"-",enabled:e})];case 1:return[2,t.sent()]}}))}))},nu=function(e,t){Ft();var a=window.location,n=Ot(),r=encodeURIComponent(n);return"".concat(t,"?operation=").concat(e,"&domain=").concat(a.host,"&protocol=").concat(a.protocol,"&MS-CV=").concat(r)},ru=function(){var e=window.location.href,t="#FAQ",a=window.location.hash;return a?e.replace(a,t):"".concat(e).concat(t)},iu=function(){"1"===Ha(Rl,!1)&&(qa(Rl),function(){var e=new Date(Date.now());e.setDate(e.getDate()+390),Ga({name:Nl,value:"1",requiresConsent:!1,expiresOn:e,domain:window.location.hostname.split("account").pop()})}())},ou="".concat(Rs,"/user/interests"),cu="UserInterests",su="UserInterestsByType",lu=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t,a;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return t="interestType=".concat(encodeURIComponent(e)),a="".concat(Rs,"/user/interests-by-type?").concat(t),[4,Is(!1,su,a,"".concat(Ms,".GETUSERINTERESTSBYTYPE"))];case 1:return[2,n.sent()]}}))}))},du=function(e,t,a){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return _s("topic"===a?su:cu),[4,As(ou,"".concat(Ms,".UPDATEUSERINTERESTS"),{etag:"-",interestIds:e,isInterested:t,interestType:a})];case 1:return[2,n.sent()]}}))}))},uu={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"},mu="interests.ads-list",pu=function(){var e="InterestBasedAdsList.getUserInterests",t="InterestBasedAdsList.updateUserInterests",a=vs().adSettingsContent.interestList,r=a.title,i=a.description,o=a.current,c=a.removed,s=(0,Ee.useState)({}),l=(0,Fn.A)(s,2),d=l[0],u=l[1],m={},p=(0,Ee.useState)({}),g=(0,Fn.A)(p,2),h=g[0],f=g[1],v=(0,Ee.useState)({}),y=(0,Fn.A)(v,2),E=y[0],w=y[1],b=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Is(!1,cu,ou,"".concat(Ms,".GETUSERINTERESTS"))];case 1:return[2,e.sent()]}}))}));case 2:t=e.sent,m={},t.interests&&t.interests.forEach((function(e){m[e.id]=e})),u(m);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),x=function(){var e={},t={};Object.values(m).forEach((function(a){a.isTurnedOff?e[a.groupName]?e[a.groupName].push(a):e[a.groupName]=[a]:t[a.groupName]?t[a.groupName].push(a):t[a.groupName]=[a]})),w(e),f(t)},k=function(){var e=(0,ys.A)(ws().mark((function e(t){var a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,du(t.id,t.isTurnedOff,t.interestType);case 2:"domain"===t.interestType?delete(m=d)[t.id]:(a={id:t.id,name:t.name,isTurnedOff:!t.isTurnedOff,groupId:t.groupId,groupName:t.groupName,interestType:t.interestType},(m=d)[t.id]=a);case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=ma();Se((0,ys.A)(ws().mark((function t(){return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,C({name:e,status:"first-load"}),t.next=4,b();case 4:C({name:e,status:"finished"}),x(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),C({name:e,status:"failed",error:t.t0});case 11:case"end":return t.stop()}}),t,null,[[0,8]])}))));var T=function(e){return(0,ys.A)(ws().mark((function a(){return ws().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,C({name:"".concat(t,".").concat(e.id),status:"updating"}),a.next=4,k(e);case 4:C({name:"".concat(t,".").concat(e.id),status:"finished"}),x(),a.next=11;break;case 8:a.prev=8,a.t0=a.catch(0),C({name:"".concat(t,".").concat(e.id),status:"update-failed",error:a.t0});case 11:case"end":return a.stop()}}),a,null,[[0,8]])})))},S=function(e,n){var r=n?o:c,i=Object.entries(e);return 0===i.length?null:we().createElement(gn.List,{shadow:!0,roundedCorners:!0,header:we().createElement(gn.Heading,{tag:"h2",variant:"headerText"},r),initialListLength:5,showMoreButtonProps:{children:a.seeAll,"data-bi-id":"".concat(ul,".see-all"),"aria-label":"".concat(a.seeAll," ").concat(r)},showLessButtonProps:{children:a.seeLess,"data-bi-id":"".concat(ul,".see-less"),"aria-label":"".concat(a.seeLess," ").concat(r)}},i.sort().map((function(e){var i=(0,Fn.A)(e,2),o=i[0],c=i[1],s={size:"md",image:{imageType:"icon",iconName:uu[c[0].groupId]||uu.Default},padding:"0px",height:"24px"},l={kind:"text",children:o,nowrap:!1,"aria-label":"".concat(r," ").concat(o)},d={"data-bi-id":"".concat(ul,".choice-summary"),"aria-label":"".concat(o)};return we().createElement(gn.Drawer,{drawerContentPadding:"16px 16px 16px 42px",borderRadius:"0px",drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{media:s,title:l}),slots:6},{column:we().createElement(gn.DrawerHeaderStatus,null,c.length.toString()),slots:6}],totalSlots:12}),isListItem:!0,key:o},we().createElement(gn.Stack,{horizontal:!0,wrap:!0},we().createElement(gn.ChoiceSummary,Object.assign({operationData:{progressViewOperationData:{componentName:mu,operationName:t,defaultState:"finished"},errorMessage:a.tagError},key:o,options:c.sort().map((function(e){return{label:e.name,onClick:T(e),"data-bi-id":"".concat(ul,".interest-").concat(n?"remove":"add"),"aria-label":"".concat(a.remove," ").concat(e.name),id:e.id}}))},d))))})))};return we().createElement(gn.ShimmerProgressView,{operationData:{componentName:mu,operationName:e},firstLoadView:we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.List,{isAlwaysExpanded:!0,header:we().createElement(gn.ShimmerLine,{height:20,width:"20%"})},we().createElement(gn.DetailsFeedListItemShimmer,null),we().createElement(gn.DetailsFeedListItemShimmer,null),we().createElement(gn.DetailsFeedListItemShimmer,null),we().createElement(gn.DetailsFeedListItemShimmer,null),we().createElement(gn.DetailsFeedListItemShimmer,null)),we().createElement(gn.List,{isAlwaysExpanded:!0,header:we().createElement(gn.ShimmerLine,{height:20,width:"20%"})},we().createElement(gn.DetailsFeedListItemShimmer,null),we().createElement(gn.DetailsFeedListItemShimmer,null),we().createElement(gn.DetailsFeedListItemShimmer,null))),finishedView:0===Object.keys(d).length?we().createElement(gn.Stack,{"data-testid":"No Interests"},we().createElement(gn.Heading,{tag:"h2",variant:"paneTitle"},a.noInterests.header),we().createElement(gn.Text,null,a.noInterests.text)):we().createElement(gn.Stack,null,we().createElement(gn.Stack,{childrenGap:"5px",padding:"40px 0px 30px 0px"},we().createElement(gn.Heading,{tag:"h2",variant:"paneTitle"},r),we().createElement(gn.Text,null,i)),we().createElement(gn.Stack,{childrenGap:"20px"},S(h,!0),S(E,!1))),failedView:we().createElement(gn.ErrorIllustration,{"data-testid":"getUserInterests-failed",correlationVector:Ot(),errorMessage:a.listErrorMessage,imageSrc:a.listErrorImage.src})})},gu="interests.ads.v2",hu=function(e){var t=e.signedIn,a="InterestBasedAdsV2.userAdSettings",r="InterestBasedAdsV2.thirdPartyAdsToggle",i="third-party-toggle-div",o="35px",c=Bn(),s=c.choiceApiConfig.cookieEndpoint,l=c.choiceApiConfig.choiceEndpoint,d=c.choiceApiConfig.muidCookieEndpoint,u="https://ib.adnxs.com/optout",m="https://ib.adnxs.com/optin",p=t&&"us"===c.msaCountryCode.toLowerCase(),g=t?ul:gl,h=vs().adSettingsContent,f=h.interestChoice,v=h.signedInPOContent,y="".concat(v.descriptionPOLineOne,"{br} {br}").concat(v.descriptionPOLineTwo),E="".concat(h.signedOutPOContent.descriptionPOLineOne,"{br} {br}").concat(h.signedOutPOContent.descriptionPOLineTwo),w=t?y:E,b=h.thirdPartyAds,x=b.pageTitle,k=b.pageDescription,C=b.tokens,T=h.signInRichText,S=h.toggle,A=h.dsaContent,P=c.dsaParameters&&c.dsaParameters.params,D=ru(),I={link:we().createElement(gn.Hyperlink,{"data-bi-id":"".concat(g,".interest-choice-link"),"aria-label":f.labels.link,href:f.link,target:"_blank"},f.tokens.link),faq:we().createElement(gn.Hyperlink,{"data-bi-id":"".concat(g,".faq-jump-link"),"aria-label":f.labels.faq,href:D},f.tokens.faq),br:we().createElement("br",null),shareDataForPersonalizedAds:we().createElement(gn.Text,{weightOverride:"bold",variant:"metadataText"},C.shareDataForPersonalizedAds)},_=c.signInLink||"https://".concat(window.location.hostname,"/auth/complete-signin?ru=").concat(window.location.href),L=nu("thirdparty",s),R=(0,Ee.useState)(L),N=(0,Fn.A)(R,2),M=N[0],B=N[1],O=(0,Ee.useState)(""),F=(0,Fn.A)(O,2),V=F[0],U=F[1],H=(0,Ee.useState)(""),G=(0,Fn.A)(H,2),q=G[0],W=G[1],z=(0,Ee.useState)(""),j=(0,Fn.A)(z,2),Q=j[0],X=j[1],Y=(0,Ee.useState)(""),$=(0,Fn.A)(Y,2),K=$[0],J=$[1],Z=(0,Ee.useState)(""),ee=(0,Fn.A)(Z,2),te=ee[0],ae=ee[1],ne=(0,Ee.useState)(""),re=(0,Fn.A)(ne,2),ie=re[0],oe=re[1],ce=(0,Ee.useState)(!1),se=(0,Fn.A)(ce,2),le=se[0],de=se[1],ue=(0,Ee.useState)(!1),me=(0,Fn.A)(ue,2),pe=me[0],ge=me[1],he=(0,Ee.useState)({adsChecked:!1,thirdPartyAdsChecked:!1,adsDisabled:!0,thirdPartyAdsDisabled:!0,firstLoad:!0,thirdPartyCookiesEnabled:!0,msaAdsEnabled:!0,msaThirdPartyAdsEnabled:!0}),fe=(0,Fn.A)(he,2),ve=fe[0],ye=fe[1],be=navigator.globalPrivacyControl,xe=na().addRequiredComponent,ke=ma(),Ce=function(){var e=(0,ys.A)(ws().mark((function e(a,n){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!a||!n){e.next=4;break}ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsChecked:!1,msaThirdPartyAdsEnabled:!1,thirdPartyAdsDisabled:!1})})),e.next=16;break;case 4:if(a||n){e.next=9;break}t&&je(od,"true"),ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsChecked:!0,msaThirdPartyAdsEnabled:!0,thirdPartyAdsDisabled:!1})})),e.next=16;break;case 9:if(!a||n){e.next=15;break}return e.next=12,au(!1);case 12:ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsChecked:!1,msaThirdPartyAdsEnabled:!1,thirdPartyAdsDisabled:!1})})),e.next=16;break;case 15:!a&&n&&(W(nu("thirdpartyadsoptout",l)),""===ie&&ge(!0),ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsChecked:!1,msaThirdPartyAdsEnabled:!1,thirdPartyAdsDisabled:!1})})));case 16:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}();Se((0,ys.A)(ws().mark((function e(){var r,o;return ws().wrap((function(e){for(;;)switch(e.prev=e.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||J(e.data)},ke({name:a,status:"first-load",customData:{step:"Initial"}}),!t){e.next=24;break}return e.prev=3,e.next=6,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Is(!1,"UserSettings","".concat(Rs,"/user/settings"),"".concat(Ms,".GETUSERSETTINGS"))];case 1:return[2,e.sent()]}}))}));case 6:if(r=e.sent,!be){e.next=15;break}if(!r.sharingState){e.next=11;break}return e.next=11,au(!1);case 11:ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsDisabled:!0,msaThirdPartyAdsEnabled:!1,msaAdsEnabled:r.advertising})})),ke({name:a,status:"finished",customData:{step:"Initial: Align MSA and Choice complete"}}),e.next=17;break;case 15:ye((function(e){return(0,On.A)((0,On.A)({},e),{},{msaAdsEnabled:r.advertising,msaThirdPartyAdsEnabled:r.sharingState})})),iu();case 17:"true"===new URLSearchParams(window.location.search.toLowerCase()).get("scrolltonewtoggle")&&(null===(o=document.getElementById(i))||void 0===o||o.scrollIntoView()),e.next=24;break;case 20:e.prev=20,e.t0=e.catch(3),window.onmessage=null,ke({name:a,status:"failed",error:e.t0,customData:{step:"Initial: Align MSA and Choice fail"}});case 24:case"end":return e.stop()}}),e,null,[[3,20]])}))));var Te=function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""===ie){e.next=3;break}return e.next=3,eu(ie,t);case 3:W(nu(t?"thirdpartyadsoptout":"thirdpartyadsoptin",l)),ke({name:r,status:"finished",customData:{step:"Update third-party toggle complete"}});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Ae=function(){var e=(0,ys.A)(ws().mark((function e(t){var a,n=arguments;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=n.length>1&&void 0!==n[1]&&n[1],e.prev=1,e.next=4,au(t);case 4:ye((function(e){return(0,On.A)((0,On.A)({},e),{},{msaThirdPartyAdsEnabled:t,thirdPartyAdsChecked:t,thirdPartyAdsDisabled:a})})),e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(1),ke({name:r,status:"update-failed",error:e.t0,customData:{step:"Update third-party toggle fail"}}),a!==ve.thirdPartyAdsDisabled&&ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsDisabled:a})})),e.abrupt("return");case 12:return e.next=14,Te(!t);case 14:case"end":return e.stop()}}),e,null,[[1,7]])})));return function(t){return e.apply(this,arguments)}}(),Pe=function(){var e=(0,ys.A)(ws().mark((function e(){var n,i,o,c;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(ke({name:a,status:"updating",customData:{step:"Update ad settings toggle"}}),!t){e.next=22;break}return e.prev=2,e.next=5,tu(!ve.adsChecked);case 5:ye((function(e){return(0,On.A)((0,On.A)({},e),{},{msaAdsEnabled:!ve.adsChecked})})),e.next=12;break;case 8:return e.prev=8,e.t0=e.catch(2),ke({name:a,status:"update-failed",error:e.t0,customData:{step:"Update ad settings toggle signed in fail"}}),e.abrupt("return");case 12:if(!ve.adsChecked===ve.thirdPartyAdsChecked){e.next=22;break}if(n=!ve.msaThirdPartyAdsEnabled,i=!!ve.adsChecked,be||le){e.next=21;break}return ke({name:r,status:"updating",customData:{step:"Update ad setting toggle signed in complete"}}),e.next=19,Ae(n,i);case 19:e.next=22;break;case 21:le&&ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsDisabled:i})}));case 22:ve.thirdPartyCookiesEnabled?(o=ve.adsChecked?"muidoptout":"muidoptin",c=nu(o,l),B(c),t||Te(ve.adsChecked)):(ye((function(e){return(0,On.A)((0,On.A)({},e),{},{adsChecked:!ve.adsChecked,thirdPartyCookiesEnabled:!1})})),ke({name:a,status:"finished",customData:{step:"Update ad settings toggle complate"}})),p?ve.adsChecked||ve.thirdPartyAdsChecked?X(u):X(m):ve.adsChecked?X(u):X(m);case 24:case"end":return e.stop()}}),e,null,[[2,8]])})));return function(){return e.apply(this,arguments)}}(),De=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ke({name:r,status:"updating",customData:{step:"Update third party toggle start"}}),t=!ve.thirdPartyAdsChecked,e.next=4,Ae(t);case 4:de(!t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ie=(0,Ee.useCallback)((function(){if(!t||ve.msaAdsEnabled)ye((function(e){return(0,On.A)((0,On.A)({},e),{},{adsChecked:!0,adsDisabled:!1,firstLoad:!1})})),je(sd,"true"),ke({name:a,status:"finished",customData:{step:"onCookieOptedIn complete"}});else{var e=nu("muidoptout",l);B(e)}}),[ve,l,ke,t]),_e=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!ve.msaAdsEnabled){e.next=12;break}return e.prev=1,e.next=4,tu(!1);case 4:ye((function(e){return(0,On.A)((0,On.A)({},e),{},{msaAdsEnabled:!1})})),e.next=12;break;case 7:return e.prev=7,e.t0=e.catch(1),window.onmessage=null,ke({name:a,status:"failed",error:e.t0,customData:{step:"onCookieOptedOut failed"}}),e.abrupt("return");case 12:if(!t||!ve.thirdPartyAdsChecked&&!ve.msaThirdPartyAdsEnabled){e.next=15;break}return e.next=15,Ae(!1,!0);case 15:ye((function(e){return(0,On.A)((0,On.A)({},e),{},{adsChecked:!1,adsDisabled:!1,firstLoad:!1,thirdPartyAdsDisabled:!ve.msaThirdPartyAdsEnabled})})),ke({name:a,status:"finished",customData:{step:"onCookieOptedOut finished"}});case 17:case"end":return e.stop()}}),e,null,[[1,7]])}))),[ve,ke,t]),Le=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t,a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"!==Ha(Nl,!1)){e.next=9;break}if(qa(Nl),""===ie){e.next=5;break}return e.next=5,eu(ie,!0);case 5:return t=nu("thirdpartyadsoptout",l),W(t),B(nu("status",l)),e.abrupt("return");case 9:a=!ve.msaThirdPartyAdsEnabled||!ve.msaAdsEnabled,Ce(!1,a),B(nu("status",l));case 12:case"end":return e.stop()}}),e)}))),[ve,l]),Re=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t,a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("1"===Ha(Nl,!1)){e.next=8;break}if(""===ie){e.next=4;break}return e.next=4,eu(ie,!1);case 4:return t=nu("thirdpartyadsoptin",l),W(t),B(nu("status",l)),e.abrupt("return");case 8:a=!ve.msaThirdPartyAdsEnabled||!ve.msaAdsEnabled,Ce(!0,a),ve.msaAdsEnabled||ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsDisabled:!0})})),B(nu("status",l));case 12:case"end":return e.stop()}}),e)}))),[ve]),Ne=(0,Ee.useCallback)((function(){ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsChecked:!0,thirdPartyAdsDisabled:!1,firstLoad:!1})})),ke({name:a,status:"finished",customData:{step:"onThirdPartyAdsCookieOptedIn complate"}})}),[ve,l,ke]),Me=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ge(!1),ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsChecked:!1,thirdPartyAdsDisabled:be||!ve.adsChecked,firstLoad:!1})})),ke({name:a,status:"finished",customData:{step:"onThirdPartyAdsCookieOptedOut complate"}});case 3:case"end":return e.stop()}}),e)}))),[ve,ke]),Be=(0,Ee.useCallback)((function(){be&&""!==ie&&(ve.thirdPartyAdsChecked&&(ke({name:r,status:"updating"}),au(!1),Te(!0)),ye((function(e){return(0,On.A)((0,On.A)({},e),{},{thirdPartyAdsChecked:!1,thirdPartyAdsDisabled:!0})})))}),[ve,be,ie]),Oe=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t,n,r,i;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t="Error occurred when loading URL: ".concat(M),!ve.firstLoad){e.next=7;break}window.onmessage=null,n=new Error("".concat(t," on first load")),ke({name:a,status:"failed",error:n,customData:{step:"First load error"}}),e.next=20;break;case 7:return e.prev=7,e.next=10,tu(!ve.msaAdsEnabled);case 10:ye((function(e){return(0,On.A)((0,On.A)({},e),{},{msaAdsEnabled:!ve.msaAdsEnabled})})),r=Error(t),ke({name:a,status:"update-failed",error:r,customData:{step:"Update ad settings error, graceful recovery"}}),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)),ke({name:a,status:"failed",error:i,customData:{step:"Update ad settings error, no recovery"}});case 20:case"end":return e.stop()}}),e,null,[[7,15]])}))),[ve,ke,M]);(0,Ee.useEffect)((function(){if(K!==te&&"string"===typeof K){if(K.startsWith("Muid")){var e=K.split(":")[1];""!==e&&(oe(e),Be(),pe&&eu(e,!ve.thirdPartyAdsChecked))}switch(K){case"ThirdPartyCookiesEnabled":if(t){var n=nu("muid",d);U(n);var r=nu("thirdpartyadsstatus",l);W(r)}else{var i=nu("status",l);B(i)}ye((function(e){return(0,On.A)((0,On.A)({},e),{},{adsDisabled:!0,thirdPartyCookiesEnabled:!0})}));break;case"ThirdPartyCookiesDisabled":je(cd,"false"),t?(ye((function(e){return(0,On.A)((0,On.A)({},e),{},{adsChecked:ve.msaAdsEnabled,thirdPartyAdsChecked:ve.msaAdsEnabled&&ve.msaThirdPartyAdsEnabled,adsDisabled:!1,thirdPartyAdsDisabled:!ve.msaAdsEnabled,thirdPartyCookiesEnabled:!1})})),je(sd,"".concat(ve.msaAdsEnabled)),ke({name:a,status:"finished",customData:{step:"ThirdPartyCookiesDisabled message, signed in"}})):(ye((function(e){return(0,On.A)((0,On.A)({},e),{},{adsChecked:!1,adsDisabled:!0,thirdPartyCookiesEnabled:!1})})),ke({name:a,status:"finished",customData:{step:"ThirdPartyCookiesDisabled message, signed out"}}));break;case"CookieOptedIn":Ie();break;case"CookieOptedOut":_e();break;case"StatusThirdPartyAdsCookieOptedIn":Le();break;case"StatusThirdPartyAdsCookieOptedOut":Re();break;case"ThirdPartyAdsCookieOptedIn":Ne();break;case"ThirdPartyAdsCookieOptedOut":Me();break;case"Error":Oe()}ae(K)}}),[K,te,ve,t,l,d,ke,Ie,_e,Oe]),(0,Ee.useEffect)((function(){je(cd,"".concat(ve.thirdPartyCookiesEnabled)),je(sd,"".concat(ve.adsChecked)),t&&je(od,"".concat(ve.thirdPartyAdsChecked))}),[ve]);var Fe=function(){return ve.thirdPartyCookiesEnabled?null:we().createElement(we().Fragment,null,we().createElement(gn.Announced,{message:f.thirdPartyCookiesDisabled,ariaLive:"assertive"}),we().createElement(gn.Text,{colorOverride:"error"},f.thirdPartyCookiesDisabled))},Ve=h.thirdPartyAds.toggleErrorRichText.replace("{onOrOff}",ve.adsChecked?"off":"on"),Ue=h.thirdPartyAds.toggleErrorRichText.replace("{onOrOff}",ve.thirdPartyAdsChecked?"off":"on"),He=function(){var e={"aria-label":T.text,"data-bi-id":"".concat(g,".sign-in-link"),href:_,children:T.text};return t?null:we().createElement(gn.RichText,{textWithTokens:T.textWithToken,tokensAndValues:{signIn:we().createElement(gn.Hyperlink,Object.assign({id:"sign-in-link"},e))}})},Ge=[{actionProps:{id:"ad-settings-toggle","aria-label":f.title,checked:ve.adsChecked,"data-bi-id":"".concat(g,".toggle"),kind:"toggle",offText:S.off,onChange:Pe,onText:S.on,disabled:ve.adsDisabled,operationData:{progressViewOperationData:{componentName:gu,operationName:a,defaultState:"finished"},errorCallout:{errorMessage:Ve,errorMessageAriaLabel:Ve,targetOrTriggerButton:{"aria-label":S.calloutAriaLabel,"data-bi-id":"".concat(g,".toggle.error-callout")}}}}}],qe=[{actionProps:{id:"".concat(pl,".toggle"),"aria-label":x,checked:ve.thirdPartyAdsChecked,"data-bi-id":"".concat(pl,".toggle"),kind:"toggle",offText:S.off,onChange:De,onText:S.on,disabled:!!be||ve.thirdPartyAdsDisabled,operationData:{progressViewOperationData:{componentName:gu,operationName:r,defaultState:"finished"},errorCallout:{errorMessage:Ue,errorMessageAriaLabel:Ue,targetOrTriggerButton:{"aria-label":S.calloutAriaLabel,"data-bi-id":"".concat(pl,".toggle.error-callout")}}}}}],We=[{actionProps:{kind:"toggleShimmer",width:"72px"}}],ze={text:v.titlePO,tag:"h2",variant:"paneTitle"},Qe="dsaDrawer",Xe=[{column:we().createElement(gn.DrawerHeaderTitle,{title:{kind:"text",weightOverride:"semi-bold",children:we().createElement(gn.Text,{variant:"headerText"},A.sectionTitle)},id:"dsaDrawerTitle"}),slots:12}],Ye={onClickToOpen:function(){return Us(!0,Qe,c.areaPrefix)},onClickToClose:function(){return Us(!1,Qe,c.areaPrefix)},defaultExpanded:!0,drawerHeader:we().createElement(gn.DrawerHeader,{totalSlots:12,chevronPosition:"end",columns:Xe}),id:Qe},$e={1:A.bodyText.line1,2:A.bodyText.line2,3:A.bodyText.line3},Ke=[];P&&c.dsaParameters.params.split("_").forEach((function(e){Ke.push($e[e])}));var Je=Ke.map((function(e){return we().createElement("li",null,we().createElement(gn.Text,{variant:"bodySecondaryText"},e))})),Ze=[we().createElement(gn.List,{isAlwaysExpanded:!0,isTabbable:!0,shadow:!1},we().createElement(gn.ListItem,{listItemRole:"listitem",columns:[we().createElement(gn.TextColumn,{textElements:[{children:we().createElement(gn.Stack,{padding:"20px 0px"},we().createElement(gn.Stack,{childrenGap:20,padding:"0px 20px 0px 20px"},we().createElement(gn.Stack,{as:"ul",padding:"0px 15px 0px 15px"},Je),we().createElement(gn.Stack,{childrenGap:5},we().createElement(gn.Text,{variant:"headerText"},A.advertiserText),we().createElement(gn.Text,{variant:"bodySecondaryText"},c.dsaParameters.behalf)),we().createElement(gn.Stack,{childrenGap:5},we().createElement(gn.Text,{variant:"headerText"},A.paidByText),we().createElement(gn.Text,{variant:"bodySecondaryText"},c.dsaParameters.paid)))),variant:"bodyPrimaryText"}]})],variant:"Twelve"}))],et=we().createElement(gn.Stack,{childrenGap:16,padding:"30px 0px"},we().createElement(gn.Text,{variant:"paneTitle"},A.headerText),we().createElement(gn.ExpandedFeatureGroup,{key:"dsa-group",drawerAreaProps:Ye,highlightArea:[],detailsArea:Ze})),tt={text:x,tag:"h2",variant:"paneTitle"},at=we().createElement(gn.Stack,{childrenGap:16},we().createElement(gn.Text,{variant:"metadataText"},b.signedInAdditionalInfoLine1),we().createElement(gn.RichText,{variant:"metadataText",textWithTokens:b.signedInAdditionalInfoLine2,tokensAndValues:I})),nt=ve.thirdPartyAdsChecked?{alt:b.thirdPartyAdsImageOn.alt,src:b.thirdPartyAdsImageOn.src}:{alt:b.thirdPartyAdsImageOff.alt,src:b.thirdPartyAdsImageOff.src};return we().createElement(we().Fragment,null,we().createElement(gn.ShimmerProgressView,{operationData:{operationName:a,componentName:gu},firstLoadView:we().createElement(we().Fragment,null,we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:w,tokensAndValues:I},imageProps:ve.adsChecked?{alt:f.image.alt,src:f.image.src}:{alt:f.imageNew.alt,src:f.imageNew.src},ctaProps:We,featureHeading:ze,height:"small",layoutType:"2/3"}),P?et:null,p?we().createElement("div",{style:{marginTop:o},id:i},we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:k,tokensAndValues:I},ctaProps:We,featureHeading:tt,height:"small",imageProps:nt,layoutType:"2/3"})):null),finishedView:we().createElement(we().Fragment,null,we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:w,tokensAndValues:I},imageProps:ve.adsChecked?{alt:f.image.alt,src:f.image.src}:{alt:f.imageNew.alt,src:f.imageNew.src},ctaProps:Ge,featureHeading:ze,height:"small",layoutType:"2/3"}),we().createElement(gn.Stack,null,Fe(),He()),P?et:null,t&&ve.adsChecked?(xe(mu),we().createElement(pu,null)):null,p?we().createElement("div",{style:{marginTop:o},id:i},we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:k,tokensAndValues:I},ctaProps:qe,featureHeading:tt,height:"small",imageProps:nt,layoutType:"2/3"}),we().createElement(gn.Stack,{childrenGap:15},be?we().createElement(gn.Text,{colorOverride:"error"},h.thirdPartyAds.globalPrivacyControlEnabledError):null,at)):null),updateFailedView:we().createElement(we().Fragment,null,we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:w,tokensAndValues:I},imageProps:ve.adsChecked?{alt:f.image.alt,src:f.image.src}:{alt:f.imageNew.alt,src:f.imageNew.src},ctaProps:Ge,featureHeading:ze,height:"small",layoutType:"2/3"}),we().createElement(gn.Stack,null,Fe(),He()),P?et:null,p?we().createElement("div",{style:{marginTop:o},id:i},we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:k,tokensAndValues:I},imageProps:nt,ctaProps:qe,featureHeading:tt,height:"small",layoutType:"2/3"}),at):null),failedView:we().createElement(we().Fragment,null,we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:w,tokensAndValues:I},imageProps:ve.adsChecked?{alt:f.image.alt,src:f.image.src}:{alt:f.imageNew.alt,src:f.imageNew.src},featureHeading:ze,height:"small",layoutType:"2/3"}),P?et:null,p?we().createElement("div",{style:{marginTop:o},id:i},we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:k,tokensAndValues:I},imageProps:nt,featureHeading:tt,height:"small",layoutType:"2/3"})):null,we().createElement(gn.ErrorIllustration,{"data-testid":"getUserInterests-failed",correlationVector:Ot(),errorMessage:f.choiceOrMsaError,imageSrc:f.toggleErrorImage.src}))}),we().createElement("iframe",{id:"muid-optout-iframe-react",name:"muid-optout-iframe-react",src:M,style:{display:"none"},title:"Choice iframe",sandbox:"allow-scripts"}),we().createElement("iframe",{id:"muid-thirdPartyCookies-optout-iframe",name:"muid-thirdPartyCookies-optout-iframe",src:q,style:{display:"none"},title:"Choice third party cookies opt out iFrame",sandbox:"allow-scripts"}),we().createElement("iframe",{id:"muid-iframe-react",name:"muid-iframe-react",src:V,style:{display:"none"},title:"Choice iframe muid",sandbox:"allow-scripts"}),we().createElement("iframe",{id:"xandr-iframe-react",name:"xandr-iframe-react",src:Q,style:{display:"none"},title:"Xandr iframe",sandbox:""}))},fu=[is.Unauthorized,is.PreconditionFailed],vu=Cs(fu),yu=function(e){var t=e.toggleState,a=e.stateCallback,r=(0,gn.useDialogController)(),i=ma(),o=vs().overviewContent.recommendPeople,c=Ml,s=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i({name:c,status:"updating"}),e.next=3,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ss("".concat(Rs,"/people-suggestions/opt-out"),"".concat(Ms,".PEOPLESUGGESTIONS.OPTOUTASYNC"),{},{},{overrideRequestQosData:vu})];case 1:return[2,e.sent()]}}))})).then((function(){a(t),i({name:c,status:"finished"}),_t()})).catch((function(e){var t;if((null===(t=e.response)||void 0===t?void 0:t.status)===js)return i({name:c,status:"finished",error:e}),void window.location.reload();i({name:c,status:"update-failed",error:e}),_t({error:e.message})}));case 3:r.closeDialog();case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),l=function(){a(!t),r.closeDialog(),It()};return we().createElement(gn.Dialog,{closeButton:{"aria-label":o.dialogContent.cancel,"data-bi-id":"recommend-people-dialog-close"},dialogFooterProps:{buttonPrimary:{"aria-label":o.dialogContent.confirm,"data-bi-id":"recommend-people-dialog-confirm",onClick:s,text:o.dialogContent.confirm},buttonSecondary:{"aria-label":o.dialogContent.cancel,"data-bi-id":"recommend-people-dialog-close",onClick:l,text:o.dialogContent.cancel}},isOpen:!0,onDismiss:l,title:o.dialogContent.header},we().createElement(gn.RichText,{textWithTokens:o.dialogContent.description,tokensAndValues:{"downloadDataLink'":we().createElement(gn.Hyperlink,{"aria-label":o.highlightArea.downloadDataLink.text,"data-bi-id":"recommend-people-download-data-link",href:o.highlightArea.downloadDataLink.url,target:"_blank"},o.highlightArea.downloadDataLink.text)}}))},Eu="recommend-people-drawer",wu=function(e){var t=e.isL2,a=void 0!==t&&t,r=(0,gn.useDialogController)(),i=ma(),o=(0,Ee.useState)(!0),c=(0,Fn.A)(o,2),s=c[0],l=c[1],d=(0,Ee.useState)(!1),u=(0,Fn.A)(d,2),m=u[0],p=u[1],g=vs(),h=Bn(),f=h.areaPrefix,v=h.userEmail,y=(0,Ee.useRef)(null),E=Qa("PrivImplicitContacts"),w=g.overviewContent.recommendPeople,b=g.peopleSuggestionsContent.implicitDrawer,x=g.sharedContent,k="getStatus.recommendPeople.get",C=Ml,T="recommend-people-toggle",S="68px",A="end",P=function(e){l(e)},D=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!v){e.next=15;break}return e.prev=1,i({name:k,status:"first-load"}),e.next=5,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Is(!1,"PeopleSuggestionsConsent","".concat(Rs,"/people-suggestions/status"),"".concat(Ms,".PEOPLESUGGESTIONS.GETSTATUSASYNC"),{},{overrideRequestQosData:vu})];case 1:return[2,e.sent()]}}))}));case 5:a=e.sent,l(null!==(t=null===a||void 0===a?void 0:a.conversationHistoryProcessingEnabled)&&void 0!==t&&t),i({name:k,status:"finished"}),e.next=15;break;case 10:e.prev=10,e.t0=e.catch(1),p(!0),i({name:k,status:"update-failed"}),_t({error:e.t0});case 15:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(){return e.apply(this,arguments)}}();Se((function(){D()}));var I,_=function(){var e=(0,ys.A)(ws().mark((function e(t,a){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Pt({area:f,scenario:"ManageRecommendPeople",step:"onChange",data:{initialToggleState:s,newToggleState:a}}),a){e.next=5;break}r.openDialog(we().createElement(yu,{toggleState:!!a,stateCallback:P})),e.next=8;break;case 5:return i({name:C,status:"updating"}),e.next=8,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ss("".concat(Rs,"/people-suggestions/opt-in"),"".concat(Ms,".PEOPLESUGGESTIONS.OPTINASYNC"),{},{},{overrideRequestQosData:vu})];case 1:return[2,e.sent()]}}))})).then((function(){l(a),i({name:C,status:"finished"}),_t()})).catch((function(e){var t;if((null===(t=e.response)||void 0===t?void 0:t.status)===js)return i({name:C,status:"finished",error:e}),void window.location.reload();i({name:C,status:"update-failed",error:e}),_t({error:e.message})}));case 8:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),L=E?b.drawerArea.toggleAriaLabel||"":w.drawerArea.toggleAriaLabel,R=E?b.drawerArea.toggleError||"":w.drawerArea.toggleError,N=E?b.drawerArea.icon.src:w.drawerArea.icon.src,M=E?b.drawerArea.header:w.drawerArea.header,B=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ts("".concat(Rs,"/people-suggestions/contacts/implicit"),"".concat(Ms,".PEOPLESUGGESTIONS.GETIMPLICITCONTACTSASYNC"),{},{overrideRequestQosData:vu})];case 1:return[2,e.sent()]}}))})).then((function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/csv"})),a=document.createElement("a");a.href=t,a.download="PeopleSuggestions.csv",a.click(),URL.revokeObjectURL(t)})).catch((function(e){var t,a;(null===(t=e.response)||void 0===t?void 0:t.status)===js?window.location.reload():null===(a=y.current)||void 0===a||a.showNotificationBar()}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O={message:x.tryAgainLongText,ariaMessage:x.tryAgainLongText,closeButton:{"aria-label":x.close,"data-bi-id":"".concat(Eu,".download-failed.close"),id:"".concat(Eu,".download-failed.close")},iconName:"Error",notificationBarType:"error"},F={column:we().createElement(gn.DrawerHeaderTitle,{media:{size:"sm",image:{imageType:"image",src:N},padding:"0px 4px"},title:{children:M,kind:"text",nowrap:!0,weightOverride:"semi-bold"}}),slots:9},V={onClickToOpen:function(){return Us(!0,Eu,f)},onClickToClose:function(){return Us(!1,Eu,f)},defaultExpanded:a,drawerHeader:we().createElement(gn.DrawerHeader,{chevronPosition:A,columns:[F,{column:we().createElement(gn.DrawerHeaderToggle,{operationData:{progressViewOperationData:{defaultState:"finished",componentName:T,operationName:C},errorCallout:{errorMessage:R,errorMessageAriaLabel:L,targetOrTriggerButton:{"aria-label":L,"data-bi-id":"".concat(T,".error")}}},"aria-label":L,"data-bi-id":T,togglePosition:A,onText:x.toggleOn,offText:x.toggleOff,disabled:m,checked:s,onChange:_}),slots:3}],minHeight:S,totalSlots:12})},U={defaultExpanded:a,drawerHeader:we().createElement(gn.DrawerHeader,{chevronPosition:A,columns:[F,{column:we().createElement(gn.DrawerHeaderToggle,{operationData:{progressViewOperationData:{defaultState:"finished",componentName:T,operationName:C},errorCallout:{errorMessage:w.drawerArea.toggleError,errorMessageAriaLabel:L,targetOrTriggerButton:{"aria-label":L,"data-bi-id":"".concat(T,".error")}}},"aria-label":L,"data-bi-id":T,togglePosition:A,onText:x.toggleOn,offText:x.toggleOff,checked:s,onChange:_}),slots:3}],minHeight:S,totalSlots:12})},H=E?(I=b.highlightArea,{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,null,we().createElement("ul",{style:{padding:"8px 16px 0px"}},we().createElement("li",null,we().createElement(gn.Text,null,null===I||void 0===I?void 0:I.line1)),we().createElement("li",null,we().createElement(gn.Text,null,null===I||void 0===I?void 0:I.line2))))}}):function(e){return{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,null,we().createElement("ul",{style:{padding:"8px 16px 0px"}},we().createElement("li",null,we().createElement(gn.Text,null,null===e||void 0===e?void 0:e.highlightArea.bodyText.line1)),we().createElement("li",null,we().createElement(gn.Text,null,null===e||void 0===e?void 0:e.highlightArea.bodyText.line2))))}}}(w),G=E?function(e){return we().createElement(gn.MessageBar,{messageBarType:"secondary",messageContent:{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.NoHrefLink,{onClick:function(){return B()},children:e.detailsLink1,"data-bi-id":"recommend-people-download-data","aria-label":e.detailsLink1})}}})}(b.detailsLinks):function(e){return we().createElement(gn.MessageBar,{messageBarType:"secondary",messageContent:{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Hyperlink,{"aria-label":e.drawerArea.learnMoreLink.text,"data-bi-id":"recommend-people-learn-more",href:e.drawerArea.learnMoreLink.url,target:"_blank"},e.drawerArea.learnMoreLink.text)}}})}(w),q={highlightArea:we().createElement(gn.OneSegmentHighlightArea,{segment:we().createElement(gn.Stack,{padding:"0 32px"},H.tokensAndValues[0]),backgroundColor:"neutralHigh"}),detailsArea:G};return we().createElement(we().Fragment,null,v?we().createElement(gn.ShimmerProgressView,{operationData:{operationName:k,componentName:Eu},firstLoadView:we().createElement(gn.DrawerShimmer,{anchor:"right"}),finishedView:we().createElement(we().Fragment,null,we().createElement(gn.ExpandedFeatureGroup,Object.assign({drawerAreaProps:V},q)),we().createElement(gn.NotificationBar,Object.assign({ref:y},O))),failedView:we().createElement(gn.ExpandedFeatureGroup,Object.assign({drawerAreaProps:U},q))}):null)},bu="search.and.news.personalization",xu=function(){var e="SearchAndNewsPersonalization.getUserInterestsByType",t="SearchAndNewsPersonalization.updateUserInterests",a="search-and-news-personalization-efg",n=vs(),r=n.searchAndNewsPersonalizationContent,i=n.adSettingsContent.interestList,o=n.adSettingsContent.interestList.noInterests,c=Bn().areaPrefix,s=ma(),l=(0,Ee.useState)({}),d=(0,Fn.A)(l,2),u=d[0],m=d[1],p={},g=(0,Ee.useState)({}),h=(0,Fn.A)(g,2),f=h[0],v=h[1],y=(0,Ee.useState)({}),E=(0,Fn.A)(y,2),w=E[0],b=E[1],x=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,lu("topic");case 2:t=e.sent,p={},t.interests&&t.interests.forEach((function(e){p[e.id]=e})),m(p);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=(0,ys.A)(ws().mark((function e(t){var a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,du(t.id,t.isTurnedOff,t.interestType);case 2:p=u,a={id:t.id,name:t.name,isTurnedOff:!t.isTurnedOff,groupId:t.groupId,groupName:t.groupName,interestType:t.interestType},p[t.id]=a;case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e={},t={};Object.values(p).forEach((function(a){a.isTurnedOff?t[a.id]=a:e[a.id]=a})),v(e),b(t)};(0,gn.useMount)((0,ys.A)(ws().mark((function t(){return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,s({name:e,status:"first-load"}),t.next=4,x();case 4:s({name:e,status:"finished"}),C(),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),s({name:e,status:"failed",error:t.t0});case 11:case"end":return t.stop()}}),t,null,[[0,8]])}))));var T=function(e){return(0,ys.A)(ws().mark((function a(){return ws().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,k(e);case 3:s({name:"".concat(t,".").concat(e.id),status:"finished"}),C(),a.next=10;break;case 7:a.prev=7,a.t0=a.catch(0),s({name:"".concat(t,".").concat(e.id),status:"update-failed",error:a.t0});case 10:case"end":return a.stop()}}),a,null,[[0,7]])})))},S=function(e){return{onClickToOpen:function(){return Us(!0,bu,c)},onClickToClose:function(){return Us(!1,bu,c)},defaultExpanded:e,drawerHeader:we().createElement(gn.DrawerHeader,{totalSlots:12,chevronPosition:"end",columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{kind:"text",weightOverride:"semi-bold",children:e?r.currentInterestsDrawer.drawerArea.header:r.removedInterestsDrawer.drawerArea.header}}),slots:12}]})}},A=function(e){return[{id:e.id,"aria-label":e.isTurnedOff?r.removedInterestsDrawer.detailsArea.removeItemAriaLabel:r.currentInterestsDrawer.detailsArea.removeItemAriaLabel,"data-bi-id":e.isTurnedOff?"".concat(bu,".item.add"):"".concat(bu,".item.remove"),label:e.name,onClick:T(e)}]},P=function(e){return we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0},we().createElement(gn.ListItem,{backgroundColor:"transparent",columns:[we().createElement(gn.TextColumn,{textElements:[{children:we().createElement(gn.Stack,{backgroundColor:"transparent",horizontal:!0,padding:15,wrap:!0},Object.values(e).filter((function(e){return null!==e.name})).map((function(e){return we().createElement(gn.ChoiceSummary,{operationData:{progressViewOperationData:{componentName:bu,operationName:t,defaultState:"finished"},errorMessage:i.tagError},"aria-label":e.isTurnedOff?r.removedInterestsDrawer.detailsArea.choiceSummaryAriaLabel:r.currentInterestsDrawer.detailsArea.choiceSummaryAriaLabel,"data-bi-id":"".concat(bu,".choice-sumary"),options:A(e)})})))}]})],variant:"Twelve"}))};return we().createElement(gn.ShimmerProgressView,{operationData:{componentName:bu,operationName:e},firstLoadView:we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.DrawerShimmer,{anchor:"right",borderRadius:"4px",numberOfTitleLines:1}),we().createElement(gn.DrawerShimmer,{anchor:"right",borderRadius:"4px",numberOfTitleLines:1})),finishedView:0===Object.keys(u).length?we().createElement(gn.Stack,{id:"no-search-and-news-personalization-interests"},we().createElement(gn.Heading,{tag:"h2",variant:"paneTitle"},o.header),we().createElement(gn.Text,null,o.text)):we().createElement(gn.Stack,null,we().createElement(gn.Stack,{childrenGap:"5px",padding:"40px 0px 30px 0px"},we().createElement(gn.Text,{variant:"paneHeader",children:r.pageContent.sectionTitle}),we().createElement(gn.Text,{variant:"bodyPrimaryText",children:r.pageContent.sectionDescription})),we().createElement(gn.Stack,{id:"search-and-news-personalization",childrenGap:"24px"},Object.values(f).filter((function(e){return null!==e.name})).length>0&&we().createElement(gn.ExpandedFeatureGroup,{key:"".concat(a,".current-interests"),drawerAreaProps:S(!0),detailsArea:P(f)}),Object.entries(w).length>0&&we().createElement(gn.ExpandedFeatureGroup,{key:"".concat(a,".removed-interests"),drawerAreaProps:S(!1),detailsArea:P(w)}))),failedView:we().createElement(gn.ErrorIllustration,{id:"getUserInterestsByType-failed",correlationVector:Ot(),errorMessage:i.listErrorMessage,imageSrc:"".concat(Bl,"compassassets/540c7143-1cc1-46e0-9fa6-608f37ce6719.svg?n=ErrorIllustration.svg")})})},ku="thirdParty.ads",Cu=function(){var e="ThirdPartyAds.userAdSettings",t=Bn(),a=t.choiceApiConfig.cookieEndpoint,n=t.choiceApiConfig.muidCookieEndpoint,r=t.choiceApiConfig.choiceEndpoint,i=vs().adSettingsContent,o=i.thirdPartyAds.pageInfo,c=i.thirdPartyAds.pageTitle,s=i.thirdPartyAds.pageDescription,l=i.thirdPartyAds.tokens,d=i.interestChoice.labels.faq,u=i.interestChoice.tokens.faq,m=i.toggle,p=i.thirdPartyAds.thirdPartyAdsImageOn,g=i.thirdPartyAds.thirdPartyAdsImageOff,h=t.signInLink||"https://".concat(window.location.hostname,"/auth/complete-signin?ru=").concat(window.location.href),f="https://".concat(window.location.hostname,"/privacy/ad-settings/signedout"),v=ru(),y={faq:we().createElement(gn.Hyperlink,{"data-bi-id":"".concat(hl,".faq-jump-link"),"aria-label":d,href:v},u),signIn:we().createElement(gn.Hyperlink,{id:"sign-in-link","aria-label":i.signInRichText.text,"data-bi-id":"".concat(hl,".sign-in-link"),href:h,children:i.signInRichText.text}),shareDataForPersonalizedAds:we().createElement(gn.Text,{weightOverride:"bold",variant:"metadataText"},l.shareDataForPersonalizedAds),personalizedAdSettingsPage:we().createElement(gn.Hyperlink,{id:"personalized-ad-settings-page-link","aria-label":l.personalizedAdSettingsPage,"data-bi-id":"".concat(hl,".personalized-ad-settings-page-link"),href:f,children:l.personalizedAdSettingsPage})},E=(0,Ee.useState)(""),w=(0,Fn.A)(E,2),b=w[0],x=w[1],k=(0,Ee.useState)(""),C=(0,Fn.A)(k,2),T=C[0],S=C[1],A=(0,Ee.useState)(""),P=(0,Fn.A)(A,2),D=P[0],I=P[1],_=(0,Ee.useState)(nu("muid",n)),L=(0,Fn.A)(_,2),R=L[0],N=L[1],M=(0,Ee.useState)(""),B=(0,Fn.A)(M,2),O=B[0],F=B[1],V=(0,Ee.useState)(!0),U=(0,Fn.A)(V,2),H=U[0],G=U[1],q=(0,Ee.useState)(!1),W=(0,Fn.A)(q,2),z=W[0],j=W[1],Q=(0,Ee.useState)(!1),X=(0,Fn.A)(Q,2),Y=X[0],$=X[1],K=(0,Ee.useState)(""),J=(0,Fn.A)(K,2),Z=J[0],ee=J[1],te=(0,Ee.useState)({toggleChecked:!1,toggleDisabled:!0,thirdPartyCookiesEnabled:!0,adsPresent:!1}),ae=(0,Fn.A)(te,2),ne=ae[0],re=ae[1],ie=navigator.globalPrivacyControl,oe=ma();Se((0,ys.A)(ws().mark((function t(){return ws().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)||S(e.data)},oe({name:e,status:"first-load",customData:{step:"Initial"}});case 2:case"end":return t.stop()}}),t)}))));var ce=function(){var t=(0,ys.A)(ws().mark((function t(){return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(oe({name:e,status:"updating",customData:{step:"Toggle update"}}),""!==O){t.next=7;break}return j(!0),G(!1),t.abrupt("return");case 7:return t.next=9,se(O);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),se=function(){var t=(0,ys.A)(ws().mark((function t(a){var n;return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=ne.toggleChecked,t.prev=1,t.next=4,eu(a,n);case 4:x(nu(n?"thirdpartyadsoptout":"thirdpartyadsoptin",r)),n||"1"===Ha("TOptOut",!1)?ee("https://ib.adnxs.com/optout"):ee("https://ib.adnxs.com/optin"),oe({name:e,status:"finished",customData:{step:"Toggle update complete"}}),t.next=14;break;case 10:return t.prev=10,t.t0=t.catch(1),oe({name:e,status:"update-failed",error:t.t0,customData:{step:"Toggle update fail"}}),t.abrupt("return");case 14:case"end":return t.stop()}}),t,null,[[1,10]])})));return function(e){return t.apply(this,arguments)}}(),le=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:N(nu("muid",n));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),de=(0,Ee.useCallback)((0,ys.A)(ws().mark((function t(){var a,n;return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("1"!==Ha(Nl,!1)){t.next=7;break}return qa(Nl),t.next=4,eu(O,!0);case 4:return a=nu("thirdpartyadsoptout",r),x(a),t.abrupt("return");case 7:if("1"!==Ha(Rl,!1)){t.next=14;break}return qa(Rl),t.next=11,eu(O,!0);case 11:return n=nu("thirdpartyadsoptout",r),x(n),t.abrupt("return");case 14:re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!0,toggleDisabled:!1,firstLoad:!1})})),je(od,"true"),oe({name:e,status:"finished",customData:{step:"onStatusCookieOptedIn finished"}});case 17:case"end":return t.stop()}}),t)}))),[ne,r,oe]),ue=(0,Ee.useCallback)((0,ys.A)(ws().mark((function t(){var a;return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("1"===Ha(Nl,!1)){t.next=6;break}return t.next=3,eu(O,!1);case 3:return a=nu("thirdpartyadsoptin",r),x(a),t.abrupt("return");case 6:re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!1,toggleDisabled:ie,firstLoad:!1})})),oe({name:e,status:"finished",customData:{step:"onStatusCookieOptedOut finished"}});case 8:case"end":return t.stop()}}),t)}))),[ne,oe]),me=(0,Ee.useCallback)((function(){re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!0,toggleDisabled:!1,firstLoad:!1})})),oe({name:e,status:"finished",customData:{step:"onCookieOptedOut finished"}})}),[ne,r,oe]),pe=(0,Ee.useCallback)((0,ys.A)(ws().mark((function t(){return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!1,toggleDisabled:ie,firstLoad:!1})})),oe({name:e,status:"finished",customData:{step:"onCookieOptedOut finished"}});case 2:case"end":return t.stop()}}),t)}))),[ne,oe]),ge=(0,Ee.useCallback)((0,ys.A)(ws().mark((function t(){return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("1"!==Ha(Nl,!1)){t.next=4;break}re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!1,toggleDisabled:!0})})),t.next=14;break;case 4:return t.prev=4,t.next=7,eu(O,!0);case 7:x(nu("thirdpartyadsoptout",r)),t.next=14;break;case 10:t.prev=10,t.t0=t.catch(4),re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!1,toggleDisabled:!0})})),oe({name:e,status:"failed",error:t.t0,customData:{step:"checkGPC value fail"}});case 14:oe({name:e,status:"finished",customData:{step:"checkGPC value finish"}});case 15:case"end":return t.stop()}}),t,null,[[4,10]])}))),[ie,O,oe]),he=(0,Ee.useCallback)((function(){""===O?(re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!1,toggleDisabled:!0})})),oe({name:e,status:"finished",customData:{step:"onGPC value finish"}})):ge()}),[O,ge,oe]),fe=(0,Ee.useCallback)((function(){window.onmessage=null;var t=new Error("$Error occurred when loading URL: ".concat(b," on first load"));oe({name:e,status:"failed",error:t,customData:{step:"First load error"}})}),[b,oe]);(0,Ee.useEffect)((function(){if(T!==D){var t,n=T.toString().split(":");switch(n[0]){case"Muid":if(F(n[1]),!H){G(!0),se(n[1]);break}x(nu("thirdparty",a));break;case"ThirdPartyCookiesEnabled":ie?he():(t=nu("status",r),x(t),re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleDisabled:!0,thirdPartyCookiesEnabled:!0})})));break;case"ThirdPartyCookiesDisabled":re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!1,toggleDisabled:!0,thirdPartyCookiesEnabled:!1})})),je(cd,"false"),oe({name:e,status:"finished",customData:{step:"ThirdPartyCookiesDisabled message"}});break;case"CookieOptedIn":t=nu("thirdpartyadsstatus",r),x(t);break;case"CookieOptedOut":re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!1,toggleDisabled:!0,adsPresent:!0})})),t=nu("thirdpartyadsoptout",r),x(t);break;case"ThirdPartyAdsCookieOptedIn":me();break;case"ThirdPartyAdsCookieOptedOut":if(ne.adsPresent){oe({name:e,status:"finished",customData:{step:"ThirdPartyAdsCookieOptedOut message"}});break}pe();break;case"StatusThirdPartyAdsCookieOptedIn":""!==O?de():(re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!0,toggleDisabled:!1})})),oe({name:e,status:"finished",customData:{step:"StatusThirdPartyAdsCookieOptedIn message"}}));break;case"StatusThirdPartyAdsCookieOptedOut":""!==O?ue():(re((function(e){return(0,On.A)((0,On.A)({},e),{},{toggleChecked:!1,toggleDisabled:!1})})),oe({name:e,status:"finished",customData:{step:"StatusThirdPartyAdsCookieOptedOut message"}}));break;case"Error":fe()}I(T)}}),[T,D,a,fe,oe]),(0,Ee.useEffect)((function(){je(od,"".concat(ne.toggleChecked)),je(cd,"".concat(ne.thirdPartyCookiesEnabled))}),[ne]);var ve=i.thirdPartyAds.toggleErrorRichText.replace("{onOrOff}",ne.toggleChecked?"off":"on"),ye=we().createElement(gn.Stack,{childrenGap:16},we().createElement(gn.Text,{variant:"statusHeader"},c),we().createElement(gn.Text,{variant:"bodyPrimaryText"},s),we().createElement(gn.ToggleShimmer,{width:"72px"})),be=[{actionProps:{id:"".concat(hl,".toggle"),"aria-label":m.thirdPartyToggleLabel,checked:ne.toggleChecked,"data-bi-id":"".concat(hl,".toggle"),kind:"toggle",offText:m.off,onChange:ce,onText:m.on,disabled:ne.toggleDisabled,operationData:{errorCallout:{errorMessage:ve,errorMessageAriaLabel:ve,targetOrTriggerButton:{"aria-label":m.thirdPartyToggleLabel,"data-bi-id":"".concat(hl,".toggle-error-callout-trigger")}},progressViewOperationData:{operationName:e,componentName:ku,defaultState:"finished"}}}}],xe=we().createElement(gn.Stack,{childrenGap:48},we().createElement(gn.Text,{variant:"bodyPrimaryText"},o),we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:s,tokensAndValues:y},imageProps:ne.toggleChecked?{alt:p.alt,src:p.src}:{alt:g.alt,src:g.src},ctaProps:be,featureHeading:{text:c},height:"small",layoutType:"2/3"})),ke=we().createElement(gn.Stack,{childrenGap:16},xe,we().createElement(gn.Text,{variant:"metadataText"},i.thirdPartyAds.additionalInfoLine1),we().createElement(gn.RichText,{variant:"metadataText",textWithTokens:i.thirdPartyAds.additionalInfoLine2,tokensAndValues:y}));return we().createElement(we().Fragment,null,we().createElement(gn.ShimmerProgressView,{operationData:{operationName:e,componentName:ku},firstLoadView:ye,finishedView:we().createElement(gn.Stack,{childrenGap:16},xe,(ne.thirdPartyCookiesEnabled?null:we().createElement(we().Fragment,null,we().createElement(gn.Announced,{message:i.interestChoice.thirdPartyCookiesDisabled,ariaLive:"assertive"}),we().createElement(gn.Text,{colorOverride:"error"},i.interestChoice.thirdPartyCookiesDisabled)))||(ie?we().createElement(gn.Text,{colorOverride:"error"},i.thirdPartyAds.globalPrivacyControlEnabledError):null)||(ne.adsPresent?we().createElement(gn.RichText,{colorOverride:"error",textWithTokens:i.thirdPartyAds.tOptOutPresentError,tokensAndValues:y}):null)||(Y?we().createElement(gn.Text,{colorOverride:"error"},i.thirdPartyAds.adblockerBlockMuidError):null),we().createElement(gn.RichText,{textWithTokens:i.signInRichText.textWithToken,tokensAndValues:y}),we().createElement(gn.Text,{variant:"metadataText"},i.thirdPartyAds.additionalInfoLine1),we().createElement(gn.RichText,{variant:"metadataText",textWithTokens:i.thirdPartyAds.additionalInfoLine2,tokensAndValues:y})),updateFailedView:ke,failedView:ke}),we().createElement("iframe",{id:"muid-thirdPartyCookies-optout-iframe",name:"muid-thirdPartyCookies-optout-iframe",src:b,style:{display:"none"},title:"Choice third party cookies opt out iFrame",sandbox:"allow-scripts"}),we().createElement("iframe",{id:"get-MUID-iframe",name:"get-MUID-iframe",src:R,style:{display:"none"},title:"Choice get MUID value iFrame",sandbox:"allow-scripts"}),z?we().createElement("img",{onLoad:le,onError:function(){j(!1),$(!0),oe({name:e,status:"finished",customData:{step:"Muid load fail, error shown"}})},src:"https://c.msn.com/c.gif",style:{display:"none"},alt:"",role:"presentation"}):null,we().createElement("iframe",{id:"xandr-iframe-react",name:"xandr-iframe-react",src:Z,style:{display:"none"},title:"Xandr iframe",sandbox:""}))},Tu=[is.Unauthorized],Su=Cs(Tu),Au=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Is(!1,"UserConsent","".concat(Rs,"/unified-consent/windows-account-sync"),"".concat(Ms,".UNIFIEDCONSENT.WASC.GET"),{},{overrideRequestQosData:Su})];case 1:return[2,e.sent()]}}))}))},Pu=function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,Ss("".concat(Rs,"/unified-consent/windows-account-sync"),"".concat(Ms,".UNIFIEDCONSENT.WASC.UPDATE"),{consentId:e,consentState:t},{},{overrideRequestQosData:Su})];case 1:return[2,a.sent()]}}))}))};!function(e){e.Unknown="unknown",e.Declined="declined",e.Accepted="accepted"}(Hd||(Hd={}));var Du={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"},Iu=function(e){var t=e.componentName,a=e.drawerProps,n=e.highlightArea,r=e.detailsArea;return(0,Ee.useEffect)((function(){if("true"===new URLSearchParams(window.location.search).get(t)){var e=document.getElementById(t);null===e||void 0===e||e.scrollIntoView()}})),we().createElement(gn.Stack,{id:t},we().createElement(gn.ExpandedFeatureGroup,{drawerAreaProps:a,highlightArea:n,detailsArea:r}))};var _u="WascDrawer",Lu=function(e){var t=e.isL2,a=void 0!==t&&t,n={id:"",state:Hd.Unknown,modelText:Du},r=Bn().areaPrefix,i=(0,Ee.useState)(!0),o=(0,Fn.A)(i,2),c=o[0],s=o[1],l=(0,Ee.useState)(n),d=(0,Fn.A)(l,2),u=d[0],m=d[1],p=(0,Ee.useState)(!1),g=(0,Fn.A)(p,2),h=g[0],f=g[1],v=ma(),y="wasc",E=vs().overviewContent.consentSettings,w="GetWascStatus",b="UpdateWascStatus",x="".concat(_u,".toggle");Se((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v({name:w,status:"first-load"}),e.next=4,Au();case 4:(t=e.sent)&&(f(!0),m(t),"accepted"===t.state?s(!0):s(!1)),v({name:w,status:"finished"}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),v({name:w,status:"update-failed",error:e.t0});case 12:case"end":return e.stop()}}),e,null,[[0,9]])}))));var k=function(){var e=(0,ys.A)(ws().mark((function e(t,a){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Pt({area:r,scenario:"ManageWindowsAccountSyncConsent",step:"onChange",data:{initialToggleState:c,newToggleState:a}}),e.prev=1,v({name:b,status:"updating"}),!a){e.next=8;break}return e.next=6,Pu(u.id,Hd.Accepted);case 6:e.next=10;break;case 8:return e.next=10,Pu(u.id,Hd.Declined);case 10:s(!!a),v({name:b,status:"finished"}),_t(),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(1),v({name:b,status:"update-failed",error:e.t0}),_t({error:e.t0.message});case 19:case"end":return e.stop()}}),e,null,[[1,15]])})));return function(t,a){return e.apply(this,arguments)}}(),C=we().createElement(gn.DrawerHeaderTitle,{media:{size:"sm",image:{imageType:"image",src:E.wascContent.drawerIcon.src}},title:{children:u.modelText.header,kind:"text",nowrap:!0,weightOverride:"semi-bold"},subtitleTextProps:{children:u.modelText.subheader}}),T=we().createElement(gn.DrawerHeaderToggle,{operationData:{progressViewOperationData:{defaultState:"finished",componentName:x,operationName:b},errorCallout:{errorMessage:E.consentError,errorMessageAriaLabel:E.consentError,targetOrTriggerButton:{"aria-label":E.consentError,"data-bi-id":"".concat(x,".error")}}},"aria-label":u.modelText.header,"data-bi-id":x,togglePosition:"end",onText:u.modelText.consentOnText,offText:u.modelText.consentOffText,disabled:!1,checked:c,onChange:k}),S={onClickToOpen:function(){return Us(!0,y,r)},onClickToClose:function(){return Us(!1,y,r)},defaultExpanded:a,drawerHeader:we().createElement(gn.DrawerHeader,{chevronPosition:"end",columns:[{column:C,slots:9},{column:T,slots:3}],totalSlots:12})},A=function(e){var t=vs().overviewContent.consentSettings.wascContent,a=[{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}];return{id:"wasc",backgroundType:"card",bodyText:{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,null,we().createElement(gn.Stack,{padding:5},we().createElement(gn.Text,null,e.description)),we().createElement(gn.Stack,{padding:5},a.map((function(e,t){return we().createElement(gn.Media,{key:t,image:{imageType:"icon",iconName:e.icon},size:"md",imagePadding:"5px"},we().createElement(gn.Text,{block:!0,variant:"headerText"},e.header),we().createElement(gn.Text,null,e.description))}))))}},bodyTextVariant:"bodyPrimaryText",height:"small",imageProps:{src:t.image.src,alt:e.imageAltText},layoutType:"2/3",paddingVariant:"64px",borderRadius:"0px"}}(u.modelText),P=we().createElement(gn.Feature,Object.assign({key:y},A)),D=we().createElement(gn.MessageBar,{messageBarType:"secondary",messageContent:{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(we().Fragment,null,we().createElement(gn.Hyperlink,{"aria-label":u.modelText.learnMoreAriaLabel,"data-bi-id":"wasc-learn-more",href:u.modelText.learnMoreLinkUrl,target:"_blank"},u.modelText.learnMoreLinkText))}}});return h?we().createElement(Iu,{drawerProps:S,highlightArea:P,detailsArea:D,componentName:_u}):null},Ru=function(e){var t,a=e.subPage,n=e.useInAppNavigation,r=void 0===n||n,i=e.member,o=void 0===i?null:i,c=vs(),s=c.breadcrumbContent,l=c.adSettingsContent.adFreeOutlook,d=Bn(),u=d.isAuthenticated;switch(a){case"ad-settings":t={type:"text",id:"ad-settings-breadcrumb-id",text:u?s.adSettingsPO:s.adSettings};break;case"personalized-ad-settings":t={type:"text",id:"ad-settings-breadcrumb-id",text:u?s.adSettingsPO:s.adSettingsNew};break;case"third-party-ads":t={type:"text",id:"third-party-ad-settings-breadcrumb-id",text:s.thirdPartyAds};break;case"ad-settings-signedout":t={type:"text",id:"ad-settings-breadcrumb-id",text:s.adSettingsPO};break;case"search-and-news-personalization":t={type:"text",id:"search-and-news-personalization-breadcrumb-id",text:s.searchAndNewsPersonalization};break;case"download-data":t={type:"text",id:"download-data-breadcrumb-id",text:s.downloadData};break;case"office-settings":t={type:"text",id:"office-settings-breadcrumb-id",text:s.officeSettings};break;case"child-activity":t={id:"child-activity",mediaProps:o.profilePictureUrl?{alt:o.firstName,kind:"image",src:o.profilePictureUrl,borderRadius:"16px"}:void 0,text:o.displayName,type:"text"};break;case"location":t={type:"text",id:"location-breadcrumb-id",text:s.location};break;case"web-search":t={type:"text",id:"web-search-breadcrumb-id",text:s.webSearch};break;case"apps-services":t={type:"text",id:"apps-services-breadcrumb-id",text:s.appsServices};break;case"app-access":t={type:"text",id:"app-access-breadcrumb-id",text:s.appAccess};break;case"spelling-text":t={type:"text",id:"spelling-text-breadcrumb-id",text:s.spellingText};break;case"people-suggestions":t={type:"text",id:"people-suggestions-breadcrumb-id",text:s.peopleSuggestions};break;case"account-windows":t={type:"text",id:"account-windows-breadcrumb-id",text:s.accountAndWindows};break;case"privacy-request":t={type:"text",id:"privacy-request-breadcrumb-id",text:s.prcForm};break;case"copilot":t={type:"text",id:"copilot-breadcrumb-id",text:s.copilot};break;default:t={}}var m={id:"overview-breadcrumb-id",text:s.overview},p=[r?(0,On.A)((0,On.A)({},m),{},{type:"route",to:tl}):(0,On.A)((0,On.A)({},m),{},{type:"hyperlink",href:tl})];a&&p.push(t);var g="".concat(d.areaPrefix,".ad-free-outlook.cta"),h={iconName:"OutlookLogoInverse",infoText:l.infoText,"aria-label":l.ctaText,"data-bi-id":g,id:g,ctaText:l.ctaText,ctaUrl:l.ctaUrl,target:"_blank"},f={iconName:"FamilySafety",infoText:s.familySafety,"aria-label":s.manageYourFamily,"data-bi-id":"manage-your-family",id:"manage-your-family",ctaText:s.manageYourFamily,ctaUrl:"https://family.microsoft.com",target:"_blank"};return we().createElement(we().Fragment,null,we().createElement(gn.Banner,null,we().createElement(gn.BannerBreadcrumbTitleColumn,{breadcrumbTitleProps:{items:p,ariaLabel:s.label,dataBiPrefix:d.areaPrefix,pageArea:d.areaPrefix,overflowAriaLabel:s.overflowLabel,isIncludingCurrentPage:!0}}),"personalized-ad-settings"===a||"ad-settings-signedout"===a?we().createElement(gn.BannerInfoColumn,h):null,"child-activity"===a?we().createElement(gn.BannerInfoColumn,f):null))},Nu=function(){var e=na().sendPageViewEvent,t=vs().accountAndWindowsContent.pageContent;return(0,gn.useMount)((function(){e()})),we().createElement(gn.Stack,null,we().createElement(Ru,{subPage:"account-windows"}),we().createElement(gn.Stack,{padding:"40px 0"},we().createElement(gn.Text,{variant:"paneHeader",children:t.title}),we().createElement(gn.Stack,{padding:"20px 0"},we().createElement(Lu,{isL2:!0}))))},Mu=a(72382),Bu="".concat(Rs,"/app-consent/applications"),Ou="".concat(Rs,"/app-consent/application-data"),Fu="".concat(Rs,"/app-consent/permissions"),Vu="".concat(Rs,"/app-consent/linked-in-status"),Uu="".concat(Rs,"/app-consent/revoke-linked-in-status"),Hu=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ts(Bu,"".concat(Ms,".GETAPPLICATIONS"))];case 1:return[2,e.sent()]}}))}))},Gu=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,Is(!1,"".concat("GetApplicationData","_").concat(e),"".concat(Ou,"?appId=").concat(e),"".concat(Ms,".GETAPPLICATIONDATA"))];case 1:return[2,t.sent()]}}))}))},qu=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,Ss(Fu,"".concat(Ms,".UPDATEAPPCONSENTPERMISSIONS"),{appConsentArgs:e})];case 1:return[2,t.sent()]}}))}))},Wu="".concat(Rs,"/onevet"),zu=function(e,t,a,r,i){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return[4,Ss("".concat(Wu,"/token"),"".concat(Ms,".ONEVET.CREATE.TOKEN"),{medium:e,phoneCountryCode:t,phoneNumber:a,emailAddress:r,emailMessage:i})];case 1:return[2,n.sent()]}}))}))},ju=function(e,t,a){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return[4,Ss("".concat(Wu,"/token/verify"),"".concat(Ms,".ONEVET.VERIFY.TOKEN"),{code:e,requestId:t,hipModel:a})];case 1:return[2,n.sent()]}}))}))},Qu="/api/hip/challenge",Xu=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return"audio"!==e?[3,2]:[4,ka("".concat(Qu,"/audio"),{operation:"GLOBAL.HIP.GETCHALLENGE.AUDIO"})];case 1:case 3:return[2,t.sent().data];case 2:return[4,ka("".concat(Qu,"/visual"),{operation:"GLOBAL.HIP.GETCHALLENGE.VISUAL"})]}}))}))},Yu=function(e){var t=(0,Ee.useState)("visual"),a=t[0],r=t[1],i=(0,Ee.useState)({challengeSource:"",context:{}}),o=i[0],c=i[1],s=ma(),l=function(t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var a,i,o;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,5,,6]),s({name:e.operationName,status:"first-load"}),e.getHipChallenge?[4,e.getHipChallenge(t)]:[3,2];case 1:return i=n.sent(),[3,4];case 2:return[4,Xu(t)];case 3:i=n.sent(),n.label=4;case 4:return a=i,r(t),c(a),s({name:e.operationName,status:"finished"}),[3,6];case 5:return o=n.sent(),s({name:e.operationName,status:"update-failed",error:o}),[3,6];case 6:return[2]}}))}))};return(0,Ee.useEffect)((function(){l(a)}),[]),{mode:a,challenge:o,getNewChallenge:l}},$u="/api/promotion-campaigns",Ku=("".concat($u,"/campaign-data"),"".concat($u,"/campaign-data-jadis")),Ju=("".concat($u,"/campaigns-data"),"".concat($u,"/campaign-batch-data"),[2e3,2040]),Zu={},em=function(e){return nn(Zu,e,(function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t,a;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return[4,ka(Ku,{operation:"GLOBAL.CAMPAIGNS.GETCAMPAIGNDATAFORJADIS"},{params:{surfaceName:e}})];case 1:t=n.sent();try{a=JSON.parse(t.data)}catch(jo){if(!t.data)return Wt({name:"Ms.Webi.MeePortal.IrisCampaignErrorEvent",componentName:e,message:t.data}),[2,{surfaceName:e}];throw Error("Fail to parse Iris JSON response for surface - ".concat(e,". ").concat(t.data))}return[2,tm(a,e)]}}))}))}))},tm=function(e,t){if(e&&"error"in e){var a=e.error;if(Ju.includes(a.code))return{surfaceName:t};throw Error("Iris error code ".concat(a.code,": ").concat(a.msg))}return{model:e,surfaceName:t}};var am={"ads-basic":"MicrosoftLogo","application-read-all":"RevealPasswordMedium","application-readwrite-all":"EditListPencil","bingads-manage":"MicrosoftLogo","bing-cortana":"MicrosoftLogo","bvt_skydrive-read":"RevealPasswordMedium","bvt_skydrive-readwrite":"EditListPencil","calendars-read":"RevealPasswordMedium","calendars-read-shared":"RevealPasswordMedium","calendars-readwrite":"EditListPencil","calendars-readwrite-shared":"EditListPencil","ccs-readwrite":"Devices2","cdp-basic":"Devices2","cloudanchor-readwrite-all":"EditListPencil","cloudanchor-write-createdbyapp":"EditListPencil","cloudentity-readwrite-all":"EditListPencil","cloudentity-readwrite-createdbyapp":"EditListPencil","commerce-payment":"MicrosoftLogo","contacts-read":"RevealPasswordMedium","contacts-read-shared":"RevealPasswordMedium","contacts-readwrite":"EditListPencil","contacts-readwrite-shared":"EditListPencil","cortana-profile":"Contact","cortana-speak":"EditListPencil","dds-read":"Devices2","dds-register":"Devices2","dds-reverse_logistics":"MicrosoftLogo","denalicontentservice-denaliapiaccess":"MicrosoftLogo","device-command":"Devices2","device-read":"RevealPasswordMedium","device-readwrite":"EditListPencil","ds3-read":"RevealPasswordMedium","ds3-readwrite":"EditListPencil","ds3-write":"EditListPencil","ews-accessasuser-all":"EditListPencil","files-read":"RevealPasswordMedium","files-read-all":"RevealPasswordMedium","files-read-appfolder":"RevealPasswordMedium","files-read-selected":"RevealPasswordMedium","files-readwrite":"EditListPencil","files-readwrite-all":"EditListPencil","files-readwrite-appfolder":"EditListPencil","files-readwrite-selected":"EditListPencil","group-read-all":"RevealPasswordMedium","group-readwrite-all":"EditListPencil","healthvault-basic":"MicrosoftLogo","homeloop-full_access":"Devices2","int-email":"Mail","int-idtoken":"Signin","int-jwt":"MicrosoftLogo","int-offline_access":"DisconnectDevice","int-profile":"Contact","iss-basic":"EditListPencil","ks-access":"EditListPencil","ks-publish":"EditListPencil","location-add":"EditListPencil","location-delete":"EditListPencil","location-enqueueinferences":"EditListPencil","location-read":"RevealPasswordMedium","location-readinternal":"RevealPasswordMedium","mailboxsettings-readwrite":"EditListPencil","mail-read":"RevealPasswordMedium","mail-read-shared":"RevealPasswordMedium","mail-readwrite":"EditListPencil","mail-readwrite-shared":"EditListPencil","mail-send":"EditListPencil","mail-send-shared":"EditListPencil","MicrosoftMediaServices-GrooveApiAccess":"MicrosoftLogo","moviesandtv-sync-moviesanywhere":"Sync","msevents-basic":"MicrosoftLogo","msevents-mpnprofile":"MicrosoftLogo","mshealth-readactivityhistory":"BoardActivityFeed","mshealth-readactivitylocation":"BoardActivityFeed","mshealth-readdevices":"Devices2","mshealth-readgoals":"RevealPasswordMedium","mshealth-readprofile":"Contact","notes-create":"EditListPencil","notes-read":"RevealPasswordMedium","notes-read-all":"RevealPasswordMedium","notes-readwrite":"EditListPencil","notes-readwrite-all":"EditListPencil","notes-readwrite-createdbyapp":"EditListPencil","notifications-readwrite-createdbyapp":"EditListPencil","office-onenote":"EditListPencil","office-onenote_create":"EditListPencil","office-onenote_recipes":"RevealPasswordMedium","office-onenote_recipes_update":"EditListPencil","office-onenote_update":"EditListPencil","office-onenote_update_by_app":"EditListPencil","onedrive_onetime-access":"RevealPasswordMedium","onedrive-appdata":"MicrosoftLogo","onedrive-appfolder":"EditListPencil","onedrive-readonly":"RevealPasswordMedium","onedrive-readwrite":"EditListPencil","paidsearchsyndication-read-entitie":"RevealPasswordMedium","paidsearchsyndication-read-reports":"RevealPasswordMedium","paidsearchsyndication-readwrite-entities":"EditListPencil","people-read":"Contact","photosynth-read":"RevealPasswordMedium","photosynth-write":"EditListPencil","pubcenter-reporting":"MicrosoftLogo","skype-addcontact":"AddGroup","skype-basic":"Contact","skype-calling":"SkypeLogo","skype-calling_token":"SkypeLogo","skype-contact":"AddGroup","skype-conversation":"Message","skype-credit":"SkypeLogo","skype-group":"Group","skype-im":"Message","skype-offline_access":"DisconnectDevice","store-redeem":"MicrosoftLogo","subscription-read-all":"RevealPasswordMedium","tables-readwrite-all":"EditListPencil","tasks-read":"RevealPasswordMedium","tasks-read-shared":"RevealPasswordMedium","tasks-readwrite":"EditListPencil","tasks-readwrite-shared":"EditListPencil","ups-mpnprofile":"MicrosoftLogo","useractivity-read":"RevealPasswordMedium","useractivity-readwrite":"EditListPencil","useractivity-readwrite-createdbyapp":"EditListPencil","userclipboard-readwrite":"EditListPencil","usernotification-readwrite-createdbyapp":"EditListPencil","user-read":"Contact","user-readwrite":"EditListPencil","usersettings-readwrite-createdbyapp":"EditListPencil","usersettings-readwrite-createdbyapp-secure":"EditListPencil","usersettings-readwrite-createdbyapp-trusted":"EditListPencil","usertimelineactivity-write-createdbyapp":"EditListPencil","wl-activesync":"Sync","wl-Applications":"Apps","wl-Applications_Create":"Apps","wl-Basic":"Contact","wl-Birthday":"BirthdayCake","wl-Calendars":"Calendar","wl-Calendars_Update":"Contact","wl-contacts_Birthday":"BirthdayCake","wl-contacts_Calendars":"Calendar","wl-contacts_Calendars_Update":"Calendar","wl-Contacts_Create":"Contact","wl-contacts_emails":"Mail","wl-contacts_phone_numbers":"CellPhone","wl-contacts_Photos":"PhotosApp","wl-contacts_postal_addresses":"CityNext2","wl-contacts_SkyDrive":"RevealPasswordMedium","wl-contacts_SkyDrive_Update":"EditListPencil","wl-Contacts_Update":"Contact","wl-contacts_work_profile":"Contact","wl-emails":"Mail","wl-Events_Create":"Calendar","wl-imap":"Mail","wl-imap_gateway":"Mail","wl-legacy_activities_update":"BoardActivityFeed","wl-legacy_activities_view":"BoardActivityFeed","wl-legacy_applications_create":"Apps","wl-legacy_basic_profile":"Contact","wl-legacy_contacts_view":"AddGroup","wl-legacy_contacts_viewfull":"AddGroup","wl-legacy_photos_view":"PhotosApp","wl-legacy_profile_updatestatus":"Share","wl-legacy_profile_view":"Contact","wl-legacy_profile_viewfull":"Contact","wl-Messenger":"Signin","wl-messenger_delete":"Signin","wl-offline_access":"DisconnectDevice","wl-onedrive_provision_quota":"OneDriveLogo","wl-phone_numbers":"CellPhone","wl-Photos":"PhotosApp","wl-postal-addresses":"CityNext2","wl-Share":"Share","wl-SignIn":"Signin","wl-SkyDrive":"RevealPasswordMedium","wl-SkyDrive_fullres":"EditListPencil","wl-SkyDrive_Update":"EditListPencil","wl-smtp":"Mail","wl-work_profile":"Contact","wns-connect":"Devices2","xbl-allfriends":"Contact","xbl-friends":"Contact","xbl-offline_access":"DisconnectDevice","xbl-signin":"Contact","xbox-basic":"XboxLogo","xboxlive-music":"Devices","xboxlive-offline_access":"DisconnectDevice","xboxlivepartner-signin":"Signin","xboxlive-signin":"Signin","xbox-offline_access":"DisconnectDevice","xccs-command":"Devices2","xccs-read":"RevealPasswordMedium"},nm=function(e){var t=e.appData,a=vs(),n=a.appAccessContent.dialog,r=Le(n.generalPermissionsContent.header,t.name),i=(0,gn.toShortDate)(new Date(t.lastAccessTime.concat(" UTC"))),o=Le(n.generalPermissionsContent.lastUsed,[t.name,i]),c=a.appAccessContent.permissions;return we().createElement(gn.Stack,{id:t.id,childrenGap:"24px"},we().createElement(gn.Heading,{variant:"subjectTitle",tag:"h2",children:r}),we().createElement(gn.Stack,{id:t.id,childrenGap:"12px"},t.appConsents.offerActions?Object.values(t.appConsents.offerActions).map((function(e){var a,n,r=(a=e.offerName,n=e.actionName,"".concat(a.toLowerCase(),"-").concat(n.toLowerCase().split(".").join("-")));return function(e,t,a,n){var r=(0,gn.formatString)(n,e);return we().createElement(gn.Media,{size:"lg",image:am[t]?{imageType:"icon",iconName:am[t],iconColor:"themePrimary"}:{imageType:"character",character:e.charAt(0).toLocaleUpperCase()},imagePadding:"0 16px 0 0"},we().createElement(gn.Stack,{childrenGap:"6px"},we().createElement(gn.Text,{variant:"headerText",children:a}),we().createElement(gn.Text,{children:r})))}(t.name,r,c[r].title,c[r].description)})):void 0),we().createElement(gn.Text,{variant:"metadataText",children:o}),we().createElement(gn.Text,{variant:"metadataText",children:n.revokeDuration}))},rm=function(e){var t=e.appData,a=vs().appAccessContent.dialog,n=Le(a.linkedinPermissionsContent.header,t.name),r=we().createElement(gn.RichText,{textWithTokens:a.linkedinPermissionsContent.subHeader,tokensAndValues:{0:we().createElement(gn.Hyperlink,{"aria-label":a.linkedinPermissionsContent.tokens.privacyStatementToken,"data-bi-id":"".concat(dm,".linkedin-dialog.linkedin-privacy-statement"),href:"https://privacy.microsoft.com/privacystatement",target:"_blank",underline:!1},a.linkedinPermissionsContent.tokens.privacyStatementToken)}});return we().createElement(gn.Stack,{childrenGap:"24px"},we().createElement(gn.Stack,{childrenGap:"12px"},we().createElement(gn.Heading,{variant:"subjectTitle",tag:"h2",children:n}),r),we().createElement(gn.Hyperlink,{"aria-label":a.linkedinPermissionsContent.tokens.learnMoreToken,"data-bi-id":"".concat(dm,".linkedin-dialog.linkedin-learn-more"),href:"https://support.microsoft.com/office/linkedin-in-microsoft-apps-and-services-6d7c5b09-d525-424a-9c18-8081ee7a67e8",target:"_blank"},a.linkedinPermissionsContent.tokens.learnMoreToken),we().createElement(gn.Text,{variant:"metadataText",children:a.revokeDuration}))},im="".concat(dm,".app-access-dialog-body"),om=function(e){var t=e.appData,a=e.revokePermissionsCallback,n=(0,gn.useDialogController)(),r=vs().appAccessContent.dialog,i=function(){n.closeDialog()},o=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n.closeDialog(),e.next=3,a(t,!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),c={isOpen:!0,title:{text:t.name,image:{src:t.icon,alt:"selectedImageAltText",imageType:"altTextImage"}},withHeaderHorizontalLine:!0,closeButton:{"data-bi-id":"".concat(dm,".app-access-dialog.close-button"),"aria-label":r.closeAriaLabel},subtitle:void 0,headerLeftRightPadding:"24px",onDismiss:i,stickyHeaderFooter:Gd,contentId:im,staticBodyWidth:"480px",minBodyHeight:{height:60,unit:"vh"},dialogFooterProps:{hasFooterHorizontalLine:!0,buttonPrimary:{onClick:i,text:r.keepSharing,"aria-label":r.keepSharing,"data-bi-id":"".concat(dm,".app-access-dialog.keep-sharing")},buttonSecondary:{onClick:o,text:r.stopSharing,"aria-label":r.stopSharing,"data-bi-id":"".concat(dm,"app-access-dialog.stop-sharing")}}};return we().createElement(gn.Dialog,c,t.name===um?we().createElement(rm,{appData:t}):we().createElement(nm,{appData:t}))},cm=["appItem","revokePermissionsCallback"],sm="".concat(dm,".list-item"),lm=(0,gn.listItemComponent)((function(e){var t,a=e.appItem,n=e.revokePermissionsCallback,r=(0,_d.A)(e,cm),i=(0,gn.useViewport)(),o=vs().appAccessContent.listItem,c=vs().sharedContent,s=(0,gn.useDialogController)(),l=Bn(),d=a,u=a.lastAccessTime?"".concat(wd(a.lastAccessTime.concat(" UTC"),void 0,c)):"",m={listItemMediaProps:{image:(t=d,t.icon?{imageType:"image",src:t.icon}:{imageType:"character",character:t.name.charAt(0).toLocaleUpperCase()}),size:"sm"},title:d.name&&""!==d.name?d.name:o.unknownProperty},p={children:u,variant:"bodySecondaryText"},g="https://account.live.com/consent/Edit?client_id=".concat(a.id,"&mkt=").concat(l.language),h=[{"aria-label":o.dontAllow,"data-bi-id":"".concat(dm,".dont-allow"),buttonColor:"themePrimary",onClick:function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(a,!1);case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),text:o.dontAllow,operationData:{progressViewOperationData:{componentName:sm,operationName:"".concat(sm,".").concat(d.id),defaultState:"finished"},textWhileUpdating:c.clearing}},{"aria-label":o.details,"data-bi-id":"".concat(dm,".details"),buttonColor:"themePrimary",onClick:function(){a.name!==um&&a.appConsents.offerPermissions.length>0?window.open(g,"_blank"):s.openDialog(we().createElement(om,{appData:a,revokePermissionsCallback:n}))},text:o.details,operationData:{progressViewOperationData:{componentName:sm,operationName:"".concat(sm,".").concat(d.id),defaultState:"finished"}}}],f=function(){return we().createElement(gn.ActionButtonFinalColumn,{contentType:"none",columnAlign:"end",actionButtonProps:h})};switch(i){case"xxxl":case"xxl":case"xl":case"l":case"m":return we().createElement(gn.ListItem,Object.assign({},r,{key:d.id,variant:"SixThreeThree",backgroundColor:"neutralMed",columns:[we().createElement(gn.MediaTitleColumn,m),we().createElement(gn.TextColumn,{textElements:[p],"data-fct-id":u}),f()]}));case"s":return we().createElement(gn.ListItem,Object.assign({},r,{key:d.id,variant:"SixSix",backgroundColor:"neutralMed",columns:[we().createElement(gn.MediaTitleColumn,Object.assign({},m,{subtitles:[p],"data-fct-id":u})),f()]}))}})),dm="app-access-activity",um="LinkedIn",mm=function(){var e=vs(),t=e.sharedContent,a=e.appAccessContent.drawer,r=a.drawerArea,i=ma(),o=(0,Ee.useState)(!1),c=(0,Fn.A)(o,2),s=c[0],l=c[1],d=(0,Ee.useState)(!1),u=(0,Fn.A)(d,2),m=u[0],p=u[1],g=(0,Ee.useState)(0),h=(0,Fn.A)(g,2),f=h[0],v=h[1],y=(0,Ee.useState)(""),E=(0,Fn.A)(y,2),w=E[0],b=E[1],x=(0,Ee.useState)([]),k=(0,Fn.A)(x,2),C=k[0],T=k[1],S=(0,Ee.useState)([]),A=(0,Fn.A)(S,2),P=A[0],D=A[1],I=(0,Ee.useState)(!1),_=(0,Fn.A)(I,2),L=_[0],R=_[1],N=(0,Ee.useState)(""),M=(0,Fn.A)(N,2),B=M[0],O=M[1],F=a.highlightArea,V=hd("appAccess",{},F),U=we().createElement(gn.Feature,Object.assign({key:"".concat(dm,".highlight-area")},V)),H="GetApplications",G="UpdateAppConsentPermissions",q=(0,Ee.useCallback)(function(){var e=(0,ys.A)(ws().mark((function e(t){var a,r,i,o,c,s,l,d;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return R(!!t),a=[],e.next=4,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ts(Vu,"".concat(Ms,".GETLINKEDINSTATUS"))];case 1:return[2,e.sent()]}}))}));case 4:return(r=e.sent).linkedInStatusResponse.linkedInStatus&&"bound"===r.linkedInStatusResponse.linkedInStatus.toLowerCase()&&a.push({id:"linked-in",name:um,icon:"https://assets.account.microsoft.com/privacy/compassassets/LinkedIn_64.png"}),e.next=8,Hu();case 8:if(!(i=e.sent)){e.next=31;break}v(i.applications.length),o=(0,Mu.A)(i.applications),e.prev=12,o.s();case 14:if((c=o.n()).done){e.next=23;break}return s=c.value,e.next=18,Gu(s.id);case 18:l=e.sent,d=l.applicationData,a.push({id:d.id,name:d.name,icon:d.iconUrl,lastAccessTime:s.offerPermissions.length>0?s.offerPermissions[0].lastAccessTime:s.offerActions[0].lastAccessTime,appConsents:{appId:d.id,name:d.name,offerActions:s.offerActions,offerPermissions:s.offerPermissions}});case 21:e.next=14;break;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(12),o.e(e.t0);case 28:return e.prev=28,o.f(),e.finish(28);case 31:D(a),T(a),R(!1);case 34:case"end":return e.stop()}}),e,null,[[12,25,28,31]])})));return function(t){return e.apply(this,arguments)}}(),[]),W=(0,Ee.useCallback)(function(){var e=(0,ys.A)(ws().mark((function e(t,a){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i({name:G,status:"updating"}),R(!!a),"linked-in"!==t.id){e.next=8;break}return e.next=6,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,As(Uu,"".concat(Ms,".REVOKELINKEDINSTATUS"))];case 1:return[2,e.sent()]}}))}));case 6:e.next=10;break;case 8:return e.next=10,qu(t.appConsents);case 10:return e.next=12,q(!!a);case 12:i({name:G,status:"finished"}),e.next=19;break;case 15:e.prev=15,e.t0=e.catch(0),R(!1),i({name:G,status:"update-failed",error:e.t0});case 19:case"end":return e.stop()}}),e,null,[[0,15]])})));return function(t,a){return e.apply(this,arguments)}}(),[q]);(0,Ee.useEffect)((function(){var e=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:H,status:"first-load"}),R(!0),e.next=5,q(!0);case 5:i({name:H,status:"finished"}),p(!1),e.next=14;break;case 9:e.prev=9,e.t0=e.catch(0),i({name:H,status:"failed",error:e.t0}),p(!0),R(!1);case 14:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}();e()}),[i,H,q]);var z=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,l(!0),i({name:H,status:"updating"}),e.next=5,q(!0);case 5:i({name:H,status:"finished"}),p(!1),e.next=14;break;case 9:e.prev=9,e.t0=e.catch(0),i({name:H,status:"failed",error:e.t0}),p(!0),R(!1);case 14:return e.prev=14,l(!1),e.finish(14);case 17:case"end":return e.stop()}}),e,null,[[0,9,14,17]])})));return function(){return e.apply(this,arguments)}}();(0,Ee.useEffect)((function(){var e;B&&(null===(e=document.getElementById(B))||void 0===e||e.focus())}));var j=function(e,t,a,n,r,i,o){var c=vs().appAccessContent,s=vs().sharedContent,l=["s","m"].includes((0,gn.useViewport)()),d=c.listItem.header,u=Object.values(e),m=we().createElement(gn.SearchBox,{value:i,onChange:function(e,t){r(t||"")},"data-bi-id":"".concat(dm,".drawer-search-box"),id:"".concat(dm,".drawer-search-box"),"aria-label":s.searchBoxPlaceHolder}),p=function(e){var t=e.header;return l?we().createElement(gn.Stack,null,we().createElement(gn.StackItem,null,we().createElement(gn.Stack,null,we().createElement(gn.Text,{weightOverride:"semi-bold"},t))),we().createElement(gn.StackItem,{padding:"10px 16px 10px 0px"},!o&&m)):we().createElement(gn.SlotStack,{totalSlots:12},we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,{horizontal:!0,padding:"5px 0 0 0"},we().createElement(gn.Text,{weightOverride:"semi-bold"},t))),we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,{horizontal:!0,horizontalAlign:"end",childrenGap:"16px",padding:"0 16px 0 0"})),we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,{horizontal:!0,horizontalAlign:"end",padding:"0 16px 0 0"},!o&&m)))};return{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",header:a?we().createElement(Ud,{isRetrying:n,onRetryClick:t,prefix:dm,sharedContent:s}):0!==u.length||o?we().createElement(p,{header:d}):we().createElement(Fd,{prefix:dm,sharedContent:s})}}(P,z,m,s,(function(e){R(!0),b(e),T(e?P.filter((function(t){return t.name.toLowerCase().includes(e.toLowerCase())})):P),O("app-access-drawer-search-box"),R(!1)}),w,L),Q=[],X=we().createElement(gn.List,Object.assign({isAlwaysExpanded:!0},j),we().createElement(gn.ListItem,{key:"".concat(dm,".details-area.body-line-item"),id:"".concat(dm,".details-area.body-line-item"),variant:"Twelve",columns:[we().createElement(gn.TextColumn,{textElements:[{children:we().createElement(gn.RichText,{textWithTokens:t.noResultsFound,tokensAndValues:{0:we().createElement(gn.Text,{weightOverride:"bold"},w)}}),variant:"bodyPrimaryText"}]})]})),Y=we().createElement(gn.List,Object.assign({key:"".concat(dm,".details-list")},j),L?Array.from({length:5},(function(e,t){return we().createElement(gn.ListItem,{key:t,columns:[we().createElement(gn.MediaShimmerColumn,{mediaShimmerSize:16,shimmerLineProps:[{}]}),we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{}]})],variant:"EightFour"})})):C.map((function(e){return we().createElement(lm,{key:e.id,appItem:e,revokePermissionsCallback:W})})));Q=0===C.length&&""!==w?Q.concat(X):Q.concat(Y);var $=gd("appAccess","AppIconDefaultAdd",r.header,r.subtitle,f,r.dataCount);return we().createElement(gn.Stack,{id:"overview-appAccessActivity"},we().createElement(gn.ExpandedFeatureGroup,{key:"".concat(dm,"-efg"),drawerAreaProps:$,highlightArea:U,detailsArea:Q}))},pm=function(){var e="rtl"===window.document.dir?"ChevronRightSmall":"ChevronLeftSmall",t=vs().sharedContent,a=(0,Zt.useHistory)();return we().createElement(gn.ActionButton,{iconName:e,onClick:function(){return a.push("/")},text:t.backButtonText,"aria-label":t.backButtonLabel,"data-bi-id":"back-to-privacy"})},gm=(0,gn.listItemComponent)((function(e){var t,a=e.dataType,n=(0,Zt.useHistory)(),r=vs(),i=Bn(),o=(0,Ee.useState)(),c=(0,Fn.A)(o,2),s=c[0],l=c[1],d=r.sharedContent,u=r.landingContent.productivity,m="s"===(0,gn.useViewport)(),p="".concat(il,".").concat(a,"-line-item");(0,gn.useMount)((0,ys.A)(ws().mark((function e(){var t,n,r,o,c;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(m){e.next=24;break}e.t0=a,e.next="location"===e.t0?4:"browse"===e.t0?9:"usage"===e.t0?19:24;break;case 4:return e.next=6,jl("cardTypeFilter_location");case 6:return t=e.sent,l({children:Ws(t,d.activityCount,d,i.language),variant:"headerText"}),e.abrupt("break",24);case 9:return e.next=11,jl("cardTypeFilter_browse");case 11:return n=e.sent,e.next=14,jl("cardTypeFilter_search");case 14:return r=e.sent,o=Ws(n+r,d.activityCount,d,i.language),l({children:o,variant:"headerText"}),e.abrupt("break",24);case 19:return e.next=21,jl("cardTypeFilter_usage");case 21:return c=e.sent,l({children:Ws(c,d.activityCount,d,i.language),variant:"headerText"}),e.abrupt("break",24);case 24:case"end":return e.stop()}}),e)}))));var g="",h="",f="";switch(a){case"location":t="POI",g=u.locationTitle,h=u.locationDescription,f="location";break;case"browse":t="WebSearch",g=u.browsingTitle,h=u.browsingDescription,f="web-search";break;case"usage":t="Oem",g=u.appsTitle,h=u.appsDescription,f="apps-services";break;default:throw new Error("Drawer requested for unsupported data type")}var v=we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"icon",iconName:t},padding:"0",size:"sm",topAlign:!1,imagePadding:"0px"},subtitles:[{children:h,variant:"metadataText"}],title:g,titleTextVariant:"headerText",truncatedTitleTextProps:{lines:1},truncatedSubtitleTextProps:{lines:5}}),y={pageArea:i.areaPrefix,"aria-label":"".concat(g," ").concat(h),"data-bi-id":p,onClick:function(){return n.push(f)}};return we().createElement(gn.ListItem,{key:p,id:p,variant:"EightFour",columns:[v,we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",columnAlign:"end",textElements:s?[s]:[]})],"aria-label":h,onClickProps:y})})),hm=function(){var e=vs().appAccessContent.pageContent,t=na().sendPageViewEvent,a=e.body,n=[{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement("ul",{style:{padding:"4px 24px 0px"}},we().createElement("li",null,a.line1),we().createElement("li",null,a.line2),we().createElement("li",null,a.line3))),we().createElement(gn.Text,{children:a.line4}))}}];return Se((function(){t()})),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(Ru,{subPage:"app-access"}),we().createElement(gn.Stack,{childrenGap:"40px"},we().createElement(gn.Feature,{backgroundType:"flat",bodyText:n,featureHeading:{text:e.pageTitle,tag:"h2"},height:"small",imageProps:{src:"https://assets.account.microsoft.com/privacy/compassassets/app-access-main.svg",alt:""},layoutType:"2/3"})),we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.Text,{variant:"paneHeader",children:e.sectionTitle}),we().createElement(gn.Stack,{childrenGap:"10px"},we().createElement(mm,null)),we().createElement(gn.Text,{children:e.appAccessFooterNote}),we().createElement(gn.Text,{variant:"paneHeader",children:e.relatedSettings}),we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},we().createElement(gm,{dataType:"usage"}))),we().createElement(pm,null))},fm=(0,gn.listItemComponent)((function(){var e=(0,Zt.useHistory)(),t=vs(),a=Bn(),n=(0,Ee.useState)(),r=(0,Fn.A)(n,2),i=r[0],o=r[1],c="s"===(0,gn.useViewport)(),s="".concat(il,".app-access-line-item");(0,gn.useMount)((0,ys.A)(ws().mark((function e(){var n;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(c){e.next=5;break}return e.next=3,Hu();case 3:n=e.sent,o({children:Ws(n.applications.length,t.appAccessContent.drawer.drawerArea.dataCount,t.sharedContent,a.language),variant:"headerText"});case 5:case"end":return e.stop()}}),e)}))));var l=we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"icon",iconName:"Admin"},padding:"0",size:"sm",topAlign:!1,imagePadding:"0px"},subtitles:[{children:t.landingContent.productivity.appAccessDescription,variant:"metadataText"}],title:t.landingContent.productivity.appAccessTitle,titleTextVariant:"headerText",truncatedTitleTextProps:{lines:1},truncatedSubtitleTextProps:{lines:5}}),d={pageArea:a.areaPrefix,"aria-label":"".concat(t.landingContent.productivity.appAccessTitle," ").concat(t.landingContent.productivity.appAccessDescription),"data-bi-id":s,onClick:function(){return e.push("app-access")}};return we().createElement(gn.ListItem,{key:s,id:s,variant:"EightFour",columns:[l,we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",columnAlign:"end",textElements:i?[i]:[]})],"aria-label":t.landingContent.productivity.appAccessDescription,onClickProps:d})})),vm=function(){var e=vs(),t=na().sendPageViewEvent,a=e.appsServicesContent,n=a.pageContent.body,r=[{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement("ul",{style:{padding:"4px 16px 0px"}},we().createElement("li",null,n.line1),we().createElement("li",null,n.line2),we().createElement("li",null,n.line3)),we().createElement(gn.Hyperlink,{href:n.learnMoreUsageData.url,"aria-label":n.learnMoreUsageData.text,"data-bi-id":"learn-more-usage-data"},n.learnMoreUsageData.text),we().createElement(gn.RichText,{textWithTokens:n.windowsDiagnosticData,tokensAndValues:{0:we().createElement(gn.Hyperlink,{href:n.learnMoreDiagnosticData.url,"aria-label":n.learnMoreDiagnosticData.text,"data-bi-id":"learn-more-diagnostic-data"},n.learnMoreDiagnosticData.text)}}))}}],i=we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,{variant:"paneHeader",children:e.sharedContent.relatedSettings}),we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},we().createElement(fm,null)));return Se((function(){t()})),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(Ru,{subPage:"apps-services"}),we().createElement(gn.Feature,{backgroundType:"flat",bodyText:r,featureHeading:{text:a.pageContent.pageTitle,tag:"h2"},height:"small",imageProps:a.pageContent.image,layoutType:"2/3"}),we().createElement(gn.Text,{variant:"paneHeader",children:a.pageContent.sectionTitle}),we().createElement(gn.Stack,{childrenGap:"24px"},we().createElement(gn.Stack,{childrenGap:"10px"},we().createElement(Jd,{dataType:"usage"}),we().createElement(Jd,{dataType:"performance"})),i),we().createElement(pm,null))},ym=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,ka("".concat(Rs,"/copilot-activity/export/m365?scenario=").concat(e),{operation:"".concat(Ms,".COPILOTACTIVITY.EXPORT.M365")},{responseType:"blob"},{overrideRequestQosData:Cs([is.Unauthorized,is.UnavailableForLegalReasons])})];case 1:return t=a.sent(),[2,URL.createObjectURL(t.data)]}}))}))},Em="BingConsumerCopilot",wm="M365Copilot",bm=function(e){var t=e.dialogSource,a=t===Em?"bing-consumer-copilot.clear-all":"m365-copilot.clear-all",r=t===Em?"Bing.Consumer.Copilot.ClearAll":"M365.Copilot.ClearAll";ta(a);var i=(0,gn.useDialogController)(),o=ma(),c=vs(),s=c.copilotContent.clearAll.bingConsumer,l=c.sharedContent,d=(0,Ee.useState)(!1),u=(0,Fn.A)(d,2),m=u[0],p=u[1],g=function(){m||(Nt()&&It(),i.closeDialog())},h=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Dt({step:"Confirm"}),e.prev=1,Et("End"),o({name:r,status:"updating"}),p(!0),t!==Em){e.next=10;break}return e.next=8,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ps("".concat(Rs,"/copilot-activity/clear-all/bing-consumer"),"".concat(Ms,".COPILOTACTIVITY.CLEARALL.BINGCONSUMER"),{},{overrideRequestQosData:Cs([is.Unauthorized,is.UnavailableForLegalReasons])})];case 1:return e.sent(),[2]}}))}));case 8:e.next=13;break;case 10:if(t!==wm){e.next=13;break}return e.next=13,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ps("".concat(Rs,"/copilot-activity/delete/m365"),"".concat(Ms,".COPILOTACTIVITY.DELETE.M365"),{},{overrideRequestQosData:Cs([is.Unauthorized,is.UnavailableForLegalReasons])})];case 1:return e.sent(),[2]}}))}));case 13:o({name:r,status:"finished"}),p(!1),_t(),e.next=24;break;case 18:e.prev=18,e.t0=e.catch(1),Et(Tl),o({name:r,status:"failed"}),p(!1),Dt({step:Tl,error:Sl});case 24:case"end":return e.stop()}}),e,null,[[1,18]])})));return function(){return e.apply(this,arguments)}}();(0,gn.useMount)((function(){o({name:r,status:"inert"})}));var f=we().createElement(we().Fragment,null,we().createElement(gn.MessageBar,{messageBarType:"info",iconProps:{iconName:"ErrorBadge",color:"errorIcon"},messageContent:s.body.line1}),we().createElement(gn.MessageBar,{messageBarType:"info",iconProps:{iconName:"ErrorBadge",color:"errorIcon"},messageContent:s.body.line2})),v=we().createElement(gn.ProgressIndicator,{ariaValueText:s.clearInProgress,label:s.clearInProgress,labelTextVariant:"bodyPrimaryText"}),y=we().createElement(gn.MessageBar,{messageBarType:"info",iconProps:{iconName:"Completed",color:"successIcon"},messageContent:s.successBody.line1});return we().createElement(gn.Dialog,function(){var e={buttonPrimary:{onClick:h,text:l.clear,"aria-label":l.clear,"data-bi-id":"".concat(a,".clear")},buttonSecondary:{onClick:g,text:l.dontClear,"aria-label":l.dontClear,"data-bi-id":"".concat(a,".cancel")}};return{isOpen:!0,staticBodyWidth:"480px",closeButton:{"data-bi-id":"close-button","aria-label":l.cancelAriaLabel},title:s.title,onDismiss:g,stickyHeaderFooter:{hasStickyHeaderFooters:!0,forceStickyOnSmallScreens:!0},minBodyHeight:{height:45,unit:"vh"},dialogFooterProps:e,operationData:{progressViewOperationData:{operationName:r,componentName:a},errorDialogProps:{title:s.title,dialogFooterProps:e},successDialogProps:{title:s.successTitle,dialogFooterProps:{buttonPrimary:{onClick:function(){return i.closeDialog()},text:l.close,"aria-label":l.close,"data-bi-id":"".concat(a,".success.close")}}}}}}(),we().createElement(ha,{operationData:{operationName:r,componentName:a},inertView:f,updatingView:v,failedView:we().createElement(we().Fragment,null,f,we().createElement(gn.Text,{colorOverride:"error"},s.clearFailed)),finishedView:y}))},xm=function(){var e=Bn(),t=vs(),a=t.copilotContent.drawers.bingConsumer,r=t.sharedContent,i=(0,gn.useDialogController)(),o=(0,Ee.useRef)(null),c="bing-consumer-copilot-activity",s="".concat(c,"-drawer"),l=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a,r,i;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e;return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,ka("".concat(Rs,"/copilot-activity/export/bing-consumer"),{operation:"".concat(Ms,".COPILOTACTIVITY.EXPORT.BINGCONSUMER")},{responseType:"blob"},{overrideRequestQosData:Cs([is.Unauthorized,is.UnavailableForLegalReasons])})];case 1:return e=t.sent(),[2,URL.createObjectURL(e.data)]}}))}));case 3:t=e.sent,(a=document.createElement("a")).href=t,a.download="copilot-activity-history.csv",a.click(),URL.revokeObjectURL(t),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),(null===(r=e.t0.response)||void 0===r?void 0:r.status)===js?window.location.reload():null===(i=o.current)||void 0===i||i.showNotificationBar();case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),d={onClickToOpen:function(){return Us(!0,s,e.areaPrefix)},onClickToClose:function(){return Us(!1,s,e.areaPrefix)},defaultExpanded:!0,drawerHeader:we().createElement(gn.DrawerHeader,{totalSlots:12,chevronPosition:"end",columns:[{column:we().createElement(gn.DrawerHeaderTitle,{media:{size:"sm",image:{imageType:"icon",iconName:"Message"},padding:"0px 4px"},title:{kind:"text",weightOverride:"semi-bold",children:we().createElement(gn.Text,{variant:"headerText"},a.drawerArea.header)}}),slots:12}]})},u=we().createElement(gn.OneSegmentHighlightArea,{segment:we().createElement(gn.SlotStack,{totalSlots:12,padding:"0 16px"},we().createElement(gn.SlotStackItem,{slots:8},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.Text,null,a.highlightArea.bodyText.line1),we().createElement(gn.Text,null,a.highlightArea.bodyText.line2)))),backgroundColor:"neutralHigh"}),m=we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",isTabbable:!0,key:"".concat(c,"-list"),footer:{leftLinks:[{onClick:l,"data-bi-id":"".concat(c,".export"),"aria-label":a.detailsArea.text.export,id:"".concat(c,".export"),children:a.detailsArea.text.export}],rightLink:{onClick:function(){Pt({area:e.areaPrefix,scenario:"ClearAllBingConsumerCopilotActivity",step:"Index"}),i.openDialog(we().createElement(bm,{dialogSource:Em}))},"data-bi-id":"".concat(c,".clear-all"),"aria-label":a.detailsArea.text.clearAll,id:"".concat(c,".clear-all"),children:a.detailsArea.text.clearAll},shadow:!1,shouldRightLinkRightAligned:!0,type:"twocolumn"}}),p={message:r.tryAgainLongText,ariaMessage:r.tryAgainLongText,closeButton:{"aria-label":r.close,"data-bi-id":"".concat(c,".export-failed.close"),id:"".concat(c,".export-failed.close")},iconName:"Error",notificationBarType:"error"};return we().createElement(we().Fragment,null,we().createElement(gn.ExpandedFeatureGroup,{key:"".concat(c,"-drawer"),drawerAreaProps:d,highlightArea:u,detailsArea:m}),we().createElement(gn.NotificationBar,Object.assign({ref:o},p)))},km=function(){var e,t=Bn(),a=vs(),n=a.copilotContent.drawers.m365,r=a.sharedContent,i=null===(e=t.selfRights)||void 0===e?void 0:e.canManage,o=(0,gn.useDialogController)(),c=(0,Ee.useRef)(null),s="m365-copilot-activity-drawer",l="m365.cloud.microsoft/chat",d=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a,n,r;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ym("PrivacyDashboardMSALegacy");case 3:t=e.sent,(a=document.createElement("a")).href=t,a.download="copilot-in-Microsoft-365-apps-activity.csv",a.click(),URL.revokeObjectURL(t),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),(null===(n=e.t0.response)||void 0===n?void 0:n.status)===js?window.location.reload():null===(r=c.current)||void 0===r||r.showNotificationBar();case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),u=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a,n,r;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,ym("PrivacyDashboardMSA");case 3:t=e.sent,(a=document.createElement("a")).href=t,a.download="copilot-chat-activity.csv",a.click(),URL.revokeObjectURL(t),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),(null===(n=e.t0.response)||void 0===n?void 0:n.status)===js?window.location.reload():null===(r=c.current)||void 0===r||r.showNotificationBar();case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Pt({area:t.areaPrefix,scenario:"DeleteM365CopilotActivity",step:"Index"}),o.openDialog(we().createElement(bm,{dialogSource:wm}));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),p={onClickToOpen:function(){return Us(!0,s,t.areaPrefix)},onClickToClose:function(){return Us(!1,s,t.areaPrefix)},defaultExpanded:!0,drawerHeader:we().createElement(gn.DrawerHeader,{totalSlots:12,chevronPosition:"end",columns:[{column:we().createElement(gn.DrawerHeaderTitle,{media:{size:"sm",image:{imageType:"icon",iconName:"Message"},padding:"0px 4px"},title:{kind:"text",weightOverride:"semi-bold",children:we().createElement(gn.Text,{variant:"headerText"},n.drawerArea.combinedHeader)}}),slots:12}]})},g=we().createElement(gn.OneSegmentHighlightArea,{segment:we().createElement(gn.SlotStack,{totalSlots:12,padding:"0 16px"},we().createElement(gn.SlotStackItem,{slots:8},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.RichText,{textWithTokens:n.highlightArea.bodyText.combinedLine1,tokensAndValues:{0:we().createElement(gn.Hyperlink,{id:"m365-copilot-chat-link","aria-label":l,"data-bi-id":"".concat(s,".m365-copilot-chat-link"),href:"https://m365.cloud.microsoft/chat",children:l,target:"_blank"})}})))),backgroundColor:"neutralHigh"}),h={leftLinks:[{onClick:d,"data-bi-id":"".concat(s,".export-app-chat"),"aria-label":n.detailsArea.text.combinedExport,id:"".concat(s,".export-app-chat"),children:n.detailsArea.text.combinedExport},{onClick:u,"data-bi-id":"".concat(s,".export-biz-chat"),"aria-label":n.detailsArea.text.exportCopilotChat,id:"".concat(s,".export-biz-chat"),children:n.detailsArea.text.exportCopilotChat}],rightLink:{onClick:m,"data-bi-id":"".concat(s,".delete"),"aria-label":n.detailsArea.text.clearAll,id:"".concat(s,".delete"),children:n.detailsArea.text.clearAll},shadow:!1,shouldRightLinkRightAligned:!0,type:"twocolumn"},f=we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",isTabbable:!0,key:"".concat(s,".details-area"),footer:i?h:void 0}),v={message:r.tryAgainLongText,ariaMessage:r.tryAgainLongText,closeButton:{"aria-label":r.close,"data-bi-id":"".concat(s,".export-failed.close"),id:"".concat(s,".export-failed.close")},iconName:"Error",notificationBarType:"error"};return we().createElement(we().Fragment,null,we().createElement(gn.ExpandedFeatureGroup,{key:s,drawerAreaProps:p,highlightArea:g,detailsArea:f}),we().createElement(gn.NotificationBar,Object.assign({ref:c},v)))},Cm=function(){var e=Bn(),t=vs(),a=t.copilotContent.drawers.windowsApps,r=t.sharedContent,i=(0,Ee.useRef)(null),o="windows-apps-copilot-activity",c="".concat(o,"-drawer"),s=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a,r,o;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e;return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,ka("".concat(Rs,"/copilot-activity/export/windows-apps"),{operation:"".concat(Ms,".COPILOTACTIVITY.EXPORT.WINDOWSAPPS")},{responseType:"blob"},{overrideRequestQosData:Cs([is.Unauthorized,is.UnavailableForLegalReasons])})];case 1:return e=t.sent(),[2,URL.createObjectURL(e.data)]}}))}));case 3:t=e.sent,(a=document.createElement("a")).href=t,a.download="windows-apps-copilot-activity-history.csv",a.click(),URL.revokeObjectURL(t),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(0),(null===(r=e.t0.response)||void 0===r?void 0:r.status)===js?window.location.reload():null===(o=i.current)||void 0===o||o.showNotificationBar();case 14:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),l={onClickToOpen:function(){return Us(!0,c,e.areaPrefix)},onClickToClose:function(){return Us(!1,c,e.areaPrefix)},defaultExpanded:!0,drawerHeader:we().createElement(gn.DrawerHeader,{totalSlots:12,chevronPosition:"end",columns:[{column:we().createElement(gn.DrawerHeaderTitle,{media:{size:"sm",image:{imageType:"icon",iconName:"Message"},padding:"0px 4px"},title:{kind:"text",weightOverride:"semi-bold",children:we().createElement(gn.Text,{variant:"headerText"},a.drawerArea.header)}}),slots:12}]})},d=we().createElement(gn.OneSegmentHighlightArea,{segment:we().createElement(gn.SlotStack,{totalSlots:12,padding:"0 16px"},we().createElement(gn.SlotStackItem,{slots:8},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.Text,null,a.highlightArea.bodyText.line1)))),backgroundColor:"neutralHigh"}),u=we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",isTabbable:!0,key:"".concat(o,"-list"),footer:{links:[{onClick:s,"data-bi-id":"".concat(o,".export"),"aria-label":a.detailsArea.text.export,id:"".concat(o,".export"),children:a.detailsArea.text.export}],shadow:!1,type:"default"}}),m={message:r.tryAgainLongText,ariaMessage:r.tryAgainLongText,closeButton:{"aria-label":r.close,"data-bi-id":"".concat(o,".export-failed.close"),id:"".concat(o,".export-failed.close")},iconName:"Error",notificationBarType:"error"};return we().createElement(we().Fragment,null,we().createElement(gn.ExpandedFeatureGroup,{key:"".concat(o,"-drawer"),drawerAreaProps:l,highlightArea:d,detailsArea:u}),we().createElement(gn.NotificationBar,Object.assign({ref:i},m)))},Tm=function(){var e=na().sendPageViewEvent,t=vs().copilotContent,a=Qa("PrivCopilotWindows"),n=[{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{childrenGap:"12px"},we().createElement(gn.Text,null,t.pageContent.body.description),we().createElement(gn.Hyperlink,{href:"https://go.microsoft.com/fwlink/?linkid=2258769",children:t.pageContent.body.learnMoreLinkText,"aria-label":t.pageContent.body.learnMoreLinkText,"data-bi-id":"privacy-copilot-learnmore"}))}}];return(0,gn.useMount)((function(){e()})),we().createElement(gn.Stack,{childrenGap:"36px"},we().createElement(Ru,{subPage:"copilot"}),we().createElement(gn.Feature,{backgroundType:"flat",bodyText:n,featureHeading:{text:t.pageContent.title,tag:"h2"},height:"small",imageProps:{src:"".concat(Bl,"compassassets/ChatHistoryHighlight.svg"),alt:"","aria-hidden":!0},layoutType:"2/3"}),we().createElement(gn.Heading,{tag:"h2",variant:"paneTitle"},t.pageContent.activitySectionTitle),we().createElement(xm,null),we().createElement(km,null),a&&we().createElement(Cm,null),we().createElement(pm,null))},Sm=function(){var e=na().sendPageViewEvent,t=vs().locationContent.pageContent,a=[{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement("ul",{style:{padding:"4px 16px 0px"}},we().createElement("li",null,t.body.line1),we().createElement("li",null,t.body.line2),we().createElement("li",null,t.body.line3)),we().createElement(gn.Text,null,t.body.line4),we().createElement(gn.Hyperlink,{href:"https://go.microsoft.com/fwlink/p/?linkid=829163","aria-label":t.learnMore1LinkText,"data-bi-id":"learn-more-location-on-windows",target:"_blank"},t.learnMore1LinkText),we().createElement(gn.Hyperlink,{href:"https://go.microsoft.com/fwlink/?linkid=859822","aria-label":t.learnMore2LinkText,"data-bi-id":"learn-more-location-data-on-privacy-dashboard",target:"_blank"},t.learnMore2LinkText))}}];return(0,gn.useMount)((function(){e()})),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(Ru,{subPage:"location"}),we().createElement(gn.Feature,{backgroundType:"flat",bodyText:a,featureHeading:{text:t.title,tag:"h2"},height:"small",imageProps:{src:"https://assets.account.microsoft.com/privacy/compassassets/LocationFeature.svg",alt:""},layoutType:"2/3"}),we().createElement(gn.Text,{variant:"paneHeader",children:t.sectionHeader}),we().createElement(Jd,{dataType:"location"}),we().createElement(gn.Text,{variant:"bodySecondaryText",children:t.sectionFooter}),we().createElement(pm,null))},Am=function(){var e=(0,gn.useDialogController)(),t=vs(),a=t.peopleSuggestionsContent.importDrawer.dialogContent,r=t.sharedContent,i=ma(),o="imported-contacts.clear-all",c="imported.Contacts.ClearAll",s=(0,Ee.useState)(!1),l=(0,Fn.A)(s,2),d=l[0],u=l[1],m=function(){d||e.closeDialog()},p=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Dt({step:"Confirm"}),i({name:o,status:"updating"}),u(!0),e.prev=3,e.next=6,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ps("".concat(Rs,"/people-suggestions/people-data"),"".concat(Ms,".PEOPLESUGGESTIONS.DELETEPEOPLEDATAASYNC"),{},{overrideRequestQosData:vu})];case 1:return[2,e.sent()]}}))}));case 6:i({name:o,status:"finished"}),u(!1),e.next=15;break;case 10:e.prev=10,e.t0=e.catch(3),i({name:o,status:"failed"}),u(!1),Dt({step:Tl,error:Sl});case 15:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}();(0,gn.useMount)((function(){i({name:o,status:"inert"})}));var g=we().createElement(gn.MessageBar,{messageBarType:"info",iconProps:{iconName:"ErrorBadge",color:"errorIcon"},messageContent:a.description}),h=we().createElement(gn.ProgressIndicator,{ariaValueText:a.clearInProgress,label:a.clearInProgress,labelTextVariant:"bodyPrimaryText"}),f=we().createElement(gn.MessageBar,{messageBarType:"info",iconProps:{iconName:"Completed",color:"successIcon"},messageContent:a.successMessage});return we().createElement(gn.Dialog,function(){var t={buttonPrimary:{onClick:p,text:r.clear,"aria-label":r.clear,"data-bi-id":"".concat(c,".clear"),disabled:d},buttonSecondary:{onClick:m,text:r.dontClear,"aria-label":r.dontClear,"data-bi-id":"".concat(c,".cancel"),disabled:d}};return{isOpen:!0,staticBodyWidth:"480px",closeButton:{"data-bi-id":"close-button","aria-label":r.cancelAriaLabel},title:a.header,onDismiss:m,dialogFooterProps:t,operationData:{progressViewOperationData:{operationName:o,componentName:c},errorDialogProps:{title:a.header,dialogFooterProps:t},successDialogProps:{title:a.successTitle,dialogFooterProps:{buttonPrimary:{onClick:function(){return e.closeDialog()},text:r.close,"aria-label":r.close,"data-bi-id":"".concat(c,".success.close")}}}}}}(),we().createElement(ha,{operationData:{operationName:o,componentName:c},inertView:g,updatingView:h,failedView:we().createElement(we().Fragment,null,g,we().createElement(gn.Text,{colorOverride:"error"},r.tryAgainLongText)),finishedView:f}))},Pm="imported-contacts-drawer",Dm=function(){var e=vs(),t=Bn(),a=t.areaPrefix,r=t.userEmail,i=(0,Ee.useRef)(null),o=Qa("PrivImportDeleteContacts"),c=e.peopleSuggestionsContent.importDrawer,s=e.sharedContent,l="imported-contacts",d=c.drawerArea.header,u=(0,gn.useDialogController)(),m=Bn(),p=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Pt({area:m.areaPrefix,scenario:"DownloadImportedContacts",step:"Index"}),e.next=3,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ts("".concat(Rs,"/people-suggestions/contacts/imported"),"".concat(Ms,".PEOPLESUGGESTIONS.GETIMPORTEDCONTACTSASYNC"),{},{overrideRequestQosData:vu})];case 1:return[2,e.sent()]}}))})).then((function(e){var t=URL.createObjectURL(new Blob([e],{type:"text/csv"})),a=document.createElement("a");a.href=t,a.download="ImportedContacts.csv",a.click(),URL.revokeObjectURL(t)})).catch((function(e){var t,a;(null===(t=e.response)||void 0===t?void 0:t.status)===js?window.location.reload():null===(a=i.current)||void 0===a||a.showNotificationBar()}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Pt({area:m.areaPrefix,scenario:"DeleteImportedContacts",step:"Index"}),u.openDialog(we().createElement(Am,null));case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),h={column:we().createElement(gn.DrawerHeaderTitle,{media:{size:"sm",image:{imageType:"icon",iconName:"Sync"},padding:"0px 4px"},title:{children:d,kind:"text",nowrap:!0,weightOverride:"semi-bold"}}),slots:12},f={onClickToOpen:function(){return Us(!0,Pm,a)},onClickToClose:function(){return Us(!1,Pm,a)},defaultExpanded:!0,drawerHeader:we().createElement(gn.DrawerHeader,{chevronPosition:"end",columns:[h],minHeight:"68px",totalSlots:12})},v=we().createElement(gn.OneSegmentHighlightArea,{segment:we().createElement(gn.SlotStack,{totalSlots:12,padding:"0 16px"},we().createElement(gn.SlotStackItem,{slots:12},we().createElement(gn.Stack,null,we().createElement(gn.Stack,{padding:"8px 0 0 16px"},we().createElement("ul",{style:{padding:"8px 16px 0px",margin:0}},we().createElement("li",null,we().createElement(gn.Text,null,c.highlightArea.line1)),we().createElement("li",null,we().createElement(gn.Text,null,c.highlightArea.line2)))),we().createElement(gn.Stack,{padding:"16px 0 0 0",horizontalAlign:"start"},we().createElement(gn.Hyperlink,{href:"https://support.microsoft.com/office/sync-your-contacts-in-microsoft-teams-free-313a0ecd-6d3d-4645-9db2-92762be9618a","aria-label":c.highlightArea.link,"data-bi-id":"learn-more-manage-imported-contacts",target:"_blank"},c.highlightArea.link))))),backgroundColor:"neutralHigh"}),y={leftLinks:[{onClick:p,"data-bi-id":"".concat(Pm,".export"),"aria-label":c.detailsLinks.detailsLink1,id:"".concat(l,".export"),children:c.detailsLinks.detailsLink1}],shadow:!1,shouldRightLinkRightAligned:!0,type:"twocolumn"};o&&(y.rightLink={onClick:g,"data-bi-id":"".concat(l,".delete"),"aria-label":c.detailsLinks.detailsLink2,id:"".concat(l,".delete"),children:c.detailsLinks.detailsLink2});var E=we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!1,listItemBackgroundColor:"neutralMed",isTabbable:!0,key:"".concat(Pm,"-list"),footer:y}),w={message:s.tryAgainLongText,ariaMessage:s.tryAgainLongText,closeButton:{"aria-label":s.close,"data-bi-id":"".concat(Pm,".download-failed.close"),id:"".concat(Pm,".download-failed.close")},iconName:"Error",notificationBarType:"error"},b={highlightArea:v,detailsArea:E};return r?we().createElement(we().Fragment,null,we().createElement(gn.ExpandedFeatureGroup,Object.assign({drawerAreaProps:f},b)),we().createElement(gn.NotificationBar,Object.assign({ref:i},w))):null},Im=function(){var e=vs(),t=na().sendPageViewEvent,a=e.peopleSuggestionsContent.pageContent,n=Qa("PrivImportDeviceContacts"),r=[{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement("ul",{style:{padding:"4px 16px 0px"}},we().createElement("li",null,a.body.line1),we().createElement("li",null,a.body.line2),n&&we().createElement("li",null,a.body.line3)),we().createElement(gn.Hyperlink,{href:"https://go.microsoft.com/fwlink/?linkid=2224658","aria-label":a.learnMoreLinkText,"data-bi-id":"learn-more-manage-contacts",target:"_blank"},a.learnMoreLinkText))}}];return(0,gn.useMount)((function(){t()})),we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(Ru,{subPage:"people-suggestions"}),we().createElement(gn.Feature,{backgroundType:"flat",bodyText:r,featureHeading:{text:a.title,tag:"h2"},height:"small",imageProps:{src:"".concat(Bl,"PeopleSuggestions.svg"),alt:""},layoutType:"2/3"}),we().createElement(gn.Text,{variant:"paneHeader",children:a.sectionHeader}),we().createElement(wu,{isL2:!0}),n&&we().createElement(Dm,null),we().createElement(pm,null))},_m=function(){var e=na().sendPageViewEvent,t=vs().spellingTextContent.pageContent,a=[{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement("ul",{style:{padding:"4px 16px 0px"}},we().createElement("li",null,t.body.line1),we().createElement("li",null,t.body.line2)),we().createElement(gn.Text,null,t.body.line3))}}];return(0,gn.useMount)((function(){e()})),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(Ru,{subPage:"spelling-text"}),we().createElement(gn.Feature,{backgroundType:"flat",bodyText:a,featureHeading:{text:t.title,tag:"h2"},height:"small",imageProps:{src:"".concat(Bl,"SpellingText.svg"),alt:""},layoutType:"2/3"}),we().createElement(gn.Text,{variant:"paneHeader",children:t.sectionHeader}),we().createElement(Vl,{isL2:!0}),we().createElement(pm,null))},Lm=function(){var e=vs(),t=na().sendPageViewEvent,a=e.webSearchContent,n=Object.values(a.pageContent.bodyText),r=(0,Ee.useRef)(null),i=n.map((function(e,t){return 0===t||t===n.length-1?{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{padding:"10px 0px"},e)}}:{textWithTokens:"{0}",tokensAndValues:{0:we().createElement("ul",{style:{padding:"4px 24px 0px"}},we().createElement("li",null,e))}}}));return Se((function(){t()})),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(Ru,{subPage:"web-search"}),we().createElement(gn.Stack,{childrenGap:"40px"},we().createElement(gn.Feature,{backgroundType:"flat",bodyText:i,featureHeading:{text:a.pageContent.title,tag:"h2"},height:"small",imageProps:a.pageContent.image,layoutType:"2/3"})),we().createElement(gn.Text,{variant:"paneHeader",children:a.pageContent.webSearchSectionTitle}),we().createElement(gn.Stack,{childrenGap:"24px"},we().createElement(gn.Stack,{childrenGap:"10px"},we().createElement(Jd,{dataType:"browse"}),we().createElement(Jd,{ref:r,dataType:"search"}))),we().createElement(pm,null))},Rm=function(){var e=vs().adSettingsContent.devices,t=e.deviceList.winEleven,a=e.deviceList.winTen,n={gear:we().createElement(gn.Icon,{iconName:"Settings",size:"16px"}),lock:we().createElement(gn.Icon,{iconName:"Lock",size:"16px"}),winlogo:we().createElement(gn.Icon,{iconName:"WindowsLogo",size:"16px"}),shield:we().createElement(gn.Icon,{iconName:"Shield",size:"16px"}),privacySecurity:we().createElement(gn.Text,{weightOverride:"bold"},t.tokens.privacySecurity),general:we().createElement(gn.Text,{weightOverride:"bold"},t.tokens.general),privacy:we().createElement(gn.Text,{weightOverride:"bold"},a.tokens.privacy),settings:we().createElement(gn.Text,{weightOverride:"bold"},a.tokens.settings),start:we().createElement(gn.Text,{weightOverride:"bold"},a.tokens.start),winElevenText:we().createElement(gn.Text,{weightOverride:"bold"},t.tokens.adID),winTenText:we().createElement(gn.Text,{weightOverride:"bold"},a.tokens.adID)};return we().createElement(we().Fragment,null,we().createElement(gn.Stack,{childrenGap:"5px",padding:"40px 0px 30px 0px"},we().createElement(gn.Heading,{tag:"h2",variant:"paneTitle"},e.title),we().createElement(gn.Text,null,e.description)),we().createElement(gn.List,{isAlwaysExpanded:!0,shadow:!0,roundedCorners:!0,showDivider:!1,listItemBackgroundColor:"neutralMed"},Object.values(e.deviceList).map((function(t){var a={kind:"text",children:t.question,nowrap:!1,"aria-label":"".concat(e.title," ").concat(t.question)};return we().createElement(gn.Drawer,{borderRadius:"0px",drawerContentPadding:"16px 16px 16px 42px",drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:a}),slots:12}],totalSlots:12}),key:t.question,isListItem:!0},we().createElement(gn.Stack,{childrenGap:"20px"},Object.values(t.answer).map((function(e){return we().createElement(gn.RichText,{textWithTokens:e,tokensAndValues:n,key:e})}))))}))))},Nm=function(e){var t=e.signedIn,a=vs(),n=Bn(),r=t?ul:gl,i=a.adSettingsContent.faq,o=i.links,c={privacyStatement:we().createElement(gn.Hyperlink,{href:o.privacyStatementLink,"data-bi-id":"".concat(r,".privacy-statement"),"aria-label":i.tokens.privacyStatement,target:"_blank"},i.tokens.privacyStatement),verizonMedia:we().createElement(gn.Hyperlink,{href:o.verizonMediaLink,"data-bi-id":"".concat(r,".verizon-media"),"aria-label":i.tokens.verizonMedia,target:"_blank"},i.tokens.verizonMedia),xandr:we().createElement(gn.Hyperlink,{href:o.xandrLink,"data-bi-id":"".concat(r,".xandr"),"aria-label":i.tokens.xandr,target:"_blank"},i.tokens.xandr),interestAds:we().createElement(gn.Text,{weightOverride:"bold"},i.tokens.interestAds),browserAds:we().createElement(gn.Text,{weightOverride:"bold"},i.tokens.browserAds),daa:we().createElement(gn.Hyperlink,{href:o.daaLink,"data-bi-id":"".concat(r,".digital-advertising-alliance"),"aria-label":i.tokens.daa,target:"_blank"},i.tokens.daa),edaa:we().createElement(gn.Hyperlink,{href:o.edaaLink,"data-bi-id":"".concat(r,".european-interactive-digital-advertising-alliance"),"aria-label":i.tokens.edaa,target:"_blank"},i.tokens.edaa),daac:we().createElement(gn.Hyperlink,{href:o.daacLink,"data-bi-id":"".concat(r,".digital-advertising-alliance-of-canada"),"aria-label":i.tokens.daac,target:"_blank"},i.tokens.daac),microsoftEdge:we().createElement(gn.Text,{weightOverride:"bold"},i.tokens.microsoftEdge),settings:we().createElement(gn.Text,{weightOverride:"bold"},i.tokens.settings),privacySearchServices:we().createElement(gn.Text,{weightOverride:"bold"},i.tokens.privacySearchServices),learnMoreLink:we().createElement(gn.Hyperlink,{href:o.learnMoreLink,"data-bi-id":"".concat(r,".learn-more"),"aria-label":i.tokens.learnMoreLinkAriaLabel,target:"_blank"},i.tokens.learnMoreLink),amcProfileLink:we().createElement(gn.Hyperlink,{href:o.amcProfileLink,"data-bi-id":"".concat(r,".amc-profile"),"aria-label":i.tokens.amcProfileLink},i.tokens.amcProfileLink),yahoo:we().createElement(gn.Hyperlink,{href:o.yahooLink,"data-bi-id":"".concat(r,".yahoo"),"aria-label":i.tokens.yahoo,target:"_blank"},i.tokens.yahoo),learnMorePOWindows:we().createElement(gn.Hyperlink,{href:o.learnMorePOWindowsLink,"data-bi-id":"".concat(r,".poWindows"),"aria-label":i.tokens.learnMorePOWindows,target:"_blank"},i.tokens.learnMorePOWindows),newLine:we().createElement(we().Fragment,null,we().createElement("br",null),we().createElement("br",null))},s=function(e){return!e.selfRights||0===Object.keys(e.selfRights).length||e.selfRights.canManage}(n)?t?a.adSettingsContent.signedInPOContent.faqPO:a.adSettingsContent.signedOutPOContent.faqPO:a.adSettingsContent.underage.faq,l=[];return Object.values(s).forEach((function(e){l.push(e)})),we().createElement(we().Fragment,null,we().createElement(gn.Stack,{id:"FAQ",padding:"32px 0 0 0"},we().createElement(gn.List,{isAlwaysExpanded:!0,header:we().createElement(gn.Stack,null,we().createElement(gn.Heading,{tag:"h2",variant:"paneTitle"},a.adSettingsContent.faq.header)),shadow:!0,showDivider:!1,showDefaultHeaderDivider:!0,roundedCorners:!0,listItemBackgroundColor:"neutralMed"},l.map((function(e){var t={kind:"text",children:e.question,nowrap:!1,"aria-label":"".concat(a.adSettingsContent.faq.header," ").concat(e.question)};return we().createElement(gn.Drawer,{borderRadius:"0px",drawerContentPadding:"16px 16px 16px 42px",drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:t}),slots:12}],totalSlots:12}),key:e.question,isListItem:!0},we().createElement(gn.Stack,{childrenGap:"20px"},Object.values(e.answer).map((function(e){return we().createElement(gn.RichText,{textWithTokens:e,tokensAndValues:c,key:e,"aria-label":e})}))))})))))},Mm=function(){var e=vs().adSettingsContent,t=e.underage,a=e.titleNew;return we().createElement(we().Fragment,null,we().createElement(gn.Announced,{message:a,ariaLive:"assertive"}),we().createElement(Ru,{subPage:Dl}),we().createElement(gn.Stack,{childrenGap:"20px",id:"cannot-manage-view"},we().createElement(gn.Feature,{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"}),we().createElement(gn.Feature,{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"}),we().createElement(gn.Feature,{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"})))},Bm=function(e){var t=e.signedIn,a=Bn(),n=vs().adSettingsContent,r=na().sendPageViewEvent;return Se((function(){t&&r()})),we().createElement(gn.Stack,{id:"ad-settings"},t&&!a.selfRights.canManageAdSettings?we().createElement(Mm,null):we().createElement(we().Fragment,null,we().createElement(gn.Announced,{message:n.titleNew,ariaLive:"assertive"}),we().createElement(gn.Stack,null,we().createElement(Ru,{subPage:t?Dl:Il,useInAppNavigation:t}),we().createElement(hu,{signedIn:t})),we().createElement(Rm,null)),we().createElement(Nm,{signedIn:t}))},Om={},Fm=[is.Unauthorized],Vm=Cs(Fm),Um=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,nn(Om,"ChildrenDataAndProfilePictures",Hm)];case 1:return[2,e.sent()]}}))}))},Hm=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,Ts("".concat(Rs,"/children"),"".concat(Ms,".GETCHILDREN"),{},{overrideRequestQosData:Vm})];case 1:return(e=a.sent())?[4,zn("MSGraphUserReadAll")]:[3,4];case 2:return t=a.sent(),[4,Promise.all(e.map((function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var a,r;return(0,n.__generator)(this,(function(i){switch(i.label){case 0:return[4,Jn({accessToken:t.token,userId:null!==(r=e.puidAsHex)&&void 0!==r?r:""})];case 1:return a=i.sent(),[2,(0,n.__assign)((0,n.__assign)({},e),{profilePictureUrl:a.url})]}}))}))})))];case 3:return[2,a.sent()];case 4:return[2,[]]}}))}))},Gm=function(e){var t=e.children,a=(0,Zt.useHistory)(),n=vs().familyContent,r=Bn().areaPrefix;return we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.Heading,{tag:"h2"},n.activity.othersTitle),we().createElement(gn.Text,null,n.activity.othersDescription),we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0},t.map((function(e){return we().createElement(gn.ListItem,{key:e.cid,id:e.cid,variant:"SixSix",columns:[we().createElement(gn.PersonaTitleColumn,{personaProps:{imageUrl:e.profilePictureUrl,size:"32"},title:e.displayName}),we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",textElements:[]})],onClickProps:{pageArea:r,"aria-label":Le(n.overview.listItemAriaLabel,e.displayName),"data-bi-id":"childactivity.familymembers.child",onClick:function(){return t=e.cid,td(),void a.push("/child/".concat(t));var t}}})}))))},qm=function(){var e,t="child-activity",a="childactivity.children.get",n=ma(),r=vs(),i=na().sendPageViewEvent,o=r.familyContent.activity,c=r.sharedContent,s=(0,Zt.useHistory)(),l=(0,Zt.useRouteMatch)().path,d=null===(e=(0,Zt.useRouteMatch)("".concat(l)))||void 0===e?void 0:e.params,u=(0,Ee.useState)(),m=(0,Fn.A)(u,2),p=m[0],g=m[1],h=(0,Ee.useState)([]),f=(0,Fn.A)(h,2),v=f[0],y=f[1];(0,Ee.useEffect)((function(){var e=function(){var e=(0,ys.A)(ws().mark((function e(){var t,r,i;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,n({name:a,status:"first-load"}),e.next=4,Um();case 4:(t=e.sent)?((r=t.find((function(e){return e.cid===(null===d||void 0===d?void 0:d.memberId)})))?g(r):s.push("/"),(i=t.filter((function(e){return e.cid!==(null===d||void 0===d?void 0:d.memberId)})))&&y(i)):s.push("/"),n({name:a,status:"finished"}),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(0),n({name:a,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===d||void 0===d?void 0:d.memberId,n,s]),Se((function(){i()}));var E=we().createElement(gn.ShimmerProgressView,{operationData:{componentName:t,operationName:a},firstLoadView:we().createElement(gn.Banner,null,we().createElement(gn.BannerTitleColumnShimmer,null)),finishedView:we().createElement(Ru,{subPage:Ll,member:p}),failedView:we().createElement(we().Fragment,null)}),w=we().createElement(gn.ShimmerProgressView,{operationData:{componentName:t,operationName:a},firstLoadView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.DrawerShimmer,null),we().createElement(gn.DrawerShimmer,null),we().createElement(gn.DrawerShimmer,null),we().createElement(gn.DrawerShimmer,null)),finishedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(Jd,{dataType:"location",key:"location",child:p}),we().createElement(Jd,{dataType:"browse",key:"browse",child:p}),we().createElement(Jd,{dataType:"search",key:"search",child:p}),we().createElement(Jd,{dataType:"usage",key:"usage",child:p})),failedView:we().createElement(we().Fragment,null)});return we().createElement(gn.Stack,{childrenGap:"24px"},we().createElement(gn.Stack,{childrenGap:"16px"},E,we().createElement(gn.Text,null,o.pageDescription),we().createElement(gn.Heading,{tag:"h2"},o.introTitle),we().createElement(gn.RichText,{textWithTokens:o.introDescription,tokensAndValues:{0:we().createElement(gn.Hyperlink,{target:"_blank",href:o.learnMoreLink.url,"data-bi-id":"child-activity-learn-more","aria-label":o.learnMoreLink.text},o.learnMoreLink.text)}}),w),we().createElement(gn.Feature,{backgroundType:"card",bodyText:{textWithTokens:"{0}{1}{2}",tokensAndValues:{0:we().createElement(gn.Text,null,o.adsDescription),1:we().createElement("br",null),2:we().createElement(gn.Hyperlink,{target:"_blank",href:o.adsFaqLink.url,"data-bi-id":"child-activity-faq","aria-label":o.adsFaqLink.text},o.adsFaqLink.text)}},imageProps:{alt:o.adsImage.alt,src:o.adsImage.src},featureHeading:{tag:"h2",text:o.adsTitle},ctaProps:[{actionProps:{kind:"toggle",onChange:function(){},offText:c.toggleOff,disabled:!0,"aria-label":"","data-bi-id":"",checked:!1}}]}),v.length>0?we().createElement(Gm,{children:v}):null)},Wm="getArchivesList",zm=function(e){var t=vs().exportContent,a=ma(),n="LoadArchives";Se((0,ys.A)(ws().mark((function t(){return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({name:n,status:"first-load"}),t.next=3,e.getArchives().then((function(){a({name:n,status:"finished"})})).catch((function(e){var t;if((null===(t=e.response)||void 0===t?void 0:t.status)===js)return a({name:n,status:"finished"}),void window.location.reload();a({name:n,status:"failed"})}));case 3:case"end":return t.stop()}}),t)}))));var r=we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{width:"95%"}]}),i=we().createElement(gn.ListItem,{variant:"ThreeThreeThreeThree",columns:[r,r,r,r]});return we().createElement(gn.Stack,{childrenGap:5,padding:"12px 0 25px 0"},we().createElement(gn.Heading,{block:!0,tag:"h2",variant:"paneTitle"},t.archiveHeader),we().createElement(gn.Stack,{childrenGap:12},we().createElement(gn.RichText,{textWithTokens:"{0} {1}",tokensAndValues:{0:we().createElement(gn.Text,null,t.archiveDescription),1:we().createElement(gn.Hyperlink,{"aria-label":t.learnMoreText,"data-bi-id":"learn-more-link",href:"https://go.microsoft.com/fwlink/?linkid=2273307",target:"_blank"},t.learnMoreText?t.learnMoreText:"")}}),we().createElement(gn.ShimmerProgressView,{operationData:{operationName:n,componentName:Wm},firstLoadView:we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},[i,i]),finishedView:0===e.archiveList.data.length?we().createElement(gn.RichText,{textWithTokens:t.archiveColdStateRichText.text,tokensAndValues:{"create-archive":we().createElement(gn.Text,{variant:"headerText"},t.archiveColdStateRichText.createArchiveToken)}}):we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},e.archiveList.data.map((function(e,t){return we().createElement(gn.ListItem,Object.assign({},e,{key:"archive-list-elem-".concat(t)}))}))),failedView:we().createElement(gn.Text,null,t.getArchiveListFailed)})))},jm="loadArchives",Qm=[is.Conflict],Xm=Cs(Qm),Ym=function(e){return void 0===e&&(e=!1),(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,Is(e,jm,"".concat(Rs,"/export/archives"),"".concat(Ms,".GETEXPORTHISTORY"))];case 1:return(t=a.sent()).archives.some((function(e){return!e.isComplete||e.isFailed}))&&_s(jm),[2,$m(t)]}}))}))},$m=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}))}},Km=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,Ss("".concat(Rs,"/export/archives"),"".concat(Ms,".CREATEARCHIVE"),e,{},{overrideRequestQosData:Xm})];case 1:return t.sent(),[2]}}))}))},Jm=function(e,t){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,Ps("".concat(Rs,"/export/archives?exportId=").concat(e,"&exportType=").concat(t),"".concat(Ms,".DELETEARCHIVE"),{data:{exportId:e,exportType:t}},{overrideRequestQosData:Cs([is.Unauthorized])})];case 1:return a.sent(),[2]}}))}))},Zm=function(e){Te((function(){e.setDataTypeStates({usage:!0,browse:!0,location:!0,search:!0})})),Se((function(){e.setDataTypeStates({usage:!0,browse:!0,location:!0,search:!0})}));var t=vs().exportContent.createDialog,a=[];return zs.forEach((function(n){a.push({"aria-label":t.dataTypesAriaLabels[n],checked:e.dataTypeStates[n],"data-bi-id":"".concat(sl,".").concat(n,"-checkbox"),label:t.dataTypes[n],onChange:function(){!function(t){var a={usage:e.dataTypeStates.usage,browse:e.dataTypeStates.browse,location:e.dataTypeStates.location,search:e.dataTypeStates.search};a[t]=!e.dataTypeStates[t],e.setDataTypeStates(a)}(n)}})})),we().createElement(gn.Stack,{childrenGap:16},a.map((function(e,t){return we().createElement(gn.Checkbox,Object.assign({},e,{key:"archive-dialog-checkbox-".concat(t)}))})),we().createElement(gn.Stack,{maxWidth:"428px"},we().createElement(gn.Text,null,t.description)))},ep=function(e){var t=vs().exportContent,a=ma(),n="PostArchivesInDialog",r={dataTypeStates:e.dataTypeState,setDataTypeStates:e.setDataTypeState},i=zs.some((function(t){return e.dataTypeState[t]})),o=function(){It(),setTimeout((function(){e.setDialogState(!1)}))},c=function(){var t=(0,ys.A)(ws().mark((function t(){var r,i,o;return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a({name:n,status:"updating"}),r=zs.filter((function(t){return e.dataTypeState[t]})),i=(0,Ul.A)({},rd,r.join(";")),t.prev=3,t.next=6,e.makePostCall();case 6:a({name:n,status:"finished"}),_t({data:i}),t.next=19;break;case 10:if(t.prev=10,t.t0=t.catch(3),(null===(o=t.t0.response)||void 0===o?void 0:o.status)!==js){t.next=17;break}return a({name:n,status:"finished"}),It({data:"scenario canceled due to reload on 401"}),window.location.reload(),t.abrupt("return");case 17:a({name:n,status:"failed",error:t.t0}),_t({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)}}(),s={title:t.createDialog.header,subText:t.createDialog.selectData,dialogFooterProps:{buttonPrimary:{id:"create-archive-dialog-button",onClick:c,text:t.createDialog.createButton,"aria-label":t.createDialog.createButtonAriaLabel,"data-bi-id":"".concat(sl,".create-archive"),disabled:!i},buttonSecondary:{onClick:function(){o()},text:t.createDialog.cancelButton,"aria-label":t.createDialog.cancelButtonAriaLabel,"data-bi-id":"".concat(sl,".cancel")}}},l=(0,On.A)((0,On.A)({},s),{},{isOpen:e.showDialog,onDismiss:function(){o()},closeButton:{"data-bi-id":"close","aria-label":t.createDialog.closeButtonAriaLabel},operationData:{progressViewOperationData:{operationName:n,componentName:"createArchiveDialog"},errorDialogProps:s}});return we().createElement(gn.Dialog,l,we().createElement(gn.Stack,{childrenGap:24},we().createElement(gn.StackItem,null,we().createElement(Zm,r))))},tp=function(e){var t=e.showDialog,a=e.makeDeleteCall,n=e.setDialogState,r=vs().exportContent.deleteDialog,i=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),o=function(){n(!1),It()},c={buttonPrimary:{onClick:function(){i()},text:r.deleteButton,"aria-label":r.deleteButtonAriaLabel,"data-bi-id":"".concat(ll,".delete-archive")},buttonSecondary:{onClick:function(){o()},text:r.cancelButton,"aria-label":r.cancelButtonAriaLabel,"data-bi-id":"".concat(ll,".cancel")}},s={title:r.header,isOpen:t,onDismiss:function(){o()},closeButton:{"data-bi-id":"".concat(ll,".close"),"aria-label":r.closeButtonAriaLabel},dialogFooterProps:c};return we().createElement(gn.Dialog,s,we().createElement(gn.Stack,null,we().createElement(gn.Text,{variant:"bodyPrimaryText"},r.description)))},ap=function(e){var t,a=vs().exportContent,n=function(){e.setDialogErrorState({dialogState:!1,dialogInFocus:null})};if("in-progress"===e.dialogErrorState.dialogInFocus)t={isOpen:e.dialogErrorState.dialogState,onDismiss:n,title:a.inProgressDialog.header,subText:a.inProgressDialog.description,closeButton:{"data-bi-id":"close","aria-label":a.inProgressDialog.closeAriaLabel},dialogFooterProps:{buttonPrimary:{id:"archive-in-progress-dialog-close-button",onClick:n,text:a.inProgressDialog.button,"aria-label":a.inProgressDialog.closeAriaLabel,"data-bi-id":"".concat(sl,".in-progress.cancel")}}};else if("too-many-requests"===e.dialogErrorState.dialogInFocus)t={isOpen:e.dialogErrorState.dialogState,onDismiss:n,title:a.timeoutDialog.header,subText:a.timeoutDialog.description,closeButton:{"data-bi-id":"close","aria-label":a.timeoutDialog.closeAriaLabel},dialogFooterProps:{buttonPrimary:{id:"too-many-requests-dialog-close-button",onClick:n,text:a.timeoutDialog.button,"aria-label":a.timeoutDialog.closeAriaLabel,"data-bi-id":"".concat(sl,".too-many-requests.close")}}};else{if("create-archive-failed"!==e.dialogErrorState.dialogInFocus)return null;t={isOpen:e.dialogErrorState.dialogState,onDismiss:n,title:a.createFailedDialog.header,subText:a.createFailedDialog.description,closeButton:{"data-bi-id":"close","aria-label":a.createFailedDialog.closeAriaLabel},dialogFooterProps:{buttonPrimary:{id:"create-archive-failed-dialog-close-button",onClick:n,text:a.createFailedDialog.button,"aria-label":a.createFailedDialog.closeAriaLabel,"data-bi-id":"".concat(sl,".failed.close")}}}}return we().createElement(gn.Dialog,t)},np={browse:"Globe",location:"MapPin",search:"Search",usage:"BoardActivityFeed"},rp=function(e){var t,a=e.archive,n=e.index,r=e.exportContent,i=e.isArchiveFailed,o=e.viewport,c=e.setDeleteDialogState,s=e.setDeleteExportParams,l=a.dataTypes.filter((function(e){return"other"!==e})),d=l.map((function(e){return function(e,t){var a=np[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(cl,".").concat(a,"-callout"),iconName:a,iconColor:"black"}}}(e,r.createDialog.dataTypes)})),u="".concat(a.fileSize," ").concat(null===(t=a.fileSizeUnitCmsId)||void 0===t?void 0:t.toUpperCase()," \u2022 ").concat(r.archiveExpiration," ").concat((0,gn.toShortDate)(a.expiryDate)),m=Qa("PrivTmlnInternalTest")?a.exportId:null,p="archive-list-item-".concat(n),g={children:a.isComplete?(0,gn.toLongDate)(a.submitDate):r.archivePending,variant:"bodyPrimaryText",weightOverride:a.isComplete?"semi-bold":void 0},h={children:Qa("PrivTmlnInternalTest")?m:null,variant:"bodySecondaryText"},f={children:u,variant:"bodySecondaryText"},v={children:r.archiveFailed,variant:"errorBlockIcon"},y={children:r.archiveDeleting,variant:"bodySecondaryText"},E={children:l.join(", "),variant:"bodyPrimaryText"},w=we().createElement(gn.TextColumn,{textElements:[g,h]}),b=we().createElement(gn.TextColumn,{textElements:[g,E,h]}),x=we().createElement(gn.CalloutColumn,{calloutProps:d}),k=we().createElement(gn.TextFinalColumn,{textElements:[y],contentType:"text",columnAlign:"end"}),C=we().createElement(gn.ActionButtonFinalColumn,{actionButtonProps:[{"aria-label":r.archiveDownloadAriaLabel,"data-bi-id":"".concat(cl,".download"),iconName:"Download",buttonColor:"themePrimary",onClick:a.isComplete?function(){window.location.href=a.downloadUri}:function(){},text:r.archiveDownload,disabled:!a.isComplete},{"aria-label":r.archiveDeleteButtonAriaLabel,"data-bi-id":"".concat(cl,".delete"),iconName:"Delete",buttonColor:"themePrimary",onClick:function(){Pt({area:bl,scenario:"DeleteArchive",step:"DeleteArchiveConfirm"}),s({exportId:a.exportId,exportType:a.exportType}),c(!0)},text:r.archiveDeleteButton,disabled:!a.isComplete}],contentType:"none",disabled:i(a)});return a.isComplete?i(a)?"m"===o||"s"===o?{id:p,variant:"Twelve",columns:[we().createElement(gn.TextColumn,{textElements:[g,h,v]})]}:{id:p,variant:"ThreeThreeSix",columns:[w,x,we().createElement(gn.TextColumn,{textElements:[v]})]}:a.isArchiveDeleting?"m"===o||"s"===o?{id:p,variant:"EightFour",columns:[we().createElement(gn.TextColumn,{textElements:[g,h,y]}),x]}:{id:p,variant:"ThreeThreeThreeThree",columns:[w,x,we().createElement(gn.EmptyColumn,null),k]}:"m"===o?{id:p,variant:"SixFourTwo",columns:[we().createElement(gn.TextColumn,{textElements:[g,h,f]}),x,C]}:"s"===o?{id:p,variant:"EightFour",columns:[we().createElement(gn.TextColumn,{textElements:[g,E,h,f]}),C]}:{id:p,variant:"ThreeThreeThreeThree",columns:[w,x,we().createElement(gn.TextColumn,{textElements:[f]}),C]}:"m"===o?{id:p,variant:"SixFourTwo",columns:[w,x,C]}:"s"===o?{id:p,variant:"EightFour",columns:[b,C]}:{id:p,variant:"ThreeThreeThreeThree",columns:[w,x,we().createElement(gn.EmptyColumn,null),C]}},ip=function(e){var t=vs().exportContent;return we().createElement(gn.Feature,{backgroundType:"flat",bodyText:{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{childrenGap:10},we().createElement(gn.Text,{variant:"bodyPrimaryText"},t.introDescription.first),we().createElement(gn.Text,{variant:"bodyPrimaryText"},t.introDescription.second))}},ctaProps:[{actionProps:{id:"create-archive-feature-button","aria-label":t.createButtonAriaLabel,"data-bi-id":"".concat(ol,".create-archive"),kind:"button",onClick:function(){Pt({area:bl,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"})},op=function(){var e=vs().exportContent,t=e.otherArchivesContent,a=t.skype?[t.onedrive,t.m365,t.teams,t.skype]:[t.onedrive,t.m365,t.teams],n=[];return a.forEach((function(e){n.push({variant:"EightFour",columns:[we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{src:e.icon.src,imageType:"image"},size:"sm",height:"52px"},title:e.header,titleTextVariant:"headerText",subtitles:[{children:e.description,variant:"bodySecondaryText"}]}),we().createElement(gn.ActionButtonFinalColumn,{actionButtonProps:[{"aria-label":e.header,"data-bi-id":"".concat(ol,".").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(ol,".").concat(e.header),pageArea:"Privacy"},id:e.header})})),we().createElement(gn.Stack,{childrenGap:12,padding:"15px 0px"},we().createElement(gn.Heading,{block:!0,tag:"h1",variant:"paneTitle"},e.otherArchivesHeader),we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},n.map((function(e){return we().createElement(gn.ListItem,Object.assign({},e,{key:e.id}))}))))},cp=function(){var e=vs().exportContent,t=(0,Ee.useState)({data:[]}),a=(0,Fn.A)(t,2),n=a[0],r=a[1],i=(0,Ee.useState)({data:[]}),o=(0,Fn.A)(i,2),c=o[0],s=o[1],l=(0,Ee.useState)(!1),d=(0,Fn.A)(l,2),u=d[0],m=d[1],p=(0,Ee.useState)({dialogState:!1,dialogInFocus:null}),g=(0,Fn.A)(p,2),h=g[0],f=g[1],v=(0,Ee.useState)(!1),y=(0,Fn.A)(v,2),E=y[0],w=y[1],b=(0,Ee.useState)({exportId:"",exportType:"Quick"}),x=(0,Fn.A)(b,2),k=x[0],C=x[1],T=(0,gn.useViewport)(),S=function(e){return e.isFailed||!e.downloadUri},A=function(t){var a=[],i=!1;return t.forEach((function(t,n){t.isComplete||(i=!0),a.push(rp({archive:t,index:n,exportContent:e,isArchiveFailed:S,viewport:T,setDeleteDialogState:w,setDeleteExportParams:C}))})),function(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}(a,n.data)||r({data:a}),i},P=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a=arguments;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=a.length>0&&void 0!==a[0]&&a[0],!1,e.next=4,Ym(t).then((function(e){var t=e.archives.filter((function(e){return"deleteInProgress"!==e.exportArchivesDeleteStatus})).slice().reverse();s({data:t}),A(t)&&setTimeout((0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P();case 2:case"end":return e.stop()}}),e)}))),3e4)}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),D=(0,Ee.useState)({usage:!1,browse:!1,location:!1,search:!1}),I=(0,Fn.A)(D,2),_=I[0],L=I[1],R=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=[],zs.forEach((function(e){_[e]&&t.push(e)})),0!==t.length){e.next=4;break}return e.abrupt("return");case 4:return e.next=6,Km({dataTypes:t}).then((0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,P(!0);case 2:case"end":return e.stop()}}),e)})))).catch((function(e){var t,a;if(409===(null===(t=e.response)||void 0===t?void 0:t.status))setTimeout((function(){f({dialogState:!0,dialogInFocus:"in-progress"})}));else{if(429!==(null===(a=e.response)||void 0===a?void 0:a.status))return setTimeout((function(){f({dialogState:!0,dialogInFocus:"create-archive-failed"})})),Promise.reject(e);setTimeout((function(){f({dialogState:!0,dialogInFocus:"too-many-requests"})}))}}));case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a,n,r;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=k.exportId,a=c.data.filter((function(e){return e.exportId===t})),n=c.data.indexOf(a[0]),c.data[n].isArchiveDeleting=!0,s({data:c.data}),w(!1),A(c.data),r={dataTypes:c.data[n].dataTypes.join(",")},e.next=10,Jm(k.exportId,k.exportType).then((function(){var e,a=c.data.filter((function(e){return e.exportId!==t}));A(a),s({data:a}),G(M),null===(e=document.getElementById("archive-list-item-".concat(n)))||void 0===e||e.focus(),_t({data:r})})).catch((function(e){return c.data[n].isArchiveDeleting=!1,s({data:c.data}),A(c.data),G(B),_t({data:r,error:"DeleteArchiveFailure"}),Promise.reject(e)}));case 10:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),M=(0,Ee.useRef)(null),B=(0,Ee.useRef)(null),O=e.deleteNotificationBar.successMessage,F=e.deleteNotificationBar.failedMessage,V=e.deleteNotificationBar.closeButtonAriaLabel,U={message:O,ariaMessage:O,closeButton:{"aria-label":V,"data-bi-id":"".concat(cl,".delete-success-notification-message.close"),id:"".concat(cl,".delete-success-notification-message.close")},iconName:"Completed",notificationBarType:"info"},H={message:F,ariaMessage:F,closeButton:{"aria-label":V,"data-bi-id":"".concat(cl,".delete-failed-notification-message.close"),id:"".concat(cl,".delete-failed-notification-message.close")},iconName:"Error",notificationBarType:"error"},G=function(e){e.current.showNotificationBar()};return we().createElement(we().Fragment,null,we().createElement(gn.Announced,{message:e.title,ariaLive:"assertive"}),we().createElement(Ru,{subPage:Pl}),we().createElement(ip,{setCreateDialogState:m}),we().createElement(ep,{showDialog:u,setDialogState:m,makePostCall:R,dataTypeState:_,setDataTypeState:L}),we().createElement(ap,{dialogErrorState:h,setDialogErrorState:f}),we().createElement(zm,{archiveList:n,getArchives:P}),we().createElement(tp,{showDialog:E,makeDeleteCall:N,setDialogState:w}),we().createElement(op,null),we().createElement(gn.NotificationBar,Object.assign({ref:M},U)),we().createElement(gn.NotificationBar,Object.assign({ref:B},H)))},sp=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,Ss("".concat(Rs,"/submit-location-opt-out"),"".concat(Ms,".SUBMITLOCATIONOPTOUT"),e)];case 1:return t.sent(),[2]}}))}))},lp="macAddressOptOut.captcha",dp="macAddressOptOut.captcha-operation-name",up=function(){var e="MacAddressOptOut.submitOptOutRequest",t=Yu({operationName:dp}),a=vs().macAddressOptOutContent,n=ma(),r=(0,Ee.useState)(""),i=(0,Fn.A)(r,2),o=i[0],c=i[1],s=(0,Ee.useState)(""),l=(0,Fn.A)(s,2),d=l[0],u=l[1],m=(0,Ee.useState)(!1),p=(0,Fn.A)(m,2),g=p[0],h=p[1],f=(0,Ee.useState)(a.hipChallenge.title.captchaVisualTitle),v=(0,Fn.A)(f,2),y=v[0],E=v[1],w=(0,Ee.useState)(""),b=(0,Fn.A)(w,2),x=b[0],k=b[1],C=g||""===o?void 0:a.macAddressErrorMessage,T=function(e){u(e)},S={operationData:{componentName:lp,operationName:dp},variant:{alignment:"start"},mode:t.mode,challengeSource:t.challenge.challengeSource,userSolution:d,challengeProps:{noAudioSupportMessage:a.hipChallenge.challengeBase.noAudioSupportMessage,cannotLoadChallengeMessage:a.hipChallenge.challengeBase.cannotLoadChallengeMessage,switchToVisualWhenAudioFailedButtonProps:{"aria-label":a.hipChallenge.challengeBase.switchToVisualWhenAudioFailedButtonAriaLabel,"data-bi-id":"".concat(fl,".audio-failed.switch-to-visual"),text:a.hipChallenge.challengeBase.switchToVisualWhenAudioFailedButtonText},playAudioButtonProps:{"aria-label":a.hipChallenge.challengeBase.playAudioButtonAriaLabel,"data-bi-id":"".concat(fl,".play-audio")}},controlsProps:{refreshChallengeButtonProps:{"aria-label":a.hipChallenge.controls.refreshChallengeButtonAriaLabel,"data-bi-id":"".concat(fl,".refresh-challenge"),text:a.hipChallenge.controls.refreshChallengeButtonText},switchToAudioButtonProps:{"aria-label":a.hipChallenge.controls.switchToAudioButtonAriaLabel,"data-bi-id":"".concat(fl,".switch-to-audio"),text:a.hipChallenge.controls.switchToAudioButtonText},switchToVisualButtonProps:{"aria-label":a.hipChallenge.controls.switchToVisualButtonAriaLabel,"data-bi-id":"".concat(fl,".switch-to-visual"),text:a.hipChallenge.controls.switchToVisualButtonText},getNewAudioChallengeButtonProps:{"aria-label":a.hipChallenge.controls.getNewAudioChallengeAriaLabel,"data-bi-id":"".concat(fl,".get-new-audio-challenge"),text:a.hipChallenge.controls.refreshChallengeButtonText},getNewPictureChallengeButtonProps:{"aria-label":a.hipChallenge.controls.getNewPictureChallengeAriaLabel,"data-bi-id":"".concat(fl,".get-new-picture-challenge"),text:a.hipChallenge.controls.refreshChallengeButtonText}},titleProps:{children:"visual"===t.mode?a.hipChallenge.title.captchaVisualTitle:a.hipChallenge.title.captchaAudioTitle},solutionInputProps:{playAudioInstruction:a.hipChallenge.solutionInput.playAudioInstruction,audioPlaceholder:a.hipChallenge.solutionInput.captchaInputPlaceholder,visualPlaceholder:a.hipChallenge.solutionInput.captchaInputPlaceholder,"aria-label":y,"data-bi-id":"".concat(fl,".solution-input"),id:"captcha-user-solution"},onNewChallengeRequested:function(e){E("audio"===e?a.audioCaptchaInputAriaLabel:a.hipChallenge.title.captchaVisualTitle),null===T||void 0===T||T(""),t.getNewChallenge(e)},onSolutionChanged:T,audioCaptchaLoadedMessage:a.audioCaptchaReloadMessage,visualCaptchaLoadedMessage:a.visualCaptchaReloadMessage},A=(0,Ee.useRef)(null),P=(0,Ee.useRef)(null),D=function(e){e.current.showNotificationBar()},I={message:a.successNotificationMessage,ariaMessage:a.successNotificationMessage,closeButton:{"aria-label":a.closeButtonAriaLabel,"data-bi-id":"".concat(fl,".success-message.close"),id:"".concat(fl,".success-message.close")},iconName:"Completed",notificationBarType:"info"},_={message:a.genericErrorNotificationMessage,ariaMessage:a.genericErrorNotificationMessage,closeButton:{"aria-label":a.closeButtonAriaLabel,"data-bi-id":"".concat(fl,".generic-error-message.close"),id:"".concat(fl,".generic-error-message.close")},iconName:"Error",notificationBarType:"error"},L=function(){var r=(0,ys.A)(ws().mark((function r(){var i;return ws().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return k(""),i={HipSolution:d,HipContext:t.challenge.context,MacAddress:o},r.prev=2,n({name:e,status:"updating"}),r.next=6,sp(i);case 6:n({name:e,status:"finished"}),D(A),c(""),h(!1),r.next=15;break;case 12:r.prev=12,r.t0=r.catch(2),r.t0.response.data&&"invalidCaptcha"===r.t0.response.data.error?(n({name:e,status:"finished"}),k(a.captchaInputErrorMessage)):r.t0.response.data&&"nochallengesession"===r.t0.response.data.error?(n({name:e,status:"finished"}),D(P)):(n({name:e,status:"failed",error:r.t0}),D(P));case 15:return r.prev=15,t.getNewChallenge(t.mode),u(""),r.finish(15);case 19:case"end":return r.stop()}}),r,null,[[2,12,15,19]])})));return function(){return r.apply(this,arguments)}}();return we().createElement(we().Fragment,null,we().createElement(gn.Announced,{message:a.pageHeader,ariaLive:"assertive"}),we().createElement(gn.Stack,{childrenGap:12,padding:"36px 0px 0px 0px"},we().createElement(gn.Heading,{tag:"h1",variant:"pageHeader",children:a.pageHeader}),we().createElement(gn.Stack,{childrenGap:24},we().createElement(gn.Text,{children:a.bodyTextFirst}),we().createElement(gn.Text,{children:a.bodyTextSecond}),we().createElement(gn.Text,{children:a.bodyTextThird}),we().createElement(gn.Stack,{maxWidth:"300px"},we().createElement(gn.TextInput,{label:a.textInputLabel,placeholder:a.textInputPlaceholder,errorMessage:C,value:o,onChange:function(e,t){c(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(fl,".mac-address-text-input"),"aria-label":a.textInputLabel,id:"address-text-input"})),we().createElement(gn.Stack,{maxWidth:"300px",id:"hip-challenge"},we().createElement(gn.HipChallenge,S),x?we().createElement(gn.Text,{variant:"errorBlockIcon",id:"captcha-input-error-message"},x):null,x?we().createElement(gn.Announced,{message:x,ariaLive:"assertive"}):null),we().createElement(gn.Stack,{maxWidth:"150px"},we().createElement(gn.Button,{operationData:{progressViewOperationData:{defaultState:"finished",componentName:"macAddressOptOut.submit",operationName:e}},text:a.buttonText,"aria-label":a.buttonAriaLabel,"data-bi-id":"".concat(fl,".submit"),type:"primary",onClick:L,disabled:!g||!d,id:"submit-address-button"})))),we().createElement(gn.NotificationBar,Object.assign({ref:A},I)),we().createElement(gn.NotificationBar,Object.assign({ref:P},_)))},mp="PRIVACY",pp="ROAMINGAPI",gp="OfficeSettings",hp=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return _s(gp),[4,As("".concat(Rs,"/office/roaming-settings/diagnostic"),"".concat(mp,".").concat(pp,".SETDIAGNOSTICLEVEL"),{isEnabled:e})];case 1:return t.sent(),[2]}}))}))},fp=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return _s(gp),[4,As("".concat(Rs,"/office/roaming-settings/analyze"),"".concat(mp,".").concat(pp,".SETANALYZECONTENT"),{isEnabled:e})];case 1:return t.sent(),[2]}}))}))},vp=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return _s(gp),[4,As("".concat(Rs,"/office/roaming-settings/download"),"".concat(mp,".").concat(pp,".SETDOWNLOADCONTENT"),{isEnabled:e})];case 1:return t.sent(),[2]}}))}))},yp=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return _s(gp),[4,As("".concat(Rs,"/office/roaming-settings/offers"),"".concat(mp,".").concat(pp,".SETOFFERSCONTENT"),{isEnabled:e})];case 1:return t.sent(),[2]}}))}))},Ep=1270,wp=1274,bp=1276,xp=1324,kp={DefaultRequired:0,Required:1,OptionalRequired:2,EnterpriseOnly:3},Cp={DefaultEnabled:0,Enabled:1,Disabled:2},Tp={DefaultEnabled:0,Enabled:1,Disabled:2},Sp={DefaultDisabled:0,Enabled:1,Disabled:2},Ap="privacy.safety-checkup",Pp="".concat(Ap,".office-settings.drawers"),Dp="".concat(Ap,".recurring-delete"),Ip={accountInfo:0,authenticatorInfo:1,safeBrowsing:2,moreSafetyResources:3},_p={accountInfo:0,authenticatorInfo:1,recurringDelete:2,safeBrowsing:3,moreSafetyResources:4,officeSettings:5,roster:6},Lp=function(e){var t=Object.keys(_p).find((function(t){return _p[t]===e}));return t||"unknownView"},Rp=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)}},Np=function(e){return{borderBottom:"1px solid ".concat(e)}},Mp={hasRecoveryEmail:"unknown",hasRecoveryPhone:"unknown",hasAuthenticator:"unknown",hasEdge:"unknown"},Bp=we().createContext({currentStep:0,setCurrentStep:function(){},totalSteps:Object.entries(_p).length-2,goToNext:function(e){},visitedSteps:new Set,addToVisited:function(e){},userProofStates:Mp,setUserProofStates:function(){},resetStates:function(){},isFlowEnded:!1,setIsFlowEnded:function(){},newOfficeSettingsUser:!1,setNewOfficeSettingsUser:function(){},recurringDeleteData:null,setRecurringDeleteData:function(){},browsingInterval:{initial:"off",current:"off"},setBrowsingInterval:function(){},searchInterval:{initial:"off",current:"off"},setSearchInterval:function(){},hasUnsavedChanges:!1,setHasUnsavedChanges:function(){},isChildUser:!1}),Op=function(){return(0,Ee.useContext)(Bp)},Fp=function(e){var t=e.children,a=(0,Ee.useState)(0),n=(0,Fn.A)(a,2),r=n[0],i=n[1],o=(0,Ee.useState)(Object.entries(_p).length-1),c=(0,Fn.A)(o,1)[0],s=(0,Ee.useState)(!1),l=(0,Fn.A)(s,2),d=l[0],u=l[1],m=(0,Ee.useState)(!1),p=(0,Fn.A)(m,2),g=p[0],h=p[1],f=(0,Ee.useState)(new Set),v=(0,Fn.A)(f,2),y=v[0],E=v[1],w=(0,Ee.useState)(Mp),b=(0,Fn.A)(w,2),x=b[0],k=b[1],C=(0,Ee.useState)(null),T=(0,Fn.A)(C,2),S=T[0],A=T[1],P=(0,Ee.useState)({initial:"off",current:"off"}),D=(0,Fn.A)(P,2),I=D[0],_=D[1],L=(0,Ee.useState)({initial:"off",current:"off"}),R=(0,Fn.A)(L,2),N=R[0],M=R[1],B=(0,Ee.useState)(!1),O=(0,Fn.A)(B,2),F=O[0],V=O[1],U=!Bn().selfRights.canManage;return we().createElement(Bp.Provider,{value:{currentStep:r,setCurrentStep:i,totalSteps:c,goToNext:function(e){e<Object.keys(Ip).length-1&&i(r+1)},visitedSteps:y,addToVisited:function(e){E((function(t){return new Set(t.add(e))}))},userProofStates:x,setUserProofStates:k,resetStates:function(){i(0),E(new Set)},isFlowEnded:d,setIsFlowEnded:u,newOfficeSettingsUser:g,setNewOfficeSettingsUser:h,recurringDeleteData:S,setRecurringDeleteData:A,browsingInterval:I,setBrowsingInterval:_,searchInterval:N,setSearchInterval:M,hasUnsavedChanges:F,setHasUnsavedChanges:V,isChildUser:U}},t)},Vp=function(e,t,a,n){var r=n?"".concat(n.dataBiIdBase,".toggle"):"";return{totalSlots:12,chevronPosition:"end",columns:n?[{column:we().createElement(gn.DrawerHeaderTitle,{media:{size:"md",image:{imageType:"icon",iconName:e},padding:"0px 4px"},title:{kind:"text",children:t,nowrap:!1,weightOverride:a?void 0:"semi-bold"},subtitleTextProps:{children:a}}),slots:8},{column:we().createElement(gn.DrawerHeaderToggle,{"data-bi-id":r,id:r,"aria-label":n.toggleCms.toggleAriaLabel,onChange:n.onToggleChangeHandler,checked:n.toggleVals,togglePosition:"end",onText:n.toggleCms.toggleOn,offText:n.toggleCms.toggleOff,disabled:n.disabled,operationData:{progressViewOperationData:{operationName:n.toggleOperationName,componentName:n.toggleComponentName,defaultState:"finished"},errorCallout:{errorMessage:n.toggleCms.updateFailedMessageErrorCallout,errorMessageAriaLabel:n.toggleCms.updateFailedMessageErrorCallout,targetOrTriggerButton:{"aria-label":n.toggleCms.errorCalloutAriaLabel,"data-bi-id":"".concat(n.dataBiIdBase,".error-callout")}}}}),slots:4}]:[{column:we().createElement(gn.DrawerHeaderTitle,{media:{size:"md",image:{imageType:"icon",iconName:e},padding:"0px 4px"},title:{kind:"text",children:t,nowrap:!1,weightOverride:a?void 0:"semi-bold"},subtitleTextProps:{children:a}}),slots:12}]}},Up=function(e){return we().createElement(gn.Stack,null,we().createElement(gn.MessageBar,{messageContent:e,messageBarType:"warning",iconProps:{iconName:"Error",color:"neutralSecondary"}}))},Hp=function(e){var t,a=e.officeSettingDrawerName,n=e.toggleVals,r=e.updateToggleVals,i=e.contentsDrawerDataBiIdBase,o=e.contentsDrawerComponentName,c=e.contentsDrawerOperationName,s=e.cmsContent,l=e.toggleValContent,d=e.setContentApi,u=e.drawerHeaderIconName,m=e.drawerHeaderTitle,p=ma(),g=(0,Ee.useState)(!1),h=(0,Fn.A)(g,2),f=h[0],v=h[1],y=(0,Ee.useState)(!1),E=(0,Fn.A)(y,2),w=E[0],b=E[1],x=function(){b(!w)},k=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v(!1),p({name:c,status:"updating"}),e.next=5,d(!l);case 5:e.t0=a,e.next="optionalDiagnostic"===e.t0?8:"analyzeContent"===e.t0?10:"downloadContent"===e.t0?12:"offersContent"===e.t0?14:16;break;case 8:return r((0,On.A)((0,On.A)({},n),{},{optionalDiagnostic:!l})),e.abrupt("break",16);case 10:return r((0,On.A)((0,On.A)({},n),{},{analyzeContent:!l})),e.abrupt("break",16);case 12:return r((0,On.A)((0,On.A)({},n),{},{downloadContent:!l})),e.abrupt("break",16);case 14:return r((0,On.A)((0,On.A)({},n),{},{offersContent:!l})),e.abrupt("break",16);case 16:p({name:c,status:"finished"}),e.next=23;break;case 19:e.prev=19,e.t1=e.catch(0),v(!0),p({name:c,status:"update-failed"});case 23:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),C=function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,k();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),T={toggleVals:l,onToggleChangeHandler:C,toggleOperationName:c,toggleComponentName:o,dataBiIdBase:i,toggleCms:s},S="offersContent"===a?(t=s,we().createElement(gn.Stack,{childrenGap:"20px",backgroundColor:"neutralMed",padding:"20px"},we().createElement(gn.Text,null,t.paragraph),we().createElement(gn.Hyperlink,{href:t.link.url,target:Ec(t.link.target),"data-bi-id":t.link.id,"aria-label":t.link.ariaLabel||t.link.text},t.link.text),t.link2?we().createElement(gn.Hyperlink,{href:t.link2.url,target:Ec(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 we().createElement(gn.Stack,{childrenGap:"20px",backgroundColor:"neutralMed",padding:"20px"},we().createElement(gn.Text,null,e.paragraph),we().createElement(gn.Hyperlink,{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))}(s,i),A=Up(s.updateFailedMessageErrorCallout),P=f?we().createElement(gn.Stack,null,A,S):we().createElement(gn.Stack,null,S),D=Vp(u,m,"",T),I=T?"".concat(T.dataBiIdBase,".toggle"):"",_=Bn().areaPrefix;return we().createElement(gn.Stack,null,we().createElement(gn.Drawer,{id:"checkup-optional-diagnostic",drawerHeader:we().createElement(gn.DrawerHeader,D),showDivider:!0,borderRadius:"0px",onClickToOpen:function(){return Us(!0,I,_,x)},onClickToClose:function(){return Us(!1,I,_,x)},children:P}),!w&&f?A:null)},Gp="".concat(Pp,".analyze-content"),qp=function(e){var t=e.toggleVals,a=e.updateToggleVals,n=vs().officeSettingsContent.connectedExperiencesSection.analyzeContentDrawer;return we().createElement(Hp,{officeSettingDrawerName:"analyzeContent",toggleVals:t,updateToggleVals:a,contentsDrawerDataBiIdBase:Gp,contentsDrawerComponentName:"safetyCheckup.officeSettings.analyzeContentDrawer",contentsDrawerOperationName:"safetyCheckup.AnalyzeContentDrawer.setAnalyzeContent",cmsContent:n,toggleValContent:t.analyzeContent,setContentApi:fp,drawerHeaderIconName:"EditListPencil",drawerHeaderTitle:n.title})},Wp="".concat(Pp,".download-content"),zp=function(e){var t=e.toggleVals,a=e.updateToggleVals,n=vs().officeSettingsContent.connectedExperiencesSection.downloadContentDrawer;return we().createElement(Hp,{officeSettingDrawerName:"downloadContent",toggleVals:t,updateToggleVals:a,contentsDrawerDataBiIdBase:Wp,contentsDrawerComponentName:"safetyCheckup.officeSettings.downloadContentDrawer",contentsDrawerOperationName:"safetyCheckup.DownloadContentDrawer.setDownloadContent",cmsContent:n,toggleValContent:t.downloadContent,setContentApi:vp,drawerHeaderIconName:"PictureFill",drawerHeaderTitle:n.title})},jp="".concat(Pp,".offers-content"),Qp=function(e){var t=e.toggleVals,a=e.updateToggleVals,n=vs().officeSettingsContent.offersSection.offersContentDrawer;return we().createElement(Hp,{officeSettingDrawerName:"offersContent",toggleVals:t,updateToggleVals:a,contentsDrawerDataBiIdBase:jp,contentsDrawerComponentName:"safetyCheckup.officeSettings.OffersContentDrawer",contentsDrawerOperationName:"safetyCheckup.OffersContentDrawer.setOffersContentLevel",cmsContent:n,toggleValContent:t.offersContent,setContentApi:yp,drawerHeaderIconName:"Giftbox",drawerHeaderTitle:vs().officeSettingsContent.offersSection.title})},Xp="".concat(Pp,".optional-diagnostic"),Yp=function(e){var t=e.toggleVals,a=e.updateToggleVals,n=vs().officeSettingsContent.diagnosticDataSection.optionalDrawer;return we().createElement(Hp,{officeSettingDrawerName:"optionalDiagnostic",toggleVals:t,updateToggleVals:a,contentsDrawerDataBiIdBase:Xp,contentsDrawerComponentName:"safetyCheckup.officeSettings.optionalDiagnosticDrawer",contentsDrawerOperationName:"safetyCheckup.OptionalDiagnosticDrawer.setDiagnosticLevel",cmsContent:n,toggleValContent:t.optionalDiagnostic,setContentApi:hp,drawerHeaderIconName:"Diagnostic",drawerHeaderTitle:n.title})},$p="".concat(Ap,".office-settings-dialog"),Kp=function(e){var t,a=e.toggleVals,n=e.updateToggleVals,r=e.newUserErrorFlag,i=e.initializeOfficeSettings,o=e.hasAnyOfficeProduct,c=vs().officeSettingsContent,s=null===(t=Bn().selfRights)||void 0===t?void 0:t.canManageDataSettings,l=Op().setNewOfficeSettingsUser;Se((function(){l(r)}));var d=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().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)}}(),u={textWithTokens:"".concat(c.firstLoadErrorDescription," {tryAgain}"),tokensAndValues:{tryAgain:we().createElement(gn.NoHrefLink,{children:c.tryAgain,"data-bi-id":"".concat(yl,".first-load-try-again"),"aria-label":c.tryAgain,onClick:d})}};return we().createElement(gn.ShimmerProgressView,{operationData:{componentName:$p,operationName:"OfficeSettingsDrawers.getOfficeSettings"},firstLoadView:we().createElement(gn.Stack,null,s&&!r?we().createElement(gn.DrawerShimmer,{anchor:"right"}):null,we().createElement(gn.DrawerShimmer,{anchor:"right"}),we().createElement(gn.DrawerShimmer,{anchor:"right"}),s&&!r&&o?we().createElement(gn.DrawerShimmer,{anchor:"right"}):null),finishedView:we().createElement(gn.Stack,null,s&&!r?we().createElement(Yp,{toggleVals:a,updateToggleVals:n}):null,we().createElement(qp,{toggleVals:a,updateToggleVals:n}),we().createElement(zp,{toggleVals:a,updateToggleVals:n}),s&&!r&&o?we().createElement(Qp,{toggleVals:a,updateToggleVals:n}):null),failedView:Up(u)})},Jp=function(e,t,a,n){var r=n?"".concat(n.dataBiIdBase,".toggle"):"",i=Bn().areaPrefix;return{onClickToOpen:function(){return Us(!0,r,i)},onClickToClose:function(){return Us(!1,r,i)},defaultExpanded:!0,drawerHeader:we().createElement(gn.DrawerHeader,Vp(e,t,a,n))}},Zp=function(e,t){var a="".concat(t,".learn-more-link");return we().createElement(gn.Feature,{bodyText:e.paragraph,ctaProps:[{actionProps:{href:e.link.url,"data-bi-id":a,id:a,"aria-label":e.link.ariaLabel||e.link.text,children:e.link.text,kind:"hyperlink",target:Ec(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"})},eg=function(e,t,a){var n={textWithTokens:t.updateFailedMessageMessageBar,tokensAndValues:{tryAgain:we().createElement(gn.NoHrefLink,{children:t.tryAgain,"data-bi-id":"".concat(a,".try-again-link"),"aria-label":t.tryAgain,onClick:e})}};return we().createElement(gn.MessageBar,{messageContent:n,messageBarType:"warning"})},tg="".concat(yl,".analyze-content"),ag=function(e){var t,a=e.toggleVals,n=e.updateToggleVals,r="AnalyzeContentDrawer.setAnalyzeContent",i=vs().officeSettingsContent.connectedExperiencesSection.analyzeContentDrawer,o=ma(),c=(0,Ee.useState)(!1),s=(0,Fn.A)(c,2),l=s[0],d=s[1],u=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!1),o({name:r,status:"updating"}),e.next=5,fp(!a.analyzeContent);case 5:n((0,On.A)((0,On.A)({},a),{},{analyzeContent:!a.analyzeContent})),o({name:r,status:"finished"}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),d(!0),o({name:r,status:"update-failed"});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().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:a.analyzeContent,onToggleChangeHandler:m,toggleOperationName:r,toggleComponentName:"officeSettings.analyzeContentDrawer",dataBiIdBase:tg,toggleCms:i},g=Jp("EditListPencil",i.title,i.subtitle,p),h=Zp(i,tg);if(l){var f=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().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=eg(f,i,tg)}else t=we().createElement(gn.MessageBar,{messageContent:i.infoBar,messageBarType:"secondary"});return we().createElement(gn.ExpandedFeatureGroup,{drawerAreaProps:g,highlightArea:h,detailsArea:t})},ng="".concat(yl,".download-content"),rg=function(e){var t,a=e.toggleVals,n=e.updateToggleVals,r="DownloadContentDrawer.setDownloadContent",i=vs().officeSettingsContent.connectedExperiencesSection.downloadContentDrawer,o=ma(),c=(0,Ee.useState)(!1),s=(0,Fn.A)(c,2),l=s[0],d=s[1],u=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,d(!1),o({name:r,status:"updating"}),e.next=5,vp(!a.downloadContent);case 5:n((0,On.A)((0,On.A)({},a),{},{downloadContent:!a.downloadContent})),o({name:r,status:"finished"}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),d(!0),o({name:r,status:"update-failed"});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),m=function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().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:a.downloadContent,onToggleChangeHandler:m,toggleOperationName:r,toggleComponentName:"officeSettings.downloadContentDrawer",dataBiIdBase:ng,toggleCms:i},g=Jp("PictureFill",i.title,i.subtitle,p),h=Zp(i,ng);if(l){var f=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().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=eg(f,i,ng)}else t=we().createElement(gn.MessageBar,{messageContent:i.infoBar,messageBarType:"secondary"});return we().createElement(gn.ExpandedFeatureGroup,{drawerAreaProps:g,highlightArea:h,detailsArea:t})},ig="".concat(yl,".OffersContent"),og=function(e){var t,a,n,r=e.toggleVals,i=e.updateToggleVals,o=e.newUserError,c="OffersContentDrawer.setOffersContentLevel",s=vs().officeSettingsContent.offersSection.offersContentDrawer,l=ma(),d=null===(t=Bn().selfRights)||void 0===t?void 0:t.canManageDataSettings,u=(0,Ee.useState)(!1),m=(0,Fn.A)(u,2),p=m[0],g=m[1],h=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,g(!1),l({name:c,status:"updating"}),e.next=5,yp(!r.offersContent);case 5:zt({name:"Ms.Webi.MeePortal.PrivacyToggleEvent",toggleId:"offer-contents-toggle",newState:null!==(t=!r.offersContent)&&void 0!==t&&t}),i((0,On.A)((0,On.A)({},r),{},{offersContent:null!==(a=!r.offersContent)&&void 0!==a&&a})),l({name:c,status:"finished"}),e.next=15;break;case 11:e.prev=11,e.t0=e.catch(0),g(!0),l({name:c,status:"update-failed"});case 15:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),f=function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().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)}}(),v={toggleVals:null!==(a=r.offersContent)&&void 0!==a&&a,onToggleChangeHandler:f,disabled:!d||o,toggleOperationName:c,toggleComponentName:"officeSettings.OffersContentDrawer",dataBiIdBase:ig,toggleCms:s},y=Jp("EditListPencil",s.title,s.subtitle,v),E=function(e){var t={textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,e.paragraph),we().createElement(gn.Hyperlink,{href:e.link.url,target:Ec(e.link.target),"data-bi-id":e.link.id,"aria-label":e.link.ariaLabel||e.link.text},e.link.text),e.link2?we().createElement(gn.Hyperlink,{href:e.link2.url,target:Ec(e.link2.target),"data-bi-id":e.link2.id,"aria-label":e.link2.ariaLabel||e.link2.text},e.link2.text):null)}};return we().createElement(gn.Feature,{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"})}(s);if(p){var w=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().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=eg(w,s,ig)}else if(d)if(o){var b={textWithTokens:s.newUserAlert,tokensAndValues:{alertLink:we().createElement(gn.Hyperlink,{href:s.newUserAlertLink.url,"data-bi-id":"".concat(ig,".new-user-alert-link"),"aria-label":s.newUserAlertLink.ariaLabel||s.newUserAlertLink.text,target:Ec(s.newUserAlertLink.target)},s.newUserAlertLink.text)}};n=we().createElement(gn.MessageBar,{messageContent:b,messageBarType:"warning",iconProps:{iconName:"Error",color:"neutralSecondary"}})}else n=we().createElement(gn.MessageBar,{messageContent:s.genericAlert,messageBarType:"secondary"});else{var x={textWithTokens:s.childUserAlert,tokensAndValues:{alertLink:we().createElement(gn.Hyperlink,{href:s.childUserAlertLink.url,"data-bi-id":"".concat(ig,".child-user-alert-link"),"aria-label":s.childUserAlertLink.ariaLabel||s.childUserAlertLink.text,target:Ec(s.childUserAlertLink.target)},s.childUserAlertLink.text)}};n=we().createElement(gn.MessageBar,{messageContent:x,messageBarType:"secondary"})}return we().createElement(gn.ExpandedFeatureGroup,{drawerAreaProps:y,highlightArea:E,detailsArea:n})},cg="".concat(yl,".optional-diagnostic"),sg=function(e){var t,a,n=e.toggleVals,r=e.updateToggleVals,i=e.newUserError,o="OptionalDiagnosticDrawer.setDiagnosticLevel",c=vs().officeSettingsContent.diagnosticDataSection.optionalDrawer,s=ma(),l=null===(t=Bn().selfRights)||void 0===t?void 0:t.canManageDataSettings,d=(0,Ee.useState)(!1),u=(0,Fn.A)(d,2),m=u[0],p=u[1],g=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,p(!1),s({name:o,status:"updating"}),e.next=5,hp(!n.optionalDiagnostic);case 5:r((0,On.A)((0,On.A)({},n),{},{optionalDiagnostic:!n.optionalDiagnostic})),s({name:o,status:"finished"}),e.next=13;break;case 9:e.prev=9,e.t0=e.catch(0),p(!0),s({name:o,status:"update-failed"});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),h=function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),f={toggleVals:n.optionalDiagnostic,onToggleChangeHandler:h,disabled:!l||i,toggleOperationName:o,toggleComponentName:"officeSettings.optionalDiagnosticDrawer",dataBiIdBase:cg,toggleCms:c},v=Jp("Diagnostic",c.title,c.subtitle,f),y=Zp(c,cg);if(m){var E=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,g();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();a=eg(E,c,cg)}else if(l){if(i){var w={textWithTokens:c.newUserAlert,tokensAndValues:{alertLink:we().createElement(gn.Hyperlink,{href:c.newUserAlertLink.url,"data-bi-id":"".concat(cg,".new-user-alert-link"),"aria-label":c.newUserAlertLink.ariaLabel||c.newUserAlertLink.text,target:Ec(c.newUserAlertLink.target)},c.newUserAlertLink.text)}};a=we().createElement(gn.MessageBar,{messageContent:w,messageBarType:"warning",iconProps:{iconName:"Error",color:"neutralSecondary"}})}}else{var b={textWithTokens:c.childUserAlert,tokensAndValues:{alertLink:we().createElement(gn.Hyperlink,{href:c.childUserAlertLink.url,"data-bi-id":"".concat(cg,".child-user-alert-link"),"aria-label":c.childUserAlertLink.ariaLabel||c.childUserAlertLink.text,target:Ec(c.childUserAlertLink.target)},c.childUserAlertLink.text)}};a=we().createElement(gn.MessageBar,{messageContent:b,messageBarType:"secondary"})}return we().createElement(gn.ExpandedFeatureGroup,{drawerAreaProps:v,highlightArea:y,detailsArea:a})},lg=function(){var e="".concat(yl,".required-diagnostic"),t=vs().officeSettingsContent.diagnosticDataSection.requiredDrawer,a=Zp(t,e),n=Jp("Diagnostic",t.title,t.subtitle);return we().createElement(gn.ExpandedFeatureGroup,{drawerAreaProps:n,highlightArea:a})},dg="officeSettings.drawers",ug=function(e){var t=e.isCheckup,a="OfficeSettingsDrawers.getOfficeSettings",r=vs().officeSettingsContent,i=ma(),o=(0,Ee.useState)({optionalDiagnostic:!1,analyzeContent:!0,downloadContent:!0,offersContent:!1}),c=(0,Fn.A)(o,2),s=c[0],l=c[1],d=(0,Ee.useState)(!1),u=(0,Fn.A)(d,2),m=u[0],p=u[1],g=(0,Ee.useState)(!1),h=(0,Fn.A)(g,2),f=h[0],v=h[1],y=function(e){l(e)},E=function(e){var t=s.optionalDiagnostic,a=s.analyzeContent,n=s.downloadContent,r=s.offersContent;null===e||void 0===e||e.forEach((function(e){switch(e.id){case Ep:switch(e.value){case kp.DefaultRequired.toString():case kp.Required.toString():t=!1;break;case kp.OptionalRequired.toString():t=!0}break;case wp:switch(e.value){case Cp.DefaultEnabled.toString():case Cp.Enabled.toString():a=!0;break;case Cp.Disabled.toString():a=!1}break;case bp:switch(e.value){case Tp.DefaultEnabled.toString():case Tp.Enabled.toString():n=!0;break;case Tp.Disabled.toString():n=!1}break;case xp:switch(e.value){case Sp.DefaultDisabled.toString():case Sp.Disabled.toString():r=!1;break;case Sp.Enabled.toString():r=!0}}})),l({optionalDiagnostic:t,analyzeContent:a,downloadContent:n,offersContent:r})},w=function(){var e=(0,ys.A)(ws().mark((function e(){var t,r,o,c,s;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:a,status:"first-load"}),e.next=4,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Is(!1,"".concat(gp,"HasProduct"),"".concat(Rs,"/office/roaming-settings/has-office-product"),"".concat(mp,".").concat(pp,".HASOFFICEPRODUCT"))];case 1:return[2,e.sent()]}}))}));case 4:return r=e.sent,v(null!==(t=null===r||void 0===r?void 0:r.hasOfficeProduct)&&void 0!==t&&t),e.next=8,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Is(!1,gp,"".concat(Rs,"/office/roaming-settings"),"".concat(mp,".").concat(pp,".GETROAMINGSETTINGS"))];case 1:return[2,e.sent()]}}))}));case 8:o=e.sent,E(null===o||void 0===o?void 0:o.settings),p(!1),i({name:a,status:"finished"}),e.next=18;break;case 14:e.prev=14,e.t0=e.catch(0),s=e.t0,424===(null===(c=s.response)||void 0===c?void 0:c.status)?(p(!0),i({name:a,status:"finished"})):i({name:a,status:"failed"});case 18:case"end":return e.stop()}}),e,null,[[0,14]])})));return function(){return e.apply(this,arguments)}}();Se((function(){w()}));var b=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,w();case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return t?we().createElement(Kp,{toggleVals:s,updateToggleVals:y,newUserErrorFlag:m,initializeOfficeSettings:w,hasAnyOfficeProduct:f}):we().createElement(gn.ShimmerProgressView,{operationData:{componentName:dg,operationName:a},firstLoadView:we().createElement(gn.Stack,{childrenGap:"48px"},we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.Heading,{tag:"h2"},r.diagnosticDataSection.title),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.DrawerShimmer,{anchor:"right"}),we().createElement(gn.DrawerShimmer,{anchor:"right"}))),we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.Heading,{tag:"h2"},r.connectedExperiencesSection.title),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.DrawerShimmer,{anchor:"right"}),we().createElement(gn.DrawerShimmer,{anchor:"right"})))),finishedView:we().createElement(gn.Stack,{childrenGap:"48px"},we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.Heading,{tag:"h2"},r.diagnosticDataSection.title),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(lg,null),we().createElement(sg,{toggleVals:s,updateToggleVals:y,newUserError:m}))),we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.Heading,{tag:"h2"},r.connectedExperiencesSection.title),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(ag,{toggleVals:s,updateToggleVals:y}),we().createElement(rg,{toggleVals:s,updateToggleVals:y}))),f?we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.Heading,{tag:"h2"},r.offersSection.title),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(og,{toggleVals:s,updateToggleVals:y,newUserError:m}))):null),failedView:we().createElement(gn.ErrorIllustration,{align:"center",correlationVector:Ot(),errorMessage:r.firstLoadErrorMessage,description:r.firstLoadErrorDescription,imageSrc:r.errorIllustrationImageSrc,buttonProps:{text:r.tryAgain,"aria-label":r.tryAgain,"data-bi-id":"".concat(yl,".first-load-try-again"),type:"default",onClick:b}})})},mg=function(){var e="".concat(vl,".intro-cta"),t=vs().officeSettingsContent.intro,a=function(e){var t=Object.values(e),a=[];return t.forEach((function(e,n){a.push(e),n!==t.length-1&&a.push("\xa0")})),a}([t.first,t.second]).map((function(e){return{textWithTokens:e,tokensAndValues:{}}}));return we().createElement(gn.Feature,{backgroundType:"flat",bodyText:a,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:Ec(t.link.target)}}],imageProps:{alt:t.image.alt,src:t.image.src},layoutType:"2/3",height:"small"})},pg=function(){var e=vs().officeSettingsContent;return we().createElement(we().Fragment,null,we().createElement(gn.Announced,{message:e.title,ariaLive:"assertive"}),we().createElement(gn.Stack,{padding:"0 0 48px 0"},we().createElement(Ru,{subPage:"office-settings"}),we().createElement(gn.Stack,{childrenGap:"32px"},we().createElement(mg,null),we().createElement(ug,{isCheckup:!1}))))},gg=function(){var e=Bn().area,t=vs(),a=(0,Ee.useState)(!1),n=(0,Fn.A)(a,2),r=n[0],i=n[1],o="".concat(rl).concat(al);return Se((0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ym().then((function(e){e&&e.archives&&e.archives.length>0&&e.archives.some((function(e){return e.isComplete&&!e.isFailed}))&&i(!0)}));case 2:case"end":return e.stop()}}),e)})))),we().createElement(we().Fragment,null,r?we().createElement(gn.MessageBar,{messageContent:t.overviewContent.overviewMessageBarContent,actionProps:{"aria-label":t.overviewContent.overviewMessageBarAction,children:t.overviewContent.overviewMessageBarAction,"data-bi-id":"privacy-overview-messagebar-link",href:o},dismissButtonProps:{"aria-label":t.overviewContent.overviewMessageBarClose,"data-bi-id":"privacy-overview-messagebar-dismiss",onDismiss:function(){i(!1)},pageArea:e}}):null)},hg=function(){var e=(0,Zt.useHistory)(),t=Bn(),a=vs().landingContent.adsAndPromotions,n="".concat(il,".ads-promotions.ad-settings"),r="".concat(il,".ads-promotions.promotional-communications"),i=we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"icon",iconName:"StarburstSuggested"},padding:"0",size:"sm",topAlign:!1,imagePadding:"0px"},subtitles:[{children:a.adSettingsDescription,variant:"metadataText"}],title:a.adSettingsTitle,titleTextVariant:"headerText",truncatedTitleTextProps:{lines:1},truncatedSubtitleTextProps:{lines:5}}),o=we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"icon",iconName:"Mail"},padding:"0",size:"sm",topAlign:!1,imagePadding:"0px"},subtitles:[{children:a.promotoinsDescription,variant:"metadataText"}],title:a.promotoinsTitle,titleTextVariant:"headerText",truncatedTitleTextProps:{lines:1},truncatedSubtitleTextProps:{lines:5}});return we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Heading,{tag:"h2"},a.title),we().createElement(gn.Text,null,a.description)),we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},we().createElement(gn.ListItem,{key:n,id:n,variant:"EightFour",columns:[i,we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",textElements:[]})],onClickProps:{pageArea:t.areaPrefix,"aria-label":a.adSettingsDescription,"data-bi-id":n,onClick:function(){return e.push("ad-settings")}}}),we().createElement(gn.ListItem,{key:r,id:r,variant:"EightFour",columns:[o,we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",textElements:[]})],onClickProps:{pageArea:t.areaPrefix,"aria-label":a.promotoinsDescription,"data-bi-id":r,onClick:function(){return window.open("/profile/communications","_blank")}}})))},fg=function(){var e=(0,Zt.useHistory)(),t=Bn().areaPrefix,a=vs().landingContent.children,n=(0,Ee.useState)([]),r=(0,Fn.A)(n,2),i=r[0],o=r[1];return(0,gn.useMount)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Um();case 2:(t=e.sent)&&o(t);case 4:case"end":return e.stop()}}),e)})))),i.length>0?we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Heading,{tag:"h2"},a.title),we().createElement(gn.Text,null,a.description)),we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},i.map((function(n){return we().createElement(gn.ListItem,{key:n.cid,id:n.cid,variant:"SixSix",columns:[we().createElement(gn.PersonaTitleColumn,{personaProps:{imageUrl:n.profilePictureUrl,size:"32"},title:n.displayName}),we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",textElements:[]})],onClickProps:{pageArea:t,"aria-label":Le(a.ariaLabel,n.displayName),"data-bi-id":"overview.children.child",onClick:function(){return e.push("/child/".concat(n.cid))}}})})))):null},vg=function(){var e,t=Bn(),a=vs().landingContent.introduction;return we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Stack,null,we().createElement(gn.Text,null,(null!==(e=t.selfRights)&&void 0!==e&&e.canManage,a.description))),we().createElement(gn.Stack,null,we().createElement(gn.Hyperlink,{"data-bi-id":"".concat(il,".introduction.cta"),"aria-label":a.learnMore1LinkText,underline:!0,href:"https://go.microsoft.com/fwlink/p/?linkid=829092",target:"_blank"},a.learnMore1LinkText)))},yg=function(){var e=vs().landingContent.microsoftProductSettings,t=Qa("GCoreAppsBrand"),a=we().createElement(gn.Hyperlink,{"aria-label":e.linkText,"data-bi-id":"".concat(il,".other-settings"),href:"https://support.microsoft.com/topic/where-can-i-find-privacy-settings-in-microsoft-products-206f6928-2694-4adf-a50f-9edb95897d81",target:"_blank"},e.linkText),n={products:[{"data-bi-id":"".concat(il,".products.windows"),"aria-label":"Windows",mediaText:"Windows",mediaImage:{imageType:"image",src:"".concat(Bl,"compassassets/097e1015-29f6-4d8e-a3fe-fe5d901020ba.svg")},ctaUrl:"https://support.microsoft.com/windows/change-privacy-settings-in-windows-55466b7b-14de-c230-3ece-6b75557c5227"},{"data-bi-id":"".concat(il,".products.xbox"),"aria-label":"Xbox",mediaText:"Xbox",mediaImage:{imageType:"image",src:"".concat(Bl,"compassassets/995e0349-5f76-4cc1-b835-06e29ee1dfc6.svg")},ctaUrl:"https://go.microsoft.com/fwlink/p/?LinkId=746875"},{"data-bi-id":"".concat(il,".products.microsoft-365"),"aria-label":"Microsoft 365",mediaText:"Microsoft 365",mediaImage:{imageType:"image",src:"".concat(Bl,"m365_copilot_icon.svg")},ctaUrl:"privacy/data-settings"},{"data-bi-id":"".concat(il,".products.teams"),"aria-label":"Teams",mediaText:"Teams",mediaImage:{imageType:"image",src:"".concat(Bl,t?"compassassets/TeamsIllustration.svg":"compassassets/5216a4d6-f930-4f5c-86cb-c8254d18a7fc.svg")},ctaUrl:"https://go.microsoft.com/fwlink/p/?linkid=2128346"},{"data-bi-id":"".concat(il,".products.edge"),"aria-label":"Edge",mediaText:"Edge",mediaImage:{imageType:"image",src:"".concat(Bl,"compassassets/27c34679-792d-427d-b201-6805f60fc8e6.png")},ctaUrl:"https://support.microsoft.com/topic/adjust-privacy-settings-in-microsoft-edge-600ee799-081c-4ab7-b6c2-d8a9baeda3c4"}],"aria-label":"**TBD**"};return we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Heading,{tag:"h2"},e.title),we().createElement(gn.RichText,{textWithTokens:e.description,tokensAndValues:{0:a}})),we().createElement(gn.MediaGroup,n))},Eg=(0,gn.listItemComponent)((function(){var e=(0,Zt.useHistory)(),t=vs(),a=Bn(),n=t.landingContent,r="".concat(il,".copilot-line-item"),i=n.productivity.copilotTitle,o=n.productivity.copilotDescription,c=we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"icon",iconName:"Copilot"},padding:"0",size:"sm",topAlign:!1,imagePadding:"0px"},subtitles:[{children:o,variant:"metadataText"}],title:i,titleTextVariant:"headerText",truncatedTitleTextProps:{lines:1},truncatedSubtitleTextProps:{lines:5}}),s={pageArea:a.areaPrefix,"aria-label":"".concat(i," ").concat(o),"data-bi-id":r,onClick:function(){return e.push("copilot")}};return we().createElement(gn.ListItem,{key:r,id:r,variant:"EightFour",columns:[c,we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",textElements:[]})],"aria-label":o,onClickProps:s})})),wg=(0,gn.listItemComponent)((function(){var e=(0,Zt.useHistory)(),t=vs(),a=Bn(),n=t.landingContent,r="".concat(il,".people-suggestions-line-item"),i=n.productivity.peopleTitle,o=n.productivity.peopleDescription,c=we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"icon",iconName:"People"},padding:"0",size:"sm",topAlign:!1,imagePadding:"0px"},subtitles:[{children:o,variant:"metadataText"}],title:i,titleTextVariant:"headerText",truncatedTitleTextProps:{lines:1},truncatedSubtitleTextProps:{lines:5}}),s={pageArea:a.areaPrefix,"aria-label":"".concat(i," ").concat(o),"data-bi-id":r,onClick:function(){return e.push("people-suggestions")}};return we().createElement(gn.ListItem,{key:r,id:r,variant:"EightFour",columns:[c,we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",textElements:[]})],"aria-label":o,onClickProps:s})})),bg=(0,gn.listItemComponent)((function(){var e=(0,Zt.useHistory)(),t=vs().landingContent.productivity,a=Bn(),n="".concat(il,".search-and-news-personalization-line-item"),r=we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"icon",iconName:"Search"},padding:"0",size:"sm",topAlign:!1,imagePadding:"0px"},subtitles:[{children:t.searchAndNewsPersonalizationDescription,variant:"metadataText"}],title:t.searchAndNewsPersonalizationTitle,titleTextVariant:"headerText",truncatedTitleTextProps:{lines:1},truncatedSubtitleTextProps:{lines:5}}),i={pageArea:a.areaPrefix,"aria-label":"".concat(t.searchAndNewsPersonalizationTitle," ").concat(t.searchAndNewsPersonalizationDescription),"data-bi-id":n,onClick:function(){return e.push("search-and-news-personalization")}};return we().createElement(gn.ListItem,{key:n,id:n,variant:"EightFour",columns:[r,we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",columnAlign:"end",textElements:[]})],"aria-label":t.searchAndNewsPersonalizationDescription,onClickProps:i})})),xg=(0,gn.listItemComponent)((function(){var e=(0,Zt.useHistory)(),t=vs(),a=Bn(),n=(0,Ee.useState)(),r=(0,Fn.A)(n,2),i=r[0],o=r[1],c=t.sharedContent,s=t.landingContent,l="s"===(0,gn.useViewport)(),d="".concat(il,".spelling-text-line-item");(0,gn.useMount)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(l){e.next=5;break}return e.next=3,Fs();case 3:t=e.sent,o({children:Ws(t.customDictionary.length,c.activityCount,c,a.language),variant:"headerText"});case 5:case"end":return e.stop()}}),e)}))));var u=s.productivity.spellingTitle,m=s.productivity.spellingDescription,p=we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"icon",iconName:"ReadingMode"},padding:"0",size:"sm",topAlign:!1,imagePadding:"0px"},subtitles:[{children:m,variant:"metadataText"}],title:u,titleTextVariant:"headerText",truncatedTitleTextProps:{lines:1},truncatedSubtitleTextProps:{lines:5}}),g={pageArea:a.areaPrefix,"aria-label":"".concat(u," ").concat(m),"data-bi-id":d,onClick:function(){return e.push("spelling-text")}};return we().createElement(gn.ListItem,{key:d,id:d,variant:"EightFour",columns:[p,we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",columnAlign:"end",textElements:i?[i]:[]})],"aria-label":m,onClickProps:g})})),kg=(0,gn.listItemComponent)((function(){var e=(0,Zt.useHistory)(),t=vs(),a=Bn(),n=t.landingContent,r="".concat(il,".account-windows-line-item"),i=n.productivity.accountWindowsTitle,o=n.productivity.accountWindowsDescription,c=we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"icon",iconName:"MicrosoftLogo"},padding:"0",size:"sm",topAlign:!1,imagePadding:"0px"},subtitles:[{children:o,variant:"metadataText"}],title:i,titleTextVariant:"headerText",truncatedTitleTextProps:{lines:1},truncatedSubtitleTextProps:{lines:5}}),s={pageArea:a.areaPrefix,"aria-label":o,"data-bi-id":r,onClick:function(){return e.push("account-windows")}};return we().createElement(gn.ListItem,{key:r,id:r,variant:"EightFour",columns:[c,we().createElement(gn.TextFinalColumn,{contentType:"text",iconName:"ChevronRight",textElements:[]})],"aria-label":o,onClickProps:s})})),Cg=function(){var e=ma(),t=vs().landingContent.productivity,a="".concat(il,".check-wasc-eligibility"),n="".concat(il,".productivity"),r=we().createElement(gn.Hyperlink,{"aria-label":t.contactLinkText,"data-bi-id":"".concat(il,".contact-link"),href:"https://go.microsoft.com/fwlink/?linkid=2157235",target:"_blank"},t.contactLinkText),i=we().createElement(gn.Hyperlink,{"aria-label":t.learnMoreText,"data-bi-id":"".concat(il,".learn-more-link"),href:"https://go.microsoft.com/fwlink/?linkid=2157236",target:"_blank"},t.learnMoreText),o=[we().createElement(gm,{dataType:"location"}),we().createElement(gm,{dataType:"browse"}),we().createElement(gm,{dataType:"usage"}),we().createElement(xg,null),we().createElement(fm,null),we().createElement(wg,null),we().createElement(bg,null),we().createElement(Eg,null)],c=function(){var t=(0,ys.A)(ws().mark((function t(){return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({name:a,status:"first-load"}),t.prev=1,t.next=4,Au();case 4:t.sent&&o.push(we().createElement(kg,null)),e({name:a,status:"finished"}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),e({name:a,status:"finished"});case 12:case"end":return t.stop()}}),t,null,[[1,9]])})));return function(){return t.apply(this,arguments)}}();(0,gn.useMount)((0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:case"end":return e.stop()}}),e)}))));var s=we().createElement(gn.List,{isAlwaysExpanded:!0},we().createElement(gn.ListItem,{columns:[we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{width:150},{}]}),we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{}]})],variant:"SixSix"}),we().createElement(gn.ListItem,{columns:[we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{width:150},{}]}),we().createElement(gn.LineShimmerColumn,{shimmerLineProps:[{}]})],variant:"SixSix"})),l=we().createElement(gn.List,{isAlwaysExpanded:!0,roundedCorners:!0,shadow:!0},o);return we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Stack,null,we().createElement(gn.Heading,{tag:"h2"},t.title)),we().createElement(gn.Stack,null,we().createElement(gn.RichText,{textWithTokens:t.description,tokensAndValues:{0:r}}))),we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.ShimmerProgressView,{operationData:{componentName:n,operationName:a},firstLoadView:s,finishedView:l}),we().createElement(gn.RichText,{textWithTokens:t.footerText,tokensAndValues:{0:i},variant:"bodySecondaryText"})))},Tg={serviceAlerts:[]},Sg=(we().createContext({pageArea:"",initialAlerts:Tg,strings:void 0,getAlerts:function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return[2,Tg]}))}))},fixPiAction:function(){},payNowAction:function(){},alertsCallback:void 0}),{}),Ag="status",Pg="launchMethod",Dg="Common.ACWMessageBar",Ig=function(e,t,a){var n="common.acwmessagebar";switch(t){case"Email":return"".concat(n,".").concat(e,".email.").concat(a);case"SMS":return"".concat(n,".").concat(e,".phone.").concat(a);case"MsftAuthApp":return"".concat(n,".").concat(e,".authapp.").concat(a)}},_g=function(e){var t=e.pageArea,a=e.returnUrl,r=e.emailProofAlertStrings,i=e.phoneProofAlertStrings,o=e.getAccountState,c=e.impressionBeaconUrl,s=e.clickBeaconUrl,l=e.clientId,d=e.ocid,u=e.uaid,m=e.cv,p=e.mkt,g=e.origin,h=e.id,f=e.scenarioTracking,v=(0,Ee.useState)(),y=v[0],E=v[1],w=(0,Ee.useState)(!1),b=w[0],x=w[1],k=ma(),C=function(e,t){return"".concat(Dg,".").concat(e,".").concat(t)}(t,"GetAccountState"),T="s"===(0,gn.useViewport)(),S=Qa("ACWCooldownOnDismiss"),A=(0,gn.useIris)(c,s),P=A[0],D=A[1],I=A[2],_=(0,Ee.useState)(!1),L=_[0],R=_[1],N=function(e,n){var r=e.actionUrl;if("home"===t&&Qa("ACWExpHomeStart")){var i=new RegExp("add","i");r=r.replace(i,"start")}var o=function(e,t,a,n,r,i,o,c,s){var l=new URL(e);return l.searchParams.append("uaid",t),l.searchParams.append("cv",a),l.searchParams.append("client_id",r),l.searchParams.append("client_flight",n),l.searchParams.append(Pg,s),l.searchParams.append("mkt",i),l.searchParams.append("origin",o),l.searchParams.append("ru",c),l.href}(r,u,m,d,l,p,g,a,"messageBarCtaClick");return{messageBarType:"warning",messageContent:e.title,actionProps:{actionType:"hyperlink",children:e.landingPageButton,"aria-label":e.landingPageButton,"data-bi-id":Ig(t,n,"cta"),href:o,onClick:function(e){I(e),"Email"===n?null===f||void 0===f||f.scenarioReportEmailAlertCtaClicked():null===f||void 0===f||f.scenarioReportPhoneAlertCtaClicked()}},dismissButtonProps:{pageArea:t,onDismiss:function(){x(!1),function(e){var t=new Date;localStorage.setItem(e,JSON.stringify(t))}($g),S&&R(!0)},"data-bi-id":Ig(t,n,"close"),"aria-label":e.buttonDismissText},messageBarVariant:"floating",id:h}};return Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t,a,c,s,l,d,u,m,p,g,h;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),k({name:C,status:"first-load"}),[4,o()];case 1:if(e=n.sent(),1===(t=e.missingProofs).length)for(a=0,c=t;a<c.length;a++){if("Email"===(s=c[a])&&r){E(N(r,s)),x(!0),S||R(!0),null===f||void 0===f||f.scenarioReportEmailAlertShown();break}if("SMS"===s&&i){E(N(i,s)),x(!0),S||R(!0),null===f||void 0===f||f.scenarioReportPhoneAlertShown();break}null===f||void 0===f||f.scenarioReportMissingAlertSkipped("missingProofsMisMatch:".concat(s))}else null===f||void 0===f||f.scenarioReportMissingAlertSkipped("missingProofsLength:".concat(t.length));return k({name:C,status:"finished"}),[3,3];case 2:return l=n.sent(),d=l,null===f||void 0===f||f.scenarioReportMissingAlertSkipped("error:".concat(d.message)),Qa("ACWGSAErrorHandling")?(u=null===(g=null===(p=null===(m=d.response)||void 0===m?void 0:m.data)||void 0===p?void 0:p.data)||void 0===g?void 0:g.signInLink,401===(null===(h=d.response)||void 0===h?void 0:h.status)?(k({name:C,status:"finished",customData:d}),u&&(window.location.href=u)):k({name:C,status:"failed",error:d})):k({name:C,status:"failed",error:d}),[3,3];case 3:return[2]}}))}))})),we().createElement(ha,{operationData:{componentName:Dg,operationName:C},firstLoadView:we().createElement(we().Fragment,null),finishedView:we().createElement(we().Fragment,null,b?we().createElement(gn.MessageBar,(0,n.__assign)({},y,{isMultiline:T,messageContentId:"acw-message-bar"})):null,L?P:null,D),failedView:we().createElement(we().Fragment,null)})},Lg=function(e){var t=e.gsaServiceConfig,a=(0,n.__rest)(e,["gsaServiceConfig"]),r=(0,Ee.useState)([hn(t.scopeResourceUri)])[0],i=(0,Ee.useState)(!0),o=i[0],c=i[1],s={scopes:r,fallback:cn.None,shouldLoad:o},l=Ln(s),d=l.accessToken,u=l.accessTokenAcquisitionStatus,m=(0,Ee.useState)(we().createElement(we().Fragment,null)),p=m[0],g=m[1];return(0,Ee.useEffect)((function(){var e;"success"===u&&d?g(we().createElement(_g,(0,n.__assign)({},a,{getAccountState:(e=d,function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var r,i;return(0,n.__generator)(this,(function(o){switch(o.label){case 0:return[4,(c={accessToken:e,gsaServiceConfig:t,reportingData:{uaid:a.uaid}},(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return[2,nn(Sg,"getAccountState",(function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,ka("".concat(c.gsaServiceConfig.endpoint).concat("/v1/accountstate"),{operation:"GLOBAL.ACCOUNTSTATE.GET.ACCOUNTSTATE",customData:c.reportingData},{responseType:"json",headers:{Authorization:"Bearer ".concat(c.accessToken)}})];case 1:return[2,e.sent().data]}}))}))}))]}))})))];case 1:return r=o.sent(),i=function(e){var t=[];if(e.goodStateRecommendations.recoverable){var a=e.goodStateRecommendations.recoverable.proofAccruals;a&&(t=a.flatMap((function(e){return e.proofOptions})).sort((function(e,t){return e.priority-t.priority})).map((function(e){return e.proof})))}return t}(r),[2,{missingProofs:i}]}var c}))}))})}))):"failed"===u&&c(!1)}),[u,d]),p},Rg={},Ng=function(e){var t=(0,n.__rest)(e,[]);return we().createElement(_g,(0,n.__assign)({},t,{getAccountState:function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,a;return(0,n.__generator)(this,(function(r){switch(r.label){case 0:return[4,(i={reportingData:{uaid:t.uaid}},(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){return[2,nn(Rg,"getAccountState",(function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,ka("".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 e=r.sent(),a=function(e){var t=[];if(e.goodStateRecommendations.recoverable){var a=e.goodStateRecommendations.recoverable.proofAccruals;a&&(t=a.flatMap((function(e){return e.proofOptions})).sort((function(e,t){return e.priority-t.priority})).map((function(e){return e.proof})))}return t}(e),[2,{missingProofs:a}]}var i}))}))}}))},Mg="MSAAPI",Bg=[is.Unauthorized],Og=Cs(Bg),Fg=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ts("".concat(Rs,"/msa/authenticator-enabled-status"),"".concat(Ms,".").concat(Mg,".GETAUTHENTICATORENABLEDSTATUS"))];case 1:return[2,e.sent()]}}))}))},Vg=function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ts("".concat(Rs,"/msa/user-proofs"),"".concat(Ms,".").concat(Mg,".GETUSERPROOFS"),{},{overrideRequestQosData:Og})];case 1:return[2,e.sent()]}}))}))},Ug=function(e){var t=(0,n.__rest)(e,[]);return we().createElement(_g,(0,n.__assign)({},t,{getAccountState:function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,Vg()];case 1:return e=a.sent(),t=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}(e),[2,{missingProofs:t}]}}))}))}}))},Hg=function(e){if(!e)return"";var t=e.charAt(0).toUpperCase(),a=e.slice(1).toLowerCase();return"".concat(t).concat(a)},Gg=function(e){var t=Hg(e);return"AMC_ACW_".concat(t)},qg="EmailAlertCtaClicked",Wg="PhoneAlertCtaClicked",zg="ACWRedirect",jg="ACWRedirectResume",Qg=function(e,t){Xt("N/A","ACWMessageBar","common.acwmessagebar.".concat(e,".").concat(t))},Xg="Common.AMCACWMessageBar",Yg=function(e,t){var a;return e.has(t)&&(a=e.get(t)),a},$g="LastDismissedACWMessageBar",Kg=function(e){var t,a=e.pageArea,r=e.returnUrl,i=e.accountStateSource,o=e.clientId,c=e.ocid,s=e.language,l=e.content,d=(0,Ee.useState)(),u=d[0],m=d[1],p=He($g),g=(0,Ee.useState)(!1),h=g[0],f=g[1],v=ma(),y=function(e,t){return"".concat(Xg,".").concat(e,".").concat(t)}(a,"GetCampaignForJadis"),E=function(e){return{scenarioReportEmailAlertShown:function(){Qg(e,"email")},scenarioReportPhoneAlertShown:function(){Qg(e,"phone")},scenarioReportMissingAlertSkipped:function(t){Xt("N/A","ACWMessageBar","common.acwmessagebar.".concat(e,".").concat(t))},scenarioReportEmailAlertCtaClicked:function(){var t;Pt({area:e,scenario:Gg(e),step:qg}),Rt({step:zg,data:(t={},t.launchMethod=qg,t)})},scenarioReportPhoneAlertCtaClicked:function(){var t;Pt({area:e,scenario:Gg(e),step:Wg}),Rt({step:zg,data:(t={},t.launchMethod=Wg,t)})},scenarioReportCancel:function(e){It({data:(0,n.__assign)({},e)})},scenarioReportUserBack:function(t,a){var r=jg,i=zg;Lt({area:e,scenario:Gg(e),fromStep:i,step:"".concat(r,".").concat(t),data:(0,n.__assign)({},a)})},scenarioReportSuccessfulEnd:function(e){_t({data:(0,n.__assign)({},e)})}}}(a),w=function(){var e=(0,so.DP)();return(0,Ee.useCallback)((function(t,a,r,i,o){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var c,s;return(0,n.__generator)(this,(function(l){switch(l.label){case 0:return c=[],[4,co(t,a,i)];case 1:return(s=l.sent())&&(r&&(s=(0,n.__assign)((0,n.__assign)({},s),{AdditionalDataRequested:["EmailAddress"]})),c.push(s)),window.OfficeBrowserFeedback&&c.length>0&&(lo(a,e,r,null===o||void 0===o?void 0:o.puid,null===o||void 0===o?void 0:o.sku),window.OfficeBrowserFeedback.floodgate.initOptions={autoDismiss:3,campaignDefinitions:c},window.OfficeBrowserFeedback.floodgate.initialize().then((function(){return window.OfficeBrowserFeedback.floodgate.start()})).then((function(){return window.OfficeBrowserFeedback.floodgate.getEngine().getActivityListener().logActivity("NpsClick")}))),[2]}}))}))}),[e])}(),b=(0,Zt.useLocation)(),x=new URLSearchParams(b.search),k=Yg(x,Ag),C=Yg(x,"res"),T=Yg(x,Pg),S=((t={}).res=null!==C&&void 0!==C?C:"undefined",t.status=null!==k&&void 0!==k?k:"undefined",t.launchMethod=null!==T&&void 0!==T?T:"undefined",t);Se((function(){k&&C&&(E.scenarioReportUserBack(C,S),"completed"===k?(E.scenarioReportSuccessfulEnd(S),Qa("ACWShowSuccessSurvey")&&w("acw-success-survey",s)):"cancelled"!==k&&"canceled"!==k||(E.scenarioReportCancel(S),Qa("ACWShowCancelSurvey")&&w("acw-cancel-survey",s)))}));var A=Ng;"getAccountStateMsaljs"===i.kind?A=Lg:"getUserProofs"===i.kind&&(A=Ug);var P=function(e,t){void 0===e&&(e=""),void 0===t&&(t="");var n=xe().replace(/-/g,""),l=Ot(),d=s,u=function(e){return"AMC_".concat(Hg(e))}(a);return{pageArea:a,returnUrl:r,gsaServiceConfig:"getAccountStateMsaljs"===i.kind?i.gsaServiceConfig:void 0,impressionBeaconUrl:e,clickBeaconUrl:t,clientId:o,ocid:c,uaid:n,cv:l,mkt:d,origin:u,id:"".concat(a,".acw.messagebar"),scenarioTracking:E}};return Se((function(){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t,a,r,i,o,c,s;return(0,n.__generator)(this,(function(d){switch(d.label){case 0:return d.trys.push([0,4,,5]),v({name:y,status:"first-load"}),Qa("ACWBypassIris")?(o=P(),e={title:l.neverLoseAccessToYourMicrosoftAccount,landingPageButton:l.addAnAlternateEmailAddressLink.text,actionUrl:l.addRecoveryMethodLink.url,buttonDismissText:l.close},t={title:l.neverLoseAccessToYourMicrosoftAccount,landingPageButton:l.addARecoveryPhoneNumberLink.text,actionUrl:l.addRecoveryMethodLink.url,buttonDismissText:l.close},m((0,n.__assign)((0,n.__assign)({},o),{emailProofAlertStrings:e,phoneProofAlertStrings:t})),f(!(void 0!==p&&p<3)),[3,3]):[3,1];case 1:return"common.acw.messagebar.v2",[4,em("common.acw.messagebar.v2")];case 2:(a=d.sent()).model&&(r=a.model.ad,i=r.proofOption,o=P(a.model.prm._imp,a.model.tracking.baseUri),c=function(e,t){return{title:t.title,landingPageButton:t.landingPageButton,actionUrl:e.addRecoveryMethodLink.url,buttonDismissText:t.buttonDismissText}}(l,r),"Email"===i?(m((0,n.__assign)((0,n.__assign)({},o),{emailProofAlertStrings:c})),f(!0)):"SMS"===i&&(m((0,n.__assign)((0,n.__assign)({},o),{phoneProofAlertStrings:c})),f(!0))),d.label=3;case 3:return v({name:y,status:"finished"}),[3,5];case 4:return s=d.sent(),v({name:y,status:"failed",error:s}),[2];case 5:return[2]}}))}))})),we().createElement(ha,{operationData:{componentName:Xg,operationName:y},firstLoadView:we().createElement(we().Fragment,null),finishedView:h?we().createElement(A,(0,n.__assign)({},u)):null,failedView:we().createElement(we().Fragment,null)})},Jg=function(){var e=Bn(),t=vs().overviewContent,a=window.location.href,n={kind:"getAccountStateMsaljs",gsaServiceConfig:e.gsaServiceConfig},r={pageArea:e.areaPrefix,returnUrl:a,accountStateSource:n,ocid:"cmmoce5ixjk",clientId:e.amcmsaAppConfig.clientIdHex,language:e.language,content:t.acwMessageBar};return we().createElement(Kg,r)},Zg=(0,gn.listItemComponent)((function(e){var t=e.isComplete,a=e.viewIndex,n=e.stepTitle,r=e.stepText,i=vs().overviewContent.safetyCheckup.dialogV2Beta.roster,o=Op(),c=o.currentStep,s=o.setCurrentStep,l={"aria-label":t?i.reviewAction:i.getStarted,"data-bi-id":"".concat(Ap,".").concat(c,".").concat(a,".item"),onClick:function(){return s(a)},pageArea:"privacy.safety-checkup-v2Beta"};return we().createElement(gn.ListItem,{onClickProps:l,columns:[we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{iconName:t?"CompletedSolid":"InfoSolid",iconColor:t?"successIcon":"highlighter",imageType:"icon"},size:"md"},title:n,titleTextVariant:"subjectTitle",subtitles:[{children:r}]}),we().createElement(gn.TextFinalColumn,{columnAlign:"end",contentType:"none",iconName:"ChevronRight"})],variant:"EightFour"})})),eh=function(){var e,t,a,n,r,i=vs(),o=Bn().userPuid,c="LoadProfilePicture",s=Op(),l=s.userProofStates,d=s.setUserProofStates,u=s.newOfficeSettingsUser,m=s.recurringDeleteData,p=s.isChildUser,g=i.overviewContent.safetyCheckup.dialogV2Beta,h=!(null===m||void 0===m||!m.cardTypeFilter_browse),f=!(null===m||void 0===m||!m.cardTypeFilter_search),v=null===m||void 0===m||null===(e=m.cardTypeFilter_browse)||void 0===e?void 0:e.interval,y=null===m||void 0===m||null===(t=m.cardTypeFilter_browse)||void 0===t?void 0:t.nextDelete,E=null===m||void 0===m||null===(a=m.cardTypeFilter_search)||void 0===a?void 0:a.interval,w=null===m||void 0===m||null===(n=m.cardTypeFilter_search)||void 0===n?void 0:n.nextDelete,b=function(e){return e?e.substring(4):""},x=b(v),k=b(E),C=y?(0,gn.toLongDate)(y):"",T=w?(0,gn.toLongDate)(w):"",S=Le(g.roster.recurringDeleteCompleteDescription,[x,C]),A=Le(g.roster.recurringDeleteCompleteDescription,[k,T]),P=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Vg();case 3:return t=e.sent,e.next=6,Fg();case 6:a=e.sent,d((function(e){return(0,On.A)((0,On.A)({},e),{},{hasRecoveryEmail:t.emails&&t.emails.length>0,hasRecoveryPhone:t.phoneNumbers&&t.phoneNumbers.length>0,isAuthenticatorEnabled:a.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)}}();Se((function(){P()}));var D=[{state:l.hasRecoveryEmail||l.hasRecoveryPhone,index:_p.accountInfo,title:g.roster.accountInfoTitle,incompleteDescription:g.roster.accountInfoDescriptionIncomplete,completeDescription:g.roster.accountInfoDescriptionComplete},{state:l.hasAuthenticator,index:_p.authenticatorInfo,title:g.roster.authenticatorTitle,incompleteDescription:g.roster.authenticatorDescriptionIncomplete,completeDescription:g.roster.authenticatorDescriptionComplete},{state:l.hasEdge,index:_p.safeBrowsing,title:g.roster.edgeTitle,incompleteDescription:g.roster.edgeDescriptionIncomplete,completeDescription:g.roster.edgeDescriptionComplete},{state:!0,index:_p.moreSafetyResources,title:g.roster.additionalLinksTitle,incompleteDescription:g.roster.additionalLinksDescriptionIncomplete,completeDescription:g.roster.additionalLinksDescriptionComplete},{state:!u,index:_p.officeSettings,title:g.roster.officeSettingsTitle,incompleteDescription:g.roster.officeSettingsDescriptionIncomplete,completeDescription:g.roster.officeSettingsDescriptionComplete},{state:h,index:_p.recurringDelete,title:g.roster.recurringDeleteBrowsingTitle,incompleteDescription:g.roster.recurringDeleteIncompleteDescription,completeDescription:S},{state:f,index:_p.recurringDelete,title:g.roster.recurringDeleteSearchTitle,incompleteDescription:g.roster.recurringDeleteIncompleteDescription,completeDescription:A}].filter((function(e){return!p||e.index!==_p.recurringDelete})),I=D.filter((function(e){return!0===e.state?e:null})),_=D.filter((function(e){return!1===e.state?e:null})),L=function(e){return we().createElement(gn.ExpandedFeatureGroup,{detailsArea:we().createElement(gn.List,{isAlwaysExpanded:!0,borderRadius:"8px"},e.map((function(e){return function(e){return we().createElement(Zg,{isComplete:!!e.state,viewIndex:e.index,stepTitle:e.title,stepText:e.state?e.completeDescription:e.incompleteDescription,key:e.title})}(e)})))})},R=(0,Ee.useState)([o.valueAsHex]),N=(0,Fn.A)(R,1)[0],M=Zn({userIds:N,operationName:c}).profilePictureData,B="".concat(Ap,".personaPicture");return we().createElement(we().Fragment,null,0===_.length?we().createElement("div",{style:{position:"relative"}},we().createElement(gn.Stack,null,we().createElement(gn.Image,{src:g.images.congratsImage.src,alt:g.images.congratsImage.alt,width:"100%"}),we().createElement("div",{style:{position:"absolute",left:0,right:0,marginLeft:"auto",marginRight:"auto"}},we().createElement(gn.Stack,{horizontal:!0,horizontalAlign:"center",textAlignment:"center"},we().createElement(gn.Stack,{padding:"20px 0px 0px",horizontalAlign:"center"},we().createElement(gn.Persona,{id:B,trackingId:B,operationData:{componentName:B,operationName:c},imageUrl:null===(r=M[N[0]])||void 0===r?void 0:r.url,size:"72",hideText:!0}))),we().createElement(gn.Stack,{horizontal:!0,horizontalAlign:"center",textAlignment:"center"},we().createElement(gn.Stack,{padding:"20px 0px 0px",horizontalAlign:"center"},we().createElement(gn.Text,{variant:"paneTitle",weightOverride:"semi-bold"},g.roster.congratulationsMessage),we().createElement(gn.Text,null,g.roster.appreciationMessage)))))):null,_.length>0?we().createElement(gn.Stack,{padding:"0 0 42px 0"},we().createElement(gn.Stack,{padding:"0 0 16px 0"},we().createElement(gn.Text,{variant:"subjectTitle"},g.roster.incompleteActions)),L(_)):null,I.length>0?we().createElement(we().Fragment,null,we().createElement(gn.Stack,{padding:"0 0 16px 0"},we().createElement(gn.Text,{variant:"subjectTitle"},g.roster.completeActions)),L(I)):null)},th=(0,gn.listItemComponent)((function(e){var t=e.proofType,a=e.proofValue,n=e.isDrawer,r=vs(),i=Bn().areaPrefix,o=r.overviewContent.safetyCheckup.dialog.accountInfo,c="Email"===t,s=c?o.emailLabel:o.phoneLabel,l=c?o.addOrRemoveEmailAriaLabel:o.addOrRemovePhoneAriaLabel,d=c?o.addEmailAriaLabel:o.addPhoneAriaLabel,u=c?"Mail":"CellPhone",m="".concat(Ap,c?".edit-recovery-email":".edit-recovery-phone"),p=a?o.links.addOrRemoveLink:c?o.links.addEmailLink:o.links.addPhoneLink,g=a?l:d,h={listItemMediaProps:{image:{imageType:"icon",iconName:u,iconColor:"themePrimary"},padding:n?"0px 0px 0px 36px":"0",size:"md"},title:a||"",titleTextVariant:"headerText",subtitles:[{variant:"bodySecondaryText",children:s}]},f=function(){window.open(p,"_blank")},v={actionButtonProps:[{"aria-label":g,"data-bi-id":m,onClick:f,text:a?o.addOrRemove:o.add}],contentType:"none"};return we().createElement(gn.MobileListItem,{backgroundColor:n?"neutralMed":"transparent",leftColumn:we().createElement(gn.MediaTitleColumn,h),rightColumn:we().createElement(gn.ActionButtonFinalColumn,v),onClickProps:{"aria-label":g,"data-bi-id":m,onClick:f,pageArea:i},showDivider:!n})})),ah="".concat(Ap,".get-user-proofs-dialog"),nh="get-user-proofs",rh=_p.accountInfo,ih=function(){var e=Op(),t=e.currentStep,a=e.totalSteps,n=e.isFlowEnded,r=e.setUserProofStates,i=ma(),o=vs(),c=Bn().areaPrefix,s=(0,so.DP)().palette,l=(0,Ee.useState)({emails:[],phones:[]}),d=(0,Fn.A)(l,2),u=d[0],m=d[1],p=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i({name:nh,status:"updating"}),e.prev=1,e.next=4,Vg();case 4:t=e.sent,m({emails:t.emails,phones:t.phoneNumbers}),r((function(e){return(0,On.A)((0,On.A)({},e),{},{hasRecoveryEmail:t.emails&&t.emails.length>0,hasRecoveryPhone:t.phoneNumbers&&t.phoneNumbers.length>0})})),i({name:nh,status:"finished"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),i({name:nh,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 g=o.overviewContent.safetyCheckup.dialog,h={src:o.overviewContent.safetyCheckup.dialogV2Beta.images.accountInfoImage.src,alt:o.overviewContent.safetyCheckup.dialogV2Beta.images.accountInfoImage.alt,imageType:"altTextImage"},f=[];return u&&u.emails&&u.emails.length>0?u.emails.map((function(e){f.push({proofType:"Email",val:e})})):f.push({proofType:"Email",val:""}),u&&u.phones&&u.phones.length>0?u.phones.map((function(e){f.push({proofType:"Phone",val:e})})):f.push({proofType:"Phone",val:""}),(0,Ee.useEffect)((function(){t===rh&&(p(),Dt({step:Lp(t)}),ea({clickId:"".concat(Ap,".account-info.view"),pageArea:c}))}),[p,t,i]),we().createElement(gn.Stack,null,n?null:we().createElement(gn.ProgressTrackerDots,{numberOfSteps:a,currentStep:t+1,dotColor:"themePrimary"}),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0",padding:"10px 0 0 0"},we().createElement(gn.Image,h)),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0",textAlignment:"center"},we().createElement(gn.Text,{variant:"pageTitle"},g.accountInfo.title)),function(e,t,a,n,r,i){var o=a.overviewContent.safetyCheckup.dialog,c=a.overviewContent.safetyCheckup.dialogV2Beta.wizard,s={backgroundColor:t?"neutralMed":"transparent",leftColumn:we().createElement(gn.TextTitleColumn,{title:e?t?o.accountInfo.description:c.accountInfoDescription:o.phoneInfo.description}),rightColumn:we().createElement(gn.TextFinalColumn,{contentType:"none"})},l=we().createElement(gn.Stack,{height:"193px",backgroundColor:r,verticalAlign:"center"},we().createElement(gn.Spinner,{"aria-label":o.loading})),d=we().createElement(gn.List,{isAlwaysExpanded:!0,isTabbable:!0},i.map((function(e,a){return we().createElement(th,{key:a,proofType:e.proofType,proofValue:e.val,isDrawer:t})}))),u=we().createElement(gn.Stack,{height:"193px",padding:"8px 56px"},we().createElement(gn.Text,{variant:"errorBlockIcon",children:o.error}));return we().createElement(gn.Stack,{backgroundColor:r},we().createElement("div",{style:Rp(n,t)},we().createElement(gn.MobileListItem,Object.assign({key:"account-info-title",showDivider:!1,removeRole:!0},s))),we().createElement(ha,{operationData:{componentName:ah,operationName:"get-user-proofs"},updatingView:l,finishedView:d,failedView:u}))}(!0,!1,o,s.white,"transparent",f))},oh="".concat(Ap,".get-authenticator-status-dialog"),ch="get-authenticator-status",sh=_p.authenticatorInfo,lh=function(){var e=vs(),t=Bn().areaPrefix,a=(0,so.DP)().palette,n=Op(),r=n.currentStep,i=n.totalSteps,o=n.isFlowEnded,c=n.userProofStates,s=ma(),l=(0,Ee.useState)(!1),d=(0,Fn.A)(l,2),u=d[0],m=d[1],p=e.overviewContent.safetyCheckup.dialog,g=(0,Ee.useCallback)((0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:s({name:ch,status:"updating"});try{t=!!c.hasAuthenticator,m(t),s({name:ch,status:"finished"})}catch(a){s({name:ch,status:"failed",error:a})}case 2:case"end":return e.stop()}}),e)}))),[s]);(0,Ee.useEffect)((function(){r===sh&&(g(),Dt({step:Lp(r)}),ea({clickId:"".concat(Ap,".authenticator.view"),pageArea:t}))}),[r,g,s]);var h={src:e.overviewContent.safetyCheckup.dialogV2Beta.images.authenticatorImage.src,alt:e.overviewContent.safetyCheckup.dialogV2Beta.images.authenticatorImage.alt,imageType:"altTextImage"};return we().createElement(gn.Stack,null,o?null:we().createElement(gn.ProgressTrackerDots,{numberOfSteps:i,currentStep:r+1,dotColor:"themePrimary"}),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0",padding:"10px 0 0 0"},we().createElement(gn.Image,h)),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0",textAlignment:"center"},we().createElement(gn.Text,{variant:"pageTitle"},p.authenticator.title)),function(e,t,a,n,r,i){var o=t.overviewContent.safetyCheckup.dialog,c=t.overviewContent.safetyCheckup.dialogV2Beta.wizard,s={backgroundColor:r,leftColumn:we().createElement(gn.TextTitleColumn,{title:o.authenticator.description}),rightColumn:we().createElement(gn.TextFinalColumn,{contentType:"none"})},l=i?o.authenticator.usingAuthenticator:o.authenticator.tryAuthenticator,d=i?e?o.authenticator.usingAuthenticatorDescription:c.authenticatorDescriptionComplete:e?o.authenticator.tryAuthenticatorDescription:c.authenticatorDescriptionIncomplete,u={backgroundColor:r,leftColumn:we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"image",src:o.authenticator.iconAuth.src},padding:e?"0px 0px 0px 40px":"0",size:"md"},title:l,titleTextVariant:"headerText",subtitles:[{children:d,variant:"bodySecondaryText"}]}),rightColumn:we().createElement(gn.TextFinalColumn,{contentType:"none",iconName:"ChevronRight"}),onClickProps:{"aria-label":d,"data-bi-id":"".concat(Ap,i?".using-auth-link":".try-auth-link"),onClick:function(){var e=i?o.authenticator.links.usingAuthAppLink:o.authenticator.links.tryAuthAppLink;window.open(e,"_blank")},pageArea:a}},m=we().createElement(gn.Stack,{height:"193px",backgroundColor:"neutralHigh",verticalAlign:"center"},we().createElement(gn.Spinner,{"aria-label":o.loading})),p=we().createElement(gn.List,{isAlwaysExpanded:!0,isTabbable:!0},we().createElement(gn.MobileListItem,Object.assign({key:"authenticator-description",showDivider:!1},u))),g=we().createElement(gn.Stack,{height:"193px",padding:"8px 56px"},we().createElement(gn.Text,{variant:"errorBlockIcon",children:o.error}));return we().createElement(gn.Stack,{backgroundColor:r},we().createElement("div",{style:Rp(n,e)},we().createElement(gn.MobileListItem,Object.assign({key:"authenticator-title",showDivider:!1,removeRole:!0},s))),we().createElement("div",{style:e?void 0:Np(n)},we().createElement(ha,{operationData:{componentName:oh,operationName:"get-authenticator-status"},updatingView:m,finishedView:p,failedView:g})))}(!1,e,t,a.white,"transparent",u))},dh=_p.moreSafetyResources,uh=function(){var e=vs(),t=Bn().areaPrefix,a=(0,so.DP)().palette,n=Op(),r=n.currentStep,i=n.totalSteps,o=n.isFlowEnded,c=e.overviewContent.safetyCheckup.dialog.additionalLinks,s={src:e.overviewContent.safetyCheckup.dialogV2Beta.images.additionalLinksImage.src,alt:e.overviewContent.safetyCheckup.dialogV2Beta.images.additionalLinksImage.alt,imageType:"altTextImage"};return(0,Ee.useEffect)((function(){r===dh&&(Dt({step:Lp(r)}),ea({clickId:"".concat(Ap,".authenticator.view"),pageArea:t}))}),[r]),we().createElement(gn.Stack,null,o?null:we().createElement(gn.ProgressTrackerDots,{numberOfSteps:i,currentStep:r+1,dotColor:"themePrimary"}),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0",padding:"10px 0 0 0"},we().createElement(gn.Image,s)),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0",textAlignment:"center"},we().createElement(gn.Text,{variant:"pageTitle"},c.title)),function(e,t,a,n,r){var i=t.overviewContent.safetyCheckup.dialog.additionalLinks,o=t.overviewContent.safetyCheckup.dialogV2Beta.images,c=function(e){window.open(e,"_blank")},s=[],l={backgroundColor:r,leftColumn:we().createElement(gn.TextTitleColumn,{title:i.description}),rightColumn:we().createElement(gn.TextFinalColumn,{contentType:"none"})},d={backgroundColor:r,leftColumn:we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:e?{imageType:"icon",iconName:"Lock"}:{imageType:"image",src:o.lockIcon.src},padding:e?"0px 0px 0px 40px":"0",size:"sm"},title:i.changePrivacySettings}),rightColumn:we().createElement(gn.TextFinalColumn,{contentType:"none",iconName:"ChevronRight"}),onClickProps:{"aria-label":i.changePrivacySettings,"data-bi-id":"".concat(Ap,".change-privacy-settings"),onClick:function(){return c(i.links.changePrivacyLink)},pageArea:a}},u={backgroundColor:r,leftColumn:we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:e?{imageType:"icon",iconName:"LaptopSecure"}:{imageType:"image",src:o.safeIcon.src},padding:e?"0px 0px 0px 40px":"0",size:"sm"},title:i.securityAndLearning}),rightColumn:we().createElement(gn.TextFinalColumn,{contentType:"none",iconName:"ChevronRight"}),onClickProps:{"aria-label":i.securityAndLearning,"data-bi-id":"".concat(Ap,".security-and-learning"),onClick:function(){return c(i.links.securityHelpLearningLink)},pageArea:a}};return s.push(we().createElement(gn.MobileListItem,Object.assign({},d,{key:"additional-change-privacy"})),we().createElement(gn.MobileListItem,Object.assign({},u,{key:"additional-security-learning"}))),we().createElement(gn.Stack,{backgroundColor:r},we().createElement("div",{style:Rp(n,e)},e?we().createElement(gn.MobileListItem,Object.assign({key:"additional-title",showDivider:!1,removeRole:!0},l)):null),we().createElement("div",{style:e?void 0:Np(n)},we().createElement(gn.List,{isAlwaysExpanded:!0,isTabbable:!0,key:"additional-services-list"},s)))}(!1,e,t,a.white,"transparent"))},mh=_p.officeSettings,ph=function(){var e=vs(),t=Bn().areaPrefix,a=Op(),n=a.currentStep,r=a.totalSteps,i=a.isFlowEnded,o=e.overviewContent.safetyCheckup,c={src:o.dialogV2Beta.images.officeSettingsImage.src,alt:o.dialogV2Beta.images.officeSettingsImage.alt,imageType:"altTextImage"},s="8px 0";return(0,Ee.useEffect)((function(){n===mh&&(Dt({step:Lp(n)}),ea({clickId:"".concat(Ap,".office-settings.view"),pageArea:t}))}),[n]),we().createElement(gn.Stack,null,i?null:we().createElement(gn.ProgressTrackerDots,{numberOfSteps:r,currentStep:n+1,dotColor:"themePrimary"}),we().createElement(gn.Stack,{horizontalAlign:"center",margin:s,padding:"10px 0 0 0"},we().createElement(gn.Image,c)),we().createElement(gn.Stack,{horizontalAlign:"center",margin:s,textAlignment:"center"},we().createElement(gn.Text,{variant:"pageTitle"},o.dialog.officeSettings.title)),we().createElement(gn.Stack,{horizontalAlign:"center",margin:s,padding:"8px 20px"},we().createElement(gn.Text,null,o.dialog.officeSettings.description)),we().createElement(ug,{isCheckup:!0}))},gh=function(e){var t=e.title,a=e.description,n=e.choiceGroupBiId,r=e.intervalOptions,i=e.selectedOption,o=e.onOptionChange,c=e.componentName,s=e.operationName,l=vs().overviewContent.safetyCheckup.dialog.recurringDelete;return we().createElement(we().Fragment,null,we().createElement(gn.Stack,null,we().createElement(gn.Stack,{childrenGap:"10px"},we().createElement(gn.Text,null,a),we().createElement(gn.Stack,{childrenGap:"10px"},we().createElement(gn.ChoiceGroup,{label:t,optionType:"basic","data-bi-id":n,options:r,selectedKey:i,onChange:function(e,t){o&&null!==e&&void 0!==e&&e.key&&o(e.key)},operationData:{progressViewOperationData:{componentName:c,operationName:s,defaultState:"finished"},errorProps:{errorMessage:l.errorMessage,errorMessageAriaLabel:l.errorMessage,targetOrTriggerButton:{"aria-label":l.errorMessage,"data-bi-id":"".concat(Dp,".").concat(n,"-error-message")}}}})))))},hh=_p.recurringDelete,fh=function(){var e=vs(),t=Op(),a=t.currentStep,n=t.totalSteps,r=t.isFlowEnded,i=t.recurringDeleteData,o=t.browsingInterval,c=t.setBrowsingInterval,s=t.searchInterval,l=t.setSearchInterval,d=t.setHasUnsavedChanges,u=t.hasUnsavedChanges,m=t.isChildUser,p=t.setRecurringDeleteData,g=e.overviewContent.safetyCheckup.dialog.recurringDelete,h=ma(),f=Bn().areaPrefix,v={src:e.overviewContent.safetyCheckup.dialogV2Beta.images.recurringDeleteImage.src,alt:e.overviewContent.safetyCheckup.dialogV2Beta.images.recurringDeleteImage.alt,imageType:"altTextImage"},y=function(e,t,a,n){return{key:e,text:t,"data-bi-id":"".concat(Dp,".").concat(e,".").concat(a,"-interval"),"aria-label":"off"===e?t:"".concat(n," ").concat(t)}},E=function(e){var t,a=null===g||void 0===g||null===(t=g[e])||void 0===t?void 0:t.title;return[y("off",g.intervals.doNotSetup,e,a),y("days30",g.intervals.thirtyDays,e,a),y("days90",g.intervals.ninetyDays,e,a),y("days180",g.intervals.oneEightyDays,e,a)]};function w(e,t,a){return b.apply(this,arguments)}function b(){return b=(0,ys.A)(ws().mark((function e(t,a,n){var r,i,o;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,h({name:Dp,status:"updating"}),!m){e.next=4;break}return e.abrupt("return");case 4:if("off"!==t){e.next=10;break}return e.next=7,Kl(a,n);case 7:case 13:return e.abrupt("return");case 10:if("off"===t){e.next=14;break}return e.next=13,$l(a,t,"active",n);case 14:h({name:Dp,status:"finished"}),e.next=24;break;case 17:throw e.prev=17,e.t0=e.catch(0),h({name:Dp,status:"failed",error:e.t0}),i=e.t0,o=null!==(r=i.toString())&&void 0!==r?r:"Error occurred while syncing recurring delete settings",Dt({step:Dp,error:o}),e.t0;case 24:case"end":return e.stop()}}),e,null,[[0,17]])}))),b.apply(this,arguments)}(0,Ee.useEffect)((function(){var e,t,a,n,r,o,s,d;i&&(u||(c({initial:null!==(e=null===(t=i.cardTypeFilter_browse)||void 0===t?void 0:t.interval)&&void 0!==e?e:"off",current:null!==(a=null===(n=i.cardTypeFilter_browse)||void 0===n?void 0:n.interval)&&void 0!==a?a:"off"}),l({initial:null!==(r=null===(o=i.cardTypeFilter_search)||void 0===o?void 0:o.interval)&&void 0!==r?r:"off",current:null!==(s=null===(d=i.cardTypeFilter_search)||void 0===d?void 0:d.interval)&&void 0!==s?s:"off"})))}),[i,c,l,u]),(0,Ee.useEffect)((function(){a===hh&&(Dt({step:Lp(a)}),ea({clickId:"".concat(Ap,".recurringDelete.view"),pageArea:f}))}),[a,h]);var x=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Yl();case 2:t=e.sent,p(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h({name:"recurringDeleteBrowsing",status:"updating"}),e.prev=1,e.next=4,w(t,"cardTypeFilter_browse");case 4:x(),c((function(e){return(0,On.A)((0,On.A)({},e),{},{current:t})})),d(!0),h({name:"recurringDeleteBrowsing",status:"finished"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),h({name:"recurringDeleteBrowsing",status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),C=function(){var e=(0,ys.A)(ws().mark((function e(t){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h({name:"recurringDeleteSearch",status:"updating"}),e.prev=1,e.next=4,w(t,"cardTypeFilter_search");case 4:x(),l((function(e){return(0,On.A)((0,On.A)({},e),{},{current:t})})),d(!0),h({name:"recurringDeleteSearch",status:"finished"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(1),h({name:"recurringDeleteSearch",status:"update-failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[1,10]])})));return function(t){return e.apply(this,arguments)}}(),T=function(e,t,a,n){var r,i;return we().createElement(gh,{title:null===g||void 0===g||null===(r=g[e])||void 0===r?void 0:r.title,description:null===g||void 0===g||null===(i=g[e])||void 0===i?void 0:i.description,choiceGroupBiId:"".concat(Dp,"-").concat(e,"-interval-options"),intervalOptions:n,selectedOption:t.current,onOptionChange:a,componentName:"browsing"===e?"recurringDeleteBrowsing":"recurringDeleteSearch",operationName:"browsing"===e?"recurringDeleteBrowsing":"recurringDeleteSearch"})};return we().createElement(gn.Stack,null,!r&&we().createElement(gn.ProgressTrackerDots,{numberOfSteps:n,currentStep:a+1,dotColor:"themePrimary"}),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0",padding:"10px 0 0 0"},we().createElement(gn.Image,v)),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0"},we().createElement(gn.Text,{variant:"pageTitle"},g.title)),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0"},we().createElement(gn.Text,null,g.description)),we().createElement(gn.Hyperlink,{href:g.learnMoreLink,"data-bi-id":"".concat(Dp,".learnMore-link"),"aria-label":g.learnMoreAriaLabel,target:"_blank"},g.learnMore),we().createElement(gn.Separator,null),T("browsing",o,(function(e){return k(e)}),E("browsing")),we().createElement(gn.Separator,null),T("search",s,(function(e){return C(e)}),E("search")))},vh=_p.safeBrowsing,yh=function(){var e=vs(),t=Bn().areaPrefix,a=Op(),n=a.currentStep,r=a.totalSteps,i=a.isFlowEnded,o=a.userProofStates,c=(0,Ee.useState)(!1),s=(0,Fn.A)(c,2),l=s[0],d=s[1],u=(0,so.DP)().palette,m=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,Ee.useEffect)((function(){if(n===vh){var e=!!o.hasEdge;d(e),Dt({step:Lp(n)}),ea({clickId:"".concat(Ap,".safe-browsing.view"),pageArea:t})}}),[n]),we().createElement(gn.Stack,null,i?null:we().createElement(gn.ProgressTrackerDots,{numberOfSteps:r,currentStep:n+1,dotColor:"themePrimary"}),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0",padding:"10px 0 0 0"},we().createElement(gn.Image,p)),we().createElement(gn.Stack,{horizontalAlign:"center",margin:"8px 0",textAlignment:"center"},we().createElement(gn.Text,{variant:"pageTitle"},m.title)),function(e,t,a,n,r,i){var o=t.overviewContent.safetyCheckup.dialog.safeSecureBrowsing,c=t.overviewContent.safetyCheckup.dialogV2Beta.wizard,s=e?o.usingEdge:i?c.edgeDescriptionComplete:c.edgeDescriptionIncomplete,l={backgroundColor:r,leftColumn:we().createElement(gn.TextTitleColumn,{title:o.description}),rightColumn:we().createElement(gn.TextFinalColumn,{contentType:"none"})},d={backgroundColor:r,leftColumn:we().createElement(gn.MediaTitleColumn,{listItemMediaProps:{image:{imageType:"image",src:o.iconEdge.src},padding:e?"0px 0px 0px 40px":"0",size:"sm"},title:o.microsoftEdge,titleTextVariant:"headerText",subtitles:[{children:s,variant:"bodySecondaryText"}]}),rightColumn:we().createElement(gn.TextFinalColumn,{contentType:"none",iconName:"ChevronRight"}),onClickProps:{"aria-label":s,"data-bi-id":"".concat(Ap,i?".using-edge-link":".try-edge-link"),onClick:function(){var e=i?o.links.usingEdgeLink:o.links.tryEdgeLink;window.open(e,"_blank")},pageArea:a}};return we().createElement(gn.Stack,{backgroundColor:r},we().createElement("div",{style:Rp(n,e)},we().createElement(gn.MobileListItem,Object.assign({key:"safe-browsing-title",showDivider:!1,removeRole:!0},l))),we().createElement("div",{style:e?void 0:Np(n)},we().createElement(gn.List,{isAlwaysExpanded:!0,isTabbable:!0},we().createElement(gn.MobileListItem,Object.assign({key:"safe-browsing-description",showDivider:!1},d)))))}(!1,e,t,u.white,"transparent",l))},Eh="safety-checkup-recurring-delete",wh=function(){var e=vs(),t=(0,gn.useDialogController)(),a=Op(),n=a.currentStep,r=a.setCurrentStep,i=a.isFlowEnded,o=a.setIsFlowEnded,c=a.userProofStates,s=a.setRecurringDeleteData,l=a.setBrowsingInterval,d=a.setSearchInterval,u=a.browsingInterval,m=a.searchInterval,p=a.setHasUnsavedChanges,g=a.isChildUser,h=e.overviewContent.safetyCheckup.dialog,f=(0,Ee.useRef)(!1),v=ma(),y=(0,Ee.useRef)(n),E=function(e){return{step:Lp(e),data:{userProofStates:c}}};(0,Ee.useEffect)((function(){var e=y.current;g||e!==_p.recurringDelete||n===_p.recurringDelete||Dt({step:Lp(e),data:{browsingInterval:u.current,searchInterval:m.current}}),y.current=n}),[u,n,g,m]);var w=function(){var e=n+1,t=g&&e===_p.recurringDelete?e+1:e;r(t),t===Object.keys(_p).length-1&&(o(!0),Dt(E(t)))},b=function(){r(i?_p.roster:n-1)},x=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o(!1),t.closeDialog();try{i?_t(E(n)):It(E(n))}catch(a){}case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a,n,r;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,v({name:Eh,status:"updating"}),e.next=4,Yl();case 4:t=e.sent,s(t),v({name:Eh,status:"finished"}),e.next=16;break;case 9:e.prev=9,e.t0=e.catch(0),v({name:Eh,status:"failed",error:e.t0}),n=e.t0,r=null!==(a=n.toString())&&void 0!==a?a:"Error occurred while fetching recurring delete settings",Dt({step:Eh,error:r}),l((0,On.A)((0,On.A)({},u),{},{current:u.initial})),d((0,On.A)((0,On.A)({},m),{},{current:m.initial})),p(!1);case 16:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),C={text:h.next,"aria-label":h.next,"data-bi-id":"".concat(Ap,".").concat(n,"-next"),onClick:function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:w();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),onMouseEnter:function(){n!==_p.accountInfo||f.current||g||(f.current=!0,k())}},T={text:h.close,"aria-label":h.close,"data-bi-id":"".concat(Ap,".").concat(n,"-close"),onClick:x},S="830px",A={title:h.title,isOpen:!0,closeButton:{"aria-label":h.close,"data-bi-id":"".concat(Ap,".dialog-close")},onDismiss:x,stickyHeaderFooter:{hasStickyHeaderFooters:!0,bodyMaxHeight:S},staticBodyWidth:"480px",withHeaderHorizontalLine:!0,backButton:function(){if((n!==_p.accountInfo||i)&&n!==_p.roster)return{"aria-label":h.back,"data-bi-id":"".concat(Ap,".").concat(n,"-back"),onClick:b}}(),dialogFooterProps:n===_p.roster?{buttonPrimary:T,hasFooterBackground:!0,hasFooterHorizontalLine:!0}:i?{dialogType:"secondary",buttonRight:T,hasFooterBackground:!0,hasFooterHorizontalLine:!0}:{buttonPrimary:C,hasFooterBackground:!0,hasFooterHorizontalLine:!0},bodyStyleTemp:{padding:"0 24px"},dialogStylesTemp:{main:{height:S,width:"100%"}},headerLeftRightPadding:"16px"},P=we().createElement(gn.Stack,{padding:"27px 0"},n===_p.accountInfo?we().createElement(ih,null):null,n===_p.authenticatorInfo?we().createElement(lh,null):null,n===_p.safeBrowsing?we().createElement(yh,null):null,n===_p.moreSafetyResources?we().createElement(uh,null):null,n===_p.officeSettings?we().createElement(ph,null):null,g||n!==_p.recurringDelete?null:we().createElement(fh,null),n===_p.roster?we().createElement(eh,null):null);return we().createElement(gn.Dialog,A,P)},bh=function(){var e=vs(),t=(0,gn.useDialogController)(),a=Op(),n=a.userProofStates,r=a.setUserProofStates,i=a.resetStates,o=ma(),c=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a,n,i;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Vg();case 3:return t=e.sent,e.next=6,Fg();case 6:a=e.sent,n=Ae(),i={hasRecoveryEmail:t.emails&&t.emails.length>0,hasRecoveryPhone:t.phoneNumbers&&t.phoneNumbers.length>0,hasAuthenticator:a.isAuthenticatorEnabled,hasEdge:n},r(i),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),o({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)}}(),s={featureHeading:{tag:"h2",text:e.overviewContent.safetyCheckup.title,variant:"paneHeader"},bodyText:e.overviewContent.safetyCheckup.description,ctaProps:[{actionProps:{"aria-label":e.overviewContent.safetyCheckup.getACheckUp,"data-bi-id":"".concat(Ap,".start-cta"),type:"primary",kind:"button",text:e.overviewContent.safetyCheckup.getACheckUp,onClick:function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i(),c(),Pt({area:"Privacy",scenario:"SafetyReview",step:"SafetyReviewStart",data:{userProofStates:n}}),t.openDialog(we().createElement(wh,null));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()}}],imageProps:{src:"https://assets.account.microsoft.com/privacy/SafetyCheckup.svg",alt:e.overviewContent.safetyCheckup.image.alt,height:"150px"},backgroundType:"card",layoutType:"2/3"};return we().createElement(we().Fragment,null,we().createElement(gn.Feature,s))},xh=function(){var e=vs().overviewContent;return we().createElement(we().Fragment,null,we().createElement(gn.Announced,{message:e.overviewTitle,ariaLive:"assertive"}),we().createElement(gn.Stack,{id:"overview"},we().createElement(gg,null),we().createElement(Ru,null),we().createElement(gn.Stack,{childrenGap:"64px"},we().createElement(gn.Stack,{childrenGap:"40px"},we().createElement(vg,null),we().createElement(Jg,null),we().createElement(bh,null)),we().createElement(gn.Stack,{childrenGap:"80px"},we().createElement(Cg,null),we().createElement(hg,null),we().createElement(yg,null),we().createElement(fg,null)))))},kh=function(e,t){return void 0===t&&(t=!1),(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,Ss("".concat(Ns,"/delete"),"".concat(Ms,".TESTDELETE"),{types:e,isStandard:t})];case 1:return[2,a.sent()]}}))}))},Ch=function(e,t){return void 0===t&&(t=!1),(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return[4,Ss("".concat(Ns,"/export"),"".concat(Ms,".TESTEXPORT"),{types:e,isStandard:t})];case 1:return[2,a.sent()]}}))}))},Th=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,Ts("".concat(Ns,"/trace-request"),"".concat(Ms,".TESTTRACEREQUEST"),{params:{requestId:e}})];case 1:return[2,t.sent()]}}))}))},Sh=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,Ss("".concat(Ns,"/complete-export"),"".concat(Ms,".TESTCOMPLETEEXPORT"),{requestId:e})];case 1:return t.sent(),[2]}}))}))},Ah=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,Ts("".concat(Ns,"/agent-status"),"".concat(Ms,".TESTAGENTSTATUS"),{params:{agentId:e}})];case 1:return[2,t.sent()]}}))}))},Ph="accountCloseCommand",Dh=function(){var e=ma(),t=(0,Ee.useState)([]),a=(0,Fn.A)(t,2),r=a[0],i=a[1],o=(0,Ee.useState)(!0),c=(0,Fn.A)(o,2),s=c[0],l=c[1];Se((function(){var e=window.location.hostname;l("privacy.account.microsoft-ppe.com"!==e&&"account.microsoft-int.com"!==e&&"localhost"!==e)}));var d=function(){var t=(0,ys.A)(ws().mark((function t(){var a;return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e({name:Ph,status:"updating"}),t.prev=1,t.next=4,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ss("".concat(Ns,"/account-close"),"".concat(Ms,".TESTACCOUNTCLOSE"),{})];case 1:return[2,e.sent()]}}))}));case 4:a=t.sent,i(a.ids),e({name:Ph,status:"finished"}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(1),e({name:Ph,status:"failed",error:t.t0});case 12:return t.prev=12,l(!1),t.finish(12);case 15:case"end":return t.stop()}}),t,null,[[1,9,12,15]])})));return function(){return t.apply(this,arguments)}}();return we().createElement(gn.Stack,null,we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.Button,{"aria-label":"Close Account","data-bi-id":"privacy.partner.accountCloseButton",onClick:d,text:"Close account",disabled:s})),we().createElement(ha,{operationData:{componentName:"partnerAccountCloseDrawer",operationName:Ph},inertView:we().createElement(gn.Text,null,"No command sent yet."),updatingView:we().createElement(gn.Text,null,"Sending command..."),finishedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Result: Successfully sent account close command."),we().createElement(gn.Text,null,"Command Ids:"),r.map((function(e){return we().createElement(gn.Text,{key:e},"- ",e)})),we().createElement(gn.Text,null,"cV: ",Ot())),failedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Result: Failed to send account close command."),we().createElement(gn.Text,null,"cV: ",Ot()))}))},Ih=function(){return we().createElement(gn.MessageBar,{messageContent:"This functionality is only available in PPE.",messageBarType:"info"})},_h=function(){return we().createElement(gn.Drawer,{drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{children:"Account Close",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(Ih,null),we().createElement(Dh,null)))},Lh=function(){return we().createElement(gn.SlotStack,{totalSlots:12},we().createElement(gn.SlotStackItem,{slots:3,align:"end"},we().createElement(gn.Stack,null,we().createElement(gn.Text,{weightOverride:"bold"},"Agent ID"),we().createElement(gn.Text,{weightOverride:"bold"},"Asset Group ID"))),we().createElement(gn.SlotStackItem,{slots:3,align:"end"},we().createElement(gn.Text,{weightOverride:"bold"},"Asset Group Qualifier")),we().createElement(gn.SlotStackItem,{slots:3,align:"end"},we().createElement(gn.Stack,null,we().createElement(gn.Text,{weightOverride:"bold"},"Subject Type"),we().createElement(gn.Text,{weightOverride:"bold"},"Oldest Pending Command"),we().createElement(gn.Text,{weightOverride:"bold"},"Minimum Lease Available Time"))),we().createElement(gn.SlotStackItem,{slots:3,align:"end"},we().createElement(gn.Stack,null,we().createElement(gn.Stack,{horizontal:!0,verticalAlign:"center"},we().createElement(gn.Text,{weightOverride:"bold"},"Pending Command Count"),we().createElement(gn.Callout,{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."})),we().createElement(gn.Stack,{horizontal:!0,verticalAlign:"center"},we().createElement(gn.Text,{weightOverride:"bold"},"Unleased Command Count"),we().createElement(gn.Callout,{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."})))))},Rh=function(e){return"https://manage.privacy.microsoft.com/data-agents/view/".concat(e)},Nh=function(e){return"https://manage.privacy.microsoft.com/data-assets/view/".concat(e)},Mh=(0,gn.listItemComponent)((function(e){var t=e.statusRow,a=e.index,n=t.agentId,r=t.assetGroupId,i=we().createElement(gn.HyperlinkColumn,{hyperlinks:[{"aria-label":"Agent ".concat(n),"data-bi-id":"privacy.partner.agentStatusAgentId-link",href:Rh(n),children:"Agent: ".concat(n)},{"aria-label":"Asset ".concat(r),"data-bi-id":"privacy.partner.agentStatusAssetId-link",href:Nh(r),children:"Asset: ".concat(r)}],key:"firstColumn-".concat(a)}),o=t.assetGroupQualifier.split(";"),c=we().createElement(gn.TextColumn,{textElements:o.map((function(e){return{children:e}})),key:"secondColumn-".concat(a)}),s=we().createElement(gn.TextColumn,{textElements:[{children:"Subject Type: ".concat(t.subjectType)},{children:"Oldest Pending: ".concat(t.oldestPendingCommand)},{children:"Min Lease: ".concat(t.minimumLeaseAvailableTime)}],key:"thirdColumn-".concat(a)}),l=we().createElement(gn.TextColumn,{textElements:[{children:"Pending: ".concat(t.pendingCommandCount)},{children:"Unleased: ".concat(t.unleasedCommandCount)}],key:"finalColumn-".concat(a)});return we().createElement(gn.ListItem,{variant:"ThreeThreeThreeThree",columns:[i,c,s,l]})})),Bh=function(e){var t=e.agentStatusData,a=(0,Ee.useState)(""),n=(0,Fn.A)(a,2),r=n[0],i=n[1],o=t.filter((function(e){var t,a,n,i;return(null===(t=e.agentId)||void 0===t?void 0:t.toLowerCase().includes(r.toLowerCase()))||(null===(a=e.assetGroupId)||void 0===a?void 0:a.toLowerCase().includes(r.toLowerCase()))||(null===(n=e.assetGroupQualifier)||void 0===n?void 0:n.toLowerCase().includes(r.toLowerCase()))||(null===(i=e.subjectType)||void 0===i?void 0:i.toLowerCase().includes(r.toLowerCase()))}));return we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.TextInput,{"aria-label":"Filter Agent Status Data","data-bi-id":"privacy.partner.filterAgentStatusData-textInput",placeholder:"Filter data",value:r,onChange:function(e,t){i(t||"")}})),we().createElement(gn.List,{header:we().createElement(Lh,null),isAlwaysExpanded:!0,children:o.map((function(e,t){return we().createElement(Mh,{statusRow:e,index:t})}))}))},Oh="getAgentStatus",Fh=function(){var e=(0,Ee.useState)(""),t=(0,Fn.A)(e,2),a=t[0],n=t[1],r=(0,Ee.useState)([]),i=(0,Fn.A)(r,2),o=i[0],c=i[1],s=(0,Ee.useState)(!1),l=(0,Fn.A)(s,2),d=l[0],u=l[1],m=ma(),p=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,m({name:Oh,status:"updating"}),u(!0),e.next=5,Ah(a);case 5:t=e.sent,c(t),m({name:Oh,status:"finished"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),m({name:Oh,status:"failed",error:e.t0});case 13:return e.prev=13,u(!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 we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Hyperlink,{"aria-label":"Agent Health PowerBI Dashboard","data-bi-id":"privacy.partner.agentHealthPowerBI-hyperlink",href:"https://aka.ms/pcfagenthealthreport",children:"Agent Health PowerBI Dashboard"}),we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.TextInput,{"aria-label":"Agent ID","data-bi-id":"privacy.partner.agentID-textInput",placeholder:"Agent ID",value:a,onChange:function(e,t){n(t||"")}}),we().createElement(gn.Button,{"aria-label":"Get agent status","data-bi-id":"privacy.partner.getAgentStatus-button",text:"Get Agent Status",onClick:p,disabled:d||""===a})),we().createElement(ha,{operationData:{operationName:Oh,componentName:"getAgentStatusButton"},inertView:we().createElement(gn.Text,null,"No status retrieved yet."),updatingView:we().createElement(gn.Text,null,"Retrieving status..."),failedView:we().createElement(gn.Stack,null,we().createElement(gn.Text,null,"Result: Failed to retrieve agent status."),we().createElement(gn.RichText,{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:we().createElement(gn.Text,{weightOverride:"bold"},"Note:")}})),finishedView:we().createElement(gn.Stack,null,we().createElement(gn.Text,null,"Result: Successfully retrieved agent status."),we().createElement(Bh,{agentStatusData:o}))}))},Vh=function(){return we().createElement(gn.Drawer,{drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{children:"Agent Status",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(Fh,null)))},Uh=function(){return we().createElement(gn.MessageBar,{messageContent:"Retrieves previously-issued command IDs for the currently authenticated MSA.",messageBarType:"info"})},Hh="getCommandHistory",Gh=function(){var e=(0,Ee.useState)(!1),t=(0,Fn.A)(e,2),a=t[0],r=t[1],i=(0,Ee.useState)([]),o=(0,Fn.A)(i,2),c=o[0],s=o[1],l=ma(),d=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l({name:Hh,status:"updating"}),r(!0),e.prev=2,e.next=5,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ts("".concat(Ns,"/user-requests"),"".concat(Ms,".TESTUSERREQUESTS"))];case 1:return[2,e.sent()]}}))}));case 5:t=e.sent,s(t.map((function(e){return e.commandId}))),l({name:Hh,status:"finished"}),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(2),l({name:Hh,status:"failed",error:e.t0});case 13:return e.prev=13,r(!1),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[2,10,13,16]])})));return function(){return e.apply(this,arguments)}}(),u={"aria-label":"Get Command History","data-bi-id":"privacy.partner.commandHistory",onClick:d,text:"Get history",disabled:a};return we().createElement(gn.Stack,null,we().createElement(gn.Stack,{width:"15%"},we().createElement(gn.Button,u)),we().createElement(ha,{operationData:{componentName:"partnerCommandHistory",operationName:Hh},inertView:we().createElement(gn.Text,null,"No history retrieved yet."),updatingView:we().createElement(gn.Text,null,"Retrieving history..."),finishedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Result: Successfully retrieved user commands."),we().createElement(gn.Text,null,"Command Ids:"),c.map((function(e){return we().createElement(gn.Text,{key:e},e)}))),failedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Result: Failed to retrieve user commands."))}))},qh=function(){return we().createElement(gn.Drawer,{drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{children:"Command History",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(Uh,null),we().createElement(Gh,null)))},Wh=[{id:"cardTypeFilter_browse",name:"BrowsingHistory"},{id:"cardTypeFilter_location",name:"PreciseUserLocation"},{id:"cardTypeFilter_performance",name:"ProductAndServicePerformance"},{id:"cardTypeFilter_usage",name:"ProductAndServiceUsage"},{id:"cardTypeFilter_search",name:"SearchRequestsAndQuery"}],zh=Wh.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"]},{id:"partner_InkingTypingAndSpeechUtterance",name:"InkingTypingAndSpeechUtterance",presetFlows:["prcDelete1"]},{id:"partner_ContentConsumption",name:"ContentConsumption",presetFlows:["prcDelete1"]}]),jh=Wh.length,Qh=[{id:"cardTypeFilter_browse",name:"BrowsingHistory",presetFlows:["prcExport1"]},{id:"cardTypeFilter_location",name:"PreciseUserLocation"},{id:"cardTypeFilter_usage",name:"ProductAndServiceUsage",presetFlows:["prcExport1"]},{id:"cardTypeFilter_search",name:"SearchRequestsAndQuery",presetFlows:["prcExport1"]}],Xh=Qh.concat([{id:"partner_CapturedCustomerContent",name:"CapturedCustomerContent",presetFlows:["prcExport1"]},{id:"partner_ContentConsumption",name:"ContentConsumption",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"]},{id:"partner_InkingTypingAndSpeechUtterance",name:"InkingTypingAndSpeechUtterance",presetFlows:["prcExport1"]}]),Yh=Qh.length,$h="standard",Kh="deleteCommand",Jh=function(e){var t=e.selection,a=(0,Ee.useState)({}),n=(0,Fn.A)(a,2),r=n[0],i=n[1],o=(0,Ee.useState)([]),c=(0,Fn.A)(o,2),s=c[0],l=c[1],d=(0,Ee.useState)(!0),u=(0,Fn.A)(d,2),m=u[0],p=u[1],g=ma(),h=[],f=(0,Ee.useCallback)((function(){var e={};zh.forEach((function(t){e[t.id]=!1})),i(e)}),[]);Se((function(){f()}));Object.keys(r).forEach((function(e,a){h.push({"aria-label":zh[a].name,checked:r[e],"data-bi-id":"privacy.partner.deleteCommand-".concat(zh[a].name,"-checkbox"),label:zh[a].name,onChange:function(){!function(e){var t=(0,On.A)({},r);t[e]=!r[e],i(t)}(e)},disabled:"standard"===t})})),(0,Ee.useEffect)((function(){Object.values(r).every((function(e){return!e}))?p(!0):p(!1)}),[r]),(0,Ee.useEffect)((function(){if(t===$h){var e={};zh.forEach((function(t){t.presetFlows&&t.presetFlows.indexOf("prcDelete1")>-1?e[t.id]=!0:e[t.id]=!1})),i(e)}else f()}),[t,f]);var v=function(){var e=(0,ys.A)(ws().mark((function e(){var a,n;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g({name:Kh,status:"updating"}),p(!0),e.prev=2,a=[],Object.keys(r).forEach((function(e){r[e]&&a.push(e)})),n={ids:[]},t!==$h){e.next=12;break}return e.next=9,kh(null,!0);case 9:n=e.sent,e.next=15;break;case 12:return e.next=14,kh(a,!1);case 14:n=e.sent;case 15:l(n.ids),g({name:Kh,status:"finished"}),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),g({name:Kh,status:"failed",error:e.t0});case 22:return e.prev=22,p(!1),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[2,19,22,25]])})));return function(){return e.apply(this,arguments)}}(),y={"aria-label":"Send delete command","data-bi-id":"privacy.partner.deleteCommandButton",onClick:v,text:"Delete",disabled:m},E=h.slice(0,jh),w=h.slice(jh,h.length);return we().createElement(gn.SlotStack,{totalSlots:12},we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,{childrenGap:"8px"},E.map((function(e,t){return we().createElement(gn.Checkbox,Object.assign({},e,{key:"privacy.partner.delete-checkbox-".concat(t)}))})))),we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,{childrenGap:"8px"},w.map((function(e,t){return we().createElement(gn.Checkbox,Object.assign({},e,{key:"privacy.partner.delete-checkbox-".concat(t)}))})))),we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,null,we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.Button,y)),we().createElement(ha,{operationData:{componentName:"partnerDeleteDrawer",operationName:Kh},inertView:we().createElement(gn.Text,null,"No command sent yet."),updatingView:we().createElement(gn.Text,null,"Sending command..."),finishedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Result: Successfully sent delete command."),we().createElement(gn.Text,null,"Command Ids:"),s.map((function(e){return we().createElement(gn.Text,{key:e},"- ",e)})),we().createElement(gn.Text,null,"cV: ",Ot())),failedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Result: Failed to send delete command."),we().createElement(gn.Text,null,"cV: ",Ot()))}))))},Zh=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=(0,Ee.useState)(e[0]&&e[0].key),a=(0,Fn.A)(t,2),n=a[0],r=a[1];return we().createElement(we().Fragment,null,we().createElement(gn.Text,null,"Scenario:"),we().createElement(gn.Dropdown,{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,a,n){t&&r(t.key)},width:"25%"}),we().createElement(Jh,{selection:n}))},ef=function(){return we().createElement(we().Fragment,null,we().createElement(gn.MessageBar,{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:we().createElement(gn.Text,{weightOverride:"bold"},"currently authenticated"),all:we().createElement(gn.Text,{weightOverride:"bold"},"all"),will:we().createElement(gn.Text,{weightOverride:"bold"},"will"),not:we().createElement(gn.Text,{weightOverride:"bold"},"not")}},messageBarType:"severe-warning"}),we().createElement(gn.MessageBar,{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:we().createElement(gn.Hyperlink,{"aria-label":"AMC Privacy Dashboard","data-bi-id":"partner-deleteCommand-privacyDashboard",to:"/"},"AMC Privacy Dashboard")}},messageBarType:"info"}))},tf=function(){return we().createElement(gn.Drawer,{drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{children:"AMC Privacy Dashboard Data Types - Delete Command",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(ef,null),we().createElement(Zh,null)))},af="exportCommand",nf=function(e){var t=e.selection,a=(0,Ee.useState)({}),n=(0,Fn.A)(a,2),r=n[0],i=n[1],o=(0,Ee.useState)([]),c=(0,Fn.A)(o,2),s=c[0],l=c[1],d=(0,Ee.useState)(!0),u=(0,Fn.A)(d,2),m=u[0],p=u[1],g=ma(),h=[],f=(0,Ee.useCallback)((function(){var e={};Xh.forEach((function(t){e[t.id]=!1})),i(e)}),[]);Se((function(){f()}));Object.keys(r).forEach((function(e,a){h.push({"aria-label":Xh[a].name,checked:r[e],"data-bi-id":"privacy.partner.exportCommand-".concat(Xh[a].name,"-checkbox"),label:Xh[a].name,onChange:function(){!function(e){var t=(0,On.A)({},r);t[e]=!r[e],i(t)}(e)},disabled:"standard"===t})})),(0,Ee.useEffect)((function(){Object.values(r).every((function(e){return!e}))?p(!0):p(!1)}),[r]),(0,Ee.useEffect)((function(){if(t===$h){var e={};Xh.forEach((function(t){t.presetFlows&&t.presetFlows.indexOf("prcExport1")>-1?e[t.id]=!0:e[t.id]=!1})),i(e)}else f()}),[t,f]);var v=function(){var e=(0,ys.A)(ws().mark((function e(){var a,n;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(g({name:af,status:"updating"}),p(!0),e.prev=2,a=[],Object.keys(r).forEach((function(e){r[e]&&a.push(e)})),n={ids:[]},t!==$h){e.next=12;break}return e.next=9,Ch(null,!0);case 9:n=e.sent,e.next=15;break;case 12:return e.next=14,Ch(a,!1);case 14:n=e.sent;case 15:l(n.ids),g({name:af,status:"finished"}),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),g({name:af,status:"failed",error:e.t0});case 22:return e.prev=22,p(!1),e.finish(22);case 25:case"end":return e.stop()}}),e,null,[[2,19,22,25]])})));return function(){return e.apply(this,arguments)}}(),y={"aria-label":"Send export command","data-bi-id":"privacy.partner.exportCommandButton",onClick:v,text:"Export",disabled:m},E=h.slice(0,Yh),w=h.slice(Yh,h.length);return we().createElement(gn.SlotStack,{totalSlots:12},we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,{childrenGap:"8px"},E.map((function(e,t){return we().createElement(gn.Checkbox,Object.assign({},e,{key:"privacy.partner.export-checkbox-".concat(t)}))})))),we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,{childrenGap:"8px"},w.map((function(e,t){return we().createElement(gn.Checkbox,Object.assign({},e,{key:"privacy.partner.export-checkbox-".concat(t)}))})))),we().createElement(gn.SlotStackItem,{slots:4},we().createElement(gn.Stack,null,we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.Button,y)),we().createElement(ha,{operationData:{componentName:"partnerExportDrawer",operationName:af},inertView:we().createElement(gn.Text,null,"No command sent yet."),updatingView:we().createElement(gn.Text,null,"Sending command..."),finishedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Result: Successfully sent export command."),we().createElement(gn.Text,null,"Command Ids:"),s.map((function(e){return we().createElement(gn.Text,{key:e},"- ",e)})),we().createElement(gn.Text,null,"cV: ",Ot())),failedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Result: Failed to send export command."),we().createElement(gn.Text,null,"cV: ",Ot()))}))))},rf=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=(0,Ee.useState)(e[0]&&e[0].key),a=(0,Fn.A)(t,2),n=a[0],r=a[1];return we().createElement(we().Fragment,null,we().createElement(gn.Text,null,"Scenario:"),we().createElement(gn.Dropdown,{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,a,n){t&&r(t.key)},width:"25%"}),we().createElement(nf,{selection:n}))},of=function(){return we().createElement(gn.MessageBar,{messageContent:"These controls should be used for E2E testing of export commands.",messageBarType:"info"})},cf=function(){return we().createElement(gn.Drawer,{drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{children:"NGP Data Types - Export Command",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(of,null),we().createElement(rf,null)))},sf="getMsaProxyTicket",lf=function(){var e=(0,Ee.useState)(""),t=(0,Fn.A)(e,2),a=t[0],r=t[1],i=ma(),o=(0,Ee.useState)(!1),c=(0,Fn.A)(o,2),s=c[0],l=c[1],d=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,i({name:sf,status:"updating"}),l(!0),e.next=5,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ss("".concat(Ns,"/retrieve-msa-proxy-ticket"),"".concat(Ms,".TESTRETRIEVEMSAPROXYTICKET"),{})];case 1:return[2,e.sent()]}}))}));case 5:t=e.sent,r(t.msaProxyTicket),i({name:sf,status:"finished"}),e.next=14;break;case 10:e.prev=10,e.t0=e.catch(0),l(!1),i({name:sf,status:"failed",error:e.t0});case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();return we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.Button,{"aria-label":"Get my MSA proxy ticket","data-bi-id":"privacy.partner.msaProxyTicket-button",text:"Get my MSA proxy ticket",onClick:d,disabled:s})),we().createElement(gn.Stack,{width:"50%"},we().createElement(ha,{operationData:{operationName:sf,componentName:"getMsaProxyTicketButton"},inertView:we().createElement(gn.Text,null,"MSA Proxy Ticket not retrieved yet."),updatingView:we().createElement(gn.Text,null,"Retrieving ticket..."),failedView:we().createElement(gn.Text,null,"Result: Failure"),finishedView:we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,{weightOverride:"bold"},"MSA proxy ticket"),we().createElement(gn.Text,null,a))})))},df=function(){return we().createElement(gn.Drawer,{drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{children:"MSA Proxy Ticket",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(lf,null)))},uf=function(){return we().createElement(gn.MessageBar,{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"})},mf=function(){return we().createElement(gn.MessageBar,{messageContent:{textWithTokens:"Looking for help troubleshooting your export commands? Click {link} for debugging/validation steps!",tokensAndValues:{link:we().createElement(gn.Hyperlink,{"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"})},pf=function(e){var t=e.traceData;return we().createElement(gn.SlotStack,{totalSlots:12},we().createElement(gn.SlotStackItem,{slots:6},we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Result: Successfully retrieved trace data."),we().createElement(gn.Text,null,"Data:"),we().createElement(gn.Stack,{padding:"0 0 0 24px"},we().createElement("ul",null,we().createElement("li",null,"Command ID: ",t.commandId),we().createElement("li",null,"Command Type: ",t.commandType),we().createElement("li",null,"IsComplete: ",t.isGloballyComplete?"true":"false"),we().createElement("li",null,"Context: ",t.context),we().createElement("li",null,"Requester: ",t.requester),we().createElement("li",null,"Export Destination: ",t.finalExportDestinationUri))))),"Export"===t.commandType?we().createElement(gn.SlotStackItem,{slots:6},we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.RichText,{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:we().createElement(gn.Text,{weightOverride:"bold"},"Note:"),your:we().createElement(gn.Text,{weightOverride:"bold"},"your")}}),we().createElement(gn.Text,null,"To validate the data in your export archive:"),we().createElement(gn.Stack,{padding:"0 0 0 24px"},we().createElement("ol",null,we().createElement("li",null,we().createElement(gn.RichText,{textWithTokens:"Download Azure Storage Explorer {here}",tokensAndValues:{here:we().createElement(gn.Hyperlink,{"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"})}})),we().createElement("li",null,'Select "Use a connection string or a shared access signature URI"'),we().createElement("li",null,'Select "Use a SAS URI"'),we().createElement("li",null,'Copy and paste the "Export Destination" URI'))))):null)},gf=function(){return we().createElement(gn.SlotStack,{totalSlots:12},we().createElement(gn.SlotStackItem,{slots:3,align:"end"},we().createElement(gn.Stack,null,we().createElement(gn.Text,{weightOverride:"bold"},"Agent ID"),we().createElement(gn.Text,{weightOverride:"bold"},"Asset Group ID"))),we().createElement(gn.SlotStackItem,{slots:3,align:"end"},we().createElement(gn.Text,{weightOverride:"bold"},"Asset Group Qualifier")),we().createElement(gn.SlotStackItem,{slots:3,align:"end"},we().createElement(gn.Stack,null,we().createElement(gn.Text,{weightOverride:"bold"},"Ingestion Debug Text"),we().createElement(gn.Text,{weightOverride:"bold"},"Ingestion Action Taken"),we().createElement(gn.Stack,{horizontal:!0,verticalAlign:"center"},we().createElement(gn.Text,{weightOverride:"bold"},"Force Completed?"),we().createElement(gn.Callout,{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."})))),we().createElement(gn.SlotStackItem,{slots:3,align:"end"},we().createElement(gn.Stack,null,we().createElement(gn.Stack,{horizontal:!0,verticalAlign:"center"},we().createElement(gn.Text,{weightOverride:"bold"},"Ingestion Time"),we().createElement(gn.Callout,{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."})),we().createElement(gn.Stack,{horizontal:!0,verticalAlign:"center"},we().createElement(gn.Text,{weightOverride:"bold"},"Completed Time"),we().createElement(gn.Callout,{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."})),we().createElement(gn.Text,{weightOverride:"bold"},"Soft Delete Time"),we().createElement(gn.Text,{weightOverride:"bold"},"Ingestion Data Set Version"))))},hf=function(e){return"https://manage.privacy.microsoft.com/data-agents/view/".concat(e)},ff=function(e){return"https://manage.privacy.microsoft.com/data-assets/view/".concat(e)},vf=(0,gn.listItemComponent)((function(e){var t=e.assetRow,a=e.index,n=t.agentId,r=t.assetGroupId,i=we().createElement(gn.HyperlinkColumn,{hyperlinks:[{"aria-label":"Agent ".concat(n),"data-bi-id":"privacy.partner.traceDataAgentId-link",href:hf(n),children:"Agent: ".concat(n)},{"aria-label":"Asset ".concat(r),"data-bi-id":"privacy.partner.traceDataAssetId-link",href:ff(r),children:"Asset: ".concat(r)}],key:"firstColumn-".concat(a)}),o=t.assetGroupQualifier.split(";"),c=we().createElement(gn.TextColumn,{textElements:o.map((function(e){return{children:e}})),key:"secondColumn-".concat(a)}),s=we().createElement(gn.TextColumn,{textElements:[{children:t.ingestionDebugText},{children:t.ingestionActionTaken},{children:"Force completed: ".concat(t.forceCompleted)}],key:"thirdColumn-".concat(a)}),l=we().createElement(gn.TextColumn,{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(a)});return we().createElement(gn.ListItem,{variant:"ThreeThreeThreeThree",columns:[i,c,s,l]})})),yf="DroppedDueToFiltering",Ef="DroppedDueToOfflineAgent",wf=function(e){var t=e.traceData,a=e.tsvHref,n=e.agentAssetID,r=e.hideRowsValues,i=t.assetGroupStatuses.filter((function(e){if(r.dropped){if(e.ingestionActionTaken===yf)return!1;if(e.ingestionActionTaken===Ef)return!1}return!(r.incomplete&&(!e.completedTime||""===e.completedTime))&&((!r.complete||!e.completedTime||""===e.completedTime)&&(""===n||!(!e.agentId.includes(n)&&!e.assetGroupId.includes(n))))}));return we().createElement(we().Fragment,null,we().createElement(gn.Text,{variant:"headerText"},"Agent/Asset Group Status:"),we().createElement(gn.Hyperlink,{"aria-label":"Download data as TSV","data-bi-id":"privacy.partner.downloadDataTSV-hyperlink",href:a,target:"_blank",children:"Download data as TSV",download:"agent_asset_status.tsv"}),we().createElement(gn.List,{header:we().createElement(gf,null),isAlwaysExpanded:!0,children:i.map((function(e,t){return we().createElement(vf,{assetRow:e,index:t})}))}))},bf=function(e){var t=e.traceData,a=e.tsvHref,n=(0,Ee.useState)(""),r=(0,Fn.A)(n,2),i=r[0],o=r[1],c=(0,Ee.useState)(!0),s=(0,Fn.A)(c,2),l=s[0],d=s[1],u=(0,Ee.useState)(!1),m=(0,Fn.A)(u,2),p=m[0],g=m[1],h=(0,Ee.useState)(!1),f=(0,Fn.A)(h,2),v=f[0],y=f[1],E={dropped:l,incomplete:p,complete:v};return we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(pf,{traceData:t}),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Table Filters:"),we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.TextInput,{"aria-label":"Enter an agent/asset ID","data-bi-id":"privacy.partner.agentAssentID-textInput",placeholder:"Enter an agent/asset ID",value:i,onChange:function(e,t){return o(t||"")}})),we().createElement(gn.Checkbox,{"aria-label":"Hide dropped rows","data-bi-id":"privacy.partner.hideDroppedRows-checkbox",checked:l,onChange:function(e,t){return d(t||!1)},label:"Hide Dropped Rows"}),we().createElement(gn.Checkbox,{"aria-label":"Hide Incomplete rows","data-bi-id":"privacy.partner.hideIncompleteRows-checkbox",checked:p,onChange:function(e,t){return g(t||!1)},label:"Hide Incomplete Rows"}),we().createElement(gn.Checkbox,{"aria-label":"Hide Complete rows","data-bi-id":"privacy.partner.hideCompleteRows-checkbox",checked:v,onChange:function(e,t){return y(t||!1)},label:"Hide Complete Rows"})),we().createElement(wf,{traceData:t,tsvHref:a,agentAssetID:i,hideRowsValues:E}))},xf="completeExport",kf="getTraceData",Cf="00000000-0000-0000-0000-000000000000",Tf=function(){var e=ma(),t=(0,Ee.useState)(""),a=(0,Fn.A)(t,2),n=a[0],r=a[1],i=(0,Ee.useState)({}),o=(0,Fn.A)(i,2),c=o[0],s=o[1],l=(0,Ee.useState)(!1),d=(0,Fn.A)(l,2),u=d[0],m=d[1],p=(0,Ee.useState)(!1),g=(0,Fn.A)(p,2),h=g[0],f=g[1],v=(0,Ee.useState)(!0),y=(0,Fn.A)(v,2),E=y[0],w=y[1],b=(0,Ee.useState)(!1),x=(0,Fn.A)(b,2),k=x[0],C=x[1],T=(0,Ee.useState)(""),S=(0,Fn.A)(T,2),A=S[0],P=S[1],D=function(){var t=(0,ys.A)(ws().mark((function t(){var a,r,i,o,c,l,d=arguments;return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=d.length>0&&void 0!==d[0]&&d[0],t.prev=1,e({name:kf,status:"updating"}),C(!0),a||e({name:xf,status:"inert"}),t.next=7,Th(n);case 7:r=t.sent,s(r),i=r.commandId!==Cf,m(i),w(!1),i&&(o=r.assetGroupStatuses,c="AgentId\tAssetGroupId\tAssetGroupQualifier\tIngestionDebugText\tIngestionActionTaken\tForceCompleted\tIngestionTime\tCompletedTime\tSoftDeleteTime\tIngestionDataSetVersion\r\n",o.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")})),l=new Blob([c],{type:"text/tab-separated-values;charset=utf8"}),P(URL.createObjectURL(l))),e({name:kf,status:"finished"}),t.next=19;break;case 16:t.prev=16,t.t0=t.catch(1),e({name:kf,status:"failed",error:t.t0});case 19:return t.prev=19,C(!1),t.finish(19);case 22:case"end":return t.stop()}}),t,null,[[1,16,19,22]])})));return function(){return t.apply(this,arguments)}}(),I=function(){var t=(0,ys.A)(ws().mark((function t(){return ws().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,e({name:xf,status:"updating"}),w(!0),t.next=5,Sh(n);case 5:return e({name:xf,status:"finished"}),t.next=8,D(!0);case 8:t.next=14;break;case 10:t.prev=10,t.t0=t.catch(0),e({name:xf,status:"failed",error:t.t0}),w(!1);case 14:case"end":return t.stop()}}),t,null,[[0,10]])})));return function(){return t.apply(this,arguments)}}();(0,Ee.useEffect)((function(){f(c&&"Export"===c.commandType&&!c.isGloballyComplete)}),[c]);var _={"aria-label":"Get Trace Data","data-bi-id":"privacy.partner.traceRequest-button",onClick:function(){D()},text:"Get trace data",disabled:k||""===n},L={"aria-label":"Force complete export","data-bi-id":"privacy.partner.forceCompleteExport-button",onClick:I,text:"Force complete export",disabled:E};return we().createElement(gn.Stack,{childrenGap:"8px"},c&&"Export"===c.commandType?we().createElement(mf,null):null,we().createElement(gn.Stack,{width:"25%",childrenGap:"8px"},we().createElement(gn.TextInput,{placeholder:"Command ID","data-bi-id":"privacy.partner.requestTracing-textInput","aria-label":"Input command id",value:n,onChange:function(e,t){return r(t||"")}}),we().createElement(gn.Button,_)),h?we().createElement(ha,{operationData:{operationName:xf,componentName:"completeExportButton"},inertView:we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.Button,L)),updatingView:we().createElement(gn.Stack,null,we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.Button,L)),we().createElement(gn.Text,null,"Completing export...")),failedView:we().createElement(gn.Stack,null,we().createElement(gn.Stack,{width:"25%"},we().createElement(gn.Button,L)),we().createElement(gn.Text,null,"Failed to complete export.")),finishedView:we().createElement(gn.RichText,{textWithTokens:"Successfully completed export. {note} It may take a minute or two before this command is reported as isGloballyComplete.",tokensAndValues:{note:we().createElement(gn.Text,{weightOverride:"bold"},"Note:")}})}):null,we().createElement(ha,{operationData:{operationName:kf,componentName:"getTraceDataButton"},inertView:we().createElement(gn.Text,null,"No trace data retrieved yet."),updatingView:we().createElement(gn.Text,null,"Retrieving data..."),failedView:we().createElement(gn.Text,null,"Result: Failed to retrieve trace data."),finishedView:u?we().createElement(bf,{traceData:c,tsvHref:A}):we().createElement(gn.Text,null,"Result: Command not found. No trace data to retrieve.")}))},Sf=function(){return we().createElement(gn.Drawer,{drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{children:"Command ID Tracing",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(uf,null),we().createElement(Tf,null)))},Af=function(){return we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.RichText,{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:we().createElement(gn.Hyperlink,{"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"})}}),we().createElement(gn.Stack,{padding:"0 0 0 24px"},we().createElement("ul",null,we().createElement("li",null,we().createElement(gn.Hyperlink,{"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"})),we().createElement("li",null,we().createElement(gn.Hyperlink,{"aria-label":"NGP Data Types","data-bi-id":"privacy.partner.ngpdatatypes-link",href:"http://aka.ms/ngpdatatypes",children:"NGP Data Types",target:"_blank"})),we().createElement("li",null,we().createElement(gn.Hyperlink,{"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"})),we().createElement("li",null,we().createElement(gn.Hyperlink,{"aria-label":"Delete Spec","data-bi-id":"privacy.partner.ngpdelete-link",href:"http://aka.ms/ngpdelete",children:"Delete Spec",target:"_blank"})),we().createElement("li",null,we().createElement(gn.Hyperlink,{"aria-label":"Export spec","data-bi-id":"privacy.partner.ngpexport-link",href:"http://aka.ms/ngpexport",children:"Export spec",target:"_blank"})))),we().createElement(gn.RichText,{textWithTokens:"Feel free to reach out to {link} with any further questions.",tokensAndValues:{link:we().createElement(gn.Hyperlink,{"aria-label":"NGP Data Agents","data-bi-id":"privacy.partner.ngpsupport-link",href:"https://aka.ms/ngpsupport",children:"NGP Data Agents",target:"_blank"})}}))},Pf=function(){return we().createElement(gn.Drawer,{drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{children:"Useful Information",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0,defaultExpanded:!0},we().createElement(gn.Stack,{childrenGap:"16px"},we().createElement(Af,null)))},Df=function(){var e={build:we().createElement(gn.Text,{weightOverride:"bold"},"17084.1000.rsmaster.180122-1350"),settings:we().createElement(gn.Text,{weightOverride:"bold"},"Settings > Privacy > Diagnostics & feedback"),link:we().createElement(gn.Hyperlink,{"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 we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.RichText,{textWithTokens:"Download Windows RS4 client build {build} or later, and go to {settings} to trigger Windows Diagnostic delete commands.",tokensAndValues:e}),we().createElement(gn.RichText,{textWithTokens:"Note that this will generate commands against your device's MSA Global Device ID. For more information, see {link}.",tokensAndValues:e}))},If=function(){return we().createElement(gn.Drawer,{drawerHeader:we().createElement(gn.DrawerHeader,{columns:[{column:we().createElement(gn.DrawerHeaderTitle,{title:{children:"Windows Diagnostic Data",kind:"text"}}),slots:12}],totalSlots:12}),drawerContentPadding:"16px 16px 16px 48px",shadow:!0},we().createElement(Df,null))},_f=function(){return"account.microsoft-ppe.com"===window.location.hostname?we().createElement(gn.Stack,null,we().createElement(gn.Text,null,"This is not the PPE you are looking for."),we().createElement(gn.RichText,{textWithTokens:"Please go to the {ppeTestPage} or the {prodTestPage} to continue with your validation and debugging.",tokensAndValues:{ppeTestPage:we().createElement(gn.Hyperlink,{"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:we().createElement(gn.Hyperlink,{"aria-label":"PPE test page","data-bi-id":"privacy.partner.ppe-test-page-link",href:"https://account.microsoft.com/privacy/partner"},"PROD Test Page")}})):we().createElement(gn.Stack,null,we().createElement(Ru,null),we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(gn.Text,null,"Click on one of the drop-down items below to start testing."),we().createElement(tf,null),we().createElement(cf,null),we().createElement(qh,null),we().createElement(_h,null),we().createElement(If,null),we().createElement(Sf,null),we().createElement(Vh,null),we().createElement(df,null),we().createElement(Pf,null)))},Lf="".concat(Rs,"/aris"),Rf=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,Ss("".concat(Lf,"/submit-form"),"".concat(Ms,".ARIS.SUBMITFORM"),{arisData:e},{},{overrideRequestQosData:Cs([is.Unauthorized])})];case 1:return[2,t.sent()]}}))}))},Nf="".concat(Rs,"/prc"),Mf=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){var t;return(0,n.__generator)(this,(function(a){switch(a.label){case 0:return t=ad(e),[4,Ss("".concat(Nf,"/bulk-delete"),"".concat(Ms,".PRC.BULKDELETE"),"",t)];case 1:return[2,a.sent()]}}))}))},Bf=["Azure","Bing","Edge","Flipgrid","GitHub","GroupMe","LinkedIn","Microsoft 365","Microsoft Ads (Bing Ads)","Microsoft Store","Microsoft Teams","MSN","OneDrive","Outlook.com","Skype","SwiftKey","Visual Studio","Windows"],Of="privacy-request",Ff="250px",Vf=1e3,Uf=function(e){return[{key:"export-data",text:e.requestTypes.exportData,id:"exportData",ariaLabel:e.requestTypes.exportData},{key:"contact-us",text:e.requestTypes.contactUs,id:"privacyHelp",ariaLabel:e.requestTypes.contactUs}]},Hf=function(e){return{key:"delete-data",text:e.requestTypes.deleteData,id:"deleteData",ariaLabel:e.requestTypes.deleteData}},Gf=we().createElement(gn.Text,{colorOverride:"error"},"* "),qf=function(e,t,a,n,r,i){return we().createElement(gn.Dropdown,{id:"request-type-dropdown","aria-label":e.selectRequest,"data-bi-prefix":"privacy-request-type",dropdownStyle:"default",label:e.selectRequest,onChange:t,options:a,pageArea:n,placeholder:e.selectPlaceholder,width:r,required:!0,value:i})},Wf=/^\d+$/;function zf(e){return Wf.test(e)}var jf=function(e){return we().createElement(gn.Stack,null,we().createElement(gn.Image,{alt:e.finishedViewImageAltText,height:"200px",imageType:"altTextImage",src:"https://assets.account.microsoft.com/privacy/PRCSubmitted.png"}))};function Qf(e,t){return we().createElement(gn.Stack,{childrenGap:"24px",horizontalAlign:"center",verticalAlign:"center"},we().createElement(gn.ErrorIllustration,{id:"".concat(e,".submit-form-failed"),correlationVector:Ot(),errorMessage:t.tryAgainLongText,imageSrc:"".concat(Bl,"compassassets/540c7143-1cc1-46e0-9fa6-608f37ce6719.svg?n=ErrorIllustration.svg")}))}function Xf(e,t){return we().createElement(gn.Stack,null,we().createElement(gn.Announced,{message:e?t.requestInProgress:t.requestSubmitted,ariaLive:"assertive"}),we().createElement(gn.Text,{variant:"bodyMediumRegular"},e?t.requestInProgress:t.requestSubmitted))}var Yf,$f,Kf=function(e){var t=e.prefix,a=e.isSignedIn,n=e.requestType,r=e.countryDropdownValue,i=e.onCountryDropdownChange,o=e.phoneNumberTextInput,c=e.productDropdownValue,s=e.onProductDropdownChange,l=e.userTypeDropdownValue,d=e.onUserTypeDropdownChange,u=e.privacyQuestionOrConcern,m=e.onPrivacyQuestionOrConcernChange,p=e.minOrMaxCharsErrorMessage,g=e.emailTextInput,h=e.isCheckboxChecked,f=e.onCheckboxChange,v=e.onSubmitClick,y=e.isSubmitButtonDisabled,E=Bn(),w=E.area,b=E.marketizationServiceConfig,x=b.countries,k=x.filter((function(e){return e.iso===b.userCountry}))[0].name,C=((0,gn.useViewport)(),vs().prcFormContent),T=vs().unauthFormContent,S="account.microsoft.com/privacy",A="https://account.microsoft.com/privacy",P={"export-data":C.exportDataTitle,"delete-data":C.deleteDataTitle,"contact-us":C.contactUsTitle},D={"export-data":C.exportDataDescription,"delete-data":C.deleteDataDescription,"contact-us":C.contactUsDescription},I={"export-data":T.exportDataDescription,"delete-data":T.deleteDataDescription,"contact-us":T.contactUsDescription},_={"export-data":C.exportConfirmation,"delete-data":C.deleteConfirmation},L={"export-data":T.exportDataConfirmation,"delete-data":T.deletetDataConfirmation},R=we().createElement(gn.Hyperlink,{id:"privacy-dashboard-link","aria-label":S,"data-bi-id":"".concat(t,".privacy-dashboard-link"),href:A,children:S,target:"_blank"}),N=we().createElement(gn.RichText,{textWithTokens:D[n],tokensAndValues:{0:R}}),M=we().createElement(gn.Stack,{childrenGap:"28px"},"contact-us"===n?we().createElement(gn.RichText,{textWithTokens:I[n],tokensAndValues:{0:R}}):we().createElement(gn.Text,null,I[n]),we().createElement(gn.RichText,{textWithTokens:T.personalAccountDataNote,tokensAndValues:{0:we().createElement(gn.Text,{weightOverride:"bold"},T.noteToken),1:we().createElement(gn.Hyperlink,{id:"privacy-response-msa-link","aria-label":T.formToken,"data-bi-id":"".concat(t,".privacy-response-msa-link"),href:"".concat(A,"/privacy-request"),children:T.formToken,target:"_blank"}),2:we().createElement(gn.Hyperlink,{id:"check-email-address-msa-link","aria-label":T.supportArticleToken,"data-bi-id":"".concat(t,".check-email-address-msa-link"),href:"https://aka.ms/checkemailaddress",children:T.supportArticleToken,target:"_blank"})}})),B=null!==x?x.map((function(e){return function(e){return{ariaLabel:e.name,id:e.iso,key:e.iso,text:e.name}}(e)})):[],O=we().createElement(gn.Dropdown,{id:"country-dropdown",pageArea:w,width:Ff,"data-bi-prefix":"country-or-region",dropdownStyle:"default","aria-label":C.countryOrRegion,label:C.countryOrRegion,onChange:i,options:B,placeholder:a&&k?k:C.selectPlaceholder,required:!0,value:r}),F=function(e){return{ariaLabel:e,id:e,key:e,text:e}},V={"Customer Support":C.relatedPrivacyProducts.customerSupport,"General - no specific product":C.relatedPrivacyProducts.general,"Microsoft account":C.relatedPrivacyProducts.microsoftAccount,"Power Bi and Power Platform":C.relatedPrivacyProducts.powerBiAndPowerPlatform,"Xbox and gaming":C.relatedPrivacyProducts.xboxAndGaming,"Office apps":C.relatedPrivacyProducts.officeApps,"Privacy Dashboard":C.relatedPrivacyProducts.privacyDashboard},U=Bf.map((function(e){return F(e)}));U=U.concat(Object.values(V).map((function(e){return F(e)})));var H=we().createElement(gn.Dropdown,{id:"product-dropdown",pageArea:w,width:Ff,"data-bi-prefix":"related-privacy-product",dropdownStyle:"default","aria-label":C.relatedPrivacyProduct,label:C.relatedPrivacyProduct,onChange:s,options:U,placeholder:C.selectPlaceholder,required:!0,value:c}),G={"Customer with no personal Microsoft account":T.userTypes.noPersonalMsa,"Customer with work or school account":T.userTypes.workOrSchool,"Customer with a personal Microsoft account":T.userTypes.personalMsa,"Privacy researcher":T.userTypes.privacyResearcher,"Law enforcement":T.userTypes.lawEnforcement,"Data protection authority":T.userTypes.dataProtectionAuthority},q=Object.values(G).map((function(e){return function(e){return{ariaLabel:e,id:e,key:e,text:e}}(e)})),W=we().createElement(gn.Dropdown,{id:"userType-dropdown",pageArea:w,width:Ff,"data-bi-prefix":"user-type",dropdownStyle:"default","aria-label":C.relatedPrivacyProduct,label:T.identifyUserType,onChange:d,options:q,placeholder:C.selectPlaceholder,required:!0,value:l}),z=we().createElement(gn.TextArea,{value:u,onChange:m,"data-bi-id":"".concat(t,".user-privacy-question-or-concern"),"aria-label":C.describeQuestionOrConcern,label:C.describeQuestionOrConcern,required:!0,numberOfRows:5,placeholder:C.minimumCharacters,errorMessage:p});return we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.Heading,{variant:"subjectTitle",tag:"h2",children:P[n]}),a?N:M,O,a?null:o,"contact-us"===n?we().createElement(gn.Stack,{childrenGap:"18px",maxWidth:"430px"},H,a?null:W,"Law enforcement"===l?we().createElement(gn.RichText,{textWithTokens:T.submitRequestAtLEPortal,tokensAndValues:{0:we().createElement(gn.Hyperlink,{href:"https://leportal.microsoft.com",target:"_blank","aria-label":T.lawEnforcementPortal,"data-bi-id":"".concat(t,".law-enforcement-portal-link"),children:T.lawEnforcementPortal})}}):z,a?g:null):we().createElement(gn.Checkbox,{"aria-label":a?_[n]:L[n],checked:h,"data-bi-id":"".concat(t,".").concat(n,".confirmation-checkbox"),label:{textWithTokens:"{0}{1}",tokensAndValues:{0:we().createElement(gn.Text,null,a?_[n]:L[n]),1:Gf}},onChange:f}),we().createElement(gn.RichText,{textWithTokens:"{0}{1}",tokensAndValues:{0:Gf,1:we().createElement(gn.Text,null,C.indicatesRequiredField)}}),a||"contact-us"!==n||"Law enforcement"!==l?we().createElement(gn.Stack,{maxWidth:"150px"},we().createElement(gn.Button,{type:"primary",onClick:v,text:C.submit,"data-bi-id":"".concat(t,".submit"),"aria-label":C.submit,disabled:y})):null)},Jf=function(){var e,t,a="".concat(Of,".page"),r="SubmitPrivacyRequest",i=Bn(),o=null===(e=i.selfRights)||void 0===e?void 0:e.canManage,c=i.area,s=vs().prcFormContent,l=vs().sharedContent,d=ma(),u=i.marketizationServiceConfig,m=u.countries.filter((function(e){return e.iso===u.userCountry}))[0].name,p=null===(t=i.userPuid)||void 0===t?void 0:t.valueAsString,g=(0,Ee.useState)(i.userEmail?i.userEmail:""),h=(0,Fn.A)(g,1)[0],f=(0,Ee.useState)(i.signInName!==i.userEmail?i.signInName:""),v=(0,Fn.A)(f,1)[0],y=(0,Ee.useState)(h||""),E=(0,Fn.A)(y,2),w=E[0],b=E[1],x=(0,Ee.useState)(),k=(0,Fn.A)(x,2),C=k[0],T=k[1],S=(0,Ee.useState)(p),A=(0,Fn.A)(S,2),P=A[0],D=A[1],I=(0,Ee.useState)(),_=(0,Fn.A)(I,2),L=_[0],R=_[1],N=(0,Ee.useState)(),M=(0,Fn.A)(N,2),B=M[0],O=M[1],F=(0,Ee.useState)(""),V=(0,Fn.A)(F,2),U=V[0],H=V[1],G=(0,Ee.useState)(),q=(0,Fn.A)(G,2),W=q[0],z=q[1],j=(0,Ee.useState)(),Q=(0,Fn.A)(j,2),X=Q[0],Y=Q[1],$=(0,Ee.useState)({isRequestTypeSelected:!1,isCountryOrRegionSelected:!!m,isCheckboxChecked:!1}),K=(0,Fn.A)($,2),J=K[0],Z=K[1],ee=(0,Ee.useState)({isRequestTypeSelected:!1,isCountryOrRegionSelected:!!m,isRelatedPrivacyProductSelected:!1,isQuestionOrConcernDescribed:!1,isUserEmailSet:!!h}),te=(0,Fn.A)(ee,2),ae=te[0],ne=te[1],re=(0,Ee.useState)(!1),ie=(0,Fn.A)(re,2),oe=ie[0],ce=ie[1],se=(0,Ee.useState)(!1),le=(0,Fn.A)(se,2),de=le[0],ue=le[1],me=(0,Ee.useState)(!1),pe=(0,Fn.A)(me,2),ge=pe[0],he=pe[1],fe=i.signInName===h,ve=(0,Ee.useState)({msaEmailPhone:h||"",contactEmail:h||"",userAgent:navigator.userAgent,locale:i.language?i.language:"",country:m,countryCode:u.userCountry,product:B||"",comments:U||""}),ye=(0,Fn.A)(ve,2),be=ye[0],xe=ye[1],ke=(0,Ee.useState)([]),Ce=(0,Fn.A)(ke,2),Te=Ce[0],Se=Ce[1],Ae={"export-data":s.exportInProgressDescription,"delete-data":s.deleteInProgressDescription},Pe=function(e,t){null!==t&&void 0!==t&&t.key&&(T(null===t||void 0===t?void 0:t.key),Z((0,On.A)((0,On.A)({},J),{},{isRequestTypeSelected:!0,isCheckboxChecked:!1})),ne((0,On.A)((0,On.A)({},ae),{},{isRequestTypeSelected:!0})))},De=o?Uf(s).concat(Hf(s)):Uf(s),Ie={ariaLabel:i.userDisplayName,id:p,key:p,text:i.userDisplayName},_e=null!==Te?Te.map((function(e){return function(e){return{ariaLabel:e.displayName,id:e.cid,key:e.cid,text:e.displayName}}(e)})).concat(Ie):[Ie],Le=we().createElement(gn.Dropdown,{id:"account-dropdown",pageArea:c,width:Ff,"data-bi-prefix":"account-dropdown",dropdownStyle:"default","aria-label":s.selectAccount,label:s.selectAccount,onChange:function(e,t){D(null===t||void 0===t?void 0:t.key)},options:_e,placeholder:s.selectPlaceholder,required:!0,value:P}),Re=function(e,t){R(null===t||void 0===t?void 0:t.key),Z((0,On.A)((0,On.A)({},J),{},{isCountryOrRegionSelected:!0})),ne((0,On.A)((0,On.A)({},ae),{},{isCountryOrRegionSelected:!0})),xe((0,On.A)((0,On.A)({},be),{},{country:t.key}))},Ne=function(e,t){O(null===t||void 0===t?void 0:t.key),ne((0,On.A)((0,On.A)({},ae),{},{isRelatedPrivacyProductSelected:!0})),xe((0,On.A)((0,On.A)({},be),{},{product:t.key}))},Be=function(e,t){H(t||""),""!==t&&t.length>=40&&t.length<=Vf?(ne((0,On.A)((0,On.A)({},ae),{},{isQuestionOrConcernDescribed:!0})),xe((0,On.A)((0,On.A)({},be),{},{comments:t})),z(void 0)):(ne((0,On.A)((0,On.A)({},ae),{},{isQuestionOrConcernDescribed:!1})),t.length<40?z(s.minimumCharacters):z(s.maximumCharacters))},Oe=we().createElement(gn.TextInput,{"aria-label":s.enterContactEmail,"data-bi-id":"".concat(a,".user-contact-email"),label:s.enterContactEmail,onChange:function(e,t){!function(e){b(e||""),""!==e&&Me(e)?(ne((0,On.A)((0,On.A)({},ae),{},{isUserEmailSet:!0})),xe((0,On.A)((0,On.A)({},be),{},{contactEmail:e})),Y(void 0)):(ne((0,On.A)((0,On.A)({},ae),{},{isUserEmailSet:!1})),Y(s.enterContactEmail))}(t)},value:w,required:!0,placeholder:"abc@xyz.com",errorMessage:X,onBlur:function(){Y(Me(w)?void 0:s.enterValidEmail)}}),Fe=function(e,t){Z((0,On.A)((0,On.A)({},J),{},{isCheckboxChecked:t||!1}))},Ve=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Pt({area:i.areaPrefix,scenario:"".concat(r,"-").concat(C),step:"Index",data:{isObo:P!==p}}),e.prev=1,d({name:r,status:"updating"}),ce(!0),e.t0=C,e.next="export-data"===e.t0?7:"delete-data"===e.t0?10:"contact-us"===e.t0?25:27;break;case 7:return e.next=9,(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(e){switch(e.label){case 0:return[4,Ss("".concat(Nf,"/bulk-export"),"".concat(Ms,".PRC.BULKEXPORT"))];case 1:return[2,e.sent()]}}))}));case 9:return e.abrupt("break",27);case 10:if(P!==p){e.next=15;break}return e.next=13,Mf();case 13:e.next=24;break;case 15:t=0;case 16:if(!(t<Te.length)){e.next=24;break}if(Te[t].cid!==P){e.next=21;break}return e.next=20,Mf(Te[t].authToken);case 20:return e.abrupt("break",24);case 21:t++,e.next=16;break;case 24:return e.abrupt("break",27);case 25:return e.next=27,Rf(be);case 27:he(!0),d({name:r,status:"finished"}),ce(!1),_t(),e.next=41;break;case 33:if(e.prev=33,e.t1=e.catch(1),(null===(a=e.t1.response)||void 0===a?void 0:a.status)!==js){e.next=39;break}return d({name:r,status:"finished",error:e.t1}),window.location.reload(),e.abrupt("return");case 39:_t({error:e.t1.message}),d({name:r,status:"failed",error:e.t1});case 41:case"end":return e.stop()}}),e,null,[[1,33]])})));return function(){return e.apply(this,arguments)}}();function Ue(){return we().createElement(gn.Stack,{childrenGap:"55px"},we().createElement(gn.Stack,{childrenGap:"18px"},we().createElement(gn.Heading,{variant:"statusHeader",tag:"h1",children:s.pageTitle}),we().createElement(gn.Text,null,s.pageDescription),we().createElement(gn.Stack,{maxWidth:"430px"},we().createElement(gn.TextInput,{"aria-label":fe?s.reviewEmail:s.reviewPhoneNumber,"data-bi-id":"".concat(a,fe?".user-account-email":".user-phone-number"),disabled:!0,label:fe?s.reviewEmail:s.reviewPhoneNumber,onChange:function(){},value:fe?h:v,allowDisabledFocus:!0})),qf(s,Pe,De,c,Ff,C),"delete-data"===C&&Te.length>0?Le:null),C?we().createElement(Kf,{prefix:a,requestType:C,isSignedIn:!0,countryDropdownValue:L,onCountryDropdownChange:Re,productDropdownValue:B,onProductDropdownChange:Ne,privacyQuestionOrConcern:U,onPrivacyQuestionOrConcernChange:Be,minOrMaxCharsErrorMessage:W,emailTextInput:Oe,isCheckboxChecked:J.isCheckboxChecked,onCheckboxChange:Fe,onSubmitClick:Ve,isSubmitButtonDisabled:de}):null)}function He(e){return we().createElement(gn.Stack,{childrenGap:"24px",horizontalAlign:"center",verticalAlign:"center"},jf(s),"contact-us"===e?Xf(oe,s):we().createElement(gn.Stack,{childrenGap:"24px",maxWidth:"500px",horizontalAlign:"center",verticalAlign:"center"},we().createElement(gn.Announced,{message:s.requestInProgress,ariaLive:"assertive"}),we().createElement(gn.Text,{variant:"bodyMediumRegular"},s.requestInProgress),we().createElement(gn.RichText,{colorOverride:"disabled",textWithTokens:Ae[C],tokensAndValues:{0:we().createElement(gn.Hyperlink,{id:"download-data-link","aria-label":s.downloadDataLinkAriaLabel,"data-bi-id":"".concat(a,".download-data-link"),href:"https://account.microsoft.com/privacy/download-data",children:"account.microsoft.com/privacy/download-data",target:"_blank"})}})),oe?null:we().createElement(gn.Stack,{maxWidth:"300px"},we().createElement(gn.Button,{onClick:function(){return window.open("http://account.microsoft.com/privacy","_self")},text:s.returnToPrivacySettings,type:"primary","data-bi-id":"".concat(a,".return-to-privacy-settings"),"aria-label":s.returnToPrivacySettings})))}return(0,Ee.useEffect)((function(){ue("contact-us"===C?Object.values(ae).some((function(e){return!e}))||U.length<40||U.length>Vf:Object.values(J).some((function(e){return!e})))}),[C,J,ae,U]),(0,gn.useMount)((0,ys.A)(ws().mark((function e(){var t,a;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Um();case 3:(t=e.sent)&&Se(t),e.next=12;break;case 7:if(e.prev=7,e.t0=e.catch(0),(null===(a=e.t0.response)||void 0===a?void 0:a.status)!==js){e.next=12;break}return window.location.reload(),e.abrupt("return");case 12:case"end":return e.stop()}}),e,null,[[0,7]])})))),we().createElement(we().Fragment,null,we().createElement(Ru,{subPage:"privacy-request"}),we().createElement(ha,{operationData:{componentName:"PrivacyRequestPage",operationName:r,defaultState:"inert"},inertView:Ue(),updatingView:He(C),finishedView:ge?He(C):Ue(),failedView:Qf(a,l)}))},Zf="".concat(Rs,"/onevet-digital-fingerprint"),ev=function(e){return(0,n.__awaiter)(void 0,void 0,void 0,(function(){return(0,n.__generator)(this,(function(t){switch(t.label){case 0:return[4,Ss("".concat(Zf,"/digital-fingerprint"),"".concat(Ms,".ONEVET.DIGITAL.FINGERPRINT"),e)];case 1:return[2,t.sent()]}}))}))},tv=function(e){var t=e.onSuccessCallback,a=e.dialogType,n=e.phoneCountryCode,r=e.phoneNumber,i=e.email,o="".concat(av,".").concat(a,"-verification-dialog"),c="".concat(o,".captcha"),s="".concat(o,".CaptchaOperation"),l="VerifyUser-".concat(a),d=vs(),u=vs().macAddressOptOutContent.captchaInputErrorMessage,m=d.prcFormContent,p=d.unauthFormContent,g=d.macAddressOptOutContent,h=d.sharedContent,f=ma(),v=(0,gn.useDialogController)(),y=Yu({operationName:s}),E=(0,Ee.useState)(""),w=(0,Fn.A)(E,2),b=w[0],x=w[1],k=(0,Ee.useState)(""),C=(0,Fn.A)(k,2),T=C[0],S=C[1],A=(0,Ee.useState)(g.hipChallenge.title.captchaVisualTitle),P=(0,Fn.A)(A,2),D=P[0],I=P[1],_=(0,Ee.useState)(""),L=(0,Fn.A)(_,2),R=L[0],N=L[1],M=(0,Ee.useState)(),B=(0,Fn.A)(M,2),O=B[0],F=B[1],V=(0,Ee.useState)(!0),U=(0,Fn.A)(V,2),H=U[0],G=U[1],q=(0,Ee.useState)(""),W=(0,Fn.A)(q,2),z=W[0],j=W[1],Q=function(e){S(e)},X=function(){var e=(0,ys.A)(ws().mark((function e(){var n,r,i,o;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,N(""),n=O.requestStatus.requestId,r={HipSolution:T,HipContext:y.challenge.context},e.next=6,ju(b,n,r);case 6:i=e.sent,t(),v.closeDialog(),Dt({step:"SubmitForm",data:a}),f({name:l,status:"finished",customData:i}),e.next=39;break;case 13:e.prev=13,e.t0=e.catch(0),e.t1=null===(o=e.t0.response.data)||void 0===o?void 0:o.error,e.next="invalidCaptcha"===e.t1?18:"nochallengesession"===e.t1?21:"wrongToken"===e.t1?24:"expiredToken"===e.t1?27:"maxRetriesReached"===e.t1?32:36;break;case 18:return f({name:l,status:"finished"}),N(u),e.abrupt("break",39);case 21:return f({name:l,status:"finished"}),N(g.hipChallenge.challengeBase.cannotLoadChallengeMessage),e.abrupt("break",39);case 24:return x(""),j(p.verificationCodeMismatched),e.abrupt("break",39);case 27:return x(""),j(p.verificationCodeExpired),e.next=31,K();case 31:return e.abrupt("break",39);case 32:return x(""),j(p.verificationCodeMismatched),G(!0),e.abrupt("break",39);case 36:f({name:l,status:"failed",error:e.t0}),G(!0),N(g.hipChallenge.challengeBase.cannotLoadChallengeMessage);case 39:return e.prev=39,y.getNewChallenge(y.mode),S(""),e.finish(39);case 43:case"end":return e.stop()}}),e,null,[[0,13,39,43]])})));return function(){return e.apply(this,arguments)}}(),Y=function(){Nt()&&It(),v.closeDialog()},$={operationData:{componentName:c,operationName:s},variant:{alignment:"start"},mode:y.mode,challengeSource:y.challenge.challengeSource,userSolution:T,challengeProps:{noAudioSupportMessage:g.hipChallenge.challengeBase.noAudioSupportMessage,cannotLoadChallengeMessage:g.hipChallenge.challengeBase.cannotLoadChallengeMessage,switchToVisualWhenAudioFailedButtonProps:{"aria-label":g.hipChallenge.challengeBase.switchToVisualWhenAudioFailedButtonAriaLabel,"data-bi-id":"".concat(c,".audio-failed.switch-to-visual"),text:g.hipChallenge.challengeBase.switchToVisualWhenAudioFailedButtonText},playAudioButtonProps:{"aria-label":g.hipChallenge.challengeBase.playAudioButtonAriaLabel,"data-bi-id":"".concat(c,".play-audio")}},controlsProps:{refreshChallengeButtonProps:{"aria-label":g.hipChallenge.controls.refreshChallengeButtonAriaLabel,"data-bi-id":"".concat(c,".refresh-challenge"),text:g.hipChallenge.controls.refreshChallengeButtonText},switchToAudioButtonProps:{"aria-label":g.hipChallenge.controls.switchToAudioButtonAriaLabel,"data-bi-id":"".concat(c,".switch-to-audio"),text:g.hipChallenge.controls.switchToAudioButtonText},switchToVisualButtonProps:{"aria-label":g.hipChallenge.controls.switchToVisualButtonAriaLabel,"data-bi-id":"".concat(c,".switch-to-visual"),text:g.hipChallenge.controls.switchToVisualButtonText},getNewAudioChallengeButtonProps:{"aria-label":g.hipChallenge.controls.getNewAudioChallengeAriaLabel,"data-bi-id":"".concat(c,".get-new-audio-challenge"),text:g.hipChallenge.controls.refreshChallengeButtonText},getNewPictureChallengeButtonProps:{"aria-label":g.hipChallenge.controls.getNewPictureChallengeAriaLabel,"data-bi-id":"".concat(c,".get-new-picture-challenge"),text:g.hipChallenge.controls.refreshChallengeButtonText}},titleProps:{children:"visual"===y.mode?g.hipChallenge.title.captchaVisualTitle:g.hipChallenge.title.captchaAudioTitle},solutionInputProps:{playAudioInstruction:g.hipChallenge.solutionInput.playAudioInstruction,audioPlaceholder:g.hipChallenge.solutionInput.captchaInputPlaceholder,visualPlaceholder:g.hipChallenge.solutionInput.captchaInputPlaceholder,"aria-label":D,"data-bi-id":"".concat(c,".solution-input"),id:"captcha-user-solution"},onNewChallengeRequested:function(e){I("audio"===e?g.audioCaptchaInputAriaLabel:g.hipChallenge.title.captchaVisualTitle),null===Q||void 0===Q||Q(""),y.getNewChallenge(e)},onSolutionChanged:Q,audioCaptchaLoadedMessage:g.audioCaptchaReloadMessage,visualCaptchaLoadedMessage:g.visualCaptchaReloadMessage},K=function(){var e=(0,ys.A)(ws().mark((function e(){var t,o,c,s;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,t="phone"===a?n:"",o="phone"===a?r:"",c="email"===a?i:"",e.next=6,zu(a,t,o,c,p.emailVerificationMessage);case 6:s=e.sent,F(s),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),f({name:l,status:"failed",error:e.t0});case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();return(0,gn.useMount)((0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,K();case 2:case"end":return e.stop()}}),e)})))),(0,Ee.useEffect)((function(){G(!T||!b)}),[T,b]),we().createElement(gn.Dialog,{title:"email"===a?p.emailVerificationDialog.title:p.phoneNumberVerificationDialog.title,isOpen:!0,staticBodyWidth:"480px",closeButton:{"data-bi-id":"".concat(o,".close-button"),"aria-label":h.cancelAriaLabel},onDismiss:Y,stickyHeaderFooter:{hasStickyHeaderFooters:!0},dialogFooterProps:{buttonPrimary:{onClick:X,disabled:H,text:m.submit,"aria-label":m.submit,"data-bi-id":"".concat(o,".submit")},buttonSecondary:{onClick:Y,text:h.cancel,"aria-label":h.cancelAriaLabel,"data-bi-id":"".concat(o,".cancel")}}},we().createElement(gn.Stack,{childrenGap:"40px"},we().createElement(gn.Stack,{childrenGap:"24px"},we().createElement(gn.Text,null,"email"===a?p.emailVerificationDialog.description:p.phoneNumberVerificationDialog.description),we().createElement(gn.Stack,{maxWidth:"330px"},we().createElement(gn.TextInput,{"aria-label":p.enterCode,"data-bi-id":"".concat(o,".verification-code"),onChange:function(e,t){!function(e){x(e||"")}(t)},value:b,placeholder:p.enterCode,required:!0,underlined:!0}),z?we().createElement(gn.Text,{variant:"errorBlockIcon",id:"token-input-error-message"},z):null)),we().createElement(gn.Stack,{childrenGap:"24px"},we().createElement(gn.RichText,{textWithTokens:"{0}{1}",tokensAndValues:{0:we().createElement(gn.Text,null,p.emailVerificationDialog.solveCaptcha),1:we().createElement(gn.Text,{colorOverride:"error"}," *")}}),we().createElement(gn.Stack,{maxWidth:"300px",id:"hip-challenge"},we().createElement(gn.HipChallenge,$),R?we().createElement(gn.Text,{variant:"errorBlockIcon",id:"captcha-input-error-message"},R):null,R?we().createElement(gn.Announced,{message:R,ariaLive:"assertive"}):null))))},av="".concat(Of,".unauth-page"),nv={"export-data":"PRC Alternate Subject Export","delete-data":"PRC Alternate Subject Delete","contact-us":"PRC Alternate Subject Contact Us "},rv=function(e){var t,a=e.signedIn,n="SubmitUnauthPrivacyRequest",r="RunDigitalFingerprint",i=Bn(),o=null!==(t=i.area)&&void 0!==t?t:"privacy",c=vs(),s=c.prcFormContent,l=c.unauthFormContent,d=c.sharedContent,u=(0,gn.useDialogController)(),m=ma(),p=i.marketizationServiceConfig.countries,g=(0,Ee.useState)(""),h=(0,Fn.A)(g,2),f=h[0],v=h[1],y=(0,Ee.useState)(!1),E=(0,Fn.A)(y,2),w=E[0],b=E[1],x=(0,Ee.useState)(!1),k=(0,Fn.A)(x,2),C=k[0],T=k[1],S=(0,Ee.useState)(),A=(0,Fn.A)(S,2),P=A[0],D=A[1],I=(0,Ee.useState)(""),_=(0,Fn.A)(I,2),L=_[0],R=_[1],N=(0,Ee.useState)(""),M=(0,Fn.A)(N,2),B=M[0],O=M[1],F=(0,Ee.useState)(""),V=(0,Fn.A)(F,2),U=V[0],H=V[1],G=(0,Ee.useState)(""),q=(0,Fn.A)(G,2),W=q[0],z=q[1],j=(0,Ee.useState)(),Q=(0,Fn.A)(j,2),X=Q[0],Y=Q[1],$=(0,Ee.useState)(!1),K=(0,Fn.A)($,2),J=K[0],Z=K[1],ee=(0,Ee.useState)(""),te=(0,Fn.A)(ee,2),ae=te[0],ne=te[1],re=(0,Ee.useState)(!1),ie=(0,Fn.A)(re,2),oe=ie[0],ce=ie[1],se=(0,Ee.useState)(),le=(0,Fn.A)(se,2),de=le[0],ue=le[1],me=(0,Ee.useState)(),pe=(0,Fn.A)(me,2),ge=pe[0],he=pe[1],fe=(0,Ee.useState)(""),ve=(0,Fn.A)(fe,2),ye=ve[0],be=ve[1],xe=(0,Ee.useState)(),ke=(0,Fn.A)(xe,2),Ce=ke[0],Te=ke[1],Se=(0,Ee.useState)(),Ae=(0,Fn.A)(Se,2),Pe=Ae[0],De=Ae[1],Ie=(0,Ee.useState)(!0),_e=(0,Fn.A)(Ie,2),Le=_e[0],Re=_e[1],Ne=(0,Ee.useState)(!0),Be=(0,Fn.A)(Ne,2),Oe=Be[0],Fe=Be[1],Ve=(0,Ee.useState)(!0),Ue=(0,Fn.A)(Ve,2),He=Ue[0],Ge=Ue[1],qe=(0,Ee.useState)(!0),We=(0,Fn.A)(qe,2),ze=We[0],je=We[1],Qe=(0,Ee.useState)(!1),Xe=(0,Fn.A)(Qe,2),Ye=Xe[0],$e=Xe[1],Ke=(0,Ee.useState)(!1),Je=(0,Fn.A)(Ke,2),Ze=Je[0],et=Je[1],tt=(0,Ee.useState)(""),at=(0,Fn.A)(tt,2),nt=at[0],rt=at[1],it=L?p.filter((function(e){return e.iso===L}))[0].name:void 0,ot=(0,Ee.useState)("export-data"===P),ct=(0,Fn.A)(ot,2),st=ct[0],lt=ct[1],dt=Qa("PrivPrcVerifyPhone"),ut=(0,Ee.useState)({isRequestTypeSelected:!1,isCountryOrRegionSelected:!!it,isCheckboxChecked:!1,isPhoneNumberVerified:"export-data"!==P}),mt=(0,Fn.A)(ut,2),pt=mt[0],gt=mt[1],ht=(0,Ee.useState)({isRequestTypeSelected:!1,isCountryOrRegionSelected:!!it,isRelatedPrivacyProductSelected:!1,isUserTypeSelected:!1,isQuestionOrConcernDescribed:!1,isPhoneNumberVerified:!0}),ft=(0,Fn.A)(ht,2),vt=ft[0],yt=ft[1],Et=(0,Ee.useState)({contactEmail:f||"",userAgent:navigator.userAgent,locale:i.language?i.language:"",country:it||"",countryCode:L||"",product:de||"",comments:ye||"",userRequestType:P||"",doNotEngage:"",userType:ge||"",userPhoneNumber:""}),wt=(0,Fn.A)(Et,2),bt=wt[0],xt=wt[1],kt=function(){var e=(0,ys.A)(ws().mark((function e(){var t;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=localStorage.getItem("profilingSessionID"),e.next=3,ev({sessionId:t,scenarioName:nt,userEmail:f,phoneCountryCode:U,phoneNumber:W,countryName:it,countryCode:L}).then((function(e){xt((0,On.A)((0,On.A)({},bt),{},{userPhoneNumber:U+W,doNotEngage:"".concat(e.status," with ReasonCode: ").concat(e.reasonCodes.join(","))})),m({name:r,status:"finished"})})).catch((function(e){xt((0,On.A)((0,On.A)({},bt),{},{userPhoneNumber:U+W,doNotEngage:"Could not retrieve status"})),m({name:r,status:"failed",customData:{error:e}})}));case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Ct=function(){De(Me(f)?void 0:s.enterValidEmail)},Tt=function(){je(!1),T(!0),b(!0),xt((0,On.A)((0,On.A)({},bt),{},{contactEmail:f}))},St=Uf(s).concat(Hf(s)),At=function(e,t){null!==t&&void 0!==t&&t.key&&(D(null===t||void 0===t?void 0:t.key),rt(null===t||void 0===t?void 0:t.id),z(""),ce(!1),lt("export-data"===t.key),gt(dt?(0,On.A)((0,On.A)({},pt),{},{isRequestTypeSelected:!0,isCheckboxChecked:!1,isPhoneNumberVerified:"export-data"!==t.key}):(0,On.A)((0,On.A)({},pt),{},{isRequestTypeSelected:!0,isCheckboxChecked:!1})),yt((0,On.A)((0,On.A)({},vt),{},{isRequestTypeSelected:!0})),Fe(!1),Z(!1)),xt((0,On.A)((0,On.A)({},bt),{},{userRequestType:nv[null===t||void 0===t?void 0:t.key]}))},Dt=function(e,t){R(null===t||void 0===t?void 0:t.key),gt((0,On.A)((0,On.A)({},pt),{},{isCountryOrRegionSelected:!0})),yt((0,On.A)((0,On.A)({},vt),{},{isCountryOrRegionSelected:!0})),xt((0,On.A)((0,On.A)({},bt),{},{country:t.text,countryCode:t.key}))},It=function(){var e=(0,ys.A)(ws().mark((function e(){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:ne(W),st&&(gt((0,On.A)((0,On.A)({},pt),{},{isPhoneNumberVerified:!0})),yt((0,On.A)((0,On.A)({},vt),{},{isPhoneNumberVerified:!0}))),Z(!0);case 3:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Lt=null!==p?p.filter((function(e){return e.dial})).map((function(e){return function(e){return{ariaLabel:"".concat(e.name," (+").concat(e.dial,")"),id:e.dial,key:e.iso,text:"".concat(e.name," (+").concat(e.dial,")")}}(e)})):[],Rt=function(){var e=(0,ys.A)(ws().mark((function e(t,a){return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:Pt({area:i.areaPrefix,scenario:n,step:"TokenVerification",data:{dialogType:t}}),u.openDialog(we().createElement(tv,{onSuccessCallback:a,dialogType:t,phoneCountryCode:U,phoneNumber:W,email:f}));case 2:case"end":return e.stop()}}),e)})));return function(t,a){return e.apply(this,arguments)}}(),Nt=we().createElement(gn.Stack,{childrenGap:"5px"},we().createElement(gn.Stack,{childrenGap:"5px",horizontal:!0,horizontalAlign:"start"},we().createElement(gn.Text,null,l.phoneNumber),"export-data"===P?Gf:null),we().createElement(gn.Stack,{childrenGap:"5px",horizontal:!0,horizontalAlign:"start"},we().createElement(gn.Dropdown,{id:"phone-country-code-dropdown",pageArea:o,width:"150px","data-bi-prefix":"phone-country-code",dropdownStyle:"default","aria-label":l.phoneNumberCountryCode,onChange:function(e,t){O(null===t||void 0===t?void 0:t.key),H(p.filter((function(e){return e.iso===(null===t||void 0===t?void 0:t.key)}))[0].dial)},options:Lt,placeholder:s.selectPlaceholder,value:B,disabled:J}),we().createElement(gn.TextInput,{"aria-label":"Phone Number","data-bi-id":"".concat(av,".user-phone-number"),onChange:function(e,t){z(t),dt&&(!W||ae&&t!==ae)?(gt((0,On.A)((0,On.A)({},pt),{},{isPhoneNumberVerified:!1})),yt((0,On.A)((0,On.A)({},vt),{},{isPhoneNumberVerified:!1}))):dt&&(st||""!==t)||(gt((0,On.A)((0,On.A)({},pt),{},{isPhoneNumberVerified:!0})),yt((0,On.A)((0,On.A)({},vt),{},{isPhoneNumberVerified:!0}))),""!==t&&zf(t)&&10===(null===t||void 0===t?void 0:t.length)?(ce(!0),Y(void 0)):(t.length>10||t.length<10)&&(ce(!1),Y(l.enterValidPhoneNumber))},value:W,errorMessage:X,onBlur:function(){dt&&st&&ae&&W!==ae&&(gt((0,On.A)((0,On.A)({},pt),{},{isPhoneNumberVerified:!1})),yt((0,On.A)((0,On.A)({},vt),{},{isPhoneNumberVerified:!1}))),W&&""!==W?zf(W)?(W.length<10||W.length>10)&&Y("Please enter a valid phone number"):Y("Please enter only numbers"):Y(void 0)},disabled:J}),W&&dt&&!J?we().createElement(gn.Stack,{maxHeight:"12px"},we().createElement(gn.Button,{type:"primary",onClick:function(){return Rt("phone",It)},text:l.verify,"data-bi-id":"".concat(av,".verify-phone"),"aria-label":l.verify,disabled:Oe})):null)),Mt=function(e,t){ue(null===t||void 0===t?void 0:t.key),yt((0,On.A)((0,On.A)({},vt),{},{isRelatedPrivacyProductSelected:!0})),xt((0,On.A)((0,On.A)({},bt),{},{product:t.key}))},Bt=function(e,t){he(null===t||void 0===t?void 0:t.key),yt((0,On.A)((0,On.A)({},vt),{},{isUserTypeSelected:!0})),xt((0,On.A)((0,On.A)({},bt),{},{userType:t.key}))},Ot=function(e,t){be(t||""),""!==t&&t.length>=40&&t.length<=Vf?(yt((0,On.A)((0,On.A)({},vt),{},{isQuestionOrConcernDescribed:!0})),xt((0,On.A)((0,On.A)({},bt),{},{comments:t})),Te(void 0)):t.length<40?Te(s.minimumCharacters):Te(s.maximumCharacters)},Ft=function(e,t){gt((0,On.A)((0,On.A)({},pt),{},{isCheckboxChecked:t||!1}))},Vt=function(){var e=(0,ys.A)(ws().mark((function e(){var t,a,r;return ws().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,m({name:n,status:"updating"}),$e(!0),e.next=5,Rf(bt);case 5:et(!0),m({name:n,status:"finished"}),$e(!1),_t(),e.next=17;break;case 11:e.prev=11,e.t0=e.catch(0),a=e.t0,r=JSON.parse(null===(t=a.request)||void 0===t?void 0:t.response).Error.Code,m({name:n,status:"failed",error:e.t0}),_t({error:r,data:{errorDetails:e.t0}});case 17:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}();function Ut(){return we().createElement(gn.Stack,null,we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.Heading,{variant:"statusHeader",tag:"h1",children:l.pageTitle}),we().createElement(gn.Stack,{maxWidth:"430px"},we().createElement(gn.TextInput,{"aria-label":l.emailAddress,"data-bi-id":"".concat(av,".user-email"),label:l.emailAddress,onChange:function(e,t){!function(e){v(e||""),""!==e&&Me(e)?(Re(!1),De(void 0)):Re(!0)}(t)},value:f,placeholder:"abc@xyz.com",errorMessage:Pe,onBlur:Ct,required:!0,disabled:w})),ze?we().createElement(gn.Stack,{childrenGap:"10px"},we().createElement(gn.RichText,{textWithTokens:"{0}{1}",tokensAndValues:{0:Gf,1:we().createElement(gn.Text,null,s.indicatesRequiredField)}}),we().createElement(gn.Stack,{maxWidth:"110px"},we().createElement(gn.Button,{onClick:function(){return Rt("email",Tt)},text:s.submit,type:"primary","data-bi-id":"".concat(av,".verify-email"),"aria-label":s.submit,disabled:Le}))):null,C?qf(s,At,St,o,Ff,P):null,P?we().createElement(Kf,{prefix:av,requestType:P,isSignedIn:!1,countryDropdownValue:L,onCountryDropdownChange:Dt,phoneNumberTextInput:Nt,productDropdownValue:de,onProductDropdownChange:Mt,userTypeDropdownValue:ge,onUserTypeDropdownChange:Bt,privacyQuestionOrConcern:ye,onPrivacyQuestionOrConcernChange:Ot,minOrMaxCharsErrorMessage:Ce,isCheckboxChecked:pt.isCheckboxChecked,onCheckboxChange:Ft,onSubmitClick:Vt,isSubmitButtonDisabled:He}):null))}function Ht(){return we().createElement(gn.Stack,{childrenGap:"24px",horizontalAlign:"center",verticalAlign:"center"},jf(s),Xf(Ye,s))}return(0,Ee.useEffect)((function(){Me(f)?Re(!1):Re(!0),Fe(!oe||!B),Ge("contact-us"===P?Object.values(vt).some((function(e){return!e})):Object.values(pt).some((function(e){return!e}))),!1===He&&kt()}),[f,B,P,pt,oe,vt,He]),we().createElement(we().Fragment,null,we().createElement(Ru,{subPage:"privacy-request",useInAppNavigation:a}),we().createElement(ha,{operationData:{componentName:"UnauthPrivacyRequestPage",operationName:n,defaultState:"inert"},inertView:Ut(),updatingView:Ht(),finishedView:Ze?Ht():Ut(),failedView:Qf(av,d)}))},iv=function(){var e=vs().searchAndNewsPersonalizationContent,t=(0,Zt.useHistory)(),a=[{textWithTokens:"{0}",tokensAndValues:{0:we().createElement(gn.Stack,{padding:"10px 0px",childrenGap:"12px"},we().createElement("ul",{style:{padding:"4px 16px 0px"}},we().createElement("li",null,e.pageContent.body.line1),we().createElement("li",null,e.pageContent.body.line2),we().createElement("li",null,e.pageContent.body.line3)),we().createElement(gn.RichText,{textWithTokens:e.pageContent.managePersonalizedAdSettings,tokensAndValues:{0:we().createElement(gn.NoHrefLink,{onClick:function(){return t.push("/ad-settings")},"data-bi-id":"link-to-personalized-ad-settings","aria-label":e.pageContent.linkTextToAdSettingsPage},e.pageContent.linkTextToAdSettingsPage)}}))}}];return we().createElement(gn.Stack,{childrenGap:"8px"},we().createElement(Ru,{subPage:"search-and-news-personalization"}),we().createElement(gn.Stack,{childrenGap:"20px"},we().createElement(gn.Feature,{backgroundType:"flat",bodyText:a,featureHeading:{text:e.pageContent.pageTitle,tag:"h2"},height:"small",imageProps:{src:"".concat(Bl,"compassassets/2164cfc6-48a4-4d64-aa24-253d0a08509e.svg"),alt:""},layoutType:"2/3"})),we().createElement(gn.Stack,{childrenGap:"24px"},we().createElement(xu,null)),we().createElement(pm,null))},ov=function(){var e=vs().adSettingsContent;return we().createElement(gn.Stack,{id:"third-party-ad-settings"},we().createElement(gn.Announced,{message:e.thirdPartyAds.pageTitle,ariaLive:"assertive"}),we().createElement(gn.Stack,null,we().createElement(Ru,{subPage:_l,useInAppNavigation:!1}),we().createElement(Cu,null)),we().createElement(Nm,{signedIn:!1}))},cv=function(){var e=Bn(),t=e.bingMapsConfig,a=e.selfRights,n=e.msaCountryCode;je(id,n);var r=Bn(),i=r.userPuid,o=r.isAuthenticated,c=(0,Ee.useState)([i.valueAsHex]),s=(0,Fn.A)(c,1)[0],l={strings:vs().overviewContent.amcLeftNav,userIds:s,selectedNavLink:"privacy"},d={layoutType:"withoutNavBar",id:_e.$,children:we().createElement(we().Fragment,null)};return we().createElement(Zt.Switch,null,we().createElement(Ra,{path:"/data-settings",area:"privacy",view:"office-settings",requiredComponents:[dg]},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(pg,null)}),amcAccountLeftNavProps:l})),we().createElement(Ra,{path:"/download-data",area:"privacy",view:"download-data",requiredComponents:[Wm]},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(cp,null)}),amcAccountLeftNavProps:l})),we().createElement(Ra,{path:"/location-services-opt-out",area:"privacy",view:"mac-address-opt-out",requiredComponents:[lp]},we().createElement(fs,{isSignedIn:o||!1,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(up,null)}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/ad-settings/signedout",view:"ad-settings-signedout",requiredComponents:[gu]},we().createElement(fs,{isSignedIn:!1,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(Bm,{signedIn:!1})}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/ad-settings",view:"ad-settings",requiredComponents:null!==a&&void 0!==a&&a.canManageAdSettings?[gu]:[],manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(Bm,{signedIn:!0})}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/third-party-ads",view:"third-party-ads",requiredComponents:[ku]},we().createElement(fs,{isSignedIn:!1,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(ov,null)}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/search-and-news-personalization",view:"search-and-news-personalization",requiredComponents:[bu]},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(iv,null)}),amcAccountLeftNavProps:l})),Qa("PrivTmlnInternalTest")?we().createElement(Ra,{area:"privacy",path:"/partner",view:"partner",requiredComponents:[]},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(_f,null)}),amcAccountLeftNavProps:l})):null,we().createElement(Ra,{area:"privacy",path:"/privacy-request",view:"privacy-request",requiredComponents:[]},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(Jf,null)}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/privacy-request-no-msa",view:"privacy-request-no-msa",requiredComponents:[]},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.DialogControlProvider,null,we().createElement(rv,{signedIn:o||!1}))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/privacy-request-signedout",view:"privacy-request-signedout",requiredComponents:[]},we().createElement(fs,{isSignedIn:!1,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.DialogControlProvider,null,we().createElement(rv,{signedIn:o||!1}))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/child/:memberId",view:"child-activity",requiredComponents:[],manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.BingMapsProvider,{config:t},we().createElement(gn.DialogControlProvider,null,we().createElement(qm,null)))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/location",view:"location",requiredComponents:["".concat(Kd,".location")],exact:!0,manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.BingMapsProvider,{config:t},we().createElement(gn.DialogControlProvider,null,we().createElement(Sm,null)))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/web-search",view:"web-search",requiredComponents:["".concat(Kd,".search"),"".concat(Kd,".browse")],exact:!0,manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.DialogControlProvider,null,we().createElement(Lm,null))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/apps-services",view:"apps-services",requiredComponents:["".concat(Kd,".usage")],exact:!0,manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.DialogControlProvider,null,we().createElement(vm,null))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/people-suggestions",view:"people-suggestions",requiredComponents:[Eu],exact:!0,manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.DialogControlProvider,null,we().createElement(Im,null))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/account-windows",view:"account-windows",requiredComponents:[],exact:!0,manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.DialogControlProvider,null,we().createElement(Nu,null))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/app-access",view:"app-access",exact:!0,manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.DialogControlProvider,null,we().createElement(hm,null))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/spelling-text",view:"spelling-text",requiredComponents:[Fl],exact:!0,manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.DialogControlProvider,null,we().createElement(_m,null))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/copilot",view:"copilot",exact:!0,manualPageView:!0},we().createElement(fs,{isSignedIn:!0,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(gn.DialogControlProvider,null,we().createElement(Tm,null))}),amcAccountLeftNavProps:l})),we().createElement(Ra,{area:"privacy",path:"/",view:"overview",requiredComponents:[],exact:!0},we().createElement(fs,{isSignedIn:o||!1,pageLayoutProps:(0,On.A)((0,On.A)({},d),{},{children:we().createElement(Fp,null,we().createElement(gn.DialogControlProvider,null,we().createElement(xh,null)))}),amcAccountLeftNavProps:l})),we().createElement(Zt.Redirect,{from:"/export",to:"/download-data"}),we().createElement(Zt.Redirect,{to:"/"}))},sv=function(){Se((function(){(0,gn.initializeIconsTwoUi)()}));var e=Bn(),t=e.area,a=function(t){var a=t.children;if(e.isAuthenticated&&e.msalConfig){var n=function(e){var t=yn({msalConfig:e,redirectUri:En(e),cacheLocation:fn.Al.LocalStorage,navigateToLoginRequestUrl:!1});return new vn.v(t)}(e.msalConfig),r=e.signInName;return we().createElement(xn,{instance:n,msalAuthConfig:{signInName:r}},a)}return we().createElement(we().Fragment,null,a)};return we().createElement(Nn,{marketizationServiceConfig:e.marketizationServiceConfig},we().createElement(a,null,we().createElement(Zt.BrowserRouter,{basename:"/privacy"},we().createElement(gn.BaseLayout,{variant:"AMC",idPrefix:t},we().createElement(cv,null)))))},lv=function(e){var t,a,n=e.cmsContent,r=e.areaConfig,i=e.areaContext;a=JSON.parse(r),Se((function(){_n=Mn(a)})),function(e){Se((function(){rs=Mn(e)}))}(JSON.parse(n)),function(e){Se((function(){Mn(e)}))}(JSON.parse(i));var o=null===(t=Bn())||void 0===t?void 0:t.area;return we().createElement(pn,{errorComponent:gn.FatalError},we().createElement(tn,{areaBiId:o},we().createElement(gn.AnnouncementsProvider,{announcedComponent:gn.Announced},we().createElement(sv,null))))};Yf=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){V(e)},reportSpaPageView:function(e){F()}},cv:{getCurrentCvValue:function(){return"cv123"}},experiments:{reportExperimentTrigger:function(e){Q(e)}},perf:{reportViewPerformanceMetrics:function(e,t){J(e,t)}},qos:{reportFatalError:function(e){H(e)},reportOutgoingApi:function(e){q(e)},reportRawEvent:function(e){G(e)}}},ie({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}})),De().render(we().createElement(Zt.BrowserRouter,null,we().createElement(lv,e.dataset)),e)},$f="privacy",(0,n.__awaiter)(void 0,void 0,void 0,(function(){var e,t,a,r,i,o;return(0,n.__generator)(this,(function(n){switch(n.label){case 0:e=he,a=performance.now(),r=!1,i=setTimeout((function(){r=!0,Jt(ye,$f,a)}),3e4),n.label=1;case 1:return n.trys.push([1,3,4,5]),[4,Yf()];case 2:return n.sent(),[3,5];case 3:throw o=n.sent(),e=fe,t=o,o;case 4:return r||(clearTimeout(i),Jt(e,$f,a,t)),[7];case 5:return[2]}}))}))},46611:function(e,t,a){a.d(t,{G:function(){return o},Q:function(){return c}});var n=a(80322),r=a.n(n),i=r().createContext({}),o=function(e){var t=e.children,a=e.externalEntities;return r().createElement(i.Provider,{value:null!==a&&void 0!==a?a:{}},t)},c=function(){return(0,n.useContext)(i)}},32445:function(e,t,a){a.d(t,{YJ:function(){return m},pV:function(){return u},sB:function(){return d}});var n=a(84867),r=a(80322),i=a.n(r),o=a(46611),c=i().createContext(null),s=i().createContext(null),l=function(e,t){var a;return(0,n.__assign)((0,n.__assign)({},e),((a={})[t.name]={status:t.status,error:t.error,customData:t.customData},a))},d=function(e){var t=e.children,a=(0,r.useReducer)(l,{}),n=a[0],o=a[1];return i().createElement(s.Provider,{value:o},i().createElement(c.Provider,{value:n},t))},u=function(){var e=c,t=(0,r.useContext)(e);if(!t)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return t},m=function(){var e=(0,o.Q)().operationEntities,t=s;e&&(t=e.operationDispatchContext);var a=(0,r.useContext)(t);if(!a)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return a}},35913:function(e,t,a){a.d(t,{EN:function(){return g},Lq:function(){return m},PF:function(){return l},VZ:function(){return p},Xo:function(){return v},ZJ:function(){return u},b4:function(){return f}});var n=a(84867),r=a(45),i=a(80322),o=a.n(i),c=a(46611),s=a(32445),l={areaBiId:"areaUndefined"},d=(0,i.createContext)({reportComponentValidationErrorEvent:function(e,t,a){},logComponentMountEvent:function(e,t,a){},twoUITelemetryIds:l,twoUIFlights:[],getCv:function(){return""},reportClick:function(e){},checkUrlAndReportHttp:function(e){}}),u=function(){return(0,i.useContext)(d)},m=function(){return(0,i.useContext)(d).twoUIFlights},p=function(){return(0,i.useContext)(d).twoUITelemetryIds},g=function(e,t,a){var n=(0,i.useContext)(d);(0,r.JO)((function(){n.logComponentMountEvent(e,t,a)}))},h=function(e){var t=e.replace(/[^a-z0-9\-]/gi,"").substring(0,50);return 0===t.length?l.areaBiId:t},f=function(e,t,a){},v=function(e){var t=e.twoUITelemetryIds,a=e.twoUIFlights,i=e.logComponentMountEvent,l=e.reportHttpUrl,u=e.reportComponentValidationErrorEvent,m=e.reportClick,p=e.getCv,g=e.children,v=e.externalEntities,y=function(e){return(0,n.__assign)((0,n.__assign)({},e),{areaBiId:h(e.areaBiId)})}(t);f=u||f;return o().createElement(d.Provider,{value:{twoUITelemetryIds:y,twoUIFlights:a,logComponentMountEvent:function(e,t,a){null===i||void 0===i||i(e,t,a)},reportClick:function(e){null===m||void 0===m||m(e)},reportComponentValidationErrorEvent:function(e,t,a){null===f||void 0===f||f(e,t,a)},getCv:function(){return(null===p||void 0===p?void 0:p())||""},checkUrlAndReportHttp:function(e){e&&l&&(0,r.q$)(e)&&l(e)}}},o().createElement(c.G,{externalEntities:v},o().createElement(s.sB,null,g)))}}}]);
//# sourceMappingURL=1815.244d0b9e.chunk.js.map
/*! For license information please see 2176.b7f5b90b.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[2176],{16512:function(e){var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=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 r={},t=0;t<10;t++)r["_"+String.fromCharCode(t)]=t;if("0123456789"!==Object.getOwnPropertyNames(r).map((function(e){return r[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,u){for(var c,f,l=o(e),i=1;i<arguments.length;i++){for(var a in c=Object(arguments[i]))t.call(c,a)&&(l[a]=c[a]);if(r){f=r(c);for(var s=0;s<f.length;s++)n.call(c,f[s])&&(l[f[s]]=c[f[s]])}}return l}},10083:function(e,r,t){var n=t(16512),o="function"===typeof Symbol&&Symbol.for,u=o?Symbol.for("react.element"):60103,c=o?Symbol.for("react.portal"):60106,f=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,i=o?Symbol.for("react.profiler"):60114,a=o?Symbol.for("react.provider"):60109,s=o?Symbol.for("react.context"):60110,p=o?Symbol.for("react.forward_ref"):60112,y=o?Symbol.for("react.suspense"):60113,d=o?Symbol.for("react.memo"):60115,h=o?Symbol.for("react.lazy"):60116,v="function"===typeof Symbol&&Symbol.iterator;function m(e){for(var r="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;t<arguments.length;t++)r+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function g(e,r,t){this.props=e,this.context=r,this.refs=_,this.updater=t||b}function S(){}function k(e,r,t){this.props=e,this.context=r,this.refs=_,this.updater=t||b}g.prototype.isReactComponent={},g.prototype.setState=function(e,r){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(m(85));this.updater.enqueueSetState(this,e,r,"setState")},g.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},S.prototype=g.prototype;var w=k.prototype=new S;w.constructor=k,n(w,g.prototype),w.isPureReactComponent=!0;var j={current:null},O=Object.prototype.hasOwnProperty,C={key:!0,ref:!0,__self:!0,__source:!0};function $(e,r,t){var n,o={},c=null,f=null;if(null!=r)for(n in void 0!==r.ref&&(f=r.ref),void 0!==r.key&&(c=""+r.key),r)O.call(r,n)&&!C.hasOwnProperty(n)&&(o[n]=r[n]);var l=arguments.length-2;if(1===l)o.children=t;else if(1<l){for(var i=Array(l),a=0;a<l;a++)i[a]=arguments[a+2];o.children=i}if(e&&e.defaultProps)for(n in l=e.defaultProps)void 0===o[n]&&(o[n]=l[n]);return{$$typeof:u,type:e,key:c,ref:f,props:o,_owner:j.current}}function E(e){return"object"===typeof e&&null!==e&&e.$$typeof===u}var x=/\/+/g,P=[];function R(e,r,t,n){if(P.length){var o=P.pop();return o.result=e,o.keyPrefix=r,o.func=t,o.context=n,o.count=0,o}return{result:e,keyPrefix:r,func:t,context:n,count:0}}function A(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>P.length&&P.push(e)}function I(e,r,t,n){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var f=!1;if(null===e)f=!0;else switch(o){case"string":case"number":f=!0;break;case"object":switch(e.$$typeof){case u:case c:f=!0}}if(f)return t(n,e,""===r?"."+U(e,0):r),1;if(f=0,r=""===r?".":r+":",Array.isArray(e))for(var l=0;l<e.length;l++){var i=r+U(o=e[l],l);f+=I(o,i,t,n)}else if(null===e||"object"!==typeof e?i=null:i="function"===typeof(i=v&&e[v]||e["@@iterator"])?i:null,"function"===typeof i)for(e=i.call(e),l=0;!(o=e.next()).done;)f+=I(o=o.value,i=r+U(o,l++),t,n);else if("object"===o)throw t=""+e,Error(m(31,"[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t,""));return f}function q(e,r,t){return null==e?0:I(e,"",r,t)}function U(e,r){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var r={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return r[e]}))}(e.key):r.toString(36)}function F(e,r){e.func.call(e.context,r,e.count++)}function L(e,r,t){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,r,e.count++),Array.isArray(e)?M(e,n,t,(function(e){return e})):null!=e&&(E(e)&&(e=function(e,r){return{$$typeof:u,type:e.type,key:r,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||r&&r.key===e.key?"":(""+e.key).replace(x,"$&/")+"/")+t)),n.push(e))}function M(e,r,t,n,o){var u="";null!=t&&(u=(""+t).replace(x,"$&/")+"/"),q(e,L,r=R(r,u,n,o)),A(r)}var N={current:null};function D(){var e=N.current;if(null===e)throw Error(m(321));return e}var T={ReactCurrentDispatcher:N,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:j,IsSomeRendererActing:{current:!1},assign:n};r.Children={map:function(e,r,t){if(null==e)return e;var n=[];return M(e,n,null,r,t),n},forEach:function(e,r,t){if(null==e)return e;q(e,F,r=R(null,null,r,t)),A(r)},count:function(e){return q(e,(function(){return null}),null)},toArray:function(e){var r=[];return M(e,r,null,(function(e){return e})),r},only:function(e){if(!E(e))throw Error(m(143));return e}},r.Component=g,r.Fragment=f,r.Profiler=i,r.PureComponent=k,r.StrictMode=l,r.Suspense=y,r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=T,r.cloneElement=function(e,r,t){if(null===e||void 0===e)throw Error(m(267,e));var o=n({},e.props),c=e.key,f=e.ref,l=e._owner;if(null!=r){if(void 0!==r.ref&&(f=r.ref,l=j.current),void 0!==r.key&&(c=""+r.key),e.type&&e.type.defaultProps)var i=e.type.defaultProps;for(a in r)O.call(r,a)&&!C.hasOwnProperty(a)&&(o[a]=void 0===r[a]&&void 0!==i?i[a]:r[a])}var a=arguments.length-2;if(1===a)o.children=t;else if(1<a){i=Array(a);for(var s=0;s<a;s++)i[s]=arguments[s+2];o.children=i}return{$$typeof:u,type:e.type,key:c,ref:f,props:o,_owner:l}},r.createContext=function(e,r){return void 0===r&&(r=null),(e={$$typeof:s,_calculateChangedBits:r,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:a,_context:e},e.Consumer=e},r.createElement=$,r.createFactory=function(e){var r=$.bind(null,e);return r.type=e,r},r.createRef=function(){return{current:null}},r.forwardRef=function(e){return{$$typeof:p,render:e}},r.isValidElement=E,r.lazy=function(e){return{$$typeof:h,_ctor:e,_status:-1,_result:null}},r.memo=function(e,r){return{$$typeof:d,type:e,compare:void 0===r?null:r}},r.useCallback=function(e,r){return D().useCallback(e,r)},r.useContext=function(e,r){return D().useContext(e,r)},r.useDebugValue=function(){},r.useEffect=function(e,r){return D().useEffect(e,r)},r.useImperativeHandle=function(e,r,t){return D().useImperativeHandle(e,r,t)},r.useLayoutEffect=function(e,r){return D().useLayoutEffect(e,r)},r.useMemo=function(e,r){return D().useMemo(e,r)},r.useReducer=function(e,r,t){return D().useReducer(e,r,t)},r.useRef=function(e){return D().useRef(e)},r.useState=function(e){return D().useState(e)},r.version="16.14.0"},72176:function(e,r,t){e.exports=t(10083)}}]);
//# sourceMappingURL=2176.b7f5b90b.chunk.js.map
/*! For license information please see 2253.dc7bc6da.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[2253,9541],{10898:function(e,t,r){"use strict";var n=r(42732);Object.defineProperty(t,"__esModule",{value:!0}),r(35938);var o=r(80322),a=r(9329);function s(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}function l(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(r){if("default"!==r){var n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:function(){return e[r]}})}})),t.default=e,Object.freeze(t)}var d=l(o),u=s(o),c=s(a),p="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof r.g?r.g:"undefined"!==typeof self?self:{};function m(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function f(e,t){return e(t={exports:{}},t.exports),t.exports}var y=f((function(e){!function(e){!function(t){var r="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof e&&e||"undefined"!==typeof p&&p||{},n="URLSearchParams"in r,i="Symbol"in r&&"iterator"in Symbol,o="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in r,s="ArrayBuffer"in r;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function u(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 c(e){return"string"!==typeof e&&(e=String(e)),e}function m(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){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function y(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function h(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function g(e){var t=new FileReader,r=h(t);return t.readAsArrayBuffer(e),r}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"===typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||("string"===typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=y(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=y(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))}if(o)return this.blob().then(g);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=y(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=h(t),n=/charset=([A-Za-z0-9_-]+)/.exec(e.type),i=n?n[1]:"utf-8";return t.readAsText(e,i),r}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},a&&(this.formData=function(){return this.text().then(I)}),this.json=function(){return this.text().then(JSON.parse)},this}f.prototype.append=function(e,t){e=u(e),t=c(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},f.prototype.delete=function(e){delete this.map[u(e)]},f.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},f.prototype.set=function(e,t){this.map[u(e)]=c(t)},f.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),m(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),m(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),m(e)},i&&(f.prototype[Symbol.iterator]=f.prototype.entries);var b=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof E){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 b.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in r)return(new AbortController).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 i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function I(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}})),t}function S(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 r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();try{t.append(n,i)}catch(o){console.warn("Response "+o.message)}}})),t}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.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");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)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},P.call(E.prototype),P.call(C.prototype),C.prototype.clone=function(){return new C(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},C.error=function(){var e=new C(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var D=[301,302,303,307,308];C.redirect=function(e,t){if(-1===D.indexOf(t))throw new RangeError("Invalid status code");return new C(null,{status:t,headers:{location:e}})},t.DOMException=r.DOMException;try{new t.DOMException}catch(w){t.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,n){return new Promise((function(i,a){var l=new E(e,n);if(l.signal&&l.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var d=new XMLHttpRequest;function p(){d.abort()}if(d.onload=function(){var e={statusText:d.statusText,headers:S(d.getAllResponseHeaders()||"")};0===l.url.indexOf("file://")&&(d.status<200||d.status>599)?e.status=200:e.status=d.status,e.url="responseURL"in d?d.responseURL:e.headers.get("X-Request-URL");var t="response"in d?d.response:d.responseText;setTimeout((function(){i(new C(t,e))}),0)},d.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},d.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},d.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},d.open(l.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?d.withCredentials=!0:"omit"===l.credentials&&(d.withCredentials=!1),"responseType"in d&&(o?d.responseType="blob":s&&(d.responseType="arraybuffer")),n&&"object"===typeof n.headers&&!(n.headers instanceof f||r.Headers&&n.headers instanceof r.Headers)){var m=[];Object.getOwnPropertyNames(n.headers).forEach((function(e){m.push(u(e)),d.setRequestHeader(e,c(n.headers[e]))})),l.headers.forEach((function(e,t){-1===m.indexOf(t)&&d.setRequestHeader(t,e)}))}else l.headers.forEach((function(e,t){d.setRequestHeader(t,e)}));l.signal&&(l.signal.addEventListener("abort",p),d.onreadystatechange=function(){4===d.readyState&&l.signal.removeEventListener("abort",p)}),d.send("undefined"===typeof l._bodyInit?null:l._bodyInit)}))}k.polyfill=!0,r.fetch||(r.fetch=k,r.Headers=f,r.Request=E,r.Response=C),t.Headers=f,t.Request=E,t.Response=C,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!==typeof self?self:p)})),h=(m(y),function(e,t){return h=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},h(e,t)});function g(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var v=function(){return v=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},v.apply(this,arguments)};function P(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]])}return r}function b(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function E(e,t){var r,n,i,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},a=Object.create(("function"===typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,n=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(l){s=[6,l],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function I(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var S,C,D,k,w,x,T,R,F,A,H,O,M,N,B,V,L,U,j,_,z,G,K,W,q,J,Q,Z,Y,X,$,ee,te,re,ne,ie,oe,ae,se,le,de,ue,ce,pe,me,fe,ye,he,ge,ve,Pe,be,Ee,Ie,Se,Ce,De,ke,we,xe,Te,Re,Fe,Ae,He,Oe,Me,Ne,Be,Ve,Le,Ue,je,_e,ze,Ge,Ke,We,qe,Je,Qe,Ze,Ye,Xe,$e,et,tt,rt=Object.prototype.hasOwnProperty,nt=Object.prototype.toString,it=Object.defineProperty,ot=Object.getOwnPropertyDescriptor,at=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===nt.call(e)},st=function(e){if(!e||"[object Object]"!==nt.call(e))return!1;var t,r=rt.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&rt.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!n)return!1;for(t in e);return"undefined"===typeof t||rt.call(e,t)},lt=function(e,t){it&&"__proto__"===t.name?it(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},dt=function(e,t){if("__proto__"===t){if(!rt.call(e,t))return;if(ot)return ot(e,t).value}return e[t]},ut=function e(){var t,r,n,i,o,a,s=arguments[0],l=1,d=arguments.length,u=!1;for("boolean"===typeof s&&(u=s,s=arguments[1]||{},l=2),(null==s||"object"!==typeof s&&"function"!==typeof s)&&(s={});l<d;++l)if(null!=(t=arguments[l]))for(r in t)n=dt(s,r),s!==(i=dt(t,r))&&(u&&i&&(st(i)||(o=at(i)))?(o?(o=!1,a=n&&at(n)?n:[]):a=n&&st(n)?n:{},lt(s,{name:r,newValue:e(u,a,i)})):"undefined"!==typeof i&&lt(s,{name:r,newValue:i}));return s};!function(e){e.Unknown="Unknown",e.iFrameMessageHandler="iFrameMessageHandler"}(S||(S={})),function(e){e.forSubmit="forSubmit",e.forDisplay="forDisplay"}(C||(C={})),function(e){e.message="message"}(D||(D={})),function(e){e.forFormat="forFormat",e.forModel="forModel"}(k||(k={})),function(e){e.Error="error",e.Fail="failed",e.Passed="passed"}(w||(w={})),function(e){e.PaymentInstrument="PaymentInstrument",e.Challenge="Challenge",e.Address="Address",e.Profile="Profile",e.PaymentSession="PaymentSession",e.Checkout="Checkout",e.PayeeTaxProfile="PayeeTaxProfile",e.WalletToken="WalletToken"}(x||(x={})),function(e){e.div="pidlddc-div",e.errorDiv="pidlddc-errordiv",e.label="pidlddc-label",e.key="pidlddc-input-key",e.property="pidlddc-input-property",e.dropdown="pidlddc-input-dropdown",e.radio="pidlddc-input-radio",e.radioLabel="pidlddc-radio-label",e.buttonList="pidlddc-input-buttonlist",e.checkBox="pidlddc-input-checkbox",e.textBox="pidlddc-input-text",e.filePicker="pidlddc-input-file",e.staticText="pidlddc-static-text",e.heading="pidlddc-heading",e.subHeading="pidlddc-subheading",e.text="pidlddc-text",e.textGroup="pidlddc-text-group",e.hyperlink="pidlddc-hyperlink",e.image="pidlddc-image",e.error="pidlddc-error",e.separator="pidlddc-separator",e.pageBody="pidlddc-page-body",e.logo="pidlddc-logo-image",e.submitButton="pidlddc-submit-button",e.button="pidlddc-button",e.busyBlock="pidlddc-busy-block",e.errorBlock="pidlddc-error-block",e.errorInlineGroup="pidlddc-error-inlineGroup",e.submitBlock="pidlddc-submit-block",e.helpImage="pidlddc-help-image",e.helpDialogBlock="pidlddc-help-dialog-block",e.helpDialogContentBlock="pidlddc-help-dialog-content-block",e.modalDialogBlock="pidlddc-modal-dialog-block",e.modalDialogContentBlock="pidlddc-modal-dialog-content-block",e.helpDialogClose="pidlddc-help-dialog-close",e.helpImageLink="pidlddc-help-imageLink",e.helpTextLink="pidlddc-help-textLink",e.pageContentBlock="pidlddc-pagecontent-block",e.prefillControl="pidlddc-input-prefillcontrol",e.prefillCheckbox="pidlddc-input-prefillcheckbox",e.prefillDropdown="pidlddc-input-prefilldropdown",e.propertyDiv="pidlddc-div-property",e.dropdownDiv="pidlddc-div-dropdown",e.checkBoxDiv="pidlddc-div-checkbox",e.textBoxDiv="pidlddc-div-textbox",e.securePropertyDiv="pidlddc-div-secureproperty",e.filePickerDiv="pidlddc-div-filepicker",e.imageDiv="pidlddc-div-image",e.logoDiv="pidlddc-div-logo",e.buttonDiv="pidlddc-div-button",e.groupDiv="pidlddc-div-group",e.errorStroke="pidlddc-errorstroke",e.highlighted="pidlddc-highlighted",e.back="pidlddc-back",e.inlineGroup="pidlddc-group-inline",e.inputTextDisabled="pidlddc-input-text-disabled",e.inputSelectDisabled="pidlddc-input-select-disabled",e.displayLogo="pidlddc-input-logo",e.filled="pidlddc-filled",e.iFrame="pidlddc-iFrame",e.secureProperty="pidlddc-secure-property",e.iFrameDiv="pidlddc-div-iFrame",e.captchaDiv="pidlddc-div-captcha",e.audio="pidlddc-audio",e.challengeIFrame="pidlddc-challengeiFrame",e.challengeIFrameDiv="pidlddc-div-challengeiFrame"}(T||(T={})),function(e){e.index="pidlddc-inline-element-",e.taggedClass="pidlddc-"}(R||(R={})),function(e){e.div="pidlddc-div-",e.error="pidlddc-error-",e.label="pidlddc-label-",e.text="pidlddc-text-",e.hyperlink="pidlddc-hyperlink-",e.property="pidlddc-input-",e.button="pidlddc-button-",e.audio="pidlddc-audio-",e.buttongroup="pidlddc-button-group-",e.iFrame="pidlddc-iFrame-",e.challengeiFrame="pidlddc-challengeiFrame-",e.input="input_",e.iframe="iframe_",e.filePicker="filepicker_",e.secureProperty="pidlddc-secure-input-",e.image="pidlddc-image-",e.helpDialog="helpdialog-",e.helpDialogContent="helpdialog-content-",e.modalDialog="modaldialog-",e.modalDialogContent="modaldialog-content-",e.prefillControl="pidlddc-prefillcontrol-",e.maxLength="pidlddc-maxlength-",e.logo="pidlddc-logo-",e.separator="pidlddc-separator-",e.spinner="pidlddc-spinner-",e.pidlInstance="pidlddc-pidlinstance-"}(F||(F={})),function(e){e.pageBlock="pagebodycontents",e.pageLogoBlock="pagelogoblock",e.pageBusyBlock="pagebusyblock",e.pageErrorBlock="pageerrorblock",e.pageSubmitBlock="pagesubmitblock",e.helpDialogBlock="pagehelpdialog",e.modalDialogBlock="pagemodaldialog",e.displayImage="displayImage",e.closeButton="closeButton",e.prefillCheckbox="prefillCheckbox"}(A||(A={})),function(e){e[e.Unexpected=1e3]="Unexpected",e[e.InvalidInput=1001]="InvalidInput",e[e.ServerError=1002]="ServerError"}(H||(H={})),function(e){e.success="success",e.failure="failure",e.gohome="gohome"}(O||(O={})),function(e){e.unknown="modelElementType_unknown",e.page="modelElementType_page",e.group="modelElementType_group",e.captcha="modelElementType_captcha",e.audio="modelElementType_audio",e.textGroup="modelElementType_textGroup",e.heading="modelElementType_heading",e.subheading="modelElementType_subheading",e.text="modelElementType_text",e.hyperlink="modelElementType_hyperlink",e.image="modelElementType_image",e.logo="modelElementType_logo",e.dropdown="modelElementType_dropdown",e.checkBox="modelElementType_checkBox",e.textBox="modelElementType_textBox",e.button="modelElementType_button",e.expression="modelElementType_expression",e.radio="modelElementType_radio",e.buttonList="modelElementType_buttonlist",e.pidlContainer="modelElementType_pidlContainer",e.pidlInstance="modelElementType_pidlInstance",e.dataCollectionBindingGroup="modelElementType_dataCollectionBindingGroup",e.iFrame="modelElementType_iFrame",e.challengeIFrame="modelElementType_challengeiFrame",e.expressCheckoutButton="modelElementType_expressCheckoutButton",e.filePicker="modelElementType_filePicker",e.secureProperty="modelElementType_secureProperty",e.separator="modelElementType_separator",e.spinner="modelElementType_spinner"}(M||(M={})),function(e){e.modelElementType_heading="h1",e.modelElementType_subheading="h2",e.modelElementType_text="p",e.modelElementType_expression="p",e.modelElementType_textGroup="p"}(N||(N={})),function(e){e.button="button",e.iFrame="iframe",e.div="div",e.hyperlink="a",e.image="img",e.input="input",e.label="label",e.select="select",e.span="span",e.h1="h1",e.h2="h2",e.hr="hr",e.audio="audio"}(B||(B={})),function(e){e.image="image",e.button="button",e.password="password",e.radio="radio",e.checkbox="checkbox",e.file="file"}(V||(V={})),function(e){e.add="Add",e.replace="Replace",e.createPaymentSession="createPaymentSession",e.getSelectedResource="GetSelectedResource",e.handleAction="HandleAction",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.expressCheckout="expressCheckout",e.invokeResourceAction="InvokeResourceAction",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="RenderPidlPage",e.selectResource="SelectResource",e.selectResourceType="SelectResourceType",e.selectSingleResource="SelectSingleResource",e.show="Show",e.offer="Offer",e.search="Search",e.update="Update",e.validateResource="ValidateResource",e.verify="Verify",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.applyResource="applyResource",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.delete="Delete",e.getPayeeTaxProfile="getPayeeTaxProfile",e.redeemMSRewards="redeemMSRewards",e.searchTransactions="searchTransactions",e.selectMSRewards="selectMSRewards"}(L||(L={})),function(e){e.stringTrue="true",e.stringFalse="false",e.stringOptional="optional"}(U||(U={})),function(e){e.submit="submit",e.triggerSubmit="triggerSubmit",e.submitOriginalPidl="submitOriginalPidl",e.gohome="gohome",e.next="moveNext",e.prev="movePrevious",e.first="moveFirst",e.last="moveLast",e.success="success",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.redirect="redirect",e.restAction="restAction",e.restartFlow="restartFlow",e.successWithPidlPayload="successWithPidlPayload",e.navigateAndNext="navigateAndMoveNext",e.validate="validate",e.validateOnChange="validateOnChange",e.poll="poll",e.moveNextAndPoll="moveNextAndPoll",e.handleFailure="handleFailure",e.updatePoll="updatePoll",e.continueSuspendedAction="continueSuspendedAction",e.closeModalDialog="closeModalDialog",e.mergeData="mergeData",e.propertyBindingAction="propertyBindingAction",e.closePidlPage="closePidlPage",e.successWithSelectedPidlAction="successWithSelectedPidlAction",e.updatePollAndMoveLast="updatePollAndMoveLast",e.noAction="noAction",e.moveToPageIndex="moveToPageIndex",e.updatePropertyValue="updatePropertyValue"}(j||(j={})),function(e){e.selectSingleResource="selectSingleResource",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.addResource="addResource",e.updateResource="updateResource",e.deleteResource="deleteResource",e.handleChallenge="handleChallenge",e.collectResourceInfo="collectResourceInfo",e.addAddress="addAddress",e.selectPaymentInstrument="selectPaymentInstrument",e.addPaymentInstrument="addPaymentInstrument",e.updateProfile="updateProfile",e.searchTransactions="searchTransactions"}(_||(_={})),function(e){e.error="error",e.styleSheetError="styleSheetError",e.captchaRendered="captchaRendered",e.propertyCreating="propertyCreating",e.propertySelected="propertySelected",e.toggleClicked="toggleClicked",e.instanceDownloading="instanceDownloading",e.instanceDownloaded="instanceDownloaded",e.pidlDownloading="pidlDownloading",e.pidlDownloaded="pidlDownloaded",e.pageRendering="pageRendering",e.pageRendered="pageRendered",e.pageRefreshed="pageRefreshed",e.pageDisplayed="pageDisplayed",e.inputReading="inputReading",e.inputRead="inputRead",e.inputValidating="inputValidating",e.inputValidated="inputValidated",e.inputTokenizing="inputTokenizing",e.inputTokenized="inputTokenized",e.inputSubmitting="inputSubmitting",e.inputSubmitted="inputSubmitted",e.redirecting="redirecting",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.propertyValidated="propertyValidated",e.propertyTokenizing="propertyTokenizing",e.propertyTokenized="propertyTokenized",e.propertyTransforming="propertyTransforming",e.propertyTransformed="propertyTransformed",e.resourceSelected="resourceSelected",e.pageNavigated="pageNavigated",e.click="click",e.payloadCreated="payloadCreated",e.restMethodInvoking="restMethodInvoking",e.restMethodInvoked="restMethodInvoked",e.noSelectionOptionsFound="noSelectionOptionsFound",e.selectionChanged="selectionChanged",e.fetchCallCompleted="fetchCallCompleted",e.renderedPidlPage="renderedPidlPage",e.closePidlPage="closePidlPage",e.submitOriginalPidl="submitOriginalPidl",e.fileUploading="fileUploading",e.fileUploaded="fileUploaded",e.isDisabled="isDisabled",e.expressCheckoutReady="expressCheckoutReady",e.propertyConditionallyUpdated="propertyConditionallyUpdated",e.challengeMessageReceived="challengeMessageReceived",e.getLocalDataSourceInvoked="getLocalDataSourceInvoked",e.getLocalDataSourceResolved="getLocalDataSourceResolved",e.getLocalDataSourceError="getLocalDataSourceError",e.paymentSheetOpened="paymentSheetOpened",e.paymentSheetCancelled="paymentSheetCancelled"}(z||(z={})),function(e){e.apiCalled="apiCalled",e.apiReturned="apiReturned",e.modelUpdated="modelUpdated",e.dataUpdated="dataUpdated",e.failure="failure",e.success="success",e.gohome="gohome",e.stateChanged="stateChanged",e.propertyCreated="propertyCreated",e.propertyUnselected="propertyUnselected",e.conflictingInputValues="conflictingInputValues",e.pidlResolved="pidlResolved",e.secureFieldEventReceived="secureFieldEventReceived",e.secureFieldEventQueued="secureFieldEventQueued",e.secureFieldEventPosted="secureFieldEventPosted",e.secureFieldLoadWaitStarted="secureFieldWaitStarted",e.secureFieldsLoaded="secureFieldsLoaded",e.secureFieldLoadWaitEnded="secureFieldWaitEnded",e.challengeMessageReceived="challengeMessageReceived",e.paymentDataTokenizing="paymentDataTokenizing",e.paymentDataTokenized="paymentDataTokenized",e.postMessageReceived="postMessageReceived",e.postMessageHandleSuccess="postMessageHandleSuccess",e.postMessageHandleFailure="postMessageHandleFailure",e.postMessageTimeoutHandleSuccess="postMessageTimeoutHandleSuccess",e.postMessageTimeoutHandleFailure="postMessageTimeoutHandleFailure",e.postMessageBusyTimerStarted="postMessageBusyTimerStarted",e.postMessageBusyTimerEnded="postMessageBusyTimerEnded",e.pollingStarted="pollingStarted",e.pollingEnded="pollingEnded",e.paymentClientSubmissionSkipped="paymentClientSubmissionSkipped",e.resourceHelpersFunctionExecuted="resourceHelpersFunctionExecuted",e.submitting="submitting",e.submitted="submitted",e.pollClientActionSuccess="pollClientActionSuccess",e.pollClientActionFailure="pollClientActionFailure",e.hideModalDialog="hideModalDialog",e.updatePollAndMoveLast="updatePollAndMoveLast",e.pidlActionInvoked="pidlActionInvoked",e.clientActionInvoked="clientActionInvoked",e.propertyValueSelected="propertyValueSelected",e.eventExtenderRegistered="eventExtenderRegistered",e.metric="metric",e.addSecureFieldPreLoadIFrameStarted="addSecureFieldPreLoadIFrameStarted",e.addSecureFieldPreLoadIFrameCompleted="addSecureFieldPreLoadIFrameCompleted",e.addSecureFieldPreLoadIFrameFailed="addSecureFieldPreLoadIFrameFailed",e.implementationMissing="implementationMissing"}(G||(G={})),function(e){e.containerId="containerId",e.busyBlockId="busyBlockId",e.busyBlockShowHideHandler="busyBlockShowHideHandler",e.inputPropertyIdPrefix="inputPropertyIdPrefix",e.inputPropertyIdSuffix="inputPropertyIdSuffix",e.displayElementIdPrefix="displayElementIdPrefix",e.displayElementIdSuffix="displayElementIdSuffix",e.inputPropertyErrorIdPrefix="inputPropertyErrorIdPrefix",e.showPlaceholderInTextbox="showPlaceholderInTextbox",e.showSubmitBlock="showSubmitBlock",e.showErrorBlock="showErrorBlock",e.disableEnterKeyAction="disableEnterKeyAction",e.htmlExtender="htmlExtender",e.hidePropertyErrors="hidePropertyErrors",e.disableFocusOnLoad="disableFocusOnLoad",e.alwaysValidateOnChange="alwaysValidateOnChange",e.ieExtender="ieExtender",e.propagateCallbackException="propagateCallbackException",e.useWebView2="useWebView2",e.busyUntilInitialPageRendered="busyUntilInitialPageRendered",e.secureFieldPreLoadingEnabled="secureFieldPreLoadingEnabled",e.instanceName="instanceName",e.preventUnmountOnFinish="preventUnmountOnFinish"}(K||(K={})),function(e){e.formValidationFailed="formValidationFailed",e.editedPropertiesValidationFailed="editedPropertiesValidationFailed"}(W||(W={})),function(e){e.inputValidation="inputValidationError",e.userInputValidation="userInputValidationError",e.formValidation="formValidationFailed",e.unexpected="unexpected",e.serverError="serverError",e.missingImplementationError="missingImplementationError",e.invalidSetup="invalidSetup",e.paymentMethodFailure="paymentMethodFailure",e.failedToOpenWindow="failedToOpenWindow",e.unmatchedAmount="unmatchedAmount",e.walletProvider="walletProvider",e.secureFieldInitCompletedTimeout="secureFieldInitCompletedTimeout"}(q||(q={})),function(e){e.validationFailed="ValidationFailed",e.tokenizationFailed="TokenizationFailed",e.fileUploadFailed="FileUploadFailed"}(J||(J={})),function(e){e.property="property",e.group="group"}(Q||(Q={})),function(e){e.all="all",e.dirtyOnly="dirtyOnly"}(Z||(Z={})),function(e){e.empty="required_field_empty"}(Y||(Y={})),function(e){e.div="htmlElementType_div",e.label="htmlElementType_label",e.captcha="htmlElementType_captcha",e.audio="htmlElementType_audio",e.dropdown="htmlElementType_dropdown",e.checkBox="htmlElementType_checkBox",e.radio="htmlElementType_radio",e.buttonList="htmlElementType_buttonList",e.textBox="htmlElementType_textBox",e.filePicker="htmlElementType_filePicker",e.button="htmlElementType_button",e.iFrame="htmlElementType_iFrame",e.challengeIFrame="htmlElementType_challengeiFrame",e.secureProperty="htmlElementType_secureProperty",e.heading="htmlElementType_text_heading",e.subHeading="htmlElementType_text_subheading",e.text="htmlElementType_text",e.textGroup="htmlElementType_textGroup",e.hyperlink="htmlElementType_hyperlink",e.image="htmlElementType_image",e.logo="htmlElementType_logo",e.errorDiv="htmlElementType_errorDiv",e.error="htmlElementType_error",e.separator="htmlElementType_separator"}(X||(X={})),function(e){e.busyBlock="busyBlock",e.errorBlock="errorBlock",e.helpDialogBlock="helpDialogBlock",e.helpDialogContentBlock="helpDialogContentBlock",e.pageContentBlock="pageContentBlock",e.submitBlock="submitBlock",e.modalDialogBlock="modalDialogBlock",e.modalDialogContentBlock="modalDialogContentBlock"}($||($={})),function(e){e.authorization="authorization",e.contentType="content-type",e.msCV="ms-cv",e.msCorrelationId="x-ms-correlation-id",e.msFlight="x-ms-flight",e.msTrackingId="x-ms-tracking-id",e.msRetryOnServerErr="x-ms-px-retry-servererr",e.correlationContext="Correlation-Context",e.msPidlsdkVersion="x-ms-pidlsdk-version",e.msTest="x-ms-test",e.msClientContext="x-ms-pidlsdk-clientcontext"}(ee||(ee={})),function(e){e.enablePaymentAgentChallenge="pidl-enable-payment-agent-challenge"}(te||(te={})),function(e){e.operation="operation"}(re||(re={})),function(e){e.role="role",e.required="required",e.src="src",e.controls="controls"}(ne||(ne={})),function(e){e.pidlInfo="pidlInfo",e.paymentInstruments="paymentInstruments"}(ie||(ie={})),function(e){e.alt="alt",e.tabIndex="tabindex"}(oe||(oe={})),function(e){e[e.element=1]="element",e[e.attribute=2]="attribute",e[e.text=3]="text",e[e.comment=8]="comment"}(ae||(ae={})),function(e){e.alert="alert",e.dialog="dialog",e.combobox="combobox",e.radiogroup="radiogroup",e.radio="radio",e.presentation="presentation",e.group="group",e.image="img",e.separator="separator",e.audio="audio"}(se||(se={})),function(e){e.activedescendant="aria-activedescendant",e.describedBy="aria-describedby",e.disabled="aria-disabled",e.expanded="aria-expanded",e.hidden="aria-hidden",e.label="aria-label",e.labelledBy="aria-labelledby",e.live="aria-live",e.selected="aria-selected",e.checked="aria-checked",e.required="aria-required"}(le||(le={})),function(e){e.polite="polite",e.assertive="assertive",e.off="off"}(de||(de={})),function(e){e.errorBlockId="data-pidl-error-block-id"}(ue||(ue={})),function(e){e.market="country"}(ce||(ce={})),function(e){e.country="market"}(pe||(pe={})),function(e){e.windows="windows"}(me||(me={})),function(e){e.closeButtonHelpText="closeButtonAccessiblityName",e.prefillDropdownDefault="dropdown_default",e.prefillDropdownNew="dropdown_new"}(fe||(fe={})),function(e){e.notInitialized="notInitialized",e.initialized="initialized",e.executing="executing",e.submitting="submitting"}(ye||(ye={})),function(e){e.clean="clean",e.editing="editing",e.dirty="dirty"}(he||(he={})),function(e){e.ready="ready",e.selected="selected",e.editing="editing",e.finished="finished"}(ge||(ge={})),function(e){e.empty="[]"}(ve||(ve={})),function(e){e.pageNavigated="pageNavigated",e.modelCreated="modelCreated",e.modelUpdated="modelUpdated",e.prefillChanged="prefillChanged"}(Pe||(Pe={})),function(e){e.constructor="constructor",e.addResource="addResource",e.applyResource="applyResource",e.replaceResource="replaceResource",e.cancel="cancel",e.destroyInstance="destroyInstance",e.createPaymentSession="createPaymentSession",e.getPidlPayload="getPidlPayload",e.getSelectedResource="getSelectedResource",e.handleAction="handleAction",e.handleChallenge="handleChallenge",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.expressCheckout="expressCheckout",e.invokePageDefaultAction="invokePageDefaultAction",e.invokeResourceAction="invokeResourceAction",e.modelSubmitForm="modelSubmitForm",e.moveNextPage="moveNextPage",e.submitPage="submitPage",e.validateProperties="validateProperties",e.movePrevPage="movePrevPage",e.moveToLastPage="moveToLastPage",e.moveToFirstPage="moveToFirstPage",e.postMessageToChildIFrames="postMessageToChildiFrames",e.refreshData="refreshData",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="renderPidlPage",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.selectSingleResource="selectSingleResource",e.showResource="showResource",e.searchResource="searchResource",e.updateResource="updateResource",e.validateResource="validateResource",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.deleteResource="deleteResource",e.getPayeeTaxProfile="getPayeeTaxProfile",e.redeemMSRewards="redeemMSRewards",e.searchTransactions="searchTransactions",e.offerResource="offerResource",e.selectMSRewards="selectMSRewards"}(be||(be={})),function(e){e[e.arrowDown=40]="arrowDown",e[e.arrowUp=38]="arrowUp",e[e.enter=13]="enter",e[e.escape=27]="escape",e[e.xboxBackButton=196]="xboxBackButton",e[e.xboxEnterButton=207]="xboxEnterButton"}(Ee||(Ee={})),function(e){e.hidden="hidden",e.number="number",e.bool="bool",e.object="object",e.returnObject="returnObject"}(Ie||(Ie={})),function(e){e.sessionId="sessionId",e.riskData="riskData",e.greenId="greenId"}(Se||(Se={})),function(e){e.userData="userData"}(Ce||(Ce={})),function(e){e.captchaType="captchaType"}(De||(De={})),function(e){e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE"}(ke||(ke={})),function(e){e.accessibilityName="accessibilityName",e.theme="theme",e.tabIndex="tabIndex",e.maxLengthMessage="maxLengthMessage",e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.linkAccessibilityName="linkAccessibilityName",e.accessibilityHint="accessibilityHint",e.hideInlineError="hideInlineError",e.displayTagStyleHints="displayTagStyleHints",e.separator="separator"}(we||(we={})),function(e){e.noPidlddc="noPidlddc.",e.helpDialog="help.",e.pidlReact="pidlReact.",e.parent="parent."}(xe||(xe={})),function(e){e.allowedCountries="allowedCountries"}(Te||(Te={})),function(e){e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.accessibilityName="accessibilityName",e.linkAccessibilityName="linkAccessibilityName"}(Re||(Re={})),function(e){e.primary="primary",e.secondary="secondary"}(Fe||(Fe={})),function(e){e.ignore="ignore",e.throw="throw"}(Ae||(Ae={})),function(e){e.token="piAuthKey",e.algorithm="hmacsha256",e.userCredential="userCredential"}(He||(He={})),function(e){e.jarvisError=".",e.paymentMethodName="."}(Oe||(Oe={})),function(e){e.partnerData="partnerData",e.contextData="contextData"}(Me||(Me={})),function(e){e.paymentTransaction="PaymentTransaction",e.recurringTransaction="RecurringTransaction",e.addCard="AddCard"}(Ne||(Ne={})),function(e){e.noPreference="NoPreference",e.noChallengeRequested="NoChallengeRequested",e.challengeRequestedPreference="ChallengeRequestedPreference",e.challengeRequestedMandate="ChallengeRequestedMandate"}(Be||(Be={})),function(e){e.small="01",e.medium="02",e.large="03",e.extraLarge="04",e.fullScreen="05"}(Ve||(Ve={})),function(e){e.Succeeded="Succeeded",e.ByPassed="ByPassed",e.Failed="Failed",e.Cancelled="Cancelled",e.TimedOut="TimedOut",e.NotApplicable="NotApplicable",e.Unknown="Unknown"}(Le||(Le={})),function(e){e.ThreeDS="threeds",e.CVV="cvv",e.SMS="sms"}(Ue||(Ue={})),function(e){e[e.Default=3e3]="Default"}(je||(je={})),function(e){e.link="]("}(_e||(_e={})),function(e){e.floatRight="floatRight",e.floatLeft="floatLeft"}(ze||(ze={})),function(e){e.loaded="loaded",e.initCompleted="initCompleted",e.readyForSubmit="readyForSubmit",e.validationCompleted="validationCompleted",e.valueUpdated="valueUpdated",e.keyPropertyResolved="keyPropertyResolved",e.focused="focused",e.blurred="blurred",e.hmacSignatureCreated="hmacSignatureCreated"}(Ge||(Ge={})),function(e){e.init="init",e.hydrateState="hydrateState",e.clearState="clearState",e.applyPlaceholder="applyPlaceholder",e.applyCss="applyCss",e.applyFocus="applyFocus",e.validate="validate",e.prepareForSubmit="prepareForSubmit",e.updateWidth="updateWidth",e.createHmacSignature="createHmacSignature"}(Ke||(Ke={})),function(e){e[e.pidlSdkWaitTimeForSecureFieldsInit=2e3]="pidlSdkWaitTimeForSecureFieldsInit",e.pidlSdkMessageSource="PidlSdk",e.secureFieldMessageSource="PXSecureField",e.tokenizationValuePrefix="tokenized_"}(We||(We={})),function(e){e.loaded="expressCheckout.loaded",e.paymentSheetOpened="expressCheckout.paymentSheetOpened",e.isEligible="expressCheckout.isEligible",e.paymentData="expressCheckout.paymentData",e.setup="expressCheckout.setup",e.error="expressCheckout.error",e.cancel="expressCheckout.cancel",e.paymentDataTokenizing="expressCheckout.paymentDataTokenizing",e.paymentDataTokenized="expressCheckout.paymentDataTokenized"}(qe||(qe={})),function(e){e.failedToOpenWindow="failed to open window",e.tokenizationFailed="tokenizationFailed"}(Je||(Je={})),function(e){e.pidlSdkWaitTimeForSecureFieldsInit="pidlSdkWaitTimeForSecureFieldsInit"}(Qe||(Qe={})),function(e){e.challengeiFrameLoaded="challengeiFrameLoaded",e.challengeCompleted="challengeCompleted"}(Ze||(Ze={})),function(e){e.challengeiFrameMessageSource="ChallengeUI"}(Ye||(Ye={})),function(e){e.viewTermsTriggered="viewTermsTriggered"}(Xe||(Xe={})),function(e){e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute"}($e||($e={})),function(e){e.applePay="be4de87d-7e38-4b2d-8836-9237eb32848e"}(et||(et={})),function(e){e.styleHintDefs="styleHintDefs",e.baseStyleHintDefs="baseStyleHintDefs"}(tt||(tt={}));var ct,pt,mt,ft,yt,ht,gt,vt,Pt,bt,Et,It,St=Object.freeze({__proto__:null,get requestOriginator(){return S},get pidlTransformationTargets(){return C},get eventTypes(){return D},get displayTransformationTargets(){return k},get pidlResultType(){return w},get pidlResourceTypes(){return x},get htmlClassNames(){return T},get htmlClassPrefixes(){return R},get htmlElementIdPrefixes(){return F},get htmlElementIdSuffixes(){return A},get errorCode(){return H},get returnCallbackNames(){return O},get modelElementType(){return M},get textBlockTypes(){return N},get htmlBlockTypes(){return B},get htmlInputTypes(){return V},get telemetryPidlOperationType(){return L},get showDisplayNameValues(){return U},get supportedPidlActions(){return j},get resourceActions(){return _},get eventNames(){return z},get privateEventNames(){return G},get displayOptionNames(){return K},get errorNames(){return W},get errorTypes(){return q},get serverErrorTypes(){return J},get validationErrorTypes(){return Q},get validationOptions(){return Z},get validationErrorCodes(){return Y},get htmlElementTypes(){return X},get containerTypes(){return $},get httpHeaders(){return ee},get flightHeaders(){return te},get httpUrlQueryParameters(){return re},get htmlAttributes(){return ne},get pidlPayloadAttributes(){return ie},get htmlTags(){return oe},get htmlNodeTypes(){return ae},get htmlRoles(){return se},get ariaTags(){return le},get ariaLiveInterruptLevels(){return de},get dataAttributes(){return ue},get sdkParamUrlQueryParamMap(){return ce},get pidlPropertyNameToPidlDocInfoProperty(){return pe},get themes(){return me},get pidlStringKeys(){return fe},get controlStates(){return ye},get propertyEditState(){return he},get controlOperationTypes(){return ge},get errorValue(){return ve},get viewUpdateReasons(){return Pe},get pidlDdcApiNames(){return be},get keyCodes(){return Ee},get dataTypes(){return Ie},get clientDataTypes(){return Se},get propertyTypes(){return Ce},get captchaPropertyName(){return De},get httpActions(){return ke},get knownTags(){return we},get knownTagPrefixes(){return xe},get knownQueryParameters(){return Te},get helpDialogPrefixedTags(){return Re},get scenarioContextResourceType(){return Fe},get scenarioContextTerminatingErrorHandling(){return Ae},get hmac(){return He},get delimiters(){return Oe},get dataStores(){return Me},get challengeScenario(){return Ne},get riskChallengeIndicator(){return Be},get challengeWindowSize(){return Ve},get challengeStatus(){return Le},get challengeType(){return Ue},get pollingInterval(){return je},get TextSymbols(){return _e},get displayHelpPosition(){return ze},get SecureFieldEvent(){return Ge},get SecureFieldMessages(){return Ke},get SecureFieldConstants(){return We},get ExpressCheckoutButtonMessages(){return qe},get ExpressCheckoutButtonDebugMessages(){return Je},get ClientSettingNames(){return Qe},get ChallengeiFrameEvent(){return Ze},get ChallengeiFrameConstants(){return Ye},get CustomTriggerEventConstants(){return Xe},get FrequencyUnitConstants(){return $e},get PaymentMethodPIIDs(){return et},get styleHintDefsCacheNames(){return tt}}),Ct=new function(){var e=this;this.skipQueryParameter=function(e){if(!e)return!1;var t=Rn.find(Rn.getKeys(Te),(function(t){return t.toLowerCase()===e.toLowerCase()}));return Rn.boolify(t)},this.mapQueryParameter=function(e){return ce[Rn.toLowerCase(e)]||e},this.buildUrlInternal=function(t,r,n){var i;if(i=Rn.startsWith(t,"https://")?t:Rn.startsWith(t,"http://")?"https://"+t.substr(7):"https://"+t,r)for(var o=0;o<r.length;o++)i+=Rn.startsWith(r[o],"/")?r[o]:"/"+r[o];return n&&Object.keys(n).sort().forEach((function(t){if(!e.skipQueryParameter(t)){var r=n[t];r&&(i=e.addQueryParameter(i,e.mapQueryParameter(t),r))}})),i},this.createFromTemplateInternal=function(t,r,n,i,o,a){if(t){var s=jt.replaceVirtualEndpointWithServiceAddress(t,r);return s=s.replace(/{id}/i,encodeURIComponent(i)).replace(/{resourcetype}/i,o),n&&(s=s.replace(/{userid}/i,n.getUserId(t))),e.buildUrlInternal(s,[],a)}},this.getUrlExpressionValue=function(t,r,n,i,o){var a=e.createFromTemplateInternal(t,r,n,i,null,null);return a&&o&&(a=xn.getFormatStringExpressionValue("("+a+")",o,(function(e){return encodeURIComponent(e)}))),a},this.getResourceUrl=function(t,r){t=t||{};var n=jt.getResourceEndpoint(t.resourceType);return{url:e.createFromTemplateInternal(n.template,t.resourceEndpoint,r,t.id,t.resourceType,t.parameters),template:n.template,recreateUrl:function(t){return e.getResourceUrl(t.resourceInfo,t.userContext)},originalParameters:{resourceInfo:t,userContext:r},virtualEndpoint:n}},this.getPidlDocUrl=function(t,r,n){n=n||{};var i=Rn.deepCopy(n.parameters||{});r&&(i[re.operation]=r);var o=jt.getPidlDocEndpoint(n.resourceType);o.addResourceNameToQueryParam&&(i.resourceName=Rn.toLowerCase(n.resourceType)),o.removeOperationParameter&&delete i[re.operation];var a=n.resourceType+(n.resourceSuffix||o.suffix),s=n.anonymousPidl&&o.anonymousTemplate?o.anonymousTemplate:o.template;return{url:e.createFromTemplateInternal(s,n.pidlEndpoint,t,null,a,i),template:s,recreateUrl:function(t){return e.getPidlDocUrl(t.userContext,t.operationType,t.pidlDocInfo)},originalParameters:{userContext:t,operationType:r,pidlDocInfo:n},virtualEndpoint:o}},this.getSubmitUrl=function(t,r,n,i,o){return{url:e.getUrlExpressionValue(n.href,null,r,i,o),template:n.href,recreateUrl:function(t){return e.getSubmitUrl(t.operationType,t.userContext,t.context,t.id,t.bindingDataContext)},originalParameters:{operationType:t,userContext:r,context:n,id:i,bindingDataContext:o},virtualEndpoint:jt.findVirtualEndpointInTemplate(n.href)}},this.getRestMethodUrl=function(t,r,n,i){return{url:e.getUrlExpressionValue(t,null,r,n,i),template:t,recreateUrl:function(t){return e.getRestMethodUrl(t.template,t.userContext,t.id,t.bindingDataContext)},originalParameters:{template:t,userContext:r,id:n,bindingDataContext:i},virtualEndpoint:jt.findVirtualEndpointInTemplate(t)}},this.addQueryParameter=function(e,t,r){Rn.isString(r)||(r=JSON.stringify(r)),r=encodeURIComponent(r);var n=new RegExp("([?&])"+t+"=.*?(&|$)","i");if(e.match(n))return e.replace(n,"$1"+t+"="+r+"$2");var i=new RegExp("([?])");if(e.match(i))return e.replace(i,"$1"+t+"="+r+"&");var o=-1!==e.indexOf("?")?"&":"?";return e+o+t+"="+r},this.addQueryStringParameters=function(t,r){if(r)for(var n in r)r[n]&&(t=e.addQueryParameter(t,n,r[n]));return t},this.buildUrl=function(t,r,n){return e.buildUrlInternal(t,r,n)},this.createFromTemplate=function(t,r,n,i,o,a){return e.createFromTemplateInternal(t,r,n,i,o,a)}};function Dt(e){return!Rn.isNullOrUndefined(e)&&"propertyType"in e&&"type"in e&&"dataType"in e}function kt(e){return!Rn.isNullOrUndefined(e)&&"displayType"in e}function wt(e){return kt(e)&&(e.displayType===gt.group||e.displayType===gt.dataCollectionBindingGroup||e.displayType===gt.page||e.displayType===gt.textGroup)}function xt(e){if(kt(e)){var t=e;return t&&t.propertyElementType&&t.propertyElementType===gt.file}return!1}function Tt(e){return kt(e)&&e.displayType===gt.logo}function Rt(e){return kt(e)&&(e.displayType===gt.property||e.displayType===gt.prefillControl)}function Ft(e){return Rn.isObject(e)&&"href"in e&&"method"in e}function At(e){return Rn.isObject(e)&&"members"in e}function Ht(e){return!Rn.isNullOrUndefined(e)&&"identity"in e&&"data_description"in e}function Ot(e){return!Rn.isNullOrUndefined(e)&&Rn.isArray(e)&&e.length&&Ht(e[0])}function Mt(e){return!Rn.isNullOrUndefined(e)&&"pidlInfo"in e}function Nt(e){return!Rn.isNullOrUndefined(e)&&!Rn.isString(e)&&"clientAction"in e}function Bt(e){return kt(e)&&e.displayType===gt.pidlContainer}function Vt(e){return!Rn.isNullOrUndefined(e)&&Rn.isString(e.type)&&(e.type===ft.Pidl||e.type===ft.Wait||e.type===ft.Redirect||e.type===ft.ReturnContext||e.type===ft.ExecuteScriptAndResume||e.type===ft.None||e.type===ft.GoHome||e.type===ft.Failure||e.type===ft.MergeData||e.type===ft.RestAction)}function Lt(e){return!Rn.isNullOrUndefined(e)&&!Rn.isNullOrUndefined(e.resourceActionContext)}!function(e){e.add="Add",e.replace="Replace",e.getPidlPayload="GetPidlPayload",e.handlePurchasePendingState="HandlePurchasePendingState",e.renderPidlPage="RenderPidlPage",e.select="Select",e.selectInstance="SelectInstance",e.selectSingleInstance="SelectSingleInstance",e.show="Show",e.search="Search",e.delete="Delete",e.update="Update",e.validateInstance="ValidateInstance",e.fundStoredValue="FundStoredValue",e.apply="Apply",e.searchTransactions="searchTransactions",e.redeem="Redeem",e.provisionWalletToken="provisionWalletToken",e.offer="Offer",e.expressCheckout="ExpressCheckout"}(ct||(ct={})),function(e){e.function="function",e.regexMessage="regexMessage",e.regex="regex",e.service="service",e.size="size"}(pt||(pt={})),function(e){e.regex="regex",e.service="service"}(mt||(mt={})),function(e){e.Pidl="Pidl",e.PidlModal="PidlModal",e.PidlPage="PidlPage",e.Wait="Wait",e.Redirect="Redirect",e.ReturnContext="ReturnContext",e.ExecuteScriptAndResume="ExecuteScriptAndResume",e.None="None",e.GoHome="GoHome",e.Failure="Failure",e.MergeData="MergeData",e.RestAction="RestAction",e.UpdatePropertyValue="UpdatePropertyValue"}(ft||(ft={})),function(e){e.Active="Active",e.Banned="Banned",e.Deactivated="Deactivated",e.Declined="Declined",e.Pending="Pending",e.Removed="Removed",e.Unknown="Unknown"}(yt||(yt={})),function(e){e.regex="regex"}(ht||(ht={})),function(e){e.button="button",e.dataCollectionBindingGroup="datacollectionbindinggroup",e.expression="expression",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.hyperlink="hyperlink",e.iFrame="iframe",e.challengeIframe="challengeiframe",e.expressCheckoutButton="expresscheckoutbutton",e.secureProperty="secureproperty",e.image="image",e.logo="logo",e.page="page",e.pidlContainer="pidlcontainer",e.pidlInstance="pidlinstance",e.prefillControl="prefillcontrol",e.property="property",e.subheading="subheading",e.text="text",e.textGroup="textgroup",e.separator="separator",e.spinner="spinner",e.file="file"}(gt||(gt={})),function(e){e.inline="inline",e.vertical="vertical"}(vt||(vt={})),function(e){e.afterBase="afterBase",e.beforeBase="beforeBase",e.withBase="withBase"}(Pt||(Pt={})),function(e){e.buttonList="buttonList",e.checkBox="checkbox",e.dropDown="dropDown",e.radio="radio"}(bt||(bt={})),function(e){e.always="always",e.focusout="focusout"}(Et||(Et={})),function(e){e.limitedRetry="limitedRetry",e.noRetry="noRetry",e.unlimitedRetry="unlimitedRetry"}(It||(It={}));var Ut=Object.freeze({__proto__:null,get pidlOperationTypeValues(){return ct},get validationModesValues(){return pt},get transformationModesValues(){return mt},isDataDescription:Dt,get clientActionTypeValues(){return ft},get paymentInstrumentStatusValues(){return yt},get displayTransformationTypesValues(){return ht},get pidlDisplayTypesValues(){return gt},isDisplayDescription:kt,get groupLayoutOrientationTypesValues(){return vt},isContainerDisplayDescription:wt,isFilePickerDisplayDescription:xt,isGroupDisplayDescription:function(e){return kt(e)&&(e.displayType===gt.group||e.displayType===gt.dataCollectionBindingGroup)},isCaptchaDisplayDescription:function(e){return kt(e)&&e.displayType===gt.captcha},isDataCollectionBindingGroupDisplayDescription:function(e){return kt(e)&&e.displayType===gt.dataCollectionBindingGroup},isPageDisplayDescription:function(e){return kt(e)&&e.displayType===gt.page},isContentDisplayDescription:function(e){return kt(e)&&(e.displayType===gt.button||e.displayType===gt.expression||e.displayType===gt.heading||e.displayType===gt.hyperlink||e.displayType===gt.subheading||e.displayType===gt.text||e.displayType===gt.challengeIframe||e.displayType===gt.iFrame)},isLogoDisplayDescription:Tt,get pidlSubmitOrdersValues(){return Pt},get pidlSelectTypeValues(){return bt},get resolutionPolicyValues(){return Et},isPropertyDisplayDescription:Rt,get serverErrorRetryPolicyValues(){return It},isPidlLink:Ft,isMembersInDataSources:At,isPidlDocument:Ht,isPidlDocumentArray:Ot,isPidlPayload:Mt,isPidlDocumentWithClientAction:Nt,isPidlContainerDisplayDescription:Bt,isPidlInstanceDisplayDescription:function(e){return kt(e)&&e.displayType===gt.pidlInstance},isClientAction:Vt,isInvokeResourceActionApiParams:Lt}),jt=new function(){var e=this;this.getContainingVirtualEndpoint=function(e){if(Rn.isString(e)){var t=e.toLowerCase();for(var r in An.virtualEndpoints){var n="{"+An.virtualEndpoints[r].endpoint+"}";if(-1!==t.indexOf(n))return An.virtualEndpoints[r]}}},this.getPidlDocInfoFromResource=function(e,t){var r=Rn.toLowerCase(e.resourceType),n=An.resourceTypeToPidlDoc[r]||An.resourceTypeToPidlDoc.default;return{resourceType:r,parameters:n.getParams&&n.getParams(e,t),anonymousPidl:e.anonymousPidl}},this.updatePidlDocInfo=function(e){if(e&&e.parameters&&e.parameters.allowedPaymentMethods&&Rn.isArray(e.parameters.allowedPaymentMethods)){for(var t=!0,r=0,n=e.parameters.allowedPaymentMethods.length;r<n;r++)t=t&&Rn.isObject(e.parameters.allowedPaymentMethods[r]);if(t){var i=e.parameters.allowedPaymentMethods;e.parameters.allowedPaymentMethods={};for(var o=0,a=i.length;o<a;o++){var s=i[o],l=s.family;l+=s.type?Oe.paymentMethodName+s.type:"",e.parameters.allowedPaymentMethods[l]=s.disabled?0:1}}}},this.additionalRedirectParams=function(e,t){var r={};for(var n in t&&(t.paymentMethod&&(r.family=t.paymentMethod.paymentMethodFamily,r.type=t.paymentMethod.paymentMethodType),Rn.equalsIgnoreCase(t.status,yt.Pending)&&t.details&&(r.pendingOn=t.details.pendingOn,r.picvRequired=t.details.picvRequired)),r)r[n]&&(e=Ct.addQueryParameter(e,n,r[n]));return e},this.getErrorSourceFromUrl=function(e){if(e=Rn.toLowerCase(e))if(-1!==e.indexOf(An.getServiceEndpoint(An.virtualEndpoints.pifd.endpoint))){if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/addresses"))return An.virtualEndpoints.pifdAddress.endpoint;if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/profiles"))return An.virtualEndpoints.pifdProfile.endpoint}else if(-1!==e.indexOf(An.getServiceEndpoint(An.virtualEndpoints.jarvis.endpoint)))return An.virtualEndpoints.jarvisAddress.endpoint;return An.virtualEndpoints.pifd.endpoint},this.getResourceEndpoint=function(e){return An.resourceTypeToResource[Rn.toLowerCase(e)]||An.resourceTypeToResource.default},this.getPidlDocEndpoint=function(e){return An.resourceTypeToPidlDoc[Rn.toLowerCase(e)]||An.resourceTypeToPidlDoc.default},this.replaceVirtualEndpointWithServiceAddress=function(t,r){var n=e.getContainingVirtualEndpoint(t);if(!n)return t;var i="{"+n.endpoint+"}",o=new RegExp(i,"i");return t=t.replace(o,r||An.getServiceEndpoint(n.endpoint))},this.findVirtualEndpointInTemplate=function(t){return e.getContainingVirtualEndpoint(t)||{description:null,endpoint:null,name:null,operation:null}},this.getTelemetryLoggerProperties=function(){return An.defaultTelemetryLoggerProperties}};function _t(e,t){return e.debugMessage?Rn.format(e.debugMessage,t):""}var zt=function(e,t,r,n){this.message=r||"",this.name=t.name,this.code=t.code,this.type=e},Gt=function(e){function t(t,r,n){var i=e.call(this,q.inputValidation,t,null,n)||this;return i.parameterName=r,i.debugMessage=_t(t,n),i}return g(t,e),t}(zt),Kt=function(e){function t(t,r,n){var i=e.call(this,q.inputValidation,t,null,n)||this;return i.apiName=r,i.debugMessage=_t(t,n),i}return g(t,e),t}(zt),Wt=function(e){function t(t,r,n,i){var o=e.call(this,q.userInputValidation,t,r,i)||this;return o.propertyName=n,o.errorCode=r,o.validationErrorType=Q.property,o.debugMessage=_t(t,i),o}return g(t,e),t}(zt),qt=function(e){function t(t,r,n,i){var o=e.call(this,q.userInputValidation,t,r,i)||this;return o.groupDisplayId=n,o.errorCode=r,o.validationErrorType=Q.group,o.debugMessage=_t(t,i),o}return g(t,e),t}(zt),Jt=function(e){function t(t,r,n,i){var o=e.call(this,q.formValidation,t,r,i)||this;return o.errors=n,o.debugMessage=_t(t,i),o}return g(t,e),t}(zt),Qt=function(e){function t(t,r,n){var i=e.call(this,q.unexpected,t,n,r)||this;return i.debugMessage=_t(t,r),i}return g(t,e),t}(zt),Zt=function(e){function t(t,r,n,i,o,a,s,l,d,u){var c=e.call(this,q.serverError,t,null,s)||this;return c.innererror=n,c.status=i,c.url=r,c.statusText=o,c.responseText=a,c.httpMethod=l,c.retryAttempt=d,c.retryable=u,c.debugMessage=_t(t,s),c}return g(t,e),t}(zt),Yt=function(e){function t(t,r,n){var i=e.call(this,q.invalidSetup,t,r,n)||this;return i.debugMessage=_t(t,n),i}return g(t,e),t}(zt),Xt=function(e){function t(t,r,n){var i=e.call(this,q.paymentMethodFailure,t,r,n)||this;return i.debugMessage=_t(t,n),i}return g(t,e),t}(zt),$t=function(e){function t(t,r,n){var i=e.call(this,q.failedToOpenWindow,t,r,n)||this;return i.debugMessage=_t(t,n),i}return g(t,e),t}(zt),er=function(e){function t(t,r,n){var i=e.call(this,q.unmatchedAmount,t,r,n)||this;return i.debugMessage=_t(t,n),i}return g(t,e),t}(zt),tr=function(e){function t(t,r,n){var i=e.call(this,q.walletProvider,t,r,n)||this;return i.debugMessage=_t(t,n),i}return g(t,e),t}(zt),rr=function(e){function t(t,r,n){var i=e.call(this,q.secureFieldInitCompletedTimeout,t,r,n)||this;return i.debugMessage=_t(t,n),i}return g(t,e),t}(zt),nr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(zt),ir=new(function(){function e(){this.inputParameterValidationFailedError=Gt,this.apiValidationError=Kt,this.propertyValidationFailedError=Wt,this.groupValidationFailedError=qt,this.formValidationFailedError=Jt,this.unexpectedError=Qt,this.serverError=Zt,this.invalidSetupError=Yt,this.paymentMethodFailureError=Xt,this.failedToOpenWindowError=$t,this.unmatchedAmountError=er,this.testHookErrorBase=nr,this.walletProviderError=tr,this.secureFieldInitCompletedTimeoutError=rr}return e.prototype.isUnexpectedError=function(e){return Rn.isObject(e)&&e.type===q.unexpected},e.prototype.isServerError=function(e){return Rn.isObject(e)&&e.type===q.serverError},e}()),or={inputParameterMissing:{code:1e3,name:"mandatoryInputParameterMissingOrNull",debugMessage:"Mandatory parameter '{0}' is missing or null"},inputParameterTypeMismatch:{code:1001,name:"inputParameterTypeMismatch",debugMessage:"Parameter type is mismatched. Expected type was '{0}', but actual type passed is '{1}'"},inputParameterNotInRange:{code:1002,name:"inputParameterNotInRange",debugMessage:"Value of parameter '{0}' is '{1}' not in the range of expected values. Valid range for the parameter is '{2}'"},containerIdNotFound:{code:1003,name:"containerIdNotFound",debugMessage:"Value of 'containerId' parameter '{0}' is not a valid element in current HTML DOM"},apiCannotStartAsControlNotInitialized:{code:1004,name:"apiCannotStartAsControlNotInitialized",debugMessage:"API '{0}' cannot start as display control is not initialized."},apiCannotStartAsNotAllowedInCurrentState:{code:1005,name:"apiCannotStartAsNotAllowedInCurrentState",debugMessage:"API '{0}' cannot start as current control state is '{1}' and the API is allowed only in following states '{2}'"},busyBlockShowHideHandlerAndbusyBlockIdAreExclusive:{code:1006,name:"busyBlockShowHideHandlerAndbusyBlockIdAreExclusive",debugMessage:"Both busyBlockShowHideHandler and busyBlockId are passed in displayOptions. They are exclusive and only one can be passed."},inputParameterSmallerThanMinLength:{code:1007,name:"inputParameterSmallerThanMinLength",debugMessage:"Array element '{0}' is expected to have minimum length '{1}' but it has a length of '{2}'."},inputParameterLargerThanMaxLength:{code:1008,name:"inputParameterLargerThanMaxLength",debugMessage:"Array element '{0}' is expected to have maximum length '{1}' but it has a length of '{2}'."},mandatoryPropertyValueMissing:{code:1101,name:"mandatoryPropertyValueMissing",debugMessage:"Property '{0}' is mandatory, but its value is missing"},propertyValidationFailed:{code:1102,name:"propertyValidationFailed",debugMessage:"Validation for property '{0}' failed with the message '{1}'"},formValidationFailed:{code:1103,name:"formValidationFailed",debugMessage:"Validation for form failed with the message '{0}'"},readUserInputFailed:{code:1104,name:"readUserInputFailed",debugMessage:"Read user input failed with the message '{0}'"},formSubmissionFailedBadUserInput:{code:1105,name:"formSubmissionFailedBadUserInput",debugMessage:"Form submission failed with error '{0}' due to bad user input"},editedPropertiesValidationFailed:{code:1106,name:"editedPropertiesValidationFailed",debugMessage:"Validation for edited properties failed with the message '{0}'"},propertyTransformationFailed:{code:1107,name:"propertyTransformationFailed",debugMessage:"Property transformation failed with the message '{0}'"},tokenizationFailed:{code:1108,name:"tokenizationFailed",debugMessage:"Tokenization failed with the message '{0}'"},hmacError:{code:1109,name:"hmacError",debugMessage:"HMAC error happened with the message '{0}'"},tokenizationError:{code:1110,name:"tokenizationError",debugMessage:"Some error happened during tokenization. Here is the error message '{0}'"},connectivityError:{code:1200,name:"connectivityError",debugMessage:"There was a connectivity error when attempting to download PIDL document. Error message: '{0}'"},pidlDocDownloadFailed:{code:1201,name:"pidlDocDownloadFailed",debugMessage:"Failed to download PIDL document. Error message: '{0}'"},formSubmitFailed:{code:1202,name:"formSubmitFailed",debugMessage:"Failed to submit form. Error message: '{0}'"},resourceInstanceDownloadFailed:{code:1203,name:"resourceInstanceDownloadFailed",debugMessage:"Failed to download resource instance. Error message: '{0}'"},commerceJsDownloadFailed:{code:1204,name:"commerceJsDownloadFailed",debugMessage:"Failed to download Commerce JS"},restMethodInvocationFailed:{code:1205,name:"restMethodInvocationFailed",debugMessage:"Rest method invocation for url '{0}' failed with error '{1}'"},missingSubmitActionInPidlDoc:{code:1501,name:"missingSubmitActionInPidlDoc",debugMessage:"Cannot perform submit action as the current PIDL document does not have it."},submitActionMissing:{code:1502,name:"submitActionMissing",debugMessage:"Submit action is missing in the PIDL document"},unknownActionType:{code:1503,name:"unknownActionType",debugMessage:"Unknown action type '{0}'"},unknownClientActionType:{code:1504,name:"unknownClientActionType",debugMessage:"Unknown client action type '{0}'"},cannotMoveToNextPageAsOnLastPage:{code:1505,name:"cannotMoveToNextPageAsOnLastPage",debugMessage:"Cannot move to next page as already on the last page"},cannotMoveToPrevPage:{code:1506,name:"cannotMoveToPrevPage",debugMessage:"Cannot move to previous page"},noMappingToGetPidlDocForResource:{code:1507,name:"noMappingToGetPidlDocForResource",debugMessage:"There is no mapping for getting PIDL document for the input resource type '{0}'"},noMappingToGetHtmlClassNameForElement:{code:1508,name:"noMappingToGetHtmlClassNameForElement",debugMessage:"There is no mapping for getting HTML class name for element '{0}'"},missingMandatoryParameterForHtmlCreation:{code:1509,name:"missingMandatoryParameterForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. But the mandatory property '{2}' is missing or empty"},parameterTypeMismatchForHtmlCreation:{code:1510,name:"parameterTypeMismatchForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. Property '{2}' is expected to be of type '{3}' but actual type is '{4}'"},modelNotPpopulated:{code:1511,name:"modelNotPopulated",debugMessage:"Model is not populated"},cannotMoveToPageIndex:{code:1512,name:"cannotMoveToPageIndex",debugMessage:"Cannot move to the given page index because it is out of bounds"},apiStateMappingNotFound:{code:1513,name:"apiStateMappingNotFound",debugMessage:"Api '{0}' does not have a mapping in state manager"},contextMissingFromPidlAction:{code:1514,name:"contextMissingFromPidlAction",debugMessage:"PIDL action '{0}' does not have should have a context"},restActionPidlActionMissingParameters:{code:1515,name:"restActionPidlActionMissingParameters",debugMessage:"Rest action is missing parameter '{0}' "},noPidlDocumentInPopulateRequest:{code:1516,name:"noPidlDocumentInPopulateRequest",debugMessage:"No PIDL documents are sent in the request for populating model"},noDisplayDescriptionInPidlDocument:{code:1517,name:"noDisplayDescriptionInPidlDocument",debugMessage:"No display description are found in the PIDL document"},multiplePagesInLinkedPidlForSinglePagePidlContainer:{code:1518,name:"multiplePagesInLinkedPidlForSinglePagePidlContainer",debugMessage:"Multiple pages extracted from a linked PIDL for a single page PIDL container (being a member of a PIDL Page)"},expectedPayloadValueNotPresentInServerResponse:{code:1519,name:"expectedPayloadValueNotPresentInServerResponse",debugMessage:"The expected value for the next submit payload was not present in server response"},noRedirectUrlToNavigate:{code:1520,name:"noRedirecturlToNavigate",debugMessage:"There is no redirection service url to navigate"},invalidCacheEntry:{code:1521,name:"invalidCacheEntry",debugMessage:"Cache entry for the handle given is invalid"},unexpectedPrefillDataCount:{code:1522,name:"unexpectedPrefillDataCount",debugMessage:"The expected count of prefill data objects for '{0}' is '{1}' but actual count was '{2}'"},defaultActionNotFound:{code:1523,name:"defaultActionNotFound",debugMessage:"Default action is not found on the page"},isDefaultPidlActionNotFound:{code:1524,name:"isDefaultPidlActionNotFound",debugMessage:"Pidl action with isDefault === true not found in the pidl with element ids: {0}"},displayElementPointingToMissingDataProperty:{code:1525,name:"noPropertyFoundForDisplayElement",debugMessage:"Display element '{0}' is pointing to missing data property '{1}'"},invalidReturnContextPidl:{code:1526,name:"invalidReturnContextPidl",debugMessage:"Downloaded pidl had returnContext client action type but context was empty"},duplicateDisplayHintIdOnPage:{code:1527,name:"duplicateDisplayHintIdOnPage",debugMessage:"DisplayId '{0}' appears multiple times on page '{1}'"},invalidNotInPurchasePendingState:{code:1528,name:"instanceNotInPurchasePendingState",debugMessage:"The PI downloaded was not a valid type for purchase pending state"},submitPidlRequestMissingParameters:{code:1529,name:"submitPidlRequestMissingParameters",debugMessage:"Submit pidl request is missing parameter '{0}'"},IFrameTimedOut:{code:1530,name:"iframetimedout",debugMessage:"Took to long to notify as successful. Operation timed out'"},unhandledRejection:{code:1531,name:"unhandledrejection",debugMessage:"Unhandled Promise Rejection at {0}"},iFrameReturnedFailure:{code:1532,name:"iFrameReturnedFailure",debugMessage:"iFrame POST message returned failure with message {0}"},failureClientActionReturned:{code:1533,name:"failureClientActionReturned",debugMessage:"Client action type failure is returned with payload {0}"},validationFailedForNonUserInputProperty:{code:1534,name:"validationFailedForNonUserInputProperty",debugMessage:"Validation for property '{0}' failed with error code '{1}' and message '{2}' which has caused flow termination because correct value for this property is expected either to be passed by the partner or is there as default value in the PIDL, not input by the user."},pollingTimedOut:{code:1535,name:"pollingTimedOut",debugMessage:"Polling exceeded maximum time allowed"},unableToSetupPolling:{code:1536,name:"unableToSetupPolling",debugMessage:"Unable to setup polling"},msrEncryptionFailed:{code:1537,name:"msrEncryptionFailed",debugMessage:"MSR Encryption failed with the message '{0}'"},onlyOneBusyBlockPropAllowed:{code:1538,name:"onlyOneBusyBlockPropAllowed",debugMessage:"Please pass in only one prop option for busyBlocks (busyBlockId, busyBlockElement, or busyBlockShowHideHandler)"},failurePollingResponseReturned:{code:1539,name:"failurePollingResponseReturned",debugMessage:"The following response from polling is unexpected: {0}"},fileUploadFailure:{code:1540,name:"fileUploadFailure",debugMessage:"Unable to upload the file"},invalidSetup:{code:1541,name:"invalidSetup",debugMessage:"PaymentAgent needs to be fully initialized"},paymentMethodFailure:{code:1542,name:"paymentMethodFailure",debugMessage:"Error processing payment sheet"},unmatchedAmount:{code:1543,name:"unmatchedAmount",debugMessage:"Authorization group total amount does not match amount"},failedToOpenWindow:{code:1544,name:"failedToOpenWindow",debugMessage:"Failed to Open Window"},unexpectedChallengeiFrameMessage:{code:1545,name:"unexpectedChallengeIframeMessage",debugMessage:"Unexpected challenge iframe message."},challengeIframeMessagePostFailure:{code:1546,name:"challengeIframeMessagePostFailure",debugMessage:"Challenge iframe message post failure."},failedToFetchStyleHints:{code:1547,name:"failedToFetchStyleHints",debugMessage:"Failed to fetch style hints from static resources"},unmatchedSecureFieldEvent:{code:1601,name:"unmatchedSecureFieldEvent",debugMessage:"The following secure field event is unexpected: {0}"},unexpectedSecureFieldMessage:{code:1602,name:"unexpectedSecureFieldMessage",debugMessage:"Unexpected secure field message."},secureFieldPromiseNotFound:{code:1602,name:"secureFieldPromiseNotFound",debugMessage:"Unable to find promise after secure field posted back message."},secureFieldInitCompletedTimeout:{code:1603,name:"secureFieldInitCompletedTimeout",debugMessage:"Timeout while waiting for secure fields initCompleted events"},walletProviderError:{code:1700,name:"walletProviderError",debugMessage:"Unable to retrieve wallet cards."}},ar=new function(){var e=this;this.getResolvedPidls=function(t,r){var n=[];return t.forEach((function(t){var i=!1;for(var o in r){var a=sr.getPropertyFromDataDescription(t.data_description,o),s=r[o];if(s&&s.getValue&&!(i=e.resolveKeyProperty(a,s.getValue(a))))break}i&&n.push(t)})),n},this.getPidlContainersInSubmitOrder=function(t,r){t.forEach((function(t){if(Bt(t)){var n=t.submitOrder;n===Pt.beforeBase?r.beforeBase.push(t):n===Pt.afterBase?r.afterBase.push(t):r.withBase.push(t)}else wt(t)&&t.members.length&&e.getPidlContainersInSubmitOrder(t.members,r)}))},this.resolveInfoDescriptionId=function(t,r){return e.getResolvedPidls(t,r).map((function(e){return e.identity}))},this.getFirstPidlWithValidDefaultKey=function(t,r){return e.getResolvedPidls(t,r)[0]},this.getPidlSubmitOrder=function(t){var r={beforeBase:[],withBase:[],afterBase:[]};return e.getPidlContainersInSubmitOrder(t.displayDescription,r),r},this.resolveKeyProperty=function(e,t){var r=(e||{validation:null}).validation;return!(Rn.isUndefined(t)||!r)&&new RegExp(r.resolutionRegex||r.regex).test(t)}},sr=new function(){var e=this;this.getPropertyDescriptorsHelper=function(t,r,n){var i=[];for(var o in t){var a=t[o];if(a instanceof Array)for(var s=0;s<a.length;s++)i=i.concat(e.getPropertyDescriptorsHelper(a[s].data_description,r,n));else a.hasOwnProperty(r)&&a[r]===n&&i.push({propertyName:o,propertyDescriptor:a})}return i},this.getPropertyValueFromInputDataHelper=function(t,r){var n;for(var i in t){if(i===r){n=t[i];break}if(Rn.isObject(t[i])&&void 0!==(n=e.getPropertyValueFromInputDataHelper(t[i],r)))break}return n},this.getPropertyFromDataDescriptionHelper=function(t,r,n){var i;if(void 0===n&&(n=!1),r)for(var o in t){var a=t[o];if(a instanceof Array){if(n&&o===r&&a[0])return a[0].data_description;if(a.some((function(t){return void 0!==(i=e.getPropertyFromDataDescriptionHelper(t.data_description,r,n))})),void 0!==i)break}else if(e.propertyMatchesDataDescriptionInternal(a,o,r)){i=a;break}}return i},this.getFirstResolvedPidlDocument=function(t,r){var n=null;return t.some((function(t){if(e.getKeyPropertyDescriptors(t.data_description).every((function(t){return ar.resolveKeyProperty(t.propertyDescriptor,e.getPropertyValueFromInputData(r,t.propertyName))})))return n=t,!0})),n},this.propertyMatchesDataDescriptionInternal=function(e,t,r){return r&&(t===r||e&&e.display_property===r)},this.getPropertyNamesFromDataDescription=function(t,r,n){return e.getPropertyDescriptorsHelper(t,r,n)},this.getKeyPropertyDescriptors=function(t){return e.getPropertyNamesFromDataDescription(t,"is_key",!0)},this.getPropertyValueFromInputData=function(t,r){return e.getPropertyValueFromInputDataHelper(t,r)},this.getPropertyFromDataDescription=function(t,r){var n=e.getPropertyFromDataDescriptionHelper(t,r);return Dt(n)?n:void 0},this.getPropertiesFromDataDescription=function(t,r){return e.getPropertyFromDataDescriptionHelper(t,r,!0)},this.propertyMatchesDataDescription=function(t,r,n){return e.propertyMatchesDataDescriptionInternal(t,r,n)},this.getDisplayPropertyName=function(e,t){return e.display_property||t}},lr=function(){var e=this;this.setService=function(t,r){e.services[t]=r},this.getService=function(t){return e.services[t]},this.getCommerceService=function(){return e.getService("commerce")},this.setCommerceService=function(t){e.setService("commerce",t)},this.getLoggingService=function(){return e.getService("logging")},this.setLoggingService=function(t){e.setService("logging",t)},this.getPidlService=function(){return e.getService("pidl")},this.setPidlService=function(t){e.setService("pidl",t)},this.getRedirectionService=function(){return e.getService("redirection")},this.setRedirectionService=function(t){e.setService("redirection",t)},this.getTelemetryInjectionService=function(){return e.getService("telemetry")},this.setTelemetryInjectionService=function(t){e.setService("telemetry",t)},this.getPidlStoreService=function(){return e.getService("pidlStore")},this.setPidlStoreService=function(t){return e.setService("pidlStore",t)},this.getOneDSService=function(){return e.getService("oneDS")},this.setOneDSService=function(t){return e.setService("oneDS",t)},this.testHookResetServices=function(){e.services={}},this.services={}},dr=new lr,ur=function(){var e=this;this.getDisplayDescriptionPidlActions=function(t,r){if(t&&(t.pidlAction&&r.push(t.pidlAction),wt(t)&&t.members))for(var n=0;n<t.members.length;n++)e.getDisplayDescriptionPidlActions(t.members[n],r)},this.getLogoDescriptions=function(t,r){if(t&&r&&(Tt(t)&&r.push(t),wt(t)&&t.members))for(var n=0;n<t.members.length;n++)e.getLogoDescriptions(t.members[n],r)},this.getPidlIdentityForProperty=function(t,r){var n;if(r)if(t instanceof Array){for(var i=0;i<t.length;i++)if(n=e.getPidlIdentityForProperty(t[i],r))return n}else if(t.data_description)for(var o in t.data_description){var a=t.data_description[o];if(a instanceof Array){if(n=e.getPidlIdentityForProperty(a,r))return n}else if(sr.propertyMatchesDataDescription(a,o,r))return t.identity}},this.createIdentityHash=function(e){var t="";for(var r in e)Rn.isString(e[r])&&(t+=r+"_"+e[r]);return t},this.resolvePidlDocs=function(e,t){if(e instanceof Array){var r=[];if(t)for(var n=dr.getCommerceService(),i=0;i<e.length;i++)for(var o=0;o<t.length;o++)if(n.areIdentitiesEqual(e[i].identity,t[o])){r.push(e[i]);break}return r}return[e]},this.getDisplayDescriptionsPidlActions=function(t){var r=[];if(e.getDisplayDescriptionPidlActions(t,r),Rt(t)){var n=t.possibleOptions;if(n)for(var i in n){var o=n[i].pidlAction;o&&(r=I(I([],r,!0),[o],!1))}}return r},this.getSubmitPidlAction=function(t){if(t&&t.displayDescription){var r=[];return t.displayDescription.forEach((function(t){e.getDisplayDescriptionPidlActions(t,r)})),Rn.find(r,(function(e){return e.type===j.submit}))}},this.isPrimaryResource=function(e){return(e&&e.scenarioContext&&e.scenarioContext.resourceType||Fe.primary)===Fe.primary},this.ignoreTerminatingError=function(e){return e&&e.length>0&&e[0]&&e[0].scenarioContext&&e[0].scenarioContext.terminatingErrorHandling&&e[0].scenarioContext.terminatingErrorHandling===Ae.ignore},this.matchPidlIdsToPidls=function(e,t,r){for(var n=t&&r&&t.length===r.length,i=0;n&&i<t.length;i++){for(var o=!1,a=0;a<r.length;a++){var s=r[a]?r[a].identity:null;o=o||e.areIdentitiesEqual(t[i],s)}n=n&&o}return n},this.translateErrorTargetsToDisplayProperties=function(e,t){var r=[];return e.forEach((function(e){var n=sr.getPropertyFromDataDescription(t.data_description,e);r.push(n&&n.display_property||e)})),r},this.doesKeyPropertyTriggerPidlDownload=function(e){return e&&Rn.boolify(e.pidl_download_enabled||e.possible_values)},this.getKeyPropertyPidlDownloadUrlParam=function(e,t){return e&&(e.pidl_download_parameter||e.possible_values&&t)},this.createKeyPropertyMap=function(e,t){for(var r={},n=function(e){return function(r){return t(e,r)}},i=0,o=e.length;i<o;i++)for(var a=sr.getKeyPropertyDescriptors(e[i].data_description),s=0,l=a.length;s<l;s++){var d=a[s].propertyName,u=a[s].propertyDescriptor;r[d]={propertyDescriptor:u,getValue:n(d)}}return r},this.getPropertyValueGetter=function(e,t,r){return function(n,i){var o=e===n?t:r(n);return Rn.toString(o)}},this.getDefaultPropertyValueGetter=function(){return function(e,t){return t&&Rn.toString(t.default_value)}},this.getDataSourceObjects=function(e){var t=[];if(e&&(Rn.isNullOrEmptyObject(e.dataSources)||t.push(e.dataSources),e.linkedPidls&&e.linkedPidls.length>0))for(var r=0;r<e.linkedPidls.length;r++)Rn.isNullOrEmptyObject(e.linkedPidls[r].dataSources)||t.push(e.linkedPidls[r].dataSources);return t}},cr=new ur,pr=new function(){var e=this;this.createModelElement=function(t,r,n,i,o,a,s,l,d){switch(t){case M.button:return e.addHandleToDisplayDescriptions(n,s),new Or(r,n,i,o,a,l,d);case M.filePicker:return new Fr(r,n,i,o,a);case M.checkBox:return new Rr(r,n,i,o,a);case M.dropdown:return e.addHandleToDisplayDescriptions(n,s),new kr(r,n,i,o,a);case M.group:return new gr(t,r,n,i,o,a,d);case M.captcha:return new Er(t,r,n,i,o,a,d);case M.page:return new Ir(r,n,i,o,a);case M.textGroup:return new Sr(r,n,i,o,a);case M.dataCollectionBindingGroup:return new vr(r,n,i,o,a);case M.textBox:return new Tr(r,n,i,o,a,s);case M.radio:return e.addHandleToDisplayDescriptions(n,s),new wr(r,n,i,o,a);case M.buttonList:return e.addHandleToDisplayDescriptions(n,s),new xr(r,n,i,o,a);case M.secureProperty:return new Gr(r,n,i,o,a,s);case M.expressCheckoutButton:return new Kr(r,n,i,o,a);case M.iFrame:return new Wr(r,n,i,o,a);case M.challengeIFrame:return new qr(r,n,i,o,a);case M.heading:case M.subheading:case M.text:case M.hyperlink:return new Hr(t,r,n,i,o,a,l,d);case M.image:return new Br(t,r,n,i,o,a,l,d);case M.logo:return new Ur(r,n,i,o,a,s,d);case M.audio:return new Mr(r,n,i,o,a,l,d);case M.expression:return new Nr(r,n,i,o,a,l,d);case M.pidlContainer:return new jr(r,n,i,o,a);case M.pidlInstance:return new _r(r,n,i,o,a);case M.separator:return new Vr(t,r,n,i,o,a,d);case M.spinner:return new Lr(t,r,n,i,o,a,d);default:return new fr(t,r,n,i,o,a)}},this.addHandleToDisplayDescriptions=function(e,t){if(t){var r=t.getOperationHandle();if(r)for(var n=cr.getDisplayDescriptionsPidlActions(e),i=0;i<n.length;i++){var o=n[i];o.type!==j.success&&o.type!==j.successWithPidlPayload||!Rn.isObject(o.context)||(o.context.handle=r,Rn.isObject(o.context.resourceActionContext)&&(o.context.resourceActionContext.handle=r))}}},this.getPidlIdentityHash=function(e,t){if(t.propertyName){var r=cr.getPidlIdentityForProperty(e,t.propertyName);return r?cr.createIdentityHash(r):void 0}},this.isErrorObject=function(e){return void 0!==e.error},this.addPage=function(t,r,n,i,o,a,s){var l=e.create(t,r,n,i,o,!1,{},null,a,s);if(e.isErrorObject(l))return l;var d=null,u=l.element,c=I([],l.warnings,!0);if(u)if(tn(u)){var p=e.createLinkedPidlModelElements(o,i,u.linkedPidlId,!0,{});if(e.isErrorObject(p))return p;d=I([],p.elements,!0),c=I(I([],c,!0),p.warnings,!0)}else d=[u];return{elements:d,warnings:c}},this.create=function(t,r,n,i,o,a,s,l,d,u){var c=xn.getModelElementType(r,n);if(c.error)return{error:c.error};var p=e.getPidlIdentityHash(t,n),m=e.createModelElement(c.type,r,n,i,p,a,o,d,u),f=[];if(s&&(m.displayType!==gt.page&&s[m.displayId]&&(f=I(I([],f,!0),[new ir.unexpectedError(or.duplicateDisplayHintIdOnPage,[m.displayId,l])],!1)),l||(l=m.displayId),s[m.displayId]=!0),Zr(m))for(var y=m.displayDescription,h=["audioMembers","imageMembers"],g=0;g<h.length;g++)for(var v=0;v<y[h[g]].length;v++){var P=e.create(t,t&&sr.getPropertyFromDataDescription(t.data_description,y[h[g]][v].propertyName),y[h[g]][v],i,o,a,s,l,d,u);if(e.isErrorObject(P))return P;f=I(I([],f,!0),P.warnings,!0);var b=P.element;0===g?m.audioChildren.push(b):m.imageChildren.push(b)}else if(Qr(m))for(y=m.displayDescription,v=0;v<y.members.length;v++){if(P=e.create(t,t&&sr.getPropertyFromDataDescription(t.data_description,y.members[v].propertyName),y.members[v],i,o,a,s,l,d,u),e.isErrorObject(P))return P;if(f=I(I([],f,!0),P.warnings,!0),tn(b=P.element)){var E=e.createLinkedPidlModelElements(o,i,b.linkedPidlId,!1,s,l);if(e.isErrorObject(E))return E;m.children=I(I([],m.children,!0),E.elements,!0),f=I(I([],f,!0),E.warnings,!0)}else m.children.push(b)}else an(m)?e.createButtonWithDisplayContentGroup(m):e.createPossibleOptionMembers(m,d);return{element:m,warnings:f}},this.createPossibleOptionMembers=function(t,r){if(Xr(t))for(var n in t.possibleOptions){var i=t.possibleOptions[n];if(i.displayContent){var o=e.createModelElementsFromDisplayDescriptions([i.displayContent],t.operationType,r).elements;o&&o.length>=1&&(i.displayContentContainer=o[0])}}},this.createButtonWithDisplayContentGroup=function(t){if(t.displayDescription.displayContentDisplayDescription){var r=t.displayDescription.displayContentDisplayDescription,n=e.createModelElementsFromDisplayDescriptions([r],t.operationType).elements;n&&n.length>=1&&(t.displayContentModelElement=n[0])}},this.createLinkedPidlModelElements=function(t,r,n,i,o,a){for(var s=cr.createIdentityHash(n),l=t.getLinkedPidl(s),d={elements:[],warnings:[]},u=!1,c=0;c<l.displayDescription.length;c++){var p=l.displayDescription[c],m=e.create(l,sr.getPropertyFromDataDescription(l.data_description,p.propertyName),p,r,t,!0,o,a);if(e.isErrorObject(m))return m;var f=m.element,y=m.warnings;if(d.warnings=I(I([],d.warnings,!0),y,!0),!i&&Yr(f)){if(u)return{error:new ir.unexpectedError(or.multiplePagesInLinkedPidlForSinglePagePidlContainer)};d.elements=I(I([],d.elements,!0),f.children,!0),u=!0}else d.elements=I(I([],d.elements,!0),[f],!1)}return d},this.createModelElements=function(t,r){var n=t.getResolvedOrFirstPidlDoc(),i=[],o=[];if(n&&n.displayDescription&&n.displayDescription.length)for(var a=0;a<n.displayDescription.length;a++){var s=n.displayDescription[a],l=e.addPage(n,sr.getPropertyFromDataDescription(n.data_description,s.propertyName),s,r,t);if(e.isErrorObject(l))return l;i=I(I([],i,!0),l.elements,!0),o=I(I([],o,!0),l.warnings,!0)}return 0===i.length?{error:new ir.unexpectedError(or.noDisplayDescriptionInPidlDocument)}:{elements:i,warnings:o}},this.createModelElementsFromDisplayDescriptions=function(t,r,n,i,o,a){for(var s=[],l=0;l<t.length;l++){var d=t[l];if(d){var u=o&&o.data_description&&sr.getPropertyFromDataDescription(o.data_description,d.propertyName),c=e.addPage(o,u,d,r,a,n,i);e.isErrorObject(c)||(s=I(I([],s,!0),c.elements,!0))}}return{elements:s}}},mr=new(function(){function e(){var e=this;this.normalizeValueToOptions=function(e,t){var r=Rn.find(e,(function(e){return Rn.equalsIgnoreCase(e,t)}));return r||(r=""),r},this.updateModelElements=function(t,r,n){e.propertiesVisitorProcessingAny(t,(function(e,t){return!!e.update&&e.update(t,n)}),r,n)},this.findFirstMatchingProperty=function(t,r){var n={properties:r};return e.propertiesVisitorProcessingDataProperty(t,(function(e,t){if(!e.isPrefillControl()&&Rn.contains(t.properties,e.getPropertyName()))return t.matchedProperty=e.getPropertyName(),!0}),n),n.matchedProperty},this.getParentIfSame=function(t,r){for(var n=null,i=0;i<r.length;i++){var o={propertyName:r[i]};if(e.propertiesVisitorProcessingAny(t,(function(e,t){if(e&&e.children)for(var r=0;r<e.children.length;r++)if(e.children[r].isProperty()){var n=e.children[r];if(n&&n.getPropertyName&&n.getPropertyName()===t.propertyName)return t.parent=e,!0}}),o),o.parent)if(n){if(o.parent!==n)return null}else n=o.parent}return n},this.findPropertyElement=function(t,r){var n={propertyName:r};return e.propertiesVisitorProcessingDataProperty(t,(function(e,t){if(e.getPropertyName()===t.propertyName)return t.element=e,!0}),n),n.element},this.findElement=function(t,r){var n={};return e.propertiesVisitorProcessingAny(t,(function(e,t){if(r(e))return t.element=e,!0}),n),n.element},this.findAllElements=function(t,r){var n={elements:[]};return e.propertiesVisitorProcessingAny(t,(function(e,t){r(e)&&t.elements.push(e)}),n),n.elements},this.findPrefillControlElement=function(t){return e.findElement(t,(function(e){if(e&&e.displayType===gt.prefillControl)return!0}))},this.findFirstVisibleEnabledPropertyElement=function(t){var r={};return e.propertiesVisitorProcessingAny(t,(function(e,t){if(e&&(e.isProperty()||e.isSecureProperty()||e.isPrefillControl())&&!e.disabled()&&!e.hidden())return t.element=e,!0}),r),r.element},this.isButtonWithDisplayDescription=function(e){return an(e)&&!Rn.isNullOrUndefined(e.displayDescription)},this.findFirstButtonElement=function(t){return e.findElement(t,(function(e){return an(e)}))},this.findHighlightedButton=function(t){return e.findElement(t,(function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.isHighlighted}))},this.findDefaultPidlActionButton=function(t){return e.findElement(t,(function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.pidlAction&&t.displayDescription.pidlAction.isDefault}))},this.getDefaultPidlActionButton=function(t,r){var n=e.findDefaultPidlActionButton(t);return n||(n=e.findHighlightedButton(t)||e.findFirstButtonElement(t)),n},this.getDefaultPidlAction=function(t,r){var n=e.findDefaultPidlActionButton(t);return n||(n=e.findHighlightedButton(t)),n&&n.displayDescription&&n.displayDescription.pidlAction},this.getDefaultSuccessPidlPayload=function(t,r){var n=e.getDefaultPidlAction(t,r);if(n&&(n.type===j.success||n.type===j.successWithPidlPayload))return n.context},this.normalizeValueToPossibleValues=function(t,r){var n=e.normalizeValueToOptions(Rn.getKeys(t.possibleOptions),r);return Rn.isEmptyString(n)&&t.dataDescription.possible_values&&(n=e.normalizeValueToOptions(Rn.getKeys(t.dataDescription.possible_values),r)),n},this.normalizeValueToDisplayDescriptionPossibleOptions=function(t,r){return e.normalizeValueToOptions(Rn.getKeys(t.possibleOptions),r)},this.getPollingPidlActions=function(t){var r={};return t.forEach((function(t){t.pidlAction&&t.pidlAction.type===j.poll&&(r[t.displayId]=t.pidlAction),t.children&&(r=v(v({},r),e.getPollingPidlActions(t.children)))})),r},this.getPagePidlActions=function(e,t){var r={};return e.forEach((function(e){!Rn.isObject(e.pidlAction)||Rn.isString(t)&&e.pidlAction.type!==t||(r[e.displayId]=e.pidlAction)})),r},this.findRadioElements=function(t){return e.findAllElements(t,(function(e){return yn(e)}))},this.findExpressCheckoutButtonElements=function(t){return e.findAllElements(t,(function(e){return In(e)}))}}return e.prototype.propertyVisitorProcessingDataProperty=function(e,t,r){if(e){if(e.isProperty()||e.isSecureProperty()||e.isCaptcha()){var n=t(e,r);if(n)return n}if(e.children&&e.children.length>0&&(!r||!r.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,t,r);r&&delete r.stopDescendantsProcessing}},e.prototype.propertyVisitorProcessingAny=function(e,t,r,n){var i;if(e){var o=t(e,r);if(o)return o;if(e.children&&e.children.length>0&&(!r||!r.stopDescendantsProcessing))return this.propertiesVisitorProcessingAny(e.children,t,r,n);if(Xr(e)&&e.possibleOptions&&(!r||!r.stopDescendantsProcessing)){var a=!1;if(e.dataCollectionSource&&e.possibleOptionsTemplate&&(null===r||void 0===r?void 0:r.modelData)){var s=e.getBindingData(r);if(s&&s.length>0)for(var l=0;l<s.length;l++){var d=v(v({},r),{contextData:s[l]}),u=e.getPossibleOptionKey(d);u&&e.possibleOptions[u]&&(a=a||this.propertiesVisitorProcessingAny([null===(i=e.possibleOptions[u])||void 0===i?void 0:i.displayContentContainer],t,d,n))}}else for(var c=0,p=Object.values(e.possibleOptions);c<p.length;c++){var m=p[c];a=a||this.propertiesVisitorProcessingAny([null===m||void 0===m?void 0:m.displayContentContainer],t,r,n)}return a}r&&delete r.stopDescendantsProcessing}},e.prototype.propertiesVisitorProcessingDataProperty=function(e,t,r){if(e){if(!Rn.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,r);for(var n=0;n<e.length;n++){var i=this.propertyVisitorProcessingDataProperty(e[n],t,r);if(i)return i}}},e.prototype.propertiesVisitorProcessingAny=function(e,t,r,n){if(e){if(!Rn.isArray(e))return this.propertyVisitorProcessingAny(e,t,r,n);for(var i=0;i<e.length;i++){var o=this.propertyVisitorProcessingAny(e[i],t,r,n);if(o)return o}}},e}()),fr=function(){function e(e,t,r,n,i,o){var a=this;this.isText=function(){return a.isStaticText()||a.type===M.hyperlink},this.isStaticText=function(){return a.type===M.heading||a.type===M.subheading||a.type===M.text||a.type===M.expression},this.isProperty=function(){return a.displayDescription.displayType===gt.property},this.isCaptcha=function(){return a.displayDescription.displayType===gt.captcha},this.isPrefillControl=function(){return a.displayDescription.displayType===gt.prefillControl},this.isButton=function(){return a.displayDescription.displayType===gt.button},this.isHighlighted=function(){return a.displayDescription.isHighlighted},this.isIframe=function(){return a.displayDescription.displayType===gt.iFrame},this.isChallengeIframe=function(){return a.displayDescription.displayType===gt.challengeIframe},this.isSecureProperty=function(){return a.displayDescription.displayType===gt.secureProperty},this.showKeyLogo=function(){return Rn.boolify(a.dataDescription)&&!0===a.dataDescription.is_key},this.disabled=function(){return a.operationType===ct.update&&a.dataDescription&&!1===a.dataDescription.is_updatable||!0===a.isDisabled},this.hidden=function(){return a.isHidden||a.hasNoDataToShow},this.canBeRendered=function(){return a.displayConditionResult},this.isConditionalFieldProperty=function(){return Rn.boolify(a.dataDescription&&a.dataDescription.isConditionalFieldValue)},this.getPrefixedTags=function(e,t,r){r=r||function(e,t){return!0};var n={};return Object.keys(a.tags?a.tags:{}).forEach((function(i){var o=a.tags[i];Rn.startsWith(i,e)&&r(i,o)&&(n[t?i.replace(e,""):o]=o)})),n},this.getParentHtmlClassTags=function(){return a.getPrefixedTags(xe.parent,!1,(function(e,t){return!we[e.replace(xe.parent,"")]}))},this.getHelpDialogTags=function(){return a.getPrefixedTags(xe.helpDialog,!0,(function(e,t){return we[e.replace(xe.helpDialog,"")]}))},this.update=function(e,t){if(a.displayCondition&&(a.displayConditionResult=xn.getFunctionExecutionResult(a.displayCondition,e)),a.conditionalFields)for(var r in a.conditionalFields)if(a.hasOwnProperty(r)){var n=a.conditionalFields[r];a[r]=xn.getConditionalFieldValue(n,e,a)}return a.updateModelElement(e,t)},this.operationType=n,this.dataDescription=t,this.displayDescription=r,this.type=e,this.pidlIdentity=i,this.isLinkedPidl=o,this.hasNoDataToShow=!1;var s=this.displayDescription,l=s.isHidden,d=s.displayCondition,u=s.displayId,c=s.displayType,p=s.tags,m=s.propertyName,f=s.pidlAction,y=s.displayHelpName,h=s.displayHelp,g=s.displayImage,v=s.isDisabled,P=s.styleHints,b=s.conditionalFields;this.isHidden=!0===l,this.displayCondition=d,this.displayConditionResult=!this.displayCondition,this.pidlAction=f,this.displayId=u,this.displayType=c,this.tags=p,this.styleHints=P,this.conditionalFields=b,this.displayHelpName=y,this.displayHelp=h,this.displayImage=g,this.accessibilityName=null,this.tabIndex=null,this.tags&&(this.accessibilityName=this.tags.accessibilityName,this.accessibilityHint=this.tags.accessibilityHint,this.disabledAccessibilityName=this.tags.disabledAccessibilityName,this.tags.tabIndex&&(this.tabIndex=String(this.tags.tabIndex)),this.maxLengthMessage=this.tags.maxLengthMessage);var E=m;this.id=E||u,this.isDisabled=v,this.children=[],this.audioChildren=[],this.imageChildren=[]}return e.prototype.updateModelElement=function(e,t){return!1},e}(),yr=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t,r,n,i,o,a)||this,l=n.layoutOrientation,d=n.layoutAlignment,u=n.containerDescription,c=n.members,p=n.displayName,m=n.showDisplayName;return s.layoutOrientation=l||vt.vertical,s.layoutAlignment=d,s.containerDescription=u,s.members=c,s.displayName=p,s.showDisplayName=p&&Rn.boolify(m),s}return g(t,e),t}(fr),hr=function(e){function t(t,r,n,i,o,a,s){var l=e.call(this,t,r,n,i,o,a)||this,d=n.displayName,u=n.showDisplayName,c=n.isSubmitGroup,p=n.isModalGroup;return l.displayName=d,l.showDisplayName=d&&(!u||u===U.stringTrue),l.isSubmitGroup=c,l.isModalGroup=p,s&&(l.id+=s),l}return g(t,e),t}(yr),gr=function(e){function t(t,r,n,i,o,a,s){return e.call(this,t,r,n,i,o,a,s)||this}return g(t,e),t.prototype.updateModelElement=function(e){if(this.pidlAction&&Rn.isObject(this.pidlAction.context)){var t={};for(var r in this.pidlAction.context)"instance"===r&&Rn.isString(this.pidlAction.context[r])?t[r]=xn.getFormatInstanceExpressionValue(this.pidlAction.context[r],e):t[r]=xn.getFormatStringExpressionValue(this.pidlAction.context[r],e);this.pidlAction.context=t}return!1},t}(hr),vr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.dataCollectionBindingGroup,t,r,n,i,o)||this;return a.dataCollectionSource=r.dataCollectionSource,a.filterDescription=r.filterDescription,a.childrenTemplates=a.children,a}return g(t,e),t.prototype.updateModelElement=function(e){if(this.dataCollectionSource){var t=xn.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(t=xn.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:t}));var r=null;if(t&&t.length&&Rn.isArray(t)){r=[];for(var n=0;n<t.length;n++)for(var i={modelData:e.modelData,contextData:t[n]},o=0;o<this.childrenTemplates.length;o++){var a=String(n);e.depth?(this.id=this.id+e.depth,a=e.depth+"_"+a,i.depth=a+String.fromCharCode(e.depth.charCodeAt(e.depth.length-1)+1)):i.depth=a+"a";var s=Rn.deepCopy(this.childrenTemplates[o]),l=pr.createModelElementsFromDisplayDescriptions([s.displayDescription],this.operationType,i,a).elements;l&&l.length>=1&&(e.stopDescendantsProcessing=!0,mr.updateModelElements(l,i),r=r.concat(l))}}this.children=r}return!1},t}(hr),Pr=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t,r,n,i,o,a)||this,l=n.layoutOrientation,d=n.layoutAlignment,u=n.containerDescription,c=n.audioMembers,p=n.imageMembers,m=n.displayName,f=n.showDisplayName;return s.layoutOrientation=l||vt.vertical,s.layoutAlignment=d,s.containerDescription=u,s.audioMembers=c,s.imageMembers=p,s.displayName=m,s.showDisplayName=m&&Rn.boolify(f),s}return g(t,e),t}(fr),br=function(e){function t(t,r,n,i,o,a,s){var l=e.call(this,t,r,n,i,o,a)||this;l.getPropertyName=function(){return l.displayDescription.propertyName},l.required=function(){return!(!0===l.dataDescription.is_optional)};var d=n.displayName,u=n.showDisplayName;return l.displayName=d,l.showDisplayName=d&&(!u||u===U.stringTrue),l.defaultValue=r.default_value,s&&(l.id+=s),l}return g(t,e),t}(Pr),Er=function(e){function t(t,r,n,i,o,a,s){return e.call(this,t,r,n,i,o,a,s)||this}return g(t,e),t}(br),Ir=function(e){function t(t,r,n,i,o){var a=e.call(this,M.page,t,r,n,i,o)||this;return a.displayName=r.displayName,a.keyPidlActions=r.keyPidlActions,a}return g(t,e),t}(yr),Sr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.textGroup,t,r,n,i,o)||this;return a.displayContent=r.displayContent,a}return g(t,e),t}(yr),Cr=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t,r,n,i,o,a)||this;s.getPropertyName=function(){return s.displayDescription.propertyName},s.getErrorMessage=function(e,t){var r,n=s.displayErrorMessages;if(n){if(t&&n.fromErrorCode)for(var i=0;i<n.fromErrorCode.length;i++){var o=n.fromErrorCode[i];if(o.errorCode===t){r=o.errorMessage;break}}else if(n.fromRegex)for(i=0;i<n.fromRegex.length;i++){var a=n.fromRegex[i];if(new RegExp(a.regex).test(e)){r=a.errorMessage;break}}r||(r=n.defaultErrorMessage)}return r},s.required=function(){return!(!0===s.dataDescription.is_optional)&&s.displayDescription.displayType!==gt.prefillControl};var l=s.displayDescription,d=l.displayName,u=l.showDisplayName,c=l.displayErrorMessages,p=l.displayLogo,m=l.maskDisplay,f=l.resolutionPolicy,y=l.displayHelpPosition,h=l.onfocusout,g=r.is_key,v=r.transformation,P=r.displayOnly,b=r.default_value,E=r.broadcastTo,I=r.sideEffects,S=r.onValidationFailed,C=r.usePreExistingValue;return Rn.isFormatStringExpressionPlaceholder(b)?s.defaultValueTemplate=b:s.defaultValue=b,s.displayName=d,s.showDisplayName=d&&(!u||u===U.stringTrue),s.isKeyProperty=!0===g,s.supportsDisplayTransformation=v&&!Rn.isNullOrUndefined(v.forDisplay),s.displayErrorMessages=c,s.displayLogo=p,s.maskDisplay=m,s.triggerPidlDownloadOnChange=s.isKeyProperty&&cr.doesKeyPropertyTriggerPidlDownload(s.dataDescription),s.resolutionPolicy=f||Et.always,s.displayOnly=P,s.displayHelpPosition=y,s.broadcastTo=E,s.sideEffects=I,s.onValidationFailed=S,s.usePreExistingValue=C,s.onfocusout=h,s}return g(t,e),t.prototype.updateModelElement=function(e,t){if(this.defaultValueTemplate&&(this.defaultValue=xn.getFormatStringExpressionValue(this.defaultValueTemplate,e),e.modelData&&this.defaultValue)){var r=e.modelData.getModelDataProperty(this.getPropertyName());r&&!r.getValue()&&r.setValue(this.defaultValue)}if(this.conditionalFields&&!Rn.isNullOrUndefined(this.conditionalFields.value)&&e&&e.resultData&&e.resultData.propertyUpdates){var n=xn.getConditionalFieldValue(this.conditionalFields.value,e,this);e.resultData.propertyUpdates.push({propertyName:this.getPropertyName(),propertyValue:n,propertyElement:this})}return this.updatePropertyElement(e,t)},t.prototype.updatePropertyElement=function(e,t){return!1},t}(fr),Dr=function(e){function t(t,r,n,i,o,a){var s=e.call(this,t,r,n,i,o,a)||this;s.firstElementIdSuffix=function(){return s.getFirstElementIdSuffix(s.possibleOptions)},s.getBindingData=function(e,t){if(s.dataCollectionSource&&s.possibleOptionsTemplate){var r=[];if(Rn.isArray(s.dataCollectionSource))for(var n=0,i=s.dataCollectionSource;n<i.length;n++){var o=i[n],a=xn.getPropertyExpressionValue(o,e);r.push.apply(r,a)}else r=xn.getPropertyExpressionValue(s.dataCollectionSource,e);if(s.filterDescription&&(r=xn.getFunctionExecutionResult(s.filterDescription,{modelData:e.modelData,contextData:r},t)),r&&Rn.isArray(r)&&r.length>0)return r}return[]},s.getPossibleOptionKey=function(e){return xn.getFormatStringExpressionValue(s.possibleOptionsTemplate.key,e)};var l=n.possibleOptions,d=n.possibleValues,u=n.dataCollectionSource,c=n.filterDescription,p=n.displaySelectionText,m=n.displayPropertyDescription,f=n.isSelectFirstItem,y=n.alwaysUpdateModelValue;if(s.possibleValues=d,s.possibleOptions=l,!s.possibleOptions&&d&&(s.possibleOptions=s.getPossibleOptions(d)),s.dataCollectionSource=u,s.filterDescription=c,s.displaySelectionText=p,s.description=m,s.isSelectFirstItem=f,s.selectedIndex=s.displaySelectionText?0:-1,s.alwaysUpdateModelValue=y,s.dataCollectionSource){var h=Object.keys(s.possibleOptions);h&&h.length&&Rn.isFormatStringExpressionPlaceholder(h[0])&&(s.possibleOptionsTemplate=s.possibleOptions[h[0]],s.possibleOptionsTemplate.key=h[0],s.possibleOptions={})}return s.isSelectFirstItem&&s.selectedIndex++,s}return g(t,e),t.prototype.updatePropertyElement=function(e,t){if(this.dataCollectionSource&&this.possibleOptionsTemplate){var r=[];if(Rn.isArray(this.dataCollectionSource))for(var n=0,i=this.dataCollectionSource;n<i.length;n++){var o=i[n],a=xn.getPropertyExpressionValue(o,e);r.push.apply(r,a)}else r=xn.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(r=xn.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:r},t));var s={},l=this.defaultValue;if(r&&r.length&&Rn.isArray(r))for(var d=0;d<r.length;d++){var u={modelData:e.modelData,contextData:r[d]},c=xn.getFormatStringExpressionValue(this.possibleOptionsTemplate.key,u);if(this.isSelectFirstItem&&Rn.isNullOrUndefinedOrWhiteSpaceString(l)&&(l=c,e.modelData)){var p=e.modelData.getModelDataProperty(this.getPropertyName());p&&p.setValue(c)}var m={};for(var f in this.possibleOptionsTemplate){var y=xn.getFormatStringExpressionValue(this.possibleOptionsTemplate[f],u);m[f]=Rn.isObject(y)?Rn.deepCopy(y):y}if(m.displayContent){var h=pr.createModelElementsFromDisplayDescriptions([m.displayContent],this.operationType,u,String(d));h.elements&&h.elements.length>=1&&(mr.updateModelElements(h.elements,u),m.displayContentContainer=h.elements[0])}m.pidlAction=m.pidlAction||{},m.pidlAction.context=r[d],s[c]=m}else t&&t.notifyNoSelectionOptionsFound(this.id,this.displayId,this.pidlIdentity,this.type);this.possibleOptions=s,this.hasNoDataToShow=0===Rn.keyCount(this.possibleOptions)}if(!this.hasNoDataToShow){var g=xn.getFunctionExecutionResult({functionName:"filterOptions"},{modelData:e.modelData,contextData:{propertyName:this.getPropertyName(),possible_values:this.dataDescription.possible_values,possibleValues:this.possibleValues,possibleOptions:this.possibleOptions}});if(g){var v=g.possible_values,P=g.possibleValues,b=g.possibleOptions;v&&(this.dataDescription.possible_values=v),P&&(this.possibleValues=P),b&&(this.possibleOptions=b)}}return this.displayDescription.disableSingleItemDropdown&&this.type===M.dropdown&&this.possibleOptions&&1===Rn.keyCount(this.possibleOptions)?(this.isDisabled=!0,this.defaultValue=this.defaultValue||Rn.getFirstKey(this.possibleOptions)):this.isDisabled=this.displayDescription.isDisabled,!1},t.prototype.getFirstElementIdSuffix=function(e){for(var t in e)return"_"+t},t.prototype.getPossibleOptions=function(e){var t={};for(var r in e)t[r]={displayText:e[r],isDisabled:void 0};return t},t}(Cr),kr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.dropdown,t,r,n,i,o)||this;return a.defaultValue&&(a.defaultValue=mr.normalizeValueToPossibleValues(a,a.defaultValue)),a}return g(t,e),t}(Dr),wr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.radio,t,r,n,i,o)||this;return a.defaultValue||(a.defaultValue=Rn.getFirstKey(a.possibleValues)),a}return g(t,e),t}(Dr),xr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.buttonList,t,r,n,i,o)||this;return a.findFirstValidPidlAction=function(e){for(var t,r=Rn.copyArray(null===(t=null===e||void 0===e?void 0:e.displayContentContainer)||void 0===t?void 0:t.children),n={};r.length;){var i=r.shift();if(!n[i.id]){if(n[i.id]=!0,i.pidlAction&&i.canBeRendered()){e.pidlAction=i.pidlAction;break}if(Qr(i))for(var o=null===i||void 0===i?void 0:i.children,a=0;a<(null===o||void 0===o?void 0:o.length);a++)r.push(o[a])}}},a}return g(t,e),t.prototype.updateModelElement=function(t,r){for(var n in e.prototype.updateModelElement.call(this,t,r),this.possibleOptions)this.findFirstValidPidlAction(this.possibleOptions[n])},t}(Dr),Tr=function(e){function t(t,r,n,i,o,a){var s=e.call(this,M.textBox,t,r,n,i,o)||this;s.getResolvedLogo=function(){return(s.pidlDocManager&&s.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},s.placeHolderText=function(){var e=s.displayDescription,t=e.displayPropertyDescription,r=e.displayExample;if(t){if(!s.showDisplayName||t!==s.displayDescription.displayName)return t}else if(r&&r.length>0)return r[0];return null},s.getTextBoxType=function(){var e=s.displayDescription,t=e.inputScope,r=e.maskInput;return t||(!0===r||"password"===s.dataDescription.type?"password":"text")};var l=r.maxLength,d=r.direction,u=r.textAlignment,c=r.displayTransformations;return s.displayTransformations=c,s.maxLength=l,s.direction=d,s.textAlignment=u,s.pidlDocManager=a,s}return g(t,e),t}(Cr),Rr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.checkBox,t,r,n,i,o)||this;return a.description=r.displayPropertyDescription,a}return g(t,e),t}(Cr),Fr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.filePicker,t,r,n,i,o)||this;return a.displayContent=r.displayContent,a}return g(t,e),t}(Cr),Ar=function(e){function t(t,r,n,i,o,a,s,l){var d=e.call(this,t,r,n,i,o,a)||this;return d.displayContentTemplate=n.displayContent,d.displayContent=xn.getFormatStringExpressionValue(d.displayContentTemplate,s),l&&(d.id+=l,d.displayId=d.id),d}return g(t,e),t.prototype.updateModelElement=function(e){return this.displayContent=xn.getFormatStringExpressionValue(this.displayContentTemplate,e),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceInfo&&this.pidlAction.context.resourceActionContext.resourceInfo.id&&(this.pidlAction.context.resourceActionContext.resourceInfo.id=xn.getFormatStringExpressionValue(this.pidlAction.context.resourceActionContext.resourceInfo.id,e)),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceObjPath&&(this.pidlAction.context.resourceActionContext.resource=xn.getPropertyExpressionValue(this.pidlAction.context.resourceActionContext.resourceObjPath,e)),this.type===M.hyperlink&&this.pidlAction&&Rn.isString(this.pidlAction.context)&&(this.pidlAction.context=xn.getFormatStringExpressionValue(this.pidlAction.context,e)),!1},t}(fr),Hr=function(e){function t(t,r,n,i,o,a,s,l){return e.call(this,t,r,n,i,o,a,s,l)||this}return g(t,e),t}(Ar),Or=function(e){function t(t,r,n,i,o,a,s){var l=e.call(this,M.button,t,r,n,i,o,a,s)||this;return l.tooltipText=r.tooltipText,l}return g(t,e),t}(Ar),Mr=function(e){function t(t,r,n,i,o,a,s){var l=e.call(this,M.audio,t,r,n,i,o,a,s)||this;return l.audioUrl=xn.convertBase64strIntoBlobUrl(r.audioUrl,"audio/mp3"),l}return g(t,e),t}(Ar),Nr=function(e){function t(t,r,n,i,o,a,s){var l=e.call(this,M.expression,t,r,n,i,o,a,s)||this;return l.expression=r.displayContent,l}return g(t,e),t.prototype.updateModelElement=function(e){var t;return this.displayContent=xn.getExpressionValue(this.expression,e),(null===(t=this.tags)||void 0===t?void 0:t.accessibilityNameExpression)&&(this.accessibilityName=xn.getExpressionValue(this.tags.accessibilityNameExpression,e)),!1},t}(Ar),Br=function(e){function t(t,r,n,i,o,a,s,l){var d=e.call(this,t,r,n,i,o,a)||this;return d.sourceUrlTemplate=n.sourceUrl,d.sourceUrl=xn.getFormatStringExpressionValue(d.sourceUrlTemplate,s),n.codepoint&&(d.codepoint=Number(n.codepoint)),d.accessibilityName=xn.getFormatStringExpressionValue(d.accessibilityName,s),l&&(d.id+=l,d.displayId=d.id),d}return g(t,e),t}(fr),Vr=function(e){function t(t,r,n,i,o,a,s){var l=e.call(this,t,r,n,i,o,a)||this;return s&&(l.id+=s,l.displayId=l.id),l}return g(t,e),t}(fr),Lr=function(e){function t(t,r,n,i,o,a,s){var l=e.call(this,t,r,n,i,o,a)||this;return s&&(l.id+=s,l.displayId=l.id),l}return g(t,e),t}(fr),Ur=function(e){function t(t,r,n,i,o,a,s){var l=e.call(this,M.logo,t,r,n,i,o)||this;return l.getResolvedLogo=function(){return(l.pidlDocManager&&l.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},l.getAllLogos=function(){return l.pidlDocManager.getAllLogos()},l.sourceUrl=r.sourceUrl,l.pidlDocManager=a,s&&(l.id+=s,l.displayId=l.id),l}return g(t,e),t}(fr),jr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.pidlContainer,t,r,n,i,o)||this;return a.linkedPidlId=r.linkedPidlId,a.submitOrder=r.submitOrder,a}return g(t,e),t}(fr),_r=function(e){function t(t,r,n,i,o){var a=e.call(this,M.pidlInstance,t,r,n,i,o)||this;return a.pidlInstance=r.pidlInstance,a}return g(t,e),t}(fr),zr=function(){this.isOptional=!1,this.resolutionPolicy=Et.always},Gr=function(e){function t(t,r,n,i,o,a){var s=e.call(this,M.secureProperty,t,r,n,i,o)||this;s.placeHolderText=function(){var e=s.displayDescription,t=e.displayPropertyDescription,r=e.displayExample;if(t){if(!s.showDisplayName||t!==s.displayDescription.displayName)return t}else if(r&&r.length>0)return r[0];return null},s.getResolvedLogo=function(){return(s.pidlDocManager&&s.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl};var l=r.sourceUrl,d=r.width,u=r.height,c=r.messageTimeout,p=r.frameName,m=r.displayName,f=r.propertyName,y=r.displayLogo;return s.sourceUrl=Ct.createFromTemplate(l),s.width=d,s.height=u,s.messageTimeout=c,s.frameName=p,s.displayName=m,s.propertyName=f,s.displayLogo=y,s.pidlDocManager=a,s}return g(t,e),t.prototype.validate=function(){return this.validationPromise()},t.prototype.prepareForSubmit=function(e){return this.submitPromise(e)},t}(Cr),Kr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.expressCheckoutButton,t,r,n,i,o)||this,s=r.sourceUrl,l=r.displayContent,d=r.width,u=r.height,c=r.frameName,p=r.payload,m=r.messageTimeout;return a.sourceUrl=s,a.displayContent=l,a.width=d,a.height=u,a.frameName=c,a.payload=p,a.messageTimeout=m,a}return g(t,e),t}(Ar),Wr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.iFrame,t,r,n,i,o)||this,s=r.sourceUrl,l=r.displayContent,d=r.width,u=r.height,c=r.expectedClientActionId,p=r.messageTimeout,m=r.messageTimeoutClientAction,f=r.useAuth,y=r.loadingMessage;return a.sourceUrl=s,a.displayContent=l,a.width=d,a.height=u,a.expectedClientActionId=c,a.messageTimeout=p,a.messageTimeoutClientAction=m,a.useAuth=f,a.loadingMessage=y,a}return g(t,e),t}(Ar),qr=function(e){function t(t,r,n,i,o){var a=e.call(this,M.challengeIFrame,t,r,n,i,o)||this,s=r.sourceUrl,l=r.displayContent,d=r.width,u=r.height,c=r.expectedClientActionId,p=r.messageTimeout,m=r.messageTimeoutClientAction,f=r.useAuth,y=r.loadingMessage;return a.sourceUrl=s,a.displayContent=l,a.width=d,a.height=u,a.expectedClientActionId=c,a.messageTimeout=p,a.messageTimeoutClientAction=m,a.useAuth=f,a.loadingMessage=y,a}return g(t,e),t}(Ar);function Jr(e){return!Rn.isNullOrUndefined(e)&&"type"in e}function Qr(e){return Jr(e)&&(e.type===M.page||e.type===M.group||e.type===M.textGroup||e.type===M.dataCollectionBindingGroup||e.type===M.captcha)}function Zr(e){return Jr(e)&&e.type===M.captcha}function Yr(e){return Jr(e)&&e.type===M.page}function Xr(e){return Jr(e)&&(e.type===M.dropdown||e.type===M.radio||e.type===M.buttonList)}function $r(e){return Jr(e)&&e.type===M.dropdown}function en(e){return $r(e)&&e.displayType===gt.prefillControl}function tn(e){return Jr(e)&&e.type===M.pidlContainer}function rn(e){return Jr(e)&&e.type===M.pidlInstance}function nn(e){return Jr(e)&&e.type===M.image}function on(e){return Jr(e)&&e.type===M.logo}function an(e){return Jr(e)&&e.type===M.button}function sn(e){return Jr(e)&&e.type===M.filePicker}function ln(e){return Jr(e)&&e.type===M.checkBox}function dn(e){return ln(e)&&e.displayType===gt.prefillControl}function un(e){return Jr(e)&&(e.type===M.page||e.type===M.group||e.type===M.dataCollectionBindingGroup)}function cn(e){return Jr(e)&&e.type===M.group}function pn(e){return Jr(e)&&e.type===M.textGroup}function mn(e){return Jr(e)&&e.type===M.textBox}function fn(e){return Jr(e)&&e.type===M.buttonList}function yn(e){return Jr(e)&&e.type===M.radio}function hn(e){var t=[M.heading,M.subheading,M.text,M.hyperlink];return Jr(e)&&Rn.contains(t,e.type)}function gn(e){return Jr(e)&&e.type===M.dataCollectionBindingGroup}function vn(e){return Jr(e)&&e.type===M.expression}function Pn(e){return Jr(e)&&e.type===M.iFrame}function bn(e){return Jr(e)&&e.type===M.challengeIFrame}function En(e){return Jr(e)&&e.type===M.secureProperty}function In(e){return Jr(e)&&e.type===M.expressCheckoutButton}function Sn(e){return Jr(e)&&e.type===M.separator}function Cn(e){return Jr(e)&&e.type===M.audio}function Dn(e){return Jr(e)&&e.isProperty()}var kn=Object.freeze({__proto__:null,ModelElement:fr,ContainerElement:yr,GenericGroupElement:hr,GroupElement:gr,DataCollectionBindingGroupElement:vr,CaptchaContainerElement:Pr,GenericCaptchaElement:br,CaptchaElement:Er,PageElement:Ir,TextGroupElement:Sr,PropertyElement:Cr,SelectionElement:Dr,DropdownElement:kr,RadioElement:wr,ButtonListElement:xr,TextBoxElement:Tr,CheckBoxElement:Rr,FilePickerElement:Fr,GenericTextElement:Ar,TextElement:Hr,ButtonElement:Or,AudioElement:Mr,ExpressionElement:Nr,ImageElement:Br,SeparatorElement:Vr,SpinnerElement:Lr,LogoElement:Ur,PidlContainer:jr,PidlInstance:_r,SecurePropertyInitializations:zr,SecurePropertyElement:Gr,ExpressCheckoutButtonElement:Kr,IFrameElement:Wr,ChallengeIFrameElement:qr,isModelElement:Jr,isContainerElement:Qr,isCaptchaElement:Zr,isPageElement:Yr,isSelectionElement:Xr,isDropdownElement:$r,isPrefillDropdownElement:en,isPidlContainerElement:tn,isPidlInstanceElement:rn,isImageElement:nn,isLogoElement:on,isButtonElement:an,isFilePickerElement:sn,isCheckBoxElement:ln,isPrefilledCheckBoxElement:dn,isPageOrGroupOrDataCollectionBindingGroup:un,isGroupElement:cn,isTextGroupElement:pn,isTextBoxElement:mn,isButtonListElement:fn,isRadioElement:yn,isTextElement:hn,isDataCollectionBindingGroup:gn,isExpressionElement:vn,isIFrameElement:Pn,isChallengeIFrameElement:bn,isSecurePropertyElement:En,isExpressCheckoutButtonElement:In,isSeparatorElement:Sn,isAudioElement:Cn,isPropertyElement:Dn}),wn=function(){function e(){var e=this;this.extend=ut,this.getSelectElementType=function(e){switch(e){case bt.radio:return M.radio;case bt.buttonList:return M.buttonList;default:return M.dropdown}},this.getErrorDetailsFromPidl=function(t,r){if(t&&r){var n=r[t];if(n&&n.Target)return e.extend(!0,n,{code:t,target:n.Target,message:n.ErrorMessage})}},this.processServerError=function(t,r,n){var i=[];if(t&&r&&r.length)for(var o=0;o<r.length;o++){var a=e.getFormatStringExpressionValue(r[o],{contextData:t}),s=e.getErrorDetailsFromPidl(a,n);if(s){i.push(s);break}}return i},this.processPimsPxError=function(t,r){var n=[];if(t)if(t.details&&t.details.length)for(var i=0;i<t.details.length;i++){var o=t.details[i];o&&n.push(o)}else{var a=e.getErrorDetailsFromPidl(t.code,r);a&&n.push(a)}return n},this.updatePidlDocUrlParamHelper=function(e,t,r){if(e&&e.parameters){if(e.parameters[t])return!Rn.equalsIgnoreCase(e.parameters[t],r)&&(e.parameters[t]=r,!0);var n=pe[t];return n&&e.parameters[n]?!Rn.equalsIgnoreCase(e.parameters[n],r)&&(e.parameters[n]=r,!0):(e.parameters[t]=r,!0)}return!1},this.s4=function(){return Math.floor(65536*(Math.random()+1)).toString(16).substring(1)},this.getAt=function(e,t){return e?e[t]:null},this.guid=function(){return e.s4()+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+e.s4()+e.s4()},this.parseJSON=function(e){var t={succeeded:!0,value:null};try{t.value=JSON.parse(e)}catch(r){t.value=r.message,t.succeeded=!1}return t},this.getHostName=function(e){if(e)return(e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0]).toLowerCase()},this.getBoolValue=function(e){var t=!1;Rn.isString(e)?t="true"===e.toLowerCase():t=e;return t},this.getStringValue=function(e){for(var t="",r=0;r<e.length;++r)t+=e[r],t+=" ";return t.trim()},this.getModelElementType=function(t,r){var n={};switch(r.displayType){case gt.page:n.type=M.page;break;case gt.group:n.type=M.group;break;case gt.captcha:n.type=M.captcha;break;case gt.audio:n.type=M.audio;break;case gt.textGroup:n.type=M.textGroup;break;case gt.heading:n.type=M.heading;break;case gt.subheading:n.type=M.subheading;break;case gt.text:n.type=M.text;break;case gt.hyperlink:n.type=M.hyperlink;break;case gt.image:n.type=M.image;break;case gt.logo:n.type=M.logo;break;case gt.prefillControl:r.selectType===bt.checkBox?n.type=M.checkBox:r.selectType===bt.dropDown?n.type=M.dropdown:n.type=M.unknown;break;case gt.property:t?Rt(r)&&r.possibleOptions?n.type=e.getSelectElementType(r.selectType):"bool"===t.type?n.type=M.checkBox:xt(r)?n.type=M.filePicker:n.type=M.textBox:n.error=new ir.unexpectedError(or.displayElementPointingToMissingDataProperty,[r.displayId,r.propertyName]);break;case gt.button:n.type=M.button;break;case gt.expression:n.type=M.expression;break;case gt.pidlContainer:n.type=M.pidlContainer;break;case gt.pidlInstance:n.type=M.pidlInstance;break;case gt.dataCollectionBindingGroup:n.type=M.dataCollectionBindingGroup;break;case gt.iFrame:n.type=M.iFrame;break;case gt.challengeIframe:n.type=M.challengeIFrame;break;case gt.expressCheckoutButton:n.type=M.expressCheckoutButton;break;case gt.secureProperty:n.type=M.secureProperty;break;case gt.separator:n.type=M.separator;break;case gt.spinner:n.type=M.spinner;break;default:n.type=M.unknown}return n},this.getPidlOperationType=function(e){switch(e){case _.addAddress:case _.addPaymentInstrument:case _.addResource:case _.handleChallenge:return ct.add;case _.collectResourceInfo:return ct.renderPidlPage;case _.selectPaymentInstrument:case _.selectResource:return ct.selectInstance;case _.selectResourceType:return ct.select;case _.selectSingleResource:return ct.selectSingleInstance;case _.updateProfile:case _.updateResource:return ct.update}},this.createObjectWithNonNullProperties=function(e){var t=null;for(var r in e)Rn.isNullOrUndefined(e[r])||(t||(t={}),t[r]=e[r]);return t},this.updatePidlDocUrlParams=function(t,r){var n=!1;for(var i in r){var o=cr.getKeyPropertyPidlDownloadUrlParam(r[i].propertyDescriptor,i),a=r[i].getValue(r[i].propertyDescriptor);if(o){var s=e.updatePidlDocUrlParamHelper(t,o,a);n=n||s}}return n},this.getRetryableTargettedErrors=function(e,t){if(e&&e.length)for(var r=0;r<e.length;r++){var n=e[r],i=!0;if(n.target||(i=!1),i&&t&&n.code){t[n.code]||(t[n.code]={retryCount:0});var o=n.retryPolicy;o&&o.type===It.limitedRetry&&o.context&&!Rn.isUndefined(o.context.maxRetryCount)&&n.retryPolicy.context.maxRetryCount<=t[n.code].retryCount&&(i=!1)}i?t&&n.code&&t[n.code].retryCount++:(Rn.removeFromArray(e,r,1),r--)}return e},this.createParseErrorResponse=function(t,r,n,i,o){var a=[],s=void 0,l=void 0,d=void 0;if(i){var u=e.parseJSON(i.failureContent),c=u.succeeded?u.value:i.failureObject;if(d=i.failureContent,c){l=c;var p=c.innererror||c;switch(jt.getErrorSourceFromUrl(t)){case An.virtualEndpoints.pifdProfile.endpoint:case An.virtualEndpoints.pifdAddress.endpoint:r=r||["({contextData.innererror.code})","({contextData.InnerError.ErrorCode})"];break;case An.virtualEndpoints.jarvisAddress.endpoint:r=r||["({contextData.error_code}.{contextData.parameters.property_name})","({contextData.error_code})"]}if(a=r?e.processServerError(c,r,n):e.processPimsPxError(p,n),a=e.getRetryableTargettedErrors(a,o),p&&p.clientAction&&(s=p.clientAction),!d)try{d=JSON.stringify(c)}catch(m){}}}else i=i||{status:w.Error};return{jsonResponse:l,clientAction:s,status:i.httpStatus,statusText:i.httpStatusText,responseText:d,errorMessage:i.errorMessage,targettedInnerErrors:a}},this.convertCustomErrorsInSdkErrors=function(t,r){for(var n=[],i=0;i<t.length;i++){var o=t[i],a=null;if(o.message?a={message:o.message,target:o.target,code:o.code}:o.code&&(a=e.getErrorDetailsFromPidl(o.code,r)),!a)return null;n.push(a)}return n},this.parseCustomSubmitError=function(t,r,n,i,o,a){return t||r&&0!==r.length?r&&0!==r.length?{jsonResponse:t,targettedInnerErrors:e.convertCustomErrorsInSdkErrors(r,o)}:e.createParseErrorResponse(n,i,o,{status:w.Error,failureContent:t},a):{clientAction:{type:ft.None}}},this.parseServerError=function(t,r,n,i,o){return e.createParseErrorResponse(t,r,n,i,o)},this.createServerError=function(t,r,n,i,o){var a=e.parseServerError(r,null,o,n);return new ir.serverError(t,r,a.jsonResponse,n.httpStatus,n.httpStatusText,n.failureContent,i)},this.createServerErrorFromIPxServiceError=function(e,t){var r=JSON.stringify(t);return new ir.serverError(e,null,t,null,null,r,[])},this.createPropertyErrors=function(e,t,r,n,i){if(t){var o=new ir.groupValidationFailedError(or.propertyValidationFailed,n.code,t,[t,n.code]);o.message=n.message,i.push(o),r=null}for(var a=0;a<e.length;a++){var s=e[a],l=new ir.propertyValidationFailedError(or.propertyValidationFailed,n.code,s,[s,n.code]);l.message=s===r?n.message:"",i.push(l)}},this.convertErrorToString=function(e){try{if(e instanceof Error)return e.message;if("object"!==typeof e||null===e)return String(e);try{return JSON.stringify(e,null,2)}catch(t){return"Error converting object to string"}}catch(r){return"Error converting error to string"}},this.createResponseHeadersDictionary=function(e){var t;e&&(t=e.split("\r\n").reduce((function(e,t,r){var n=t.split(": ");return n[0]&&n[1]&&(e[Rn.toLowerCase(n[0])]=Rn.toLowerCase(n[1])),e}),{}));return t},this.isTagPrefixKnown=function(e){for(var t in xe)if(Rn.startsWith(e,xe[t]))return!0;return!1},this.unregisterFromOrchestrator=function(e){var t;try{t=window.pidlOrchestrator}catch(r){return}t&&t.unregisterPidlHook&&t.unregisterPidlHook(e)},this.registerToOrchestrator=function(e){var t;try{t=window.pidlOrchestrator}catch(r){return-1}return t&&t.registerPidlHook?t.registerPidlHook(e):null},this.broadcastPropertyValueUpdate=function(e,t,r,n,i){var o;try{o=window.pidlOrchestrator}catch(a){}return o&&o.broadcastPropertyValueUpdate?o.broadcastPropertyValueUpdate(e,t,r,n,i):Promise.resolve()},this.getGlobalPropertyValue=function(e,t){var r;try{r=window.pidlOrchestrator}catch(n){}if(r&&r.getGlobalPropertyValue)return r.getGlobalPropertyValue(e,t)},this.getFormatStringExpressionValue=function(t,r,n){if(r&&Rn.isFormatStringExpressionPlaceholder(t)){for(var i=t.substring(1,t.length-1),o=Rn.getProperties(i,"<|","|>"),a=0;a<o.length;a++){var s=o[a],l=s.split("|"),d=l[0],u=l[1],c=void 0;if(u){var p=u.split(";");c=[];for(var m=0;m<p.length;m++)c[m]=e.getPropertyExpressionValue(p[m],r)}var f=e.getFunctionExecutionResult({functionName:d,arguments:c},r);f=Rn.isNullOrUndefined(f)?"":f,i=i.replace("<|"+s+"|>",f)}var y=Rn.getProperties(i,"{","}");for(a=0;a<y.length;a++){var h="{"+y[a]+"}",g=e.getPropertyExpressionValue(h,r)||"";n&&(g=n(g)),i=i.replace(h,g)}return i}return t},this.getConditionalFieldValue=function(t,r,n){if(r){if(Rn.isFormatStringExpressionPlaceholder(t))return e.getFormatStringExpressionValue(t,r);if(Rn.isDataBindingPlaceholder(t))return e.getPropertyExpressionValue(t,r,Xr(n));if(Rn.isFunctionCallPlaceholder(t)){var i=t.substring(2,t.length-2),o=i.indexOf("|"),a=i.substring(0,o),s=i.substring(o+1),l=void 0;if(s){var d=/\<\|([^<]*?)\|\>/gm,u=s;do{for(var c=d.exec(s);null!==c;){var p=e.getConditionalFieldValue(c[0],r,n);u=u.replace(c[0],p),c=d.exec(s)}s=u}while(null!==s.match(d));var m=s.split(";");l=[];for(var f=0;f<m.length;f++)l[f]=e.getConditionalFieldValue(m[f],r,n)}return e.getFunctionExecutionResult({functionName:a,arguments:l},r)}}return t},this.getFormatInstanceExpressionValue=function(e,t){if(t&&Rn.isFormatStringExpressionPlaceholder(e))for(var r=e.substring(1,e.length-1),n=Rn.getProperties(r,"{","}"),i=0;i<n.length;i++)if(n[i].indexOf(".")<0&&n[i]in t)return t[n[i]];return null},this.getExpressionValue=function(t,r){for(var n=t,i=Rn.getProperties(t,"(",")"),o=0;o<i.length;o++){var a=Rn.getProperties(i[o],"{","}")[0],s=e.getPropertyExpressionValue("{"+a+"}",r),l=void 0,d=void 0;s?(l=(n=n.replace("{"+a+"}",s)).indexOf("("),d=(n=n.substring(0,l)+n.substring(l+1,n.length)).indexOf(")"),n=n.substring(0,d)+n.substring(d+1,n.length)):(l=n.indexOf("("),d=n.indexOf(")"),n=n.substring(0,l)+n.substring(d+1,n.length))}return n},this.applyRegexTransformation=function(e,t,r){if(!Rn.isNullOrUndefined(e)&&t&&r)return e.replace(RegExp(t),r).trim()},this.applyDisplayTransformation=function(t,r){var n=r;if(t.type===ht.regex)(Rn.isString(r)||Rn.isNumber(r))&&(n=e.applyRegexTransformation(r.toString(),t.inputRegex,t.replacementPattern)||n);else n=void 0;return n},this.getTextContent=function(t){if(-1===t.indexOf(_e.link))return t;var r="",n=e.parseDisplayContent(t);if(1===n.length)return t;for(var i=0;i<n.length;i++){var o=n[i];-1===o.indexOf(_e.link)?r+=o:r+=o.replace(o,o.match(/\[(.*?)\]/)[1])}return r},this.parseDisplayContent=function(e){for(var t=0,r=e.indexOf(_e.link,t),n=-1,i=-1,o=[];-1!==r;){n=-1;for(var a=r;a<=r&&a>=0;a--)if("["===e[a]){n=a;break}if(-1===n)return(o=[]).push(e),o;o.push(e.substring(i,n)),i=-1;for(var s=r;s>=r&&s<e.length;s++)if(")"===e[s]){i=s+1;break}if(-1===i)return(o=[]).push(e),o;if(o.push(e.substring(n,i)),t=r+2,-1===(r=e.indexOf(_e.link,t))){var l=e.substring(i,e.length);void 0!==l&&""!==l&&o.push(l)}}return o},this.convertBase64strIntoBlobUrl=function(e,t){e=e.replace("data:audio/mp3;base64,","");var r="";try{for(var n=window.atob(e),i=new ArrayBuffer(n.length),o=new Uint8Array(i),a=0;a<n.length;a++)o[a]=n.charCodeAt(a);var s=new Blob([o],{type:t});r=URL.createObjectURL(s)}catch(l){}return r},this.verifyClientSupported=function(e){var t,r=v({},e);r.parameters=v({},e.parameters);var n=r.parameters.allowedPaymentMethods;if((null===(t=null===window||void 0===window?void 0:window.paymentAgent)||void 0===t?void 0:t.clientSupported)&&(null===n||void 0===n?void 0:n.length)){var i=window.paymentAgent.clientSupported(n);r.parameters.allowedPaymentMethods=i}return r},this.getFlightHeaders=function(e){var t;return((null===(t=null===e||void 0===e?void 0:e.getHeaders)||void 0===t?void 0:t.call(e,{},""))||{})[ee.msFlight]||""}}return e.prototype.getPropertyExpressionValue=function(e,t,r){if(void 0===r&&(r=!1),t&&Rn.isString(e)&&Rn.isDataBindingPlaceholder(e)){var n=e.substring(1,e.length-1);if(n.indexOf(".")<0)return r?t.modelData&&t.modelData.getPropertyValue(n):t.modelData&&(t.modelData.getDisplayPropertyValue(n)||t.modelData.getPropertyValue(n));var i=Rn.getDataSourceDetails(n),o=null;switch(i.dataSourceName){case Me.contextData:o=t.contextData;break;case Me.partnerData:o=t.modelData&&t.modelData.getPartnerData();break;default:o=t.modelData&&t.modelData.getAllDataSources()}return o&&i.jpath?Rn.getPropertyValueByJPath(o,i.jpath):null}return e},e.prototype.getFunctionExecutionResult=function(e,t,r){if(e&&e.functionName){var n={contextData:t&&t.contextData,partnerData:t&&t.modelData&&t.modelData.getPartnerData(),dataSources:t&&t.modelData&&t.modelData.getAllDataSources(),model:t&&t.model};e.arguments&&(n.arguments=e.arguments);var i=void 0;try{i=window.pidlResourceHelpers}catch(l){}if(i&&i.executeExtensionFunc){var o=i.executeExtensionFunc(e.functionName,n);if(r&&"filterPaymentInstruments"===e.functionName&&Rn.isArray(o)){var a={pidlDocInfo:n.partnerData&&n.partnerData.inputParameters&&n.partnerData.inputParameters.pidlDocInfo},s=o.map((function(e){return{id:e&&e.id,paymentMethodType:e&&e.paymentMethod&&e.paymentMethod.paymentMethodType,paymentMethodFamily:e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily}}));r.resourceHelpersFunctionExecuted(e.functionName,a,s)}return o}}return null},e}(),xn=new wn,Tn=function(){function e(){var e=this;this.getType=function(e){return Object.prototype.toString.call(e)},this.isArray=function(t){return t&&"[object Array]"===e.getType(t)},this.isObject=function(t){return t&&"[object Object]"===e.getType(t)},this.isFunction=function(t){return t&&"[object Function]"===e.getType(t)},this.isString=function(e){return"string"===typeof e},this.isBool=function(e){return"boolean"===typeof e},this.isNumber=function(e){return"number"===typeof e},this.isNullOrEmptyObject=function(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},this.isEmptyString=function(t){return e.isString(t)&&0===t.length},this.isWhiteSpaceString=function(t){return e.isString(t)&&0===t.trim().length},this.isNull=function(e){return!e&&null===e},this.isUndefined=function(e){return"undefined"===typeof e},this.isNullOrUndefined=function(t){return e.isNull(t)||e.isUndefined(t)},this.isNullOrUndefinedOrWhiteSpaceString=function(t){return e.isNullOrUndefined(t)||e.isEmptyString(t)||e.isWhiteSpaceString(t)},this.contains=function(t,r){return e.indexOf(t,r)>=0},this.indexOf=function(e,t){for(var r=0;r<e.length;r++)if(e[r]===t)return r;return-1},this.includes=function(t,r){return!e.isNullOrUndefined(t)&&t.indexOf(r)>=0},this.keyCount=function(t){if(e.isObject(t))return Object.keys(t).length},this.getFirstKey=function(t){return e.isObject(t)&&e.keyCount(t)>0&&Object.keys(t)[0]||void 0},this.serialize=function(t){if(e.isObject(t)||e.isArray(t))try{return JSON.stringify(t)}catch(r){return r&&r.message}return null===t||void 0===t?"":t},this.addSlashes=function(e){return e=e.replace(/[\\\'\"]/g,"\\$&")},this.format=function(t,r){return e.isString(t)?((r=r||[])["{"]="{",r["}"]="}",t.replace(/{({|}|-?[0-9]+)}/g,(function(t){return e.addSlashes(e.serialize(r[t.substring(1,t.length-1)]))}))):t},this.attachAffixes=function(t,r,n){var i=e.isNullOrUndefined(t)?r:t+r;return e.isNullOrUndefined(n)?i:i+n},this.removeAffixes=function(t,r,n){if(e.isNullOrUndefined(r))return r;var i=e.isNullOrUndefined(t)?0:t.length,o=e.isNullOrUndefined(n)?r.length:r.length-n.length;return r.substring(i,o)},this.startsWithIgnoreCase=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length).toLowerCase()===t.toLowerCase())},this.startsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length)===t)},this.endsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(e.length-t.length)===t)},this.isDataBindingPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"{")&&e.endsWith(t,"}")},this.isFormatStringExpressionPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"(")&&e.endsWith(t,")")},this.isFunctionCallPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"<|")&&e.endsWith(t,"|>")},this.getDataSourceDetails=function(e){var t=e,r=void 0,n=e.indexOf(".");return n>0&&(t=e.substr(0,n),r=e.substr(n+1)),{dataSourceName:t,jpath:r}},this.getPropertyValueByJPath=function(t,r){e.startsWith(r,"{$.")?r=r.substring(3,r.length-1):e.startsWith(r,"{")&&(r=r.substring(1,r.length-1));for(var n=(r=(r=r.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),i=0;i<n.length;i++){var o=n[i];if(!t||!(o in t))return;t=t[o]}return t},this.getDataCollectionSource=function(e){return e.split(".")[0]},this.getDataCollectionName=function(e){return e.split(".")[1]||e},this.toString=function(t){return!e.isUndefined(t)&&t.toString&&(t=t.toString()),t},this.toLowerCase=function(t){return e.isString(t)&&t.toLowerCase?t.toLowerCase():t},this.toUpperCase=function(t){return e.isString(t)&&t.toUpperCase?t.toUpperCase():t},this.equalsIgnoreCase=function(t,r){return e.toLowerCase(t)===e.toLowerCase(r)},this.escapeCharactersForHtml=function(e){return e&&e.replace?e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):e},this.replaceCharactersForHtml=function(e){return e&&e.replace?e.replace(/(^[^A-Za-z])/,"a").replace(/([^A-Za-z0-9-_])/g,"_"):e},this.getProperties=function(e,t,r){for(var n=[],i=-1,o=t.length,a=r.length;;){var s=e.indexOf(t,-1===i?0:i+a);if(-1===s)break;if(-1===(i=e.indexOf(r,s+o)))break;n.push(e.substr(s+o,i-s-o))}return n},this.boolify=function(t){return e.isString(t)?!e.equalsIgnoreCase(t,"false")&&!e.isEmptyString(t):!!t},this.deepCopy=function(e,t){return t=t||{},e&&xn.extend(!0,t,e)||{}},this.mergeObjectArray=function(e){var t={};if(e&&e.length)for(var r=0;r<e.length;r++)xn.extend(t,e[r]);return t},this.removeFromArray=function(e,t,r){e&&e.splice(t,r)},this.getKeys=function(e){return e?Object.keys(e):[]},this.getValues=function(e){return e?Object.keys(e).map((function(t){return e[t]})):[]},this.filter=function(t,r){e.invokeIf(t,(function(e){return!(r||function(){return!0})(e)}),(function(e){t.splice(e,1)}))},this.objectEquals=function(t,r){if(!t||!r||e.keyCount(t)!==e.keyCount(r))return!1;for(var n in t)if(t[n]!==r[n])return!1;return!0},this.bothNull=function(e,t){return!(e||t)},this.onlyOneNull=function(e,t){return!(e&&t)}}return e.prototype.copyArray=function(e){return e&&e.slice()||[]},e.prototype.invokeIf=function(e,t,r){if(e&&t)for(var n=e.length;n--;)t(e[n])&&r(n)},e.prototype.find=function(e,t){if(e&&t)for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]},e}(),Rn=new Tn,Fn=function(){var e=this;this.serviceEndpoints={},this.currentEnv="prod",this.virtualEndpoints={billingAuth:{description:"Billing Auth Service",endpoint:"billingauth-endpoint",name:"billingauth",operation:"POST Tax ID"},bsxCommerce:{description:"BSX Commerce Service",endpoint:"bsxcommerce-endpoint",name:"bsxcommerce",operation:"GET MC PI"},hapi:{description:"HAPI Service",endpoint:"hapi-endpoint",name:"hapi",operation:"POST Tax ID"},jarvis:{description:"Jarvis FD",endpoint:"jarvis-endpoint",name:"jarvis",operation:"POST Jarvis"},jarvisAddress:{description:"Jarvis FD",endpoint:"jarvis-address-endpoint",name:"jarvisaddress",operation:"POST Jarvis Address"},paypalEncryptJS:{description:"Static Resource Service",endpoint:"paypalencryptjs-endpoint",name:"paypalencrypt",operation:"Download Paypal Encrypt JS"},pidl:{description:"PIDL Service",endpoint:"pidl-endpoint",name:"pidl",operation:"GET PIDL"},pidlEdge:{description:"PIDL Service on Edge",endpoint:"pidledge-endpoint",name:"pidledge",operation:"GET PIDL on Edge"},pifdBackend:{description:"PIFD Backend",endpoint:"pifdbackend-endpoint",name:"pifdbackend",operation:"PIFD operation on PIFDBackEnd"},pifd:{description:"Payment Instrument FD",endpoint:"pifd-endpoint",name:"pifd",operation:"POST PIDL"},pifdEdge:{description:"Payment Instrument FD on Edge",endpoint:"pifdedge-endpoint",name:"pifdedge",operation:"PIFD operation on Edge"},pifdAddress:{description:"Payment Instrument FD",endpoint:"pifd-address-endpoint",name:"pifdaddress",operation:"POST Address PIDL"},pifdProfile:{description:"Payment Instrument FD",endpoint:"pifd-profile-endpoint",name:"pifdprofile",operation:"POST Profile PIDL"},pifdPx:{description:"Payment Instrument FD",endpoint:"pifd-px-endpoint",name:"pifdpx",operation:"PIFD PX"},redirection:{description:"Redirection Service",endpoint:"redirection-endpoint",name:"redirection",operation:"Redirect"},redirectionv2:{description:"Redirection Service",endpoint:"redirectionv2-endpoint",name:"redirection",operation:"Redirect"},resource:{description:"Resource Service",endpoint:"resource-endpoint",name:"resource",operation:"GET Resource"},tokenization:{description:"Tokenization Service",endpoint:"tokenization-endpoint",name:"tokenization",operation:"Tokenize User Input"},transformation:{description:"Transformation Service",endpoint:"transformation-endpoint",name:"transformation",operation:"Transform User Input"},validation:{description:"Validation Service",endpoint:"validation-endpoint",name:"validation",operation:"Validate User Input"},commercemgmt:{description:"Commerce Management Endpoint",endpoint:"commercemgmt-endpoint",name:"commercemgmt",operation:"Commerce Management"},encryptJS:{description:"Static Resource Service",endpoint:"encryptjs-endpoint",name:"encrypt",operation:"Download external service specific Encrypt JS"},msrCryptoJS:{description:"Static Resource Service",endpoint:"msrcryptojs-endpoint",name:"msrcrypto",operation:"Download MSR Crypto JS"},staticResources:{description:"Static Resource Service",endpoint:"staticResources-endpoint",name:"staticresources",operation:"Download static resources"},styleHintDefsJson:{description:"Static Resource Service",endpoint:"stylehintdefsjson-endpoint",name:"staticresources",operation:"Download styleHintDefs and baseStyleHintDefs"},tokenPolicy:{description:"Token Policy Service",endpoint:"tops-endpoint",name:"tokenpolicy",operation:"Verify CSV"},purchaseFrontDoor:{description:"Purchase FrontDoor Service",endpoint:"purchase-endpoint",name:"purchasefrontdoor",operation:"Apply CSV to user account"},payeeTaxProfile:{description:"Payee Tax Profile PIDL Service",endpoint:"payeetaxprofile-endpoint",name:"payeetaxprofile",operation:"Payee Tax Profile PIDL Service"},msRewards:{description:"MS Rewards PIDL Service",endpoint:"pidl-endpoint",name:"msrewards",operation:"GET MS Rewards PIDL"},securePx:{description:"Secure PX Service",endpoint:"securepx-endpoint",name:"securepx",operation:"Secure field value handler"},provisionWalletToken:{description:"Wallet Token",endpoint:"pifd-endpoint",name:"pifd",operation:"POST Wallet Token"},gpex:{description:"Generic PIDL Experience Service",endpoint:"gpex-endpoint",name:"gpex",operation:"Address Tax Profile PIDL Service"},challengeUI:{description:"Challenge UI PIDL Service",endpoint:"challengeui-endpoint",name:"challengeui",operation:"Challenge UI PIDL Service"}},this.updateEndpoints=function(t){var r,n={};e.currentEnv=(null===(r=null===t||void 0===t?void 0:t.toLowerCase)||void 0===r?void 0:r.call(t))||"prod","int"===t?(n.billingAuth="billingapi.cp.microsoft-int.com",n.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",n.hapi="commerceapi.officeppe.net/v1",n.jarvis="jcmsdf.account.microsoft-int.com",n.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",n.staticResources="pmservices.cp.microsoft-int.com",n.pifdBackend="pifd.cp.microsoft-int.com/v6.0",n.pifd="pifd.cp.microsoft-int.com/v6.0",n.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdint/v6.0",n.redirection="pmservices.cp.microsoft-int.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",n.tokenization="tokenization.cp.microsoft-int.com/tokens",n.transformation="pifd.cp.microsoft-int.com/v6.0",n.validation="pifd.cp.microsoft-int.com/v6.0",n.commercemgmt="ppe.commercemgmt.m365.microsoft.com",n.tokenPolicy="tops-int.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",n.securePx="securepxservice.cp.microsoft-int.com",n.payeeTaxProfile="taxProfileService-dev-gfahd6aad6a5asey.b02.azurefd.net",n.gpex="edge.gpex.cp.microsoft-int.com",n.challengeUI="payint.microsoft.com/challengeui"):"aircapi"===t?(n.billingAuth="billingapi.cp.microsoft-int.com",n.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",n.hapi="commerceapi.officeppe.net/v1",n.jarvis="jcmsdf.account.microsoft-int.com",n.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",n.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",n.staticResources="pmservices.cp.microsoft-int.com",n.pifdBackend="edge.gpex-aircapi.cp.microsoft.com",n.pifd="edge.gpex-aircapi.cp.microsoft.com",n.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdint/v6.0",n.redirection="pmservices.cp.microsoft-int.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",n.tokenization="tokenization.cp.microsoft-int.com/tokens",n.transformation="edge.gpex-aircapi.cp.microsoft.com",n.validation="edge.gpex-aircapi.cp.microsoft.com",n.commercemgmt="ppe.commercemgmt.m365.microsoft.com",n.tokenPolicy="tops-int.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",n.securePx="localhost:44326",n.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net",n.gpex="edge.gpex-aircapi.cp.microsoft.com",n.challengeUI="payint.microsoft.com/challengeui"):"ppe"===t?(n.billingAuth="billingapi.cp.microsoft.com",n.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",n.hapi="commerceapi.office.net/v1",n.jarvis="jcmsfd.account.microsoft.com",n.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",n.staticResources="pmservices.cp.microsoft.com",n.pifdBackend="paymentinstruments-int.mp.microsoft.com/v6.0",n.pifd="paymentinstruments-int.mp.microsoft.com/v6.0",n.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdppe/v6.0",n.redirection="pmservices.cp.microsoft.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft.com",n.tokenization="tokenization.cp.microsoft.com/tokens",n.transformation="paymentinstruments-int.mp.microsoft.com/v6.0",n.validation="paymentinstruments-int.mp.microsoft.com/v6.0",n.commercemgmt="ppe.commercemgmt.m365.microsoft.com",n.tokenPolicy="tops.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",n.securePx="securepxservice-ppe.cp.microsoft.com",n.payeeTaxProfile="taxservice-uat-htdmh4h7cxfjfecg.z01.azurefd.net",n.gpex="edge.gpex-ppe.cp.microsoft.com",n.challengeUI="payppe.microsoft.com/challengeui"):"prod"===t?(n.billingAuth="billingapi.cp.microsoft.com",n.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",n.hapi="commerceapi.office.net/v1",n.jarvis="jcmsfd.account.microsoft.com",n.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.styleHintDefsJson="pmservices.cp.microsoft.com/staticresourceservice/resources/pidlstylehints/prod",n.staticResources="pmservices.cp.microsoft.com",n.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",n.pifd="paymentinstruments.mp.microsoft.com/v6.0",n.pifdEdge="paymentsfd.cp.microsoft.com/pifd/v6.0",n.redirection="pmservices.cp.microsoft.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft.com",n.tokenization="tokenization.cp.microsoft.com/tokens",n.transformation="paymentinstruments.mp.microsoft.com/v6.0",n.validation="paymentinstruments.mp.microsoft.com/v6.0",n.commercemgmt="commercemgmt.m365.microsoft.com",n.tokenPolicy="tops.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",n.securePx="securepxservice.cp.microsoft.com",n.payeeTaxProfile="taxprofileservice-prod-hqgqe5g5f8fwfcdw.z01.azurefd.net",n.gpex="edge.gpex.cp.microsoft.com",n.challengeUI="pay.microsoft.com/challengeui"):"feature"===t&&(n.billingAuth="billingapi.cp.microsoft.com",n.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",n.hapi="commerceapi.office.net/v1",n.jarvis="jcmsfd.account.microsoft.com",n.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",n.styleHintDefsJson="pmservices.cp.microsoft.com/staticresourceservice/resources/pidlstylehints/prod",n.staticResources="pmservices.cp.microsoft.com",n.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",n.pifd="st-pifd-prod-wcus.azurewebsites.net/v6.0",n.pifdEdge="st-pifd-prod-wcus.azurewebsites.net/v6.0",n.redirection="pmservices.cp.microsoft.com",n.redirectionv2="paymentsredirectionservice.cp.microsoft.com",n.tokenization="tokenization.cp.microsoft.com/tokens",n.transformation="st-pifd-prod-wcus.azurewebsites.net/v6.0",n.validation="st-pifd-prod-wcus.azurewebsites.net/v6.0",n.commercemgmt="commercemgmt.m365.microsoft.com",n.tokenPolicy="tops.mp.microsoft.com/v1.0",n.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",n.securePx="securepxservice.cp.microsoft.com",n.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net",n.gpex="edge.gpex.cp.microsoft.com",n.challengeUI="payint.microsoft.com/challengeui"),e.serviceEndpoints={},e.serviceEndpoints[e.virtualEndpoints.billingAuth.endpoint]=n.billingAuth,e.serviceEndpoints[e.virtualEndpoints.bsxCommerce.endpoint]=n.bsxCommerce,e.serviceEndpoints[e.virtualEndpoints.hapi.endpoint]=n.hapi,e.serviceEndpoints[e.virtualEndpoints.jarvis.endpoint]=n.jarvis,e.serviceEndpoints[e.virtualEndpoints.jarvisAddress.endpoint]=n.jarvis,e.serviceEndpoints[e.virtualEndpoints.paypalEncryptJS.endpoint]=n.paypalencryptjs,e.serviceEndpoints[e.virtualEndpoints.encryptJS.endpoint]=n.encryptJS,e.serviceEndpoints[e.virtualEndpoints.msrCryptoJS.endpoint]=n.msrCryptojs,e.serviceEndpoints[e.virtualEndpoints.styleHintDefsJson.endpoint]=n.styleHintDefsJson,e.serviceEndpoints[e.virtualEndpoints.staticResources.endpoint]=n.staticResources,e.serviceEndpoints[e.virtualEndpoints.pidl.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pidlEdge.endpoint]=n.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdBackend.endpoint]=n.pifdBackend,e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint]=n.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdAddress.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdProfile.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdPx.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.redirection.endpoint]=n.redirection,e.serviceEndpoints[e.virtualEndpoints.redirectionv2.endpoint]=n.redirectionv2,e.serviceEndpoints[e.virtualEndpoints.resource.endpoint]=n.pifd,e.serviceEndpoints[e.virtualEndpoints.tokenization.endpoint]=n.tokenization,e.serviceEndpoints[e.virtualEndpoints.transformation.endpoint]=n.transformation,e.serviceEndpoints[e.virtualEndpoints.validation.endpoint]=n.validation,e.serviceEndpoints[e.virtualEndpoints.commercemgmt.endpoint]=n.commercemgmt,e.serviceEndpoints[e.virtualEndpoints.tokenPolicy.endpoint]=n.tokenPolicy,e.serviceEndpoints[e.virtualEndpoints.purchaseFrontDoor.endpoint]=n.purchaseFrontDoor,e.serviceEndpoints[e.virtualEndpoints.securePx.endpoint]=n.securePx,e.serviceEndpoints[e.virtualEndpoints.payeeTaxProfile.endpoint]=n.payeeTaxProfile,e.serviceEndpoints[e.virtualEndpoints.gpex.endpoint]=n.gpex,e.serviceEndpoints[e.virtualEndpoints.challengeUI.endpoint]=n.challengeUI},this.addGenericParameters=function(e,t,r){if(t&&t.parameters)for(var n in t.parameters){var i=ce[n];!t.parameters[n]||e[n]||e[i]||(e[n]=t.parameters[n])}return r&&(e.operationType=r),e},this.getGenericResourceParams=function(t,r,n){return e.addGenericParameters({},t,n)},this.getResourceEndpointParams=function(t,r,n,i){var o=e.addGenericParameters({},r,i);return o.resourceName=t,o},this.getOrderResourceEndpointParams=function(t,r,n){return e.getResourceEndpointParams("order",t,r,n)},this.getPaymentResourceParams=function(t,r,n){var i=(r=r||{}).paymentMethod||{};return e.addGenericParameters({family:i.paymentMethodFamily,type:i.paymentMethodType,country:((r.details||{}).address||{}).country},t,n)},this.resourceTypeToPidlDoc={addressex:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/addressDescriptions"},challenge:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/challengeDescriptions"},order:{addResourceNameToQueryParam:!0,description:"PIDL Service",getParams:this.getOrderResourceEndpointParams,operation:"GET Order resource PIDLs",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/resourceDescriptions"},paymentinstrument:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},paymentinstrumentlist:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentInstrumentsEx",anonymousTemplate:"{pidl-endpoint}/paymentInstrumentsEx"},paymentmethod:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Method PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},payeetaxprofile:{description:"Payee Tax Profile PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payee Tax Profile PIDL",suffix:"",template:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",anonymousTemplate:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",removeOperationParameter:!0},msrewards:{description:"Rewards PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Rewards PIDL",suffix:"",template:"{pidl-endpoint}/users/{userId}/rewardsDescriptions",anonymousTemplate:"{pidl-endpoint}/rewardsDescriptions"},addpiqrcode:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Anonymous Payment Instrument PIDL",suffix:"",template:"{pidl-endpoint}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},default:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/{resourceType}",anonymousTemplate:"{pidl-endpoint}/{resourceType}"}},this.resourceTypeToResource={paymentinstrument:{description:"Payment Instrument FD",operation:"GET Payment Instrument Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},paymentmethod:{description:"Payment Instrument FD",operation:"GET Payment Method Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},profile:{description:"Payment Instrument FD",operation:"GET Profile Resource",template:"{resource-endpoint}/users/{userId}/profiles/{id}"},address:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addresses/{id}"},addressex:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addressesEx/{id}"},legalentity:{description:"Jarvis FD",operation:"GET LegalEntity Profile Resource from Jarvis",template:"{jarvis-endpoint}/users/{userId}/profiles?type=legalentity"},billinggroup:{description:"HAPI Billing Groups",operation:"GET Billing Groups",template:"{hapi-endpoint}/{userId}/billinggroup"},wallettoken:{description:"PIDL Service",operation:"POST Provision Wallet Token",template:"{pifd-endpoint}/users/{userId}/provisionWalletToken"},default:{description:"Payment Instrument FD",operation:"GET Resource",template:"{resource-endpoint}/users/{userId}/{resourceType}/{id}"}},this.telemetryHeaders={names:["x-ms-operation-version","x-ms-flight"],prefixes:["x-ms-px"]},this.defaultTelemetryLoggerProperties={enableMultipleLoggers:!0},this.getServiceEndpoint=function(t){return e.serviceEndpoints[t]},this.getAlternateUrl=function(t){if(t){var r="https://",n=r+e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint],i=r+e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint],o=((window||{}).location||{}).hostname||"";o&&o.indexOf("signup.azure.com")>-1&&(i=i.replace("paymentsfd.cp.microsoft.com","paymentsfd.signup.azure.com")),Rn.startsWithIgnoreCase(t,n)?t=t.replace(n,i):Rn.startsWithIgnoreCase(t,i)&&(t=t.replace(i,n))}return t},this.setEnv=function(t){e.updateEndpoints(t)},this.getEnv=function(){return e.currentEnv},this.setPidlDocEndpointInfo=function(t){var r=v({},e.resourceTypeToPidlDoc);for(var n in t)r[n.toLowerCase()]=v(v({},r[n.toLowerCase()]),t[n]);e.resourceTypeToPidlDoc=r},this.updateEndpoints("prod")},An=new Fn,Hn=function(){function e(e){this.alwaysValidateOnChange=!1,this.busyBlockShowHideHandler=null,this.containerId=null,this.disableEnterKeyAction=!1,this.disableFocusOnLoad=!1,this.errorPrefix=F.error,this.htmlExtender=null,this.hidePropertyErrors=!1,this.showLogoInKeyField=null,this.showMandatoryIdentifier={show:!1,identifier:"*"},this.showPlaceholderInTextbox=!1,this.ieExtender=null,this.propagateCallbackException=!1,this.busyUntilInitialPageRendered=!1,this.secureFieldPreLoadingEnabled=!1,this.instanceName="_currentInstance",this.preventUnmountOnFinish=!1,this.getAffixedPropertyElementId=null,this.getTrimmedPropertyElementId=null,this.getAffixedDisplayElementId=null,this.getTrimmedDisplayElementId=null,this.busyBlock={id:F.div+A.pageBusyBlock,preExists:!1,show:!0},this.errorBlock={id:A.pageErrorBlock,preExists:!1,show:!0},this.helpDialogBlock={id:A.helpDialogBlock,preExists:!1,show:!0},this.logoBlock={id:A.pageLogoBlock,preExists:!1,show:!0,displayConfiguration:function(e,t){var r=e&&e.length>0&&e[0],n=!t&&r&&e[0].displayHelpName&&e.length>13;return{totalToShow:n?13:e.length,dialogButtonText:n?e[0].displayHelpName:null}}},this.pageBodyBlock={id:A.pageBlock,preExists:!1,show:!0},this.submitButtonBlock={id:A.pageSubmitBlock,preExists:!1,show:!0},this.modalDialogBlock={id:A.modalDialogBlock,preExists:!1,show:!0},this.prefillCheckboxBlock={id:A.prefillCheckbox,preExists:!1,show:!0};var t="pidlInput_",r="",n="",i="";for(var o in e)switch(o){case K.containerId:this.containerId=e[o];break;case K.busyBlockId:this.setBlockId(this.busyBlock,e[o]);break;case K.busyBlockShowHideHandler:this.busyBlockShowHideHandler=e[o],this.busyBlock.preExists=!0;break;case K.inputPropertyIdPrefix:t=e[o]||t;break;case K.inputPropertyIdSuffix:r=e[o]||r;break;case K.displayElementIdPrefix:n=e[o]||n;break;case K.displayElementIdSuffix:i=e[o]||i;break;case K.inputPropertyErrorIdPrefix:this.errorPrefix=e[o];break;case K.showPlaceholderInTextbox:this.showPlaceholderInTextbox=xn.getBoolValue(e[o]);break;case K.disableEnterKeyAction:this.disableEnterKeyAction=xn.getBoolValue(e[o]);break;case K.showSubmitBlock:this.setShowBlock(this.submitButtonBlock,e[o]);break;case K.showErrorBlock:this.setShowBlock(this.errorBlock,e[o]);break;case K.hidePropertyErrors:this.hidePropertyErrors=xn.getBoolValue(e[o]);break;case K.htmlExtender:this.htmlExtender=e[o];break;case K.disableFocusOnLoad:this.disableFocusOnLoad=xn.getBoolValue(e[o]);break;case K.alwaysValidateOnChange:this.alwaysValidateOnChange=xn.getBoolValue(e[o]);break;case K.ieExtender:this.ieExtender=e[o];break;case K.propagateCallbackException:this.propagateCallbackException=xn.getBoolValue(e[o]);break;case K.busyUntilInitialPageRendered:this.busyUntilInitialPageRendered=xn.getBoolValue(e[o]);break;case K.secureFieldPreLoadingEnabled:this.secureFieldPreLoadingEnabled=xn.getBoolValue(e[o]);break;case K.instanceName:this.instanceName=e[o]||this.instanceName;break;case K.preventUnmountOnFinish:this.preventUnmountOnFinish=xn.getBoolValue(e[o])}this.getAffixedPropertyElementId=this.getAffixesAttacher(t,r),this.getTrimmedPropertyElementId=this.getAffixesRemover(t,r),this.getAffixedDisplayElementId=this.getAffixesAttacher(n,i),this.getTrimmedDisplayElementId=this.getAffixesRemover(n,i)}return e.prototype.setBlockId=function(e,t){e.id=t,e.preExists=!0},e.prototype.setShowBlock=function(e,t){e.show=xn.getBoolValue(t)},e.prototype.getAffixesAttacher=function(e,t){return function(r){return Rn.attachAffixes(e,r,t)}},e.prototype.getAffixesRemover=function(e,t){return function(r){return Rn.removeAffixes(e,r,t)}},e}(),On=function(){},Mn=function(e){throw e};function Nn(e){return Promise.resolve(e)}function Bn(e){return Promise.reject(e)}var Vn,Ln,Un,jn,_n,zn=Object.freeze({__proto__:null,doNothing:On,throwException:Mn,createFakePromise:Nn,createFakeRejectedPromise:Bn}),Gn=function(e,t){var r=this;this.returnUrls={},this.returnCallbacks={},this.publicEventHandlers=[],this.privateEventHandlers=[],this.eventParameterExtenders={},this.telemetryContext=null,this.telemetryLogger=null,this.invokeReturnCallback=function(e,t){e(t=r.extendEventParameters(t))},this.invokePublicEvent=function(e,t,n,i){return t&&r.logMessage(e,t),r.invokeEventHandlers(r.publicEventHandlers,e,n,i)},this.invokePrivateEvent=function(e,t,n,i){return t&&(r.telemetryContext&&r.telemetryContext.enablePrivateEventConsoleLogging||!r.telemetryContext)&&r.logMessage(e,t),r.invokeEventHandlers(r.privateEventHandlers,e,n,i)},this.isEventConsoleLoggingEnabled=function(e){var t=(r.telemetryContext||{}).telemetryOverrides,n=void 0===t?null:t;return(r.telemetryContext&&r.telemetryContext.enableConsoleLogging||!r.telemetryContext)&&!(n&&n[e]&&n[e].disableConsoleLogging)},this.logMessage=function(e,t){if(r.isEventConsoleLoggingEnabled(e)){var n=dr.getLoggingService();n&&n.logMessage(r.addExtendedParametersToLogMessage(t))}},this.logError=function(e,t,n){if(r.isEventConsoleLoggingEnabled(e)){var i=dr.getLoggingService();i&&i.logError(t,n)}},this.getExtendedEventParameter=function(e){return r.eventParameterExtenders[e]()},this.extendEventParameters=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);for(var i in r.eventParameterExtenders)r.eventParameterExtenders.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=r.getExtendedEventParameter(i));return t=xn.createObjectWithNonNullProperties(t)},this.addExtendedParametersToUrl=function(e){for(var t in r.eventParameterExtenders)r.eventParameterExtenders.hasOwnProperty(t)&&(e=Ct.addQueryParameter(e,t,r.getExtendedEventParameter(t)));return e},this.addExtendedParametersToLogMessage=function(e){for(var t in r.eventParameterExtenders)r.eventParameterExtenders.hasOwnProperty(t)&&(e+=", ".concat(t,"=").concat(r.getExtendedEventParameter(t)));return e},this.redirectUrl=function(e){e&&dr.getRedirectionService().redirect(e)},this.isEventTelemetryEnabled=function(e){var t=(r.telemetryContext||{}).telemetryOverrides,n=void 0===t?null:t;return!(n&&n[e]&&n[e].disableLogging)},this.logTelemetryEvent=function(e,t){if(r.telemetryLogger&&r.telemetryContext&&r.telemetryContext.enableLogging){if((e===z.propertyValidated||e===z.error)&&t&&t.controlOperationType===ge.editing)return;(r.isEventTelemetryEnabled(e)||e===G.metric)&&r.telemetryLogger.logEvent(e,t,r.telemetryContext)}},this.getCorrelationId=function(){return r.telemetryLogger&&r.telemetryLogger.getCorrelationId&&r.telemetryLogger.getCorrelationId()},this.getHttpRequestCorrelationHeader=function(){if(r.telemetryLogger&&r.telemetryLogger.getHttpRequestCorrelationHeader)return r.telemetryLogger.getHttpRequestCorrelationHeader()},this.getCorrelationContextHeaderValue=function(){var e,t,n,i,o,a,s,l=null===(e=r.telemetryContext)||void 0===e?void 0:e.partnerContext,d=l.partnerName,u=l.scenarioId,c=l.sessionId;return!d&&(null===(n=null===(t=r.telemetryContext)||void 0===t?void 0:t.telemetryResource)||void 0===n?void 0:n.parameters.hasOwnProperty("partner"))&&(d=r.telemetryContext.telemetryResource.parameters.partner),c||(c=null===(i=r.telemetryContext)||void 0===i?void 0:i.sessionId),u||(u="commerce.payments.".concat(null===(a=null===(o=r.telemetryContext)||void 0===o?void 0:o.telemetryResource)||void 0===a?void 0:a.resourceType).concat(null===(s=r.telemetryContext)||void 0===s?void 0:s.operationType,".1")),"v=1,ms.b.tel.scenario=".concat(u,",ms.b.tel.partner=").concat(d,",ms.c.cfs.payments.partnerSessionId=").concat(c)},this.getSessionId=function(){var e;return null===(e=r.telemetryContext)||void 0===e?void 0:e.sessionId},this.getPidlSdkVersionHeaderValue=function(){var e,t;return"".concat(null===(e=r.telemetryContext)||void 0===e?void 0:e.sdkVersion,"_").concat(null===(t=r.telemetryContext)||void 0===t?void 0:t.sdkViewType)},this.updateTelemetryContext=function(e){r.telemetryContext&&e&&r.telemetryContext.updateResourceInfo({resourceType:void 0,parameters:e})},this.invokeEventHandlers=function(e,t,n,i){r.logTelemetryEvent(t,r.extendEventParameters(i));var o=r.extendEventParameters(n),a=!1;if(e)return e.forEach((function(e){a=e(t,o)||a})),a},this.addReturnOptions=function(e){r.returnUrls=e.urls?v({},e.urls):{},r.returnCallbacks=e.callbacks?v({},e.callbacks):{}},this.addPublicEventHandler=function(e){r.publicEventHandlers.push(e)},this.addPrivateEventHandler=function(e){r.privateEventHandlers.push(e)},this.registerEventExtender=function(e,t){r.eventParameterExtenders.hasOwnProperty(e)?r.logMessage(G.eventExtenderRegistered,"There is an existing event parameter extender for name ".concat(e)):r.eventParameterExtenders[e]=t},this.failure=function(e){e.cv=r.getCorrelationId(),r.invokePrivateEvent(G.failure,null,{error:e},{error:e}),r.invokePrivateEvent(G.metric,null,{succeeded:!1,error:e},{succeeded:!1,error:e}),r.logError(G.failure,"failure",e);var t=r.returnCallbacks[O.failure];if(t)r.invokeReturnCallback(t,{error:e,cv:r.getCorrelationId()});else{var n=r.returnUrls.failure;if(!n)throw e;var i=n;e&&(i=Ct.addQueryParameter(i,"errormessage",e.message)),r.redirectUrl(r.addExtendedParametersToUrl(i))}},this.success=function(e){(e=e||{}).cv=r.getCorrelationId(),r.logMessage(G.success,"Successfully completed operation: ".concat(e.operationType,". Id: ").concat(e.id)),r.invokePrivateEvent(G.success,null,{operationId:e.id,operationType:e.operationType},{operationId:e.id,operationType:e.operationType}),r.invokePrivateEvent(G.metric,null,{succeeded:!0},{succeeded:!0});var t=r.returnCallbacks[O.success];if(t)r.invokeReturnCallback(t,e);else{var n=r.returnUrls.success;if(n){var i=n;e.id&&(i=Ct.addQueryParameter(i,"id",e.id)),r.redirectUrl(r.addExtendedParametersToUrl(i))}}},this.gohome=function(){r.logMessage(G.gohome,"Going to call go-home"),r.invokePrivateEvent(G.gohome),r.invokePrivateEvent(G.metric,null,{succeeded:!0},{succeeded:!0});var e=r.returnCallbacks[O.gohome];e?r.invokeReturnCallback(e,{cv:r.getCorrelationId()}):r.returnUrls.gohome&&r.redirectUrl(r.addExtendedParametersToUrl(r.returnUrls.gohome))},this.notifyNoSelectionOptionsFound=function(e,t,n,i){r.invokePublicEvent(z.noSelectionOptionsFound,"No Data found in element id: ".concat(e," of type: ").concat(i," and of displayId: ").concat(t),{id:e,displayId:t,pidlIdentity:n,propertyType:i},{id:e,displayId:t,pidlIdentity:n,propertyType:i})},this.selectionChanged=function(e,t,n){r.invokePublicEvent(z.selectionChanged,"selection changed for ".concat(e," and display id ").concat(t),{propertyName:e,displayId:t,propertyValue:n},{propertyName:e,displayId:t})},this.error=function(e,t){r.logError(z.error,"error",e),e.cv=r.getCorrelationId(),r.invokePublicEvent(z.error,null,{error:e},{error:e,controlOperationType:t})},this.apiCalled=function(e,t,n){r.invokePrivateEvent(G.apiCalled,"API called. name: ".concat(e),{name:e},{name:e,parametersPassed:t,sanitizedParameters:n})},this.apiReturned=function(e,t,n){n||(n=Nn()),r.invokePrivateEvent(G.apiReturned,"API returned. name: ".concat(e),{name:e,succeeded:t,promise:n},{name:e,succeeded:Rn.boolify(t)})},this.secureFieldLoadWaitStarted=function(){r.invokePrivateEvent(G.secureFieldLoadWaitStarted)},this.secureFieldsLoaded=function(){r.invokePrivateEvent(G.secureFieldsLoaded)},this.secureFieldLoadWaitEnded=function(){r.invokePrivateEvent(G.secureFieldLoadWaitEnded)},this.secureFieldEventReceived=function(e,t,n){r.invokePrivateEvent(G.secureFieldEventReceived,"secureField event received",{fieldName:e,event:t,correlationId:n},{fieldName:e,event:t,correlationId:n})},this.secureFieldEventQueued=function(e,t,n){r.invokePrivateEvent(G.secureFieldEventQueued,"secureField event queued",{fieldName:e,event:t,correlationId:n},{fieldName:e,event:t,correlationId:n})},this.secureFieldEventPosted=function(e,t,n){r.invokePrivateEvent(G.secureFieldEventPosted,"secureField event posted",{fieldName:e,event:t,correlationId:n},{fieldName:e,event:t,correlationId:n})},this.addSecureFieldPreLoadIFrameStarted=function(){r.invokePrivateEvent(G.addSecureFieldPreLoadIFrameStarted)},this.addSecureFieldPreLoadIFrameCompleted=function(){r.invokePrivateEvent(G.addSecureFieldPreLoadIFrameCompleted)},this.addSecureFieldPreLoadIFrameFailed=function(e){r.invokePrivateEvent(G.addSecureFieldPreLoadIFrameFailed,e)},this.challengeMessageReceived=function(e){r.invokePublicEvent(z.challengeMessageReceived,"challengeMessage received",{event:e},{event:e})},this.expressCheckoutReady=function(e){r.invokePublicEvent(z.expressCheckoutReady,"express checkout is ready",{availablePaymentMethods:e},{availablePaymentMethods:e})},this.postMessageReceived=function(e,t,n){r.invokePrivateEvent(G.postMessageReceived,"postMessage received",{origin:e,expectedOrigin:t,dataLength:n},{origin:e,expectedOrigin:t,dataLength:n})},this.postMessageHandleSuccess=function(e){r.invokePrivateEvent(G.postMessageHandleSuccess,"postMessage handle success",{actionType:e},{actionType:e})},this.postMessageHandleFailure=function(e){r.invokePrivateEvent(G.postMessageHandleFailure,"postMessage handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageTimeoutHandleSuccess=function(e){r.invokePrivateEvent(G.postMessageTimeoutHandleSuccess,"postMessageTimeout handle success",{actionType:e},{actionType:e})},this.postMessageTimeoutHandleFailure=function(e){r.invokePrivateEvent(G.postMessageTimeoutHandleFailure,"postMessageTimeout handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageBusyTimerStarted=function(e){r.invokePrivateEvent(G.postMessageBusyTimerStarted,"postMessage busy timer started",{details:e},{details:e})},this.postMessageBusyTimerEnded=function(e){r.invokePrivateEvent(G.postMessageBusyTimerEnded,"postMessage busy timer ended",{details:e},{details:e})},this.paymentSheetOpened=function(e){r.invokePublicEvent(z.paymentSheetOpened,"payment sheet opened",{details:e},{details:e})},this.paymentSheetCancelled=function(e){r.invokePublicEvent(z.paymentSheetCancelled,"payment sheet closed",{details:e},{details:e})},this.paymentDataTokenizing=function(e){r.invokePrivateEvent(G.paymentDataTokenizing,"payment data tokenizing",{details:e},{details:e})},this.paymentDataTokenized=function(e){r.invokePrivateEvent(G.paymentDataTokenized,"payment data tokenized successfully",{details:e},{details:e})},this.paymentClientSubmissionSkipped=function(e){r.invokePrivateEvent(G.paymentClientSubmissionSkipped,"Skipping submission for payment client component: "+e,{componentName:e},{componentName:e})},this.resourceHelpersFunctionExecuted=function(e,t,n){r.invokePrivateEvent(G.resourceHelpersFunctionExecuted,"Executed Resource Helper Function ".concat(e),{functionName:e,inputParams:t,outputValue:n},{functionName:e,inputParams:t,outputValue:n})},this.fetchCallCompleted=function(e){r.invokePublicEvent(z.fetchCallCompleted,"Fetch call completed",{httpRequestTelemetryData:e},{httpRequestTelemetryData:e})},this.toggleClicked=function(e,t){r.invokePublicEvent(z.toggleClicked,"Toggle clicked for property: ".concat(e,", current value: ").concat(t),{propertyName:e,currentValue:t},{propertyName:e,currentValue:t})},this.propertySelected=function(e,t,n){r.invokePublicEvent(z.propertySelected,"Input selected. id: ".concat(e),{id:e,propertyName:t,divId:n},{id:e,propertyName:t})},this.propertyValidated=function(e,t){r.invokePublicEvent(z.propertyValidated,"Property validation succeeded for property ".concat(e),{propertyName:e,controlOperationType:t},{propertyName:e,controlOperationType:t})},this.resourceSelected=function(e,t){var n;r.invokePublicEvent(z.resourceSelected,"Resource selected ".concat(e),{resourceName:e,value:t},{resourceName:e,id:t&&t.id,isWalletCard:!!(null===(n=null===t||void 0===t?void 0:t.details)||void 0===n?void 0:n.isNotSaved)})},this.instanceDownloading=function(e){r.invokePublicEvent(z.instanceDownloading,"Downloading instance from url: ".concat(e),{url:e},{url:e})},this.instanceDownloaded=function(){r.invokePublicEvent(z.instanceDownloaded,"Downloaded instance")},this.pidlDownloading=function(e){r.invokePublicEvent(z.pidlDownloading,"Downloading PIDL document from url: ".concat(e),{url:e},{url:e})},this.pidlDownloaded=function(){r.invokePublicEvent(z.pidlDownloaded,"PIDL document successfully downloaded")},this.pageRendering=function(e){r.invokePublicEvent(z.pageRendering,"PIDL document rendering begins",{successPayload:e},{})},this.pageRendered=function(e,t,n,i,o,a,s){r.invokePublicEvent(z.pageRendered,"PIDL document rendered",{prevPageIndex:e,prevPageId:t,prevPageName:n,currentPageIndex:i,currentPageId:o,currentPageName:a,currentPageDescription:s},{prevPageIndex:e,prevPageId:t,prevPageName:n,currentPageIndex:i,currentPageId:o,currentPageName:a})},this.pageRefreshed=function(){r.invokePublicEvent(z.pageRefreshed,"PIDL document refreshed")},this.pageDisplayed=function(){r.invokePublicEvent(z.pageDisplayed,"PIDL document displayed")},this.inputReading=function(){r.invokePublicEvent(z.inputReading,"Reading user input data")},this.inputRead=function(){r.invokePublicEvent(z.inputRead,"Read user input data")},this.inputValidating=function(){r.invokePublicEvent(z.inputValidating,"Validating user input data")},this.inputValidated=function(){r.invokePublicEvent(z.inputValidated,"Validated user input data")},this.inputTokenizing=function(){r.invokePublicEvent(z.inputTokenizing,"Tokenizing user input data")},this.inputTokenized=function(){r.invokePublicEvent(z.inputTokenized,"Tokenized user input data")},this.submitting=function(){r.invokePrivateEvent(G.submitting)},this.submitted=function(){r.invokePrivateEvent(G.submitted)},this.implementationMissing=function(e,t,n){r.invokePrivateEvent(G.implementationMissing,"Implentation of ".concat(null!==t&&void 0!==t?t:"undefined"," missing in ").concat(e),n)},this.inputSubmitting=function(e){r.invokePublicEvent(z.inputSubmitting,"Submitting PIDL document: ".concat(e),{url:e},{url:e})},this.inputSubmitted=function(e){r.invokePublicEvent(z.inputSubmitted,"PIDL document submitted. Next action: ".concat(e),{clientAction:e},{clientAction:e})},this.propertyTokenizing=function(e,t){r.invokePublicEvent(z.propertyTokenizing,"Tokenizing property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.propertyTokenized=function(e){r.invokePublicEvent(z.propertyTokenized,"Tokenized property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransforming=function(e){r.invokePublicEvent(z.propertyTransforming,"Transforming property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransformed=function(e){r.invokePublicEvent(z.propertyTransformed,"Transformed property: ".concat(e),{propertyName:e},{propertyName:e})},this.fileUploading=function(e,t){r.invokePublicEvent(z.fileUploading,"File uploading property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.fileUploaded=function(e){r.invokePublicEvent(z.fileUploaded,"File uploaded property: ".concat(e),{propertyName:e},{propertyName:e})},this.styleSheetError=function(e,t){r.invokePublicEvent(z.styleSheetError,"Failed to read the cssRules property from: ".concat(t),{error:e},{error:e})},this.redirecting=function(e){r.invokePublicEvent(z.redirecting,"Redirecting to url: ".concat(e),{url:e},{url:e})},this.navigate=function(e,t,n,i,o,a){var s=n?"Redirect":"Navigate";return r.invokePublicEvent(z.navigate,"".concat(s," to url: ").concat(t),{displayId:e,dest:o||e,url:t,piRedirection:n,context:i,destinationId:a},{displayId:e,dest:o||e,url:t,piRedirection:n,destinationId:a})},this.triggerEvent=function(e,t){return r.invokePublicEvent(z.triggerEvent,"Event triggered: ".concat(e),{eventName:e,params:t},{eventName:e,params:t})},this.partnerAction=function(e,t){return r.invokePublicEvent(z.partnerAction,"Invoke partner action on Id: ".concat(e),{displayId:e,context:t},{displayId:e})},this.pageNavigated=function(e,t,n,i,o,a,s){r.invokePublicEvent(z.pageNavigated,"Navigating from page: ".concat(e," to: ").concat(i),{prevPageIndex:e,prevPageId:t,prevPageName:n,currentPageIndex:i,currentPageId:o,currentPageName:a,currentPageDescription:s},{prevPageIndex:e,prevPageId:t,prevPageName:n,currentPageIndex:i,currentPageId:o,currentPageName:a})},this.click=function(e){r.invokePublicEvent(z.click,"Click display control for button with id ".concat(e),{id:e},{id:e})},this.captchaRendered=function(e){r.invokePublicEvent(z.captchaRendered,"Captcha is rendered with id ".concat(e),{id:e},{id:e})},this.propertyCreating=function(e,t,n){r.invokePublicEvent(z.propertyCreating,"Creating control with id ".concat(e),{id:e,displayDescription:t,htmlAttributes:n},{id:e})},this.payloadCreated=function(e){r.invokePublicEvent(z.payloadCreated,"Pidl payload created",{value:e},{})},this.restMethodInvoking=function(e,t){r.invokePublicEvent(z.restMethodInvoking,"invoking rest method with requestUrl: ".concat(e," operationType: ").concat(t),{requestUrl:e,operationType:t},{requestUrl:e,operationType:t})},this.restMethodInvoked=function(e){r.invokePublicEvent(z.restMethodInvoked,"rest method invoked, request url: ".concat(e),{requestUrl:e},{requestUrl:e})},this.propertyConditionallyUpdated=function(e,t){r.invokePublicEvent(z.propertyConditionallyUpdated,"Property ".concat(e," has been conditionally updated to ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.pidlResolved=function(e,t){var n=[];t&&(n=t.map((function(e){return cr.createIdentityHash(e.identity)})));var i=Rn.serialize(n);r.invokePrivateEvent(G.pidlResolved,"PIDL document resolved successfully for context: ".concat(e,". Pidl Identities ").concat(i),{context:e,resolvedPidlIdentity:i},{})},this.propertyUnselected=function(e,t,n){r.invokePrivateEvent(G.propertyUnselected,null,{id:e,propertyName:t,divId:n},{id:e,propertyName:t})},this.propertyCreated=function(e,t,n){r.invokePrivateEvent(G.propertyCreated,null,{propertyName:e,controlId:t,divId:n},{propertyName:e,controlId:t})},this.pollingStarted=function(e){r.invokePrivateEvent(G.pollingStarted,null,{id:e},{id:e})},this.pollingEnded=function(e){r.invokePrivateEvent(G.pollingEnded,null,{id:e},{id:e})},this.updatePollAndMoveLast=function(e){r.invokePrivateEvent(G.updatePollAndMoveLast,null,{pollId:e})},this.modelUpdated=function(e,t){r.invokePrivateEvent(G.modelUpdated,null,{created:e,skipHideBusyBlock:t},{created:e,skipHideBusyBlock:t})},this.dataUpdated=function(){r.invokePrivateEvent(G.dataUpdated)},this.conflictingInputValues=function(e){r.invokePrivateEvent(G.conflictingInputValues,null,{propertyName:e},{propertyName:e})},this.stateChanged=function(e,t){r.invokePrivateEvent(G.stateChanged,null,{oldState:e,newState:t},{oldState:e,newState:t})},this.testHookGetInternalState=function(){return{returnUrls:r.returnUrls,returnCallbacks:r.returnCallbacks,publicEventHandlers:r.publicEventHandlers,privateEventHandlers:r.privateEventHandlers,eventParameterExtenders:r.eventParameterExtenders,telemetryContext:r.telemetryContext,telemetryLogger:r.telemetryLogger}},this.pollClientActionSuccess=function(e){r.invokePrivateEvent(G.pollClientActionSuccess,"handle client action succeeded during polling",{actionType:e},{actionType:e})},this.pollClientActionFailure=function(e){r.invokePrivateEvent(G.pollClientActionFailure,"handle client action failed during polling",{failureDetails:e},{failureDetails:e})},this.hideModalDialog=function(){r.invokePrivateEvent(G.hideModalDialog)},this.pidlActionInvoked=function(e,t){r.invokePrivateEvent(G.pidlActionInvoked,"PidlAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.clientActionInvoked=function(e,t){r.invokePrivateEvent(G.clientActionInvoked,"ClientAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.propertyValueSelected=function(e,t){r.invokePrivateEvent(G.propertyValueSelected,"Property ".concat(e," has the selected value ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.renderedPidlPage=function(){r.invokePublicEvent(z.renderedPidlPage,"Rendered PidlPage")},this.closePidlPage=function(){r.invokePublicEvent(z.closePidlPage,"Closed PidlPage")},this.submitOriginalPidl=function(){r.invokePublicEvent(z.submitOriginalPidl,"Submit Original Pidl Action")},this.getLocalDataSourceInvoked=function(e){r.invokePublicEvent(z.getLocalDataSourceInvoked,"getDataSource of ".concat(e," invoked"),{dataSourceName:e},{dataSourceName:e})},this.getLocalDataSourceResolved=function(e,t){r.invokePublicEvent(z.getLocalDataSourceResolved,"getDataSource of ".concat(e," resolved"),{dataSourceName:e,count:t},{dataSourceName:e,count:t})},this.getLocalDataSourceError=function(e,t){r.logError(z.error,"error",t),t.cv=r.getCorrelationId(),r.invokePublicEvent(z.getLocalDataSourceError,"getDataSource of ".concat(e," error"),{dataSourceName:e,errorObject:t},{dataSourceName:e,errorObject:t})},this.telemetryContext=t,this.telemetryLogger=e},Kn=function(e,t,r,n,i,o,a,s,l){void 0===l&&(l=!1);var d=this;if(this.dataType="json",this.contentType="application/json",this.operationVersion="",this.getRequest=function(){var e={method:d.type,headers:new Headers(d.headers),mode:"cors",credentials:d.includeCredentials?"include":"omit"};return d.payload&&(e.body=d.payload),new Request(d.url,e)},this.updateFetchOptions=function(e,t){var r=Nn({success:d.secondaryRetrieved,headers:d.secondaryHeaders,payload:d.secondaryPayload});return t&&e.useSecondaryPayload&&!d.secondaryRetrieved&&(r=t()),r.then((function(t){var r=t.success,n=t.headers,i=t.payload;return e&&e.endpoint?d.url=jt.replaceVirtualEndpointWithServiceAddress(e.endpoint):e&&e.useAlternateUrl||(d.url=d.originalUrl),r&&(d.secondaryRetrieved=r,d.secondaryHeaders=n,d.secondaryPayload=i),e.useSecondaryPayload?(d.secondaryHeaders?d.headers=v({},d.secondaryHeaders):null===d.secondaryHeaders&&(d.headers={}),d.secondaryPayload&&(d.payload=d.secondaryPayload)):(d.headers=v({},d.originalHeaders),d.payload=d.originalPayload),void 0!==d.payload&&null!==d.payload||delete d.payload,d}))},this.url=e,this.originalUrl=e,this.type=t,this.headers=r,this.originalHeaders=v({},r),this.payload=n,this.originalPayload=n,this.retryCount=i?0:-1,this.retryOnServerError=i,this.currentOperationName=o||"pidlsdkOperation",this.operationName=a||"DependentOperationName",this.serviceName=s||"PidlSdkDependentService",this.includeCredentials=l,this.serverErrorCount=0,this.secondaryRetrieved=!1,r&&Rn.isObject(r)){var u=r,c=ee.msRetryOnServerErr,p=u[c],m=P(u,["symbol"===typeof c?c:c+""]);this.retryOnServerError="false"!==p,this.headers=m}},Wn=function(e){function t(t,r,n,i,o){var a=e.call(this,"Failed to fetch")||this;return a.status=t,a.statusText=r,a.failureContent=n,a.hasResponseFromServer=i,a.canRetryOnServerError=o,a}return g(t,e),t}(Error),qn=1e3,Jn=[500,502,503,504],Qn=12e3,Zn=42e3,Yn=function(e){this.initialRetryTimeout=qn,this.retryTimeoutMultiplier=1.5,this.retryableErrorCodes=I([],Jn,!0),this.maxServerErrorRetryCount=2,this.fetchOrder=[{retry:2},{retry:1,xhrConfig:{getRequestTimeout:Qn,postRequestTimeout:Zn}},{retry:2,useAlternateUrl:!0},{retry:1,useAlternateUrl:!0,xhrConfig:{getRequestTimeout:Qn,postRequestTimeout:Zn}}],this.initialRetryTimeout=(null===e||void 0===e?void 0:e.initialRetryTimeout)||this.initialRetryTimeout,this.retryTimeoutMultiplier=(null===e||void 0===e?void 0:e.retryTimeoutMultiplier)||this.retryTimeoutMultiplier,this.retryableErrorCodes=(null===e||void 0===e?void 0:e.retryableErrorCodes)||this.retryableErrorCodes,this.maxServerErrorRetryCount=(null===e||void 0===e?void 0:e.maxServerErrorRetryCount)||this.maxServerErrorRetryCount,this.fetchOrder=(null===e||void 0===e?void 0:e.fetchOrder)||this.fetchOrder;for(var t=[],r=0,n=this.fetchOrder;r<n.length;r++){for(var i=n[r],o=0;o<i.retry;o++)t.push(i);i.retry=1}this.fetchOrder=t},Xn=function(){function e(){var e=this;this.FetchOptions=Kn,this.getHttpTelemetryData=function(t,r){var n=t.url,i=t.type,o=t.contentType,a=t.currentOperationName,s=t.operationName,l=t.operationVersion,d=t.serviceName,u=t.retryCount,c=r.isSuccess,p=r.statusCode,m=r.headers,f=r.failureResponseText,y=r.timeTaken,h=r.serviceErrorCode,g=r.statusText,v=p?p.toString():"0",P=c||"200"===v?"":f||g,b=0;try{b=parseInt(r.headers.get("Content-Length"),10)}catch(E){}return{targetUri:n,requestMethod:i,responseContentType:o,operationName:a,dependencyOperationName:s,dependencyOperationVersion:l,serviceName:d,retryCount:u,succeeded:c,protocolStatusCode:v,failureResponse:P,contentLength:isNaN(b)?0:b,latencyMs:y,serviceErrorCode:h,headers:e.getDesiredResponseHeaders(m)}},this.getDesiredResponseHeaders=function(e){var t={};if(e&&e.forEach){var r=An.telemetryHeaders.names,n=An.telemetryHeaders.prefixes;e.forEach((function(e,i){r.indexOf(i)>-1?t[i]=e:n.forEach((function(r){Rn.startsWithIgnoreCase(i,r)&&(t[i]=e)}))}))}return t},this.isFetchFailureError=function(e){return"status"in e&&"statusText"in e&&"failureContent"in e},this.addCVHeader=function(e,t){var r=e.getHttpRequestCorrelationHeader()||{name:void 0,value:void 0},n=r.name,i=r.value;n&&i&&(t[n]=i)},this.handleFetchFailure=function(t,r,n,i){var o,a,s,l,d;if(e.isFetchFailureError(t))o=t.status,a=t.statusText,s=t.failureContent,l=t.hasResponseFromServer,n=n&&t.canRetryOnServerError;else if(t){var u=t;o=u.status,a=u.statusText,s=u.failureContent||t.message||Rn.serialize(u)}var c=!1,p=!1,m=!1;l?(i&&i.retryableErrorCodes&&i.retryableErrorCodes.indexOf(o)>-1&&(p=!0,c=n),d="HTTP Error |".concat(o,"|").concat(a,"|: |").concat(s,"|")):(d="|NetworkError|Status: ".concat(o,", StatusText: ").concat(a,", FailureContent: ").concat(s,"| Uncaught Error. |").concat(s,"|"),m=!0,c=!0);var f=xn.parseJSON(s);return{failureMessage:{status:w.Error,errorMessage:d,httpStatus:o,httpStatusText:a,failureContent:s,failureObject:f&&f.succeeded?f.value:void 0,connectivityError:m},retryable:c,serverError:p}},this.fetchWrapper=function(t){return e.fetchHandler?e.fetchHandler(t.getRequest()):fetch(t.getRequest())},this.xhrWrapper=function(t,r,n,i){return new Promise((function(o,a){var s=t.type,l=t.url,d=t.headers,u=t.payload,c=t.includeCredentials,p=(r||{xhrConfig:{getRequestTimeout:Qn,postRequestTimeout:Zn}}).xhrConfig,m=new XMLHttpRequest;m.open(s,l),s===ke.Get?m.timeout=p.getRequestTimeout||Qn:m.timeout=p.postRequestTimeout||Zn,d&&Rn.getKeys(d).forEach((function(e){return m.setRequestHeader(e,d[e])})),c&&(m.withCredentials=c);var f=function(){var e=m.getAllResponseHeaders(),t={};Rn.isEmptyString(e)||e.trim().split(/[\r\n]+/).forEach((function(e){var r=e.split(": "),n=r.shift(),i=r.join(": ");t[n]=i}));return t},y=function(){var e=void 0;return""!==m.responseType&&"text"!==m.responseType||(e=m.responseText),e};m.onload=function(){o(new Response(y(),{status:m.status,headers:new Headers(f()),statusText:m.statusText}))},m.onerror=function(){var r={isSuccess:!1,timeTaken:Date.now()-i,statusCode:m.status,headers:new Headers(f())};n&&n.fetchCallCompleted(e.getHttpTelemetryData(t,r));var o=y();a(new Wn(m.status,m.statusText,o,Rn.boolify(o),!0))},m.ontimeout=function(){var r={isSuccess:!1,timeTaken:Date.now()-i,statusCode:m.status,headers:new Headers};n&&n.fetchCallCompleted(e.getHttpTelemetryData(t,r)),a(new Wn(m.status,m.statusText,void 0,!1,!0))},s===ke.Post&&u?(m.setRequestHeader("Content-Type","application/json"),m.send(u)):m.send()}))},this.loadScript=function(e){return new Promise((function(t,r){try{if(document&&(document.head||document.body)){var n=document.createElement("script");n.onload=function(){t()},n.onerror=function(){r()},n.async=!0,n.src=e,(document.head||document.body).appendChild(n)}else r()}catch(i){r(i)}}))},this.getHttpHeaders=function(t,r,n,i,o){var a=e.getDefaultHttpHeaders(t);for(var s in r&&(a=r.getHeaders(a,i)),n&&(xn.extend(!0,a,n),a.hasOwnProperty(ee.msCorrelationId)&&Rn.isNullOrUndefinedOrWhiteSpaceString(a[ee.msCorrelationId])&&(a[ee.msCorrelationId]=xn.guid()),a.hasOwnProperty(ee.msTrackingId)&&Rn.isNullOrUndefinedOrWhiteSpaceString(a[ee.msTrackingId])&&(a[ee.msTrackingId]=xn.guid())),i&&(i.indexOf("{pidl")>-1||i.indexOf("{pifd")>-1||i.indexOf("{resource-endpoint}")>-1)&&(a.hasOwnProperty(ee.correlationContext)||(a[ee.correlationContext]=null===t||void 0===t?void 0:t.getCorrelationContextHeaderValue()),a[ee.msPidlsdkVersion]=null===t||void 0===t?void 0:t.getPidlSdkVersionHeaderValue()),a)a[s]=xn.getFormatStringExpressionValue(a[s],o);return a},this.getDefaultHttpHeaders=function(t){var r,n=((r={})[ee.contentType]="application/json",r);return e.addCVHeader(t,n),n},this.getPayeeFileUploadHttpHeaders=function(e,t){var r={};return t&&(r[ee.authorization]=t),r},this.setFetchHandler=function(t){e.fetchHandler=t},this.testHookSetRetryTimeout=function(e){qn=e},this.testHookHandleFetchFailure=function(t,r,n){return void 0===r&&(r=ke.Post),void 0===n&&(n=!1),e.handleFetchFailure(t,r,n,new Yn)}}return e.prototype.successHandler=function(e,t,r,n,i,o){var a=this;return function(s){var l={isSuccess:s.ok,timeTaken:Date.now()-r,statusCode:s.status,headers:s.headers};if(l.isSuccess)try{e.fetchCallCompleted(a.getHttpTelemetryData(t,l))}catch(d){}return s.text().then((function(r){var u=xn.parseJSON(r),c=!1;if(!l.isSuccess){l=v(v({},l),{statusText:s.statusText,serviceErrorCode:(u.value||{}).code,failureResponseText:r});try{e.fetchCallCompleted(a.getHttpTelemetryData(t,l))}catch(d){}c=t.serverErrorCount<o.maxServerErrorRetryCount;try{var p=l.headers.get(ee.msRetryOnServerErr);c="true"===p||"false"!==p&&c}catch(f){}}if(!s.ok||!Rn.isEmptyString(r)&&!u.succeeded)throw new Wn(s.status,s.statusText,r,!0,c);try{var m=u.succeeded?u.value:{};i&&i(m),n.resolve(m)}catch(y){throw new Wn(s.status,s.statusText,y.message,!0,!1)}}))}},e.prototype.exceptionHandler=function(e,t,r,n,i,o,a,s){var l=this;return function(d){var u=l.handleFetchFailure(d,t.type,t.retryOnServerError,a),c=u.failureMessage,p=u.retryable&&a.fetchOrder.length>0;if(e.error(new ir.serverError(or.restMethodInvocationFailed,t.url,c.failureObject||c.failureContent,c.httpStatus,c.httpStatusText,c.errorMessage,[t.url,c.httpStatusText],t.type,t.retryCount,p)),u.serverError&&t.serverErrorCount++,p){t.retryCount+=1;var m=a.fetchOrder.shift();m.useAlternateUrl&&(t.url=An.getAlternateUrl(t.originalUrl));var f=t.updateFetchOptions(m,s);setTimeout((function(){return r=Date.now(),!m.xhrConfig||l.fetchHandler?f.then((function(t){return l.addCVHeader(e,t.headers),l.fetchWrapper(t).then(l.successHandler(e,t,r,n,i,a)).catch(l.exceptionHandler(e,t,r,n,i,o,a,s))})):f.then((function(t){return l.addCVHeader(e,t.headers),l.xhrWrapper(t,m,e,r).then(l.successHandler(e,t,r,n,i,a)).catch(l.exceptionHandler(e,t,r,n,i,o,a,s))}))}),a.initialRetryTimeout*Math.pow(a.retryTimeoutMultiplier,t.retryCount-1))}else o&&o(c),n.reject(c)}},e.prototype.invokeFetch=function(e,t,r,n,i,o,a,s,l,d,u,c,p,m){var f=this;void 0===c&&(c=!1),void 0===p&&(p=null),void 0===m&&(m=null);var y=Date.now(),h=new this.FetchOptions(n,r,i,o,t,l,d,u,c),g=new Yn(p),v=g.fetchOrder.shift(),P=h.updateFetchOptions(v,m);return new Promise((function(t,r){var n={resolve:t,reject:r};P.then((function(t){(v.xhrConfig&&!f.fetchHandler?f.xhrWrapper(t,v,e,y):f.fetchWrapper(t)).then(f.successHandler(e,t,y,n,a,g)).catch(f.exceptionHandler(e,t,y,n,a,s,g,m))})).catch(f.exceptionHandler(e,h,y,n,a,s,g,m))}))},e.prototype.post=function(e,t,r,n,i,o,a,s,l,d,u,c,p){return void 0===u&&(u=!1),void 0===c&&(c=null),void 0===p&&(p=null),this.invokeFetch(e,t,ke.Post,r,n,i,o,a,s,l,d,u,c,p)},e.prototype.put=function(e,t,r,n,i,o,a,s,l,d,u,c){return void 0===u&&(u=!1),void 0===c&&(c=null),this.invokeFetch(e,t,ke.Put,r,n,i,o,a,s,l,d,u,c)},e.prototype.get=function(e,t,r,n,i,o,a){return void 0===a&&(a=null),this.invokeFetch(e,!0,ke.Get,t,r,null,null,null,n,i,o,!1,a)},e.prototype.delete=function(e,t,r,n,i,o,a){return void 0===a&&(a=null),this.invokeFetch(e,!0,ke.Delete,t,r,null,null,null,n,i,o,!1,a)},e}(),$n=new Xn,ei=new(function(){function e(){var e=this;this.returnOptionSchema={type:"object",children:{callbacks:{type:"object",optional:!0,children:{success:{type:"function",optional:!0},failure:{type:"function",optional:!0},gohome:{type:"function",optional:!0}}},urls:{type:"object",optional:!0,children:{success:{type:"string",optional:!0},failure:{type:"string",optional:!0},gohome:{type:"string",optional:!0}}}}},this.userContextSchema={type:"object",optional:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0},serviceOverrides:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0}}}}},this.pidlDocInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},resourceSuffix:{type:"string",optional:!0},pidlVersion:{type:"string",optional:!0},pidlEndpoint:{type:"string",optional:!0}}},this.resourceInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},id:{type:"string"},resourceEndpoint:{type:"string",optional:!0}}},this.pidlIdentitySchema={type:"object",ignoreUnspecifiedChild:!0,children:{country:{type:"string",optional:!0},description_type:{type:"string",optional:!0},operation:{type:"string",optional:!0},resource_id:{type:"string",optional:!0}}},this.displayOptionsSchema={type:"object",children:{containerId:{type:"string"},busyBlockId:{type:"string",optional:!0},busyBlockElement:{type:"any",optional:!0},helpDialogBlockId:{type:"string",optional:!0},showHelpDialogBlock:{type:"boolean",optional:!0},inputPropertyIdPrefix:{type:"string",optional:!0},inputPropertyIdSuffix:{type:"string",optional:!0},displayElementIdPrefix:{type:"string",optional:!0},displayElementIdSuffix:{type:"string",optional:!0},inputPropertyErrorIdPrefix:{type:"string",optional:!0},showPlaceholderInTextbox:{type:"boolean",optional:!0},disableEnterKeyAction:{type:"boolean",optional:!0},showSubmitBlock:{type:"boolean",optional:!0},showErrorBlock:{type:"boolean",optional:!0},htmlExtender:{type:"dictionary",optional:!0},busyBlockShowHideHandler:{type:"function",optional:!0},hidePropertyErrors:{type:"boolean",optional:!0},disableFocusOnLoad:{type:"boolean",optional:!0},alwaysValidateOnChange:{type:"boolean",optional:!0},ieExtender:{type:"dictionary",optional:!0},propagateCallbackException:{type:"boolean",optional:!0},useWebView2:{type:"boolean",optional:!0},busyUntilInitialPageRendered:{type:"boolean",optional:!0},secureFieldPreLoadingEnabled:{type:"boolean",optional:!0},instanceName:{type:"string",optional:!0},preventUnmountOnFinish:{type:"boolean",optional:!0}}},this.suppressedEventsSchema={type:"object",optional:!0,children:{disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0}}},this.telemetryOptionsSchema={type:"object",optional:!0,children:{contextData:{type:"dictionary",optional:!0},disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0},enablePrivateEventConsoleLogging:{type:"boolean",optional:!0},customTelemetryFrameworkWindowNamespace:{type:"string",optional:!0},overrides:{type:"object",minLength:0,optional:!0,childType:this.suppressedEventsSchema,allowedChildNames:v(v({},z),G)}}},this.callbacksSchema={type:"object",optional:!0,children:{view:{type:"any",optional:!0},submit:{type:"function",optional:!0},getPidlDocument:{type:"function",optional:!0},iFrameMessageHandler:{type:"function",optional:!0},telemetryLogger:{type:"any",optional:!0},prefetcher:{type:"any",optional:!0},encryptionHandler:{type:"any",optional:!0},fetchHandler:{type:"function",optional:!0}}},this.checkoutParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{anonymousUser:{type:"boolean",optional:!0},checkoutId:{type:"string"},language:{type:"string"},market:{type:"string"},partner:{type:"string",optional:!0},paymentProviderId:{type:"string"},redirectUrl:{type:"string"}}},this.payeeTaxProfileParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{section:{type:"string"},tenant:{type:"string"},sapidind:{type:"string",optional:!0},status:{type:"string",optional:!0},accounttype:{type:"string",optional:!0},payfromcc:{type:"array",minLength:1,optional:!0},residencecc:{type:"string",optional:!0},language:{type:"string",optional:!0}}},this.mockEventsSchema={type:"object",optional:!0,children:{name:{type:"string"},params:{type:"dictionary",optional:!0}}},this.mockFunctionSchema={type:"object",optional:!0,children:{name:{type:"string"},triggers:{type:"array",maxLength:1,childType:this.mockEventsSchema},returns:{type:"any",optional:!0}}},this.mockFunctionsSchema={type:"array",maxLength:1,optional:!0,childType:this.mockFunctionSchema},this.addUpdateOrDeleteOptionSchema={type:"object",optional:!0,children:{sessionId:{type:"string",optional:!0},riskData:{type:"object",optional:!0,children:{greenId:{type:"string"}}}}},this.selectOrRenderOptionSchema={type:"object",optional:!0},this.selectedResourceInfoSchema={type:"object",children:{id:{type:"string",optional:!0},backupId:{type:"string",optional:!0}}},this.handleSchema={type:"string"},this.prefillDataSchema={type:"object",ignoreUnspecifiedChild:!0},this.purchaseContextSchema={type:"object",children:{amount:{type:"number"},currency:{type:"string"},country:{type:"string"},threeDSScenario:{type:"string",possibleValues:Rn.getValues(v({},Ne))},riskChallengeIndicator:{type:"string",optional:!0,possibleValues:Rn.getValues(v({},Be))}}},this.purchaseRiskChallengeSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},sessionId:{type:"string",optional:!0},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchaseRiskChallengeSchemaForThreeDS={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},challengeWindowSize:{type:"string",possibleValues:Rn.getValues(v({},Ve))},purchaseContext:{type:"schema",schema:this.purchaseContextSchema},sessionId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchasePendingStateSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},sessionId:{type:"string"},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.resourceOptionsSchema={type:"dictionary",optional:!0},this.showResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.offerResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.searchResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.fundStoredValueParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.resourceActionParamsSchema={type:"object",children:{resourceActionContext:{type:"object",ignoreUnspecifiedChild:!0,children:{action:{type:"string",possibleValues:Rn.getValues(v({},_))},handle:{type:"string",optional:!0},pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema,optional:!0},pidlIdentity:{type:"schema",schema:this.pidlIdentitySchema,optional:!0},resourceInfo:{type:"schema",schema:this.resourceInfoSchema,optional:!0},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0}}},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"dictionary",optional:!0},selectedResourceInfo:{type:"schema",schema:this.selectedResourceInfoSchema,optional:!0}}},this.authorizationGroupSchema={type:"object",children:{id:{type:"string"},totalAmount:{type:"number"},itemTitles:{type:"array"}}},this.paymentSessionDataSchema={type:"object",ignoreUnspecifiedChild:!0,children:{amount:{type:"number"},billableAccountId:{type:"string",optional:!0},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:Rn.getValues(v({},Ne))},challengeWindowSize:{type:"string",possibleValues:Rn.getValues(v({},Ve))},classicProduct:{type:"string",optional:!0},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"},purchaseOrderId:{type:"string",optional:!0},redeemRewards:{type:"boolean",optional:!0},rewardsPoints:{type:"number",optional:!0},recurringPaymentDetails:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{label:{type:"string",optional:!0},frequencyUnit:{type:"string",possibleValues:Rn.getValues(v({},$e))},frequency:{type:"number"},startTime:{type:"date",optional:!0},amount:{type:"number"}}},authorizationGroups:{type:"array",optional:!0,childType:this.authorizationGroupSchema},initiativeContext:{type:"string",optional:!0}}},this.paymentSessionSchema={type:"object",ignoreUnspecifiedChild:!0,children:{id:{type:"string"},isChallengeRequired:{type:"boolean"},challengeStatus:{type:"string",possibleValues:Rn.getValues(v({},Le))},signature:{type:"string"},amount:{type:"number"},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:Rn.getValues(v({},Ne))},challengeWindowSize:{type:"string",possibleValues:Rn.getValues(v({},Ve))},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"}}},this.visitInputSchema=function(t,r,n){var i=e.validate(t,r,n);if(i)return i;if("dictionary"===r.type||!n)return null;if(e.isObjectSchema(r)){var o=r.allowedChildNames,a=r.ignoreUnspecifiedChild,s=r.children,l=r.childType;if(o)for(var d in n){if(!o[d])return new ir.inputParameterValidationFailedError(or.inputParameterMissing,t,[r.type,Rn.getType(n)]);if(l){var u=e.visitInputSchema(t+" element: ",l,n[d]);if(u)return u}}else{if(!a)for(var c in n)if(!s[c])return new ir.inputParameterValidationFailedError(or.inputParameterNotInRange,c,[c]);for(var p in s){var m=e.visitInputSchema(p,s[p],n[p]);if(m)return m}}}if(e.isArraySchema(r)){if(!Rn.isArray(n))return new ir.inputParameterValidationFailedError(or.inputParameterTypeMismatch,t,[r.type,Rn.getType(n)]);var f=r.minLength,y=r.maxLength;l=r.childType;if(f&&n.length<f)return new ir.inputParameterValidationFailedError(or.inputParameterSmallerThanMinLength,t,[t,f,n.length]);if(y&&n.length>y)return new ir.inputParameterValidationFailedError(or.inputParameterLargerThanMaxLength,t,[t,y,n.length]);if(l)for(var h=0;h<n.length;++h){var g=e.visitInputSchema(t+" element: "+h,l,n[h]);if(g)return g}}if(e.isSchemaSchema(r)){var v=e.visitInputSchema(t,r.schema,n);if(v)return v}return null},this.validate=function(e,t,r){if(!t.optional&&(null===r||void 0===r))return new ir.inputParameterValidationFailedError(or.inputParameterMissing,e,[e]);var n=t.type;if(!r||"any"===n)return null;var i=typeof r;return"dictionary"===n||"schema"===n?n="object":"array"===n&&Rn.isArray(r)&&(i="array"),"boolean"===n&&"string"===i&&("true"!==r&&"false"!==r||(i="boolean")),"date"===n&&"object"===i&&(i="date"),n&&i&&n!==i?new ir.inputParameterValidationFailedError(or.inputParameterTypeMismatch,e,[n,i]):t.possibleValues&&!Rn.contains(t.possibleValues,r)?new ir.inputParameterValidationFailedError(or.inputParameterNotInRange,e,[e,r,JSON.stringify(t.possibleValues)]):null},this.resultHandler=function(e,t){return t&&e.failure(t),!Rn.boolify(t)},this.validateInputParameters=function(t,r,n,i,o){var a=e.resultHandler(t,e.visitInputSchema("userContext",e.userContextSchema,r));return(a=a&&e.resultHandler(t,e.visitInputSchema("displayOptions",e.displayOptionsSchema,n)))&&n.busyBlockShowHideHandler&&n.busyBlockId&&(a=e.resultHandler(t,new ir.inputParameterValidationFailedError(or.busyBlockShowHideHandlerAndbusyBlockIdAreExclusive))),a=(a=a&&e.resultHandler(t,e.visitInputSchema("telemetryOptions",e.telemetryOptionsSchema,i)))&&e.resultHandler(t,e.visitInputSchema("callbacks",e.callbacksSchema,o))},this.validateCheckoutParams=function(t,r){return e.resultHandler(t,e.visitInputSchema("checkoutParams",e.checkoutParamsSchema,r))},this.validatePayeeTaxProfileParams=function(t,r){return e.resultHandler(t,e.visitInputSchema("payeeTaxProfileParams",e.payeeTaxProfileParamsSchema,r))},this.validateMockFunctions=function(t,r){return e.resultHandler(t,e.visitInputSchema("mockFunctions",e.mockFunctionsSchema,r))},this.validateReturnOptions=function(t,r){return e.resultHandler(t,e.visitInputSchema("returnOptions",e.returnOptionSchema,r))},this.validatePidlDocInfo=function(t,r){return e.resultHandler(t,e.visitInputSchema("pidlDocInfo",e.pidlDocInfoSchema,r))},this.validateResourceInfo=function(t,r){return e.resultHandler(t,e.visitInputSchema("resourceInfo",e.resourceInfoSchema,r))},this.validateAddUpdateOrDeleteOptions=function(t,r){return e.resultHandler(t,e.visitInputSchema("options",e.addUpdateOrDeleteOptionSchema,r))},this.validateSelectOrRenderOptions=function(t,r){return e.resultHandler(t,e.visitInputSchema("options",e.selectOrRenderOptionSchema,r))},this.validateShowResourceParams=function(t,r){return e.resultHandler(t,e.visitInputSchema("showResourceParams",e.showResourceParamsSchema,r))},this.validateOfferResourceParams=function(t,r){return e.resultHandler(t,e.visitInputSchema("offerResourceParams",e.offerResourceParamsSchema,r))},this.validateSearchResourceParams=function(t,r){return e.resultHandler(t,e.visitInputSchema("searchResourceParams",e.searchResourceParamsSchema,r))},this.validateFundStoredValueParams=function(t,r){return e.resultHandler(t,e.visitInputSchema("fundStoredValueParams",e.fundStoredValueParamsSchema,r))},this.validateResourceOptions=function(t,r){return e.resultHandler(t,e.visitInputSchema("options",e.resourceOptionsSchema,r))},this.validateResourceActionParams=function(t,r){return e.resultHandler(t,e.visitInputSchema("resourceActionParams",e.resourceActionParamsSchema,r))},this.validatePaymentSessionData=function(t,r){return e.resultHandler(t,e.visitInputSchema("paymentSessionData",e.paymentSessionDataSchema,r))},this.shouldValidateAuthorizationGroups=function(e,t){return"be4de87d-7e38-4b2d-8836-9237eb32848e"===t&&e.length>1},this.validatePaymentSessionOrData=function(t,r){var n,i;if(e.isPaymentSession(r))i=e.paymentSessionSchema;else{if(i=e.paymentSessionDataSchema,null===(n=null===r||void 0===r?void 0:r.recurringPaymentDetails)||void 0===n?void 0:n.frequencyUnit){var o=r.recurringPaymentDetails.frequencyUnit;r.recurringPaymentDetails.frequencyUnit=o.toLowerCase()}if((null===r||void 0===r?void 0:r.authorizationGroups)&&e.shouldValidateAuthorizationGroups(r.authorizationGroups,null===r||void 0===r?void 0:r.piid)){for(var a=0,s=0,l=r.authorizationGroups;s<l.length;s++){a+=100*l[s].totalAmount}if(a!==100*(null===r||void 0===r?void 0:r.amount)){var d=new ir.unmatchedAmountError(or.unmatchedAmount,JSON.stringify(r));t.error(d)}}}return e.resultHandler(t,e.visitInputSchema("paymentSessionOrData",i,r))},this.validatePurchaseRiskChallengeParams=function(t,r){var n="purchaseRiskChallengeSchema",i=e.purchaseRiskChallengeSchema;return r&&r.riskChallengeData&&r.riskChallengeData.length>0&&"threeds"===r.riskChallengeData[0].toLowerCase()&&(n="purchaseRiskChallengeSchemaForThreeDS",i=e.purchaseRiskChallengeSchemaForThreeDS),e.resultHandler(t,e.visitInputSchema(n,i,r))},this.validateHandlePurchasePendingStateParams=function(t,r){return e.resultHandler(t,e.visitInputSchema("purchasePendingStateSchema",e.purchasePendingStateSchema,r))},this.validateSelectedResourceInfo=function(t,r){return e.resultHandler(t,e.visitInputSchema("selectedResourceInfo",e.selectedResourceInfoSchema,r))},this.validateHandle=function(t,r){return e.resultHandler(t,e.visitInputSchema("handle",e.handleSchema,r))}}return e.prototype.isObjectSchema=function(e){return e&&"object"===e.type},e.prototype.isArraySchema=function(e){return e&&"array"===e.type},e.prototype.isSchemaSchema=function(e){return e&&"schema"===e.type},e.prototype.isPaymentSession=function(e){return e&&Rn.isString(e.id)&&e.id.length},e}()),ti=function(e){this.constants={},this.errors={};var t=e&&e.getResolvedOrFirstPidlDoc();if(t&&t.strings){var r=t.strings,n=r.constants,i=r.errorCodes;n&&(this.constants=v({},n)),i&&(this.errors=v({},i))}},ri=function(){function e(e){var t=this;this.cache=null,this.keyComparer=null,this.put=function(e,r){var n=t.getCacheEntryIndex(e);-1===n?t.cache.push({key:e,value:r}):t.cache[n].value=r},this.get=function(e){var r=t.getCacheEntryIndex(e);return-1!==r&&t.cache[r].value},this.remove=function(e){var r=t.getCacheEntryIndex(e),n=null;return-1!==r&&(n=t.cache[r],t.cache.splice(r,1)),n&&n.value},this.clear=function(){t.cache=[]},this.removeIf=function(e){e&&Rn.filter(t.cache,(function(t){return!t||!t.value||!e(t.value)}))},this.cache=[],this.keyComparer=Rn.isFunction(e)?e:function(e,t){return e===t}}return e.prototype.getCacheEntryIndex=function(e){for(var t=0;t<this.cache.length;t++)if(this.keyComparer(this.cache[t].key,e))return t;return-1},e}(),ni=function(){function e(){var e=this;this.modelDataCache=null,this.dataSourceCache=null,this.partnerData=null,this.saveModelData=function(t,r){e.modelDataCache.put(t,e.getModelData(r))},this.readModelData=function(t){return e.modelDataCache.get(t)},this.saveDataSource=function(t,r){e.dataSourceCache[t]=r},this.readDataSource=function(t){return e.dataSourceCache[t]},this.readAllDataSources=function(){return e.dataSourceCache},this.savePartnerData=function(t){e.partnerData=t},this.readPartnerData=function(){return e.partnerData},this.clear=function(){e.modelDataCache.clear(),e.partnerData=null,e.clearDataSourceCache()},this.clearDataSourceCache=function(){e.dataSourceCache={}},this.modelDataCache=new ri,this.dataSourceCache={}}return e.prototype.getModelData=function(e){var t={};if(e)for(var r in e){var n=e[r];n&&(t[r]=n.getValue())}return t},e}(),ii=function(e,t){this.value=e,this.objectId=t},oi=function(e,t,r,n,i){var o=this;if(this.possibleValues=[],this.index=-1,this.associatedModelDataProperties=null,this.pidlIdentity=null,this.getPossibleOptions=function(){for(var e={},t=0;t<o.possibleValues.length;t++)e[t]={displayText:o.possibleValues[t].value};return e},this.getIndex=function(){return o.index},this.setIndex=function(e){o.index=e;var t=o.possibleValues[o.index];if(t)for(var r=t.objectId,n=0;n<o.associatedModelDataProperties.length;n++)o.associatedModelDataProperties[n].setCurrentObjectId(r)},this.pidlIdentity=e,this.associatedModelDataProperties=n,this.possibleValues=[],i)for(var a=0;a<i.length;a++){var s=i[a];this.possibleValues.push(new ii(s,t))}for(var l=0;l<r.objectIds.length;l++){var d=r.objectIds[l];if(d!==t){for(var u=[],c=0;c<this.associatedModelDataProperties.length;c++){var p=this.associatedModelDataProperties[c];p.setCurrentObjectId(d);var m=p.getValue();m&&u.push(m),p.setCurrentObjectId(t)}this.possibleValues.push(new ii(xn.getStringValue(u),d))}}},ai=function(e){this.modelDataProperties=[],this.pageIndex=e,this.allPropertyOnSamePage=!0,this.modelDataProperties=[]},si=function(){this.currentObjectId=null,this.objectIds=[],this.currentObjectId=null,this.objectIds=[]},li="pidlddc_object_id",di=function(e){var t=this;this.prefillData=null,this.defaultInstanceId=null,this.multiPropertySelectors={},this.modelDataProperties={},this.pidlIdentityPrefillObjectMapping={},this.pidlDocInfos={},this.addId=function(e){if(Rn.isArray(e))for(var r=0;r<e.length;r++)t.addId(e[r]);else if(Rn.isObject(e))for(var n in e.pidlddc_object_id||(e.pidlddc_object_id=xn.guid()),e)n!==li&&t.addId(e[n])},this.getPropertyInstancesInternal=function(e,r,n){if(Rn.isArray(r))for(var i=0;i<r.length;i++)t.getPropertyInstancesInternal(e,r[i],n);else if(Rn.isObject(r)){var o=e.getPropertyName();for(var a in r){if(a===o){var s=r.pidlddc_object_id;s||(s=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]&&t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId?t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId:t.defaultInstanceId);var l=r[o];$r(e)&&(l=mr.normalizeValueToPossibleValues(e,r[o])),n[s]=l}t.getPropertyInstancesInternal(e,r[a],n)}}},this.getPropertyInstances=function(e,r){var n={};return r&&t.getPropertyInstancesInternal(e,r,n),n},this.parsePrefillData=function(e){var r=t.getPropertyInstances(e,t.prefillData);if(t.modelDataProperties[e.getPropertyName()].setInstances(r),Rn.keyCount(r)>0){var n=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity];for(var i in n||(n=new si,t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]=n),r)Rn.contains(n.objectIds,i)||n.objectIds.push(i);n.currentObjectId=n.objectIds[0]}},this.createPidlInfos=function(e,r){var n=r.pidlInfos[e.pidlIdentity];n||(n=new ai(r.pageIndex),r.pidlInfos[e.pidlIdentity]=n),n.pageIndex!==r.pageIndex&&(n.allPropertyOnSamePage=!1);var i=t.modelDataProperties[e.getPropertyName()];i&&n.modelDataProperties.push(i)},this.getPidlInfos=function(e){for(var r={},n=0;n<e.length;n++)mr.propertiesVisitorProcessingDataProperty(e[n].children,t.createPidlInfos,{pageIndex:n,pidlInfos:r});t.pidlDocInfos=r},this.getDefaultSelectionStrings=function(e,t,r){if(e&&t){var n=t.getIdentityString(e),i=n+"_"+fe.prefillDropdownDefault,o=n+"_"+fe.prefillDropdownNew,a=(r||{})[i],s=(r||{})[o];if(a&&s){var l=[];return l.push(a),l.push(s),l}}},this.createMultiPropertySelectors=function(e,r,n,i){var o=mr.findPrefillControlElement(e),a=!1;for(var s in t.pidlDocInfos){var l,d=t.pidlDocInfos[s],u=t.pidlIdentityPrefillObjectMapping[s],c=o&&d.allPropertyOnSamePage&&s===o.pidlIdentity;if(u&&u.objectIds&&d.modelDataProperties)if(c&&o.type===M.checkBox)u.objectIds.length>1&&i.error(new ir.unexpectedError(or.unexpectedPrefillDataCount,[s,"1",u.objectIds.length.toString()])),l=new oi(s,t.defaultInstanceId,u,d.modelDataProperties),t.multiPropertySelectors[s]=l,a=!0;else if(c&&o.type===M.dropdown&&u.objectIds.length>1){var p=t.getDefaultSelectionStrings(s,n,r);l=new oi(s,t.defaultInstanceId,u,d.modelDataProperties,p),t.multiPropertySelectors[s]=l}else for(var m=0;m<d.modelDataProperties.length;m++)d.modelDataProperties[m].setDefaultObjectAsCurrent()}return a},this.getPidlInfoMatch=function(e){for(var r in t.pidlDocInfos)for(var n=t.pidlDocInfos[r].modelDataProperties,i=0;i<n.length;i++)if(e[n[i].propertyName])return t.pidlDocInfos[r]},this.fillPrefillData=function(){for(var e=0;e<t.prefillData.length;e++){var r=t.prefillData[e],n=t.getPidlInfoMatch(r);if(n)for(var i=0;i<n.modelDataProperties.length;i++){var o=n.modelDataProperties[i].propertyName;r[o]=r[o]?r[o]:""}}},this.getPropertyValueInternal=function(e,r,n){if(r){if(void 0===n)if(Rn.isArray(r))for(var i=0;i<r.length;i++)n=n||t.getPropertyValueInternal(e,r[i],n);else if(Rn.isObject(r)||r.hasOwnProperty(e))for(var o in r)e===o?n=r[o]:void 0===n&&(n=t.getPropertyValueInternal(e,r[o],n));return n}},this.reset=function(){t.prefillData=null,t.multiPropertySelectors={},t.modelDataProperties={},t.pidlIdentityPrefillObjectMapping={},t.pidlDocInfos={}},this.parse=function(e,r,n,i,o,a){var s=!1;return t.prefillData=e,t.addId(t.prefillData),t.multiPropertySelectors={},t.modelDataProperties=n,t.getPidlInfos(r),t.prefillData&&(t.fillPrefillData(),mr.propertiesVisitorProcessingDataProperty(r,t.parsePrefillData),s=t.createMultiPropertySelectors(r,i,o,a)),{multiPropertySelectors:t.multiPropertySelectors,editable:s}},this.getPropertyValue=function(e){if(t.prefillData)return t.getPropertyValueInternal(e,t.prefillData)},this.getPrefillData=function(){return t.prefillData||{}},this.testHookGetParsePrefillDataFunc=function(){return t.parsePrefillData},this.defaultInstanceId=e},ui=function(e,t,r,n){var i=this;this.objectId=null,this.defaultObjectId=null,this.objectIdValuesMapping={},this.propertyName=null,this.modelElement=null,this.editState=null,this.setCurrentObjectId=function(e){i.objectId=e},this.setDefaultObjectAsCurrent=function(){var e=null;for(e in i.objectIdValuesMapping)if(e!==i.defaultObjectId)break;var t=null;e&&(t=i.objectIdValuesMapping[e]),i.objectIdValuesMapping[i.defaultObjectId]=t,i.objectId=i.defaultObjectId},this.setValue=function(e){var t=!1;return!e&&i.modelElement&&i.modelElement.hidden()&&i.modelElement.defaultValue&&(e=i.modelElement.defaultValue),i.objectId!==i.defaultObjectId&&e!==i.objectIdValuesMapping[i.objectId]&&(i.objectId=i.defaultObjectId,t=!0),i.objectIdValuesMapping[i.objectId]=e,t},this.getValue=function(e,t){var r=i.objectIdValuesMapping[i.objectId];if(Xr(i.modelElement)&&Rn.isObject(i.modelElement.possibleOptions)){if(!i.modelElement.possibleOptions[r])return mr.normalizeValueToPossibleValues(i.modelElement,r);if(e&&t&&r&&i.modelElement.possibleOptions[r].pidlAction)return i.modelElement.possibleOptions[r].pidlAction.context}return r},this.isEditable=function(e){return(i.objectId===i.defaultObjectId||e)&&(!i.modelElement||!i.modelElement.disabled())},this.setInstances=function(e){i.objectIdValuesMapping=xn.extend(i.objectIdValuesMapping,e)},this.propertyName=e,this.modelElement=n,this.editState=he.clean,this.objectId=t,this.defaultObjectId=t,this.objectIdValuesMapping=r},ci=function(e){var t=this;this.inputPrefillDataManager=null,this.multiPropertySelectors={},this.modelDataProperties={},this.inputInstance=null,this.pidlDocManager=null,this.dataStore=null,this.resourceResponse=null,this.getInstancePropertyValue=function(e,r,n){if(Rn.isArray(r)){for(var i=0;i<r.length;i++)if(t.getInstancePropertyValue(e,r[i],n))return!0}else if(Rn.isObject(r))for(var o in r){if(o===e)return n[e]=r[e],!0;if(t.getInstancePropertyValue(e,r[o],n))return!0}},this.getDisplayPropertyValueInternal=function(e){var r=t.displayData&&t.displayData.details&&t.displayData.details[e];if(r)return r;var n=t.modelDataProperties[e];if(n){var i=n.modelElement;if(i&&i.possibleOptions){var o=n.getValue(),a=i.possibleOptions[o];if(a)return a.displayText}}},this.maskPropertyValueFlagExists=function(e){var r=t.modelDataProperties[e];return r&&r.modelElement&&r.modelElement.maskDisplay},this.mergeUserDataInternal=function(e,r){var n=e.getPropertyName();if(r.userData.hasOwnProperty(n)){var i=r.userData[n],o=t.getMaskedPropertyValue(n);if(!o||i!==o){var a=t.modelDataProperties[n];i!==a.getValue(!1)&&r.conflictingInputValueReporter&&r.conflictingInputValueReporter(n),a.setValue(i)}}},this.updateModelElement=function(e){var r=e.getPropertyName(),n=t.modelDataProperties[r];n||(t.populateInternal(e),n=t.modelDataProperties[r]);var i=n.modelElement;if(i&&e.pidlIdentity!==i.pidlIdentity){n.modelElement=e;var o=t.multiPropertySelectors[i.pidlIdentity];o&&(t.multiPropertySelectors[e.pidlIdentity]=o,o.pidlIdentity=e.pidlIdentity,delete t.multiPropertySelectors[i.pidlIdentity])}},this.populateInternal=function(e){var r={},n=e.getPropertyName();t.modelDataProperties[n]||(r[t.defaultInstanceId]=e.defaultValue,t.modelDataProperties[n]=new ui(n,t.defaultInstanceId,r,e))},this.getPropertyInternal=function(e,r,n){var i=!0,o=null,a=t.modelDataProperties[e];return a?(o=a.getValue(r,n),i=a.isEditable(t.editablePrefillData)):o=t.inputInstance&&t.inputInstance.hasOwnProperty(e)?t.inputInstance[e]:t.inputPrefillDataManager.getPropertyValue(e),{value:o,editable:i,propertyName:e}},this.setJumpbackData=function(e){if(e)for(var r in t.modelDataProperties)e.hasOwnProperty(r)&&t.modelDataProperties[r].setValue(e[r])},this.removeClientAction=function(e){if(e){var t=Rn.deepCopy(e);return delete t.clientAction,t}return e},this.setPrefillData=function(e,r,n,i){if(e.elements&&r){var o=t.inputPrefillDataManager.parse(r,e.elements,t.modelDataProperties,n,e.pidlDocManager,i);t.multiPropertySelectors=o.multiPropertySelectors,t.editablePrefillData=o.editable,t.setPrefillDataInPartnerDataSource(r)}},this.getPrefillData=function(){return t.inputPrefillDataManager.getPrefillData()},this.setPrefillDataInPartnerDataSource=function(e){var r=t.getPartnerData()||{};r.prefillData=e,t.setPartnerData(r)},this.setInputParametersInPartnerDataSource=function(e){var r=t.getPartnerData()||{};r.inputParameters=e,t.setPartnerData(r)},this.setDisplayData=function(e){t.displayData=e},this.updateUserData=function(e){t.setJumpbackData(e)},this.mergeUserData=function(e,r,n){r&&e&&e.elements&&mr.propertiesVisitorProcessingDataProperty(e.elements,t.mergeUserDataInternal,{userData:r,conflictingInputValueReporter:n})},this.updateModelElements=function(e){e&&mr.propertiesVisitorProcessingDataProperty(e,t.updateModelElement)},this.getPropertyValue=function(e,r,n){var i=t.getPropertyInternal(e,r,n);if(i)return i.value},this.getProperty=function(e){return t.getPropertyInternal(e)},this.getPropertyModelElement=function(e){return t.modelDataProperties[e]?t.modelDataProperties[e].modelElement:null},this.getDisplayPropertyValue=function(e){return t.getDisplayPropertyValueInternal(e)},this.getMaskedPropertyValue=function(e){return t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]},this.clearMaskedPropertyValue=function(e){t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]&&(t.displayData.details[e]=null)},this.getModelDataProperty=function(e){return t.modelDataProperties[e]},this.setMultiPropertySelectorIndex=function(e,r){var n=t.multiPropertySelectors[e];n&&n.setIndex(r)},this.getMultiPropertySelectorIndex=function(e){var r=t.multiPropertySelectors[e];if(r)return r.getIndex()},this.getMultiPropertySelectorPossibleOptions=function(e){var r=t.multiPropertySelectors[e];if(r)return r.getPossibleOptions()},this.getId=function(){return t.inputInstance?t.inputInstance.hasOwnProperty("id")?t.inputInstance.id:void 0:t.inputPrefillDataManager.getPropertyValue("id")},this.setDataSource=function(e,r){t.dataStore.saveDataSource(e,r)},this.getDataSource=function(e){return t.dataStore.readDataSource(e)},this.getAllDataSources=function(){return t.dataStore.readAllDataSources()},this.setPartnerData=function(e){t.dataStore.savePartnerData(e)},this.getPartnerData=function(){return t.dataStore.readPartnerData()},this.cacheFlow=function(){var e=t.pidlDocManager.getPidlIdentity();return e&&t.dataStore.saveModelData(cr.createIdentityHash(e),t.modelDataProperties),e},this.clearFlow=function(){t.displayData=null,t.modelDataProperties={},t.multiPropertySelectors={},t.inputInstance=null,t.inputPrefillDataManager.reset()},this.clearAll=function(){t.dataStore.clear(),t.resourceResponse=null,t.clearFlow()},this.clearDataSourceCache=function(){t.dataStore.clearDataSourceCache()},this.populate=function(e){mr.propertiesVisitorProcessingDataProperty(e,t.populateInternal)},this.getModelDataProperties=function(e){var r={properties:{}};return mr.propertiesVisitorProcessingDataProperty(e,(function(e,r){var n=e.getPropertyName(),i=t.modelDataProperties[n];i&&(r.properties[n]=i)}),r),r.properties},this.setInputInstance=function(e,r){r&&(mr.propertiesVisitorProcessingDataProperty(e,(function(e,r){var n={},i=e.getPropertyName();t.getInstancePropertyValue(i,r.inputInstanceDetails,n)&&t.modelDataProperties[i].setValue(n[i])}),{inputInstanceDetails:r}),t.inputInstance=r)},this.setPrimaryResourceResponse=function(e,r){var n=[];r&&r.length&&r.forEach((function(e){return n.push(t.removeClientAction(e))})),t.resourceResponse={primary:t.removeClientAction(e),secondary:n}},this.retrieveFromCache=function(e,r){if(e=e||t.pidlDocManager.getPidlIdentity()){var n=t.dataStore.readModelData(cr.createIdentityHash(e));if(r)for(var i=0;i<r.length;i++)n.hasOwnProperty(r[i])&&delete n[r[i]];if(n)return t.setJumpbackData(n),!0}},this.getPrimaryResourceResponseId=function(){return t.resourceResponse&&t.resourceResponse.primary&&t.resourceResponse.primary.id},this.getResourceResponse=function(){return t.resourceResponse},this.testHookSetMultiPropertySelectors=function(e){t.multiPropertySelectors=e},this.testHookGetMultiPropertySelectors=function(){return t.multiPropertySelectors},this.testHookSetModelDataProperties=function(e){t.modelDataProperties=e},this.testHookGetModelDataProperties=function(){return t.modelDataProperties},this.testHookGetDefaultInstanceId=function(){return t.defaultInstanceId},this.testHookGetDisplayData=function(){return t.displayData},this.testHookSetInputPrefillDataManager=function(e){t.inputPrefillDataManager=e},this.testHookSetEditablePrefillData=function(e){t.editablePrefillData=e},this.displayData=null,this.defaultInstanceId=xn.guid(),this.inputPrefillDataManager=new di(this.defaultInstanceId),this.multiPropertySelectors={},this.pidlDocManager=e,this.dataStore=new ni},pi=new function(){this.luhn=function(e){for(var t=0,r=!1,n=e.length-1;n>=0;n--){var i=parseInt(e.charAt(n));r&&(i*=2)>9&&(i-=9),t+=i,r=!r}return t%10===0}},mi=function(){this.aggregateCommerceResults=function(e,t){return e.length?new Promise((function(r,n){var i=[],o=0,a=function(){if(++o===e.length){var n=i.length?i[0].error:null;n=i.length&&t?t(n):n,r({innerErrors:i,error:n})}};e.forEach((function(e){e.then((function(e){e.error&&i.push(e),a()})).catch((function(e){i.push({error:new ir.unexpectedError(e)}),a()}))}))})):Nn({innerErrors:[]})}},fi=new mi,yi=function(){var e=this;this.validateUserInputDataFromService=function(e,t,r,n,i,o,a){var s=Ct.buildUrl(An.getServiceEndpoint(An.virtualEndpoints.validation.endpoint),[o]),l={value:n,propertyName:r};t&&(l.urlValidationType=t);var d=JSON.stringify(l),u=$n.getDefaultHttpHeaders(e);return u[ee.msFlight]="pxpidl",new Promise((function(t,n){$n.post(e,!0,s,u,d,(function(e){var n=Rn.equalsIgnoreCase(e.status,w.Passed)?null:new ir.propertyValidationFailedError(or.propertyValidationFailed,e.errorCode,r,[r,e.errorCode]);t({error:n})}),(function(e){t({error:new ir.propertyValidationFailedError(or.propertyValidationFailed,Y.empty,r,[r,Y.empty])})}),i,An.virtualEndpoints.validation.operation,An.virtualEndpoints.validation.description,!0,a).catch(On)}))},this.validateUserInputDataInternal=function(t,r,n,i,o){var a=r.data_description,s=[];for(var l in a){var d=a[l];if(Ot(d)){var u=d&&d.length&&d[0];u&&(s=s.concat(e.validateUserInputDataInternal(t,u,n[l],i,o)))}else{if(d.displayOnly||i===ct.update&&!d.is_updatable)continue;var c=null;if(o){var p=o.getModelDataProperty(l);p&&(c=p.modelElement)}s.push(e.validatePropertyFromPropertyDescription(t,c,sr.getPropertyValueFromInputData(n,l),i,l,d))}}return s},this.validatePropertyFromPropertyDescription=function(t,r,n,i,o,a){var s,l=w.Passed,d=null,u=null;if((null===r||void 0===r?void 0:r.type)===M.secureProperty)u=r.validate().then((function(e){return e?{error:new ir.propertyValidationFailedError(or.propertyValidationFailed,e,a.display_property||o,[a.display_property||o,e])}:{error:null}}));else if(n){if(a.validation||a.validations)for(var c=null==a.validations?[a.validation]:a.validations,p=0;p<c.length&&l===w.Passed;p++)switch(c[p].validationType){case pt.regex:var m=new RegExp(c[p].regex);r&&r.type&&r.type===M.filePicker?n&&n.name&&!1===m.test(n.name)&&(l=w.Fail,d=c[p].error_code):!1===m.test(n)&&(l=w.Fail);break;case pt.function:pi[c[p].function]&&pi[c[p].function](n)||(l=w.Fail,d=c[p].error_code);break;case pt.service:u=e.validateUserInputDataFromService(t,c[p].urlValidationType,o,n,i,c[p].url,null===(s=null===a||void 0===a?void 0:a.dataProtection)||void 0===s?void 0:s.fetchConfig);break;case pt.size:var f=c[p].maxFileSize;r&&r.type&&r.type===M.filePicker&&n&&n.size&&n.size>f&&(l=w.Fail,d=c[p].error_code)}}else a.is_optional||(l=w.Fail,d=Y.empty);return u||(u=Nn({error:l===w.Passed?null:new ir.propertyValidationFailedError(or.propertyValidationFailed,d,a.display_property||o,[a.display_property||o,d])})),u},this.validateUserInputData=function(t,r,n,i,o){var a=e.validateUserInputDataInternal(t,r,n,i,o);return fi.aggregateCommerceResults(a)},this.validateUserInputProperty=function(t,r,n,i){var o=e.validatePropertyFromPropertyDescription(t,r,n,i,r.getPropertyName(),r.dataDescription);return fi.aggregateCommerceResults([o])}},hi=new yi,gi=function(e,t){var r=this;this.shouldValidateProperty=function(e,t){if(r.alwaysValidateOnChange)return!0;var n=e.editState,i=e.modelElement;if(!i||i.type!==M.textBox&&i.type!==M.dropdown&&i.type!==M.checkBox&&i.type!==M.secureProperty)return n===he.clean?""!==e.getValue():t===ge.editing||t===ge.finished;switch(n){case he.clean:return!1;case he.editing:return t===ge.finished;case he.dirty:return!0}},this.shouldValidatePropertyInPageValidation=function(e,t){return t!==Z.dirtyOnly||e===he.dirty},this.getUpdatedPropertyState=function(e,t){var r=e.editState,n=e.modelElement;if(!n||n.type!==M.textBox&&n.type!==M.dropdown&&n.type!==M.checkBox&&n.type!==M.secureProperty)return r===he.clean&&""!==e.getValue()?he.dirty:null;switch(r){case he.clean:return t===ge.editing?he.editing:null;case he.editing:return t===ge.finished?he.dirty:null;case he.dirty:return null}},this.validatePropertyValue=function(e,t){return hi.validateUserInputProperty(r.eventHub,e.modelElement,e.getValue(),t)},this.validatePageElements=function(e,t,n,i){var o=[],a=function(a){var s=e[a];r.shouldValidatePropertyInPageValidation(s.editState,t)&&o.push(r.validatePropertyValue(s,n).then((function(t){var n=t.error;if(n){var o=e[n.propertyName];if(o){var l=o.modelElement;(Dn(l)||En(l))&&(n.message=l.getErrorMessage(o.getValue(),n.errorCode)),o.editState=he.dirty,i.push(n)}}else s&&r.eventHub.propertyValidated(a,ge.finished)})).catch((function(){return On})))};for(var s in e)a(s);return o},this.validateProperty=function(e,t,n){var i=r.shouldValidateProperty(e,t),o=r.getUpdatedPropertyState(e,t);return o&&(e.editState=o),new Promise((function(o,a){i?r.validatePropertyValue(e,n).then((function(n){var i=n.error;if(i){var a=e.modelElement;(Dn(a)||En(a))&&(i.message=a.getErrorMessage(e.getValue(),i.errorCode)),r.eventHub.error(i,t)}else r.eventHub.propertyValidated(e.propertyName,t);o()})).catch((function(){return On})):o()}))},this.clearElementEditState=function(e){e.editState=he.clean},this.validatePage=function(e,t,n){return t===Z.all&&r.eventHub.inputValidating(),e?new Promise((function(i,o){var a=[],s=r.validatePageElements(e,t,n,a);Promise.all(s).then((function(){if(a.length){var e=new ir.formValidationFailedError(t===Z.all?or.formValidationFailed:or.editedPropertiesValidationFailed,"",a,[""]);r.eventHub.error(e),o(e)}else i(),t===Z.all&&r.eventHub.inputValidated()}),(function(){o()}))})):(t===Z.all&&r.eventHub.inputValidated(),Nn())},this.eventHub=e,this.alwaysValidateOnChange=t},vi=new function(){var e=this;this.getCryptoSubtleInstance=function(){return window&&window.crypto&&window.crypto.subtle},this.isSupported=function(){return e.getCryptoSubtleInstance()}},Pi={name:"HMAC",hash:{name:"SHA-256"}},bi=function(){var e=this;this.init=function(){var t=vi.getCryptoSubtleInstance();return t?new Promise((function(r,n){t.generateKey(Pi,!0,["sign"]).then((function(n){e.hmacKey=n,t.exportKey("raw",e.hmacKey).then((function(t){var n={};try{e.rawKey=btoa(String.fromCharCode.apply(null,new Uint8Array(t)))}catch(i){n.error=new ir.unexpectedError(or.hmacError,[i&&i.message])}r(n)}),(function(e){r({error:new ir.unexpectedError(or.hmacError,[e&&e.message])})}))}),(function(e){r({error:new ir.unexpectedError(or.hmacError,[e&&e.message])})}))})):Nn({error:new ir.unexpectedError(or.hmacError,["Failed to Init hmac"])})},this.getRawKey=function(){return e.rawKey},this.sign=function(t){var r=vi.getCryptoSubtleInstance();return r&&e.hmacKey?new Promise((function(n,i){for(var o=new Uint8Array(t.length),a=0;a<t.length;a++)o[a]=t.charCodeAt(a);r.sign(Pi,e.hmacKey,o).then((function(e){var t=null;try{var r=new Uint8Array(e);t=btoa(String.fromCharCode.apply(null,r))}catch(i){n({error:new ir.unexpectedError(or.hmacError,[i&&i.message])})}n({data:t})}),(function(e){n({error:new ir.unexpectedError(or.hmacError,[e&&e.message])})}))})):Nn({error:new ir.unexpectedError(or.hmacError,["hmac not initialized"])})},this.testHookGetHmacAlgo=function(){return Pi},this.testHookSetHmacKey=function(t){e.hmacKey=t},this.hmacKey=null,this.rawKey=null};function Ei(e){e=e||{};return function(){var t={register:function(e,r,n){t[e]||(t[e]={});var i=t[e];i[r]||(i[r]=n)},exists:function(e,r){return!!t[e]&&!!t[e][r]}},r=function(){if("undefined"!==typeof document)try{throw new Error}catch(t){if(t.stack){var e=/\w+:\/\/(.+?\/)*.+\.js/.exec(t.stack);return e&&e.length>0?e[0]:null}}else if("undefined"!==typeof self&&"undefined"!==typeof self.location)return self.location.href;return null}(),n="undefined"!==typeof Worker,o="function"===typeof importScripts&&self instanceof WorkerGlobalScope,a=!1,s="undefined"!==typeof ArrayBuffer,l=function(){try{return Object.defineProperty({},"oncomplete",{}),!0}catch(e){return!1}}(),d=!1,u=function(e,t,r,n,i){if(l){var o={};n&&(o.get=n),i&&(o.set=i),Object.defineProperty(e,t,o)}else e[t]=r},c={},p=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4!==0;)t+="=";var r,n,i,o,a,s,l,d=[];for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),l=0;l<t.length;l+=4)r=e.indexOf(t.charAt(l))<<2|(o=e.indexOf(t.charAt(l+1)))>>4,n=(15&o)<<4|(a=e.indexOf(t.charAt(l+2)))>>2,i=(3&a)<<6|(s=e.indexOf(t.charAt(l+3))),d.push(r),64!==a&&d.push(n),64!==s&&d.push(i);return d}function r(e){return Object.prototype.toString.call(e).slice(8,-1)}function n(e){return[e>>>24&255,e>>>16&255,e>>>8&255,255&e]}function i(e){if(!e)return[];if(e.pop)return e;if("ArrayBuffer"===r(e)?e=new Uint8Array(e):e.BYTES_PER_ELEMENT>1&&(e=new Uint8Array(e.buffer)),1===e.length)return[e[0]];if(e.length<65536)return Array.apply(null,e);for(var t=new Array(e.length),n=0;n<e.length;n++)t[n]=e[n];return t}function o(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}return{consoleLog:function(e){"console"in self&&"log"in console&&console.log(e)},toBase64:function(t,n){var o=r(t);if("Array"!==o&&"Uint8Array"!==o&&"ArrayBuffer"!==o)throw new Error("invalid input");var a,s,l,d,u,c,p,m,f="",y=i(t);for(n||(n=!1),m=0;m<y.length;m+=3)d=(a=y[m])>>2,u=(3&a)<<4|(s=y[m+1])>>4,c=(15&s)<<2|(l=y[m+2])>>6,p=63&l,isNaN(s)?c=p=64:isNaN(l)&&(p=64),f=f+e.charAt(d)+e.charAt(u)+e.charAt(c)+e.charAt(p);return n?f.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,""):f},fromBase64:t,checkParam:function(e,t,n){if(!e)throw new Error(n);if(t&&r(e)!==t)throw new Error(n);return!0},getObjectType:r,bytesToHexString:function(e,t){var r="";"undefined"===typeof t&&(t=!1);for(var n=0;n<e.length;n++){t&&n%4===0&&0!==n&&(r+="-");var i=e[n].toString(16).toUpperCase();1===i.length&&(r+="0"),r+=i}return r},bytesToInt32:function(e,t){return e[t=t||0]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},stringToBytes:function(e){for(var t=[],r=0,n=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>>6|192,t[n++]=63&i|128):i<55296||i>57343?(t[n++]=i>>>12|224,t[n++]=i>>>6&63|128,t[n++]=63&i|128):(i=1024*(i-55296)+(e.charCodeAt(++r)-56320)+65536,t[n++]=i>>>18|240,t[n++]=i>>>12&63|128,t[n++]=i>>>6&63|128,t[n++]=63&i|128)}return t},bytesToString:function(e){var t,r="";e=i(e);for(var n=0;n<e.length;){var o=e[n++];if((t=o<128?o:o<224?(o<<6)+e[n++]-12416:o<240?(o<<12)+(e[n++]<<6)+e[n++]-925824:(o<<18)+(e[n++]<<12)+(e[n++]<<6)+e[n++]-63447168)>65535){var a=Math.floor((t-65536)/1024)+55296,s=(t-65536)%1024+56320;r+=String.fromCharCode(a,s)}else r+=String.fromCharCode(t)}return r},unpackData:function(e,r,n){var i,o=t(e),a=[];if(isNaN(r))return o;for(i=0;i<o.length;i+=r)a.push(o.slice(i,i+r));if(n)for(i=0;i<a.length;i++)a[i]=(a[i][0]<<24)+(a[i][1]<<16)+(a[i][2]<<8)+a[i][3];return a},hexToBytesArray:function(e){e=e.replace(/\-/g,"");for(var t=[];e.length>=2;)t.push(parseInt(e.substring(0,2),16)),e=e.substring(2,e.length);return t},int32ToBytes:n,int32ArrayToBytes:function(e){for(var t=[],r=0;r<e.length;r++)t=t.concat(n(e[r]));return t},toArray:i,arraysEqual:function(e,t){var r=!0;e.length!==t.length&&(r=!1);for(var n=0;n<e.length;n++)e[n]!==t[n]&&(r=!1);return r},clone:function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t},xorVectors:function(e,t,r){for(var n=Math.min(e.length,t.length),i=(r=r||new Array(n),0);i<n;i+=1)r[i]=e[i]^t[i];return r},padEnd:function(e,t,r){for(;e.length<r;)e.push(t);return e},padFront:function(e,t,r){for(;e.length<r;)e.unshift(t);return e},getVector:function(e,t){isNaN(t)&&(t=0);for(var r=new Array(e),n=0;n<e;n+=1)r[n]=t;return r},verifyByteArray:function(e){if("Array"!==r(e))return!1;for(var t,n=0;n<e.length;n++)if(t=e[n],isNaN(t)||t<0||t>255)return!1;return!0},error:function(e,t){var r=Error(t);throw r.name=e,r},isBytes:function(e){if(!(e instanceof Array))return!1;for(var t=0;t<e.length;t++){var r=e[t];if(!o(r)||r>255||r<0)return!1}return!0},isInteger:o}}(),m=function(){var e={0:"CUSTOM",1:"BOOLEAN",2:"INTEGER",3:"BIT STRING",4:"OCTET STRING",5:"NULL",6:"OBJECT IDENTIFIER",16:"SEQUENCE",17:"SET",19:"PRINTABLE STRING",23:"UTCTime"};function t(e){var t=e.length;if(t<=127)return[t];var n=r(t);return n.unshift(128|n.length),n}function r(e){var t=[];if(0===e)return[0];for(;e>0;)t.unshift(255&e),e>>>=8;return t}function n(e,t){var r=new Array(t+1).join(" ")+e.type+" ("+e.length+") "+bytesToHexString(e.data).substring(0,16)+"\n";if(!e.children)return r;for(var i=0;i<e.children.length;i++)r+=n(e.children[i],t+4)+"";return r}return{parse:function t(r,n){n=!!n;var i,o,a,s=e[31&r[0]],l=r[1],d=0,u=!!(32&r[0]);if(128&l)for(d=0,l=0;d<(127&r[1]);d++)l=(l<<8)+r[2+d];if(a=2+d,void 0===s||l>r.length)return null;var c=u?[]:{};if(c.type=s,c.header=a,c.data=r.slice(0,l+a),u||n)for("BIT STRING"===c.type&&0===r[a]&&d++,i=r.slice(a,c.data.length);i.length>0&&null!==(o=t(i));)c.push(o),i=i.slice(o.data.length);return c},encode:function e(n){if(n.hasOwnProperty("INTEGER")){var i=n.INTEGER;return p.isInteger(i)&&(i=r(i)),128&i[0]&&i.unshift(0),[2].concat(t(i),i)}if(n.hasOwnProperty("OCTET STRING"))return(i=n["OCTET STRING"])instanceof Array||(i=e(i)),[4].concat(t(i),i);if(n.hasOwnProperty("BIT STRING"))return(i=n["BIT STRING"])instanceof Array||(i=e(i)),i.unshift(0),[3].concat(t(i),i);if(n.hasOwnProperty("NULL"))return[5,0];if(n.hasOwnProperty("OBJECT IDENTIFIER")){i=function(e){for(var t=e.split("."),r=[parseInt(40*t[0]+parseInt(t[1]))],n=2;n<t.length;n++){for(var i=parseInt(t[n]),o=[];i>0;)o.push(127&i|128),i>>>=7;o[0]=127&o[0],r=r.concat(o.reverse())}return r}(n["OBJECT IDENTIFIER"]);return[6].concat(t(i),i)}if(n.hasOwnProperty("SEQUENCE")){for(var o=n.SEQUENCE,a=(i=[],0);a<o.length;a++)i=i.concat(e(o[a]));return[48].concat(t(i),i)}if(n.hasOwnProperty("APPLICATION")){o=n.APPLICATION;var s=isNaN(parseInt(o[0]))?32:0,l=n.tag;i=s?[]:n.APPLICATION;if(s)for(a=0;a<o.length;a++)i=i.concat(e(o[a]));return[160|s|l].concat(t(i),i)}throw new Error("unsupported asn.1 type")},toString:function(e){return n(e,0)}}}(),f=function(){function e(e){return a&&o&&self.postMessage(e),e}return{jsCryptoRunner:function(r){r.data.workerid,r.data.operationType,r.data.operationSubType;var n=r.data.operationType,i=t[n][r.data.algorithm.name],o=r.data;if(!t.exists(n,r.data.algorithm.name))throw new Error("unregistered algorithm.");return o.operationSubType?e({type:o.operationSubType,result:i(o)}):e(i(o))},returnResult:e}}();o&&(self.onmessage=function(e){if(!a&&e.data.prngSeed){var t=e.data.prngSeed;return L.init(t),a=!0,f.returnResult({initialized:!0})}!0===a&&f.jsCryptoRunner(e)});var y=function(){var e=p;function t(e){var t=e.algorithm.name.slice(0,3).toUpperCase();return"RSA"===t?"RSA":"ECD"===t?"EC":"oct"}function r(e){return e.hash.name.substring(e.hash.name.indexOf("-")+1)}var n={HMAC:function(e){return"HS"+r(e)},"AES-CBC":function(e){return"A"+e.length.toString()+"CBC"},"AES-GCM":function(e){return"A"+e.length.toString()+"GCM"},"AES-KW":function(e){return"A"+e.length.toString()+"KW"},"RSAES-PKCS1-V1_5":function(e){return"RSA1_5"},"RSASSA-PKCS1-V1_5":function(e){return"RS"+r(e)},"RSA-OAEP":function(e){return"SHA-1"===e.hash.name.toUpperCase()?"RSA-OAEP":"RSA-OAEP-"+r(e)},"RSA-PSS":function(e){return"PS"+r(e)},ECDSA:function(e){return"EC-"+e.namedCurve.substring(e.namedCurve.indexOf("-")+1)}};return{keyToJwkOld:function(r,n){var i={};if(i.kty=t(r),i.extractable=r.extractable,n.pop)i.k=e.toBase64(n,!0);else for(var o in n)n[o].pop&&(i[o]=e.toBase64(n[o],!0));return r.algorithm.namedCurve&&(i.crv=r.algorithm.namedCurve),function(e){for(var t=[],r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return 0===t[t.length-1]&&t.pop(),t}(JSON.stringify(i,null,"\t"))},keyToJwk:function(r,i){var o={};if(o.kty=t(r),o.ext=r.extractable,n[r.algorithm.name.toUpperCase()]&&(o.alg=n[r.algorithm.name.toUpperCase()](r.algorithm)),o.key_ops=r.usages,i.pop)o.k=e.toBase64(i,!0);else for(var a in i)i[a].pop&&"key_ops"!==a&&(o[a]=e.toBase64(i[a],!0));return r.algorithm.namedCurve&&(o.crv=r.algorithm.namedCurve),o},jwkToKey:function(t,r,n){for(var i=JSON.parse(JSON.stringify(t)),o=0;o<n.length;o+=1){var a=i[n[o]];a&&(i[n[o]]=e.fromBase64(a))}return i}}}();var h=h||function(){for(var e=24,t=Math.floor(3),r=16777215,n=16777216,i=1/n,o=[1,256],a=2;a<=t;a++)o[a]=256*o[a-1];var s=[0],l=[1];function d(e){var t,r=null;if(arguments.length&&"number"!==typeof arguments[0]){if("object"===typeof arguments[0])for(r=new Array(e.length),t=0;t<e.length;t+=1)r[t]=e[t]}else for(r=new Array(e),t=0;t<e;t+=1)r[t]=0;return r}function u(e,t,r,n,i){for(;i-- >0;)r[n+i]=e[t+i]}function c(e){var t,r=0;for(t=0;t<e.length;t+=1)r|=e[t];return!r}function p(e){var r=Math.floor((e.length+t-1)/t),i=new Array(r);i[0]=0;for(var a=0,s=0,l=0,d=e.length-1;d>=0;d--)a+=o[l++]*(255&e[d]),o[l]===n&&(l=0,i[s++]=a,a=0);for(0!==a&&(i[s]=a);null==i[--r];)i[r]=0;return i}function m(t,r){if("undefined"===typeof r)if(t<=1)r=1;else{var i=Math.log(t)/Math.LN2;r=Math.ceil(i/e)}for(var o=[];t>0;)o.push(t%n),t=Math.floor(t/n);for(;o.length<r;)o.push(0);return o}function f(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t]&&0!==e[t])return t;return 0===e[0]?-1:0}function y(e,t){var r,n,i=0;for(n=0;n<Math.max(e.length,t.length);n++)i=(r=~~e[n]-~~t[n])+(i&-!r);return i}function g(e,t,r){var n=f(e);if(e.length=t||n+1,r)for(;++n<e.length;)e[n]=0;return e.length<=0&&(e[0]=0,e.length=1),e}function v(t,n,i,o){if(void 0===i)i=1;else if(i>=e||i<0)throw new Error("bit count must be smaller than DIGIT_BITS and positive in shiftLeft");void 0===o&&(o=t.length);var a=e-i;n[o]=t[o-1]>>>e-i||n[o];for(var s=o-1;s>0;s--)n[s]=(t[s]<<i|t[s-1]>>>a)&r;n[0]=t[0]<<i&r}function P(t,n,i){var o=t,a=n;n.length<t.length&&(o=n,a=t);var s,l=o.length,d=0;for(s=0;s<l;s+=1)d+=o[s]+a[s],i[s]=d&r,d>>=e;for(s=l;s<a.length;s+=1)d+=a[s],i[s]=d&r,d>>=e;return i.length=a.length,0!==d&&(i[s]=d&r),d}function b(t,n,i){var o=n.length;if(t.length<n.length&&(o=f(n)+1,t.length<o))throw new Error("Subtrahend is longer than minuend, not supported.");var a,s=0;for(a=0;a<o;a+=1)s+=t[a]-n[a],i[a]=s&r,s>>=e;for(;a<t.length;)s+=t[a],i[a++]=s&r,s>>=e;return s}function E(e,t,n){t="number"===typeof t?[t]:t;var o,a,s,l,d,u,c,p,m=e.length,f=t.length;for(o=0;o<m+f;o+=1)n[o]=0;o=0,l=0;for(var y=0;o<f;){for(l=Math.min(l+31,f);o<l;o++)for(p=t[o],a=0;a<m;a++)n[o+a]+=e[a]*p;for(d=0,s=y;s<o+m;s++)c=(u=n[s]+d)&r,n[s]=c,d=(u-c)*i;n[s]=d,y+=31}return n.length=m+f,n}function I(t,i,o,a,s,l){var d,c,p,m,y,h,P,b=f(t)+1,E=f(i)+1;if(b<E)return u(t,0,a,0,t.length),a.length=t.length,g(a),o[0]=0,void(o.length=1);if(0===E||1===E&&0===i[E-1])throw new Error("Division by zero.");if(1===E){for(y=i[0],c=0,P=b-1;P>=0;P--)m=c*n+t[P],o[P]=m/y&r,c=m-o[P]*y&r;return o.length=b,g(o),a[0]=c,void(a.length=1)}var I=23-function(t){for(var r=0,n=0;n<e;n++)r=Math.max(r,-(t>>>n&1)&n);return r}(i[E-1]),S=s||[];S.length=E,v(i,S,I,E);var C=l||[];for(C.length=b,v(t,C,I,b),C[b]=C[b]||0,o.length=b-E+1,a.length=E,P=b-E;P>=0;P--){for(d=Math.floor((C[P+E]*n+C[P+E-1])/S[E-1]),c=C[P+E]*n+C[P+E-1]-d*S[E-1];(d>=n||d*S[E-2]>c*n+C[P+E-2])&&(d-=1,(c+=S[E-1])<n););for(p=0,h=0;h<E;h++)m=d*S[h],y=C[h+P]-p-(m&r),C[h+P]=y&r,p=Math.floor(m/n)-Math.floor(y/n);if(y=C[P+E]-p,C[P+E]=y&r,o[P]=d&r,y<0){for(o[P]=o[P]-1,p=0,h=0;h<E;h++)y=C[h+P]+S[h]+p,C[h+P]=y&r,p=y>>e;C[P+E]=C[P+E]+p&r}}for(h=0;h<E;h++)a[h]=(C[h]>>>I|C[h+1]<<e-I)&r;g(o),g(a)}function S(e,t,r,n,i){var o;if(c(e))return u(t,0,i,0,t.length),i.length=t.length,0;if(c(t))return u(e,0,i,0,e.length),i.length=e.length,0;y(e,t)<0?(o=e.slice(0),u(t,0,i,0,t.length),i.length=t.length):(o=t.slice(0),u(e,0,i,0,e.length),i.length=e.length),g(i),g(o);var a,s,l=new Array(i.length),d=new Array(i.length),p=new Array(i.length),m=void 0!==n;m&&((a=new Array(i.length))[0]=1,a.length=1,n[0]=0,n.length=1);var f=new Array(i.length),h=void 0!==r;h&&((s=new Array(i.length))[0]=0,s.length=1,r[0]=1,r.length=1);for(var v,b=-1,S=r,C=n,D=i;!c(o);)I(i,o,l,d,f,p),h&&(E(l,s,f),P(f,r,f),g(f),v=r,r=s,s=f,f=v),m&&(E(l,a,p),P(p,n,p),g(p),v=n,n=a,a=p,p=v),v=i,i=o,o=d,d=v,b++;return h&&(u(r,0,S,0,r.length),S.length=r.length),m&&(u(n,0,C,0,n.length),C.length=n.length),u(i,0,D,0,i.length),D.length=i.length,b}function C(e,t,r,n){if(n=n||[],0===y(t,s))n[0]=1;else if(0===y(t,l))u(e,0,n,0,e.length),n.length=e.length;else{var i=new D(r);g(e,i.s,!0),i.modExp(e,t,n),n.length=r.length}return n}function D(t,n){function o(t){for(var n=1,i=2,o=3,a=o&t,s=2;s<=e;s+=1)i<a&&(n+=i),i<<=1,a=t*n&(o=o<<1|1);return 1+(~n&r)}function a(e,t,n,o){for(var a,s,u,c,p,m,f,y,g=(o=o||this).m,v=g.length,P=o.mPrime,b=o.m0,E=0,I=0,S=d(v+2);E<v;){for(I=Math.min(v,I+16);E<I;){for(a=~~t[E],u=((s=S[0]+e[0]*a)&r)*P&r,S[1]+=(b*u+s)*i|0,c=1,p=0;c<v;p=c,c+=1)S[p]=S[c]+g[c]*u+e[c]*a;S[p]=S[c],S[c]=0,E++}for(y=0,c=0;c<v;c++)f=(m=S[c]+y)&r,S[c]=f,y=(m-f)*i;S[c]=y}for(E=0;E<v;E+=1)n[E]=S[E];n.length=v;var C=+(h.compareDigits(S,g)>0);h.subtract(n,g,o.temp2),l(C,n,o.temp2)}function s(e,t,r){var n,i,o,a,s;for(n=0;n<e[0].length;n++)r[n]=0;for(i=0;i<e.length;i++)for(a=e[i],o=-(t===i),s=0;s<a.length;s++)r[s]=r[s]|a[s]&o}function l(e,t,r){for(var n=-e,i=~n,o=0;o<t.length;o++)t[o]=t[o]&i|r[o]&n}n=n||function(e){var t=e.length,r=e[0],n={m:e,mPrime:o(r),m0:r,temp1:d(2*t+1),temp2:d(2*t+1)},i=d(2*e.length);i[i.length]=1,n.mu=[],I(i,e,n.mu,[]);var s=d(2*t+1),l=d(t+1),u=d(2*t+1),c=d(2*t+1),p=l;p[t]=1,I(p,e,s,l,u,c),n.rModM=g(l,t,!0);var m=d(2*t+1),f=m;return f[2*t]=1,I(f,e,s,m,u,c),n.rSquaredModm=g(m,t,!0),n.rCubedModm=d(t),a(m,m,n.rCubedModm,n),n}(t);var u=n.m,c=n.mu,p=n.m0,m=u.length,f=d(m+1).slice(0,m);f[0]=1;var v=n.mPrime,P=n.rModM,S=n.rSquaredModm,C=n.rCubedModm,D=d(2*m+1),k=d(2*m+1),w=new Array(4);return w[0]=P,w[1]=new Array(m),w[2]=new Array(m),w[3]=new Array(m),{m:u,m0:p,mPrime:v,mu:c,rSquaredModm:S,s:m,rModM:P,rCubedModm:C,one:f,temp1:D,temp2:k,convertToMontgomeryForm:function(e){if(e.length<this.s){e.length=this.s;for(var t=0;t<this.s;t++)e[t]=isNaN(e[t])?0:e[t]}var r=d(e.length);for(this.montgomeryMultiply(e,this.rSquaredModm,r),t=0;t<this.s;t+=1)e[t]=r[t]},convertToStandardForm:function(e){this.montgomeryMultiply(e,this.one,this.temp1);for(var t=0;t<this.s;t+=1)e[t]=this.temp1[t]},montgomeryMultiply:a,modExp:function(t,r,n,i){i=!!i;var o,a,l=function(t){var r,n,i=2,o=t*e;n=4+3*Math.ceil(o/2)+1;do{i++,r=n,n=Math.pow(2,i)+Math.ceil(o/i)*(i+1)+1}while(n<r);return i-1}(r.length),d=function(t,r){var n,i=t.length,o=(new Array(i*e),0),a=0,s=0,l=0,d=new Array(Math.ceil(i*e/r));for(s=0,d[0]=0;o<i;o++)for(a=0,n=t[o];a<e;a++,n>>>=1)s===r&&(d[++l]=0,s=0),d[l]+=(1&n)<<s++;return d}(r,l).reverse(),u=this.rModM.slice(0),c=Math.pow(2,l),p=w;for(p.length=c,p[0]=this.rModM,o=1;o<c;o++)p[o]=[],E(p[o-1],t,p[o]),this.reduce(p[o]);var m,f=[];for(o=0;o<d.length;o++){for(a=0;a<l;a++)this.montgomeryMultiply(u,u,u);m=d[o],i?f=p[m]:s(p,m,f),this.montgomeryMultiply(u,f,u)}return this.montgomeryMultiply(u,this.one,n),n},reduce:function(e,t){var r,n,i,o,a,s,d=this.m.length,c=[];for(t=t||e,r=[],E(e.slice(d-1),this.mu,r),n=r.slice(d+1),i=e.slice(0,d+1),E(n,u,o=[]),o=o.slice(0,d+1),i[d+1]=y(i,o)>>>31,a=0;a<t.length;a++)t[a]=0;b(i,o,t),s=+(y(t,u)>0),h.subtract(t,u,c),l(s,t,c),g(t)},ctx:n}}return{DIGIT_BITS:e,DIGIT_NUM_BYTES:t,DIGIT_MASK:r,DIGIT_BASE:n,DIGIT_MAX:16777215,Zero:s,One:l,normalizeDigitArray:g,bytesToDigits:p,stringToDigits:function(e,t){e=e.replace(/^\s+|\s+$/g,"");var r=[0],n=[0];t=t||10;for(var i=0;i<e.length;i+=1){var o=parseInt(e[i],t);if(isNaN(o))throw new Error("Failed to convert string to integer in radix "+t.toString());E(r,t,n),P(n,[o],r),g(r)}return r},digitsToString:function(e,t){if(n<=(t=t||10))throw new Error("DIGIT_BASE is smaller than RADIX; cannot convert.");var r,i=e.length,o=[],a=[],s=[],l=[],d=[],u=[],c="",p="0";for(d[0]=t;Math.floor(n/d[0])>=t;)d[0]=d[0]*t,p=p.concat("0");for(r=0;r<i;r+=1)u[r]=e[r];for(;;){var m=!0;for(r=0;r<u.length;r+=1)if(0!==u[r]){m=!1;break}if(m)break;I(u,d,o,a,s,l),g(o,u.length,!0);var f=a[0].toString(t);c=p.substring(0,p.length-f.length)+f+c;var y=u;u=o,o=y}for(;0!==c.length&&"0"===c[0];)c=c.substring(1,c.length);return 0===c.length&&(c="0"),c},intToDigits:m,digitsToBytes:function(e,r,n){var i,o,a,s=[0];for("undefined"===typeof r&&(r=!0),i=0;i<e.length;i+=1)for(a=e[i],o=0;o<t;o+=1)s[i*t+o]=255&a,a=Math.floor(a/256);if(s.reverse(),void 0===n&&(n=1),r)for(;s.length>n&&0===s[0];)s.shift();return s},isZero:c,isEven:function(e){return 0===(1&e[0])},shiftRight:function(t,n,i,o){if(void 0===i)i=1;else if(i>=e||i<0)throw new Error("Invalid bit count for shiftRight");void 0===o&&(o=t.length);for(var a=o-1,s=e-i,l=0;l<a;l++)n[l]=(t[l+1]<<s|t[l]>>>i)&r;n[a]=t[a]>>>i},shiftLeft:v,compareDigits:y,bitLength:function(e){for(var t=0,r=0;t<e.length;){if(0===r)for(var n=7;n>=0&&0===r;){var i=1<<n;(e[t]&i)===i&&(r=n+1),n--}else r+=8;t+=1}return r},fixedWindowRecode:function(e,t,r){e=e.slice();for(var n=[],i=Math.pow(2,t),o=Math.pow(2,t-1),a=0;a<r;a++)n[a]=e[0]%i-o,e[0]=e[0]-n[a],h.shiftRight(e,e,t-1);return n[a]=e[0],n},IntegerGroup:function(t){var n=p(t),i=n.length,o=m(0,i),a=m(1,i),s=d(i),l=d(i);function u(e,t){return{m_digits:e,m_group:t,equals:function(e){return 0===y(this.m_digits,e.m_digits)&&this.m_group.equals(this.m_group,e.m_group)}}}return{m_modulus:n,m_digitWidth:i,montmul:new D(n),createElementFromInteger:function(e){return u(m(e,this.m_digitWidth),this)},createElementFromBytes:function(e){var t=p(e);if(h.compareDigits(t,this.m_modulus)>=0)throw new Error("The number provided is not an element of this group");return g(t,this.m_digitWidth,!0),u(t,this)},createElementFromDigits:function(e){return h.normalizeDigitArray(e,this.m_digitWidth,!0),u(e,this)},equals:function(e){return 0===y(this.m_modulus,e.m_modulus)},add:function(t,n,i){var o,a=this.m_digitWidth,s=i.m_digits;h.add(t.m_digits,n.m_digits,s);var l=(y(s,this.m_modulus)>>>31)-1&r,d=0;for(o=0;o<a;o+=1)d=s[o]-(this.m_modulus[o]&l)+d,s[o]=d&r,d>>=e;s.length=a},subtract:function(t,n,i){var o,a=this.m_digitWidth,s=i.m_digits,l=h.subtract(t.m_digits,n.m_digits,i.m_digits);if(-1===l)for(l=0,o=0;o<a;o+=1)l+=s[o]+this.m_modulus[o],s[o]=l&r,l>>=e},multiply:function(e,t,r){return h.modMul(e.m_digits,t.m_digits,this.m_modulus,r.m_digits,s,l)},inverse:function(e,t){h.modInv(e.m_digits,this.m_modulus,t.m_digits)},modexp:function(e,t,r){if(r=r||u([],this),0===y(t,o))r.m_digits=m(1,this.m_digitWidth);else if(0===y(t,a)){for(var n=0;n<e.m_digits.length;n++)r.m_digits[n]=e.m_digits[n];r.m_digits.length=e.m_digits.length}else this.montmul.modExp(e.m_digits,t,r.m_digits),r.m_digits.length=this.montmul.s;return r}}},add:P,subtract:b,multiply:E,divRem:I,reduce:function(e,t,r,n,i){return I(e,t,[],r,n,i),r},modInv:function(e,t,r,n){var i=new Array(t.length),o=new Array(t.length),a=new Array(t.length),s=S(e,t,o,i,a);return r=r||[],0!==y(a,l)?(r[0]=NaN,r.length=1):(1===(1&s)?b(t,i,r):(u(i,0,r,0,i.length),r.length=i.length),n?g(r,t.length,!0):g(r)),r},modInvCT:function(e,t,r,n){var i=[];return r=r||[],b(t,[2],i),C(e,i,t,r),g(r),r},modExp:C,modMul:function(e,t,r,n,i,o){var a=[];return E(e,t,a),I(a,r,a,n,i,o),n},MontgomeryMultiplier:D,gcd:function(e,t,r){var n=e,i=t;return y(e,t)>0&&(n=t,i=e),S(n,i,void 0,void 0,r),g(r)},sequenceEqual:function(e,t){for(var r=e.length===t.length,n=0;n<Math.min(e.length,t.length);n+=1)e[n]!==t[n]&&(r=!1);return r},swapEndianness:function(e){return e.reverse()},computeBitArray:function(e){for(var t=d(8*e.length),r=0,n=e.length-1;n>=0;){for(var i=0;i<8;){var o=1<<i,a=(e[n]&o)===o?1:0,s=8*(e.length-n-1)+i;1===a&&(r=s+1),t[s]=a,i+=1}n--}return t.slice(0,r)}}}();var g=g||function(){var e=h.bytesToDigits;function t(e){var t,r=null;if(arguments.length&&"number"!==typeof arguments[0]){if("object"===typeof arguments[0])for(r=[],t=0;t<e.length;t+=1)r[t]=e[t]}else for(r=[],t=0;t<e;t+=1)r[t]=0;return r}var r=function(e,t,r,i,o,a){var s=e.length;return{p:e,a:t,b:r,order:i,generator:n(this,!1,o,a,null,!1),allocatePointStorage:function(){return n(this,!1,h.intToDigits(0,s),h.intToDigits(0,s))},createPointAtInfinity:function(){return n(this,!0,h.intToDigits(0,s),h.intToDigits(0,s))}}},n=function e(r,n,i,o,a,s){var d;return"undefined"===typeof a&&(a=null),"undefined"===typeof s&&(s=!1),u(d={equals:function(e){return function(e){return!!e&&(!(!d.isInfinity||!e.isInfinity)||(null!==d.z||null===e.z)&&(null===d.z||null!==e.z)&&(null===d.z?0===h.compareDigits(d.x,e.x)&&0===h.compareDigits(d.y,e.y)&&d.isInMontgomeryForm===e.isInMontgomeryForm:0===h.compareDigits(d.x,e.x)&&0===h.compareDigits(d.y,e.y)&&0===h.compareDigits(d.z,e.z)&&d.isInMontgomeryForm===e.isInMontgomeryForm))}(e)},copy:function(e){!function(e,t){if(t.curve=e.curve,t.x=e.x.slice(),t.y=e.y.slice(),null!==e.z?t.z=e.z.slice():t.z=null,l||(t.isAffine=e.isAffine),t.isInMontgomeryForm=e.isInMontgomeryForm,t.isInfinity=e.isInfinity,!t.equals(e))throw new Error("Instances should be equal.")}(this,e)},clone:function(){return function(){var r=e(d.curve,d.isInfinity,t(d.x),t(d.y),d.z?t(d.z):null,d.isInMontgomeryForm);return d.ta&&(r.ta=t(d.ta)),d.tb&&(r.tb=t(d.tb)),r}()}},"curve",r,(function(){return r}),(function(e){r=e})),u(d,"x",i,(function(){return i}),(function(e){i=e})),u(d,"y",o,(function(){return o}),(function(e){o=e})),u(d,"z",a,(function(){return a}),(function(e){a=e})),u(d,"isInMontgomeryForm",s,(function(){return s}),(function(e){s=e})),u(d,"isInfinity",n,(function(){return n}),(function(e){n=e})),u(d,"isAffine",null===a,(function(){return null===a})),d},o=function(e){var r=1===e.type,n=e.p.length,o=h.MontgomeryMultiplier(e.p),a=e.a.slice();o.convertToMontgomeryForm(a);var s=h.isZero(e.a),d=h.One,u=t(n);u[0]=1,o.convertToMontgomeryForm(u);var c=h.IntegerGroup(h.digitsToBytes(o.m),!0),p=t(n),m=t(n),f=t(n),y=t(n),g=t(n),v=t(n),P=t(n),b=t(n),E=t(n),I=t(n),S=t(n),C=t(n);function D(e,t,r){var n=c.createElementFromInteger(0);n.m_digits=r,c.subtract(c.createElementFromDigits(e),c.createElementFromDigits(t),n)}function k(e,t,r){var n=c.createElementFromInteger(0);n.m_digits=r,c.add(c.createElementFromDigits(e),c.createElementFromDigits(t),n)}function w(t,r){var n=t.length,i=e.p;if(1===(1&t[0])){for(var o=0,a=0;a<n;a+=1)o+=t[a]+i[a],r[a]=o&h.DIGIT_MASK,o>>>=h.DIGIT_BITS;o<<=h.DIGIT_BITS-1,h.shiftRight(r,r),r[n-1]|=o}else h.shiftRight(t,r)}function x(e,t,r){o.montgomeryMultiply(e,t,r)}function T(e,t){o.montgomeryMultiply(e,e,t)}function R(e,t){var r=t.clone();if(B(r),!U(r))throw new Error("Invalid Parameter");var n=t.clone();L(n);var i,o=[t.clone()],a=n.clone(),s=n.clone();F(n,s),V(s);for(var l=1;l<Math.pow(2,e-2);l++)H(a,s,a),V(i=a.clone()),o[l]=i;return o}function F(e,t){if("undefined"===typeof e)throw new Error("point undefined");if("undefined"===typeof t)throw new Error("outputPoint undefined");if(e.isAffine)throw new Error("Given point was in Affine form. Use convertToJacobian() first.");if(!e.isInMontgomeryForm)throw new Error("Given point must be in Montgomery form. Use montgomeryize() first.");s?function(e,t){if(e.isInfinity)t.isInfinity=!0;else{T(e.y,y),T(e.x,g),k(g,g,p),k(p,g,g),x(e.x,y,v),T(y,p),w(g,m),T(m,y),x(e.y,e.z,E);for(var r=0;r<E.length;r+=1)t.z[r]=E[r];D(y,v,t.x),D(t.x,v,t.x),D(v,t.x,g),x(m,g,f),D(f,p,t.y),t.isInfinity=!1,t.isInMontgomeryForm=!0}}(e,t):function(e,t){e.isInfinity?t.isInfinity=!0:(T(e.z,m),x(e.z,e.y,g),k(e.x,m,f),D(e.x,m,m),t.z=g.slice(),x(m,f,y),w(y,f),k(y,f,m),T(e.y,f),T(m,g),x(e.x,f,y),D(g,y,g),D(g,y,t.x),D(y,t.x,g),T(f,y),x(m,g,f),D(f,y,t.y),t.isInfinity=!1,t.isInMontgomeryForm=!0)}(e,t)}function A(e,t,r){if(e.isInfinity)return t.copy(r),void this.convertToJacobianForm(r);if(t.isInfinity)e.copy(r);else{if(T(e.z,v),x(e.z,v,P),x(t.x,v,g),x(t.y,P,v),D(g,e.x,m),D(v,e.y,f),h.isZero(m))return h.isZero(f)?(F(e,r),void H(r,t,r)):(r.x=e.x.slice(0),r.y=e.y.slice(0),void(r.z=e.z.slice(0)));if(T(f,g),T(m,P),x(P,e.x,v),x(m,P,p),D(g,v,y),D(y,v,y),x(e.z,m,g),D(y,v,y),x(p,e.y,P),D(y,p,y),h.isZero(y)){for(i=0;i<r.x.length;i++)r.x[i]=0,r.y[i]=0,r.z[i]=0;r.y[0]=1}else k(P,P,m),x(g,y,r.z),x(f,y,g),T(y,p),k(m,g,m),x(p,v,g),T(m,b),x(p,y,v),D(b,g,r.x),D(r.x,g,r.x),D(r.x,v,r.x),D(r.x,g,y),x(v,P,p),x(m,y,g),D(g,p,r.y),r.isInfinity=!1,r.isInMontgomeryForm=!0}}function H(e,t,r){if(null===e)throw new Error("jacobianPoint");if(null===t)throw new Error("affinePoint");if(null===r)throw new Error("outputPoint");if(e.curve!==t.curve||e.curve!==r.curve)throw new Error("All points must be from the same curve object.");if(e.isAffine)throw new Error("Given jacobianPoint was in Affine form. Use ConvertToJacobian()                     before calling DoubleJacobianAddAffinePoints().");if(!t.isAffine)throw new Error("Given affinePoint was in Jacobian form. Use ConvertToAffine() before                      calling DoubleJacobianAddAffinePoints().");if(r.isAffine)throw new Error("Given jacobianPoint was in Jacobian form. Use ConvertToJacobian() before                      calling DoubleJacobianAddAffinePoints().");if(!e.isInMontgomeryForm)throw new Error("Jacobian point must be in Montgomery form");if(!t.isInMontgomeryForm)throw new Error("Affine point must be in Montgomery form");if(e.isInfinity)return t.copy(r),void this.convertToJacobianForm(r);if(t.isInfinity)e.copy(r);else{var i;for(T(e.z,m),x(m,e.z,f),x(m,t.x,y),x(f,t.y,g),D(y,e.x,m),D(g,e.y,f),i=0;i<m.length;i+=1)if(0!==m[i]){x(e.z,m,p);for(var o=0;o<n;o+=1)r.z[o]=p[o];return T(m,y),x(y,m,g),x(y,e.x,v),k(v,v,m),T(f,r.x),D(r.x,m,r.x),D(r.x,g,r.x),D(v,r.x,y),x(f,y,v),x(e.y,g,P),D(v,P,r.y),r.isInfinity=!1,void(r.isInMontgomeryForm=!0)}for(i=0;i<f.length;i+=1)if(0!==f[i])return r.isInfinity=!0,void(r.isInMontgomeryForm=!0);t.copy(r),this.convertToJacobianForm(r),this.double(r,r),r.isInMontgomeryForm=!0}}function O(t,r,i,o){if(r.isInfinity||h.isZero(t))i.isInfinity=!0;else{if(h.compareDigits(t,e.order)>=0)throw new Error("The scalar k must be in the range 1 <= k < order.");if(t=t.slice(),1===r.curve.type){var a="undefined"!==typeof r.ta;a||z(r),function(e,t,r,i){if(!j(t))throw new Error("Invalid Parameter");var o=t.curve.rbits;i="undefined"===typeof i||i;var a,s,l=n<=8?5:6,d=Math.floor((o+(l-2))/(l-1));e=e.slice();var u=t.clone();z(u),i&&(W(u,u),W(u,u));var c=_(1<<l-2,u),p=1&e[0],m=[];for(D(t.curve.order,e,m),a=0;a<e.length;a++)e[a]=p-1&(e[a]^m[a])^e[a];var f=h.fixedWindowRecode(e,l,d),y=Math.floor(Math.abs(f[d])-1)/2,g=c[y];for(u.x=g.x.slice(),u.y=g.y.slice(),u.z=g.z.slice(),a=d-1;a>=0;a--){for(s=0;s<l-1;s++)W(u,u);var v=G(c,y=Math.floor((Math.abs(f[a])-1)/2)),P=-(f[a]>>>31);D(t.curve.p,v.x,m);for(var b=0;b<v.x.length;b++)v.x[b]=v.x[b]&~P|m[b]&P;for(D(t.curve.p,v.td,m),b=0;b<v.td.length;b++)v.td[b]=v.td[b]&~P|m[b]&P;J(v,u,u)}for(D(t.curve.p,u.x,m),a=0;a<u.x.length;a++)u.x[a]=p-1&(u.x[a]^m[a])^u.x[a];K(u),r.x=u.x.slice(),r.y=u.y.slice()}(t,r,i,o),a||K(r)}else{var s=r.isInMontgomeryForm,l=i.isInMontgomeryForm,d=i.isAffine;s||N(r),l||N(i),function(e,t,r){var i=t.clone();if(B(i),!U(i))throw new Error("Invalid Parameters.");var o=1&e[0],a=[];for(D(t.curve.order,e,a),f=0;f<e.length;f++)e[f]=o-1&(e[f]^a[f])^e[f];var s=n<=8?5:6,l=t.curve.p.length*h.DIGIT_BITS,d=Math.ceil(l/(s-1)),u=h.fixedWindowRecode(e,s,d),c=R(s,t),p=Math.floor(Math.abs(u[d])-1)/2,m=c[p].clone();L(m);for(var f=d-1;f>=0;f--){for(var y=0;y<s-2;y++)F(m,m);var g=M(c,p=Math.floor((Math.abs(u[f])-1)/2));D(g.curve.p,g.y,a);for(var v=-(u[f]>>>31),P=0;P<g.y.length;P++)g.y[P]=g.y[P]&~v|a[P]&v;A(m,g,m)}for(D(t.curve.p,m.y,a),f=0;f<m.y.length;f++)m.y[f]=o-1&(m.y[f]^a[f])^m.y[f];m.copy(r)}(t,r,i),d&&V(i),s||B(r),l||B(i)}}}function M(e,t){for(var r,n,i=0;i<e.length;i++)r=+(i===t),n=[n,e[i].clone()][r];return n}function N(e){if(e.isInMontgomeryForm)throw new Error("The given point is already in Montgomery form.");e.isInfinity||(o.convertToMontgomeryForm(e.x),o.convertToMontgomeryForm(e.y),null!==e.z&&o.convertToMontgomeryForm(e.z),"undefined"!==typeof e.ta&&(o.convertToMontgomeryForm(e.ta),o.convertToMontgomeryForm(e.tb))),e.isInMontgomeryForm=!0}function B(e){if(!e.isInMontgomeryForm)throw new Error("The given point is not in montgomery form.");e.isInfinity||(o.convertToStandardForm(e.x),o.convertToStandardForm(e.y),null!==e.z&&o.convertToStandardForm(e.z),"undefined"!==typeof e.ta&&(o.convertToStandardForm(e.ta),o.convertToStandardForm(e.tb))),e.isInMontgomeryForm=!1}function V(t){if(t.isInfinity)return t.z=null,void(l||(t.isAffine=!0));if(h.modInv(t.z,e.p,C,!0),t.isInMontgomeryForm){x(C,o.rCubedModm,S);var r=C;C=S,S=r}T(C,I),x(t.x,I,S);for(var i=0;i<n;i+=1)t.x[i]=S[i];x(t.y,I,S),x(S,C,t.y),t.z=null,delete t.ta,delete t.tb,l||(t.isAffine=!0)}function L(e){if(!e.isAffine)throw new Error("The given point is not in Affine form.");l||(e.isAffine=!1);var r,n,i=e.isInMontgomeryForm?u:d;for(r=t(i.length),n=0;n<i.length;n+=1)r[n]=i[n];e.z=r}function U(e){return!e.isInfinity&&(h.modMul(e.y,e.y,e.curve.p,m),h.modMul(e.x,e.x,e.curve.p,f),h.modMul(e.x,f,e.curve.p,y),k(y,e.curve.b,f),h.modMul(e.x,e.curve.a,e.curve.p,y),k(f,y,f),D(m,f,m),!1!==h.isZero(m))}function j(e){return e.ta&&K(e=e.clone()),h.modMul(e.y,e.y,e.curve.p,y),h.modMul(e.x,e.x,e.curve.p,f),h.add(f,y,m),h.reduce(g,e.curve.p,g),h.modMul(f,y,e.curve.p,g),h.modMul(e.curve.d,g,e.curve.p,y),h.add(y,[1],f),h.reduce(f,e.curve.p,f),h.subtract(m,f,m),!1!==h.isZero(m)||(h.reduce(m,e.curve.p,m),!1!==h.isZero(m))}function _(e,t){var r=t.clone(),n=r.clone(),i=[];i[0]=q(t),W(r,r),n=q(r),r=t.clone();for(var o=1;o<e;o++)J(n,r,r),i[o]=q(r);return i}function z(e){e.ta=e.x.slice(),e.tb=e.y.slice(),e.z=[1]}function G(e,t){for(var r=(t+1)%e.length,n=0;n<e.length;n++){var i={x:e[r].x.slice(),y:e[r].y.slice(),z:e[r].z.slice(),td:e[r].td.slice()};r=(r+1)%e.length}return i}function K(t){h.modInv(t.z,e.p,C,!0),h.modMul(t.x,C,e.p,t.x),h.modMul(t.y,C,e.p,t.y),delete t.ta,delete t.tb,t.z=null}function W(e,t){if("undefined"===typeof e.ta)throw new Error("Point should be in Extended Projective form.");h.modMul(e.x,e.x,e.curve.p,p),h.modMul(e.y,e.y,e.curve.p,m),h.modMul(e.z,e.z,e.curve.p,e.ta),D(m,p,t.tb),k(p,m,p),k(e.ta,e.ta,e.ta),k(e.y,e.y,e.y),D(e.ta,p,m),h.modMul(e.x,e.y,e.curve.p,t.ta),h.modMul(p,t.tb,e.curve.p,t.y),h.modMul(m,t.ta,e.curve.p,t.x),h.modMul(p,m,e.curve.p,t.z)}function q(e){var t=e.curve,r=t.p,n={x:e.x.slice(),y:e.y.slice(),z:e.z.slice(),td:[],curve:e.curve};return h.modMul(e.ta,e.tb,r,I),h.modMul(I,t.d,r,n.td),n}function J(e,t,r){var n=h,i=t.curve.p;m=[],f=[],y=[],n.modMul(t.z,e.z,i,y),n.modMul(t.ta,t.tb,i,m),k(t.x,t.y,t.ta),n.modMul(m,e.td,i,f),k(e.x,e.y,t.tb),D(y,f,m),k(y,f,y),n.modMul(t.ta,t.tb,i,f),n.modMul(t.x,e.x,i,t.z),n.modMul(t.y,e.y,i,t.x),D(f,t.z,f),D(t.x,t.z,r.ta),D(f,t.x,r.tb),n.modMul(r.ta,y,i,r.y),n.modMul(r.tb,m,i,r.x),n.modMul(y,m,i,r.z)}var Q={convertToMontgomeryForm:N,convertToStandardForm:B,convertToAffineForm:V,convertToJacobianForm:L,generatePrecomputationTable:function(e,t){return R(e,t)}};return r?(Q.double=W,Q.add=function(e,t,r){if("undefined"===typeof e.ta)throw new Error("Point1 should be in Extended Projective form.");if("undefined"===typeof t.ta)throw new Error("Point2 should be in Extended Projective form.");J(q(e),t,r)},Q.scalarMultiply=O,Q.normalize=K,Q.convertToExtendedProjective=z,Q.convertTedToWeierstrass=function(e,t){var r=e.curve.a.slice(),n=e.curve.d.slice(),i=e.curve.p,o=h.modMul,a=h.modInv;o(r,m=[5],i,f),D(f,n,f),o(n,m,i,y),D(r,y,m),o(e.y,m,i,y),k(y,f,f),D(m=[1],e.y,y),o(m=[12],y,i,g),a(g,i,g,!0),o(e.x,y,i,m),k(m,m,y),k(y,y,y),a(y,i,y,!0),o(g,f,i,t.x),m=[1],k(e.y,m,m),D(r,n,f),o(m,f,i,g),o(g,y,i,t.y)},Q.convertWeierstrassToTed=function(e,t){var r=t.curve.a.slice(),n=t.curve.d.slice(),i=t.curve.p,o=h.modMul,a=h.modInv;k(e.x,e.x,m),k(e.x,m,m),k(m,m,m),D(m,r,f),D(f,n,f),k(e.y,e.y,y),k(e.y,y,y),k(y,y,y),a(y,i,y,!0),o(f,y,i,t.x),k(m,m,m),k(m,n,f),k(m,r,m),k(r,r,y),D(f,y,f),D(f,y,f),D(f,r,f),k(n,n,y),D(m,y,m),D(m,y,m),D(m,n,m),a(m,i,m,!0),o(m,f,i,t.y)},Q.validatePoint=j,Q.generatePrecomputationTable=function(e,t){return _(e,t)}):(Q.double=F,Q.mixedDoubleAdd=A,Q.mixedAdd=H,Q.scalarMultiply=O,Q.negate=function(e,t){e!==t&&e.copy(t),D(e.curve.p,e.y,t.y)},Q.validatePoint=U),Q},a={},s=function(t){var n=a[t.toUpperCase()];if(!n)throw new Error(t+" Unsupported curve.");if(0===n.type)return function(t){var n=new r(e(t.p),e(t.a),e(t.b),e(t.order),e(t.gx),e(t.gy));return n.type=t.type,n.name=t.name,n.generator.curve=n,n}(n);if(1===n.type)return function(t){var n=new r(e(t.p),e(t.a),e(t.d),e(t.order),e(t.gx),e(t.gy));return n.type=t.type,1===n.type&&(n.d=n.b.slice(),delete n.b),n.rbits=t.info[2],n.name=t.name,n.generator.curve=n,n}(n);throw new Error(t+" Unsupported curve type.")};return{createCurve:s,curves:a,sec1EncodingFp:function(){return{encodePoint:function(e){if(!e)throw new Error("point");if(!e.isAffine)throw new Error("Point must be in affine form.");if(e.isInMontgomeryForm)throw new Error("Point must not be in Montgomery form.");if(e.isInfinity)return t(1);var r=h.digitsToBytes(e.x),n=h.digitsToBytes(e.y),i=h.digitsToBytes(e.curve.p).length;if(i<r.length||i<n.length)throw new Error("Point coordinate(s) are bigger than the field order.");var o=t(2*i+1);o[0]=4;for(var a=i-r.length,s=0;s<r.length;s++)o[s+1+a]=r[s];for(a=i-n.length,s=0;s<n.length;s++)o[i+s+1+a]=n[s];return o},decodePoint:function(e,r){if(e.length<1)throw new Error("Byte array must have non-zero length");var i=h.digitsToBytes(r.p).length;if(0===e[0]&&1===e.length)return r.createPointAtInfinity();if(4===e[0]&&e.length===1+2*i){for(var o=t(i),a=t(i),s=0;s<i;s++)o[s]=e[s+1],a[s]=e[i+s+1];var l=h.bytesToDigits(o),d=h.bytesToDigits(a);return n(r,!1,l,d)}throw new Error("Unsupported encoding format")}}},validatePoint:function(t,r,i,a){var l=s(t),d=new n(l,!1,e(r),e(i),a&&e(a),!1);return new o(l).validatePoint(d)},EllipticCurvePointFp:n,EllipticCurveOperatorFp:o,ModularSquareRootSolver:function(e){var t=e,r=[];if("undefined"===typeof e)throw new Error("modulus");if(h.isEven(e))throw new Error("Only odd moduli are supported");var n=h.MontgomeryMultiplier(t);t[0]%4===3?(h.add(t,h.One,r),h.shiftRight(r,r,2)):r=null;var i=new Array(t.length),o=new Array(t.length);return{squareRoot:function(e){if(null!==r)return function(e){var t=h.intToDigits(0,16);n.modExp(e,r,t);var i=[0];return h.modMul(t,t,n.m,i),0!==h.compareDigits(e,i)?null:t}(e);throw new Error("GeneralCase not supported.")},jacobiSymbol:function(e){var r,n;r=e.slice(),n=t.slice(),h.reduce(r,n,r,i,o);for(var a=1;!h.isZero(r);){for(;h.isEven(r);){h.shiftRight(r,r);var s=7&n[0];3!==s&&5!==s||(a=-a)}var l=r;r=n,n=l;var d=3&r[0],u=3&n[0];3===d&&3===u&&(a=-a),h.reduce(r,n,r,i,o)}return 0===h.compareDigits(n,h.One)?a:0}}}}}();"undefined"!==typeof g&&(g.curves["P-256"]={name:"P-256",type:0,p:[255,255,255,255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255],a:[255,255,255,255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,252],b:[90,198,53,216,170,58,147,231,179,235,189,85,118,152,134,188,101,29,6,176,204,83,176,246,59,206,60,62,39,210,96,75],order:[255,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,188,230,250,173,167,23,158,132,243,185,202,194,252,99,37,81],gx:[107,23,209,242,225,44,66,71,248,188,230,229,99,164,64,242,119,3,125,129,45,235,51,160,244,161,57,69,216,152,194,150],gy:[79,227,66,226,254,26,127,155,142,231,235,74,124,15,158,22,43,206,51,87,107,49,94,206,203,182,64,104,55,191,81,245],cf:1},g.curves["P-384"]={name:"P-384",type:0,p:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255],a:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,252],b:[179,49,47,167,226,62,231,228,152,142,5,107,227,248,45,25,24,29,156,110,254,129,65,18,3,20,8,143,80,19,135,90,198,86,57,141,138,46,209,157,42,133,200,237,211,236,42,239],order:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,199,99,77,129,244,55,45,223,88,26,13,178,72,176,167,122,236,236,25,106,204,197,41,115],gx:[170,135,202,34,190,139,5,55,142,177,199,30,243,32,173,116,110,29,59,98,139,167,155,152,89,247,65,224,130,84,42,56,85,2,242,93,191,85,41,108,58,84,94,56,114,118,10,183],gy:[54,23,222,74,150,38,44,111,93,158,152,191,146,146,220,41,248,244,29,189,40,154,20,124,233,218,49,19,181,240,184,192,10,96,177,206,29,126,129,157,122,67,29,124,144,234,14,95],cf:1},g.curves["P-521"]={name:"P-521",type:0,p:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255],a:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,252],b:[0,81,149,62,185,97,142,28,154,31,146,154,33,160,182,133,64,238,162,218,114,91,153,179,21,243,184,180,137,145,142,241,9,225,86,25,57,81,236,126,147,123,22,82,192,189,59,177,191,7,53,115,223,136,61,44,52,241,239,69,31,212,107,80,63,0],order:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,250,81,134,135,131,191,47,150,107,127,204,1,72,247,9,165,208,59,181,201,184,137,156,71,174,187,111,183,30,145,56,100,9],gx:[0,198,133,142,6,183,4,4,233,205,158,62,203,102,35,149,180,66,156,100,129,57,5,63,181,33,248,40,175,96,107,77,61,186,161,75,94,119,239,231,89,40,254,29,193,39,162,255,168,222,51,72,179,193,133,106,66,155,249,126,126,49,194,229,189,102],gy:[1,24,57,41,106,120,154,59,192,4,92,138,95,180,44,125,27,217,152,245,68,73,87,155,68,104,23,175,189,23,39,62,102,44,151,238,114,153,94,244,38,64,197,80,185,1,63,173,7,97,53,60,112,134,162,114,194,64,136,190,148,118,159,209,102,80],cf:1});"undefined"!==typeof g&&(g.curves["BN-254"]={name:"BN-254",type:0,p:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,8,97,33,0,0,0,0,0,19,167,0,0,0,0,0,0,19],a:[0],b:[2],order:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,7,255,159,128,0,0,0,0,16,161,0,0,0,0,0,0,13],gx:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,8,97,33,0,0,0,0,0,19,167,0,0,0,0,0,0,18],gy:[1],cf:1});var v={info:["numsp256d1",256,256,256],type:0,p:[67,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[64,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[129,85,2].reverse(),order:[37,168,81,71,41,32,171,32,96,92,38,234,117,130,60,228,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[177,172,26,178,30,238,82,188,58,199,212,3,9,155,87,131,9,203,66,79,160,149,122,41,97,219,170,90,182,214,158,188].reverse(),gy:[159,222,132,33,203,185,181,128,187,15,49,21,209,195,85,201,53,224,4,126,247,139,68,115,166,182,153,51,241,192,143,208].reverse(),cf:1},P={info:["numsp256t1",256,255,256],name:"numsp256t1",type:1,p:[67,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1],d:[85,195,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[245,74,221,238,144,177,71,26,155,67,89,47,165,90,149,65,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64].reverse(),gx:[218,19,237,46,144,192,222,160,134,53,8,227,14,138,57,12,214,155,32,105,95,61,30,205,125,35,234,106,251,20,117,138].reverse(),gy:[230,137,138,121,231,22,166,47,211,110,133,16,216,97,95,113,16,128,75,166,217,101,150,206,199,37,217,217,159,62,213,68].reverse(),cf:4},b={info:["numsp384d1",384,384,384],name:"numsp384d1",type:0,p:[195,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[192,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[187,119,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[185,97,14,123,246,129,77,96,122,226,55,76,61,157,218,190,129,104,93,235,30,175,30,214,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[42,21,152,32,4,186,156,235,123,196,97,15,16,237,46,82,66,199,108,42,27,41,189,243,244,249,129,251,205,193,37,2,166,241,5,65,34,202,128,72,28,24,111,177,240,86,121,117].reverse(),gy:[22,7,24,102,236,184,116,92,38,173,244,191,219,180,214,188,126,131,26,18,125,131,32,185,156,115,127,248,119,105,4,176,126,207,132,5,48,61,227,215,56,142,155,225,104,227,222,172].reverse(),cf:1},E={info:["numsp384t1",384,382,384],name:"numsp384t1",type:1,p:[195,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1],d:[159,209,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[125,137,163,230,196,220,185,32,121,200,53,171,90,85,228,97,207,225,107,180,28,26,71,226,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63].reverse(),gx:[222,107,32,108,228,64,213,80,19,148,69,101,177,146,242,111,64,99,49,243,168,255,99,87,0,76,190,229,70,244,11,179,181,93,229,154,18,162,182,192,108,38,169,69,251,17,177,97].reverse(),gy:[146,147,114,240,225,3,141,157,220,72,236,70,249,176,114,0,75,150,69,246,247,152,15,131,86,95,66,241,116,130,173,22,215,13,177,35,164,177,56,135,176,238,166,185,103,62,152,130].reverse(),cf:4},I={info:["numsp512d1",512,512,512],name:"numsp512d1",type:0,p:[199,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[196,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[155,217,1].reverse(),order:[93,85,51,4,57,63,21,206,67,210,124,96,54,139,86,59,198,189,208,151,237,88,194,79,27,131,231,148,251,164,60,91,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[87,174,171,140,149,135,130,220,226,93,111,125,19,96,93,29,131,21,86,37,134,66,121,147,158,53,107,7,81,161,33,80,249,217,6,83,194,224,6,69,133,246,1,181,59,216,202,152,82,59,61,160,2,112,43,218,147,10,29,20,71,52,192,58].reverse(),gy:[166,39,53,56,96,135,160,35,233,15,253,76,30,92,43,207,2,86,90,178,64,168,33,193,233,237,14,139,218,21,132,162,20,79,209,123,12,38,75,143,140,187,188,171,222,219,151,75,0,177,235,99,220,238,14,206,179,86,173,41,202,84,58,148].reverse(),cf:4},S={info:["numsp512t1",512,510,512],name:"numsp512t1",type:1,p:[199,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1].reverse(),d:[239,203,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[109,212,238,27,245,140,70,103,255,236,239,109,120,5,70,42,245,134,182,112,201,216,63,158,186,145,207,47,109,99,240,180,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63].reverse(),gx:[254,87,236,153,41,171,185,197,21,240,196,124,66,37,229,15,173,4,137,86,146,201,189,120,15,115,70,238,78,193,33,70,71,129,59,39,190,126,161,39,130,163,196,77,159,231,209,47,51,197,211,136,120,203,24,122,156,182,141,18,109,49,142,223].reverse(),gy:[225,245,226,193,192,222,109,50,31,208,241,155,138,211,102,2,253,193,236,42,134,6,26,96,98,53,150,233,242,83,202,32,65,131,158,144,149,107,43,169,34,157,37,216,38,247,118,228,110,37,42,168,119,245,176,152,113,202,73,157,243,191,9,109].reverse(),cf:4};"undefined"!==typeof g&&(g.curves.NUMSP256D1=v,g.curves.NUMSP384D1=b,g.curves.NUMSP512D1=I,g.curves.NUMSP256T1=P,g.curves.NUMSP384T1=E,g.curves.NUMSP512T1=S);var C=function(e,t,r,n,i,o,a){var s=p,l=r.slice(),d=new Array(i),u=[],c=0;function m(e){for(var t=Math.floor(e.length/i),r=0;r<t;r++)o(e,r,l,n,d);return c+=t,e.slice(t*i)}function f(){if(0!==m(function(e){var t=i-e.length%i;t<=i/8&&(t+=i);var r=s.getVector(t);r[0]=128;for(var n=8*(e.length+c*i),o=1;o<=8;o++)r[t-o]=n%256,n=Math.floor(n/256);return e.concat(r)}(u)).length)throw new Error("buffer.length !== 0");var e=function(){for(var e=[],t=0;t<l.length;t++)e=e.concat(s.int32ToBytes(l[t]));return e.length=a/8,e}();return u=[],l=r.slice(),c=0,e}return{name:e,computeHash:function(e){return u=m(e),f()},process:function(e){(u=u.concat(e)).length>=i&&(u=m(u))},finish:f,der:t,hashLen:a,maxMessageSize:4294967295}},D=function(){function e(e,r,n,i,o){var a,s,l,d,u=4294967295,c=n[0],p=n[1],m=n[2],f=n[3],y=n[4];for(s=0;s<16;s++)o[s]=t.bytesToInt32(e,64*r+4*s);for(a=16;a<80;a++)d=o[a-3]^o[a-8]^o[a-14]^o[a-16],o[a]=d<<1|d>>>31;for(s=0;s<80;s++)l=c<<5|c>>>27,l+=s>=60?p^m^f:s>=40?p&m^p&f^m&f:s>=20?p^m^f:p&m^~p&f,l+=y+i[s]+o[s],y=f,f=m,m=p<<30|p>>>2,p=c,c=l;return n[0]+=c&u,n[1]+=p&u,n[2]+=m&u,n[3]+=f&u,n[4]+=y&u,n}var t=p,r=t.unpackData,n=r("Z0UjAe/Nq4mYutz+EDJUdsPS4fA=",4,1),i=r("WoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroY8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdY",4,1),o=r("MCEwCQYFKw4DAhoFAAQU");return{sha1:function(){return C("SHA-1",o,n,i,64,e,160)}}}();"undefined"!==typeof t&&(D.instances={},D.getInstance=function(e){return D.instances[e]||(D.instances[e]=D.sha1())},D.deleteInstance=function(e){D.instances[e]=null,delete D.instances[e]},D.hash=function(e){if("process"!==e.operationSubType)return"finish"===e.operationSubType?D.sha1.finish():D.sha1().computeHash(e.buffer);D.sha1.process(e.buffer)},t.register("digest","SHA-1",D.hash)),c["SHA-1"]=D.sha1;var k=function(){var e=p;function t(t,r,n,i,o){var a,s,l,d,u,c=n[0],p=n[1],m=n[2],f=n[3],y=n[4],h=n[5],g=n[6],v=n[7];for(s=0;s<16;s++)o[s]=e.bytesToInt32(t,64*r+4*s);for(a=16;a<64;a++)d=o[a-15],u=o[a-2],o[a]=((u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10)+o[a-7]+((d>>>7|d<<25)^(d>>>18|d<<14)^d>>>3)+o[a-16],o[a]=4294967295&o[a];for(s=0;s<64;s++)f+=l=v+((y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7))+(y&h^~y&g)+i[s]+o[s],l+=((c>>>2|c<<30)^(c>>>13|c<<19)^(c>>>22|c<<10))+(c&(p^m)^p&m),v=g,g=h,h=y,y=f,f=m,m=p,p=c,c=l;return n[0]=n[0]+c>>>0,n[1]=n[1]+p>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+f>>>0,n[4]=n[4]+y>>>0,n[5]=n[5]+h>>>0,n[6]=n[6]+g>>>0,n[7]=n[7]+v>>>0,n}var r,n,i,o,a,s=e.unpackData;return n=s("wQWe2DZ81QcwcN0X9w5ZOf/ACzFoWBURZPmPp776T6Q",4,1),i=s("agnmZ7tnroU8bvNypU/1OlEOUn+bBWiMH4PZq1vgzRk",4,1),r=s("QoovmHE3RJG1wPvP6bXbpTlWwltZ8RHxkj+CpKscXtXYB6qYEoNbASQxhb5VDH3Dcr5ddIDesf6b3AanwZvxdOSbacHvvkeGD8GdxiQMocwt6SxvSnSEqlywqdx2+YjamD5RUqgxxm2wAyfIv1l/x8bgC/PVp5FHBspjURQpKWcntwqFLhshOE0sbfxTOA0TZQpzVHZqCruBwskuknIshaK/6KGoGmZLwkuLcMdsUaPRkugZ1pkGJPQONYUQaqBwGaTBFh43bAgnSHdMNLC8tTkcDLNO2KpKW5zKT2gub/N0j4LueKVjb4TIeBSMxwIIkL7/+qRQbOu++aP3xnF48g",4,1),o=s("MC0wDQYJYIZIAWUDBAIEBQAEHA"),a=s("MDEwDQYJYIZIAWUDBAIBBQAEIA"),{sha224:function(){return C("SHA-224",o,n,r,64,t,224)},sha256:function(){return C("SHA-256",a,i,r,64,t,256)}}}();"undefined"!==typeof t&&(k.instance224=k.instance224||k.sha224(),k.instance256=k.instance256||k.sha256(),k.instances={},k.getInstance224=function(e){return k.instances[e]||(k.instances[e]=k.sha224())},k.getInstance256=function(e){return k.instances[e]||(k.instances[e]=k.sha256())},k.deleteInstance=function(e){k.instances[e]=null,delete k.instances[e]},k.hash256=function(e){if("process"===e.operationSubType)return k.getInstance256(e.workerid).process(e.buffer),null;if("finish"===e.operationSubType){var t=k.getInstance256(e.workerid).finish();return k.deleteInstance(e.workerid),t}if("abort"!==e.operationSubType)return k.instance256.computeHash(e.buffer);k.deleteInstance(e.workerid)},k.hash224=function(e){if("process"!==e.operationSubType){if("finish"===e.operationSubType)k.getInstance224(e.workerid).finish();if("abort"!==e.operationSubType)return k.instance224.computeHash(e.buffer);msrcryptoSha224.deleteInstance(e.workerid)}else k.getInstance224(e.workerid).process(e.buffer)},t.register("digest","SHA-224",k.hash224),t.register("digest","SHA-256",k.hash256)),c["SHA-224"]=k.sha224,c["SHA-256"]=k.sha256;var w=function(){function e(e,t,r,n,i){var o=t+n|0,a=o>>>0<n>>>0;i[0]=e+r+a|0,i[1]=o}function t(t,r,n,i,o){var a,s,l,d,u,c,p,m,f,y=[],h=[],g=[],v=n[0],P=n[1],b=n[2],E=n[3],I=n[4],S=n[5],C=n[6],D=n[7],k=n[8],w=n[9],x=n[10],T=n[11],R=n[12],F=n[13],A=n[14],H=n[15];for(a=0;a<32;a++)f=128*r+4*a,o[a]=t.slice(f,f+4),o[a]=o[a][0]<<24|o[a][1]<<16|o[a][2]<<8|o[a][3];for(a=32;a<160;a+=2)l=((p=o[a-30])>>>1|(m=o[a-29])<<31)^(p>>>8|m<<24)^p>>>7,d=(m>>>1|p<<31)^(m>>>8|p<<24)^(m>>>7|p<<25),e(u=((p=o[a-4])>>>19|(m=o[a-3])<<13)^(m>>>29|p<<3)^p>>>6,c=(m>>>19|p<<13)^(p>>>29|m<<3)^(m>>>6|p<<26),o[a-14],o[a-13],y),e(l,d,y[0],y[1],y),e(o[a-32],o[a-31],y[0],y[1],y),o[a]=y[0],o[a+1]=y[1];for(s=0;s<160;s+=2)u=k&x^R&~k,c=w&T^F&~w,e(A,H,l=(k>>>14|w<<18)^(k>>>18|w<<14)^(w>>>9|k<<23),d=(w>>>14|k<<18)^(w>>>18|k<<14)^(k>>>9|w<<23),y),e(u,c,i[s],i[s+1],h),e(y[0],y[1],o[s],o[s+1],g),e(h[0],h[1],g[0],g[1],g),e(g[0],g[1],C,D,y),C=y[0],D=y[1],c=P&(E^S)^E&S,u=v&(b^I)^b&I,e(g[0],g[1],l=(v>>>28|P<<4)^(P>>>2|v<<30)^(P>>>7|v<<25),d=(P>>>28|v<<4)^(v>>>2|P<<30)^(v>>>7|P<<25),y),e(u,c,l=y[0],d=y[1],y),A=R,H=F,R=x,F=T,x=k,T=w,k=C,w=D,C=I,D=S,I=b,S=E,b=v,E=P,v=l=y[0],P=d=y[1];return e(n[0],n[1],v,P,y),n[0]=y[0],n[1]=y[1],e(n[2],n[3],b,E,y),n[2]=y[0],n[3]=y[1],e(n[4],n[5],I,S,y),n[4]=y[0],n[5]=y[1],e(n[6],n[7],C,D,y),n[6]=y[0],n[7]=y[1],e(n[8],n[9],k,w,y),n[8]=y[0],n[9]=y[1],e(n[10],n[11],x,T,y),n[10]=y[0],n[11]=y[1],e(n[12],n[13],R,F,y),n[12]=y[0],n[13]=y[1],e(n[14],n[15],A,H,y),n[14]=y[0],n[15]=y[1],n}var r,n,i,o,a,s,l,d=p.unpackData;return r=d("y7udXcEFnthimikqNnzVB5FZAVowcN0XFS/s2PcOWTlnMyZn/8ALMY60SodoWBUR2wwuDWT5j6dHtUgdvvpPpA==",4,1),n=d("agnmZ/O8yQi7Z66FhMqnOzxu83L+lPgrpU/1Ol8dNvFRDlJ/reaC0ZsFaIwrPmwfH4PZq/tBvWtb4M0ZE34heQ",4,1),i=d("QoovmNcoriJxN0SRI+9lzbXA+8/sTTsv6bXbpYGJ27w5VsJb80i1OFnxEfG2BdAZkj+CpK8ZT5urHF7V2m2BGNgHqpijAwJCEoNbAUVwb74kMYW+TuSyjFUMfcPV/7Ticr5ddPJ7iW+A3rH+OxaWsZvcBqclxxI1wZvxdM9pJpTkm2nBnvFK0u++R4Y4TyXjD8GdxouM1bUkDKHMd6ycZS3pLG9ZKwJ1SnSEqm6m5INcsKncvUH71Hb5iNqDEVO1mD5RUu5m36uoMcZtLbQyELADJ8iY+yE/v1l/x77vDuTG4AvzPaiPwtWnkUeTCqclBspjUeADgm8UKSlnCg5ucCe3CoVG0i/8LhshOFwmySZNLG38WsQq7VM4DROdlbPfZQpzVIuvY952agq7PHeyqIHCyS5H7a7mknIshRSCNTuiv+ihTPEDZKgaZku8QjABwkuLcND4l5HHbFGjBlS+MNGS6BnW71IY1pkGJFVlqRD0DjWFV3EgKhBqoHAyu9G4GaTBFrjS0MgeN2wIUUGrUydId0zfjuuZNLC8teGbSKg5HAyzxclaY07YqkrjQYrLW5zKT3dj43NoLm/z1rK4o3SPgu5d77L8eKVjb0MXL2CEyHgUofCrcozHAggaZDnskL7/+iNjHiikUGzr3oK96b75o/eyxnkVxnF48uNyUyvKJz7O6iZhnNGGuMchwMIH6tp91s3g6x71fU9/7m7ReAbwZ6pyF2+6CmN9xaLImKYRP5gEvvkNrhtxCzUTHEcbKNt39SMEfYQyyqt7QMckkzyevgoVyb68Qx1nxJwQDUxMxdS+yz5Ctll/KZz8ZX4qX8tvqzrW+uxsRBmMSkdYFw==",4,1),o=d("MEEwDQYJYIZIAWUDBAICBQAEMA"),a=d("MFEwDQYJYIZIAWUDBAIDBQAEQA"),s=d("MC0wDQYJYIZIAWUDBAIFBQAEHA"),l=d("MDEwDQYJYIZIAWUDBAIGBQAEIA"),{sha384:function(){return C("SHA-384",o,r,i,128,t,384)},sha512:function(){return C("SHA-512",a,n,i,128,t,512)},sha512_224:function(){return C("SHA-512.224",s,n,i,128,t,224)},sha512_256:function(){return C("SHA-512.256",l,n,i,128,t,256)}}}();"undefined"!==typeof t&&(w.instances={},w.getInstance384=function(e){return w.instances[e]||(w.instances[e]=w.sha384())},w.getInstance512=function(e){return w.instances[e]||(w.instances[e]=w.sha512())},w.deleteInstance=function(e){w.instances[e]=null,delete w.instances[e]},w.hash384=function(e){if("process"!==e.operationSubType)return"finish"===e.operationSubType?w.sha384.finish():w.sha384().computeHash(e.buffer);w.sha384.process(e.buffer)},w.hash512=function(e){if("process"!==e.operationSubType)return"finish"===e.operationSubType?w.sha512.finish():w.sha512().computeHash(e.buffer);w.sha512.process(e.buffer)},t.register("digest","SHA-384",w.hash384),t.register("digest","SHA-512",w.hash512)),c["SHA-384"]=w.sha384,c["SHA-512"]=w.sha512;var x=function(e,t){var r,n,i,o,a,s={384:128,512:128}[t.name.replace(/SHA-/,"")]||64,l=function(){if(e.length===s)return e;if(e.length>s)return u(t.computeHash(e),s);return u(e,s)}();function d(e,t){for(var r=new Array(e),n=0;n<e.length;n++)r[n]=e[n]^t[n];return r}function u(e,t){for(var r=e.slice(),n=e.length;n<t;n++)r.push(0);return r}function c(e){a?t.process(e):(a=o.concat(e),t.process(a))}function p(){var e=t.finish(),r=i.concat(e);return t.computeHash(r)}function m(){e=null,t=null,l=null}r=new Array(s),n=new Array(s);for(var f=0;f<s;f++)r[f]=54,n[f]=92;return o=d(l,r),i=d(l,n),{computeHmac:function(e,t,r){c(e);var n=p();return m(),n},process:function(e,t,r){return c(e),null},finish:function(e,t){var r=p();return m(),r}}};if("undefined"!==typeof t){var T={};x.signHmac=function(e){var t,r=e.keyHandle.algorithm.hash.name.toUpperCase(),n=c[r](),i=e.workerid;return T[i]||(T[i]=x(e.keyData,n)),"process"===e.operationSubType?(T[i].process(e.buffer),null):"finish"===e.operationSubType?(t=T[i].finish(),T[i]=null,t):(t=T[i].computeHmac(e.buffer),T[i]=null,t)},x.verifyHmac=function(e){var t,r=e.keyHandle.algorithm.hash.name.toUpperCase(),n=c[r](),i=e.workerid;return T[i]||(T[i]=x(e.keyData,n)),"process"===e.operationSubType?(T[i].process(e.buffer),null):"finish"===e.operationSubType?(t=T[i].finish(),t=p.arraysEqual(t,e.signature),T[i]=null,t):(t=T[i].computeHmac(e.buffer),t=p.arraysEqual(t,e.signature),T[i]=null,t)},x.generateKey=function(e){var t=e.algorithm.length;return t||(t={"SHA-1":64,"SHA-224":64,"SHA-256":64,"SHA-384":128,"SHA-512":128}[e.algorithm.hash.name.toUpperCase()]),{type:"keyGeneration",keyData:L.getBytes(t),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},x.importKey=function(e){var t;e.keyData.length;if("jwk"===e.format)(t=y.jwkToKey(e.keyData,e.algorithm,["k"])).alg=t.alg.replace("HS","SHA-");else{if("raw"!==e.format)throw new Error("unsupported import format");t={k:p.toArray(e.keyData)}}return{type:"keyImport",keyData:t.k,keyHandle:{algorithm:{name:"HMAC",hash:{name:e.algorithm.hash.name}},extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"}}},x.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:y.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw new Error("unsupported export format")},t.register("importKey","HMAC",x.importKey),t.register("exportKey","HMAC",x.exportKey),t.register("generateKey","HMAC",x.generateKey),t.register("sign","HMAC",x.signHmac),t.register("verify","HMAC",x.verifyHmac)}var R=function(){var e,t,r,n,i,o,a,s,l,d;return{aes:function(u){e||(e=p.unpackData("AAIEBggKDA4QEhQWGBocHiAiJCYoKiwuMDI0Njg6PD5AQkRGSEpMTlBSVFZYWlxeYGJkZmhqbG5wcnR2eHp8foCChIaIioyOkJKUlpianJ6goqSmqKqsrrCytLa4ury+wMLExsjKzM7Q0tTW2Nrc3uDi5Obo6uzu8PL09vj6/P4bGR8dExEXFQsJDw0DAQcFOzk/PTMxNzUrKS8tIyEnJVtZX11TUVdVS0lPTUNBR0V7eX99c3F3dWtpb21jYWdlm5mfnZORl5WLiY+Ng4GHhbu5v72zsbe1q6mvraOhp6Xb2d/d09HX1cvJz83DwcfF+/n//fPx9/Xr6e/t4+Hn5QADBgUMDwoJGBseHRQXEhEwMzY1PD86OSgrLi0kJyIhYGNmZWxvaml4e359dHdycVBTVlVcX1pZSEtOTURHQkHAw8bFzM/Kydjb3t3U19LR8PP29fz/+vno6+7t5Ofi4aCjpqWsr6qpuLu+vbS3srGQk5aVnJ+amYiLjo2Eh4KBm5idnpeUkZKDgIWGj4yJiquora6npKGis7C1tr+8ubr7+P3+9/Tx8uPg5ebv7Onqy8jNzsfEwcLT0NXW39zZ2ltYXV5XVFFSQ0BFRk9MSUpraG1uZ2RhYnNwdXZ/fHl6Ozg9Pjc0MTIjICUmLywpKgsIDQ4HBAECExAVFh8cGRoADhwSODYkKnB+bGJIRlRa4O788tjWxMqQnoyCqKa0utvVx8nj7f/xq6W3uZOdj4E7NScpAw0fEUtFV1lzfW9hraOxv5WbiYfd08HP5ev5901DUV91e2lnPTMhLwULGRd2eGpkTkBSXAYIGhQ+MCIslpiKhK6gsrzm6Pr03tDCzEFPXVN5d2VrMT8tIwkHFRuhr72zmZeFi9HfzcPp5/X7mpSGiKKsvrDq5Pb40tzOwHp0ZmhCTF5QCgQWGDI8LiDs4vD+1NrIxpySgI6kqri2DAIQHjQ6KCZ8cmBuREpYVjc5KyUPARMdR0lbVX9xY23X2cvF7+Hz/aepu7WfkYONAA0aFzQ5LiNoZXJ/XFFGS9Ddysfk6f7zuLWir4yBlpu7tqGsj4KVmNPeycTn6v3wa2ZxfF9SRUgDDhkUNzotIG1gd3pZVENOBQgfEjE8Kya9sKeqiYSTntXYz8Lh7Pv21tvMweLv+PW+s6SpioeQnQYLHBEyPyglbmN0eVpXQE3a18DN7uP0+bK/qKWGi5yRCgcQHT4zJClib3h1VltMQWFse3ZVWE9CCQQTHj0wJyqxvKumhYifktnUw87t4Pf6t7qtoIOOmZTf0sXI6+bx/GdqfXBTXklEDwIVGDs2ISwMARYbODUiL2RpfnNQXUpH3NHGy+jl8v+0ua6jgI2alwALFh0sJzoxWFNORXR/Ymmwu6atnJeKgejj/vXEz9LZe3BtZldcQUojKDU+DwQZEsvA3dbn7PH6k5iFjr+0qaL2/eDr2tHMx66luLOCiZSfRk1QW2phfHceFQgDMjkkL42Gm5Chqre81d7DyPny7+Q9NisgERoHDGVuc3hJQl9U9/zh6tvQzcavpLmyg4iVnkdMUVprYH12HxQJAjM4JS6Mh5qRoKu2vdTfwsn48+7lPDcqIRAbBg1kb3J5SENeVQEKFxwtJjswWVJPRHV+Y2ixuqesnZaLgOni//TFztPYenFsZ1ZdQEsiKTQ/DgUYE8rB3Nfm7fD7kpmEj761qKMACRIbJC02P0hBWlNsZX53kJmCi7S9pq/Y0crD/PXu5zsyKSAfFg0Ec3phaFdeRUyrormwj4adlOPq8fjHztXcdn9kbVJbQEk+NywlGhMIAebv9P3Cy9DZrqe8tYqDmJFNRF9WaWB7cgUMFx4hKDM63dTPxvnw6+KVnIeOsbijquzl/vfIwdrTpK22v4CJkpt8dW5nWFFKQzQ9Ji8QGQIL197FzPP64eiflo2Eu7KpoEdOVVxjanF4DwYdFCsiOTCak4iBvrespdLbwMn2/+TtCgMYES4nPDVCS1BZZm90faGos7qFjJee6eD78s3E39YxOCMqFRwHDnlwa2JdVE9GY3x3e/Jrb8UwAWcr/terdsqCyX36WUfwrdSir5ykcsC3/ZMmNj/3zDSl5fFx2DEVBMcjwxiWBZoHEoDi6yeydQmDLBobblqgUjvWsynjL4RT0QDtIPyxW2rLvjlKTFjP0O+q+0NNM4VF+QJ/UDyfqFGjQI+SnTj1vLbaIRD/89LNDBPsX5dEF8Snfj1kXRlzYIFP3CIqkIhG7rgU3l4L2+AyOgpJBiRcwtOsYpGV5HnnyDdtjdVOqWxW9Opleq4IunglLhymtMbo3XQfS72LinA+tWZIA/YOYTVXuYbBHZ7h+JgRadmOlJseh+nOVSjfjKGJDb/mQmhBmS0PsFS7FlIJatUwNqU4v0CjnoHz1/t84zmCmy//hzSOQ0TE3unLVHuUMqbCIz3uTJULQvrDTgguoWYo2SSydluiSW2L0SVy+PZkhmiYFtSkXMxdZbaSbHBIUP3tudpeFUZXp42dhJDYqwCMvNMK9+RYBbizRQbQLB6Pyj8PAsGvvQMBE4prOpERQU9n3OqX8s/O8LTmc5asdCLnrTWF4vk36Bx1325H8RpxHSnFiW+3Yg6qGL4b/FY+S8bSeSCa28D+eM1a9B/dqDOIB8cxsRIQWSeA7F9gUX+pGbVKDS3lep+TyZzvoOA7Ta4q9bDI67s8g1OZYRcrBH66d9Ym4WkUY1UhDH2NAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuN",256,!1),t=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=e[6],l=e[7],d=e[8]);var c,m,f,y;switch(c=8*u.length){case 128:case 192:case 256:break;default:throw new Error("Unsupported keyLength")}f=(m=c/32)+6;var h=function(e){var t=e[1];e[1]=e[5],e[5]=e[9],e[9]=e[13],e[13]=t,t=e[2],e[2]=e[10],e[10]=t,t=e[6],e[6]=e[14],e[14]=t,t=e[15],e[15]=e[11],e[11]=e[7],e[7]=e[3],e[3]=t},g=function(e){var t=e[13];e[13]=e[9],e[9]=e[5],e[5]=e[1],e[1]=t,t=e[10],e[10]=e[2],e[2]=t,t=e[14],e[14]=e[6],e[6]=t,t=e[3],e[3]=e[7],e[7]=e[11],e[11]=e[15],e[15]=t},v=function(e){var n=e[0],i=e[1],o=e[2],a=e[3],s=e[4],l=e[5],d=e[6],u=e[7],c=e[8],p=e[9],m=e[10],f=e[11],y=e[12],h=e[13],g=e[14],v=e[15];e[0]=t[n]^r[i]^o^a,e[1]=n^t[i]^r[o]^a,e[2]=n^i^t[o]^r[a],e[3]=r[n]^i^o^t[a],e[4]=t[s]^r[l]^d^u,e[5]=s^t[l]^r[d]^u,e[6]=s^l^t[d]^r[u],e[7]=r[s]^l^d^t[u],e[8]=t[c]^r[p]^m^f,e[9]=c^t[p]^r[m]^f,e[10]=c^p^t[m]^r[f],e[11]=r[c]^p^m^t[f],e[12]=t[y]^r[h]^g^v,e[13]=y^t[h]^r[g]^v,e[14]=y^h^t[g]^r[v],e[15]=r[y]^h^g^t[v]},P=function(e){var t=e[0],r=e[1],s=e[2],l=e[3],d=e[4],u=e[5],c=e[6],p=e[7],m=e[8],f=e[9],y=e[10],h=e[11],g=e[12],v=e[13],P=e[14],b=e[15];e[0]=n[t]^o[r]^i[s]^a[l],e[1]=a[t]^n[r]^o[s]^i[l],e[2]=i[t]^a[r]^n[s]^o[l],e[3]=o[t]^i[r]^a[s]^n[l],e[4]=n[d]^o[u]^i[c]^a[p],e[5]=a[d]^n[u]^o[c]^i[p],e[6]=i[d]^a[u]^n[c]^o[p],e[7]=o[d]^i[u]^a[c]^n[p],e[8]=n[m]^o[f]^i[y]^a[h],e[9]=a[m]^n[f]^o[y]^i[h],e[10]=i[m]^a[f]^n[y]^o[h],e[11]=o[m]^i[f]^a[y]^n[h],e[12]=n[g]^o[v]^i[P]^a[b],e[13]=a[g]^n[v]^o[P]^i[b],e[14]=i[g]^a[v]^n[P]^o[b],e[15]=o[g]^i[v]^a[P]^n[b]},b=function(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]},E=function(e,t,r){for(var n=0;n<e.length;n+=1)e[n]^=t[n+r]},I=function(e){var t=e[0];e[0]=e[1],e[1]=e[2],e[2]=e[3],e[3]=t},S=function(e){for(var t=0;t<e.length;t+=1)e[t]=s[e[t]]},C=function(e){for(var t=0;t<e.length;t+=1)e[t]=l[e[t]]},D=function(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]};return y=function(e){for(var t,r,n,i,o,a=[],s=0;s<4*m;)a.push(e[s++]);for(s=m;s<4*(f+1);){if(t=D(a,s-1),s%m===0){var l=[d[s/m],0,0,0];I(t),S(t),t=b(t,l)}else m>6&&s%m===4&&S(t);var u=b(D(a,s-m),t);n=u,o=0,(r=a)[4*(i=s)]=n[4*o],r[4*i+1]=n[4*o+1],r[4*i+2]=n[4*o+2],r[4*i+3]=n[4*o+3],s+=1}return a}(u),{encrypt:function(e){var t,r=e;for(E(r,y,0),t=1;t<=f-1;t+=1)S(r),h(r),v(r),E(r,y,4*t*4);return S(r),h(r),E(r,y,4*f*4),r},decrypt:function(e){var t,r=e;for(E(r,y,4*f*4),t=f-1;t>=1;t-=1)g(r),C(r),E(r,y,4*t*4),P(r);return g(r),C(r),E(r,y,0),r},clear:function(){},keyLength:c,blockSize:128}}}}(),F=F||{};F.pkcsv7=function(e){return{pad:function(t){var r=t[t.length-1>=0?t.length-1:0],n=r.length;if(n===e){var i,o=[];for(i=0;i<e;i+=1)o.push(e);t.push(o)}else for(var a=e-n&255;r.length!==e;)r.push(a)},unpad:function(t){var r=!0;t.length%e!==0&&(r=!1);for(var n=t.slice(-e),i=n[n.length-1],o=0;o<e;o++){var a=e-o<=i,s=n[o]===i;r=(!a||s)&&r}var l=r?i:0;return t.length-=l,r}}};var A=function(e){var t=e.blockSize/8,r=F.pkcsv7(t),n=function(e){var t,r,n=[];for(t=0;t<e.length;t+=1){var i=e[t];for(r=0;r<i.length;r+=1)n.push(i[r])}return n};function i(e){var r=[];l=l.concat(e);for(var n=Math.floor(l.length/t),i=0;i<n;i++)r.push(l.slice(i*t,(i+1)*t));return l=l.slice(n*t),r}function o(t){for(var r,n=[],i=0;i<t.length;i++)r=p.xorVectors(s,t[i]),n.push(e.encrypt(r)),s=n[i];return n}function a(){l=[],d=[],s=null}var s,l=[],d=[];return{init:function(e){if(e.length!==t)throw new Error("Invalid iv size");s=e.slice()},encrypt:function(e){var t=o(i(e));return d=d.concat(n(t)),this.finishEncrypt()},processEncrypt:function(e){return n(o(i(e)))},finishEncrypt:function(){var e=1===l.length?[[l[0]]]:[l];r.pad(e);var t=d.concat(n(o(e)));return a(),t},decrypt:function(e){return this.processDecrypt(e),this.finishDecrypt()},processDecrypt:function(t){var r=function(t){for(var r,n,i=[],o=0;o<t.length;o+=1)r=t[o].slice(0,t[o].length),n=e.decrypt(r),i.push(p.xorVectors(s,n)),s=t[o];return i}(i(t));d=d.concat(n(r))},finishDecrypt:function(){var e=d;r.unpad(e);return a(),e}}};if("undefined"!==typeof t){var H={};A.workerEncrypt=function(e){var t,r=e.workerid;return H[r]||(H[r]=A(R.aes(e.keyData)),H[r].init(e.algorithm.iv)),"process"===e.operationSubType?H[r].processEncrypt(e.buffer):"finish"===e.operationSubType?(t=H[r].finishEncrypt(),H[r]=null,t):(t=H[r].encrypt(e.buffer),H[r]=null,t)},A.workerDecrypt=function(e){var t,r=e.workerid;if(H[r]||(H[r]=A(R.aes(e.keyData)),H[r].init(e.algorithm.iv)),"process"!==e.operationSubType)return"finish"===e.operationSubType?(t=H[r].finishDecrypt(),H[r]=null,t):(t=H[r].decrypt(e.buffer),H[r]=null,t);H[r].processDecrypt(e.buffer)},A.generateKey=function(e){if(e.algorithm.length%8!==0)throw new Error;return{type:"keyGeneration",keyData:L.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},A.importKey=function(e){var t,r=8*e.keyData.length;if("jwk"===e.format)t=y.jwkToKey(e.keyData,e.algorithm,["k"]);else{if("raw"!==e.format)throw new Error("unsupported import format");if(128!==r&&192!==r&&256!==r)throw new Error("invalid key length (should be 128, 192, or 256 bits)");t={k:p.toArray(e.keyData)}}return e.algorithm.length=8*t.k.length,{keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"},type:"keyImport"}},A.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:y.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw new Error("unsupported export format")},t.register("importKey","AES-CBC",A.importKey),t.register("exportKey","AES-CBC",A.exportKey),t.register("generateKey","AES-CBC",A.generateKey),t.register("encrypt","AES-CBC",A.workerEncrypt),t.register("decrypt","AES-CBC",A.workerDecrypt)}var O=function(e){var t,r,n,i,o,a,s=p,l=[],d=e.encrypt(s.getVector(16)),u=s.getVector(16),c=[],m=[],f=0;function y(e,t){for(var r,n=Math.floor(t.length/16),i=0;i<n;i++)r=t.slice(16*i,16*i+16),u=g(s.xorVectors(u,r),e);return c=t.slice(16*n),u}function h(){var e=16*Math.ceil(f/16)-f,t=I(8*r.length),n=I(8*f),i=c.concat(s.getVector(e)).concat(t).concat(n);return y(d,i)}function g(e,t){var r,n,i,o=s.getVector(16),a=t.slice(0);for(i=0;i<128;i++){for(r=255&-P(e,i),n=0;n<16;n++)o[n]=o[n]^a[n]&r;r=255&-(1&a[15]),v(a),a[0]^=225&r}return o}function v(e){for(var t=e.length-1;t>0;t--)e[t]=(1&e[t-1])<<7|e[t]>>>1;return e[0]=e[0]>>>1,e}function P(e,t){return e[Math.floor(t/8)]>>7-t%8&1}function b(e){for(var t=256,r=1;r<=4;r++)t=(t>>>8)+e[e.length-r],e[e.length-r]=255&t;return e}function E(t,r){var n,i=Math.ceil(r.length/16),o=[];a!==t&&(a=t.slice());for(var l=0;l<i;l++){n=r.slice(16*l,16*l+16);var d=e.encrypt(a.slice());o=o.concat(s.xorVectors(n,d)),a=b(a)}return o}function I(e){return[0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]}function S(){f=0,l=[],m=[],u=s.getVector(16),c=[],a=t=r=null}return{init:function(e,a,l){if(r=a||[],(n=isNaN(l)?128:l)%8!==0)throw new Error("DataError");if(12===(t=e).length)i=t.concat([0,0,0,1]);else{var c=16*Math.ceil(t.length/16)-t.length;i=y(d,t.concat(s.getVector(c+8)).concat(I(8*t.length))),u=s.getVector(16)}o=b(i.slice()),y(d,function(e){var t=16*Math.ceil(r.length/16)-r.length;return e.concat(s.getVector(t))}(r))},encrypt:function(e){f=e.length;var t=E(o,e);y(d,t);var r=h(),a=E(i,r).slice(0,n/8);return S(),t.slice().concat(a)},decrypt:function(e,t){f=e.length;var r=E(o,e);y(d,e);var a=h(),l=E(i,a).slice(0,n/8);return S(),s.arraysEqual(l,t)?r:null},processEncrypt:function(e){var t=(l=l.concat(e)).slice(0,16*Math.floor(l.length/16));f+=t.length,l=l.slice(t.length);var r=E(a||o,t);m=m.concat(r),y(d,r)},processDecrypt:function(e){var t=(l=l.concat(e)).slice(0,16*Math.floor((l.length-n/8)/16));f+=t.length,l=l.slice(t.length);var r=E(a||o,t);m=m.concat(r),y(d,t)},finishEncrypt:function(){var e=E(a,l);m=m.concat(e),f+=l.length;var t=h(),r=E(i,t).slice(0,n/8),o=m.slice().concat(r);return S(),o},finishDecrypt:function(){var e=Math.floor(n/8),t=l.slice(-e);l=l.slice(0,l.length-e);var r=E(a,l);m=m.concat(r),f+=l.length;var o=h(),d=E(i,o).slice(0,n/8),u=m.slice();return S(),s.arraysEqual(d,t)?u:null}}};if("undefined"!==typeof t){var M={};O.encrypt=function(e){var t,r=e.workerid;if(M[r]||(M[r]=O(R.aes(e.keyData)),M[r].init(e.algorithm.iv,e.algorithm.additionalData,e.algorithm.tagLength)),"process"!==e.operationSubType)return"finish"===e.operationSubType?(t=M[r].finishEncrypt(),M[r]=null,t):(t=M[r].encrypt(e.buffer),M[r]=null,t);M[r].processEncrypt(e.buffer)},O.decrypt=function(e){var t,r=e.workerid;if(M[r]||(M[r]=O(R.aes(e.keyData)),M[r].init(e.algorithm.iv,e.algorithm.additionalData,e.algorithm.tagLength)),"process"!==e.operationSubType){if("finish"===e.operationSubType){if(t=M[r].finishDecrypt(),M[r]=null,null===t)throw new Error("OperationError");return t}var n=e.algorithm.tagLength?Math.floor(e.algorithm.tagLength/8):16,i=e.buffer.slice(0,e.buffer.length-n),o=e.buffer.slice(-n);if(t=M[r].decrypt(i,o),M[r]=null,null===t)throw new Error("OperationError");return t}M[r].processDecrypt(e.buffer)},O.generateKey=function(e){if(e.algorithm.length%8!==0)throw new Error;return{type:"keyGeneration",keyData:L.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},O.importKey=function(e){var t,r=8*e.keyData.length;if("jwk"===e.format)t=y.jwkToKey(e.keyData,e.algorithm,["k"]);else{if("raw"!==e.format)throw new Error("unsupported import format");if(128!==r&&192!==r&&256!==r)throw new Error("invalid key length (should be 128, 192, or 256 bits)");t={k:p.toArray(e.keyData)}}return{type:"keyImport",keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"}}},O.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:y.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw new Error("unsupported export format")},t.register("importKey","AES-GCM",O.importKey),t.register("exportKey","AES-GCM",O.exportKey),t.register("generateKey","AES-GCM",O.generateKey),t.register("encrypt","AES-GCM",O.encrypt),t.register("decrypt","AES-GCM",O.decrypt)}var N=function(e){return{encrypt:function(t){for(var r=[[0]],n=0;n<t.length;n+=8)r.push(t.slice(n,n+8));var i=[166,166,166,166,166,166,166,166],o=r.length-1,a=[];for(n=1;n<=o;n++)a[n]=r[n];for(var s=0;s<=5;s++)for(n=1;n<=o;n++){var l=o*s+n,d=e.encrypt(i.concat(a[n]));a[n]=d.slice(8),i=d.slice(0,8);for(var u=7;l>0;u--,l>>>=8)i[u]^=255&l}var c=i;for(n=1;n<=o;n++)c=c.concat(a[n]);return c},decrypt:function(t){for(var r=[],n=0;n<t.length;n+=8)r.push(t.slice(n,n+8));var i=r.length-1,o=[],a=[],s=r[0];for(n=1;n<=i;n++)o[n]=r[n];for(var l=5;l>=0;l--)for(n=i;n>=1;n--){for(var d=i*l+n,u=7;d>0;u--,d>>>=8)s[u]^=255&d;var c=e.decrypt(s.concat(o[n]));s=c.slice(0,8),o[n]=c.slice(8)}if("166,166,166,166,166,166,166,166"!==s.join(","))throw p.error("OperationError","");for(n=1;n<=i;n++)a=a.concat(o[n]);return a}}};if("undefined"!==typeof t){var B={};N.workerEncrypt=function(e){var t,r=e.workerid;if(e.buffer.length%8!==0)throw p.error("DataError","The AES-KW input data length is invalid: not a multiple of 8 bytes");return B[r]||(B[r]=N(R.aes(e.keyData))),t=B[r].encrypt(e.buffer),B[r]=null,t},N.workerDecrypt=function(e){var t,r=e.workerid;if(e.buffer.length%8!==0)throw p.error("DataError","The AES-KW input data length is invalid: not a multiple of 8 bytes");return B[r]||(B[r]=N(R.aes(e.keyData))),t=B[r].decrypt(e.buffer),B[r]=null,t},N.generateKey=function(e){if(e.algorithm.length%8!==0)throw p.error("OperationError","AES key length must be 128, 192, or 256 bits");return{type:"keyGeneration",keyData:L.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},N.importKey=function(e){var t,r=8*e.keyData.length;if("jwk"===e.format)t=y.jwkToKey(e.keyData,e.algorithm,["k"]);else{if("raw"!==e.format)throw new TypeError("Invalid keyFormat argument");if(128!==r&&192!==r&&256!==r)throw p.error("OperationError","AES key length must be 128, 192, or 256 bits");t={k:p.toArray(e.keyData)}}return e.algorithm.length=8*t.k.length,{keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"},type:"keyImport"}},N.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:y.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw new TypeError("Invalid keyFormat argument")},t.register("importKey","AES-KW",N.importKey),t.register("exportKey","AES-KW",N.exportKey),t.register("generateKey","AES-KW",N.generateKey),t.register("encrypt","AES-KW",N.workerEncrypt),t.register("decrypt","AES-KW",N.workerDecrypt)}function V(){if(!(this instanceof V))throw new Error("create MsrcryptoPrng object with new keyword");var e,t,r,n,i=!1,o=1,a=Math.pow(2,48);function s(e){var t;for(t=e.length-1;t>=0&&(e[t]+=1,e[t]>=256&&(e[t]=0),!e[t]);t-=1);}function l(){e=p.getVector(32),t=p.getVector(16),r=32,n=48,o=1}function d(e,t){if((t=t||[0]).length>n)throw new Error("Incorrect entropy or additionalEntropy length");t=t.concat(p.getVector(n-t.length)),e=e.concat(p.getVector((n-e.length%n)%n));for(var r=0;r<e.length;r+=n){u(p.xorVectors(e.slice(r,r+n),t))}o=1}function u(i){for(var o=[],a=new R.aes(e);o.length<n;){s(t);var l=t.slice(0,16),d=a.encrypt(l);o=o.concat(d)}o=p.xorVectors(o,i),e=o.slice(0,r),t=o.slice(r)}function c(r,i){if(r>=65536)throw new Error("too much random requested");if(o>a)throw new Error("Reseeding is required");if(i&&i.length>0){for(;i.length<n;)i=i.concat(p.getVector(n-i.length));u(i)}else i=p.getVector(n);for(var l=[],d=new R.aes(e);l.length<r;){s(t);var c=t.slice(0,t.length),m=d.encrypt(c);l=l.concat(m)}return l=l.slice(0,r),u(i),o+=1,l}return l(),{reseed:d,getBytes:function(e,t){if(!i)throw new Error("can't get randomness before initialization");return c(e,t)},getNonZeroBytes:function(e,t){if(!i)throw new Error("can't get randomness before initialization");for(var r,n=[];n.length<e;){r=c(e,t);for(var o=0;o<r.length;o+=1)0!==r[o]&&n.push(r[o])}return n.slice(0,e)},init:function(e,t){if(e.length<n)throw new Error("Initial entropy length too short");l(),d(e,t),i=!0}}}var L=new V;var U,j=function(){var e=[],t=[];function r(r){var n,i=t.length;for(n=0;n<i;n++)if((t[n]+r)%e[n]===0)return!1;return!0}function n(r){var n,i,o,a,s,l,d=r.length-1,u=h.DIGIT_BASE,c=r[d];for(0===e.length&&(e=function(e){var t,r,n=new Array(e+1),i=[],o=0|Math.sqrt(e);for(t=3;t<=o;t+=2)for(r=t*t;r<=e;r+=2*t)n[r]=0;for(t=3;t<=e;t+=2)0!==n[t]&&i.push(t);return i}(16384)),l=e.length,t=new Array(l),n=0;n<l;n++){for(i=d,c<(s=e[n])?(o=c,i--):o=0;i>=0;)o=(a=o*u+r[i--])-(a/s|0)*s;t[n]=o}}function i(e,t){var r=e,n=[];h.subtract(r,[1],n);var i=function(e){var t,r=0,n=0;if(h.isZero(e))return 0;for(r=0;0===e[r];r++);for(n=0,t=2;e[r]%t===0;t*=2,n++);return r*h.DIGIT_BITS+n}(n),a=[];h.shiftRight(n,a,i);for(var s,l=function(e){var t=0,r=0,n=0;if(h.isZero(e))return 0;for(t=e.length-1;0===e[t];t--);for(n=1<<(r=h.DIGIT_BITS-1);r>0&&0===(e[t]&n);n>>>=1,r--);return t*h.DIGIT_BITS+r}(r),d=h.MontgomeryMultiplier(r),u=1;u<=t;u++){var c=!1;do{s=o(l)}while(h.compareDigits(s,n)>=0);var p=[];if(d.modExp(s,a,p,!0),0!==h.compareDigits(p,[1])&&0!==h.compareDigits(p,n)){for(var m=1;m<i;m++){if(d.montgomeryMultiply(p,p,p),0===h.compareDigits(p,n)){c=!0;break}if(0===h.compareDigits(p,[1]))return!1}if(!1===c)return!1}}return!0}function o(e){var t=Math.ceil(e/8),r=L.getBytes(t);return r[0]|=128,r[r.length-1]|=1,h.bytesToDigits(r)}return{generatePrime:function(e){var t=o(e),a=0,s=[];for(n(t);;){if(r(a)&&(h.add(t,[a],s),!0===i(s,6)))return s;a+=2}}}}(),_=function(e){var t=p,r=e.hasOwnProperty("n")&&e.hasOwnProperty("d"),n=e.hasOwnProperty("p")&&e.hasOwnProperty("q"),i=e.n.length;function o(e){var r=h.digitsToBytes(e);return t.padFront(r,0,i),r}function a(e,t,r){var n=h.bytesToDigits(t),i=h.IntegerGroup(r),o=i.createElementFromBytes(e);return i.modexp(o,n).m_digits}return{encrypt:function(t){return o(a(t,e.e,e.n))},decrypt:function(t){if(n)return function(t){var r=h.bytesToDigits,n=e.p,i=e.q,a=e.dp,s=e.dq,l=e.qi,d=r(n),u=r(i),c=new Array(d.length+u.length),p=new Array(d.length+1),m=new Array(u.length+1),f=r(t),y=h.MontgomeryMultiplier,g=new y(e.ctxp?void 0:d,e.ctxp),v=new y(e.ctxq?void 0:u,e.ctxq);g.reduce(f,c),g.modExp(c,r(a),p),v.reduce(f,c),v.modExp(c,r(s),m);var P=h.subtract(p,m,c);return 0!==P&&h.subtract(m,p,c),h.modMul(c,r(l),d,f),0!==P&&h.subtract(d,f,f),h.multiply(f,u,c),h.add(m,c,p),o(p)}(t);if(r)return function(t){return o(a(t,e.d,e.n))}(t);throw new Error("missing private key")}}},z=function(e,t,r){var n,i,o,a=[],s=r.hashLen/8;for(o=0;o<=Math.floor(t/s);o+=1)n=[o>>>24&255,o>>>16&255,o>>>8&255,255&o],i=r.computeHash(e.concat(n)),a=a.concat(i);return a.slice(0,t)};(U=U||{}).oaep=function(e,t){var r=p,n=L,i=e.n.length;if(null===t)throw new Error("must supply hashFunction");return{pad:function(e,o){return function(e,o){var a,s,l,d,u,c,p,m,f;if(e.length>i-t.hashLen/8*2-2)throw new Error("Message too long.");return null==o&&(o=[]),a=t.computeHash(o),s=i-e.length-2*a.length-2,l=r.getVector(s),d=a.concat(l,[1],e),u=n.getBytes(a.length),c=z(u,i-a.length-1,t),p=r.xorVectors(d,c),m=z(p,a.length,t),f=r.xorVectors(u,m),[0].concat(f).concat(p).slice()}(e,o)},unpad:function(e,n){return function(e,n){var o,a,s,l,d,u,c,p,m=0,f=0===e[0];for(n||(n=[]),o=t.computeHash(n),a=e.slice(1,o.length+1),s=e.slice(o.length+1),l=z(s,o.length,t),d=r.xorVectors(a,l),u=z(d,i-o.length-1,t),p=(c=r.xorVectors(s,u)).slice(0,o.length),f=f&&r.arraysEqual(o,p),c=c.slice(o.length);!c[m++];);return{valid:f,data:c.slice(m)}}(e,n)}}},(U=U||{}).pkcs1Encrypt=function(e){var t=L,r=e.n.length;return{pad:function(e){return function(e){var n;if(e.length>r-11)throw new Error("message too long");return n=t.getNonZeroBytes(r-e.length-3),[0,2].concat(n,[0],e)}(e)},unpad:function(e){return function(e){var t,r=function(e){for(var t=0===e[0]&&2===e[1],r=2;r<10;r++)t=t&&!!e[r];return t}(e),n=0;for(t=1;t<e.length;t+=1)n=n||+!e[t]&&t+1;return n=-r&&n,{data:e.slice(n),valid:r}}(e)}}},U.pkcs1Sign=function(e,t){var r=p,n=e.n.length;function i(e){var i,o,a;if(o=t.computeHash(e.slice()),a=(i=t.der.concat(o)).length,n<a+11)throw new Error("intended encoded message length too short");return[0,1].concat(r.getVector(n-a-3,255),[0],i)}return{sign:function(e){return i(e)},verify:function(e,t){var n=i(t);return r.arraysEqual(e,n)}}},(U=U||{}).pss=function(e,t){var r=p,n=L;return{sign:function(i,o,a){return function(i,o,a){var s=h.bitLength(e.n)-1,l=Math.ceil(s/8),d=t.computeHash(i);if(o=a?a.length:null==o?d.length:o,l<d.length+o+2)throw new Error("encoding error");a=a||n.getBytes(o);for(var u=[0,0,0,0,0,0,0,0].concat(d,a),c=t.computeHash(u),p=r.getVector(l-a.length-c.length-2).concat([1],a),m=z(c,l-c.length-1,t),f=r.xorVectors(p,m),y=0,g=0;g<8-(8*l-s);g++)y+=1<<g;return f[0]&=y,f.concat(c,[188])}(i,o,a)},verify:function(n,i,o){return function(n,i,o){var a=h.bitLength(e.n)-1,s=Math.ceil(a/8),l=t.computeHash(i),d=l.length;if(s<d+(o=null==o?d:o)+2)return!1;var u=n.slice(0,s-d-1),c=n.slice(u.length,u.length+d),p=z(c,s-d-1,t),m=r.xorVectors(u,p);m[0]&=255>>>8-(8*s-a);for(var f=0;f<s-d-o-2;f++)if(0!==m[f])return!1;if(1!==m[s-d-o-2])return!1;var y=m.slice(m.length-o),g=[0,0,0,0,0,0,0,0].concat(l,y),v=t.computeHash(g);return r.arraysEqual(v,c)}(n,i,o)}}};var G=function(e,t,r){var n=_(e);if(!t)throw new Error("padding mode");function i(){if(!r||!r.computeHash)throw new Error("missing hash function")}var o,a=null,s=null;switch(t){case"RSAES-PKCS1-V1_5":o=U.pkcs1Encrypt(e);break;case"RSASSA-PKCS1-V1_5":i(),o=U.pkcs1Sign(e,r);break;case"RSA-OAEP":i(),o=U.oaep(e,r);break;case"RSA-PSS":i(),o=U.pss(e,r);break;case"raw":o={pad:function(e){return e},unpad:function(e){return e}};break;default:throw new Error("invalid mode")}return o&&(a=o.pad||o.sign,s=o.unpad||o.verify),{encrypt:function(e,t){var r;return r=null!==a?a(e,t):e.slice(),n.encrypt(r)},decrypt:function(e,t){var r=n.decrypt(e);if(null!==s){if(!1===(r=s(r,t)).valid)throw new Error("OperationError");r=r.data}else r=r.slice(0);return r},signData:function(e,t,r){return n.decrypt(a(e,t,r))},verifySignature:function(e,t,r){var i=n.encrypt(e);return s(i,t,r)},generateKeyPair:function(e){genRsaKeyFromRandom(e)},mode:t}};"undefined"!==typeof t&&(G.sign=function(e){var t=e.keyHandle.algorithm.hash.name,r=c[t.toUpperCase()](),n=e.algorithm.saltLength,i=e.algorithm.salt;return G(e.keyData,e.algorithm.name,r).signData(e.buffer,n,i)},G.verify=function(e){var t=e.keyHandle.algorithm.hash.name,r=c[t.toUpperCase()](),n=e.algorithm.saltLength;return G(e.keyData,e.algorithm.name,r).verifySignature(e.signature,e.buffer,n)},G.workerEncrypt=function(e){var t,r,n;switch(e.algorithm.name){case"RSAES-PKCS1-V1_5":t=G(e.keyData,e.algorithm.name).encrypt(e.buffer);break;case"RSA-OAEP":if(!(n=e.keyHandle.algorithm.hash.name))throw new Error("unsupported hash algorithm");r=c[n.toUpperCase()](),t=G(e.keyData,e.algorithm.name,r).encrypt(e.buffer);break;default:throw new Error("unsupported algorithm")}return t},G.workerDecrypt=function(e){var t,r;switch(e.algorithm.name){case"RSAES-PKCS1-V1_5":t=G(e.keyData,e.algorithm.name).decrypt(e.buffer);break;case"RSA-OAEP":var n=e.keyHandle.algorithm.hash.name;if(!n)throw new Error("unsupported hash algorithm");r=c[n.toUpperCase()](),t=G(e.keyData,e.algorithm.name,r).decrypt(e.buffer);break;default:throw new Error("unsupported algorithm")}return t},G.importKey=function(e){var t;if("jwk"===e.format)(t=y.jwkToKey(e.keyData,e.algorithm,["n","e","d","p","q","dp","dq","qi"])).d&&(t.ctxp=new h.MontgomeryMultiplier(h.bytesToDigits(t.p)).ctx,t.ctxq=new h.MontgomeryMultiplier(h.bytesToDigits(t.q)).ctx);else if("spki"===e.format){if(null==(o=m.parse(e.keyData)))throw new Error("invalid key data.");var r=o[1];if(null==(a=m.parse(r.data.slice(r.header+1),!0)))throw new Error("invalid key data.");var n=a[0],i=a[1];if("INTEGER"!==n.type||"INTEGER"!==i.type)throw new Error("invalid key data.");n=n.data.slice(n.header),i=i.data.slice(i.header),0===n[0]&&128&n[1]&&(n=n.slice(1)),0===i[0]&&128&i[1]&&(i=i.slice(1)),t={n:n,e:i}}else{if("pkcs8"!==e.format)throw new Error("unsupported key import format.");var o;if(null==(o=m.parse(e.keyData)))throw new Error("invalid key data.");var a;r=o[2];if(null==(a=m.parse(r.data.slice(r.header),!0)))throw new Error("invalid key data.");var s=["n","e","d","p","q","dp","dq","qi"];t={};for(var l=1;l<a.length;l++){var d=a[l];0===(d=d.data.slice(d.header))[0]&&128&d[1]&&(d=d.slice(1)),t[s[l-1]]=d}}return{type:"keyImport",keyData:t,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:t.d||t.dq?"private":"public"}}},G.exportKey=function(e){var t="1.2.840.113549.1.1.1";if("jwk"===e.format)return{type:"keyExport",keyHandle:y.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{NULL:1}]},{"BIT STRING":{SEQUENCE:[{INTEGER:e.keyData.n},{INTEGER:e.keyData.e}]}}]})};if("pkcs8"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{NULL:1}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:0},{INTEGER:e.keyData.n},{INTEGER:e.keyData.e},{INTEGER:e.keyData.d},{INTEGER:e.keyData.p},{INTEGER:e.keyData.q},{INTEGER:e.keyData.dp},{INTEGER:e.keyData.dq},{INTEGER:e.keyData.qi}]}}]})};throw new Error(e.format+" not implemented")},G.genRsaKeyFromRandom=function(e,t){var r=t?h.bytesToDigits(t):[65537];do{var n=j.generatePrime(e/2),i=j.generatePrime(e/2);if(h.compareDigits(i,n)>0){var o=n;n=i,i=o}var a=[];h.multiply(n,i,a);var s=[];h.subtract(n,[1],s);var l=[];h.subtract(i,[1],l);var d=[];h.multiply(s,l,d);var u=[];h.gcd(r,d,u);var c=0===h.compareDigits(u,h.One)}while(!c);var p=[];h.modInv(r,d,p);var m=[];h.reduce(p,s,m);var f=[];h.reduce(p,l,f);var y=[];h.modInv(i,n,y);var g=h.digitsToBytes;return{privateKey:{n:g(a),e:g(r),d:g(p),p:g(n),q:g(i),dp:g(m),dq:g(f),qi:g(y)},publicKey:{n:g(a),e:g(r)}}},G.generateKeyPair=function(e){if("undefined"===typeof e.algorithm.modulusLength)throw new Error("missing modulusLength");var t,r=h.bytesToDigits;switch(e.algorithm.modulusLength){case 1024:case 2048:case 4096:t=G.genRsaKeyFromRandom(e.algorithm.modulusLength,e.algorithm.publicExponent);break;default:throw new Error("invalid modulusLength")}var n=t.privateKey;n.ctxp=new h.MontgomeryMultiplier(r(n.p)).ctx,n.ctxq=new h.MontgomeryMultiplier(r(n.q)).ctx;var i,o,a=e.algorithm.name;a.slice(a.indexOf("-")+1).toUpperCase();return"RSASSA-PKCS1-V1_5"===a||"RSA-PSS"===a?(i=["verify"],o=["sign"]):(i=["encrypt"],o=["decrypt"]),{type:"keyGeneration",keyPair:{publicKey:{keyData:t.publicKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:i,type:"public"}},privateKey:{keyData:t.privateKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:o,type:"private"}}}}},t.register("sign","RSASSA-PKCS1-V1_5",G.sign),t.register("sign","RSA-PSS",G.sign),t.register("verify","RSASSA-PKCS1-V1_5",G.verify),t.register("verify","RSA-PSS",G.verify),t.register("encrypt","RSAES-PKCS1-V1_5",G.workerEncrypt),t.register("decrypt","RSAES-PKCS1-V1_5",G.workerDecrypt),t.register("encrypt","RSA-OAEP",G.workerEncrypt),t.register("decrypt","RSA-OAEP",G.workerDecrypt),t.register("importKey","RSA-OAEP",G.importKey),t.register("importKey","RSAES-PKCS1-V1_5",G.importKey),t.register("importKey","RSASSA-PKCS1-V1_5",G.importKey),t.register("importKey","RSA-PSS",G.importKey),t.register("exportKey","RSA-OAEP",G.exportKey),t.register("exportKey","RSAES-PKCS1-V1_5",G.exportKey),t.register("exportKey","RSASSA-PKCS1-V1_5",G.exportKey),t.register("exportKey","RSA-PSS",G.exportKey),t.register("generateKey","RSA-OAEP",G.generateKeyPair),t.register("generateKey","RSAES-PKCS1-V1_5",G.generateKeyPair),t.register("generateKey","RSASSA-PKCS1-V1_5",G.generateKeyPair),t.register("generateKey","RSA-PSS",G.generateKeyPair));var K={deriveBits:function(e){for(var t=e.algorithm.hash.name,r=c[t.toUpperCase()](),n=e.algorithm,i=X.toArray(n.algorithmId).concat(X.toArray(n.partyUInfo),X.toArray(n.partyVInfo),X.toArray(n.publicInfo)||[],X.toArray(n.privateInfo)||[]),o=Math.ceil(e.length/r.hashLen),a=1,s=e.keyData.concat(i),l=[],d=0;d<o;d++){var u=X.int32ToBytes(a++).concat(s),p=r.computeHash(u);l=l.concat(p)}return l.slice(0,e.length/8)}};"undefined"!==typeof t&&(K.importKey=function(e){var t;if("raw"!==e.format)throw new Error("unsupported import format");if(t=p.toArray(e.keyData),!1!==e.extractable)throw new Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"CONCAT"},extractable:!1,usages:e.usages,type:"secret"}}},t.register("deriveBits","CONCAT",K.deriveBits),t.register("importKey","CONCAT",K.importKey));var W={deriveBits:function(e){var t,r,n=e.algorithm,i=e.keyData,o=e.length,a=n.iterations,s=Array.apply(null,n.salt),l=Math.ceil(o/8),d=[];switch(n.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw new Error("Unsupported hash algorithm")}r=Math.ceil(l/t);var u=x.importKey({format:"raw",keyData:i,algorithm:{name:"HMAC",hash:n.hash}}),c={algorithm:n,keyHandle:u.keyHandle,keyData:u.keyData,workerid:0,buffer:null};function p(e,r,n){for(var i=[],o=e.concat([n>>>24&255,n>>>16&255,n>>>8&255,255&n]),a=0;a<r;a++){c.buffer=o,o=x.signHmac(c);for(var s=0;s<t;s++)i[s]=~~i[s]^o[s]}return i}for(var m=1;m<=r;m++)d=d.concat(p(s,a,m));return d.length=l,d}};"undefined"!==typeof t&&(W.importKey=function(e){var t;if("raw"!==e.format)throw new Error("unsupported import format");if(t=p.toArray(e.keyData),!1!==e.extractable)throw new Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"PBKDF2"},extractable:!1,usages:e.usages,type:"secret"}}},t.register("deriveBits","PBKDF2",W.deriveBits),t.register("importKey","PBKDF2",W.importKey));var q={deriveBits:function(e){var t,r,n,i=e.algorithm,o=e.keyData,a=e.length,s=i.salt,l=Math.ceil(a/8),d=[],u=p.toArray(i.info),c=[];switch(i.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw new Error("Unsupported hash algorithm.")}if(null==i.salt)throw new Error("HkdfParams: salt: Missing required property.");if(null==i.info)throw new Error("HkdfParams: info: Missing required property.");if(a%8!==0)throw new Error("The length provided for HKDF is not a multiple of 8 bits.");if(l>255*t)throw new Error("The length provided for HKDF is too large.");for(0===s.length&&(s=p.getVector(t)),(n={workerid:0,keyHandle:{algorithm:i},keyData:s,buffer:o}).keyData=x.signHmac(n),r=0;r<Math.ceil(l/t);r++)n.buffer=c.concat(u).concat([1+r]),c=x.signHmac(n),d=d.concat(c);return d.slice(0,l)}};"undefined"!==typeof t&&(q.importKey=function(e){var t;if("raw"!==e.format)throw new Error("unsupported import format");if(t=p.toArray(e.keyData),!1!==e.extractable)throw new Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"HKDF"},extractable:!1,usages:e.usages,type:"secret"}}},t.register("deriveBits","HKDF",q.deriveBits),t.register("importKey","HKDF",q.importKey));var J={deriveBits:function(e){var t,r,n,i=e.algorithm,o=e.keyData,a=e.length,s=i.label,l=i.context,d=Math.ceil(a/8),u=[];switch(i.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw new Error("Unsupported hash algorithm.")}if(null==i.label)throw new Error("HkdfCtrParams: label: Missing required property.");if(null==i.context)throw new Error("HkdfCtrParams: context: Missing required property.");if(a%8!==0)throw new Error("The length provided for HKDF-CTR is not a multiple of 8 bits.");if(d>255*t)throw new Error("The length provided for HKDF-CTR is too large.");n={workerid:0,keyHandle:{algorithm:i},keyData:o,buffer:o};var c=s.concat([0],l,X.int32ToBytes(a));for(r=1;r<=Math.ceil(d/t);r++)n.buffer=X.int32ToBytes(r).concat(c),u=u.concat(x.signHmac(n));return u.slice(0,d)}};"undefined"!==typeof t&&(J.importKey=function(e){var t;if("raw"!==e.format)throw new Error("unsupported import format");if(t=p.toArray(e.keyData),!1!==e.extractable)throw new Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"HKDF-CTR"},extractable:!1,usages:e.usages,type:"secret"}}},t.register("deriveBits","HKDF-CTR",J.deriveBits),t.register("importKey","HKDF-CTR",J.importKey));var Q=function(e){var t=h.bytesToDigits,r=h.digitsToBytes,n=e,i=new g.EllipticCurveOperatorFp(e);return{generateKey:function(t){var o=[],a=L.getBytes(e.order.length*h.DIGIT_NUM_BYTES);h.reduce(h.bytesToDigits(a),n.order,o);var s=n.allocatePointStorage();return i.scalarMultiply(o,n.generator,s),{privateKey:{x:r(s.x),y:r(s.y),d:r(o)},publicKey:{x:r(s.x),y:r(s.y)}}},deriveBits:function(e,r,o){var a=new g.EllipticCurvePointFp(n,!1,t(r.x),t(r.y),null,!1),s=n.allocatePointStorage();i.convertToJacobianForm(s),i.convertToMontgomeryForm(s),i.scalarMultiply(t(e.d),a,s),i.convertToAffineForm(s),i.convertToStandardForm(s);var l=h.digitsToBytes(s.x,!0,r.x.length);if(o&&8*l.length<o)throw new Error("DataError");var d=o%8,u=0===d?255:65280>>>d;return(l=o?l.slice(0,Math.ceil(o/8)):l)[l.length-1]=l[l.length-1]&u,l},computePublicKey:function(e){n.generator.isInMontgomeryForm||i.convertToMontgomeryForm(n.generator);var o=n.allocatePointStorage();return i.convertToJacobianForm(o),i.convertToMontgomeryForm(o),i.scalarMultiply(t(e),n.generator,o),{x:r(o.x),y:r(o.y)}}}};"undefined"!==typeof t&&(Q.deriveBits=function(e){var t=g.createCurve(e.algorithm.namedCurve.toUpperCase()),r=e.keyData,n=e.additionalKeyData;return Q(t).deriveBits(r,n,e.length)},Q.deriveKey=function(e){throw new Error("not supported")},Q.generateKey=function(e){var t=g.createCurve(e.algorithm.namedCurve.toUpperCase()),r=Q(t).generateKey();return{type:"keyPairGeneration",keyPair:{publicKey:{keyData:r.publicKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:[],type:"public"}},privateKey:{keyData:r.privateKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}}},Q.importKey=function(e){try{if("raw"===e.format){var t=e.keyData;if(4!==t[0])throw new Error("DataError");var r=~~((t.length-1)/2),n=e.algorithm.namedCurve.toUpperCase(),i=t.slice(1,r+1),o=t.slice(r+1);if(!1===g.validatePoint(n,i,o))throw new Error("DataError");return{type:"keyImport",keyData:{x:i,y:o},keyHandle:{algorithm:e.algorithm,extractable:e.extractable||!1,usages:e.usages,type:"public"}}}if("jwk"===e.format){if((d=y.jwkToKey(e.keyData,e.algorithm,["x","y","d","crv"])).d&&(!d.x||!d.y)){var a=g.createCurve(e.algorithm.namedCurve.toUpperCase()),s=Q(a).computePublicKey(d.d);d.x=s.x,d.y=s.y}if(!1===g.validatePoint(e.algorithm.namedCurve.toUpperCase(),d.x,d.y))throw new Error("DataError");return{type:"keyImport",keyData:d,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||d.extractable,usages:e.usages,type:d.d?"private":"public"}}}if("spki"===e.format){var l={"P-256":32,"P-384":48,"P-521":66}[e.algorithm.namedCurve];if(null==(u=m.parse(e.keyData)))throw new Error("invalid key data.");if(null==(h=(f=u[1]).data.slice(f.header+1))||4!==h.shift()||h.length!==2*l)throw new Error("invalid key data.");i=h.slice(0,l),o=h.slice(l);if(!p.isBytes(i)||!p.isBytes(o))throw new Error("invalid key data.");var d={x:i,y:o};if(!1===g.validatePoint(e.algorithm.namedCurve.toUpperCase(),d.x,d.y))throw new Error("DataError");return{type:"keyImport",keyData:d,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("pkcs8"===e.format){var u;l={"P-256":32,"P-384":48,"P-521":66}[e.algorithm.namedCurve];if(null==(u=m.parse(e.keyData)))throw new Error("invalid key data.");var c=u[2];if(null==(h=m.parse(c.data.slice(c.header))))throw new Error("invalid key data.");var f,h,v=h[1].data.slice(h[1].header);if(null==(h=(f=m.parse(h[2][0].data)).data.slice(f.header+1))||4!==h.shift()||h.length!==2*l)throw new Error("invalid key data.");i=h.slice(0,l),o=h.slice(l);if(!p.isBytes(i)||!p.isBytes(o))throw new Error("invalid key data.");d={x:i,y:o,d:v};if(!1===g.validatePoint(e.algorithm.namedCurve.toUpperCase(),d.x,d.y))throw new Error("DataError");return{type:"keyImport",keyData:d,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}}catch(P){throw new p.error("DataError","")}},Q.exportKey=function(e){var t="1.2.840.10045.2.1",r={"P-256":"1.2.840.10045.3.1.7 ","P-384":"1.3.132.0.34","P-521":"1.3.132.0.35"};if("raw"===e.format&&"public"===e.keyHandle.type)return{type:"keyExport",keyHandle:[4].concat(e.keyData.x,e.keyData.y)};if("jwk"===e.format)return{type:"keyExport",keyHandle:y.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":r[e.algorithm.namedCurve]}]},{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}]})};if("pkcs8"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":r[e.algorithm.namedCurve]}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:1},{"OCTET STRING":e.keyData.d},{APPLICATION:[{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}],tag:1}]}}]})};throw new Error("unsupported export format.")},t.register("importKey","ECDH",Q.importKey),t.register("exportKey","ECDH",Q.exportKey),t.register("generateKey","ECDH",Q.generateKey),t.register("deriveBits","ECDH",Q.deriveBits),t.register("deriveKey","ECDH",Q.deriveKey));var Z,Y=function(e){var t=h.bytesToDigits,r=h.digitsToBytes,n=new g.EllipticCurveOperatorFp(e),i=r(e.order).length,o=1===e.type;function a(t){var r=e.allocatePointStorage();return n.scalarMultiply(t,e.generator,r),{publicKey:r,privateKey:t}}function s(t){var r=[];return t||(t=L.getBytes(e.order.length*h.DIGIT_NUM_BYTES)),h.reduce(h.bytesToDigits(t),e.order,r),a(r)}function l(r){r.length>i&&(r.length=i);var n=t(r);if(o){var a=8-e.rbits%8;h.shiftRight(n,n,a)}return h.reduce(n,e.order,n),n}return{createKey:function(e){return a(t(e))},generateKey:s,sign:function(n,o,a){a||(a=s());var d=a.publicKey.x,u=a.privateKey,c=t(n.d),m=l(o.slice()),f=[],y=[];h.reduce(d,e.order,d),h.modMul(d,c,e.order,f),h.add(f,m,f),h.reduce(f,e.order,f),h.modInvCT(u,e.order,y),h.modMul(f,y,e.order,f);var g=p.padFront(r(d,!0,i),0,i),v=p.padFront(r(f,!0,i),0,i);return g.concat(v)},verify:function(r,i,a){var s=Math.floor(i.length/2),d=t(i.slice(0,s)),u=t(i.slice(s)),c=l(a.slice()),p=[],m=[],f=new g.EllipticCurvePointFp(e,!1,t(r.x),t(r.y),null,!1);h.modInv(u,e.order,u),h.modMul(c,u,e.order,p),h.modMul(d,u,e.order,m);var y=e.allocatePointStorage(),v=e.allocatePointStorage();return o?(h.add(p,p,p),h.add(p,p,p),h.reduce(p,e.order,p),n.scalarMultiply(p,e.generator,y,!1),n.scalarMultiply(m,f,v,!1),n.convertToExtendedProjective(y),n.convertToExtendedProjective(v),n.add(v,y,y),n.normalize(y)):(n.scalarMultiply(p,e.generator,y),n.scalarMultiply(m,f,v),n.convertToJacobianForm(y),n.convertToMontgomeryForm(y),n.convertToMontgomeryForm(v),n.mixedAdd(y,v,y),n.convertToAffineForm(y),n.convertToStandardForm(y)),!y.isInfinity&&(h.reduce(y.x,e.order,y.x),0===h.compareDigits(y.x,d))}}};"undefined"!==typeof t&&(Y.sign=function(e){p.checkParam(e.algorithm.hash,"Object","algorithm.hash"),p.checkParam(e.algorithm.hash.name,"String","algorithm.hash.name"),p.checkParam(e.keyHandle.algorithm.namedCurve,"String","p.keyHandle.algorithm.namedCurve");var t=e.algorithm.hash.name,r=g.createCurve(e.keyHandle.algorithm.namedCurve.toUpperCase()),n=c[t.toUpperCase()]().computeHash(e.buffer);return Y(r).sign(e.keyData,n)},Y.verify=function(e){var t=e.algorithm.hash.name,r=g.createCurve(e.keyHandle.algorithm.namedCurve.toUpperCase()),n=c[t.toUpperCase()]().computeHash(e.buffer);return Y(r).verify(e.keyData,e.signature,n)},Y.generateKey=function(e){var t=g.createCurve(e.algorithm.namedCurve.toUpperCase()),r=Y(t).generateKey(),n=h.digitsToBytes;var i=n(r.publicKey.x),o=n(r.publicKey.y),a=n(r.privateKey);return{type:"keyPairGeneration",keyPair:{publicKey:{keyData:{x:i,y:o},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:["verify"],type:"public"}},privateKey:{keyData:{x:i,y:o,d:a},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:["sign"],type:"private"}}}}},Y.importKey=function(e){if("raw"===e.format){var t=e.keyData;if(4!==t[0])throw new Error("DataError");var r=~~((t.length-1)/2),n=e.algorithm.namedCurve.toUpperCase(),i=t.slice(1,r+1),o=t.slice(r+1);if(!1===g.validatePoint(n,i,o))throw new Error("DataError");return{type:"keyImport",keyData:{x:i,y:o},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("jwk"===e.format){if((d=y.jwkToKey(e.keyData,e.algorithm,["x","y","d","crv"])).d&&(!d.x||!d.y)){var a=Y.curves[e.algorithm.namedCurve](),s=Y(a).computePublicKey(d.d);d.x=s.x,d.y=s.y}if(!1===g.validatePoint(e.algorithm.namedCurve.toUpperCase(),d.x,d.y))throw new Error("DataError");return{type:"keyImport",keyData:d,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||d.extractable,usages:e.usages,type:d.d?"private":"public"}}}if("spki"===e.format){var l={"P-256":32,"P-384":48,"P-521":66}[e.algorithm.namedCurve];if(null==(u=m.parse(e.keyData)))throw new Error("invalid key data.");if(null==(h=(f=u[1]).data.slice(f.header+1))||4!==h.shift()||h.length!==2*l)throw new Error("invalid key data.");i=h.slice(0,l),o=h.slice(l);if(!p.isBytes(i)||!p.isBytes(o))throw new Error("invalid key data.");var d={x:i,y:o};if(!1===g.validatePoint(e.algorithm.namedCurve.toUpperCase(),d.x,d.y))throw new Error("DataError");return{type:"keyImport",keyData:d,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("pkcs8"===e.format){var u;l={"P-256":32,"P-384":48,"P-521":66}[e.algorithm.namedCurve];if(null==(u=m.parse(e.keyData)))throw new Error("invalid key data.");var c=u[2];if(null==(h=m.parse(c.data.slice(c.header))))throw new Error("invalid key data.");var f,h,v=h[1].data.slice(h[1].header);if(null==(h=(f=m.parse(h[2][0].data)).data.slice(f.header+1))||4!==h.shift()||h.length!==2*l)throw new Error("invalid key data.");i=h.slice(0,l),o=h.slice(l);if(!p.isBytes(i)||!p.isBytes(o))throw new Error("invalid key data.");d={x:i,y:o,d:v};if(!1===g.validatePoint(e.algorithm.namedCurve.toUpperCase(),d.x,d.y))throw new Error("DataError");return{type:"keyImport",keyData:d,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}},Y.exportKey=function(e){var t="1.2.840.10045.2.1",r={"P-256":"1.2.840.10045.3.1.7 ","P-384":"1.3.132.0.34","P-521":"1.3.132.0.35"};if("raw"===e.format&&"public"===e.keyHandle.type)return{type:"keyExport",keyHandle:[4].concat(e.keyData.x,e.keyData.y)};if("jwk"===e.format)return{type:"keyExport",keyHandle:y.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":r[e.algorithm.namedCurve]}]},{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}]})};if("pkcs8"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":r[e.algorithm.namedCurve]}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:1},{"OCTET STRING":e.keyData.d},{APPLICATION:[{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}],tag:1}]}}]})};throw new Error("unsupported export format.")},t.register("sign","ECDSA",Y.sign),t.register("verify","ECDSA",Y.verify),t.register("generateKey","ECDSA",Y.generateKey),t.register("importKey","ECDSA",Y.importKey),t.register("exportKey","ECDSA",Y.exportKey));var X=p;Z=function(){function e(){var e;return{postMessage:function(t){try{t.workerid=this.id,e=f.jsCryptoRunner({data:t})}catch(r){return void this.onerror({data:r,type:"error"})}this.onmessage({data:e})},onmessage:null,onerror:null,terminate:function(){}}}function i(e){var t,r,n;return{dispatchEvent:function(i){"error"!==i.type?"process"!==i.data.type&&"finish"!==i.data.type?(this.result=e(i.data),r.apply(t,[this.result])):e(i.data.result,!0):n&&(i.data&&(i.data.stack="Error")&&(i.data.code=0),n.apply(t,[i.data||i]))},promise:t=new Promise((function(e,t){r=e,n=t})),result:null}}function o(e){var t=[],r=i((function(e,r){var n;if(e=e&&(n=e,s&&n.pop?new Uint8Array(n).buffer:n),!r)return e;t.resolve(e)}));return r.stream=e.algorithm.stream,t.add=function(e){var r,n,i=new Promise((function(e,t){r=e,n=t}));return i.label=e,t.push({resolve:r,reject:n,promise:i}),i},t.resolve=function(e){var r=t.shift();r.resolve.apply(r.promise,[e])},r.process=function(r){return e.operationSubType="process",e.buffer=X.toArray(r),l.continueJob(this,X.clone(e)),t.add("process")},r.finish=function(){return e.operationSubType="finish",e.buffer=[],l.continueJob(this,X.clone(e)),t.add("finish")},r.abort=function(){l.abortJob(this)},r.algorithm=e.algorithm||null,r.key=e.keyHandle||null,r}var a=[];a.add=function(e,t){a.push({keyHandle:e,keyData:t})},a.remove=function(e){for(var t=0;t<a.length;t+=1)if(a[t].keyHandle===e)return void(a=a.splice(t,1))},a.lookup=function(e){for(var t=0;t<a.length;t+=1)if(a[t].keyHandle===e)return a[t].keyData;return null};var l=function(){var t=[],i=[],o=0,a=0,s=[],l="undefined"===typeof setImmediate?setTimeout:setImmediate;function u(){s.shift()()}var c=n?"available":"unavailable";function p(){!function(e){for(var r=t.length-1;r>=0;r-=1)t[r].isWebWorker===e&&(t[r].terminate(),t.splice(r,1))}(!d);for(var e=0;e<t.length;e++)if(!t[e].busy)return t[e];return null}function m(e){for(var r=0;r<t.length;r++)if(t[r]===e)return e.terminate(),void t.splice(r,1)}function f(e){for(var r=0;r<t.length;r++)if(t[r].operation===e)return t[r];return null}function y(e,t){i.push({operation:e,data:t,id:o++})}function h(e){if(e.busy=!1,d)if(i.length>0){var r,n=i.shift();if(P(n.operation,n.data),"process"===n.data.operationSubType){for(r=0;r<i.length;r++)n.operation===i[r].operation&&P(i[r].operation,i[r].data);for(r=i.length-1;r>=0;r--)n.operation===i[r].operation&&i.splice(r,1)}}else(function(){for(var e=0,r=0;r<t.length;r++)t[r].busy||(e+=1);return e})()>2&&m(e)}function g(n){var o;if("pending"===c)throw new Error("Creating new worker while workerstatus=pending");if("ready"===c)try{(o=new Worker(r)).postMessage({prngSeed:L.getBytes(48)}),o.isWebWorker=!0}catch(s){d=!1,c="failed",o.terminate(),(o=e()).isWebWorker=!1}else(o=e()).isWebWorker=!1;return o.operation=n,o.id=a++,o.busy=!1,o.onmessage=function(e){if(!0!==e.data.initialized){var t=o.operation;e.target||(e.target={data:o.data});for(var r=0;r<i.length;r++)if(i[r].operation===o.operation){var n=i[r];return i.splice(r,1),void b(o,n.data)}e.data.hasOwnProperty("type")&&"process"===e.data.type||h(o),t.dispatchEvent(e)}},o.onerror=function(e){var t=o.operation;h(o),t.dispatchEvent(e)},function(e){t.push(e)}(o),o}function v(e,r){var n=null;if("pending"!==c)if(n=p(),d&&null===n&&t.length>=12)y(e,r);else{if(null===n&&(n=g(e)),null===n)throw y(e,r),new Error("could not create new worker");n.operation=e,n.busy=!0,r.workerid=n.id,b(n,r)}else y(e,r)}function P(e,t){var r=f(e);r?b(r,t):v(e,t)}function b(e,t){if(t.workerid=e.id,d)e.postMessage(t);else{var r=(i=t,function(){return e.postMessage(i)});n=r,s.push(n),l(u,0)}var n,i}return{runJob:v,continueJob:P,abortJob:function(e){var t=f(e);t&&m(t)},useWebWorkers:function(e){if("unavailable"!==c){if((!0!==e||"ready"!==c)&&(!1!==e||"available"!==c)){if(!1===e&&"ready"===c)return d=!1,c="available",void X.consoleLog("web workers disabled.");if("pending"!==c){c="pending";var t=new Worker(r);t.addEventListener("message",n,!1),t.addEventListener("error",n,!1),t.postMessage({prngSeed:L.getBytes(48)})}}}else X.consoleLog("web workers not available in this browser.");function n(e){var r=!(!e.data||!0!==e.data.initialized);if(t.removeEventListener("message",n,!1),t.removeEventListener("error",n,!1),t.terminate(),c=r?"ready":"failed",d=r,X.consoleLog("web worker initialization "+(r?"succeeded. Now using web workers.":"failed. running synchronously."+(e.message||""))),i.length>0){var o=i.shift();v(o.operation,o.data)}}}}}();var u=[{name:"algorithm",type:"Object",required:!0},{name:"keyHandle",type:"Object",required:!0},{name:"buffer",type:"Array",required:!1},{name:"signature",type:"Array",required:!0},{name:"format",type:"String",required:!0},{name:"keyData",type:"Object",required:!0},{name:"extractable",type:"Boolean",required:!1},{name:"usages",type:"Array",required:!1},{name:"derivedKeyType",type:"Object",required:!0},{name:"length",type:"Number",required:!1},{name:"extractable",type:"Boolean",required:!0},{name:"usages",type:"Array",required:!0},{name:"keyData",type:"Array",required:!0}],c={encrypt:[0,1,2],decrypt:[0,1,2],sign:[0,1,2],verify:[0,1,3,2],digest:[0,2],generateKey:[0,6,7],importKeyRaw:[4,12,0,10,11],importKeyJwk:[4,5,0,10,11],exportKey:[0,4,1,6,7],deriveKey:[0,1,8,6,7],deriveBits:[0,1,9],wrapKey:[1,1,0],unwrapKey:[2,0,1,6,7]};function m(e){var t=a.lookup(e);if(!t)throw new Error("key not found");return t}function y(e,r,n){var s=function(e,t){var r,n,i,o,a={operationType:e};for("importKey"!==e||"raw"!==t[0]&&"spki"!==t[0]&&"pkcs8"!==t[0]||(e="importKeyRaw"),"importKey"===e&&"jwk"===t[0]&&(e="importKeyJwk"),r=c[e],o=0;o<r.length;o+=1)if(n=u[r[o]],null!=(i=t[o])){if(i.subarray&&(i=X.toArray(i)),"ArrayBuffer"===X.getObjectType(i)&&(i=X.toArray(i)),p.getObjectType(i)!==n.type)throw new Error(n.name);"algorithm"===n.name&&(i.name=i.name.toUpperCase(),i.iv&&(i.iv=X.toArray(i.iv)),i.publicExponent&&(i.publicExponent=X.toArray(i.publicExponent)),i.salt&&(i.salt=X.toArray(i.salt)),i.additionalData&&(i.additionalData=X.toArray(i.additionalData)),i.hash&&!i.hash.name&&"String"===X.getObjectType(i.hash)&&(i.hash={name:i.hash})),a.hasOwnProperty(n.name)?a[n.name+"1"]=i:a[n.name]=i}else if(n.required)throw new Error(n.name);return a}(e,r);!function(e,r){if(!t.exists(e,r))throw new Error("unsupported algorithm")}(e,s.algorithm.name),s.keyHandle&&(s.keyData=m(s.keyHandle)),s.keyHandle1&&(s.keyData1=m(s.keyHandle1)),s.algorithm&&s.algorithm.public&&(s.additionalKeyData=m(s.algorithm.public));var d=n?i((function(e){var t,r;switch(e.type){case"keyGeneration":case"keyImport":case"keyDerive":return e.keyPair?(a.add(e.keyPair.publicKey.keyHandle,e.keyPair.publicKey.keyData),a.add(e.keyPair.privateKey.keyHandle,e.keyPair.privateKey.keyData),{publicKey:e.keyPair.publicKey.keyHandle,privateKey:e.keyPair.privateKey.keyHandle}):(a.add(e.keyHandle,e.keyData),e.keyHandle);case"keyExport":return e.keyHandle;case"keyPairGeneration":return r=e.keyPair.privateKey,t=e.keyPair.publicKey,a.add(t.keyHandle,t.keyData),a.add(r.keyHandle,r.keyData),{publicKey:t.keyHandle,privateKey:r.keyHandle};default:throw new Error("Unknown key operation")}})):o(s);return(n||s.buffer||"deriveBits"===e||"wrapKey"===e)&&l.runJob(d,s),d.stream?Promise.resolve(function(e){return{process:function(t){return e.process(t)},finish:function(){return e.finish()},abort:function(){return e.abort()}}}(d)):d.promise}var h={encrypt:function(e,t,r){return y("encrypt",arguments,0)},decrypt:function(e,t,r){return y("decrypt",arguments,0)},sign:function(e,t,r){return y("sign",arguments,0)},verify:function(e,t,r,n){return y("verify",arguments,0)},digest:function(e,t){return y("digest",arguments,0)},generateKey:function(e,t,r){return y("generateKey",arguments,1)},deriveKey:function(e,t,r,n,i){var o=this.deriveBits,a=this.importKey;return new Promise((function(s,l){var d;switch(r.name.toUpperCase()){case"AES-CBC":case"AES-GCM":d=r.length;break;case"HMAC":d=r.length||{"SHA-1":512,"SHA-224":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024}[r.hash.name.toUpperCase()];break;default:return void l(new Error("No Supported"))}o(e,t,d).then((function(e){return a("raw",e,r,n,i)})).then((function(e){s(e)})).catch((function(e){l(e)}))}))},deriveBits:function(e,t,r){return y("deriveBits",arguments,0)},importKey:function(e,t,r,n,i){return y("importKey",arguments,1)},exportKey:function(e,t){return y("exportKey",[t.algorithm,e,t],1)},wrapKey:function(e,t,r,n){var i=this.encrypt,o=this.exportKey;return new Promise((function(a,s){!1===t.extractable||r.usages.indexOf("wrapKey")<0||r.algorithm.name.toUpperCase()!==n.name?s(new Error("InvalidAccessError")):o(e,t).then((function(t){return console.log(X.toBase64(t)),i(n,r,"jwk"===e?X.stringToBytes(JSON.stringify(t,null,0)):t)})).then((function(e){a(e)})).catch((function(e){s(e)}))}))},unwrapKey:function(e,t,r,n,i,o,a){var s=this.decrypt,l=this.importKey;return new Promise((function(d,u){r.usages.indexOf("unwrapKey")<0||r.algorithm.name.toUpperCase()!==n.name?u(new Error("InvalidAccessError")):s(n,r,t).then((function(t){return l(e,"jwk"===e?JSON.parse(X.bytesToString(t)):t,i,o,a)})).then((function(e){d(e)})).catch((function(e){u(e)}))}))}};return{publicMethods:h,internalMethods:{useWebWorkers:l.useWebWorkers}}}();var $=function(){var e=p;return{wrapKey:function(t){var r=G(t.keyData1,t.keyHandle1.algorithm.name,c["SHA-1"])(),n=y.keyToJwkOld(t.keyHandle,t.keyData),i={alg:t.keyHandle1.algorithm.name.toUpperCase(),enc:"A128GCM"},o=e.toBase64(JSON.stringify(i),!0),a=L.getBytes(32),s=r.encrypt(a),l=e.toBase64(s,!0),d=L.getBytes(12),u=e.toBase64(d,!0),p=o.concat(".",l,".",u),m=O(R.aes(a));m.init(d,e.stringToBytes(p),128);var f=m.encrypt(n),h=f.slice(-16),g={recipients:[{header:o,encrypted_key:l,integrity_value:e.toBase64(h,!0)}],initialization_vector:u,ciphertext:e.toBase64(f.slice(0,f.length-h.length),!0)};return e.stringToBytes(JSON.stringify(g))},unwrapKey:function(t){var r=e.fromBase64,n=JSON.parse(String.fromCharCode.apply(null,t.buffer)),i=(e.fromBase64(n.recipients[0].header),r(n.recipients[0].encrypted_key)),o=r(n.recipients[0].integrity_value),a=r(n.initialization_vector),s=r(n.ciphertext),l=c["SHA-1"](),d=G(t.keyData,t.keyHandle.algorithm.name,l).decrypt(i),u=n.recipients[0].header.concat(".",n.recipients[0].encrypted_key,".",n.initialization_vector),p=O(R.aes(d));p.init(a,e.stringToBytes(u),128);var m=p.decrypt(s,o),f=y.jwkToKey(m,t.algorithm,["k"]);return{type:"keyImport",keyData:f.k,keyHandle:{algorithm:{name:t.algorithm.name},extractable:t.extractable||f.extractable,usages:t.usages,type:"secret"}}}}}();"undefined"!==typeof t&&(t.register("wrapKey","AES-GCM",$.wrapKey),t.register("unwrapKey","AES-CBC",$.unwrapKey));var ee,te={subtle:Z?Z.publicMethods:null,getRandomValues:function(e){var t,r=L.getBytes(e.length);for(t=0;t<e.length;t+=1)e[t]=r[t];return e},initPrng:function(e){var t=Object.prototype.toString.call(e);if("[object Array]"!==t&&"[object Uint8Array]"!==t)throw new Error("entropyData must be a Array or Uint8Array");ee&&ee.reseed(e),L.reseed(ee.read(48)),!0},toBase64:function(e,t){return p.toBase64(e,t)},fromBase64:function(e){return p.fromBase64(e)},textToBytes:function(e){return p.stringToBytes(e)},bytesToText:function(e){return p.bytesToString(e)},asn1:m,url:r,version:"1.6.6",useWebWorkers:function(e){return Z?Z.internalMethods.useWebWorkers(e):null}};ee=ee||new function(e){var t=[],r=new V,n=!1,i=!1,o=e;function a(){var a,s=["Cookie","RedirectUri","ETag","x-ms-client-antiforgery-id","x-ms-client-request-id","x-ms-client-session-id","SubscriptionPool"],u=[];for(a=0;a<48;a+=1)u[a]=Math.floor(256*Math.random());var c=o.crypto||o.msCrypto;if(c&&"function"===typeof c.getRandomValues&&e.Uint8Array){var m=new e.Uint8Array(48);c.getRandomValues(m),u=u.concat(Array.apply(null,m)),i=!0}if("undefined"!==typeof XMLHttpRequest){var f=new XMLHttpRequest;for(a=0;a<s.length;a+=1)try{var y=f.getResponseHeader(s[a]);if(y){var h=p.stringToBytes(y);u=u.concat(h)}}catch(g){}}!i&&l&&(u=u.concat(t.splice(0,t.length)),d.startCollectors()),n?r.reseed(u):r.init(u),n=!0}function s(e){for(var r=0;r<e.length;++r)t.push(e[r]);t.length>=128&&d.stopCollectors()}var l=e&&e.addEventListener||"undefined"!==typeof document&&document.attachEvent,d={startCollectors:function(){if(!this.collectorsRegistered){if(e.addEventListener)e.addEventListener("mousemove",this.MouseEventCallBack,!0),e.addEventListener("load",this.LoadTimeCallBack,!0);else{if(!document.attachEvent)throw new Error("Can't attach events for entropy collection");document.attachEvent("onmousemove",this.MouseEventCallBack),document.attachEvent("onload",this.LoadTimeCallBack)}this.collectorsRegistered=1}},stopCollectors:function(){this.collectorsRegistered&&(e.removeEventListener?(e.removeEventListener("mousemove",this.MouseEventCallBack,1),e.removeEventListener("load",this.LoadTimeCallBack,1)):e.detachEvent&&(e.detachEvent("onmousemove",this.MouseEventCallBack),e.detachEvent("onload",this.LoadTimeCallBack)),this.collectorsRegistered=0)},MouseEventCallBack:function(e){var t=(new Date).valueOf(),r=e.x||e.clientX||e.offsetX||0,n=e.y||e.clientY||e.offsetY||0;s([255&t,t>>8&255,t>>16&255,t>>24&255,255&r,r>>8&255,255&n,n>>8&255])},LoadTimeCallBack:function(){var e=(new Date).valueOf();s([255&e,e>>8&255,e>>16&255,e>>24&255])}};return{init:function(){if(a(),!i&&l)try{d.startCollectors()}catch(e){}},reseed:function(e){r.reseed(e)},read:function(e){if(!n)throw new Error("Entropy pool is not initialized.");var t=r.getBytes(e);return a(),t}}}(e),ee.init();var re=ee.read(48);return L.init(re),te}()}!function(e){e.default="default",e.black="black",e.white="white"}(Vn||(Vn={})),function(e){e.black="black",e.white="white",e.whiteOutline="white-outline"}(Ln||(Ln={})),function(e){e.book="book",e.buy="buy",e.checkout="checkout",e.donate="donate",e.order="order",e.pay="pay",e.plain="plain",e.subscribe="subscribe"}(Un||(Un={})),function(e){e.book="book",e.buy="buy",e.checkOut="check-out",e.donate="donate",e.order="order",e.pay="pay",e.plain="plain",e.subscribe="subscribe"}(jn||(jn={})),function(e){e[e.PayPal=0]="PayPal",e[e.Tokenization=1]="Tokenization"}(_n||(_n={}));var Ii=Object.freeze({__proto__:null,msrCrypto:Ei});function Si(e){var t=window.crypto||window.msrCrypto||e;c()&&(t=window.msCrypto);var r=t.subtle,n=function(e){return t.getRandomValues(e)},i={name:"RSA-OAEP",hash:{name:"SHA-256"}},o=void 0;function a(e,t,i,a,l,u){var c=n(new Uint8Array(32)),m=n(new Uint8Array(12)),f={alg:"RSA-OAEP-256",enc:"A256GCM",typ:"JOSE",kid:o.kid,uuid:d()+d()+"-"+d()+"-"+d()+"-"+d()+"-"+d()+d()+d(),iat:Math.floor(Date.now()/1e3).toString()},h=p(JSON.stringify(f)),g=p(y(h,!0));!function(e,t,n,i,o,a,l){var d=p(t,a);l?function(e,t,n,i,o,a){var l=r.importKey("raw",n.aesKeyData,{name:"AES-GCM"},!0,["encrypt"]);l.onerror=function(e){a(keyImportFailureMessage+" in IE11: "+e.target.result)},l.oncomplete=function(l){var d=l.target.result,u=r.encrypt(n.aesGcmParams,d,t);u.onerror=function(e){a(i+" Encrypt data failure in IE11: "+e.target.result)},u.oncomplete=function(t){var l=r.encrypt(n.rsaParams,e,n.aesKeyData);l.onerror=function(e){a(i+" Encrypt key failure in IE11: "+e.target.result)},l.oncomplete=function(e){s(t,e,n,o,a)}}}}(e,d,n,i,o,a):function(e,t,n,i,o,a){r.importKey("raw",n.aesKeyData,{name:"AES-GCM"},!0,["encrypt"]).then((function(l){r.encrypt(n.aesGcmParams,l,t).then((function(t){t.slice(0,t.byteLength-16),t.slice(t.byteLength-16);r.encrypt(n.rsaParams,e,n.aesKeyData).then((function(e){s(t,e,n,o,a)})).catch((function(e){a(i+" Encrypt key failure: "+e)}))})).catch((function(e){a(i+"Encrypt data failure: "+e)}))})).catch((function(e){a(i+"Encrypt data failure: "+e)}))}(e,d,n,i,o,a)}(e,t,{aesGcmParams:{name:"AES-GCM",iv:m,additionalData:g,tagLength:128},rsaParams:{name:"RSA-OAEP"},serializedHeader:h,aesKeyData:c,nonce:m,aad:g},i,a,l,u)}function s(e,t,r,n,i){var a=e.slice(0,e.byteLength-16),s=e.slice(e.byteLength-16);n({header:u(r.serializedHeader,i),key_version:o.kid,session_key:u(t,i),iv:u(r.nonce,i),payload:u(a,i),tag:u(s,i),authenticated_data:u(r.aad,i)})}function l(e){o=JSON.parse(e)}function d(){return n(new Uint16Array(1))[0].toString(16)}function u(e,t){return y(p(e,t))}function c(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.indexOf("rv:11.0"))>-1&&void 0!=window.msCrypto}function p(e,t){var r="undefined"!==typeof Uint8Array,n=Object.prototype.toString.call(e);switch(n=n.substring(8,n.length-1)){case"Array":return r?new Uint8Array(e):e;case"ArrayBuffer":case"Uint16Array":case"Uint32Array":return new Uint8Array(e);case"Uint8Array":return e;case"String":for(var i=r?new Uint8Array(e.length):new Array(e.length),o=0;o<e.length;o+=1)i[o]=e.charCodeAt(o);return i;default:t("toSupportedArray : unsupported data type "+n)}}var m="undefined"!==typeof btoa,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function y(e,t){var r,n,i,o,a,s,l,d,u="";if(t||(t=!1),(e.pop||e.subarray)&&(e=String.fromCharCode.apply(null,e)),m)u=btoa(e);else for(d=0;d<e.length;d+=3)o=(r=e.charCodeAt(d))>>2,a=(3&r)<<4|(n=e.charCodeAt(d+1))>>4,s=(15&n)<<2|(i=e.charCodeAt(d+2))>>6,l=63&i,isNaN(n)?s=l=64:isNaN(i)&&(l=64),u=u+f.charAt(o)+f.charAt(a)+f.charAt(s)+f.charAt(l);return t?u.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,""):u}return{Encrypt:function(e,t,n,s){!function(e,t,n,s){l(e.dataProtection.parameters.publicKey);var d=e.token_set||void 0,u="jwk",m="Public Jwk key import failure",f=c(),y="encrypt";if(f){var h=p(JSON.stringify(o)),g=r.importKey(u,h,i,!0,[y]);g.onerror=function(e){s(m+" in IE11: "+e.target.result)},g.oncomplete=function(e){a(e.target.result,t,d,n,s,f)}}else r.importKey(u,o,i,!0,[y]).then((function(e){a(e,t,d,n,s,f)})).catch((function(e){s(m+": "+e)}))}(e,t,(function(e){n(e)}),(function(e){s(e)}))},SetPublicKey:l,EncryptedOutput:undefined}}var Ci=Object.freeze({__proto__:null,TokenEncrypt:Si}),Di=new function(){var e=this;this.doServerTokenization=function(e,t,r,n,i){return new Promise((function(o,a){var s=An.virtualEndpoints.tokenization,l=Ct.buildUrl(An.getServiceEndpoint(s.endpoint),[t,"getToken"]);return $n.post(e,!0,l,$n.getDefaultHttpHeaders(e),'{ "data": "'+r+'" }',(function(e){o({data:e.data})}),(function(e){(e=e||{status:w.Fail}).failureObject=e.failureObject||{},e.failureObject.code=J.tokenizationFailed;var t=" ";if(Rn.isString(r))for(var n=0;n<r.length;n++){var i=r.charCodeAt(n);t+=i>=48&&i<=57?"d":"c"}else t=" n_s";e.failureObject.message=e.failureObject.message?e.failureObject.message+t:t,o({error:new ir.serverError(or.tokenizationFailed,l,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage+t])})}),n,s.operation,s.description,!1,i).catch((function(e){o({error:new ir.unexpectedError(or.tokenizationFailed,[e.message])})}))}))},this.serverTokenization=function(t,r,n,i,o){var a;return n.propertyTokenizing(r,Ct.buildUrl(An.getServiceEndpoint(An.virtualEndpoints.tokenization.endpoint),[t.token_set,"getToken"])),e.doServerTokenization(n,t.token_set,i[r],o,null===(a=null===t||void 0===t?void 0:t.dataProtection)||void 0===a?void 0:a.fetchConfig).then((function(e){return e.error||(i[r]=e.data,n.propertyTokenized(r)),{error:e.error}}))},this.doFileUpload=function(e,t,r,n,i,o){var a=r.hmacContext;return new Promise((function(r,s){var l=An.virtualEndpoints.payeeTaxProfile;return $n.post(e,!0,i,$n.getPayeeFileUploadHttpHeaders(e,a.userCredential),t,(function(e){r({data:e.filename})}),(function(e){(e=e||{status:w.Fail}).failureObject=e.failureObject||{},e.failureObject.code=J.fileUploadFailed,r({error:new ir.serverError(or.fileUploadFailure,i,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage])})}),n,l.operation,l.description,!1,o).catch((function(e){r({error:new ir.unexpectedError(or.fileUploadFailure,[e.message])})}))}))},this.composePayeeFileUploadPayload=function(e,t){var r=new FormData;return r.append("file",e[t]),r.append("payeeid",e.payee_id),r.append("taxprofileid",e.tax_profile_id),r},this.fileUpload=function(t,r,n,i,o,a,s){var l,d=e.composePayeeFileUploadPayload(i,r),u=Ct.createFromTemplate(s);return n.fileUploading(r,u),e.doFileUpload(n,d,o,a,u,null===(l=null===t||void 0===t?void 0:t.dataProtection)||void 0===l?void 0:l.fetchConfig).then((function(e){return e.error||(i[r]=e.data,n.fileUploaded(r)),{error:e.error}}))},this.msrCryptoEncryption=function(e,t,r,n){var i,o,a,s;r.propertyTokenizing(t,"");var l=e&&e.dataProtection&&e.dataProtection.parameters;if("undefined"!==typeof msrCrypto||l&&!l.encryptionLibrary)o=Nn();else{a=l&&l.encryptionLibrary||void 0;var d=l&&l.encryptionLibraryUrl||Ct.buildUrl(An.getServiceEndpoint(An.virtualEndpoints.msrCryptoJS.endpoint),[a]);o=$n.loadScript(d)}if("undefined"!==typeof encryption)i=Nn();else{s=l&&l.encryptionScript||void 0;var u=l&&l.encryptionScriptUrl||Ct.buildUrl(An.getServiceEndpoint(An.virtualEndpoints.encryptJS.endpoint),[s]);i=$n.loadScript(u)}return o.then((function(){return i.then((function(){return"undefined"===typeof encryption?{error:new ir.unexpectedError(or.msrEncryptionFailed,["Fail to initialize "+s+" instance"])}:new Promise((function(i,o){encryption.Encrypt(e,n[t],(function(e){n[t]=e,r.propertyTokenized(t),i({})}),(function(e){o(e)}))})).catch((function(e){var t="Encryption failure: "+JSON.stringify(e);return{error:new ir.serverError(or.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+s+" script file: "+JSON.stringify(e);return{error:new ir.serverError(or.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+a+" script file: "+JSON.stringify(e);return{error:new ir.serverError(or.msrEncryptionFailed,null,null,null,t,null,[t])}}))},this.doTokenizeMsrCryptoEncryption=function(t,r,n,i,o,a){var s,l,d,u=Nn(),c=Nn(),p=t&&t.dataProtection&&t.dataProtection.parameters;if(!a)if(p&&p.encryptionFunction)e.localMsrCryptoInstance||(e.localMsrCryptoInstance=Ei(window)),e.localEncryptionInstance||(e.localEncryptionInstance=Si(e.localMsrCryptoInstance)),d=e.localEncryptionInstance;else{if("undefined"!==typeof msrCrypto||p&&!p.encryptionLibrary)c=Nn();else{s=p&&p.encryptionLibrary||void 0;var m=p&&p.encryptionLibraryUrl||Ct.buildUrl(An.getServiceEndpoint(An.virtualEndpoints.msrCryptoJS.endpoint),[s]);c=$n.loadScript(m)}if("undefined"!==typeof encryption)u=Nn();else{l=p&&p.encryptionScript||void 0;var f=p&&p.encryptionScriptUrl||Ct.buildUrl(An.getServiceEndpoint(An.virtualEndpoints.encryptJS.endpoint),[l]);u=$n.loadScript(f).then((function(){if("undefined"===typeof encryption)return{error:new ir.unexpectedError(or.msrEncryptionFailed,["Fail to initialize "+l+" instance"])};d=encryption}))}}return c.then((function(){return u.then((function(){return new Promise((function(e,s){var l,u=An.virtualEndpoints.tokenization,c=Ct.buildUrl(An.getServiceEndpoint(u.endpoint),[n,"getToken"]);return $n.post(r,!0,c,$n.getDefaultHttpHeaders(r),'{ "data": "'+i+'" }',(function(t){e({data:t.data})}),(function(t){(t=t||{status:w.Fail}).failureObject=t.failureObject||{},t.failureObject.code=J.tokenizationFailed;var r=" ";if(Rn.isString(i))for(var n=0;n<i.length;n++){var o=i.charCodeAt(n);r+=o>=48&&o<=57?"d":"c"}else r=" n_s";t.failureObject.message=t.failureObject.message?t.failureObject.message+r:r,e({error:new ir.serverError(or.tokenizationFailed,c,t.failureObject,t.httpStatus,t.httpStatusText,void 0,[t.errorMessage+r])})}),o,u.operation,u.description,!1,null===(l=t.dataProtection)||void 0===l?void 0:l.fetchConfig,(function(){return new Promise((function(e,r){a?a.encrypt(t,t.token_set,i).then((function(t){var r={"content-type":"application/json","x-ms-requestor":"Microsoft",traceparent:xn.guid()};e({success:!0,headers:r,payload:"string"!==typeof t?JSON.stringify(t):t})})).catch((function(e){r(e)})):d.Encrypt(t,i,(function(t){var r={"content-type":"application/json","x-ms-requestor":"Microsoft",traceparent:xn.guid()};e({success:!0,headers:r,payload:JSON.stringify(t)})}),(function(e){r(e)}))}))})).catch((function(t){e({error:new ir.unexpectedError(or.tokenizationFailed,[t.message])})}))})).catch((function(e){var t="Encryption and tokenize failure: "+JSON.stringify(e);return{error:new ir.serverError(or.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+l+" script file: "+JSON.stringify(e);return{error:new ir.serverError(or.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+s+" script file: "+JSON.stringify(e);return{error:new ir.serverError(or.msrEncryptionFailed,null,null,null,t,null,[t])}}))},this.tokenizeMsrCryptoEncryption=function(t,r,n,i,o,a){n.propertyTokenizing(r,"");var s=i[r];return e.doTokenizeMsrCryptoEncryption(t,n,t.token_set,s,o,a).then((function(e){return e.error||(i[r]=e.data,n.propertyTokenized(r)),{error:e.error}}))},this.payPalHECEncryption=function(e,t,r,n,i){var o;if(r.propertyTokenizing(t,""),"undefined"!==typeof PayPalCrypto)o=Nn();else{var a=e&&e.dataProtection&&e.dataProtection.parameters,s=a&&a.encryptionScriptUrl;if(!s){var l=a&&a.encryptionScript||"paypalEncrypt.js";s=Ct.buildUrl(An.getServiceEndpoint(An.virtualEndpoints.paypalEncryptJS.endpoint),[l])}o=$n.loadScript(s)}var d=e;return o.then((function(){return"undefined"===typeof PayPalCrypto?{error:new ir.unexpectedError(or.hmacError,["Fail to initialize PayPal encryption instance"])}:new Promise((function(e,o){PayPalCrypto.Encrypt(d,i,n[t],(function(i){n[t]=btoa(String.fromCharCode.apply(null,i)),r.propertyTokenized(t),e({})}))}))})).catch((function(e){var t="Fail to download paypal encryption script file\n "+JSON.stringify(e);return{error:new ir.serverError(or.tokenizationFailed,null,null,null,t,null,[t])}}))},this.customEncryption=function(t,r,n,i,o,a,s){n.propertyTokenizing(r,"");var l=t;return new Promise((function(t,s){return b(e,void 0,void 0,(function(){var e;return E(this,(function(s){switch(s.label){case 0:return[4,a.encrypt(l,o,i[r])];case 1:return e=s.sent(),i[r]=e,n.propertyTokenized(r),t({}),[2]}}))}))})).catch((function(e){var t="".concat(s,"\n").concat(JSON.stringify(e));return{error:new ir.serverError(or.tokenizationFailed,null,null,null,t,null,[t])}}))},this.createHmacSignatureInternal=function(t,r,n,i,o,a,s,l){return t.init().then((function(d){if(d.error)return{error:d.error};var u=t.getRawKey(),c="Pan:"+o.pan+"|HMACKey:"+u+"|UserCredential:"+o.userCredential,p={keyToken:null,data:null},m=s&&s.dataProtection||{},f=m.protection_type,y=m.fetchConfig;return(f&&"HMACSIGNATUREMSRENCRYPT"===f.toUpperCase()?e.doTokenizeMsrCryptoEncryption(s,r,He.token,u,a,l):e.doServerTokenization(r,He.token,u,a,y)).then((function(e){return e.error?e:(p.keyToken=e.data,t.sign(c))})).then((function(e){return e.error||(p.data=e.data,i[He.userCredential]=o.userCredential,i[n]={algorithm:He.algorithm,keyToken:p.keyToken,data:p.data}),{error:e.error}}))}))},this.getHmacSignatureFromSecurePX=function(e,t,r,n){var i=r;return new Promise((function(r,o){i.createHmacSignature("Pan",n).then((function(i){t[He.userCredential]=n,t[e]=i.value,r({})})).catch((function(e){r({error:new ir.serverError(or.hmacError,null,null,null,e.message,null,[e.message])})}))}))},this.createHmacSignature=function(t,r,n,i,o,a,s){var l=i.hmacContext;return vi.isSupported()&&l&&l.userCredential?l.panElement&&l.panElement.isSecureProperty()?e.getHmacSignatureFromSecurePX(r,n,l.panElement,l.userCredential):l.pan?e.createHmacSignatureInternal(new bi,t,r,n,l,o,a,s):(n[r]=null,Nn({})):(n[r]=null,Nn({}))},this.tokenizeUserInputDataInternal=function(t,r,n,i,o,a,s){var l=r.data_description,d=o||r.clientContext,u=[];for(var c in l){var p=l[c];if(Ot(p)){var m=p&&p.length&&p[0];if(m){var f=e.tokenizeUserInputDataInternal(t,m,n[c],i,d,a,s);u=I(I([],u,!0),f,!0)}}else{if(p.displayOnly||i===ct.update&&!p.is_updatable)continue;if(p.token_set&&!p.token_set.startsWith(We.tokenizationValuePrefix)||p.dataProtection)if(n.hasOwnProperty(c)){var y=p.dataProtection&&p.dataProtection.protection_type&&Rn.isString(p.dataProtection.protection_type)&&p.dataProtection.protection_type.toUpperCase(),h=p.token_set&&Rn.isString(p.token_set)&&p.token_set.toUpperCase();if("TOKENIZEMSRENCRYPT"===y)u.push(e.tokenizeMsrCryptoEncryption(p,c,t,n,i,null===s||void 0===s?void 0:s[_n.Tokenization]));else if("HMACSIGNATURE"===y)u.push(e.createHmacSignature(t,c,n,a,i,p));else if("HMACSIGNATUREMSRENCRYPT"===y)u.push(e.createHmacSignature(t,c,n,a,i,p,null===s||void 0===s?void 0:s[_n.Tokenization]));else if("MSRENCRYPT"===y)u.push(e.msrCryptoEncryption(p,c,t,n));else if("PAYPALENCRYPTION"===h)s&&s[_n.PayPal]?u.push(e.customEncryption(p,c,t,n,d,s[_n.PayPal],"HEC Encryption failed.")):u.push(e.payPalHECEncryption(p,c,t,n,d));else if("FILEUPLOAD"===h){var g=a.fileUploadUrls[c];u.push(e.fileUpload(p,c,t,n,a,i,g))}else u.push(e.serverTokenization(p,c,t,n,i))}else p.is_optional||u.push(Nn({error:new ir.unexpectedError(or.tokenizationError,["DataDescription contains a required field '"+c+"' which is missing in the userInputData passed in."])}))}}return u},this.getFileUploadUrlsInDisplayDescription=function(t,r){if(t&&(xt(t)&&(r[t.propertyName]=null===t||void 0===t?void 0:t.uploadUrl),wt(t)&&t.members))for(var n=0;n<t.members.length;n++)e.getFileUploadUrlsInDisplayDescription(t.members[n],r)},this.getFileUploadUrlsInPidlDoc=function(t){var r={};if(t&&t.displayDescription&&t.displayDescription.length)for(var n=0;n<t.displayDescription.length;n++){var i=t.displayDescription[n];e.getFileUploadUrlsInDisplayDescription(i,r)}return r},this.tokenizeUserInputData=function(t,r,n,i,o,a,s){void 0===s&&(s=null);var l={hmacContext:{userCredential:o,pan:n&&n.details&&n.details.accountToken,panElement:s&&s.getPropertyModelElement("accountToken")}};l.fileUploadUrls=e.getFileUploadUrlsInPidlDoc(r);var d=e.tokenizeUserInputDataInternal(t,r,n,i,null,l,a);return fi.aggregateCommerceResults(d,(function(e){return e.code===or.tokenizationFailed.code?e:new ir.unexpectedError(or.tokenizationFailed,[e.message])}))}},ki=function(){function e(e){var t=this;this.operationType=null,this.pidlDocManager=null,this.operationOptions=null,this.modelData=null,this.showMaskedValues=!1,this.secureFieldOriginOverride=null,this.computedStyles={style:{}},this.secureFieldResolved=!1,this.urls=null,this.userContext=null,this.displaySettings=null,this.stateManager=null,this.view=null,this.eventHub=null,this.hasPidlResolved=!1,this.postMessageTimeoutInMs=200,this.maxRetryPostMessage=5,this.pageIndex=0,this.validator=null,this.currentlyRenderedPidl=null,this.callbacks=null,this.transformers=null,this.localDataSourceProviders=null,this.serverErrorRetries={},this.suspendedNextAction=null,this.orchestratorId=-1,this.inputDataCache="",this.elements=[],this.resources=null,this.clientSettings=null,this.pidlInstanceContexts={},this.getClientSetting=function(e){if(t.clientSettings&&t.clientSettings[e])return t.clientSettings[e]},this.setOrchestratorId=function(e){t.orchestratorId=e},this.getSubmitButton=function(){var e=t.getCurrentPage().children,r=mr.findElement(e,(function(e){if(cn(e)&&e.isSubmitGroup)return!0}));if(!r&&!t.callbacks.submit)return t.eventHub.failure(new ir.unexpectedError(or.missingSubmitActionInPidlDoc)),null;if(r){var n=mr.findElement([r],(function(e){for(var t=!1,r=an(e)&&e.pidlAction;!t&&r;)t=t||"submit"===r.type||r.type===j.successWithSelectedPidlAction||r.type===j.successWithPidlPayload||r.type===j.success||r.type===j.propertyBindingAction||r.type===j.mergeData,r=r.nextAction;return t}));return an(n)&&n}},this.setClientSettings=function(e){var r=e&&e.getResolvedOrFirstPidlDoc();r&&r.clientSettings&&(t.clientSettings=r.clientSettings)},this.getDataSources=function(e,r,n){var i=[];return(n=n||cr.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc()))&&n.length&&n.forEach((function(n){for(var o in n)t.modelData.getDataSource(o)||i.push(t.getResourceData(o,n[o],e,r))})),Promise.all(i)},this.populateModelInternal=function(e){t.resources=new ti(t.pidlDocManager),t.setClientSettings(t.pidlDocManager);var r=pr.createModelElements(t.pidlDocManager,e);return pr.isErrorObject(r)?r.error:(r.warnings&&r.warnings.forEach((function(e){t.eventHub.error(e)})),t.elements=r.elements,t.pidlInstanceContexts=t.pidlDocManager.getPidlInstanceContexts(),t.updateSubmitGroupVisibility(t.elements,t.displaySettings.submitButtonBlock.show),t.setupSecureFields(),null)},this.getGlobalPreexistingData=function(){if(t.elements&&t.orchestratorId>=0){var e={};return mr.propertiesVisitorProcessingDataProperty(t.elements,(function(e,r){if(e.usePreExistingValue){var n=e.getPropertyName(),i=xn.getGlobalPropertyValue(t.orchestratorId,n);void 0!==i&&(r[n]=i)}}),e),e}},this.populateModel=function(e,r,n,i,o){var a=t.populateModelInternal(e);if(a)return t.eventHub.pageRendering(void 0),t.eventHub.failure(a),Bn(a);t.eventHub.pageRendering(mr.getDefaultSuccessPidlPayload(t.elements,t.eventHub)),t.modelData.populate(t.elements),i&&t.modelData.retrieveFromCache(i,o);var s=[];(r=r?v(v({},r),t.getGlobalPreexistingData()):t.getGlobalPreexistingData())&&(n?s.push(t.transformResourceInstance(t.elements,r).then((function(){t.modelData.setInputInstance(t.elements,r),mr.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}))):t.modelData.setPrefillData(t,r,t.resources.constants,t.eventHub)),t.modelData.setPrefillDataInPartnerDataSource(r);var l=t.pidlDocManager.getPidlPayload();if(l){for(var d in l)d!==ie.pidlInfo&&t.modelData.setDataSource(d,l[d]);mr.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}else s.push(t.getDataSources(e,{modelData:t.modelData,model:t}).then((function(){mr.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)})));return Promise.all(s).then((function(){t.eventHub.modelUpdated(!0,!1)}))},this.populateModelOnInternalCallback=function(e){var r=t.populateModelInternal(e);if(r)return t.eventHub.failure(r),r;t.modelData.updateModelElements(t.elements),mr.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub),t.setupSecureFields(),t.eventHub.modelUpdated(!1)},this.updateModelElementsOnInternalCallback=function(e,r){t.modelData.updateModelElements(t.elements);var n={modelData:t.modelData,resultData:{propertyUpdates:[]}};mr.updateModelElements(t.elements,n,t.eventHub);var i=[];if(n.resultData.propertyUpdates.length>0)for(var o=function(n,o){i.push(t.updatePropertyValue(n,o,e,r).then((function(){t.eventHub.propertyConditionallyUpdated(n.getPropertyName(),o)})))},a=0,s=n.resultData.propertyUpdates;a<s.length;a++){var l=s[a];o(l.propertyElement,l.propertyValue)}return Promise.all(i).then((function(){if(n.resultData.propertyUpdates.length>0){var e={modelData:t.modelData,resultData:{propertyUpdates:[]}};mr.updateModelElements(t.elements,e,t.eventHub)}t.eventHub.modelUpdated(!1)}))},this.setupSecureFields=function(){var e=t.getCurrentPage();t.setupSecureFieldsRecursive(e)},this.setupSecureFieldsRecursive=function(e){if(e){var r=e.children;r&&r.forEach((function(e){if(null===e||void 0===e?void 0:e.isSecureProperty()){var r=e;r&&(r.validationPromise=function(){return t.postSecureFieldMessage(r.frameName,Ke.validate,"")},r.submitPromise=function(e){return t.postSecureFieldMessage(r.frameName,Ke.prepareForSubmit,{tokenSet:e})},r.createHmacSignature=function(e,n){return t.postSecureFieldMessage(r.frameName,Ke.createHmacSignature,{tokenSet:e,userCredentials:n})},r.setFocus=function(){return t.postGuaranteedSecureFieldMessage(r.frameName,Ke.applyFocus,"")})}else(null===e||void 0===e?void 0:e.type)===M.group&&t.setupSecureFieldsRecursive(e)}))}},this.privateEventHandler=function(e,r){switch(e){case G.success:r&&r.operationType&&(r.operationType===ct.add||r.operationType===ct.update)&&t.pidlDocManager.clearCurrentPIDLResource();break;case G.failure:case G.gohome:t.clearAll()}},this.handleSuccess=function(e,r){t.pidlDocManager.clearCache(),e&&cr.isPrimaryResource(t.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.modelData.setPrimaryResourceResponse(e,r);var n=e&&e.clientAction;if(n)return t.handleClientAction(n,e);var i=t.pidlDocManager.getNextPidlRef()||{href:null},o=i.href,a=i.fetchConfig;if(!o)return t.eventHub.success(t.createSuccessEventPayload()),Nn();var s=Ct.getRestMethodUrl(o,t.userContext,null,{modelData:t.modelData});t.pidlDocManager.downloadPidlDoc(t.eventHub,s,$n.getHttpHeaders(t.eventHub,t.userContext,null,o,{modelData:t.modelData}),void 0,void 0,a).then((function(e){return e&&e.type?t.handleClientAction(e):t.populate()}),(function(e){return t.eventHub.failure(xn.createServerError(or.pidlDocDownloadFailed,s.url,e,[e.errorMessage])),Bn(e)}))},this.createSuccessEventPayload=function(){var e=t.modelData.getResourceResponse(),r={id:t.modelData.getPrimaryResourceResponseId(),operationType:t.operationType,response:e&&e.primary};return e&&e.secondary&&e.secondary.length&&(r.secondaryResponses=e.secondary),r},this.handleServerError=function(e,r,n){var i=e.targettedInnerErrors,o=void 0===i?[]:i,a=e.clientAction,s=Nn();return a&&(s=t.doErrorNextClientAction(new ir.serverError(or.formSubmitFailed,r,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]),e.clientAction)),o.length?s.then((function(){var r=[],i="";o.forEach((function(e){e.message===ve.empty&&(e.message="");var o=Rn.isString(e.target)?e.target.split(","):[];o=cr.translateErrorTargetsToDisplayProperties(o,n);var a=mr.getParentIfSame(t.elements,o),s=a&&a.children&&a.children.length===o.length&&a.layoutOrientation===vt.inline?a.displayId:null;xn.createPropertyErrors(o,s,mr.findFirstMatchingProperty(t.elements,o),e,r),i||o.length||(i=e.message)}));var a=e.innerError,s=a&&a.message!==ve.empty?e.innerError.message:i;return t.clearElementEditStates(),t.handleRetryableError(new ir.formValidationFailedError(or.formSubmissionFailedBadUserInput,s,r,[s]),!0)})):s.then((function(){return Bn(new ir.serverError(or.formSubmitFailed,r,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]))}))},this.handleRetryableError=function(e,r){var n=Nn(),i=e.errors;if(i&&i.length){var o=r?-1:t.pageIndex;e.errors.forEach((function(e){var r=e,i=t.getPropertyPageIndex(r.propertyName);o=-1===o||i>=0&&i<o?i:o;var a=t.getPropertyModelElement(r.propertyName);if(a&&a.onValidationFailed){var s=[];for(var l in a.onValidationFailed){var d=t.getPropertyModelElement(l);if(d){var u=a.onValidationFailed[l],c=u;Rn.isString(u)&&(c=xn.getConditionalFieldValue(u,{modelData:t.modelData},a)),s.push(t.updatePropertyValue(d,c,ge.editing,!1))}}n=Promise.all(s).then((function(){return Nn()}))}})),o>=0&&(o<t.pageIndex||r)&&(n=n.then((function(){return t.moveToPageIndex(o)})))}return n.then((function(){return t.eventHub.error(e),{error:e}}))},this.clearFlow=function(){var e=t.modelData.cacheFlow();return t.modelData.clearFlow(),t.elements=[],t.resources={},t.clientSettings=null,t.pageIndex=0,t.pidlDocManager.reset(),t.showMaskedValues=!1,t.currentlyRenderedPidl=null,t.serverErrorRetries={},e},this.clearElementEditStates=function(){t.elements.forEach((function(e){var r=t.modelData.getModelDataProperties([e]);for(var n in r)t.validator.clearElementEditState(r[n])}))},this.handleRestartFlow=function(){var e=t.pageIndex,r=t.getCurrentPage()||{};return t.clearFlow(),t.pidlDocManager.setToLastDownloadedPidlDoc(t.eventHub),t.populate(null,!0,e,r)},this.handleRenderPidlClientAction=function(e,r,n){if(r)for(var i in r)r.hasOwnProperty(i)&&"object"===typeof r[i]&&"details"!==i&&delete r[i];var o=t.pageIndex,a=t.getCurrentPage(),s=t.clearFlow(),l=Nn();if(Ot(e.context))t.pidlDocManager.setPidlDoc(t.eventHub,e.context);else if(Lt(e.context)){var d=e.context.resourceActionContext,u=xn.getPidlOperationType(d.action);t.pidlDocManager.setOperationInfo({operationType:u}),l=t.downloadPidlDocument(Ct.getPidlDocUrl(t.userContext,u,d.pidlDocInfo),d.pidlDocInfo)}return l.then((function(){return t.populate(r,n,o,a,e.pidlRetainUserInput?s:void 0,Rn.isString(e.pidlUserInputToClear)?e.pidlUserInputToClear.split(","):e.pidlUserInputToClear).then((function(){if(e.pidlError){var r=t.pidlDocManager.getResolvedOrFirstPidlDoc(),n=xn.parseServerError(void 0,void 0,r&&r.strings&&r.strings.serverErrorCodes,{status:w.Error,failureObject:e.pidlError},t.serverErrorRetries);return t.handleServerError(n,void 0,r).then((function(){return Nn()}))}}))}))},this.handleRenderPidlPageClientAction=function(e,r,n){if(r)for(var i in r)r.hasOwnProperty(i)&&"object"===typeof r[i]&&"details"!==i&&delete r[i];if(e.context&&Ot(e.context)&&e.context.length>0){var o=e.context[0],a=pr.createModelElementsFromDisplayDescriptions(o.displayDescription,t.operationType,null,null,o,t.pidlDocManager).elements;if(t.updateSubmitGroupVisibility(a,t.displaySettings.submitButtonBlock.show),a&&a.length>0)return t.modelData.updateModelElements(a),t.elements.splice(t.pageIndex+1,0,a[0]),t.moveNextPage().then((function(){return t.eventHub.renderedPidlPage(),Nn()}))}},this.updateSubmitGroupVisibility=function(e,t){for(var r=0,n=mr.findAllElements(e,(function(e){return cn(e)&&e.isSubmitGroup}));r<n.length;r++){n[r].isHidden=!t}},this.handleRenderModalClientAction=function(e,r,n){if(r)for(var i in r)r.hasOwnProperty(i)&&"object"===typeof r[i]&&"details"!==i&&delete r[i];if(e.context&&Ot(e.context)&&e.context.length>0){var o=e.context[0],a=pr.createModelElementsFromDisplayDescriptions(o.displayDescription,t.operationType,null,null,o,t.pidlDocManager).elements;if(t.updateSubmitGroupVisibility(a,t.displaySettings.submitButtonBlock.show),a&&a.length>0){t.modelData.updateModelElements(a);var s=t.getCurrentPage();if(s&&s.children&&s.children.length>0){var l=s.children[s.children.length-1];cn(l)&&l.isModalGroup&&s.children.pop()}s.children=I(I([],s.children,!0),a[0].children,!0),t.eventHub.modelUpdated(!1)}}},this.setViewHandler=function(e){t.view=e},this.getLinkActionUrl=function(e,r,n){void 0===n&&(n=null);var i,o=e,a=t.urls,s=a.success,l=a.failure;if(o&&o.noCallbackParams){if(o&&o.baseUrl&&(i=Ct.createFromTemplate(o.baseUrl)),i)return i;r&&t.eventHub.failure(new ir.unexpectedError(or.noRedirectUrlToNavigate))}else if(s&&l){var d=s,u=l;if(o&&o.baseUrl)i=Ct.createFromTemplate(o.baseUrl),d=Ct.addQueryStringParameters(d,o.successParams),u=Ct.addQueryStringParameters(u,o.failureParams);else if(Rn.isString(e)){i=Ct.createFromTemplate(e);var c=t.modelData.getPrimaryResourceResponseId();c&&(d=Ct.addQueryParameter(d,"id",c),d=jt.additionalRedirectParams(d,n))}if(i)return i+="?ru="+(d=encodeURIComponent(d))+"&rx="+(u=encodeURIComponent(u));r&&t.eventHub.failure(new ir.unexpectedError(or.noRedirectUrlToNavigate))}else if(r){var p=s?"urls.failure":"urls.success";t.eventHub.failure(new ir.inputParameterValidationFailedError(or.inputParameterMissing,p,[p]))}},this.handleExpressCheckoutButtonIframeLoaded=function(e,r,n){var i,o,a,s=cr.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc()),l=At(null===s||void 0===s?void 0:s[0].walletConfig)?null===(o=null===(i=s[0].walletConfig)||void 0===i?void 0:i.members)||void 0===o?void 0:o[0]:{},d=An.getEnv();r&&l&&(null===(a=null===window||void 0===window?void 0:window.frames)||void 0===a?void 0:a[e])&&window.frames[e].postMessage({messageType:qe.setup,config:l,expressCheckoutData:r,useTestEnv:"int"===d,env:d},n)},this.handleSecureFieldMessage=function(e,r){if(e&&e.data&&e.data.source&&e.data.source===We.secureFieldMessageSource&&e.data.event){var n,i,o;switch(t.eventHub.secureFieldEventReceived(e.data.field,e.data.event,e.data.correlationId),e.data.event){case Ge.loaded:t.loadedSecureFields.includes(e.data.field)||t.loadedSecureFields.push(e.data.field),n=t.modelData.getModelDataProperty(e.data.field);var a=t.getSecurePropertyInitializationPayload(n);t.guaranteedPostMessage(e.data.field,t.buildMessage(Ke.init,a),0),t.hasPidlResolved?t.guaranteedPostMessage(e.data.field,t.buildMessage(Ke.hydrateState,""),0):t.guaranteedPostMessage(e.data.field,t.buildMessage(Ke.clearState,""),0);var s=n.modelElement.getResolvedLogo(),l="";s&&"accountToken"===e.data.field&&t.hasPidlResolved&&(l="background-image: url(".concat(s,"); background-repeat: no-repeat; background-position: right center; ")),l&&t.guaranteedPostMessage(e.data.field,t.buildMessage(Ke.applyCss,l),0);var d=n.modelElement.placeHolderText();d&&t.guaranteedPostMessage(e.data.field,t.buildMessage(Ke.applyPlaceholder,d),0);break;case Ge.initCompleted:t.resolveSecureFieldInitCompletedPromise(e.data.field);break;case Ge.keyPropertyResolved:if(t.hasPidlResolved=!0,t.secureFieldResolved=!0,n=t.modelData.getModelDataProperty(e.data.field),i=t.updatePropertyValue(n.modelElement,e.data.payload,ge.finished,!1).then((function(){var r=t.getSecurePropertyInitializationPayload(n);t.guaranteedPostMessage(e.data.field,t.buildMessage(Ke.init,r),0);var i=n.modelElement.getResolvedLogo(),o="";i&&(o="background-image: url(".concat(i,"); background-repeat: no-repeat; background-position: right center; ")),o&&t.guaranteedPostMessage(e.data.field,t.buildMessage(Ke.applyCss,o),0),t.updatePropertyValue(n.modelElement,e.data.payload,ge.finished,!1).catch((function(e){}));var a=n.modelElement.placeHolderText();a&&t.guaranteedPostMessage(e.data.field,t.buildMessage(Ke.applyPlaceholder,a),0);var s=t.modelData.getModelDataProperty("cvvToken");return r=t.getSecurePropertyInitializationPayload(s),t.guaranteedPostMessage("cvvToken",t.buildMessage(Ke.init,r),0),t.updatePropertyValue(s.modelElement,"",ge.finished,!1)})).catch((function(e){t.secureFieldResolved=!1})),r)return i;break;case Ge.valueUpdated:var u=e.data.payload.editState,c=e.data.payload.operationType;if((n=t.modelData.getModelDataProperty(e.data.field)).editState=u,i=t.updatePropertyValue(n.modelElement,"",c,!1),r)return i;break;case Ge.readyForSubmit:if(o=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId}))){if(e.data.payload.error)return void t.eventHub.failure(new ir.unexpectedError(or.tokenizationFailed,[e.data.payload.error]));var p={value:e.data.payload.value,propertyName:e.data.field};o.resolve(p)}else t.eventHub.failure(new ir.unexpectedError(or.secureFieldPromiseNotFound));break;case Ge.validationCompleted:(o=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId})))?o.resolve(e.data.payload):t.eventHub.failure(new ir.unexpectedError(or.secureFieldPromiseNotFound));break;case Ge.hmacSignatureCreated:if(o=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId}))){if(e.data.payload.error)return void t.eventHub.failure(new ir.unexpectedError(or.hmacError,[e.data.payload.error]));p={value:e.data.payload.value,propertyName:e.data.field};o.resolve(p)}else t.eventHub.failure(new ir.unexpectedError(or.secureFieldPromiseNotFound));break;default:var m=new ir.unexpectedError(or.unmatchedSecureFieldEvent,[e.data.event]);t.eventHub.failure(m)}}else{var f=new ir.unexpectedError(or.unexpectedSecureFieldMessage);t.eventHub.failure(f)}},this.handleChallengeiFrameMessage=function(e,r){switch(e.data){case Ze.challengeiFrameLoaded:case Ze.challengeCompleted:t.eventHub.challengeMessageReceived(e.data);break;default:var n=new ir.unexpectedError(or.unexpectedChallengeiFrameMessage);t.eventHub.failure(n)}},this.handleClientAction=function(e,r,n){var i,o=e.type,a=e.nextAction;return t.eventHub.clientActionInvoked(null===e||void 0===e?void 0:e.type,{originator:n}),new Promise((function(a,s){switch(o){case ft.None:t.eventHub.success(t.createSuccessEventPayload()),a();break;case ft.UpdatePropertyValue:if(e.context){var l=e.context,d=l.propertyName,u=l.propertyValue;(P=t.getPropertyModelElement(d))&&t.updatePropertyValue(P,u,ge.editing,!1).then((function(){a()})).catch((function(){return s()}))}else a();break;case ft.Redirect:var c=t.getLinkActionUrl(e.context,!0,r);if(c){var p=t.pageIndex,m=t.getCurrentPage()||{};e.redirectPidl?(t.eventHub.navigate("",c,!0,e.context,null),t.clearFlow(),t.pidlDocManager.setPidlDoc(t.eventHub,e.redirectPidl),t.populate(r,!0,p,m).then((function(){a()})).catch((function(){return s()}))):(t.eventHub.navigate("",c,!0,e.context,null)||(t.eventHub.redirecting(c),dr.getRedirectionService().redirect(c)),t.clearFlow(),a())}break;case ft.Pidl:t.handleRenderPidlClientAction(e,r,!0).then((function(){a()}),(function(){return s()}));break;case ft.ReturnContext:e.context?(t.eventHub.success(e.context),a()):(i=new ir.unexpectedError(or.invalidReturnContextPidl),t.eventHub.failure(i),s(i));break;case ft.GoHome:t.eventHub.gohome(),a();break;case ft.Failure:var f=xn.createServerErrorFromIPxServiceError(n===S.iFrameMessageHandler?or.iFrameReturnedFailure:or.failureClientActionReturned,e.context);t.eventHub.failure(f),a();break;case ft.PidlModal:t.handleRenderModalClientAction(e,r,!0),a();break;case ft.PidlPage:t.handleRenderPidlPageClientAction(e,r,!0).then((function(){a()}),(function(){return s()}));break;case ft.MergeData:if(e.context&&e.context.payload){var y=e.context,h=y.payload;if(y.explicit){var g=[];for(var v in h){var P;(P=t.getPropertyModelElement(v))&&g.push(t.updatePropertyValue(P,h[v],ge.editing,!1))}Promise.all(g).then((function(){a()})).catch((function(){return s()}))}else t.modelData.updateUserData(h),t.eventHub.modelUpdated(!1,!0),a();t.updateInputDataCache(h)}break;case ft.RestAction:e.context&&t.invokeRestMethod(e.context).then((function(){a()}),(function(){return s()}));break;default:i=new ir.unexpectedError(or.unknownClientActionType,[e.type]),t.eventHub.failure(i),s(i)}})).then((function(){a&&t.handleClientAction(a).catch((function(){}))}))},this.doErrorNextClientAction=function(e,r){switch(r.type){case ft.None:return Nn();case ft.UpdatePropertyValue:if(r.context){var n=r.context,i=n.propertyName,o=n.propertyValue,a=n.terminalError,s=t.getPropertyModelElement(i);if(s)return t.updatePropertyValue(s,o,ge.editing,!1).then((function(){return a?Bn(e):Nn()}))}return Nn();case ft.Pidl:return t.handleRenderPidlClientAction(r,null,!1).then((function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated()}));default:return Bn(e)}},this.readUserInputData=function(e){void 0===e&&(e=!1);var r=t.view.getPageElementValues();for(var n in r){var i=t.getPropertyModelElement(n),o=r[n];mn(i)&&(!t.showMaskedValues||!i.maskDisplay)&&i.displayTransformations&&i.displayTransformations.forModel&&Rn.isString(o)&&(r[n]=xn.applyDisplayTransformation(i.displayTransformations.forModel,o)||r[n])}var a=e?null:function(e){t.eventHub.conflictingInputValues(e)};t.modelData.mergeUserData(t,r,a)},this.resolveKeyProperty=function(e){for(var r in e){var n=e[r];if(n&&Dn(n.modelElement)){var i=n.modelElement,o=i.isKeyProperty&&!i.hidden()&&n.getValue();if(o)return t.updateResolvedPidlDoc(o,i,ge.finished)}}return Nn(!0)},this.validatePage=function(e){var r=t.modelData.getModelDataProperties([t.getCurrentPage()]);return(e===Z.all&&t.resolveKeyProperty(r)||Nn()).then((function(){return r=t.modelData.getModelDataProperties([t.getCurrentPage()]),t.validator.validatePage(r,e,t.operationType)}))},this.getClientDataProperties=function(){var e={sessionId:xn.guid()};if(t.operationOptions){var r=t.operationOptions,n=r.sessionId,i=r.riskData;n&&(e.sessionId=n),i&&i.greenId&&(e.greenId=i.greenId)}return e},this.getInputDataFromResponse=function(e,t,r){for(var n in t){var i=t[n];if(i.match&&i.match(new RegExp("^{(.)*}$"))){var o=i.substring(1,i.length-1);if(!r||!r[o])return new ir.unexpectedError(or.expectedPayloadValueNotPresentInServerResponse);e[n]=r[o]}else e[n]=i}return null},this.invokeSubmitRequest=function(e,r,n,i){void 0===n&&(n=!0);var o=t.callbacks.submit,a=t.transformers.submissionSuccessTransformer;if(n&&o&&(cr.isPrimaryResource(e)||!r.url))return new Promise((function(n,a){i&&i.currentSubmitCount++,o(r,{pidlDoc:e},(function(e){n(e)}),(function(n,i){a(xn.parseCustomSubmitError(n,i,r.url,r.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,t.serverErrorRetries))}),i)}));if(!r.url||!r.virtualEndpoint){var s=new ir.unexpectedError(or.submitPidlRequestMissingParameters,[r.url?"virtualEndpoint":"url"]);return t.eventHub.failure(s),Bn(s)}return new Promise((function(n,i){dr.getPidlService().submitPidlDocument(t.eventHub,r,t.operationType,a).then((function(e){n(e)}),(function(n){i(xn.parseServerError(r.url,r.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,n,t.serverErrorRetries))}))}))},this.submitValidatedData=function(e,r,n,i,o,a,s){var l,d=t.modelData.getId();i=i||cr.getSubmitPidlAction(r)||{},a=a||1;var u=i.type!==j.validate,c=1===a?i.context:i["context"+a],p={modelData:t.modelData},m=c&&Ct.getSubmitUrl(t.operationType,t.userContext,c,d,p),f={method:c&&c.method?c.method:ke.Post,url:m&&m.url,headers:c&&$n.getHttpHeaders(t.eventHub,t.userContext,c&&c.headers,m&&m.template,p),errorCodeExpressions:c&&c.errorCodeExpressions,virtualEndpoint:m&&m.virtualEndpoint},y=Nn();if(c&&c.payload){var h={},g=t.getInputDataFromResponse(h,c.payload,s);if(g)return void e.reject(g);f.data=h}else{f.data=n;var v=Di.tokenizeUserInputData(t.eventHub,r,f.data,t.operationType,t.userContext.getUserCredential(),null===(l=t.callbacks)||void 0===l?void 0:l.encryptionHandler,t.modelData);y=new Promise((function(n,i){v.then((function(o){var a=o.error;if(a){if(ir.isServerError(a)&&a.code===or.tokenizationFailed.code&&400===a.status){var s=xn.parseServerError(a.url,void 0,r&&r.strings&&r.strings.serverErrorCodes,{status:w.Error,errorMessage:a.debugMessage,httpStatus:a.status,httpStatusText:a.statusText,failureObject:a.innererror},t.serverErrorRetries);return t.handleServerError(s,a.url,r).then((function(t){e.resolve(t)})).catch(e.reject)}i(a)}else n()})).catch((function(e){return i(e)}))}))}y.then((function(){t.invokeSubmitRequest(r,f,u,o).then((function(s){a++,i["context"+a]?t.submitValidatedData(e,r,n,i,o,a,s):e.resolve({data:s})}),(function(n){return t.handleServerError(n,f.url,r).then((function(t){e.resolve(t)})).catch(e.reject)}))}),(function(t){e.reject(new ir.serverError(or.tokenizationFailed,null,t,null,null,null,[(t||{}).message]))}))},this.scopeDownPidlDocAndUserInput=function(e,t,r){if(e&&e.type===j.validate&&e.context&&e.context.propertyName){var n=e.context.propertyName;r=sr.getPropertyValueFromInputData(r,n);var i=v(v({},t),{data_description:{}}),o=sr.getPropertiesFromDataDescription(t.data_description,n);Dt(o)?i.data_description[n]=o:i.data_description=o,t=i}return{pidlDocument:t,userInputData:r}},this.validatePidlArray=function(e,r,n,i,o){var a=I([r],n.map((function(e){return t.pidlDocManager.getLinkedPidl(cr.createIdentityHash(e.linkedPidlId))})),!0),s=[],l=null,d=a.map((function(r){var n=e.createUserInputData(r,t.modelData,i,t.operationType,!0);return hi.validateUserInputData(t.eventHub,r,n,t.operationType,t.modelData).then((function(e){var r=e.innerErrors;r&&r.length&&(t.updateInputDataCache(n),r.forEach((function(e){var r=t.createFormValidationError(e.error);ir.isUnexpectedError(r)?l=r:s.push(r)})))}))}));return new Promise((function(e,t){Promise.all(d).then((function(){l?t(l):s.length>0?t(s):e()}),(function(e){var r=(e||{}).message;t(new ir.formValidationFailedError(or.formValidationFailed,r,[e],[r]))}))}))},this.getResolvedOrFirstPidlDoc=function(e,t){return 1!==e.length&&t&&sr.getFirstResolvedPidlDocument(e,t)||e[0]},this.createFormValidationError=function(e){var r=e.propertyName,n=e.errorCode,i=e.debugMessage;if(r){var o=t.modelData.getModelDataProperty(r);if(o){o.editState=he.dirty;var a=mr.findPropertyElement(t.elements,r);return a&&(e.message=a.getErrorMessage(t.getPropertyValue(r),n)),e}return new ir.unexpectedError(or.validationFailedForNonUserInputProperty,[r,n,i])}},this.validateAndTransformUserInputPidlData=function(e,r,n,i,o,a,s,l){return e.createUserSecureInputData(r[0],t.modelData,n,t.operationType,!0).then((function(d){var u=e.createUserInputData(r[0],t.modelData,n,t.operationType,!0);u.details&&d?u.details=xn.extend({},u.details,d):u&&d&&(u=xn.extend({},u,d));var c=t.getResolvedOrFirstPidlDoc(r,u);if(o&&!e.canSubmitUserInputData(c,u))return Nn({});var p=t.scopeDownPidlDocAndUserInput(i,c,u),m=p.pidlDocument,f=p.userInputData;return c=m,u=f,new Promise((function(r,n){var o=[];return hi.validateUserInputData(t.eventHub,c,u,t.operationType,t.modelData).then((function(e){var r=e.innerErrors;r&&r.length&&r.forEach((function(e){var r=t.createFormValidationError(e);r&&(ir.isUnexpectedError(r)?n(r):o.push(r))}))})).then((function(){if(!o.length){if(i.type===j.validateOnChange){if(JSON.stringify(u)===t.inputDataCache)return;t.inputDataCache=JSON.stringify(u)}return e.transformUserInputData(c,t.eventHub,u,t.operationType).then((function(){return s({resolve:r,reject:n},c,u,i,l)}),(function(e){var t=e&&e.message;n(new ir.formValidationFailedError(or.propertyTransformationFailed,t,[e],[t]))}))}a("",o).then((function(e){r(e)})).catch(n)}),(function(e){var t=e||{},r=t.message;n(new ir.formValidationFailedError(or.formValidationFailed,r,[t],[r]))}))}))}))},this.handleRetryableValidationErrorsOnSubmit=function(e,r){return t.handleRetryableError(new ir.formValidationFailedError(or.formValidationFailed,e,r,[e]))},this.tokenizeUserInputData=function(e,r,n){var i;return Di.tokenizeUserInputData(t.eventHub,r,n,t.operationType,t.userContext.getUserCredential(),null===(i=t.callbacks)||void 0===i?void 0:i.encryptionHandler,t.modelData).then((function(t){var r=t.error;r?e.reject(r):e.resolve({data:n})})).catch((function(t){return e.reject(t)}))},this.submitLinkedPidlArray=function(e,r,n,i,o,a){return new Promise((function(s,l){if(i||e&&0!==e.length){r.pending=e.length+(i?1:0);var d=function(){r.pending--,0===r.pending&&s()},u=dr.getCommerceService();i&&t.validateAndTransformUserInputPidlData(u,i,n,o,!1,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData,a).then((function(e){e&&e.error?r.validationError=e.error:r.baseSuccessResponse=e&&e.data?e.data:e,d()}),(function(e){cr.ignoreTerminatingError(i)||(r.baseFailure=e),d()})),e.forEach((function(e){var i=t.pidlDocManager.getLinkedPidl(cr.createIdentityHash(e.linkedPidlId));t.validateAndTransformUserInputPidlData(u,[i],n,cr.getSubmitPidlAction(i),!0,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData,a).then((function(e){r.linkedResponses.push(e),d()}),(function(e){cr.ignoreTerminatingError([i])||r.failures.push(e),d()}))}))}else s()}))},this.validateAndSubmitUserInputData=function(e){t.readUserInputData();var r=t.getClientDataProperties(),n=dr.getCommerceService(),i={failures:[],pending:0,baseFailure:null,baseSuccessResponse:null,linkedResponses:[]};if(!t.stateManager.canApiStart(be.modelSubmitForm).result)return Nn({result:i});t.eventHub.submitting(),t.stateManager.setState(ye.submitting);var o=t.pidlDocManager.getResolvedOrAllPidlDocs(),a=n.getPidlSubmitOrder(o[0]);return new Promise((function(s,l){e.type===j.validate&&(a.beforeBase=[],a.withBase=[],a.afterBase=[]);var d={totalSubmitCount:0,currentSubmitCount:0};d.totalSubmitCount=a.beforeBase.length+a.withBase.length+a.afterBase.length+1,t.validatePidlArray(n,o[0],a.beforeBase.concat(a.withBase,a.afterBase),r,e).then((function(){return t.submitLinkedPidlArray(a.beforeBase,i,r,void 0,void 0,d).then((function(){if(!(0!==i.failures.length||i.linkedResponses&&i.linkedResponses.length&&i.linkedResponses.some((function(e){return e.error}))))return t.submitLinkedPidlArray(a.withBase,i,r,o,e,d).then((function(){if(0===i.failures.length&&!i.baseFailure)return t.submitLinkedPidlArray(a.afterBase,i,r,void 0,void 0,d).then((function(){s()}));s()}));s()}))}),(function(r){if(ir.isUnexpectedError(r))i.failures.push(r),s();else if(!(e&&e.context&&e.context.silent))return t.handleRetryableValidationErrorsOnSubmit("",Array.isArray(r)?I([],r,!0):[r]).then((function(e){i.validationError=e.error,s()}))})).catch((function(e){s()}))})).then((function(){return t.stateManager.setState(ye.executing),t.eventHub.submitted(),{result:i,basePidls:o}}))},this.transformResourceInstance=function(e,r){return Promise.all(t.transformResourceInstanceInternal(e,dr.getCommerceService(),r)).then(On,On)},this.transformResourceInstanceInternal=function(e,r,n){var i=[];return e.forEach((function(e){if(Dn(e)&&e.supportsDisplayTransformation){var o=e&&e.isLinkedPidl&&e.pidlIdentity?[t.pidlDocManager.getLinkedPidl(e.pidlIdentity)]:t.pidlDocManager.getResolvedOrAllPidlDocs();i=I(I([],i,!0),[r.transformUserInputPropertyForDisplay(o,t.eventHub,e.getPropertyName(),n,t.operationType)],!1)}e.children&&e.children.length&&(i=I(I([],i,!0),t.transformResourceInstanceInternal(e.children,r,n),!0))})),i},this.updateResolvedPidlDoc=function(e,r,n){return new Promise((function(i,o){t.pidlDocManager.resolvePidlDoc(t.eventHub,t.getPropertyValue,e,r,n).then((function(e){if(e){var r=t.pidlDocManager.getResolvedOrFirstPidlDoc();t.currentlyRenderedPidl&&t.currentlyRenderedPidl.identity&&r&&r.identity&&Rn.objectEquals(t.currentlyRenderedPidl.identity,r.identity)&&i(!1),r&&cr.isPrimaryResource(r)&&t.eventHub.updateTelemetryContext(r.identity),t.readUserInputData(!0),t.populateModelOnInternalCallback(t.operationType),t.currentlyRenderedPidl=r}i(e)})).catch((function(e){i(!1)}))}))},this.updatePropertyValueInternal=function(e,r,n){if(e&&e.getPropertyName){var i=t.modelData.getModelDataProperty(e.getPropertyName());if(i)return i.setValue(r)&&t.setCurrentDataIndex(e.pidlIdentity,-1),t.sendResourceSelectedEventInternal(i,n),t.validator.validateProperty(i,n,t.operationType)}return Nn()},this.sendResourceSelectedEventInternal=function(e,r){var n=e.propertyName,i=t.getPropertyValue(n),o=t.getPropertyModelElement(n);t.operationType===ct.selectInstance&&r!==ge.finished&&t.eventHub.resourceSelected(n,e.getValue(!0,!0)),Xr(o)&&o.possibleOptions&&o.possibleOptions[i]&&o.possibleOptions[i].onresourceselected&&t.invokePidlAction(o.possibleOptions[i].onresourceselected).catch((function(e){}))},this.getPropertyPageIndex=function(e){var r=-1;return t.elements.some((function(t,n){if(t.children&&mr.findPropertyElement(t.children,e))return r=n,!0})),r},this.navigateToPageIndex=function(e){mr.updateModelElements(t.elements,{modelData:t.modelData});var r=t.pageIndex,n=t.getCurrentPage()||{};t.pageIndex=e;var i=t.getCurrentPage()||{};t.eventHub.pageNavigated(r,n.displayId,n.displayName,t.pageIndex,i.displayId,i.displayName,i.containerDescription)},this.isMaskedValue=function(e,r,n,i){return e&&e.maskDisplay&&i&&n===ge.finished&&r===t.modelData.getMaskedPropertyValue(e.getPropertyName())},this.updateInputDataCache=function(e){if(e)try{var r=t.inputDataCache?JSON.parse(t.inputDataCache):{};for(var n in e)n&&t.getPropertyModelElement(n)&&(r[n]=e[n]);var i=JSON.stringify(r);i&&i!==t.inputDataCache&&(t.inputDataCache=i)}catch(o){}},this.downloadPidlDocument=function(e,r,n,i){var o=$n.getHttpHeaders(t.eventHub,t.userContext,null,e.template,null);if(r.anonymousPidl){var a=o[ee.msFlight];(!a||a.indexOf("pxpidl")<0)&&(o[ee.msFlight]=a?a+",pxpidl":"pxpidl")}if(i){var s=o[ee.msClientContext];o[ee.msClientContext]=s?s+",hasPrefillData":"hasPrefillData"}return t.pidlDocManager.downloadPidlDoc(t.eventHub,e,o,r,n).then((function(e){return t.eventHub.pidlDownloaded(),e}),(function(r){var n;n=r.connectivityError?or.connectivityError:or.pidlDocDownloadFailed;var i=xn.createServerError(n,e.url,r,[r.errorMessage]);return t.eventHub.failure(i),Bn(i)}))},this.populate=function(e,r,n,i,o,a){if(t.pageIndex=0,t.pidlDocManager.isEmpty()){t.eventHub.pageRendering(void 0);var s=new ir.unexpectedError(or.noPidlDocumentInPopulateRequest);return t.eventHub.failure(s),Bn(s)}return t.populateModel(t.operationType,e,r,o,a).then((function(){i=i||{};var e=t.getCurrentPage()||{};t.stateManager&&t.stateManager.setState(ye.executing),t.eventHub.pageRendered(n,i.displayId,i.displayName,t.pageIndex,e.displayId,e.displayName,e.containerDescription);var r=t.modelData.getModelDataProperties([t.getCurrentPage()]);return t.resolveKeyProperty(r).then((function(){return Nn()}))}))},this.updatePropertyValue=function(e,r,n,i,o,a){if(void 0===o&&(o=!0),void 0===a&&(a=!0),i){if(t.isMaskedValue(e,r,n,i))return Nn();t.modelData.clearMaskedPropertyValue(e.getPropertyName())}var s=e&&e.isKeyProperty&&(e.resolutionPolicy!==Et.focusout||n===ge.finished)?t.updateResolvedPidlDoc(r,e,n):Nn(!0),l=!1,d=function(){var i=t.modelData.getPropertyValue(e.getPropertyName()),o=e&&Xr(e)&&e.alwaysUpdateModelValue;if(i!==r||o||n===ge.finished)return l=!0,t.updatePropertyValueInternal(e,r,n)};return s.then(d,d).then((function(){var a=Nn();if(l&&o&&e&&e.broadcastTo){var s=t.getPropertyModelElement(e.broadcastTo);s&&s.getPropertyName()!==e.broadcastTo&&(a=t.updatePropertyValue(s,r,n,i,o)),a=a.then((function(){return xn.broadcastPropertyValueUpdate(t.orchestratorId,e,r,n,i)}))}return a})).then((function(){t.sendSelectionChangeEvent(e,r)})).then((function(){if(l&&e&&e.sideEffects){var s=[];for(var d in e.sideEffects){var u=t.getPropertyModelElement(d),c=e.sideEffects[d],p=xn.getConditionalFieldValue(c,{modelData:t.modelData},e);a&&u?s.push(t.updatePropertyValue(u,p,n,i,o,!1)):o&&s.push(xn.broadcastPropertyValueUpdate(t.orchestratorId,e,r,n,i))}return Promise.all(s).then((function(){return Nn()}))}return Nn()})).then((function(){return l&&e&&(e.isConditionalFieldProperty()||!o)?t.updateModelElementsOnInternalCallback(n,i):Nn()})).then((function(){return ln(e)&&l&&Rn.isBool(r)&&t.eventHub.toggleClicked(e.getPropertyName(),r),Nn()}))},this.sendSelectionChangeEvent=function(e,r){if(Xr(e)&&(t.eventHub.selectionChanged(e.getPropertyName(),e.displayId,r),e.possibleOptions&&e.possibleOptions[r])){var n=e.possibleOptions[r];if(n.pidlAction&&n.pidlAction.type===j.partnerAction){var i=Rn.deepCopy(e.possibleOptions[r].pidlAction.context);t.eventHub.partnerAction(e.id,i)}}},this.sendResourceSelectedEvent=function(e,r){var n=t.modelData.getModelDataProperty(e);n&&t.sendResourceSelectedEventInternal(n,r)},this.getPropertyValue=function(e){return t.modelData.getPropertyValue(e)},this.getPropertyModelElement=function(e){return t.modelData.getPropertyModelElement(e)},this.setCurrentDataIndex=function(e,r){t.readUserInputData(),t.modelData.setMultiPropertySelectorIndex(e,r)},this.getCurrentDataIndex=function(e){return t.modelData.getMultiPropertySelectorIndex(e)},this.getCurrentPage=function(){return t.elements[t.pageIndex]},this.getCurrentPageId=function(){return t.elements.length>t.pageIndex?t.elements[t.pageIndex].displayId:null},this.getCaptchaType=function(){var e=t.modelData.getPropertyValue(De.captchaType);return e||null},this.validateEditedProperties=function(){return t.validatePage(Z.dirtyOnly)},this.validateProperties=function(){return t.validatePage(Z.all).then((function(e){return!0})).catch((function(){return!1}))},this.moveToLastPage=function(){var e=t.elements.length-1;return t.readUserInputData(),t.navigateToPageIndex(e),Nn()},this.moveNextPage=function(){var e=t.pageIndex+1;return e>=t.elements.length?(t.eventHub.failure(new ir.unexpectedError(or.cannotMoveToNextPageAsOnLastPage)),Nn()):(t.readUserInputData(),t.validatePage(Z.all).then((function(){var r=dr.getCommerceService(),n=r.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return r.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,n,t.operationType).then((function(r){t.modelData.setDisplayData(r),t.navigateToPageIndex(e)}))})))},this.submitPage=function(){return t.readUserInputData(),t.validatePage(Z.all).then((function(){var e=dr.getCommerceService(),r=e.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return e.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,r,t.operationType).then((function(e){t.modelData.setDisplayData(e)}))}))},this.movePrevPage=function(){return t.moveToPageIndex(t.pageIndex-1)},this.moveToFirstPage=function(){return t.moveToPageIndex(0)},this.moveToPageIndex=function(e){return t.pageIndex===e||e<0||e>=t.elements.length?(e<0?t.eventHub.failure(new ir.unexpectedError(or.cannotMoveToPrevPage)):e>=t.elements.length&&t.eventHub.failure(new ir.unexpectedError(or.cannotMoveToPageIndex)),Nn()):t.pageIndex>e?(t.readUserInputData(),t.navigateToPageIndex(e),Nn()):t.moveNextPage().then((function(){return t.moveToPageIndex(e)}))},this.submitForm=function(e){return t.validateAndSubmitUserInputData(e).then((function(e){var r=e.result,n=e.basePidls;return r.baseFailure?(t.eventHub.failure(r.baseFailure),Bn(r.baseFailure)):r.failures.length>=1?(t.eventHub.failure(r.failures[0]),Bn(r.baseFailure)):r.baseSuccessResponse||cr.ignoreTerminatingError(n)?t.handleSuccess(r.baseSuccessResponse,r.linkedResponses):void 0}))},this.validateForm=function(e){return t.validateAndSubmitUserInputData(e).then((function(r){var n=r.result;if(!(e&&e.context&&e.context.silent)&&(n.baseFailure||n.failures.length>=1||n.validationError))return n.baseFailure?(t.eventHub.failure(n.baseFailure),Bn(n.baseFailure)):n.failures&&n.failures.length>=1?(t.eventHub.failure(n.failures[0]),Bn(n.baseFailure)):Bn();if(n.baseSuccessResponse){var i=n.baseSuccessResponse&&n.baseSuccessResponse.clientAction;if(i)return i.type===ft.MergeData?t.handleClientAction(i,n.baseSuccessResponse).then((function(){return Nn()}),(function(e){return Bn(e)})):(e.nextAction&&(t.suspendedNextAction=e.nextAction),t.handleClientAction(i,n.baseSuccessResponse).then((function(){return Bn()}),(function(e){return Bn(e)})))}}))},this.createUserInputData=function(e,r){return t.readUserInputData(),dr.getCommerceService().createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,t.getClientDataProperties(),t.operationType,e,r)},this.returnUserInputData=function(){return t.readUserInputData(),t.validateAndTransformUserInputPidlData(dr.getCommerceService(),[t.pidlDocManager.getResolvedOrFirstPidlDoc()],t.getClientDataProperties(),null,!1,(function(e,t){return Bn(new ir.formValidationFailedError(or.formValidationFailed,e,t,[e]))}),t.tokenizeUserInputData)},this.gohome=function(){t.eventHub.gohome()},this.clearAll=function(){t.modelData.clearAll(),t.clearFlow(),xn.unregisterFromOrchestrator(t.orchestratorId)},this.moveNextOrSubmit=function(){if(t.pageIndex<t.elements.length-1)return t.moveNextPage();var e=t.getSubmitButton();return e&&e.pidlAction?t.invokePidlAction(e.pidlAction).then((function(){return Nn()})):(t.eventHub.failure(new ir.unexpectedError(or.missingSubmitActionInPidlDoc)),Bn())},this.submitAction=function(){var e=t.getSubmitButton();return e&&e.pidlAction?(e.pidlAction.context||t.eventHub.implementationMissing("context","pidlAction"),t.invokePidlAction(e.pidlAction).then((function(){return Nn()}))):(t.eventHub.failure(new ir.unexpectedError(or.missingSubmitActionInPidlDoc)),Bn())},this.movePrevOrCancel=function(){return t.pageIndex>0?t.movePrevPage():(t.gohome(),Nn())},this.invokePidlAction=function(e,r){var n=e.type,i=e.nextAction,o=e.context,a=null;return t.eventHub.pidlActionInvoked(n,{nextAction:null===i||void 0===i?void 0:i.type}),new Promise((function(i,s){var l;switch(n){case j.closePidlPage:t.movePrevPage().then((function(){t.elements.splice(t.pageIndex+1,1),i()}),(function(){return s()})),t.eventHub.closePidlPage();break;case j.closeModalDialog:t.eventHub.hideModalDialog();var d=t.getCurrentPage();if(d&&d.children&&d.children.length>0){var u=d.children[d.children.length-1];cn(u)&&u.isModalGroup&&d.children.pop()}i();break;case j.continueSuspendedAction:t.suspendedNextAction?t.invokePidlAction(t.suspendedNextAction,r).then((function(){return i()}),(function(e){return s(e)})):i();break;case j.propertyBindingAction:var c=o.bindingPropertyName,p=o.actionMap,m=t.getPropertyValue(c);Rn.isBool(m)&&(m=Rn.toString(m)),t.eventHub.propertyValueSelected(c,m);var f=p[m];f?t.invokePidlAction(f,r).then((function(){return i()}),(function(e){return s(e)})):i();break;case j.mergeData:var y=o.payload;if(o.explicit){var h=[];for(var g in y){(v=t.getPropertyModelElement(g))&&h.push(t.updatePropertyValue(v,y[g],ge.editing,!1))}return Promise.all(h).then((function(){return i()}),(function(){return s()}))}t.modelData.updateUserData(y),t.eventHub.modelUpdated(!1),i();break;case j.updatePropertyValue:var v,P=o.propertyName,b=o.propertyValue;if(Rn.isString(P))if(v=t.getPropertyModelElement(P))return t.updatePropertyValue(v,b,ge.editing,!1);break;case j.submit:t.submitForm(e).then((function(){return i()}),(function(e){s(e)}));break;case j.triggerSubmit:t.submitAction().catch((function(e){return s(e)}));break;case j.submitOriginalPidl:t.movePrevPage().then((function(){t.elements.splice(t.pageIndex+1,1),t.invokeDefaultPidlAction().then((function(){return i()}),(function(){s()}))}),(function(){return s()})),t.eventHub.submitOriginalPidl();break;case j.validate:case j.validateOnChange:t.validateForm(e).then((function(){return i()}),(function(){return s()}));break;case j.gohome:t.gohome(),i();break;case j.first:t.moveToPageIndex(0).then((function(){return i()}),(function(){return s()}));break;case j.last:t.moveToLastPage().then((function(){return i()}),(function(){return s()}));break;case j.next:t.moveNextPage().then((function(){return i()}),(function(){return s()}));break;case j.prev:t.movePrevPage().then((function(){return i()}),(function(){return s()}));break;case j.moveToPageIndex:var E=o.pageIndex;t.moveToPageIndex(E).then((function(){return i()}),(function(){return s()}));break;case j.restartFlow:t.restartFlow().then((function(){return i()}),(function(){return s()}));break;case j.restAction:o?t.invokeRestMethod(o).then((function(){return i()}),(function(){return s()})):(t.eventHub.error(new ir.unexpectedError(or.contextMissingFromPidlAction,[e.type])),s());break;case j.success:r&&r.value?((a=Rn.deepCopy(r.value)).operationType=t.operationType,t.eventHub.success(a)):t.eventHub.success(t.createSuccessEventPayload()),i();break;case j.partnerAction:r&&r.value&&(a=Rn.deepCopy(r.value),t.eventHub.partnerAction(r.id,a)),i();break;case j.successWithPidlPayload:(a=Rn.deepCopy(t.createUserInputData(!0))).operationType=t.operationType,r&&r.value&&(a.additionalData=Rn.deepCopy(r.value)),t.eventHub.success(a),i();break;case j.successWithSelectedPidlAction:(a=Rn.deepCopy(t.createUserInputData(!0,!0))).operationType=t.operationType,r&&r.value&&(a.additionalData=Rn.deepCopy(r.value)),t.eventHub.success(a),i();break;case j.navigateAndNext:var I=t.getLinkActionUrl(o,!0);if(I){var S=dr.getRedirectionService();!t.eventHub.navigate(r.id,I,!1,null,r.dest)&&S&&S.openInNewTab(I),t.moveNextPage().then((function(){return i()}),(function(){return s()}))}else s();break;case j.navigate:t.eventHub.navigate(r.id,o,!1,null,r.dest,e.dest),i();break;case j.triggerEvent:t.eventHub.triggerEvent(null!==(l=e.context.name)&&void 0!==l?l:"",e.context.params),i();break;case j.redirect:t.eventHub.navigate(r.id,t.getLinkActionUrl(o,!0),!0,o,null),i();break;case j.poll:i();break;case j.updatePollAndMoveLast:t.eventHub.updatePollAndMoveLast(o);break;case j.noAction:i();break;default:t.eventHub.error(new ir.unexpectedError(or.unknownActionType,[n])),s()}})).then((function(){return!i||t.invokePidlAction(i,r)}),(function(e){if(e)throw e;return!1}))},this.invokeDefaultPidlAction=function(){var e=mr.getDefaultPidlAction([t.getCurrentPage()],t.eventHub);return e?t.invokePidlAction(e):(t.eventHub.error(new ir.unexpectedError(or.defaultActionNotFound)),Bn(!1))},this.invokeRestMethod=function(e){if(!e.href||!e.method){var r=e.href?"method":"href";return t.eventHub.error(new ir.unexpectedError(or.restActionPidlActionMissingParameters,[r])),Nn()}var n={modelData:t.modelData},i=e&&e.shouldHandleSuccess,o=Ct.getRestMethodUrl(e.href,t.userContext,t.modelData.getId(),n),a={url:o.url,method:e.method,headers:$n.getHttpHeaders(t.eventHub,t.userContext,e.headers,o.template,n),virtualEndpoint:o.virtualEndpoint,errorCodeExpressions:e.errorCodeExpressions,data:Rn.serialize(e.payload)};return t.eventHub.restMethodInvoking(o.url,t.operationType),new Promise((function(e,r){dr.getPidlService().invokeRestMethod(t.eventHub,a,t.operationType).then((function(r){t.eventHub.restMethodInvoked(a.url);var n=r&&r.clientAction;if(n)return t.handleClientAction(n,r);r&&i&&(t.modelData.setPrimaryResourceResponse(r),t.eventHub.success(t.createSuccessEventPayload())),e()}),(function(n){var i=t.pidlDocManager.getResolvedOrFirstPidlDoc();return t.handleServerError(xn.parseServerError(a.url,a.errorCodeExpressions,i&&i.strings&&i.strings.serverErrorCodes,n),a.url,t.pidlDocManager.getResolvedOrFirstPidlDoc()).then((function(){return e()}),(function(e){return r(e)}))}))})).then(On,(function(e){return t.eventHub.failure(e),Bn(e)}))},this.updateDisplayContainerId=function(e){e&&(t.displaySettings.containerId=e)},this.getMultiPropertySelectorPossibleOptions=function(e){return t.modelData.getMultiPropertySelectorPossibleOptions(e)},this.restartFlow=function(){return new Promise((function(e,r){t.handleRestartFlow().then((function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated(),e()}),(function(e){return r(e)}))}))},this.refreshData=function(e){var r=!1,n=Nn(),i=cr.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc());return i&&i.length>0&&(t.modelData.clearDataSourceCache(),t.modelData.setPrefillDataInPartnerDataSource(e),n=t.getDataSources(t.operationType,{modelData:t.modelData,model:t},i),r=!0),n.then((function(){r&&(t.modelData.clearFlow(),t.modelData.populate(t.elements)),t.modelData.setPrefillData(t,e,t.resources.constants,t.eventHub),mr.updateModelElements(t.elements,{modelData:t.modelData}),r?t.eventHub.modelUpdated(!1):t.eventHub.dataUpdated()}))},this.getPidlInstanceContexts=function(){return t.pidlInstanceContexts},this.loadedSecureFields=[],this.queuedSecureFieldPromises=[],this.queuedIFrameLoadedPromises=[],this.queuedIFrameInitCompletedPromises=[],this.userContext=e.userContext,this.eventHub=e.eventHub,this.pidlDocManager=e.pidlDocManager,this.stateManager=e.stateManager,this.displaySettings=e.displaySettings||new Hn({containerId:""}),this.urls=e.urls||{},this.callbacks=e.callbacks||{},this.transformers=e.transformers||{},this.localDataSourceProviders=e.localDataSourceProviders,this.modelData=new ci(this.pidlDocManager),this.eventHub.addPrivateEventHandler(this.privateEventHandler),this.eventHub.registerEventExtender("pageId",this.getCurrentPageId),this.validator=new gi(this.eventHub,this.displaySettings.alwaysValidateOnChange),this.resources=new ti(this.pidlDocManager),this.setClientSettings(this.pidlDocManager)}return e.prototype.getResourceData=function(e,t,r,n){var i,o=this,a=null;if(t.dataSourceConfig&&(i=t.dataSourceConfig,delete t.dataSourceConfig),Ft(t)){var s=t.href,l=t.method,d=t.headers,u=t.fetchConfig,c=Ct.getRestMethodUrl(s,this.userContext,this.modelData.getId(),n),p=c.url,m=c.template,f={url:p,method:l,virtualEndpoint:c.virtualEndpoint,pidlOperation:r,headers:$n.getHttpHeaders(this.eventHub,this.userContext,d,m,n),fetchConfig:u};a=new Promise((function(e,t){return dr.getPidlService().getInstance(o.eventHub,f).then((function(t){o.eventHub.instanceDownloaded(),e(t)}),(function(e){var r=xn.createServerError(or.resourceInstanceDownloadFailed,f.url,e,[e.errorMessage]);o.eventHub.failure(r),t(r)}))}))}else a=At(t)?Nn(t.members):Nn(t);return new Promise((function(t,r){a.then((function(r){return b(o,void 0,void 0,(function(){var o,a,s,l=this;return E(this,(function(d){return a=Nn(o=r),i&&i.useLocalDataSource&&this.localDataSourceProviders&&this.localDataSourceProviders[e]&&(s=this.localDataSourceProviders[e].mergingFunction||"mergeLocalData",this.eventHub.getLocalDataSourceInvoked(e),a=this.localDataSourceProviders[e].getDataSource().then((function(t){o=xn.getFunctionExecutionResult({functionName:s,arguments:[r,t]},n);var i=xn.getFunctionExecutionResult({functionName:"getDataSourceCount",arguments:[e,o]},n);return l.eventHub.getLocalDataSourceResolved(e,i),o}),(function(t){l.eventHub.getLocalDataSourceError(e,t)}))),[2,a.then((function(r){var o=r;i&&i.filter&&i.filter.functionName&&(o=xn.getFunctionExecutionResult({functionName:i.filter.functionName,arguments:[r,i.filter.functionContext]},n)),l.modelData.setDataSource(e,o),t()}))]}))}))}),(function(e){r(e)}))}))},e.prototype.postChallengeiFrameMessage=function(e){var t=this;return new Promise((function(r,n){var i,o,a=null===(o=null===(i=window.frames.iframe_ChallengeFrame)||void 0===i?void 0:i.contentWindow)||void 0===o?void 0:o.frames.challenge_iframe;if(a){var s="https://"+An.getServiceEndpoint(An.virtualEndpoints.challengeUI.endpoint);a.contentWindow.postMessage(e,s)}else setTimeout((function(){t.postChallengeiFrameMessage(e).then().catch((function(){var e=new ir.unexpectedError(or.challengeIframeMessagePostFailure);t.eventHub.failure(e)}))}),t.postMessageTimeoutInMs)}))},e.prototype.postSecureFieldMessage=function(e,t,r,n){var i=this;return new Promise((function(o,a){var s=i.buildMessage(t,r);n&&(s.correlationId=n),i.queuedSecureFieldPromises.push({id:s.correlationId,resolve:o,reject:a}),i.guaranteedPostMessage(e,s,0)}))},e.prototype.postGuaranteedSecureFieldMessage=function(e,t,r,n){var i=this.buildMessage(t,r);n&&(i.correlationId=n),this.guaranteedPostMessage(e,i,0)},e.prototype.queueSecureFieldLoadedPromise=function(e){var t=this;return new Promise((function(r,n){t.queuedIFrameLoadedPromises.push({id:e,resolve:r,reject:n})}))},e.prototype.resolveSecureFieldLoadedPromise=function(e){this.queuedIFrameLoadedPromises.forEach((function(t){t.id===e&&t.resolve()})),this.queuedIFrameLoadedPromises=this.queuedIFrameLoadedPromises.filter((function(t){return t.id!==e}))},e.prototype.queueSecureFieldInitCompletedPromise=function(e){var t=this;return new Promise((function(r,n){t.queuedIFrameInitCompletedPromises.push({id:e,resolve:r,reject:n})}))},e.prototype.resolveSecureFieldInitCompletedPromise=function(e){this.queuedIFrameInitCompletedPromises.forEach((function(t){t.id===e&&t.resolve()})),this.queuedIFrameInitCompletedPromises=this.queuedIFrameInitCompletedPromises.filter((function(t){return t.id!==e}))},e.prototype.buildMessage=function(e,t){return{source:We.pidlSdkMessageSource,event:e,payload:t,correlationId:xn.guid()}},e.prototype.guaranteedPostMessage=function(e,t,r){var n=this;if(!(r>this.maxRetryPostMessage))if(r++,this.loadedSecureFields.includes(e)&&window.frames[e]){var i="https://"+An.getServiceEndpoint(An.virtualEndpoints.securePx.endpoint);this.secureFieldOriginOverride&&(i=this.secureFieldOriginOverride),window.frames[e].postMessage(t,i),this.eventHub.secureFieldEventPosted(e,t.event,t.correlationId)}else this.eventHub.secureFieldEventQueued(e,t.event,t.correlationId),setTimeout((function(){n.guaranteedPostMessage(e,t,r)}),this.postMessageTimeoutInMs)},e.prototype.getSecurePropertyInitializationPayload=function(e){var t,r,n,i=null===(t=null===e||void 0===e?void 0:e.modelElement)||void 0===t?void 0:t.dataDescription,o=null===(r=null===e||void 0===e?void 0:e.modelElement)||void 0===r?void 0:r.displayDescription,a=null===o||void 0===o?void 0:o.propertyName,s=null==i.validations?[i.validation]:i.validations;return{maxLength:null===o||void 0===o?void 0:o.maxLength,isOptional:i.is_optional,resolutionPolicy:null===(n=null===e||void 0===e?void 0:e.modelElement)||void 0===n?void 0:n.resolutionPolicy,keyPropertyResolutionMappings:i.keyPropertyResolutionMappings,propertyDataValidations:s,cssStyles:this.computedStyles.style[a],msCv:this.eventHub.getCorrelationId(),sessionId:this.eventHub.getSessionId()}},e.prototype.handleExpressCheckoutButtonMessage=function(e,t){var r,n,i,o,a,s,l,d=this;switch(null===(r=e.data)||void 0===r?void 0:r.messageType){case qe.paymentSheetOpened:this.eventHub.paymentSheetOpened(null===(n=e.data)||void 0===n?void 0:n.source);break;case qe.paymentData:var u=e.data.pidlAction||null;u?this.invokePidlAction(u).then((function(){d.eventHub.postMessageHandleSuccess(u.type)}),(function(){d.eventHub.postMessageHandleFailure("specified pidlAction from expressCheckout is not successful. pidlAction type: "+u.type)})):this.eventHub.postMessageHandleFailure("pidlAction from expressCheckout is not specified");break;case qe.paymentDataTokenizing:this.eventHub.paymentDataTokenizing(null===(i=e.data)||void 0===i?void 0:i.source);break;case qe.paymentDataTokenized:this.eventHub.paymentDataTokenized({source:null===(o=e.data)||void 0===o?void 0:o.source,tokenReference:null===(a=e.data)||void 0===a?void 0:a.tokenReference});break;case qe.cancel:this.eventHub.paymentSheetCancelled(null===(s=e.data)||void 0===s?void 0:s.source);break;case qe.error:var c=null===(l=e.data)||void 0===l?void 0:l.error,p=c;try{p=JSON.parse(c)}catch(y){p=c}var m={error:p,stack:null===p||void 0===p?void 0:p.stack,message:null===p||void 0===p?void 0:p.message},f=void 0;c===Je.failedToOpenWindow?f=new ir.failedToOpenWindowError(or.failedToOpenWindow,JSON.stringify(m)):(null===p||void 0===p?void 0:p.message)===Je.tokenizationFailed?(m.message=null===p||void 0===p?void 0:p.originalError,f=new ir.unexpectedError(or.tokenizationFailed,[JSON.stringify(m)])):f=new ir.paymentMethodFailureError(or.paymentMethodFailure,JSON.stringify(m)),this.eventHub.failure(f)}},e.prototype.testHookSetCurrentPage=function(e){this.pageIndex=e},e.prototype.testHookGetCurrentPage=function(){return this.pageIndex},e.prototype.testHookGetValidator=function(){return this.validator},e.prototype.testHookGetModelData=function(){return this.modelData},e.prototype.testHookClearElementEditStates=function(){return this.clearElementEditStates()},e.prototype.testHookSetCallbacks=function(e){this.callbacks=e},e.prototype.testHookSetSuspendedNextAction=function(e){this.suspendedNextAction=e},e.prototype.testHookGetInputDataCache=function(){return this.inputDataCache},e}(),wi=function(e,t){var r=this;this.getPidlDocumentHook=null,this.originalPidlDocs=[],this.resolvedPidlDocs=[],this.pidlIdentityHashMapping={},this.downloadedPidlDocsByUrl={},this.lastDownloadedPidlDoc=null,this.operationInfo=null,this.currentUrl=null,this.currentHeaders=null,this.pidlPayload=null,this.logos=[],this.updatePidlDocStore=function(e,t,n){if(r.operationInfo&&r.operationInfo.handle){var i=dr.getPidlStoreService();if(i){var o=i.get(r.operationInfo.handle);e=e||o&&o.pidls;var a=t[0]&&t[0].identity||o&&o.resolvedPidlIdentity;i.put(r.operationInfo.handle,n||o.pidlDocInfo,e,a)}}},this.getResolvedLogoDescription=function(e){for(var t=0;t<e.length;t++){var n=e[t];if(Tt(n))return n;if(wt(n)&&n.members){var i=r.getResolvedLogoDescription(n.members);if(i)return i}}},this.getIdentityLessCountry=function(e){return e.description_type+"_"+e.type},this.addIdentity=function(e){if(e&&e.identity){var t=cr.createIdentityHash(e.identity),n=r.getIdentityLessCountry(e.identity);r.pidlIdentityHashMapping[t]=n}},this.addLogo=function(e){var t=e.displayDescription;if(t&&Rn.isArray(t))for(var n=0;n<t.length;n++){var i=[];cr.getLogoDescriptions(t[n],i);for(var o=0;o<i.length;o++){for(var a=!1,s=0;s<r.logos.length;s++)if(r.logos[s].displayId===i[o].displayId){a=!0;break}a||r.logos.push(i[o])}}},this.checkPidlDoc=function(e){if(e){r.addIdentity(e);var t=e.data_description;for(var n in t){var i=t[n];if(i instanceof Array)for(var o=0;o<i.length;o++)r.checkPidlDoc(i[o])}}},this.isPidlForCurrentOperation=function(e){return!(r.operationInfo&&r.operationInfo.operationType&&e&&e.identity&&e.identity.operation)||Rn.equalsIgnoreCase(r.operationInfo.operationType,e.identity.operation)||Rn.equalsIgnoreCase(ct.update,e.identity.operation)},this.swapPidlDoc=function(e,t,n){if(r.resetPidlDocs(),t){if(t instanceof Array)for(var i=0;i<t.length;i++)r.checkPidlDoc(t[i]),r.isPidlForCurrentOperation(t[i])&&(r.originalPidlDocs.push(t[i]),r.addLogo(t[i]));else r.checkPidlDoc(t),r.isPidlForCurrentOperation(t)&&(r.originalPidlDocs.push(t),r.addLogo(t));if(1===r.originalPidlDocs.length?r.resolvedPidlDocs=Rn.copyArray(r.originalPidlDocs):n&&Rn.invokeIf(r.originalPidlDocs,(function(e){var t=e.identity;return Rn.objectEquals(n,t)}),(function(e){r.resolvedPidlDocs.push(r.originalPidlDocs[e])})),0===r.resolvedPidlDocs.length){var o=dr.getCommerceService(),a=cr.createKeyPropertyMap(r.originalPidlDocs,cr.getDefaultPropertyValueGetter()),s=o.getFirstPidlWithValidDefaultKey(r.originalPidlDocs,a);s&&r.resolvedPidlDocs.push(s)}e&&e.pidlResolved("swapPidlDocs",r.resolvedPidlDocs)}},this.resetPidlDocs=function(){r.originalPidlDocs=[],r.resolvedPidlDocs=[],r.pidlIdentityHashMapping={},r.logos=[]},this.getPidlDocument=function(e,t){return e.pidlDownloading(t.url),new Promise((function(n,i){var o=Rn.toLowerCase(t.url);if(r.pidlPayload)n(r.pidlPayload);else{if(!r.downloadedPidlDocsByUrl[o])return dr.getPidlService().getPidlDocument(e,t,r.getPidlDocumentHook).then((function(e){r.downloadedPidlDocsByUrl[o]=e,n(e)}),(function(e){i(e)}));n(r.downloadedPidlDocsByUrl[o])}}))},this.setPidlDoc=function(e,t,n){r.clearCache(),t instanceof Array||(t=t?[t]:null),r.swapPidlDoc(e,t,n),r.updatePidlDocStore(t,r.resolvedPidlDocs,r.currentPidlDocInfo)},this.getPidlPayload=function(){return r.pidlPayload},this.setToLastDownloadedPidlDoc=function(e){r.setPidlDoc(e,r.lastDownloadedPidlDoc)},this.downloadPidlDoc=function(e,t,n,i,o,a){return new Promise((function(s,l){r.getPidlDocument(e,{url:t.url,headers:n,virtualEndpoint:t.virtualEndpoint,pidlOperation:r.operationInfo.operationType,fetchConfig:a}).then((function(a){var l,d;if(a&&a[0]&&a[0].clientAction)s(a[0].clientAction);else{var u;if(Mt(a)){for(var c in null===(l=null===a||void 0===a?void 0:a.pidlInfo)||void 0===l?void 0:l.pidls)if(r.operationInfo.operationType.toLowerCase()===c.toLowerCase()){u=null===(d=null===a||void 0===a?void 0:a.pidlInfo)||void 0===d?void 0:d.pidls[c];break}r.pidlPayload=a}else u=a;r.currentUrl=t,r.currentHeaders=n,r.currentPidlDocInfo=i||r.currentPidlDocInfo,r.lastDownloadedPidlDoc=u,r.swapPidlDoc(e,u,o),r.updatePidlDocStore(u,r.resolvedPidlDocs,i),s()}}),(function(e){l(e)}))}))},this.retrievePidlDocFromCache=function(e,t,n){return new Promise((function(i,o){var a=dr.getPidlStoreService().get(t);a&&a.pidls?(r.lastDownloadedPidlDoc=a.pidls,r.swapPidlDoc(e,a.pidls,n),i()):o(or.invalidCacheEntry)}))},this.shouldDownloadNewPidl=function(e,t,n,i){return!(e instanceof Array&&e.length>=1||!r.currentUrl)&&!($r(t)&&t.possibleOptions&&!n)&&t.triggerPidlDownloadOnChange&&(i===ge.finished||$r(t)&&i===ge.editing)},this.resolvePidlDoc=function(e,t,n,i,o){var a=dr.getCommerceService(),s=r.getAllPidlDocs(),l=cr.createKeyPropertyMap(s,cr.getPropertyValueGetter(i.getPropertyName(),n,t));return a.resolveInfoDescriptionId(s,l).then((function(s){if(r.shouldDownloadNewPidl(s,i,n,o)){var d=Rn.deepCopy(r.currentUrl.originalParameters);if(xn.updatePidlDocUrlParams(d.pidlDocInfo,l)){var u=r.currentUrl.recreateUrl(d);return r.downloadPidlDoc(e,u,r.currentHeaders,d.pidlDocInfo).then((function(){return e.pidlDownloaded(),r.resolvePidlDoc(e,t,n,i,o).then((function(){return!0}))}),(function(t){return e.failure(xn.createServerError(or.pidlDocDownloadFailed,u.url,t,[t.errorMessage])),!1}))}}else if(!cr.matchPidlIdsToPidls(a,s,r.resolvedPidlDocs)&&(r.resolvedPidlDocs=cr.resolvePidlDocs(r.originalPidlDocs,s),e.pidlResolved("resolvedPidlDocs",r.resolvedPidlDocs),0!==r.resolvedPidlDocs.length))return!0;return!1}))},this.isEmpty=function(){return 0===r.originalPidlDocs.length},this.getResolvedOrAllPidlDocs=function(){return 0!==r.resolvedPidlDocs.length?r.resolvedPidlDocs:r.originalPidlDocs},this.getResolvedOrFirstPidlDoc=function(){return r.resolvedPidlDocs.length>0?r.resolvedPidlDocs[0]:r.originalPidlDocs.length>0?r.originalPidlDocs[0]:null},this.getAllPidlDocs=function(){return r.originalPidlDocs},this.clearCurrentPIDLResource=function(){r.currentPidlDocInfo&&dr.getPidlStoreService().removeResourceEntries(r.currentPidlDocInfo.resourceType)},this.getPidlIdentity=function(){var e=r.getResolvedOrFirstPidlDoc();return e?e.identity:null},this.getAllLogos=function(){return r.logos},this.getResolvedLogo=function(){if(1===r.resolvedPidlDocs.length)return r.getResolvedLogoDescription(r.resolvedPidlDocs[0].displayDescription)},this.getLogoUrl=function(e,t){var r=e.toLowerCase();switch(r){case"mastercard":return t.mc;case"americanexpress":case"american express":return t.amex;default:return t[r]||""}},this.getLogosFromDataDescription=function(){var e,t=r.getResolvedOrFirstPidlDoc();if(null===(e=null===t||void 0===t?void 0:t.data_description)||void 0===e?void 0:e.cardLogos){var n=t.data_description.cardLogos;return(null===n||void 0===n?void 0:n.possible_values)||{}}return{}},this.getIdentityString=function(e){return e&&e in r.pidlIdentityHashMapping?r.pidlIdentityHashMapping[e]:null},this.reset=function(){r.resetPidlDocs(),r.operationInfo=null,r.clearCache()},this.clearCache=function(){r.downloadedPidlDocsByUrl={}},this.getNextPidlRef=function(){if(r.resolvedPidlDocs[0]&&r.resolvedPidlDocs[0].links)return r.resolvedPidlDocs[0].links.nextPidl},this.getLinkedPidls=function(){var e=r.getResolvedOrFirstPidlDoc();if(e)return e.linkedPidls},this.getLinkedPidl=function(e){var t=r.getLinkedPidls();if(t)for(var n=0;n<t.length;n++)if(cr.createIdentityHash(t[n].identity)===e)return t[n]},this.getPidlInstanceContexts=function(){var e=r.getResolvedOrFirstPidlDoc();if(e)return e.pidlInstanceContexts},this.setOperationInfo=function(e){r.operationInfo=e},this.getOperationHandle=function(){if(r.operationInfo)return r.operationInfo.handle},this.testHookGetGetPidlDocumentHook=function(){return r.getPidlDocumentHook},this.testHookGetResolvedPidlDoc=function(){return r.resolvedPidlDocs},this.testHookSetResolvedPidlDocument=function(e){r.resolvedPidlDocs=e instanceof Array?e:[e]},this.testHookSetCurrentUrl=function(e){r.currentUrl=e},this.getPidlDocumentHook=e||null,this.pidlPayload=t||null},xi={addAddress:[ye.initialized],selectPaymentInstrument:[ye.initialized],addPaymentInstrument:[ye.initialized],listAddress:[ye.initialized],addResource:[ye.initialized],applyResource:[ye.initialized],replaceResource:[ye.initialized],updateResource:[ye.initialized],updateProfile:[ye.initialized],selectResource:[ye.initialized],selectSingleResource:[ye.initialized],selectResourceType:[ye.initialized],validateResource:[ye.initialized],showResource:[ye.initialized],offerResource:[ye.initialized],searchResource:[ye.initialized],deleteResource:[ye.initialized],fundStoredValue:[ye.initialized],createPaymentSession:[ye.initialized],handleChallenge:[ye.initialized],handlePaymentChallenge:[ye.initialized],expressCheckout:[ye.initialized],handlePurchaseRiskChallenge:[ye.initialized],handlePurchasePendingState:[ye.initialized],renderPidlPage:[ye.initialized],getPidlPayload:[ye.executing],invokePageDefaultAction:[ye.executing],invokeResourceAction:[ye.initialized,ye.executing],moveNextPage:[ye.executing],validateProperties:[ye.executing],submitPage:[ye.submitting,ye.executing,ye.initialized],movePrevPage:[ye.executing],moveToLastPage:[ye.executing],moveToFirstPage:[ye.executing],refreshData:[ye.executing],cancel:[ye.initialized,ye.executing,ye.submitting],destroyInstance:[ye.submitting,ye.executing,ye.initialized,ye.notInitialized],modelSubmitForm:[ye.executing,ye.submitting],handleAction:[ye.initialized],getSelectedResource:[ye.initialized,ye.executing,ye.submitting],renderPidlDocument:[ye.initialized],postMessageToChildIFrames:[ye.executing,ye.submitting],profilePrerequisite:[ye.initialized],handleCheckout:[ye.initialized],getPayeeTaxProfile:[ye.initialized],redeemMSRewards:[ye.initialized],searchTransactions:[ye.initialized],selectMSRewards:[ye.initialized]},Ti=function(){function e(e){this.state=ye.notInitialized,this.eventHub=e;var t=this;this.eventHub.addPrivateEventHandler((function(e,r){t.privateEventHandler(e,r)}))}return e.prototype.privateEventHandler=function(e,t){if(this.state!==ye.notInitialized)switch(e){case G.success:case G.failure:case G.gohome:t[K.preventUnmountOnFinish]||this.setState(ye.initialized)}},e.prototype.getState=function(){return this.state},e.prototype.setState=function(e){this.eventHub.stateChanged(this.state,e),this.state=e},e.prototype.canApiStart=function(e){if(this.state===ye.notInitialized)return{error:new ir.apiValidationError(or.apiCannotStartAsControlNotInitialized,e,[e]),result:!1};var t=xi[e];return t?Rn.contains(t,this.state)?{result:!0}:{error:new ir.apiValidationError(or.apiCannotStartAsNotAllowedInCurrentState,e,[e,this.state,t.toString()]),result:!1}:{error:new ir.unexpectedError(or.apiStateMappingNotFound,[e]),result:!1}},e}(),Ri=function(){function e(e){this.userContext=e}return e.prototype.getServiceParam=function(e,t){if(!this.userContext)return null;var r=jt.findVirtualEndpointInTemplate(e);if(r&&r.name&&this.userContext.serviceOverrides)for(var n in this.userContext.serviceOverrides)if(Rn.toLowerCase(n)===r.name)return this.userContext.serviceOverrides[n][t]||this.userContext[t];return this.userContext[t]},e.prototype.getAdditionalHeaders=function(e){return this.getServiceParam(e,"additionalHeaders")},e.prototype.getAuthToken=function(e){return this.getServiceParam(e,"authToken")},e.prototype.getUserId=function(e){return this.getServiceParam(e,"userId")},e.prototype.getHeaders=function(e,t){e=e||{};var r=this.getAuthToken(t);r&&(e[ee.authorization]=r);var n=this.getAdditionalHeaders(t);if(n)for(var i in n)e[i]=n[i];return e},e.prototype.getUserCredential=function(e){var t=this.getAuthToken(e);if(!t){var r=this.getAdditionalHeaders(e);for(var n in r)if(Rn.equalsIgnoreCase(n,ee.authorization)){t=r[n];break}}return t},e}(),Fi=function(){function e(e){var t=this;this.waitForSecureFields=!1,this.displaySettings=null,this.model=null,this.userContext=null,this.eventHub=null,this.focusTarget=null,this.unseenErrors=[],this.totalExpressCheckoutButtonElements=0,this.expressCheckoutButtonEligibilityStatus={},this.securePropertyPromises=[],this.securePropertyInitCompletedPromises=[],this.errorPropertyGroups={},this.pollingActions={},this.pageRestActions={},this.valueSetters=[],this.view=null,this.pollingTimersAndCounters={},this.showHideBusy=function(e){!e&&t.displaySettings.busyUntilInitialPageRendered||(t.displaySettings.busyBlockShowHideHandler?t.displaySettings.busyBlockShowHideHandler(e):t.view.showHideBusy(e))},this.applyForModelDisplayTransformation=function(e,t,r){if(mn(e)&&(!r||!e.maskDisplay)&&e.displayTransformations&&e.displayTransformations.forModel)return xn.applyDisplayTransformation(e.displayTransformations.forModel,t)},this.hideError=function(e){e?t.view.hidePropertyError(e):t.view.hidePageError()},this.showGroupError=function(e){return!!e.groupDisplayId&&(t.view.showGroupError(e)||t.unseenErrors.push(e),!0)},this.showPropertyError=function(e){return!!e.propertyName&&(t.view.showPropertyError(e)||t.unseenErrors.push(e),!0)},this.showPageError=function(e){return t.view.showPageError(e)},this.hideModalDialog=function(){return t.view.hideModalDialog()},this.showError=function(e){var r=!1;switch(e.type){case q.formValidation:var n=e;if(n.errors&&n.errors.length>0){for(var i=0;i<n.errors.length;i++)if(n.errors[i].message===ve.empty&&(n.errors[i].message=""),!t.showError(n.errors[i]))return;e.name===or.formSubmissionFailedBadUserInput.name&&n.message!==ve.empty&&(r=!0)}else r=!0;break;case q.userInputValidation:r=e.validationErrorType===Q.group?!t.showGroupError(e):!t.showPropertyError(e);break;default:r=!0}return r&&t.showPageError(e),!0},this.fillForm=function(e){var r=t.view.getVisibleProperties();t.model.showMaskedValues=e===Pe.pageNavigated;var n={isRadioProperty:!1,firstRadioChecked:!1,updateReason:e};if(r.forEach((function(e){var r=t.model.modelData.getProperty(e),i=t.model.getPropertyModelElement(e);n.isRadioProperty=yn(i);var o=t.model.modelData.getPrefillData(),a=t.model.showMaskedValues&&t.model.modelData.getMaskedPropertyValue(e)||mn(i)&&i.displayTransformations&&i.displayTransformations.forFormat&&xn.applyDisplayTransformation(i.displayTransformations.forFormat,r.value)||r.value;t.model.showMaskedValues&&a!==r.value&&t.view.setAccessibilityText(i,i.tags&&i.tags.maskedAccessibilityName||i.accessibilityName||i.displayName),$r(i)&&(n.dropdownElement=i),a&&t.model.sendResourceSelectedEvent(e,ge.ready),fn(i)&&o&&o.id&&t.view.updateButtonList(i,o.id,o.invalid),t.view.updatePropertyValue(e,r.editable,a,n)})),t.valueSetters&&t.valueSetters.length)for(var i=0;i<t.valueSetters.length;i++)t.valueSetters[i].set();t.view.updatePrefillControls()},this.reset=function(){t.unseenErrors=[],t.errorPropertyGroups={},t.model.showMaskedValues=!1,t.view.reset(),t.valueSetters=[],t.stopAllPolling()},this.stopAllPolling=function(){for(var e in t.pollingTimersAndCounters)t.stopPoll(e);t.pollingTimersAndCounters={},t.pollingActions={}},this.stopPoll=function(e){t.pollingTimersAndCounters[e]&&(t.pollingTimersAndCounters[e].pollingCounter=0,clearInterval(t.pollingTimersAndCounters[e].pollingTimer))},this.startPollingWithNextAction=function(e){t.pollingActions[e]&&t.pollingActions[e].nextAction&&(t.pollingActions[e]=t.pollingActions[e].nextAction,t.pollingHandler(e,t.pollingActions[e]))},this.registerGroupedErrors=function(e){if(e&&e.errors&&e.errors.length)for(var r=[],n=0;n<e.errors.length;++n){var i=e.errors[n],o=e.errors[n];i.propertyName&&(r.push(i.propertyName),t.errorPropertyGroups[i.propertyName]=r),o.groupDisplayId&&(r.push(o.groupDisplayId),t.errorPropertyGroups[o.groupDisplayId]=r)}},this.deregisterGroupedErrors=function(e,r){if(r||(r=t.hideError),e&&t.errorPropertyGroups[e])for(var n=t.errorPropertyGroups[e],i=0;i<n.length;++i){var o=n[i];t.unseenErrors.length>0&&Rn.filter(t.unseenErrors,(function(e){return!e.propertyName||e.propertyName!==o})),r(o),delete t.errorPropertyGroups[o]}},this.handleErrorEvent=function(e){if(!t.displaySettings.hidePropertyErrors){var r=e.error;if(r){(ir.isServerError(r)&&!r.retryable||!ir.isServerError(r))&&t.showHideBusy(!1);var n=r.propertyName;n&&r.type===q.userInputValidation&&t.deregisterGroupedErrors(n),t.sortError(r),t.showError(r),r.name===or.formSubmissionFailedBadUserInput.name?(t.registerGroupedErrors(r),t.view.setFocusOnFirstError()):r.name===or.formValidationFailed.name&&t.view.setFocusOnFirstError()}}},this.sortError=function(e){if(e.type===q.formValidation){var r=e;if(!(null===r.errors||r.errors.length<=1)){var n=t.model.getCurrentPage(),i=[];t.addError(n,r,i),r.errors=i}}},this.addError=function(e,r,n){if(null!==e&&void 0!==e)for(var i=0;i<e.children.length;i++){var o=e.children[i];if(Dn(o)||En(o)){var a=o.getPropertyName(),s=t.getErrorByPropertyName(r.errors,a);null!==s&&n.push(s)}else if(Qr(o)){t.addError(o,r,n);var l=t.getErrorByDisplayId(r.errors,o.displayId);null!==l&&n.push(l)}}},this.getErrorByPropertyName=function(e,t){if(null===t||void 0===t)return null;for(var r=0;r<e.length;r++){var n=e[r];if(t===n.propertyName)return n}return null},this.getErrorByDisplayId=function(e,t){if(null===t||void 0===t)return null;for(var r=0;r<e.length;r++){var n=e[r];if(t===n.groupDisplayId)return n}return null},this.handlePropertyValidated=function(e){e&&(t.hideError(e.propertyName),t.deregisterGroupedErrors(e.propertyName))},this.setSubmitButtonState=function(e){var r=t.model.getSubmitButton()||{},n=r.accessibilityName,i=void 0===n?null:n,o=r.disabledAccessibilityName,a=void 0===o?null:o,s=r.displayId,l=void 0===s?null:s;t.view.setDisabledByDisplayId(l,e,{accessibilityName:i,disabledAccessibilityName:a})},this.publicEventHandler=function(e,r){switch(e){case z.error:t.handleErrorEvent(r);break;case z.propertyValidated:t.handlePropertyValidated(r);break;case z.pidlDownloading:case z.pageRendering:case z.inputSubmitting:case z.redirecting:case z.instanceDownloading:case z.restMethodInvoking:case z.propertyTokenizing:t.showHideBusy(!0);break;case z.pageRendered:for(var n in t.displaySettings.busyUntilInitialPageRendered=!1,t.pollingActions=mr.getPollingPidlActions(t.model.elements),t.pollingActions)t.pollingHandler(n,t.pollingActions[n]);mr.findRadioElements(t.model.elements).forEach((function(e){Dn(e)&&t.model.sendSelectionChangeEvent(e,e.defaultValue)})),t.pageRestActions=mr.getPagePidlActions(t.model.elements,j.restAction);var i=[];for(var n in t.pageRestActions)i.push(t.invokePidlAction(t.pageRestActions[n]));if(i.length>0){Promise.all(i).finally((function(){t.showHideBusy(!1)})).catch(t.displaySettings.propagateCallbackException?Mn:On);break}if(t.waitForSecureFields)break;case z.pageDisplayed:case z.pidlDownloaded:case z.instanceDownloaded:case z.restMethodInvoked:case z.inputSubmitted:t.showHideBusy(!1);break;case z.pageNavigated:t.updateView(Pe.pageNavigated);break;case z.propertySelected:t.view.markAsFilled(r.divId)}},this.privateEventHandler=function(e,r){switch(e){case G.modelUpdated:var n=r&&r.created?Pe.modelCreated:Pe.modelUpdated;t.updateView(n,null===r||void 0===r?void 0:r.skipHideBusyBlock);break;case G.dataUpdated:t.fillForm();break;case G.secureFieldLoadWaitStarted:t.showHideBusy(!0),t.waitForSecureFields=!0;break;case G.secureFieldLoadWaitEnded:t.showHideBusy(!1),t.waitForSecureFields=!1;break;case G.success:case G.failure:case G.gohome:t.showHideBusy(!1),t.reset();break;case G.propertyCreated:var i=r;t.view.checkAndMarkAsFilled(i.divId,i.controlId);break;case G.propertyUnselected:var o=r;t.view.checkAndMarkAsUnfilled(o.divId,o.id);break;case G.postMessageBusyTimerStarted:t.showHideBusy(!0);break;case G.postMessageBusyTimerEnded:t.showHideBusy(!1);break;case G.hideModalDialog:t.hideModalDialog();break;case G.submitting:t.setSubmitButtonState(!0);break;case G.submitted:t.setSubmitButtonState(!1);break;case G.updatePollAndMoveLast:var a=r.pollId||"";t.stopPoll(a),t.startPollingWithNextAction(a),t.model.moveToLastPage().catch(On)}},this.getPollingPidlActionContext=function(e){var t=e.context,r=t.href,n=t.responseResultExpression,i=t.responseActions,o=t.method;if(r&&n&&i&&o)return e.context},this.getPidlActionFromPollingResponse=function(e,t,r){if(!e||!t||!r)return null;var n=Rn.getPropertyValueByJPath(e,t);return Rn.getPropertyValueByJPath(r,n)},this.getModelPropertyValue=function(e){return t.model.getPropertyValue(e)},this.updateModelPropertyValue=function(e,r,n){return t.model.updatePropertyValue(t.model.getPropertyModelElement(e),r,n,!1)},this.updateView=function(e,r){t.view.initialize(t.eventHub,t.model,t.displaySettings,t);var n=t.model.getCurrentPage(),i=t.model.getCaptchaType(),o=t.model.getPidlInstanceContexts();t.model.secureFieldResolved||t.view.reset(),t.totalExpressCheckoutButtonElements=mr.findExpressCheckoutButtonElements(t.model.elements).length;var a=t.view.render({updateReason:e,focusTarget:t.focusTarget,captchaType:i,pageElement:n,viewEventHandler:t,displaySettings:t.displaySettings,eventHandler:t.eventHandler,eventHub:t.eventHub,pidlInstanceContexts:o,displayOptions:t.displayOptions,callbacks:t.callbacks,telemetryOptions:t.telemetryOptions,userContext:t.userContextIn,returnOptions:t.returnOptions,externalPrivateEventHandler:t.externalPrivateEventHandler,oneDSService:t.oneDSService,transformers:t.transformers,pidlPayload:t.pidlPayload,localDataSourceProviders:t.localDataSourceProviders,controlApiMap:t.controlApiMap});if(t.valueSetters=a.valueSetters,t.eventHub.pageRefreshed(),t.fillForm(e),t.view.restoreCaretPosition&&e!==Pe.pageNavigated&&t.view.restoreCaretPosition(),t.model.validateEditedProperties().catch(On),e===Pe.modelCreated)t.unseenErrors=[],t.errorPropertyGroups={};else{var s=t.unseenErrors;t.unseenErrors=[],r||t.showHideBusy(!1);for(var l=0;l<s.length;l++)t.showError(s[l]);e!==Pe.modelUpdated&&t.view.setFocusOnFirstError()}},this.hasSecureFields=function(e){var r,n=e.children;if(!n)return!1;for(var i=0,o=n;i<o.length;i++){var a=o[i];if(null===(r=null===a||void 0===a?void 0:a.isSecureProperty)||void 0===r?void 0:r.call(a))return!0;if(cn(a)&&t.hasSecureFields(a))return!0}return!1},this.getTimeoutPromise=function(e){return new Promise((function(r,n){var i=setTimeout((function(){n(new Error("Timeout"))}),e);t.getTimeoutPromise.id=i}))},this.clearTimeoutPromise=function(){var e;try{var r=null===(e=t.getTimeoutPromise)||void 0===e?void 0:e.id;r&&clearTimeout(r)}catch(n){}},this.createSecurePropertyLoadedPromise=function(e){t.securePropertyPromises.push(t.model.queueSecureFieldLoadedPromise(e))},this.resolveSecurePropertyLoadedPromise=function(e){t.model.resolveSecureFieldLoadedPromise(e)},this.createSecurePropertyInitCompletedPromise=function(e){t.securePropertyInitCompletedPromises.push(t.model.queueSecureFieldInitCompletedPromise(e))},this.getSecurePropertyLoadedPromises=function(){return t.securePropertyPromises},this.getSecurePropertyInitCompletedPromises=function(){return t.securePropertyInitCompletedPromises},this.extractStylesFromStylesheet=function(e){for(var r=document.styleSheets,n=".".concat(T.errorStroke),i=".".concat(T.secureProperty),o=0;o<r.length;o++){var a=r[o];try{for(var s=a.cssRules||a.rules,l=0;l<s.length;l++){var d=s[l];if(d instanceof CSSStyleRule)for(var u=d.selectorText.split(","),c=0;c<u.length;c++){var p=u[c].trim();p.includes(".errorStroke")||p.includes(n)?e.push(p+"{ "+d.style.cssText+" }"):p.includes(i)&&(p=p.replace(i,""),e.push(p+"{ "+d.style.cssText+" }"))}}}catch(m){t.eventHub.styleSheetError(m,null===a||void 0===a?void 0:a.href)}}},this.computeSecurePropertyStyles=function(e,r){var n=[];r&&0===Object.keys(r).length?t.extractStylesFromStylesheet(n):r&&t.computeStylesFromHardCodedStyles(r,n),t.model.computedStyles.style[e]=n},this.computeStylesFromHardCodedStyles=function(e,t){var r=Object.keys(e.textFieldStyles).map((function(t){return"".concat(t,":").concat(e.textFieldStyles[t])})).join(";");t.push('input[type="text"]{'+r+"}");var n=Object.keys(e.fieldGroupNormalStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupNormalStyles[t])})).join(";");t.push(".normalClass{"+n+"}");var i=Object.keys(e.fieldGroupFocusStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupFocusStyles[t])})).join(";");t.push(".focusClass{"+i+"}");var o=Object.keys(e.fieldGroupErrorStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupErrorStyles[t])})).join(";");t.push(".errorClass{"+o+"}");var a=Object.keys(e.fieldGroupFocusErrorStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupFocusErrorStyles[t])})).join(";");t.push(".focusErrorClass{"+a+"}")},this.getMultiPropertySelectorPossibleOptions=function(e){return t.model.getMultiPropertySelectorPossibleOptions(e)},this.inputHandler=function(e){t.model.showMaskedValues=!1;var r=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.caretPosition&&e.caretPosition.id;var n=ln(e.propertyElement)||$r(e.propertyElement)?ge.finished:ge.editing;t.model.updatePropertyValue(e.propertyElement,r,n,t.model.showMaskedValues).catch(On),t.view.updateDisplayValue&&t.view.updateDisplayValue(e.id,e.propertyElement,r,e.caretPosition),t.view.updatePrefillControls()},this.focusoutHandler=function(e){var r=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,r,ge.finished,t.model.showMaskedValues).catch(On),t.view.updatePrefillControls(),t.eventHub.propertyUnselected(e.id,e.propertyElement.getPropertyName(),e.divId)},this.dropdownSelectHandler=function(e){var r=e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,r,ge.editing,t.model.showMaskedValues).catch(On),t.view.updatePrefillControls()},this.buttonClickHandler=function(e){t.eventHub.click(e.id),t.model.invokePidlAction(e.pidlAction,e).catch(t.displaySettings.propagateCallbackException?Mn:On)},this.invokePidlAction=function(e){return t.model.invokePidlAction(e).catch(t.displaySettings.propagateCallbackException?Mn:On)},this.iFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then((function(){t.eventHub.postMessageTimeoutHandleSuccess(e.type)})).catch((function(){t.eventHub.postMessageTimeoutHandleFailure("specified client action is not successful. clientAction type: "+e.type)}))},this.challengeiFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then((function(){})).catch((function(){}))},this.postSecureFieldMessage=function(e,r,n){return t.model.postSecureFieldMessage(e,r,n)},this.secureIFrameOnLoadHandler=function(e){t.resolveSecurePropertyLoadedPromise(e.id)},this.getClientSetting=function(e){return t.model.getClientSetting(e)},this.postChallengeIframeMessage=function(e){return t.model.postChallengeiFrameMessage(e)},this.secureFieldMessageHandler=function(e){var r=xn.getHostName(An.getServiceEndpoint(An.virtualEndpoints.securePx.endpoint));xn.getHostName(e.origin)===r&&e&&e.data&&e.data.source===We.secureFieldMessageSource&&t.model.handleSecureFieldMessage(e)},this.expressCheckoutButtonLoadHandler=function(e,r,n){t.model.handleExpressCheckoutButtonIframeLoaded(e,r,n)},this.expressCheckoutButtonIsEligible=function(e,r){if(t.expressCheckoutButtonEligibilityStatus[e]=r,Object.keys(t.expressCheckoutButtonEligibilityStatus).length===t.totalExpressCheckoutButtonElements){var n=[];for(var i in t.expressCheckoutButtonEligibilityStatus)t.expressCheckoutButtonEligibilityStatus[i]&&n.push(i);t.eventHub.expressCheckoutReady(n)}},this.expressCheckoutButtonMessageHandler=function(e){var r=xn.getHostName(An.getServiceEndpoint(An.virtualEndpoints.staticResources.endpoint));xn.getHostName(e.origin)===r&&e&&e.data&&t.model.handleExpressCheckoutButtonMessage(e)},this.iFrameMessageHandler=function(e){var r=xn.getHostName(An.getServiceEndpoint(An.virtualEndpoints.pifd.endpoint)),n=xn.getHostName(An.getServiceEndpoint(An.virtualEndpoints.pifdBackend.endpoint)),i=xn.getHostName(e.origin);if(t.eventHub.postMessageReceived(i,r,e.data&&e.data.length),i===r||i===n){var o=xn.parseJSON(e.data),a=o.succeeded?o.value:null;a?t.model.handleClientAction(a,null,S.iFrameMessageHandler).then((function(){t.eventHub.postMessageHandleSuccess(a.type)}),(function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+a.type)})):t.eventHub.postMessageHandleFailure("clientAction is not specified")}},this.challengeiFrameMessageHandler=function(e){var r=xn.getHostName(An.getServiceEndpoint(An.virtualEndpoints.challengeUI.endpoint));if(xn.getHostName(e.origin)===r){var n=xn.parseJSON(e.data),i=n.succeeded&&e.type in ft?n.value:null;i?t.model.handleClientAction(i,null,S.iFrameMessageHandler).then((function(){t.eventHub.postMessageHandleSuccess(i.type)}),(function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+i.type)})):t.eventHub.postMessageHandleFailure("clientAction is not specified"),"message"===e.type&&e.data in Ze&&t.model.handleChallengeiFrameMessage(e)}},this.iFrameBusyTimerStartedHandler=function(e){t.eventHub.postMessageBusyTimerStarted("Busy started for timer ".concat(e))},this.iFrameBusyTimerEndedHandler=function(e){t.eventHub.postMessageBusyTimerEnded("Busy ended for timer ".concat(e))},this.hyperlinkClickHandler=function(e){var r=dr.getRedirectionService(),n=e.pidlAction,i=!1;switch(n.type){case j.redirect:var o=t.model.getLinkActionUrl(n.context,!1);if(!(i=t.eventHub.navigate(e.id,o,!0,n.context,null))&&r)return r.redirect(o),!0;break;case j.navigate:default:if(!(i=t.eventHub.navigate(e.id,n.context,!1,null,n.dest))&&r)return!r.openInNewTab(n.context)}return!i},this.captchaHyperlinkClickHandler=function(e,r,n){t.updateModelPropertyValue(e,r,n).catch(On)},this.updatePrefillValue=function(e,r){return!0===r?t.model.setCurrentDataIndex(e,0):!1===r?t.model.setCurrentDataIndex(e,-1):t.model.setCurrentDataIndex(e,r),t.model.validateEditedProperties()},this.prefillChangeHandler=function(e){var r=e.type&&e.type===M.checkBox;r?e.val?t.model.setCurrentDataIndex(e.pidlIdentity,0):t.model.setCurrentDataIndex(e.pidlIdentity,-1):t.model.setCurrentDataIndex(e.pidlIdentity,e.val),t.fillForm(Pe.prefillChanged),r||t.model.validateEditedProperties().catch(On)},this.propertySelectedHandler=function(e){t.eventHub.propertySelected(e.id,e.propertyName,e.divId)},this.propertyUnselectedHandler=function(e){t.eventHub.propertyUnselected(e.id,e.propertyName,e.divId)},this.postMessageToChildIFrames=function(e){return t.view.postMessageToChildIFrames(e)},this.pollingHandler=function(e,r){if(!r)return!1;t.pollingTimersAndCounters[e]={pollingTimer:null,pollingCounter:0};var n=t.getPollingPidlActionContext(r);if(!n)return!1;var i=n.method,o=n.payload,a=n.headers,s=n.interval,l=void 0===s?je.Default:s,d=n.responseResultExpression,u=n.responseActions,c=n.maxPollingAttempts,p=n.checkPollingTimeOut,m=n.fetchConfig,f=$n.getHttpHeaders(t.eventHub,t.userContext,a),y=Ct.getSubmitUrl(t.model.operationType,t.userContext,n,t.model.modelData.getId()),h=y.virtualEndpoint,g=h.operation,v=h.description,P=function(e,r){clearInterval(t.pollingTimersAndCounters[r].pollingTimer),t.pollingTimersAndCounters[r].pollingCounter=0,delete t.pollingTimersAndCounters[r],t.eventHub.pollingEnded(r),t.eventHub.failure(e)};return t.pollingTimersAndCounters[e].pollingTimer=setInterval((function(){var n=null;if(i===ke.Get)t.eventHub.pollingStarted(e),n=$n.get(t.eventHub,y.url,f,t.model.operationType,g,v,m);else if(i===ke.Post)t.eventHub.pollingStarted(e),n=$n.post(t.eventHub,!0,y.url,f,JSON.stringify(o),null,null,t.model.operationType,g,v,!1,m);else{if(i!==ke.Put){var a=new ir.unexpectedError(or.unableToSetupPolling);return P(a,e),!1}t.eventHub.pollingStarted(e),n=$n.put(t.eventHub,!0,y.url,f,JSON.stringify(o),null,null,t.model.operationType,g,v,!1,m)}if(null===n){a=new ir.unexpectedError(or.unableToSetupPolling);return P(a,e),!1}n.then((function(n){if(p&&t.pollingTimersAndCounters[e].pollingCounter++>c){var i=new ir.unexpectedError(or.pollingTimedOut);return P(i,e),!1}var o=t.getPidlActionFromPollingResponse(n,d,u)||r;if(o.type!==j.poll){if(clearInterval(t.pollingTimersAndCounters[e].pollingTimer),t.pollingTimersAndCounters[e].pollingCounter=0,delete t.pollingTimersAndCounters[e],t.eventHub.pollingEnded(e),o.type===j.moveNextAndPoll)return t.model.moveNextPage().catch(On),t.pollingActions[e]=r.nextAction,t.pollingHandler(e,r.nextAction);if(o.type===j.updatePoll)return t.pollingActions[e]=r.nextAction,t.pollingHandler(e,r.nextAction);if(o.type===j.handleFailure)return t.eventHub.failure(new ir.unexpectedError(or.failurePollingResponseReturned,[JSON.stringify(n)])),!1;n&&cr.isPrimaryResource(t.model.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.model.modelData.setPrimaryResourceResponse(n)}if(!(n&&n.clientAction&&o&&o.type===j.success))return t.model.invokePidlAction(o);t.model.handleClientAction(n.clientAction).then((function(){t.eventHub.pollClientActionSuccess(n.clientAction.type)})).catch((function(){t.eventHub.pollClientActionFailure("specified client action is not successful. clientAction type: "+n.clientAction.type)}))}),(function(t){return P(t,e),!1}))}),l),!0},this.testHookPublicEventHandler=function(e,r){t.publicEventHandler(e,r)},this.testHookPrivateEventHandler=function(e,r){t.privateEventHandler(e,r)},this.testHookGetUnseenErrors=function(){return t.unseenErrors},this.testHookSetUnseenErrors=function(e){t.unseenErrors=e},this.testHookFillForm=function(e,r){t.displaySettings=e,t.fillForm(r)},this.testHookGetErrorPropertyGroups=function(){return t.errorPropertyGroups},this.testHookRegisterGroupedErrors=function(e){t.registerGroupedErrors(e)},this.testHookDeregisterGroupedErrors=function(e,r){t.deregisterGroupedErrors(e,r)},this.testHookSetShowMaskedFlag=function(e){t.model.showMaskedValues=e},this.testHookGetRenderer=function(){return t.view},this.testHookUpdateView=function(e){t.updateView(e)},this.testHookSetFocusTarget=function(e){t.focusTarget=e},this.eventHub=e.eventHub,this.displaySettings=e.displaySettings,this.model=e.model,this.view=e.view,this.userContext=e.userContext,this.userContextIn=e.userContextIn,this.returnOptions=e.returnOptions,this.eventHandler=e.eventHandler,this.displayOptions=e.displayOptions,this.callbacks=e.callbacks,this.telemetryOptions=e.telemetryOptions,this.externalPrivateEventHandler=e.externalPrivateEventHandler,this.oneDSService=e.oneDSService,this.transformers=e.transformers,this.pidlPayload=e.pidlPayload,this.localDataSourceProviders=e.localDataSourceProviders,this.controlApiMap=e.controlApiMap,e.iFrameMessageHandler&&(this.iFrameMessageHandler=e.iFrameMessageHandler),this.eventHub.addPublicEventHandler((function(e,r){t.publicEventHandler(e,r)})),this.eventHub.addPrivateEventHandler((function(e,r){t.privateEventHandler(e,r)})),this.view.initialize(this.eventHub,this.model,this.displaySettings,this),this.model.setViewHandler(this.view)}return e.prototype.getPidlInstanceControls=function(){return this.view.getPidlInstanceControls()},e}(),Ai=new function(){var e=this;this.env="prod",this.envs=["int","ppe","prod","feature","aircapi"],this.get=function(){return e.env},this.set=function(t){var r=Rn.toLowerCase(t);Rn.contains(e.envs,r)&&(e.env=r,An.setEnv(e.env))},this.getAll=function(){return e.envs}},Hi=new function(){this.get=function(){return"2.9.0"}},Oi=function(){var e=this;this.applicationInsightsInstance=null,this.cvPlugin=null,this.cvInstance=null,this.cvInitialValue=null,this.userConsentDetailsCallback=function(){return{Advertising:!1,Analytics:!1,Required:!0,SocialMedia:!1}},this.initOneDsObjects=function(){if(!e.applicationInsightsInstance)try{e.cvPlugin||e.initCVPlugin(),dr.getOneDSService()&&(e.applicationInsightsInstance=dr.getOneDSService().getApplicationInsights());var t={instrumentationKey:"4127950a47f84a01a75e9a7d49d79f14-b56cc96f-0faa-4455-912a-6b8df93eeac5-6769",extensions:[e.cvPlugin],extensionConfig:[],propertyConfiguration:{gpcDataSharingOptIn:!1,callback:{userConsentDetails:e.userConsentDetailsCallback}}};e.applicationInsightsInstance&&Rn.isFunction(e.applicationInsightsInstance.initialize)&&e.applicationInsightsInstance.initialize(t,[])}catch(r){dr.getLoggingService()&&dr.getLoggingService().logError("1DS Error : Error when attempting to initialize 1DS.",r)}},this.initCVPlugin=function(){if(!e.cvPlugin){dr.getOneDSService()&&(e.cvPlugin=dr.getOneDSService().getCorrelationVectorPlugin(e.cvInitialValue));var t=void 0;e.cvPlugin&&Rn.isFunction(e.cvPlugin.getCv)&&(t=e.cvPlugin.getCv()),t&&Rn.isFunction(t.isInit)&&t.isInit()?e.cvInstance=t:(dr.getOneDSService()&&(e.cvPlugin=dr.getOneDSService().getCorrelationVectorPlugin()),e.cvPlugin&&Rn.isFunction(e.cvPlugin.getCv)&&(e.cvInstance=e.cvPlugin&&e.cvPlugin.getCv()))}},this.getCVInstance=function(){return e.cvInstance||e.initCVPlugin(),e.cvInstance},this.reset=function(){e.cvPlugin=null,e.cvInstance=null,e.applicationInsightsInstance=null},this.setUserConsentDetailsCallback=function(t){t&&(e.userConsentDetailsCallback=t)},this.getApplicationInsights=function(){return e.applicationInsightsInstance||e.initOneDsObjects(),e.applicationInsightsInstance},this.writeEvent=function(t,r,n){try{var i=e.getApplicationInsights();i&&Rn.isFunction(i.trackEvent)?i.trackEvent({name:t,baseData:r},n):dr.getLoggingService()&&dr.getLoggingService().logError("1DS Error : ApplicationInsights is not correctly initialized")}catch(o){dr.getLoggingService()&&dr.getLoggingService().logError("1DS Error : Error when attempting to track event with 1DS.",o)}},this.getIncrementedCV=function(){try{var t=e.getCVInstance();return t&&Rn.isFunction(t.increment)&&t.increment()}catch(r){dr.getLoggingService()&&dr.getLoggingService().logError("1DS Error : There was an issue with incrementing the correlation vector",r)}},this.getCVValue=function(){try{var t=e.getCVInstance();return t&&Rn.isFunction(t.getValue)&&t.getValue()}catch(r){dr.getLoggingService()&&dr.getLoggingService().logError("1DS Error : There is an issue with correlation vector getValue function",r)}},this.initCV=function(t){try{t&&(e.cvInitialValue=t,e.reset())}catch(r){dr.getLoggingService()&&dr.getLoggingService().logError("1DS Error : There is an issue with Initializing CV",r)}},this.testHookReset=function(){e.applicationInsightsInstance=null,e.cvInstance=null}},Mi=new Oi,Ni=function(e,t){var r=this;this.partnerContext={},this.enableLogging=!0,this.enableConsoleLogging=!0,this.enablePrivateEventConsoleLogging=!1,this.enableUnhandledRejectionLogging=!0,this.sdkVersion=Hi.get(),this.env=Ai.get(),this.sessionId=xn.guid(),this.telemetryResource={resourceType:"",parameters:{id:null}},this.userConsentDetailsCallback=null,this.updateResourceInfo=function(e){var t;if(e){if(e.parameters)for(var n in e.parameters)try{e.parameters.hasOwnProperty(n)&&(r.telemetryResource.parameters=v(v({},r.telemetryResource.parameters),((t={})[n]=e.parameters[n],t)))}catch(i){}e.id&&(r.telemetryResource.parameters.id=e.id),e.resourceType&&(r.telemetryResource.resourceType=e.resourceType)}},this.update=function(e,t){r.operationType=e,t&&r.updateResourceInfo(t)},this.trackNewOperation=function(e,t){r.operationId=xn.guid(),r.update(e,t)},e&&(this.partnerContext=e.contextData||{},this.enableLogging=!e.disableLogging,this.enableConsoleLogging=!e.disableConsoleLogging,this.enablePrivateEventConsoleLogging=!!e.enablePrivateEventConsoleLogging,this.enableUnhandledRejectionLogging=!e.disableUnhandledRejectionLogging,this.telemetryOverrides=e.overrides,this.customTelemetryFrameworkWindowNamespace=e.customTelemetryFrameworkWindowNamespace,this.partnerContext&&this.partnerContext.cvInitValue&&Mi&&Mi.initCV(this.partnerContext.cvInitValue),e.userConsentDetailsCallback&&(this.userConsentDetailsCallback=e.userConsentDetailsCallback),Mi.setUserConsentDetailsCallback(this.userConsentDetailsCallback));var n=this.partnerContext,i=n.sessionId,o=n.cvInitValue;!i&&o&&(i=o.substr(0,o.indexOf(".")),this.partnerContext.sessionId=i),!i&&this.sessionId&&(this.partnerContext.sessionId=this.sessionId),this.sdkViewType=t},Bi=function(){function e(){}return e.prototype.logError=function(e,t){var r="";if(t)try{r=JSON.stringify(t)}catch(i){r=""}var n=e+"= "+r;console.error(n)},e.prototype.logWarning=function(e){console.warn(e)},e.prototype.logMessage=function(e){console.log(e)},e}(),Vi=function(){var e=this;this.createUserDataPropertyValue=function(e,t,r,n,i){if(t.indexedOn&&t.possible_values){var o=r.getPropertyValue(t.indexedOn,!1);if(o&&t.possible_values[o])return t.possible_values[o]}var a=r.getPropertyValue(sr.getDisplayPropertyName(t,e),n,i);return a=void 0===a?xn.getFormatStringExpressionValue(t.default_value,{modelData:r}):a,t.type===Ie.bool&&(a=Rn.boolify(a)),a},this.createUserSecureInputDataInternal=function(t,r,n,i,o,a,s){var l=t.data_description,d=[];for(var u in l){var c=l[u];if(Ot(c)){var p=c&&c.length&&c[0];if(p){var m=e.createUserSecureInputDataInternal(p,r,n,i,o,a,s);d.push(m)}}else{var f=r.getModelDataProperty(u);if(f&&f.modelElement&&f.modelElement.isSecureProperty()){c.token_set&&c.token_set.startsWith(We.tokenizationValuePrefix)&&(c.token_set=c.token_set.replace(We.tokenizationValuePrefix,""));var y=f.modelElement.prepareForSubmit(c.token_set).then((function(e){var t=l[e.propertyName];t.token_set=We.tokenizationValuePrefix+t.token_set,o[e.propertyName]=e.value}));d.push(y)}}}return Promise.all(d).then((function(){}))},this.createUserInputDataInternal=function(t,r,n,i,o,a){var s,l={},d=t.data_description;for(var u in d){var c=d[u];if(Ot(c)){var p=c&&c.length&&c[0];p&&(l[u]=e.createUserInputDataInternal(p,r,n,i,o,a))}else{if(c.displayOnly&&!a||i===ct.update&&!c.is_updatable)continue;if(c.type===Ie.hidden){l[u]||(n[u]?l[u]=n[u]:l[u]=xn.getFormatStringExpressionValue(c.default_value,{modelData:r}));continue}var m=e.createUserDataPropertyValue(u,c,r,o,a);m&&(o&&c.type===Ie.returnObject?(Rn.isObject(m)||((s={})[u]=m,m=s),l=xn.extend({},l,m)):l[u]=e.getValueInDataType(m,o,c))}}return l},this.getValueInDataType=function(e,t,r){if(t){if(r.type===Ie.number){var n=Number(e);return isNaN(n)?e:n}if(r.type===Ie.bool){if(!Rn.isBool(e))return Rn.equalsIgnoreCase(e,"true")}else if(r.type===Ie.object&&!Rn.isObject(e))try{return JSON.parse(e)}catch(i){return e}}return e},this.canSubmitUserInputDataInternal=function(t,r,n){var i=t.data_description;for(var o in i){var a=i[o];if(Ot(a)){var s=a&&a.length&&a[0];if(s&&(e.canSubmitUserInputDataInternal(s,r?r[o]:r,n),n.canSubmit))return}else if(a.propertyType===Ce.userData&&(n.noUserInputData=!1,!a.is_optional||r&&r[o]))return void(n.canSubmit=!0)}},this.createUserInputData=function(t,r,n,i,o,a){return e.createUserInputDataInternal(t,r,n,i,o,a)},this.createUserSecureInputData=function(t,r,n,i,o,a){var s={};return e.createUserSecureInputDataInternal(t,r,n,i,s,o,a).then((function(){return s}))},this.canSubmitUserInputData=function(t,r){var n={canSubmit:!1,noUserInputData:!0};return e.canSubmitUserInputDataInternal(t,r,n),n.canSubmit||n.noUserInputData}},Li=new Vi,Ui=new function(){var e=this;this.setPropertyValueOfInputData=function(t,r,n){for(var i in t){if(i===r){t[i]=n;break}Rn.isObject(t[i])&&e.setPropertyValueOfInputData(t[i],r,n)}},this.checkForValidTransformationTarget=function(e,t){var r=e.transformation,n=void 0===r?{}:r;return t===C.forSubmit&&Rn.boolify(n.forSubmit)||t===C.forDisplay&&Rn.boolify(n.forDisplay)},this.transformUserInputDataFromService=function(e,t,r,n,i,o,a,s,l){var d={value:i,pidlIdentity:t.identity,propertyName:r,transformationTarget:n},u=$n.getDefaultHttpHeaders(e);u[ee.msFlight]="pxpidl",$n.post(e,!0,Ct.buildUrl(An.getServiceEndpoint(An.virtualEndpoints.transformation.endpoint),[o]),u,JSON.stringify(d),(function(e){var t;t=Rn.equalsIgnoreCase(e.status,w.Passed)?{status:w.Passed,transformedValue:e.transformedValue}:{status:w.Fail,errorCode:e.errorCode,errorMessage:e.errorMessage},s(t)}),(function(e){s({status:w.Error,mode:mt.service,errorMessage:e.errorMessage})}),a,An.virtualEndpoints.transformation.operation,An.virtualEndpoints.transformation.description,!0,l).catch(On)},this.transformPropertyInternal=function(t,r,n,i,o,a,s,l){var d=!1,u=r.data_description,c=function(c){var p=u[c];if(Ot(p)){var m=p.length&&p[0];m&&(d=e.transformPropertyInternal(t,m,n,i,o,a,(function(e){s(e)}),l)||d)}else if(c===n){var f=sr.getPropertyValueFromInputData(i,c);if(e.transformPropertyFromPropertyDescription(t,r,c,p,o,f,a,(function(t){t.status===w.Passed&&(e.setPropertyValueOfInputData(i,c,t.transformedValue),l()),t.status!==w.Error&&t.status!==w.Fail||s(new Error(t.errorMessage))})),e.checkForValidTransformationTarget(p,o))return{value:!0}}};for(var p in u){var m=c(p);if("object"===typeof m)return m.value}return d},this.transformUserInputDataInternal=function(t,r,n,i,o,a,s,l){var d=r.data_description,u=0,c=!1,p=l?n:d,m=function(p){var m=d[p];if(Ot(m)){var f=m&&m.length&&m[0];f&&(u++,c=e.transformUserInputDataInternal(t,f,n[p],i,(function(e){o(e)}),(function(){0===--u&&c&&a&&a()}),s,l)||c)}else{if(s===ct.update&&!m.is_updatable)return"continue";var y=sr.getPropertyValueFromInputData(n,p);if(!y){if(m.displayOnly||l)return"continue";m.is_optional||o(new Error(p+" is a required property per the pidlDocument but is missing in the userInputData object passed in."))}(c=e.transformPropertyFromPropertyDescription(t,r,p,m,i,y,s,(function(t){t.status===w.Passed&&e.setPropertyValueOfInputData(n,p,t.transformedValue),t.status!==w.Error&&t.status!==w.Fail||o(new Error(t.errorMessage)),t.mode===mt.service&&0===--u&&a&&a()})))&&u++}};for(var f in p)m(f);return 0===u&&a&&a(),u>0},this.transformPropertyFromPropertyDescription=function(t,r,n,i,o,a,s,l){var d,u={},c=!1;if(!a)return!1;if(i.transformation){var p=null;if(o===C.forSubmit){if(!i.transformation.forSubmit)return l(u),c;p=i.transformation.forSubmit}else{if(o!==C.forDisplay)throw new Error(n+"has invalid transformation type.");if(!i.transformation.forDisplay)return l(u),c;p=i.transformation.forDisplay}var m=p.inputregex,f=p.transformregex;if(m){if(f){var y=new RegExp(m),h=a.replace(y,f);u={status:w.Passed,transformedValue:JSON.parse('"'+h+'"')}}u.mode=mt.regex}else p.url&&(c=!0,e.transformUserInputDataFromService(t,r,n,o,a,p.url,s,(function(e){(u=e).mode=mt.service,l(u)}),null===(d=null===i||void 0===i?void 0:i.dataProtection)||void 0===d?void 0:d.fetchConfig))}return c||l(u),c},this.getUserDisplayDataPartial=function(t,r,n,i,o,a){var s=Rn.deepCopy(n);e.transformUserInputDataInternal(t,r,s,C.forDisplay,i,(function(){o(s)}),a,!0)},this.transformUserInputData=function(t,r,n,i,o,a){e.transformUserInputDataInternal(t,r,n,C.forSubmit,i,o,a)},this.transformUserInputPropertyForDisplay=function(t,r,n,i,o,a,s){e.transformPropertyInternal(t,r,n,i,C.forDisplay,o,a,s)||a(Error("The property with property Name:"+n+" does not have valid display transform in data description"))}},ji=function(){function e(){var e=this;this.getParentOfProperty=function(t,r){for(var n in r){if(n===t)return r;if(Rn.isObject(r[n])){var i=e.getParentOfProperty(t,r[n]);if(i)return i}}},this.areIdentitiesEqual=function(e,t){if(!e||!t)return!1;if(Rn.keyCount(e)!==Rn.keyCount(t))return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0},this.resolveInfoDescriptionId=function(t,r){return e.invoke((function(e){try{var n=ar.resolveInfoDescriptionId(t,r);e.resolve(n)}catch(i){e.reject(i)}}))},this.getFirstPidlWithValidDefaultKey=function(e,t){return ar.getFirstPidlWithValidDefaultKey(e,t)},this.createUserInputData=function(e,t,r,n,i,o){return Li.createUserInputData(e,t,r,n,i,o)},this.createUserSecureInputData=function(e,t,r,n,i,o){return Li.createUserSecureInputData(e,t,r,n,i,o)}}return e.prototype.invoke=function(e){return new Promise((function(t,r){e({resolve:t,reject:r})}))},e.prototype.getUserDisplayDataPartial=function(e,t,r,n){return this.invoke((function(i){try{var o=t.getResolvedOrAllPidlDocs(),a=sr.getFirstResolvedPidlDocument(o,r);null==a&&(a=o[0]),Ui.getUserDisplayDataPartial(e,a,r,(function(e){i.reject(e)}),(function(e){i.resolve(e)}),n)}catch(s){i.reject(s)}}))},e.prototype.transformUserInputData=function(e,t,r,n){return this.invoke((function(i){try{Ui.transformUserInputData(t,e,r,(function(e){i.reject(e)}),(function(){i.resolve()}),n)}catch(o){i.reject(o)}}))},e.prototype.transformUserInputPropertyForDisplay=function(e,t,r,n,i){var o=this;return this.invoke((function(a){var s=!1;t.propertyTransforming(r);try{var l=o.getParentOfProperty(r,n),d={};d[r]=l[r];var u=sr.getFirstResolvedPidlDocument(e,n);null==u&&(u=e[0]),Ui.transformUserInputPropertyForDisplay(t,u,r,d,i,(function(e){s=!0,a.reject(e)}),(function(){t.propertyTransformed(r),l[r]=d[r],a.resolve()})),s||(t.propertyTransformed(r),l[r]=d[r],a.resolve())}catch(c){a.reject(c)}}))},e.prototype.canSubmitUserInputData=function(e,t){return Li.canSubmitUserInputData(e,t)},e.prototype.getPidlSubmitOrder=function(e){return ar.getPidlSubmitOrder(e)},e}();function _i(e,t){return $n.get(e,t.url,t.headers,t.pidlOperation,t.virtualEndpoint.operation,t.virtualEndpoint.description,t.fetchConfig)}var zi=function(){function e(){}return e.prototype.getPidlDocument=function(e,t,r){return r?new Promise((function(e,n){r(t,(function(t){e(t)}),(function(e){n(e)}))})):_i(e,t)},e.prototype.getInstance=function(e,t){return e.instanceDownloading(t.url),_i(e,t)},e.prototype.submitPidlDocument=function(e,t,r,n){return e.inputSubmitting(t.url),new Promise((function(i,o){$n.invokeFetch(e,!0,t.method,t.url,t.headers,t.method.toUpperCase()===ke.Get||t.method.toUpperCase()===ke.Delete?null:JSON.stringify(t.data),(function(r){n&&(r=n(t,r));var o="None";!Rn.isString(r)&&Nt(r)&&r.clientAction&&(o=r.clientAction.type),e.inputSubmitted(o),i(r)}),(function(e){o(e)}),r,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(i)}))},e.prototype.invokeRestMethod=function(e,t,r){return new Promise((function(n,i){$n.invokeFetch(e,!0,t.method,t.url,t.headers,t.data,(function(e){n(e)}),(function(e){i(e)}),r,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(n)}))},e.prototype.getRequestInstance=function(e,t,r,n,i){var o=Ct.getResourceUrl(t,r);return{url:o.url,headers:$n.getHttpHeaders(e,r,null,o.template,null),virtualEndpoint:o.virtualEndpoint,pidlOperation:n,fetchConfig:i}},e}(),Gi=function(){function e(){this.cache=null,this.cache=new ri}return e.prototype.put=function(e,t,r,n){var i={pidlDocInfo:t,pidls:r,resolvedPidlIdentity:n};this.cache.put(e,i)},e.prototype.get=function(e){return this.cache.get(e)},e.prototype.remove=function(e){this.cache.remove(e)},e.prototype.removeResourceEntries=function(e){this.cache.removeIf((function(t){return t&&t.pidlDocInfo&&Rn.equalsIgnoreCase(t.pidlDocInfo.resourceType,e)}))},e}(),Ki=function(){function e(){}return e.prototype.redirect=function(e){window.location.replace(e),window.location.href=e},e.prototype.openInNewTab=function(e){return!(!window||!window.open)&&(window.open(e),!0)},e}(),Wi=function(){function e(e,t,r,n,i,o,a,s,l,d,u){var c=this;this.controlApiMap={},this.getInstanceControls=function(){var e=v({},c.viewEventHandler.getPidlInstanceControls());return e[c.displaySettings.instanceName]={moveNextPage:function(){return!!c.moveNextPage&&c.moveNextPage().result},submitPage:function(){return!!c.submitPage&&c.submitPage().result},validateProperties:function(){return c.validateProperties?c.validateProperties().result:Nn(!1)},movePrevPage:function(){return!!c.movePrevPage&&c.movePrevPage().result},moveToFirstPage:function(){return!!c.moveToFirstPage&&c.moveToFirstPage().result},cancel:function(){return!!c.cancel&&c.cancel().result},getSelectedResource:function(){return c.getSelectedResource?c.getSelectedResource().result:{}},getPidlPayload:function(){return c.getPidlPayload?c.returnUserInputData():Nn()},postMessageToChildIFrames:function(e){return!!c.postMessageToChildIFrames&&c.postMessageToChildIFrames(e).result}},c.apiSuccess(e,Nn())},this.addSecureFieldPreLoadIFrame=function(){try{if(!("undefined"!==typeof document))return;c.eventHub.addSecureFieldPreLoadIFrameStarted();var e="secureFieldIFrame",t=Ct.buildUrl(An.getServiceEndpoint(An.virtualEndpoints.securePx.endpoint),["resources","securefield.html"]),r=document.createElement("iframe");r.id=e,r.name="preloadSecureFieldIFrame",r.style.display="none",r.setAttribute("sandbox",""),r.src=t;var n=document.getElementById(e);n?n.src=t:document.body&&document.body.appendChild(r),c.eventHub.addSecureFieldPreLoadIFrameCompleted()}catch(i){c.eventHub.addSecureFieldPreLoadIFrameFailed(xn.convertErrorToString(i))}},this.logConstructorCall=function(e,t,r,n,i){var o={userContext:Rn.boolify(e),returnOptions:Rn.boolify(t),eventHandler:Rn.boolify(r),displayOptions:Rn.boolify(n),telemetryOptions:Rn.boolify(i)},a={returnOptions:t,displayOptions:n,telemetryOptions:i};c.eventHub.apiCalled(be.constructor,o,a)},this.unhandledRejectionHandler=function(e){var t=e.reason&&e.reason.stack;t&&c.eventHub.error(new ir.unexpectedError(or.unhandledRejection,[t]))},this.handlePrivateEvent=function(e,t){try{switch(e){case G.stateChanged:t&&t.newState===ye.initialized&&c.telemetryContext.enableUnhandledRejectionLogging&&window.addEventListener("unhandledrejection",c.unhandledRejectionHandler);break;case G.failure:case G.success:case G.gohome:c.telemetryContext.enableUnhandledRejectionLogging&&window.removeEventListener("unhandledrejection",c.unhandledRejectionHandler)}}catch(r){}},this.canApiStart=function(e){var t=c.stateManager.canApiStart(e);return!!t.result||(c.eventHub.error(t.error),!1)},this.getChallengePidlInfo=function(e){var t={resourceType:"Challenge",parameters:Rn.deepCopy(e.piResourceInfo.parameters)};return t.parameters.piid=e.piResourceInfo.id,t.parameters.sessionId=e.sessionId,t.parameters.orderId=e.orderId,t},this.provisionWalletToken=function(e,t){var r={piFamily:null===t||void 0===t?void 0:t.family,piType:null===t||void 0===t?void 0:t.type,tokenReference:null===t||void 0===t?void 0:t.tokenReference,sessionData:e,paymentData:null===t||void 0===t?void 0:t.paymentData};return new Promise((function(e,t){var n,i={resourceType:x.WalletToken,parameters:{}},o=jt.getResourceEndpoint(i.resourceType),a=null===(n=Ct.getResourceUrl(i,c.userContext))||void 0===n?void 0:n.url;try{return $n.post(c.eventHub,!0,a,$n.getHttpHeaders(c.eventHub,c.userContext,void 0,o.template),JSON.stringify(r),(function(t){return e(t)}),(function(e){return t(e)}),ct.provisionWalletToken,o.operation,o.description,!0)}catch(s){t(s)}}))},this.handlePaymentAgentChallenge=function(e,t,r,n){var i,o;if(!(null===(o=null===(i=null===window||void 0===window?void 0:window.paymentAgent)||void 0===i?void 0:i.isReadyToPay)||void 0===o?void 0:o.call(i))){var a=new ir.invalidSetupError(or.invalidSetup);return c.eventHub.failure(a),c.apiFailure(!1)}var s=window.paymentAgent.handleChallenge(e,n).then((function(n){return n.tokenReference?c.provisionWalletToken(e,n).then((function(n){return r&&(r.current.style.display="flex",r.current.attributes["aria-hidden"]="false"),t.parameters.paymentSessionOrData=v(v({},e),n),c.renderPidlPageInternal(t)})):c.renderPidlPageInternal(t)})).catch((function(e){if("cancel"===(null===e||void 0===e?void 0:e.type)||"AbortError"===(null===e||void 0===e?void 0:e.name)||"CANCELED"===(null===e||void 0===e?void 0:e.statusCode))return c.model.gohome(),Nn();var t={error:e,stack:null===e||void 0===e?void 0:e.stack,message:null===e||void 0===e?void 0:e.message},r=void 0;return r="failed to open window"===e?new ir.failedToOpenWindowError(or.failedToOpenWindow,JSON.stringify(t)):new ir.paymentMethodFailureError(or.paymentMethodFailure,JSON.stringify(t)),c.eventHub.failure(r),c.apiFailure(r)}));return c.apiSuccess(!0,s)},this.invokeResourceAction=function(e){if(c.telemetryContext.trackNewOperation(L.invokeResourceAction),c.eventHub.apiCalled(be.invokeResourceAction),!c.canApiStart(be.invokeResourceAction)||!e||!ei.validateResourceActionParams(c.eventHub,e))return c.eventHub.apiReturned(be.invokeResourceAction,!1),c.apiFailure(!1);var t=e.resourceActionContext,r={result:null,promise:Nn(null)};switch(t.action){case _.addResource:case _.addAddress:c.telemetryContext.update(L.add,t.pidlDocInfo),r=c.addResourceInternal(ct.add,t.pidlDocInfo,e.prefillData,e.options);break;case _.collectResourceInfo:c.telemetryContext.update(L.renderPidlPage,t.pidlDocInfo),r=c.renderPidlPageInternal(t.pidlDocInfo,e.options);break;case _.handleChallenge:c.telemetryContext.update(L.verify,t.resourceInfo),r=c.handleChallengeInternal(t.resourceInfo,e.options);break;case _.selectPaymentInstrument:case _.selectResource:c.telemetryContext.update(L.selectResource,t.pidlDocInfo),r=c.selectInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case _.selectResourceType:c.telemetryContext.update(L.selectResourceType,t.pidlDocInfo),r=c.selectResourceTypeInternal(t.pidlDocInfo,e.options);break;case _.selectSingleResource:c.telemetryContext.update(L.selectSingleResource,t.pidlDocInfo),r=c.selectSingleInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case _.updateProfile:case _.updateResource:c.telemetryContext.update(L.update,t.pidlDocInfo||t.resourceInfo),r=c.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options);break;case _.deleteResource:c.telemetryContext.update(L.delete,t.pidlDocInfo||t.resourceInfo),r=c.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options,ct.delete);break;case _.searchTransactions:c.telemetryContext.update(L.searchTransactions,t.pidlDocInfo),r=c.addResourceInternal(ct.searchTransactions,t.pidlDocInfo,void 0,e.options)}return c.eventHub.apiReturned(be.invokeResourceAction,Rn.boolify(r.result),r.promise),r},this.addResourceInternal=function(e,t,r,n){if(!ei.validatePidlDocInfo(c.eventHub,t)||!ei.validateAddUpdateOrDeleteOptions(c.eventHub,n))return c.apiFailure(!1);c.displaySettings.secureFieldPreLoadingEnabled&&c.addSecureFieldPreLoadIFrame();var i=Ct.getPidlDocUrl(c.userContext,e,t);return c.apiSuccess(!0,c.getPidl(i,r,e,n,t))},this.addResource=function(e,t,r){if(c.telemetryContext.trackNewOperation(L.add,e),c.eventHub.apiCalled(be.addResource,{pidlDocInfo:Rn.boolify(e),prefillData:Rn.boolify(t),options:Rn.boolify(r)},{pidlDocInfo:e}),!c.canApiStart(be.addResource))return c.eventHub.apiReturned(be.addResource,!1),c.apiFailure(!1);var n=c.addResourceInternal(ct.add,e,t,r);return c.eventHub.apiReturned(be.addResource,n.result,n.promise),n},this.msRewardsInternal=function(e,t){if(!ei.validatePidlDocInfo(c.eventHub,t))return c.apiFailure(!1);var r=Ct.getPidlDocUrl(c.userContext,e,t);return c.apiSuccess(!0,c.getPidl(r,{},e,{},t))},this.redeemMSRewards=function(e){if(c.telemetryContext.trackNewOperation(L.redeemMSRewards,e),c.eventHub.apiCalled(be.redeemMSRewards,{pidlDocInfo:Rn.boolify(e)},{pidlDocInfo:e}),!c.canApiStart(be.redeemMSRewards))return c.eventHub.apiReturned(be.redeemMSRewards,!1),c.apiFailure(!1);var t=c.msRewardsInternal(ct.redeem,e);return c.eventHub.apiReturned(be.redeemMSRewards,t.result,t.promise),t},this.selectMSRewards=function(e){if(c.telemetryContext.trackNewOperation(L.selectMSRewards,e),c.eventHub.apiCalled(be.selectMSRewards,{pidlDocInfo:Rn.boolify(e)},{pidlDocInfo:e}),!c.canApiStart(be.selectMSRewards))return c.eventHub.apiReturned(be.selectMSRewards,!1),c.apiFailure(!1);var t=c.msRewardsInternal(ct.select,e);return c.eventHub.apiReturned(be.selectMSRewards,t.result,t.promise),t},this.searchTransactions=function(e){var t=e.pidlDocInfo,r=e.options;if(c.telemetryContext.trackNewOperation(L.searchTransactions,t),c.eventHub.apiCalled(be.searchTransactions,{pidlDocInfo:Rn.boolify(t),options:Rn.boolify(r)},{pidlDocInfo:t}),!c.canApiStart(be.searchTransactions))return c.eventHub.apiReturned(be.searchTransactions,!1),c.apiFailure(!1);var n=c.addResourceInternal(ct.searchTransactions,t,void 0,r);return c.eventHub.apiReturned(be.searchTransactions,n.result,n.promise),n},this.addPaymentInstrument=function(e,t,r){var n,i=v(v({},e),{resourceType:(null===e||void 0===e?void 0:e.resourceType)?null===(n=null===e||void 0===e?void 0:e.resourceType)||void 0===n?void 0:n.toString():"PaymentInstrument"});if(c.telemetryContext.trackNewOperation(L.addPaymentInstrument,i),c.eventHub.apiCalled(be.addPaymentInstrument,{pidlDocInfo:Rn.boolify(i),prefillData:Rn.boolify(t),options:Rn.boolify(r)},{pidlDocInfo:i}),!c.canApiStart(be.addPaymentInstrument))return c.eventHub.apiReturned(be.addPaymentInstrument,!1),c.apiFailure(!1);var o=c.addResourceInternal(ct.add,i,t,r);return c.eventHub.apiReturned(be.addPaymentInstrument,o.result,o.promise),o},this.applyResource=function(e,t,r){if(c.telemetryContext.trackNewOperation(L.applyResource,e),c.eventHub.apiCalled(be.applyResource,{pidlDocInfo:Rn.boolify(e),prefillData:Rn.boolify(t),options:Rn.boolify(r)},{pidlDocInfo:e}),!c.canApiStart(be.applyResource))return c.eventHub.apiReturned(be.applyResource,!1),c.apiFailure(!1);var n=c.addResourceInternal(ct.apply,e,t,r);return c.eventHub.apiReturned(be.applyResource,n.result,n.promise),n},this.replaceResource=function(e,t,r){if(c.telemetryContext.trackNewOperation(L.replace,e),c.eventHub.apiCalled(be.replaceResource,{pidlDocInfo:Rn.boolify(e),prefillData:Rn.boolify(t),options:Rn.boolify(r)},{pidlDocInfo:e}),!c.canApiStart(be.replaceResource))return c.eventHub.apiReturned(be.replaceResource,!1),c.apiFailure(!1);var n=c.addResourceInternal(ct.replace,e,t,r);return c.eventHub.apiReturned(be.replaceResource,n.result,n.promise),n},this.addAddress=function(e,t,r){var n=v(v({},e),{resourceType:"Address"});if(c.telemetryContext.trackNewOperation(L.addAddress,n),c.eventHub.apiCalled(be.addAddress,{pidlDocInfo:Rn.boolify(n),prefillData:Rn.boolify(t),options:Rn.boolify(r)},{pidlDocInfo:n}),!c.canApiStart(be.addAddress))return c.eventHub.apiReturned(be.addAddress,!1),c.apiFailure(!1);var i=c.addResourceInternal(ct.add,n,t,r);return c.eventHub.apiReturned(be.addAddress,i.result,i.promise),i},this.validateAddress=function(e){var t=v(v({},e),{resourceType:"Address"});return c.validateResource(t)},this.handleCheckout=function(e){var t=e||{},r=t.checkoutId,n=t.partner,i=t.redirectUrl,o=t.paymentProviderId,a=t.language,s=t.market,l={resourceType:x.Checkout,parameters:{partner:n,checkoutId:r,redirectUrl:i,paymentProviderId:o,language:a,market:s},anonymousPidl:e.anonymousUser};if(c.telemetryContext.trackNewOperation(L.handleCheckout,l),c.eventHub.apiCalled(be.handleCheckout,{checkoutParams:Rn.boolify(e)},{}),!c.canApiStart(be.handleCheckout)||!ei.validateCheckoutParams(c.eventHub,e))return c.eventHub.apiReturned(be.handlePaymentChallenge,!1),c.apiFailure(!1);var d={resourceType:x.Checkout,parameters:{partner:n,checkoutId:r,redirectUrl:i,paymentProviderId:o,language:a,market:s},anonymousPidl:e.anonymousUser},u=c.renderPidlPageInternal(d);return c.eventHub.apiReturned(be.handleCheckout,u.result,u.promise),u},this.getPayeeTaxProfile=function(e){var t=e||{},r=t.section,n=t.tenant,i=t.sapidind,o=t.status,a=t.accounttype,s=t.payfromcc,l=t.residencecc,d=t.language,u={resourceType:x.PayeeTaxProfile,parameters:{section:r,tenant:n,sapidind:i,status:o,accounttype:a,payfromcc:s,residencecc:l,language:d}};if(c.telemetryContext.trackNewOperation(L.getPayeeTaxProfile,u),c.eventHub.apiCalled(be.getPayeeTaxProfile,{payeeTaxProfileParams:Rn.boolify(e)},{}),!c.canApiStart(be.getPayeeTaxProfile)||!ei.validatePayeeTaxProfileParams(c.eventHub,e))return c.eventHub.apiReturned(be.getPayeeTaxProfile,!1),c.apiFailure(!1);var p={resourceType:x.PayeeTaxProfile,parameters:{section:r,tenant:n,sapidind:i,status:o,accounttype:a,payfromcc:s,residencecc:l,language:d}},m=c.renderPidlPageInternal(p);return c.eventHub.apiReturned(be.getPayeeTaxProfile,m.result,m.promise),m},this.createPaymentSession=function(e){var t=e||{},r=t.partner,n=void 0===r?null:r,i=t.country,o=void 0===i?null:i,a=t.language,s=void 0===a?null:a,l={resourceType:x.PaymentSession,parameters:{partner:n,market:o,language:s,paymentSessionData:e}};if(c.telemetryContext.trackNewOperation(L.createPaymentSession,l),c.eventHub.apiCalled(be.createPaymentSession,{paymentSessionData:Rn.boolify(e)},{}),!c.canApiStart(be.createPaymentSession)||!ei.validatePaymentSessionData(c.eventHub,e))return c.eventHub.apiReturned(be.createPaymentSession,!1),c.apiFailure(!1);var d={resourceType:x.PaymentSession,parameters:{paymentSessionData:e}};e.billableAccountId&&(d.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(d.parameters.classicProduct=e.classicProduct);var u=c.addResourceInternal(ct.add,d);return c.eventHub.apiReturned(be.createPaymentSession,u.result,u.promise),u},this.renderPidlPageInternal=function(e,t){if(!ei.validatePidlDocInfo(c.eventHub,e)||!ei.validateSelectOrRenderOptions(c.eventHub,t))return c.apiFailure(!1);var r=ct.renderPidlPage,n=Ct.getPidlDocUrl(c.userContext,r,e);return c.apiSuccess(!0,c.getPidl(n,null,r,t,e))},this.renderPidlPage=function(e,t){if(c.telemetryContext.trackNewOperation(L.renderPidlPage,e),c.eventHub.apiCalled(be.renderPidlPage,{pidlDocInfo:Rn.boolify(e),options:Rn.boolify(t)},{pidlDocInfo:e}),!c.canApiStart(be.renderPidlPage))return c.eventHub.apiReturned(be.renderPidlPage,!1),c.apiFailure(!1);var r=c.renderPidlPageInternal(e,t);return c.eventHub.apiReturned(be.renderPidlPage,r.result,r.promise),r},this.handlePaymentChallenge=function(e,t){var r,n,i=e||{},o=i.partner,a=void 0===o?null:o,s=i.country,l=void 0===s?null:s,d=i.language,u=void 0===d?null:d,p={resourceType:x.Challenge,parameters:{partner:a,market:l,language:u,paymentSessionOrData:e,timezoneOffset:(new Date).getTimezoneOffset()}};if(c.telemetryContext.trackNewOperation(L.handlePaymentChallenge,p),c.eventHub.apiCalled(be.handlePaymentChallenge,{paymentSessionData:Rn.boolify(e)},{}),!c.canApiStart(be.handlePaymentChallenge)||!ei.validatePaymentSessionOrData(c.eventHub,e))return c.eventHub.apiReturned(be.handlePaymentChallenge,!1),c.apiFailure(!1);var m,f={resourceType:x.Challenge,parameters:{paymentSessionOrData:e,timezoneOffset:(new Date).getTimezoneOffset()}};e.billableAccountId&&(f.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(f.parameters.classicProduct=e.classicProduct);var y=c.userContext.getHeaders({},"")[ee.msTest]||"",h=xn.getFlightHeaders(c.userContext);if((null===h||void 0===h?void 0:h.includes(te.enablePaymentAgentChallenge))&&!c.hasCollectedToken(e)&&(null===(n=null===(r=window.paymentAgent)||void 0===r?void 0:r.isPaymentAgentSupportedPI)||void 0===n?void 0:n.call(r,e)))m=c.handlePaymentAgentChallenge(e,f,t,y);else if("cdc85313-9b57-4052-81fb-dea336132cbf"===e.piid||"be4de87d-7e38-4b2d-8836-9237eb32848e"===e.piid){var g=new ir.invalidSetupError(or.invalidSetup);c.eventHub.failure(g),m=c.apiFailure(!1)}else m=c.renderPidlPageInternal(f);return c.eventHub.apiReturned(be.handlePaymentChallenge,m.result,m.promise),m},this.hasCollectedToken=function(e){return e.id&&e.isTokenCollected},this.expressCheckoutInternal=function(e){return c.selectResource(e,null,ct.expressCheckout,c.onDownloadValidateOrSelectResourceType.bind(c))},this.expressCheckout=function(e){if(c.telemetryContext.trackNewOperation(L.expressCheckout,e),c.eventHub.apiCalled(be.expressCheckout,{pidlDocInfo:Rn.boolify(e)},{pidlDocInfo:e}),!c.canApiStart(be.expressCheckout))return c.eventHub.apiReturned(be.expressCheckout,!1),c.apiFailure(null);var t=c.expressCheckoutInternal(e);return c.eventHub.apiReturned(be.expressCheckout,Rn.boolify(t.result),t.promise),t},this.handlePurchasePendingState=function(e){if(c.telemetryContext.trackNewOperation(L.handlePurchasePendingState),c.eventHub.apiCalled(be.handlePurchasePendingState),!c.canApiStart(be.handlePurchasePendingState)||!e||!ei.validateHandlePurchasePendingStateParams(c.eventHub,e))return c.eventHub.apiReturned(be.handlePurchasePendingState,!1),c.apiFailure(!1);var t=c.getChallengePidlInfo(e),r=c.renderPidlPageInternal(t,e.options);return c.eventHub.apiReturned(be.handlePurchasePendingState,!0,r.promise),c.apiSuccess(!0,r.promise)},this.handlePurchaseRiskChallenge=function(e){if(c.telemetryContext.trackNewOperation(L.handlePurchaseRiskChallenge),c.eventHub.apiCalled(be.handlePurchaseRiskChallenge),!c.canApiStart(be.handlePurchaseRiskChallenge)||!e||!ei.validatePurchaseRiskChallengeParams(c.eventHub,e))return c.eventHub.apiReturned(be.handlePurchaseRiskChallenge,!1),c.apiFailure(!1);var t=c.getChallengePidlInfo(e);t.parameters.type=e.riskChallengeData[0];var r=c.renderPidlPageInternal(t,e.options);return c.eventHub.apiReturned(be.handlePurchaseRiskChallenge,r.result,r.promise),r},this.handleChallengeInternal=function(e,t){if(!ei.validateResourceInfo(c.eventHub,e)||!ei.validateAddUpdateOrDeleteOptions(c.eventHub,t))return c.apiFailure(!1);var r=ct.add;c.model.operationType=r,c.model.operationOptions=t,c.model.pidlDocManager.setOperationInfo({operationType:r});var n=dr.getPidlService(),i=n.getRequestInstance(c.eventHub,e,c.userContext,r),o=n.getInstance(c.eventHub,i);return c.apiSuccess(!0,o.then((function(t){c.stateManager.setState(ye.executing),c.eventHub.instanceDownloaded();var n=jt.getPidlDocInfoFromResource(e,t);if(c.telemetryContext.updateResourceInfo(n),t.clientAction)return c.model.handleClientAction(t.clientAction,t);c.eventHub.success({id:t.id,operationType:r,response:t})}),(function(e){var t=xn.createServerError(or.resourceInstanceDownloadFailed,i.url,e,[e.errorMessage]);return c.eventHub.failure(t),Bn(t)})))},this.handleChallenge=function(e,t){if(c.telemetryContext.trackNewOperation(L.verify,e),c.eventHub.apiCalled(be.handleChallenge,{resourceInfo:Rn.boolify(e),options:Rn.boolify(t)},{resourceInfo:e}),!c.canApiStart(be.handleChallenge))return c.eventHub.apiReturned(be.handleChallenge,!1),c.apiFailure(!1);var r=c.handleChallengeInternal(e,t);return c.eventHub.apiReturned(be.handleChallenge,r.result,r.promise),r},this.updateOrDeleteResourceInternal=function(e,t,r,n,i){if(r&&!ei.validatePidlDocInfo(c.eventHub,r)||!ei.validateAddUpdateOrDeleteOptions(c.eventHub,n))return c.apiFailure(!1);var o=i||ct.update;c.model.operationType=o,c.model.operationOptions=n,c.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:r}),c.model.pidlDocManager.setOperationInfo({operationType:o});var a=null;if(t)a=c.downloadPidlDocument(Ct.getPidlDocUrl(c.userContext,o,r),n,(function(){return c.model.populate(t,!0)}),r);else{if(!ei.validateResourceInfo(c.eventHub,e))return c.apiFailure(!1);a=c.downloadInstance(e,r,o,n)}return c.apiSuccess(!0,a.then((function(){return c.stateManager.setState(ye.executing)})))},this.updateResource=function(e,t,r,n){if(c.telemetryContext.trackNewOperation(L.update,r||e),c.eventHub.apiCalled(be.updateResource,{resourceInfo:Rn.boolify(e),resource:Rn.boolify(t),pidlDocInfo:Rn.boolify(r),options:Rn.boolify(n)},{resourceInfo:e,pidlDocInfo:r}),!c.canApiStart(be.updateResource))return c.eventHub.apiReturned(be.updateResource,!1),c.apiFailure(!1);var i=c.updateOrDeleteResourceInternal(e,t,r,n);return c.eventHub.apiReturned(be.updateResource,i.result,i.promise),i},this.selectResource=function(e,t,r,n,i,o,a){if(!o&&!e||e&&(!ei.validatePidlDocInfo(c.eventHub,e)&&!ei.validateResourceInfo(c.eventHub,e)||!ei.validateSelectOrRenderOptions(c.eventHub,t))||o&&!ei.validateHandle(c.eventHub,o)||a&&!ei.validateSelectedResourceInfo(c.eventHub,a))return c.apiFailure(null);a&&(a.id||a.backupId)&&((e=e||{}).parameters=e.parameters||{},e.parameters.filters=e.parameters.filters||{},a.id&&(e.parameters.filters.id=a.id),a.backupId&&(e.parameters.filters.backupId=a.backupId));var s=o||xn.guid();c.model.pidlDocManager.setOperationInfo({handle:s,operationType:r}),c.model.operationType=r,c.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:e});var l=null;return o?l=new Promise((function(e,t){c.model.pidlDocManager.retrievePidlDocFromCache(c.eventHub,s,i).then((function(){n().then(e,(function(e){t(e)}))}),(function(e){c.eventHub.failure(new ir.unexpectedError(e,[])),t()}))})):(c.model.operationOptions=t,jt.updatePidlDocInfo(e),l=c.downloadPidlDocument(Ct.getPidlDocUrl(c.userContext,r,e),t,n,e,i)),c.apiSuccess(s,l.then((function(){return c.stateManager.setState(ye.executing)})))},this.selectResourceTypeInternal=function(e,t){return c.selectResource(e,t,ct.select,c.onDownloadValidateOrSelectResourceType.bind(c))},this.selectResourceType=function(e,t){var r,n;c.telemetryContext.trackNewOperation(L.selectResourceType,e);var i=e,o=c.userContext.getHeaders({},"")[ee.msFlight]||"",a=Nn();(null===o||void 0===o?void 0:o.includes(te.enablePaymentAgentChallenge))&&(null===(r=window.paymentAgent)||void 0===r?void 0:r.getInitPromise)&&(a=null!==(n=window.paymentAgent.getInitPromise())&&void 0!==n?n:a);var s=a.then((function(){if((null===o||void 0===o?void 0:o.includes(te.enablePaymentAgentChallenge))&&(i=xn.verifyClientSupported(e)),c.eventHub.apiCalled(be.selectResourceType,{pidlDocInfo:Rn.boolify(i),options:Rn.boolify(t)},{pidlDocInfo:i}),!c.canApiStart(be.selectResourceType))return c.eventHub.apiReturned(be.selectResourceType,!1),c.apiFailure(null);var r=c.selectResourceTypeInternal(i,t);return c.eventHub.apiReturned(be.selectResourceType,Rn.boolify(r.result),r.promise),r}));return c.apiSuccess(null,s)},this.updateProfile=function(e,t,r,n){var i=v(v({},r),{resourceType:"Profile"});if(c.telemetryContext.trackNewOperation(L.updateProfile,i||e),c.eventHub.apiCalled(be.updateProfile,{resourceInfo:Rn.boolify(e),resource:Rn.boolify(t),pidlDocInfo:Rn.boolify(i),options:Rn.boolify(n)},{resourceInfo:e,pidlDocInfo:i}),!c.canApiStart(be.updateProfile))return c.eventHub.apiReturned(be.updateProfile,!1),c.apiFailure(!1);var o=c.updateOrDeleteResourceInternal(e,t,i,n);return c.eventHub.apiReturned(be.updateProfile,o.result,o.promise),o},this.selectInstanceInternal=function(e,t,r,n){return c.selectResource(e,t,ct.selectInstance,(function(){return c.onDownloadSelectResource(r&&r.prefillData)}),r&&r.targetIdentity,r&&r.handle,n)},this.selectInstance=function(e,t,r,n){var i,o;c.telemetryContext.trackNewOperation(L.selectResource,e);var a=e,s=c.userContext.getHeaders({},"")[ee.msFlight]||"",l=Nn();(null===s||void 0===s?void 0:s.includes(te.enablePaymentAgentChallenge))&&(null===(i=window.paymentAgent)||void 0===i?void 0:i.getInitPromise)&&(l=null!==(o=window.paymentAgent.getInitPromise())&&void 0!==o?o:l);var d=l.then((function(){if((null===s||void 0===s?void 0:s.includes(te.enablePaymentAgentChallenge))&&(a=xn.verifyClientSupported(e)),c.eventHub.apiCalled(be.selectResource,{pidlDocInfo:Rn.boolify(a),options:Rn.boolify(t),actionContext:Rn.boolify(r)},{pidlDocInfo:a}),!c.canApiStart(be.selectResource))return c.eventHub.apiReturned(be.selectResource,!1),c.apiFailure(null);var i=c.selectInstanceInternal(a,t,r,n);return c.eventHub.apiReturned(be.selectResource,Rn.boolify(i.result),i.promise),i}));return c.apiSuccess(null,d)},this.listAddress=function(e,t,r,n){var i=v(v({},e),{resourceType:"Address"});if(c.telemetryContext.trackNewOperation(L.listAddress,i),c.eventHub.apiCalled(be.listAddress,{pidlDocInfo:Rn.boolify(e),options:Rn.boolify(t),actionContext:Rn.boolify(r)},{pidlDocInfo:e}),!c.canApiStart(be.listAddress))return c.eventHub.apiReturned(be.listAddress,!1),c.apiFailure(null);var o=c.selectInstanceInternal(e,t,r,n);return c.eventHub.apiReturned(be.listAddress,Rn.boolify(o.result),o.promise),o},this.selectPaymentInstrument=function(e,t,r,n,i){var o;if(o=v(v({},e),i?{resourceType:e.resourceType}:{resourceType:"PaymentInstrument"}),c.telemetryContext.trackNewOperation(L.selectPaymentInstrument,o),c.eventHub.apiCalled(be.selectPaymentInstrument,{pidlDocInfo:Rn.boolify(o),options:Rn.boolify(t),actionContext:Rn.boolify(r)},{pidlDocWithResource:o}),!c.canApiStart(be.selectPaymentInstrument))return c.eventHub.apiReturned(be.selectPaymentInstrument,!1),c.apiFailure(null);var a=c.selectInstanceInternal(o,t,r,n);return c.eventHub.apiReturned(be.selectPaymentInstrument,Rn.boolify(a.result),a.promise),a},this.selectSingleInstanceInternal=function(e,t,r,n){return c.selectResource(e,t,ct.selectSingleInstance,(function(){return c.onDownloadSelectSingleResource(r&&r.handle)}),r&&r.targetIdentity,r&&r.handle,n)},this.selectSingleInstance=function(e,t,r,n){if(c.telemetryContext.trackNewOperation(L.selectSingleResource,e),c.eventHub.apiCalled(be.selectSingleResource,{pidlDocInfo:Rn.boolify(e),options:Rn.boolify(t),actionContext:Rn.boolify(r)},{pidlDocInfo:e}),!c.canApiStart(be.selectSingleResource))return c.eventHub.apiReturned(be.selectSingleResource,!1),c.apiFailure(null);var i=c.selectSingleInstanceInternal(e,t,r,n);return c.eventHub.apiReturned(be.selectSingleResource,Rn.boolify(i.result),i.promise),i},this.runApi=function(e,t,r,n,i){if(void 0===r&&(r=function(){return!1}),void 0===n&&(n=function(){return!0}),void 0===i&&(i=function(){}),c.eventHub.apiCalled(e),!c.canApiStart(e)||r())return c.eventHub.apiReturned(e,!1),c.apiFailure(!1);var o=t(),a=n();return c.eventHub.apiReturned(e,Rn.boolify(a),o),c.apiSuccess(a,i()||o)},this.showResource=function(e){c.telemetryContext.trackNewOperation(L.show);var t=e.pidlDocInfo,r=e.prefillData,n=e.options;return c.runApi(be.showResource,(function(){var e=ct.show,i=Ct.getPidlDocUrl(c.userContext,e,t);return c.getPidl(i,r,e,n,t)}),(function(){return!e||!ei.validateShowResourceParams(c.eventHub,e)||!ei.validatePidlDocInfo(c.eventHub,t)||!ei.validateResourceOptions(c.eventHub,n)}))},this.offerResource=function(e){c.telemetryContext.trackNewOperation(L.offer);var t=e.pidlDocInfo;return c.runApi(be.offerResource,(function(){var e=ct.offer,r=Ct.getPidlDocUrl(c.userContext,e,t);return c.getPidl(r,null,e,null,t)}),(function(){return!e||!ei.validateOfferResourceParams(c.eventHub,e)||!ei.validatePidlDocInfo(c.eventHub,t)}))},this.searchResource=function(e){c.telemetryContext.trackNewOperation(L.search);var t=e.pidlDocInfo,r=e.options;return c.runApi(be.searchResource,(function(){var e=ct.search,n=Ct.getPidlDocUrl(c.userContext,e,t);return c.getPidl(n,null,e,r,t)}),(function(){return!e||!ei.validateSearchResourceParams(c.eventHub,e)}))},this.deleteResource=function(e){var t=e.resourceInfo,r=e.resource,n=e.pidlDocInfo,i=e.options;if(c.telemetryContext.trackNewOperation(L.delete,t||n),c.eventHub.apiCalled(be.deleteResource,{resourceInfo:Rn.boolify(t),resource:Rn.boolify(r),pidlDocInfo:Rn.boolify(n),options:Rn.boolify(i)},{resourceInfo:t,pidlDocInfo:n}),!c.canApiStart(be.deleteResource)||!e)return c.eventHub.apiReturned(be.deleteResource,!1),c.apiFailure(!1);var o=c.updateOrDeleteResourceInternal(t,r,n,i,ct.delete);return c.eventHub.apiReturned(be.deleteResource,o.result,o.promise),o},this.fundStoredValue=function(e){c.telemetryContext.trackNewOperation(L.fundStoredValue);var t=e.pidlDocInfo,r=e.options;return c.runApi(be.fundStoredValue,(function(){var e=ct.fundStoredValue,n=Ct.getPidlDocUrl(c.userContext,e,t);return c.getPidl(n,null,e,r,t)}),(function(){return!e||!ei.validateFundStoredValueParams(c.eventHub,e)}))},this.validateResource=function(e,t,r,n){if(c.telemetryContext.trackNewOperation(L.validateResource,e),c.eventHub.apiCalled(be.validateResource,{pidlDocInfo:Rn.boolify(e),options:Rn.boolify(t),actionContext:Rn.boolify(r)},{pidlDocInfo:e}),!c.canApiStart(be.validateResource))return c.eventHub.apiReturned(be.validateResource,!1),c.apiFailure(null);var i=c.selectResource(e,t,ct.validateInstance,c.onDownloadValidateOrSelectResourceType.bind(c),r&&r.targetIdentity,r&&r.handle,n);return c.eventHub.apiReturned(be.validateResource,Rn.boolify(i.result),i.promise),i},this.validateProperties=function(){return c.apiSuccess(c.model.validateProperties(),Nn())},this.moveNextPage=function(){return c.runApi(be.moveNextPage,(function(){return c.model.moveNextOrSubmit().catch(c.displaySettings.propagateCallbackException?Mn:On)}))},this.submitPage=function(){return c.runApi(be.submitPage,(function(){return c.model.submitAction().catch(c.displaySettings.propagateCallbackException?Mn:On)}))},this.moveToLastPage=function(){return c.runApi(be.moveToLastPage,(function(){return c.model.moveToLastPage().catch(On)}))},this.movePrevPage=function(){return c.runApi(be.movePrevPage,(function(){return c.model.movePrevOrCancel().catch(On)}))},this.moveToFirstPage=function(){return c.runApi(be.moveToFirstPage,(function(){return c.model.moveToFirstPage().catch(On)}))},this.refreshData=function(e){return c.runApi(be.refreshData,(function(){return c.model.refreshData(e).catch(On)}))},this.cancel=function(){return c.runApi(be.cancel,(function(){return c.model.gohome(),Nn()}))},this.destroyInstance=function(){return c.runApi(be.destroyInstance,(function(){return c.model.clearAll(),Nn()}))},this.getSelectedResource=function(){return c.runApi(be.getSelectedResource,(function(){return Nn()}),(function(){return!1}),(function(){var e={},t=c.model.getCurrentPage();if(t){var r=t.operationType;r===ct.selectSingleInstance?e=mr.getDefaultSuccessPidlPayload([t],c.eventHub):r!==ct.selectInstance&&r!==ct.select||(e=Rn.deepCopy(c.model.createUserInputData(!0,!0)))}return e.operationType=c.model.operationType,e||(e=void 0),e}))},this.invokePageDefaultAction=function(){return c.runApi(be.invokePageDefaultAction,(function(){return c.model.invokeDefaultPidlAction().catch(On)}),(function(){return!1}),(function(){return!0}),(function(){return Nn()}))},this.returnUserInputData=function(){return new Promise((function(e,t){c.model.returnUserInputData().then((function(t){var r={};r.payload=Rn.deepCopy(t),r.operationType=ct.getPidlPayload,e(r)}),(function(e){c.eventHub.error(e),t()}))}))},this.getPidlPayload=function(){return c.runApi(be.getPidlPayload,(function(){return c.returnUserInputData().then((function(e){return c.eventHub.payloadCreated(e)}),On)}),(function(){return c.model.operationType!==ct.renderPidlPage}),(function(){return!0}),(function(){return Nn()}))},this.postMessageToChildIFrames=function(e){return c.runApi(be.postMessageToChildIFrames,(function(){}),(function(){return!1}),(function(){return c.viewEventHandler.postMessageToChildIFrames(e)}),(function(){return Nn()}))},this.testHookRenderPidl=function(e,t,r){return c.model.pidlDocManager.setPidlDoc(c.eventHub,e),c.model.operationType=t,c.model.populate(r).catch(On)},this.testHookRenderPidlPage=function(e,t,r,n){void 0===r&&(r=0),c.telemetryContext.trackNewOperation(L.renderPidlDocument),c.eventHub.apiCalled(be.renderPidlDocument);var i=c.testHookRenderPidl(e,t,n).then((function(){c.model.moveToPageIndex(r).catch(On),c.stateManager.setState(ye.executing)}));return c.eventHub.apiReturned(be.renderPidlDocument,!0,i),!0};var p=i||{},m=p.telemetryLogger,f=p.getPidlDocument,y=p.view,h=p.fetchHandler,g=y&&Rn.isFunction(y.getViewType)&&y.getViewType();if(this.telemetryContext=new Ni(o,g),this.eventHub=new Gn(m,this.telemetryContext),this.stateManager=new Ti(this.eventHub),dr.getLoggingService()||dr.setLoggingService(new Bi),!dr.getOneDSService())if(s)dr.setOneDSService(s);else{dr.setOneDSService({getApplicationInsights:function(){return{initialize:function(){},trackEvent:function(){}}},getCorrelationVectorPlugin:function(){return{getCv:function(){return{count:0,increment:function(){return this.count=this.count+1,this.getValue()},getValue:function(){return"cv__"+this.count},isInit:function(){return!0}}}}}})}if(this.logConstructorCall(e,t,r,n,o),ei.validateReturnOptions(this.eventHub,t))if(this.eventHub.addReturnOptions(t),dr.getCommerceService()||dr.setCommerceService(new ji),dr.getRedirectionService()||dr.setRedirectionService(new Ki),dr.getPidlService()||dr.setPidlService(new zi),dr.getPidlStoreService()||dr.setPidlStoreService(new Gi),r&&this.eventHub.addPublicEventHandler(r),this.eventHub.addPrivateEventHandler(this.handlePrivateEvent),a&&this.eventHub.addPrivateEventHandler(a),ei.validateInputParameters(this.eventHub,e,n,o,i)){if(this.callbacks=i,this.transformers=l,this.localDataSourceProviders=u,this.userContext=new Ri(e),this.displaySettings=new Hn(n),this.displaySettings.preventUnmountOnFinish&&this.eventHub.registerEventExtender(K.preventUnmountOnFinish,(function(){return!0})),!this.displaySettings.containerId)return this.eventHub.failure(new ir.inputParameterValidationFailedError(or.containerIdNotFound,"containerId",[this.displaySettings.containerId])),void this.eventHub.apiReturned(be.constructor,!1);this.model=new ki({urls:t.urls,userContext:this.userContext,displaySettings:this.displaySettings,eventHub:this.eventHub,pidlDocManager:new wi(f,d),stateManager:this.stateManager,callbacks:this.callbacks,transformers:this.transformers,localDataSourceProviders:this.localDataSourceProviders}),this.model.setOrchestratorId(xn.registerToOrchestrator({model:this.model,addPublicEventHandler:this.eventHub.addPublicEventHandler}));var P=this.callbacks,b=P.iFrameMessageHandler,E=P.view;this.viewEventHandler=new Fi({eventHub:this.eventHub,model:this.model,displaySettings:this.displaySettings,view:E,iFrameMessageHandler:b,userContext:this.userContext,userContextIn:e,returnOptions:t,eventHandler:r,displayOptions:n,callbacks:i,telemetryOptions:o,externalPrivateEventHandler:a,oneDSService:s,transformers:l,pidlPayload:d,localDataSourceProviders:u,controlApiMap:this.controlApiMap}),h&&$n.setFetchHandler(h),this.stateManager.setState(ye.initialized)}else this.eventHub.apiReturned(be.constructor,!1);else this.eventHub.apiReturned(be.constructor,!1)}return e.prototype.apiSuccess=function(e,t){return{result:e,promise:t.catch(this.displaySettings.propagateCallbackException?Mn:On)||Nn()}},e.prototype.apiFailure=function(e){return{result:e,promise:Nn()}},e.prototype.onDownloadSelectResource=function(e){return this.model.populate(e)},e.prototype.onDownloadValidateOrSelectResourceType=function(){return this.model.populate()},e.prototype.onDownloadSelectSingleResource=function(e){if(this.model.pidlDocManager.isEmpty()){var t={handle:e,action:"selectResource"};return this.eventHub.success(t),Nn()}return this.model.populate()},e.prototype.getPidl=function(e,t,r,n,i){var o=this;return this.model.operationType=r,this.model.operationOptions=n,this.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:i}),this.model.pidlDocManager.setOperationInfo({operationType:r}),this.downloadPidlDocument(e,n,(function(){return o.model.populate(t,!1)}),i,void 0,!!t).then((function(){return o.stateManager.setState(ye.executing)}),On)},e.prototype.downloadInstance=function(e,t,r,n){var i=this;return new Promise((function(o,a){var s=dr.getPidlService(),l=s.getRequestInstance(i.eventHub,e,i.userContext,r);s.getInstance(i.eventHub,l).then((function(s){i.eventHub.instanceDownloaded(),t||(t=jt.getPidlDocInfoFromResource(e,s),i.telemetryContext.updateResourceInfo(t));var l=Ct.getPidlDocUrl(i.userContext,r,t);if(l&&l.url)return i.downloadPidlDocument(l,n,(function(){return i.model.populate(s,!0)}),t).then((function(e){return o(e)}),a);a()}),(function(e){var t=xn.createServerError(or.resourceInstanceDownloadFailed,l.url,e,[e.errorMessage]);i.eventHub.failure(t),a(t)}))}))},e.prototype.downloadPidlDocument=function(e,t,r,n,i,o){var a=this;return this.model.downloadPidlDocument(e,n,i,o).then((function(e){return Vt(e)?a.model.handleClientAction(e):r()}))},e}(),qi=function(){function e(e,t){this.defaultWaitTime=500,this.eventHub=e,this.mockFunctions=t||[],this.mockFunctionsMap={},this.mockFunctions.forEach((function(e){this.mockFunctionsMap[e.name]=e}),this)}return e.prototype.getMockedFunctionNames=function(){var e=[];return this.mockFunctions.forEach((function(t){e=e.concat(t.name)})),e},e.prototype.createMockedFunction=function(t,r){return e.setArity(function(){var e=this.mockFunctionsMap[t];return e.triggers.forEach((function(e){setTimeout(this.eventHub[e.name].bind(this.eventHub),this.defaultWaitTime,e.params)}),this),e.returns}.bind(this),r)},e.createArguments=function(e){if(e<1)return"arg";for(var t="arg0",r=1;r<e;r++)t=t+",arg"+r;return t},e.setArity=function(t,r){return new Function(e.createArguments(r),"return this.apply(this, arguments);").bind(t)},e}(),Ji=function(){function e(){dr.getTelemetryInjectionService()||dr.setTelemetryInjectionService(new Qi)}return e.prototype.logEvent=function(e,t,r){dr.getTelemetryInjectionService().logEvent(r,e,t)},e.prototype.getCorrelationId=function(){return Mi.getCVValue()},e.prototype.getHttpRequestCorrelationHeader=function(){var e=Mi.getIncrementedCV();if(e)return{name:ee.msCV,value:e}},e}(),Qi=function(){function e(){}return e.prototype.logEvent=function(e,t,r){Mi.setUserConsentDetailsCallback(null===e||void 0===e?void 0:e.userConsentDetailsCallback),t===z.fetchCallCompleted?this.logOSREvent(e,r&&r.httpRequestTelemetryData):this.logGenericEvent(e,t,r)},e.prototype.logGenericEvent=function(e,t,r){var n,i,o,a,s;try{if(Rn.isObject(e)){var l=((window||{}).location||{}).href||"",d={name:"Microsoft.Commerce.Payments.PidlSdk.PageEvent",partB:{pageName:(document||{}).title||"",uri:l,destUri:l,customSessionGuid:e.sessionId,impressionGuid:e.operationId,contentJsonVer:1,content:JSON.stringify({eventName:t})},partC:{sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(n=e.partnerContext)||void 0===n?void 0:n.partnerName,partnerContext:JSON.stringify(e.partnerContext),partnerContextMap:e.partnerContext,parentOperationId:(null===(i=e.partnerContext)||void 0===i?void 0:i.parentOperationId)||e.operationId,partnerFlowId:null===(o=e.partnerContext)||void 0===o?void 0:o.flowId,partnerSessionId:null===(a=e.partnerContext)||void 0===a?void 0:a.sessionId,partnerScenarioId:null===(s=e.partnerContext)||void 0===s?void 0:s.scenarioId,operationId:e.operationId,operationType:e.operationType,eventName:t,eventParameters:JSON.stringify(r),eventParametersMap:r,baseType:"Ms.Content.PageAction"}};Rn.isObject(e.telemetryResource)&&(d.partC.resourceType=e.telemetryResource.resourceType,d.partC.resourceParameters=JSON.stringify(e.telemetryResource.parameters),d.partC.resourceParametersMap=e.telemetryResource.parameters),Mi.writeEvent(d.name,d.partB,d.partC)}}catch(u){dr.getLoggingService().logError("TelemetryError",u)}},e.prototype.logOSREvent=function(e,t){var r,n,i,o,a;try{if(Rn.isObject(e)){var s={partner:((e.telemetryResource||{}).parameters||{}).partner,telemetryContext:e,responseHeaders:t.headers},l={name:"Ms.Webi.OutgoingRequest",partB:{operationName:t.operationName,targetUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.succeeded||!t.serviceErrorCode||isNaN(t.serviceErrorCode)?-1:t.serviceErrorCode,succeeded:t.succeeded,requestMethod:t.requestMethod,responseContentType:t.responseContentType,protocolStatusCode:t.protocolStatusCode,dependencyOperationName:t.dependencyOperationName,dependencyOperationVersion:t.dependencyOperationVersion&&t.dependencyOperationVersion.toString(),dependencyName:t.serviceName,dependencyType:"webservice",responseSizeBytes:t.contentLength},partC:{customSessionGuid:e.sessionId,impressionGuid:e.operationId,message:t.failureResponse,retryCount:t.retryCount,customData:JSON.stringify(s),sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(r=e.partnerContext)||void 0===r?void 0:r.partnerName,partnerContext:JSON.stringify(e.partnerContext),operationId:e.operationId,parentOperationId:(null===(n=e.partnerContext)||void 0===n?void 0:n.parentOperationId)||e.operationId,partnerFlowId:null===(i=e.partnerContext)||void 0===i?void 0:i.flowId,partnerSessionId:null===(o=e.partnerContext)||void 0===o?void 0:o.sessionId,partnerScenarioId:null===(a=e.partnerContext)||void 0===a?void 0:a.scenarioId,partnerContextMap:e.partnerContext,operationType:e.operationType,baseType:"Ms.Qos.OutgoingServiceRequest"}};Mi.writeEvent(l.name,l.partB,l.partC)}}catch(d){dr.getLoggingService().logError("TelemetryError",d)}},e}(),Zi=function(){function e(e,t){var r=jt.getTelemetryLoggerProperties().enableMultipleLoggers;this.loggers=r&&t?[e,t]:t?[t]:[e]}return e.prototype.logEvent=function(e,t,r){for(var n=0,i=this.loggers;n<i.length;n++){i[n].logEvent(e,t,r)}},e.prototype.getCorrelationId=function(){for(var e,t,r=0,n=this.loggers;r<n.length;r++){var i=n[r],o=null===(e=i.getCorrelationId)||void 0===e?void 0:e.call(i);o&&(t=o)}return t},e.prototype.getHttpRequestCorrelationHeader=function(){for(var e,t,r=0,n=this.loggers;r<n.length;r++){var i=n[r],o=null===(e=i.getHttpRequestCorrelationHeader)||void 0===e?void 0:e.call(i);o&&(t=o)}return t},e.prototype.getLoggers=function(){return this.loggers},e}(),Yi=new(function(){function e(){var e=this;this.getContainerClassName=function(e){if(e)switch(e){case $.busyBlock:return T.busyBlock;case $.errorBlock:return T.errorBlock;case $.helpDialogBlock:return T.helpDialogBlock;case $.helpDialogContentBlock:return T.helpDialogContentBlock;case $.modalDialogBlock:return T.modalDialogBlock;case $.modalDialogContentBlock:return T.modalDialogContentBlock;case $.pageContentBlock:return T.pageContentBlock;case $.submitBlock:return T.submitBlock}},this.getDivClassName=function(t,r,n){switch(r){case M.dropdown:return[T.dropdownDiv,T.propertyDiv];case M.checkBox:return[T.checkBoxDiv,T.propertyDiv];case M.textBox:return[T.textBoxDiv,T.propertyDiv];case M.secureProperty:return[T.propertyDiv];case M.image:return[T.imageDiv];case M.logo:return[T.logoDiv];case M.button:return[T.buttonDiv];case M.iFrame:return[T.iFrameDiv];case M.group:var i=[T.groupDiv],o=e.getContainerClassName(n);return o&&i.push(o),i}},this.generateClassName=function(t,r,n,i,o){var a=e.getClassName(t,r,n);if(i){var s=e.getDivClassName(t,i,o);s&&(a=a.concat(s))}if(a)return a.join(" ")},this.getClassName=function(t,r,n){switch(r){case X.div:return[T.div];case X.label:return[T.label];case X.dropdown:return[T.property,T.dropdown,e.getPropertyClassName(n)];case X.radio:return[T.property,T.radio,e.getPropertyClassName(n)];case X.buttonList:return[T.property,T.buttonList,e.getPropertyClassName(n)];case X.checkBox:return[T.property,T.checkBox,e.getPropertyClassName(n)];case X.textBox:return[T.property,T.textBox,e.getPropertyClassName(n)];case X.secureProperty:return[T.secureProperty];case X.button:return[T.button];case X.iFrame:return[T.iFrame];case X.heading:return[T.staticText,T.heading];case X.subHeading:return[T.staticText,T.subHeading];case X.text:return[T.staticText,T.text];case X.textGroup:return[T.staticText,T.text,T.textGroup];case X.hyperlink:return[T.hyperlink];case X.image:return[T.image];case X.logo:return[T.logo];case X.errorDiv:return[T.errorDiv];case X.error:return[T.error];case X.audio:return[T.audio];default:return void t.failure(new ir.unexpectedError(or.noMappingToGetHtmlClassNameForElement,[r]))}},this.getDivId=function(t){return e.getId(F.div,t)},this.getId=function(e,t){return Rn.replaceCharactersForHtml(Rn.startsWith(t,e)?t:e+t)},this.getPropertyClassName=function(t){return e.getId(F.property,t)},this.concatIdElement=function(e,t){return Rn.replaceCharactersForHtml(e+"_"+t)}}return e.prototype.concatClassName=function(e,t){return e&&t&&e.trim()+" "+t||e||t},e}()),Xi=Object.freeze({__proto__:null}),$i=Object.freeze({__proto__:null,constants:St,modelElementTypes:kn,promise:zn,eventArgs:Xi,msrCrypto:Ii,tokenEncrypt:Ci,oneDSAdapter:Mi,commerce2:ar,commerceHelper:sr,config:An,configManager:jt,error:ir,fetchHelper:$n,inputValidationHelper:ei,iocContainer:dr,modelElementFactory:pr,modelElementsHelper:mr,pidlDocHelper:cr,tokenizer:Di,typeHelper:Rn,urlBuilder:Ct,userInputDataHelper:Li,userInputDataTransformer:Ui,userInputDataValidator:hi,utils:xn,validationFunctions:pi,version:Hi,webCrypto:vi,htmlAttributeHelper:Yi,hmac:bi,DisplaySettings:Hn,errorMessages:or,EventHub:Gn,FetchConfig:Yn,mockFactory:qi,Resources:ti,stateManager:Ti,telemetryContext:Ni,userContextWrapper:Ri,ViewEventHandler:Fi,DataCache:ri,DataStore:ni,InputPrefillDataManager:di,Model:ki,ModelData:ci,ModelDataProperty:ui,MultiPropertySelector:oi,pidlDocumentManager:wi,Validator:gi,commerceService:ji,loggingService:Bi,pidlService:zi,pidlStoreService:Gi,redirectionService:Ki,oneDSLogger:Ji,telemetryInjectionService:Qi,LoggerWrapper:Zi}),eo=Object.freeze({__proto__:null,controlApi:Wi,get GpayButtonColor(){return Vn},get ApayButtonColor(){return Ln},get GpayButtonType(){return Un},get ApayButtonType(){return jn},get EncryptionTypes(){return _n},doNothing:On,throwException:Mn,createFakePromise:Nn,createFakeRejectedPromise:Bn,errorMessages:or,ModelElement:fr,ContainerElement:yr,GenericGroupElement:hr,GroupElement:gr,DataCollectionBindingGroupElement:vr,CaptchaContainerElement:Pr,GenericCaptchaElement:br,CaptchaElement:Er,PageElement:Ir,TextGroupElement:Sr,PropertyElement:Cr,SelectionElement:Dr,DropdownElement:kr,RadioElement:wr,ButtonListElement:xr,TextBoxElement:Tr,CheckBoxElement:Rr,FilePickerElement:Fr,GenericTextElement:Ar,TextElement:Hr,ButtonElement:Or,AudioElement:Mr,ExpressionElement:Nr,ImageElement:Br,SeparatorElement:Vr,SpinnerElement:Lr,LogoElement:Ur,PidlContainer:jr,PidlInstance:_r,SecurePropertyInitializations:zr,SecurePropertyElement:Gr,ExpressCheckoutButtonElement:Kr,IFrameElement:Wr,ChallengeIFrameElement:qr,isModelElement:Jr,isContainerElement:Qr,isCaptchaElement:Zr,isPageElement:Yr,isSelectionElement:Xr,isDropdownElement:$r,isPrefillDropdownElement:en,isPidlContainerElement:tn,isPidlInstanceElement:rn,isImageElement:nn,isLogoElement:on,isButtonElement:an,isFilePickerElement:sn,isCheckBoxElement:ln,isPrefilledCheckBoxElement:dn,isPageOrGroupOrDataCollectionBindingGroup:un,isGroupElement:cn,isTextGroupElement:pn,isTextBoxElement:mn,isButtonListElement:fn,isRadioElement:yn,isTextElement:hn,isDataCollectionBindingGroup:gn,isExpressionElement:vn,isIFrameElement:Pn,isChallengeIFrameElement:bn,isSecurePropertyElement:En,isExpressCheckoutButtonElement:In,isSeparatorElement:Sn,isAudioElement:Cn,isPropertyElement:Dn,env:Ai,internal:$i,pidlDocumentTypes:Ut,fetchHelper:$n,urlBuilder:Ct,typehelper:Rn,pidlErrors:ir}),to=function(e,t){return to=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},to(e,t)};function ro(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}to(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var no=function(){return no=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},no.apply(this,arguments)};function io(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))}function oo(e,t){var r,n,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(l){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(r=1,n&&(i=2&s[0]?n.return:s[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,s[1])).done)return i;switch(n=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,n=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],n=0}finally{r=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}Object.create;function ao(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||(n||(n=Array.prototype.slice.call(t,0,i)),n[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var so,lo,uo=xe.pidlReact,co=Rn.startsWith;t.AppScenario=void 0,(so=t.AppScenario||(t.AppScenario={})).None="none",so.AddAddress="addAddress",so.AddPaymentInstrument="addPaymentInstrument",so.EditPaymentInstrument="editPaymentInstrument",so.DeletePaymentInstrument="deletePaymentInstrument",so.ApplyPaymentInstrument="applyPaymentInstrument",so.SelectPaymentMethod="selectPaymentMethod",so.ConfirmPayment="confirmPayment",so.SelectPaymentInstrument="selectPaymentInstrument",so.ListAddress="listAddress",so.RiskChallenge="riskChallenge",so.ProfilePrerequisite="profilePrerequisite",so.PaymentInstrumentDetails="paymentInstrumentDetails",so.HandlePaymentChallenge="handlePaymentChallenge",so.VerifyAddress="verifyAddress",so.RedeemMSRewards="redeemMSRewards",so.SelectMSRewards="selectMSRewards",so.OfferPaymentInstrument="offerPaymentInstrument",t.ElementType=void 0,(lo=t.ElementType||(t.ElementType={})).alert="alert",lo.button="button",lo.buttonGroup="buttonGroup",lo.checkbox="checkbox",lo.dialog="dialog",lo.dropdown="dropdown",lo.error="error",lo.group="group",lo.captcha="captcha",lo.audio="audio",lo.heading="heading",lo.helpDialog="helpDialog",lo.hyperlink="hyperlink",lo.iframe="iframe",lo.challengeIframe="challengeIframe",lo.expressCheckoutButton="expressCheckoutButton",lo.secureProperty="secureProperty",lo.securePropertyLabel="securePropertyLabel",lo.image="image",lo.label="label",lo.logo="logo",lo.subheading="subheading",lo.text="text",lo.textBox="textBox",lo.radio="radio",lo.radioCircle="radioCircle",lo.checkedRadioCircle="checkedRadioCircle",lo.modal="modal",lo.overlay="overlay",lo.spinner="spinner",lo.pidlInstance="pidlInstance",lo.panel="panel",lo.textgroup="textgroup",lo.filePicker="filePicker",lo.separator="separator",lo.tooltip="tooltip";var po,mo,fo="prod",yo={DefaultAddressType:"jarvis_v3",Operation:"add",ContainerId:"addResource",ResourceType:"Address",UserId:"me",ViewTermsId:"viewTermsButton"},ho={AllowedPaymentMethods:["credit_card","ewallet.paypal","ewallet.kakaopay","ewallet.stored_value","mobile_billing_non_sim","online_bank_transfer.paysafecard","ewallet.venmo"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me"},go={AddressType:"jarvis_v3",Operation:"update",ContainerId:"updateResource",ResourceType:"AddressEx",UserId:"me"},vo={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me"},Po={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",RiskChallengeData:"globalPIQrCode",ViewTermsId:"globalPIQrCodePrivacyStatement",RedirectButton:"globalPIQrCodeRedirectButton",RedirectButtonPage2:"globalPIQrCodeRedirectButtonPage2"},bo={Operation:"validateInstance",ContainerId:"validateResource",ResourceType:"Address",UserId:"me"},Eo={isCreditCard:"isUserPICreditCard",isCreditCardExpired:"isCreditCardExpired",isEwalletStoredValue:"IsEwalletStoredValue"},Io={Operation:"select",ContainerId:"selectMSRewards",ResourceType:"MSRewards",UserId:"me",useCsvTogglePropertyName:"useCsv",redeemPointsTogglePropertyName:"redeemPoints",csvTotalPropertyName:"csvTotal",formattedCsvTotalPropertyName:"formattedCsvTotal",pointsValueTotalPropertyName:"pointsValueTotal",formattedPointsValueTotalPropertyName:"formattedPointsValueTotal"},So={AllowedPaymentMethods:["credit_card","direct_debit","online_bank_transfer.paysafecard","ewallet","finance_leasing","mobile_billing_non_sim","virtual"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me",SecondaryPIFilter:{SplitPaymentSupported:!0},SelectPaymentInstrument:"SelectPaymentInstrument",paymentInstrumentList:"paymentInstrumentList",addNewPaymentMethodFamily:"add_new_payment_method",preventDefaultSelection:"addnewpm_no_default_selection"},Co={NewPaymentMethodLink:"newPaymentMethodLink",RedeemGiftCardLink:"redeemGiftCardLink",ManagePaymentInstrument:"ManagePaymentInstrument",redeemGiftCardHandlerName:"redeemGiftCardHandler"},Do={Operation:"selectInstance",ContainerId:"listAddress",ResourceType:"Address",UserId:"me",DefaultAddressType:"jarvis_v3"},ko={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",LogoRowElement:"acceptedCardsLogos"},wo={ContainerId:"deletePaymentInstrument",Operation:"delete",ResourceType:"PaymentInstrument",UserId:"me"},xo={ContainerId:"editPaymentInstrument",ViewTermsId:"viewTermsButton",Operation:"update",ResourceType:"PaymentInstrument",UserId:"me"},To={ContainerId:"MSRewards",ResourceType:"MSRewards",UserId:"me"},Ro={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",PaymentType:"mc",PaymentFamily:"credit_card",DefaultScenario:"xboxCreditCardInit"},Fo={Operation:"offer",ContainerId:"offerPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me"},Ao={Operation:"update",ContainerId:"profilePrerequisite",ResourceType:"Profile",UserId:"me",type:"consumer"},Ho={Operation:"selectSingleInstance",ContainerId:"paymentInstrumentDetails",ResourceType:"PaymentInstrument",UserId:"me",type:"consumer",Scenario:"details",ChangeButtonId:"changeSinglePIButton"},Oo={ContainerId:"handlePaymentChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",ViewTermsId:"viewTermsButton"},Mo={ResourceType:"PaymentInstrument",UserId:"me",ActionType:"triggerSubmit"},No={ViewTermsId:"viewTermsButton"};t.AddressScenario=void 0,(po=t.AddressScenario||(t.AddressScenario={})).billing="billing",po.shipping="shipping",po.profile="profile",t.ApplyPaymentInstrumentScenario=void 0,(mo=t.ApplyPaymentInstrumentScenario||(t.ApplyPaymentInstrumentScenario={})).xboxCoBrandedCard="xboxCoBrandedCard",mo.xboxApplyFullPageRender="xboxApplyFullPageRender",t.OfferPaymentInstrumentScenario=void 0,(t.OfferPaymentInstrumentScenario||(t.OfferPaymentInstrumentScenario={})).xboxCoBrandedCardBuyNow="xboxCoBrandedCardBuyNow";var Bo={propertyName:function(e,t){return t.propertyName=e.getPropertyName()},elementId:function(e,t){return t.elementId=e.id},resolvedLogo:function(e,t){return t.resolvedLogo=e.getResolvedLogo()},pidlKey:function(e,t){return t.pidlKey=e.key}};function Vo(){return function(e,t){function r(r,n){var i=r.element;if(i){for(var o={},a=0,s=t;a<s.length;a++){var l=s[a],u=Bo[l];if(u)u(i,o);else{var c=i[l];o[l]=c instanceof Function?c():i[l]}}return d.createElement(e,no({ref:n},o,r))}return null}return r.displayName="ElementWrapper(".concat(t.join("|")," => ").concat(e.displayName||"UnknownComponent",")"),d.forwardRef(r)}}var Lo=Vo(),Uo=(Vo(),Vo(),Vo()),jo=Vo(),_o=Vo(),zo=Vo(),Go=Vo(),Ko=Vo(),Wo=Vo(),qo=Vo(),Jo=Vo(),Qo=Vo(),Zo=Vo(),Yo=Vo(),Xo=Vo(),$o=Vo(),ea=Vo(),ta=Vo(),ra=Vo(),na=Vo(),ia=Vo(),oa=Vo(),aa=(Vo(),d.createContext({pidlDocs:[]}),d.createContext(!1)),sa=d.createContext({values:{},accessibilityText:{},errors:{}}),la=d.createContext({}),da=d.createContext({elementFactory:null,displayOptions:null,displaySettings:null,theme:null,userContext:null,pidlInstanceContexts:void 0,env:null,returnOptions:null}),ua=d.createContext(null),ca=d.createContext(null);function pa(e){void 0===e&&(e={});var t=[];if(e)for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Rn.startsWith(i,xe.noPidlddc)||Rn.startsWith(i,xe.pidlReact)?t.push(e[i]):we[i]||xn.isTagPrefixKnown(i)||t.push(R.taggedClass+e[i])}return t}function ma(e){void 0===e&&(e={});var t=[];if(e)for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];Rn.startsWith(i,xe.pidlReact)&&t.push(e[i].substring(xe.pidlReact.length))}return t}function fa(e){if(void 0===e&&(e={}),e)for(var t=0,r=Object.keys(e);t<r.length;t++){if(r[t]===we.hideInlineError)return!0}return!1}function ya(e){var t;void 0===e&&(e={});var r={};if(e)for(var n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];if(o&&ne.hasOwnProperty(o)){var a=ne[o],s=e[o];r=no(no({},r),((t={})[a]=s,t))}}return r}var ha=function(e){var r=e.propertyName,n=(0,Yi.getId)(St.htmlElementIdPrefixes.error,r);return d.createElement(da.Consumer,null,(function(e){return d.createElement(sa.Consumer,null,(function(i){var o=e.elementFactory,a=(e.displayOptions,e.displaySettings,i.errors[r]?i.errors[r].message:null);if(!a)return null;var s={errorMessage:a};return o&&o.canCreate(t.ElementType.error,s,{})?o.create(t.ElementType.error,s):d.createElement("span",{className:c.default("pidlddc-error",{"d-none":!a},"text-danger"),id:n,tabIndex:-1,role:"alert"},a)}))}))};ha.displayName="Error";var ga=function(e){var r=e.message;return d.createElement(da.Consumer,null,(function(e){var n=e.elementFactory,i=(e.displayOptions,e.displaySettings,{elementId:"pidlddc-page-alert-id",message:r});return n&&n.canCreate(t.ElementType.alert,i,{})?n.create(t.ElementType.alert,i):d.createElement("div",{id:i.elementId,className:"pidlddc-error-alert",role:"alert"},i.message)}))};ga.displayName="PageAlert";var va=function(e){function t(t){var r=e.call(this,t)||this;return r.onEvent=function(e){var t=r.props,n=t.sourceUrl,i=t.expectedClientActionId,o=t.onIFrameMessage,a=t.onIFrameBusyTimerEnded,s=r.state.messageTimer;if(!n||!e.origin||0===n.indexOf(e.origin)){var l=xn.parseJSON(e.data),d=l.succeeded?l.value:null;d&&i&&d.actionId!==i||(s&&(a(s),clearTimeout(s),r.setState({messageTimer:null})),o(e))}},r.iframe=d.createRef(),r.state={executing:!0,width:t.element.width,height:t.element.height},r}return ro(t,e),t.prototype.postMessage=function(e){return!!(this.iframe&&this.iframe.current&&this.iframe.current.contentWindow&&this.iframe.current.contentWindow.postMessage)&&(this.iframe.current.contentWindow.postMessage(e.message,e.targetOrigin),!0)},t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,r=e.sourceUrl,n=e.onIFrameMessageTimeout,i=e.messageTimeout,o=e.messageTimeoutClientAction,a=e.onIFrameBusyTimerStarted,s=e.onIFrameBusyTimerEnded,l=this.iframe.current,d=this.state.messageTimer;if(window.addEventListener(D.message,this.onEvent),!r&&t&&l){var u=l.contentDocument;u&&(u.open(),u.write(t),u.close())}if(!d&&i&&o){var c=window.setTimeout((function(){n(o),s(c)}),i);a(c),this.setState({messageTimer:c})}},t.prototype.componentDidUpdate=function(e,t,r){var n=this.props,i=n.displayContent,o=n.sourceUrl,a=this.iframe.current;if(!o&&i&&e&&e.displayContent!==i&&a){var s=a.contentDocument;s&&(s.open(),s.write(i),s.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(D.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,r=e.accessibilityName,n=e.hidden,i=e.tags,o=e.sourceUrl,a=(e.containerLayoutOrientation,this.state),s=a.width,l=a.height,u={width:s,height:l},p=(0,Yi.getId)(St.htmlElementIdPrefixes.iframe,t),m=(s||l)&&0===Number((s+l).replace(/\D/g,""))?0:void 0;return this.state.executing?d.createElement("iframe",{key:p,className:c.default(pa(i)),id:p,src:o,hidden:n,"aria-label":r,ref:this.iframe,style:u,frameBorder:m}):null},t}(d.Component),Pa=function(e){return d.createElement(da.Consumer,null,(function(r){var n=r.elementFactory,i=r.userContext,o=r.displayOptions,a=e.displayId,s=e.useAuth,l=e.containerLayoutOrientation,u=e.styleHints,c={};s&&null!=(null===i||void 0===i?void 0:i.authToken)&&(c=function(e,t){var r,n;if("xboxCoBrandedCardIframe"===e)try{return{xuh:null===(r=t.split("=")[1])||void 0===r?void 0:r.split(";")[0],xt:null===(n=t.split("=")[1])||void 0===n?void 0:n.split(";")[1]}}catch(i){return{authorization:t}}return{authorization:t}}(a,i.authToken));var p=no(no({},e),{headers:c,useWebView2:o.useWebView2||!1,containerLayoutOrientation:l,styleHints:u});return n&&n.canCreate(t.ElementType.iframe,p,{})?n.create(t.ElementType.iframe,p):d.createElement(va,no({},p,{ref:p.iFrameElementRef}))}))},ba=Ko(Pa,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage","containerLayoutOrientation","styleHints"]),Ea=function(e){var t=e.elementId,r=e.hidden,n=e.showDisplayName,i=e.displayName,o=e.accessibilityName,a=e.element,s=(0,Yi.getId)(St.htmlElementIdPrefixes.label,t);return d.createElement(sa.Consumer,null,(function(e){return d.createElement("label",{className:c.default("pidlddc-label",{"d-none":r||!n}),id:s,"aria-label":e.accessibilityText[a.getPropertyName()]||o},i,d.createElement("span",{className:"".concat(s,"-asterisk")},a.dataDescription.is_optional?"":"*"))}))},Ia=Lo(Ea,["elementId","propertyName","hidden","displayName","showDisplayName","accessibilityName"]);Ia.displayName="PropertyLabel";var Sa=function(e){function r(t){var r=e.call(this,t)||this;return r.linkRef=d.createRef(),r.toggle=function(e){!e&&r.linkRef&&r.linkRef.current&&r.linkRef.current.focus&&r.linkRef.current.focus(),r.setState({open:e})},r.escapeHandler=function(e){27===e.keyCode&&r.toggle(!1)},r.state={open:!1},r}return ro(r,e),r.prototype.componentDidUpdate=function(){var e,t=this.props,r=t.elementId,n=t.elementFactory,i=this.state.open;if(!(null===(e=null===n||void 0===n?void 0:n.isReactNative)||void 0===e?void 0:e.call(n))){var o=document.getElementById("".concat(r,"-dialog-body"));i?(document.addEventListener("keydown",this.escapeHandler,!1),o&&o.focus&&o.focus()):document.removeEventListener("keydown",this.escapeHandler,!1)}},r.prototype.render=function(){var e=this,n=this.props,i=n.elementId,o=n.displayHelpName,a=n.displayImage,s=n.children,l=n.element,u=this.state.open;if((!o||0===o.length)&&!a)return null;var c=l.getHelpDialogTags(),p=c&&c[Re.linkAccessibilityName]||l.accessibilityName,m=c&&c[Re.closeButtonAccessibilityName]||"",f="".concat(a?F.image:F.button).concat(i),y=a?T.helpImageLink:T.helpTextLink;return d.createElement(da.Consumer,null,(function(n){var l=n.elementFactory,c=(n.displayOptions,n.displaySettings);r.elementIdHelpDialogIndex[i]||(r.elementIdHelpDialogIndex[i]=r.latestHelpDialogIndex,r.latestHelpDialogIndex++);var h=0===r.elementIdHelpDialogIndex[i]?"":r.elementIdHelpDialogIndex[i],g=c?c.getAffixedDisplayElementId(F.helpDialogContent+c.helpDialogBlock.id+h):i,v={id:f,children:s,linkAdditionalClassName:y,linkText:o,linkImageSource:a,linkAriaLabel:p,contentId:g,closeButtonAccessibilityName:m};return l&&l.canCreate(t.ElementType.helpDialog,v,{})?l.create(t.ElementType.helpDialog,v):[d.createElement("a",{key:"".concat(f,"-toggle"),id:f,className:y,"aria-label":p,"aria-haspopup":"dialog",onClick:function(){return e.toggle(!0)},href:"javascript:void(null);",ref:e.linkRef},a?d.createElement("img",{src:a,alt:p}):o),d.createElement("dialog",{key:"".concat(i,"-dialog-body"),id:"".concat(i,"-dialog-body"),tabIndex:-1,onBlur:function(){return e.toggle(!1)},open:u},d.createElement("div",{key:"".concat(i,"-dialog-close-button"),id:"".concat(i,"-dialog-close-button"),style:{textAlign:"right",width:"100%",paddingBottom:"6px"}},d.createElement("button",{"aria-label":m,onClick:function(){return e.toggle(!1)}},d.createElement("span",{"aria-hidden":"true"},"x"))),s)]}))},r.elementIdHelpDialogIndex={},r.latestHelpDialogIndex=0,r}(d.Component),Ca=Lo(Sa,["elementId","displayHelp","displayHelpName","displayImage"]);Ca.displayName="HelpDialog";var Da=ra(function(e){function r(t){var r=e.call(this,t)||this;return r.inputFileRef=d.createRef(),r.onChange=function(e){var t=r.props,n=t.onUpdateValue,i=t.propertyName,o=r.inputFileRef.current.value;o?r.setState({selectedFile:o.split(/(\\|\/)/g).pop()}):r.setState({selectedFile:""}),n(i,e.target.files[0],ge.finished)},r.state={selectedFile:""},r.onButtonClick=r.onButtonClick.bind(r),r}return ro(r,e),r.prototype.onButtonClick=function(){this.inputFileRef&&this.inputFileRef.current&&this.inputFileRef.current.click&&this.inputFileRef.current.click()},r.prototype.render=function(){var e=this;return d.createElement(da.Consumer,null,(function(r){return d.createElement(sa.Consumer,null,(function(n){var i=r.elementFactory,o=e.state.selectedFile,a=e.props,s=a.className,l=a.element,u=a.propertyName,p=a.elementId,m=a.disabled,f=a.accessibilityName,y=a.tags,h=a.required,g=a.displayHelpName,v=a.displayHelpChildren,P=a.displayImage,b=l.displayName,E=l.showDisplayName,I=l.displayContent,S=(0,Yi.getId)(St.htmlElementIdPrefixes.filePicker,p),C=c.default(s,pa(y)),D={inlineError:!0},k=E?d.createElement(Ia,{element:l}):null,w=d.createElement(ha,{propertyName:u}),x={id:p},T=g||P?d.createElement(Ca,no({},x,{element:l,children:v,elementFactory:i})):null,R={id:S,additionalClassName:C,disabled:m,inlineHelpLink:T,onChange:e.onChange,onButtonClick:e.onButtonClick,ariaLabel:f,displayName:b,displayContent:I,showDisplayName:E,required:h,errorNode:w,selectedFile:o,inputFileRef:e.inputFileRef};return(D=i&&i.canCreate(t.ElementType.filePicker,R,D))?i.create(t.ElementType.filePicker,R):d.createElement("div",{id:S,className:c.default(C)},k&&T&&l.displayHelpPosition!==ze.floatRight?d.createElement("span",null,k," ",T):k,k&&T?null:T,d.createElement("input",{type:"file",name:"file",ref:e.inputFileRef,onChange:function(t){return e.onChange(t)},style:{display:"none"}}),d.createElement("button",{id:S+"_button","aria-label":f,disabled:m,onClick:e.onButtonClick},I)," ",d.createElement("label",{id:S+"_label"}," ",o," "),D&&D.inlineError?null:d.createElement(ha,{propertyName:u}))}))}))},r}(d.Component),["elementId","disabled","displayHelpName","displayImage","accessibilityName","tags","required"]);Da.displayName="FilePicker";var ka=function(e){var r=e.className,n=e.element,i=e.elementId,o=e.displayContent,a=e.pidlAction,s=e.disabled,l=e.accessibilityName,u=e.onClick,p=e.tags,m=e.styleHints,f=e.tooltipText,y=e.gridColumn,h=e.gridRow,g=e.accessibilityHint,v=e.containerLayoutOrientation,P=a.type,b=a.isDefault,E="submit"===P||b,I=(0,Yi.getId)(St.htmlElementIdPrefixes.button,i),S=c.default(r,pa(p)),C=n.propertyElementRef;return d.createElement(da.Consumer,null,(function(e){var r=e.elementFactory,n=e.theme,i={id:I,displayContent:o,onClick:u,additionalClassName:S,disabled:s,ariaLabel:l,accessibilityHint:g,primary:E,type:E?"primary":"secondary",propertyElementRef:C,theme:n,styleHints:m,tooltipText:f,gridColumn:y,gridRow:h,containerLayoutOrientation:v,tags:p};return r&&r.canCreate(t.ElementType.button,i,{})?r.create(t.ElementType.button,i):d.createElement("button",{id:I,className:c.default(E?"pidlddc-highlighted":"pidlddc-back",S),disabled:s,"aria-label":l,onClick:u},o)}))},wa=ta(ka,["elementId","pidlAction","disabled","displayContent","accessibilityName","accessibilityHint","tags","styleHints","tooltipText","containerLayoutOrientation"]);wa.displayName="Button";var xa=function(e){var r=e.elementId,n=e.displayText,i=e.displayImageUrl,o=e.createElement,a=e.displayContentContainer,s=e.isDisabled,l=e.pidlKey,u=e.onClick,c=e.buttonAction,p=e.containerDisplayId,m=e.ariaLabel,f=e.propertyElementRef,y=e.styleHints,h=e.containerLayoutOrientation,g=e.tags,v=a?o(a):[i?d.createElement("img",{src:i,key:"".concat(r,"-img"),id:"pidlddc-buttonlist-".concat(r,"-").concat(l)}):null,n];return d.createElement(da.Consumer,null,(function(e){var n=e.elementFactory,i=e.displayOptions,o=Yi,a=(0,o.concatIdElement)((0,o.getId)(i.inputPropertyIdPrefix,r),l),P=function(){return u({id:a,pidlAction:c,value:c.context,dest:""})},b={id:a,key:l,onClick:P,additionalClassName:"",displayContent:v,disabled:s,primary:!1,type:"list",containerDisplayId:p,ariaLabel:m,propertyElementRef:f,styleHints:y,containerLayoutOrientation:h,tags:g};return n&&n.canCreate(t.ElementType.button,b,{})?n.create(t.ElementType.button,b):d.createElement("button",{id:a,disabled:s,onClick:P,"aria-label":m},b.displayContent)}))},Ta=oa(xa,["displayImageUrl","displayContentContainer","displayText","isDisabled","displayContent","displayType","pidlKey","styleHints","containerLayoutOrientation","tags"]);Ta.displayName="ButtonListElement";var Ra=function(e){var r=e.createElement,n=e.elementId,i=e.possibleOptions,o=e.onClick,a=e.tags,s=e.displayId,l=e.element,u=e.styleHints,p=e.containerLayoutOrientation,m=[],f=(0,Yi.getId)(St.htmlElementIdPrefixes.buttongroup,n),y=l.propertyElementRef,h=!1;for(var g in i)if(i.hasOwnProperty(g)&&i[g]){var v=i[g],P=i[g].pidlAction||{context:{id:g},type:""},b=null;h||v.isDisabled||(b=y,h=!0),m.push(d.createElement(Ta,{element:v,elementId:n,createElement:r,onClick:o,buttonAction:P,pidlKey:g,containerDisplayId:s,propertyElementRef:b,ariaLabel:null===v||void 0===v?void 0:v.accessibilityName}))}return d.createElement(da.Consumer,null,(function(e){var r=e.elementFactory,n={id:f,additionalClassName:c.default(pa(a)),options:m,optionsDirection:"vertical",displayId:s,propertyElementRef:y,styleHints:u,containerLayoutOrientation:p};return r&&r.canCreate(t.ElementType.buttonGroup,n,{})?r.create(t.ElementType.buttonGroup,n):d.createElement("div",{className:c.default(pa(a)),id:n.id},m)}))},Fa=Yo(Ra,["elementId","possibleOptions","disabled","hidden","tags","displayId","styleHints","containerLayoutOrientation"]);Fa.displayName="ButtonList";var Aa=function(e){var r=e.elementId,n=e.required,i=e.disabled,o=e.hidden,a=e.propertyName,s=e.displayName,l=e.accessibilityName,u=e.onChange,p=e.tags,m=e.displayId,f=e.useDisplayIdAsKeyForCheckState,y=e.element,h=e.styleHints,g=e.containerLayoutOrientation,v=y.propertyElementRef,P=Yi,b=P.getDivId,E=P.getId,I=b(r),S=fa(p);return d.createElement(da.Consumer,null,(function(e){return d.createElement(sa.Consumer,null,(function(r){var P=e.elementFactory,b=e.displayOptions,C=e.displaySettings,D=E(b.inputPropertyIdPrefix,y.displayType===gt.prefillControl?C.prefillCheckboxBlock.id:a),k={elementId:D,displayContent:s,onChange:u,displayId:m,disabled:i,ariaLabel:r.accessibilityText[a]||l,additionalClassName:c.default(pa(p)),inlineError:r.errors[a]&&!S?r.errors[a].message:void 0,checked:f?!!r.values[m]:!0===r.values[a]||"true"===r.values[a],hidden:o,required:n,id:D,propertyName:a,propertyElementRef:v,styleHints:h,containerLayoutOrientation:g},w=P&&P.canCreate(t.ElementType.checkbox,k,{});if(w)return function(e,t){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?t:d.createElement("div",{id:I},t)}(P,d.createElement(d.Fragment,null,P.create(t.ElementType.checkbox,k),w&&w.inlineError||S?null:d.createElement(ha,{propertyName:a})));var x="".concat(k.elementId,"_label");return d.createElement("div",{id:I},d.createElement("label",{id:x,htmlFor:D,"aria-label":k.ariaLabel,hidden:k.hidden},d.createElement("input",{type:"checkbox",id:D,required:k.required,hidden:k.hidden,disabled:k.disabled,checked:k.checked,"aria-labelledby":x,onChange:function(e){return k.onChange(e.currentTarget.checked)}}),k.displayContent),S?null:d.createElement(ha,{propertyName:a}))}))}))},Ha=$o(Aa,["elementId","propertyName","accessibilityName","displayName","required","hidden","disabled","tags","displayId","styleHints","containerLayoutOrientation"]);Ha.displayName="CheckBox";var Oa=function(e){var r=e.element,n=e.elementId,i=e.hidden,o=e.required,a=e.disabled,s=e.showDisplayName,l=e.displayName,u=e.accessibilityName;return s?d.createElement(da.Consumer,null,(function(e){var p=e.elementFactory,m=(e.displayOptions,e.displaySettings,(0,Yi.getId)(St.htmlElementIdPrefixes.label,n)),f={disabled:a,required:o,elementId:m,displayContent:l};if(p&&p.canCreate(t.ElementType.label,f,{}))return p.create(t.ElementType.label,f);for(var y=0;y<r.children.length;y++)if(null!=r.children[y].dataDescription&&!r.children[y].dataDescription.is_optional){f.required=!0;break}return d.createElement("label",{className:c.default("pidlddc-label",i||!s?"d-none":"d-block"),id:f.elementId,"aria-label":u},l,d.createElement("span",{className:"".concat(f.elementId,"-asterisk")},f.required?"*":""))})):null};Oa.displayName="GroupLabelInner";var Ma=Uo(Oa,["elementId","hidden","displayName","showDisplayName","accessibilityName"]);Ma.displayName="GroupLabel";var Na=function(e){function r(t){var r=e.call(this,t)||this;return r.toggleDisplay=function(e){r.setState({open:e})},r.state={open:!0},r}return ro(r,e),r.prototype.render=function(){var e=this.props,r=e.layoutOrientation,n=e.elementId,i=e.childNodes,o=e.tags,a=e.element,s=a.displayId,l=a.type,u=this.state.open,p=(0,Yi.getDivId)(n);return d.createElement(da.Consumer,null,(function(e){var a=e.elementFactory,m=e.displaySettings,f={childNodes:i,layoutOrientation:r,elementId:p,groupClassName:pa(o),displayId:s,type:l,displaySettings:m,open:u};if(a&&a.canCreate(t.ElementType.modal,f,{}))return a.create(t.ElementType.modal,f);var y={position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(128,128,128,0.5)",display:u?"initial":"none"};return f.groupClassName=f.groupClassName.filter((function(e){return!Rn.startsWith(e,xe.pidlReact)})),d.createElement("div",{key:"".concat(n,"-modal"),id:"".concat(n,"-modal"),style:y,className:c.default(f.groupClassName)},d.createElement("dialog",{key:"".concat(n,"-modal-content"),id:"".concat(n,"-modal-content"),tabIndex:-1,open:!0,style:{position:"fixed",top:"50vh",left:"50vw",transform:"translate(-50%,-50%)",height:"75%",width:"50%",backgroundColor:"white",padding:"50px",overflow:"scroll"}},d.createElement(aa.Provider,{value:"inline"===r},i)))}))},r}(d.Component),Ba=Uo(Na,["elementId","layoutOrientation","tags"]);Ba.displayName="Modal";var Va=function(e){function r(t){var r=e.call(this,t)||this;if(t.eventHub){var n=t.elementId,i=t.possibleOptions,o=t.displayId,a=t.maxLength,s=(0,Yi.getDivId)(n);t.eventHub.propertyCreating(s,{displayId:o,possibleOptions:i,maxLength:a},{})}return r}return ro(r,e),r.prototype.render=function(){for(var e,r=this,n=this.props,i=n.elementId,o=n.possibleOptions,a=n.accessibilityName,s=n.displayName,l=n.showDisplayName,u=n.propertyName,c=n.hidden,p=n.isPrefill,m=n.onSelect,f=n.disabled,y=n.required,h=n.displaySelectionText,g=n.onFocus,v=(n.onBlur,n.optionsElements),P=n.isSelectFirstItem,b=n.displayId,E=n.element,I=n.eventHub,S=n.styleHints,C=n.containerLayoutOrientation,D=n.setOpenDropdownId,k=n.openDropdownId,w=n.alwaysUpdateModelValue,x=n.tags,T=St,R=Yi,F=R.getDivId,A=R.generateClassName,H=Yi.getId,O=H(T.htmlElementIdPrefixes.error,i),M=H(T.htmlElementIdPrefixes.input,i),N="input_".concat(i,"dummyLabel"),B=F(i),V=E.propertyElementRef,L="".concat(N," ").concat(O),U=[],j=0,_=Object.keys(o||{});j<_.length;j++){var z=_[j];if(o[z]){e=!p&&!P||e?e:z;var G=o[z],K=G.displayText,W=G.isDisabled,q=G.displayImageUrl,J=G.styleHints;U.push({key:z,text:K,disabled:W,data:{imageUrl:q},styleHints:J})}}!c&&Object.keys(o).length;var Q=function(e){I.propertySelected(M,u,B),g&&g(e)},Z=function(e){var t=r.props,n=t.onBlur,i=t.element,o=t.eventHandler;o.propertyUnselectedHandler({id:Y,propertyName:u,divId:B}),n&&n(e),i.onfocusout&&o.invokePidlAction(i.onfocusout)},Y=F(i),X=A(null,T.htmlElementTypes.div,u,T.modelElementType.dropdown);return d.createElement(da.Consumer,null,(function(n){var i=n.elementFactory,o=n.theme;return function(e,t,r,n){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?d.createElement(d.Fragment,null,n):d.createElement("div",{id:t,className:r},n)}(i,Y,X,d.createElement(sa.Consumer,null,(function(n){var g={},P=g?g.style:void 0,E=n.errors[u]?n.errors[u].message:void 0,I=!!n.errors[u],T={disabled:f,inlineError:E,isInValidationErrorGroup:I,onBlur:Z,onFocus:Q,optionsElements:v,required:y,showDisplayName:l,displayName:s,displayId:b,id:M,ariaLabelId:L,dropdownOptions:U,hidden:c||0===U.length,onChange:m,placeholder:p?void 0:h,value:n.values[u]&&n.values[u].toString()||e,style:P,propertyElementRef:V,theme:o,tags:x,styleHints:S,containerLayoutOrientation:C,setOpenDropdownId:D,openDropdownId:k,alwaysUpdateModelValue:w},R=i&&i.canCreate(t.ElementType.dropdown,T,{inlineError:!0,label:l}),F=null;F=R?i.create(t.ElementType.dropdown,T):r.renderDropdownElement(T);var A=!l||R&&R.label;return d.createElement(d.Fragment,null,function(e,t,n,i){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?d.createElement(d.Fragment,null):d.createElement("label",{id:N,"aria-label":n,style:{display:i?"none":void 0},"aria-hidden":i},t,d.createElement("span",{className:"".concat(Y,"-asterisk")},r.props.required?"*":""))}(i,s,n.accessibilityText[u]||a,A),F,R&&R.inlineError?null:d.createElement(ha,{propertyName:u}))})))}))},r.prototype.renderDropdownElement=function(e){var t=this,r=e.id,n=e.dropdownOptions,i=e.onChange,o=e.value,a=e.additionalClassName,s=e.hidden,l=e.disabled,u=e.required,p=e.placeholder,m=e.ariaLabelId,f=e.inlineError,y=e.onFocus,h=e.onBlur,g=e.isInValidationErrorGroup,v=p?d.createElement("option",{value:""},p):null,P=f||g&&!l,b=[];n.forEach((function(e){var t=e.key,r=e.text,n=e.disabled;b.push(d.createElement("option",{value:t,key:t,disabled:n},r))}));return d.createElement("select",{id:r,className:P?c.default(a,"pidlddc-errorstroke"):a,hidden:s,disabled:l,required:u,"aria-labelledby":m,onFocus:function(e){y&&e&&e.currentTarget&&y(e.currentTarget.value)},onBlur:function(e){h&&e&&e.currentTarget&&function(e){var r=t.props,n=r.onBlur,i=r.element,o=r.eventHandler;n&&n(e),i.onfocusout&&o.invokePidlAction(i.onfocusout)}(e.currentTarget.value)},onChange:function(e){i&&e&&e.target&&i(e.target.value)},value:o},v,b)},r}(d.Component),La=Zo(Va,["elementId","propertyName","possibleOptions","required","hidden","disabled","displayName","showDisplayName","displaySelectionText","accessibilityName","tags","isSelectFirstItem","displayId","styleHints","containerLayoutOrientation","alwaysUpdateModelValue"]);La.displayName="Dropdown";var Ua=function(e){var r=e.elementId,n=e.isInline;return d.createElement(da.Consumer,null,(function(e){return d.createElement(la.Consumer,null,(function(i){var o=e.elementFactory,a=(e.displayOptions,e.displaySettings,i[r]?i[r].message:""),s={errorMessage:a};if(o&&o.canCreate(t.ElementType.error,s,{}))return o.create(t.ElementType.error,s);var l={className:c.default("pidlddc-group-error",{"d-none":!a},"text-danger"),id:"pidlddc-error-".concat(r),tabIndex:-1,role:"alert"};return n?d.createElement("span",no({},l,{"aria-hidden":!a}),a):d.createElement("div",no({},l,{"aria-hidden":!a}),a)}))}))};Ua.displayName="GroupError";var ja=Uo((function(e){var r=e.layoutOrientation,n=e.elementId,i=e.childNodes,o=e.tags,a=e.labelNode,s=e.element,l=s.displayId,u=s.type,p=s.isSubmitGroup,m=s.isHidden,f=e.styleHints,y=e.accessibilityName,h=e.gridColumn,g=e.gridRow,v=e.containerLayoutOrientation;return d.createElement(da.Consumer,null,(function(e){var s=e.elementFactory,P=e.displaySettings,b=Yi.getDivId;return d.createElement(aa.Consumer,null,(function(e){var E;if(m||p&&!1===(null===(E=null===P||void 0===P?void 0:P.submitButtonBlock)||void 0===E?void 0:E.show))return null;var I=b(n),S=d.createElement(Ua,{elementId:n,isInline:e}),C={childNodes:i,errorNode:S,labelNode:a,layoutOrientation:r,elementId:I,groupClassName:pa(o),displayId:l,type:u,displaySettings:P,styleHints:f,isSubmitGroup:p,ariaLabel:y,gridColumn:h,gridRow:g,containerLayoutOrientation:v};return s&&s.canCreate(t.ElementType.group,C,{})?s.create(t.ElementType.group,C):(C.groupClassName=C.groupClassName.filter((function(e){return!Rn.startsWith(e,xe.pidlReact)})),d.createElement("div",{id:C.elementId,className:c.default(C.groupClassName)},a,d.createElement(aa.Provider,{value:"inline"===r},i),S))}))}))}),["elementId","layoutOrientation","tags","accessibilityName","styleHints","containerLayoutOrientation"]);ja.displayName="Group";var _a=_o((function(e){var r=e.layoutOrientation,n=e.elementId,i=e.children,o=e.tags,a=e.ariaLabelledBy,s=e.styleHints,l=e.containerLayoutOrientation,u="inline"===r,p=(0,Yi.getId)(St.htmlElementIdPrefixes.div,n);return d.createElement(da.Consumer,null,(function(e){return function(e,r){var m={children:i,additionalClassName:c.default(pa(o)),elementId:n,ariaLabelledBy:a,styleHints:s,containerLayoutOrientation:l};return e&&e.canCreate(t.ElementType.textgroup,m,{})?e.create(t.ElementType.textgroup,m):(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?d.createElement(d.Fragment,null,r):d.createElement("div",{id:p,className:c.default({"d-inline-block":u},pa(o))},r)}(e.elementFactory,d.createElement(d.Fragment,null,i,d.createElement(Ua,{elementId:n,isInline:!0})))}))}),["elementId","layoutOrientation","tags","styleHints","containerLayoutOrientation"]);_a.displayName="TextGroup";var za=function(e){function r(t){var r=e.call(this,t)||this;if(t.eventHub){var n=t.elementId,i=(0,Yi.getDivId)(n);t.eventHub.captchaRendered(i)}return r}return ro(r,e),r.prototype.render=function(){var e=this.props,r=e.elementId,n=e.audioChildNodes,i=e.imageChildNodes,o=e.tags,a=e.element,s=e.required,l=a.displayId,u=a.type,p=a.id,m=a.displayName,f=a.showDisplayName,y=a.accessibilityName;return d.createElement(da.Consumer,null,(function(e){return d.createElement(sa.Consumer,null,(function(a){var h=e.elementFactory,g=Yi.getDivId,v="image"==a.values[p],P=g(r),b={audioChildNodes:n,imageChildNodes:i,elementId:P,captchaClassName:pa(o),displayId:l,type:u,showImageCaptcha:v,displayName:m,showDisplayName:f,required:s};if(h&&h.canCreate(t.ElementType.captcha,b,{}))return h.create(t.ElementType.captcha,b);var E=d.createElement("label",{className:c.default("pidlddc-label",f?"d-block":"d-none"),id:r,"aria-label":y},m);return b.captchaClassName=b.captchaClassName.filter((function(e){return!Rn.startsWith(e,xe.pidlReact)})),d.createElement("div",{id:b.elementId,className:c.default(b.captchaClassName)},E,v&&i,!v&&n)}))}))},r}(d.Component),Ga=jo(za,["elementId","tags","required"]);Ga.displayName="Captcha";var Ka=function(e){var r=e.className,n=e.element,i=e.elementId,o=e.accessibilityName,a=e.tags,s=e.audioUrl,l=(0,Yi.getId)(St.htmlElementIdPrefixes.audio,i),d=c.default(r,pa(a)),p=n.propertyElementRef;return u.default.createElement(da.Consumer,null,(function(e){var r=e.elementFactory,n=e.theme,i={id:l,additionalClassName:d,ariaLabel:o,propertyElementRef:p,theme:n,audioUrl:s};return r&&r.canCreate(t.ElementType.audio,i,{})?r.create(t.ElementType.audio,i):u.default.createElement("div",{id:l,className:d},u.default.createElement("audio",{"aria-label":o,src:s,controls:!0}))}))},Wa=na(Ka,["elementId","accessibilityName","tags","audioUrl"]);Wa.displayName="Audio";var qa=zo((function(e){var r,n=e.elementId,i=e.pidlAction,o=e.displayContent,a=e.accessibilityName,s=e.tags,l=e.onClick,u=e.styleHints,p=e.gridColumn,m=e.gridRow,f=e.containerLayoutOrientation,y="javascript:void(null);",h=(0,Yi.getId)(St.htmlElementIdPrefixes.hyperlink,n),g=c.default(pa(s)),v=null===(r=ma(s))||void 0===r?void 0:r.includes("noUrl"),P=function(){l&&l({pidlAction:i,id:n})},b=function(e){e&&e.preventDefault&&e.preventDefault(),l&&l({pidlAction:i,id:n})};return d.createElement(da.Consumer,null,(function(e){var r=e.elementFactory,n=(e.displayOptions,e.displaySettings,e.theme),s={id:h,displayContent:o,additionalClassName:g,href:i&&i.context&&!v?i.context:y,ariaLabel:a,onClick:P,theme:n,styleHints:u,gridColumn:p,gridRow:m,containerLayoutOrientation:f};return r&&r.canCreate(t.ElementType.hyperlink,s,{})?r.create(t.ElementType.hyperlink,s):d.createElement("a",{id:h,href:i&&i.context&&Rn.isString(i.context)?i.context:y,"aria-label":a,className:g,onClick:b},o)}))}),["elementId","pidlAction","displayContent","accessibilityName","tags","styleHints","containerLayoutOrientation"]);qa.displayName="Hyperlink";var Ja=Go((function(e){var r=e.accessibilityName,n=e.element,i=e.elementId,o=e.sourceUrl,a=e.codepoint,s=e.tags,l=e.styleHints,u=e.gridColumn,p=e.gridRow,m=e.containerLayoutOrientation,f=Yi.getId,y=St;return d.createElement(da.Consumer,null,(function(e){var h,g=e.elementFactory,v={additionalClassName:c.default(pa(s)),ariaLabel:r||(null===(h=null===n||void 0===n?void 0:n.displayDescription)||void 0===h?void 0:h.accessibilityName),elementId:f(y.htmlElementIdPrefixes.image,i),sourceUrl:o,codepoint:a,styleHints:l,gridColumn:u,gridRow:p,containerLayoutOrientation:m};return g&&g.canCreate(t.ElementType.image,v,{})?g.create(t.ElementType.image,v):d.createElement("img",{id:v.elementId,src:o,alt:r,"aria-label":r,className:v.additionalClassName})}))}),["elementId","accessibilityName","sourceUrl","codepoint","tags","styleHints","containerLayoutOrientation"]);Ja.displayName="Image";var Qa=ia((function(e){var r=e.displayId,n=e.sourceUrl,i=e.tags,o=e.styleHints,a=e.gridColumn,s=e.gridRow,l=e.containerLayoutOrientation,u=i&&i.accessibilityName?i.accessibilityName:void 0,p=Yi.getId,m=St;return d.createElement(da.Consumer,null,(function(e){var f=e.elementFactory,y={additionalClassName:c.default(pa(i)),ariaLabel:u,elementId:p(m.htmlElementIdPrefixes.image,r),sourceUrl:n,styleHints:o,gridColumn:a,gridRow:s,containerLayoutOrientation:l};return f&&f.canCreate(t.ElementType.logo,y,{})?f.create(t.ElementType.logo,y):d.createElement("img",{className:c.default("pidlddc-logo-image","pidlddc-logoBlock",y.additionalClassName),id:y.elementId,src:n,alt:u,"aria-label":u,style:{width:"48px",height:"48px"}})}))}),["displayId","sourceUrl","tags","styleHints","containerLayoutOrientation"]);Qa.displayName="LogoElement";var Za=function(e){function t(t){var r=e.call(this,t)||this;return r.onEvent=function(e){var t=r.props,n=t.sourceUrl,i=(t.expectedClientActionId,t.onChallengeIFrameMessage),o=t.onChallengeIFrameBusyTimerEnded,a=r.state.messageTimer;n&&e.origin&&0!==n.indexOf(e.origin)||(a&&(o(a),clearTimeout(a),r.setState({messageTimer:null})),i(e))},r.iframe=d.createRef(),r.state={executing:!0,width:t.element.width,height:t.element.height},r}return ro(t,e),t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,r=e.sourceUrl,n=e.onChallengeIFrameMessageTimeout,i=e.messageTimeout,o=e.messageTimeoutClientAction,a=e.onChallengeIFrameBusyTimerStarted,s=e.onChallengeIFrameBusyTimerEnded,l=this.iframe.current,d=this.state.messageTimer;if(window.addEventListener(D.message,this.onEvent),!r&&t&&l){var u=l.contentDocument;u&&(u.open(),u.write(t),u.close())}if(!d&&i&&o){var c=window.setTimeout((function(){n(o),s(c)}),i);a(c),this.setState({messageTimer:c})}},t.prototype.componentDidUpdate=function(e,t,r){var n=this.props,i=n.displayContent,o=n.sourceUrl,a=this.iframe.current;if(!o&&i&&e&&e.displayContent!==i&&a){var s=a.contentDocument;s&&(s.open(),s.write(i),s.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(D.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,r=e.accessibilityName,n=e.hidden,i=e.tags,o=e.sourceUrl,a=(e.containerLayoutOrientation,this.state),s=a.width,l=a.height,u={width:s,height:l},p=(0,Yi.getId)(St.htmlElementIdPrefixes.iframe,t),m=(s||l)&&0===Number((s+l).replace(/\D/g,""))?0:void 0;return this.state.executing?d.createElement("iframe",{key:p,className:c.default(pa(i)),id:p,src:o,hidden:n,"aria-label":r,ref:this.iframe,style:u,frameBorder:m}):null},t}(d.Component),Ya=Wo((function(e){return d.createElement(da.Consumer,null,(function(r){var n=r.elementFactory,i=r.userContext,o=r.displayOptions,a=e.displayId,s=e.useAuth,l=e.containerLayoutOrientation,u={};s&&null!=(null===i||void 0===i?void 0:i.authToken)&&(u=function(e,t){var r,n;if("xboxCoBrandedCardIframe"===e)try{return{xuh:null===(r=t.split("=")[1])||void 0===r?void 0:r.split(";")[0],xt:null===(n=t.split("=")[1])||void 0===n?void 0:n.split(";")[1]}}catch(i){return{authorization:t}}return{authorization:t}}(a,i.authToken));var c=no(no({},e),{headers:u,useWebView2:o.useWebView2||!1,containerLayoutOrientation:l});return n&&n.canCreate(t.ElementType.challengeIframe,c,{})?n.create(t.ElementType.challengeIframe,c):d.createElement(Za,no({},c,{ref:c.challengeIFrameElementRef}))}))}),["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage","containerLayoutOrientation"]),Xa=function(e){function t(t){var r=e.call(this,t)||this;return r.defaultMessageTimeout=3e3,r.resetTimer=function(e){var t=r.props.messageTimeout;r.state.messageTimer&&clearTimeout(r.state.messageTimer),r.setState({messageTimer:setTimeout(e,t||r.defaultMessageTimeout)})},r.clearTimer=function(){r.state.messageTimer&&(clearTimeout(r.state.messageTimer),r.setState({messageTimer:void 0}))},r.onEvent=function(e){var t,n,i=r.props,o=i.sourceUrl,a=i.frameName,s=i.onIFrameMessage,l=i.isIFrameEligible,d=i.onIFrameBusyTimerEnded,u=r.state.messageTimer;if(!((null===(t=e.data)||void 0===t?void 0:t.source)!==a||o&&e.origin&&0!==o.indexOf(e.origin))){if((null===(n=e.data)||void 0===n?void 0:n.messageType)===qe.isEligible&&void 0!==u){var c=e.data.isEligible||!1,p=e.data.pmType;return r.clearTimer(),l(p||a,c),d(0),void r.setState({isEligible:c})}s(e)}},r.onExpressCheckoutLoad=function(){var e=r.props,t=e.onIFrameLoadHandler,n=e.frameName,i=e.payload,o=e.sourceUrl;t(n,i,new URL(o).origin)},r.expressCheckoutButtonIFrameRef=d.createRef(),r.state={isEligible:!1,width:t.element.width,height:t.element.height},r}return ro(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.frameName,r=e.isIFrameEligible,n=e.onIFrameBusyTimerStarted;window.addEventListener(D.message,this.onEvent),n(0),this.resetTimer((function(){return r(t,!1)}))},t.prototype.componentWillUnmount=function(){window.removeEventListener(D.message,this.onEvent),this.clearTimer()},t.prototype.render=function(){var e=this.props,t=e.displayId,r=e.accessibilityName,n=e.hidden,i=e.tags,o=e.sourceUrl,a=e.frameName,s=this.state,l=s.isEligible,u=s.width,p=s.height,m=(0,Yi.getId)(St.htmlElementIdPrefixes.iframe,t),f=new URL(o).origin,y=(u||p)&&0===Number((u+p).replace(/\D/g,""))?0:void 0,h={width:u,height:p};return h.display=l?"inline":"none",d.createElement("iframe",{key:m,className:c.default(pa(i)),id:m,src:o,name:a,hidden:n,"aria-label":r,ref:this.expressCheckoutButtonIFrameRef,style:h,onLoad:this.onExpressCheckoutLoad,frameBorder:y,allow:"payment ".concat(f)})},t}(d.Component),$a=function(e){return d.createElement(da.Consumer,null,(function(t){var r=t.displayOptions,n=no(no({},e),{headers:{},useWebView2:r.useWebView2||!1});return d.createElement(Xa,no({},n,{ref:n.expressCheckoutButtonElementRef}))}))},es=qo($a,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","frameName","payload","messageTimeout"]),ts=ea(function(e){function r(t){return e.call(this,t)||this}return ro(r,e),r.prototype.render=function(){var e=this.props,r=e.element,n=e.elementId,i=e.possibleOptions,o=e.accessibilityName,a=e.displayName,s=e.showDisplayName,l=e.propertyName,u=e.disabled,p=e.required,m=e.hidden,f=e.onSelect,y=e.tags,h=e.optionsElements,g=e.styleHints,v=[];for(var P in i)i.hasOwnProperty(P)&&v.push({key:P,value:i[P].key||P,isDisabled:i[P].isDisabled,displayText:i[P].displayText,displayImageUrl:i[P].displayImageUrl});return d.createElement(da.Consumer,null,(function(e){return d.createElement(aa.Consumer,null,(function(i){return d.createElement(sa.Consumer,null,(function(P){var b,E=e.elementFactory,I=(e.displayOptions,e.displaySettings,e.theme),S=Yi.getId,C=St,D=S(C.htmlElementIdPrefixes.div,n),k={elementId:n,isInline:i,hidden:m,options:v,optionsElements:h,ariaLabel:P.accessibilityText[l]||o,showDisplayName:s,displayName:a||r.displayName,additionalClassName:c.default(pa(y)),onSelect:f,disabled:u,propertyName:l,required:p,invalid:!1,selectedValue:P.values[l]&&P.values[l].toString(),propertyElementRef:r.propertyElementRef,theme:I,styleHints:g},w=E&&E.canCreate(t.ElementType.radio,k,{});return w?(null===(b=null===E||void 0===E?void 0:E.isReactNative)||void 0===b?void 0:b.call(E))?E.create(t.ElementType.radio,k):d.createElement("div",{id:D,className:c.default(D,S(C.htmlElementIdPrefixes.div,r.displayId))},E.create(t.ElementType.radio,k),w&&w.inlineError?null:d.createElement(ha,{propertyName:l})):d.createElement("div",{className:c.default("pidlddc-input-".concat(n))},v.map((function(e){var t="input_".concat(n,"_").concat(e.value),r="".concat(t,"_displayTextLabel");return d.createElement("div",{key:t},d.createElement("label",{id:"".concat(t,"_displayNameLabel"),"aria-label":k.ariaLabel,className:c.default({"pidlddc-hidden":!s}),"aria-hidden":!s},a),d.createElement("div",{className:c.default(pa(y))},d.createElement("label",{id:r,htmlFor:t,"aria-label":e.displayText,onClick:function(){return e.isDisabled||u?null:f(e.value)}},d.createElement("input",{id:t,type:"radio",name:"radio-input-".concat(l),disabled:e.isDisabled||u,required:p,"aria-labelledby":r,value:e.value,onChange:function(){return f(e.value)},checked:k.selectedValue===e.value}),h&&h[e.value]?h[e.value]:e.displayText)))})),d.createElement(ha,{propertyName:l}))}))}))}))},r}(d.Component),["elementId","propertyName","possibleOptions","required","hidden","disabled","showDisplayName","accessibilityName","tags","styleHints"]);ts.displayName="Radio";var rs=function(e){var r=e.elementId,n=e.displayContent,i=e.tags,o=e.styleHints,a=e.containerLayoutOrientation,s=c.default(pa(i)),l=(0,Yi.getId)(St.htmlElementIdPrefixes.text,r),u=e.element.isHidden;return d.createElement(da.Consumer,null,(function(e){var r=e.elementFactory,c=(e.displayOptions,e.displaySettings,e.theme),p={id:l,elementId:l,displayContent:n,additionalClassName:s,theme:c,styleHints:o,containerLayoutOrientation:a,elementHtmlAttributes:ya(i)};return u?null:r&&r.canCreate(t.ElementType.heading,p,{})?r.create(t.ElementType.heading,p):d.createElement("h2",{id:l,className:s},n)}))},ns=zo(rs,["elementId","displayContent","tags","styleHints","containerLayoutOrientation"]);ns.displayName="Heading";var is=function(e){var r=e.elementId,n=e.displayContent,i=e.tags,o=e.styleHints,a=e.containerLayoutOrientation,s=c.default(pa(i)),l=(0,Yi.getId)(St.htmlElementIdPrefixes.text,r);return d.createElement(da.Consumer,null,(function(e){var r=e.elementFactory,u=(e.displayOptions,e.displaySettings,e.theme),c={id:l,elementId:l,displayContent:n,additionalClassName:s,theme:u,styleHints:o,containerLayoutOrientation:a,elementHtmlAttributes:ya(i)};return r&&r.canCreate(t.ElementType.subheading,c,{})?r.create(t.ElementType.subheading,c):d.createElement("h3",{id:l,className:s},n)}))},os=zo(is,["elementId","displayContent","tags","styleHints","containerLayoutOrientation"]);os.displayName="SubHeading";var as=function(e){var r=e.elementId,n=e.displayContent,i=e.tags,o=e.styleHints,a=e.gridColumn,s=e.gridRow,l=e.hidden,u=e.containerLayoutOrientation,p=e.accessibilityName,m=(0,Yi.getId)(St.htmlElementIdPrefixes.text,r),f=ma(i),y=c.default(pa(i)),h=l?{display:"none"}:void 0;return d.createElement(aa.Consumer,null,(function(e){return d.createElement(da.Consumer,null,(function(r){var c=r.elementFactory,g=(r.displayOptions,r.displaySettings,r.theme),v={id:m,displayContent:n,additionalClassName:y,inline:e,theme:g,hidden:l,styleHints:o,gridColumn:a,gridRow:s,containerLayoutOrientation:u,accessibilityName:p,tags:i,elementHtmlAttributes:ya(i)};if(c){if(l&&(null===c||void 0===c?void 0:c.isReactNative)&&c.isReactNative())return;var P={displayContent:n,elementId:m,theme:g};if(f.indexOf("labelText")>=0&&c.canCreate(t.ElementType.label,v,{}))return c.create(t.ElementType.label,P);if(c.canCreate(t.ElementType.text,v,{}))return c.create(t.ElementType.text,v)}return e?d.createElement("span",{id:m,className:y,style:h},n):d.createElement("p",{id:m,className:y,style:h},n)}))}))},ss=zo(as,["elementId","displayContent","tags","styleHints","hidden","containerLayoutOrientation","accessibilityName"]);ss.displayName="Text";var ls=function(e){function t(r){var n=e.call(this,r)||this;return n.getTransformedLength=function(e,t,r){var n=t.substr(0,r),i=xn.applyDisplayTransformation(e.forModel,n);return(i=xn.applyDisplayTransformation(e.forFormat,i)).length},n.onFocus=function(e){var t=n.props.onFocus;t&&e&&e.currentTarget&&t(e.currentTarget.value)},n.onBlur=function(e){var t=n.props.onBlur;t&&e&&e.currentTarget&&t(e.currentTarget.value)},n.onChange=function(e){var r=n.props,i=r.element,o=r.onChange,a=r.id,s=i.displayTransformations;t.caretPosition={id:a,start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd,direction:"forward"===e.currentTarget.selectionDirection?"forward":"backward"===e.currentTarget.selectionDirection?"backward":"none"};var l=e.currentTarget.value;if(s&&s.forModel&&s.forFormat&&(t.caretPosition.start=n.getTransformedLength(s,l,t.caretPosition.start),t.caretPosition.end=n.getTransformedLength(s,l,t.caretPosition.end)),o){var d=e.currentTarget.value;s&&s.forModel&&(d=xn.applyDisplayTransformation(s.forModel,d)),o(d)}},n.onCompositionStart=function(e){n.inComposition=!0},n.onCompositionEnd=function(e){n.inComposition=!1},n.htmlInput=d.createRef(),n.inComposition=!1,n}return ro(t,e),t.prototype.componentDidUpdate=function(){this.props.id===t.caretPosition.id&&this.htmlInput.current.setSelectionRange(t.caretPosition.start,t.caretPosition.end,t.caretPosition.direction)},t.prototype.render=function(){var e=this.props,t=e.element,r=e.additionalClassName,n=e.id,i=e.maskInput,o=e.maxLength,a=e.required,s=e.hidden,l=e.disabled,u=e.placeholder,p=e.ariaLabelId,m=e.inlineError,f=(e.onFocus,e.onBlur,e.onChange,e.isInValidationErrorGroup),y=(e.styleHints,this.props.value),h=t.displayTransformations,g=m||f&&!l;return!this.inComposition&&h&&h.forFormat&&(y=xn.applyDisplayTransformation(h.forFormat,y)),d.createElement("input",{type:i?"password":"text",className:g?c.default(r,"pidlddc-errorstroke"):r,id:n,ref:this.htmlInput,maxLength:o,required:a,hidden:s,disabled:l,value:y,placeholder:u,"aria-labelledby":p,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd})},t.caretPosition={id:null,start:0,end:0,direction:"none"},t}(d.Component),ds=Xo(function(e){function r(t){var r=e.call(this,t)||this;return r.onChange=function(e){var t=r.props;(0,t.onUpdateValue)(t.propertyName,e,ge.editing)},r.onBlur=function(e){var t=r.props;(0,t.onUpdateValue)(t.propertyName,e,ge.finished)},r.onSelected=function(e,t,n){r.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:n})},r.onUnselected=function(e,t,n){r.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:n})},r.onFocusInternal=function(e){var t=r.props,n=t.elementId,i=t.propertyName,o=t.displayOptions,a=t.onFocus,s=Yi,l=s.getDivId,d=s.getId,u=l(n),c=d(o.inputPropertyIdPrefix,i);r.onSelected&&r.onSelected(c,i,u),a&&a(e)},r.onBlurInternal=function(e){var t=r.props,n=t.elementId,i=t.propertyName,o=t.displayOptions,a=t.element,s=t.eventHandler,l=Yi,d=l.getDivId,u=l.getId,c=d(n),p=u(o.inputPropertyIdPrefix,i);r.onUnselected&&r.onUnselected(p,i,c),r.onBlur&&r.onBlur(e),a.onfocusout&&s.invokePidlAction(a.onfocusout)},r}return ro(r,e),r.prototype.render=function(){var e=this;return d.createElement(da.Consumer,null,(function(r){return d.createElement(sa.Consumer,null,(function(n){var i=r.elementFactory,o=r.displayOptions,a=r.theme,s=e.props,l=s.elementId,u=s.element,p=s.required,m=s.disabled,f=s.hidden,y=s.propertyName,h=s.maxLength,g=s.displayHelpName,v=s.displayImage,P=s.tags,b=void 0===P?{}:P,E=s.placeHolderText,I=s.showKeyLogo,S=s.resolvedLogo,C=s.displayHelpChildren,D=(s.onFocus,s.displayId),k=s.accessibilityName,w=s.accessibilityHint,x=s.styleHints,T=s.containerLayoutOrientation,R=u.displayName,F=u.showDisplayName,A=u.displayDescription,H=u.propertyElementRef,O=St,M=Yi,N=M.getDivId,B=M.getId,V=M.generateClassName,L=M.concatClassName,U=N(l),j=B(o.inputPropertyIdPrefix,y),_={inlineError:!0},z=n.errors[y]?n.errors[y].message:void 0,G=!!n.errors[y],K=F?d.createElement(Ia,{element:u}):null,W={id:l},q=g||v?d.createElement(Ca,no({},W,{element:u,children:C,elementFactory:i})):null,J={disabled:m,displayName:R,hidden:f,inlineError:z,isInValidationErrorGroup:G,maskInput:A&&A.maskInput,maxLength:h,onBlur:e.onBlurInternal,onChange:e.onChange,onFocus:e.onFocusInternal,required:p,showDisplayName:F,inlineHelpLink:q,additionalClassName:c.default(pa(b)),ariaLabelId:"pidlddc-label-".concat(y," pidlddc-error-").concat(y),id:j,inlineLogo:I&&S,placeholder:E,value:n.values[y]&&n.values[y].toString()||"",propertyName:y,displayId:D,propertyElementRef:H,ariaLabel:k,accessibilityHint:w,theme:a,styleHints:x,containerLayoutOrientation:T,tags:b},Q=null;(_=i&&i.canCreate(t.ElementType.textBox,J,_))?(Q=i.create(t.ElementType.textBox,J),_.label&&(K=null),_.inlineHelpLink&&(q=null)):Q=d.createElement(ls,no({},J,{element:u}));var Z=V(null,O.htmlElementTypes.div,y,O.modelElementType.textBox);D&&(Z=L(Z,N(D)));var Y;return Y=d.createElement(d.Fragment,null,K&&q&&u.displayHelpPosition!==ze.floatRight?d.createElement("span",null,K," ",q):K,q&&u.displayHelpPosition===ze.floatRight?d.createElement("span",null,Q," ",q):Q,K&&q?null:q,_&&_.inlineError?null:d.createElement(ha,{propertyName:y})),(null===i||void 0===i?void 0:i.isReactNative)&&i.isReactNative()?d.createElement(d.Fragment,null,Y):d.createElement("div",{id:U,className:Z},Y)}))}))},r}(d.Component),["elementId","tags","propertyName","displayHelpName","maxLength","required","hidden","disabled","showKeyLogo","resolvedLogo","placeHolderText","displayImage","displayId","accessibilityName","accessibilityHint","styleHints","containerLayoutOrientation","tags"]);ds.displayName="TextBox";var us=function(e){function r(t){var r=e.call(this,t)||this;return r.pidlInstanceRef=d.createRef(),t.pidlInstanceRefs[t.pidlInstance]=r.pidlInstanceRef,r}return ro(r,e),r.prototype.render=function(){var e=this,r=this.props,n=r.elementId,i=r.tags,o=r.pidlInstance,a=r.disabled,s=r.hidden;if(a)return null;var l=(0,Yi.getId)(St.htmlElementIdPrefixes.pidlInstance,n),u=c.default(pa(i));return d.createElement(da.Consumer,null,(function(r){var n=r.elementFactory,i=r.pidlInstanceContexts,c=r.userContext,p=r.displayOptions,m=r.env,f=r.returnOptions,y=null;i&&i[o]&&(y=i[o]);var h=o,g={id:l,additionalClassName:u,pidlInstance:o,disabled:a,pidlInstanceKey:h};if(n&&n.canCreate(t.ElementType.pidlInstance,g,{}))return n.create(t.ElementType.pidlInstance,g);if(!y)return null;return function(){if(s)return d.createElement(d.Fragment,null);switch(y.action){case"addResource":return d.createElement(Gs,{key:o,userContext:c,pidlDocInfo:y.pidlDocInfo,displayOptions:p,env:m,returnOptions:f,pidlInstanceKey:h,ref:e.pidlInstanceRef,elementFactory:n});case"selectResource":return d.createElement(El,{key:o,userContext:c,pidlDocInfo:y.pidlDocInfo,displayOptions:p,env:m,pidlInstanceKey:h,returnOptions:f,ref:e.pidlInstanceRef,elementFactory:n})}}()}))},r}(d.Component),cs=Qo(us,["elementId","tags","pidlInstance","disabled","hidden"]);cs.displayName="PidlInstance";var ps=function(){function e(e){this.group=e}return e.prototype.addChild=function(e){return this.group.members||(this.group.members=[]),this.group.members.push(e),this},e.prototype.addHeading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:gt.heading})},e.prototype.addSubheading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:gt.subheading})},e.prototype.addText=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:gt.text})},e.prototype.addGroup=function(t,r,n){void 0===n&&(n=!1),this.group.members||(this.group.members=[]);var i={displayId:t,isSubmitGroup:n,displayType:gt.group,layoutOrientation:vt.vertical,displayName:r||"",members:[]};return this.group.members.push(i),new e(i)},e.prototype.addInlineGroup=function(t,r,n){void 0===n&&(n=!1),this.group.members||(this.group.members=[]);var i={displayId:t,isSubmitGroup:n,displayType:gt.group,layoutOrientation:vt.inline,displayName:r||"",members:[]};return this.group.members.push(i),new e(i)},e.prototype.addExpression=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:gt.expression})},e.prototype.addTextGroup=function(t,r){this.group.members||(this.group.members=[]);var n={displayId:t,isSubmitGroup:!1,displayType:gt.textGroup,layoutOrientation:vt.inline,displayName:r||"",members:[]};return this.group.members.push(n),new e(n)},e.prototype.addSubmitGroup=function(e,t){return this.addInlineGroup(e,t,!0)},e.prototype.addButton=function(e,t,r,n){return void 0===n&&(n={}),this.addChild(no({displayId:e,pidlAction:r,displayContent:t,displayType:"button",tags:{accessibilityName:t}},n))},e.prototype.addSubmitButton=function(e,t,r){return r=no({type:"submit",isDefault:!0},r),this.addButton(e,t,r,{isHighlighted:!0})},e.prototype.addCancelButton=function(e,t,r){return r=no({type:"gohome"},r),this.addButton(e,t,r,{isBack:!0})},e}(),ms=function(e){var t=this;this.addDataDescription=function(e,r){return t.dataDescription[e]=r,t},this.addPage=function(e,r){var n={displayId:e,displayName:r,members:[],displayType:gt.page};return t.pages.push(n),new ps(n)},this.build=function(){return{identity:t.identity,data_description:t.dataDescription,displayDescription:t.pages}},this.identity=e,this.dataDescription={},this.pages=[]},fs=function(e){var t=this;this.required=function(e,r){return t.validations.push({error_code:e,error_message:r,validationType:pt.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{1,128}$"}),t},this.hasLetters=function(e,r,n){var i="number"===typeof n?n:"".concat(n[0],",").concat(n[1]);return t.validations.push({error_code:e,error_message:r,validationType:pt.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{".concat(i,"}$")}),t},this.alphanumeric=function(e,r,n){var i="number"===typeof n?n:"".concat(n[0],",").concat(n[1]);return t.validations.push({error_code:e,error_message:r,validationType:pt.regex,regex:"^[A-Za-z0-9]{".concat(i,"}$")}),t},this.numeric=function(e,r,n){var i="number"===typeof n?n:"".concat(n[0],",").concat(n[1]);return t.validations.push({error_code:e,error_message:r,validationType:pt.regex,regex:"^\\d{".concat(i,"}$")}),t},this.exactly=function(e,r,n){return n=Array.isArray(n)?n.join("|"):n,t.validations.push({error_code:e,error_message:r,validationType:pt.regex,regex:"^".concat(n,"$")}),t},this.validations=e},ys=function(e,t){var r=this;this.validations=[],this.possibleValues=null,this.possibleOptions=null,this.dataCollectionSource=null,this.defaultValue=null,this.isDisabled=null,this.setDataCollectionSource=function(e,t,n){return r.dataCollectionSource=e,r.possibleOptions={},r.possibleOptions[t]={displayText:n,isDisabled:!1},r},this.validate=function(){return new fs(r.validations)},this.setPossibleValues=function(e){r.possibleOptions={};for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];r.possibleOptions[i]={displayText:e[i],isDisabled:!1}}return r.possibleValues=e,r},this.setDisabled=function(){return r.isDisabled=!0,r},this.setDefaultValue=function(e){return r.defaultValue=e,r},this.buildData=function(){var e={validations:r.validations};return r.validations.length>0&&(e.validation=r.validations[0]),r.dataCollectionSource&&(e.possible_values={}),r.defaultValue&&(e.default_value=r.defaultValue),no(no({},r.base),e)},this.buildDisplay=function(e){var t=r.propertyName,n={};r.dataCollectionSource?(n.dataCollectionSource=r.dataCollectionSource,n.possibleOptions=r.possibleOptions):r.possibleValues&&(n.possibleValues={},n.possibleOptions={},Object.keys(r.possibleValues).forEach((function(e){var t=r.possibleValues&&r.possibleValues[e];t&&(n.possibleValues[e]=t,n.possibleOptions[e]={displayText:t,isDisabled:!1})})),n.displaySelectionText="--- ".concat(t," ---"));var i=r.validations[0],o=i?{defaultErrorMessage:i.error_message,fromErrorCode:[{errorCode:i.error_code,errorMessage:i.error_message}]}:{},a=!!r.isDisabled;return no(no({displayName:t,showDisplayName:"true",displayId:"display_".concat(t),displayType:"property",propertyName:t,tags:{accessibilityName:t},displayErrorMessages:o,isDisabled:a},n),e)},this.propertyName=e,this.base=t||{propertyType:"userData",type:"string",dataType:"string",is_updatable:!0}},hs=function(e){var t=e.displayId,r=e.required,n=e.disabled,i=e.hidden,o=e.elementId,a=e.propertyName,s=e.displayName,l=e.accessibilityName,u=e.onChange,c=e.tags,p=e.element,m=(0,e.getMultiPropertySelectorPossibleOptions)(p.pidlIdentity),f=i||!m;return d.createElement(Ha,{element:p,elementId:o,required:r,hidden:f,disabled:n,propertyName:a,displayName:s,accessibilityName:l,onChange:function(e){return u(e)},displayId:t,useDisplayIdAsKeyForCheckState:!0,tags:c})},gs=$o(hs,["elementId","propertyName","accessibilityName","displayName","displayId","required","hidden","disabled","tags"]);gs.displayName="PrefillCheckBox";var vs=zo((function(e){var r=e.elementId,n=e.tags,i=(0,Yi.getId)(St.htmlElementIdPrefixes.separator,r),o=c.default(pa(n));return d.createElement(da.Consumer,null,(function(e){var r=e.elementFactory,n={id:i,additionalClassName:o};return r&&r.canCreate(t.ElementType.separator,n,{})?r.create(t.ElementType.separator,n):d.createElement("hr",{id:i,className:o})}))}),["elementId","tags"]);vs.displayName="Separator";var Ps=zo((function(e){var r=e.elementId,n=e.tags,i=e.containerLayoutOrientation,o=(0,Yi.getId)(St.htmlElementIdPrefixes.spinner,r),a=c.default(pa(n));return d.createElement(da.Consumer,null,(function(e){var n=e.elementFactory,s={elementId:r,additionalClassName:a,containerLayoutOrientation:i};return n&&n.canCreate(t.ElementType.spinner,s,{})?n.create(t.ElementType.spinner,s):d.createElement("hr",{id:o,className:a})}))}),["elementId","tags","containerLayoutOrientation"]);Ps.displayName="Spinner";var bs=Jo(function(e){function r(t){var r,n,i=this;(i=e.call(this,t)||this).onLoadEventHandler=function(){var e=i.props,t=e.element;e.eventHandler.resolveSecurePropertyLoadedPromise(t.id)},i.onMessageEvent=function(e){var t,r,n,o,a,s,l=i.props,d=l.sourceUrl,u=l.propertyName,c=l.displayId,p=l.eventHandler,m=Yi,f=m.getDivId,y=m.getId,h=St,g=f(c),v=y(h.htmlElementIdPrefixes.secureProperty,u);(null===e||void 0===e?void 0:e.origin)&&0!==(null===d||void 0===d?void 0:d.indexOf(e.origin))||((null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.event)!==h.SecureFieldEvent.focused||(null===(r=null===e||void 0===e?void 0:e.data)||void 0===r?void 0:r.field)!==u?(null===(n=null===e||void 0===e?void 0:e.data)||void 0===n?void 0:n.event)!==h.SecureFieldEvent.blurred||(null===(o=null===e||void 0===e?void 0:e.data)||void 0===o?void 0:o.field)!==u?(null===(a=null===e||void 0===e?void 0:e.data)||void 0===a?void 0:a.source)===h.SecureFieldConstants.secureFieldMessageSource&&(null===(s=null===e||void 0===e?void 0:e.data)||void 0===s?void 0:s.field)===u&&p.secureFieldMessageHandler(e):i.onBlurInternal(v,e.data.field,g):i.onFocusInternal(v,e.data.field,g))},i.onFocusInternal=function(e,t,r){i.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:r})},i.onBlurInternal=function(e,t,r){i.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:r})},i.computeStyles=function(){var e=Yi,t=e.generateClassName,r=e.getPropertyClassName,n=e.concatClassName,o=St,a=i.props,s=a.propertyName,l=a.tags,d=a.eventHandler,u=t(null,o.htmlElementTypes.textBox,s);u=n(u,r(s)),u=n(u,c.default(pa(l))),d.computeSecurePropertyStyles(s,i.securePropertyHardCodedStyles)},i.getStylesFromHints=function(e){if(e){for(var t={},r=0,n=e;r<n.length;r++){switch(n[r].toLowerCase()){case"width-fill":t=no(no({},t),{width:"100%"});break;case"width-half":t=no(no({},t),{width:"50%"});break;case"width-quarter":t=no(no({},t),{width:"25%"})}}return t}},i.iframe=d.createRef(),i.state={executing:!0,width:null===(r=t.element)||void 0===r?void 0:r.width,height:null===(n=t.element)||void 0===n?void 0:n.height};var o=t.eventHub,a=t.element,s=t.displayId,l=t.frameName,u=t.propertyName,p=t.sourceUrl;return null===o||void 0===o||o.propertyCreating(null===a||void 0===a?void 0:a.id,{displayId:s,frameName:l,propertyName:u,sourceUrl:p},{}),i}return ro(r,e),r.prototype.componentDidMount=function(){var e=this.props,t=e.element,r=e.eventHandler;t.propertyElementRef&&t.setFocus(),this.computeStyles(),window.addEventListener(D.message,this.onMessageEvent),r.createSecurePropertyLoadedPromise(t.id),r.createSecurePropertyInitCompletedPromise(t.id)},r.prototype.componentWillUnmount=function(){window.removeEventListener(D.message,this.onMessageEvent)},r.prototype.render=function(){var e=this;return d.createElement(da.Consumer,null,(function(r){return d.createElement(sa.Consumer,null,(function(n){var i,o=r.elementFactory,a={},s=e.props,l=s.displayId,u=s.propertyName,p=s.accessibilityName,m=s.hidden,f=s.tags,y=s.sourceUrl,h=s.frameName,g=s.element,v=s.labelNode,P=s.displayHelpName,b=s.displayImage,E=s.displayHelpChildren,I=s.styleHints,S=e.state,C={width:S.width,height:S.height},D=Yi,k=D.getId,w=D.getDivId,x=D.generateClassName,T=D.concatClassName,R=St,F=k(R.htmlElementIdPrefixes.secureProperty,u),A=w(l),H=x(null,R.htmlElementTypes.div,null,R.modelElementType.secureProperty);u&&(H=T(H,w(u)));var O=x(null,R.htmlElementTypes.secureProperty);f&&(O=T(O,c.default(pa(f))));var M={id:l},N=P||b?d.createElement(Ca,no({},M,{element:g,children:E,elementFactory:o})):null;(a=o&&o.canCreate(t.ElementType.secureProperty,null,a))&&(e.securePropertyHardCodedStyles=a.securePropertyHardCodedStyles,(null===(i=a.securePropertyHardCodedStyles)||void 0===i?void 0:i.secureIframeDimensions)&&(C=no({},a.securePropertyHardCodedStyles.secureIframeDimensions)),a.inlineHelpLink||(N=null)),I&&(C=no(no({},C),e.getStylesFromHints(I)));var B=d.createElement("iframe",{className:O,id:F,src:y,hidden:m,"aria-label":p,ref:e.iframe,style:no(no({},C),{verticalAlign:"middle"}),sandbox:"allow-same-origin allow-scripts",name:h,frameBorder:"0",onLoad:e.onLoadEventHandler});return e.state.executing?d.createElement("div",{id:A,className:H},v&&N&&g.displayHelpPosition===ze.floatRight?d.createElement("span",null,v," ",N):v,N?d.createElement("span",null,N," ",B):B,d.createElement(ha,{propertyName:u})):null}))}))},r}(d.Component),["displayId","propertyName","displayHelpName","displayImage","accessibilityName","hidden","frameName","tags","sourceUrl","styleHints"]),Es=function(e){var r=e.element,n=e.elementId,i=e.hidden,o=e.required,a=e.disabled,s=e.displayId,l=e.displayHelpName,u=e.displayImage,p=e.showDisplayName,m=e.displayName,f=e.accessibilityName,y=e.displayHelpChildren;return p?d.createElement(da.Consumer,null,(function(e){var h=e.elementFactory,g=(0,Yi.getId)(St.htmlElementIdPrefixes.label,n),v={id:s},P=l||u?d.createElement(Ca,no({},v,{element:r,children:y,elementFactory:h})):null,b={disabled:a,required:o,elementId:g,displayContent:m,inlineHelpLink:P};return(null===h||void 0===h?void 0:h.canCreate(t.ElementType.securePropertyLabel,b,{}))?h.create(t.ElementType.securePropertyLabel,b):d.createElement("label",{className:c.default("pidlddc-label",i||!p?"d-none":"d-block"),id:b.elementId,"aria-label":f},m,d.createElement("span",{className:"".concat(b.elementId,"-asterisk")},o?"*":""))})):null};Es.displayName="SecurePropertyLabelInner";var Is=Jo(Es,["elementId","hidden","displayName","displayId","displayHelpName","displayImage","showDisplayName","accessibilityName","required"]);function Ss(e,t,r,n,i,o,a,s){var l;if(!e.canBeRendered())return null;var u=e,c=u.getPropertyName&&u.getPropertyName()||"";if(!e.isText()&&e.hidden())return null;var p,m,f,y={element:e},h=e.displayHelp,g=e.operationType,v=M;switch(e.type){case v.page:return e.children&&e.children.map?e.children.map(Cs(t,r,n,i,o,a,s)):null;case v.dataCollectionBindingGroup:case v.group:var P=no(no({},y),{childNodes:e.children&&e.children.map?e.children.map(Cs(t,r,n,i,o,a,s)):null,labelNode:d.createElement(Ma,no({},y))});return cn(e)&&e.isModalGroup?d.createElement(Ba,no({},P,{ref:e.groupElementRef})):d.createElement(ja,no({},P));case v.captcha:return d.createElement(ua.Consumer,null,(function(a){var s=no({},t),l=no({},t);s.buttonClickHandler=function(){var t=e.id;s.captchaHyperlinkClickHandler(t,"image",ge.finished)},l.buttonClickHandler=function(){var t=e.id;l.captchaHyperlinkClickHandler(t,"audio",ge.finished)};var u=no(no({},y),{audioChildNodes:e.audioChildren&&e.audioChildren.map?e.audioChildren.map(Cs(s,r,n,i,o)):null,imageChildNodes:e.imageChildren&&e.imageChildren.map?e.imageChildren.map(Cs(l,r,n,i,o)):null});return d.createElement(Ga,no({},u,{eventHub:a}))}));case v.textGroup:var b=void 0;return e.children&&e.children[0]&&e.children[0].id&&(b=Yi.getId(F.text,e.children[0].id)),d.createElement(_a,no({},y,{ariaLabelledBy:b}),d.createElement(aa.Provider,{value:!0},e.children&&e.children.map?e.children.map(Cs(t,r,n,i,o)):null));case v.heading:return d.createElement(ns,no({},y));case v.subheading:return d.createElement(os,no({},y));case v.text:return d.createElement(ss,no({},y));case v.hyperlink:return d.createElement(qa,no({onClick:(f=e.pidlAction,!f||f.type!==j.navigate&&f.type!==j.redirect?e.pidlAction?function(){var r;return t.buttonClickHandler({id:e.id,pidlAction:e.pidlAction,value:null===(r=e.pidlAction)||void 0===r?void 0:r.context,dest:""})}:t.buttonClickHandler:t.hyperlinkClickHandler)},y));case v.image:return d.createElement(Ja,no({},y));case v.logo:var E=e.getAllLogos(),I=no({},y),S=E&&E.map?E.map((function(e){return d.createElement(Qa,{element:e,containerLayoutOrientation:I.element.containerLayoutOrientation})})):null;return d.createElement(da.Consumer,null,(function(e){return function(e,t,r){return r&&(null===e||void 0===e?void 0:e.createLogoWrapper)?e.createLogoWrapper(t):(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?d.createElement(d.Fragment,null,t):d.createElement("div",{className:"pidlddc-div pidlddc-div-logo pidlddc-logoBlock",id:"pidlddc-div-pagelogoblock0"},t)}(e.elementFactory,S,!0)}));case v.dropdown:return d.createElement(ua.Consumer,null,(function(l){if(e.displayType===gt.prefillControl){var u=t.getMultiPropertySelectorPossibleOptions(e.pidlIdentity)||[];return d.createElement(La,{element:no(no({},e),{getPropertyName:function(){return e.displayId},possibleOptions:u}),isPrefill:!0,onSelect:function(t){var r=parseInt(t);isNaN(r)||n(e,r)},eventHub:l,setOpenDropdownId:a,openDropdownId:s,eventHandler:t})}if(p=e.possibleOptions){m={};for(var f=0,h=Object.keys(p||{});f<h.length;f++){var g=h[f];if(p[g]){var v=p[g].displayContentContainer;v&&(m||(m={}),m[g]=Ss(v,t,r,n,i,o))}}}return d.createElement(La,no({},y,{onSelect:function(e){r(c,e.toString(),ge.editing),r(c,e.toString(),ge.finished)},optionsElements:m,eventHub:l,setOpenDropdownId:a,openDropdownId:s,eventHandler:t}))}));case v.checkBox:if(e.displayType===gt.prefillControl){return d.createElement(gs,no({},y,{onChange:function(t){n(e,t)},getMultiPropertySelectorPossibleOptions:t.getMultiPropertySelectorPossibleOptions}))}return d.createElement(Ha,no({},y,{onChange:function(e){r(c,e,ge.editing)}}));case v.textBox:var C;if(h){var D=pr.createModelElementsFromDisplayDescriptions(h,g);C=D.elements&&D.elements.map?D.elements.map(Cs(t,r,n,i,o)):void 0}return d.createElement(da.Consumer,null,(function(e){return d.createElement(ds,no({},y,{displayHelpChildren:C,onUpdateValue:r,propertyName:c,eventHandler:t,displayOptions:e.displayOptions}))}));case v.button:var k=e.pidlAction,w=e.displayContentModelElement,x=e.displayContent,T=void 0;return w&&(T=Ss(w,t,r,n,i,o)),d.createElement(wa,no({},y,{onClick:function(){return t.buttonClickHandler({id:e.id,pidlAction:k,value:k.context,dest:""})},displayContent:null!==T&&void 0!==T?T:x}));case v.audio:return d.createElement(Wa,no({},y));case v.radio:if(p=e.possibleOptions){m={};for(var R=0,A=Object.keys(p||{});R<A.length;R++){var H=A[R];if(p[H]){var O=p[H].displayContentContainer;O&&O[z.isDisabled]&&(O[z.isDisabled]=p[H].isDisabled),O&&(m||(m={}),m[p[H].key||H]=Ss(O,t,r,n,i,o))}}}return d.createElement(ts,no({},y,{onSelect:function(e){r(c,e,ge.editing)},optionsElements:m}));case v.expression:return d.createElement(ss,no({},y));case v.buttonList:return d.createElement(Fa,no({},y,{onClick:t.buttonClickHandler,createElement:function(e){return Ss(e,t,r,n,i,o)}}));case v.iFrame:var N=d.createRef(),B=d.createElement(ba,no({},y,{key:e.id,onIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onIFrameMessage:function(e){return t.iFrameMessageHandler(e)},onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,iFrameElementRef:N}));return i.push(N),B;case v.challengeIFrame:var V=d.createRef(),L=d.createElement(Ya,no({},y,{key:e.id,onChallengeIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onChallengeIFrameMessage:function(e){return t.challengeiFrameMessageHandler(e)},onChallengeIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onChallengeIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,challengeIFrameElementRef:V}));return i.push(V),L;case v.expressCheckoutButton:var U=d.createRef(),_=d.createElement(es,no({},y,{key:e.id,onIFrameLoadHandler:function(e,r,n){return t.expressCheckoutButtonLoadHandler(e,r,n)},isIFrameEligible:function(e,r){return t.expressCheckoutButtonIsEligible(e,r)},onIFrameMessage:function(e){return t.expressCheckoutButtonMessageHandler(e)},expressCheckoutButtonElementRef:U,onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler}));return i.push(U),_;case v.filePicker:var G=void 0;if(h)G=(null===(D=pr.createModelElementsFromDisplayDescriptions(h,g))||void 0===D?void 0:D.elements)&&(null===(l=null===D||void 0===D?void 0:D.elements)||void 0===l?void 0:l.map)?D.elements.map(Cs(t,r,n,i,o)):void 0;return d.createElement(Da,no({},y,{displayHelpChildren:G,propertyName:c,onUpdateValue:r}));case v.separator:return d.createElement(vs,no({},y));case v.spinner:return d.createElement(Ps,no({},y));case v.secureProperty:return d.createElement(ua.Consumer,null,(function(e){var l,u;if(h){var c=pr.createModelElementsFromDisplayDescriptions(h,g);u=(null===c||void 0===c?void 0:c.elements)&&(null===(l=null===c||void 0===c?void 0:c.elements)||void 0===l?void 0:l.map)?c.elements.map(Cs(t,r,n,i,o,a,s)):void 0}var p=no(no({},y),{labelNode:d.createElement(Is,no({},y,{displayHelpChildren:u}))});return d.createElement(bs,no({},p,{eventHub:e,displayHelpChildren:u,eventHandler:t}))}));case v.pidlInstance:return d.createElement(cs,no({},y,{pidlInstanceRefs:o}));default:return}}function Cs(e,t,r,n,i,o,a){return function(s,l,d){return Ss(s,e,t,r,n,i,o,a)}}Is.displayName="SecurePropertyLabel";var Ds,ks=function(e){function t(t){var r=e.call(this,t)||this;return r.update=function(e,t){e.run.apply(e,ao([r,t||function(){}],e.args,!1))},r.displayValues={},r.propertyNames=[],r.getPropertyNames(r.props.pageElement.children,r.propertyNames),r.state={propertyErrors:{},groupErrors:{},pendingValues:{},accessibilityText:{}},r}return ro(t,e),t.prototype.updatePropertyValues=function(e){var t=this.props,r=t.getModelPropertyValue,n=t.onPropertyChange;for(var i in this.state.pendingValues){var o=r(i);void 0!==o&&n&&n(i,o)}this.setState({pendingValues:{}},e)},t.prototype.getPropertyNames=function(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];if(i.isProperty()){var o=i;o.displayType!==gt.prefillControl&&t.push(o.getPropertyName())}else if(i.isCaptcha()){var a=i;t.push(a.getPropertyName())}i.children&&i.children.length&&this.getPropertyNames(i.children,t)}},t.prototype.getPropertyState=function(){var e=this.props,t=e.getModelPropertyValue,r=e.pageElement,n={};this.propertyNames=[],r&&r.children&&this.getPropertyNames(r.children,this.propertyNames);for(var i=0,o=this.propertyNames;i<o.length;i++){var a=o[i];n[a]=t(a)}var s=no(no(no({},this.displayValues),n),this.state.pendingValues);return{errors:this.state.propertyErrors,values:s,accessibilityText:this.state.accessibilityText}},t.prototype.render=function(){var e=this.props,t=e.children,r=e.elementFactory,n=e.displayOptions,i=e.displaySettings,o=e.eventHub,a=e.theme,s=e.userContext,l=e.pidlInstanceContexts,u=e.env,c=e.returnOptions;return d.createElement(ua.Provider,{value:o},d.createElement(la.Provider,{value:this.state.groupErrors},d.createElement(sa.Provider,{value:this.getPropertyState()},d.createElement(da.Provider,{value:{elementFactory:r,displayOptions:n,displaySettings:i,theme:a,userContext:s,pidlInstanceContexts:l,env:u,returnOptions:c}},t))))},t}(d.Component),ws=function(e,t,r){var n;e.setState({propertyErrors:no(no({},e.state.propertyErrors),(n={},n[r.propertyName]=r,n))},t)},xs=function(e,t,r){var n;e.setState({groupErrors:no(no({},e.state.groupErrors),(n={},n[r.groupDisplayId]=r,n))},t)},Ts=function(e,t,r){var n=no({},e.state.propertyErrors);if(n[r])delete n[r],e.setState({propertyErrors:n},t);else{var i=no({},e.state.groupErrors);i&&i[r]&&(delete i[r],e.setState({groupErrors:i},t))}},Rs=function(e,t){e.updatePropertyValues(t)},Fs=function(e,t,r,n){var i;e.setState({accessibilityText:no(no({},e.state.accessibilityText),(i={},i[r]=n,i))},t)},As=function(e,t,r,n){var i;e.setState({pendingValues:no(no({},e.state.pendingValues),(i={},i[r]=n,i))})},Hs=function(e,t,r,n){var i;e.displayValues=no(no({},e.displayValues),((i={})[r]=n,i)),e.forceUpdate(t)},Os=function(e,t){e.setState({propertyErrors:{},groupErrors:{}},t)},Ms=function e(t,r,n){t.map((function(t){if(t.isProperty()){var i=t,o=i.getPropertyName();n[o]=i}r[t.id]=t,e(t.children||[],r,n)}))},Ns=function(e){function t(r){var n=e.call(this,r)||this;if(n._modalRef=d.createRef(),n._navigationWrapperRef=d.createRef(),n.pageHasSecureFields=!1,n.alreadyWaiting=!1,n.isFirstLoad=!1,n.moreThanOneBusyBlockPropExists=function(){var e=n.props,t=e.busyBlockElement,r=e.displayOptions;return[r.busyBlockId,t,r.busyBlockShowHideHandler].filter((function(e){return e})).length>1},n.moveNextPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.moveNextPage)&&n.pidlControlApi.moveNextPage().result},n.submitPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.submitPage)&&n.pidlControlApi.submitPage().result},n.validateProperties=function(){var e;return(null===(e=n.pidlControlApi)||void 0===e?void 0:e.submitPage)?n.pidlControlApi.validateProperties().result:Nn(!1)},n.moveToLastPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.moveToLastPage)&&n.pidlControlApi.moveToLastPage().result},n.movePrevPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.movePrevPage)&&n.pidlControlApi.movePrevPage().result},n.moveToFirstPage=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.moveToFirstPage)&&n.pidlControlApi.moveToFirstPage().result},n.cancel=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.cancel)&&n.pidlControlApi.cancel().result},n.getPidlExternalControlPropsMap=function(){return n.pidlExternalControlProps},n.getSelectedResource=function(){return n.pidlControlApi?n.pidlControlApi.getSelectedResource().result:null},n.getPidlPayload=function(){return n.pidlControlApi?n.pidlControlApi.returnUserInputData():null},n.postMessageToChildIFrames=function(e){return!(!n.pidlControlApi||!n.pidlControlApi.postMessageToChildIFrames)&&n.pidlControlApi.postMessageToChildIFrames(e).result},n.getInstanceControls=function(){return n.pidlControlApi&&n.pidlControlApi.getInstanceControls?n.pidlControlApi.getInstanceControls().result:{}},n.updateChildIFramesHeight=function(e){n.iFrameInnerRefs&&n.iFrameInnerRefs.forEach((function(t,r,n){t&&t.current&&t.current.updateHeight&&t.current.updateHeight(e)}))},n.setInstanceDisplayPage=function(){var e=n.getInstanceKey();e&&t.displayPagesByInstance.set(e,n.state.pageElement)},n.deleteInstanceDisplayPage=function(){var e=n.getInstanceKey();e&&t.displayPagesByInstance.delete(e)},n.getInstanceKey=function(){var e,t=n.props.pidlInstanceKey||(null===(e=n.props.displayOptions)||void 0===e?void 0:e.instanceName);return t&&(t=t.toLowerCase()),t},n.getDisplayPagesByInstance=function(){var e=new Map;if(t.displayPagesByInstance.size>0){for(var r=0,n=Array.from(t.displayPagesByInstance.entries());r<n.length;r++){var i=n[r],o=i[0],a=i[1];!(null===o||void 0===o?void 0:o.includes("_"))&&(null===a||void 0===a?void 0:a.children)&&e.set(o,a)}return Array.from(e.entries())}return[]},n.destroyInstance=function(){var e;return!!(null===(e=n.pidlControlApi)||void 0===e?void 0:e.destroyInstance)&&n.pidlControlApi.destroyInstance().result},n.focusOnPageRefresh=function(e){n.state.disableFocusOnLoad||(e===z.pageRendered||e===z.pageRefreshed||e===G.secureFieldLoadWaitEnded?setTimeout((function(){var e,r,i,o,a;if(!t.firstErrorPropertyName){n.props.onPageRendered&&n.props.onPageRendered();var s=n.findFirstVisibleEnabledPropertyElement(null===(e=n.state.pageElement)||void 0===e?void 0:e.children);s&&s.isSecureProperty()?s.setFocus():n.props.propertyElementRef||!t.lastFocusedPropertyName&&0!==t.displayPagesByInstance.size||(null===(i=null===(r=t._propertyElementRef)||void 0===r?void 0:r.current)||void 0===i?void 0:i.focus)&&(null===(a=null===(o=t._propertyElementRef)||void 0===o?void 0:o.current)||void 0===a||a.focus())}}),100):e===z.pageNavigated&&setTimeout((function(){var e,r,i;if(!t.firstErrorPropertyName){var o=null!==(e=n.props.propertyElementRef)&&void 0!==e?e:t._propertyElementRef;(null===(r=null===o||void 0===o?void 0:o.current)||void 0===r?void 0:r.focus)&&(null===(i=null===o||void 0===o?void 0:o.current)||void 0===i||i.focus())}}),100))},n.busyBlockShowHide=function(e){n.setState({showBusyBlock:e})},n.toggleVisualCaptcha=function(e,t,r){n.onUpdateValue(e,t,r)},n.shouldRenderBusyBlock=function(){var e=n.state.showBusyBlock,t=n.props.busyBlockElement;return t&&d.isValidElement(t)&&e},n.displayPidl=function(e,t){var r=n.state,i=r.eventHub,o=r.waitForSecureFields,a=r.showBusyBlock;n.alreadyWaiting=!1,o&&n.setState(no(no({},n.state),{waitForSecureFields:!1})),a&&n.busyBlockShowHide(!1),e.length=0,t.length=0,i.secureFieldLoadWaitEnded()},n.waitForSecureFieldsLoadCompletion=function(){var e=n.state,t=e.eventHub,r=e.viewEventHandler,i=(null===r||void 0===r?void 0:r.getSecurePropertyLoadedPromises())||[],o=(null===r||void 0===r?void 0:r.getSecurePropertyInitCompletedPromises())||[];n.alreadyWaiting=!0,Promise.all(i).then((function(){t.secureFieldsLoaded();var e=r.getClientSetting(Qe.pidlSdkWaitTimeForSecureFieldsInit)||We.pidlSdkWaitTimeForSecureFieldsInit;Promise.race([Promise.all(o),r.getTimeoutPromise(e)]).then((function(){r.clearTimeoutPromise(),n.displayPidl(i,o)})).catch((function(e){if(n.displayPidl(i,o),e instanceof Error&&"Timeout"===e.message){e.message="Timeout waiting for secure fields to resolve";var r=new ir.secureFieldInitCompletedTimeoutError(or.secureFieldInitCompletedTimeout,e.toString());t.failure(r)}}))})).catch((function(e){n.displayPidl(i,o)}))},n.reset=function(){n.setState({properties:{},pageError:void 0,viewEventHandler:void 0,pageElement:void 0,pidlInstanceContexts:void 0},(function(){return n.updateState({run:Os,args:[]})}))},n.findFirstVisibleErroredProperty=function(e,t){for(var r=[],i=0;i<t.length;i++)r.push(t[i].propertyName);var o={};return n.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&(e.isProperty()||e.isSecureProperty())&&!e.disabled()&&!e.hidden()&&r.includes(e.getPropertyName()))return t.element=e,!0}),o),o.element},n.findFirstVisibleEnabledPropertyElement=function(e){var t={};return n.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&(e.isIframe()||e.isSecureProperty()||e.isButton()||e.isPrefillControl()||e.isProperty())&&!e.disabled()&&!e.hidden())return(!yn(e)||!n.isRadioPossibleOptionsAllDisabled(e))&&(t.element=e,!0)}),t),t.element},n.findHighlightedButton=function(e){var t={};return n.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&e.isButton()&&e.isHighlighted()&&!e.disabled()&&!e.hidden())return t.element=e,!0}),t),t.element},n.isRadioPossibleOptionsAllDisabled=function(e){for(var t=Rn.getKeys(e.possibleOptions),r=!0,n=0;n<t.length;n++)r=r&&e.possibleOptions[t[n]].isDisabled;return r},n.findPropertyElementByPropertyName=function(e,t,r){var i={};return n.propertiesVisitorProcessingDataProperty(e,(function(e,i){if(e&&e.disabled&&!e.disabled()&&e.hidden&&!e.hidden()&&e.getPropertyName&&e.getPropertyName()===t&&(!yn(e)||r&&!Rn.isEmptyString(mr.normalizeValueToDisplayDescriptionPossibleOptions(e,r))))return(!yn(e)||!n.isRadioPossibleOptionsAllDisabled(e))&&(i.element=e,!0)}),i),i.element},n.setOpenDropdownId=function(e){n.setState({openDropdownId:e})},n.onUpdateValue=function(e,t,r){if(n.state.viewEventHandler){n.pendingPropertyValue(e,t);var i=function(){n.state.viewEventHandler.updateModelPropertyValue(e,t,r).then((function(){n.updatePropertyValues()}))};r===ge.finished?setTimeout(i,1):i()}},n.updateButtonList=function(e,t,r){var n=e.possibleOptions;for(var i in n)i===t&&(r&&(n[i].isDisabled=r),n[i].displayContentContainer&&(n[i].displayContentContainer.tags={selected:"selected"}))},n.onUpdatePrefill=function(e,t){if(n.state.viewEventHandler){var r=function(){n.updateDisplayValue(e.displayId,t)};n.state.viewEventHandler.updatePrefillValue(e.pidlIdentity,t).then(r,r)}},n.updateState=function(e){if(e&&n.pendingUpdates.push(e),n.wrapper.current&&n.pendingUpdates.length>0){var t=n.pendingUpdates[0];n.pendingUpdates.splice(0,1),n.wrapper.current.update(t,(function(){return n.updateState()}))}},n.getTelemetryLogger=function(){var e,t=n.props,r=t.callbacksIn,i=t.elementFactory,o=t.telemetryOptions,a=null===(e=null===i||void 0===i?void 0:i.isReactNative)||void 0===e?void 0:e.call(i),s=null===r||void 0===r?void 0:r.telemetryLogger,l=!!(null===i||void 0===i?void 0:i.telemetryLogger);if(a&&l)return n.props.elementFactory.telemetryLogger(s,o);var d=new Ji;return new Zi(d,s)},n.initPidl=function(){var e,r=n.props,i=r.userContext,o=r.returnOptions,a=r.displayOptions,s=r.telemetryOptions,l=r.callbacksIn,d=r.transformersIn,u=r.onShowHideBusy,c=r.pidlsdkMock,p=r.pidlPayload,m=r.localDataSourceProviders,f=no({},d),y={initialize:function(){},render:function(e){if(!e.pageElement||!e.pageElement.children||0===e.pageElement.children.length)return{succeeded:!1};var t={},r={},i={},o=n.transformPage(e.pageElement,e.displaySettings);for(var a in Ms(o.children,t,r),r)r.hasOwnProperty(a)&&(i[a]=e.viewEventHandler.getModelPropertyValue(a)||"");return e.viewEventHandler.captchaHyperlinkClickHandler=n.toggleVisualCaptcha,e.updateReason===Pe.modelCreated&&(n.pageHasSecureFields=e.viewEventHandler.hasSecureFields(e.pageElement),n.pageHasSecureFields&&n.isFirstLoad&&(n.setState({waitForSecureFields:!0}),n.isFirstLoad=!1)),n.setState({elements:t,properties:r,pageElement:o,viewEventHandler:e.viewEventHandler,displaySettings:e.displaySettings,eventHub:e.eventHub,pidlInstanceContexts:e.pidlInstanceContexts}),{succeeded:!0}},reset:function(){},showHideBusy:function(e){return u&&u(e)},markAsFilled:function(e){},markAsUnfilled:function(e){},checkAndMarkAsFilled:function(e,t){},checkAndMarkAsUnfilled:function(e,t){},setFocusOnFirstError:function(){setTimeout((function(){var e,r,i,o;t.firstErrorPropertyName&&n.state.isFirstErrorInstance&&(t.firstVisibleErrorProperty&&t.firstVisibleErrorProperty.isSecureProperty()&&t.firstVisibleErrorProperty.getPropertyName()===t.firstErrorPropertyName?t.firstVisibleErrorProperty.setFocus():(null===(r=null===(e=t._propertyElementErrorRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.focus)&&(null===(o=null===(i=t._propertyElementErrorRef)||void 0===i?void 0:i.current)||void 0===o||o.focus()))}),100)},showPropertyError:function(e){return n.showPropertyError(e),!0},showGroupError:function(e){return n.showGroupError(e),!0},showPageError:function(e){return n.setState({pageError:e}),!1},hidePropertyError:function(e){n.hidePropertyError(e)},hidePageError:function(){n.setState({pageError:void 0})},postMessageToChildIFrames:function(e){var t=!0;return n.iFrameInnerRefs&&n.iFrameInnerRefs.forEach((function(r,n,i){if(r&&r.current&&r.current.postMessage){var o=r.current.postMessage(e);t=t&&o}else t=!1})),t},getPageElementValues:function(){return n.wrapper.current?n.wrapper.current.getPropertyState().values:{}},setDisabledByDisplayId:function(e,t,r){},getVisibleProperties:function(){if(n.wrapper.current&&n.state.pageElement){var e=[];return n.wrapper.current.getPropertyNames([n.state.pageElement],e),e}return[]},updatePrefillControls:function(){n.updatePropertyValues()},updatePropertyValue:function(e,t,r,i){var o=n.state.properties[e];o&&n.updateDisplayValue(o.displayName,r)},updateButtonList:function(e,t,r){n.updateButtonList(e,t,r)},setAccessibilityText:function(e,t){n.updateAccessibilityText(e.getPropertyName(),t)},hideModalDialog:function(){var e,t;null===(t=null===(e=n._modalRef)||void 0===e?void 0:e.current)||void 0===t||t.toggleDisplay(!1)},getViewType:function(){return"reactview"},restoreCaretPosition:function(){},updateDisplayValue:function(e,t,r,n){},getPidlInstanceControls:function(){var e={};return Object.keys(n.pidlInstanceRefs).forEach((function(t){var r=n.pidlInstanceRefs[t];if(r&&r.current){var i={moveNextPage:function(){if(r.current&&r.current.moveNextPage)return r.current.moveNextPage()},submitPage:function(){if(r.current&&r.current.submitPage)return r.current.submitPage()},validateProperties:function(){if(r.current&&r.current.validateProperties)return r.current.validateProperties()},movePrevPage:function(){if(r.current&&r.current.movePrevPage)return r.current.movePrevPage()},moveToFirstPage:function(){if(r.current&&r.current.moveToFirstPage)return r.current.moveToFirstPage()},cancel:function(){if(r.current&&r.current.cancel)return r.current.cancel()},getSelectedResource:function(){if(r.current&&r.current.getSelectedResource)return r.current.getSelectedResource()},getPidlPayload:function(){if(r.current&&r.current.getPidlPayload)return r.current.getPidlPayload()},postMessageToChildIFrames:function(e){if(r.current&&r.current.postMessageToChildIFrames)return r.current.postMessageToChildIFrames(e)}};e[t]=i}})),e}},h=no(no({},l),{telemetryLogger:n.getTelemetryLogger(),view:l&&l.view?l.view:y});return e=c?c.initMock(i,o,n.eventHandler,a,s,h,f):new Wi(i,o,n.eventHandler,no(no({},a),{containerId:a.containerId||""}),h,s,n.privateEventHandler,n.oneDSService,f,p,m),n.props.operation(e),e},n.moreThanOneBusyBlockPropExists())throw new Error(or.onlyOneBusyBlockPropAllowed.debugMessage);return n.eventHandler=function(e,r){var i,o,a,s,l,d,u,c,p,m,f,y,h,g;if(((null===(i=n.props.elementFactory)||void 0===i?void 0:i.createNavigationWrapper)&&(null===r||void 0===r?void 0:r.currentPageIndex)||(null===r||void 0===r?void 0:r.pageId))&&(r.currentPageIndex===n.state.currentPageIndex&&r.pageId===n.state.currentPageId||n.setState({currentPageIndex:null===r||void 0===r?void 0:r.currentPageIndex,currentPageId:null===r||void 0===r?void 0:r.pageId})),(null===(o=n.props.elementFactory)||void 0===o?void 0:o.createNavigationWrapper)&&e===z.pageRefreshed&&(null===(s=null===(a=n._navigationWrapperRef.current)||void 0===a?void 0:a.forceFocusRefRefresh)||void 0===s||s.call(a)),e===z.error&&n.state.pageElement&&((null===(l=null===r||void 0===r?void 0:r.error)||void 0===l?void 0:l.code)===or.formSubmissionFailedBadUserInput.code||(null===(d=null===r||void 0===r?void 0:r.error)||void 0===d?void 0:d.code)===or.formValidationFailed.code)&&(null===(u=null===r||void 0===r?void 0:r.error)||void 0===u?void 0:u.errors)&&(null===(c=null===r||void 0===r?void 0:r.error)||void 0===c?void 0:c.errors.length)>0&&((null===(p=null===r||void 0===r?void 0:r.error)||void 0===p?void 0:p.errors[0].propertyName)||(null===(m=null===r||void 0===r?void 0:r.error)||void 0===m?void 0:m.errors[0].groupDisplayId))){for(var v=void 0,P=void 0,b=n.getDisplayPagesByInstance(),E=null===(h=null===(y=null===(f=n.props.displayOptions)||void 0===f?void 0:f.instanceName)||void 0===y?void 0:y.toLowerCase)||void 0===h?void 0:h.call(y),I=0,S=b;I<S.length;I++){var C=S[I],D=C[0],k=C[1];if(v=n.findPropertyElementByPropertyName(null===k||void 0===k?void 0:k.children,t.firstErrorPropertyName)){P=D;break}if(v=n.findFirstVisibleErroredProperty(null===k||void 0===k?void 0:k.children,r.error.errors)){P=D;break}}v||(P=(v=n.findFirstVisibleErroredProperty(n.state.pageElement.children,r.error.errors))?E:-1),t.firstErrorPropertyName=(null===(g=null===v||void 0===v?void 0:v.getPropertyName)||void 0===g?void 0:g.call(v))||r.error.errors[0].propertyName,t.firstVisibleErrorProperty=v,n.setState({isFirstErrorInstance:P===E})}return e===z.propertySelected&&(t.lastFocusedPropertyName=null===r||void 0===r?void 0:r.propertyName,n.setState({disableFocusOnLoad:!1})),e===z.selectionChanged&&(t.lastFocusedPropertyName=null===r||void 0===r?void 0:r.propertyName,t.lastFocusedPropertyValue=null===r||void 0===r?void 0:r.propertyValue,n.setState({disableFocusOnLoad:!1})),n.focusOnPageRefresh(e),n.props.onEvent&&n.props.onEvent(e,r)},n.privateEventHandler=function(e,r){e===G.propertyUnselected&&(t.lastFocusedPropertyName=void 0,t.firstErrorPropertyName=void 0,t.firstVisibleErrorProperty=void 0,n.setState({isFirstErrorInstance:!1})),e===G.success&&(r[K.preventUnmountOnFinish]||n.reset()),n.focusOnPageRefresh(e)},n.props&&n.props.elementFactory&&n.props.elementFactory.getOneDSService&&(n.oneDSService=n.props.elementFactory.getOneDSService()),n.wrapper=d.createRef(),n.pendingUpdates=[],n.iFrameInnerRefs=[],n.pidlInstanceRefs={},n.state={elements:{},properties:{},pageError:void 0,viewEventHandler:void 0,displaySettings:void 0,eventHub:void 0,showBusyBlock:!1,currentPageIndex:null,currentPageId:null,disableFocusOnLoad:n.props.displayOptions.disableFocusOnLoad,waitForSecureFields:!1,openDropdownId:"",isFirstErrorInstance:!1},n.setInstanceDisplayPage(),n}return ro(t,e),t.prototype.componentDidMount=function(){var e=this.props.env;this.isFirstLoad=!0,Ai.set(e||fo),this.pidlControlApi=this.pidlControlApi||this.initPidl()},t.prototype.isAddResourceProps=function(e){return e&&e.pidlDocInfo},t.prototype.componentDidUpdate=function(e,t){this.pidlControlApi=this.pidlControlApi||this.initPidl(),this.isAddResourceProps(this.props)&&e&&e.pidlDocInfo&&this.props.pidlDocInfo&&JSON.stringify(e.pidlDocInfo)!==JSON.stringify(this.props.pidlDocInfo)&&(this.pidlControlApi=this.initPidl()),this.state.pageElement!==(null===t||void 0===t?void 0:t.pageElement)&&this.setInstanceDisplayPage()},t.prototype.componentWillUnmount=function(){try{this.state.viewEventHandler.clearTimeoutPromise(),this.destroyInstance(),this.deleteInstanceDisplayPage()}catch(e){}},t.prototype.wrapGroupedElements=function(e,t){var r=this.state.pageError;return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?d.createElement(d.Fragment,null,t):d.createElement("div",{className:c.default("pidl-react-page-error",{"d-none":!r||!r.message})},t)},t.prototype.render=function(){var e,r,n,i=this.props,o=i.displayOptions,a=i.children,s=i.onPropertyChange,l=i.elementFactory,u=i.busyBlockElement,c=i.propertyElementRef,p=i.theme,m=i.env,f=i.returnOptions,y=this.state,h=y.pageElement,g=y.viewEventHandler,v=y.pageError,P=y.displaySettings,b=y.eventHub,E=y.pidlInstanceContexts,I=o;u&&d.isValidElement(u)&&(I.busyBlockShowHideHandler=this.busyBlockShowHide);var S=a;if(this.pidlControlApi&&h&&g){t.previousFocusTarget&&(null===(r=(e=t.previousFocusTarget).getPropertyName)||void 0===r?void 0:r.call(e))!==t.firstErrorPropertyName&&(t.previousFocusTarget.propertyElementRef=void 0),this.attachFocusRef(h,c,t.firstErrorPropertyName,t.lastFocusedPropertyName,t.lastFocusedPropertyValue),this.attachModalRef(h);var C=h.children.map(Cs(g,this.onUpdateValue,this.onUpdatePrefill,this.iFrameInnerRefs,this.pidlInstanceRefs,this.setOpenDropdownId,this.state.openDropdownId)),D=new Map,k=h.keyPidlActions;Object.keys(k||{}).forEach((function(e){var t=k[e];D.set(e,(function(){g.invokePidlAction(t)}))}));var w=this.state,x=w.eventHub,T=w.waitForSecureFields,R=(null===l||void 0===l?void 0:l.createNavigationWrapper)?l.createNavigationWrapper(C,this.state.currentPageIndex,this.state.currentPageId,this.cancel,this.movePrevPage,this.moveToLastPage,this.moveToFirstPage,this.moveNextPage,this._navigationWrapperRef,D):this.pageHasSecureFields?d.createElement("div",{style:{display:T?"none":"block"}},C):d.createElement(d.Fragment,null,C);S=d.createElement(ks,{ref:this.wrapper,getModelPropertyValue:g.getModelPropertyValue,onPropertyChange:s,pageElement:h,elementFactory:l,displayOptions:I,displaySettings:P,eventHub:x,theme:p,userContext:this.props.userContext,pidlInstanceContexts:E,env:m,returnOptions:f},R)}var F=v?d.createElement(ga,{message:v.message}):null,A=this.state,H=A.waitForSecureFields,O=A.showBusyBlock,M=(null===(n=null===g||void 0===g?void 0:g.getSecurePropertyLoadedPromises())||void 0===n?void 0:n.length)>0;return this.pageHasSecureFields&&H&&M&&(O||this.busyBlockShowHide(!0),this.alreadyWaiting||(b.secureFieldLoadWaitStarted(),this.waitForSecureFieldsLoadCompletion())),d.createElement(d.Fragment,null,d.createElement(da.Provider,{value:{elementFactory:l,displayOptions:I,displaySettings:P,theme:p,userContext:this.props.userContext,pidlInstanceContexts:E,env:m,returnOptions:f}},d.createElement(d.Fragment,null,this.wrapGroupedElements(l,F))),this.shouldRenderBusyBlock()&&((null===l||void 0===l?void 0:l.createBusyBlockWrapper)?l.createBusyBlockWrapper(d.cloneElement(u)):d.cloneElement(u)),S)},t.prototype.attachFocusRef=function(e,r,n,i,o){var a,s,l,u=e.children;if(n){if(!this.state.isFirstErrorInstance)return;if(l=this.findPropertyElementByPropertyName(u,n))if(null===(a=l.propertyElementRef)||void 0===a?void 0:a.current)t._propertyElementErrorRef=l.propertyElementRef;else{var c=d.createRef();l.propertyElementRef=c,t._propertyElementErrorRef=c}}else{if(i){for(var p=void 0,m=0,f=this.getDisplayPagesByInstance();m<f.length;m++){var y=f[m],h=(y[0],y[1]);if(l=this.findPropertyElementByPropertyName(null===h||void 0===h?void 0:h.children,i,o))break;p||(p=this.findFirstVisibleEnabledPropertyElement(null===h||void 0===h?void 0:h.children))}(l=null!==l&&void 0!==l?l:p)||(l=this.findPropertyElementByPropertyName(u,i,o)),l||(l=this.findFirstVisibleEnabledPropertyElement(u))}else{for(var g=0,v=this.getDisplayPagesByInstance();g<v.length;g++){var P=v[g],b=(P[0],P[1]);if(l=this.findFirstVisibleEnabledPropertyElement(null===b||void 0===b?void 0:b.children))break}l||(l=this.findFirstVisibleEnabledPropertyElement(u))}var E=this.findHighlightedButton(u);if(l&&(l.isButton()&&E&&(l=E),!l.propertyElementRef))if(r)l.propertyElementRef=r;else if((null===(s=t._propertyElementRef)||void 0===s?void 0:s.current)&&t.previousFocusTarget)l.propertyElementRef=t._propertyElementRef;else{c=d.createRef();l.propertyElementRef=c,t._propertyElementRef=c}}t.previousFocusTarget=null!==l&&void 0!==l?l:t.previousFocusTarget},t.prototype.attachModalRef=function(e){var t;e.children.forEach((function(e){cn(e)&&(t=e)})),t&&(t.groupElementRef=this._modalRef)},t.prototype.propertiesVisitorProcessingDataProperty=function(e,t,r){if(e){if(!Array.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,r);for(var n=0;n<e.length;n++){var i=this.propertyVisitorProcessingDataProperty(e[n],t,r);if(i)return i}}},t.prototype.propertyVisitorProcessingDataProperty=function(e,r,n){if(e){if(e.isProperty()||e.isSecureProperty()||e.isButton())if(d=r(e,n))return d;if(yn(e)){var i=e;if(i&&i.possibleOptions)for(var o=0,a=Rn.getKeys(i.possibleOptions);o<a.length;o++){var s=a[o],l=i.possibleOptions[s];if(l&&!l.isDisabled&&l.displayContentContainer)if(d=this.propertyVisitorProcessingDataProperty(l.displayContentContainer,r,n))return d}}if(rn(e)&&e.pidlInstance){if(t.displayPagesByInstance.has(e.pidlInstance)){var d,u=t.displayPagesByInstance.get(e.pidlInstance);if(u&&u.children)if(d=this.propertiesVisitorProcessingDataProperty(u.children,r,n))return d}return!1}if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,r,n);n&&delete n.stopDescendantsProcessing}},t.prototype.propertiesVisitorProcessingAny=function(e,t,r){if(e){if(!Array.isArray(e))return this.propertyVisitorProcessingAny(e,t,r);for(var n=0;n<e.length;n++){var i=this.propertyVisitorProcessingAny(e[n],t,r);if(i)return i}}},t.prototype.propertyVisitorProcessingAny=function(e,r,n){if(e){var i=r(e,n);if(i)return i;if(yn(e)){var o=e;if(o&&o.possibleOptions)for(var a=0,s=Rn.getKeys(o.possibleOptions);a<s.length;a++){var l=s[a],d=o.possibleOptions[l];if(d&&!d.isDisabled&&d.displayContentContainer){var u=this.propertyVisitorProcessingAny(d.displayContentContainer,r,n);if(u)return u}}}if(rn(e)&&e.pidlInstance){if(t.displayPagesByInstance.has(e.pidlInstance)){var c=t.displayPagesByInstance.get(e.pidlInstance);if(c&&c.children){var p=this.propertiesVisitorProcessingAny(c.children,r,n);if(p)return p}}return!1}if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingAny(e.children,r,n);n&&delete n.stopDescendantsProcessing}},t.prototype.pendingPropertyValue=function(e,t){this.updateState({run:As,args:[e,t]})},t.prototype.updatePropertyValues=function(){this.updateState({run:Rs,args:[]})},t.prototype.updateDisplayValue=function(e,t){this.updateState({run:Hs,args:[e,t]})},t.prototype.updateAccessibilityText=function(e,t){this.updateState({run:Fs,args:[e,t]})},t.prototype.showGroupError=function(e){this.updateState({run:xs,args:[e]})},t.prototype.showPropertyError=function(e){this.updateState({run:ws,args:[e]})},t.prototype.hidePropertyError=function(e){this.updateState({run:Ts,args:[e]})},t.prototype.splitChildren=function(e,t){var r=ao([],e.children,!0);if(!r||!r.length)return r;var n=r[r.length-1];if(!cn(n)||!n.isSubmitGroup)return r;(null===n||void 0===n?void 0:n.isSubmitGroup)&&(this.setExternalControlNames(n),n.isHidden=!t.submitButtonBlock.show);var i=n.operationType,o=n.pidlIdentity,a=n.isLinkedPidl;r.pop();var s={displayId:A.pageBlock,displayType:gt.group,displayName:null,styleHints:e.displayDescription.styleHints},l=new gr(M.group,null,s,i,o,a);return l.children=r,n.id=t.submitButtonBlock.id,[l,n]},t.prototype.transformPage=function(e,t){return no(no({},e),{children:this.splitChildren(e,t)})},t.prototype.setExternalControlNames=function(e){var t=new Map,r=j.gohome,n=j.submit,i=j.next,o=j.prev,a=e.members;a&&a.forEach((function(e){var a;e.displayContent&&(null===(a=e.pidlAction)||void 0===a?void 0:a.type)&&(e.pidlAction.type==r||e.pidlAction.type==n||e.pidlAction.type==i||e.pidlAction.type==o)&&(t[e.pidlAction.type]={type:e.pidlAction.type,displayContent:e.displayContent})})),this.pidlExternalControlProps=t},t.defaultProps={env:fo},t._propertyElementRef=d.createRef(),t._propertyElementErrorRef=d.createRef(),t.displayPagesByInstance=new Map,t}(d.Component),Bs=function(e){function t(t,r){var n=e.call(this,t)||this;n.moveNextPage=function(){return!(!n.pidlRef.current||!n.pidlRef.current.moveNextPage)&&n.pidlRef.current.moveNextPage()},n.submitPage=function(){return!(!n.pidlRef.current||!n.pidlRef.current.submitPage)&&n.pidlRef.current.submitPage()},n.validateProperties=function(){return n.pidlRef.current&&n.pidlRef.current.validateProperties?n.pidlRef.current.validateProperties():Nn(!1)},n.movePrevPage=function(){return!(!n.pidlRef.current||!n.pidlRef.current.movePrevPage)&&n.pidlRef.current.movePrevPage()},n.moveToFirstPage=function(){return!(!n.pidlRef.current||!n.pidlRef.current.moveToFirstPage)&&n.pidlRef.current.moveToFirstPage()},n.cancel=function(){return!(!n.pidlRef.current||!n.pidlRef.current.cancel)&&n.pidlRef.current.cancel()},n.getPidlExternalControlPropsMap=function(){return n.pidlRef.current&&n.pidlRef.current.getPidlExternalControlPropsMap?n.pidlRef.current.getPidlExternalControlPropsMap():null},n.getSelectedResource=function(){if(n.pidlRef.current&&n.pidlRef.current.getSelectedResource)return n.pidlRef.current.getSelectedResource()},n.getPidlPayload=function(){return n.pidlRef.current&&n.pidlRef.current.getPidlPayload?n.pidlRef.current.getPidlPayload():Nn({payload:null,operationType:null})},n.postMessageToChildIFrames=function(e){return!(!n.pidlRef.current||!n.pidlRef.current.postMessageToChildIFrames)&&n.pidlRef.current.postMessageToChildIFrames(e)},n.getInstanceControls=function(){return n.pidlRef.current&&n.pidlRef.current.getInstanceControls?n.pidlRef.current.getInstanceControls():{}},n.implementationMissing=function(e,t,r){var i,o,a;if(!n.pidlRef.current)return null;var s=null===(a=null===(o=null===(i=n.pidlRef)||void 0===i?void 0:i.current)||void 0===o?void 0:o.state)||void 0===a?void 0:a.eventHub;null===s||void 0===s||s.implementationMissing(e,t,r)},n.updateChildIFramesHeight=function(e){n.pidlRef.current&&n.pidlRef.current.updateChildIFramesHeight&&n.pidlRef.current.updateChildIFramesHeight(e)},n.pidlRef=d.createRef(),n.pidlOperation=r;try{t.telemetryOptions?n.telemetryOptions=Object.assign({},t.telemetryOptions):n.telemetryOptions={},n.telemetryOptions.contextData||(n.telemetryOptions.contextData={}),n.telemetryOptions.contextData.partnerName||(n.telemetryOptions.contextData.partnerName=t.partner)}catch(i){n.telemetryOptions=t.telemetryOptions}return n}return ro(t,e),t.prototype.render=function(){return d.createElement(Ns,no({},this.props,{ref:this.pidlRef,operation:this.pidlOperation,telemetryOptions:this.telemetryOptions}),this.props.children)},t}(d.Component),Vs=function(e){function t(t){var r=e.call(this,t,(function(e){return e.addAddress(r.props.pidlDocInfo,r.props.prefillData,r.props.options)}))||this;return r}return ro(t,e),t}(Bs),Ls=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileParameters=function(e,r,n,i,o,a,s){var l={operation:yo.Operation,type:a||yo.DefaultAddressType,scenario:e,country:r,language:n,partner:i,setAsDefaultBilling:e===t.AddressScenario.profile||s};return o&&(l=no(no({},l),o)),l},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(e,t,r){return{callbacks:{success:e,failure:n.FailureHandler,gohome:r}}},n.onEvent=function(e,t){var r=n.props,i=r.onEvent,o=r.viewTermsHandler,a=St,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&o&&t.eventName===l.viewTermsTriggered||e===s.navigate&&o&&t.displayId===yo.ViewTermsId)&&o(t),i&&i(e,t)},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.AddAddress,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.parameters,i=e.busyBlockElement,o=e.country,a=e.language,s=e.scenario,l=e.addressType,d=e.partner,c=e.elementFactory,p=e.onSuccess,m=e.onFailure,f=e.onCancel,y=e.showSubmitBlock,h=void 0===y||y,g=e.busyBlockShowHideHandler,v=e.prefillData,P=e.pidlsdkMock,b=e.telemetryLogger,E=e.telemetryOptions,I=e.propertyElementRef,S=e.onPageRendered,C=e.setAsDefaultBilling,D=e.headers,k=e.callbacksIn,w=e.displayOptions,x=this.state.styleProvider,T=this.compileParameters(s,o,a,d,n,l,C),R=this.compileReturnOptions(p,m,f);return u.default.createElement(ca.Provider,{value:{styleProvider:x}},u.default.createElement(Vs,{busyBlockElement:i,displayOptions:no(no({},w),{containerId:yo.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:h}),pidlDocInfo:{resourceType:yo.ResourceType,parameters:T},env:r,partner:d,returnOptions:R,onEvent:this.onEvent,userContext:{authToken:t,userId:yo.UserId,additionalHeaders:D},elementFactory:c,prefillData:v,pidlsdkMock:P,callbacksIn:no(no({},k),{telemetryLogger:b}),telemetryOptions:E,propertyElementRef:I,onPageRendered:S,ref:this.baseComponentRef}))},r}(u.default.Component),Us=function(e){function t(t){var r=e.call(this,t,(function(e){return e.addPaymentInstrument(r.props.pidlDocInfo,r.props.prefillData,r.props.options)}))||this;return r}return ro(t,e),t}(Bs),js=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileParameters=function(e,t,r,n,i,o,a,s,l){var d={operation:ko.Operation,country:e,language:t,partner:r,completePrerequisites:a,type:o,family:i,sessionId:s,scenario:l};return n&&(d=no(no({},d),n)),d},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(e,t,r,i,o){return{urls:{success:e,failure:t},callbacks:{success:r,failure:n.FailureHandler,gohome:o}}},n.compileCallbacks=function(){var e=n.props,t=e.telemetryLogger,r=e.elementFactory,i=e.callbacksIn,o=no({},i);return t&&(o.telemetryLogger=t),(null===r||void 0===r?void 0:r.encryptionHandler)&&(o.encryptionHandler=r.encryptionHandler()),o},n.compileOptions=function(e){return e?{riskData:{greenId:e}}:null},n.onEvent=function(e,t){var r=n.props,i=r.onEvent,o=r.viewTermsHandler,a=St,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&o&&t.eventName===l.viewTermsTriggered||e===s.navigate&&o&&t.displayId===ko.ViewTermsId)&&o(t),i&&i(e,t)},n.getResourceType=function(){return null!=n.props.sessionId?"AddPiQrCode":ko.ResourceType},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.AddPaymentInstrument,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.parameters,i=e.busyBlockElement,o=e.completePrerequisites,a=e.scenario,s=e.sessionId,l=e.country,d=e.language,c=e.partner,p=e.paymentFamily,m=e.paymentType,f=e.elementFactory,y=e.onSuccess,h=e.onFailure,g=e.onCancel,v=e.showSubmitBlock,P=void 0===v||v,b=e.busyBlockShowHideHandler,E=e.prefillData,I=e.pidlsdkMock,S=(e.telemetryLogger,e.telemetryOptions),C=e.propertyElementRef,D=e.onPageRendered,k=e.headers,w=e.greenId,x=e.redirectionSuccessUrl,T=e.redirectionFailureUrl,R=e.serviceOverrides,F=e.useWebView2,A=e.displayOptions,H=this.state.styleProvider,O=this.compileParameters(l,d,c,n,p,m,o,s,a),M=this.compileReturnOptions(x,T,y,h,g),N=this.compileCallbacks(),B=this.compileOptions(w);return u.default.createElement(ca.Provider,{value:{styleProvider:H}},u.default.createElement(Us,{busyBlockElement:i,displayOptions:no(no({},A),{containerId:ko.ContainerId,busyBlockShowHideHandler:b,showSubmitBlock:P,useWebView2:F}),pidlDocInfo:{resourceType:this.getResourceType(),parameters:O},env:r,returnOptions:M,onEvent:this.onEvent,userContext:{authToken:t,userId:ko.UserId,additionalHeaders:k,serviceOverrides:R},elementFactory:f,prefillData:E,pidlsdkMock:I,callbacksIn:N,partner:c,telemetryOptions:S,propertyElementRef:C,onPageRendered:D,ref:this.baseComponentRef,options:B}))},r}(u.default.Component),_s=function(e){function t(t){var r=this,n=no(no({},t.pidlDocInfo),{resourceType:"PaymentInstrument"});return r=e.call(this,t,(function(e){return e.applyResource(n,r.props.prefillData,r.props.options)}))||this,r}return ro(t,e),t}(Bs),zs=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileParameters=function(){var e=n.props,t=e.country,r=e.language,i=e.partner,o=e.parameters,a=e.paymentFamily,s=e.paymentType,l=e.scenario,d=e.prefillData,u=e.provider,c=e.channel,p=e.referrerId,m=e.sessionId,f=e.ocid,y={operation:Ro.Operation,country:t,language:r,partner:i,scenario:l,type:s,family:a,prefillData:d,provider:u,channel:c,referrerId:p,sessionId:m,ocid:f};return o&&(y=no(no({},y),o)),y},n.FailureHandler=function(e){var t,r,i,o=null===(i=null===(r=null===(t=null===eo||void 0===eo?void 0:$i)||void 0===t?void 0:t.errorMessages)||void 0===r?void 0:r.pollingTimedOut)||void 0===i?void 0:i.code;o&&e.code===o.toString()?n.props.onTimeOut(e):n.props.onFailure(e)},n.compileReturnOptions=function(e,t,r,i){return{urls:i,callbacks:{success:e,failure:n.FailureHandler,gohome:r}}},n.compileCallbacks=function(){var e=n.props,t=e.telemetryLogger,r=e.elementFactory,i=e.callbacksIn,o=no({},i);return t&&(o.telemetryLogger=t),(null===r||void 0===r?void 0:r.encryptionHandler)&&(o.encryptionHandler=r.encryptionHandler()),o},n.onEvent=function(e,t){var r=n.props,i=r.onEvent,o=r.onNavigate;o&&e===z.navigate&&o(t),i&&i(e,t)},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.ApplyPaymentInstrument,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.busyBlockElement,i=e.elementFactory,o=e.onSuccess,a=e.onFailure,s=e.onCancel,l=e.redirectReturnUrls,d=e.showSubmitBlock,c=void 0===d||d,p=e.busyBlockShowHideHandler,m=e.pidlsdkMock,f=e.prefillData,y=e.telemetryOptions,h=e.propertyElementRef,g=(e.onEvent,e.onPageRendered),v=e.headers,P=e.useWebView2,b=e.displayOptions,E=e.partner,I=this.state.styleProvider,S=this.compileParameters(),C=this.compileReturnOptions(o,a,s,l),D=this.compileCallbacks();return u.default.createElement(ca.Provider,{value:{styleProvider:I}},u.default.createElement(_s,{busyBlockElement:n,displayOptions:no(no({},b),{containerId:Ro.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:c,useWebView2:P}),pidlDocInfo:{resourceType:Ro.ResourceType,parameters:S},env:r,returnOptions:C,onEvent:this.onEvent,userContext:{authToken:t,userId:Ro.UserId,additionalHeaders:v},elementFactory:i,prefillData:f,pidlsdkMock:m,callbacksIn:D,partner:E,telemetryOptions:y,propertyElementRef:h,onPageRendered:g,ref:this.baseComponentRef}))},r}(u.default.Component),Gs=function(e){function t(t){var r=e.call(this,t,(function(e){return e.addResource(r.props.pidlDocInfo,r.props.prefillData,r.props.options)}))||this;return r}return ro(t,e),t}(Bs),Ks=function(e){function t(t){var r=e.call(this,t,(function(e){return e.applyResource(r.props.pidlDocInfo,r.props.prefillData,r.props.options)}))||this;return r}return ro(t,e),t}(Bs),Ws=function(e){function t(t){var r=e.call(this,t,(function(e){return e.handlePurchasePendingState(r.props.parameters)}))||this;return r}return ro(t,e),t}(Bs),qs=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileDisplayOptions=function(){var e=n.props,t=e.busyBlockShowHideHandler,r=e.showSubmitBlock,i=void 0===r||r,o=e.useWebView2,a=e.displayOptions;return no(no({},a),{containerId:Po.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:i,useWebView2:o})},n.compileParameters=function(){var e=n.props,t=e.country,r=e.language,i=e.partner,o=e.piid,a=e.orderId,s=e.sessionId;return{piResourceInfo:{resourceType:Po.ResourceType,parameters:{market:t,language:r,partner:i,sessionId:s,orderId:a},id:o},sessionId:s,orderId:a,options:{}}},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(){var e=n.props,t=e.onSuccess,r=e.onCancel,i=e.redirectReturnUrls,o=no({},i),a=o.success,s=o.failure,l=o.gohome;return{callbacks:{success:t,failure:n.FailureHandler,gohome:r},urls:{success:a,failure:s,gohome:l}}},n.compileCallbacksIn=function(){return no(no({},n.props.callbacksIn),{telemetryLogger:n.props.telemetryLogger})},n.compileUserContext=function(){return{authToken:n.props.authToken,userId:Po.UserId,additionalHeaders:n.props.headers}},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.ConfirmPayment,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.env,r=e.pidlsdkMock,n=e.propertyElementRef,i=e.telemetryOptions,o=e.onEvent,a=e.onPageRendered,s=e.elementFactory,l=e.busyBlockElement,d=e.partner,c=this.state.styleProvider,p=this.compileDisplayOptions(),m=this.compileParameters(),f=this.compileReturnOptions(),y=this.compileCallbacksIn(),h=this.compileUserContext();return u.default.createElement(ca.Provider,{value:{styleProvider:c}},u.default.createElement(Ws,{busyBlockElement:l,displayOptions:p,parameters:m,env:t,returnOptions:f,userContext:h,onEvent:o,elementFactory:s,pidlsdkMock:r,callbacksIn:y,telemetryOptions:i,propertyElementRef:n,onPageRendered:a,partner:d,ref:this.baseComponentRef}))},r}(u.default.Component),Js=function(e){function t(t){var r=e.call(this,t,(function(e){return e.createPaymentSession(r.props.paymentSessionOrData)}))||this;return r}return ro(t,e),t}(Bs),Qs=function(e){function t(t){var r=e.call(this,t,(function(e){return e.updateResource(r.props.resourceInfo,null,r.props.pidlDocInfo)}))||this;return r}return ro(t,e),t}(Bs),Zs=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileParameters=function(e,t,r,n,i,o){var a=no({operation:go.Operation,type:go.AddressType,scenario:e},{country:t,language:r,partner:n,addressId:o});return i&&(a=no(no({},a),i)),a},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(e,t,r){return{callbacks:{success:e,failure:n.FailureHandler,gohome:r}}},n.onEvent=function(e,t){var r=n.props,i=r.onEvent,o=r.viewTermsHandler,a=St,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&o&&t.eventName===l.viewTermsTriggered||e===s.navigate&&o&&t.displayId===yo.ViewTermsId)&&o(t),i&&i(e,t)},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.AddAddress,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.addressId,n=e.env,i=e.parameters,o=e.busyBlockElement,a=e.scenario,s=e.country,l=e.language,d=e.partner,c=e.elementFactory,p=e.onSuccess,m=e.onFailure,f=e.onCancel,y=e.showSubmitBlock,h=void 0===y||y,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,P=e.telemetryLogger,b=e.propertyElementRef,E=e.onPageRendered,I=e.headers,S=e.displayOptions,C=this.state.styleProvider,D=this.compileParameters(a,s,l,d,i,r),k=this.compileReturnOptions(p,m,f);return u.default.createElement(ca.Provider,{value:{styleProvider:C}},u.default.createElement(Qs,{busyBlockElement:o,displayOptions:no(no({},S),{containerId:go.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:h}),resourceInfo:{id:r,resourceType:go.ResourceType,parameters:{}},pidlDocInfo:{resourceType:go.ResourceType,parameters:D},env:n,partner:d,returnOptions:k,onEvent:this.onEvent,userContext:{authToken:t,userId:go.UserId,additionalHeaders:I},elementFactory:c,pidlsdkMock:v,callbacksIn:{telemetryLogger:P},propertyElementRef:b,onPageRendered:E,ref:this.baseComponentRef}))},r}(u.default.Component),Ys=function(e){function t(t){var r=e.call(this,t,(function(e){return e.updateResource(r.props.resourceInfo,null,r.props.pidlDocInfo)}))||this;return r}return ro(t,e),t}(Bs),Xs=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.onEvent=function(e,t){var r=n.props,i=r.onEvent,o=r.viewTermsHandler,a=St,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&o&&t.eventName===l.viewTermsTriggered||e===s.navigate&&o&&t.displayId===xo.ViewTermsId)&&o(t),i&&i(e,t)},n.compileParameters=function(e,t,r,n,i,o){var a={country:e,language:t,partner:i,type:r,family:n};return o&&(a=no(no({},a),o)),a},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:n.FailureHandler,gohome:t}}},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.EditPaymentInstrument,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.paymentInstrumentId,n=e.paymentType,i=e.paymentFamily,o=e.env,a=e.parameters,s=e.busyBlockElement,l=e.country,d=e.language,c=e.partner,p=e.elementFactory,m=e.onSuccess,f=e.onCancel,y=e.showSubmitBlock,h=void 0===y||y,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,P=e.telemetryLogger,b=e.propertyElementRef,E=e.onPageRendered,I=e.headers,S=e.callbacksIn,C=e.displayOptions,D=this.state.styleProvider,k=this.compileParameters(l,d,n,i,c,a),w=this.compileReturnOptions(m,f);return u.default.createElement(ca.Provider,{value:{styleProvider:D}},u.default.createElement(Ys,{busyBlockElement:s,env:o,returnOptions:w,onEvent:this.onEvent,userContext:{authToken:t,userId:xo.UserId,additionalHeaders:I},elementFactory:p,pidlsdkMock:v,callbacksIn:no(no({},S),{telemetryLogger:P}),propertyElementRef:b,onPageRendered:E,displayOptions:no(no({},C),{containerId:xo.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:h}),partner:c,resourceInfo:{id:r,resourceType:xo.ResourceType,parameters:{partner:c}},pidlDocInfo:{resourceType:xo.ResourceType,parameters:k},ref:this.baseComponentRef}))},r}(u.default.Component),$s=function(e){function t(t){var r=e.call(this,t,(function(e){return e.fundStoredValue(r.props.fundStoredValueParams)}))||this;return r}return ro(t,e),t}(Bs),el=function(e){function t(t){var r=e.call(this,t,(function(e){return e.handlePaymentChallenge(r.props.paymentSessionOrData,r.props.containerRef)}))||this;return r}return ro(t,e),t}(Bs),tl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.expressCheckout(r.props.pidlDocInfo)}))||this;return r}return ro(t,e),t}(Bs),rl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onEventInternal=function(e,r){var n=t.props,i=n.onReady,o=n.onEvent;if(e==z.expressCheckoutReady)return i(r);null===o||void 0===o||o(e,r)},t.compileParameters=function(){var e=t.props,r=e.expressCheckoutData,n=e.filters,i=e.allowedPaymentMethods,o=e.partner,a=e.parameters;return no(no({},a),{allowedPaymentMethods:i,filters:n,expressCheckoutData:r,partner:o,country:r.country})},t.getPidlDocInfo=function(e){return{resourceType:Mo.ResourceType,parameters:e}},t.onFailureHandler=function(e){(0,t.props.onFailure)(e.error)},t.compileReturnOptions=function(){var e=t.props,r=e.onSuccess,n=e.onCancel;return{callbacks:{failure:t.onFailureHandler,success:r,gohome:n}}},t}return ro(t,e),t.prototype.render=function(){var e=this.props,t=e.authToken,r=e.headers,n=e.displayOptions,i=e.env,o=e.busyBlockShowHideHandler,a=e.busyBlockElement,s=e.telemetryOptions,l=e.pidlsdkMock,d=e.callbacksIn,c=e.telemetryLogger,p=e.propertyElementRef,m=e.onPageRendered,f=this.compileParameters(),y=this.getPidlDocInfo(f),h=this.compileReturnOptions();return u.default.createElement(u.default.Fragment,null,u.default.createElement(tl,{busyBlockElement:a,pidlDocInfo:y,onEvent:this.onEventInternal,env:i,userContext:{authToken:t,userId:Mo.UserId,additionalHeaders:r},returnOptions:h,displayOptions:no(no({},n),{busyBlockShowHideHandler:o}),telemetryOptions:s,pidlsdkMock:l,callbacksIn:no(no({},d),{telemetryLogger:c}),propertyElementRef:p,onPageRendered:m}))},t}(u.default.Component),nl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.handlePurchaseRiskChallenge(r.props.parameters)}))||this;return r}return ro(t,e),t}(Bs);t.RiskPurchaseType=void 0,(Ds=t.RiskPurchaseType||(t.RiskPurchaseType={})).CVV="cvv",Ds.SMS="sms";var il,ol=function(e){function t(t){var r=e.call(this,t,(function(e){return e.handlePurchaseRiskChallenge(r.props.parameters)}))||this;return r}return ro(t,e),t}(Bs),al=function(e){function r(r){var n=e.call(this,r)||this;n.HandleRiskChallengeInternalRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.onEvent=function(e,t){var r=n.props,i=r.onEvent,o=r.viewTermsHandler,a=St,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&o&&t.eventName===l.viewTermsTriggered||e===s.navigate&&o&&t.displayId===No.ViewTermsId)&&o(t),i&&i(e,t)},n.compileDisplayOptions=function(){var e=n.props,t=e.busyBlockShowHideHandler,r=e.showSubmitBlock,i=void 0===r||r,o=e.displayOptions;return no(no({},o),{containerId:vo.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:i})},n.compileParameters=function(){var e=n.props,t=e.piid,r=e.language,i=e.country,o=e.partner,a=e.type,s=e.sessionId;return{options:{},piResourceInfo:{id:t,parameters:{language:r,market:i,partner:o},resourceType:vo.ResourceType},riskChallengeData:[a],sessionId:s}},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(){var e=n.props,t=(e.onSuccess,e.onCancel);return{callbacks:{success:n.onSuccess,failure:n.FailureHandler,gohome:t}}},n.onSuccess=function(e){var r=n.props,i=r.onSuccess;r.type===t.RiskPurchaseType.SMS?i({challengeType:t.RiskPurchaseType.SMS}):i(e)},n.compileCallbacksIn=function(){var e=n.props,r=e.onSuccess,i=e.telemetryLogger,o=e.callbacksIn,a=e.type,s=e.elementFactory,l=no(no({},o),{telemetryLogger:i});return(null===s||void 0===s?void 0:s.encryptionHandler)&&(l.encryptionHandler=s.encryptionHandler()),a===t.RiskPurchaseType.CVV&&(l=no(no({},l),{submit:function(e){var t=null===e||void 0===e?void 0:e.data;r(t)}})),l},n.transformPidlString=function(e){return function(t,r){var n=r;return t?t.url?t.url.toLowerCase().includes("challenge/sms/validate")&&"string"===typeof r&&(n={value:r}):e.error(new ir.unexpectedError(or.inputParameterMissing,["request url"])):e.error(new ir.unexpectedError(or.inputParameterMissing,["request"])),n}},n.moveNextPage=function(){var e,t;null===(t=null===(e=n.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.moveNextPage()},n.movePrevPage=function(){var e,t;null===(t=null===(e=n.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.movePrevPage()},n.cancel=function(){var e,t;null===(t=null===(e=n.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.cancel()},n.getRef=function(){return n.HandleRiskChallengeInternalRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.RiskChallenge,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this,t=this.state.styleProvider,r=this.props,n=r.authToken,i=r.busyBlockElement,o=r.env,a=r.elementFactory,s=r.pidlsdkMock,l=r.propertyElementRef,d=r.onPageRendered,c=r.telemetryOptions,p=r.headers,m=r.partner,f=this.compileDisplayOptions(),y=this.compileParameters(),h=this.compileReturnOptions(),g=this.compileCallbacksIn();return u.default.createElement(ca.Provider,{value:{styleProvider:t}},u.default.createElement(ua.Consumer,null,(function(t){return u.default.createElement(ol,{busyBlockElement:i,displayOptions:f,parameters:y,env:o,returnOptions:h,userContext:{authToken:n,userId:vo.UserId,additionalHeaders:p},onEvent:e.onEvent,elementFactory:a,pidlsdkMock:s,partner:m,callbacksIn:g,telemetryOptions:c,propertyElementRef:l,onPageRendered:d,transformersIn:{submissionSuccessTransformer:e.transformPidlString(t)},ref:e.HandleRiskChallengeInternalRef})})))},r}(u.default.Component),sl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.listAddress(r.props.pidlDocInfo,r.props.options,r.props.actionContext,r.props.selectedResourceInfo)}))||this;return r}return ro(t,e),t}(Bs),ll=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileParameters=function(e,t,r,n,i,o,a){var s={operation:o,scenario:e,type:a||Do.DefaultAddressType,country:t,language:r,partner:n};return i&&(s=no(no({},s),i)),s},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(e,t,r){return{callbacks:{success:e,failure:n.FailureHandler,gohome:r}}},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.ListAddress,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.parameters,i=e.busyBlockElement,o=e.country,a=e.language,s=e.partner,l=e.scenario,d=e.elementFactory,c=e.onSuccess,p=e.onFailure,m=e.onCancel,f=e.showSubmitBlock,y=void 0===f||f,h=e.busyBlockShowHideHandler,g=e.pidlsdkMock,v=e.telemetryLogger,P=e.telemetryOptions,b=e.addressType,E=e.propertyElementRef,I=e.onPageRendered,S=e.onEvent,C=e.callbacksIn,D=e.headers,k=e.displayOptions,w=this.state.styleProvider,x=this.compileParameters(l,o,a,s,n,Do.Operation,b),T=this.compileReturnOptions(c,p,m);return u.default.createElement(ca.Provider,{value:{styleProvider:w}},u.default.createElement(sl,{busyBlockElement:i,displayOptions:no(no({},k),{containerId:Do.ContainerId,busyBlockShowHideHandler:h,showSubmitBlock:y}),pidlDocInfo:{resourceType:Do.ResourceType,parameters:x},env:r,returnOptions:T,onEvent:S,userContext:{authToken:t,userId:Do.UserId,additionalHeaders:D},elementFactory:d,partner:s,pidlsdkMock:g,callbacksIn:no(no({},C),{telemetryLogger:v}),telemetryOptions:P,propertyElementRef:E,onPageRendered:I,ref:this.baseComponentRef}))},r}(u.default.Component),dl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.selectSingleInstance(r.props.pidlDocInfo,r.props.options,r.props.actionContext,r.props.selectedResourceInfo)}))||this;return r}return ro(t,e),t}(Bs),ul=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileParameters=function(){var e=n.props,t=e.country,r=e.language,i=e.partner,o=e.parameters,a={operation:Ho.Operation,country:t,language:r,partner:i,filters:{id:n.props.paymentInstrument.id}};return o&&(a=no(no({},a),o)),a},n.compileReturnOptions=function(){var e=n.props,t=e.onCancel;return{callbacks:{failure:e.onFailure,gohome:t}}},n.eventHandler=function(e,t){var r=n.props,i=r.onChange,o=r.onEvent,a=r.paymentInstrument;e===z.click&&(null===t||void 0===t?void 0:t.id)===Ho.ChangeButtonId&&i&&i(a.id),o&&o(e,t)},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.baseDisabledStyleOverrides,m=i.scenarioDisabledStyleOverrides,f=i.telemetryLogger,y=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.PaymentInstrumentDetails,a,s,l,d,c,null,p,m,f);return n.state={styleProvider:y},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.busyBlockElement,i=e.elementFactory,o=e.showSubmitBlock,a=void 0===o||o,s=e.busyBlockShowHideHandler,l=e.pidlsdkMock,d=e.telemetryLogger,c=e.telemetryOptions,p=e.propertyElementRef,m=e.onPageRendered,f=e.callbacksIn,y=e.headers,h=e.displayOptions,g=this.state.styleProvider,v=this.compileParameters(),P=this.compileReturnOptions();return u.default.createElement(ca.Provider,{value:{styleProvider:g}},u.default.createElement(dl,{busyBlockElement:n,displayOptions:no(no({},h),{containerId:Ho.ContainerId,busyBlockShowHideHandler:s,showSubmitBlock:a}),pidlDocInfo:{resourceType:Ho.ResourceType,parameters:v},env:r,returnOptions:P,onEvent:this.eventHandler,userContext:{authToken:t,userId:Ho.UserId,additionalHeaders:y},elementFactory:i,pidlsdkMock:l,callbacksIn:no(no({},f),{telemetryLogger:d}),telemetryOptions:c,propertyElementRef:p,onPageRendered:m,ref:this.baseComponentRef}))},r}(u.default.Component),cl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.updateProfile(r.props.resourceInfo,r.props.resource,r.props.pidlDocInfo,r.props.options||{})}))||this;return r}return ro(t,e),t}(Bs),pl=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compilePidlDocParameters=function(e,t,r,n){var i={operation:Ao.Operation,country:e,language:t,partner:r,type:"consumer"};return n&&(i=no(no({},i),n)),i},n.compileResourceParameters=function(e,t,r,n){return{country:e,language:t,partner:r,type:"consumer"}},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(e,t,r){return{callbacks:{failure:n.FailureHandler,success:e,gohome:r}}},n.onEvent=function(e,t){var r=n.props,i=r.onEvent,o=r.viewTermsHandler,a=St,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&o&&t.eventName===l.viewTermsTriggered||e===s.navigate&&o&&t.displayId===ko.ViewTermsId)&&o(t),i&&i(e,t)},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.ProfilePrerequisite,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.parameters,i=e.busyBlockElement,o=e.country,a=e.language,s=e.partner,l=e.elementFactory,d=e.onSuccess,c=e.onFailure,p=e.onCancel,m=e.showSubmitBlock,f=void 0===m||m,y=e.busyBlockShowHideHandler,h=e.pidlsdkMock,g=e.telemetryLogger,v=e.propertyElementRef,P=e.profileId,b=e.onPageRendered,E=e.callbacksIn,I=e.headers,S=e.displayOptions,C=this.state.styleProvider,D=this.compilePidlDocParameters(o,a,s,n),k=this.compileResourceParameters(o,a,s,n),w=this.compileReturnOptions(d,c,p);return u.default.createElement(ca.Provider,{value:{styleProvider:C}},u.default.createElement(cl,{busyBlockElement:i,displayOptions:no(no({},S),{containerId:Ao.ContainerId,busyBlockShowHideHandler:y,showSubmitBlock:f}),pidlDocInfo:{resourceType:Ao.ResourceType,parameters:D},resourceInfo:{resourceType:Ao.ResourceType,parameters:k,id:P},env:r,returnOptions:w,onEvent:this.onEvent,userContext:{authToken:t,userId:Ao.UserId,additionalHeaders:I},elementFactory:l,partner:s,pidlsdkMock:h,callbacksIn:no(no({},E),{telemetryLogger:g}),propertyElementRef:v,onPageRendered:b,ref:this.baseComponentRef}))},r}(u.default.Component),ml=function(e){function t(t){var r=e.call(this,t,(function(e){return e.replaceResource(r.props.pidlDocInfo,r.props.intersectingData,r.props.options)}))||this;return r}return ro(t,e),t}(Bs),fl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.searchResource({pidlDocInfo:r.props.pidlDocInfo,options:r.props.options})}))||this;return r}return ro(t,e),t}(Bs),yl=f((function(e,t){var r=p&&p.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(i,o){function a(e){try{l(n.next(e))}catch(t){o(t)}}function s(e){try{l(n.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}l((n=n.apply(e,t||[])).next())}))};function i(){return r(this,void 0,void 0,n.mark((function e(){return n.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){if(-1!==navigator.userAgent.indexOf("Edg")){var t,r=function(){window.dispatchEvent(new CustomEvent("LoadLocalCards",{}))},n=function n(i){var o=JSON.parse(i.detail).localCards.map((function(e){var t,r,n,i,o,a,s,l=e.cardNumber,d=e.expMonth,u=e.expYear,c=e.cardType,p=e.name,m=e.billingAddress;return{details:{accountHolderName:p,accountToken:l,paymentMethodType:c,expiryYear:u,expiryMonth:d,cardType:"Credit",address:{first_name:"",last_name:"",address_line1:null!==(t=null===m||void 0===m?void 0:m.addressLine1)&&void 0!==t?t:"",address_line2:null!==(r=null===m||void 0===m?void 0:m.addressLine2)&&void 0!==r?r:"",city:null!==(n=null===m||void 0===m?void 0:m.city)&&void 0!==n?n:"",district:null!==(i=null===m||void 0===m?void 0:m.state)&&void 0!==i?i:"",region:"",postal_code:null!==(o=null===m||void 0===m?void 0:m.postalCode)&&void 0!==o?o:"",country:null!==(a=null===m||void 0===m?void 0:m.country)&&void 0!==a?a:"",phone_number:"",unit_number:null!==(s=null===m||void 0===m?void 0:m.aptNum)&&void 0!==s?s:""}}}}));e(o),clearTimeout(t),window.removeEventListener("BuyNowIsReady",r),window.removeEventListener("LoadLocalCardsFinished",n)};t=setTimeout((function(){e([]),window.removeEventListener("BuyNowIsReady",r),window.removeEventListener("LoadLocalCardsFinished",n)}),500),window.addEventListener("BuyNowIsReady",r),window.addEventListener("LoadLocalCardsFinished",n),window.dispatchEvent(new CustomEvent("IsBuyNowReady",{}))}else e([])})));case 1:case"end":return e.stop()}}),e)})))}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalCards=void 0,t.getLocalCards=i;var o={getLocalCards:i};t.default=o})),hl=m(yl),gl=(yl.getLocalCards,function(e){function t(t){var r=e.call(this,t,(function(e){return e.selectPaymentInstrument(r.props.pidlDocInfo,r.props.options,r.props.actionContext,r.props.selectedResourceInfo,r.props.includePidl)}))||this;return r}return ro(t,e),t}(Bs)),vl=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.allowAddNewPaymentMethod=!1,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.getResourceType=function(){return n.props.includePidl?So.paymentInstrumentList:So.ResourceType},n.compileParameters=function(){var e=n.props,t=e.country,r=e.language,i=e.partner,o=e.allowedPaymentMethods,a=e.defaultPaymentMethod,s=e.parameters,l=e.sessionId,d=e.orderId,u=e.merchantId,c=e.currency,p=e.filters,m=e.classicProduct,f=e.billableAccountId,y=e.includePidl,h=e.paymentInstrumentSelectedHandler,g=e.onAddNewPaymentMethod,v={allowedPaymentMethods:(null===o||void 0===o?void 0:o.length)?o:So.AllowedPaymentMethods,operation:So.Operation,country:t,language:r,partner:i};return v.allowedPaymentMethods.length&&v.allowedPaymentMethods.indexOf(So.addNewPaymentMethodFamily)<0&&h&&g&&(v.allowedPaymentMethods=ao(ao([],v.allowedPaymentMethods,!0),[So.addNewPaymentMethodFamily],!1)),l&&(v.sessionId=l),y&&(v.includePidl=y),d&&(v.orderId=d),u&&(v.merchantId=u),c&&(v.currency=c),p&&(v.filters=p),m&&(v.classicProduct=m),f&&(v.billableAccountId=f),a&&(v.defaultPaymentMethod=a),s&&(v=no(no({},v),s)),v},n.failureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(){var e=n.props,t=e.onCancel,r=e.onSuccess;return{callbacks:{failure:n.failureHandler,success:r,gohome:t}}},n.isCreditCard=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return xn.getFunctionExecutionResult({functionName:Eo.isCreditCard},{contextData:e})},n.isCreditCardExpired=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return xn.getFunctionExecutionResult({functionName:Eo.isCreditCardExpired},{contextData:e})},n.onEventInternal=function(e,t){var r=n.props,i=r.onEvent,o=r.paymentInstrumentSelectedHandler,a=r.userPiAvailableCheckHandler;if(e==z.pageRefreshed&&t&&"noPaymentInstrumentSelectPage"==(null===t||void 0===t?void 0:t.pageId)&&(n.setState({userPiExists:!1}),a&&a(n.state.userPiExists)),o&&e===z.resourceSelected){var s=n.getSelectedResource(),l=n.props.onAddNewPaymentMethod;return n.allowAddNewPaymentMethod||s&&(null===s||void 0===s?void 0:s.paymentMethodType)===So.preventDefaultSelection||(n.allowAddNewPaymentMethod=!0),s.paymentMethodFamily===So.addNewPaymentMethodFamily&&n.allowAddNewPaymentMethod&&l?l():(n.allowAddNewPaymentMethod=!0,o(s))}if(i)return i(e,t)},n.getWalletCards=function(e){return io(n,void 0,void 0,(function(){var t,r,n;return oo(this,(function(i){switch(i.label){case 0:return(null===e||void 0===e?void 0:e.getLocalCards)?((r=e.timeout||0)>0&&(t=setTimeout((function(){try{throw new Error("Timeout getting wallet cards")}catch(e){clearTimeout(t)}}),r)),[4,e.getLocalCards().then((function(e){return e})).catch((function(){return[]}))]):[3,2];case 1:return n=i.sent()||[],t&&clearTimeout(t),[2,n];case 2:return[2,[]]}}))}))},n.getLocalWalletProvider=function(e){return{paymentInstruments:{mergingFunction:"mergeAndFillLocalCards",getDataSource:function(){return n.getWalletCards(e)}}}},n.getRef=function(){return n.baseComponentRef},n.populatePrefillData=function(e){var t,r,n,i,o,a,s,l,d,u,c,p,m,f,y,h,g,v,P,b,E,I=null===(t=e.details)||void 0===t?void 0:t.expiryMonth,S=I.startsWith&&I.startsWith("0")?I.substring(1):I;return{accountToken:null===(r=e.details)||void 0===r?void 0:r.accountToken,accountHolderName:null===(n=e.details)||void 0===n?void 0:n.accountHolderName,expiryYear:null===(o=null===(i=e.details)||void 0===i?void 0:i.expiryYear)||void 0===o?void 0:o.toString(),expiryMonth:null===S||void 0===S?void 0:S.toString(),address:{address_line1:null===(s=null===(a=e.details)||void 0===a?void 0:a.address)||void 0===s?void 0:s.address_line1,address_line2:(null===(d=null===(l=e.details)||void 0===l?void 0:l.address)||void 0===d?void 0:d.address_line2)||"",address_line3:(null===(c=null===(u=e.details)||void 0===u?void 0:u.address)||void 0===c?void 0:c.address_line3)||"",city:null===(m=null===(p=e.details)||void 0===p?void 0:p.address)||void 0===m?void 0:m.city,region:(null===(y=null===(f=e.details)||void 0===f?void 0:f.address)||void 0===y?void 0:y.region)||(null===(g=null===(h=e.details)||void 0===h?void 0:h.address)||void 0===g?void 0:g.district),postal_code:null===(P=null===(v=e.details)||void 0===v?void 0:v.address)||void 0===P?void 0:P.postal_code,country:null===(E=null===(b=null===e||void 0===e?void 0:e.details)||void 0===b?void 0:b.address)||void 0===E?void 0:E.country}}},n.getSelectedResource=function(){var e,t,r,i,o,a,s,l,d,u,c,p,m=null===(t=null===(e=n.baseComponentRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.getSelectedResource(),f=(null===m||void 0===m?void 0:m.instance)||(null===m||void 0===m?void 0:m.paymentInstrumentId)||{},y={id:f.id,paymentMethodFamily:null===(r=f.paymentMethod)||void 0===r?void 0:r.paymentMethodFamily,paymentMethodType:null===(i=f.paymentMethod)||void 0===i?void 0:i.paymentMethodType,displayName:null===(a=null===(o=f.paymentMethod)||void 0===o?void 0:o.display)||void 0===a?void 0:a.name,email:null===(s=f.details)||void 0===s?void 0:s.email,lastFourDigits:null===(l=f.details)||void 0===l?void 0:l.lastFourDigits,isExpired:!!n.isCreditCard(f)&&n.isCreditCardExpired(f),soldToAddressRequired:null===(u=null===(d=f.paymentMethod)||void 0===d?void 0:d.properties)||void 0===u?void 0:u.soldToAddressRequired,properties:null===(c=f.paymentMethod)||void 0===c?void 0:c.properties};return(null===(p=f.details)||void 0===p?void 0:p.isNotSaved)&&(y.isNotSaved=f.details.isNotSaved,y.prefillData=n.populatePrefillData(f)),y};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.baseDisabledStyleOverrides,m=i.scenarioDisabledStyleOverrides,f=i.telemetryLogger,y=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,s,l,d,c,null,p,m,f);return n.state={styleProvider:y,userPiExists:!0},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.busyBlockElement,i=e.elementFactory,o=e.showSubmitBlock,a=void 0===o||o,s=e.busyBlockShowHideHandler,l=e.pidlsdkMock,d=e.telemetryLogger,c=e.actionContext,p=e.telemetryOptions,m=e.pidlPayload,f=e.includePidl,y=e.propertyElementRef,h=(e.onEvent,e.onPageRendered),g=e.headers,v=e.callbacksIn,P=e.walletProvider,b=e.displayOptions,E=e.partner,I=this.state.styleProvider,S=this.compileParameters(),C=this.compileReturnOptions(),D=this.getLocalWalletProvider(null!==P&&void 0!==P?P:hl),k=this.getResourceType();return u.default.createElement(ca.Provider,{value:{styleProvider:I}},u.default.createElement(gl,{busyBlockElement:n,displayOptions:no(no({},b),{containerId:So.ContainerId,busyBlockShowHideHandler:s,showSubmitBlock:a}),pidlDocInfo:{resourceType:k,parameters:S},env:r,returnOptions:C,onEvent:this.onEventInternal,userContext:{authToken:t,userId:So.UserId,additionalHeaders:g},actionContext:c,elementFactory:i,partner:E,pidlsdkMock:l,callbacksIn:no(no({},v),{telemetryLogger:d}),telemetryOptions:p,propertyElementRef:y,onPageRendered:h,ref:this.baseComponentRef,includePidl:f,pidlPayload:m,localDataSourceProviders:D}))},r}(u.default.Component),Pl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.selectResourceType(r.props.pidlDocInfo,r.props.options)}))||this;return r}return ro(t,e),t}(Bs),bl=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileParameters=function(){var e=n.props,t=e.country,r=e.language,i=e.partner,o=e.parameters,a=e.defaultPaymentMethod,s=e.allowedPaymentMethods,l=e.filters,d=e.sessionId,u=e.orderId,c=e.merchantId,p=e.currency,m=e.pmGroupPageId,f={allowedPaymentMethods:(null===s||void 0===s?void 0:s.length)?s:ho.AllowedPaymentMethods,operation:ho.Operation,country:t,language:r,partner:i};return a&&(f.defaultPaymentMethod=a),d&&(f.sessionId=d),u&&(f.orderId=u),c&&(f.merchantId=c),p&&(f.currency=p),l&&(f.filters=l),m&&(f.pmGroupPageId=m),o&&(f=no(no({},f),o)),f},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(e,t,r){return{callbacks:{failure:n.FailureHandler,success:e,gohome:r}}},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentMethod,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.busyBlockElement,i=e.elementFactory,o=e.onSuccess,a=e.onFailure,s=e.onCancel,l=e.showSubmitBlock,d=void 0===l||l,c=e.busyBlockShowHideHandler,p=e.pidlsdkMock,m=e.callbacksIn,f=e.propertyElementRef,y=e.onEvent,h=e.onPageRendered,g=e.telemetryLogger,v=e.headers,P=e.displayOptions,b=e.telemetryOptions,E=e.partner,I=this.state.styleProvider,S=this.compileParameters(),C=this.compileReturnOptions(o,a,s);return u.default.createElement(ca.Provider,{value:{styleProvider:I}},u.default.createElement(Pl,{busyBlockElement:n,displayOptions:no(no({},P),{containerId:ho.ContainerId,busyBlockShowHideHandler:c,showSubmitBlock:d,disableFocusOnLoad:this.props.disableFocusOnLoad}),pidlDocInfo:{resourceType:ho.ResourceType,parameters:S},env:r,returnOptions:C,onEvent:y,userContext:{authToken:t,userId:ho.UserId,additionalHeaders:v},elementFactory:i,partner:E,pidlsdkMock:p,callbacksIn:no(no({},m),{telemetryLogger:g}),propertyElementRef:f,onPageRendered:h,telemetryOptions:b,ref:this.baseComponentRef}))},r}(u.default.Component),El=function(e){function t(t){var r=e.call(this,t,(function(e){return e.selectInstance(r.props.pidlDocInfo,r.props.options,r.props.actionContext,r.props.selectedResourceInfo)}))||this;return r}return ro(t,e),t}(Bs),Il=function(e){function t(t){var r=e.call(this,t,(function(e){return e.selectResourceType(r.props.pidlDocInfo,r.props.options)}))||this;return r}return ro(t,e),t}(Bs),Sl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.selectSingleInstance(r.props.pidlDocInfo,r.props.options,r.props.actionContext,r.props.selectedResourceInfo)}))||this;return r}return ro(t,e),t}(Bs),Cl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.showResource({pidlDocInfo:r.props.pidlDocInfo,prefillData:r.props.prefillData,options:r.props.options})}))||this;return r}return ro(t,e),t}(Bs),Dl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.testHookRenderPidlPage(r.props.pidlDocument,r.props.operation,r.props.pageIndex||0,r.props.prefillData)}))||this;return r}return ro(t,e),t}(Bs),kl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.updateResource(r.props.resourceInfo,r.props.resource,r.props.pidlDocInfo,r.props.options||{})}))||this;return r}return ro(t,e),t}(Bs),wl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.validateAddress(r.props.pidlDocInfo)}))||this;return r}return ro(t,e),t}(Bs);t.ValidateAddressPages=void 0,(il=t.ValidateAddressPages||(t.ValidateAddressPages={}))[il.validateAddressPage=0]="validateAddressPage",il[il.editAddressPage=1]="editAddressPage";var xl,Tl=function(e){function r(r){var n=e.call(this,r)||this;return n.baseComponentRef=u.default.createRef(),n.onValidateAddressEvent=function(e,r){var i=n.props,o=i.onEvent,a=i.currentPageChangeHandler;if(e==z.pageRefreshed){switch(r.pageId){case"addressSuggestionPage1":n.setState({currentPage:t.ValidateAddressPages.validateAddressPage});break;case"addressSuggestionPage2":n.setState({currentPage:t.ValidateAddressPages.editAddressPage})}a&&a(n.state.currentPage)}if(o)return o(e,r)},n.getCurrentPage=function(){return n.state.currentPage},n.getRef=function(){return n.props.pidlSdkRef||n.baseComponentRef},n.state={currentPage:t.ValidateAddressPages.validateAddressPage},n}return ro(r,e),r.prototype.compileParameters=function(e,t,r,n,i,o){var a=no({operation:bo.Operation,type:i},{country:e,language:t,partner:r,addressId:n});return o&&(a=no(no({},a),o)),a},r.prototype.render=function(){var e=this.props,t=e.userContext,r=e.env,n=e.parameters,i=e.country,o=e.language,a=e.partner,s=e.addressId,l=e.addressType,d=e.elementFactory,c=e.returnOptions,p=e.pidlSdkRef,m=e.showSubmitBlock,f=void 0===m||m,y=e.busyBlockShowHideHandler,h=(e.onEvent,e.callbacksIn),g=this.compileParameters(i,o,a,s,l,n);return u.default.createElement(wl,{displayOptions:{containerId:bo.ContainerId,busyBlockShowHideHandler:y,showSubmitBlock:f},pidlDocInfo:{resourceType:bo.ResourceType,parameters:g},env:r,returnOptions:c,userContext:t,elementFactory:d,partner:a,ref:p||this.baseComponentRef,onEvent:this.onValidateAddressEvent,callbacksIn:h})},r}(u.default.Component),Rl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.validateResource(r.props.pidlDocInfo)}))||this;return r}return ro(t,e),t}(Bs),Fl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.handleCheckout(r.props.checkoutParams)}))||this;return r}return ro(t,e),t}(Bs),Al=function(e){function t(t){var r=e.call(this,t,(function(e){return e.deleteResource({resourceInfo:r.props.resourceInfo,resource:r.props.resource,pidlDocInfo:r.props.pidlDocInfo,options:r.props.options||{}})}))||this;return r}return ro(t,e),t}(Bs),Hl=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileParameters=function(e,t,r,n,i,o){return{id:o,resourceType:wo.ResourceType,resourceEndpoint:void 0,parameters:{market:e,language:t,partner:r,family:n,type:i}}},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:n.FailureHandler,gohome:t}}},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.DeletePaymentInstrument,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.paymentInstrumentId,n=e.paymentType,i=e.paymentFamily,o=e.env,a=e.busyBlockElement,s=e.country,l=e.language,d=e.partner,c=e.elementFactory,p=e.onSuccess,m=e.onCancel,f=e.showSubmitBlock,y=void 0===f||f,h=e.busyBlockShowHideHandler,g=e.telemetryLogger,v=e.headers,P=e.callbacksIn,b=e.displayOptions,E=this.state.styleProvider,I=this.compileParameters(s,l,d,i,n,r),S=this.compileReturnOptions(p,m);return u.default.createElement(ca.Provider,{value:{styleProvider:E}},u.default.createElement(Al,{returnOptions:S,busyBlockElement:a,env:o,options:void 0,resourceInfo:I,partner:d,elementFactory:c,callbacksIn:no(no({},P),{telemetryLogger:g}),userContext:{authToken:t,userId:wo.UserId,additionalHeaders:v},displayOptions:no(no({},b),{containerId:wo.ContainerId,busyBlockShowHideHandler:h,showSubmitBlock:y}),ref:this.baseComponentRef}))},r}(u.default.Component),Ol=function(e){function t(t){var r=e.call(this,t,(function(e){return e.handlePaymentChallenge(r.props.paymentSessionOrData)}))||this;return r}return ro(t,e),t}(Bs),Ml=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileDisplayOptions=function(){var e=n.props,t=e.busyBlockShowHideHandler,r=e.showSubmitBlock,i=void 0===r||r,o=e.displayOptions;return no(no({},o),{containerId:Oo.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:i})},n.successHandler=function(e){"Cancelled"===e.challengeStatus||"Unknown"===e.challengeStatus?n.props.onCancel(e):"TimedOut"===e.challengeStatus?n.props.onFailure(e):n.props.onSuccess(e)},n.failureHandler=function(e){var t=null===e||void 0===e?void 0:e.error;n.props.onFailure(null===t||void 0===t?void 0:t.innererror)},n.compileReturnOptions=function(){var e=n.props.onCancel;return{callbacks:{success:n.successHandler,failure:n.failureHandler,gohome:e}}},n.compileCallbacksIn=function(){return{telemetryLogger:n.props.telemetryLogger}},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.HandlePaymentChallenge,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.state.styleProvider,t=this.props,r=t.authToken,n=t.busyBlockElement,i=t.env,o=t.elementFactory,a=t.headers,s=t.paymentSessionOrData,l=t.pidlsdkMock,d=t.propertyElementRef,c=t.onEvent,p=t.onPageRendered,m=t.telemetryOptions,f=t.partner,y=this.compileDisplayOptions(),h=this.compileReturnOptions(),g=this.compileCallbacksIn();return u.default.createElement(ca.Provider,{value:{styleProvider:e}},u.default.createElement(Ol,{busyBlockElement:n,displayOptions:y,env:i,returnOptions:h,userContext:{authToken:r,userId:Oo.UserId,additionalHeaders:a},paymentSessionOrData:s,onEvent:c,partner:f,elementFactory:o,pidlsdkMock:l,callbacksIn:g,telemetryOptions:m,propertyElementRef:d,onPageRendered:p,ref:this.baseComponentRef}))},r}(u.default.Component);t.AllowedViews=void 0,function(e){e[e.SelectPaymentInstrument=0]="SelectPaymentInstrument",e[e.SelectPaymentMethod=1]="SelectPaymentMethod",e[e.AddPaymentInstrument=2]="AddPaymentInstrument",e[e.EditPaymentInstrument=3]="EditPaymentInstrument"}(t.AllowedViews||(t.AllowedViews={})),t.ManagePaymentInstrumentMode=void 0,(xl=t.ManagePaymentInstrumentMode||(t.ManagePaymentInstrumentMode={}))[xl.Select=0]="Select";var Nl,Bl,Vl=function(e){function r(r){var n,i=this;return(i=e.call(this,r)||this).SelectPaymentInstrumentRef=u.default.createRef(),i.SelectPaymentMethodRef=u.default.createRef(),i.AddPaymentInstrumentRef=u.default.createRef(),i.EditPaymentInstrumentRef=u.default.createRef(),i.setCurrentView=function(){var e=i.props,r=e.pidlPayload,n=e.allowedPaymentMethods;return r&&Rn.isArray(n)&&0===n.length?t.AllowedViews.SelectPaymentMethod:t.AllowedViews.SelectPaymentInstrument},i.isCreditCardExpired=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return xn.getFunctionExecutionResult({functionName:Eo.isCreditCardExpired},{contextData:e})},i.isGiftCard=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return xn.getFunctionExecutionResult({functionName:Eo.isEwalletStoredValue},{contextData:e})},i.onSelectPIEvent=function(e,r){var n,o,a=i.props,s=a.onEvent,l=a.paymentInstrumentSelectedHandler,d=a.includePidl,u=a.pidlPayload;return l&&e===z.resourceSelected&&i.state.currentView===t.AllowedViews.SelectPaymentInstrument?l(null===(o=null===(n=i.SelectPaymentInstrumentRef)||void 0===n?void 0:n.current)||void 0===o?void 0:o.getSelectedResource()):((d||u)&&e===z.noSelectionOptionsFound&&i.state.currentView===t.AllowedViews.SelectPaymentInstrument&&i.setState({currentView:t.AllowedViews.SelectPaymentMethod}),s?s(e,r):void 0)},i.onSelectPISuccess=function(e){var r,n,o,a=e.instance,s=i.props,l=s.onSuccess,d=s.onFailure,u=s.redeemGiftCardHandler;if(e.resourceActionContext)switch(e.resourceActionContext.action){case"selectResourceType":i.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"addResource":i.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument});break;case"editPaymentInstrument":i.setState({paymentFamily:e.resourceActionContext.resource.paymentMethod.paymentMethodFamily,paymentType:e.resourceActionContext.resource.paymentMethod.paymentMethodType,paymentInstrumentId:e.resourceActionContext.resource.id,currentView:t.AllowedViews.EditPaymentInstrument});break;case"updateResource":Rn.isString(a)||i.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:a.paymentMethod.paymentMethodFamily,paymentType:a.paymentMethod.paymentMethodType,paymentInstrumentId:a.id});break;default:l(a)}else if(e.action&&"success"!==Rn.toLowerCase(e.action))switch(e.action){case"selectResourceType":i.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"updateResource":Rn.isString(a)||i.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:a.paymentMethod.paymentMethodFamily,paymentType:a.paymentMethod.paymentMethodType,paymentInstrumentId:a.id})}else{var c=Co.RedeemGiftCardLink,p=Co.ManagePaymentInstrument,m=Co.redeemGiftCardHandlerName;if("string"===typeof a){if(a===Co.NewPaymentMethodLink&&i.setState({currentView:t.AllowedViews.SelectPaymentMethod}),a===c)if(u)u();else{var f=null===(n=null===(r=i.SelectPaymentInstrumentRef)||void 0===r?void 0:r.current)||void 0===n?void 0:n.getRef();null===(o=null===f||void 0===f?void 0:f.current)||void 0===o||o.implementationMissing(p,m),d({name:q.missingImplementationError,message:"Implentation of ".concat(null!==m&&void 0!==m?m:"undefined"," missing in ").concat(p),code:"",type:q.missingImplementationError,debugMessage:""})}}else i.isCreditCardExpired(a)?i.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:a.paymentMethod.paymentMethodFamily,paymentType:a.paymentMethod.paymentMethodType,paymentInstrumentId:a.id}):l(a)}},i.onSelectPaymentMethodSuccess=function(e){i.isGiftCard({paymentMethod:{paymentMethodFamily:e.paymentMethodFamily,paymentMethodType:e.paymentMethodType}})?i.onSelectPISuccess({operationType:ct.select,instance:Co.RedeemGiftCardLink}):"windowssettings"===Rn.toLowerCase(i.props.partner)&&"credit_card"!==Rn.toLowerCase(e.paymentMethodFamily)?(0,i.props.onSuccess)(e):i.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument})},i.onAddPISuccess=function(e){try{var r=e.response;r.piModified=!0,(0,i.props.onSuccess)(r)}catch(n){i.setState({currentView:t.AllowedViews.SelectPaymentInstrument})}},i.onEditPISuccess=function(e){i.setState({currentView:t.AllowedViews.SelectPaymentInstrument});var r=i.props.onUpdateSuccess;if(r)try{var n=e.response;n.piModified=!0,r(n)}catch(o){}},i.cancelSelectPM=function(){i.pmGroupPageId=void 0,i.setState({currentView:t.AllowedViews.SelectPaymentInstrument,pmGroupPageId:i.pmGroupPageId})},i.cancelAddPI=function(){var e=i.props.goToSelectPIOnAddCancel;i.pmGroupPageId=i.state.paymentFamily;var r=e?t.AllowedViews.SelectPaymentInstrument:t.AllowedViews.SelectPaymentMethod;i.setState({currentView:r,pmGroupPageId:i.pmGroupPageId})},i.cancelEditPI=function(){i.setState({currentView:t.AllowedViews.SelectPaymentInstrument})},i.moveNextPage=function(){var e,r,n,o,a,s,l,d,u,c,p,m;switch(i.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(n=null===(r=null===(e=i.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getRef().current)||void 0===n||n.moveNextPage();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(o=i.SelectPaymentMethodRef)||void 0===o?void 0:o.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.moveNextPage();break;case t.AllowedViews.AddPaymentInstrument:null===(u=null===(d=null===(l=i.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===d?void 0:d.getRef().current)||void 0===u||u.moveNextPage();break;case t.AllowedViews.EditPaymentInstrument:null===(m=null===(p=null===(c=i.EditPaymentInstrumentRef)||void 0===c?void 0:c.current)||void 0===p?void 0:p.getRef().current)||void 0===m||m.moveNextPage()}},i.movePrevPage=function(){var e,r,n,o,a,s,l,d,u,c,p,m;switch(i.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(n=null===(r=null===(e=i.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getRef().current)||void 0===n||n.movePrevPage();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(o=i.SelectPaymentMethodRef)||void 0===o?void 0:o.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.movePrevPage();break;case t.AllowedViews.AddPaymentInstrument:null===(u=null===(d=null===(l=i.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===d?void 0:d.getRef().current)||void 0===u||u.movePrevPage();break;case t.AllowedViews.EditPaymentInstrument:null===(m=null===(p=null===(c=i.EditPaymentInstrumentRef)||void 0===c?void 0:c.current)||void 0===p?void 0:p.getRef().current)||void 0===m||m.movePrevPage()}},i.cancel=function(){var e,r,n,o,a,s,l,d,u,c,p,m;switch(i.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(n=null===(r=null===(e=i.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getRef().current)||void 0===n||n.cancel();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(o=i.SelectPaymentMethodRef)||void 0===o?void 0:o.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.cancel();break;case t.AllowedViews.AddPaymentInstrument:null===(u=null===(d=null===(l=i.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===d?void 0:d.getRef().current)||void 0===u||u.cancel();break;case t.AllowedViews.EditPaymentInstrument:null===(m=null===(p=null===(c=i.EditPaymentInstrumentRef)||void 0===c?void 0:c.current)||void 0===p?void 0:p.getRef().current)||void 0===m||m.cancel()}},i.cancelSelectPaymentInstrument=function(){var e,r,n;i.state.currentView===t.AllowedViews.SelectPaymentInstrument&&(null===(n=null===(r=null===(e=i.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getRef().current)||void 0===n||n.cancel())},i.cancelOrMovePrevSelectPaymentMethod=function(){var e,r,n;i.state.currentView===t.AllowedViews.SelectPaymentMethod&&(null===(n=null===(r=null===(e=i.SelectPaymentMethodRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getRef().current)||void 0===n||n.movePrevPage())},i.cancelAddPaymentInstrument=function(){var e,r,n;i.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null===(n=null===(r=null===(e=i.AddPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getRef().current)||void 0===n||n.cancel())},i.cancelEditPaymentInstrument=function(){var e,r,n;i.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null===(n=null===(r=null===(e=i.EditPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getRef().current)||void 0===n||n.cancel())},i.submitAddPaymentInstrument=function(){var e,r,n;i.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null===(n=null===(r=null===(e=i.AddPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getRef().current)||void 0===n||n.moveNextPage())},i.submitEditPaymentInstrument=function(){var e,r,n;i.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null===(n=null===(r=null===(e=i.EditPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getRef().current)||void 0===n||n.moveNextPage())},i.getCurrentView=function(){return i.state.currentView},i.getSelectedResource=function(){var e,r;if(i.state.currentView===t.AllowedViews.SelectPaymentInstrument)return null===(r=null===(e=i.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===r?void 0:r.getSelectedResource()},i.state={currentView:i.setCurrentView(),paymentFamily:"",paymentType:"",paymentInstrumentId:"",allowedPaymentMethods:i.props.allowedPaymentMethods,selectPMAllowedPaymentMethods:(null===(n=i.props.selectPMAllowedPaymentMethods)||void 0===n?void 0:n.length)>0?i.props.selectPMAllowedPaymentMethods:i.props.allowedPaymentMethods},i.pmGroupPageId=void 0,i}return ro(r,e),r.prototype.componentDidMount=function(){this.props.currentViewChangeHandler&&this.props.currentViewChangeHandler(t.AllowedViews.SelectPaymentInstrument)},r.prototype.componentDidUpdate=function(e,t,r){this.props.currentViewChangeHandler&&this.state.currentView!==t.currentView&&this.props.currentViewChangeHandler(this.state.currentView)},r.prototype.render=function(){var e=this.props,r=e.authToken,n=e.env,i=e.parameters,o=e.busyBlockElement,a=e.baseStyleOverrides,s=e.scenarioStyleOverrides,l=e.baseFocusStyleOverrides,d=e.scenarioFocusStyleOverrides,c=e.telemetryLogger,p=e.telemetryOptions,m=e.language,f=e.partner,y=e.elementFactory,h=e.onFailure,g=e.onCancel,v=e.busyBlockShowHideHandler,P=e.redirectionSuccessUrl,b=e.redirectionFailureUrl,E=e.includePidl,I=e.pidlPayload,S=e.actionContext,C=e.pidlsdkMock,D=e.propertyElementRef,k=e.onPageRendered,w=e.onEvent,x=e.completePrerequisites,T=e.viewTermsHandler,R=e.defaultPaymentMethod,F=e.sessionId,A=e.orderId,H=e.merchantId,O=e.currency,M=e.filters,N=e.headers,B=e.walletProvider,V=e.showSubmitBlock,L=void 0===V||V,U=e.displayOptions,j=this.state,_=j.currentView,z=j.paymentFamily,G=j.paymentType,K=j.paymentInstrumentId,W=j.allowedPaymentMethods,q=j.selectPMAllowedPaymentMethods,J=this.props,Q=J.country,Z=J.market;return Q=Q||Z,u.default.createElement(u.default.Fragment,null,_===t.AllowedViews.SelectPaymentInstrument&&u.default.createElement(vl,{baseStyleOverrides:a,scenarioStyleOverrides:s,baseFocusStyleOverrides:l,scenarioFocusStyleOverrides:d,elementFactory:y,authToken:r,env:n,onSuccess:this.onSelectPISuccess,onFailure:h,onCancel:g,busyBlockShowHideHandler:v,busyBlockElement:o,country:Q,language:m,partner:f,parameters:i,pidlsdkMock:C,telemetryLogger:c,telemetryOptions:p,propertyElementRef:D,onPageRendered:k,onEvent:this.onSelectPIEvent,allowedPaymentMethods:W,filters:M,sessionId:F,orderId:A,merchantId:H,currency:O,headers:N,includePidl:E,pidlPayload:I,actionContext:S,showSubmitBlock:L,ref:this.SelectPaymentInstrumentRef,walletProvider:B,displayOptions:U}),_===t.AllowedViews.SelectPaymentMethod&&u.default.createElement(bl,{baseStyleOverrides:a,scenarioStyleOverrides:s,baseFocusStyleOverrides:l,scenarioFocusStyleOverrides:d,elementFactory:y,authToken:r,env:n,onSuccess:this.onSelectPaymentMethodSuccess,onFailure:h,onCancel:this.cancelSelectPM,busyBlockShowHideHandler:v,busyBlockElement:o,country:Q,language:m,partner:f,parameters:i,pidlsdkMock:C,telemetryLogger:c,telemetryOptions:p,propertyElementRef:D,onPageRendered:k,onEvent:w,defaultPaymentMethod:R,allowedPaymentMethods:q,filters:M,sessionId:F,orderId:A,merchantId:H,currency:O,headers:N,pmGroupPageId:this.pmGroupPageId,showSubmitBlock:L,ref:this.SelectPaymentMethodRef,displayOptions:U}),_===t.AllowedViews.AddPaymentInstrument&&u.default.createElement(js,{baseStyleOverrides:a,scenarioStyleOverrides:s,baseFocusStyleOverrides:l,scenarioFocusStyleOverrides:d,elementFactory:y,authToken:r,env:n,onSuccess:this.onAddPISuccess,onFailure:h,onCancel:this.cancelAddPI,busyBlockShowHideHandler:v,busyBlockElement:o,country:Q,language:m,partner:f,paymentFamily:z,paymentType:G,completePrerequisites:x,parameters:i,redirectionSuccessUrl:P,redirectionFailureUrl:b,pidlsdkMock:C,telemetryLogger:c,telemetryOptions:p,propertyElementRef:D,onPageRendered:k,onEvent:w,viewTermsHandler:T,showSubmitBlock:L,headers:"windowssettings"===Rn.toLowerCase(this.props.partner)?no(no({},N),{"x-ms-flight":"PXUsePartnerSettingsService"}):N,ref:this.AddPaymentInstrumentRef,displayOptions:U}),_===t.AllowedViews.EditPaymentInstrument&&u.default.createElement(Xs,{baseStyleOverrides:a,scenarioStyleOverrides:s,baseFocusStyleOverrides:l,scenarioFocusStyleOverrides:d,elementFactory:y,authToken:r,env:n,onSuccess:this.onEditPISuccess,onFailure:h,onCancel:this.cancelEditPI,busyBlockShowHideHandler:v,busyBlockElement:o,country:Q,language:m,partner:f,paymentInstrumentId:K,paymentFamily:z,paymentType:G,parameters:i,pidlsdkMock:C,telemetryLogger:c,telemetryOptions:p,propertyElementRef:D,onPageRendered:k,onEvent:w,viewTermsHandler:T,showSubmitBlock:L,headers:"windowssettings"===Rn.toLowerCase(this.props.partner)?no(no({},N),{"x-ms-flight":"PXUsePartnerSettingsService"}):N,ref:this.EditPaymentInstrumentRef,displayOptions:U}))},r}(u.default.Component);!function(e){e[e.ListAddress=0]="ListAddress",e[e.AddNewAddress=1]="AddNewAddress",e[e.EditAddress=2]="EditAddress"}(Nl||(Nl={})),t.ManageAddressMode=void 0,(Bl=t.ManageAddressMode||(t.ManageAddressMode={}))[Bl.Select=0]="Select",Bl[Bl.Edit=1]="Edit";var Ll,Ul=function(e){function r(r){var n=e.call(this,r)||this;return n.onSuccessWrapper=function(e){"newAddressLink"===e.id&&n.props.onAddNewAddress?n.props.onAddNewAddress(e):"newAddressLink"===e.id?n.setState({currentView:Nl.AddNewAddress}):n.shouldOpenEditView(e)?n.setState({currentView:Nl.EditAddress,addressId:e.instance.id}):n.props.onSuccess(e)},n.shouldOpenEditView=function(e){var r,i,o=n.props,a=o.mode,s=o.scenario;return a===t.ManageAddressMode.Edit||a===t.ManageAddressMode.Select&&!((null===(r=null===e||void 0===e?void 0:e.instance)||void 0===r?void 0:r.first_name)&&(null===(i=null===e||void 0===e?void 0:e.instance)||void 0===i?void 0:i.last_name))&&s===t.AddressScenario.shipping},n.returnToListView=function(){n.setState({currentView:Nl.ListAddress})},n.state={currentView:Nl.ListAddress},n}return ro(r,e),r.prototype.componentDidUpdate=function(e){var t=this.props,r=t.mode,n=t.scenario,i=t.country,o=t.language,a=t.partner,s=t.addressType;e.mode===r&&e.scenario===n&&e.country===i&&e.language===o&&e.partner===a&&e.addressType===s||this.setState({currentView:Nl.ListAddress})},r.prototype.render=function(){var e=this.props,t=e.baseStyleOverrides,r=e.scenarioStyleOverrides,n=e.baseFocusStyleOverrides,i=e.scenarioFocusStyleOverrides,o=e.telemetryLogger,a=e.telemetryOptions,s=e.authToken,l=e.env,d=e.addressType,c=e.showSubmitBlock,p=void 0===c||c,m=e.busyBlockElement,f=e.country,y=e.language,h=e.partner,g=e.scenario,v=e.elementFactory,P=e.onFailure,b=e.onCancel,E=e.busyBlockShowHideHandler,I=e.pidlsdkMock,S=e.propertyElementRef,C=e.onPageRendered,D=e.onEvent,k=e.viewTermsHandler,w=e.headers,x=e.displayOptions,T=this.state,R=T.addressId,F=T.currentView;return u.default.createElement(u.default.Fragment,null,F===Nl.ListAddress&&u.default.createElement(ll,{authToken:s,elementFactory:v,env:l,scenario:g,addressType:d,country:f,language:y,partner:h,onSuccess:this.onSuccessWrapper,onFailure:P,onCancel:b,baseStyleOverrides:t,scenarioStyleOverrides:r,baseFocusStyleOverrides:n,scenarioFocusStyleOverrides:i,busyBlockElement:m,busyBlockShowHideHandler:E,pidlsdkMock:I,telemetryLogger:o,telemetryOptions:a,propertyElementRef:S,onPageRendered:C,onEvent:D,headers:w,showSubmitBlock:p,displayOptions:x}),F===Nl.AddNewAddress&&u.default.createElement(Ls,{authToken:s,elementFactory:v,env:l,country:f,language:y,partner:h,scenario:g,addressType:d,onSuccess:this.returnToListView,onFailure:P,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:r,baseFocusStyleOverrides:n,scenarioFocusStyleOverrides:i,busyBlockElement:m,busyBlockShowHideHandler:E,pidlsdkMock:I,telemetryLogger:o,telemetryOptions:a,propertyElementRef:S,onPageRendered:C,onEvent:D,viewTermsHandler:k,headers:w,showSubmitBlock:p,displayOptions:x}),F===Nl.EditAddress&&u.default.createElement(Zs,{authToken:s,addressId:R,elementFactory:v,env:l,country:f,scenario:g,language:y,partner:h,onSuccess:this.returnToListView,onFailure:P,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:r,baseFocusStyleOverrides:n,scenarioFocusStyleOverrides:i,busyBlockShowHideHandler:E,onPageRendered:C,onEvent:D,viewTermsHandler:k,telemetryLogger:o,telemetryOptions:a,headers:w,showSubmitBlock:p,displayOptions:x}))},r}(u.default.Component),jl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.validateAddress(r.props.pidlDocInfo)}))||this;return r}return ro(t,e),t}(Bs);t.VerifyAddressPages=void 0,(Ll=t.VerifyAddressPages||(t.VerifyAddressPages={}))[Ll.verifyAddressPage=0]="verifyAddressPage",Ll[Ll.editAddressPage=1]="editAddressPage",Ll[Ll.noAddressSuggestionsPage=2]="noAddressSuggestionsPage";var _l=function(e){function r(r){var n=e.call(this,r)||this;n.VerifyAddressRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.onVerifyAddressEvent=function(e,r){var i=n.props,o=i.onEvent,a=i.currentPageChangeHandler;if(e==z.pageRefreshed)switch(r.pageId){case"addressSuggestionPage1":a&&a(t.VerifyAddressPages.verifyAddressPage);break;case"addressSuggestionPage2":a&&a(t.VerifyAddressPages.editAddressPage);break;case"noAddressSuggestionsPage":a&&a(t.VerifyAddressPages.noAddressSuggestionsPage)}if(o)return o(e,r)},n.moveNextPage=function(){var e,t;null===(t=null===(e=n.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.moveNextPage()},n.movePrevPage=function(){var e,t;null===(t=null===(e=n.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.movePrevPage()},n.cancel=function(){var e,t;null===(t=null===(e=n.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.cancel()},n.submitPage=function(){var e,t;null===(t=null===(e=n.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.submitPage()},n.getRef=function(){return n.VerifyAddressRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.VerifyAddress,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.compileParameters=function(e,t,r,n,i,o){var a=no({operation:bo.Operation,type:i},{country:e,language:t,partner:r,addressId:n});return o&&(a=no(no({},a),o)),a},r.prototype.compileReturnOptions=function(e,t,r){return{callbacks:{success:e,failure:t,gohome:r}}},r.prototype.render=function(){var e=this.props,t=e.env,r=e.parameters,n=e.country,i=e.language,o=e.partner,a=e.addressId,s=e.addressType,l=e.elementFactory,d=e.busyBlockElement,c=e.showSubmitBlock,p=void 0===c||c,m=e.busyBlockShowHideHandler,f=(e.onEvent,e.callbacksIn,e.onSuccess),y=e.onFailure,h=e.onCancel,g=e.headers,v=e.telemetryLogger,P=e.propertyElementRef,b=e.onPageRendered,E=e.pidlsdkMock,I=e.authToken,S=e.displayOptions,C=this.state.styleProvider,D=this.compileParameters(n,i,o,a,s,r),k=this.compileReturnOptions(f,y,h);return u.default.createElement(ca.Provider,{value:{styleProvider:C}},u.default.createElement(jl,{busyBlockElement:d,displayOptions:no(no({},S),{containerId:bo.ContainerId,busyBlockShowHideHandler:m,showSubmitBlock:p}),pidlDocInfo:{resourceType:bo.ResourceType,parameters:D},env:t,returnOptions:k,onEvent:this.onVerifyAddressEvent,userContext:{authToken:I,userId:bo.UserId,additionalHeaders:g},elementFactory:l,pidlsdkMock:E,callbacksIn:{telemetryLogger:v},propertyElementRef:P,onPageRendered:b,ref:this.VerifyAddressRef}))},r}(u.default.Component),zl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.redeemMSRewards(r.props.pidlDocInfo)}))||this;return r}return ro(t,e),t}(Bs),Gl=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.FailureHandler=function(e){n.props.onFailure(e.error)},n.compileRewardsContextData=function(e,t){return{orderAmount:e,currency:t}},n.compileParameters=function(e,t,r,i,o,a){var s=n.compileRewardsContextData(o,a),l={country:e,language:t,partner:r,type:n.getResourceType(),rewardsContextData:s};return i&&(l=no(no({},l),i)),l},n.compileReturnOptions=function(e,t,r){return{callbacks:{success:e,failure:n.FailureHandler,gohome:r}}},n.compileCallbacks=function(){var e=n.props,t=e.telemetryLogger,r=e.elementFactory,i=e.callbacksIn,o=no({},i);return t&&(o.telemetryLogger=t),(null===r||void 0===r?void 0:r.encryptionHandler)&&(o.encryptionHandler=r.encryptionHandler()),o},n.getResourceType=function(){return To.ResourceType},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.RedeemMSRewards,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.parameters,i=e.busyBlockElement,o=e.country,a=e.language,s=e.partner,l=e.elementFactory,d=e.onSuccess,c=e.onFailure,p=e.onCancel,m=e.onEvent,f=e.showSubmitBlock,y=void 0===f||f,h=e.busyBlockShowHideHandler,g=e.pidlsdkMock,v=(e.telemetryLogger,e.telemetryOptions),P=e.propertyElementRef,b=e.onPageRendered,E=e.headers,I=e.orderAmount,S=e.currency,C=e.displayOptions,D=this.state.styleProvider,k=this.compileParameters(o,a,s,n,I,S),w=this.compileReturnOptions(d,c,p),x=this.compileCallbacks();return u.default.createElement(ca.Provider,{value:{styleProvider:D}},u.default.createElement(zl,{busyBlockElement:i,displayOptions:no(no({},C),{containerId:To.ContainerId,busyBlockShowHideHandler:h,showSubmitBlock:y}),pidlDocInfo:{resourceType:this.getResourceType(),parameters:k},env:r,returnOptions:w,userContext:{authToken:t,userId:To.UserId,additionalHeaders:E},onEvent:m,elementFactory:l,pidlsdkMock:g,callbacksIn:x,telemetryOptions:v,propertyElementRef:P,onPageRendered:b,ref:this.baseComponentRef}))},r}(u.default.Component),Kl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.searchTransactions({pidlDocInfo:r.props.pidlDocInfo,options:r.props.options})}))||this;return r}return ro(t,e),t}(Bs),Wl=function(e){function t(t){return e.call(this,t,(function(e){return e.offerResource({pidlDocInfo:t.pidlDocInfo})}))||this}return ro(t,e),t}(Bs),ql=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileParameters=function(){var e=n.props,t=e.country,r=e.language,i=e.partner,o=e.parameters,a=e.scenario,s={operation:Fo.Operation,country:t,language:r,partner:i,scenario:a};return o&&(s=no(no({},s),o)),s},n.compileReturnOptions=function(e,t,r,n){return{urls:n,callbacks:{success:e,failure:t,gohome:r}}},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.OfferPaymentInstrument,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.busyBlockElement,i=e.elementFactory,o=e.onSuccess,a=e.onFailure,s=e.onCancel,l=e.redirectReturnUrls,d=e.showSubmitBlock,c=void 0===d||d,p=e.busyBlockShowHideHandler,m=e.pidlsdkMock,f=e.telemetryOptions,y=e.propertyElementRef,h=e.onEvent,g=e.onPageRendered,v=e.headers,P=e.useWebView2,b=e.displayOptions,E=e.partner,I=this.state.styleProvider,S=this.compileParameters(),C=this.compileReturnOptions(o,a,s,l);return u.default.createElement(ca.Provider,{value:{styleProvider:I}},u.default.createElement(Wl,{busyBlockElement:n,displayOptions:no(no({},b),{containerId:Fo.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:c,useWebView2:P}),pidlDocInfo:{resourceType:Fo.ResourceType,parameters:S},env:r,returnOptions:C,onEvent:h,userContext:{authToken:t,userId:Fo.UserId,additionalHeaders:v},elementFactory:i,partner:E,pidlsdkMock:m,telemetryOptions:f,propertyElementRef:y,onPageRendered:g,ref:this.baseComponentRef}))},r}(u.default.Component),Jl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.selectMSRewards(r.props.pidlDocInfo)}))||this;return r}return ro(t,e),t}(Bs),Ql=function(e){function r(r){var n=e.call(this,r)||this;n.baseComponentRef=u.default.createRef(),n.onAppThemeChangeHandlerRegistration=void 0,n.onAppThemeChanged=function(e){var r=n.props,i=r.elementFactory,o=r.partner,a=r.baseStyleOverrides,s=r.scenarioStyleOverrides,l=r.baseFocusStyleOverrides,d=r.scenarioFocusStyleOverrides,u=r.baseDisabledStyleOverrides,c=r.scenarioDisabledStyleOverrides,p=r.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,o,a,s,l,d,null,u,c,p);n.setState({styleProvider:m})},n.compileRewardsContextData=function(e,t){return{orderAmount:e,currency:t}},n.getResourceType=function(){return Io.ResourceType},n.compileParameters=function(){var e=n.props,t=e.country,r=e.currency,i=e.language,o=e.orderAmount,a=e.partner,s=e.parameters,l=e.scenario,d=n.compileRewardsContextData(o,r),u={operation:Fo.Operation,country:t,language:i,partner:a,rewardsContextData:d,scenario:l,type:n.getResourceType()};return s&&(u=no(no({},u),s)),u},n.compileReturnOptions=function(e,t,r,n){return{urls:n,callbacks:{success:e,failure:t,gohome:r}}},n.onEventInternal=function(e,t){var r=n.props,i=r.onEvent,o=r.onMSRewardsSelectionChange;if(o&&(e===z.pageRendered||e===z.pageRefreshed)&&n.baseComponentRef&&n.baseComponentRef.current&&n.baseComponentRef.current.getPidlPayload&&n.baseComponentRef.current.getPidlPayload().then((function(e){e&&e.payload&&e.payload.data&&o(e.payload.data)})),i)return i(e,t)},n.getRef=function(){return n.baseComponentRef};var i=n.props,o=i.elementFactory,a=i.partner,s=i.baseStyleOverrides,l=i.scenarioStyleOverrides,d=i.baseFocusStyleOverrides,c=i.scenarioFocusStyleOverrides,p=i.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectMSRewards,a,s,l,d,c,null,null,null,p);return n.state={styleProvider:m},n}return ro(r,e),r.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},r.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},r.prototype.render=function(){var e=this.props,t=e.authToken,r=e.env,n=e.busyBlockElement,i=e.elementFactory,o=e.onSuccess,a=e.onFailure,s=e.onCancel,l=e.redirectReturnUrls,d=e.showSubmitBlock,c=void 0===d||d,p=e.busyBlockShowHideHandler,m=e.pidlsdkMock,f=e.telemetryOptions,y=e.propertyElementRef,h=(e.onEvent,e.onPageRendered),g=e.headers,v=e.useWebView2,P=e.displayOptions,b=this.state.styleProvider,E=this.compileParameters(),I=this.compileReturnOptions(o,a,s,l);return u.default.createElement(ca.Provider,{value:{styleProvider:b}},u.default.createElement(Jl,{busyBlockElement:n,displayOptions:no(no({},P),{containerId:Io.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:c,useWebView2:v}),pidlDocInfo:{resourceType:Io.ResourceType,parameters:E},env:r,returnOptions:I,onEvent:this.onEventInternal,userContext:{authToken:t,userId:Io.UserId,additionalHeaders:g},elementFactory:i,pidlsdkMock:m,telemetryOptions:f,propertyElementRef:y,onPageRendered:h,ref:this.baseComponentRef}))},r}(u.default.Component),Zl=function(e){function t(t){var r=e.call(this,t,(function(e){return e.expressCheckout(r.props.pidlDocInfo)}))||this;return r}return ro(t,e),t}(Bs);t.AddAddress=Ls,t.AddAddressConstants=yo,t.AddPaymentInstrument=js,t.AddPaymentInstrumentConstants=ko,t.AddPaymentInstrumentInternal=Us,t.AddResource=Gs,t.ApplyPaymentInstrument=zs,t.ApplyPaymentInstrumentConstants=Ro,t.ApplyPaymentInstrumentInternal=_s,t.ApplyResource=Ks,t.Audio=Wa,t.AudioInner=Ka,t.BodyBlock=function(e){var t=e.children;return d.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-pagecontent-block",id:"pidlddc-div-pagebodycontents"},t)},t.Button=wa,t.ButtonInner=ka,t.ButtonList=Fa,t.ButtonListElement=Ta,t.ButtonListElementInner=xa,t.ButtonListInner=Ra,t.Captcha=Ga,t.CaptchaInner=za,t.CheckBox=Ha,t.CheckBoxInner=Aa,t.ConfirmPayment=qs,t.ConfirmPaymentConstants=Po,t.ConfirmPaymentInternal=Ws,t.CreatePaymentSession=Js,t.DefaultExpressCheckoutButtonElement=Xa,t.DefaultIFrameElement=va,t.DeletePaymentInstrument=Hl,t.DeletePaymentInstrumentConstants=wo,t.DeleteResource=Al,t.Dropdown=La,t.EditAddress=Zs,t.EditAddressConstants=go,t.EditPaymentInstrument=Xs,t.EditPaymentInstrumentConstants=xo,t.Error=ha,t.ExpressCheckout=rl,t.ExpressCheckoutButtonElement=es,t.ExpressCheckoutButtonElementInner=$a,t.ExpressCheckoutConstants=Mo,t.ExpressCheckoutInternal=tl,t.FilePicker=Da,t.FundStoredValue=$s,t.Group=ja,t.GroupError=Ua,t.GroupLabel=Ma,t.GroupLabelInner=Oa,t.HandleCheckout=Fl,t.HandleIndia3DSChallenge=Ml,t.HandleIndia3DSChallengeConstants=Oo,t.HandleIndia3DSChallengeInternal=Ol,t.HandlePaymentChallenge=el,t.HandlePurchaseRiskChallenge=nl,t.HandleRiskChallenge=al,t.HandleRiskChallengeConstants=vo,t.HandleRiskChallengeInternal=ol,t.Heading=ns,t.HeadingInner=rs,t.HelpDialog=Ca,t.HelpDialogInner=Sa,t.Hyperlink=qa,t.IFrameElement=ba,t.IFrameElementInner=Pa,t.Image=Ja,t.ListAddress=ll,t.ListAddressConstants=Do,t.LogoElement=Qa,t.ManageAddress=Ul,t.ManagePaymentInstrument=Vl,t.ManagePaymentInstrumentConstants=Co,t.Modal=Ba,t.ModalInner=Na,t.OfferPaymentInstrument=ql,t.OfferPaymentInstrumentConstants=Fo,t.OfferPaymentInstrumentInternal=Wl,t.PageAlert=ga,t.PageErrorBlock=function(e){var t=e.children;return d.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-error-block",id:"pidlddc-div-pageerrorblock","aria-live":"polite"},t)},t.PaymentInstrumentDetails=ul,t.PaymentInstrumentDetailsConstants=Ho,t.PaymentInstrumentDetailsInternal=dl,t.PidlComponent=Ns,t.PidlDocBuilder=ms,t.PidlInstance=cs,t.PidlPropertyBuilder=ys,t.PrefillCheckBox=gs,t.PrefillCheckBoxInner=hs,t.ProfilePrerequisite=pl,t.ProfilePrerequisiteConstants=Ao,t.PropertyLabel=Ia,t.PropertyLabelInner=Ea,t.QuickPayment=Zl,t.Radio=ts,t.RedeemMSRewards=Gl,t.RedeemMSRewardsConstants=To,t.RedeemMSRewardsInternal=zl,t.ReplaceResource=ml,t.ResourceHelpersConstants=Eo,t.RiskChallengeConstants=No,t.SearchResource=fl,t.SearchTransactions=Kl,t.SelectMSRewards=Ql,t.SelectMSRewardsConstants=Io,t.SelectPaymentInstrument=vl,t.SelectPaymentInstrumentConstants=So,t.SelectPaymentMethod=bl,t.SelectPaymentMethodConstants=ho,t.SelectPaymentMethodInternal=Pl,t.SelectResource=El,t.SelectResourceType=Il,t.SelectSingleResource=Sl,t.ShowResource=Cl,t.StyleProviderContext=ca,t.SubHeading=os,t.SubHeadingInner=is,t.TestHookRenderPidl=Dl,t.Text=ss,t.TextBox=ds,t.TextGroup=_a,t.TextInner=as,t.UpdateResource=kl,t.ValidateAddress=Tl,t.ValidateAddressConstants=bo,t.ValidateResource=Rl,t.VerifyAddress=_l,t.defaultEnvironment=fo,t.getClassNamesFromStyleHints=function(e){var t=[];if(e)for(var r=0,n=e;r<n.length;r++){var i=n[r];t.push(R.taggedClass+i)}return t},t.getHtmlAttributesFromTags=ya,t.getPidlReactCustomProps=ma,t.getTagClassNames=pa,t.pidl=eo,t.pidlReactClassPrefix=uo,t.shouldHideInlineError=fa,t.startsWith=co},47802:function(e){var t,r,n=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"===typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var s,l=[],d=!1,u=-1;function c(){d&&s&&(d=!1,s.length?l=s.concat(l):u=-1,l.length&&p())}function p(){if(!d){var e=a(c);d=!0;for(var t=l.length;t;){for(s=l,l=[];++u<t;)s&&s[u].run();u=-1,t=l.length}s=null,d=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function f(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new m(e,t)),1!==l.length||d||a(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=f,n.addListener=f,n.once=f,n.off=f,n.removeListener=f,n.removeAllListeners=f,n.emit=f,n.prependListener=f,n.prependOnceListener=f,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},67281:function(e,t,r){var n=r(51954).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},r=Object.prototype,o=r.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",l=a.asyncIterator||"@@asyncIterator",d=a.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(T){u=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var i=t&&t.prototype instanceof f?t:f,o=Object.create(i.prototype),a=new k(n||[]);return o._invoke=function(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return x()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var s=S(a,r);if(s){if(s===m)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var l=p(e,t,r);if("normal"===l.type){if(n=r.done?"completed":"suspendedYield",l.arg===m)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(n="completed",r.method="throw",r.arg=l.arg)}}}(e,r,a),o}function p(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(T){return{type:"throw",arg:T}}}t.wrap=c;var m={};function f(){}function y(){}function h(){}var g={};u(g,s,(function(){return this}));var v=Object.getPrototypeOf,P=v&&v(v(w([])));P&&P!==r&&o.call(P,s)&&(g=P);var b=h.prototype=f.prototype=Object.create(g);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function I(e,t){function r(i,a,s,l){var d=p(e[i],e,a);if("throw"!==d.type){var u=d.arg,c=u.value;return c&&"object"==n(c)&&o.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,s,l)}),(function(e){r("throw",e,s,l)})):t.resolve(c).then((function(e){u.value=e,s(u)}),(function(e){return r("throw",e,s,l)}))}l(d.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function S(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var n=p(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,m;var i=n.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,m):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function C(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function w(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 r=-1,n=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:x}}function x(){return{value:void 0,done:!0}}return y.prototype=h,u(b,"constructor",h),u(h,"constructor",y),y.displayName=u(h,d,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,u(e,d,"GeneratorFunction")),e.prototype=Object.create(b),e},t.awrap=function(e){return{__await:e}},E(I.prototype),u(I.prototype,l,(function(){return this})),t.AsyncIterator=I,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new I(c(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(b),u(b,d,"Generator"),u(b,s,(function(){return this})),u(b,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},t.values=w,k.prototype={constructor:k,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(D),!e)for(var t in this)"t"===t.charAt(0)&&o.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 r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;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 r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),D(r),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;D(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:w(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),m}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},51954:function(e){function t(r){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(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},42732:function(e,t,r){var n=r(67281)();e.exports=n;try{regeneratorRuntime=n}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}}]);
//# sourceMappingURL=2253.dc7bc6da.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,2486,4867,5343,7248],{84867:function(t,n,e){e.r(n),e.d(n,{__assign:function(){return u},__asyncDelegator:function(){return O},__asyncGenerator:function(){return m},__asyncValues:function(){return g},__await:function(){return w},__awaiter:function(){return l},__classPrivateFieldGet:function(){return E},__classPrivateFieldIn:function(){return k},__classPrivateFieldSet:function(){return T},__createBinding:function(){return p},__decorate:function(){return i},__exportStar:function(){return y},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return x},__importStar:function(){return S},__makeTemplateObject:function(){return j},__metadata:function(){return f},__param:function(){return c},__read:function(){return _},__rest:function(){return a},__spread:function(){return b},__spreadArray:function(){return v},__spreadArrays:function(){return d},__values:function(){return h}});var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(t,n)};function o(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var u=function(){return u=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},u.apply(this,arguments)};function a(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function i(t,n,e,r){var o,u=arguments.length,a=u<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(u<3?o(a):u>3?o(n,e,a):o(n,e))||a);return u>3&&a&&Object.defineProperty(n,e,a),a}function c(t,n){return function(e,r){n(e,r,t)}}function f(t,n){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,n)}function l(t,n,e,r){return new(e||(e=Promise))((function(o,u){function a(t){try{c(r.next(t))}catch(n){u(n)}}function i(t){try{c(r.throw(t))}catch(n){u(n)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,i)}c((r=r.apply(t,n||[])).next())}))}function s(t,n){var e,r,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(t,a)}catch(i){u=[6,i],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var p=Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]};function y(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||p(n,t,e)}function h(t){var n="function"===typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,n){var e="function"===typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,u=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=u.next()).done;)a.push(r.value)}catch(i){o={error:i}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(o)throw o.error}}return a}function b(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(_(arguments[n]));return t}function d(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var u=arguments[n],a=0,i=u.length;a<i;a++,o++)r[o]=u[a];return r}function v(t,n,e){if(e||2===arguments.length)for(var r,o=0,u=n.length;o<u;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function m(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),u=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){u.push([t,n,e,r])>1||i(t,n)}))})}function i(t,n){try{(e=o[t](n)).value instanceof w?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(r){l(u[0][3],r)}var e}function c(t){i("next",t)}function f(t){i("throw",t)}function l(t,n){t(n),u.shift(),u.length&&i(u[0][0],u[0][1])}}function O(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:w(t[r](n)),done:"return"===r}:o?o(n):n}:o}}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=h(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function j(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}var P=Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n};function S(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&p(n,t,e);return P(n,t),n}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,n,e,r){if("a"===e&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof n?t!==n||!r:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(t):r?r.value:n.get(t)}function T(t,n,e,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 n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,e):o?o.value=e:n.set(t,e),e}function k(t,n){if(null===n||"object"!==typeof n&&"function"!==typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?n===t:t.has(n)}}}]);
//# sourceMappingURL=2486.9b0986a2.chunk.js.map
/*! For license information please see 2771.a618162e.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[2771],{84502:function(t,n,e){"use strict";var r=e(55791),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},c={};function u(t){return r.isMemo(t)?a:c[t.$$typeof]||o}c[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},c[r.Memo]=a;var s=Object.defineProperty,f=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,h=Object.getPrototypeOf,d=Object.prototype;t.exports=function t(n,e,r){if("string"!==typeof e){if(d){var o=h(e);o&&o!==d&&t(n,o,r)}var a=f(e);l&&(a=a.concat(l(e)));for(var c=u(n),v=u(e),y=0;y<a.length;++y){var m=a[y];if(!i[m]&&(!r||!r[m])&&(!v||!v[m])&&(!c||!c[m])){var g=p(e,m);try{s(n,m,g)}catch(w){}}}}return n}},90462:function(t){t.exports=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)}},68074:function(t,n,e){"use strict";var r=e(20441);function o(){}function i(){}i.resetWarningCache=o,t.exports=function(){function t(t,n,e,o,i,a){if(a!==r){var c=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 c.name="Invariant Violation",c}}function n(){return t}t.isRequired=t;var e={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:n,element:t,elementType:t,instanceOf:n,node:t,objectOf:n,oneOf:n,oneOfType:n,shape:n,exact:n,checkPropTypes:i,resetWarningCache:o};return e.PropTypes=e,e}},15360:function(t,n,e){t.exports=e(68074)()},20441:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},39963:function(t,n){"use strict";var e="function"===typeof Symbol&&Symbol.for,r=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,y=e?Symbol.for("react.lazy"):60116,m=e?Symbol.for("react.block"):60121,g=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function x(t){if("object"===typeof t&&null!==t){var n=t.$$typeof;switch(n){case r:switch(t=t.type){case f:case l:case i:case c:case a:case h:return t;default:switch(t=t&&t.$$typeof){case s:case p:case y:case v:case u:return t;default:return n}}case o:return n}}}function O(t){return x(t)===l}n.AsyncMode=f,n.ConcurrentMode=l,n.ContextConsumer=s,n.ContextProvider=u,n.Element=r,n.ForwardRef=p,n.Fragment=i,n.Lazy=y,n.Memo=v,n.Portal=o,n.Profiler=c,n.StrictMode=a,n.Suspense=h,n.isAsyncMode=function(t){return O(t)||x(t)===f},n.isConcurrentMode=O,n.isContextConsumer=function(t){return x(t)===s},n.isContextProvider=function(t){return x(t)===u},n.isElement=function(t){return"object"===typeof t&&null!==t&&t.$$typeof===r},n.isForwardRef=function(t){return x(t)===p},n.isFragment=function(t){return x(t)===i},n.isLazy=function(t){return x(t)===y},n.isMemo=function(t){return x(t)===v},n.isPortal=function(t){return x(t)===o},n.isProfiler=function(t){return x(t)===c},n.isStrictMode=function(t){return x(t)===a},n.isSuspense=function(t){return x(t)===h},n.isValidElementType=function(t){return"string"===typeof t||"function"===typeof t||t===i||t===l||t===c||t===a||t===h||t===d||"object"===typeof t&&null!==t&&(t.$$typeof===y||t.$$typeof===v||t.$$typeof===u||t.$$typeof===s||t.$$typeof===p||t.$$typeof===g||t.$$typeof===w||t.$$typeof===b||t.$$typeof===m)},n.typeOf=x},55791:function(t,n,e){"use strict";t.exports=e(39963)},82771:function(t,n,e){"use strict";function r(t,n){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},r(t,n)}function o(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,r(t,n)}e.r(n),e.d(n,{BrowserRouter:function(){return $t},HashRouter:function(){return Lt},Link:function(){return Bt},MemoryRouter:function(){return rt},NavLink:function(){return Wt},Prompt:function(){return it},Redirect:function(){return st},Route:function(){return ht},Router:function(){return et},StaticRouter:function(){return wt},Switch:function(){return bt},generatePath:function(){return ut},matchPath:function(){return pt},useHistory:function(){return Pt},useLocation:function(){return Et},useParams:function(){return Ct},useRouteMatch:function(){return kt},withRouter:function(){return xt}});var i=e(80322),a=e.n(i),c=e(15360),u=e.n(c);function s(){return s=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},s.apply(this,arguments)}function f(t){return"/"===t.charAt(0)}function l(t,n){for(var e=n,r=e+1,o=t.length;r<o;e+=1,r+=1)t[e]=t[r];t.pop()}var p=function(t,n){void 0===n&&(n="");var e,r=t&&t.split("/")||[],o=n&&n.split("/")||[],i=t&&f(t),a=n&&f(n),c=i||a;if(t&&f(t)?o=r:r.length&&(o.pop(),o=o.concat(r)),!o.length)return"/";if(o.length){var u=o[o.length-1];e="."===u||".."===u||""===u}else e=!1;for(var s=0,p=o.length;p>=0;p--){var h=o[p];"."===h?l(o,p):".."===h?(l(o,p),s++):s&&(l(o,p),s--)}if(!c)for(;s--;s)o.unshift("..");!c||""===o[0]||o[0]&&f(o[0])||o.unshift("");var d=o.join("/");return e&&"/"!==d.substr(-1)&&(d+="/"),d};function h(t){return t.valueOf?t.valueOf():Object.prototype.valueOf.call(t)}var d=function t(n,e){if(n===e)return!0;if(null==n||null==e)return!1;if(Array.isArray(n))return Array.isArray(e)&&n.length===e.length&&n.every((function(n,r){return t(n,e[r])}));if("object"===typeof n||"object"===typeof e){var r=h(n),o=h(e);return r!==n||o!==e?t(r,o):Object.keys(Object.assign({},n,e)).every((function(r){return t(n[r],e[r])}))}return!1},v="Invariant failed";var y=function(t,n){if(!t)throw new Error(v)};function m(t){return"/"===t.charAt(0)?t:"/"+t}function g(t){return"/"===t.charAt(0)?t.substr(1):t}function w(t,n){return function(t,n){return 0===t.toLowerCase().indexOf(n.toLowerCase())&&-1!=="/?#".indexOf(t.charAt(n.length))}(t,n)?t.substr(n.length):t}function b(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t}function x(t){var n=t.pathname,e=t.search,r=t.hash,o=n||"/";return e&&"?"!==e&&(o+="?"===e.charAt(0)?e:"?"+e),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function O(t,n,e,r){var o;"string"===typeof t?(o=function(t){var n=t||"/",e="",r="",o=n.indexOf("#");-1!==o&&(r=n.substr(o),n=n.substr(0,o));var i=n.indexOf("?");return-1!==i&&(e=n.substr(i),n=n.substr(0,i)),{pathname:n,search:"?"===e?"":e,hash:"#"===r?"":r}}(t),o.state=n):(void 0===(o=s({},t)).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!==n&&void 0===o.state&&(o.state=n));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 e&&(o.key=e),r?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=p(o.pathname,r.pathname)):o.pathname=r.pathname:o.pathname||(o.pathname="/"),o}function P(){var t=null;var n=[];return{setPrompt:function(n){return t=n,function(){t===n&&(t=null)}},confirmTransitionTo:function(n,e,r,o){if(null!=t){var i="function"===typeof t?t(n,e):t;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(t){var e=!0;function r(){e&&t.apply(void 0,arguments)}return n.push(r),function(){e=!1,n=n.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];n.forEach((function(t){return t.apply(void 0,e)}))}}}var E=!("undefined"===typeof window||!window.document||!window.document.createElement);function C(t,n){n(window.confirm(t))}var k="popstate",R="hashchange";function S(){try{return window.history.state||{}}catch(t){return{}}}function T(t){void 0===t&&(t={}),E||y(!1);var n=window.history,e=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history}(),r=!(-1===window.navigator.userAgent.indexOf("Trident")),o=t,i=o.forceRefresh,a=void 0!==i&&i,c=o.getUserConfirmation,u=void 0===c?C:c,f=o.keyLength,l=void 0===f?6:f,p=t.basename?b(m(t.basename)):"";function h(t){var n=t||{},e=n.key,r=n.state,o=window.location,i=o.pathname+o.search+o.hash;return p&&(i=w(i,p)),O(i,r,e)}function d(){return Math.random().toString(36).substr(2,l)}var v=P();function g(t){s(B,t),B.length=n.length,v.notifyListeners(B.location,B.action)}function T(t){(function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")})(t)||j(h(t.state))}function _(){j(h(S()))}var A=!1;function j(t){if(A)A=!1,g();else{v.confirmTransitionTo(t,"POP",u,(function(n){n?g({action:"POP",location:t}):function(t){var n=B.location,e=L.indexOf(n.key);-1===e&&(e=0);var r=L.indexOf(t.key);-1===r&&(r=0);var o=e-r;o&&(A=!0,U(o))}(t)}))}}var $=h(S()),L=[$.key];function M(t){return p+x(t)}function U(t){n.go(t)}var I=0;function N(t){1===(I+=t)&&1===t?(window.addEventListener(k,T),r&&window.addEventListener(R,_)):0===I&&(window.removeEventListener(k,T),r&&window.removeEventListener(R,_))}var F=!1;var B={length:n.length,action:"POP",location:$,createHref:M,push:function(t,r){var o="PUSH",i=O(t,r,d(),B.location);v.confirmTransitionTo(i,o,u,(function(t){if(t){var r=M(i),c=i.key,u=i.state;if(e)if(n.pushState({key:c,state:u},null,r),a)window.location.href=r;else{var s=L.indexOf(B.location.key),f=L.slice(0,s+1);f.push(i.key),L=f,g({action:o,location:i})}else window.location.href=r}}))},replace:function(t,r){var o="REPLACE",i=O(t,r,d(),B.location);v.confirmTransitionTo(i,o,u,(function(t){if(t){var r=M(i),c=i.key,u=i.state;if(e)if(n.replaceState({key:c,state:u},null,r),a)window.location.replace(r);else{var s=L.indexOf(B.location.key);-1!==s&&(L[s]=i.key),g({action:o,location:i})}else window.location.replace(r)}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var n=v.setPrompt(t);return F||(N(1),F=!0),function(){return F&&(F=!1,N(-1)),n()}},listen:function(t){var n=v.appendListener(t);return N(1),function(){N(-1),n()}}};return B}var _="hashchange",A={hashbang:{encodePath:function(t){return"!"===t.charAt(0)?t:"!/"+g(t)},decodePath:function(t){return"!"===t.charAt(0)?t.substr(1):t}},noslash:{encodePath:g,decodePath:m},slash:{encodePath:m,decodePath:m}};function j(t){var n=t.indexOf("#");return-1===n?t:t.slice(0,n)}function $(){var t=window.location.href,n=t.indexOf("#");return-1===n?"":t.substring(n+1)}function L(t){window.location.replace(j(window.location.href)+"#"+t)}function M(t){void 0===t&&(t={}),E||y(!1);var n=window.history,e=(window.navigator.userAgent.indexOf("Firefox"),t),r=e.getUserConfirmation,o=void 0===r?C:r,i=e.hashType,a=void 0===i?"slash":i,c=t.basename?b(m(t.basename)):"",u=A[a],f=u.encodePath,l=u.decodePath;function p(){var t=l($());return c&&(t=w(t,c)),O(t)}var h=P();function d(t){s(B,t),B.length=n.length,h.notifyListeners(B.location,B.action)}var v=!1,g=null;function k(){var t,n,e=$(),r=f(e);if(e!==r)L(r);else{var i=p(),a=B.location;if(!v&&(n=i,(t=a).pathname===n.pathname&&t.search===n.search&&t.hash===n.hash))return;if(g===x(i))return;g=null,function(t){if(v)v=!1,d();else{var n="POP";h.confirmTransitionTo(t,n,o,(function(e){e?d({action:n,location:t}):function(t){var n=B.location,e=M.lastIndexOf(x(n));-1===e&&(e=0);var r=M.lastIndexOf(x(t));-1===r&&(r=0);var o=e-r;o&&(v=!0,U(o))}(t)}))}}(i)}}var R=$(),S=f(R);R!==S&&L(S);var T=p(),M=[x(T)];function U(t){n.go(t)}var I=0;function N(t){1===(I+=t)&&1===t?window.addEventListener(_,k):0===I&&window.removeEventListener(_,k)}var F=!1;var B={length:n.length,action:"POP",location:T,createHref:function(t){var n=document.querySelector("base"),e="";return n&&n.getAttribute("href")&&(e=j(window.location.href)),e+"#"+f(c+x(t))},push:function(t,n){var e="PUSH",r=O(t,void 0,void 0,B.location);h.confirmTransitionTo(r,e,o,(function(t){if(t){var n=x(r),o=f(c+n);if($()!==o){g=n,function(t){window.location.hash=t}(o);var i=M.lastIndexOf(x(B.location)),a=M.slice(0,i+1);a.push(n),M=a,d({action:e,location:r})}else d()}}))},replace:function(t,n){var e="REPLACE",r=O(t,void 0,void 0,B.location);h.confirmTransitionTo(r,e,o,(function(t){if(t){var n=x(r),o=f(c+n);$()!==o&&(g=n,L(o));var i=M.indexOf(x(B.location));-1!==i&&(M[i]=n),d({action:e,location:r})}}))},go:U,goBack:function(){U(-1)},goForward:function(){U(1)},block:function(t){void 0===t&&(t=!1);var n=h.setPrompt(t);return F||(N(1),F=!0),function(){return F&&(F=!1,N(-1)),n()}},listen:function(t){var n=h.appendListener(t);return N(1),function(){N(-1),n()}}};return B}function U(t,n,e){return Math.min(Math.max(t,n),e)}function I(t){void 0===t&&(t={});var n=t,e=n.getUserConfirmation,r=n.initialEntries,o=void 0===r?["/"]:r,i=n.initialIndex,a=void 0===i?0:i,c=n.keyLength,u=void 0===c?6:c,f=P();function l(t){s(m,t),m.length=m.entries.length,f.notifyListeners(m.location,m.action)}function p(){return Math.random().toString(36).substr(2,u)}var h=U(a,0,o.length-1),d=o.map((function(t){return O(t,void 0,"string"===typeof t?p():t.key||p())})),v=x;function y(t){var n=U(m.index+t,0,m.entries.length-1),r=m.entries[n];f.confirmTransitionTo(r,"POP",e,(function(t){t?l({action:"POP",location:r,index:n}):l()}))}var m={length:d.length,action:"POP",location:d[h],index:h,entries:d,createHref:v,push:function(t,n){var r="PUSH",o=O(t,n,p(),m.location);f.confirmTransitionTo(o,r,e,(function(t){if(t){var n=m.index+1,e=m.entries.slice(0);e.length>n?e.splice(n,e.length-n,o):e.push(o),l({action:r,location:o,index:n,entries:e})}}))},replace:function(t,n){var r="REPLACE",o=O(t,n,p(),m.location);f.confirmTransitionTo(o,r,e,(function(t){t&&(m.entries[m.index]=o,l({action:r,location:o}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(t){var n=m.index+t;return n>=0&&n<m.entries.length},block:function(t){return void 0===t&&(t=!1),f.setPrompt(t)},listen:function(t){return f.appendListener(t)}};return m}function N(t,n){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},N(t,n)}function F(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,N(t,n)}var B=1073741823,H="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e.g?e.g:{};function D(t){var n=[];return{on:function(t){n.push(t)},off:function(t){n=n.filter((function(n){return n!==t}))},get:function(){return t},set:function(e,r){t=e,n.forEach((function(n){return n(t,r)}))}}}var W=a().createContext||function(t,n){var e,r,o="__create-react-context-"+function(){var t="__global_unique_id__";return H[t]=(H[t]||0)+1}()+"__",a=function(t){function e(){var n;return(n=t.apply(this,arguments)||this).emitter=D(n.props.value),n}F(e,t);var r=e.prototype;return r.getChildContext=function(){var t;return(t={})[o]=this.emitter,t},r.componentWillReceiveProps=function(t){if(this.props.value!==t.value){var e,r=this.props.value,o=t.value;((i=r)===(a=o)?0!==i||1/i===1/a:i!==i&&a!==a)?e=0:(e="function"===typeof n?n(r,o):B,0!==(e|=0)&&this.emitter.set(t.value,e))}var i,a},r.render=function(){return this.props.children},e}(i.Component);a.childContextTypes=((e={})[o]=u().object.isRequired,e);var c=function(n){function e(){var t;return(t=n.apply(this,arguments)||this).state={value:t.getValue()},t.onUpdate=function(n,e){0!==((0|t.observedBits)&e)&&t.setState({value:t.getValue()})},t}F(e,n);var r=e.prototype;return r.componentWillReceiveProps=function(t){var n=t.observedBits;this.observedBits=void 0===n||null===n?B:n},r.componentDidMount=function(){this.context[o]&&this.context[o].on(this.onUpdate);var t=this.props.observedBits;this.observedBits=void 0===t||null===t?B:t},r.componentWillUnmount=function(){this.context[o]&&this.context[o].off(this.onUpdate)},r.getValue=function(){return this.context[o]?this.context[o].get():t},r.render=function(){return(t=this.props.children,Array.isArray(t)?t[0]:t)(this.state.value);var t},e}(i.Component);return c.contextTypes=((r={})[o]=u().object,r),{Provider:a,Consumer:c}},V=W,q="Invariant failed";var K=function(t,n){if(!t)throw new Error(q)};function z(){return z=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},z.apply(this,arguments)}var J=e(52037),G=e.n(J);e(55791);function Y(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}var Q=e(84502),X=e.n(Q),Z=function(t){var n=V();return n.displayName=t,n},tt=Z("Router-History"),nt=Z("Router"),et=function(t){function n(n){var e;return(e=t.call(this,n)||this).state={location:n.history.location},e._isMounted=!1,e._pendingLocation=null,n.staticContext||(e.unlisten=n.history.listen((function(t){e._isMounted?e.setState({location:t}):e._pendingLocation=t}))),e}o(n,t),n.computeRootMatch=function(t){return{path:"/",url:"/",params:{},isExact:"/"===t}};var e=n.prototype;return e.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},e.componentWillUnmount=function(){this.unlisten&&(this.unlisten(),this._isMounted=!1,this._pendingLocation=null)},e.render=function(){return a().createElement(nt.Provider,{value:{history:this.props.history,location:this.state.location,match:n.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},a().createElement(tt.Provider,{children:this.props.children||null,value:this.props.history}))},n}(a().Component);var rt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=I(n.props),n}return o(n,t),n.prototype.render=function(){return a().createElement(et,{history:this.history,children:this.props.children})},n}(a().Component);var ot=function(t){function n(){return t.apply(this,arguments)||this}o(n,t);var e=n.prototype;return e.componentDidMount=function(){this.props.onMount&&this.props.onMount.call(this,this)},e.componentDidUpdate=function(t){this.props.onUpdate&&this.props.onUpdate.call(this,this,t)},e.componentWillUnmount=function(){this.props.onUnmount&&this.props.onUnmount.call(this,this)},e.render=function(){return null},n}(a().Component);function it(t){var n=t.message,e=t.when,r=void 0===e||e;return a().createElement(nt.Consumer,null,(function(t){if(t||K(!1),!r||t.staticContext)return null;var e=t.history.block;return a().createElement(ot,{onMount:function(t){t.release=e(n)},onUpdate:function(t,r){r.message!==n&&(t.release(),t.release=e(n))},onUnmount:function(t){t.release()},message:n})}))}var at={},ct=0;function ut(t,n){return void 0===t&&(t="/"),void 0===n&&(n={}),"/"===t?t:function(t){if(at[t])return at[t];var n=G().compile(t);return ct<1e4&&(at[t]=n,ct++),n}(t)(n,{pretty:!0})}function st(t){var n=t.computedMatch,e=t.to,r=t.push,o=void 0!==r&&r;return a().createElement(nt.Consumer,null,(function(t){t||K(!1);var r=t.history,i=t.staticContext,c=o?r.push:r.replace,u=O(n?"string"===typeof e?ut(e,n.params):z({},e,{pathname:ut(e.pathname,n.params)}):e);return i?(c(u),null):a().createElement(ot,{onMount:function(){c(u)},onUpdate:function(t,n){var e,r,o=O(n.to);e=o,r=z({},u,{key:o.key}),e.pathname===r.pathname&&e.search===r.search&&e.hash===r.hash&&e.key===r.key&&d(e.state,r.state)||c(u)},to:e})}))}var ft={},lt=0;function pt(t,n){void 0===n&&(n={}),("string"===typeof n||Array.isArray(n))&&(n={path:n});var e=n,r=e.path,o=e.exact,i=void 0!==o&&o,a=e.strict,c=void 0!==a&&a,u=e.sensitive,s=void 0!==u&&u;return[].concat(r).reduce((function(n,e){if(!e&&""!==e)return null;if(n)return n;var r=function(t,n){var e=""+n.end+n.strict+n.sensitive,r=ft[e]||(ft[e]={});if(r[t])return r[t];var o=[],i={regexp:G()(t,o,n),keys:o};return lt<1e4&&(r[t]=i,lt++),i}(e,{end:i,strict:c,sensitive:s}),o=r.regexp,a=r.keys,u=o.exec(t);if(!u)return null;var f=u[0],l=u.slice(1),p=t===f;return i&&!p?null:{path:e,url:"/"===e&&""===f?"/":f,isExact:p,params:a.reduce((function(t,n,e){return t[n.name]=l[e],t}),{})}}),null)}var ht=function(t){function n(){return t.apply(this,arguments)||this}return o(n,t),n.prototype.render=function(){var t=this;return a().createElement(nt.Consumer,null,(function(n){n||K(!1);var e=t.props.location||n.location,r=z({},n,{location:e,match:t.props.computedMatch?t.props.computedMatch:t.props.path?pt(e.pathname,t.props):n.match}),o=t.props,i=o.children,c=o.component,u=o.render;return Array.isArray(i)&&function(t){return 0===a().Children.count(t)}(i)&&(i=null),a().createElement(nt.Provider,{value:r},r.match?i?"function"===typeof i?i(r):i:c?a().createElement(c,r):u?u(r):null:"function"===typeof i?i(r):null)}))},n}(a().Component);function dt(t){return"/"===t.charAt(0)?t:"/"+t}function vt(t,n){if(!t)return n;var e=dt(t);return 0!==n.pathname.indexOf(e)?n:z({},n,{pathname:n.pathname.substr(e.length)})}function yt(t){return"string"===typeof t?t:x(t)}function mt(t){return function(){K(!1)}}function gt(){}var wt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).handlePush=function(t){return n.navigateTo(t,"PUSH")},n.handleReplace=function(t){return n.navigateTo(t,"REPLACE")},n.handleListen=function(){return gt},n.handleBlock=function(){return gt},n}o(n,t);var e=n.prototype;return e.navigateTo=function(t,n){var e=this.props,r=e.basename,o=void 0===r?"":r,i=e.context,a=void 0===i?{}:i;a.action=n,a.location=function(t,n){return t?z({},n,{pathname:dt(t)+n.pathname}):n}(o,O(t)),a.url=yt(a.location)},e.render=function(){var t=this.props,n=t.basename,e=void 0===n?"":n,r=t.context,o=void 0===r?{}:r,i=t.location,c=void 0===i?"/":i,u=Y(t,["basename","context","location"]),s={createHref:function(t){return dt(e+yt(t))},action:"POP",location:vt(e,O(c)),push:this.handlePush,replace:this.handleReplace,go:mt(),goBack:mt(),goForward:mt(),listen:this.handleListen,block:this.handleBlock};return a().createElement(et,z({},u,{history:s,staticContext:o}))},n}(a().Component);var bt=function(t){function n(){return t.apply(this,arguments)||this}return o(n,t),n.prototype.render=function(){var t=this;return a().createElement(nt.Consumer,null,(function(n){n||K(!1);var e,r,o=t.props.location||n.location;return a().Children.forEach(t.props.children,(function(t){if(null==r&&a().isValidElement(t)){e=t;var i=t.props.path||t.props.from;r=i?pt(o.pathname,z({},t.props,{path:i})):n.match}})),r?a().cloneElement(e,{location:o,computedMatch:r}):null}))},n}(a().Component);function xt(t){var n="withRouter("+(t.displayName||t.name)+")",e=function(n){var e=n.wrappedComponentRef,r=Y(n,["wrappedComponentRef"]);return a().createElement(nt.Consumer,null,(function(n){return n||K(!1),a().createElement(t,z({},r,n,{ref:e}))}))};return e.displayName=n,e.WrappedComponent=t,X()(e,t)}var Ot=a().useContext;function Pt(){return Ot(tt)}function Et(){return Ot(nt).location}function Ct(){var t=Ot(nt).match;return t?t.params:{}}function kt(t){var n=Et(),e=Ot(nt).match;return t?pt(n.pathname,t):e}function Rt(t,n){return Rt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},Rt(t,n)}function St(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,Rt(t,n)}function Tt(){return Tt=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])}return t},Tt.apply(this,arguments)}function _t(t,n){if(null==t)return{};var e,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)e=i[r],n.indexOf(e)>=0||(o[e]=t[e]);return o}var At="Invariant failed";var jt=function(t,n){if(!t)throw new Error(At)},$t=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=T(n.props),n}return St(n,t),n.prototype.render=function(){return a().createElement(et,{history:this.history,children:this.props.children})},n}(a().Component);var Lt=function(t){function n(){for(var n,e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return(n=t.call.apply(t,[this].concat(r))||this).history=M(n.props),n}return St(n,t),n.prototype.render=function(){return a().createElement(et,{history:this.history,children:this.props.children})},n}(a().Component);var Mt=function(t,n){return"function"===typeof t?t(n):t},Ut=function(t,n){return"string"===typeof t?O(t,null,null,n):t},It=function(t){return t},Nt=a().forwardRef;"undefined"===typeof Nt&&(Nt=It);var Ft=Nt((function(t,n){var e=t.innerRef,r=t.navigate,o=t.onClick,i=_t(t,["innerRef","navigate","onClick"]),c=i.target,u=Tt({},i,{onClick:function(t){try{o&&o(t)}catch(n){throw t.preventDefault(),n}t.defaultPrevented||0!==t.button||c&&"_self"!==c||function(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}(t)||(t.preventDefault(),r())}});return u.ref=It!==Nt&&n||e,a().createElement("a",u)}));var Bt=Nt((function(t,n){var e=t.component,r=void 0===e?Ft:e,o=t.replace,i=t.to,c=t.innerRef,u=_t(t,["component","replace","to","innerRef"]);return a().createElement(nt.Consumer,null,(function(t){t||jt(!1);var e=t.history,s=Ut(Mt(i,t.location),t.location),f=s?e.createHref(s):"",l=Tt({},u,{href:f,navigate:function(){var n=Mt(i,t.location),r=x(t.location)===x(Ut(n));(o||r?e.replace:e.push)(n)}});return It!==Nt?l.ref=n||c:l.innerRef=c,a().createElement(r,l)}))})),Ht=function(t){return t},Dt=a().forwardRef;"undefined"===typeof Dt&&(Dt=Ht);var Wt=Dt((function(t,n){var e=t["aria-current"],r=void 0===e?"page":e,o=t.activeClassName,i=void 0===o?"active":o,c=t.activeStyle,u=t.className,s=t.exact,f=t.isActive,l=t.location,p=t.sensitive,h=t.strict,d=t.style,v=t.to,y=t.innerRef,m=_t(t,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return a().createElement(nt.Consumer,null,(function(t){t||jt(!1);var e=l||t.location,o=Ut(Mt(v,e),e),g=o.pathname,w=g&&g.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),b=w?pt(e.pathname,{path:w,exact:s,sensitive:p,strict:h}):null,x=!!(f?f(b,e):b),O="function"===typeof u?u(x):u,P="function"===typeof d?d(x):d;x&&(O=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];return n.filter((function(t){return t})).join(" ")}(O,i),P=Tt({},P,c));var E=Tt({"aria-current":x&&r||null,className:O,style:P,to:o},m);return Ht!==Dt?E.ref=n||y:E.innerRef=y,a().createElement(Bt,E)}))}))},52037:function(t,n,e){var r=e(90462);t.exports=d,t.exports.parse=i,t.exports.compile=function(t,n){return u(i(t,n),n)},t.exports.tokensToFunction=u,t.exports.tokensToRegExp=h;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(t,n){for(var e,r=[],i=0,c=0,u="",s=n&&n.delimiter||"/";null!=(e=o.exec(t));){var l=e[0],p=e[1],h=e.index;if(u+=t.slice(c,h),c=h+l.length,p)u+=p[1];else{var d=t[c],v=e[2],y=e[3],m=e[4],g=e[5],w=e[6],b=e[7];u&&(r.push(u),u="");var x=null!=v&&null!=d&&d!==v,O="+"===w||"*"===w,P="?"===w||"*"===w,E=v||s,C=m||g,k=v||("string"===typeof r[r.length-1]?r[r.length-1]:"");r.push({name:y||i++,prefix:v||"",delimiter:E,optional:P,repeat:O,partial:x,asterisk:!!b,pattern:C?f(C):b?".*":a(E,k)})}}return c<t.length&&(u+=t.substr(c)),u&&r.push(u),r}function a(t,n){return!n||n.indexOf(t)>-1?"[^"+s(t)+"]+?":s(n)+"|(?:(?!"+s(n)+")[^"+s(t)+"])+?"}function c(t){return encodeURI(t).replace(/[\/?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}))}function u(t,n){for(var e=new Array(t.length),o=0;o<t.length;o++)"object"===typeof t[o]&&(e[o]=new RegExp("^(?:"+t[o].pattern+")$",p(n)));return function(n,o){for(var i="",a=n||{},u=(o||{}).pretty?c:encodeURIComponent,s=0;s<t.length;s++){var f=t[s];if("string"!==typeof f){var l,p=a[f.name];if(null==p){if(f.optional){f.partial&&(i+=f.prefix);continue}throw new TypeError('Expected "'+f.name+'" to be defined')}if(r(p)){if(!f.repeat)throw new TypeError('Expected "'+f.name+'" to not repeat, but received `'+JSON.stringify(p)+"`");if(0===p.length){if(f.optional)continue;throw new TypeError('Expected "'+f.name+'" to not be empty')}for(var h=0;h<p.length;h++){if(l=u(p[h]),!e[s].test(l))throw new TypeError('Expected all "'+f.name+'" to match "'+f.pattern+'", but received `'+JSON.stringify(l)+"`");i+=(0===h?f.prefix:f.delimiter)+l}}else{if(l=f.asterisk?encodeURI(p).replace(/[?#]/g,(function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})):u(p),!e[s].test(l))throw new TypeError('Expected "'+f.name+'" to match "'+f.pattern+'", but received "'+l+'"');i+=f.prefix+l}}else i+=f}return i}}function s(t){return t.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function f(t){return t.replace(/([=!:$\/()])/g,"\\$1")}function l(t,n){return t.keys=n,t}function p(t){return t&&t.sensitive?"":"i"}function h(t,n,e){r(n)||(e=n||e,n=[]);for(var o=(e=e||{}).strict,i=!1!==e.end,a="",c=0;c<t.length;c++){var u=t[c];if("string"===typeof u)a+=s(u);else{var f=s(u.prefix),h="(?:"+u.pattern+")";n.push(u),u.repeat&&(h+="(?:"+f+h+")*"),a+=h=u.optional?u.partial?f+"("+h+")?":"(?:"+f+"("+h+"))?":f+"("+h+")"}}var d=s(e.delimiter||"/"),v=a.slice(-d.length)===d;return o||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=i?"$":o&&v?"":"(?="+d+"|$)",l(new RegExp("^"+a,p(e)),n)}function d(t,n,e){return r(n)||(e=n||e,n=[]),e=e||{},t instanceof RegExp?function(t,n){var e=t.source.match(/\((?!\?)/g);if(e)for(var r=0;r<e.length;r++)n.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(t,n)}(t,n):r(t)?function(t,n,e){for(var r=[],o=0;o<t.length;o++)r.push(d(t[o],n,e).source);return l(new RegExp("(?:"+r.join("|")+")",p(e)),n)}(t,n,e):function(t,n,e){return h(i(t,e),n,e)}(t,n,e)}}}]);
//# sourceMappingURL=2771.a618162e.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[3134],{3134:function(t,r,n){n.r(r),n.d(r,{App:function(){return y},AppContext:function(){return p},ImmutableMap:function(){return _},StoreCollection:function(){return ee},appContextReactContextTypes:function(){return h},asmTransition:function(){return m},bindActionCreators:function(){return Oo},buildReducer:function(){return Po},createStoreAndSetDevToolsExtension:function(){return Co},getAppContext:function(){return ko},getAppContextOrThrowError:function(){return No},getComponentName:function(){return zo},getExceptionHandler:function(){return Mo},getLogPayloadPostProcessor:function(){return Yn},getSingleton:function(){return To},immutableMapReducer:function(){return Lo},isEqual:function(){return Fo},isShallowEqual:function(){return Uo},loadStoreStateAction:function(){return re},makeActionCreator:function(){return Jn},makeActionCreatorWithMeta:function(){return Zn},makeActionLogger:function(){return Gn},makeFunctionalStore:function(){return Wo},makeReducer:function(){return ne},makeSafeExceptionHandler:function(){return f},makeSelectorFactory:function(){return Bo},selectorsKey:function(){return Qn},setLogPayloadPostProcessor:function(){return Xn},stateMachineReducer:function(){return A},storesKey:function(){return te},transition:function(){return b},withAppContext:function(){return qo},withCssExtraction:function(){return Ko},withLoadingStatusSelectors:function(){return g},withNewDisplayName:function(){return Xo},withProperties:function(){return Vo},withSafeSetState:function(){return Yo},withSingletons:function(){return Go}});var e=n(84867),o=n(80322),i=n(46548),a=n(15360),u={exportCss:function(){}};function c(t,r){console.error("Exception in ".concat(t)),console.error(r)}function f(t){if(!t||!t.handleException)return{handleException:c};var r=!1;return{handleException:function(n,e){if(r)c(n,e);else{r=!0;try{t.handleException(n,e)}finally{r=!1}}}}}var s=f(void 0),l=1;function v(t){return t._Name||t.name||"Unknown"}var p=function(){function t(t){this.singletonsByIndex={},this._exceptionHandler=s,this._cssExtractor=u,this.reduxStore=t&&t.reduxStore}return Object.defineProperty(t.prototype,"exceptionHandler",{get:function(){return this._exceptionHandler},set:function(t){this._exceptionHandler=f(t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"cssExtractor",{get:function(){return this._cssExtractor},set:function(t){this._cssExtractor=t},enumerable:!1,configurable:!0}),t.prototype.addSingleton=function(t){if(this.findSingleton(t.constructor))throw new Error("Singleton ".concat(v(t.constructor)," already exists."));var r,n=("number"!==typeof(r=t.constructor)._singleton_index&&(r._singleton_index=l,l+=1),r._singleton_index);if(void 0!==this.singletonsByIndex[n])throw new Error("Singleton with index ".concat(n," already exists."));this.singletonsByIndex[n]=t},t.prototype.getSingleton=function(t){var r=this.findSingleton(t);if(void 0===r)throw new Error("Singleton ".concat(v(t)," not found."));return r},t.prototype.findSingleton=function(t){if("number"===typeof t._singleton_index){var r=this.singletonsByIndex[t._singleton_index];return r&&r.constructor===t?r:void 0}},t}(),h={appContext:a.instanceOf(p).isRequired},y=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(r,t),r.prototype.getChildContext=function(){return{appContext:this.props.context}},r.prototype.componentDidCatch=function(t,r){this.props.context.exceptionHandler.handleException("App.componentDidCatch:".concat(r.componentStack),t)},r.prototype.render=function(){return this.props.context.reduxStore?o.createElement(i.Kq,{store:this.props.context.reduxStore},this.props.children):o.createElement(o.Fragment,null,this.props.children)},r.childContextTypes=(0,e.__assign)({},h),r}(o.Component);function d(t,r,n,o){if(!r.length)return t;var i=(0,e.__assign)({},t),a=!1;return r.forEach((function(t,r){var e=o(t,r),u=n(t,r,e);i[u]!==e&&(i[u]=e,a=!0)})),a?i:t}var _={create:function(t){var r={};if(void 0===t||null===t)return r;if(t instanceof Array)for(var n=0;n<t.length;n++){var e=t[n];r[e[0]]=e[1]}else Object.keys(t).forEach((function(n){r[n]=t[n]}));return r},map:function(t,r){if(!t)return t;var n={},e=!1;return Object.keys(t).forEach((function(o){var i=t[o],a=r(o,i,t);n[o]=a,e=e||a!==i})),e?n:t},filter:function(t,r){if(!t)return t;var n={},e=!1;return Object.keys(t).forEach((function(o){var i=t[o];r(o,i,t)?n[o]=i:e=!0})),e?n:t},get:function(t,r){if(t)return t[r]},insert:function(t,r,n){if(t&&t[r]===n)return t;var o=(0,e.__assign)({},t);return o[r]=n,o},insertArray:function(t,r,n){return d(t,r,n,(function(t){return t}))},insertArrayWith:d,remove:function(t,r){if(!t)return t;if(!(r in t))return t;var n=(0,e.__assign)({},t);return delete n[r],n},replace:function(t,r,n){var o=t?(0,e.__assign)({},t):{};return o[r]=n(o[r]),o},replaceMany:function(t,r,n){if(r.length){var o=(0,e.__assign)({},t);return r.forEach((function(t){o[t]=n(o[t],t)})),o}return t},keys:function(t){return t?Object.keys(t):[]},values:function(t){var r=[];return t&&Object.keys(t).forEach((function(n){var e=t[n];r.push(e)})),r},entries:function(t){var r=[];return t&&Object.keys(t).forEach((function(n){var e=t[n];r.push([n,e])})),r}};function g(t,r){return(0,e.__assign)({isLoading:function(t){var n=r(t);return!!n&&n.isLoading&&(!n.hasLoadedPreviously||n.hasError)},isCallInProgress:function(t){var n=r(t);return!!n&&n.isLoading},hasError:function(t){var n=r(t);return!!n&&n.hasError},hasLoaded:function(t){var n=r(t);return!!n&&(n.hasLoadedPreviously||n.hasError)},hasLoadedPreviously:function(t){var n=r(t);return!!n&&n.hasLoadedPreviously},hasStartedPreviously:function(t){var n=r(t);return!!n&&(n.isLoading||n.hasLoadedPreviously||n.hasError)}},t)}function b(t,r,n){return t[r][n]||r}function m(t,r,n){return t[r].filter((function(t){return t.action.toString()===n.type})).reduce((function(t,r){return r.nextState||t}),r)}function A(t,r){return function(n,e){return m(t,n||r,e)}}var j=n(73594),w=n(25431);var x=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)};var S=function(t){if(!x(t))return!1;var r=(0,w.A)(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},O=n(75298),E=O.A["__core-js_shared__"],P=function(){var t=/[^.]+$/.exec(E&&E.keys&&E.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();var C=function(t){return!!P&&P in t},k=Function.prototype.toString;var N=function(t){if(null!=t){try{return k.call(t)}catch(r){}try{return t+""}catch(r){}}return""},z=/^\[object .+?Constructor\]$/,M=Function.prototype,T=Object.prototype,L=M.toString,I=T.hasOwnProperty,F=RegExp("^"+L.call(I).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var D=function(t){return!(!x(t)||C(t))&&(S(t)?F:z).test(N(t))};var R=function(t,r){return null==t?void 0:t[r]};var U=function(t,r){var n=R(t,r);return D(n)?n:void 0},$=function(){try{var t=U(Object,"defineProperty");return t({},"",{}),t}catch(r){}}();var B=function(t,r,n){"__proto__"==r&&$?$(t,r,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[r]=n};var W=function(t){return function(r,n,e){for(var o=-1,i=Object(r),a=e(r),u=a.length;u--;){var c=a[t?u:++o];if(!1===n(i[c],c,i))break}return r}}();var H=function(t,r){for(var n=-1,e=Array(t);++n<t;)e[n]=r(n);return e},V=n(71605),q=n(89913);var K=function(){return!1},X="object"==typeof exports&&exports&&!exports.nodeType&&exports,Y=X&&"object"==typeof module&&module&&!module.nodeType&&module,G=Y&&Y.exports===X?O.A.Buffer:void 0,J=(G?G.isBuffer:void 0)||K,Z=/^(?:0|[1-9]\d*)$/;var Q=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&Z.test(t))&&t>-1&&t%1==0&&t<r};var tt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},rt=n(34018),nt={};nt["[object Float32Array]"]=nt["[object Float64Array]"]=nt["[object Int8Array]"]=nt["[object Int16Array]"]=nt["[object Int32Array]"]=nt["[object Uint8Array]"]=nt["[object Uint8ClampedArray]"]=nt["[object Uint16Array]"]=nt["[object Uint32Array]"]=!0,nt["[object Arguments]"]=nt["[object Array]"]=nt["[object ArrayBuffer]"]=nt["[object Boolean]"]=nt["[object DataView]"]=nt["[object Date]"]=nt["[object Error]"]=nt["[object Function]"]=nt["[object Map]"]=nt["[object Number]"]=nt["[object Object]"]=nt["[object RegExp]"]=nt["[object Set]"]=nt["[object String]"]=nt["[object WeakMap]"]=!1;var et=function(t){return(0,rt.A)(t)&&tt(t.length)&&!!nt[(0,w.A)(t)]};var ot=function(t){return function(r){return t(r)}},it=n(24048),at="object"==typeof exports&&exports&&!exports.nodeType&&exports,ut=at&&"object"==typeof module&&module&&!module.nodeType&&module,ct=ut&&ut.exports===at&&it.A.process,ft=function(){try{var t=ut&&ut.require&&ut.require("util").types;return t||ct&&ct.binding&&ct.binding("util")}catch(r){}}(),st=ft&&ft.isTypedArray,lt=st?ot(st):et,vt=Object.prototype.hasOwnProperty;var pt=function(t,r){var n=(0,q.A)(t),e=!n&&(0,V.A)(t),o=!n&&!e&&J(t),i=!n&&!e&&!o&&lt(t),a=n||e||o||i,u=a?H(t.length,String):[],c=u.length;for(var f in t)!r&&!vt.call(t,f)||a&&("length"==f||o&&("offset"==f||"parent"==f)||i&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||Q(f,c))||u.push(f);return u},ht=Object.prototype;var yt=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||ht)};var dt=function(t,r){return function(n){return t(r(n))}}(Object.keys,Object),_t=Object.prototype.hasOwnProperty;var gt=function(t){if(!yt(t))return dt(t);var r=[];for(var n in Object(t))_t.call(t,n)&&"constructor"!=n&&r.push(n);return r};var bt=function(t){return null!=t&&tt(t.length)&&!S(t)};var mt=function(t){return bt(t)?pt(t):gt(t)};var At=function(t,r){return t&&W(t,r,mt)};var jt=function(){this.__data__=[],this.size=0};var wt=function(t,r){return t===r||t!==t&&r!==r};var xt=function(t,r){for(var n=t.length;n--;)if(wt(t[n][0],r))return n;return-1},St=Array.prototype.splice;var Ot=function(t){var r=this.__data__,n=xt(r,t);return!(n<0)&&(n==r.length-1?r.pop():St.call(r,n,1),--this.size,!0)};var Et=function(t){var r=this.__data__,n=xt(r,t);return n<0?void 0:r[n][1]};var Pt=function(t){return xt(this.__data__,t)>-1};var Ct=function(t,r){var n=this.__data__,e=xt(n,t);return e<0?(++this.size,n.push([t,r])):n[e][1]=r,this};function kt(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}kt.prototype.clear=jt,kt.prototype.delete=Ot,kt.prototype.get=Et,kt.prototype.has=Pt,kt.prototype.set=Ct;var Nt=kt;var zt=function(){this.__data__=new Nt,this.size=0};var Mt=function(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n};var Tt=function(t){return this.__data__.get(t)};var Lt=function(t){return this.__data__.has(t)},It=U(O.A,"Map"),Ft=U(Object,"create");var Dt=function(){this.__data__=Ft?Ft(null):{},this.size=0};var Rt=function(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r},Ut=Object.prototype.hasOwnProperty;var $t=function(t){var r=this.__data__;if(Ft){var n=r[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ut.call(r,t)?r[t]:void 0},Bt=Object.prototype.hasOwnProperty;var Wt=function(t){var r=this.__data__;return Ft?void 0!==r[t]:Bt.call(r,t)};var Ht=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Ft&&void 0===r?"__lodash_hash_undefined__":r,this};function Vt(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}Vt.prototype.clear=Dt,Vt.prototype.delete=Rt,Vt.prototype.get=$t,Vt.prototype.has=Wt,Vt.prototype.set=Ht;var qt=Vt;var Kt=function(){this.size=0,this.__data__={hash:new qt,map:new(It||Nt),string:new qt}};var Xt=function(t){var r=typeof t;return"string"==r||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==t:null===t};var Yt=function(t,r){var n=t.__data__;return Xt(r)?n["string"==typeof r?"string":"hash"]:n.map};var Gt=function(t){var r=Yt(this,t).delete(t);return this.size-=r?1:0,r};var Jt=function(t){return Yt(this,t).get(t)};var Zt=function(t){return Yt(this,t).has(t)};var Qt=function(t,r){var n=Yt(this,t),e=n.size;return n.set(t,r),this.size+=n.size==e?0:1,this};function tr(t){var r=-1,n=null==t?0:t.length;for(this.clear();++r<n;){var e=t[r];this.set(e[0],e[1])}}tr.prototype.clear=Kt,tr.prototype.delete=Gt,tr.prototype.get=Jt,tr.prototype.has=Zt,tr.prototype.set=Qt;var rr=tr;var nr=function(t,r){var n=this.__data__;if(n instanceof Nt){var e=n.__data__;if(!It||e.length<199)return e.push([t,r]),this.size=++n.size,this;n=this.__data__=new rr(e)}return n.set(t,r),this.size=n.size,this};function er(t){var r=this.__data__=new Nt(t);this.size=r.size}er.prototype.clear=zt,er.prototype.delete=Mt,er.prototype.get=Tt,er.prototype.has=Lt,er.prototype.set=nr;var or=er;var ir=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};var ar=function(t){return this.__data__.has(t)};function ur(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new rr;++r<n;)this.add(t[r])}ur.prototype.add=ur.prototype.push=ir,ur.prototype.has=ar;var cr=ur;var fr=function(t,r){for(var n=-1,e=null==t?0:t.length;++n<e;)if(r(t[n],n,t))return!0;return!1};var sr=function(t,r){return t.has(r)};var lr=function(t,r,n,e,o,i){var a=1&n,u=t.length,c=r.length;if(u!=c&&!(a&&c>u))return!1;var f=i.get(t),s=i.get(r);if(f&&s)return f==r&&s==t;var l=-1,v=!0,p=2&n?new cr:void 0;for(i.set(t,r),i.set(r,t);++l<u;){var h=t[l],y=r[l];if(e)var d=a?e(y,h,l,r,t,i):e(h,y,l,t,r,i);if(void 0!==d){if(d)continue;v=!1;break}if(p){if(!fr(r,(function(t,r){if(!sr(p,r)&&(h===t||o(h,t,n,e,i)))return p.push(r)}))){v=!1;break}}else if(h!==y&&!o(h,y,n,e,i)){v=!1;break}}return i.delete(t),i.delete(r),v},vr=n(96777),pr=O.A.Uint8Array;var hr=function(t){var r=-1,n=Array(t.size);return t.forEach((function(t,e){n[++r]=[e,t]})),n};var yr=function(t){var r=-1,n=Array(t.size);return t.forEach((function(t){n[++r]=t})),n},dr=vr.A?vr.A.prototype:void 0,_r=dr?dr.valueOf:void 0;var gr=function(t,r,n,e,o,i,a){switch(n){case"[object DataView]":if(t.byteLength!=r.byteLength||t.byteOffset!=r.byteOffset)return!1;t=t.buffer,r=r.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=r.byteLength||!i(new pr(t),new pr(r)));case"[object Boolean]":case"[object Date]":case"[object Number]":return wt(+t,+r);case"[object Error]":return t.name==r.name&&t.message==r.message;case"[object RegExp]":case"[object String]":return t==r+"";case"[object Map]":var u=hr;case"[object Set]":var c=1&e;if(u||(u=yr),t.size!=r.size&&!c)return!1;var f=a.get(t);if(f)return f==r;e|=2,a.set(t,r);var s=lr(u(t),u(r),e,o,i,a);return a.delete(t),s;case"[object Symbol]":if(_r)return _r.call(t)==_r.call(r)}return!1},br=n(14488);var mr=function(t,r,n){var e=r(t);return(0,q.A)(t)?e:(0,br.A)(e,n(t))};var Ar=function(t,r){for(var n=-1,e=null==t?0:t.length,o=0,i=[];++n<e;){var a=t[n];r(a,n,t)&&(i[o++]=a)}return i};var jr=function(){return[]},wr=Object.prototype.propertyIsEnumerable,xr=Object.getOwnPropertySymbols,Sr=xr?function(t){return null==t?[]:(t=Object(t),Ar(xr(t),(function(r){return wr.call(t,r)})))}:jr;var Or=function(t){return mr(t,mt,Sr)},Er=Object.prototype.hasOwnProperty;var Pr=function(t,r,n,e,o,i){var a=1&n,u=Or(t),c=u.length;if(c!=Or(r).length&&!a)return!1;for(var f=c;f--;){var s=u[f];if(!(a?s in r:Er.call(r,s)))return!1}var l=i.get(t),v=i.get(r);if(l&&v)return l==r&&v==t;var p=!0;i.set(t,r),i.set(r,t);for(var h=a;++f<c;){var y=t[s=u[f]],d=r[s];if(e)var _=a?e(d,y,s,r,t,i):e(y,d,s,t,r,i);if(!(void 0===_?y===d||o(y,d,n,e,i):_)){p=!1;break}h||(h="constructor"==s)}if(p&&!h){var g=t.constructor,b=r.constructor;g==b||!("constructor"in t)||!("constructor"in r)||"function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b||(p=!1)}return i.delete(t),i.delete(r),p},Cr=U(O.A,"DataView"),kr=U(O.A,"Promise"),Nr=U(O.A,"Set"),zr=U(O.A,"WeakMap"),Mr="[object Map]",Tr="[object Promise]",Lr="[object Set]",Ir="[object WeakMap]",Fr="[object DataView]",Dr=N(Cr),Rr=N(It),Ur=N(kr),$r=N(Nr),Br=N(zr),Wr=w.A;(Cr&&Wr(new Cr(new ArrayBuffer(1)))!=Fr||It&&Wr(new It)!=Mr||kr&&Wr(kr.resolve())!=Tr||Nr&&Wr(new Nr)!=Lr||zr&&Wr(new zr)!=Ir)&&(Wr=function(t){var r=(0,w.A)(t),n="[object Object]"==r?t.constructor:void 0,e=n?N(n):"";if(e)switch(e){case Dr:return Fr;case Rr:return Mr;case Ur:return Tr;case $r:return Lr;case Br:return Ir}return r});var Hr=Wr,Vr="[object Arguments]",qr="[object Array]",Kr="[object Object]",Xr=Object.prototype.hasOwnProperty;var Yr=function(t,r,n,e,o,i){var a=(0,q.A)(t),u=(0,q.A)(r),c=a?qr:Hr(t),f=u?qr:Hr(r),s=(c=c==Vr?Kr:c)==Kr,l=(f=f==Vr?Kr:f)==Kr,v=c==f;if(v&&J(t)){if(!J(r))return!1;a=!0,s=!1}if(v&&!s)return i||(i=new or),a||lt(t)?lr(t,r,n,e,o,i):gr(t,r,c,n,e,o,i);if(!(1&n)){var p=s&&Xr.call(t,"__wrapped__"),h=l&&Xr.call(r,"__wrapped__");if(p||h){var y=p?t.value():t,d=h?r.value():r;return i||(i=new or),o(y,d,n,e,i)}}return!!v&&(i||(i=new or),Pr(t,r,n,e,o,i))};var Gr=function t(r,n,e,o,i){return r===n||(null==r||null==n||!(0,rt.A)(r)&&!(0,rt.A)(n)?r!==r&&n!==n:Yr(r,n,e,o,t,i))};var Jr=function(t,r,n,e){var o=n.length,i=o,a=!e;if(null==t)return!i;for(t=Object(t);o--;){var u=n[o];if(a&&u[2]?u[1]!==t[u[0]]:!(u[0]in t))return!1}for(;++o<i;){var c=(u=n[o])[0],f=t[c],s=u[1];if(a&&u[2]){if(void 0===f&&!(c in t))return!1}else{var l=new or;if(e)var v=e(f,s,c,t,r,l);if(!(void 0===v?Gr(s,f,3,e,l):v))return!1}}return!0};var Zr=function(t){return t===t&&!x(t)};var Qr=function(t){for(var r=mt(t),n=r.length;n--;){var e=r[n],o=t[e];r[n]=[e,o,Zr(o)]}return r};var tn=function(t,r){return function(n){return null!=n&&(n[t]===r&&(void 0!==r||t in Object(n)))}};var rn=function(t){var r=Qr(t);return 1==r.length&&r[0][2]?tn(r[0][0],r[0][1]):function(n){return n===t||Jr(n,t,r)}};var nn=function(t){return"symbol"==typeof t||(0,rt.A)(t)&&"[object Symbol]"==(0,w.A)(t)},en=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,on=/^\w*$/;var an=function(t,r){if((0,q.A)(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!nn(t))||(on.test(t)||!en.test(t)||null!=r&&t in Object(r))};function un(t,r){if("function"!=typeof t||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var n=function n(){var e=arguments,o=r?r.apply(this,e):e[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,e);return n.cache=i.set(o,a)||i,a};return n.cache=new(un.Cache||rr),n}un.Cache=rr;var cn=un;var fn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,sn=/\\(\\)?/g,ln=function(t){var r=cn(t,(function(t){return 500===n.size&&n.clear(),t})),n=r.cache;return r}((function(t){var r=[];return 46===t.charCodeAt(0)&&r.push(""),t.replace(fn,(function(t,n,e,o){r.push(e?o.replace(sn,"$1"):n||t)})),r}));var vn=function(t,r){for(var n=-1,e=null==t?0:t.length,o=Array(e);++n<e;)o[n]=r(t[n],n,t);return o},pn=vr.A?vr.A.prototype:void 0,hn=pn?pn.toString:void 0;var yn=function t(r){if("string"==typeof r)return r;if((0,q.A)(r))return vn(r,t)+"";if(nn(r))return hn?hn.call(r):"";var n=r+"";return"0"==n&&1/r==-Infinity?"-0":n};var dn=function(t){return null==t?"":yn(t)};var _n=function(t,r){return(0,q.A)(t)?t:an(t,r)?[t]:ln(dn(t))};var gn=function(t){if("string"==typeof t||nn(t))return t;var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r};var bn=function(t,r){for(var n=0,e=(r=_n(r,t)).length;null!=t&&n<e;)t=t[gn(r[n++])];return n&&n==e?t:void 0};var mn=function(t,r,n){var e=null==t?void 0:bn(t,r);return void 0===e?n:e};var An=function(t,r){return null!=t&&r in Object(t)};var jn=function(t,r,n){for(var e=-1,o=(r=_n(r,t)).length,i=!1;++e<o;){var a=gn(r[e]);if(!(i=null!=t&&n(t,a)))break;t=t[a]}return i||++e!=o?i:!!(o=null==t?0:t.length)&&tt(o)&&Q(a,o)&&((0,q.A)(t)||(0,V.A)(t))};var wn=function(t,r){return null!=t&&jn(t,r,An)};var xn=function(t,r){return an(t)&&Zr(r)?tn(gn(t),r):function(n){var e=mn(n,t);return void 0===e&&e===r?wn(n,t):Gr(r,e,3)}};var Sn=function(t){return t};var On=function(t){return function(r){return null==r?void 0:r[t]}};var En=function(t){return function(r){return bn(r,t)}};var Pn=function(t){return an(t)?On(gn(t)):En(t)};var Cn=function(t){return"function"==typeof t?t:null==t?Sn:"object"==typeof t?(0,q.A)(t)?xn(t[0],t[1]):rn(t):Pn(t)};var kn=function(t,r){var n={};return r=Cn(r,3),At(t,(function(t,e,o){B(n,e,r(t,e,o))})),n};var Nn=function(t,r,n,e){for(var o=-1,i=null==t?0:t.length;++o<i;){var a=t[o];r(e,a,n(a),t)}return e};var zn=function(t,r){return function(n,e){if(null==n)return n;if(!bt(n))return t(n,e);for(var o=n.length,i=r?o:-1,a=Object(n);(r?i--:++i<o)&&!1!==e(a[i],i,a););return n}}(At);var Mn=function(t,r,n,e){return zn(t,(function(t,o,i){r(e,t,n(t),i)})),e};var Tn=function(t,r){return function(n,e){var o=(0,q.A)(n)?Nn:Mn,i=r?r():{};return o(n,t,Cn(e,2),i)}},Ln=Object.prototype.hasOwnProperty,In=Tn((function(t,r,n){Ln.call(t,n)?t[n].push(r):B(t,n,[r])})),Fn=n(97012),Dn=n(39355),Rn=n.n(Dn),Un=function(t){return"function"===typeof t},$n=function(t){return t},Bn=function(t){return null===t};function Wn(t,r,n){void 0===r&&(r=$n),Rn()(Un(r)||Bn(r),"Expected payloadCreator to be a function, undefined or null");var e=Bn(r)||r===$n?$n:function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),o=1;o<n;o++)e[o-1]=arguments[o];return t instanceof Error?t:r.apply(void 0,[t].concat(e))},o=Un(n),i=t.toString(),a=function(){var r=e.apply(void 0,arguments),i={type:t};return r instanceof Error&&(i.error=!0),void 0!==r&&(i.payload=r),o&&(i.meta=n.apply(void 0,arguments)),i};return a.toString=function(){return i},a}var Hn={},Vn={};function qn(t,r){Hn[t]=r}var Kn=void 0;function Xn(t){Kn=t}function Yn(){return Kn}function Gn(t,r){return function(n){return function(n){return function(o){var i=o,a=Hn[i.type],u=Vn[i.type],c=r.eventNames&&r.eventNames[i.type];if(Boolean(void 0!==a||c)){var f=a&&void 0!==i.payload?a(i.payload,r):void 0;if(null!==f){var s=function(t){if(!t)return[void 0,void 0];var r=t.logger;return[(0,e.__rest)(t,["logger"]),r]}(f),l=s[0],v=s[1],p=u&&i.meta&&i.meta.metaPayload?u(i.meta.metaPayload,r):{},h=(0,e.__assign)((0,e.__assign)({},l),p);Kn&&Kn(h);var y=i.meta&&i.meta.featureName||"None",d=i.meta&&i.meta.exportOptions||void 0;(v||t).logTrace({eventId:c||i.type,featureName:y,exportOptions:d,properties:h})}}return n(o)}}}}function Jn(t,r){return qn(t,r.getLogProperties||null),Wn(t,(function(t){return t}),(function(){return{featureName:r.featureName,exportOptions:r.exportOptions||null}}))}function Zn(t,r){return qn(t,r.getLogProperties||null),function(t,r){Vn[t]=r}(t,r.getLogPropertiesFromMeta||null),Wn(t,(function(t){return t}),(function(t,n){return{featureName:r.featureName,exportOptions:r.exportOptions||null,metaPayload:n}}))}var Qn="selectors",te="stores",re=Jn("LOAD_STATE",{featureName:"NoLogging"});function ne(t,r){var n,o;if(r&&r[te])throw new Error("The '".concat(te,"' key of the state tree is reserved for functional stores."));if(r&&r[Qn])throw new Error("The '".concat(Qn,"' key of the state tree is reserved for debug output from selectors."));var i=kn(In(t,(function(t){return t.name})),(function(t){return t[0].reducer})),a=(0,Fn.HY)((0,j.sortObjectBy)(i,(function(t){return t}))),u=(0,Fn.HY)((0,e.__assign)(((n={})[te]=a,n),r||{})),c=((o={})[te]={},o);return function(t,r){return r.type===re.toString()?r.payload:u(t||c,r)}}var ee=function(){function t(t){this.stores=[],t&&this.addStores(t)}return t.prototype.addStores=function(t){for(var r=0,n=t;r<n.length;r++){var e=n[r];this.addStore(e)}},t.prototype.addStore=function(t){this.stores.some((function(r){return r.name===t.name}))&&(0,j.throwError)("StoreCollection: Store ".concat(t.name," is already registered.")),this.stores.push(t)},t.prototype.makeReducer=function(t){return ne(this.stores,t)},t}(),oe=zr&&new zr,ie=oe?function(t,r){return oe.set(t,r),t}:Sn,ae=Object.create,ue=function(){function t(){}return function(r){if(!x(r))return{};if(ae)return ae(r);t.prototype=r;var n=new t;return t.prototype=void 0,n}}();var ce=function(t){return function(){var r=arguments;switch(r.length){case 0:return new t;case 1:return new t(r[0]);case 2:return new t(r[0],r[1]);case 3:return new t(r[0],r[1],r[2]);case 4:return new t(r[0],r[1],r[2],r[3]);case 5:return new t(r[0],r[1],r[2],r[3],r[4]);case 6:return new t(r[0],r[1],r[2],r[3],r[4],r[5]);case 7:return new t(r[0],r[1],r[2],r[3],r[4],r[5],r[6])}var n=ue(t.prototype),e=t.apply(n,r);return x(e)?e:n}};var fe=function(t,r,n){var e=1&r,o=ce(t);return function r(){var i=this&&this!==O.A&&this instanceof r?o:t;return i.apply(e?n:this,arguments)}};var se=function(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)},le=Math.max;var ve=function(t,r,n,e){for(var o=-1,i=t.length,a=n.length,u=-1,c=r.length,f=le(i-a,0),s=Array(c+f),l=!e;++u<c;)s[u]=r[u];for(;++o<a;)(l||o<i)&&(s[n[o]]=t[o]);for(;f--;)s[u++]=t[o++];return s},pe=Math.max;var he=function(t,r,n,e){for(var o=-1,i=t.length,a=-1,u=n.length,c=-1,f=r.length,s=pe(i-u,0),l=Array(s+f),v=!e;++o<s;)l[o]=t[o];for(var p=o;++c<f;)l[p+c]=r[c];for(;++a<u;)(v||o<i)&&(l[p+n[a]]=t[o++]);return l};var ye=function(t,r){for(var n=t.length,e=0;n--;)t[n]===r&&++e;return e};var de=function(){};function _e(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}_e.prototype=ue(de.prototype),_e.prototype.constructor=_e;var ge=_e;var be=oe?function(t){return oe.get(t)}:function(){},me={},Ae=Object.prototype.hasOwnProperty;var je=function(t){for(var r=t.name+"",n=me[r],e=Ae.call(me,r)?n.length:0;e--;){var o=n[e],i=o.func;if(null==i||i==t)return o.name}return r};function we(t,r){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=void 0}we.prototype=ue(de.prototype),we.prototype.constructor=we;var xe=we;var Se=function(t,r){var n=-1,e=t.length;for(r||(r=Array(e));++n<e;)r[n]=t[n];return r};var Oe=function(t){if(t instanceof ge)return t.clone();var r=new xe(t.__wrapped__,t.__chain__);return r.__actions__=Se(t.__actions__),r.__index__=t.__index__,r.__values__=t.__values__,r},Ee=Object.prototype.hasOwnProperty;function Pe(t){if((0,rt.A)(t)&&!(0,q.A)(t)&&!(t instanceof ge)){if(t instanceof xe)return t;if(Ee.call(t,"__wrapped__"))return Oe(t)}return new xe(t)}Pe.prototype=de.prototype,Pe.prototype.constructor=Pe;var Ce=Pe;var ke=function(t){var r=je(t),n=Ce[r];if("function"!=typeof n||!(r in ge.prototype))return!1;if(t===n)return!0;var e=be(n);return!!e&&t===e[0]},Ne=Date.now;var ze=function(t){var r=0,n=0;return function(){var e=Ne(),o=16-(e-n);if(n=e,o>0){if(++r>=800)return arguments[0]}else r=0;return t.apply(void 0,arguments)}},Me=ze(ie),Te=/\{\n\/\* \[wrapped with (.+)\] \*/,Le=/,? & /;var Ie=function(t){var r=t.match(Te);return r?r[1].split(Le):[]},Fe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var De=function(t,r){var n=r.length;if(!n)return t;var e=n-1;return r[e]=(n>1?"& ":"")+r[e],r=r.join(n>2?", ":" "),t.replace(Fe,"{\n/* [wrapped with "+r+"] */\n")};var Re=function(t){return function(){return t}},Ue=ze($?function(t,r){return $(t,"toString",{configurable:!0,enumerable:!1,value:Re(r),writable:!0})}:Sn);var $e=function(t,r){for(var n=-1,e=null==t?0:t.length;++n<e&&!1!==r(t[n],n,t););return t};var Be=function(t,r,n,e){for(var o=t.length,i=n+(e?1:-1);e?i--:++i<o;)if(r(t[i],i,t))return i;return-1};var We=function(t){return t!==t};var He=function(t,r,n){for(var e=n-1,o=t.length;++e<o;)if(t[e]===r)return e;return-1};var Ve=function(t,r,n){return r===r?He(t,r,n):Be(t,We,n)};var qe=function(t,r){return!!(null==t?0:t.length)&&Ve(t,r,0)>-1},Ke=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var Xe=function(t,r){return $e(Ke,(function(n){var e="_."+n[0];r&n[1]&&!qe(t,e)&&t.push(e)})),t.sort()};var Ye=function(t,r,n){var e=r+"";return Ue(t,De(e,Xe(Ie(e),n)))};var Ge=function(t,r,n,e,o,i,a,u,c,f){var s=8&r;r|=s?32:64,4&(r&=~(s?64:32))||(r&=-4);var l=[t,r,o,s?i:void 0,s?a:void 0,s?void 0:i,s?void 0:a,u,c,f],v=n.apply(void 0,l);return ke(t)&&Me(v,l),v.placeholder=e,Ye(v,t,r)};var Je=function(t){return t.placeholder},Ze=Math.min;var Qe=function(t,r){for(var n=t.length,e=Ze(r.length,n),o=Se(t);e--;){var i=r[e];t[e]=Q(i,n)?o[i]:void 0}return t},to="__lodash_placeholder__";var ro=function(t,r){for(var n=-1,e=t.length,o=0,i=[];++n<e;){var a=t[n];a!==r&&a!==to||(t[n]=to,i[o++]=n)}return i};var no=function t(r,n,e,o,i,a,u,c,f,s){var l=128&n,v=1&n,p=2&n,h=24&n,y=512&n,d=p?void 0:ce(r);return function _(){for(var g=arguments.length,b=Array(g),m=g;m--;)b[m]=arguments[m];if(h)var A=Je(_),j=ye(b,A);if(o&&(b=ve(b,o,i,h)),a&&(b=he(b,a,u,h)),g-=j,h&&g<s){var w=ro(b,A);return Ge(r,n,t,_.placeholder,e,b,w,c,f,s-g)}var x=v?e:this,S=p?x[r]:r;return g=b.length,c?b=Qe(b,c):y&&g>1&&b.reverse(),l&&f<g&&(b.length=f),this&&this!==O.A&&this instanceof _&&(S=d||ce(S)),S.apply(x,b)}};var eo=function(t,r,n){var e=ce(t);return function o(){for(var i=arguments.length,a=Array(i),u=i,c=Je(o);u--;)a[u]=arguments[u];var f=i<3&&a[0]!==c&&a[i-1]!==c?[]:ro(a,c);if((i-=f.length)<n)return Ge(t,r,no,o.placeholder,void 0,a,f,void 0,void 0,n-i);var s=this&&this!==O.A&&this instanceof o?e:t;return se(s,this,a)}};var oo=function(t,r,n,e){var o=1&r,i=ce(t);return function r(){for(var a=-1,u=arguments.length,c=-1,f=e.length,s=Array(f+u),l=this&&this!==O.A&&this instanceof r?i:t;++c<f;)s[c]=e[c];for(;u--;)s[c++]=arguments[++a];return se(l,o?n:this,s)}},io="__lodash_placeholder__",ao=128,uo=Math.min;var co=function(t,r){var n=t[1],e=r[1],o=n|e,i=o<131,a=e==ao&&8==n||e==ao&&256==n&&t[7].length<=r[8]||384==e&&r[7].length<=r[8]&&8==n;if(!i&&!a)return t;1&e&&(t[2]=r[2],o|=1&n?0:4);var u=r[3];if(u){var c=t[3];t[3]=c?ve(c,u,r[4]):u,t[4]=c?ro(t[3],io):r[4]}return(u=r[5])&&(c=t[5],t[5]=c?he(c,u,r[6]):u,t[6]=c?ro(t[5],io):r[6]),(u=r[7])&&(t[7]=u),e&ao&&(t[8]=null==t[8]?r[8]:uo(t[8],r[8])),null==t[9]&&(t[9]=r[9]),t[0]=r[0],t[1]=o,t},fo=/\s/;var so=function(t){for(var r=t.length;r--&&fo.test(t.charAt(r)););return r},lo=/^\s+/;var vo=function(t){return t?t.slice(0,so(t)+1).replace(lo,""):t},po=/^[-+]0x[0-9a-f]+$/i,ho=/^0b[01]+$/i,yo=/^0o[0-7]+$/i,_o=parseInt;var go=function(t){if("number"==typeof t)return t;if(nn(t))return NaN;if(x(t)){var r="function"==typeof t.valueOf?t.valueOf():t;t=x(r)?r+"":r}if("string"!=typeof t)return 0===t?t:+t;t=vo(t);var n=ho.test(t);return n||yo.test(t)?_o(t.slice(2),n?2:8):po.test(t)?NaN:+t},bo=1/0;var mo=function(t){return t?(t=go(t))===bo||t===-1/0?17976931348623157e292*(t<0?-1:1):t===t?t:0:0===t?t:0};var Ao=function(t){var r=mo(t),n=r%1;return r===r?n?r-n:r:0},jo=Math.max;var wo=function(t,r,n,e,o,i,a,u){var c=2&r;if(!c&&"function"!=typeof t)throw new TypeError("Expected a function");var f=e?e.length:0;if(f||(r&=-97,e=o=void 0),a=void 0===a?a:jo(Ao(a),0),u=void 0===u?u:Ao(u),f-=o?o.length:0,64&r){var s=e,l=o;e=o=void 0}var v=c?void 0:be(t),p=[t,r,n,e,o,s,l,i,a,u];if(v&&co(p,v),t=p[0],r=p[1],n=p[2],e=p[3],o=p[4],!(u=p[9]=void 0===p[9]?c?0:t.length:jo(p[9]-f,0))&&24&r&&(r&=-25),r&&1!=r)h=8==r||16==r?eo(t,r,u):32!=r&&33!=r||o.length?no.apply(void 0,p):oo(t,r,n,e);else var h=fe(t,r,n);return Ye((v?ie:Me)(h,p),t,r)};function xo(t,r,n){var e=wo(t,8,void 0,void 0,void 0,void 0,void 0,r=n?void 0:r);return e.placeholder=xo.placeholder,e}xo.placeholder={};var So=xo,Oo=function(t,r,n){var e={};return(0,j.keys)(n).forEach((function(o){var i=n[o],a=n[o].length>1?So(i)(t):function(t){return 1===t.length}(i)?function(){return i(t)}:n[o];e[o]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r(a.apply(void 0,t))}})),e};var Eo="ReduxStateJanitorStartedAction";Jn(Eo,{featureName:"NoLogging"});function Po(){var t={},r={};return{handlePayload:function(n,e){var o=n.toString();if(t[o]||r[o])throw new Error("Already handling an action type named ".concat(o));return t[o]=e,this},handleAction:function(n,e){var o=n.toString();if(t[o]||r[o])throw new Error("Already handling an action type named ".concat(o));return r[o]=e,this},done:function(n,o){var i=(0,e.__assign)({},t),a=(0,e.__assign)({},r);return function(t,r){if(void 0===t&&(t=n),r.type===Eo)return o?o(t):n;var e=i[r.type];if(e)t=e(t,r.payload);else{var u=a[r.type];u&&(t=u(t,r))}return t}}}}function Co(t,r,n){var e=window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({name:r}):Fn.Zz,o=n?e(n):e;return(0,Fn.y$)(t.makeReducer(),o)}function ko(t){var r=t.context&&t.context.appContext;if(r&&r instanceof p)return r}function No(t){return ko(t)||(0,j.throwError)("AppContext not found.")}function zo(t){var r=t,n=r&&r._reactInternalInstance&&r._reactInternalInstance._currentElement;return n&&n.type&&n.type.name||r.constructor.displayName||r.constructor.name}function Mo(t){var r=ko(t);return r&&r.exceptionHandler||s}function To(t,r){return(ko(t)||(0,j.throwError)("AppContext not found.")).getSingleton(r)}function Lo(t,r,n){return function(e,o){if(o.type===Eo)return _.create();var i=t(o);if(!i)return e||null;var a=_.get(e||null,i)||r,u=n(a,o);return _.insert(e||null,i,u)}}var Io=function(t){return t!==t};function Fo(t,r){if(t===r)return!0;if(Io(t)&&Io(r))return!0;if(!t||!r)return!1;if(Array.isArray(t)&&Array.isArray(r)){if(t.length!==r.length)return!1;for(var n=0;n<t.length;n++)if(!Fo(t[n],r[n]))return!1;return!0}if(Array.isArray(t)||Array.isArray(r))return!1;if("[object Date]"===Object.prototype.toString.call(t)&&"[object Date]"===Object.prototype.toString.call(r))return t.getTime()===r.getTime();if("object"===typeof t&&"object"===typeof r){for(var e=0,o=Object.keys(t);e<o.length;e++){if(!Fo(t[u=o[e]],r[u]))return!1}for(var i=0,a=Object.keys(r);i<a.length;i++){var u;if(!((u=a[i])in t))return!1}return!0}return!1}var Do=Object.prototype.hasOwnProperty;function Ro(t,r){return t===r?0!==t||0!==r||1/t===1/r:t!==t&&r!==r}function Uo(t,r){if(Ro(t,r))return!0;if("object"!==typeof t||null===t||"object"!==typeof r||null===r)return!1;var n=Object.keys(t),e=Object.keys(r);if(n.length!==e.length)return!1;for(var o=0;o<n.length;o++)if(!Do.call(r,n[o])||!Ro(t[n[o]],r[n[o]]))return!1;return!0}var $o=n(20256);function Bo(t,r){var n=t.name;return(0,$o.Mz)((function(r){return _.get(r.stores,n)||t.initialState}),(function(t){return(0,j.memoizeFunctionProperties)(r(t))}))}function Wo(t,r,n){var e=r(void 0,{type:void 0});return{name:t,initialState:e,reducer:r,getSelectors:Bo({name:t,initialState:e},n)}}function Ho(t,r){return r.contextTypes=(0,e.__assign)((0,e.__assign)({},t.contextTypes||{}),h),r.defaultProps=t.defaultProps,r.displayName=t.displayName,r}var Vo=function(t){return function(r){var n=Object.keys(t);return Ho(r,function(r){function o(e,o){var i=r.call(this,e,o)||this;return n.forEach((function(r){Object.defineProperty(i,r,{get:function(){return t[r](i)}})})),i}return(0,e.__extends)(o,r),o}(r))}},qo=Vo({appContext:function(t){return ko(t)||(0,j.throwError)("AppContext not found.")}});var Ko=function(t){var r=t,n=function(t){function n(){var r=null!==t&&t.apply(this,arguments)||this;return r.exportStyles=[],r}return(0,e.__extends)(n,t),n.prototype.UNSAFE_componentWillMount=function(){var t=r.prototype.UNSAFE_componentWillMount;t&&t.call(this),this.exportCssStyles()},n.prototype.exportCssStyles=function(){if(this.exportStyles){var t=function(t){var r=ko(t);return r&&r.cssExtractor||u}(this);this.exportStyles.forEach((function(r){var n=r&&r._getContent&&"function"===typeof r._getContent&&r._getContent();n&&n.length>0&&n.forEach((function(r){t.exportCss(r[1])}))}))}},n}(r);return Ho(r,n)},Xo=function(t){return function(r){return Ho(r,function(r){function n(n,e){var o=r.call(this,n,e)||this;return o.constructor.displayName=t(o.constructor.displayName),o}return(0,e.__extends)(n,r),n}(r))}},Yo=function(t){var r=t,n=function(t){function n(){var r=null!==t&&t.apply(this,arguments)||this;return r._maySetState=!1,r}return(0,e.__extends)(n,t),n.prototype.UNSAFE_componentWillMount=function(){var t=r.prototype.UNSAFE_componentWillMount;t&&t.call(this),this._maySetState=!0},n.prototype.componentWillUnmount=function(){var t=r.prototype.componentWillUnmount;t&&t.call(this),this._maySetState=!1},n.prototype.setStateWithCallback=function(t,r){var n=this;if(this._maySetState){return this.setState((function(r,e){try{return t(r,e)}catch(o){return Mo(n).handleException("".concat(zo(n),".setStateWithCallback"),o),r}}))}},n.prototype.setStateIfMounted=function(t){this._maySetState&&this.setState((function(){return t}))},n.prototype.updateStateIfMounted=function(t){this._maySetState&&this.setState((function(r){return(0,e.__assign)((0,e.__assign)({},r),t)}))},n}(r);return Ho(r,n)},Go=function(t){return function(r){var n=Object.keys(t);return Ho(r,function(r){function o(e,o){var i=r.call(this,e,o)||this;return n.forEach((function(r){Object.defineProperty(i,r,{get:function(){return To(i,t[r])}})})),i}return(0,e.__extends)(o,r),o}(r))}}},39355:function(t){t.exports=function(t,r,n,e,o,i,a,u){if(!t){var c;if(void 0===r)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[n,e,o,i,a,u],s=0;(c=new Error(r.replace(/%s/g,(function(){return f[s++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},20256:function(t,r){function n(t,r){return t===r}function e(t,r,n){if(null===r||null===n||r.length!==n.length)return!1;for(var e=r.length,o=0;o<e;o++)if(!t(r[o],n[o]))return!1;return!0}function o(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n,o=null,i=null;return function(){return e(r,o,arguments)||(i=t.apply(null,arguments)),o=arguments,i}}function i(t){var r=Array.isArray(t[0])?t[0]:t;if(!r.every((function(t){return"function"===typeof t}))){var n=r.map((function(t){return typeof t})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return r}function a(t){for(var r=arguments.length,n=Array(r>1?r-1:0),e=1;e<r;e++)n[e-1]=arguments[e];return function(){for(var r=arguments.length,e=Array(r),a=0;a<r;a++)e[a]=arguments[a];var u=0,c=e.pop(),f=i(e),s=t.apply(void 0,[function(){return u++,c.apply(null,arguments)}].concat(n)),l=o((function(){for(var t=[],r=f.length,n=0;n<r;n++)t.push(f[n].apply(null,arguments));return s.apply(null,t)}));return l.resultFunc=c,l.recomputations=function(){return u},l.resetRecomputations=function(){return u=0},l}}var u=r.Mz=a(o)},96777:function(t,r,n){var e=n(75298).A.Symbol;r.A=e},14488:function(t,r){r.A=function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}},25431:function(t,r,n){n.d(r,{A:function(){return v}});var e=n(96777),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,u=e.A?e.A.toStringTag:void 0;var c=function(t){var r=i.call(t,u),n=t[u];try{t[u]=void 0;var e=!0}catch(c){}var o=a.call(t);return e&&(r?t[u]=n:delete t[u]),o},f=Object.prototype.toString;var s=function(t){return f.call(t)},l=e.A?e.A.toStringTag:void 0;var v=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":l&&l in Object(t)?c(t):s(t)}},24048:function(t,r){var n="object"==typeof global&&global&&global.Object===Object&&global;r.A=n},75298:function(t,r,n){var e=n(24048),o="object"==typeof self&&self&&self.Object===Object&&self,i=e.A||o||Function("return this")();r.A=i},71605:function(t,r,n){n.d(r,{A:function(){return s}});var e=n(25431),o=n(34018);var i=function(t){return(0,o.A)(t)&&"[object Arguments]"==(0,e.A)(t)},a=Object.prototype,u=a.hasOwnProperty,c=a.propertyIsEnumerable,f=i(function(){return arguments}())?i:function(t){return(0,o.A)(t)&&u.call(t,"callee")&&!c.call(t,"callee")},s=f},89913:function(t,r){var n=Array.isArray;r.A=n},34018:function(t,r){r.A=function(t){return null!=t&&"object"==typeof t}}}]);
//# sourceMappingURL=3134.2da89511.chunk.js.map
/*! For license information please see 3200.26e6d6ab.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[3200],{44599:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(57534),e(8088),e(26910),e(35745),function(){var t=o,r=t.lib.BlockCipher,e=t.algo,i=[],n=[],s=[],c=[],a=[],h=[],f=[],l=[],u=[],d=[];!function(){for(var t=[],r=0;r<256;r++)t[r]=r<128?r<<1:r<<1^283;var e=0,o=0;for(r=0;r<256;r++){var p=o^o<<1^o<<2^o<<3^o<<4;p=p>>>8^255&p^99,i[e]=p,n[p]=e;var v=t[e],_=t[v],y=t[_],g=257*t[p]^16843008*p;s[e]=g<<24|g>>>8,c[e]=g<<16|g>>>16,a[e]=g<<8|g>>>24,h[e]=g,g=16843009*y^65537*_^257*v^16843008*e,f[p]=g<<24|g>>>8,l[p]=g<<16|g>>>16,u[p]=g<<8|g>>>24,d[p]=g,e?(e=v^t[t[t[y^v]]],o^=t[t[o]]):e=o=1}}();var p=[0,1,2,4,8,16,32,64,128,27,54],v=e.AES=r.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,r=t.words,e=t.sigBytes/4,n=4*((this._nRounds=e+6)+1),o=this._keySchedule=[],s=0;s<n;s++)s<e?o[s]=r[s]:(h=o[s-1],s%e?e>6&&s%e==4&&(h=i[h>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h]):(h=i[(h=h<<8|h>>>24)>>>24]<<24|i[h>>>16&255]<<16|i[h>>>8&255]<<8|i[255&h],h^=p[s/e|0]<<24),o[s]=o[s-e]^h);for(var c=this._invKeySchedule=[],a=0;a<n;a++){if(s=n-a,a%4)var h=o[s];else h=o[s-4];c[a]=a<4||s<=4?h:f[i[h>>>24]]^l[i[h>>>16&255]]^u[i[h>>>8&255]]^d[i[255&h]]}}},encryptBlock:function(t,r){this._doCryptBlock(t,r,this._keySchedule,s,c,a,h,i)},decryptBlock:function(t,r){var e=t[r+1];t[r+1]=t[r+3],t[r+3]=e,this._doCryptBlock(t,r,this._invKeySchedule,f,l,u,d,n),e=t[r+1],t[r+1]=t[r+3],t[r+3]=e},_doCryptBlock:function(t,r,e,i,n,o,s,c){for(var a=this._nRounds,h=t[r]^e[0],f=t[r+1]^e[1],l=t[r+2]^e[2],u=t[r+3]^e[3],d=4,p=1;p<a;p++){var v=i[h>>>24]^n[f>>>16&255]^o[l>>>8&255]^s[255&u]^e[d++],_=i[f>>>24]^n[l>>>16&255]^o[u>>>8&255]^s[255&h]^e[d++],y=i[l>>>24]^n[u>>>16&255]^o[h>>>8&255]^s[255&f]^e[d++],g=i[u>>>24]^n[h>>>16&255]^o[f>>>8&255]^s[255&l]^e[d++];h=v,f=_,l=y,u=g}v=(c[h>>>24]<<24|c[f>>>16&255]<<16|c[l>>>8&255]<<8|c[255&u])^e[d++],_=(c[f>>>24]<<24|c[l>>>16&255]<<16|c[u>>>8&255]<<8|c[255&h])^e[d++],y=(c[l>>>24]<<24|c[u>>>16&255]<<16|c[h>>>8&255]<<8|c[255&f])^e[d++],g=(c[u>>>24]<<24|c[h>>>16&255]<<16|c[f>>>8&255]<<8|c[255&l])^e[d++],t[r]=v,t[r+1]=_,t[r+2]=y,t[r+3]=g},keySize:8});t.AES=r._createHelper(v)}(),o.AES)}()},71860:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(57534),e(8088),e(26910),e(35745),function(){var t=o,r=t.lib.BlockCipher,e=t.algo,i=16,n=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],s=[[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]],c={pbox:[],sbox:[]};function a(t,r){var e=r>>24&255,i=r>>16&255,n=r>>8&255,o=255&r,s=t.sbox[0][e]+t.sbox[1][i];return s^=t.sbox[2][n],s+=t.sbox[3][o]}function h(t,r,e){for(var n,o=r,s=e,c=0;c<i;++c)n=o^=t.pbox[c],o=s=a(t,o)^s,s=n;return n=o,o=s,s=n,s^=t.pbox[i],{left:o^=t.pbox[i+1],right:s}}function f(t,r,e){for(var n,o=r,s=e,c=i+1;c>1;--c)n=o^=t.pbox[c],o=s=a(t,o)^s,s=n;return n=o,o=s,s=n,s^=t.pbox[1],{left:o^=t.pbox[0],right:s}}function l(t,r,e){for(var o=0;o<4;o++){t.sbox[o]=[];for(var c=0;c<256;c++)t.sbox[o][c]=s[o][c]}for(var a=0,f=0;f<i+2;f++)t.pbox[f]=n[f]^r[a],++a>=e&&(a=0);for(var l=0,u=0,d=0,p=0;p<i+2;p+=2)l=(d=h(t,l,u)).left,u=d.right,t.pbox[p]=l,t.pbox[p+1]=u;for(var v=0;v<4;v++)for(var _=0;_<256;_+=2)l=(d=h(t,l,u)).left,u=d.right,t.sbox[v][_]=l,t.sbox[v][_+1]=u;return!0}var u=e.Blowfish=r.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var t=this._keyPriorReset=this._key,r=t.words,e=t.sigBytes/4;l(c,r,e)}},encryptBlock:function(t,r){var e=h(c,t[r],t[r+1]);t[r]=e.left,t[r+1]=e.right},decryptBlock:function(t,r){var e=f(c,t[r],t[r+1]);t[r]=e.left,t[r+1]=e.right},blockSize:2,keySize:4,ivSize:2});t.Blowfish=r._createHelper(u)}(),o.Blowfish)}()},35745:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(26910),void(o.lib.Cipher||function(t){var r=o,e=r.lib,i=e.Base,n=e.WordArray,s=e.BufferedBlockAlgorithm,c=r.enc,a=(c.Utf8,c.Base64),h=r.algo.EvpKDF,f=e.Cipher=s.extend({cfg:i.extend(),createEncryptor:function(t,r){return this.create(this._ENC_XFORM_MODE,t,r)},createDecryptor:function(t,r){return this.create(this._DEC_XFORM_MODE,t,r)},init:function(t,r,e){this.cfg=this.cfg.extend(e),this._xformMode=t,this._key=r,this.reset()},reset:function(){s.reset.call(this),this._doReset()},process:function(t){return this._append(t),this._process()},finalize:function(t){return t&&this._append(t),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function t(t){return"string"==typeof t?B:y}return function(r){return{encrypt:function(e,i,n){return t(i).encrypt(r,e,i,n)},decrypt:function(e,i,n){return t(i).decrypt(r,e,i,n)}}}}()}),l=(e.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),r.mode={}),u=e.BlockCipherMode=i.extend({createEncryptor:function(t,r){return this.Encryptor.create(t,r)},createDecryptor:function(t,r){return this.Decryptor.create(t,r)},init:function(t,r){this._cipher=t,this._iv=r}}),d=l.CBC=function(){var r=u.extend();function e(r,e,i){var n,o=this._iv;o?(n=o,this._iv=t):n=this._prevBlock;for(var s=0;s<i;s++)r[e+s]^=n[s]}return r.Encryptor=r.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize;e.call(this,t,r,n),i.encryptBlock(t,r),this._prevBlock=t.slice(r,r+n)}}),r.Decryptor=r.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize,o=t.slice(r,r+n);i.decryptBlock(t,r),e.call(this,t,r,n),this._prevBlock=o}}),r}(),p=(r.pad={}).Pkcs7={pad:function(t,r){for(var e=4*r,i=e-t.sigBytes%e,o=i<<24|i<<16|i<<8|i,s=[],c=0;c<i;c+=4)s.push(o);var a=n.create(s,i);t.concat(a)},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},v=(e.BlockCipher=f.extend({cfg:f.cfg.extend({mode:d,padding:p}),reset:function(){var t;f.reset.call(this);var r=this.cfg,e=r.iv,i=r.mode;this._xformMode==this._ENC_XFORM_MODE?t=i.createEncryptor:(t=i.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==t?this._mode.init(this,e&&e.words):(this._mode=t.call(i,this,e&&e.words),this._mode.__creator=t)},_doProcessBlock:function(t,r){this._mode.processBlock(t,r)},_doFinalize:function(){var t,r=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(r.pad(this._data,this.blockSize),t=this._process(!0)):(t=this._process(!0),r.unpad(t)),t},blockSize:4}),e.CipherParams=i.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),_=(r.format={}).OpenSSL={stringify:function(t){var r=t.ciphertext,e=t.salt;return(e?n.create([1398893684,1701076831]).concat(e).concat(r):r).toString(a)},parse:function(t){var r,e=a.parse(t),i=e.words;return 1398893684==i[0]&&1701076831==i[1]&&(r=n.create(i.slice(2,4)),i.splice(0,4),e.sigBytes-=16),v.create({ciphertext:e,salt:r})}},y=e.SerializableCipher=i.extend({cfg:i.extend({format:_}),encrypt:function(t,r,e,i){i=this.cfg.extend(i);var n=t.createEncryptor(e,i),o=n.finalize(r),s=n.cfg;return v.create({ciphertext:o,key:e,iv:s.iv,algorithm:t,mode:s.mode,padding:s.padding,blockSize:t.blockSize,formatter:i.format})},decrypt:function(t,r,e,i){return i=this.cfg.extend(i),r=this._parse(r,i.format),t.createDecryptor(e,i).finalize(r.ciphertext)},_parse:function(t,r){return"string"==typeof t?r.parse(t,this):t}}),g=(r.kdf={}).OpenSSL={execute:function(t,r,e,i,o){if(i||(i=n.random(8)),o)s=h.create({keySize:r+e,hasher:o}).compute(t,i);else var s=h.create({keySize:r+e}).compute(t,i);var c=n.create(s.words.slice(r),4*e);return s.sigBytes=4*r,v.create({key:s,iv:c,salt:i})}},B=e.PasswordBasedCipher=y.extend({cfg:y.cfg.extend({kdf:g}),encrypt:function(t,r,e,i){var n=(i=this.cfg.extend(i)).kdf.execute(e,t.keySize,t.ivSize,i.salt,i.hasher);i.iv=n.iv;var o=y.encrypt.call(this,t,r,n.key,i);return o.mixIn(n),o},decrypt:function(t,r,e,i){i=this.cfg.extend(i),r=this._parse(r,i.format);var n=i.kdf.execute(e,t.keySize,t.ivSize,r.salt,i.hasher);return i.iv=n.iv,y.decrypt.call(this,t,r,n.key,i)}})}()))}()},9449:function(t,r,e){t.exports=function(){var t=t||function(t,r){var i;if("undefined"!==typeof window&&window.crypto&&(i=window.crypto),"undefined"!==typeof self&&self.crypto&&(i=self.crypto),"undefined"!==typeof globalThis&&globalThis.crypto&&(i=globalThis.crypto),!i&&"undefined"!==typeof window&&window.msCrypto&&(i=window.msCrypto),!i&&"undefined"!==typeof e.g&&e.g.crypto&&(i=e.g.crypto),!i)try{i=e(25156)}catch(_){}var n=function(){if(i){if("function"===typeof i.getRandomValues)try{return i.getRandomValues(new Uint32Array(1))[0]}catch(_){}if("function"===typeof i.randomBytes)try{return i.randomBytes(4).readInt32LE()}catch(_){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function t(){}return function(r){var e;return t.prototype=r,e=new t,t.prototype=null,e}}(),s={},c=s.lib={},a=c.Base={extend:function(t){var r=o(this);return t&&r.mixIn(t),r.hasOwnProperty("init")&&this.init!==r.init||(r.init=function(){r.$super.init.apply(this,arguments)}),r.init.prototype=r,r.$super=this,r},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var r in t)t.hasOwnProperty(r)&&(this[r]=t[r]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},h=c.WordArray=a.extend({init:function(t,e){t=this.words=t||[],this.sigBytes=e!=r?e:4*t.length},toString:function(t){return(t||l).stringify(this)},concat:function(t){var r=this.words,e=t.words,i=this.sigBytes,n=t.sigBytes;if(this.clamp(),i%4)for(var o=0;o<n;o++){var s=e[o>>>2]>>>24-o%4*8&255;r[i+o>>>2]|=s<<24-(i+o)%4*8}else for(var c=0;c<n;c+=4)r[i+c>>>2]=e[c>>>2];return this.sigBytes+=n,this},clamp:function(){var r=this.words,e=this.sigBytes;r[e>>>2]&=4294967295<<32-e%4*8,r.length=t.ceil(e/4)},clone:function(){var t=a.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var r=[],e=0;e<t;e+=4)r.push(n());return new h.init(r,t)}}),f=s.enc={},l=f.Hex={stringify:function(t){for(var r=t.words,e=t.sigBytes,i=[],n=0;n<e;n++){var o=r[n>>>2]>>>24-n%4*8&255;i.push((o>>>4).toString(16)),i.push((15&o).toString(16))}return i.join("")},parse:function(t){for(var r=t.length,e=[],i=0;i<r;i+=2)e[i>>>3]|=parseInt(t.substr(i,2),16)<<24-i%8*4;return new h.init(e,r/2)}},u=f.Latin1={stringify:function(t){for(var r=t.words,e=t.sigBytes,i=[],n=0;n<e;n++){var o=r[n>>>2]>>>24-n%4*8&255;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var r=t.length,e=[],i=0;i<r;i++)e[i>>>2]|=(255&t.charCodeAt(i))<<24-i%4*8;return new h.init(e,r)}},d=f.Utf8={stringify:function(t){try{return decodeURIComponent(escape(u.stringify(t)))}catch(r){throw new Error("Malformed UTF-8 data")}},parse:function(t){return u.parse(unescape(encodeURIComponent(t)))}},p=c.BufferedBlockAlgorithm=a.extend({reset:function(){this._data=new h.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=d.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(r){var e,i=this._data,n=i.words,o=i.sigBytes,s=this.blockSize,c=o/(4*s),a=(c=r?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*s,f=t.min(4*a,o);if(a){for(var l=0;l<a;l+=s)this._doProcessBlock(n,l);e=n.splice(0,a),i.sigBytes-=f}return new h.init(e,f)},clone:function(){var t=a.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0}),v=(c.Hasher=p.extend({cfg:a.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){p.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(r,e){return new t.init(e).finalize(r)}},_createHmacHelper:function(t){return function(r,e){return new v.HMAC.init(t,e).finalize(r)}}}),s.algo={});return s}(Math);return t}()},57534:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),function(){var t=n,r=t.lib.WordArray;function e(t,e,i){for(var n=[],o=0,s=0;s<e;s++)if(s%4){var c=i[t.charCodeAt(s-1)]<<s%4*2|i[t.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=c<<24-o%4*8,o++}return r.create(n,o)}t.enc.Base64={stringify:function(t){var r=t.words,e=t.sigBytes,i=this._map;t.clamp();for(var n=[],o=0;o<e;o+=3)for(var s=(r[o>>>2]>>>24-o%4*8&255)<<16|(r[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|r[o+2>>>2]>>>24-(o+2)%4*8&255,c=0;c<4&&o+.75*c<e;c++)n.push(i.charAt(s>>>6*(3-c)&63));var a=i.charAt(64);if(a)for(;n.length%4;)n.push(a);return n.join("")},parse:function(t){var r=t.length,i=this._map,n=this._reverseMap;if(!n){n=this._reverseMap=[];for(var o=0;o<i.length;o++)n[i.charCodeAt(o)]=o}var s=i.charAt(64);if(s){var c=t.indexOf(s);-1!==c&&(r=c)}return e(t,r,n)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),n.enc.Base64)}()},8825:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),function(){var t=n,r=t.lib.WordArray;function e(t,e,i){for(var n=[],o=0,s=0;s<e;s++)if(s%4){var c=i[t.charCodeAt(s-1)]<<s%4*2|i[t.charCodeAt(s)]>>>6-s%4*2;n[o>>>2]|=c<<24-o%4*8,o++}return r.create(n,o)}t.enc.Base64url={stringify:function(t,r){void 0===r&&(r=!0);var e=t.words,i=t.sigBytes,n=r?this._safe_map:this._map;t.clamp();for(var o=[],s=0;s<i;s+=3)for(var c=(e[s>>>2]>>>24-s%4*8&255)<<16|(e[s+1>>>2]>>>24-(s+1)%4*8&255)<<8|e[s+2>>>2]>>>24-(s+2)%4*8&255,a=0;a<4&&s+.75*a<i;a++)o.push(n.charAt(c>>>6*(3-a)&63));var h=n.charAt(64);if(h)for(;o.length%4;)o.push(h);return o.join("")},parse:function(t,r){void 0===r&&(r=!0);var i=t.length,n=r?this._safe_map:this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var s=0;s<n.length;s++)o[n.charCodeAt(s)]=s}var c=n.charAt(64);if(c){var a=t.indexOf(c);-1!==a&&(i=a)}return e(t,i,o)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"}}(),n.enc.Base64url)}()},74203:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),function(){var t=n,r=t.lib.WordArray,e=t.enc;function i(t){return t<<8&4278255360|t>>>8&16711935}e.Utf16=e.Utf16BE={stringify:function(t){for(var r=t.words,e=t.sigBytes,i=[],n=0;n<e;n+=2){var o=r[n>>>2]>>>16-n%4*8&65535;i.push(String.fromCharCode(o))}return i.join("")},parse:function(t){for(var e=t.length,i=[],n=0;n<e;n++)i[n>>>1]|=t.charCodeAt(n)<<16-n%2*16;return r.create(i,2*e)}},e.Utf16LE={stringify:function(t){for(var r=t.words,e=t.sigBytes,n=[],o=0;o<e;o+=2){var s=i(r[o>>>2]>>>16-o%4*8&65535);n.push(String.fromCharCode(s))}return n.join("")},parse:function(t){for(var e=t.length,n=[],o=0;o<e;o++)n[o>>>1]|=i(t.charCodeAt(o)<<16-o%2*16);return r.create(n,2*e)}}}(),n.enc.Utf16)}()},26910:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(81451),e(3701),function(){var t=o,r=t.lib,e=r.Base,i=r.WordArray,n=t.algo,s=n.MD5,c=n.EvpKDF=e.extend({cfg:e.extend({keySize:4,hasher:s,iterations:1}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,r){for(var e,n=this.cfg,o=n.hasher.create(),s=i.create(),c=s.words,a=n.keySize,h=n.iterations;c.length<a;){e&&o.update(e),e=o.update(t).finalize(r),o.reset();for(var f=1;f<h;f++)e=o.finalize(e),o.reset();s.concat(e)}return s.sigBytes=4*a,s}});t.EvpKDF=function(t,r,e){return c.create(e).compute(t,r)}}(),o.EvpKDF)}()},61317:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),function(t){var r=o,e=r.lib.CipherParams,i=r.enc.Hex;r.format.Hex={stringify:function(t){return t.ciphertext.toString(i)},parse:function(t){var r=i.parse(t);return e.create({ciphertext:r})}}}(),o.format.Hex)}()},3701:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),void function(){var t=n,r=t.lib.Base,e=t.enc.Utf8;t.algo.HMAC=r.extend({init:function(t,r){t=this._hasher=new t.init,"string"==typeof r&&(r=e.parse(r));var i=t.blockSize,n=4*i;r.sigBytes>n&&(r=t.finalize(r)),r.clamp();for(var o=this._oKey=r.clone(),s=this._iKey=r.clone(),c=o.words,a=s.words,h=0;h<i;h++)c[h]^=1549556828,a[h]^=909522486;o.sigBytes=s.sigBytes=n,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var r=this._hasher,e=r.finalize(t);return r.reset(),r.finalize(this._oKey.clone().concat(e))}})}())}()},3200:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(93756),e(68964),e(74203),e(57534),e(8825),e(8088),e(81451),e(5373),e(32440),e(20072),e(22761),e(6765),e(34668),e(3701),e(20559),e(26910),e(35745),e(5429),e(39351),e(61360),e(71305),e(35826),e(65725),e(88997),e(81158),e(56751),e(45904),e(61317),e(44599),e(86072),e(29557),e(28990),e(22436),e(71860),o)}()},68964:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),function(){if("function"==typeof ArrayBuffer){var t=n.lib.WordArray,r=t.init,e=t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var e=t.byteLength,i=[],n=0;n<e;n++)i[n>>>2]|=t[n]<<24-n%4*8;r.call(this,i,e)}else r.apply(this,arguments)};e.prototype=t}}(),n.lib.WordArray)}()},8088:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),function(t){var r=n,e=r.lib,i=e.WordArray,o=e.Hasher,s=r.algo,c=[];!function(){for(var r=0;r<64;r++)c[r]=4294967296*t.abs(t.sin(r+1))|0}();var a=s.MD5=o.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(t,r){for(var e=0;e<16;e++){var i=r+e,n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o=this._hash.words,s=t[r+0],a=t[r+1],d=t[r+2],p=t[r+3],v=t[r+4],_=t[r+5],y=t[r+6],g=t[r+7],B=t[r+8],w=t[r+9],k=t[r+10],x=t[r+11],b=t[r+12],m=t[r+13],S=t[r+14],A=t[r+15],H=o[0],z=o[1],C=o[2],R=o[3];H=h(H,z,C,R,s,7,c[0]),R=h(R,H,z,C,a,12,c[1]),C=h(C,R,H,z,d,17,c[2]),z=h(z,C,R,H,p,22,c[3]),H=h(H,z,C,R,v,7,c[4]),R=h(R,H,z,C,_,12,c[5]),C=h(C,R,H,z,y,17,c[6]),z=h(z,C,R,H,g,22,c[7]),H=h(H,z,C,R,B,7,c[8]),R=h(R,H,z,C,w,12,c[9]),C=h(C,R,H,z,k,17,c[10]),z=h(z,C,R,H,x,22,c[11]),H=h(H,z,C,R,b,7,c[12]),R=h(R,H,z,C,m,12,c[13]),C=h(C,R,H,z,S,17,c[14]),H=f(H,z=h(z,C,R,H,A,22,c[15]),C,R,a,5,c[16]),R=f(R,H,z,C,y,9,c[17]),C=f(C,R,H,z,x,14,c[18]),z=f(z,C,R,H,s,20,c[19]),H=f(H,z,C,R,_,5,c[20]),R=f(R,H,z,C,k,9,c[21]),C=f(C,R,H,z,A,14,c[22]),z=f(z,C,R,H,v,20,c[23]),H=f(H,z,C,R,w,5,c[24]),R=f(R,H,z,C,S,9,c[25]),C=f(C,R,H,z,p,14,c[26]),z=f(z,C,R,H,B,20,c[27]),H=f(H,z,C,R,m,5,c[28]),R=f(R,H,z,C,d,9,c[29]),C=f(C,R,H,z,g,14,c[30]),H=l(H,z=f(z,C,R,H,b,20,c[31]),C,R,_,4,c[32]),R=l(R,H,z,C,B,11,c[33]),C=l(C,R,H,z,x,16,c[34]),z=l(z,C,R,H,S,23,c[35]),H=l(H,z,C,R,a,4,c[36]),R=l(R,H,z,C,v,11,c[37]),C=l(C,R,H,z,g,16,c[38]),z=l(z,C,R,H,k,23,c[39]),H=l(H,z,C,R,m,4,c[40]),R=l(R,H,z,C,s,11,c[41]),C=l(C,R,H,z,p,16,c[42]),z=l(z,C,R,H,y,23,c[43]),H=l(H,z,C,R,w,4,c[44]),R=l(R,H,z,C,b,11,c[45]),C=l(C,R,H,z,A,16,c[46]),H=u(H,z=l(z,C,R,H,d,23,c[47]),C,R,s,6,c[48]),R=u(R,H,z,C,g,10,c[49]),C=u(C,R,H,z,S,15,c[50]),z=u(z,C,R,H,_,21,c[51]),H=u(H,z,C,R,b,6,c[52]),R=u(R,H,z,C,p,10,c[53]),C=u(C,R,H,z,k,15,c[54]),z=u(z,C,R,H,a,21,c[55]),H=u(H,z,C,R,B,6,c[56]),R=u(R,H,z,C,A,10,c[57]),C=u(C,R,H,z,y,15,c[58]),z=u(z,C,R,H,m,21,c[59]),H=u(H,z,C,R,v,6,c[60]),R=u(R,H,z,C,x,10,c[61]),C=u(C,R,H,z,d,15,c[62]),z=u(z,C,R,H,w,21,c[63]),o[0]=o[0]+H|0,o[1]=o[1]+z|0,o[2]=o[2]+C|0,o[3]=o[3]+R|0},_doFinalize:function(){var r=this._data,e=r.words,i=8*this._nDataBytes,n=8*r.sigBytes;e[n>>>5]|=128<<24-n%32;var o=t.floor(i/4294967296),s=i;e[15+(n+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),e[14+(n+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),r.sigBytes=4*(e.length+1),this._process();for(var c=this._hash,a=c.words,h=0;h<4;h++){var f=a[h];a[h]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return c},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function h(t,r,e,i,n,o,s){var c=t+(r&e|~r&i)+n+s;return(c<<o|c>>>32-o)+r}function f(t,r,e,i,n,o,s){var c=t+(r&i|e&~i)+n+s;return(c<<o|c>>>32-o)+r}function l(t,r,e,i,n,o,s){var c=t+(r^e^i)+n+s;return(c<<o|c>>>32-o)+r}function u(t,r,e,i,n,o,s){var c=t+(e^(r|~i))+n+s;return(c<<o|c>>>32-o)+r}r.MD5=o._createHelper(a),r.HmacMD5=o._createHmacHelper(a)}(Math),n.MD5)}()},5429:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.mode.CFB=function(){var t=o.lib.BlockCipherMode.extend();function r(t,r,e,i){var n,o=this._iv;o?(n=o.slice(0),this._iv=void 0):n=this._prevBlock,i.encryptBlock(n,0);for(var s=0;s<e;s++)t[r+s]^=n[s]}return t.Encryptor=t.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize;r.call(this,t,e,n,i),this._prevBlock=t.slice(e,e+n)}}),t.Decryptor=t.extend({processBlock:function(t,e){var i=this._cipher,n=i.blockSize,o=t.slice(e,e+n);r.call(this,t,e,n,i),this._prevBlock=o}}),t}(),o.mode.CFB)}()},61360:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.mode.CTRGladman=function(){var t=o.lib.BlockCipherMode.extend();function r(t){if(255===(t>>24&255)){var r=t>>16&255,e=t>>8&255,i=255&t;255===r?(r=0,255===e?(e=0,255===i?i=0:++i):++e):++r,t=0,t+=r<<16,t+=e<<8,t+=i}else t+=1<<24;return t}function e(t){return 0===(t[0]=r(t[0]))&&(t[1]=r(t[1])),t}var i=t.Encryptor=t.extend({processBlock:function(t,r){var i=this._cipher,n=i.blockSize,o=this._iv,s=this._counter;o&&(s=this._counter=o.slice(0),this._iv=void 0),e(s);var c=s.slice(0);i.encryptBlock(c,0);for(var a=0;a<n;a++)t[r+a]^=c[a]}});return t.Decryptor=i,t}(),o.mode.CTRGladman)}()},39351:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.mode.CTR=function(){var t=o.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(t,r){var e=this._cipher,i=e.blockSize,n=this._iv,o=this._counter;n&&(o=this._counter=n.slice(0),this._iv=void 0);var s=o.slice(0);e.encryptBlock(s,0),o[i-1]=o[i-1]+1|0;for(var c=0;c<i;c++)t[r+c]^=s[c]}});return t.Decryptor=r,t}(),o.mode.CTR)}()},35826:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.mode.ECB=function(){var t=o.lib.BlockCipherMode.extend();return t.Encryptor=t.extend({processBlock:function(t,r){this._cipher.encryptBlock(t,r)}}),t.Decryptor=t.extend({processBlock:function(t,r){this._cipher.decryptBlock(t,r)}}),t}(),o.mode.ECB)}()},71305:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.mode.OFB=function(){var t=o.lib.BlockCipherMode.extend(),r=t.Encryptor=t.extend({processBlock:function(t,r){var e=this._cipher,i=e.blockSize,n=this._iv,o=this._keystream;n&&(o=this._keystream=n.slice(0),this._iv=void 0),e.encryptBlock(o,0);for(var s=0;s<i;s++)t[r+s]^=o[s]}});return t.Decryptor=r,t}(),o.mode.OFB)}()},65725:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.pad.AnsiX923={pad:function(t,r){var e=t.sigBytes,i=4*r,n=i-e%i,o=e+n-1;t.clamp(),t.words[o>>>2]|=n<<24-o%4*8,t.sigBytes+=n},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},o.pad.Ansix923)}()},88997:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.pad.Iso10126={pad:function(t,r){var e=4*r,i=e-t.sigBytes%e;t.concat(o.lib.WordArray.random(i-1)).concat(o.lib.WordArray.create([i<<24],1))},unpad:function(t){var r=255&t.words[t.sigBytes-1>>>2];t.sigBytes-=r}},o.pad.Iso10126)}()},81158:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.pad.Iso97971={pad:function(t,r){t.concat(o.lib.WordArray.create([2147483648],1)),o.pad.ZeroPadding.pad(t,r)},unpad:function(t){o.pad.ZeroPadding.unpad(t),t.sigBytes--}},o.pad.Iso97971)}()},45904:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.pad.NoPadding={pad:function(){},unpad:function(){}},o.pad.NoPadding)}()},56751:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(35745),o.pad.ZeroPadding={pad:function(t,r){var e=4*r;t.clamp(),t.sigBytes+=e-(t.sigBytes%e||e)},unpad:function(t){var r=t.words,e=t.sigBytes-1;for(e=t.sigBytes-1;e>=0;e--)if(r[e>>>2]>>>24-e%4*8&255){t.sigBytes=e+1;break}}},o.pad.ZeroPadding)}()},20559:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(5373),e(3701),function(){var t=o,r=t.lib,e=r.Base,i=r.WordArray,n=t.algo,s=n.SHA256,c=n.HMAC,a=n.PBKDF2=e.extend({cfg:e.extend({keySize:4,hasher:s,iterations:25e4}),init:function(t){this.cfg=this.cfg.extend(t)},compute:function(t,r){for(var e=this.cfg,n=c.create(e.hasher,t),o=i.create(),s=i.create([1]),a=o.words,h=s.words,f=e.keySize,l=e.iterations;a.length<f;){var u=n.update(r).finalize(s);n.reset();for(var d=u.words,p=d.length,v=u,_=1;_<l;_++){v=n.finalize(v),n.reset();for(var y=v.words,g=0;g<p;g++)d[g]^=y[g]}o.concat(u),h[0]++}return o.sigBytes=4*f,o}});t.PBKDF2=function(t,r,e){return a.create(e).compute(t,r)}}(),o.PBKDF2)}()},22436:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(57534),e(8088),e(26910),e(35745),function(){var t=o,r=t.lib.StreamCipher,e=t.algo,i=[],n=[],s=[],c=e.RabbitLegacy=r.extend({_doReset:function(){var t=this._key.words,r=this.cfg.iv,e=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],i=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];this._b=0;for(var n=0;n<4;n++)a.call(this);for(n=0;n<8;n++)i[n]^=e[n+4&7];if(r){var o=r.words,s=o[0],c=o[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),l=h>>>16|4294901760&f,u=f<<16|65535&h;for(i[0]^=h,i[1]^=l,i[2]^=f,i[3]^=u,i[4]^=h,i[5]^=l,i[6]^=f,i[7]^=u,n=0;n<4;n++)a.call(this)}},_doProcessBlock:function(t,r){var e=this._X;a.call(this),i[0]=e[0]^e[5]>>>16^e[3]<<16,i[1]=e[2]^e[7]>>>16^e[5]<<16,i[2]=e[4]^e[1]>>>16^e[7]<<16,i[3]=e[6]^e[3]>>>16^e[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[r+n]^=i[n]},blockSize:4,ivSize:2});function a(){for(var t=this._X,r=this._C,e=0;e<8;e++)n[e]=r[e];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<n[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<n[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<n[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<n[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<n[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<n[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<n[6]>>>0?1:0)|0,this._b=r[7]>>>0<n[7]>>>0?1:0,e=0;e<8;e++){var i=t[e]+r[e],o=65535&i,c=i>>>16,a=((o*o>>>17)+o*c>>>15)+c*c,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=a^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=r._createHelper(c)}(),o.RabbitLegacy)}()},28990:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(57534),e(8088),e(26910),e(35745),function(){var t=o,r=t.lib.StreamCipher,e=t.algo,i=[],n=[],s=[],c=e.Rabbit=r.extend({_doReset:function(){for(var t=this._key.words,r=this.cfg.iv,e=0;e<4;e++)t[e]=16711935&(t[e]<<8|t[e]>>>24)|4278255360&(t[e]<<24|t[e]>>>8);var i=this._X=[t[0],t[3]<<16|t[2]>>>16,t[1],t[0]<<16|t[3]>>>16,t[2],t[1]<<16|t[0]>>>16,t[3],t[2]<<16|t[1]>>>16],n=this._C=[t[2]<<16|t[2]>>>16,4294901760&t[0]|65535&t[1],t[3]<<16|t[3]>>>16,4294901760&t[1]|65535&t[2],t[0]<<16|t[0]>>>16,4294901760&t[2]|65535&t[3],t[1]<<16|t[1]>>>16,4294901760&t[3]|65535&t[0]];for(this._b=0,e=0;e<4;e++)a.call(this);for(e=0;e<8;e++)n[e]^=i[e+4&7];if(r){var o=r.words,s=o[0],c=o[1],h=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),l=h>>>16|4294901760&f,u=f<<16|65535&h;for(n[0]^=h,n[1]^=l,n[2]^=f,n[3]^=u,n[4]^=h,n[5]^=l,n[6]^=f,n[7]^=u,e=0;e<4;e++)a.call(this)}},_doProcessBlock:function(t,r){var e=this._X;a.call(this),i[0]=e[0]^e[5]>>>16^e[3]<<16,i[1]=e[2]^e[7]>>>16^e[5]<<16,i[2]=e[4]^e[1]>>>16^e[7]<<16,i[3]=e[6]^e[3]>>>16^e[1]<<16;for(var n=0;n<4;n++)i[n]=16711935&(i[n]<<8|i[n]>>>24)|4278255360&(i[n]<<24|i[n]>>>8),t[r+n]^=i[n]},blockSize:4,ivSize:2});function a(){for(var t=this._X,r=this._C,e=0;e<8;e++)n[e]=r[e];for(r[0]=r[0]+1295307597+this._b|0,r[1]=r[1]+3545052371+(r[0]>>>0<n[0]>>>0?1:0)|0,r[2]=r[2]+886263092+(r[1]>>>0<n[1]>>>0?1:0)|0,r[3]=r[3]+1295307597+(r[2]>>>0<n[2]>>>0?1:0)|0,r[4]=r[4]+3545052371+(r[3]>>>0<n[3]>>>0?1:0)|0,r[5]=r[5]+886263092+(r[4]>>>0<n[4]>>>0?1:0)|0,r[6]=r[6]+1295307597+(r[5]>>>0<n[5]>>>0?1:0)|0,r[7]=r[7]+3545052371+(r[6]>>>0<n[6]>>>0?1:0)|0,this._b=r[7]>>>0<n[7]>>>0?1:0,e=0;e<8;e++){var i=t[e]+r[e],o=65535&i,c=i>>>16,a=((o*o>>>17)+o*c>>>15)+c*c,h=((4294901760&i)*i|0)+((65535&i)*i|0);s[e]=a^h}t[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,t[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,t[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,t[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,t[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,t[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,t[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,t[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.Rabbit=r._createHelper(c)}(),o.Rabbit)}()},29557:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(57534),e(8088),e(26910),e(35745),function(){var t=o,r=t.lib.StreamCipher,e=t.algo,i=e.RC4=r.extend({_doReset:function(){for(var t=this._key,r=t.words,e=t.sigBytes,i=this._S=[],n=0;n<256;n++)i[n]=n;n=0;for(var o=0;n<256;n++){var s=n%e,c=r[s>>>2]>>>24-s%4*8&255;o=(o+i[n]+c)%256;var a=i[n];i[n]=i[o],i[o]=a}this._i=this._j=0},_doProcessBlock:function(t,r){t[r]^=n.call(this)},keySize:8,ivSize:0});function n(){for(var t=this._S,r=this._i,e=this._j,i=0,n=0;n<4;n++){e=(e+t[r=(r+1)%256])%256;var o=t[r];t[r]=t[e],t[e]=o,i|=t[(t[r]+t[e])%256]<<24-8*n}return this._i=r,this._j=e,i}t.RC4=r._createHelper(i);var s=e.RC4Drop=i.extend({cfg:i.cfg.extend({drop:192}),_doReset:function(){i._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)n.call(this)}});t.RC4Drop=r._createHelper(s)}(),o.RC4)}()},34668:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),function(t){var r=n,e=r.lib,i=e.WordArray,o=e.Hasher,s=r.algo,c=i.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]),a=i.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]),h=i.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]),f=i.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]),l=i.create([0,1518500249,1859775393,2400959708,2840853838]),u=i.create([1352829926,1548603684,1836072691,2053994217,0]),d=s.RIPEMD160=o.extend({_doReset:function(){this._hash=i.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,r){for(var e=0;e<16;e++){var i=r+e,n=t[i];t[i]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8)}var o,s,d,w,k,x,b,m,S,A,H,z=this._hash.words,C=l.words,R=u.words,D=c.words,E=a.words,M=h.words,P=f.words;for(x=o=z[0],b=s=z[1],m=d=z[2],S=w=z[3],A=k=z[4],e=0;e<80;e+=1)H=o+t[r+D[e]]|0,H+=e<16?p(s,d,w)+C[0]:e<32?v(s,d,w)+C[1]:e<48?_(s,d,w)+C[2]:e<64?y(s,d,w)+C[3]:g(s,d,w)+C[4],H=(H=B(H|=0,M[e]))+k|0,o=k,k=w,w=B(d,10),d=s,s=H,H=x+t[r+E[e]]|0,H+=e<16?g(b,m,S)+R[0]:e<32?y(b,m,S)+R[1]:e<48?_(b,m,S)+R[2]:e<64?v(b,m,S)+R[3]:p(b,m,S)+R[4],H=(H=B(H|=0,P[e]))+A|0,x=A,A=S,S=B(m,10),m=b,b=H;H=z[1]+d+S|0,z[1]=z[2]+w+A|0,z[2]=z[3]+k+x|0,z[3]=z[4]+o+b|0,z[4]=z[0]+s+m|0,z[0]=H},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=16711935&(e<<8|e>>>24)|4278255360&(e<<24|e>>>8),t.sigBytes=4*(r.length+1),this._process();for(var n=this._hash,o=n.words,s=0;s<5;s++){var c=o[s];o[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}return n},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});function p(t,r,e){return t^r^e}function v(t,r,e){return t&r|~t&e}function _(t,r,e){return(t|~r)^e}function y(t,r,e){return t&e|r&~e}function g(t,r,e){return t^(r|~e)}function B(t,r){return t<<r|t>>>32-r}r.RIPEMD160=o._createHelper(d),r.HmacRIPEMD160=o._createHmacHelper(d)}(Math),n.RIPEMD160)}()},81451:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),function(){var t=n,r=t.lib,e=r.WordArray,i=r.Hasher,o=t.algo,s=[],c=o.SHA1=i.extend({_doReset:function(){this._hash=new e.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,r){for(var e=this._hash.words,i=e[0],n=e[1],o=e[2],c=e[3],a=e[4],h=0;h<80;h++){if(h<16)s[h]=0|t[r+h];else{var f=s[h-3]^s[h-8]^s[h-14]^s[h-16];s[h]=f<<1|f>>>31}var l=(i<<5|i>>>27)+a+s[h];l+=h<20?1518500249+(n&o|~n&c):h<40?1859775393+(n^o^c):h<60?(n&o|n&c|o&c)-1894007588:(n^o^c)-899497514,a=c,c=o,o=n<<30|n>>>2,n=i,i=l}e[0]=e[0]+i|0,e[1]=e[1]+n|0,e[2]=e[2]+o|0,e[3]=e[3]+c|0,e[4]=e[4]+a|0},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[14+(i+64>>>9<<4)]=Math.floor(e/4294967296),r[15+(i+64>>>9<<4)]=e,t.sigBytes=4*r.length,this._process(),this._hash},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});t.SHA1=i._createHelper(c),t.HmacSHA1=i._createHmacHelper(c)}(),n.SHA1)}()},32440:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(5373),function(){var t=o,r=t.lib.WordArray,e=t.algo,i=e.SHA256,n=e.SHA224=i.extend({_doReset:function(){this._hash=new r.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=i._doFinalize.call(this);return t.sigBytes-=4,t}});t.SHA224=i._createHelper(n),t.HmacSHA224=i._createHmacHelper(n)}(),o.SHA224)}()},5373:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),function(t){var r=n,e=r.lib,i=e.WordArray,o=e.Hasher,s=r.algo,c=[],a=[];!function(){function r(r){for(var e=t.sqrt(r),i=2;i<=e;i++)if(!(r%i))return!1;return!0}function e(t){return 4294967296*(t-(0|t))|0}for(var i=2,n=0;n<64;)r(i)&&(n<8&&(c[n]=e(t.pow(i,.5))),a[n]=e(t.pow(i,1/3)),n++),i++}();var h=[],f=s.SHA256=o.extend({_doReset:function(){this._hash=new i.init(c.slice(0))},_doProcessBlock:function(t,r){for(var e=this._hash.words,i=e[0],n=e[1],o=e[2],s=e[3],c=e[4],f=e[5],l=e[6],u=e[7],d=0;d<64;d++){if(d<16)h[d]=0|t[r+d];else{var p=h[d-15],v=(p<<25|p>>>7)^(p<<14|p>>>18)^p>>>3,_=h[d-2],y=(_<<15|_>>>17)^(_<<13|_>>>19)^_>>>10;h[d]=v+h[d-7]+y+h[d-16]}var g=i&n^i&o^n&o,B=(i<<30|i>>>2)^(i<<19|i>>>13)^(i<<10|i>>>22),w=u+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&f^~c&l)+a[d]+h[d];u=l,l=f,f=c,c=s+w|0,s=o,o=n,n=i,i=w+(B+g)|0}e[0]=e[0]+i|0,e[1]=e[1]+n|0,e[2]=e[2]+o|0,e[3]=e[3]+s|0,e[4]=e[4]+c|0,e[5]=e[5]+f|0,e[6]=e[6]+l|0,e[7]=e[7]+u|0},_doFinalize:function(){var r=this._data,e=r.words,i=8*this._nDataBytes,n=8*r.sigBytes;return e[n>>>5]|=128<<24-n%32,e[14+(n+64>>>9<<4)]=t.floor(i/4294967296),e[15+(n+64>>>9<<4)]=i,r.sigBytes=4*e.length,this._process(),this._hash},clone:function(){var t=o.clone.call(this);return t._hash=this._hash.clone(),t}});r.SHA256=o._createHelper(f),r.HmacSHA256=o._createHmacHelper(f)}(Math),n.SHA256)}()},6765:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(93756),function(t){var r=o,e=r.lib,i=e.WordArray,n=e.Hasher,s=r.x64.Word,c=r.algo,a=[],h=[],f=[];!function(){for(var t=1,r=0,e=0;e<24;e++){a[t+5*r]=(e+1)*(e+2)/2%64;var i=(2*t+3*r)%5;t=r%5,r=i}for(t=0;t<5;t++)for(r=0;r<5;r++)h[t+5*r]=r+(2*t+3*r)%5*5;for(var n=1,o=0;o<24;o++){for(var c=0,l=0,u=0;u<7;u++){if(1&n){var d=(1<<u)-1;d<32?l^=1<<d:c^=1<<d-32}128&n?n=n<<1^113:n<<=1}f[o]=s.create(c,l)}}();var l=[];!function(){for(var t=0;t<25;t++)l[t]=s.create()}();var u=c.SHA3=n.extend({cfg:n.cfg.extend({outputLength:512}),_doReset:function(){for(var t=this._state=[],r=0;r<25;r++)t[r]=new s.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(t,r){for(var e=this._state,i=this.blockSize/2,n=0;n<i;n++){var o=t[r+2*n],s=t[r+2*n+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(z=e[n]).high^=s,z.low^=o}for(var c=0;c<24;c++){for(var u=0;u<5;u++){for(var d=0,p=0,v=0;v<5;v++)d^=(z=e[u+5*v]).high,p^=z.low;var _=l[u];_.high=d,_.low=p}for(u=0;u<5;u++){var y=l[(u+4)%5],g=l[(u+1)%5],B=g.high,w=g.low;for(d=y.high^(B<<1|w>>>31),p=y.low^(w<<1|B>>>31),v=0;v<5;v++)(z=e[u+5*v]).high^=d,z.low^=p}for(var k=1;k<25;k++){var x=(z=e[k]).high,b=z.low,m=a[k];m<32?(d=x<<m|b>>>32-m,p=b<<m|x>>>32-m):(d=b<<m-32|x>>>64-m,p=x<<m-32|b>>>64-m);var S=l[h[k]];S.high=d,S.low=p}var A=l[0],H=e[0];for(A.high=H.high,A.low=H.low,u=0;u<5;u++)for(v=0;v<5;v++){var z=e[k=u+5*v],C=l[k],R=l[(u+1)%5+5*v],D=l[(u+2)%5+5*v];z.high=C.high^~R.high&D.high,z.low=C.low^~R.low&D.low}z=e[0];var E=f[c];z.high^=E.high,z.low^=E.low}},_doFinalize:function(){var r=this._data,e=r.words,n=(this._nDataBytes,8*r.sigBytes),o=32*this.blockSize;e[n>>>5]|=1<<24-n%32,e[(t.ceil((n+1)/o)*o>>>5)-1]|=128,r.sigBytes=4*e.length,this._process();for(var s=this._state,c=this.cfg.outputLength/8,a=c/8,h=[],f=0;f<a;f++){var l=s[f],u=l.high,d=l.low;u=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8),d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),h.push(d),h.push(u)}return new i.init(h,c)},clone:function(){for(var t=n.clone.call(this),r=t._state=this._state.slice(0),e=0;e<25;e++)r[e]=r[e].clone();return t}});r.SHA3=n._createHelper(u),r.HmacSHA3=n._createHmacHelper(u)}(Math),o.SHA3)}()},22761:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(93756),e(20072),function(){var t=o,r=t.x64,e=r.Word,i=r.WordArray,n=t.algo,s=n.SHA512,c=n.SHA384=s.extend({_doReset:function(){this._hash=new i.init([new e.init(3418070365,3238371032),new e.init(1654270250,914150663),new e.init(2438529370,812702999),new e.init(355462360,4144912697),new e.init(1731405415,4290775857),new e.init(2394180231,1750603025),new e.init(3675008525,1694076839),new e.init(1203062813,3204075428)])},_doFinalize:function(){var t=s._doFinalize.call(this);return t.sigBytes-=16,t}});t.SHA384=s._createHelper(c),t.HmacSHA384=s._createHmacHelper(c)}(),o.SHA384)}()},20072:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(93756),function(){var t=o,r=t.lib.Hasher,e=t.x64,i=e.Word,n=e.WordArray,s=t.algo;function c(){return i.create.apply(i,arguments)}var a=[c(1116352408,3609767458),c(1899447441,602891725),c(3049323471,3964484399),c(3921009573,2173295548),c(961987163,4081628472),c(1508970993,3053834265),c(2453635748,2937671579),c(2870763221,3664609560),c(3624381080,2734883394),c(310598401,1164996542),c(607225278,1323610764),c(1426881987,3590304994),c(1925078388,4068182383),c(2162078206,991336113),c(2614888103,633803317),c(3248222580,3479774868),c(3835390401,2666613458),c(4022224774,944711139),c(264347078,2341262773),c(604807628,2007800933),c(770255983,1495990901),c(1249150122,1856431235),c(1555081692,3175218132),c(1996064986,2198950837),c(2554220882,3999719339),c(2821834349,766784016),c(2952996808,2566594879),c(3210313671,3203337956),c(3336571891,1034457026),c(3584528711,2466948901),c(113926993,3758326383),c(338241895,168717936),c(666307205,1188179964),c(773529912,1546045734),c(1294757372,1522805485),c(1396182291,2643833823),c(1695183700,2343527390),c(1986661051,1014477480),c(2177026350,1206759142),c(2456956037,344077627),c(2730485921,1290863460),c(2820302411,3158454273),c(3259730800,3505952657),c(3345764771,106217008),c(3516065817,3606008344),c(3600352804,1432725776),c(4094571909,1467031594),c(275423344,851169720),c(430227734,3100823752),c(506948616,1363258195),c(659060556,3750685593),c(883997877,3785050280),c(958139571,3318307427),c(1322822218,3812723403),c(1537002063,2003034995),c(1747873779,3602036899),c(1955562222,1575990012),c(2024104815,1125592928),c(2227730452,2716904306),c(2361852424,442776044),c(2428436474,593698344),c(2756734187,3733110249),c(3204031479,2999351573),c(3329325298,3815920427),c(3391569614,3928383900),c(3515267271,566280711),c(3940187606,3454069534),c(4118630271,4000239992),c(116418474,1914138554),c(174292421,2731055270),c(289380356,3203993006),c(460393269,320620315),c(685471733,587496836),c(852142971,1086792851),c(1017036298,365543100),c(1126000580,2618297676),c(1288033470,3409855158),c(1501505948,4234509866),c(1607167915,987167468),c(1816402316,1246189591)],h=[];!function(){for(var t=0;t<80;t++)h[t]=c()}();var f=s.SHA512=r.extend({_doReset:function(){this._hash=new n.init([new i.init(1779033703,4089235720),new i.init(3144134277,2227873595),new i.init(1013904242,4271175723),new i.init(2773480762,1595750129),new i.init(1359893119,2917565137),new i.init(2600822924,725511199),new i.init(528734635,4215389547),new i.init(1541459225,327033209)])},_doProcessBlock:function(t,r){for(var e=this._hash.words,i=e[0],n=e[1],o=e[2],s=e[3],c=e[4],f=e[5],l=e[6],u=e[7],d=i.high,p=i.low,v=n.high,_=n.low,y=o.high,g=o.low,B=s.high,w=s.low,k=c.high,x=c.low,b=f.high,m=f.low,S=l.high,A=l.low,H=u.high,z=u.low,C=d,R=p,D=v,E=_,M=y,P=g,F=B,W=w,O=k,I=x,U=b,K=m,X=S,L=A,T=H,j=z,N=0;N<80;N++){var Z,q,G=h[N];if(N<16)q=G.high=0|t[r+2*N],Z=G.low=0|t[r+2*N+1];else{var V=h[N-15],J=V.high,Q=V.low,Y=(J>>>1|Q<<31)^(J>>>8|Q<<24)^J>>>7,$=(Q>>>1|J<<31)^(Q>>>8|J<<24)^(Q>>>7|J<<25),tt=h[N-2],rt=tt.high,et=tt.low,it=(rt>>>19|et<<13)^(rt<<3|et>>>29)^rt>>>6,nt=(et>>>19|rt<<13)^(et<<3|rt>>>29)^(et>>>6|rt<<26),ot=h[N-7],st=ot.high,ct=ot.low,at=h[N-16],ht=at.high,ft=at.low;q=(q=(q=Y+st+((Z=$+ct)>>>0<$>>>0?1:0))+it+((Z+=nt)>>>0<nt>>>0?1:0))+ht+((Z+=ft)>>>0<ft>>>0?1:0),G.high=q,G.low=Z}var lt,ut=O&U^~O&X,dt=I&K^~I&L,pt=C&D^C&M^D&M,vt=R&E^R&P^E&P,_t=(C>>>28|R<<4)^(C<<30|R>>>2)^(C<<25|R>>>7),yt=(R>>>28|C<<4)^(R<<30|C>>>2)^(R<<25|C>>>7),gt=(O>>>14|I<<18)^(O>>>18|I<<14)^(O<<23|I>>>9),Bt=(I>>>14|O<<18)^(I>>>18|O<<14)^(I<<23|O>>>9),wt=a[N],kt=wt.high,xt=wt.low,bt=T+gt+((lt=j+Bt)>>>0<j>>>0?1:0),mt=yt+vt;T=X,j=L,X=U,L=K,U=O,K=I,O=F+(bt=(bt=(bt=bt+ut+((lt+=dt)>>>0<dt>>>0?1:0))+kt+((lt+=xt)>>>0<xt>>>0?1:0))+q+((lt+=Z)>>>0<Z>>>0?1:0))+((I=W+lt|0)>>>0<W>>>0?1:0)|0,F=M,W=P,M=D,P=E,D=C,E=R,C=bt+(_t+pt+(mt>>>0<yt>>>0?1:0))+((R=lt+mt|0)>>>0<lt>>>0?1:0)|0}p=i.low=p+R,i.high=d+C+(p>>>0<R>>>0?1:0),_=n.low=_+E,n.high=v+D+(_>>>0<E>>>0?1:0),g=o.low=g+P,o.high=y+M+(g>>>0<P>>>0?1:0),w=s.low=w+W,s.high=B+F+(w>>>0<W>>>0?1:0),x=c.low=x+I,c.high=k+O+(x>>>0<I>>>0?1:0),m=f.low=m+K,f.high=b+U+(m>>>0<K>>>0?1:0),A=l.low=A+L,l.high=S+X+(A>>>0<L>>>0?1:0),z=u.low=z+j,u.high=H+T+(z>>>0<j>>>0?1:0)},_doFinalize:function(){var t=this._data,r=t.words,e=8*this._nDataBytes,i=8*t.sigBytes;return r[i>>>5]|=128<<24-i%32,r[30+(i+128>>>10<<5)]=Math.floor(e/4294967296),r[31+(i+128>>>10<<5)]=e,t.sigBytes=4*r.length,this._process(),this._hash.toX32()},clone:function(){var t=r.clone.call(this);return t._hash=this._hash.clone(),t},blockSize:32});t.SHA512=r._createHelper(f),t.HmacSHA512=r._createHmacHelper(f)}(),o.SHA512)}()},86072:function(t,r,e){!function(r,i,n){var o;t.exports=(o=e(9449),e(57534),e(8088),e(26910),e(35745),function(){var t=o,r=t.lib,e=r.WordArray,i=r.BlockCipher,n=t.algo,s=[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],c=[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],a=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],h=[{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}],f=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=n.DES=i.extend({_doReset:function(){for(var t=this._key.words,r=[],e=0;e<56;e++){var i=s[e]-1;r[e]=t[i>>>5]>>>31-i%32&1}for(var n=this._subKeys=[],o=0;o<16;o++){var h=n[o]=[],f=a[o];for(e=0;e<24;e++)h[e/6|0]|=r[(c[e]-1+f)%28]<<31-e%6,h[4+(e/6|0)]|=r[28+(c[e+24]-1+f)%28]<<31-e%6;for(h[0]=h[0]<<1|h[0]>>>31,e=1;e<7;e++)h[e]=h[e]>>>4*(e-1)+3;h[7]=h[7]<<5|h[7]>>>27}var l=this._invSubKeys=[];for(e=0;e<16;e++)l[e]=n[15-e]},encryptBlock:function(t,r){this._doCryptBlock(t,r,this._subKeys)},decryptBlock:function(t,r){this._doCryptBlock(t,r,this._invSubKeys)},_doCryptBlock:function(t,r,e){this._lBlock=t[r],this._rBlock=t[r+1],u.call(this,4,252645135),u.call(this,16,65535),d.call(this,2,858993459),d.call(this,8,16711935),u.call(this,1,1431655765);for(var i=0;i<16;i++){for(var n=e[i],o=this._lBlock,s=this._rBlock,c=0,a=0;a<8;a++)c|=h[a][((s^n[a])&f[a])>>>0];this._lBlock=s,this._rBlock=o^c}var l=this._lBlock;this._lBlock=this._rBlock,this._rBlock=l,u.call(this,1,1431655765),d.call(this,8,16711935),d.call(this,2,858993459),u.call(this,16,65535),u.call(this,4,252645135),t[r]=this._lBlock,t[r+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function u(t,r){var e=(this._lBlock>>>t^this._rBlock)&r;this._rBlock^=e,this._lBlock^=e<<t}function d(t,r){var e=(this._rBlock>>>t^this._lBlock)&r;this._lBlock^=e,this._rBlock^=e<<t}t.DES=i._createHelper(l);var p=n.TripleDES=i.extend({_doReset:function(){var t=this._key.words;if(2!==t.length&&4!==t.length&&t.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var r=t.slice(0,2),i=t.length<4?t.slice(0,2):t.slice(2,4),n=t.length<6?t.slice(0,2):t.slice(4,6);this._des1=l.createEncryptor(e.create(r)),this._des2=l.createEncryptor(e.create(i)),this._des3=l.createEncryptor(e.create(n))},encryptBlock:function(t,r){this._des1.encryptBlock(t,r),this._des2.decryptBlock(t,r),this._des3.encryptBlock(t,r)},decryptBlock:function(t,r){this._des3.decryptBlock(t,r),this._des2.encryptBlock(t,r),this._des1.decryptBlock(t,r)},keySize:6,ivSize:2,blockSize:2});t.TripleDES=i._createHelper(p)}(),o.TripleDES)}()},93756:function(t,r,e){!function(r,i){var n;t.exports=(n=e(9449),function(t){var r=n,e=r.lib,i=e.Base,o=e.WordArray,s=r.x64={};s.Word=i.extend({init:function(t,r){this.high=t,this.low=r}}),s.WordArray=i.extend({init:function(r,e){r=this.words=r||[],this.sigBytes=e!=t?e:8*r.length},toX32:function(){for(var t=this.words,r=t.length,e=[],i=0;i<r;i++){var n=t[i];e.push(n.high),e.push(n.low)}return o.create(e,this.sigBytes)},clone:function(){for(var t=i.clone.call(this),r=t.words=this.words.slice(0),e=r.length,n=0;n<e;n++)r[n]=r[n].clone();return t}})}(),n)}()}}]);
//# sourceMappingURL=3200.26e6d6ab.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,925,2486,3306,4867,5343,5687,7248],{84867:function(t,n,e){e.r(n),e.d(n,{__assign:function(){return i},__asyncDelegator:function(){return g},__asyncGenerator:function(){return b},__asyncValues:function(){return E},__await:function(){return _},__awaiter:function(){return l},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return j},__classPrivateFieldSet:function(){return T},__createBinding:function(){return p},__decorate:function(){return a},__exportStar:function(){return d},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return x},__importStar:function(){return I},__makeTemplateObject:function(){return C},__metadata:function(){return f},__param:function(){return c},__read:function(){return y},__rest:function(){return u},__spread:function(){return w},__spreadArray:function(){return m},__spreadArrays:function(){return h},__values:function(){return v}});var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(t,n)};function o(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var i=function(){return i=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},i.apply(this,arguments)};function u(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function a(t,n,e,r){var o,i=arguments.length,u=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)u=Reflect.decorate(t,n,e,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(u=(i<3?o(u):i>3?o(n,e,u):o(n,e))||u);return i>3&&u&&Object.defineProperty(n,e,u),u}function c(t,n){return function(e,r){n(e,r,t)}}function f(t,n){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,n)}function l(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{c(r.next(t))}catch(n){i(n)}}function a(t){try{c(r.throw(t))}catch(n){i(n)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))}function s(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=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 u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(t,u)}catch(a){i=[6,a],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var p=Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]};function d(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||p(n,t,e)}function v(t){var n="function"===typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(t,n){var e="function"===typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function w(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(y(arguments[n]));return t}function h(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var i=arguments[n],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}function m(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function _(t){return this instanceof _?(this.v=t,this):new _(t)}function b(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||a(t,n)}))})}function a(t,n){try{(e=o[t](n)).value instanceof _?Promise.resolve(e.value.v).then(c,f):l(i[0][2],e)}catch(r){l(i[0][3],r)}var e}function c(t){a("next",t)}function f(t){a("throw",t)}function l(t,n){t(n),i.shift(),i.length&&a(i[0][0],i[0][1])}}function g(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:_(t[r](n)),done:"return"===r}:o?o(n):n}:o}}function E(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=v(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function C(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}var O=Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n};function I(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&p(n,t,e);return O(n,t),n}function x(t){return t&&t.__esModule?t:{default:t}}function P(t,n,e,r){if("a"===e&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof n?t!==n||!r:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(t):r?r.value:n.get(t)}function T(t,n,e,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 n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,e):o?o.value=e:n.set(t,e),e}function j(t,n){if(null===n||"object"!==typeof n&&"function"!==typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?n===t:t.has(n)}},46611:function(t,n,e){e.d(n,{G:function(){return u},Q:function(){return a}});var r=e(80322),o=e.n(r),i=o().createContext({}),u=function(t){var n=t.children,e=t.externalEntities;return o().createElement(i.Provider,{value:null!==e&&void 0!==e?e:{}},n)},a=function(){return(0,r.useContext)(i)}},32445:function(t,n,e){e.d(n,{YJ:function(){return p},pV:function(){return s},sB:function(){return l}});var r=e(84867),o=e(80322),i=e.n(o),u=e(46611),a=i().createContext(null),c=i().createContext(null),f=function(t,n){var e;return(0,r.__assign)((0,r.__assign)({},t),((e={})[n.name]={status:n.status,error:n.error,customData:n.customData},e))},l=function(t){var n=t.children,e=(0,o.useReducer)(f,{}),r=e[0],u=e[1];return i().createElement(c.Provider,{value:u},i().createElement(a.Provider,{value:r},n))},s=function(){var t=a,n=(0,o.useContext)(t);if(!n)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return n},p=function(){var t=(0,u.Q)().operationEntities,n=c;t&&(n=t.operationDispatchContext);var e=(0,o.useContext)(n);if(!e)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return e}},35913:function(t,n,e){e.d(n,{EN:function(){return v},Lq:function(){return p},PF:function(){return f},VZ:function(){return d},Xo:function(){return h},ZJ:function(){return s},b4:function(){return w}});var r=e(84867),o=e(45),i=e(80322),u=e.n(i),a=e(46611),c=e(32445),f={areaBiId:"areaUndefined"},l=(0,i.createContext)({reportComponentValidationErrorEvent:function(t,n,e){},logComponentMountEvent:function(t,n,e){},twoUITelemetryIds:f,twoUIFlights:[],getCv:function(){return""},reportClick:function(t){},checkUrlAndReportHttp:function(t){}}),s=function(){return(0,i.useContext)(l)},p=function(){return(0,i.useContext)(l).twoUIFlights},d=function(){return(0,i.useContext)(l).twoUITelemetryIds},v=function(t,n,e){var r=(0,i.useContext)(l);(0,o.JO)((function(){r.logComponentMountEvent(t,n,e)}))},y=function(t){var n=t.replace(/[^a-z0-9\-]/gi,"").substring(0,50);return 0===n.length?f.areaBiId:n},w=function(t,n,e){},h=function(t){var n=t.twoUITelemetryIds,e=t.twoUIFlights,i=t.logComponentMountEvent,f=t.reportHttpUrl,s=t.reportComponentValidationErrorEvent,p=t.reportClick,d=t.getCv,v=t.children,h=t.externalEntities,m=function(t){return(0,r.__assign)((0,r.__assign)({},t),{areaBiId:y(t.areaBiId)})}(n);w=s||w;return u().createElement(l.Provider,{value:{twoUITelemetryIds:m,twoUIFlights:e,logComponentMountEvent:function(t,n,e){null===i||void 0===i||i(t,n,e)},reportClick:function(t){null===p||void 0===p||p(t)},reportComponentValidationErrorEvent:function(t,n,e){null===w||void 0===w||w(t,n,e)},getCv:function(){return(null===d||void 0===d?void 0:d())||""},checkUrlAndReportHttp:function(t){t&&f&&(0,o.q$)(t)&&f(t)}}},u().createElement(a.G,{externalEntities:h},u().createElement(c.sB,null,v)))}},70925:function(t,n,e){e.r(n),e.d(n,{DefaultTwoUITelemetryIds:function(){return r.PF},TwoUIOperationsProvider:function(){return o.sB},TwoUIProgressView:function(){return y},TwoUITelemetryProvider:function(){return r.Xo},reportComponentValidationErrorEvent:function(){return r.b4},useComponentMountLogger:function(){return r.EN},useTwoUIComponentQos:function(){return l},useTwoUIFlights:function(){return r.Lq},useTwoUIOperationDispatcher:function(){return o.YJ},useTwoUITelemetry:function(){return r.ZJ},useTwoUITelemetryIds:function(){return r.VZ}});var r=e(35913),o=e(32445),i=e(80322),u=e.n(i),a=e(46611),c={startOperation:function(t,n,e){},reportSuccess:function(t,n,e){},reportFailure:function(t,n,e,r){},reportCancel:function(t,n){}},f=(0,i.createContext)(c),l=function(){var t=(0,a.Q)().componentQosContext,n=f;t&&(n=t);var e=(0,i.useContext)(n);if(!e)throw new Error("TwoUIComponentQoS: Context is uninitialized");return e},s=e(84867),p=e(45),d=function(t){var n,e=(0,o.pV)();if(t.updatingView){var r=null===(n=e[t.operationData.operationName])||void 0===n?void 0:n.status;return u().createElement(p.ip,{isUpdating:"updating"===r},u().createElement(v,(0,s.__assign)({},t)))}return u().createElement(v,(0,s.__assign)({},t))},v=function(t){var n=t.operationData,e=t.finishedView,r=t.failedView,i=void 0===r?null:r,u=t.firstLoadView,a=void 0===u?null:u,c=t.inertView,f=void 0===c?null:c,l=t.updateFailedView,s=void 0===l?i:l,p=t.updatingView,d=void 0===p?e:p,v=(0,o.pV)()[n.operationName],y=null===v||void 0===v?void 0:v.status;if(!y)return"finished"===n.defaultState?e:f;switch(y){case"updating":return d;case"first-load":return a;case"finished":return e;case"update-failed":return s;case"failed":return i;default:return f}},y=function(t){var n,e,r=null!==(e=null===(n=(0,a.Q)().operationEntities)||void 0===n?void 0:n.ExternalProgressView)&&void 0!==e?e:d;return u().createElement(r,(0,s.__assign)({},t))}}}]);
//# sourceMappingURL=3306.9ac74dd2.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,2486,3407,4867,5343,5788,7248],{25788:function(n,r,t){t.r(r),t.d(r,{createICUString:function(){return p},getPluralString:function(){return h},getPluralStringUnsafe:function(){return v},getStringForRange:function(){return l},mapMidgardLocaleToCLDRLocale:function(){return f},mapNumberToRangeForLocale:function(){return s},parsePluralString:function(){return y}});var e=t(84867),o=t(73594),u=t(44886),c=t.n(u),i=["zero","one","two","few","many","other"],a={zero:/zero\s*{([^}]+)}/,one:/one\s*{([^}]+)}/,two:/two\s*{([^}]+)}/,few:/few\s*{([^}]+)}/,many:/many\s*{([^}]+)}/,other:/other\s*{([^}]+)}/};function f(n){return n.split("-")[0]}function l(n,r){var t=(0,e.__read)(a[r].exec(n)||[],2)[1];return void 0===t?"":t}function s(n,r){return c()(r,n)}function p(n){var r="";return i.forEach((function(t){n[t]&&(r+=" ".concat(t,"{").concat(n[t],"}"))})),"".concat("{count, plural,").concat(r).concat("}")}function y(n,r,t){return l(n,s(r,t)||"other")}function v(n,r,t){if(r<0||r!==1/0&&!(0,o.isSafeInteger)(r))throw new Error("count must be a positive integer or Infinity");return y(n,r,t)}function h(n,r,t){if(void 0===r)return n;try{return v(n,r,t||"en")}catch(e){return n}}},44886:function(n){var r={};function t(n){var t;return r[n]?n:(t=n.toLowerCase().replace("_","-"),r[t]?t:(t=t.split("-")[0],r[t]?t:null))}function e(n,e){var o=t(n);if(!o)return-1;if(!r[o].cFn)return 0;var u=String(e),c=u.indexOf(".")<0?"":u.split(".")[1],i=c.length,a=+e,f=+u.split(".")[0],l=0===c.length?0:+c.replace(/0+$/,"");return r[o].cFn(a,f,i,+c,l)}function o(n,e){var o=t(n);if(!o)return-1;if(!r[o].oFn)return 0;var u=String(e),c=u.indexOf(".")<0?"":u.split(".")[1],i=c.length,a=+e,f=+u.split(".")[0],l=0===c.length?0:+c.replace(/0+$/,"");return r[o].oFn(a,f,i,+c,l)}n.exports=function(n,o){var u=t(n);return u?r[u].c[e(u,o)]:null},n.exports.indexOf=e,n.exports.forms=function(n){var e=t(n);return r[e]?r[e].c:null},n.exports.ordinal=function(n,e){var u=t(n);return r[u]?r[u].o[o(u,e)]:null},n.exports.ordinal.indexOf=o,n.exports.ordinal.forms=function(n){var e=t(n);return r[e]?r[e].o:null};var u=["zero","one","two","few","many","other"];function c(n){return u[n]}function i(n,t){var e;for(t.c=t.c?t.c.map(c):["other"],t.o=t.o?t.o.map(c):["other"],e=0;e<n.length;e++)r[n[e]]=t}function a(n,r,t){return n<=t&&t<=r&&t%1===0}function f(n,r){return n.indexOf(r)>=0}i(["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(n){return 1===n?0:1}}),i(["ak","bho","guw","ln","mg","nso","pa","ti","wa"],{c:[1,5],cFn:function(n){return a(0,1,n)?0:1}}),i(["am","fa","kn","zu"],{c:[1,5],cFn:function(n,r){return 0===r||1===n?0:1}}),i(["ar","ars"],{c:[0,1,2,3,4,5],cFn:function(n){var r=n%100;return 0===n?0:1===n?1:2===n?2:a(3,10,r)?3:a(11,99,r)?4:5}}),i(["as","bn"],{c:[1,5],cFn:function(n,r){return 0===r||1===n?0:1},o:[1,2,3,4,5],oFn:function(n){return f([1,5,7,8,9,10],n)?0:f([2,3],n)?1:4===n?2:6===n?3:4}}),i(["ast","de","et","fi","fy","gl","ia","io","ji","nl","pt-pt","sw","ur","yi"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1}}),i(["az"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,3,4,5],oFn:function(n,r){var t=r%10,e=r%100,o=r%1e3;return f([1,2,5,7,8],t)||f([20,50,70,80],e)?0:f([3,4],t)||f([100,200,300,400,500,600,700,800,900],o)?1:0===r||6===t||f([40,60,90],e)?2:3}}),i(["be"],{c:[1,3,4,5],cFn:function(n){var r=n%10,t=n%100;return 1===r&&11!==t?0:a(2,4,r)&&!a(12,14,t)?1:0===r||a(5,9,r)||a(11,14,t)?2:3},o:[3,5],oFn:function(n){var r=n%100;return f([2,3],n%10)&&!f([12,13],r)?0:1}}),i(["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"],{}),i(["br"],{c:[1,2,3,4,5],cFn:function(n){var r=n%10,t=n%100,e=n%1e6;return 1!==r||f([11,71,91],t)?2!==r||f([12,72,92],t)?!a(3,4,r)&&9!==r||a(10,19,t)||a(70,79,t)||a(90,99,t)?0!==n&&0===e?3:4:2:1:0}}),i(["bs","hr","sh","sr"],{c:[1,3,5],cFn:function(n,r,t,e){var o=r%10,u=r%100,c=e%10,i=e%100;return 0===t&&1===o&&11!==u||1===c&&11!==i?0:0===t&&a(2,4,o)&&!a(12,14,u)||a(2,4,c)&&!a(12,14,i)?1:2}}),i(["ca"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[1,2,3,5],oFn:function(n){return f([1,3],n)?0:2===n?1:4===n?2:3}}),i(["ceb"],{c:[1,5],cFn:function(n,r,t,e){var o=r%10,u=e%10;return 0===t&&f([1,2,3],r)||0===t&&!f([4,6,9],o)||0!==t&&!f([4,6,9],u)?0:1}}),i(["cs","sk"],{c:[1,3,4,5],cFn:function(n,r,t){return 1===r&&0===t?0:a(2,4,r)&&0===t?1:0!==t?2:3}}),i(["cy"],{c:[0,1,2,3,4,5],cFn:function(n){return 0===n?0:1===n?1:2===n?2:3===n?3:6===n?4:5},o:[0,1,2,3,4,5],oFn:function(n){return f([0,7,8,9],n)?0:1===n?1:2===n?2:f([3,4],n)?3:f([5,6],n)?4:5}}),i(["da"],{c:[1,5],cFn:function(n,r,t,e,o){return 1===n||0!==o&&f([0,1],r)?0:1}}),i(["dsb","hsb"],{c:[1,2,3,5],cFn:function(n,r,t,e){var o=r%100,u=e%100;return 0===t&&1===o||1===u?0:0===t&&2===o||2===u?1:0===t&&a(3,4,o)||a(3,4,u)?2:3}}),i(["en"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[1,2,3,5],oFn:function(n){var r=n%10,t=n%100;return 1===r&&11!==t?0:2===r&&12!==t?1:3===r&&13!==t?2:3}}),i(["ff","kab"],{c:[1,5],cFn:function(n,r){return f([0,1],r)?0:1}}),i(["fil","tl"],{c:[1,5],cFn:function(n,r,t,e){var o=r%10,u=e%10;return 0===t&&f([1,2,3],r)||0===t&&!f([4,6,9],o)||0!==t&&!f([4,6,9],u)?0:1},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["fr","hy"],{c:[1,5],cFn:function(n,r){return f([0,1],r)?0:1},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["ga"],{c:[1,2,3,4,5],cFn:function(n){return 1===n?0:2===n?1:a(3,6,n)?2:a(7,10,n)?3:4},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["gd"],{c:[1,2,3,5],cFn:function(n){return f([1,11],n)?0:f([2,12],n)?1:a(3,10,n)||a(13,19,n)?2:3},o:[1,2,3,5],oFn:function(n){return f([1,11],n)?0:f([2,12],n)?1:f([3,13],n)?2:3}}),i(["gu","hi"],{c:[1,5],cFn:function(n,r){return 0===r||1===n?0:1},o:[1,2,3,4,5],oFn:function(n){return 1===n?0:f([2,3],n)?1:4===n?2:6===n?3:4}}),i(["gv"],{c:[1,2,3,4,5],cFn:function(n,r,t){var e=r%10;return 0===t&&1===e?0:0===t&&2===e?1:0===t&&f([0,20,40,60,80],r%100)?2:0!==t?3:4}}),i(["he","iw"],{c:[1,2,4,5],cFn:function(n,r,t){var e=n%10;return 1===r&&0===t?0:2===r&&0===t?1:0!==t||a(0,10,n)||0!==e?3:2}}),i(["hu"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,5],oFn:function(n){return f([1,5],n)?0:1}}),i(["is"],{c:[1,5],cFn:function(n,r,t,e,o){return 0===o&&1===r%10&&11!==r%100||0!==o?0:1}}),i(["it","sc","scn"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[4,5],oFn:function(n){return f([11,8,80,800],n)?0:1}}),i(["iu","naq","se","sma","smi","smj","smn","sms"],{c:[1,2,5],cFn:function(n){return 1===n?0:2===n?1:2}}),i(["ka"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,4,5],oFn:function(n,r){var t=r%100;return 1===r?0:0===r||a(2,20,t)||40===t||60===t||80===t?1:2}}),i(["kk"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[4,5],oFn:function(n){var r=n%10;return 6===r||9===r||0===r&&0!==n?0:1}}),i(["ksh"],{c:[0,1,5],cFn:function(n){return 0===n?0:1===n?1:2}}),i(["kw"],{c:[0,1,2,3,4,5],cFn:function(n){var r=n%100,t=n%1e3,e=n%1e5,o=n%1e6;return 0===n?0:1===n?1:f([2,22,42,62,82],r)||0===t&&(a(1e3,2e4,e)||4e4===e||6e4===e||8e4===e)||0!==n&&1e5===o?2:f([3,23,43,63,83],r)?3:1!==n&&f([1,21,41,61,81],r)?4:5},o:[1,4,5],oFn:function(n){var r=n%100;return a(1,4,n)||a(1,4,r)||a(21,24,r)||a(41,44,r)||a(61,64,r)||a(81,84,r)?0:5===n||5===r?1:2}}),i(["lag"],{c:[0,1,5],cFn:function(n,r){return 0===n?0:f([0,1],r)&&0!==n?1:2}}),i(["lo","ms","vi"],{o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["lt"],{c:[1,3,4,5],cFn:function(n,r,t,e){var o=n%10,u=n%100;return 1!==o||a(11,19,u)?a(2,9,o)&&!a(11,19,u)?1:0!==e?2:3:0}}),i(["lv","prg"],{c:[0,1,5],cFn:function(n,r,t,e){var o=n%10,u=n%100,c=e%100,i=e%10;return 0===o||a(11,19,u)||2===t&&a(11,19,c)?0:1===o&&11!==u||2===t&&1===i&&11!==c||2!==t&&1===i?1:2}}),i(["mk"],{c:[1,5],cFn:function(n,r,t,e){return 0===t&&1===r%10&&11!==r%100||1===e%10&&11!==e%100?0:1},o:[1,2,4,5],oFn:function(n,r){var t=r%10,e=r%100;return 1===t&&11!==e?0:2===t&&12!==e?1:f([7,8],t)&&!f([17,18],e)?2:3}}),i(["mo","ro"],{c:[1,3,5],cFn:function(n,r,t){return 1===r&&0===t?0:0!==t||0===n||a(2,19,n%100)?1:2},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["mr"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,2,3,5],oFn:function(n){return 1===n?0:f([2,3],n)?1:4===n?2:3}}),i(["mt"],{c:[1,3,4,5],cFn:function(n){var r=n%100;return 1===n?0:0===n||a(2,10,r)?1:a(11,19,r)?2:3}}),i(["ne"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,5],oFn:function(n){return a(1,4,n)?0:1}}),i(["or"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,2,3,4,5],oFn:function(n){return 1===n||5===n||a(7,9,n)?0:f([2,3],n)?1:4===n?2:6===n?3:4}}),i(["pl"],{c:[1,3,4,5],cFn:function(n,r,t){var e=r%10,o=r%100;return 1===r&&0===t?0:0===t&&a(2,4,e)&&!a(12,14,o)?1:0===t&&1!==r&&a(0,1,e)||0===t&&a(5,9,e)||0===t&&a(12,14,o)?2:3}}),i(["pt"],{c:[1,5],cFn:function(n,r){return a(0,1,r)?0:1}}),i(["ru"],{c:[1,3,4,5],cFn:function(n,r,t){var e=r%10,o=r%100;return 0===t&&1===e&&11!==o?0:0===t&&a(2,4,e)&&!a(12,14,o)?1:0===t&&0===e||0===t&&a(5,9,e)||0===t&&a(11,14,o)?2:3}}),i(["shi"],{c:[1,3,5],cFn:function(n,r){return 0===r||1===n?0:a(2,10,n)?1:2}}),i(["si"],{c:[1,5],cFn:function(n,r,t,e){return f([0,1],n)||0===r&&1===e?0:1}}),i(["sl"],{c:[1,2,3,5],cFn:function(n,r,t){var e=r%100;return 0===t&&1===e?0:0===t&&2===e?1:0===t&&a(3,4,e)||0!==t?2:3}}),i(["sq"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,4,5],oFn:function(n){return 1===n?0:4===n%10&&14!==n%100?1:2}}),i(["sv"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[1,5],oFn:function(n){var r=n%100;return f([1,2],n%10)&&!f([11,12],r)?0:1}}),i(["tk"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[3,5],oFn:function(n){return f([6,9],n%10)||10===n?0:1}}),i(["tzm"],{c:[1,5],cFn:function(n){return a(0,1,n)||a(11,99,n)?0:1}}),i(["uk"],{c:[1,3,4,5],cFn:function(n,r,t){var e=r%10,o=r%100;return 0===t&&1===e&&11!==o?0:0===t&&a(2,4,e)&&!a(12,14,o)?1:0===t&&0===e||0===t&&a(5,9,e)||0===t&&a(11,14,o)?2:3},o:[3,5],oFn:function(n){return 3===n%10&&13!==n%100?0:1}})},84867:function(n,r,t){t.r(r),t.d(r,{__assign:function(){return u},__asyncDelegator:function(){return g},__asyncGenerator:function(){return m},__asyncValues:function(){return _},__await:function(){return w},__awaiter:function(){return l},__classPrivateFieldGet:function(){return P},__classPrivateFieldIn:function(){return E},__classPrivateFieldSet:function(){return S},__createBinding:function(){return p},__decorate:function(){return i},__exportStar:function(){return y},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return x},__importStar:function(){return k},__makeTemplateObject:function(){return O},__metadata:function(){return f},__param:function(){return a},__read:function(){return h},__rest:function(){return c},__spread:function(){return d},__spreadArray:function(){return F},__spreadArrays:function(){return b},__values:function(){return v}});var e=function(n,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t])},e(n,r)};function o(n,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=n}e(n,r),n.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var u=function(){return u=Object.assign||function(n){for(var r,t=1,e=arguments.length;t<e;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n},u.apply(this,arguments)};function c(n,r){var t={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&r.indexOf(e)<0&&(t[e]=n[e]);if(null!=n&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(n);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(n,e[o])&&(t[e[o]]=n[e[o]])}return t}function i(n,r,t,e){var o,u=arguments.length,c=u<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,t):e;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)c=Reflect.decorate(n,r,t,e);else for(var i=n.length-1;i>=0;i--)(o=n[i])&&(c=(u<3?o(c):u>3?o(r,t,c):o(r,t))||c);return u>3&&c&&Object.defineProperty(r,t,c),c}function a(n,r){return function(t,e){r(t,e,n)}}function f(n,r){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(n,r)}function l(n,r,t,e){return new(t||(t=Promise))((function(o,u){function c(n){try{a(e.next(n))}catch(r){u(r)}}function i(n){try{a(e.throw(n))}catch(r){u(r)}}function a(n){var r;n.done?o(n.value):(r=n.value,r instanceof t?r:new t((function(n){n(r)}))).then(c,i)}a((e=e.apply(n,r||[])).next())}))}function s(n,r){var t,e,o,u,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,e&&(o=2&u[0]?e.return:u[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,u[1])).done)return o;switch(e=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,e=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){c.label=u[1];break}if(6===u[0]&&c.label<o[1]){c.label=o[1],o=u;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(u);break}o[2]&&c.ops.pop(),c.trys.pop();continue}u=r.call(n,c)}catch(i){u=[6,i],e=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var p=Object.create?function(n,r,t,e){void 0===e&&(e=t);var o=Object.getOwnPropertyDescriptor(r,t);o&&!("get"in o?!r.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,o)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]};function y(n,r){for(var t in n)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||p(r,n,t)}function v(n){var r="function"===typeof Symbol&&Symbol.iterator,t=r&&n[r],e=0;if(t)return t.call(n);if(n&&"number"===typeof n.length)return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(n,r){var t="function"===typeof Symbol&&n[Symbol.iterator];if(!t)return n;var e,o,u=t.call(n),c=[];try{for(;(void 0===r||r-- >0)&&!(e=u.next()).done;)c.push(e.value)}catch(i){o={error:i}}finally{try{e&&!e.done&&(t=u.return)&&t.call(u)}finally{if(o)throw o.error}}return c}function d(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(h(arguments[r]));return n}function b(){for(var n=0,r=0,t=arguments.length;r<t;r++)n+=arguments[r].length;var e=Array(n),o=0;for(r=0;r<t;r++)for(var u=arguments[r],c=0,i=u.length;c<i;c++,o++)e[o]=u[c];return e}function F(n,r,t){if(t||2===arguments.length)for(var e,o=0,u=r.length;o<u;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return n.concat(e||Array.prototype.slice.call(r))}function w(n){return this instanceof w?(this.v=n,this):new w(n)}function m(n,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,o=t.apply(n,r||[]),u=[];return e={},c("next"),c("throw"),c("return"),e[Symbol.asyncIterator]=function(){return this},e;function c(n){o[n]&&(e[n]=function(r){return new Promise((function(t,e){u.push([n,r,t,e])>1||i(n,r)}))})}function i(n,r){try{(t=o[n](r)).value instanceof w?Promise.resolve(t.value.v).then(a,f):l(u[0][2],t)}catch(e){l(u[0][3],e)}var t}function a(n){i("next",n)}function f(n){i("throw",n)}function l(n,r){n(r),u.shift(),u.length&&i(u[0][0],u[0][1])}}function g(n){var r,t;return r={},e("next"),e("throw",(function(n){throw n})),e("return"),r[Symbol.iterator]=function(){return this},r;function e(e,o){r[e]=n[e]?function(r){return(t=!t)?{value:w(n[e](r)),done:"return"===e}:o?o(r):r}:o}}function _(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,t=n[Symbol.asyncIterator];return t?t.call(n):(n=v(n),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r);function e(t){r[t]=n[t]&&function(r){return new Promise((function(e,o){(function(n,r,t,e){Promise.resolve(e).then((function(r){n({value:r,done:t})}),r)})(e,o,(r=n[t](r)).done,r.value)}))}}}function O(n,r){return Object.defineProperty?Object.defineProperty(n,"raw",{value:r}):n.raw=r,n}var j=Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r};function k(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var t in n)"default"!==t&&Object.prototype.hasOwnProperty.call(n,t)&&p(r,n,t);return j(r,n),r}function x(n){return n&&n.__esModule?n:{default:n}}function P(n,r,t,e){if("a"===t&&!e)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof r?n!==r||!e:!r.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?e:"a"===t?e.call(n):e?e.value:r.get(n)}function S(n,r,t,e,o){if("m"===e)throw new TypeError("Private method is not writable");if("a"===e&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof r?n!==r||!o:!r.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===e?o.call(n,t):o?o.value=t:r.set(n,t),t}function E(n,r){if(null===r||"object"!==typeof r&&"function"!==typeof r)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof n?r===n:n.has(r)}}}]);
//# sourceMappingURL=3407.0ae913e6.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[3431],{13431:function(n,o,i){var l,a,e;i.r(o),i.d(o,{safeConsole:function(){return v}});var d=function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o]},u="undefined"!==typeof console?console:void 0,v={trace:(null!==(l=null===u||void 0===u?void 0:u.trace)&&void 0!==l?l:d).bind(u),warn:(null!==(a=null===u||void 0===u?void 0:u.warn)&&void 0!==a?a:d).bind(u),table:(null!==(e=null===u||void 0===u?void 0:u.table)&&void 0!==e?e:d).bind(u)}}}]);
//# sourceMappingURL=3431.93f81ca8.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[1179,3560],{63560:function(e,t,r){r.r(t),r.d(t,{createSharedReactContext:function(){return p}});var n=r(80322),a={};var c,u,i=(u={},(c="@1js/create-shared-react-context")in a||(a[c]=u),{get:function(){return a[c]},set:function(e){return a[c]=e}});function p(e,t){var r=i.get();return r[t]||(r[t]=n.createContext(e))}}}]);
//# sourceMappingURL=3560.57577b23.chunk.js.map
/*! For license information please see 3815.1e40de27.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[3815,3951],{65783:function(e,t,n){"use strict";n.d(t,{v:function(){return Mu}});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)};var o=function(){return o=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},o.apply(this,arguments)};var i,a,s=n(40154);!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"}(i||(i={})),function(e){e[e.NotStarted=0]="NotStarted",e[e.InProgress=1]="InProgress",e[e.Completed=2]="Completed"}(a||(a={}));var c,u=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]),l=n(49522),d=n(45103),f=n(9444),h=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(0,d.C6)(t,e),t}(f.l),p=["interaction_required","consent_required","login_required"],g=["message_only","additional_action","basic_action","user_password_expired","consent_required"],v={code:"no_tokens_found",desc:"No refresh token found in the cache. Please sign-in."},m={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."},y=function(e){function t(n,r,o,i,a,s,c){var u=e.call(this,n,r,o)||this;return Object.setPrototypeOf(u,t.prototype),u.timestamp=i||l.YM.EMPTY_STRING,u.traceId=a||l.YM.EMPTY_STRING,u.correlationId=s||l.YM.EMPTY_STRING,u.claims=c||l.YM.EMPTY_STRING,u.name="InteractionRequiredAuthError",u}return(0,d.C6)(t,e),t.isInteractionRequiredError=function(e,t,n){var r=!!e&&p.indexOf(e)>-1,o=!!n&&g.indexOf(n)>-1,i=!!t&&p.some((function(e){return t.indexOf(e)>-1}));return r||i||o},t.createNoTokensFoundError=function(){return new t(v.code,v.desc)},t.createNativeAccountUnavailableError=function(){return new t(m.code,m.desc)},t}(f.l),C=n(77833),T={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."},E={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."},w=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(0,d.C6)(t,e),t.createMissingKidError=function(){return new t(T.code,T.desc)},t.createMissingAlgError=function(){return new t(E.code,E.desc)},t}(f.l),b=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 w.createMissingKidError();if(!t.alg)throw w.createMissingAlgError();var n=new e({typ:t.typ||l.IX.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(n)},e}(),_=function(){function e(){}return e.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},e}(),I=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,_.decimalToHex(e[0])+_.decimalToHex(e[1])+_.decimalToHex(e[2])+_.decimalToHex(e[3])+"-"+_.decimalToHex(e[4])+_.decimalToHex(e[5])+"-"+_.decimalToHex(e[6])+_.decimalToHex(e[7])+"-"+_.decimalToHex(e[8])+_.decimalToHex(e[9])+"-"+_.decimalToHex(e[10])+_.decimalToHex(e[11])+_.decimalToHex(e[12])+_.decimalToHex(e[13])+_.decimalToHex(e[14])+_.decimalToHex(e[15])}catch(a){for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",r=0,o=l.YM.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}(),S=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=l.YM.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}(),A=function(){function e(){}return e.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,l.YM.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},e.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,l.YM.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},e.prototype.encode=function(e){var t=S.stringToUtf8Arr(e);return this.base64EncArr(t)},e.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,n=l.YM.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}(),k=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 S.utf8ArrToString(n)},e.prototype.base64DecToArr=function(e,t){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,l.YM.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,u=0,d=0;d<r;d++)if(s=3&d,c|=this.b64ToUint6(n.charCodeAt(d))<<18-6*s,3===s||r-d===1){for(a=0;a<3&&u<o;a++,u++)i[u]=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}(),R=n(16241),P={code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},N={code:"crypto_nonexistent",desc:"The crypto object or function is not available."},O={code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},M={code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},x={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."},D={code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},L={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."},U={code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},H={code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},q={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."},F={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."},B={code:"empty_window_error",desc:"window.open returned null or undefined window object."},K={code:"user_cancelled",desc:"User cancelled the flow."},j={code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},Y={code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},G={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."},z={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"},V={code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},W={code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},X={code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},Q={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."},$={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'."},J={code:"no_token_request_cache_error",desc:"No token request found in cache."},Z={code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},ee={code:"no_cached_authority_error",desc:"No cached authority found."},te={code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},ne={code:"invalid_cache_type",desc:"Invalid cache type"},re={code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},oe={code:"database_not_open",desc:"Database is not open!"},ie={code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},ae={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'"},se={code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},ce={code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},ue={code:"unable_to_load_token",desc:"Error loading token to cache."},le={code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},de={code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},fe={code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},he={code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},pe={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."},ge={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."},ve={code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},me={code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},ye={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."},Ce={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."},Te={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."},Ee=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(0,s.C6)(t,e),t.createPkceNotGeneratedError=function(e){return new t(P.code,P.desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(N.code,N.desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(O.code,O.desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(M.code,M.desc)},t.createEmptyHashError=function(e){return new t(x.code,x.desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(D.code,D.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(L.code,L.desc)},t.createUnableToParseStateError=function(){return new t(U.code,U.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(H.code,H.desc)},t.createInteractionInProgressError=function(){return new t(q.code,q.desc)},t.createPopupWindowError=function(e){var n=F.desc;return n=R.$.isEmpty(e)?n:n+" Details: "+e,new t(F.code,n)},t.createEmptyWindowCreatedError=function(){return new t(B.code,B.desc)},t.createUserCancelledError=function(){return new t(K.code,K.desc)},t.createMonitorPopupTimeoutError=function(){return new t(j.code,j.desc)},t.createMonitorIframeTimeoutError=function(){return new t(Y.code,Y.desc)},t.createRedirectInIframeError=function(e){return new t(G.code,G.desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(z.code,z.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(V.code,V.desc)},t.createIframeClosedPrematurelyError=function(){return new t(W.code,W.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(X.code,X.desc)},t.createNoAccountError=function(){return new t(Q.code,Q.desc)},t.createSilentPromptValueError=function(e){return new t($.code,$.desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(Z.code,Z.desc)},t.createNoTokenRequestCacheError=function(){return new t(J.code,J.desc)},t.createAuthRequestNotSetError=function(){return new t(te.code,te.desc)},t.createNoCachedAuthorityError=function(){return new t(ee.code,ee.desc)},t.createInvalidCacheTypeError=function(){return new t(ne.code,""+ne.desc)},t.createNonBrowserEnvironmentError=function(){return new t(re.code,re.desc)},t.createDatabaseNotOpenError=function(){return new t(oe.code,oe.desc)},t.createNoNetworkConnectivityError=function(){return new t(ie.code,ie.desc)},t.createPostRequestFailedError=function(e,n){return new t(ae.code,ae.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createGetRequestFailedError=function(e,n){return new t(se.code,se.desc+" | Network client threw: "+e+" | Attempted to reach: "+n.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(ce.code,ce.desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(ue.code,ue.desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(le.code,le.desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(de.code,de.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(fe.code,fe.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(he.code,he.desc)},t.createDatabaseUnavailableError=function(){return new t(pe.code,pe.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(ge.code,ge.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(ve.code,ve.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(me.code,me.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(ye.code,ye.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(Ce.code,Ce.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(Te.code,Te.desc)},t}(f.l),we=function(){function e(e){this.base64Encode=new A,this.cryptoObj=e}return e.prototype.generateCodes=function(){return(0,s.sH)(this,void 0,void 0,(function(){var e,t;return(0,s.YH)(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(t){throw Ee.createPkceNotGeneratedError(t)}},e.prototype.generateCodeChallengeFromVerifier=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n;return(0,s.YH)(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(),Ee.createPkceNotGeneratedError(n);case 3:return[2]}}))}))},e}(),be=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(r){return[2,window.crypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){return[2,window.crypto.subtle.exportKey(C.jb,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(o){return[2,window.crypto.subtle.importKey(C.jb,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(r){return[2,window.crypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(n){return[2,window.crypto.subtle.digest(e,t)]}))}))},e}(),_e=function(){function e(){}return e.prototype.initPrng=function(e){return window.msrCrypto.initPrng((0,s.gz)(e))},e.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(r){return[2,window.msrCrypto.subtle.generateKey(e,t,n)]}))}))},e.prototype.exportKey=function(e){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){return[2,window.msrCrypto.subtle.exportKey(C.jb,e)]}))}))},e.prototype.importKey=function(e,t,n,r){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(o){return[2,window.msrCrypto.subtle.importKey(C.jb,e,t,n,r)]}))}))},e.prototype.sign=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(r){return[2,window.msrCrypto.subtle.sign(e,t,n)]}))}))},e.prototype.digest=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(n){return[2,window.msrCrypto.subtle.digest(e,t)]}))}))},e}(),Ie=function(){function e(){}return e.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},e.prototype.generateKey=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){return[2,new Promise((function(t,n){var r=window.msCrypto.subtle.exportKey(C.jb,e);r.addEventListener("complete",(function(e){var r=e.target.result,o=S.utf8ArrToString(new Uint8Array(r)).replace(/\r/g,l.YM.EMPTY_STRING).replace(/\n/g,l.YM.EMPTY_STRING).replace(/\t/g,l.YM.EMPTY_STRING).split(" ").join(l.YM.EMPTY_STRING).replace("\0",l.YM.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(0,s.sH)(this,void 0,void 0,(function(){var o,i;return(0,s.YH)(this,(function(a){return o=S.getSortedObjectString(e),i=S.stringToArrayBuffer(o),[2,new Promise((function(e,o){var a=window.msCrypto.subtle.importKey(C.jb,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(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(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}(),Se=n(6187),Ae="SHA-256",ke=new Uint8Array([1,0,1]),Re=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 be;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Ie;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."),Ee.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new _e}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."),Se.X.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:"RSASSA-PKCS1-v1_5",hash:Ae,modulusLength:2048,publicExponent:ke}}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(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(this,(function(n){return t=S.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:Ae},t)]}))}))},e.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},e.prototype.generateKeyPair=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]}))}))},e.prototype.exportJwk=function(e){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){return[2,this.subtleCrypto.exportKey(e)]}))}))},e.prototype.importJwk=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(r){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,n)]}))}))},e.prototype.sign=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]}))}))},e}(),Pe=function(){function e(){this.dbName=C.$u,this.version=C.G8,this.tableName=C.WJ,this.dbOpen=!1}return e.prototype.open=function(){return(0,s.sH)(this,void 0,void 0,(function(){var e=this;return(0,s.YH)(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(Ee.createDatabaseUnavailableError())}))}))]}))}))},e.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},e.prototype.validateDbIsOpen=function(){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){var t=this;return(0,s.YH)(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(Ee.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(0,s.sH)(this,void 0,void 0,(function(){var n=this;return(0,s.YH)(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(Ee.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(0,s.sH)(this,void 0,void 0,(function(){var t=this;return(0,s.YH)(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(Ee.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(0,s.sH)(this,void 0,void 0,(function(){var e=this;return(0,s.YH)(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(Ee.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(0,s.sH)(this,void 0,void 0,(function(){var t=this;return(0,s.YH)(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(Ee.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(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise((function(e,t){var n=window.indexedDB.deleteDatabase(C.$u);n.addEventListener("success",(function(){return e(!0)})),n.addEventListener("blocked",(function(){return e(!0)})),n.addEventListener("error",(function(){return t(!1)}))}))]}))}))},e}(),Ne=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}(),Oe=function(){function e(e,t){this.inMemoryCache=new Ne,this.indexedDBCache=new Pe,this.logger=e,this.storeName=t}return e.prototype.handleDatabaseAccessError=function(e){if(!(e instanceof Ee&&e.errorCode===pe.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(0,s.sH)(this,void 0,void 0,(function(){var t,n;return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){var n;return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){var e,t;return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){var t,n;return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){var e,t;return(0,s.YH)(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"}(c||(c={}));var Me,xe=function(){function e(e){this.logger=e,this.asymmetricKeys=new Oe(this.logger,c.asymmetricKeys),this.symmetricKeys=new Oe(this.logger,c.symmetricKeys)}return e.prototype.clear=function(){return(0,s.sH)(this,void 0,void 0,(function(){var e;return(0,s.YH)(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}(),De=function(){function e(e,t,n){this.logger=e,this.browserCrypto=new Re(this.logger,n),this.b64Encode=new A,this.b64Decode=new k,this.guidGenerator=new I(this.browserCrypto),this.pkceGenerator=new we(this.browserCrypto),this.cache=new xe(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(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(e){return[2,this.pkceGenerator.generateCodes()]}))}))},e.prototype.getPublicKeyThumbprint=function(t){var n;return(0,s.sH)(this,void 0,void 0,(function(){var r,o,a,c,u,l,d,f;return(0,s.YH)(this,(function(s){switch(s.label){case 0:return r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(i.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(e.EXTRACTABLE,e.POP_KEY_USAGES)];case 1:return o=s.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return a=s.sent(),c={e:a.e,kty:a.kty,n:a.n},u=S.getSortedObjectString(c),[4,this.hashString(u)];case 3:return l=s.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return d=s.sent(),[4,this.browserCrypto.importJwk(d,!1,["sign"])];case 5:return f=s.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:f,publicKey:o.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return s.sent(),r&&r.endMeasurement({success:!0}),[2,l]}}))}))},e.prototype.removeTokenBindingKey=function(e){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(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(0,s.sH)(this,void 0,void 0,(function(){var o,a,c,u,l,d,f,h,p,g,v,m,y;return(0,s.YH)(this,(function(s){switch(s.label){case 0:return o=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(i.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(!(a=s.sent()))throw Ee.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return c=s.sent(),u=S.getSortedObjectString(c),l=this.b64Encode.urlEncode(JSON.stringify({kid:t})),d=b.getShrHeaderString({kid:l,alg:c.alg}),f=this.b64Encode.urlEncode(d),e.cnf={jwk:JSON.parse(u)},h=this.b64Encode.urlEncode(JSON.stringify(e)),p=f+"."+h,g=S.stringToArrayBuffer(p),[4,this.browserCrypto.sign(a.privateKey,g)];case 3:return v=s.sent(),m=this.b64Encode.urlEncodeArr(new Uint8Array(v)),y=p+"."+m,o&&o.endMeasurement({success:!0}),[2,y]}}))}))},e.prototype.hashString=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n;return(0,s.YH)(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}(),Le=n(19212),Ue=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 u},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 s=this.startPerformanceMeasuremeant(e,i);s.startMeasurement();var c={eventId:this.generateId(),status:a.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(c),{endMeasurement:function(e){return o.endMeasurement((0,d.Cl)((0,d.Cl)({},c),e),s)},discardMeasurement:function(){return o.discardMeasurements(c.correlationId)},addStaticFields:function(e){return o.addStaticFields(e,c.correlationId)},increment:function(e){return o.increment(e,c.correlationId)},measurement:s,event:c}},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 s=e.eventId===i.eventId,c={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(c=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 u=null===t||void 0===t?void 0:t.flushMeasurement();if(!u)return this.logger.trace("PerformanceClient: Performance measurement not taken",i.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+u+" ms",e.correlationId),!s)return i[e.name+"DurationMs"]=Math.floor(u),(0,d.Cl)({},i);var l=(0,d.Cl)((0,d.Cl)({},i),e),f=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),f++})),l.incompleteSubMeasurements=void 0,l=(0,d.Cl)((0,d.Cl)({},l),{durationMs:Math.round(u),queuedTimeMs:c.totalQueueTime,queuedCount:c.totalQueueCount,queuedManuallyCompletedCount:c.manuallyCompletedCount,status:a.Completed,incompleteSubsCount:f}),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,(0,d.Cl)((0,d.Cl)({},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,(0,d.Cl)({},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}(),He=function(){function e(){}return e.prototype.startMeasurement=function(){},e.prototype.endMeasurement=function(){},e.prototype.flushMeasurement=function(){return null},e}(),qe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.C6)(t,e),t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new He},t.prototype.startPerformanceMeasurement=function(){return new He},t.prototype.calculateQueuedTime=function(e,t){return 0},t.prototype.addQueueMeasurement=function(e,t,n){},t.prototype.setPreQueueTime=function(e,t){},t}(Ue),Fe={createNewGuid:function(){throw f.l.createUnexpectedError("Crypto interface - createNewGuid() has not been implemented")},base64Decode:function(){throw f.l.createUnexpectedError("Crypto interface - base64Decode() has not been implemented")},base64Encode:function(){throw f.l.createUnexpectedError("Crypto interface - base64Encode() has not been implemented")},generatePkceCodes:function(){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(e){throw"Crypto interface - generatePkceCodes() has not been implemented",f.l.createUnexpectedError("Crypto interface - generatePkceCodes() has not been implemented")}))}))},getPublicKeyThumbprint:function(){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(e){throw"Crypto interface - getPublicKeyThumbprint() has not been implemented",f.l.createUnexpectedError("Crypto interface - getPublicKeyThumbprint() has not been implemented")}))}))},removeTokenBindingKey:function(){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(e){throw"Crypto interface - removeTokenBindingKey() has not been implemented",f.l.createUnexpectedError("Crypto interface - removeTokenBindingKey() has not been implemented")}))}))},clearKeystore:function(){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(e){throw"Crypto interface - clearKeystore() has not been implemented",f.l.createUnexpectedError("Crypto interface - clearKeystore() has not been implemented")}))}))},signJwt:function(){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(e){throw"Crypto interface - signJwt() has not been implemented",f.l.createUnexpectedError("Crypto interface - signJwt() has not been implemented")}))}))},hashString:function(){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(e){throw"Crypto interface - hashString() has not been implemented",f.l.createUnexpectedError("Crypto interface - hashString() has not been implemented")}))}))}},Be=n(23533),Ke=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 l.aG.ID_TOKEN:return l.PT.ID_TOKEN;case l.aG.ACCESS_TOKEN:case l.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME:return l.PT.ACCESS_TOKEN;case l.aG.REFRESH_TOKEN:return l.PT.REFRESH_TOKEN;default:throw Be.e.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(l.LR.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateAccountIdForCacheKey=function(e,t){return[e,t].join(l.LR.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateCredentialIdForCacheKey=function(e,t,n,r){return[e,e===l.aG.REFRESH_TOKEN&&r||t,n||l.YM.EMPTY_STRING].join(l.LR.CACHE_KEY_SEPARATOR).toLowerCase()},e.generateTargetForCacheKey=function(e){return(e||l.YM.EMPTY_STRING).toLowerCase()},e.generateClaimsHashForCacheKey=function(e){return(e||l.YM.EMPTY_STRING).toLowerCase()},e.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==l.IO.BEARER.toLowerCase()?e.toLowerCase():l.YM.EMPTY_STRING},e}(),je=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.C6)(t,e),t.createIdTokenEntity=function(e,n,r,o,i){var a=new t;return a.credentialType=l.aG.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===l.aG.ID_TOKEN)},t}(Ke),Ye={code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},Ge={code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},ze={code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},Ve={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"},We={code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},Xe={code:"empty_url_error",desc:"URL was empty or null."},Qe={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."},$e={code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},Je={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"},Ze={code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},et={code:"token_request_empty",desc:"Token request was empty and not found in cache."},tt={code:"logout_request_empty",desc:"The logout request was null or undefined."},nt={code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},rt={code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},ot={code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},it={code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},at={code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},st={code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},ct={code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},ut={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."},lt={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."},dt={code:"invalid_authentication_header",desc:"Invalid authentication header provided"},ft=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(0,d.C6)(t,e),t.createRedirectUriEmptyError=function(){return new t(Ye.code,Ye.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(Ge.code,Ge.desc)},t.createClaimsRequestParsingError=function(e){return new t(ze.code,ze.desc+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(Ve.code,Ve.desc+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(We.code,We.desc+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(Xe.code,Xe.desc)},t.createEmptyScopesArrayError=function(){return new t(Qe.code,""+Qe.desc)},t.createClientIdSingleScopeError=function(e){return new t($e.code,$e.desc+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(Je.code,Je.desc+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(Ze.code,Ze.desc)},t.createEmptyLogoutRequestError=function(){return new t(tt.code,tt.desc)},t.createEmptyTokenRequestError=function(){return new t(et.code,et.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(nt.code,nt.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(rt.code,rt.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(ot.code,ot.desc)},t.createInvalidAuthorityMetadataError=function(){return new t(it.code,it.desc)},t.createUntrustedAuthorityError=function(){return new t(at.code,at.desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(st.code,st.desc)},t.createMissingSshJwkError=function(){return new t(ct.code,ct.desc)},t.createMissingSshKidError=function(){return new t(ut.code,ut.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(lt.code,lt.desc)},t.createInvalidAuthenticationHeaderError=function(e,n){return new t(dt.code,dt.desc+". Invalid header: "+e+". Details: "+n)},t}(Be.e),ht=function(){function e(e){var t=this,n=e?R.$.trimArrayEntries((0,d.aN)(e)):[],r=n?R.$.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||l.YM.EMPTY_STRING).split(" "))},e.createSearchScopes=function(t){var n=new e(t);return n.containsOnlyOIDCScopes()?n.removeScope(l.YM.OFFLINE_ACCESS_SCOPE):n.removeOIDCScopes(),n},e.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw ft.createEmptyScopesArrayError()},e.prototype.containsScope=function(t){var n=new e(this.printScopesLowerCase().split(" "));return!R.$.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 l._A.forEach((function(n){e.containsScope(n)&&(t+=1)})),this.scopes.size===t},e.prototype.appendScope=function(e){R.$.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(n){throw Be.e.createAppendScopeSetError(n)}},e.prototype.removeScope=function(e){if(R.$.isEmpty(e))throw Be.e.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},e.prototype.removeOIDCScopes=function(){var e=this;l._A.forEach((function(t){e.scopes.delete(t)}))},e.prototype.unionScopeSets=function(e){if(!e)throw Be.e.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 Be.e.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(" "):l.YM.EMPTY_STRING},e.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},e}(),pt=n(10694),gt=function(){function e(t,n){if(R.$.isEmpty(t))throw Be.e.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=e.extractTokenClaims(t,n)}return e.extractTokenClaims=function(e,t){var n=R.$.decodeAuthToken(e);try{var r=n.JWSPayload,o=t.base64Decode(r);return JSON.parse(o)}catch(i){throw Be.e.createTokenParsingError(i)}},e.checkMaxAge=function(e,t){if(0===t||Date.now()-3e5>e+t)throw Be.e.createMaxAgeTranspiredError()},e}(),vt="@azure/msal-common",mt="13.0.0",yt=function(){function e(e,t,n){this.clientId=e,this.cryptoImpl=t,this.commonLogger=n.clone(vt,mt)}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 gt(n.secret,this.cryptoImpl).claims),t},e.prototype.saveCacheRecord=function(e){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(t){switch(t.label){case 0:if(!e)throw Be.e.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(0,d.sH)(this,void 0,void 0,(function(){var t,n,r,o,i=this;return(0,d.YH)(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=ht.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))ht.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(l.LR.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(l.LR.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(-1===t.indexOf(l.aG.ID_TOKEN.toLowerCase())&&-1===t.indexOf(l.aG.ACCESS_TOKEN.toLowerCase())&&-1===t.indexOf(l.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())&&-1===t.indexOf(l.aG.REFRESH_TOKEN.toLowerCase()))return!1;if(t.indexOf(l.aG.REFRESH_TOKEN.toLowerCase())>-1){var n=""+l.aG.REFRESH_TOKEN+l.LR.CACHE_KEY_SEPARATOR+this.clientId+l.LR.CACHE_KEY_SEPARATOR,r=""+l.aG.REFRESH_TOKEN+l.LR.CACHE_KEY_SEPARATOR+l.hB+l.LR.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===l.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME){if(t.tokenType&&!this.matchTokenType(e,t.tokenType))return!1;if(t.tokenType===l.IO.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(0,d.sH)(this,void 0,void 0,(function(){var e,t,n=this;return(0,d.YH)(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(0,d.sH)(this,void 0,void 0,(function(){var t;return(0,d.YH)(this,(function(n){switch(n.label){case 0:if(!(t=this.getAccount(e)))throw Be.e.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return n.sent(),this.removeItem(e),[2]}}))}))},e.prototype.removeAccountContext=function(e){return(0,d.sH)(this,void 0,void 0,(function(){var t,n,r,o=this;return(0,d.YH)(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(0,d.sH)(this,void 0,void 0,(function(){var t,n;return(0,d.YH)(this,(function(r){switch(r.label){case 0:if(!(t=this.getAccessTokenCredential(e)))return[2];if(t.credentialType.toLowerCase()!==l.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==l.IO.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(),Be.e.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 gt(i.secret,this.cryptoImpl).claims),{account:o,idToken:i,accessToken:a,refreshToken:s,appMetadata:c}},e.prototype.readAccountFromCache=function(e){var t=pt.d.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:l.aG.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 Be.e.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,(0,d.Cl)({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=ht.createSearchScopes(t.scopes),i=t.authenticationScheme||l.IO.BEARER,a=i&&i.toLowerCase()!==l.IO.BEARER.toLowerCase()?l.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME:l.aG.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,u=[];c.forEach((function(e){if(r.accessTokenKeyMatchesFilter(e,s,!0)){var t=r.getAccessTokenCredential(e);t&&r.credentialMatchesFilter(t,s)&&u.push(t)}}));var d=u.length;if(d<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(d>1)throw Be.e.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[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?l.hB:void 0,i={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:l.aG.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 Be.e.createMultipleMatchingAppMetadataInCacheError();return r[0]},e.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!(!t||t.familyId!==l.hB)},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!==l.aG.ACCESS_TOKEN&&e.credentialType!==l.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME||!e.target)&&ht.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(l.GU)},e.prototype.isAuthorityMetadata=function(e){return-1!==e.indexOf(l.u0.CACHE_KEY)},e.prototype.generateAuthorityMetadataCacheKey=function(e){return l.u0.CACHE_KEY+"-"+this.clientId+"-"+e},e.toObject=function(e,t){for(var n in t)e[n]=t[n];return e},e}(),Ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.C6)(t,e),t.prototype.setAccount=function(){throw f.l.createUnexpectedError("Storage interface - setAccount() has not been implemented for the cacheStorage interface.")},t.prototype.getAccount=function(){throw f.l.createUnexpectedError("Storage interface - getAccount() has not been implemented for the cacheStorage interface.")},t.prototype.setIdTokenCredential=function(){throw f.l.createUnexpectedError("Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getIdTokenCredential=function(){throw f.l.createUnexpectedError("Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAccessTokenCredential=function(){throw f.l.createUnexpectedError("Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getAccessTokenCredential=function(){throw f.l.createUnexpectedError("Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setRefreshTokenCredential=function(){throw f.l.createUnexpectedError("Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.getRefreshTokenCredential=function(){throw f.l.createUnexpectedError("Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.")},t.prototype.setAppMetadata=function(){throw f.l.createUnexpectedError("Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAppMetadata=function(){throw f.l.createUnexpectedError("Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.setServerTelemetry=function(){throw f.l.createUnexpectedError("Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.getServerTelemetry=function(){throw f.l.createUnexpectedError("Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.")},t.prototype.setAuthorityMetadata=function(){throw f.l.createUnexpectedError("Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadata=function(){throw f.l.createUnexpectedError("Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.")},t.prototype.getAuthorityMetadataKeys=function(){throw f.l.createUnexpectedError("Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.")},t.prototype.setThrottlingCache=function(){throw f.l.createUnexpectedError("Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.getThrottlingCache=function(){throw f.l.createUnexpectedError("Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.")},t.prototype.removeItem=function(){throw f.l.createUnexpectedError("Storage interface - removeItem() has not been implemented for the cacheStorage interface.")},t.prototype.containsKey=function(){throw f.l.createUnexpectedError("Storage interface - containsKey() has not been implemented for the cacheStorage interface.")},t.prototype.getKeys=function(){throw f.l.createUnexpectedError("Storage interface - getKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getAccountKeys=function(){throw f.l.createUnexpectedError("Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.")},t.prototype.getTokenKeys=function(){throw f.l.createUnexpectedError("Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.")},t.prototype.clear=function(){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(e){throw"Storage interface - clear() has not been implemented for the cacheStorage interface.",f.l.createUnexpectedError("Storage interface - clear() has not been implemented for the cacheStorage interface.")}))}))},t.prototype.updateCredentialCacheKey=function(){throw f.l.createUnexpectedError("Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.")},t}(yt),Tt=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}(),Et=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.C6)(t,e),t.createAccessTokenEntity=function(e,n,r,o,i,a,s,c,u,d,f,h,p,g,v){var m,y,C=new t;C.homeAccountId=e,C.credentialType=l.aG.ACCESS_TOKEN,C.secret=r;var T=Tt.nowSeconds();if(C.cachedAt=T.toString(),C.expiresOn=s.toString(),C.extendedExpiresOn=c.toString(),d&&(C.refreshOn=d.toString()),C.environment=n,C.clientId=o,C.realm=i,C.target=a,C.userAssertionHash=h,C.tokenType=R.$.isEmpty(f)?l.IO.BEARER:f,g&&(C.requestedClaims=g,C.requestedClaimsHash=v),(null===(m=C.tokenType)||void 0===m?void 0:m.toLowerCase())!==l.IO.BEARER.toLowerCase())switch(C.credentialType=l.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME,C.tokenType){case l.IO.POP:var E=gt.extractTokenClaims(r,u);if(!(null===(y=null===E||void 0===E?void 0:E.cnf)||void 0===y?void 0:y.kid))throw Be.e.createTokenClaimsRequiredError();C.keyId=E.cnf.kid;break;case l.IO.SSH:C.keyId=p}return C},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===l.aG.ACCESS_TOKEN||e.credentialType===l.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME))},t}(Ke),wt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,d.C6)(t,e),t.createRefreshTokenEntity=function(e,n,r,o,i,a){var s=new t;return s.clientId=o,s.credentialType=l.aG.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===l.aG.REFRESH_TOKEN)},t}(Ke),bt=function(){function e(){}return e.prototype.generateAppMetadataKey=function(){return e.generateAppMetadataCacheKey(this.environment,this.clientId)},e.generateAppMetadataCacheKey=function(e,t){return[l.GU,e,t].join(l.LR.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(l.GU)&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"))},e}(),_t=function(){function e(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return e.isServerTelemetryEntity=function(e,t){var n=0===e.indexOf(l.gT.CACHE_KEY),r=!0;return t&&(r=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),n&&r},e}(),It=function(){function e(){this.expiresAt=Tt.nowSeconds()+l.u0.REFRESH_TIME_SECONDS}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=Tt.nowSeconds()+l.u0.REFRESH_TIME_SECONDS},e.prototype.isExpired=function(){return this.expiresAt<=Tt.nowSeconds()},e.isAuthorityMetadataEntity=function(e,t){return!!t&&(0===e.indexOf(l.u0.CACHE_KEY)&&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}(),St=function(){function e(){}return e.isThrottlingEntity=function(e,t){var n=!1;e&&(n=0===e.indexOf(l.Xw.THROTTLING_PREFIX));var r=!0;return t&&(r=t.hasOwnProperty("throttleTime")),n&&r},e}(),At=function(){function e(){}return e.setRequestState=function(t,n,r){var o=e.generateLibraryState(t,r);return R.$.isEmpty(n)?o:""+o+l.YM.RESOURCE_DELIM+n},e.generateLibraryState=function(e,t){if(!e)throw Be.e.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 Be.e.createNoCryptoObjectError("parseRequestState");if(R.$.isEmpty(t))throw Be.e.createInvalidStateError(t,"Null, undefined or empty state");try{var n=t.split(l.YM.RESOURCE_DELIM),r=n[0],o=n.length>1?n.slice(1).join(l.YM.RESOURCE_DELIM):l.YM.EMPTY_STRING,i=e.base64Decode(r),a=JSON.parse(i);return{userRequestState:R.$.isEmpty(o)?l.YM.EMPTY_STRING:o,libraryState:a}}catch(s){throw Be.e.createInvalidStateError(t,s)}},e}();!function(e){e.HOME_ACCOUNT_ID="home_account_id",e.UPN="UPN"}(Me||(Me={}));var kt,Rt,Pt=function(){function e(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return e.prototype.validateWindowStorage=function(e){if(e!==C.Al.LocalStorage&&e!==C.Al.SessionStorage)throw Se.X.createStorageNotSupportedError(e);if(!!!window[e])throw Se.X.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}(),Nt=function(){function e(t){if(this._urlString=t,R.$.isEmpty(this._urlString))throw ft.createUrlEmptyError();R.$.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 R.$.endsWith(t,"?")?t=t.slice(0,-1):R.$.endsWith(t,"?/")&&(t=t.slice(0,-2)),R.$.endsWith(t,"/")||(t+="/"),t}return e},e.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw ft.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw ft.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||"https:"!==e.Protocol.toLowerCase())throw ft.createInsecureAuthorityUriError(this.urlString)},e.appendQueryString=function(e,t){return R.$.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]!==l.v2.COMMON&&r[0]!==l.v2.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 ft.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,!R.$.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 ft.createUrlParseError("Given url string: "+e);return n[2]},e.getAbsoluteUrl=function(t,n){if(t[0]===l.YM.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):l.YM.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):l.YM.EMPTY_STRING},e.constructAuthorityUriFromObject=function(t){return new e(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},e.getDeserializedHash=function(t){if(R.$.isEmpty(t))return{};var n=e.parseHash(t),r=R.$.queryStringToObject(R.$.isEmpty(n)?t:n);if(!r)throw Be.e.createHashNotDeserializedError(JSON.stringify(r));return r},e.getDeserializedQueryString=function(t){if(R.$.isEmpty(t))return{};var n=e.parseQueryString(t),r=R.$.queryStringToObject(R.$.isEmpty(n)?t:n);if(!r)throw Be.e.createHashNotDeserializedError(JSON.stringify(r));return r},e.hashContainsKnownProperties=function(t){if(R.$.isEmpty(t)||t.indexOf("=")<0)return!1;var n=e.getDeserializedHash(t);return!!(n.code||n.error_description||n.error||n.state)},e}(),Ot=function(){function e(){}return e.extractBrowserRequestState=function(e,t){if(R.$.isEmpty(t))return null;try{return At.parseRequestState(e,t).libraryState.meta}catch(n){throw Be.e.createInvalidStateError(t,n)}},e.parseServerResponseFromHash=function(e){if(!e)return{};var t=new Nt(e);return Nt.getDeserializedHash(t.getHash())},e}(),Mt=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 Ne,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(0,s.C6)(t,e),t.prototype.setupBrowserStorage=function(e){switch(e){case C.Al.LocalStorage:case C.Al.SessionStorage:try{return new Pt(e)}catch(t){this.logger.verbose(t);break}}return this.cacheConfig.cacheLocation=C.Al.MemoryStorage,new Ne},t.prototype.setupTemporaryCacheStorage=function(e,t){switch(t){case C.Al.LocalStorage:case C.Al.SessionStorage:try{return new Pt(e||C.Al.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case C.Al.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,t=l.YM.CACHE_PREFIX+"."+l.Gd.ID_TOKEN,n=l.YM.CACHE_PREFIX+"."+l.Gd.CLIENT_INFO,r=l.YM.CACHE_PREFIX+"."+l.Gd.ERROR,o=l.YM.CACHE_PREFIX+"."+l.Gd.ERROR_DESC,i=[this.browserStorage.getItem(t),this.browserStorage.getItem(n),this.browserStorage.getItem(r),this.browserStorage.getItem(o)];[l.Gd.ID_TOKEN,l.Gd.CLIENT_INFO,l.Gd.ERROR,l.Gd.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(C.dh.ACCOUNT_KEYS),n=this.getItem(C.dh.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 l.aG.ID_TOKEN:if(je.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=yt.toObject(new je,r),i=e.updateCredentialCacheKey(t,o);return void e.addTokenKey(i,l.aG.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 l.aG.ACCESS_TOKEN:case l.aG.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Et.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=yt.toObject(new Et,r);i=e.updateCredentialCacheKey(t,a);return void e.addTokenKey(i,l.aG.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 l.aG.REFRESH_TOKEN:if(wt.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=yt.toObject(new wt,r);i=e.updateCredentialCacheKey(t,s);return void e.addTokenKey(i,l.aG.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&&pt.d.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&&pt.d.isAccountEntity(n)?yt.toObject(new pt.d,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(C.dh.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(C.dh.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(C.dh.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(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(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,l.aG.ID_TOKEN)},t.prototype.removeAccessToken=function(t){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(n){return e.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,l.aG.ACCESS_TOKEN),[2]}))}))},t.prototype.removeRefreshToken=function(t){e.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,l.aG.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var e=this.getItem(C.dh.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 l.aG.ID_TOKEN:-1===n.idToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),n.idToken.push(e));break;case l.aG.ACCESS_TOKEN:-1===n.accessToken.indexOf(e)&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),n.accessToken.push(e));break;case l.aG.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),Be.e.createUnexpectedCredentialTypeError()}this.setItem(C.dh.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 l.aG.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 l.aG.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 l.aG.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),Be.e.createUnexpectedCredentialTypeError()}this.setItem(C.dh.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,l.aG.ID_TOKEN),null;var n=this.validateAndParseJson(t);return n&&je.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),yt.toObject(new je,n)):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,l.aG.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,l.aG.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,l.aG.ACCESS_TOKEN),null;var n=this.validateAndParseJson(t);return n&&Et.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),yt.toObject(new Et,n)):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,l.aG.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,l.aG.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,l.aG.REFRESH_TOKEN),null;var n=this.validateAndParseJson(t);return n&&wt.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),yt.toObject(new wt,n)):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,l.aG.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,l.aG.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&&bt.isAppMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),yt.toObject(new bt,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&&_t.isServerTelemetryEntity(e,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),yt.toObject(new _t,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&&It.isAuthorityMetadataEntity(e,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),yt.toObject(new It,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(C.H3.WRAPPER_SKU,e),this.internalStorage.setItem(C.H3.WRAPPER_VER,t)},t.prototype.getWrapperMetadata=function(){return[this.internalStorage.getItem(C.H3.WRAPPER_SKU)||l.YM.EMPTY_STRING,this.internalStorage.getItem(C.H3.WRAPPER_VER)||l.YM.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(l.Gd.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(l.Gd.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(l.Gd.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(l.Gd.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 Be.e.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&&St.isThrottlingEntity(e,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),yt.toObject(new St,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===C.Al.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(0,s.gz)(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return(0,s.sH)(this,void 0,void 0,(function(){var e=this;return(0,s.YH)(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(l.YM.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 l.YM.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var e=this,t=l.YM.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,l.YM.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):R.$.startsWith(e,l.YM.CACHE_PREFIX)||R.$.startsWith(e,l.Gd.ADAL_ID_TOKEN)?e:l.YM.CACHE_PREFIX+"."+this.clientId+"."+e},t.prototype.generateAuthorityKey=function(e){var t=At.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(C._p.AUTHORITY+"."+t)},t.prototype.generateNonceKey=function(e){var t=At.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(C._p.NONCE_IDTOKEN+"."+t)},t.prototype.generateStateKey=function(e){var t=At.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(C._p.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:Me.HOME_ACCOUNT_ID};this.setTemporaryCache(C._p.CCS_CREDENTIAL,JSON.stringify(c),!0)}else if(!R.$.isEmpty(r)){c={credential:r,type:Me.UPN};this.setTemporaryCache(C._p.CCS_CREDENTIAL,JSON.stringify(c),!0)}},t.prototype.resetRequestCache=function(e){var t=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),R.$.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(C._p.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(C._p.ORIGIN_URI)),this.removeItem(this.generateCacheKey(C._p.URL_HASH)),this.removeItem(this.generateCacheKey(C._p.CORRELATION_ID)),this.removeItem(this.generateCacheKey(C._p.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(C._p.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||l.YM.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(C._p.REQUEST_STATE)){var r=t.temporaryCacheStorage.getItem(n);if(r){var o=Ot.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(C._p.REQUEST_PARAMS,n,!0)},t.prototype.getCachedRequest=function(e,t){this.logger.trace("BrowserCacheManager.getCachedRequest called");var n=this.getTemporaryCache(C._p.REQUEST_PARAMS,!0);if(!n)throw Ee.createNoTokenRequestCacheError();var r=this.validateAndParseJson(t.base64Decode(n));if(!r)throw Ee.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(C._p.REQUEST_PARAMS)),R.$.isEmpty(r.authority)){var o=this.generateAuthorityKey(e),i=this.getTemporaryCache(o);if(!i)throw Ee.createNoCachedAuthorityError();r.authority=i}return r},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var e=this.getTemporaryCache(C._p.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=l.YM.CACHE_PREFIX+"."+C._p.INTERACTION_STATUS_KEY;return this.getTemporaryCache(e,!1)},t.prototype.setInteractionInProgress=function(e){var t=l.YM.CACHE_PREFIX+"."+C._p.INTERACTION_STATUS_KEY;if(e){if(this.getInteractionInProgress())throw Ee.createInteractionInProgressError();this.setTemporaryCache(t,this.clientId,!1)}else e||this.getInteractionInProgress()!==this.clientId||this.removeItem(t)},t.prototype.getLegacyLoginHint=function(){var e=this.getTemporaryCache(l.Gd.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(l.Gd.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var t=this.getTemporaryCache(l.Gd.ID_TOKEN,!0);t&&(this.removeItem(this.generateCacheKey(l.Gd.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var n=t||e;if(n){var r=new gt(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(C._p.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(e){this.setTemporaryCache(C._p.REDIRECT_CONTEXT,e,!0)},t}(yt);!function(e){e.AAD="AAD",e.OIDC="OIDC"}(kt||(kt={})),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"}(Rt||(Rt={}));var xt={tokenRenewalOffsetSeconds:300,preventCorsPreflight:!1},Dt={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Le.$.Info,correlationId:l.YM.EMPTY_STRING},Lt={sendGetRequestAsync:function(){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(e){throw"Network interface - sendGetRequestAsync() has not been implemented",f.l.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented")}))}))},sendPostRequestAsync:function(){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(e){throw"Network interface - sendPostRequestAsync() has not been implemented",f.l.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented")}))}))}},Ut={sku:l.YM.SKU,version:mt,cpu:l.YM.EMPTY_STRING,os:l.YM.EMPTY_STRING},Ht={clientSecret:l.YM.EMPTY_STRING,clientAssertion:void 0},qt={azureCloudInstance:Rt.None,tenant:""+l.YM.DEFAULT_COMMON_TENANT},Ft={application:{appName:"",appVersion:""}};var Bt={sendGetRequestAsync:function(){return Promise.reject(f.l.createUnexpectedError("Network interface - sendGetRequestAsync() has not been implemented for the Network interface."))},sendPostRequestAsync:function(){return Promise.reject(f.l.createUnexpectedError("Network interface - sendPostRequestAsync() has not been implemented for the Network interface."))}},Kt=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){var n,r,o;return(0,s.YH)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,fetch(e,{method:C.CC.GET,headers:this.getFetchHeaders(t)})];case 1:return n=i.sent(),[3,3];case 2:throw r=i.sent(),window.navigator.onLine?Ee.createGetRequestFailedError(r,e):Ee.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(),Ee.createFailedToParseNetworkResponseError(e);case 6:return[2]}}))}))},e.prototype.sendPostRequestAsync=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){var n,r,o,i;return(0,s.YH)(this,(function(a){switch(a.label){case 0:n=t&&t.body||l.YM.EMPTY_STRING,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,fetch(e,{method:C.CC.POST,headers:this.getFetchHeaders(t),body:n})];case 2:return r=a.sent(),[3,4];case 3:throw o=a.sent(),window.navigator.onLine?Ee.createPostRequestFailedError(o,e):Ee.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(),Ee.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}(),jt=function(){function e(){}return e.prototype.sendGetRequestAsync=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(n){return[2,this.sendRequestAsync(e,C.CC.GET,t)]}))}))},e.prototype.sendPostRequestAsync=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(n){return[2,this.sendRequestAsync(e,C.CC.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===C.CC.POST?i(Ee.createPostRequestFailedError("Failed with status "+a.status,e)):i(Ee.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(c){i(Ee.createFailedToParseNetworkResponseError(e))}},a.onerror=function(){window.navigator.onLine?t===C.CC.POST?i(Ee.createPostRequestFailedError("Failed with status "+a.status,e)):i(Ee.createGetRequestFailedError("Failed with status "+a.status,e)):i(Ee.createNoNetworkConnectivityError())},t===C.CC.POST&&n&&n.body)a.send(n.body);else{if(t!==C.CC.GET)throw Ee.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}(),Yt=function(){function e(){}return e.clearHash=function(e){e.location.hash=l.YM.EMPTY_STRING,"function"===typeof e.history.replaceState&&e.history.replaceState(null,l.YM.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("#"):l.YM.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(C.Q1.POPUP_NAME_PREFIX+".")},e.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},e.getHomepage=function(){var e=new Nt(window.location.href).getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},e.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new Kt:new jt},e.blockReloadInHiddenIframes=function(){if(Nt.hashContainsKnownProperties(window.location.hash)&&e.isInIframe())throw Ee.createBlockReloadInHiddenIframeError()},e.blockRedirectInIframe=function(t,n){var r=e.isInIframe();if(t===C.X8.Redirect&&r&&!n)throw Ee.createRedirectInIframeError(r)},e.blockAcquireTokenInPopups=function(){if(e.isInPopup())throw Ee.createBlockAcquireTokenInPopupsError()},e.blockNonBrowserEnvironment=function(e){if(!e)throw Ee.createNonBrowserEnvironmentError()},e.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw Ee.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}(),Gt=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}(),zt=6e3;var Vt,Wt="@azure/msal-browser",Xt="2.37.0",Qt=n(98151),$t=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||!pt.d.isAccountEntity(n))return;var r=yt.toObject(new pt.d,n).getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Qt.B.ACCOUNT_ADDED,void 0,r)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Qt.B.ACCOUNT_REMOVED,void 0,r))}catch(e){return}},e}(),Jt=function(){function e(){}return e.generateThrottlingStorageKey=function(e){return l.Xw.THROTTLING_PREFIX+"."+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 h((null===(r=i.errorCodes)||void 0===r?void 0:r.join(" "))||l.YM.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[l.OK.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(l.OK.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||l.Xw.DEFAULT_THROTTLE_TIME_SECONDS),n+l.Xw.DEFAULT_MAX_THROTTLE_TIME_SECONDS))},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}(),Zt=function(){function e(e,t){this.networkClient=e,this.cacheManager=t}return e.prototype.sendPostRequest=function(e,t,n){return(0,d.sH)(this,void 0,void 0,(function(){var r,o;return(0,d.YH)(this,(function(i){switch(i.label){case 0:Jt.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 f.l?o:Be.e.createNetworkError(t,o);case 4:return Jt.postProcess(this.cacheManager,e,r),[2,r]}}))}))},e}(),en=n(26210),tn=function(){function e(){}return e.validateRedirectUri=function(e){if(R.$.isEmpty(e))throw ft.createRedirectUriEmptyError()},e.validatePrompt=function(e){var t=[];for(var n in l._M)t.push(l._M[n]);if(t.indexOf(e)<0)throw ft.createInvalidPromptError(e)},e.validateClaims=function(e){try{JSON.parse(e)}catch(t){throw ft.createInvalidClaimsRequestError()}},e.validateCodeChallengeParams=function(e,t){if(R.$.isEmpty(e)||R.$.isEmpty(t))throw ft.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},e.validateCodeChallengeMethod=function(e){if([l.iF.PLAIN,l.iF.S256].indexOf(e)<0)throw ft.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}(),nn=function(){function e(){this.parameters=new Map}return e.prototype.addResponseTypeCode=function(){this.parameters.set(l.lB.RESPONSE_TYPE,encodeURIComponent(l.YM.CODE_RESPONSE_TYPE))},e.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(l.lB.RESPONSE_TYPE,encodeURIComponent(l.YM.TOKEN_RESPONSE_TYPE+" "+l.YM.ID_TOKEN_RESPONSE_TYPE))},e.prototype.addResponseMode=function(e){this.parameters.set(l.lB.RESPONSE_MODE,encodeURIComponent(e||l.p.QUERY))},e.prototype.addNativeBroker=function(){this.parameters.set(l.lB.NATIVE_BROKER,encodeURIComponent("1"))},e.prototype.addScopes=function(e,t){void 0===t&&(t=!0);var n=t?(0,d.aN)(e||[],l.aZ):e||[],r=new ht(n);this.parameters.set(l.lB.SCOPE,encodeURIComponent(r.printScopes()))},e.prototype.addClientId=function(e){this.parameters.set(l.lB.CLIENT_ID,encodeURIComponent(e))},e.prototype.addRedirectUri=function(e){tn.validateRedirectUri(e),this.parameters.set(l.lB.REDIRECT_URI,encodeURIComponent(e))},e.prototype.addPostLogoutRedirectUri=function(e){tn.validateRedirectUri(e),this.parameters.set(l.lB.POST_LOGOUT_URI,encodeURIComponent(e))},e.prototype.addIdTokenHint=function(e){this.parameters.set(l.lB.ID_TOKEN_HINT,encodeURIComponent(e))},e.prototype.addDomainHint=function(e){this.parameters.set(l.nN.DOMAIN_HINT,encodeURIComponent(e))},e.prototype.addLoginHint=function(e){this.parameters.set(l.nN.LOGIN_HINT,encodeURIComponent(e))},e.prototype.addCcsUpn=function(e){this.parameters.set(l.OK.CCS_HEADER,encodeURIComponent("UPN:"+e))},e.prototype.addCcsOid=function(e){this.parameters.set(l.OK.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},e.prototype.addSid=function(e){this.parameters.set(l.nN.SID,encodeURIComponent(e))},e.prototype.addClaims=function(e,t){var n=this.addClientCapabilitiesToClaims(e,t);tn.validateClaims(n),this.parameters.set(l.lB.CLAIMS,encodeURIComponent(n))},e.prototype.addCorrelationId=function(e){this.parameters.set(l.lB.CLIENT_REQUEST_ID,encodeURIComponent(e))},e.prototype.addLibraryInfo=function(e){this.parameters.set(l.lB.X_CLIENT_SKU,e.sku),this.parameters.set(l.lB.X_CLIENT_VER,e.version),e.os&&this.parameters.set(l.lB.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(l.lB.X_CLIENT_CPU,e.cpu)},e.prototype.addApplicationTelemetry=function(e){(null===e||void 0===e?void 0:e.appName)&&this.parameters.set(l.lB.X_APP_NAME,e.appName),(null===e||void 0===e?void 0:e.appVersion)&&this.parameters.set(l.lB.X_APP_VER,e.appVersion)},e.prototype.addPrompt=function(e){tn.validatePrompt(e),this.parameters.set(""+l.lB.PROMPT,encodeURIComponent(e))},e.prototype.addState=function(e){R.$.isEmpty(e)||this.parameters.set(l.lB.STATE,encodeURIComponent(e))},e.prototype.addNonce=function(e){this.parameters.set(l.lB.NONCE,encodeURIComponent(e))},e.prototype.addCodeChallengeParams=function(e,t){if(tn.validateCodeChallengeParams(e,t),!e||!t)throw ft.createInvalidCodeChallengeParamsError();this.parameters.set(l.lB.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(l.lB.CODE_CHALLENGE_METHOD,encodeURIComponent(t))},e.prototype.addAuthorizationCode=function(e){this.parameters.set(l.lB.CODE,encodeURIComponent(e))},e.prototype.addDeviceCode=function(e){this.parameters.set(l.lB.DEVICE_CODE,encodeURIComponent(e))},e.prototype.addRefreshToken=function(e){this.parameters.set(l.lB.REFRESH_TOKEN,encodeURIComponent(e))},e.prototype.addCodeVerifier=function(e){this.parameters.set(l.lB.CODE_VERIFIER,encodeURIComponent(e))},e.prototype.addClientSecret=function(e){this.parameters.set(l.lB.CLIENT_SECRET,encodeURIComponent(e))},e.prototype.addClientAssertion=function(e){R.$.isEmpty(e)||this.parameters.set(l.lB.CLIENT_ASSERTION,encodeURIComponent(e))},e.prototype.addClientAssertionType=function(e){R.$.isEmpty(e)||this.parameters.set(l.lB.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},e.prototype.addOboAssertion=function(e){this.parameters.set(l.lB.OBO_ASSERTION,encodeURIComponent(e))},e.prototype.addRequestTokenUse=function(e){this.parameters.set(l.lB.REQUESTED_TOKEN_USE,encodeURIComponent(e))},e.prototype.addGrantType=function(e){this.parameters.set(l.lB.GRANT_TYPE,encodeURIComponent(e))},e.prototype.addClientInfo=function(){this.parameters.set(l.JR,"1")},e.prototype.addExtraQueryParameters=function(e){var t=this,n=tn.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(r){throw ft.createInvalidClaimsRequestError()}else n={};return t&&t.length>0&&(n.hasOwnProperty(l.Fq.ACCESS_TOKEN)||(n[l.Fq.ACCESS_TOKEN]={}),n[l.Fq.ACCESS_TOKEN][l.Fq.XMS_CC]={values:t}),JSON.stringify(n)},e.prototype.addUsername=function(e){this.parameters.set(l.Tq.username,encodeURIComponent(e))},e.prototype.addPassword=function(e){this.parameters.set(l.Tq.password,encodeURIComponent(e))},e.prototype.addPopToken=function(e){R.$.isEmpty(e)||(this.parameters.set(l.lB.TOKEN_TYPE,l.IO.POP),this.parameters.set(l.lB.REQ_CNF,encodeURIComponent(e)))},e.prototype.addSshJwk=function(e){R.$.isEmpty(e)||(this.parameters.set(l.lB.TOKEN_TYPE,l.IO.SSH),this.parameters.set(l.lB.REQ_CNF,encodeURIComponent(e)))},e.prototype.addServerTelemetry=function(e){this.parameters.set(l.lB.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(l.lB.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},e.prototype.addThrottling=function(){this.parameters.set(l.lB.X_MS_LIB_CAPABILITY,l.Xw.X_MS_LIB_CAPABILITY_VALUE)},e.prototype.addLogoutHint=function(e){this.parameters.set(l.lB.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}(),rn=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,u=e.libraryInfo,l=e.telemetry,f=e.serverTelemetryManager,h=e.persistencePlugin,p=e.serializableCache,g=(0,d.Cl)((0,d.Cl)({},Dt),o);return{authOptions:(t=n,(0,d.Cl)({clientCapabilities:[],azureCloudOptions:qt,skipAuthorityMetadataCache:!1},t)),systemOptions:(0,d.Cl)((0,d.Cl)({},xt),r),loggerOptions:g,storageInterface:i||new Ct(n.clientId,Fe,new Le.V(g)),networkInterface:a||Lt,cryptoInterface:s||Fe,clientCredentials:c||Ht,libraryInfo:(0,d.Cl)((0,d.Cl)({},Ut),u),telemetry:(0,d.Cl)((0,d.Cl)({},Ft),l),serverTelemetryManager:f||null,persistencePlugin:h||null,serializableCache:p||null}}(e),this.logger=new Le.V(this.config.loggerOptions,vt,mt),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new Zt(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[l.OK.CONTENT_TYPE]=l.YM.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Me.HOME_ACCOUNT_ID:try{var n=(0,en.Z)(e.credential);t[l.OK.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(r){this.logger.verbose("Could not parse home account ID for CCS Header: "+r)}break;case Me.UPN:t[l.OK.CCS_HEADER]="UPN: "+e.credential}return t},e.prototype.executePostToTokenEndpoint=function(e,t,n,r){return(0,d.sH)(this,void 0,void 0,(function(){var o;return(0,d.YH)(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 Be.e.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},e.prototype.createTokenQueryParameters=function(e){var t=new nn;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},e}(),on=n(24550),an=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"}(Vt||(Vt={}));var sn=function(){function e(e,t){this.cryptoUtils=e,this.performanceClient=t}return e.prototype.generateCnf=function(e){var t,n;return(0,d.sH)(this,void 0,void 0,(function(){var r,o,a;return(0,d.YH)(this,(function(s){switch(s.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.PopTokenGenerateCnf,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(i.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return r=s.sent(),o=this.cryptoUtils.base64Encode(JSON.stringify(r)),a={kid:r.kid,reqCnfString:o},[4,this.cryptoUtils.hashString(o)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}}))}))},e.prototype.generateKid=function(e){var t;return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(n){switch(n.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return[2,{kid:n.sent(),xms_ksl:Vt.SW}]}}))}))},e.prototype.signPopToken=function(e,t,n){return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(r){return[2,this.signPayload(e,t,n)]}))}))},e.prototype.signPayload=function(e,t,n,r){return(0,d.sH)(this,void 0,void 0,(function(){var o,i,a,s,c,u;return(0,d.YH)(this,(function(l){switch(l.label){case 0:return o=n.resourceRequestMethod,i=n.resourceRequestUri,a=n.shrClaims,s=n.shrNonce,c=i?new Nt(i):void 0,u=null===c||void 0===c?void 0:c.getUrlComponents(),[4,this.cryptoUtils.signJwt((0,d.Cl)({at:e,ts:Tt.nowSeconds(),m:null===o||void 0===o?void 0:o.toUpperCase(),u:null===u||void 0===u?void 0:u.HostNameAndPort,nonce:s||this.cryptoUtils.createNewGuid(),p:null===u||void 0===u?void 0:u.AbsolutePath,q:(null===u||void 0===u?void 0:u.QueryString)?[[],u.QueryString]:void 0,client_claims:a||void 0},r),t,n.correlationId)];case 1:return[2,l.sent()]}}))}))},e}(),cn=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}(),un=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?Be.e.createStateNotFoundError("Cached State"):Be.e.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw Be.e.createStateMismatchError();if(e.error||e.error_description||e.suberror){if(y.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new y(e.error||l.YM.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||l.YM.EMPTY_STRING,e.trace_id||l.YM.EMPTY_STRING,e.correlation_id||l.YM.EMPTY_STRING,e.claims||l.YM.EMPTY_STRING);throw new h(e.error||l.YM.EMPTY_STRING,e.error_description,e.suberror)}e.client_info&&(0,en.k)(e.client_info,n)},e.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(y.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new y(e.error,e.error_description,e.suberror,e.timestamp||l.YM.EMPTY_STRING,e.trace_id||l.YM.EMPTY_STRING,e.correlation_id||l.YM.EMPTY_STRING,e.claims||l.YM.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new h(e.error,t,e.suberror)}},e.prototype.handleServerTokenResponse=function(t,n,r,o,a,s,c,u,f){var h;return(0,d.sH)(this,void 0,void 0,(function(){var p,g,v,m,y,C;return(0,d.YH)(this,(function(d){switch(d.label){case 0:if(null===(h=this.performanceClient)||void 0===h||h.addQueueMeasurement(i.HandleServerTokenResponse,t.correlation_id),t.id_token){if(p=new gt(t.id_token||l.YM.EMPTY_STRING,this.cryptoObj),a&&!R.$.isEmpty(a.nonce)&&p.claims.nonce!==a.nonce)throw Be.e.createNonceMismatchError();if(o.maxAge||0===o.maxAge){if(!(g=p.claims.auth_time))throw Be.e.createAuthTimeNotFoundError();gt.checkMaxAge(g,o.maxAge)}}this.homeAccountIdentifier=pt.d.generateHomeAccountId(t.client_info||l.YM.EMPTY_STRING,n.authorityType,this.logger,this.cryptoObj,p),a&&a.state&&(v=At.parseRequestState(this.cryptoObj,a.state)),t.key_id=t.key_id||o.sshKid||void 0,m=this.generateCacheRecord(t,n,r,o,p,s,a),d.label=1;case 1:return d.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),y=new cn(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(y)]):[3,3];case 2:d.sent(),d.label=3;case 3:return!c||u||!m.account||(C=m.account.generateAccountKey(),this.cacheStorage.getAccount(C))?[4,this.cacheStorage.saveCacheRecord(m)]:(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,e.generateAuthenticationResult(this.cryptoObj,n,m,!1,o,p,v,void 0,f)]);case 4:return d.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&y?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(y)]):[3,7];case 6:d.sent(),d.label=7;case 7:return[7];case 8:return[2,e.generateAuthenticationResult(this.cryptoObj,n,m,!1,o,p,v,t,f)]}}))}))},e.prototype.generateCacheRecord=function(e,t,n,r,o,i,a){var s,c,u=t.getPreferredCache();if(R.$.isEmpty(u))throw Be.e.createInvalidCacheEnvironmentError();!R.$.isEmpty(e.id_token)&&o&&(s=je.createIdTokenEntity(this.homeAccountIdentifier,u,e.id_token||l.YM.EMPTY_STRING,this.clientId,o.claims.tid||l.YM.EMPTY_STRING),c=this.generateAccountEntity(e,o,t,a));var d=null;if(!R.$.isEmpty(e.access_token)){var f=e.scope?ht.fromString(e.scope):new ht(r.scopes||[]),h=("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0,p=("string"===typeof e.ext_expires_in?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,g=("string"===typeof e.refresh_in?parseInt(e.refresh_in,10):e.refresh_in)||void 0,v=n+h,m=v+p,y=g&&g>0?n+g:void 0;d=Et.createAccessTokenEntity(this.homeAccountIdentifier,u,e.access_token||l.YM.EMPTY_STRING,this.clientId,o?o.claims.tid||l.YM.EMPTY_STRING:t.tenant,f.printScopes(),v,m,this.cryptoObj,y,e.token_type,i,e.key_id,r.claims,r.requestedClaimsHash)}var C=null;R.$.isEmpty(e.refresh_token)||(C=wt.createRefreshTokenEntity(this.homeAccountIdentifier,u,e.refresh_token||l.YM.EMPTY_STRING,this.clientId,e.foci,i));var T=null;return R.$.isEmpty(e.foci)||(T=bt.createAppMetadataEntity(this.clientId,u,e.foci)),new an(c,s,d,C,T)},e.prototype.generateAccountEntity=function(e,t,n,r){var o=n.authorityType,i=r?r.cloud_graph_host_name:l.YM.EMPTY_STRING,a=r?r.msgraph_host:l.YM.EMPTY_STRING;if(o===on.I.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),pt.d.createGenericAccount(this.homeAccountIdentifier,t,n,i,a);if(R.$.isEmpty(e.client_info)&&"AAD"===n.protocolMode)throw Be.e.createClientInfoEmptyError();return e.client_info?pt.d.createAccount(e.client_info,this.homeAccountIdentifier,t,n,i,a):pt.d.createGenericAccount(this.homeAccountIdentifier,t,n,i,a)},e.generateAuthenticationResult=function(e,t,n,r,o,i,a,s,c){var u,f,h;return(0,d.sH)(this,void 0,void 0,(function(){var p,g,v,m,y,C,T,E,w,b,_;return(0,d.YH)(this,(function(d){switch(d.label){case 0:if(p=l.YM.EMPTY_STRING,g=[],v=null,y=l.YM.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==l.IO.POP)return[3,2];if(C=new sn(e),T=n.accessToken,E=T.secret,!(w=T.keyId))throw Be.e.createKeyIdMissingError();return[4,C.signPopToken(E,w,o)];case 1:return p=d.sent(),[3,3];case 2:p=n.accessToken.secret,d.label=3;case 3:g=ht.fromString(n.accessToken.target).asArray(),v=new Date(1e3*Number(n.accessToken.expiresOn)),m=new Date(1e3*Number(n.accessToken.extendedExpiresOn)),d.label=4;case 4:return n.appMetadata&&(y=n.appMetadata.familyId===l.hB?l.hB:l.YM.EMPTY_STRING),b=(null===i||void 0===i?void 0:i.claims.oid)||(null===i||void 0===i?void 0:i.claims.sub)||l.YM.EMPTY_STRING,_=(null===i||void 0===i?void 0:i.claims.tid)||l.YM.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:b,tenantId:_,scopes:g,account:n.account?n.account.getAccountInfo():null,idToken:i?i.rawToken:l.YM.EMPTY_STRING,idTokenClaims:i?i.claims:{},accessToken:p,fromCache:r,expiresOn:v,correlationId:o.correlationId,requestId:c||l.YM.EMPTY_STRING,extExpiresOn:m,familyId:y,tokenType:(null===(u=n.accessToken)||void 0===u?void 0:u.tokenType)||l.YM.EMPTY_STRING,state:a?a.userRequestState:l.YM.EMPTY_STRING,cloudGraphHostName:(null===(f=n.account)||void 0===f?void 0:f.cloudGraphHostName)||l.YM.EMPTY_STRING,msGraphHost:(null===(h=n.account)||void 0===h?void 0:h.msGraphHost)||l.YM.EMPTY_STRING,code:null===s||void 0===s?void 0:s.spa_code,fromNativeBroker:!1}]}}))}))},e}(),ln=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.includeRedirectUri=!0,r}return(0,d.C6)(t,e),t.prototype.getAuthCodeUrl=function(e){var t,n;return(0,d.sH)(this,void 0,void 0,(function(){var r;return(0,d.YH)(this,(function(o){switch(o.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.GetAuthCodeUrl,e.correlationId),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(i.AuthClientCreateQueryString,e.correlationId),[4,this.createAuthCodeUrlQueryString(e)];case 1:return r=o.sent(),[2,Nt.appendQueryString(this.authority.authorizationEndpoint,r)]}}))}))},t.prototype.acquireToken=function(e,t){var n,r,o,a,s,c;return(0,d.sH)(this,void 0,void 0,(function(){var u,f,h,p,g,v,m=this;return(0,d.YH)(this,(function(d){switch(d.label){case 0:if(!e||!e.code)throw Be.e.createTokenRequestCannotBeMadeError();return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(i.AuthClientAcquireToken,e.correlationId),u=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement("AuthCodeClientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in auth-code client"),f=Tt.nowSeconds(),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(i.AuthClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(this.authority,e)];case 1:return h=d.sent(),p=null===(a=h.headers)||void 0===a?void 0:a[l.OK.X_MS_REQUEST_ID],(g=null===(s=h.headers)||void 0===s?void 0:s[l.OK.X_MS_HTTP_VERSION])&&(null===u||void 0===u||u.addStaticFields({httpVerAuthority:g})),(v=new un(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient)).validateTokenResponse(h.body),null===(c=this.performanceClient)||void 0===c||c.setPreQueueTime(i.HandleServerTokenResponse,e.correlationId),[2,v.handleServerTokenResponse(h.body,this.authority,f,e,t,void 0,void 0,void 0,p).then((function(e){return null===u||void 0===u||u.endMeasurement({success:!0}),e})).catch((function(t){throw m.logger.verbose("Error in fetching token in ACC",e.correlationId),null===u||void 0===u||u.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t}))]}}))}))},t.prototype.handleFragmentResponse=function(e,t){var n=new un(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),r=new Nt(e),o=Nt.getDeserializedHash(r.getHash());if(n.validateServerAuthorizationCodeResponse(o,t,this.cryptoUtils),!o.code)throw Be.e.createNoAuthCodeInServerResponseError();return(0,d.Cl)((0,d.Cl)({},o),{code:o.code})},t.prototype.getLogoutUri=function(e){if(!e)throw ft.createEmptyLogoutRequestError();var t=this.createLogoutUrlQueryString(e);return Nt.appendQueryString(this.authority.endSessionEndpoint,t)},t.prototype.executeTokenRequest=function(e,t){var n,r;return(0,d.sH)(this,void 0,void 0,(function(){var o,a,s,c,u,f,h;return(0,d.YH)(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(i.AuthClientExecuteTokenRequest,t.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(i.AuthClientCreateTokenRequestBody,t.correlationId),o=this.createTokenQueryParameters(t),a=Nt.appendQueryString(e.tokenEndpoint,o),[4,this.createTokenRequestBody(t)];case 1:if(s=d.sent(),c=void 0,t.clientInfo)try{u=(0,en.k)(t.clientInfo,this.cryptoUtils),c={credential:""+u.uid+l.LR.CLIENT_INFO_SEPARATOR+u.utid,type:Me.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}return f=this.createTokenRequestHeaders(c||t.ccsCredential),h={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(a,s,f,h)]}}))}))},t.prototype.createTokenRequestBody=function(e){var t,n;return(0,d.sH)(this,void 0,void 0,(function(){var r,o,a,s,c,u,f,h;return(0,d.YH)(this,(function(d){switch(d.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.AuthClientCreateTokenRequestBody,e.correlationId),(r=new nn).addClientId(this.config.authOptions.clientId),this.includeRedirectUri?r.addRedirectUri(e.redirectUri):tn.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(l.$x.AUTHORIZATION_CODE_GRANT),r.addClientInfo(),e.authenticationScheme!==l.IO.POP?[3,2]:(a=new sn(this.cryptoUtils,this.performanceClient),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(i.PopTokenGenerateCnf,e.correlationId),[4,a.generateCnf(e)]);case 1:return s=d.sent(),r.addPopToken(s.reqCnfString),[3,3];case 2:if(e.authenticationScheme===l.IO.SSH){if(!e.sshJwk)throw ft.createMissingSshJwkError();r.addSshJwk(e.sshJwk)}d.label=3;case 3:if(c=e.correlationId||this.config.cryptoInterface.createNewGuid(),r.addCorrelationId(c),(!R.$.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&r.addClaims(e.claims,this.config.authOptions.clientCapabilities),u=void 0,e.clientInfo)try{f=(0,en.k)(e.clientInfo,this.cryptoUtils),u={credential:""+f.uid+l.LR.CLIENT_INFO_SEPARATOR+f.utid,type:Me.HOME_ACCOUNT_ID}}catch(p){this.logger.verbose("Could not parse client info for CCS Header: "+p)}else u=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case Me.HOME_ACCOUNT_ID:try{f=(0,en.Z)(u.credential),r.addCcsOid(f)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case Me.UPN:r.addCcsUpn(u.credential)}return e.tokenBodyParameters&&r.addExtraQueryParameters(e.tokenBodyParameters),!e.enableSpaAuthorizationCode||e.tokenBodyParameters&&e.tokenBodyParameters[l.lB.RETURN_SPA_CODE]||r.addExtraQueryParameters(((h={})[l.lB.RETURN_SPA_CODE]="1",h)),[2,r.createQueryString()]}}))}))},t.prototype.createAuthCodeUrlQueryString=function(e){var t;return(0,d.sH)(this,void 0,void 0,(function(){var n,r,o,a,s,c,u;return(0,d.YH)(this,(function(f){switch(f.label){case 0:if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.AuthClientCreateQueryString,e.correlationId),(n=new nn).addClientId(this.config.authOptions.clientId),r=(0,d.aN)(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!==l._M.SELECT_ACCOUNT)if(e.sid&&e.prompt===l._M.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(e.sid);else if(e.account){if(a=this.extractAccountSid(e.account),s=this.extractLoginHint(e.account)){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(s);try{c=(0,en.Z)(e.account.homeAccountId),n.addCcsOid(c)}catch(h){this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(a&&e.prompt===l._M.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{c=(0,en.Z)(e.account.homeAccountId),n.addCcsOid(c)}catch(h){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{c=(0,en.Z)(e.account.homeAccountId),n.addCcsOid(c)}catch(h){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),(!R.$.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!==l.IO.POP?[3,2]:[4,new sn(this.cryptoUtils).generateCnf(e)]):[3,2];case 1:u=f.sent(),n.addPopToken(u.reqCnfHash),f.label=2;case 2:return[2,n.createQueryString()]}}))}))},t.prototype.createLogoutUrlQueryString=function(e){var t=new nn;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}(rn);function dn(e){return e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("jwks_uri")}var fn={"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"}},hn={"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 pn,gn=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,a,s;return(0,d.sH)(this,void 0,void 0,(function(){var c,u,f,h,p;return(0,d.YH)(this,(function(d){switch(d.label){case 0:if(null===(r=this.performanceClient)||void 0===r||r.addQueueMeasurement(i.RegionDiscoveryDetectRegion,this.correlationId),c=t)return[3,8];u=e.IMDS_OPTIONS,d.label=1;case 1:return d.trys.push([1,6,,7]),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(i.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(l.YM.IMDS_VERSION,u)];case 2:return(f=d.sent()).status===l.Kk.httpSuccess&&(c=f.body,n.region_source=l.jZ.IMDS),f.status!==l.Kk.httpBadRequest?[3,5]:(null===(a=this.performanceClient)||void 0===a||a.setPreQueueTime(i.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(u)]);case 3:return(h=d.sent())?(null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(i.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(h,u)]):(n.region_source=l.jZ.FAILED_AUTO_DETECTION,[2,null]);case 4:(p=d.sent()).status===l.Kk.httpSuccess&&(c=p.body,n.region_source=l.jZ.IMDS),d.label=5;case 5:return[3,7];case 6:return d.sent(),n.region_source=l.jZ.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:n.region_source=l.jZ.ENVIRONMENT_VARIABLE,d.label=9;case 9:return c||(n.region_source=l.jZ.FAILED_AUTO_DETECTION),[2,c||null]}}))}))},e.prototype.getRegionFromIMDS=function(e,t){var n;return(0,d.sH)(this,void 0,void 0,(function(){return(0,d.YH)(this,(function(r){return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(i.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(l.YM.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,l.YM.IMDS_TIMEOUT)]}))}))},e.prototype.getCurrentVersion=function(e){var t;return(0,d.sH)(this,void 0,void 0,(function(){var n;return(0,d.YH)(this,(function(r){switch(r.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.RegionDiscoveryGetCurrentVersion,this.correlationId),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(l.YM.IMDS_ENDPOINT+"?format=json",e)];case 2:return(n=r.sent()).status===l.Kk.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}(),vn=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 gn(t,this.performanceClient,this.correlationId)}return Object.defineProperty(e.prototype,"authorityType",{get:function(){if(this.canonicalAuthorityUrlComponents.HostNameAndPort.endsWith(l.YM.CIAM_AUTH_URL))return on.I.Ciam;var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case l.YM.ADFS:return on.I.Adfs;case l.YM.DSTS:return on.I.Dsts}return on.I.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 Nt(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 Be.e.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 Be.e.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 Be.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw Be.e.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}throw Be.e.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 Be.e.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 Be.e.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 Nt(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===on.I.Adfs||this.authorityType===on.I.Dsts||this.protocolMode===kt.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(0,d.sH)(this,void 0,void 0,(function(){var r,o,a,s;return(0,d.YH)(this,(function(c){switch(c.label){case 0:return null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(i.AuthorityResolveEndpointsAsync,this.correlationId),(r=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort))||(r=new It).updateCanonicalAuthority(this.canonicalAuthority),null===(t=this.performanceClient)||void 0===t||t.setPreQueueTime(i.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(r)];case 1:return o=c.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,r.preferred_network),null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(i.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(r)];case 2:return a=c.sent(),o!==l.E_.CACHE&&a!==l.E_.CACHE&&(r.resetExpiresAt(),r.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(r.preferred_cache),this.cacheManager.setAuthorityMetadata(s,r),this.metadata=r,[2]}}))}))},e.prototype.updateEndpointMetadata=function(e){var t,n,r,o,a,s;return(0,d.sH)(this,void 0,void 0,(function(){var c,u;return(0,d.YH)(this,(function(d){switch(d.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.AuthorityUpdateEndpointMetadata,this.correlationId),(c=this.getEndpointMetadataFromConfig())?(e.updateEndpointMetadata(c,!1),[2,l.E_.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,l.E_.CACHE]:(null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(i.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return(c=d.sent())?(null===(r=this.authorityOptions.azureRegionConfiguration)||void 0===r?void 0:r.azureRegion)?(null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(i.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,3]:[3,4];case 2:c=d.sent(),d.label=3;case 3:return e.updateEndpointMetadata(c,!0),[2,l.E_.NETWORK];case 4:return!(u=this.getEndpointMetadataFromHardcodedValues())||this.authorityOptions.skipAuthorityMetadataCache?[3,7]:(null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.azureRegion)?(null===(s=this.performanceClient)||void 0===s||s.setPreQueueTime(i.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(u)]):[3,6];case 5:u=d.sent(),d.label=6;case 6:return e.updateEndpointMetadata(u,!1),[2,l.E_.HARDCODED_VALUES];case 7:throw Be.e.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}}))}))},e.prototype.isAuthoritySameType=function(e){return new Nt(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(e){throw ft.createInvalidAuthorityMetadataError()}return null},e.prototype.getEndpointMetadataFromNetwork=function(){var e;return(0,d.sH)(this,void 0,void 0,(function(){var t,n;return(0,d.YH)(this,(function(r){switch(r.label){case 0:null===(e=this.performanceClient)||void 0===e||e.addQueueMeasurement(i.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,dn((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 fn?fn[this.canonicalAuthority]:null},e.prototype.updateMetadataWithRegionalInformation=function(t){var n,r,o,a,s,c,u;return(0,d.sH)(this,void 0,void 0,(function(){var f,h;return(0,d.YH)(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(i.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(i.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion(null===(o=this.authorityOptions.azureRegionConfiguration)||void 0===o?void 0:o.environmentRegion,this.regionDiscoveryMetadata)];case 1:return f=d.sent(),h=(null===(a=this.authorityOptions.azureRegionConfiguration)||void 0===a?void 0:a.azureRegion)===l.YM.AZURE_REGION_AUTO_DISCOVER_FLAG?f:null===(s=this.authorityOptions.azureRegionConfiguration)||void 0===s?void 0:s.azureRegion,(null===(c=this.authorityOptions.azureRegionConfiguration)||void 0===c?void 0:c.azureRegion)===l.YM.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=f?l._2.AUTO_DETECTION_REQUESTED_SUCCESSFUL:l._2.AUTO_DETECTION_REQUESTED_FAILED:this.regionDiscoveryMetadata.region_outcome=f?(null===(u=this.authorityOptions.azureRegionConfiguration)||void 0===u?void 0:u.azureRegion)===f?l._2.CONFIGURED_MATCHES_DETECTED:l._2.CONFIGURED_NOT_DETECTED:l._2.CONFIGURED_NO_AUTO_DETECTION,h?(this.regionDiscoveryMetadata.region_used=h,[2,e.replaceWithRegionalInformation(t,h)]):[2,t]}}))}))},e.prototype.updateCloudDiscoveryMetadata=function(e){var t,n;return(0,d.sH)(this,void 0,void 0,(function(){var r,o,a;return(0,d.YH)(this,(function(s){switch(s.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||l.YM.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||l.YM.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||l.YM.NOT_APPLICABLE)),(r=this.getCloudDiscoveryMetadataFromConfig())?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(r,!1),[2,l.E_.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,l.E_.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(i.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(r=s.sent())return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(r,!0),[2,l.E_.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),(a=this.getCloudDiscoveryMetadataFromHarcodedValues())&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,l.E_.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."),ft.createUntrustedAuthorityError()}}))}))},e.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===on.I.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(r){throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),ft.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(0,d.sH)(this,void 0,void 0,(function(){var n,r,o,a,s,c,u,h;return(0,d.YH)(this,(function(d){switch(d.label){case 0:null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),n=""+l.YM.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},o=null,d.label=1;case 1:return d.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(n,r)];case 2:if(a=d.sent(),s=void 0,c=void 0,function(e){return e.hasOwnProperty("tenant_discovery_endpoint")&&e.hasOwnProperty("metadata")}(a.body))s=a.body,c=s.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+s.tenant_discovery_endpoint);else{if(!function(e){return e.hasOwnProperty("error")&&e.hasOwnProperty("error_description")}(a.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: "+a.status),(s=a.body).error===l.YM.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+s.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+s.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),c=[]}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(c,this.hostnameAndPort),[3,4];case 3:return(u=d.sent())instanceof f.l?this.logger.error("There was a network error while attempting to get the cloud discovery instance metadata.\nError: "+u.errorCode+"\nError Description: "+u.errorMessage):(h=u,this.logger.error("A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.\nError: "+h.name+"\nError Description: "+h.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 hn?hn[this.canonicalAuthority]:null},e.prototype.isInKnownAuthorities=function(){var e=this;return this.authorityOptions.knownAuthorities.filter((function(t){return Nt.getDomainFromUrl(t).toLowerCase()===e.hostnameAndPort})).length>0},e.generateAuthority=function(e,t){var n;if(t&&t.azureCloudInstance!==Rt.None){var r=t.tenant?t.tenant:l.YM.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 Be.e.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},e.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},e.isPublicCloudAuthority=function(e){return l.YM.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},e.buildRegionalAuthorityString=function(e,t,n){var r=new Nt(e);r.validateAsUri();var o=r.getUrlComponents(),i=t+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(i=t+"."+l.YM.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var a=Nt.constructAuthorityUriFromObject((0,d.Cl)((0,d.Cl)({},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,l.YM.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(l.YM.FORWARD_SLASH)?e:""+e+l.YM.FORWARD_SLASH,n=new Nt(e).getUrlComponents();0===n.PathSegments.length&&n.HostNameAndPort.endsWith(l.YM.CIAM_AUTH_URL)&&(t=""+t+n.HostNameAndPort.split(".")[0]+l.YM.AAD_TENANT_DOMAIN_SUFFIX);return t},e}(),mn=function(){function e(){}return e.createDiscoveredInstance=function(t,n,r,o,a,s,c){return(0,d.sH)(this,void 0,void 0,(function(){var u,l,f;return(0,d.YH)(this,(function(d){switch(d.label){case 0:null===s||void 0===s||s.addQueueMeasurement(i.AuthorityFactoryCreateDiscoveredInstance,c),u=vn.transformCIAMAuthority(t),l=e.createInstance(u,n,r,o,a,s,c),d.label=1;case 1:return d.trys.push([1,3,,4]),null===s||void 0===s||s.setPreQueueTime(i.AuthorityResolveEndpointsAsync,c),[4,l.resolveEndpointsAsync()];case 2:return d.sent(),[2,l];case 3:throw f=d.sent(),Be.e.createEndpointDiscoveryIncompleteError(f);case 4:return[2]}}))}))},e.createInstance=function(e,t,n,r,o,i,a){if(R.$.isEmpty(e))throw ft.createUrlEmptyError();return new vn(e,t,n,r,o,i,a)},e}(),yn=function(){function e(e,t){this.cacheOutcome=l.Rv.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||l.YM.EMPTY_STRING,this.wrapperVer=e.wrapperVer||l.YM.EMPTY_STRING,this.telemetryCacheKey=l.gT.CACHE_KEY+l.LR.CACHE_KEY_SEPARATOR+e.clientId}return e.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+l.gT.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(l.gT.VALUE_SEPARATOR),n=[e,this.getRegionDiscoveryFields()].join(l.gT.VALUE_SEPARATOR);return[l.gT.SCHEMA_VERSION,n,t].join(l.gT.CATEGORY_SEPARATOR)},e.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),n=e.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*n).join(l.gT.VALUE_SEPARATOR),o=t.errors.slice(0,n).join(l.gT.VALUE_SEPARATOR),i=t.errors.length,a=[i,n<i?l.gT.OVERFLOW_TRUE:l.gT.OVERFLOW_FALSE].join(l.gT.VALUE_SEPARATOR);return[l.gT.SCHEMA_VERSION,t.cacheHits,r,o,a].join(l.gT.CATEGORY_SEPARATOR)},e.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=l.gT.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),R.$.isEmpty(e.subError)?R.$.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(l.gT.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 _t;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 _t;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]||l.YM.EMPTY_STRING,a=e.failedRequests[2*t+1]||l.YM.EMPTY_STRING,s=e.errors[t]||l.YM.EMPTY_STRING;if(!((r+=i.toString().length+a.toString().length+s.length+3)<l.gT.MAX_LAST_HEADER_BYTES))break;n+=1}return n},e.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||l.YM.EMPTY_STRING),e.push(this.regionSource||l.YM.EMPTY_STRING),e.push(this.regionOutcome||l.YM.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}(),Cn=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(C.Q1.MSAL_SKU,Xt,this.correlationId),this.performanceClient=a}return e.prototype.clearCacheOnLogout=function(e){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){switch(t.label){case 0:if(!e)return[3,5];pt.d.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(pt.d.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(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o;return(0,s.YH)(this,(function(a){switch(a.label){case 0:if(this.performanceClient.addQueueMeasurement(i.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),t=e.authority||this.config.auth.authority,n=(0,s.gz)(e&&e.scopes||[]),(r=(0,s.Cl)((0,s.Cl)({},e),{correlationId:this.correlationId,authority:t,scopes:n})).authenticationScheme){if(r.authenticationScheme===l.IO.SSH){if(!e.sshJwk)throw ft.createMissingSshJwkError();if(!e.sshKid)throw ft.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+r.authenticationScheme+'" as configured in Auth request')}else r.authenticationScheme=l.IO.BEARER,this.logger.verbose('Authentication Scheme wasn\'t explicitly set in request, defaulting to "Bearer" request');return!e.claims||R.$.isEmpty(e.claims)?[3,2]:(o=r,[4,this.browserCrypto.hashString(e.claims)]);case 1:o.requestedClaimsHash=a.sent(),a.label=2;case 2:return[2,r]}}))}))},e.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||Yt.getCurrentUri();return Nt.getAbsoluteUrl(t,Yt.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 yn(n,this.browserStorage)},e.prototype.getDiscoveredAuthority=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(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,mn.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,mn.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)]}}))}))},e}(),Tn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,s.C6)(t,e),t.prototype.initializeAuthorizationCodeRequest=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(i.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),this.logger.verbose("initializeAuthorizationRequest called",e.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return t=r.sent(),n=(0,s.Cl)((0,s.Cl)({},e),{redirectUri:e.redirectUri,code:l.YM.EMPTY_STRING,codeVerifier:t.verifier}),e.codeChallenge=t.challenge,e.codeChallengeMethod=l.YM.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=(0,s.Cl)({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=Nt.getAbsoluteUrl(e.postLogoutRedirectUri,Yt.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=Nt.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Yt.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",t.correlationId),t.postLogoutRedirectUri=Nt.getAbsoluteUrl(Yt.getCurrentUri(),Yt.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(0,s.sH)(this,void 0,void 0,(function(){var r;return(0,s.YH)(this,(function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(i.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(i.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new ln(r,this.performanceClient)]}}))}))},t.prototype.getClientConfiguration=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){var r,o;return(0,s.YH)(this,(function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(i.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(i.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(t,n)];case 1:return r=a.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:C.Q1.MSAL_SKU,version:Xt,cpu:l.YM.EMPTY_STRING,os:l.YM.EMPTY_STRING},telemetry:this.config.telemetry}]}}))}))},t.prototype.validateAndExtractStateFromHash=function(e,t,n){if(this.logger.verbose("validateAndExtractStateFromHash called",n),!e.state)throw Ee.createHashDoesNotContainStateError();var r=Ot.extractBrowserRequestState(this.browserCrypto,e.state);if(!r)throw Ee.createUnableToParseStateError();if(r.interactionType!==t)throw Ee.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",n),e.state},t.prototype.getDiscoveredAuthority=function(e,t){var n;return(0,s.sH)(this,void 0,void 0,(function(){var r,o,a,c;return(0,s.YH)(this,(function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(i.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),r=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(i.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},a=e||this.config.auth.authority,c=vn.generateAuthority(a,t||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(i.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,mn.createDiscoveredInstance(c,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(0,s.sH)(this,void 0,void 0,(function(){var n,r,o,a,c,u,d;return(0,s.YH)(this,(function(f){switch(f.label){case 0:return this.performanceClient.addQueueMeasurement(i.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),n=this.getRedirectUri(e.redirectUri),r={interactionType:t},o=At.setRequestState(this.browserCrypto,e&&e.state||l.YM.EMPTY_STRING,r),this.performanceClient.setPreQueueTime(i.InitializeBaseRequest,this.correlationId),c=[{}],[4,this.initializeBaseRequest(e)];case 1:return a=s.Cl.apply(void 0,[s.Cl.apply(void 0,c.concat([f.sent()])),{redirectUri:n,state:o,nonce:e.nonce||this.browserCrypto.createNewGuid(),responseMode:l.p.FRAGMENT}]),(u=e.account||this.browserStorage.getActiveAccount())&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+u.homeAccountId,this.correlationId),a.account=u),R.$.isEmpty(a.loginHint)&&!u&&(d=this.browserStorage.getLegacyLoginHint())&&(a.loginHint=d),[2,a]}}))}))},t}(Cn);!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"}(pn||(pn={}));var En={code:"ContentError"},wn={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."},bn={code:"tokens_not_found_in_internal_memory_cache",desc:"Tokens not cached in MSAL JS internal memory, please make the WAM request"},_n=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(0,s.C6)(t,e),t.prototype.isFatal=function(){return!(!this.ext||!this.ext.status||this.ext.status!==pn.PERSISTENT_ERROR&&this.ext.status!==pn.DISABLED)||this.errorCode===En.code},t.createError=function(e,n,r){if(r&&r.status)switch(r.status){case pn.ACCOUNT_UNAVAILABLE:return y.createNativeAccountUnavailableError();case pn.USER_INTERACTION_REQUIRED:return new y(e,n);case pn.USER_CANCEL:return Ee.createUserCancelledError();case pn.NO_NETWORK:return Ee.createNoNetworkConnectivityError()}return new t(e,n,r)},t.createUserSwitchError=function(){return new t(wn.code,wn.desc)},t.createTokensNotFoundInCacheError=function(){return new t(bn.code,bn.desc)},t}(f.l),In=function(e){function t(t,n){return e.call(this,t,n)||this}return(0,d.C6)(t,e),t.prototype.acquireToken=function(e){var t,n,r,o,a,s,c;return(0,d.sH)(this,void 0,void 0,(function(){var u,f,h,p,g,v,m=this;return(0,d.YH)(this,(function(d){switch(d.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.RefreshTokenClientAcquireToken,e.correlationId),u=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(i.RefreshTokenClientAcquireToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",e.correlationId),f=Tt.nowSeconds(),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(i.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(e,this.authority)];case 1:return h=d.sent(),p=null===(o=h.headers)||void 0===o?void 0:o[l.OK.X_MS_HTTP_VERSION],null===u||void 0===u||u.addStaticFields({refreshTokenSize:(null===(a=h.body.refresh_token)||void 0===a?void 0:a.length)||0}),p&&(null===u||void 0===u||u.addStaticFields({httpVerToken:p})),g=null===(s=h.headers)||void 0===s?void 0:s[l.OK.X_MS_REQUEST_ID],(v=new un(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin)).validateTokenResponse(h.body),null===(c=this.performanceClient)||void 0===c||c.setPreQueueTime(i.HandleServerTokenResponse,e.correlationId),[2,v.handleServerTokenResponse(h.body,this.authority,f,e,void 0,void 0,!0,e.forceCache,g).then((function(e){return null===u||void 0===u||u.endMeasurement({success:!0}),e})).catch((function(t){throw m.logger.verbose("Error in fetching refresh token",e.correlationId),null===u||void 0===u||u.endMeasurement({errorCode:t.errorCode,subErrorCode:t.subError,success:!1}),t}))]}}))}))},t.prototype.acquireTokenByRefreshToken=function(e){var t,n,r,o;return(0,d.sH)(this,void 0,void 0,(function(){var a,s;return(0,d.YH)(this,(function(c){if(!e)throw ft.createEmptyTokenRequestError();if(null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw Be.e.createNoAccountInSilentRequestError();if(this.cacheManager.isAppMetadataFOCI(e.account.environment))try{return null===(n=this.performanceClient)||void 0===n||n.setPreQueueTime(i.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(u){if(a=u instanceof y&&u.errorCode===v.code,s=u instanceof h&&u.errorCode===l.I.INVALID_GRANT_ERROR&&u.subError===l.I.CLIENT_MISMATCH_ERROR,a||s)return null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(i.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw u}return null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(i.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)]}))}))},t.prototype.acquireTokenWithCachedRefreshToken=function(e,t){var n,r,o;return(0,d.sH)(this,void 0,void 0,(function(){var a,s,c;return(0,d.YH)(this,(function(u){if(null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(i.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),a=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(i.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",e.correlationId),!(s=this.cacheManager.getRefreshToken(e.account,t)))throw null===a||void 0===a||a.discardMeasurement(),y.createNoTokensFoundError();return null===a||void 0===a||a.endMeasurement({success:!0}),c=(0,d.Cl)((0,d.Cl)({},e),{refreshToken:s.secret,authenticationScheme:e.authenticationScheme||l.IO.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:Me.HOME_ACCOUNT_ID}}),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(i.RefreshTokenClientAcquireToken,e.correlationId),[2,this.acquireToken(c)]}))}))},t.prototype.executeTokenRequest=function(e,t){var n,r,o;return(0,d.sH)(this,void 0,void 0,(function(){var a,s,c,u,l,f;return(0,d.YH)(this,(function(d){switch(d.label){case 0:return null===(n=this.performanceClient)||void 0===n||n.addQueueMeasurement(i.RefreshTokenClientExecuteTokenRequest,e.correlationId),a=null===(r=this.performanceClient)||void 0===r?void 0:r.startMeasurement(i.RefreshTokenClientExecuteTokenRequest,e.correlationId),null===(o=this.performanceClient)||void 0===o||o.setPreQueueTime(i.RefreshTokenClientCreateTokenRequestBody,e.correlationId),s=this.createTokenQueryParameters(e),c=Nt.appendQueryString(t.tokenEndpoint,s),[4,this.createTokenRequestBody(e)];case 1:return u=d.sent(),l=this.createTokenRequestHeaders(e.ccsCredential),f={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(c,u,l,f).then((function(e){return null===a||void 0===a||a.endMeasurement({success:!0}),e})).catch((function(e){throw null===a||void 0===a||a.endMeasurement({success:!1}),e}))]}}))}))},t.prototype.createTokenRequestBody=function(e){var t,n,r;return(0,d.sH)(this,void 0,void 0,(function(){var o,a,s,c,u,f,h;return(0,d.YH)(this,(function(d){switch(d.label){case 0:return null===(t=this.performanceClient)||void 0===t||t.addQueueMeasurement(i.RefreshTokenClientCreateTokenRequestBody,e.correlationId),o=e.correlationId,a=null===(n=this.performanceClient)||void 0===n?void 0:n.startMeasurement(i.BaseClientCreateTokenRequestHeaders,o),(s=new nn).addClientId(this.config.authOptions.clientId),s.addScopes(e.scopes),s.addGrantType(l.$x.REFRESH_TOKEN_GRANT),s.addClientInfo(),s.addLibraryInfo(this.config.libraryInfo),s.addApplicationTelemetry(this.config.telemetry.application),s.addThrottling(),this.serverTelemetryManager&&s.addServerTelemetry(this.serverTelemetryManager),s.addCorrelationId(o),s.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&s.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(c=this.config.clientCredentials.clientAssertion,s.addClientAssertion(c.assertion),s.addClientAssertionType(c.assertionType)),e.authenticationScheme!==l.IO.POP?[3,2]:(u=new sn(this.cryptoUtils,this.performanceClient),null===(r=this.performanceClient)||void 0===r||r.setPreQueueTime(i.PopTokenGenerateCnf,e.correlationId),[4,u.generateCnf(e)]);case 1:return f=d.sent(),s.addPopToken(f.reqCnfString),[3,3];case 2:if(e.authenticationScheme===l.IO.SSH){if(!e.sshJwk)throw null===a||void 0===a||a.endMeasurement({success:!1}),ft.createMissingSshJwkError();s.addSshJwk(e.sshJwk)}d.label=3;case 3:if((!R.$.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&s.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case Me.HOME_ACCOUNT_ID:try{h=(0,en.Z)(e.ccsCredential.credential),s.addCcsOid(h)}catch(p){this.logger.verbose("Could not parse home account ID for CCS Header: "+p)}break;case Me.UPN:s.addCcsUpn(e.ccsCredential.credential)}return null===a||void 0===a||a.endMeasurement({success:!0}),[2,s.createQueryString()]}}))}))},t}(rn),Sn=function(e){function t(t,n){return e.call(this,t,n)||this}return(0,d.C6)(t,e),t.prototype.acquireToken=function(e){return(0,d.sH)(this,void 0,void 0,(function(){var t;return(0,d.YH)(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 Be.e&&t.errorCode===Be.N.tokenRefreshRequired.code)return[2,new In(this.config,this.performanceClient).acquireTokenByRefreshToken(e)];throw t;case 3:return[2]}}))}))},t.prototype.acquireCachedToken=function(e){var t,n,r,o;return(0,d.sH)(this,void 0,void 0,(function(){var i,a;return(0,d.YH)(this,(function(s){switch(s.label){case 0:if(!e)throw ft.createEmptyTokenRequestError();if(e.forceRefresh)throw null===(t=this.serverTelemetryManager)||void 0===t||t.setCacheOutcome(l.Rv.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),Be.e.createRefreshRequiredError();if(!e.account)throw Be.e.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(l.Rv.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),Be.e.createRefreshRequiredError();if(Tt.wasClockTurnedBack(a.accessToken.cachedAt)||Tt.isTokenExpired(a.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw null===(r=this.serverTelemetryManager)||void 0===r||r.setCacheOutcome(l.Rv.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),Be.e.createRefreshRequiredError();if(a.accessToken.refreshOn&&Tt.isTokenExpired(a.accessToken.refreshOn,0))throw null===(o=this.serverTelemetryManager)||void 0===o||o.setCacheOutcome(l.Rv.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),Be.e.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(0,d.sH)(this,void 0,void 0,(function(){var n,r;return(0,d.YH)(this,(function(o){switch(o.label){case 0:if(e.idToken&&(n=new gt(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 Be.e.createAuthTimeNotFoundError();gt.checkMaxAge(r,t.maxAge)}return[4,un.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,t,n)];case 1:return[2,o.sent()]}}))}))},t}(rn),An=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,s.C6)(t,e),t.prototype.acquireToken=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,a;return(0,s.YH)(this,(function(s){switch(s.label){case 0:return t=this.performanceClient.startMeasurement(i.SilentCacheClientAcquireToken,e.correlationId),n=this.initializeServerTelemetryManager(C.sA.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(n,e.authority,e.azureCloudOptions)];case 1:r=s.sent(),this.logger.verbose("Silent auth client created"),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,r.acquireCachedToken(e)];case 3:return o=s.sent(),t.endMeasurement({success:!0,fromCache:!0}),[2,o];case 4:throw(a=s.sent())instanceof Ee&&a.errorCode===le.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:a instanceof f.l&&a.errorCode||void 0,subErrorCode:a instanceof f.l&&a.subError||void 0,success:!1}),a;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(Ee.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){var r;return(0,s.YH)(this,(function(o){switch(o.label){case 0:return this.performanceClient.setPreQueueTime(i.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new Sn(r,this.performanceClient)]}}))}))},t.prototype.initializeSilentRequest=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){var n;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return this.performanceClient.addQueueMeasurement(i.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(i.InitializeBaseRequest,this.correlationId),n=[(0,s.Cl)({},e)],[4,this.initializeBaseRequest(e)];case 1:return[2,s.Cl.apply(void 0,[s.Cl.apply(void 0,n.concat([r.sent()])),{account:t,forceRefresh:e.forceRefresh||!1}])]}}))}))},t}(Tn),kn=function(e){function t(t,n,r,o,i,a,s,c,u,l,d,f){var h=e.call(this,t,n,r,o,i,a,c,u,f)||this;return h.apiId=s,h.accountId=l,h.nativeMessageHandler=u,h.nativeStorageManager=d,h.silentCacheClient=new An(t,h.nativeStorageManager,r,o,i,a,c,u,f),h}return(0,s.C6)(t,e),t.prototype.acquireToken=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,a,c,u;return(0,s.YH)(this,(function(s){switch(s.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),t=this.performanceClient.startMeasurement(i.NativeInteractionClientAcquireToken,e.correlationId),n=Tt.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:r=s.sent(),s.label=2;case 2:return s.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,r)];case 3:return o=s.sent(),t.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,o];case 4:return s.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return a={method:C.Ct.GetToken,request:r},[4,this.nativeMessageHandler.sendMessage(a)];case 6:return c=s.sent(),u=this.validateNativeResponse(c),[2,this.handleNativeResponse(u,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:ht.fromString(e.scope).asArray(),account:t,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){var n,r;return(0,s.YH)(this,(function(o){switch(o.label){case 0:if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),Be.e.createNoAccountFoundError();if(!(n=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:e})))throw Be.e.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(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,i,a;return(0,s.YH)(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:C.Ct.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 _n&&o.isFatal())throw o;return[3,5];case 5:return this.browserStorage.setTemporaryCache(C._p.NATIVE_REQUEST,JSON.stringify(t),!0),i={apiId:C.sA.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(0,s.sH)(this,void 0,void 0,(function(){var e,t,n,r,o,i,a,c;return(0,s.YH)(this,(function(u){switch(u.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=(0,s.Tt)(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(C._p.NATIVE_REQUEST)),r={method:C.Ct.GetToken,request:n},o=Tt.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(r)];case 2:return i=u.sent(),this.validateNativeResponse(i),a=this.handleNativeResponse(i,n,o),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw c=u.sent(),this.browserStorage.setInteractionInProgress(!1),c;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(0,s.sH)(this,void 0,void 0,(function(){var r,o,i,a,c,u;return(0,s.YH)(this,(function(s){switch(s.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==t.accountId)throw _n.createUserSwitchError();return[4,this.getDiscoveredAuthority(t.authority)];case 1:return r=s.sent(),o=r.getPreferredCache(),i=this.createIdTokenObj(e),a=this.createHomeAccountIdentifier(e,i),c=this.createAccountEntity(e,a,i,o),[4,this.generateAuthenticationResult(e,t,i,c,r.canonicalAuthority,n)];case 2:return u=s.sent(),this.cacheAccount(c),this.cacheNativeTokens(e,t,a,i,u.accessToken,u.tenantId,n),[2,u]}}))}))},t.prototype.createIdTokenObj=function(e){return new gt(e.id_token||l.YM.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(e,t){return pt.d.generateHomeAccountId(e.client_info||l.YM.EMPTY_STRING,on.I.Default,this.logger,this.browserCrypto,t)},t.prototype.createAccountEntity=function(e,t,n,r){return pt.d.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?ht.fromString(e.scope):ht.fromString(t.scope)},t.prototype.generatePopAccessToken=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){var n,r;return(0,s.YH)(this,(function(o){switch(o.label){case 0:if(t.tokenType!==l.IO.POP)return[3,2];if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,e.shr];if(n=new sn(this.browserCrypto),r={resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,shrNonce:t.shrNonce},!t.keyId)throw Be.e.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(0,s.sH)(this,void 0,void 0,(function(){var a,c,u,d,f,h,p;return(0,s.YH)(this,(function(s){switch(s.label){case 0:return a=this.addTelemetryFromNativeResponse(e),c=e.scope?ht.fromString(e.scope):ht.fromString(t.scope),u=e.account.properties||{},d=u.UID||n.claims.oid||n.claims.sub||l.YM.EMPTY_STRING,f=u.TenantId||n.claims.tid||l.YM.EMPTY_STRING,[4,this.generatePopAccessToken(e,t)];case 1:return h=s.sent(),p=t.tokenType===l.IO.POP?l.IO.POP:l.IO.BEARER,[2,{authority:o,uniqueId:d,tenantId:f,scopes:c.asArray(),account:r.getAccountInfo(),idToken:e.id_token,idTokenClaims:n.claims,accessToken:h,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=je.createIdTokenEntity(n,t.authority,e.id_token||l.YM.EMPTY_STRING,t.clientId,r.claims.tid||l.YM.EMPTY_STRING);this.nativeStorageManager.setIdTokenCredential(s);var c=a+(t.tokenType===l.IO.POP?l.YM.SHR_NONCE_VALIDITY:("string"===typeof e.expires_in?parseInt(e.expires_in,10):e.expires_in)||0),u=this.generateScopes(e,t),d=Et.createAccessTokenEntity(n,t.authority,o,t.clientId,i,u.printScopes(),c,0,this.browserCrypto);this.nativeStorageManager.setAccessTokenCredential(d)},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 _n.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch(t){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(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,u,d,f=this;return(0,s.YH)(this,(function(h){switch(h.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),t=e.authority||this.config.auth.authority,(n=new Nt(t)).validateAsUri(),r=e.scopes,o=(0,s.Tt)(e,["scopes"]),(i=new ht(r||[])).appendScopes(l.aZ),a=function(){switch(f.apiId){case C.sA.ssoSilent:case C.sA.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),l._M.NONE}if(e.prompt)switch(e.prompt){case l._M.NONE:case l._M.CONSENT:case l._M.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+e.prompt+" is not compatible with native flow"),Ee.createNativePromptParameterNotSupportedError()}else f.logger.trace("initializeNativeRequest: prompt was not provided")},c=(0,s.Cl)((0,s.Cl)({},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:(0,s.Cl)((0,s.Cl)((0,s.Cl)({},e.extraQueryParameters),e.tokenQueryParameters),{telemetry:C.JD.MATS_TELEMETRY}),extendedExpiryToken:!1}),e.authenticationScheme!==l.IO.POP?[3,2]:(u={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},[4,new sn(this.browserCrypto).generateCnf(u)]);case 1:d=h.sent(),c.reqCnf=d.reqCnfHash,c.keyId=d.kid,h.label=2;case 2:return[2,c]}}))}))},t}(Cn),Rn=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(i.NativeMessageHandlerHandshake)}return e.prototype.sendMessage=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n=this;return(0,s.YH)(this,(function(r){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:C.JD.CHANNEL_ID,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(0,s.sH)(this,void 0,void 0,(function(){var o,i;return(0,s.YH)(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,C.JD.PREFERRED_EXTENSION_ID)).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(0,s.sH)(this,void 0,void 0,(function(){var e,t=this;return(0,s.YH)(this,(function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:C.JD.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:C.Ct.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(Ee.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===C.JD.CHANNEL_ID&&(!t.extensionId||t.extensionId===this.extensionId)&&t.body.method===C.Ct.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(Ee.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===C.Ct.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(_n.createError(i.code,i.description,i.ext));else{if(!i.result)throw f.l.createUnexpectedError("Event does not contain result.");i.result.code&&i.result.description?n.reject(_n.createError(i.result.code,i.result.description,i.result.ext)):n.resolve(i.result)}this.resolvers.delete(t.responseId)}else if(o===C.Ct.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 l.IO.BEARER:case l.IO.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}(),Pn=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(0,s.sH)(this,void 0,void 0,(function(){var o,a,c;return(0,s.YH)(this,(function(s){if(this.performanceClient.addQueueMeasurement(i.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),R.$.isEmpty(e))throw Ee.createEmptyHashError(e);if(o=this.browserStorage.generateStateKey(t),!(a=this.browserStorage.getTemporaryCache(o)))throw Be.e.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(e,a)}catch(u){throw u instanceof h&&u.subError===K.code?Ee.createUserCancelledError():u}return this.performanceClient.setPreQueueTime(i.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(c,t,n,r)]}))}))},e.prototype.handleCodeResponseFromServer=function(e,t,n,r,o){return void 0===o&&(o=!0),(0,s.sH)(this,void 0,void 0,(function(){var a,c,u,l,d,f;return(0,s.YH)(this,(function(s){switch(s.label){case 0:if(this.performanceClient.addQueueMeasurement(i.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(t),!(c=this.browserStorage.getTemporaryCache(a)))throw Be.e.createStateNotFoundError("Cached State");return u=this.browserStorage.generateNonceKey(c),l=this.browserStorage.getTemporaryCache(u),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(i.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,r)]):[3,2];case 1:s.sent(),s.label=2;case 2:return o&&(e.nonce=l||void 0),e.state=c,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(d=this.checkCcsCredentials())&&(this.authCodeRequest.ccsCredential=d),this.performanceClient.setPreQueueTime(i.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return f=s.sent(),this.browserStorage.cleanRequestByState(t),[2,f]}}))}))},e.prototype.updateTokenEndpointAuthority=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){var r,o;return(0,s.YH)(this,(function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(i.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),r="https://"+e+"/"+t.tenant+"/",[4,mn.createDiscoveredInstance(r,n,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return o=a.sent(),this.authModule.updateAuthority(o),[2]}}))}))},e.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(C._p.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch(t){this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},e}(),Nn=function(e){function t(t,n,r,o,i,a,s,c,u,l){var d=e.call(this,t,n,r,o,i,a,s,u,l)||this;return d.unloadWindow=d.unloadWindow.bind(d),d.nativeStorage=c,d}return(0,s.C6)(t,e),t.prototype.acquireToken=function(e){try{var t=this.generatePopupName(e.scopes||l.aZ,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(o){return Promise.reject(o)}},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(s){return Promise.reject(s)}},t.prototype.acquireTokenPopupAsync=function(e,t,n,r){return(0,s.sH)(this,void 0,void 0,(function(){var o,a,c,u,d,h,p,g,v,m,y,T,E,w,b,_,I=this;return(0,s.YH)(this,(function(S){switch(S.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),o=this.initializeServerTelemetryManager(C.sA.acquireTokenPopup),this.performanceClient.setPreQueueTime(i.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,C.X8.Popup)];case 1:a=S.sent(),this.browserStorage.updateCacheEntries(a.state,a.nonce,a.authority,a.loginHint||l.YM.EMPTY_STRING,a.account||null),S.label=2;case 2:return S.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(i.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(a)];case 3:return c=S.sent(),this.performanceClient.setPreQueueTime(i.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(o,a.authority,a.azureCloudOptions)];case 4:return u=S.sent(),this.logger.verbose("Auth code client created"),d=Rn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),h=void 0,d&&(h=this.performanceClient.startMeasurement(i.FetchAccountIdWithNativeBroker,e.correlationId)),[4,u.getAuthCodeUrl((0,s.Cl)((0,s.Cl)({},a),{nativeBroker:d}))];case 5:return p=S.sent(),g=new Pn(u,this.browserStorage,c,this.logger,this.performanceClient),v={popup:r,popupName:t,popupWindowAttributes:n},m=this.initiateAuthRequest(p,v),this.eventHandler.emitEvent(Qt.B.POPUP_OPENED,C.X8.Popup,{popupWindow:m},null),[4,this.monitorPopupForHash(m)];case 6:if(y=S.sent(),T=Nt.getDeserializedHash(y),E=this.validateAndExtractStateFromHash(T,C.X8.Popup,a.correlationId),Jt.removeThrottle(this.browserStorage,this.config.auth.clientId,c),T.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),h&&h.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw Ee.createNativeConnectionNotEstablishedError();return w=new kn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,C.sA.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,T.accountId,this.nativeStorage,a.correlationId),b=At.parseRequestState(this.browserCrypto,E).userRequestState,[2,w.acquireToken((0,s.Cl)((0,s.Cl)({},a),{state:b,prompt:void 0})).finally((function(){I.browserStorage.cleanRequestByState(E)}))]}return[4,g.handleCodeResponseFromHash(y,E,u.authority,this.networkClient)];case 7:return[2,S.sent()];case 8:throw _=S.sent(),r&&r.close(),_ instanceof f.l&&_.setCorrelationId(this.correlationId),o.cacheFailedRequest(_),this.browserStorage.cleanRequestByState(a.state),_;case 9:return[2]}}))}))},t.prototype.logoutPopupAsync=function(e,t,n,r,o,a){return(0,s.sH)(this,void 0,void 0,(function(){var c,u,l,d,h,p,g;return(0,s.YH)(this,(function(s){switch(s.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Qt.B.LOGOUT_START,C.X8.Popup,e),c=this.initializeServerTelemetryManager(C.sA.logoutPopup),s.label=1;case 1:return s.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(e.account)];case 2:return s.sent(),this.performanceClient.setPreQueueTime(i.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(c,r)];case 3:return u=s.sent(),this.logger.verbose("Auth code client created"),l=u.getLogoutUri(e),this.eventHandler.emitEvent(Qt.B.LOGOUT_SUCCESS,C.X8.Popup,e),d=this.openPopup(l,{popupName:t,popupWindowAttributes:n,popup:o}),this.eventHandler.emitEvent(Qt.B.POPUP_OPENED,C.X8.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return s.sent(),a?(h={apiId:C.sA.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=Nt.getAbsoluteUrl(a,Yt.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+p),this.navigationClient.navigateInternal(p,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw g=s.sent(),o&&o.close(),g instanceof f.l&&g.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Qt.B.LOGOUT_FAILURE,C.X8.Popup,null,g),this.eventHandler.emitEvent(Qt.B.LOGOUT_END,C.X8.Popup),c.cacheFailedRequest(g),g;case 6:return this.eventHandler.emitEvent(Qt.B.LOGOUT_END,C.X8.Popup),[2]}}))}))},t.prototype.initiateAuthRequest=function(e,t){if(R.$.isEmpty(e))throw this.logger.error("Navigate url is empty"),Ee.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(Ee.createUserCancelledError());var s=l.YM.EMPTY_STRING,c=l.YM.EMPTY_STRING;try{s=e.location.href,c=e.location.hash}catch(u){}R.$.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),Nt.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(Ee.createHashDoesNotContainKnownPropertiesError()))):i>o&&(t.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(a),r(Ee.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=l.YM.EMPTY_STRING;try{o=e.location.href}catch(i){}R.$.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 Ee.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(r){throw this.logger.error("error opening popup "+r.message),this.browserStorage.setInteractionInProgress(!1),Ee.createPopupWindowError(r.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,u=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,l=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,d=null===(r=n.popupSize)||void 0===r?void 0:r.width,f=null===(o=n.popupSize)||void 0===o?void 0:o.height,h=null===(i=n.popupPosition)||void 0===i?void 0:i.top,p=null===(a=n.popupPosition)||void 0===a?void 0:a.left;return(!d||d<0||d>u)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),d=C.Q1.POPUP_WIDTH),(!f||f<0||f>l)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),f=C.Q1.POPUP_HEIGHT),(!h||h<0||h>l)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),h=Math.max(0,l/2-C.Q1.POPUP_HEIGHT/2+c)),(!p||p<0||p>u)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),p=Math.max(0,u/2-C.Q1.POPUP_WIDTH/2+s)),window.open(e,t,"width="+d+", height="+f+", top="+h+", left="+p+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(C.X8.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 C.Q1.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+e.join("-")+"."+t+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){var t=e.account&&e.account.homeAccountId;return C.Q1.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t+"."+this.correlationId},t}(Tn),On=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(0,s.C6)(t,e),t.prototype.initiateAuthRequest=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){var n;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),R.$.isEmpty(e)?[3,7]:(t.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(C._p.ORIGIN_URI,t.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(C._p.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),n={apiId:C.sA.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"),Ee.createEmptyNavigationUriError();case 8:return[2]}}))}))},t.prototype.handleCodeResponseFromHash=function(e,t,n,r){return(0,s.sH)(this,void 0,void 0,(function(){var o,i,a,c,u,l,d;return(0,s.YH)(this,(function(s){switch(s.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),R.$.isEmpty(e))throw Ee.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(t),!(i=this.browserStorage.getTemporaryCache(o)))throw Be.e.createStateNotFoundError("Cached State");try{a=this.authModule.handleFragmentResponse(e,i)}catch(f){throw f instanceof h&&f.subError===K.code?Ee.createUserCancelledError():f}return c=this.browserStorage.generateNonceKey(i),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=a.code,a.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(a.cloud_instance_host_name,n,r)]:[3,2];case 1:s.sent(),s.label=2;case 2:return a.nonce=u||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 d=s.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}}))}))},t}(Pn),Mn=function(e){function t(t,n,r,o,i,a,s,c,u,l){var d=e.call(this,t,n,r,o,i,a,s,u,l)||this;return d.nativeStorage=c,d}return(0,s.C6)(t,e),t.prototype.acquireToken=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,a,c,u,d,h,p=this;return(0,s.YH)(this,(function(g){switch(g.label){case 0:return this.performanceClient.setPreQueueTime(i.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,C.X8.Redirect)];case 1:t=g.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||l.YM.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(C.sA.acquireTokenRedirect),r=function(e){e.persisted&&(p.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),p.browserStorage.cleanRequestByState(t.state))},g.label=2;case 2:return g.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(i.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 3:return o=g.sent(),this.performanceClient.setPreQueueTime(i.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(n,t.authority,t.azureCloudOptions)];case 4:return a=g.sent(),this.logger.verbose("Auth code client created"),c=new On(a,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient),[4,a.getAuthCodeUrl((0,s.Cl)((0,s.Cl)({},t),{nativeBroker:Rn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return u=g.sent(),d=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+d),window.addEventListener("pageshow",r),[4,c.initiateAuthRequest(u,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:d,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,g.sent()];case 7:throw(h=g.sent())instanceof f.l&&h.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",r),n.cacheFailedRequest(h),this.browserStorage.cleanRequestByState(t.state),h;case 8:return[2]}}))}))},t.prototype.handleRedirectPromise=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,u,d,h,p,g;return(0,s.YH)(this,(function(s){switch(s.label){case 0:t=this.initializeServerTelemetryManager(C.sA.handleRedirectPromise),s.label=1;case 1:if(s.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(C.X8.Redirect),[2,null];r=void 0;try{o=Nt.getDeserializedHash(n),r=this.validateAndExtractStateFromHash(o,C.X8.Redirect),this.logger.verbose("State extracted from hash")}catch(v){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+v),this.browserStorage.cleanRequestByInteractionType(C.X8.Redirect),[2,null]}return i=this.browserStorage.getTemporaryCache(C._p.ORIGIN_URI,!0)||l.YM.EMPTY_STRING,a=Nt.removeHashFromUrl(i),c=Nt.removeHashFromUrl(window.location.href),a===c&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,r,t)]):[3,3];case 2:return u=s.sent(),i.indexOf("#")>-1&&Yt.replaceHash(i),[2,u];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 Yt.isInIframe()&&!this.config.system.allowRedirectInIframe?[3,9]:(this.browserStorage.setTemporaryCache(C._p.URL_HASH,n,!0),d={apiId:C.sA.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,i&&"null"!==i?[3,6]:(p=Yt.getHomepage(),this.browserStorage.setTemporaryCache(C._p.ORIGIN_URI,p,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(p,d)]));case 5:return h=s.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+i),[4,this.navigationClient.navigateInternal(i,d)];case 7:h=s.sent(),s.label=8;case 8:if(!h)return[2,this.handleHash(n,r,t)];s.label=9;case 9:return[2,null];case 10:throw(g=s.sent())instanceof f.l&&g.setCorrelationId(this.correlationId),t.cacheFailedRequest(g),this.browserStorage.cleanRequestByInteractionType(C.X8.Redirect),g;case 11:return[2]}}))}))},t.prototype.getRedirectResponseHash=function(e){if(this.logger.verbose("getRedirectResponseHash called"),Nt.hashContainsKnownProperties(e))return Yt.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var t=this.browserStorage.getTemporaryCache(C._p.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(C._p.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),t},t.prototype.handleHash=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){var r,o,a,c,u,l,d=this;return(0,s.YH)(this,(function(f){switch(f.label){case 0:if(r=this.browserStorage.getCachedRequest(t,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),(o=Nt.getDeserializedHash(e)).accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ee.createNativeConnectionNotEstablishedError();return a=new kn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,C.sA.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,o.accountId,this.browserStorage,r.correlationId),c=At.parseRequestState(this.browserCrypto,t).userRequestState,[2,a.acquireToken((0,s.Cl)((0,s.Cl)({},r),{state:c,prompt:void 0})).finally((function(){d.browserStorage.cleanRequestByState(t)}))]}if(!(u=this.browserStorage.getCachedAuthority(t)))throw Ee.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(i.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(n,u)];case 1:return l=f.sent(),this.logger.verbose("Auth code client created"),Jt.removeThrottle(this.browserStorage,this.config.auth.clientId,r),[4,new On(l,this.browserStorage,r,this.logger,this.browserCrypto,this.performanceClient).handleCodeResponseFromHash(e,t,l.authority,this.networkClient)];case 2:return[2,f.sent()]}}))}))},t.prototype.logout=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,a,c;return(0,s.YH)(this,(function(s){switch(s.label){case 0:this.logger.verbose("logoutRedirect called"),t=this.initializeLogoutRequest(e),n=this.initializeServerTelemetryManager(C.sA.logout),s.label=1;case 1:return s.trys.push([1,10,,11]),this.eventHandler.emitEvent(Qt.B.LOGOUT_START,C.X8.Redirect,e),[4,this.clearCacheOnLogout(t.account)];case 2:return s.sent(),r={apiId:C.sA.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(i.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(n,e&&e.authority)];case 3:return o=s.sent(),this.logger.verbose("Auth code client created"),a=o.getLogoutUri(t),this.eventHandler.emitEvent(Qt.B.LOGOUT_SUCCESS,C.X8.Redirect,t),e&&"function"===typeof e.onRedirectNavigate?!1===e.onRedirectNavigate(a)?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(a,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(a,r)];case 8:return s.sent(),[2];case 9:return[3,11];case 10:throw(c=s.sent())instanceof f.l&&c.setCorrelationId(this.correlationId),n.cacheFailedRequest(c),this.eventHandler.emitEvent(Qt.B.LOGOUT_FAILURE,C.X8.Redirect,null,c),this.eventHandler.emitEvent(Qt.B.LOGOUT_END,C.X8.Redirect),c;case 11:return this.eventHandler.emitEvent(Qt.B.LOGOUT_END,C.X8.Redirect),[2]}}))}))},t.prototype.getRedirectStartPage=function(e){var t=e||window.location.href;return Nt.getAbsoluteUrl(t,Yt.getCurrentUri())},t}(Tn),xn=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(0,s.C6)(t,e),t.prototype.initiateAuthRequest=function(e){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(t){switch(t.label){case 0:if(this.performanceClient.addQueueMeasurement(i.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),R.$.isEmpty(e))throw this.logger.info("Navigate url is empty"),Ee.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(i.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(i.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise((function(r,o){t<zt&&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(Ee.createMonitorIframeTimeoutError());var t=l.YM.EMPTY_STRING,s=e.contentWindow;try{t=s?s.location.href:l.YM.EMPTY_STRING}catch(u){}if(!R.$.isEmpty(t)){var c=s?s.location.hash:l.YM.EMPTY_STRING;return Nt.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(i.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}(Pn),Dn=function(e){function t(t,n,r,o,i,a,s,c,u,l,d){var f=e.call(this,t,n,r,o,i,a,c,l,d)||this;return f.apiId=s,f.nativeStorage=u,f}return(0,s.C6)(t,e),t.prototype.acquireToken=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,a;return(0,s.YH)(this,(function(c){switch(c.label){case 0:if(this.performanceClient.addQueueMeasurement(i.SilentIframeClientAcquireToken,e.correlationId),this.logger.verbose("acquireTokenByIframe called"),t=this.performanceClient.startMeasurement(i.SilentIframeClientAcquireToken,e.correlationId),R.$.isEmpty(e.loginHint)&&R.$.isEmpty(e.sid)&&(!e.account||R.$.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!==l._M.NONE&&e.prompt!==l._M.NO_SESSION)throw t.endMeasurement({success:!1}),Ee.createSilentPromptValueError(e.prompt);return this.performanceClient.setPreQueueTime(i.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest((0,s.Cl)((0,s.Cl)({},e),{prompt:e.prompt||l._M.NONE}),C.X8.Silent)];case 1:n=c.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||l.YM.EMPTY_STRING,n.account||null),r=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(i.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(r,n.authority,n.azureCloudOptions)];case 3:return o=c.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(i.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,c.sent()];case 5:throw(a=c.sent())instanceof f.l&&a.setCorrelationId(this.correlationId),r.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(n.state),t.endMeasurement({errorCode:a instanceof f.l&&a.errorCode||void 0,subErrorCode:a instanceof f.l&&a.subError||void 0,success:!1}),a;case 6:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(Ee.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){var n,r,o,a,c,u,d,f,h,p=this;return(0,s.YH)(this,(function(g){switch(g.label){case 0:return this.performanceClient.addQueueMeasurement(i.SilentIframeClientTokenHelper,t.correlationId),this.performanceClient.setPreQueueTime(i.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(t)];case 1:return n=g.sent(),this.performanceClient.setPreQueueTime(i.GetAuthCodeUrl,t.correlationId),[4,e.getAuthCodeUrl((0,s.Cl)((0,s.Cl)({},t),{nativeBroker:Rn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 2:return r=g.sent(),o=new xn(e,this.browserStorage,n,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(i.SilentHandlerInitiateAuthRequest,t.correlationId),[4,o.initiateAuthRequest(r)];case 3:return a=g.sent(),this.performanceClient.setPreQueueTime(i.SilentHandlerMonitorIframeForHash,t.correlationId),[4,o.monitorIframeForHash(a,this.config.system.iframeHashTimeout)];case 4:if(c=g.sent(),u=Nt.getDeserializedHash(c),d=this.validateAndExtractStateFromHash(u,C.X8.Silent,n.correlationId),u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Ee.createNativeConnectionNotEstablishedError();return f=new kn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,u.accountId,this.browserStorage,this.correlationId),h=At.parseRequestState(this.browserCrypto,d).userRequestState,[2,f.acquireToken((0,s.Cl)((0,s.Cl)({},t),{state:h,prompt:t.prompt||l._M.NONE})).finally((function(){p.browserStorage.cleanRequestByState(d)}))]}return this.performanceClient.setPreQueueTime(i.HandleCodeResponseFromHash,t.correlationId),[2,o.handleCodeResponseFromHash(c,d,e.authority,this.networkClient)]}}))}))},t}(Tn),Ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,s.C6)(t,e),t.prototype.acquireToken=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,a,c=this;return(0,s.YH)(this,(function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(i.SilentRefreshClientAcquireToken,e.correlationId),this.performanceClient.setPreQueueTime(i.InitializeBaseRequest,e.correlationId),n=[(0,s.Cl)({},e)],[4,this.initializeBaseRequest(e)];case 1:return t=s.Cl.apply(void 0,n.concat([u.sent()])),r=this.performanceClient.startMeasurement(i.SilentRefreshClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(C.sA.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(o,t.authority,t.azureCloudOptions)];case 2:return a=u.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(i.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),[2,a.acquireTokenByRefreshToken(t).then((function(e){return r.endMeasurement({success:!0,fromCache:e.fromCache,requestId:e.requestId}),e})).catch((function(e){throw e instanceof f.l&&e.setCorrelationId(c.correlationId),o.cacheFailedRequest(e),r.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e}))]}}))}))},t.prototype.logout=function(){return Promise.reject(Ee.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){var r;return(0,s.YH)(this,(function(o){switch(o.label){case 0:return this.performanceClient.setPreQueueTime(i.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,t,n)];case 1:return r=o.sent(),[2,new In(r,this.performanceClient)]}}))}))},t}(Tn),Un=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 Ee.createUnableToLoadTokenError("Please ensure server response includes id token.");var r,o,i=new gt(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 an(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 Ee.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");var s=vn.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 vn(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 an(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 Ee.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 an(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=pt.d.generateHomeAccountId(n,r,this.logger,this.cryptoObj,e)),!i)throw Ee.createUnableToLoadTokenError("Unexpected missing homeAccountId");var a=n?pt.d.createAccount(n,i,e,void 0,void 0,void 0,t):pt.d.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 Ee.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.loadIdToken=function(e,t,n,r){var o=je.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 Ee.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 Ee.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!i.extendedExpiresOn)throw Ee.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var a=new ht(e.scopes).printScopes(),s=i.expiresOn||t.expires_in+(new Date).getTime()/1e3,c=i.extendedExpiresOn,u=Et.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(u),u;throw Ee.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=wt.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 Ee.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},e.prototype.generateAuthenticationResult=function(e,t,n,r){var o,i,a,s,c=l.YM.EMPTY_STRING,u=[],d=null;(null===n||void 0===n?void 0:n.accessToken)&&(c=n.accessToken.secret,u=ht.fromString(n.accessToken.target).asArray(),d=new Date(1e3*Number(n.accessToken.expiresOn)),s=new Date(1e3*Number(n.accessToken.extendedExpiresOn)));var f=(null===t||void 0===t?void 0:t.claims.oid)||(null===t||void 0===t?void 0:t.claims.sub)||l.YM.EMPTY_STRING,h=(null===t||void 0===t?void 0:t.claims.tid)||l.YM.EMPTY_STRING;return{authority:r?r.canonicalAuthority:l.YM.EMPTY_STRING,uniqueId:f,tenantId:h,scopes:u,account:(null===n||void 0===n?void 0:n.account)?n.account.getAccountInfo():null,idToken:t?t.rawToken:l.YM.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:d,correlationId:e.correlationId||l.YM.EMPTY_STRING,requestId:l.YM.EMPTY_STRING,extExpiresOn:s,familyId:l.YM.EMPTY_STRING,tokenType:(null===(o=null===n||void 0===n?void 0:n.accessToken)||void 0===o?void 0:o.tokenType)||l.YM.EMPTY_STRING,state:l.YM.EMPTY_STRING,cloudGraphHostName:(null===(i=null===n||void 0===n?void 0:n.account)||void 0===i?void 0:i.cloudGraphHostName)||l.YM.EMPTY_STRING,msGraphHost:(null===(a=null===n||void 0===n?void 0:n.account)||void 0===a?void 0:a.msGraphHost)||l.YM.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},e}(),Hn=function(e){function t(t){var n=e.call(this,t)||this;return n.includeRedirectUri=!1,n}return(0,s.C6)(t,e),t}(ln),qn=function(e){function t(t,n,r,o,i,a,s,c,u,l){var d=e.call(this,t,n,r,o,i,a,c,u,l)||this;return d.apiId=s,d}return(0,s.C6)(t,e),t.prototype.acquireToken=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,a,c;return(0,s.YH)(this,(function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw Ee.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(i.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,C.X8.Silent)];case 1:t=u.sent(),this.browserStorage.updateCacheEntries(t.state,t.nonce,t.authority,t.loginHint||l.YM.EMPTY_STRING,t.account||null),n=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),r=(0,s.Cl)((0,s.Cl)({},t),{code:e.code}),this.performanceClient.setPreQueueTime(i.StandardInteractionClientGetClientConfiguration,e.correlationId),[4,this.getClientConfiguration(n,t.authority)];case 3:return o=u.sent(),a=new Hn(o),this.logger.verbose("Auth code client created"),[2,new xn(a,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,a.authority,this.networkClient,!1)];case 4:throw(c=u.sent())instanceof f.l&&c.setCorrelationId(this.correlationId),n.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(t.state),c;case 5:return[2]}}))}))},t.prototype.logout=function(){return Promise.reject(Ee.createSilentLogoutUnsupportedError())},t}(Tn),Fn=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(r){}},e.prototype.startMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch(t){}},e.prototype.endMeasurement=function(){if(e.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch(t){}},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(r){}return null},e}(),Bn=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 Re(c.logger,s),c.guidGenerator=new I(c.browserCrypto),c}return(0,s.C6)(t,e),t.prototype.startPerformanceMeasuremeant=function(e,t){return new Fn(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((0,s.Cl)({},e))})),r.length>0&&Fn.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(0,s.Cl)((0,s.Cl)({},i),{endMeasurement:function(e){var t=i.endMeasurement((0,s.Cl)({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}(Ue),Kn=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:l.YM.EMPTY_STRING,authority:""+l.YM.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:l.YM.EMPTY_STRING,authorityMetadata:l.YM.EMPTY_STRING,redirectUri:l.YM.EMPTY_STRING,postLogoutRedirectUri:l.YM.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:kt.AAD,azureCloudOptions:{azureCloudInstance:Rt.None,tenant:l.YM.EMPTY_STRING},skipAuthorityMetadataCache:!1},c={cacheLocation:C.Al.SessionStorage,temporaryCacheLocation:C.Al.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!(!r||r.cacheLocation!==C.Al.LocalStorage)},u={loggerCallback:function(){},logLevel:Le.$.Info,piiLoggingEnabled:!1},d=(0,s.Cl)((0,s.Cl)({},xt),{loggerOptions:u,networkClient:t?Yt.getBrowserNetworkClient():Bt,navigationClient:new Gt,loadFrameTimeout:0,windowHashTimeout:(null===o||void 0===o?void 0:o.loadFrameTimeout)||6e4,iframeHashTimeout:(null===o||void 0===o?void 0:o.loadFrameTimeout)||zt,navigateFrameWait:t&&Yt.detectIEOrEdge()?500:0,redirectNavigationTimeout:3e4,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(null===o||void 0===o?void 0:o.nativeBrokerHandshakeTimeout)||2e3,pollIntervalMilliseconds:C.Q1.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),f=(0,s.Cl)((0,s.Cl)({},o),{loggerOptions:(null===o||void 0===o?void 0:o.loggerOptions)||u}),h={application:{appName:l.YM.EMPTY_STRING,appVersion:l.YM.EMPTY_STRING}};return{auth:(0,s.Cl)((0,s.Cl)({},a),n),cache:(0,s.Cl)((0,s.Cl)({},c),r),system:(0,s.Cl)((0,s.Cl)({},d),f),telemetry:(0,s.Cl)((0,s.Cl)({},h),i)}}(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Le.V(this.config.system.loggerOptions,Wt,Xt),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 Bn(this.config.auth.clientId,this.config.auth.authority,this.logger,Wt,Xt,this.config.telemetry.application,this.config.system.cryptoOptions):new qe(this.config.auth.clientId,this.config.auth.authority,this.logger,Wt,Xt,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new De(this.logger,this.performanceClient,this.config.system.cryptoOptions):Fe,this.eventHandler=new $t(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Mt(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):function(e,t){var n={cacheLocation:C.Al.MemoryStorage,temporaryCacheLocation:C.Al.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1};return new Mt(e,n,Fe,t)}(this.config.auth.clientId,this.logger);var t={cacheLocation:C.Al.MemoryStorage,temporaryCacheLocation:C.Al.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1};this.nativeInternalStorage=new Mt(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new Un(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return e.prototype.initialize=function(){return(0,s.sH)(this,void 0,void 0,(function(){var e,t,n,r;return(0,s.YH)(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(i.InitializeClientApplication),this.eventHandler.emitEvent(Qt.B.INITIALIZE_START),!e)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),n=this,[4,Rn.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(Qt.B.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}}))}))},e.prototype.handleRedirectPromise=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,i,a,c,u,d=this;return(0,s.YH)(this,(function(s){return this.logger.verbose("handleRedirectPromise called"),Yt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||l.YM.EMPTY_STRING,"undefined"===typeof(r=this.redirectResponse.get(n))?(this.eventHandler.emitEvent(Qt.B.HANDLE_REDIRECT_START,C.X8.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),i=void 0,o&&Rn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),a=new kn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,C.sA.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),i=a.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(C._p.CORRELATION_ID,!0)||l.YM.EMPTY_STRING,u=this.createRedirectClient(c),i=u.handleRedirectPromise(e)),r=i.then((function(e){e&&(t.length<d.getAllAccounts().length?(d.eventHandler.emitEvent(Qt.B.LOGIN_SUCCESS,C.X8.Redirect,e),d.logger.verbose("handleRedirectResponse returned result, login success")):(d.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_SUCCESS,C.X8.Redirect,e),d.logger.verbose("handleRedirectResponse returned result, acquire token success")));return d.eventHandler.emitEvent(Qt.B.HANDLE_REDIRECT_END,C.X8.Redirect),e})).catch((function(e){throw t.length>0?d.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_FAILURE,C.X8.Redirect,null,e):d.eventHandler.emitEvent(Qt.B.LOGIN_FAILURE,C.X8.Redirect,null,e),d.eventHandler.emitEvent(Qt.B.HANDLE_REDIRECT_END,C.X8.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(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return(0,s.YH)(this,(function(s){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(C.X8.Redirect),(n=this.getAllAccounts().length>0)?this.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_START,C.X8.Redirect,e):this.eventHandler.emitEvent(Qt.B.LOGIN_START,C.X8.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(o=new kn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,C.sA.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),r=o.acquireTokenRedirect(e).catch((function(t){if(t instanceof _n&&t.isFatal())return a.nativeExtensionProvider=void 0,a.createRedirectClient(e.correlationId).acquireToken(e);if(t instanceof y)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(Qt.B.ACQUIRE_TOKEN_FAILURE,C.X8.Redirect,null,e):a.eventHandler.emitEvent(Qt.B.LOGIN_FAILURE,C.X8.Redirect,null,e),e}))]}))}))},e.prototype.acquireTokenPopup=function(e){var t=this,n=this.getRequestCorrelationId(e),r=this.performanceClient.startMeasurement(i.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(C.X8.Popup)}catch(s){return Promise.reject(s)}var o,a=this.getAllAccounts();(a.length>0?this.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_START,C.X8.Popup,e):this.eventHandler.emitEvent(Qt.B.LOGIN_START,C.X8.Popup,e),this.canUseNative(e))?o=this.acquireTokenNative(e,C.sA.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 _n&&n.isFatal())return t.nativeExtensionProvider=void 0,t.createPopupClient(e.correlationId).acquireToken(e);if(n instanceof y)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 a.length<t.getAllAccounts().length?t.eventHandler.emitEvent(Qt.B.LOGIN_SUCCESS,C.X8.Popup,e):t.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_SUCCESS,C.X8.Popup,e),r.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),r.endMeasurement({success:!0,requestId:e.requestId}),e})).catch((function(e){return a.length>0?t.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_FAILURE,C.X8.Popup,null,e):t.eventHandler.emitEvent(Qt.B.LOGIN_FAILURE,C.X8.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(0,s.sH)(this,void 0,void 0,(function(){var n,r,o,a,c=this;return(0,s.YH)(this,(function(u){return n=this.getRequestCorrelationId(e),r=(0,s.Cl)((0,s.Cl)({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(C.X8.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(i.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(Qt.B.SSO_SILENT_START,C.X8.Silent,r),this.canUseNative(r)?o=this.acquireTokenNative(r,C.sA.ssoSilent).catch((function(e){if(e instanceof _n&&e.isFatal())return c.nativeExtensionProvider=void 0,c.createSilentIframeClient(r.correlationId).acquireToken(r);throw e})):(a=this.createSilentIframeClient(r.correlationId),o=a.acquireToken(r)),[2,o.then((function(e){var t,n;return c.eventHandler.emitEvent(Qt.B.SSO_SILENT_SUCCESS,C.X8.Silent,e),null===(t=c.ssoSilentMeasurement)||void 0===t||t.addStaticFields({accessTokenSize:e.accessToken.length,idTokenSize:e.idToken.length}),null===(n=c.ssoSilentMeasurement)||void 0===n||n.endMeasurement({success:!0,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw c.eventHandler.emitEvent(Qt.B.SSO_SILENT_FAILURE,C.X8.Silent,null,e),null===(t=c.ssoSilentMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",c.trackPageVisibilityWithMeasurement)}))]}))}))},e.prototype.acquireTokenByCode=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,a=this;return(0,s.YH)(this,(function(c){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(C.X8.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_BY_CODE_START,C.X8.Silent,e),n=this.performanceClient.startMeasurement(i.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw Ee.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((0,s.Cl)((0,s.Cl)({},e),{correlationId:t})).then((function(e){return a.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_BY_CODE_SUCCESS,C.X8.Silent,e),a.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 a.hybridAuthCodeResponses.delete(r),a.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_BY_CODE_FAILURE,C.X8.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,C.sA.acquireTokenByCode,e.nativeAccountId).catch((function(e){throw e instanceof _n&&e.isFatal()&&(a.nativeExtensionProvider=void 0),e}))];throw Ee.createUnableToAcquireTokenFromNativePlatformError()}throw Ee.createAuthCodeOrNativeAccountIdRequiredError()}catch(u){throw this.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_BY_CODE_FAILURE,C.X8.Silent,null,u),n.endMeasurement({errorCode:u instanceof f.l&&u.errorCode||void 0,subErrorCode:u instanceof f.l&&u.subError||void 0,success:!1}),u}return[2]}))}))},e.prototype.acquireTokenByCodeAsync=function(e){var t;return(0,s.sH)(this,void 0,void 0,(function(){var n=this;return(0,s.YH)(this,(function(r){switch(r.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(i.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(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(r){switch(this.performanceClient.addQueueMeasurement(i.AcquireTokenFromCache,t.correlationId),n.cacheLookupPolicy){case C.nN.Default:case C.nN.AccessToken:case C.nN.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw Be.e.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenByRefreshToken=function(e,t){return(0,s.sH)(this,void 0,void 0,(function(){var n;return(0,s.YH)(this,(function(r){switch(this.performanceClient.addQueueMeasurement(i.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case C.nN.Default:case C.nN.AccessTokenAndRefreshToken:case C.nN.RefreshToken:case C.nN.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(i.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw Be.e.createRefreshRequiredError()}return[2]}))}))},e.prototype.acquireTokenBySilentIframe=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(this,(function(n){return this.performanceClient.addQueueMeasurement(i.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(i.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]}))}))},e.prototype.logout=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(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((0,s.Cl)({correlationId:t},e))]}))}))},e.prototype.logoutRedirect=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(this,(function(n){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(C.X8.Redirect),[2,this.createRedirectClient(t).logout(e)]}))}))},e.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);return this.preflightBrowserEnvironmentCheck(C.X8.Popup),this.createPopupClient(t).logout(e)}catch(n){return Promise.reject(n)}},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"),Yt.blockNonBrowserEnvironment(this.isBrowserEnvironment),Yt.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Yt.blockReloadInHiddenIframes(),Yt.blockAcquireTokenInPopups(),Yt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===C.X8.Redirect&&this.config.cache.cacheLocation===C.Al.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Se.X.createInMemoryRedirectUnavailableError();e!==C.X8.Redirect&&e!==C.X8.Popup||this.preflightInteractiveRequest(t)},e.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Yt.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},e.prototype.acquireTokenNative=function(e,t,n){return(0,s.sH)(this,void 0,void 0,(function(){return(0,s.YH)(this,(function(r){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Ee.createNativeConnectionNotEstablishedError();return[2,new kn(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"),!Rn.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 l._M.NONE:case l._M.CONSENT:case l._M.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 Nn(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 Mn(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 Dn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,C.sA.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},e.prototype.createSilentCacheClient=function(e){return new An(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentRefreshClient=function(e){return new Ln(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},e.prototype.createSilentAuthCodeClient=function(e){return new qn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,C.sA.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():l.YM.EMPTY_STRING},e}(),jn=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(0,s.C6)(t,e),t.prototype.loginRedirect=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t;return(0,s.YH)(this,(function(n){return t=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",t),[2,this.acquireTokenRedirect((0,s.Cl)({correlationId:t},e||C.uq))]}))}))},t.prototype.loginPopup=function(e){var t=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",t),this.acquireTokenPopup((0,s.Cl)({correlationId:t},e||C.uq))},t.prototype.acquireTokenSilent=function(e){return(0,s.sH)(this,void 0,void 0,(function(){var t,n,r,o,a,c,u,d=this;return(0,s.YH)(this,(function(f){if(t=this.getRequestCorrelationId(e),(n=this.performanceClient.startMeasurement(i.AcquireTokenSilent,t)).addStaticFields({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(C.X8.Silent),this.logger.verbose("acquireTokenSilent called",t),!(r=e.account||this.getActiveAccount()))throw Ee.createNoAccountError();return o={clientId:this.config.auth.clientId,authority:e.authority||l.YM.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},a=JSON.stringify(o),"undefined"===typeof(c=this.activeSilentTokenRequests.get(a))?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",t),this.performanceClient.setPreQueueTime(i.AcquireTokenSilentAsync,t),u=this.acquireTokenSilentAsync((0,s.Cl)((0,s.Cl)({},e),{correlationId:t}),r).then((function(t){return d.activeSilentTokenRequests.delete(a),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 d.activeSilentTokenRequests.delete(a),n.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})),this.activeSilentTokenRequests.set(a,u),[2,u]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",t),n.discardMeasurement(),[2,c])}))}))},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(0,s.sH)(this,void 0,void 0,(function(){var r,o,a,c,u,l=this;return(0,s.YH)(this,(function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(i.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_START,C.X8.Silent,e),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(i.AcquireTokenSilentAsync,e.correlationId),null===(n=this.astsAsyncMeasurement)||void 0===n||n.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),Rn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&t.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o=(0,s.Cl)((0,s.Cl)({},e),{account:t}),r=this.acquireTokenNative(o,C.sA.acquireTokenSilent_silentFlow).catch((function(t){return(0,s.sH)(l,void 0,void 0,(function(){return(0,s.YH)(this,(function(n){if(t instanceof _n&&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"),a=this.createSilentCacheClient(e.correlationId),this.performanceClient.setPreQueueTime(i.InitializeSilentRequest,e.correlationId),[4,a.initializeSilentRequest(e,t)];case 2:c=d.sent(),u=(0,s.Cl)((0,s.Cl)({},e),{cacheLookupPolicy:e.cacheLookupPolicy||C.nN.Default}),this.performanceClient.setPreQueueTime(i.AcquireTokenFromCache,c.correlationId),r=this.acquireTokenFromCache(a,c,u).catch((function(t){if(u.cacheLookupPolicy===C.nN.AccessToken)throw t;return Yt.blockReloadInHiddenIframes(),l.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_NETWORK_START,C.X8.Silent,c),l.performanceClient.setPreQueueTime(i.AcquireTokenByRefreshToken,c.correlationId),l.acquireTokenByRefreshToken(c,u).catch((function(t){var n=t instanceof h,r=t instanceof y,o=t.errorCode===C.Q1.INVALID_GRANT_ERROR;if((!n||!o||r||u.cacheLookupPolicy===C.nN.AccessTokenAndRefreshToken||u.cacheLookupPolicy===C.nN.RefreshToken)&&u.cacheLookupPolicy!==C.nN.Skip)throw t;return l.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),l.performanceClient.setPreQueueTime(i.AcquireTokenBySilentIframe,c.correlationId),l.acquireTokenBySilentIframe(c)}))})),d.label=3;case 3:return[2,r.then((function(e){var t;return l.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_SUCCESS,C.X8.Silent,e),null===(t=l.astsAsyncMeasurement)||void 0===t||t.endMeasurement({success:!0,fromCache:e.fromCache,isNativeBroker:e.fromNativeBroker,requestId:e.requestId}),e})).catch((function(e){var t;throw l.eventHandler.emitEvent(Qt.B.ACQUIRE_TOKEN_FAILURE,C.X8.Silent,null,e),null===(t=l.astsAsyncMeasurement)||void 0===t||t.endMeasurement({errorCode:e.errorCode,subErrorCode:e.subError,success:!1}),e})).finally((function(){document.removeEventListener("visibilitychange",l.trackPageVisibility)}))]}}))}))},t}(Kn),Yn=n(73951),Gn=n(52917),zn=n(50068),Vn=n(21336),Wn="",Xn="channels",Qn="createPerfMgr",$n="extensionConfig",Jn="eventsSent",Zn="eventsDiscarded",er="eventsSendRequest",tr="perfEvent",nr="errorToConsole",rr="warnToConsole",or="constructor",ir=zn.KU,ar=zn.s6.freeze,sr=(zn.s6.seal,zn.s6.keys),cr=String[zn.vR],ur=cr.trim,lr=cr.endsWith,dr=cr.startsWith,fr=Date[zn.vR].toISOString,hr=Array.isArray,pr=zn.Wy.toString,gr=zn.J$.toString,vr=gr.call(zn.s6),mr=/-([a-z])/g,yr=/([^\w\d_$])/g,Cr=/^(\d+[\w\d_$])/,Tr=Object.getPrototypeOf;function Er(e,t){return typeof e===t}function wr(e){return void 0===e||typeof e===zn.bA}function br(e){return null===e||wr(e)}function _r(e){return!br(e)}function Ir(e,t){return!(!e||!zn.J$.call(e,t))}function Sr(e){return!(!e||typeof e!==zn._1)}function Ar(e){return!(!e||typeof e!==zn.hW)}function kr(e){var t=e;return t&&Lr(t)&&(t=(t=(t=t.replace(mr,(function(e,t){return t.toUpperCase()}))).replace(yr,"_")).replace(Cr,(function(e,t){return"_"+t}))),t}function Rr(e,t){if(e)for(var n in e)zn.J$.call(e,n)&&t.call(e,n,e[n])}function Pr(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=lr?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 Nr(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=dr?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 Or(e,t){return!(!e||!t)&&-1!==e.indexOf(t)}function Mr(e){return!(!e||"[object Date]"!==pr.call(e))}var xr=hr||function(e){return!(!e||"[object Array]"!==pr.call(e))};function Dr(e){return!(!e||"[object Error]"!==pr.call(e))}function Lr(e){return"string"===typeof e}function Ur(e){return"number"===typeof e}function Hr(e){return"boolean"===typeof e}function qr(e){var t=!1;if(e&&"object"===typeof e){var n=Tr?Tr(e):function(e){if(e){if(Tr)return Tr(e);var t=e.__proto__||e[zn.vR]||e.constructor;if(t)return t}return null}(e);n?(n.constructor&&zn.J$.call(n,or)&&(n=n.constructor),t=typeof n===zn.hW&&gr.call(n)===vr):t=!0}return t}function Fr(e){if(e)return fr?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 Br(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 Kr(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 jr(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 Yr(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var o=e.length,i=0;if(arguments.length>=3)r=arguments[2];else{for(;i<o&&!(i in e);)i++;r=e[i++]}for(;i<o;)i in e&&(r=t(r,e[i],i,e)),i++}return r}function Gr(e){return e&&(e=ur&&e.trim?e.trim():e.replace?e.replace(/^\s+|(?=\s)\s+$/g,Wn):e),e}var zr=!{toString:null}.propertyIsEnumerable("toString"),Vr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Wr(e){var t=typeof e;if(t===zn.hW||t===zn._1&&null!==e||(0,Vn.zk)("objKeys called on non-object"),!zr&&sr)return sr(e);var n=[];for(var r in e)e&&zn.J$.call(e,r)&&n.push(r);if(zr)for(var o=Vr.length,i=0;i<o;i++)e&&zn.J$.call(e,Vr[i])&&n.push(Vr[i]);return n}function Xr(e,t,n,r){if(ir)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),ir(e,t,o),!0}catch(i){}return!1}function Qr(e){return e}function $r(e){return ar&&Rr(e,(function(e,t){(xr(t)||Sr(t))&&ar(t)})),Jr(e)}var Jr=ar||Qr;function Zr(){var e=Date;return e.now?e.now():(new e).getTime()}function eo(e){return Dr(e)?e.name:Wn}function to(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 no(e,t,n){var r;return e?!(r=e[t])&&br(r)&&(r=wr(n)?{}:n,e[t]=r):r=wr(n)?{}:n,r}function ro(e,t){return br(e)?t:e}function oo(e){return!!e}function io(e){throw new Error(e)}function ao(e,t){var n=null,r=null;return Ar(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t].apply(r,e)}}function so(e,t,n,r,o){e&&t&&n&&(!1!==o||wr(e[t]))&&(e[t]=ao(n,r))}function co(e,t,n,r){return e&&t&&Sr(e)&&xr(n)&&Br(n,(function(n){Lr(n)&&so(e,n,t,n,r)})),e}function uo(e){return e&&zn.zi&&(e=(0,zn.s6)((0,zn.zi)({},e))),e}function lo(e,t,n,r,o,i){var a=arguments,s=a[0]||{},c=a.length,u=!1,l=1;for(c>0&&Hr(s)&&(u=s,s=a[l]||{},l++),Sr(s)||(s={});l<c;l++){var d=a[l],f=xr(d),h=Sr(d);for(var p in d){var g=f&&p in d||h&&zn.J$.call(d,p);if(g){var v=d[p],m=void 0;if(u&&v&&((m=xr(v))||qr(v))){var y=s[p];m?xr(y)||(y=[]):qr(y)||(y={}),v=lo(u,y,v)}void 0!==v&&(s[p]=v)}}}return s}var fo=null,ho=function(){function e(t,n,r){var o,i=this,a=!1;(i.start=Zr(),i.name=t,i.isAsync=r,i.isChildEvt=function(){return!1},Ar(n))&&(a=Xr(i,"payload",(function(){return!o&&Ar(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(xr(r))for(var o=0;o<r.length;o++){var s=r[o];s&&(t+=s.time)}i.time=Zr()-i.start,i.exTime=i.time-t,i.complete=function(){},!a&&Ar(n)&&(i.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),po=function(){function e(t){this.ctx={},(0,Gn.A)(e,this,(function(e){e.create=function(e,t,n){return new ho(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&Ar(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}(),go="CoreUtils.doPerf";function vo(e,t,n,r,o){if(e){var i=e;if(i.getPerfMgr&&(i=i.getPerfMgr()),i){var a=void 0,s=i.getCtx(go);try{if(a=i.create(t(),r,o)){if(s&&a.setCtx&&(a.setCtx(ho.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(ho.ChildrenContextKey);c||(c=[],s.setCtx(ho.ChildrenContextKey,c)),c.push(a)}return i.setCtx(go,a),n(a)}}catch(u){a&&a.setCtx&&a.setCtx("exception",u)}finally{a&&i.fire(a),i.setCtx(go,s)}}}return n()}var mo="window",yo="JSON",Co="msie",To="trident/",Eo="XMLHttpRequest",wo=null,bo=null,_o=!1,Io=null,So=null;function Ao(e,t){var n=!1;if(e){try{if(!(n=t in e)){var r=e[zn.vR];r&&(n=t in r)}}catch(o){}if(!n)try{n=!wr((new e)[t])}catch(o){}}return n}function ko(e){var t=(0,Vn.mS)();return t&&t[e]?t[e]:e===mo&&Ro()?window:null}function Ro(){return Boolean(typeof window===zn._1&&window)}function Po(){return Ro()?window:ko(mo)}function No(){return Boolean(typeof document===zn._1&&document)}function Oo(){return No()?document:ko("document")}function Mo(){return Boolean(typeof navigator===zn._1&&navigator)}function xo(){return Mo()?navigator:ko("navigator")}function Do(e){if(e&&_o){var t=ko("__mockLocation");if(t)return t}return typeof location===zn._1&&location?location:ko("location")}function Lo(){return ko("performance")}function Uo(){return Boolean(typeof JSON===zn._1&&JSON||null!==ko(yo))}function Ho(){return Uo()?JSON||ko(yo):null}function qo(){var e=xo();return!(!e||!e.product)&&"ReactNative"===e.product}function Fo(){var e=xo();if(e&&(e.userAgent!==bo||null===wo)){var t=((bo=e.userAgent)||Wn).toLowerCase();wo=Or(t,Co)||Or(t,To)}return wo}function Bo(e){var t=Object[zn.vR].toString.call(e),n=Wn;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Uo()&&(n=Ho().stringify(e)),t+n}function Ko(){return null===So&&(So=Mo()&&Boolean(xo().sendBeacon)),So}function jo(e){var t=!1;try{t=!!ko("fetch");var n=ko("Request");t&&e&&n&&(t=Ao(n,"keepalive"))}catch(r){}return t}function Yo(){return null===Io&&(Io=typeof XDomainRequest!==zn.bA)&&Go()&&(Io=Io&&!Ao(ko(Eo),"withCredentials")),Io}function Go(){var e=!1;try{e=!!ko(Eo)}catch(t){}return e}var zo,Vo=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],Wo=null;function Xo(e,t){return function(){var n=arguments,r=Qo(t);if(r){var o=r.listener;o&&o[e]&&o[e].apply(o,n)}}}function Qo(e){var t=Wo;return t||!0===e.disableDbgExt||(t=Wo||function(){var e=ko("Microsoft");return e&&(Wo=e.ApplicationInsights),Wo}()),t?t.ChromeDbgExt:null}function $o(e){if(!zo){zo={};for(var t=0;t<Vo.length;t++)zo[Vo[t]]=Xo(Vo[t],e)}return zo}function Jo(e){return e?'"'+e.replace(/\"/g,Wn)+'"':Wn}function Zo(e,t){var n=typeof console!==zn.bA?console:ko("console");if(n){var r="log";n[e]&&(r=e),Ar(n[r])&&n[r](t)}}var ei=function(){function e(e,t,n,r){void 0===n&&(n=!1);var o=this;o.messageId=e,o.message=(n?"AI: ":"AI (Internal): ")+e;var i=Wn;Uo()&&(i=Ho().stringify(r));var a=(t?" message:"+Jo(t):Wn)+(r?" props:"+Jo(i):Wn);o.message+=a}return e.dataType="MessageData",e}();function ti(e,t){return(e||{}).logger||new ni(t)}var ni=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,r,o,i,a=0,s={};(0,Gn.A)(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++,u(1===t?"error":"warn",n)),a===o)){var l="Internal events throttle limit per PageView reached for this app.",d=new ei(23,l,!1);e.queue.push(d),1===t?e.errorToConsole(l):e.warnToConsole(l)}}}function u(e,n){var r=Qo(t||{});r&&r.diagLog&&r.diagLog(e,n)}!function(e){n=ro(e.loggingLevelConsole,0),r=ro(e.loggingLevelTelemetry,1),o=ro(e.maxMessageLimit,25),i=ro(e.enableDebug,ro(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,l){void 0===l&&(l=!1);var d=new ei(r,o,l,a);if(i)throw Bo(d);var f=1===t?nr:rr;if(wr(d.message))u("throw"+(1===t?"Critical":"Warning"),d);else{if(l){var h=+d.messageId;!s[h]&&n>=t&&(e[f](d.message),s[h]=!0)}else n>=t&&e[f](d.message);c(t,d)}},e.warnToConsole=function(e){Zo("warn",e),u("warning",e)},e.errorToConsole=function(e){Zo("error",e),u("error",e)},e.resetInternalMessageCount=function(){a=0,s={}},e.logInternalMessage=c}))}return e.__ieDyn=1,e}();function ri(e){return e||new ni}function oi(e,t,n,r,o,i){void 0===i&&(i=!1),ri(e).throwInternal(t,n,r,o,i)}function ii(e,t){ri(e).warnToConsole(t)}var ai=4294967296,si=4294967295,ci=!1,ui=123456789,li=987654321;function di(e){e<0&&(e>>>=0),ui=123456789+e&si,li=987654321-e&si,ci=!0}function fi(){try{var e=2147483647&Zr();di((Math.random()*ai^e)+e)}catch(t){}}function hi(e){return e>0?Math.floor(pi()/si*(e+1))>>>0:0}function pi(e){var t=0,n=ko("crypto")||ko("msCrypto");return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&si),0===t&&Fo()&&(ci||fi(),t=vi()&si),0===t&&(t=Math.floor(ai*Math.random()|0)),e||(t>>>=0),t}function gi(e){e?di(e):fi()}function vi(e){var t=((li=36969*(65535&li)+(li>>16)&si)<<16)+(65535&(ui=18e3*(65535&ui)+(ui>>16)&si))>>>0&si|0;return e||(t>>>=0),t}function mi(e){void 0===e&&(e=22);for(var t=pi()>>>0,n=0,r=Wn;r.length<e;)n++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(pi()<<2&4294967295|3&t)>>>0,n=0);return r}var yi=zn.KU,Ci="2.8.12",Ti="."+mi(6),Ei=0;function wi(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function bi(e,t){var n=t[e.id];if(!n){n={};try{wi(t)&&(function(e,t,n){if(yi)try{return yi(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 _i(e,t){return void 0===t&&(t=!1),kr(e+Ei+++(t?".2.8.12":Wn)+Ti)}function Ii(e){var t={id:_i("_aiData-"+(e||Wn)+"."+Ci),accept:function(e){return wi(e)},get:function(e,n,r,o){var i=e[t.id];return i?i[kr(n)]:(o&&((i=bi(t,e))[kr(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(n){}}};return t}var Si="00000000000000000000000000000000",Ai="0000000000000000";function ki(e,t,n){return!(!e||e.length!==t||e===n)&&!!e.match(/^[\da-f]*$/)}function Ri(e){return ki(e,32,Si)}function Pi(e){return ki(e,16,Ai)}var Ni=Ii("plugin");function Oi(e){return Ni.get(e,"state",{},!0)}function Mi(e,t){for(var n,r=[],o=null,i=e.getNext();i;){var a=i.getPlugin();if(a){o&&Ar(o.setNextPlugin)&&Ar(a.processTelemetry)&&o.setNextPlugin(a);(Ar(a.isInitialized)?a.isInitialized():(n=Oi(a)).isInitialized)||r.push(a),o=a,i=i.getNext()}}Br(r,(function(r){var o=e.core();r.initialize(e.getCfg(),o,t,e.getNext()),n=Oi(r),r.core||n.core||(n.core=o),n.isInitialized=!0,delete n.teardown}))}function xi(e){return e.sort((function(e,t){var n=0;if(t){var r=Ar(t.processTelemetry);Ar(e.processTelemetry)?n=r?e.priority-t.priority:1:r&&(n=-1)}else n=e?1:-1;return n}))}var Di="TelemetryPluginChain",Li=0;function Ui(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 Bi([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&&(Br(t,(function(e){try{e.func.call(e.self,e.args)}catch(t){oi(n.logger,2,73,"Unexpected Exception during onComplete - "+Bo(t))}})),i=[])}return e},ctx:{core:function(){return n},diagLog:function(){return ti(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&&!br(i[n])?o=i[n]:t&&!br(t[n])&&(o=t[n]);return br(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:wr(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(Sr(n)&&0!==r){var a=lo(!0,n,o);t&&2===r&&Rr(n,(function(e){if(br(a[e])){var n=t[e];br(n)||(a[e]=n)}})),o=a}}else o=n;return o}return a}function Hi(e,t,n,r){var o=Ui(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),xr(e)&&(e=Bi(e,t,n,r)),Hi(e||i.getNext(),t,n,r)},i}function qi(e,t,n){var r=t.config||{},o=Ui(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),xr(e)&&(e=Bi(e,r,t,n)),qi(e||i.getNext(),t,n)},i}function Fi(e,t,n){var r=t.config||{},o=Ui(e,r,t,n).ctx;return o.processNext=function(e){return o.iterate((function(t){Ar(t.update)&&t.update(o,e)}))},o.createNew=function(e,n){return void 0===e&&(e=null),xr(e)&&(e=Bi(e,r,t,n)),Fi(e||o.getNext(),t,n)},o}function Bi(e,t,n,r){var o=null,i=!r;if(xr(e)&&e.length>0){var a=null;Br(e,(function(e){if(i||r!==e||(i=!0),i&&e&&Ar(e.processTelemetry)){var s=function(e,t,n){var r,o=null,i=Ar(e.processTelemetry),a=Ar(e.setNextPlugin);r=e?e.identifier+"-"+e.priority+"-"+Li++:"Unknown-0-"+Li++;var s={getPlugin:function(){return e},getNext:function(){return o},processTelemetry:l,unload:d,update:f,_id:r,_setNext:function(e){o=e}};function c(){var r;return e&&Ar(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=Hi(s,t,n)),r}function u(t,n,i,a,s){var c=!1,u=e?e.identifier:Di,l=t._hasRun;return l||(l=t._hasRun={}),t.setNext(o),e&&vo(t.core(),(function(){return u+":"+i}),(function(){l[r]=!0;try{var e=o?o._id:Wn;e&&(l[e]=!1),c=n(t)}catch(s){var a=!o||l[o._id];a&&(c=!0),o&&a||oi(t.diagLog(),1,73,"Plugin ["+u+"] failed during "+i+" - "+Bo(s)+", run flags: "+Bo(l))}}),a,s),c}function l(t,n){function r(n){if(!e||!i)return!1;var r=Oi(e);return!r.teardown&&!r.disabled&&(a&&e.setNextPlugin(o),e.processTelemetry(t,n),!0)}u(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=Oi(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}u(t,r,"unload",(function(){}),n.isAsync)||t.processNext(n)}function f(t,n){function r(){var r=!1;if(e){var o=Oi(e),i=e.core||o.core;!e||i&&i!==t.core()||o.teardown||e.update&&!0===e.update(t,n)&&(r=!0)}return r}u(t,r,"update",(function(){}),!1)||t.processNext(n)}return Jr(s)}(e,t,n);o||(o=s),a&&a._setNext(s),a=s}}))}return r&&!o?Bi([r],t,n):o}var Ki=500;function ji(e,t,n){t&&xr(t)&&t.length>0&&(Br(t=t.sort((function(e,t){return e.priority-t.priority})),(function(e){e.priority<Ki&&io("Channel has invalid priority - "+e.identifier)})),e.push({queue:Jr(t),chain:Bi(t,n.config,n)}))}var Yi="toGMTString",Gi="toUTCString",zi="expires",Vi=null,Wi=null,Xi=null,Qi=Oo(),$i={},Ji={};function Zi(e,t){var n=ra._ckMgr||Ji._ckMgr;return n||(n=ra._ckMgr=ra(e,t),Ji._ckMgr=n),n}function ea(e){return!e||e.isEnabled()}function ta(e,t){return!!(t&&e&&xr(e.ignoreCookies))&&-1!==e.ignoreCookies.indexOf(t)}function na(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var r=t.cookieCfg;n=r._ckMgr?r._ckMgr:ra(t)}return n||(n=Zi(t,(e||{}).logger)),n}function ra(e,t){var n,r=function(e){var t=e.cookieCfg=e.cookieCfg||{};if(to(t,"domain",e.cookieDomain,_r,br),to(t,"path",e.cookiePath||"/",null,br),br(t.enabled)){var n=void 0;wr(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),wr(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n}return t}(e||Ji),o=r.path||"/",i=r.domain,a=!1!==r.enabled,s=((n={isEnabled:function(){var e=a&&oa(t),n=Ji._ckMgr;return e&&n&&s!==n&&(e=ea(n)),e}}).setEnabled=function(e){a=!1!==e},n.set=function(e,t,n,a,c){var u=!1;if(ea(s)&&!function(e,t){return!!(t&&e&&xr(e.blockedCookies)&&-1!==e.blockedCookies.indexOf(t))||ta(e,t)}(r,e)){var l={},d=Gr(t||Wn),f=d.indexOf(";");if(-1!==f&&(d=Gr(t.substring(0,f)),l=ia(t.substring(f+1))),to(l,"domain",a||i,oo,wr),!br(n)){var h=Fo();if(wr(l.expires)){var p=Zr()+1e3*n;if(p>0){var g=new Date;g.setTime(p),to(l,zi,aa(g,h?Yi:Gi)||aa(g,h?Yi:Gi)||Wn,oo)}}h||to(l,"max-age",Wn+n,null,wr)}var v=Do();v&&"https:"===v.protocol&&(to(l,"secure",null,null,wr),null===Wi&&(Wi=!la((xo()||{}).userAgent)),Wi&&to(l,"SameSite","None",null,wr)),to(l,"path",c||o,null,wr),(r.setCookie||ua)(e,sa(d,l)),u=!0}return u},n.get=function(e){var t=Wn;return ea(s)&&!ta(r,e)&&(t=(r.getCookie||ca)(e)),t},n.del=function(e,t){var n=!1;return ea(s)&&(n=s.purge(e,t)),n},n.purge=function(e,n){var o,i=!1;if(oa(t)){var a=((o={}).path=n||"/",o.expires="Thu, 01 Jan 1970 00:00:01 GMT",o);Fo()||(a["max-age"]="0"),(r.delCookie||ua)(e,sa(Wn,a)),i=!0}return i},n);return s._ckMgr=s,s}function oa(e){if(null===Vi){Vi=!1;try{Vi=void 0!==(Qi||{}).cookie}catch(t){oi(e,2,68,"Cannot access document.cookie - "+eo(t),{exception:Bo(t)})}}return Vi}function ia(e){var t={};e&&e.length&&Br(Gr(e).split(";"),(function(e){if(e=Gr(e||Wn)){var n=e.indexOf("=");-1===n?t[e]=null:t[Gr(e.substring(0,n))]=Gr(e.substring(n+1))}}));return t}function aa(e,t){return Ar(e[t])?e[t]():null}function sa(e,t){var n=e||Wn;return Rr(t,(function(e,t){n+="; "+e+(br(t)?Wn:"="+t)})),n}function ca(e){var t=Wn;if(Qi){var n=Qi.cookie||Wn;Xi!==n&&($i=ia(n),Xi=n),t=Gr($i[e]||Wn)}return t}function ua(e,t){Qi&&(Qi.cookie=e+"="+t)}function la(e){return!!Lr(e)&&(!(!Or(e,"CPU iPhone OS 12")&&!Or(e,"iPad; CPU OS 12"))||(!!(Or(e,"Macintosh; Intel Mac OS X 10_14")&&Or(e,"Version/")&&Or(e,"Safari"))||(!(!Or(e,"Macintosh; Intel Mac OS X 10_14")||!Pr(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!Or(e,"Chrome/5")&&!Or(e,"Chrome/6"))||(!(!Or(e,"UnrealEngine")||Or(e,"Chrome"))||!(!Or(e,"UCBrowser/12")&&!Or(e,"UCBrowser/11")))))))}function da(){var e=[];return{add:function(t){t&&e.push(t)},run:function(t,n){Br(e,(function(e){try{e(t,n)}catch(r){oi(t.diagLog(),2,73,"Unexpected error calling unload handler - "+Bo(r))}})),e=[]}}}var fa=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||Hi(null,{},a.core);t=r&&r.getPlugin?o.createNew(null,r.getPlugin):o.createNew(null,r)}return t}function c(e,t,o){e&&to(e,$n,[],null,br),!o&&t&&(o=t.getProcessTelContext().getNext());var i=r;r&&r.getPlugin&&(i=r.getPlugin()),a.core=t,n=Hi(o,e,t,i)}function u(){t=!1,a.core=null,n=null,r=null,i=[],o=da()}u(),(0,Gn.A)(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,l=!1,d=t||qi(null,s,r&&r.getPlugin?r.getPlugin():r),f=n||((a={reason:0}).isAsync=!1,a);return e._doTeardown&&!0===e._doTeardown(d,f,h)?c=!0:h(),c}function h(){if(!l){l=!0,o.run(d,n);var e=i;i=[],Br(e,(function(e){e.rm()})),!0===c&&d.processNext(f),u()}}},e.update=function(t,n){var o=e.core;if(o&&(!t||o===t.core())){var i,a=!1,s=t||Fi(null,o,r&&r.getPlugin?r.getPlugin():r),u=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(s,u,l)?i=!0:l(),i}function l(){a||(a=!0,c(s.getCfg(),s.core(),s.getNext()))}},e._addHook=function(e){e&&(xr(e)?i=i.concat(e):i.push(e))},so(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&&Ar(r.processTelemetry)&&r.processTelemetry(e,null)},a._getTelCtx=s}return e.__ieDyn=1,e}(),ha=function(e){function t(){var n,r,o=e.call(this)||this;function i(){n=0,r=[]}return o.identifier="TelemetryInitializerPlugin",o.priority=199,i(),(0,Gn.A)(t,o,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r.push(t),{remove:function(){Br(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){oi(n.diagLog(),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+eo(c),{exception:Bo(c)},!0)}}o||e.processNext(t,n)},e._doTeardown=function(){i()}})),o}return(0,Yn.qU)(t,e),t.__ieDyn=1,t}(fa),pa="Plugins must provide initialize method",ga="SDK is still unloading...",va={loggingLevelConsole:1};function ma(e,t){return new po(t)}function ya(e,t){var n=!1;return Br(t,(function(t){if(t===e)return n=!0,-1})),n}var Ca=function(){function e(){var t,n,r,o,i,a,s,c,u,l,d,f,h,p,g,v,m,y,C,T,E=0;(0,Gn.A)(e,this,(function(e){function w(){n=!1,t=lo(!0,{},va),e.config=t,e.logger=new ni(t),e._extensions=[],g=new ha,r=[],o=null,i=null,a=null,s=null,c=null,l=null,u=[],d=null,f=null,h=null,p=!1,v=null,m=_i("AIBaseCore",!0),y=da(),T=null}function b(){return Hi(S(),t,e)}function _(n){var r=function(e,t,n){var r,o=[],i={};return Br(n,(function(n){(br(n)||br(n.initialize))&&io(pa);var r=n.priority,a=n.identifier;n&&r&&(br(i[r])?i[r]=a:ii(e,"Two extensions have same priority #"+r+" - "+i[r]+", "+a)),(!r||r<t)&&o.push(n)})),(r={all:n}).core=o,r}(e.logger,Ki,u);l=r.core,c=null;var o=r.all;if(h=Jr(function(e,t,n){var r=[];if(e&&Br(e,(function(e){return ji(r,e,n)})),t){var o=[];Br(t,(function(e){e.priority>Ki&&o.push(e)})),ji(r,o,n)}return r}(f,o,e)),d){var i=Kr(o,d);-1!==i&&o.splice(i,1),-1!==(i=Kr(l,d))&&l.splice(i,1),d._setQueue(h)}else d=function(e,t){function n(){return Hi(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&&Br(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:Ki,initialize:function(t,n,r,i){o=!0,Br(e,(function(e){e&&e.queue.length>0&&Mi(Hi(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&&Br(e,(function(e){if(e&&e.queue.length>0&&(Br(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,u=null;function l(){s--,c&&0===s&&(u&&(clearTimeout(u),u=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,l()}),i)||n||(t&&null==u?u=setTimeout((function(){u=null,l()}),a):l())}}))}),(function(){c=!0,l()})),!0},_setQueue:function(t){e=t}};return i}(h,e);o.push(d),l.push(d),e._extensions=xi(o),d.initialize(t,e,o),Mi(b(),o),e._extensions=Jr(xi(l||[])).slice(),n&&function(t){var n=Fi(S(),e);e._updateHook&&!0===e._updateHook(n,t)||n.processNext(t)}(n)}function I(t){var n,r=null,o=null;return Br(e._extensions,(function(e){if(e.identifier===t&&e!==d&&e!==g)return o=e,-1})),!o&&d&&(o=d.getChannel(t)),o&&((n={plugin:o}).setEnabled=function(e){Oi(o).disabled=!e},n.isEnabled=function(){var e=Oi(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&&_({reason:32,removed:r}),t&&t(e)}))},r=n),r}function S(){if(!c){var n=(l||[]).slice();-1===Kr(n,g)&&n.push(g),c=Bi(xi(n),t,e)}return c}function A(n,r,o){if(n&&n.length>0){var i=qi(Bi(n,t,e),e);i.onComplete((function(){var e=!1,t=[];Br(u,(function(r,o){ya(r,n)?e=!0:t.push(r)})),u=t;var r=[];f&&(Br(f,(function(t,o){var i=[];Br(t,(function(t){ya(t,n)?e=!0:i.push(t)})),r.push(i)})),f=r),o&&o(e)})),i.processNext(r)}else o(!1)}function k(){var n=e.logger?e.logger.queue:[];n&&(Br(n,(function(n){var r,o=((r={}).name=v||"InternalMessageId: "+n.messageId,r.iKey=ro(t.instrumentationKey),r.time=Fr(new Date),r.baseType=ei.dataType,r.baseData={message:n.message},r);e.track(o)})),n.length=0)}function R(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?oi(n,2,73,t):io(t)}w(),e.isInitialized=function(){return n},e.initialize=function(r,i,s,c){p&&io(ga),e.isInitialized()&&io("Core should not be initialized more than once"),t=r||{},e.config=t,br(r.instrumentationKey)&&io("Please provide instrumentation key"),o=c,e._notificationManager=c,function(){var e=ro(t.disableDbgExt);!0===e&&C&&(o.removeNotificationListener(C),C=null);o&&!C&&!0!==e&&(C=$o(t),o.addNotificationListener(C))}(),function(){var e=ro(t.enablePerfMgr);!e&&a&&(a=null);e&&no(t,Qn,ma)}(),no(t,$n,{}).NotificationManager=o,s&&(e.logger=s);var l=no(t,"extensions",[]);(u=[]).push.apply(u,(0,Yn.vz)((0,Yn.vz)([],i,!1),l,!1)),f=no(t,Xn,[]),_(null),h&&0!==h.length||io("No channels available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return h&&Br(h,(function(t){e.push(t.queue)})),Jr(e)},e.track=function(n){n.iKey=n.iKey||t.instrumentationKey,n.time=n.time||Fr(new Date),n.ver=n.ver||"4.0",!p&&e.isInitialized()?b().processNext(n):r.push(n)},e.getProcessTelContext=b,e.getNotifyMgr=function(){return o||(o=function(){var e;return(0,Vn.AQ)(((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=ra(t,e.logger)),s},e.setCookieMgr=function(e){s=e},e.getPerfMgr=function(){if(!i&&!a&&ro(t.enablePerfMgr)){var n=ro(t.createPerfMgr);Ar(n)&&(a=n(e,e.getNotifyMgr()))}return i||a||fo},e.setPerfMgr=function(e){i=e},e.eventCnt=function(){return r.length},e.releaseQueue=function(){if(n&&r.length>0){var e=r;r=[],Br(e,(function(e){b().processNext(e)}))}},e.pollInternalLogs=function(e){v=e||null;var n=ro(t.diagnosticLogInterval);return n&&n>0||(n=1e4),E&&clearInterval(E),E=setInterval((function(){k()}),n)},e.stopPollingInternalLogs=function(){E&&(clearInterval(E),E=0,k())},co(e,(function(){return g}),["addTelemetryInitializer"]),e.unload=function(t,r,o){var i;void 0===t&&(t=!0),n||io("SDK is not initialized"),p&&io(ga);var a=((i={reason:50}).isAsync=t,i.flushComplete=!1,i),s=qi(S(),e);function c(t){a.flushComplete=t,p=!0,y.run(s,a),e.stopPollingInternalLogs(),s.processNext(a)}s.onComplete((function(){w(),r&&r(a)}),e),R(t,c,6,o)||c(!1)},e.getPlugin=I,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void P(pa);var o=I(e.identifier);if(o&&!t)return r&&r(!1),void P("Plugin ["+e.identifier+"] is already loaded!");var i={reason:16};function a(t){u.push(e),i.added=[e],_(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 m},e.flush=R,e.getTraceCtx=function(e){return T||(T=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),Ri(n)&&(t.traceId=n)},getSpanId:function(){return t.spanId},setSpanId:function(n){e&&e.setSpanId(n),Pi(n)&&(t.spanId=n)},getTraceFlags:function(){return t.traceFlags},setTraceFlags:function(n){e&&e.setTraceFlags(n),t.traceFlags=n}}}()),T},e.setTraceCtx=function(e){T=e||null},so(e,"addUnloadCb",(function(){return y}),"add")}))}return e.__ieDyn=1,e}();function Ta(e,t,n,r){Br(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(o){}}))}var Ea=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,Gn.A)(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=Kr(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=Kr(e.listeners,t)},e.eventsSent=function(t){Ta(e.listeners,Jn,!0,(function(e){e.eventsSent(t)}))},e.eventsDiscarded=function(t,n){Ta(e.listeners,Zn,!0,(function(e){e.eventsDiscarded(t,n)}))},e.eventsSendRequest=function(t,n){Ta(e.listeners,er,n,(function(e){e.eventsSendRequest(t,n)}))},e.perfEvent=function(t){t&&(!n&&t.isChildEvt()||Ta(e.listeners,tr,!1,(function(e){t.isAsync?setTimeout((function(){return e.perfEvent(t)}),0):e.perfEvent(t)})))}}))}return e.__ieDyn=1,e}(),wa=function(e){function t(){var n=e.call(this)||this;return(0,Gn.A)(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 ni(e),o||new Ea(e))},e.track=function(r){vo(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),io("Invalid telemetry item")),function(e){br(e.name)&&(n(e),io("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,Yn.qU)(t,e),t.__ieDyn=1,t}(Ca),ba="",_a="events",Ia="visibilitychange",Sa="pagehide",Aa="pageshow",ka="unload",Ra="beforeunload",Pa=_i("aiEvtPageHide"),Na=_i("aiEvtPageShow"),Oa=/\.[\.]+/g,Ma=/[\.]+$/,xa=1,Da=Ii("events"),La=/^([^.]*)(?:\.(.+)|)/;function Ua(e){return e&&e.replace?e.replace(/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,Wn):e}function Ha(e,t){var n;if(t){var r=Wn;xr(t)?(r=Wn,Br(t,(function(e){(e=Ua(e))&&("."!==e[0]&&(e="."+e),r+=e)}))):r=Ua(t),r&&("."!==r[0]&&(r="."+r),e=(e||Wn)+r)}var o=La.exec(e||Wn)||[];return(n={}).type=o[1],n.ns=(o[2]||Wn).replace(Oa,".").replace(Ma,Wn).split(".").sort().join("."),n}function qa(e,t,n){void 0===n&&(n=!0);var r=Da.get(e,_a,{},n),o=r[t];return o||(o=r[t]=[]),o}function Fa(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 Ba(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)||(Fa(e,i.evtName,i.handler,i.capture),t.splice(o,1)))}}function Ka(e,t){return t?Ha("xx",xr(t)?[e].concat(t):[e,t]).ns.split("."):e}function ja(e,t,n,r,o){var i;void 0===o&&(o=!1);var a=!1;if(e)try{var s=Ha(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&&Da.accept(e)){var c=((i={guid:xa++,evtName:s}).handler=n,i.capture=o,i);qa(e,s.type).push(c)}}catch(u){}return a}function Ya(e,t,n,r,o){if(void 0===o&&(o=!1),e)try{var i=Ha(t,r),a=!1;!function(e,t,n){if(t.type)Ba(e,qa(e,t.type),t,n);else{var r=Da.get(e,_a,{});Rr(r,(function(r,o){Ba(e,o,t,n)})),0===Wr(r).length&&Da.kill(e,_a)}}(e,i,(function(e){return!((!i.ns||n)&&e.handler!==n)&&(a=!0,!0)})),a||Fa(e,i,n,o)}catch(s){}}function Ga(e,t,n){var r=!1,o=Po();o&&(r=ja(o,e,t,n),r=ja(o.body,e,t,n)||r);var i=Oo();return i&&(r=ja(i,e,t,n)||r),r}function za(e,t,n,r){var o=!1;return t&&e&&e.length>0&&Br(e,(function(e){e&&(n&&-1!==Kr(n,e)||(o=Ga(e,t,r)||o))})),o}function Va(e,t,n){e&&xr(e)&&Br(e,(function(e){e&&function(e,t,n){var r=Po();r&&(Ya(r,e,t,n),Ya(r.body,e,t,n));var o=Oo();o&&Ya(o,e,t,n)}(e,t,n)}))}function Wa(e,t,n){return function(e,t,n,r){var o=!1;return t&&e&&xr(e)&&!(o=za(e,t,n,r))&&n&&n.length>0&&(o=za(e,t,null,r)),o}([Ra,ka,Sa],e,t,n)}function Xa(e,t,n){var r=Ka(Pa,n),o=za([Sa],e,t,r);return t&&-1!==Kr(t,Ia)||(o=za([Ia],(function(t){var n=Oo();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||o),!o&&t&&(o=Xa(e,null,n)),o}function Qa(e,t,n){var r=Ka(Na,n),o=za([Aa],e,t,r);return!(o=za([Ia],(function(t){var n=Oo();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||o)&&t&&(o=Qa(e,null,n)),o}var $a,Ja=null;function Za(){var e=ts();return e.substring(0,8)+"-"+e.substring(8,12)+"-"+e.substring(12,16)+"-"+e.substring(16,20)+"-"+e.substring(20)}function es(){var e=Lo();return e&&e.now?e.now():Zr()}function ts(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=Wn,r=0;r<4;r++)n+=t[15&(e=pi())]+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&pi())|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 ns,rs={_canUseCookies:void 0,isTypeof:Er,isUndefined:wr,isNullOrUndefined:br,hasOwnProperty:Ir,isFunction:Ar,isObject:Sr,isDate:Mr,isArray:xr,isError:Dr,isString:Lr,isNumber:Ur,isBoolean:Hr,toISOString:Fr,arrForEach:Br,arrIndexOf:Kr,arrMap:jr,arrReduce:Yr,strTrim:Gr,objCreate:Vn.AQ,objKeys:Wr,objDefineAccessors:Xr,addEventHandler:Ga,dateNow:Zr,isIE:Fo,disableCookies:function(){os().setEnabled(!1)},newGuid:Za,perfNow:es,newId:mi,randomValue:hi,random32:pi,mwcRandomSeed:gi,mwcRandom32:vi,generateW3CId:ts};function os(e,t){var n=Zi(e,t),r=rs._canUseCookies;return null===Ja&&(Ja=[],$a=r,Xr(rs,"_canUseCookies",(function(){return $a}),(function(e){$a=e,Br(Ja,(function(t){t.setEnabled(e)}))}))),-1===Kr(Ja,n)&&Ja.push(n),Hr(r)&&n.setEnabled(r),Hr($a)&&n.setEnabled($a),n}var is="1DS-Web-JS-3.2.10",as="withCredentials",ss=((ns={})[0]=0,ns[2]=6,ns[1]=1,ns[3]=7,ns[4098]=6,ns[4097]=1,ns[4099]=7,ns);Boolean(Oo()),Boolean(Po());function cs(e){return!(e===ba||br(e))}function us(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return ba}function ls(e){return!!(e&&Ur(e)&&e>=1&&e<=4)}function ds(e,t,n){if(!t&&!cs(t)||"string"!==typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||xr(t))t={value:t};else if("object"!==r||zn.J$.call(t,"value")){if(br(t.value)||t.value===ba||!Lr(t.value)&&!Ur(t.value)&&!Hr(t.value)&&!xr(t.value))return null}else t={value:n?JSON.stringify(t):t};if(xr(t.value)&&!ys(t.value))return null;if(!br(t.kind)){if(xr(t.value)||!ms(t.kind))return null;t.value=t.value.toString()}return t}function fs(e,t,n){var r=-1;if(!wr(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=ss[Ts(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function hs(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||ba}function ps(e){void 0===e&&(e="D");var t=Za();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,ba)),t}function gs(e,t,n,r,o){var i={},a=!1,s=0,c=arguments.length,u=Object[zn.vR],l=arguments;for("[object Boolean]"===u.toString.call(l[0])&&(a=l[0],s++);s<c;s++){Rr(e=l[s],(function(e,t){a&&t&&Sr(t)?xr(t)?(i[e]=i[e]||[],Br(t,(function(t,n){t&&Sr(t)?i[e][n]=gs(!0,i[e][n],t):i[e][n]=t}))):i[e]=gs(!0,i[e],t):i[e]=t}))}return i}var vs=es;function ms(e){return 0===e||e>0&&e<=13||32===e}function ys(e){return e.length>0}function Cs(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=vs()}function Ts(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===zn._1&&(t=4,xr(e)?(t=4096,e.length>0&&(t|=Ts(e[0]))):zn.J$.call(e,"value")&&(t=8192|Ts(e.value)))}return t}zn.bA,zn._1,zn.bA,Vn.AQ;var Es=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,Gn.A)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new ni({loggingLevelConsole:1})),e.initialize=function(n,r,o,i){vo(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||io("Invalid property storage override passed."),n.channels&&Br(n.channels,(function(e){e&&Br(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&&Br(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(l){var c=e.logger,u=Bo(l);-1!==u.indexOf("channels")&&(u+="\n - Channels must be provided through config.channels only!"),oi(c,1,514,"SDK Initialization Failed - no telemetry will be sent: "+u)}}),(function(){return{config:n,extensions:r,logger:o,notificationManager:i}}))},e.track=function(n){vo(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=vs(),ls(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=is;var i=r.baseData=r.baseData||{};i.properties=i.properties||{};var a=i.properties;a.version=a.version||e.pluginVersionString||ba}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,Yn.qU)(t,e),t.__ieDyn=1,t}(wa),ws=Es;function bs(e){var t={};return Rr(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),$r(t)}var _s,Is="locale",Ss="ver",As="name",ks=bs({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"]}),Rs=bs({id:[0,"id"],ver:[1,Ss],appName:[2,As],locale:[3,Is],expId:[4,"expId"],env:[5,"env"]}),Ps=bs({domain:[0,"domain"],browser:[1,"browser"],browserVer:[2,"browserVer"],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),Ns=bs({locale:[0,Is],localId:[1,"localId"],id:[2,"id"]}),Os=bs({osName:[0,As],ver:[1,Ss]}),Ms=bs({ver:[0,Ss],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),xs=bs({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,"serviceName"]}),Ds=bs({popSample:[0,"popSample"],eventFlags:[1,"eventFlags"]}),Ls=bs({tz:[0,"tz"]}),Us=bs({sessionId:[0,"sesId"]}),Hs=bs({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),qs=bs({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),Fs=bs({traceId:[0,"traceID"],traceName:[1,As],parentId:[2,"parentID"]}),Bs=bs({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]});function Ks(){return void 0===_s&&(_s=!!Ys(0)),_s}function js(){return Ks()?Ys(0):null}function Ys(e){var t,n,r=null;try{var o=(0,Vn.mS)();if(!o)return null;n=new Date,(r=0===e?o.localStorage:o.sessionStorage)&&Ar(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(i){r=null}return r}function Gs(){return this.getId()}function zs(e){this.setId(e)}var Vs=function(){function e(){(0,Gn.A)(e,this,(function(e){e.setId=function(t){e.customId=t},e.getId=function(){return Lr(e.customId)?e.customId:e.automaticId}}))}return e._staticInit=void Xr(e.prototype,"id",Gs,zs),e}(),Ws="ai_session",Xs=function(){function e(t,n){var r,o,i=ti(t),a=na(t);(0,Gn.A)(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 u(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){oi(i,1,510,"Error parsing ai_session cookie, session will be reset: "+s)}0===n.renewalDate&&oi(i,2,517,"AI session renewal date is 0, session will be reset.")}function l(){var e=t.automaticSession,n=(new Date).getTime(),r=t.config.sessionAsGuid();!wr(r)&&r?Hr(r)?e.setId(ps()):e.setId(ps(r)):e.setId(mi(c&&c.idLength?c.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,d(e.getId(),e.acquisitionDate,e.renewalDate),Ks()||oi(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(),u=new Date,l=[e,n,i];s<c?u.setTime(s):u.setTime(c);var d=t.config.cookieDomain?t.config.cookieDomain():null;a.set(o(),l.join("|")+";expires="+u.toUTCString(),null,d),r=(new Date).getTime()}Ar(n.sessionExpirationMs)||(c.sessionExpirationMs=function(){return e.acquisitionSpan}),Ar(n.sessionRenewalMs)||(c.sessionRenewalMs=function(){return e.renewalSpan}),t.config=c,o=function(){return t.config.namePrefix&&t.config.namePrefix()?Ws+t.config.namePrefix():Ws},t.automaticSession=new Vs,t.update=function(){t.automaticSession.getId()||function(){var e=a.get(o());if(e&&Ar(e.split))u(e);else{var n=function(e,t){var n=js();if(null!==n)try{return n.getItem(t)}catch(r){_s=!1,oi(e,1,503,"Browser failed read of local storage. "+r)}return null}(i,o());n&&u(n)}t.automaticSession.getId()||l()}();var n=t.automaticSession,s=t.config,c=(new Date).getTime(),f=c-n.acquisitionDate>s.sessionExpirationMs(),h=c-n.renewalDate>s.sessionRenewalMs();if(f||h)l();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=js();if(null!==r)try{r.setItem(t,n)}catch(o){_s=!1,oi(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}(),Qs=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function $s(e,t){void 0===t&&(t=Qs);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)Js(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function Js(e,t){if(void 0===t&&(t=Qs),!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 Zs(){return this.getExpId()}var ec=function(){function e(t,n){var r=null,o=Qs.slice(0),i="Treatments",a=na(n),s=t;(0,Gn.A)(e,this,(function(e){if(No()){var n=Oo().documentElement;n&&(e.locale=n.lang)}function c(e){e!==r&&(r=$s(e,o))}e.env=t.env?t.env:function(e){var t,n={},r=Oo();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(hs(a,i)),r)}}))}return e.validateAppExpId=$s,e._staticInit=void Xr(e.prototype,"expId",Zs),e}(),tc=function(){},nc=function(){};function rc(){return this.getMsfpc()}function oc(){return this.getAnid()}var ic=function(){function e(t,n){var r=na(n);(0,Gn.A)(e,this,(function(e){t.serviceName&&(e.serviceName=t.serviceName),e.getMsfpc=function(){return hs(r,"MSFPC")},e.getAnid=function(){return hs(r,"ANON").slice(0,34)}}))}return e._staticInit=function(){var t=e.prototype;Xr(t,"msfpc",rc),Xr(t,"anid",oc)}(),e}(),ac=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())},sc={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},cc={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},uc="Unknown",lc=[{r:sc.WINPHONE,os:"Windows Phone"},{r:sc.WINRT,os:"Windows RT"},{r:sc.WIN,os:"Windows"},{r:sc.IOS,os:"iOS"},{r:sc.ANDROID,os:"Android"},{r:sc.LINUX,os:"Linux"},{r:sc.CROS,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:sc.OSX,os:"Mac OS X"}];function dc(e,t){return"Windows"===t?fc(e,"Windows NT"):"Android"===t?fc(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=hc(n);return r?n.split(r)[0]:n}}return uc}(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=hc(n);return r?n.split(r)[0]:n}}return uc}(e):uc}function fc(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?cc[n[1]]?cc[n[1]]:n[1]:uc}function hc(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var pc=function(e){if(e.populateOperatingSystemInfo){var t=this,n=xo()||{},r=e.userAgent||n.userAgent||"",o=e.userAgentData||n.userAgentData||{};if(r){var i=function(e){for(var t=0;t<lc.length;t++){var n=lc[t];if(n.r&&e.match(n.r))return n.os;if(n.s&&-1!==e.indexOf(n.s))return n.os}return uc}(r.toLowerCase());t.name=i,t.ver=dc(r,i)}t.name&&t.name!==uc||!Lr(o.platform)||(t.name=o.platform)}},gc="MicrosoftApplicationsTelemetryDeviceId";var vc=function(){function e(t,n){var r=0;(0,Gn.A)(e,this,(function(e){var o=t.propertyStorageOverride;e.seq=r,e.epoch=pi(!1).toString();var i=na(n,t);if(i.isEnabled()||o){var a=function(e,t,n){return t?t.getProperty(n)||"":hs(e,n)}(i,o,gc);a||(a=Za()),function(e,t,n,r){t?t.setProperty(n,r):e.set(n,r,31536e3)}(i,o,gc,a),e.installId=a}else i.purge(gc);e.getSequenceId=function(){return++r}}))}return e.__ieDyn=1,e}(),mc=function(e,t,n,r){var o=this;if(o.traceId=t||ts(),e.enableDistributedTracing&&!n&&(n=ts().substring(0,16)),o.parentId=n,e.enableApplicationInsightsTrace){o.name=r;var i=Do();i&&i.pathname&&(o.name=i.pathname)}};function yc(){return this.getLocalId()}function Cc(e){this.setLocalId(e)}var Tc=function(){function e(t,n,r){var o,i=n,a=na(r,t);(0,Gn.A)(e,this,(function(n){if(a&&a.isEnabled()&&(f(),i.enableApplicationInsightsUser)){var r=hs(a,e.userCookieName);if(r){var s=r.split(e.cookieSeparator);s.length>0&&(n.id=s[0])}if(!n.id){n.id=mi(t&&!wr(t.idLength)?t.idLength:22);var c=Fr(new Date);n.accountAcquisitionDate=c;var u=[n.id,c],l=i.cookieDomain?i.cookieDomain:void 0;a.set(e.userCookieName,u.join(e.cookieSeparator),31536e3,l)}}if("undefined"!==typeof navigator){var d=navigator;n.locale=d.userLanguage||d.language}function f(){if(!i.hashIdentifiers&&!i.dropIdentifiers){var e=hs(a,"MUID");e&&(o="t:"+e)}return o}n.getLocalId=function(){return o||f()},n.setLocalId=function(e){o=e}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=void Xr(e.prototype,"localId",yc,Cc),e}(),Ec=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)},wc="([\\d,.]+)",bc="Unknown",_c="Edg/",Ic=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:_c,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"}],Sc=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function Ac(e,t){return t.indexOf(e)>-1}function kc(e,t){for(var n=0;n<t.length;n++)if(e==t[n].brand)return t[n].version;return null}function Rc(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&&Ac(_c,t)&&(e="Edg");var n=t.match(new RegExp(e+"/"+wc));if(n)return n[1];if("Opera"===e&&(n=t.match(new RegExp("OPR/([\\d,.]+)"))))return n[1];return bc}(t,e)}function Pc(){return this.getUserConsent()}var Nc=function(){function e(t,n){var r=na(n),o=t||{};(0,Gn.A)(e,this,(function(e){var t=Do();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=xo();s&&(i=i||s.userAgent||"",a=a||(s.userAgentData||{}).brands),function(t,n){if(xr(n))try{for(var r=0;r<Sc.length;r++){var o=kc(Sc[r].br,n);if(o)return e.browser=Sc[r].b,void(e.browserVer=o)}}catch(a){}if(t){var i=function(e){if(e)for(var t=0;t<Ic.length;t++)if(Ac(Ic[t].ua,e))return Ic[t].b;return bc}(t);e.browser=i,e.browserVer=Rc(t,i)}}(i,a);var c=function(){var e={h:0,w:0},t=Po();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||!!hs(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(n){}return null},Xr(e,"userConsent",e.getUserConsent)}))}return e._staticInit=void Xr(e.prototype,"userConsent",Pc),e}();function Oc(e,t,n,r,o){var i=t.ext[ks[e]];return i&&Rr(r,(function(e,t){if(Lr(t)||Ur(t)||Hr(t)){var r=i[n[e]];!o&&(r||Lr(r)||Ur(r)||Hr(r))&&(t=r),i[n[e]]=t}})),i}var Mc=function(){function e(t,n,r){(0,Gn.A)(e,this,(function(e){e.app=new ec(n,r),e.cloud=new tc,e.user=new Tc(t,n,r),e.os=new pc(n),e.web=new Nc(n,r);var o=new vc(t,r),i=new ic(n,r),a=new Ec(n);e.loc=new ac,e.device=new nc;var s=new Xs(r,n);e.session=new Vs;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),Ri(e)&&(n.traceId=e)},getSpanId:function(){return n.parentId},setSpanId:function(e){t&&t.setSpanId(e),Pi(e)&&(n.parentId=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}(new mc(n),d()),u=!(n||{}).eventContainExtFields;function l(){var t=e.session;if(t&&Lr(t.customId))return t.customId;s.update();var n=s.automaticSession;if(n){var r=n.getId();r&&Lr(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=l,e.applyApplicationContext=function(t){var n,r=e.app;Oc(4,t,Rs,((n={})[0]=r.id,n[1]=r.ver,n[2]=r.name,n[3]=r.locale,n[4]=r.getExpId(),n[5]=r.env,n),u)},e.applyUserContext=function(t){var n,r=e.user;Oc(0,t,Ns,((n={})[1]=r.getLocalId(),n[0]=r.locale,n[2]=r.id,n),u)},e.applyWebContext=function(t){var n,r=e.web;Oc(3,t,Ps,((n={})[0]=r.domain,n[1]=r.browser,n[2]=r.browserVer,n[3]=r.screenRes,n[5]=r.getUserConsentDetails(),n[4]=r.getUserConsent(),n),u)},e.applyOsContext=function(t){var n,r=e.os;Oc(5,t,Os,((n={})[0]=r.name,n[1]=r.ver,n),u)},e.applySdkContext=function(e){var t;Oc(6,e,Ms,((t={})[2]=o.installId,t[1]=o.getSequenceId(),t[3]=o.epoch,t),u)},e.applyIntWebContext=function(e){var t;Oc(7,e,xs,((t={})[0]=i.getMsfpc(),t[1]=i.getAnid(),t[2]=i.serviceName,t),u)},e.applyUtcContext=function(e){var t,n=((t={})[0]=a.popSample,t);a.eventFlags>0&&(n[1]=a.eventFlags),Oc(8,e,Ds,n,u)},e.applyLocContext=function(t){var n;Oc(9,t,Ls,((n={})[0]=e.loc.tz,n),u)},e.applySessionContext=function(e){var t;Oc(4,e,Us,((t={})[0]=l(),t),u)},e.applyDeviceContext=function(t){var n,r=e.device;Oc(1,t,Hs,((n={})[0]=r.localId,n[2]=r.make,n[3]=r.model,n[1]=r.deviceClass,n),u)},e.applyCloudContext=function(t){var n,r=e.cloud;Oc(10,t,qs,((n={})[0]=r.role,n[1]=r.roleInstance,n[2]=r.roleVer,n),u)},e.applyAITraceContext=function(e){var t;if(n.enableApplicationInsightsTrace){var r=d();r&&Oc(2,e,Fs,((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();br(o)||(r[2]=o),Oc(11,e,Bs,r,!1)}}}))}return e.__ieDyn=1,e}();var xc=[ks[4],ks[0],ks[3],ks[5],ks[6],ks[7],ks[8],ks[9],ks[1],ks[2],ks[11],ks[10]],Dc=function(e){function t(){var n,r,o,i=e.call(this)||this;return i.identifier="SystemPropertiesCollector",i.priority=3,i.version="3.2.10",(0,Gn.A)(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 Mc(r,o,i),i&&i.setTraceCtx&&i.setTraceCtx(n.getTraceCtx())},e.processTelemetry=function(t,i){Cs(t,e.identifier),i=e._getTelCtx(i);var a,s,c=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},Br(xc,(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)),Br(Wr(c),(function(e){0===Wr(c[e]).length&&delete c[e]})),a=r,s=t.data,a&&Rr(a,(function(e,t){s[e]||(s[e]=t)})),e.processNext(t,i)},e.getPropertiesContext=function(){return n},e.setProperty=function(e,t){r[e]=t},e._doTeardown=function(e,t){var r=(e||{}).core();if(r&&r.getTraceCtx&&n){var o=r.getTraceCtx(!1);o&&o===n.getTraceCtx()&&r.setTraceCtx(null)}i()}})),i}return(0,Yn.qU)(t,e),t.__ieDyn=1,t}(fa),Lc=function(e){var t={};return Rr(e,(function(e,n){t[e]=n,t[n]=e})),$r(t)}({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),Uc="REAL_TIME",Hc="",qc="POST",Fc="drop",Bc="send",Kc="requeue",jc="rspFail",Yc="application/x-json-stream",Gc="cache-control",zc="content-type",Vc="kill-duration",Wc="time-delta-millis",Xc="client-version",Qc="client-id",$c="time-delta-to-apply-millis",Jc="upload-time",Zc="apikey",eu="AuthMsaDeviceTicket",tu="AuthXToken";function nu(e){var t=(e.ext||{}).intweb;return t&&cs(t.msfpc)?t.msfpc:null}function ru(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=nu(e[n]);return t}var ou=function(){function e(t,n){var r=n?[].concat(n):[],o=this,i=ru(r);o.iKey=function(){return t},o.Msfpc=function(){return i||Hc},o.count=function(){return r.length},o.events=function(){return r},o.addEvent=function(e){return!!e&&(r.push(e),i||(i=nu(e)),!0)},o.split=function(n,o){var a;if(n<r.length){var s=r.length-n;br(o)||(s=o<s?o:s),a=r.splice(n,s),i=ru(r)}return new e(t,a)}}return e.create=function(t,n){return new e(t,n)},e}(),iu=function(){function e(){var t=!0,n=!0,r=!0,o="use-collector-delta",i=!1;(0,Gn.A)(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}(),au=function(){function e(){var t={};(0,Gn.A)(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var r=function(e){var t=[];return e&&Br(e,(function(e){t.push(Gr(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]]=Zr()+o}catch(a){return[]}return[]},e.isTenantKilled=function(e){var n=t,r=Gr(e);return void 0!==n[r]&&n[r]>Zr()||(delete n[r],!1)}}))}return e.__ieDyn=1,e}();function su(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var cu,uu=2e6,lu=Math.min(uu,65e3),du=/\./,fu=function(){function e(t,n,r,o){var i="data",a="baseData",s=!!o,c=n,u={};(0,Gn.A)(e,this,(function(e){function n(e,t,o,i,a,l,d){Rr(e,(function(e,f){var h=null;if(f||cs(f)){var p=o,g=e,v=a,m=t;if(s&&!i&&du.test(e)){var y=e.split("."),C=y.length;if(C>1){v&&(v=v.slice());for(var T=0;T<C-1;T++){var E=y[T];m=m[E]=m[E]||{},p+="."+E,v&&v.push(E)}g=y[C-1]}}var w=i&&function(e,t){var n=u[e];return void 0===n&&(e.length>=7&&(n=Nr(e,"ext.metadata")||Nr(e,"ext.web")),u[e]=n),n}(p);if(h=!w&&c&&c.handleField(p,g)?c.value(p,g,f,r):ds(g,f,r)){var b=h.value;if(m[g]=b,l&&l(v,g,h),d&&"object"===typeof b&&!xr(b)){var _=v;_&&(_=_.slice()).push(g),n(f,b,p+"."+g,i,_,l,d)}}}}))}e.createPayload=function(e,t,n,r,o,i){return{apiKeys:[],payloadBlob:Hc,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&&vo(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),i=n.payloadBlob,a=n.numEvents,s=!1,c=[],u=[],l=n.isBeacon,d=l?65e3:3984588,f=l?lu:uu,h=0,p=0;h<t.length;){var g=t[h];if(g){if(a>=o){n.overflow=r.split(h);break}var v=e.getEventBlob(g);if(v&&v.length<=f){var m=v.length;if(i.length+m>d){n.overflow=r.split(h);break}i&&(i+="\n"),i+=v,++p>20&&(i.substr(0,1),p=0),s=!0,a++}else v?c.push(g):u.push(g),t.splice(h,1),h--}h++}if(c&&c.length>0&&n.sizeExceed.push(ou.create(r.iKey(),c)),u&&u.length>0&&n.failedEvts.push(ou.create(r.iKey(),u)),s){n.batches.push(r),n.payloadBlob=i,n.numEvents=a;var y=r.iKey();-1===Kr(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 vo(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+us(e.iKey);var r={},o=e.ext;o&&(t.ext=r,Rr(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){hu(r,e,t,n)}),true),n(e.data,s,i,!1,[],(function(e,t,n){hu(r,e,t,n)}),true),JSON.stringify(t)}),(function(){return{item:e}}))}catch(r){return null}}}))}return e.__ieDyn=1,e}();function hu(e,t,n,r){if(r&&e){var o=fs(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 u=a[c].f;u||(u=a[c].f={}),a=u}a=a[n]={},xr(r.value)?a.a={t:o}:a.t=o}}}var pu="&NoResponseBody=true",gu=((cu={})[1]=Kc,cu[100]=Kc,cu[200]="sent",cu[8004]=Fc,cu[8003]=Fc,cu),vu={},mu={};function yu(e,t,n){vu[e]=t,!1!==n&&(mu[t]=e)}function Cu(e){try{return e.responseText}catch(t){}return Hc}function Tu(e,t){var n=!1;if(e&&t){var r=Wr(e);if(r&&r.length>0)for(var o=t.toLowerCase(),i=0;i<r.length;i++){var a=r[i];if(a&&Ir(t,a)&&a.toLowerCase()===o){n=!0;break}}}return n}function Eu(e,t,n,r){t&&n&&n.length>0&&(r&&vu[t]?(e.hdrs[vu[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function wu(e,t){return t&&(Ur(t)?e=[t].concat(e):xr(t)&&(e=t.concat(e))),e}yu(eu,eu,!1),yu(Xc,Xc),yu(Qc,"Client-Id"),yu(Zc,Zc),yu($c,$c),yu(Jc,Jc),yu(tu,tu);var bu=function(){function e(t,n,r,o,i){this._responseHandlers=[];var a,s,c,u,l,d,f,h,p,g,v="?cors=true&"+zc.toLowerCase()+"="+Yc,m=new au,y=!1,C=new iu,T=!1,E=0,w=!0,b=[],_={},I=[],S=null,A=!1,k=!1,R=!1;(0,Gn.A)(e,this,(function(e){var P=!0;function N(e,t){for(var n=0,r=null,o=0;null==r&&o<e.length;)1===(n=e[o])?Yo()?r=O:Go()&&(r=x):2===n&&jo(t)&&(!t||t&&!h)?r=M:T&&3===n&&Ko()&&(r=L),o++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function O(e,t,n){var r=new XDomainRequest;r.open(qc,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=Cu(r);D(t,200,{},e),W(e)},r.onerror=function(){D(t,400,{})},r.ontimeout=function(){D(t,500,{})},r.onprogress=function(){},n?r.send(e.data):i.set((function(){r.send(e.data)}),0)}function M(e,t,n){var r,o=e.urlString,a=!1,s=!1,c=((r={body:e.data,method:qc}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,r);n&&(c.keepalive=!0,2===e._sendReason&&(a=!0,g&&(o+=pu))),P&&(c.credentials="include"),e.headers&&Wr(e.headers).length>0&&(c.headers=e.headers),fetch(o,c).then((function(e){var n={},r=Hc,o=e.headers;o&&o.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),s||(s=!0,D(t,e.status,n,r),W(r))})).catch((function(e){s||(s=!0,D(t,0,{}))})),a&&!s&&(s=!0,D(t,200,{})),!s&&e.timeout>0&&i.set((function(){s||(s=!0,D(t,500,{}))}),e.timeout)}function x(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]=Gr(r))}return e}function i(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(Lr(e)){Br(Gr(e).split(/[\r\n]+/),(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=Gr(e.substring(0,n)).toLowerCase(),o=Gr(e.substring(n+1));t[r]=o}else t[Gr(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=o(t,e,Wc),t=o(t,e,Vc),t=o(t,e,"kill-duration-seconds")),t}function a(e,n){D(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(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,as,n),s.open(e,t,!o),n&&a(s,as,n),!o&&i&&a(s,"timeout",i),s}(qc,r,P,!0,n,e.timeout);Rr(e.headers,(function(e,t){s.setRequestHeader(e,t)})),s.onload=function(){var e=Cu(s);a(s,e),W(e)},s.onerror=function(){a(s)},s.ontimeout=function(){a(s)},s.send(e.data)}function D(e,t,n,r){try{e(t,n,r)}catch(o){oi(s,2,518,Bo(o))}}function L(e,t,n){var r=200,o=e._thePayload,i=e.urlString+(g?pu:Hc);try{var a=xo();if(!a.sendBeacon(i,e.data))if(o){var c=[];Br(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(u){ii(s,"Failed to send telemetry using sendBeacon API. Ex:"+Bo(u)),r=0}finally{D(t,r,{},Hc)}}function U(e){return 2===e||3===e}function H(e){return k&&U(e)&&(e=2),e}function q(){return!y&&E<n}function F(){var e=I;return I=[],e}function B(e,t,n){var r=!1;return e&&e.length>0&&!y&&c[t]&&S&&(r=0!==t||q()&&(n>0||C.allowRequestSending())),r}function K(e){var t={};return e&&Br(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,l=0!==o;vo(u,(function(){return"HttpManager:_sendBatches"}),(function(a){a&&(e=e.slice(0));for(var s=[],u=null,d=vs(),f=c[o]||(l?c[1]:c[0]),h=f&&f._transport,g=p&&(k||U(o)||3===h||f._isSync&&2===h);B(e,o,n);){var v=e.shift();v&&v.count()>0&&(m.isTenantKilled(v.iKey())?s.push(v):(u=u||S.createPayload(n,r,l,g,i,o),S.appendPayload(u,v,t)?null!==u.overflow&&(e=[u.overflow].concat(e),u.overflow=null,z(u,d,vs(),i),d=vs(),u=null):(z(u,d,vs(),i),d=vs(),e=[v].concat(e),u=null)))}u&&z(u,d,vs(),i),e.length>0&&(I=e.concat(I)),X(s,8004,o)}),(function(){return{batches:K(a),retryCount:n,isTeardown:r,isSynchronous:l,sendReason:i,useSendBeacon:U(o),sendType:o}}),!l)}catch(d){oi(s,2,48,"Unexpected Exception sending batch: "+Bo(d))}}}function Y(e,t){var n={url:v,hdrs:{},useHdrs:!1};t?(n.hdrs=gs(n.hdrs,_),n.useHdrs=Wr(n.hdrs).length>0):Rr(_,(function(e,t){mu[e]?Eu(n,mu[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),Eu(n,Qc,"NO_AUTH",t),Eu(n,Xc,is,t);var r=Hc;Br(e.apiKeys,(function(e){r.length>0&&(r+=","),r+=e})),Eu(n,Zc,r,t),Eu(n,Jc,Zr().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 Hc}(e);if(cs(o)&&(n.url+="&ext.intweb.msfpc="+o),C.shouldAddClockSkewHeaders()&&Eu(n,$c,C.getClockSkewHeaderValue(),t),u.getWParam){var i=u.getWParam();i>=0&&(n.url+="&w="+i)}for(var a=0;a<b.length;a++)n.url+="&"+b[a].name+"="+b[a].value;return n}function G(e,t,n){e[t]=e[t]||{},e[t][a.identifier]=n}function z(t,n,o,i){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var l=!!e.sendHook,p=c[t.sendType];!U(t.sendType)&&t.isBeacon&&2===t.sendReason&&(p=c[2]||c[3]||p);var g=R;(t.isBeacon||3===p._transport)&&(g=!1);var v=Y(t,g);g=g||v.useHdrs;var y=vs();vo(u,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var c=0;c<t.batches.length;c++)for(var T=t.batches[c].events(),b=0;b<T.length;b++){var _=T[b];if(A){var I=_.timings=_.timings||{};G(I,"sendEventStart",y),G(I,"serializationStart",n),G(I,"serializationCompleted",o)}_.sendAttempt>0?_.sendAttempt++:_.sendAttempt=1}X(t.batches,1e3+(i||0),t.sendType,!0);var S={data:t.payloadBlob,urlString:v.url,headers:v.hdrs,_thePayload:t,_sendReason:i,timeout:d,disableXhrSync:f,disableFetchKeepAlive:h};g&&(Tu(S.headers,Gc)||(S.headers["cache-control"]="no-cache, no-store"),Tu(S.headers,zc)||(S.headers["content-type"]=Yc));var R=null;p&&(R=function(n){C.firstRequestSent();var o=function(n,o){!function(t,n,o,i){var s=9e3,c=null,u=!1,l=!1;try{var d=!0;if(typeof t!==zn.bA){if(n){C.setClockSkew(n["time-delta-millis"]);var f=n["kill-duration"]||n["kill-duration-seconds"];Br(m.setKillSwitchTenants(n["kill-tokens"],f),(function(e){Br(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);((p=t)>=300&&p<500&&408!=p&&429!=p||501==p||505==p||o.numEvents<=0)&&(d=!1),s=9e3+t%1e3}if(d){s=100;var h=o.retryCnt;0===o.sendType&&(h<r?(u=!0,V((function(){0===o.sendType&&E--,j(o.batches,h+1,o.isTeardown,k?2:o.sendType,5)}),k,su(h))):(l=!0,k&&(s=8001)))}}finally{u||(C.setClockSkew(),function(t,n,r,o){try{o&&a._backOffTransmission(),200===n&&(o||t.isSync||a._clearBackOff(),function(e){if(A){var t=vs();Br(e,(function(e){e&&e.count()>0&&function(e,t){A&&Br(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&&(E--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}(o,s,i,l)),X(c,8004,o.sendType)}var p}(n,o,t,i)},c=t.isTeardown||t.isSync;try{p.sendPOST(n,o,c),e.sendListener&&e.sendListener(S,n,c,t.isBeacon)}catch(u){ii(s,"Unexpected exception sending payload. Ex:"+Bo(u)),D(o,0,{})}}),vo(u,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(R)if(0===t.sendType&&E++,l&&!t.isBeacon&&3!==p._transport){var n={data:S.data,urlString:S.urlString,headers:gs({},S.headers),timeout:S.timeout,disableXhrSync:S.disableXhrSync,disableFetchKeepAlive:S.disableFetchKeepAlive},r=!1;vo(u,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){r=!0,w||e._thePayload||(e._thePayload=e._thePayload||S._thePayload,e._sendReason=e._sendReason||S._sendReason),R(e)}),t.isSync||t.isTeardown)}catch(o){r||R(S)}}))}else R(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 V(e,t,n){t?e():i.set(e,n)}function W(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t)}catch(i){oi(s,1,519,"Response handler failed: "+i)}if(t){var o=JSON.parse(t);cs(o.webResult)&&cs(o.webResult.msfpc)&&l.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=gu[e];cs(t)||(t="oth",e>=9e3&&e<=9999?t=jc:e>=8e3&&e<=8999?t=Fc:e>=1e3&&e<=1999&&(t=Bc));return t}(t)];if(i){var a=0!==n;vo(u,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){V((function(){try{i.call(o,e,t,a,n)}catch(r){oi(s,1,74,"send request notification failed: "+r)}}),r||a,0)}),(function(){return{batches:K(e),reason:t,isSync:a,sendSync:r,sendType:n}}),!a)}}}e.initialize=function(e,t,n,r,o){var i;o||(o={}),v=e+v,R=!!wr(o.avoidOptions)||!o.avoidOptions,u=t,l=t.getCookieMgr(),A=!u.config.disableEventTimings;var m=!!u.config.enableCompoundKey;s=(a=n).diagLog();var y=o.valueSanitizer,C=o.stringifyObjects;wr(o.enableCompoundKey)||(m=!!o.enableCompoundKey),d=o.xhrTimeout,f=!!o.disableXhrSync,h=!!o.disableFetchKeepAlive,g=!1!==o.addNoResponse,T=!qo(),S=new fu(u,y,C,m),br(o.useSendBeacon)||(T=!!o.useSendBeacon);var E=r,b=o.alwaysUseXhrOverride?r:null,_=o.alwaysUseXhrOverride?r:null,I=[3,2];if(!r){w=!1;var k=Do();k&&k.protocol&&"file:"===k.protocol.toLowerCase()&&(P=!1);var O=[];qo()?(O=[2,1],I=[2,1,3]):O=[1,2,3],(r=N(O=wu(O,o.transports),!1))||ii(s,"No available transport to send events"),E=N(O,!0)}b||(b=N(I=wu(I,o.unloadTransports),!0)),p=!w&&(T&&Ko()||!h&&jo(!0)),(i={})[0]=r,i[1]=E||N([1,2,3],!0),i[2]=b||E||N([1],!0),i[3]=_||N([2,3],!0)||E||N([1],!0),c=i},e._getDbgPlgTargets=function(){return[c[0],m,S,c]},e.addQueryStringParameter=function(e,t){for(var n=0;n<b.length;n++)if(b[n].name===e)return void(b[n].value=t);b.push({name:e,value:t})},e.addHeader=function(e,t){_[e]=t},e.canSendRequest=function(){return q()&&C.allowRequestSending()},e.sendQueuedRequests=function(e,t){wr(e)&&(e=0),k&&(e=H(e),t=2),B(I,e,0)&&j(F(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!y&&0===E&&0===I.length},e.setUnloading=function(e){k=e},e.addBatch=function(e){if(e&&e.count()>0){if(m.isTenantKilled(e.iKey()))return!1;I.push(e)}return!0},e.teardown=function(){I.length>0&&j(F(),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&&(br(t)&&(t=1),k&&(t=H(t),n=2),j([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}();function _u(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function Iu(e){clearTimeout(e)}function Su(e,t){return{set:e||_u,clear:t||Iu}}var Au="eventsDiscarded",ku=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,u,l,d=!1,f=[],h=null,p=!1,g=0,v=500,m=0,y=1e4,C={},T=Uc,E=null,w=null,b=0,_=0,I={},S=-1,A=!0,k=!1,R=6,P=2;return(0,Gn.A)(t,r,(function(e,t){function r(e){"beforeunload"!==(e||Po().event).type&&(k=!0,i.setUnloading(k)),q(2,2)}function N(e){k=!1,i.setUnloading(k)}function O(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,A&&(e.ext=uo(e.ext),e.baseData&&(e.baseData=uo(e.baseData)),e.data&&(e.data=uo(e.data))),e.sync)if(b||p)e.latency=3,e.sync=!1;else if(i)return A&&(e=uo(e)),void i.sendSynchronousBatch(ou.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,r=m,o=y;4===n&&(r=g,o=v);var a=!1;if(r<o)a=!K(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=F(e,t,!0);if(o&&o.count()>0){var i=o.split(0,r),a=i.count();if(a>0)return 4===n?g-=a:m-=a,$(Au,[i],Lc.QueueFull),!0}n++}return j(),!1}(e.iKey,e.latency,s,c)&&(a=!K(e,t))}a&&Q(Au,[e],Lc.QueueFull)}function M(e,t,n){var r=Y(e,t,n);return i.sendQueuedRequests(t,n),r}function x(){return m>0}function D(){if(S>=0&&Y(S,0,c)&&i.sendQueuedRequests(0,c),g>0&&!w&&!p){var e=C[T][2];e>=0&&(w=U((function(){w=null,M(4,0,1),D()}),e))}var t=C[T][1];!E&&!h&&t>=0&&!p&&(x()?E=U((function(){E=null,M(0===_?3:1,0,1),_++,_%=2,D()}),t):_=0)}function L(){n=null,d=!1,f=[],h=null,p=!1,g=0,v=500,m=0,y=1e4,C={},T=Uc,E=null,w=null,b=0,_=0,o=null,I={},a=void 0,s=0,S=-1,c=null,A=!0,k=!1,R=6,P=2,u=null,l=Su(),i=new bu(500,2,1,{requeue:W,send:J,sent:Z,drop:ee,rspFail:te,oth:ne},l),V(),I[4]={batches:[],iKeyMap:{}},I[3]={batches:[],iKeyMap:{}},I[2]={batches:[],iKeyMap:{}},I[1]={batches:[],iKeyMap:{}},re()}function U(e,t){0===t&&b&&(t=1);var n=1e3;return b&&(n=su(b-1)),l.set(e,t*n)}function H(){return null!==E&&(l.clear(E),E=null,_=0,!0)}function q(e,t){H(),h&&(l.clear(h),h=null),p||M(1,e,t)}function F(e,t,n){var r=I[t];r||(r=I[t=1]);var o=r.iKeyMap[e];return!o&&n&&(o=ou.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function B(t,n){i.canSendRequest()&&!b&&(a>0&&m>a&&(n=!0),n&&null==h&&e.flush(t,null,20))}function K(e,t){A&&(e=uo(e));var n=e.latency,r=F(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(m++,t&&0===e.sendAttempt&&B(!e.sync,s>0&&r.count()>=s)):g++,!0)}function j(){for(var e=0,t=0,n=function(n){var r=I[n];r&&r.batches&&Br(r.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},r=1;r<=4;r++)n(r);m=t,g=e}function Y(t,n,r){var o=!1,a=0===n;return!a||i.canSendRequest()?vo(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var r=I[n];r&&r.batches&&r.batches.length>0&&(Br(r.batches,(function(t){i.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),4===n?g-=t.count():m-=t.count()})),r.batches=[],r.iKeyMap={}),n--}e.length>0&&Q(Au,e,Lc.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 G(e,t){M(1,0,t),j(),z((function(){e&&e(),f.length>0?h=U((function(){h=null,G(f.shift(),t)}),0):(h=null,D())}))}function z(e){i.isCompletelyIdle()?e():h=U((function(){h=null,z(e)}),.25)}function V(){(C={}).REAL_TIME=[2,1,0],C.NEAR_REAL_TIME=[6,3,0],C.BEST_EFFORT=[18,9,0]}function W(t,n){var r=[],o=R;k&&(o=P),Br(t,(function(t){t&&t.count()>0&&Br(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?(Cs(t,e.identifier),O(t,!1)):r.push(t))}))})),r.length>0&&Q(Au,r,Lc.NonRetryableStatus),k&&q(2,2)}function X(t,n){var r=e._notificationManager||{},o=r[t];if(o)try{o.apply(r,n)}catch(i){oi(e.diagLog(),1,74,t+" notification failed: "+i)}}function Q(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&X(e,[t].concat(n))}function $(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&Br(t,(function(t){t&&t.count()>0&&X(e,[t.events()].concat(n))}))}function J(e,t,n){e&&e.length>0&&X("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function Z(e,t){$("eventsSent",e,t),D()}function ee(e,t){$(Au,e,t>=8e3&&t<=8999?t-8e3:Lc.Unknown)}function te(e){$(Au,e,Lc.NonRetryableStatus),D()}function ne(e,t){$(Au,e,Lc.Unknown),D()}function re(){s=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,y/6)}L(),e._getDbgPlgTargets=function(){return[i]},e.initialize=function(s,c,d){vo(c,(function(){return"PostChannel:initialize"}),(function(){var f=c;t.initialize(s,c,d);try{c.addUnloadCb;u=Ka(_i(e.identifier),c.evtNamespace&&c.evtNamespace());var h=e._getTelCtx();s.extensionConfig[e.identifier]=s.extensionConfig[e.identifier]||{},n=h.getExtCfg(e.identifier),l=Su(n.setTimeoutOverride,n.clearTimeoutOverride),A=!n.disableOptimizeObj&&!!ko("chrome"),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(f),n.eventsLimitInMem>0&&(y=n.eventsLimitInMem),n.immediateEventLimit>0&&(v=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(a=n.autoFlushEventsLimit),Ur(n.maxEventRetryAttempts)&&(R=n.maxEventRetryAttempts),Ur(n.maxUnloadEventRetryAttempts)&&(P=n.maxUnloadEventRetryAttempts),re(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(o=n.httpXHROverride),cs(s.anonCookieName)&&i.addQueryStringParameter("anoncknm",s.anonCookieName),i.sendHook=n.payloadPreprocessor,i.sendListener=n.payloadListener;var p=n.overrideEndpointUrl?n.overrideEndpointUrl:s.endpointUrl;e._notificationManager=c.getNotifyMgr(),i.initialize(p,e.core,e,o,n);var g=s.disablePageUnloadEvents||[];Wa(r,g,u),Xa(r,g,u),Qa(N,s.disablePageShowEvents,u)}catch(m){throw e.setInitialized(!1),m}}),(function(){return{coreConfig:s,core:c,extensions:d}}))},e.processTelemetry=function(t,r){Cs(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),O(a,!0),k?q(2,2):D()),e.processNext(a,r)},e._doTeardown=function(e,t){q(2,2),d=!0,i.teardown(),Va([Ra,ka,Sa],null,u),function(e,t){var n=Ka(Pa,t);Va([Sa],e,n),Va([Ia],null,n)}(null,u),function(e,t){var n=Ka(Na,t);Va([Aa],e,n),Va([Ia],null,n)}(null,u),L()},e.setEventQueueLimits=function(e,t){y=e>0?e:1e4,a=t>0?t:0,re();var n=m>e;if(!n&&s>0)for(var r=1;!n&&r<=3;r++){var o=I[r];o&&o.batches&&Br(o.batches,(function(e){e&&e.count()>=s&&(n=!0)}))}B(!0,n)},e.pause=function(){H(),p=!0,i.pause()},e.resume=function(){p=!1,i.resume(),D()},e.addResponseHandler=function(e){i._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){H(),V(),T=Uc,D(),Rr(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),C[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!p)if(n=n||1,e)null==h?(H(),Y(1,0,n),h=U((function(){h=null,G(t,n)}),0)):f.push(t);else{var r=H();M(1,1,n),null!==t&&void 0!==t&&t(),r&&D()}},e.setMsaAuthTicket=function(e){i.addHeader(eu,e)},e.hasEvents=x,e._setTransmitProfile=function(e){T!==e&&void 0!==C[e]&&(H(),T=e,D())},e._backOffTransmission=function(){b<4&&(b++,H(),D())},e._clearBackOff=function(){b&&(b=0,H(),D())},Xr(e,"_setTimeoutOverride",(function(){return l.set}),(function(e){l=Su(e,l.clear)})),Xr(e,"_clearTimeoutOverride",(function(){return l.clear}),(function(e){l=Su(l.set,e)}))})),r}return(0,Yn.qU)(t,e),t.__ieDyn=1,t}(fa),Ru=ku,Pu=function(e){function t(){var n,r,o=e.call(this)||this;return(0,Gn.A)(t,o,(function(e,t){e.initialize=function(e,i){var a=o;vo(o,(function(){return"ApplicationInsights:initialize"}),(function(){n=new Ru;var o=[r=new Dc];i&&(o=o.concat(i)),e||io("You must provide a config object!");var s=e.channels;if(s&&s.length>0){for(var c=!1,u=0;u<s[0].length;u++)if(s[0][u].identifier===n.identifier){c=!0;break}c||s[0].push(n)}else e.channels=[[n]];var l=e.extensionConfig=e.extensionConfig||[];l[n.identifier]=l[n.identifier]||e&&e.channelConfiguration||{},l[r.identifier]=l[r.identifier]||e&&e.propertyConfiguration||{};try{t.initialize(e,o)}catch(d){oi(a.logger,1,514,"Failed to initialize SDK."+Bo(d))}}),(function(){return{config:e,extensions:i}}))},e.getPropertyManager=function(){return r},e.getPostChannel=function(){return n}})),o}return(0,Yn.qU)(t,e),t.__ieDyn=1,t}(ws),Nu=Pu,Ou=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)||[i.AcquireTokenSilent,i.SsoSilent,i.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 Nu,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=o(o({},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=[Rt.AzurePublic,Rt.AzurePpe],e.instrumentationKey="d634483c08244c1ca09af2b2d952c92e-ab2bba03-2ba3-49d8-a82c-ef6da750d8ab-7725",e}(),Mu=function(e){function t(t,n){var r=e.call(this,t)||this,o=new Ou(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}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(t,e),t}(jn)},40154:function(e,t,n){"use strict";n.d(t,{C6:function(){return o},Cl:function(){return i},Tt:function(){return a},YH:function(){return c},gz:function(){return l},sH:function(){return s}});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){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){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 c(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])}}}function u(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 l(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(u(arguments[t]));return e}},6187:function(e,t,n){"use strict";n.d(t,{X:function(){return f}});var r=n(40154),o=n(9444),i={code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},a={code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},s={code:"storage_not_supported",desc:"Given storage configuration option was not supported."},c={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."},u={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"},l={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."},d={code:"entropy_not_provided",desc:"The available browser crypto interface requires entropy set via system.cryptoOptions.entropy configuration option."},f=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(0,r.C6)(t,e),t.createRedirectUriEmptyError=function(){return new t(i.code,i.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(a.code,a.desc)},t.createStorageNotSupportedError=function(e){return new t(s.code,s.desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(c.code,c.desc)},t.createStubPcaInstanceCalledError=function(){return new t(u.code,u.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(l.code,l.desc)},t.createEntropyNotProvided=function(){return new t(d.code,d.desc)},t}(o.l)},98151:function(e,t,n){"use strict";var r;n.d(t,{B:function(){return r}}),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"}(r||(r={}))},77833:function(e,t,n){"use strict";n.d(t,{$u:function(){return C},Al:function(){return o},CC:function(){return i},Ct:function(){return r},G8:function(){return T},H3:function(){return c},JD:function(){return p},Q1:function(){return h},T$:function(){return d},WJ:function(){return E},X8:function(){return l},_p:function(){return a},dh:function(){return s},f7:function(){return g},jb:function(){return m},nN:function(){return y},sA:function(){return u},uq:function(){return v}});var r,o,i,a,s,c,u,l,d,f=n(49522),h={INTERACTION_IN_PROGRESS_VALUE:"interaction_in_progress",INVALID_GRANT_ERROR:"invalid_grant",POPUP_WIDTH:483,POPUP_HEIGHT:600,POPUP_NAME_PREFIX:"msal",DEFAULT_POLL_INTERVAL_MS:30,MSAL_SKU:"msal.js.browser"},p={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"};!function(e){e.HandshakeRequest="Handshake",e.HandshakeResponse="HandshakeResponse",e.GetToken="GetToken",e.Response="Response"}(r||(r={})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sessionStorage",e.MemoryStorage="memoryStorage"}(o||(o={})),function(e){e.GET="GET",e.POST="POST"}(i||(i={})),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"}(a||(a={})),function(e){e.ACCOUNT_KEYS="msal.account.keys",e.TOKEN_KEYS="msal.token.keys"}(s||(s={})),function(e){e.WRAPPER_SKU="wrapper.sku",e.WRAPPER_VER="wrapper.version"}(c||(c={})),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"}(u||(u={})),function(e){e.Redirect="redirect",e.Popup="popup",e.Silent="silent",e.None="none"}(l||(l={})),function(e){e.Startup="startup",e.Login="login",e.Logout="logout",e.AcquireToken="acquireToken",e.SsoSilent="ssoSilent",e.HandleRedirect="handleRedirect",e.None="none"}(d||(d={}));var g,v={scopes:f.aZ},m="jwk";!function(e){e.React="@azure/msal-react",e.Angular="@azure/msal-angular"}(g||(g={}));var y,C="msal.db",T=1,E=C+".keys";!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"}(y||(y={}))},45103:function(e,t,n){"use strict";n.d(t,{C6:function(){return o},Cl:function(){return i},YH:function(){return s},aN:function(){return c},sH:function(){return a}});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){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{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 s(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(s){i=[6,s],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}}function c(){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}},26210:function(e,t,n){"use strict";n.d(t,{Z:function(){return s},k:function(){return a}});var r=n(23533),o=n(16241),i=n(49522);function a(e,t){if(o.$.isEmpty(e))throw r.e.createClientInfoEmptyError();try{var n=t.base64Decode(e);return JSON.parse(n)}catch(i){throw r.e.createClientInfoDecodingError(i.message)}}function s(e){if(o.$.isEmpty(e))throw r.e.createClientInfoDecodingError("Home account ID was empty.");var t=e.split(i.LR.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?i.YM.EMPTY_STRING:t[1]}}},24550:function(e,t,n){"use strict";var r;n.d(t,{I:function(){return r}}),function(e){e[e.Default=0]="Default",e[e.Adfs=1]="Adfs",e[e.Dsts=2]="Dsts",e[e.Ciam=3]="Ciam"}(r||(r={}))},10694:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var r=n(49522),o=n(26210),i=n(16241),a=n(23533),s=n(24550),c=function(){function e(){}return e.prototype.generateAccountId=function(){return[this.homeAccountId,this.environment].join(r.LR.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 r.Qd.ADFS_ACCOUNT_TYPE:return r.PT.ADFS;case r.Qd.MSAV1_ACCOUNT_TYPE:return r.PT.MSA;case r.Qd.MSSTS_ACCOUNT_TYPE:return r.PT.MSSTS;case r.Qd.GENERIC_ACCOUNT_TYPE:return r.PT.GENERIC;default:throw a.e.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||r.YM.EMPTY_STRING,e.tenantId||r.YM.EMPTY_STRING].join(r.LR.CACHE_KEY_SEPARATOR).toLowerCase()},e.createAccount=function(t,n,o,i,s,c,u,l){var d,f,h,p,g,v,m=new e;m.authorityType=r.Qd.MSSTS_ACCOUNT_TYPE,m.clientInfo=t,m.homeAccountId=n,m.nativeAccountId=l;var y=u||i&&i.getPreferredCache();if(!y)throw a.e.createInvalidCacheEnvironmentError();if(m.environment=y,m.realm=(null===(d=null===o||void 0===o?void 0:o.claims)||void 0===d?void 0:d.tid)||r.YM.EMPTY_STRING,o){m.idTokenClaims=o.claims,m.localAccountId=(null===(f=null===o||void 0===o?void 0:o.claims)||void 0===f?void 0:f.oid)||(null===(h=null===o||void 0===o?void 0:o.claims)||void 0===h?void 0:h.sub)||r.YM.EMPTY_STRING;var C=null===(p=null===o||void 0===o?void 0:o.claims)||void 0===p?void 0:p.preferred_username,T=(null===(g=null===o||void 0===o?void 0:o.claims)||void 0===g?void 0:g.emails)?o.claims.emails[0]:null;m.username=C||T||r.YM.EMPTY_STRING,m.name=null===(v=null===o||void 0===o?void 0:o.claims)||void 0===v?void 0:v.name}return m.cloudGraphHostName=s,m.msGraphHost=c,m},e.createGenericAccount=function(t,n,o,i,c,u){var l,d,f,h,p=new e;p.authorityType=o&&o.authorityType===s.I.Adfs?r.Qd.ADFS_ACCOUNT_TYPE:r.Qd.GENERIC_ACCOUNT_TYPE,p.homeAccountId=t,p.realm=r.YM.EMPTY_STRING;var g=u||o&&o.getPreferredCache();if(!g)throw a.e.createInvalidCacheEnvironmentError();return n&&(p.localAccountId=(null===(l=null===n||void 0===n?void 0:n.claims)||void 0===l?void 0:l.oid)||(null===(d=null===n||void 0===n?void 0:n.claims)||void 0===d?void 0:d.sub)||r.YM.EMPTY_STRING,p.username=(null===(f=null===n||void 0===n?void 0:n.claims)||void 0===f?void 0:f.upn)||r.YM.EMPTY_STRING,p.name=(null===(h=null===n||void 0===n?void 0:n.claims)||void 0===h?void 0:h.name)||r.YM.EMPTY_STRING,p.idTokenClaims=null===n||void 0===n?void 0:n.claims),p.environment=g,p.cloudGraphHostName=i,p.msGraphHost=c,p},e.generateHomeAccountId=function(e,t,n,a,c){var u,l=(null===(u=null===c||void 0===c?void 0:c.claims)||void 0===u?void 0:u.sub)?c.claims.sub:r.YM.EMPTY_STRING;if(t===s.I.Adfs||t===s.I.Dsts)return l;if(e)try{var d=(0,o.k)(e,a);if(!i.$.isEmpty(d.uid)&&!i.$.isEmpty(d.utid))return""+d.uid+r.LR.CLIENT_INFO_SEPARATOR+d.utid}catch(f){}return n.verbose("No client info in response"),l},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}()},9444:function(e,t,n){"use strict";n.d(t,{l:function(){return s}});var r=n(45103),o=n(49522),i={code:"unexpected_error",desc:"Unexpected error in authentication."},a={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."},s=function(e){function t(n,r,i){var a=this,s=r?n+": "+r:n;return a=e.call(this,s)||this,Object.setPrototypeOf(a,t.prototype),a.errorCode=n||o.YM.EMPTY_STRING,a.errorMessage=r||o.YM.EMPTY_STRING,a.subError=i||o.YM.EMPTY_STRING,a.name="AuthError",a}return(0,r.C6)(t,e),t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(i.code,i.desc+": "+e)},t.createPostRequestFailed=function(e){return new t(a.code,a.desc+": "+e)},t}(Error)},23533:function(e,t,n){"use strict";n.d(t,{N:function(){return i},e:function(){return a}});var r=n(45103),o=n(9444),i={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{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."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{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"},tokenRefreshRequired:{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."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{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."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},a=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(0,r.C6)(t,e),t.createClientInfoDecodingError=function(e){return new t(i.clientInfoDecodingError.code,i.clientInfoDecodingError.desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(i.clientInfoEmptyError.code,""+i.clientInfoEmptyError.desc)},t.createTokenParsingError=function(e){return new t(i.tokenParsingError.code,i.tokenParsingError.desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(i.nullOrEmptyToken.code,i.nullOrEmptyToken.desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(i.endpointResolutionError.code,i.endpointResolutionError.desc+" Detail: "+e)},t.createNetworkError=function(e,n){return new t(i.networkError.code,i.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(i.unableToGetOpenidConfigError.code,i.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(i.hashNotDeserialized.code,i.hashNotDeserialized.desc+" Given Object: "+e)},t.createInvalidStateError=function(e,n){return new t(i.invalidStateError.code,i.invalidStateError.desc+" Invalid State: "+e+", Root Err: "+n)},t.createStateMismatchError=function(){return new t(i.stateMismatchError.code,i.stateMismatchError.desc)},t.createStateNotFoundError=function(e){return new t(i.stateNotFoundError.code,i.stateNotFoundError.desc+":  "+e)},t.createNonceMismatchError=function(){return new t(i.nonceMismatchError.code,i.nonceMismatchError.desc)},t.createAuthTimeNotFoundError=function(){return new t(i.authTimeNotFoundError.code,i.authTimeNotFoundError.desc)},t.createMaxAgeTranspiredError=function(){return new t(i.maxAgeTranspiredError.code,i.maxAgeTranspiredError.desc)},t.createNonceNotFoundError=function(e){return new t(i.nonceNotFoundError.code,i.nonceNotFoundError.desc+":  "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(i.multipleMatchingTokens.code,i.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(i.multipleMatchingAccounts.code,i.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(i.multipleMatchingAppMetadata.code,i.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(i.tokenRequestCannotBeMade.code,i.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(i.appendEmptyScopeError.code,i.appendEmptyScopeError.desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(i.removeEmptyScopeError.code,i.removeEmptyScopeError.desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(i.appendScopeSetError.code,i.appendScopeSetError.desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(i.emptyInputScopeSetError.code,""+i.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(i.DeviceCodePollingCancelled.code,""+i.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(i.DeviceCodeExpired.code,""+i.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(i.DeviceCodeUnknownError.code,""+i.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(i.NoAccountInSilentRequest.code,""+i.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(i.invalidCacheRecord.code,i.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(i.invalidCacheEnvironment.code,i.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(i.noAccountFound.code,i.noAccountFound.desc)},t.createCachePluginError=function(){return new t(i.CachePluginError.code,""+i.CachePluginError.desc)},t.createNoCryptoObjectError=function(e){return new t(i.noCryptoObj.code,""+i.noCryptoObj.desc+e)},t.createInvalidCacheTypeError=function(){return new t(i.invalidCacheType.code,""+i.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(i.unexpectedAccountType.code,""+i.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(i.unexpectedCredentialType.code,""+i.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(i.invalidAssertion.code,""+i.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(i.invalidClientCredential.code,""+i.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(i.tokenRefreshRequired.code,i.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(i.userTimeoutReached.code,i.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(i.tokenClaimsRequired.code,i.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(i.noAuthorizationCodeFromServer.code,i.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(i.bindingKeyNotRemovedError.code,i.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(i.logoutNotSupported.code,i.logoutNotSupported.desc)},t.createKeyIdMissingError=function(){return new t(i.keyIdMissing.code,i.keyIdMissing.desc)},t.createNoNetworkConnectivityError=function(){return new t(i.noNetworkConnectivity.code,i.noNetworkConnectivity.desc)},t.createUserCanceledError=function(){return new t(i.userCanceledError.code,i.userCanceledError.desc)},t}(o.l)},19212:function(e,t,n){"use strict";n.d(t,{$:function(){return r},V:function(){return a}});var r,o=n(16241),i=n(49522);!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"}(r||(r={}));var a=function(){function e(t,n,o){this.level=r.Info;var a=t||e.createDefaultLoggerOptions();this.localCallback=a.loggerCallback||function(){},this.piiLoggingEnabled=a.piiLoggingEnabled||!1,this.level="number"===typeof a.logLevel?a.logLevel:r.Info,this.correlationId=a.correlationId||i.YM.EMPTY_STRING,this.packageName=n||i.YM.EMPTY_STRING,this.packageVersion=o||i.YM.EMPTY_STRING}return e.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:r.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(),i=(o.$.isEmpty(t.correlationId)?o.$.isEmpty(this.correlationId)?"["+n+"]":"["+n+"] : ["+this.correlationId+"]":"["+n+"] : ["+t.correlationId+"]")+" : "+this.packageName+"@"+this.packageVersion+" : "+r[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,i,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:r.Error,containsPii:!1,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:r.Error,containsPii:!0,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.warning=function(e,t){this.logMessage(e,{logLevel:r.Warning,containsPii:!1,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:r.Warning,containsPii:!0,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.info=function(e,t){this.logMessage(e,{logLevel:r.Info,containsPii:!1,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:r.Info,containsPii:!0,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:r.Verbose,containsPii:!1,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:r.Verbose,containsPii:!0,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.trace=function(e,t){this.logMessage(e,{logLevel:r.Trace,containsPii:!1,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:r.Trace,containsPii:!0,correlationId:t||i.YM.EMPTY_STRING})},e.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},e}()},49522:function(e,t,n){"use strict";n.d(t,{$x:function(){return g},E_:function(){return E},Fq:function(){return s},GU:function(){return w},Gd:function(){return o},I:function(){return D},IO:function(){return S},IX:function(){return M},JR:function(){return b},Kk:function(){return R},LR:function(){return m},OK:function(){return r},PT:function(){return C},Qd:function(){return v},Rv:function(){return O},Tq:function(){return k},Xw:function(){return x},YM:function(){return u},_2:function(){return N},_A:function(){return d},_M:function(){return h},aG:function(){return y},aZ:function(){return l},gT:function(){return A},hB:function(){return _},iF:function(){return T},jZ:function(){return P},lB:function(){return a},nN:function(){return f},p:function(){return p},u0:function(){return I},v2:function(){return i}});var r,o,i,a,s,c=n(45103),u={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"},l=[u.OPENID_SCOPE,u.PROFILE_SCOPE,u.OFFLINE_ACCESS_SCOPE],d=(0,c.aN)(l,[u.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"}(r||(r={})),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"}(o||(o={})),function(e){e.COMMON="common",e.ORGANIZATIONS="organizations",e.CONSUMERS="consumers"}(i||(i={})),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"}(a||(a={})),function(e){e.ACCESS_TOKEN="access_token",e.XMS_CC="xms_cc"}(s||(s={}));var f,h={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"}(f||(f={}));var p,g,v,m,y,C,T={PLAIN:"plain",S256:"S256"};!function(e){e.QUERY="query",e.FRAGMENT="fragment",e.FORM_POST="form_post"}(p||(p={})),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"}(g||(g={})),function(e){e.MSSTS_ACCOUNT_TYPE="MSSTS",e.ADFS_ACCOUNT_TYPE="ADFS",e.MSAV1_ACCOUNT_TYPE="MSA",e.GENERIC_ACCOUNT_TYPE="Generic"}(v||(v={})),function(e){e.CACHE_KEY_SEPARATOR="-",e.CLIENT_INFO_SEPARATOR="."}(m||(m={})),function(e){e.ID_TOKEN="IdToken",e.ACCESS_TOKEN="AccessToken",e.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",e.REFRESH_TOKEN="RefreshToken"}(y||(y={})),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"}(C||(C={}));var E,w="appmetadata",b="client_info",_="1",I={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:86400};!function(e){e.CONFIG="config",e.CACHE="cache",e.NETWORK="network",e.HARDCODED_VALUES="hardcoded_values"}(E||(E={}));var S,A={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"}(S||(S={}));var k,R,P,N,O,M,x={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},D={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"};!function(e){e.username="username",e.password="password"}(k||(k={})),function(e){e[e.httpSuccess=200]="httpSuccess",e[e.httpBadRequest=400]="httpBadRequest"}(R||(R={})),function(e){e.FAILED_AUTO_DETECTION="1",e.INTERNAL_CACHE="2",e.ENVIRONMENT_VARIABLE="3",e.IMDS="4"}(P||(P={})),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"}(N||(N={})),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"}(O||(O={})),function(e){e.Jwt="JWT",e.Jwk="JWK",e.Pop="pop"}(M||(M={}))},16241:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(23533),o=function(){function e(){}return e.decodeAuthToken=function(t){if(e.isEmpty(t))throw r.e.createTokenNullOrEmptyError(t);var n=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/.exec(t);if(!n||n.length<4)throw r.e.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(r){}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(t){return null}},e.matchPattern=function(e,t){return new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?")).test(t)},e}()},38191:function(e,t,n){"use strict";n.d(t,{r7:function(){return w},F7:function(){return I},dk:function(){return b}});var r=n(61249),o=n(18188),i=n(22489),a=(n(42732),n(80322)),s=n.n(a),c=n(6187),u={initialize:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},acquireTokenPopup:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},acquireTokenRedirect:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},acquireTokenSilent:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},acquireTokenByCode:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},getAllAccounts:function(){return[]},getAccountByHomeId:function(){return null},getAccountByUsername:function(){return null},getAccountByLocalId:function(){return null},handleRedirectPromise:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},loginPopup:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},loginRedirect:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},logout:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},logoutRedirect:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},logoutPopup:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},ssoSilent:function(){return Promise.reject(c.X.createStubPcaInstanceCalledError())},addEventCallback:function(){return null},removeEventCallback:function(){},addPerformanceCallback:function(){return""},removePerformanceCallback:function(){return!1},enableAccountStorageEvents:function(){},disableAccountStorageEvents:function(){},getTokenCache:function(){throw c.X.createStubPcaInstanceCalledError()},getLogger:function(){throw c.X.createStubPcaInstanceCalledError()},setLogger:function(){},setActiveAccount:function(){},getActiveAccount:function(){return null},initializeWrapperLibrary:function(){},setNavigationClient:function(){},getConfiguration:function(){throw c.X.createStubPcaInstanceCalledError()}},l=n(77833),d=n(19212),f=n(98151),h=function(){function e(){}return e.getInteractionStatusFromEvent=function(e,t){switch(e.eventType){case f.B.LOGIN_START:return l.T$.Login;case f.B.SSO_SILENT_START:return l.T$.SsoSilent;case f.B.ACQUIRE_TOKEN_START:if(e.interactionType===l.X8.Redirect||e.interactionType===l.X8.Popup)return l.T$.AcquireToken;break;case f.B.HANDLE_REDIRECT_START:return l.T$.HandleRedirect;case f.B.LOGOUT_START:return l.T$.Logout;case f.B.SSO_SILENT_SUCCESS:case f.B.SSO_SILENT_FAILURE:if(t&&t!==l.T$.SsoSilent)break;return l.T$.None;case f.B.LOGOUT_END:if(t&&t!==l.T$.Logout)break;return l.T$.None;case f.B.HANDLE_REDIRECT_END:if(t&&t!==l.T$.HandleRedirect)break;return l.T$.None;case f.B.LOGIN_SUCCESS:case f.B.LOGIN_FAILURE:case f.B.ACQUIRE_TOKEN_SUCCESS:case f.B.ACQUIRE_TOKEN_FAILURE:if(e.interactionType===l.X8.Redirect||e.interactionType===l.X8.Popup){if(t&&t!==l.T$.Login&&t!==l.T$.AcquireToken)break;return l.T$.None}}return null},e}(),p=n(10694),g={instance:u,inProgress:l.T$.None,accounts:[],logger:new d.V({})},v=(0,a.createContext)(g);v.Consumer;function m(e,t){if(e.length!==t.length)return!1;var n=(0,i.A)(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 y(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 C,T="1.5.4";!function(e){e.UNBLOCK_INPROGRESS="UNBLOCK_INPROGRESS",e.EVENT="EVENT"}(C||(C={}));var E=function(e,t){var n=t.type,r=t.payload,i=e.inProgress;switch(n){case C.UNBLOCK_INPROGRESS:e.inProgress===l.T$.Startup&&(i=l.T$.None,r.logger.info("MsalProvider - handleRedirectPromise resolved, setting inProgress to 'none'"));break;case C.EVENT:var a=r.message,s=h.getInteractionStatusFromEvent(a,e.inProgress);s&&(r.logger.info("MsalProvider - ".concat(a.eventType," results in setting inProgress from ").concat(e.inProgress," to ").concat(s)),i=s);break;default:throw new Error("Unknown action type: ".concat(n))}var c=r.instance.getAllAccounts();return i===e.inProgress||m(c,e.accounts)?i!==e.inProgress?(0,o.A)((0,o.A)({},e),{},{inProgress:i}):m(c,e.accounts)?e:(0,o.A)((0,o.A)({},e),{},{accounts:c}):(0,o.A)((0,o.A)({},e),{},{inProgress:i,accounts:c})};function w(e){var t=e.instance,n=e.children;(0,a.useEffect)((function(){t.initializeWrapperLibrary(l.f7.React,T)}),[t]);var o=(0,a.useMemo)((function(){return t.getLogger().clone("@azure/msal-react",T)}),[t]),i=(0,a.useReducer)(E,void 0,(function(){return{inProgress:l.T$.Startup,accounts:t.getAllAccounts()}})),c=(0,r.A)(i,2),u=c[0],d=c[1];(0,a.useEffect)((function(){var e=t.addEventCallback((function(e){d({payload:{instance:t,logger:o,message:e},type:C.EVENT})}));return o.verbose("MsalProvider - Registered event callback with id: ".concat(e)),t.initialize().then((function(){t.handleRedirectPromise().catch((function(){})).finally((function(){d({payload:{instance:t,logger:o},type:C.UNBLOCK_INPROGRESS})}))})),function(){e&&(o.verbose("MsalProvider - Removing event callback ".concat(e)),t.removeEventCallback(e))}}),[t,o]);var f={instance:t,inProgress:u.inProgress,accounts:u.accounts,logger:o};return s().createElement(v.Provider,{value:f},n)}var b=function(){return(0,a.useContext)(v)};function _(e,t){return t&&(t.homeAccountId||t.localAccountId||t.username)?y(e.getAllAccounts(),t):e.getActiveAccount()}function I(e){var t=b(),n=t.instance,o=t.inProgress,i=t.logger,s=(0,a.useState)((function(){return _(n,e)})),c=(0,r.A)(s,2),u=c[0],l=c[1];return(0,a.useEffect)((function(){l((function(t){var r=_(n,e);return p.d.accountInfoIsEqual(t,r,!0)?t:(i.info("useAccount - Updating account"),r)}))}),[o,e,n,i]),u}},93205:function(e,t,n){"use strict";n.d(t,{a:function(){return fr}});var r=n(73951),o=n(52917),i=n(29592),a=n(533),s=n(10387),c=n(50144),u=n(79383),l=n(86058),d=n(21336),f=n(98184),h=n(78905),p=n(94131),g=500;function v(e,t,n){t&&(0,a.cy)(t)&&t[l.oI]>0&&(t=t.sort((function(e,t){return e[f.Vo]-t[f.Vo]})),(0,a.Iu)(t,(function(e){e[f.Vo]<g&&(0,a.$8)("Channel has invalid priority - "+e[l.Ju])})),e[l.y5]({queue:(0,a.N6)(t),chain:(0,h.PV)(t,n[l.GA],n)}))}var m=n(58814),y=n(14032),C=n(23935),T=n(55389),E=function(e){function t(){var n,r,i=e.call(this)||this;function u(){n=0,r=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,u(),(0,o.A)(t,i,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[l.y5](t),{remove:function(){(0,a.Iu)(r,(function(e,n){if(e.id===t.id)return r[l.Ic](n,1),-1}))}}},e[f.qT]=function(t,n){for(var o=!1,i=r[l.oI],u=0;u<i;++u){var d=r[u];if(d)try{if(!1===d.fn[l.y9](null,[t])){o=!0;break}}catch(f){(0,s.ZP)(n[l.e4](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,a.lL)(f),{exception:(0,c.mm)(f)},!0)}}o||e[l.$5](t,n)},e[l.tn]=function(){u()}})),i}return(0,r.qU)(t,e),t.__ieDyn=1,t}(T.s),w=n(71128),b="Plugins must provide initialize method",_="SDK is still unloading...",I={loggingLevelConsole:1};function S(e,t){return new i.NS(t)}function A(e,t){var n=!1;return(0,a.Iu)(t,(function(t){if(t===e)return n=!0,-1})),n}var k=function(){function e(){var t,n,c,u,T,k,R,P,N,O,M,x,D,L,U,H,q,F,B,K,j=0,Y=!1;(0,o.A)(e,this,(function(e){function o(n){if(!j&&!Y&&(n||e[l.Uw]&&e[l.Uw].queue[l.oI]>0)){var r=(0,a.SA)(t.diagnosticLogInterval);r&&r>0||(r=1e4),j=setInterval((function(){clearInterval(j),j=0,$()}),r)}return j}function G(){n=!1,t=(0,a.CP)(!0,{},I),e[l.GA]=t,e[l.Uw]=new s.wq(t),e[l.H7]=[],U=new E,c=[],u=null,T=null,k=null,R=null,P=null,O=null,N=[],M=null,x=null,D=null,L=!1,H=null,q=(0,y.Z)("AIBaseCore",!0),F=(0,w.P)(),K=null}function z(){var n=(0,h.i8)(X(),t,e);return n[l.by](o),n}function V(n){var r=function(e,t,n){var r,o=[],i={};return(0,a.Iu)(n,(function(n){((0,a.hX)(n)||(0,a.hX)(n[l.mE]))&&(0,a.$8)(b);var r=n[f.Vo],c=n[l.Ju];n&&r&&((0,a.hX)(i[r])?i[r]=c:(0,s.OG)(e,"Two extensions have same priority #"+r+" - "+i[r]+", "+c)),(!r||r<t)&&o[l.y5](n)})),(r={all:n})[f.eT]=o,r}(e[l.Uw],g,N);O=r[f.eT],P=null;var i=r.all;if(D=(0,a.N6)(function(e,t,n){var r=[];if(e&&(0,a.Iu)(e,(function(e){return v(r,e,n)})),t){var o=[];(0,a.Iu)(t,(function(e){e[f.Vo]>g&&o[l.y5](e)})),v(r,o,n)}return r}(x,i,e)),M){var c=(0,a.rD)(i,M);-1!==c&&i[l.Ic](c,1),-1!==(c=(0,a.rD)(O,M))&&O[l.Ic](c,1),M._setQueue(D)}else M=function(e,t){function n(){return(0,h.i8)(null,t[l.GA],t,null)}function r(e,t,n,r){var o=e?e[l.oI]+1:1;function i(){0===--o&&(r&&r(),r=null)}o>0&&(0,a.Iu)(e,(function(e){if(e&&e.queue[l.oI]>0){var r=e.chain,a=t[l.$o](r);a[l.by](i),n(a)}else o--})),i()}var o=!1,i={identifier:"ChannelControllerPlugin",priority:g,initialize:function(t,n,r,i){o=!0,(0,a.Iu)(e,(function(e){e&&e.queue[l.oI]>0&&(0,p.pI)((0,h.i8)(e.chain,t,n),r)}))},isInitialized:function(){return o},processTelemetry:function(t,o){r(e,o||n(),(function(e){e[l.$5](t)}),(function(){o[l.$5](t)}))},update:function(t,n){var o=n||{reason:0};return r(e,t,(function(e){e[l.$5](o)}),(function(){t[l.$5](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[l.$5](i)}),(function(){t[l.$5](i),o=!1})),!0},getChannel:function(t){var n=null;return e&&e[l.oI]>0&&(0,a.Iu)(e,(function(e){if(e&&e.queue[l.oI]>0&&((0,a.Iu)(e.queue,(function(e){if(e[l.Ju]===t)return n=e,-1})),n))return-1})),n},flush:function(t,o,i,a){var s=1,c=!1,u=null;function d(){s--,c&&0===s&&(u&&(clearTimeout(u),u=null),o&&o(c),o=null)}return a=a||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[l.EX]){s++;var n=!1;e[l.EX](t,(function(){n=!0,d()}),i)||n||(t&&null==u?u=setTimeout((function(){u=null,d()}),a):d())}}))}),(function(){c=!0,d()})),!0},_setQueue:function(t){e=t}};return i}(D,e);i[l.y5](M),O[l.y5](M),e[l.H7]=(0,p.Xc)(i),M[l.mE](t,e,i);var u=z();(0,p.pI)(u,i),e[l.H7]=(0,a.N6)((0,p.Xc)(O||[])).slice(),n&&function(t){var n=(0,h.nU)(X(),e);n[l.by](o),e._updateHook&&!0===e._updateHook(n,t)||n[l.$5](t)}(n)}function W(t){var n,r=null,o=null;return(0,a.Iu)(e[l.H7],(function(e){if(e[l.Ju]===t&&e!==M&&e!==U)return o=e,-1})),!o&&M&&(o=M.getChannel(t)),o&&((n={plugin:o})[l.kt]=function(e){(0,p.Cr)(o)[f.Hr]=!e},n.isEnabled=function(){var e=(0,p.Cr)(o);return!e[l.Ik]&&!e[f.Hr]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[o],i=((n={reason:1})[l.tI]=e,n);Q(r,i,(function(e){e&&V({reason:32,removed:r}),t&&t(e)}))},r=n),r}function X(){if(!P){var n=(O||[]).slice();-1===(0,a.rD)(n,U)&&n[l.y5](U),P=(0,h.PV)((0,p.Xc)(n),t,e)}return P}function Q(n,r,i){if(n&&n[l.oI]>0){var s=(0,h.PV)(n,t,e),c=(0,h.tS)(s,e);c[l.by]((function(){var e=!1,t=[];(0,a.Iu)(N,(function(r,o){A(r,n)?e=!0:t[l.y5](r)})),N=t;var r=[];x&&((0,a.Iu)(x,(function(t,o){var i=[];(0,a.Iu)(t,(function(t){A(t,n)?e=!0:i[l.y5](t)})),r[l.y5](i)})),x=r),i&&i(e),o()})),c[l.$5](r)}else i(!1)}function $(){if(e[l.Uw]&&e[l.Uw].queue){var n=e[l.Uw].queue.slice(0);e[l.Uw].queue[l.oI]=0,(0,a.Iu)(n,(function(n){var r,o=((r={})[l.RS]=H||"InternalMessageId: "+n[l.JR],r.iKey=(0,a.SA)(t[l.sl]),r.time=(0,a._u)(new Date),r.baseType=s.WD.dataType,r.baseData={message:n[l.pM]},r);e.track(o)}))}}function J(e,t,n,r){return M?M[l.EX](e,t,n||6,r):(t&&t(!1),!0)}function Z(t){var n=e[l.Uw];n?((0,s.ZP)(n,2,73,t),o()):(0,a.$8)(t)}G(),e[l.tZ]=function(){return n},e[l.mE]=function(o,i,s,c){L&&(0,a.$8)(_),e[l.tZ]()&&(0,a.$8)("Core should not be initialized more than once"),t=o||{},e[l.GA]=t,(0,a.hX)(o[l.sl])&&(0,a.$8)("Please provide instrumentation key"),u=c,e._notificationManager=c,function(){var e=(0,a.SA)(t.disableDbgExt);!0===e&&B&&(u[l.TP](B),B=null);u&&!B&&!0!==e&&(B=(0,C.M)(t),u[l.vR](B))}(),function(){var e=(0,a.SA)(t.enablePerfMgr);!e&&k&&(k=null);e&&(0,a.c2)(t,f.Yd,S)}(),(0,a.c2)(t,f.Bw,{}).NotificationManager=u,s&&(e[l.Uw]=s);var d=(0,a.c2)(t,f.jy,[]);(N=[])[l.y5].apply(N,(0,r.vz)((0,r.vz)([],i,!1),d,!1)),x=(0,a.c2)(t,f.LZ,[]),V(null),D&&0!==D[l.oI]||(0,a.$8)("No "+f.LZ+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return D&&(0,a.Iu)(D,(function(t){e[l.y5](t.queue)})),(0,a.N6)(e)},e.track=function(n){n.iKey=n.iKey||t[l.sl],n[l.fA]=n[l.fA]||(0,a._u)(new Date),n.ver=n.ver||"4.0",!L&&e[l.tZ]()?z()[l.$5](n):c[l.y5](n)},e[l.ps]=z,e[l.RF]=function(){return u||(u=function(){var e;return(0,d.AQ)(((e={})[l.vR]=function(e){},e[l.TP]=function(e){},e[f.fc]=function(e){},e[f.Yp]=function(e,t){},e[f.dI]=function(e,t){},e))}(),e._notificationManager=u),u},e[l.vR]=function(e){u&&u[l.vR](e)},e[l.TP]=function(e){u&&u[l.TP](e)},e.getCookieMgr=function(){return R||(R=(0,m.xN)(t,e[l.Uw])),R},e.setCookieMgr=function(e){R=e},e[f.kI]=function(){if(!T&&!k&&(0,a.SA)(t.enablePerfMgr)){var n=(0,a.SA)(t[f.Yd]);(0,a.Tn)(n)&&(k=n(e,e[l.RF]()))}return T||k||(0,i.Z4)()},e.setPerfMgr=function(e){T=e},e.eventCnt=function(){return c[l.oI]},e.releaseQueue=function(){if(n&&c[l.oI]>0){var e=c;c=[],(0,a.Iu)(e,(function(e){z()[l.$5](e)}))}},e.pollInternalLogs=function(e){return H=e||null,Y=!1,j&&(clearInterval(j),j=null),o(!0)},e[l.Di]=function(){Y=!0,j&&(clearInterval(j),j=0,$())},(0,a.o$)(e,(function(){return U}),["addTelemetryInitializer"]),e.unload=function(t,r,o){var i;void 0===t&&(t=!0),n||(0,a.$8)("SDK is not initialized"),L&&(0,a.$8)(_);var s=((i={reason:50})[l.tI]=t,i.flushComplete=!1,i),c=(0,h.tS)(X(),e);function u(t){s.flushComplete=t,L=!0,F.run(c,s),e[l.Di](),c[l.$5](s)}c[l.by]((function(){G(),r&&r(s)}),e),$(),J(t,u,6,o)||u(!1)},e[l.AP]=W,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void Z(b);var o=W(e[l.Ju]);if(o&&!t)return r&&r(!1),void Z("Plugin ["+e[l.Ju]+"] is already loaded!");var i={reason:16};function a(t){N[l.y5](e),i.added=[e],V(i),r&&r(!0)}if(o){var s=[o.plugin];Q(s,{reason:2,isAsync:!!n},(function(e){e?(i.removed=s,i.reason|=32,a()):r&&r(!1)}))}else a()},e.evtNamespace=function(){return q},e[l.EX]=J,e.getTraceCtx=function(e){return K||(K=(0,p.u7)()),K},e.setTraceCtx=function(e){K=e||null},(0,a.RF)(e,"addUnloadCb",(function(){return F}),"add")}))}return e.__ieDyn=1,e}();function R(e,t,n,r){(0,a.Iu)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(o){}}))}var P=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,o.A)(e,this,(function(e){e[l.vR]=function(t){e.listeners[l.y5](t)},e[l.TP]=function(t){for(var n=(0,a.rD)(e[l.lJ],t);n>-1;)e.listeners[l.Ic](n,1),n=(0,a.rD)(e[l.lJ],t)},e[f.fc]=function(t){R(e[l.lJ],f.fc,!0,(function(e){e[f.fc](t)}))},e[f.Yp]=function(t,n){R(e[l.lJ],f.Yp,!0,(function(e){e[f.Yp](t,n)}))},e[f.dI]=function(t,n){R(e[l.lJ],f.dI,n,(function(e){e[f.dI](t,n)}))},e[f.l0]=function(t){t&&(!n&&t[l.Zu]()||R(e[l.lJ],f.l0,!1,(function(e){t[l.tI]?setTimeout((function(){return e[f.l0](t)}),0):e[f.l0](t)})))}}))}return e.__ieDyn=1,e}(),N=function(e){function t(){var n=e.call(this)||this;return(0,o.A)(t,n,(function(e,t){function n(t){var n=e[l.RF]();n&&n[f.Yp]([t],2)}e[l.mE]=function(e,n,r,o){t[l.mE](e,n,r||new s.wq(e),o||new P(e))},e.track=function(r){(0,i.r2)(e[f.kI](),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),(0,a.$8)("Invalid telemetry item")),function(e){(0,a.hX)(e[l.RS])&&(n(e),(0,a.$8)("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,r.qU)(t,e),t.__ieDyn=1,t}(k),O=n(83660),M=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,o.A)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new s.wq({loggingLevelConsole:1})),e.initialize=function(n,r,o,u){(0,i.r2)(e,(function(){return"AppInsightsCore.initialize"}),(function(){var i=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=O.S);var l=n.propertyStorageOverride;!l||l.getProperty&&l.setProperty||(0,a.$8)("Invalid property storage override passed."),n.channels&&(0,a.Iu)(n.channels,(function(e){e&&(0,a.Iu)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;i.push(t)}}))}))}e.getWParam=function(){return"undefined"!==typeof document||n.enableWParam?0:-1},r&&(0,a.Iu)(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;i.push(t)}})),e.pluginVersionString=i.join(";"),e.pluginVersionStringArr=i;try{t.initialize(n,r,o,u),e.pollInternalLogs("InternalLog")}catch(h){var d=e.logger,f=(0,c.mm)(h);-1!==f.indexOf("channels")&&(f+="\n - Channels must be provided through config.channels only!"),(0,s.ZP)(d,1,514,"SDK Initialization Failed - no telemetry will be sent: "+f)}}),(function(){return{config:n,extensions:r,logger:o,notificationManager:u}}))},e.track=function(n){(0,i.r2)(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=(0,u.WB)(),(0,u.Hh)(r.latency)||(r.latency=1);var o=r.ext=r.ext||{};o.sdk=o.sdk||{},o.sdk.ver=u.xE;var i=r.baseData=r.baseData||{};i[O._0]=i[O._0]||{};var a=i[O._0];a[O.hj]=a[O.hj]||e.pluginVersionString||O.m5}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,r.qU)(t,e),t.__ieDyn=1,t}(N),x=M,D=n(97337),L=n(60830),U=(0,L.Hj)({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),H="REAL_TIME",q="",F="POST",B="drop",K="send",j="requeue",Y="rspFail",G="application/x-json-stream",z="cache-control",V="content-type",W="kill-duration",X="time-delta-millis",Q="client-version",$="client-id",J="time-delta-to-apply-millis",Z="upload-time",ee="apikey",te="AuthMsaDeviceTicket",ne="AuthXToken";function re(e){var t=(e.ext||{}).intweb;return t&&(0,u.yD)(t.msfpc)?t.msfpc:null}function oe(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=re(e[n]);return t}var ie=function(){function e(t,n){var r=n?[].concat(n):[],o=this,i=oe(r);o.iKey=function(){return t},o.Msfpc=function(){return i||q},o.count=function(){return r.length},o.events=function(){return r},o.addEvent=function(e){return!!e&&(r.push(e),i||(i=re(e)),!0)},o.split=function(n,o){var s;if(n<r.length){var c=r.length-n;(0,a.hX)(o)||(c=o<c?o:c),s=r.splice(n,c),i=oe(r)}return new e(t,s)}}return e.create=function(t,n){return new e(t,n)},e}(),ae=function(){function e(){var t=!0,n=!0,r=!0,i="use-collector-delta",a=!1;(0,o.A)(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return i},e.setClockSkew=function(e){a||(e?(i=e,n=!0,a=!0):n=!1,t=!0)}}))}return e.__ieDyn=1,e}(),se=function(){function e(){var t={};(0,o.A)(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var r=function(e){var t=[];return e&&(0,a.Iu)(e,(function(e){t.push((0,a.EH)(e))})),t}(e.split(","));if("this-request-only"===n)return r;for(var o=1e3*parseInt(n,10),i=0;i<r.length;++i)t[r[i]]=(0,a.x3)()+o}catch(s){return[]}return[]},e.isTenantKilled=function(e){var n=t,r=(0,a.EH)(e);return void 0!==n[r]&&n[r]>(0,a.x3)()||(delete n[r],!1)}}))}return e.__ieDyn=1,e}(),ce=n(50068);function ue(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var le,de=2e6,fe=Math.min(de,65e3),he=/\./,pe=function(){function e(t,n,r,s){var c="data",l="baseData",d=!!s,f=n,h={};(0,o.A)(e,this,(function(e){function n(e,t,o,i,s,c,l){(0,a.z)(e,(function(e,p){var g=null;if(p||(0,u.yD)(p)){var v=o,m=e,y=s,C=t;if(d&&!i&&he.test(e)){var T=e.split("."),E=T.length;if(E>1){y&&(y=y.slice());for(var w=0;w<E-1;w++){var b=T[w];C=C[b]=C[b]||{},v+="."+b,y&&y.push(b)}m=T[E-1]}}var _=i&&function(e,t){var n=h[e];return void 0===n&&(e.length>=7&&(n=(0,a.tG)(e,"ext.metadata")||(0,a.tG)(e,"ext.web")),h[e]=n),n}(v);if(g=!_&&f&&f.handleField(v,m)?f.value(v,m,p,r):(0,u.TC)(m,p,r)){var I=g.value;if(C[m]=I,c&&c(y,m,g),l&&"object"===typeof I&&!(0,a.cy)(I)){var S=y;S&&(S=S.slice()).push(m),n(p,I,v+"."+m,i,S,c,l)}}}}))}e.createPayload=function(e,t,n,r,o,i){return{apiKeys:[],payloadBlob:q,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 s=n&&r&&!n.overflow;return s&&(0,i.r2)(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),i=n.payloadBlob,s=n.numEvents,c=!1,u=[],l=[],d=n.isBeacon,f=d?65e3:3984588,h=d?fe:de,p=0,g=0;p<t.length;){var v=t[p];if(v){if(s>=o){n.overflow=r.split(p);break}var m=e.getEventBlob(v);if(m&&m.length<=h){var y=m.length;if(i.length+y>f){n.overflow=r.split(p);break}i&&(i+="\n"),i+=m,++g>20&&(i.substr(0,1),g=0),c=!0,s++}else m?u.push(v):l.push(v),t.splice(p,1),p--}p++}if(u&&u.length>0&&n.sizeExceed.push(ie.create(r.iKey(),u)),l&&l.length>0&&n.failedEvts.push(ie.create(r.iKey(),l)),c){n.batches.push(r),n.payloadBlob=i,n.numEvents=s;var C=r.iKey();-1===(0,a.rD)(n.apiKeys,C)&&n.apiKeys.push(C)}}),(function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:o}})),s},e.getEventBlob=function(e){try{return(0,i.r2)(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+(0,u.EO)(e.iKey);var r={},o=e.ext;o&&(t.ext=r,(0,a.z)(o,(function(e,t){n(t,r[e]={},"ext."+e,!0,null,null,!0)})));var i=t.data={};i.baseType=e.baseType;var s=i.baseData={};return n(e.baseData,s,l,!1,[l],(function(e,t,n){ge(r,e,t,n)}),true),n(e.data,i,c,!1,[],(function(e,t,n){ge(r,e,t,n)}),true),JSON.stringify(t)}),(function(){return{item:e}}))}catch(r){return null}}}))}return e.__ieDyn=1,e}();function ge(e,t,n,r){if(r&&e){var o=(0,u.Go)(r.value,r.kind,r.propertyType);if(o>-1){var i=e.metadata;i||(i=e.metadata={f:{}});var s=i.f;if(s||(s=i.f={}),t)for(var c=0;c<t.length;c++){var l=t[c];s[l]||(s[l]={f:{}});var d=s[l].f;d||(d=s[l].f={}),s=d}s=s[n]={},(0,a.cy)(r.value)?s.a={t:o}:s.t=o}}}var ve="&NoResponseBody=true",me=((le={})[1]=j,le[100]=j,le[200]="sent",le[8004]=B,le[8003]=B,le),ye={},Ce={};function Te(e,t,n){ye[e]=t,!1!==n&&(Ce[t]=e)}function Ee(e){try{return e.responseText}catch(t){}return q}function we(e,t){var n=!1;if(e&&t){var r=(0,a.cG)(e);if(r&&r.length>0)for(var o=t.toLowerCase(),i=0;i<r.length;i++){var s=r[i];if(s&&(0,a.mQ)(t,s)&&s.toLowerCase()===o){n=!0;break}}}return n}function be(e,t,n,r){t&&n&&n.length>0&&(r&&ye[t]?(e.hdrs[ye[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function _e(e,t){return t&&((0,a.Et)(t)?e=[t].concat(e):(0,a.cy)(t)&&(e=t.concat(e))),e}Te(te,te,!1),Te(Q,Q),Te($,"Client-Id"),Te(ee,ee),Te(J,J),Te(Z,Z),Te(ne,ne);var Ie=function(){function e(t,n,r,l,d){this._responseHandlers=[];var f,h,p,g,v,m,y,C,T,E,w="?cors=true&"+V.toLowerCase()+"="+G,b=new se,_=!1,I=new ae,S=!1,A=0,k=!0,R=[],P={},N=[],O=null,M=!1,x=!1,D=!1;(0,o.A)(e,this,(function(e){var o=!0;function L(e,t){for(var n=0,r=null,o=0;null==r&&o<e.length;)1===(n=e[o])?(0,c.PV)()?r=U:(0,c.xk)()&&(r=j):2===n&&(0,c.R7)(t)&&(!t||t&&!C)?r=H:S&&3===n&&(0,c.Uf)()&&(r=ne),o++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function U(e,t,n){var r=new XDomainRequest;r.open(F,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=Ee(r);te(t,200,{},e),Te(e)},r.onerror=function(){te(t,400,{})},r.ontimeout=function(){te(t,500,{})},r.onprogress=function(){},n?r.send(e.data):d.set((function(){r.send(e.data)}),0)}function H(e,t,n){var r,i=e.urlString,s=!1,c=!1,u=((r={body:e.data,method:F}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,r);n&&(u.keepalive=!0,2===e._sendReason&&(s=!0,E&&(i+=ve))),o&&(u.credentials="include"),e.headers&&(0,a.cG)(e.headers).length>0&&(u.headers=e.headers),fetch(i,u).then((function(e){var n={},r=q,o=e.headers;o&&o.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),c||(c=!0,te(t,e.status,n,r),Te(r))})).catch((function(e){c||(c=!0,te(t,0,{}))})),s&&!c&&(c=!0,te(t,200,{})),!c&&e.timeout>0&&d.set((function(){c||(c=!0,te(t,500,{}))}),e.timeout)}function j(e,t,n){var r=e.urlString;function i(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=(0,a.EH)(r))}return e}function s(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if((0,a.Kg)(e)){var n=(0,a.EH)(e).split(/[\r\n]+/);(0,a.Iu)(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=(0,a.EH)(e.substring(0,n)).toLowerCase(),o=(0,a.EH)(e.substring(n+1));t[r]=o}else t[(0,a.EH)(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=i(t,e,X),t=i(t,e,W),t=i(t,e,"kill-duration-seconds")),t}function c(e,n){te(t,e.status,s(e),n)}n&&e.disableXhrSync&&(n=!1);var l=(0,u.H$)(F,r,o,!0,n,e.timeout);(0,a.z)(e.headers,(function(e,t){l.setRequestHeader(e,t)})),l.onload=function(){var e=Ee(l);c(l,e),Te(e)},l.onerror=function(){c(l)},l.ontimeout=function(){c(l)},l.send(e.data)}function te(e,t,n,r){try{e(t,n,r)}catch(o){(0,s.ZP)(h,2,518,(0,c.mm)(o))}}function ne(e,t,n){var r=200,o=e._thePayload,i=e.urlString+(E?ve:q);try{var u=(0,c.w3)();if(!u.sendBeacon(i,e.data))if(o){var l=[];(0,a.Iu)(o.batches,(function(e){if(l&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!u.sendBeacon(i,O.getEventBlob(t[n]))){l.push(e.split(n));break}}else l.push(e.split(0))})),Ie(l,8003,o.sendType,!0)}else r=0}catch(d){(0,s.OG)(h,"Failed to send telemetry using sendBeacon API. Ex:"+(0,c.mm)(d)),r=0}finally{te(t,r,{},q)}}function re(e){return 2===e||3===e}function oe(e){return x&&re(e)&&(e=2),e}function ie(){return!_&&A<n}function ae(){var e=N;return N=[],e}function se(e,t,n){var r=!1;return e&&e.length>0&&!_&&p[t]&&O&&(r=0!==t||ie()&&(n>0||I.allowRequestSending())),r}function le(e){var t={};return e&&(0,a.Iu)(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function de(e,n,r,o,a){if(e&&0!==e.length)if(_)Ie(e,1,o);else{o=oe(o);try{var l=e,d=0!==o;(0,i.r2)(g,(function(){return"HttpManager:_sendBatches"}),(function(i){i&&(e=e.slice(0));for(var s=[],c=null,l=(0,u.WB)(),f=p[o]||(d?p[1]:p[0]),h=f&&f._transport,g=T&&(x||re(o)||3===h||f._isSync&&2===h);se(e,o,n);){var v=e.shift();v&&v.count()>0&&(b.isTenantKilled(v.iKey())?s.push(v):(c=c||O.createPayload(n,r,d,g,a,o),O.appendPayload(c,v,t)?null!==c.overflow&&(e=[c.overflow].concat(e),c.overflow=null,ge(c,l,(0,u.WB)(),a),l=(0,u.WB)(),c=null):(ge(c,l,(0,u.WB)(),a),l=(0,u.WB)(),e=[v].concat(e),c=null)))}c&&ge(c,l,(0,u.WB)(),a),e.length>0&&(N=e.concat(N)),Ie(s,8004,o)}),(function(){return{batches:le(l),retryCount:n,isTeardown:r,isSynchronous:d,sendReason:a,useSendBeacon:re(o),sendType:o}}),!d)}catch(f){(0,s.ZP)(h,2,48,"Unexpected Exception sending batch: "+(0,c.mm)(f))}}}function fe(e,t){var n={url:w,hdrs:{},useHdrs:!1};t?(n.hdrs=(0,u.X$)(n.hdrs,P),n.useHdrs=(0,a.cG)(n.hdrs).length>0):(0,a.z)(P,(function(e,t){Ce[e]?be(n,Ce[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),be(n,$,"NO_AUTH",t),be(n,Q,u.xE,t);var r=q;(0,a.Iu)(e.apiKeys,(function(e){r.length>0&&(r+=","),r+=e})),be(n,ee,r,t),be(n,Z,(0,a.x3)().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 q}(e);if((0,u.yD)(o)&&(n.url+="&ext.intweb.msfpc="+o),I.shouldAddClockSkewHeaders()&&be(n,J,I.getClockSkewHeaderValue(),t),g.getWParam){var i=g.getWParam();i>=0&&(n.url+="&w="+i)}for(var s=0;s<R.length;s++)n.url+="&"+R[s].name+"="+R[s].value;return n}function he(e,t,n){e[t]=e[t]||{},e[t][f.identifier]=n}function ge(t,n,o,l){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var d=!!e.sendHook,v=p[t.sendType];!re(t.sendType)&&t.isBeacon&&2===t.sendReason&&(v=p[2]||p[3]||v);var T=D;(t.isBeacon||3===v._transport)&&(T=!1);var E=fe(t,T);T=T||E.useHdrs;var w=(0,u.WB)();(0,i.r2)(g,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var p=0;p<t.batches.length;p++)for(var _=t.batches[p].events(),S=0;S<_.length;S++){var R=_[S];if(M){var P=R.timings=R.timings||{};he(P,"sendEventStart",w),he(P,"serializationStart",n),he(P,"serializationCompleted",o)}R.sendAttempt>0?R.sendAttempt++:R.sendAttempt=1}Ie(t.batches,1e3+(l||0),t.sendType,!0);var N={data:t.payloadBlob,urlString:E.url,headers:E.hdrs,_thePayload:t,_sendReason:l,timeout:m,disableXhrSync:y,disableFetchKeepAlive:C};T&&(we(N.headers,z)||(N.headers["cache-control"]="no-cache, no-store"),we(N.headers,V)||(N.headers["content-type"]=G));var O=null;v&&(O=function(n){I.firstRequestSent();var o=function(n,o){!function(t,n,o,i){var s=9e3,c=null,l=!1,d=!1;try{var h=!0;if(typeof t!==ce.bA){if(n){I.setClockSkew(n["time-delta-millis"]);var p=n["kill-duration"]||n["kill-duration-seconds"];(0,a.Iu)(b.setKillSwitchTenants(n["kill-tokens"],p),(function(e){(0,a.Iu)(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);((v=t)>=300&&v<500&&408!=v&&429!=v||501==v||505==v||o.numEvents<=0)&&(h=!1),s=9e3+t%1e3}if(h){s=100;var g=o.retryCnt;0===o.sendType&&(g<r?(l=!0,ye((function(){0===o.sendType&&A--,de(o.batches,g+1,o.isTeardown,x?2:o.sendType,5)}),x,ue(g))):(d=!0,x&&(s=8001)))}}finally{l||(I.setClockSkew(),function(t,n,r,o){try{o&&f._backOffTransmission(),200===n&&(o||t.isSync||f._clearBackOff(),function(e){if(M){var t=(0,u.WB)();(0,a.Iu)(e,(function(e){e&&e.count()>0&&function(e,t){M&&(0,a.Iu)(e,(function(e){he(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),Ie(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(A--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}(o,s,i,d)),Ie(c,8004,o.sendType)}var v}(n,o,t,l)},i=t.isTeardown||t.isSync;try{v.sendPOST(n,o,i),e.sendListener&&e.sendListener(N,n,i,t.isBeacon)}catch(d){(0,s.OG)(h,"Unexpected exception sending payload. Ex:"+(0,c.mm)(d)),te(o,0,{})}}),(0,i.r2)(g,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(O)if(0===t.sendType&&A++,d&&!t.isBeacon&&3!==v._transport){var n={data:N.data,urlString:N.urlString,headers:(0,u.X$)({},N.headers),timeout:N.timeout,disableXhrSync:N.disableXhrSync,disableFetchKeepAlive:N.disableFetchKeepAlive},r=!1;(0,i.r2)(g,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){r=!0,k||e._thePayload||(e._thePayload=e._thePayload||N._thePayload,e._sendReason=e._sendReason||N._sendReason),O(e)}),t.isSync||t.isTeardown)}catch(o){r||O(N)}}))}else O(N)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:o,sendReason:l}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&Ie(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&Ie(t.failedEvts,8002,t.sendType)}function ye(e,t,n){t?e():d.set(e,n)}function Te(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t)}catch(i){(0,s.ZP)(h,1,519,"Response handler failed: "+i)}if(t){var o=JSON.parse(t);(0,u.yD)(o.webResult)&&(0,u.yD)(o.webResult.msfpc)&&v.set("MSFPC",o.webResult.msfpc,31536e3)}}catch(a){}}function Ie(e,t,n,r){if(e&&e.length>0&&l){var o=l[function(e){var t=me[e];(0,u.yD)(t)||(t="oth",e>=9e3&&e<=9999?t=Y:e>=8e3&&e<=8999?t=B:e>=1e3&&e<=1999&&(t=K));return t}(t)];if(o){var a=0!==n;(0,i.r2)(g,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){ye((function(){try{o.call(l,e,t,a,n)}catch(r){(0,s.ZP)(h,1,74,"send request notification failed: "+r)}}),r||a,0)}),(function(){return{batches:le(e),reason:t,isSync:a,sendSync:r,sendType:n}}),!a)}}}e.initialize=function(e,t,n,r,i){var u;i||(i={}),w=e+w,D=!!(0,a.b0)(i.avoidOptions)||!i.avoidOptions,g=t,v=t.getCookieMgr(),M=!g.config.disableEventTimings;var l=!!g.config.enableCompoundKey;h=(f=n).diagLog();var d=i.valueSanitizer,b=i.stringifyObjects;(0,a.b0)(i.enableCompoundKey)||(l=!!i.enableCompoundKey),m=i.xhrTimeout,y=!!i.disableXhrSync,C=!!i.disableFetchKeepAlive,E=!1!==i.addNoResponse,S=!(0,c.lV)(),O=new pe(g,d,b,l),(0,a.hX)(i.useSendBeacon)||(S=!!i.useSendBeacon);var _=r,I=i.alwaysUseXhrOverride?r:null,A=i.alwaysUseXhrOverride?r:null,R=[3,2];if(!r){k=!1;var P=(0,c.g$)();P&&P.protocol&&"file:"===P.protocol.toLowerCase()&&(o=!1);var N=[];(0,c.lV)()?(N=[2,1],R=[2,1,3]):N=[1,2,3],(r=L(N=_e(N,i.transports),!1))||(0,s.OG)(h,"No available transport to send events"),_=L(N,!0)}I||(I=L(R=_e(R,i.unloadTransports),!0)),T=!k&&(S&&(0,c.Uf)()||!C&&(0,c.R7)(!0)),(u={})[0]=r,u[1]=_||L([1,2,3],!0),u[2]=I||_||L([1],!0),u[3]=A||L([2,3],!0)||_||L([1],!0),p=u},e._getDbgPlgTargets=function(){return[p[0],b,O,p]},e.addQueryStringParameter=function(e,t){for(var n=0;n<R.length;n++)if(R[n].name===e)return void(R[n].value=t);R.push({name:e,value:t})},e.addHeader=function(e,t){P[e]=t},e.canSendRequest=function(){return ie()&&I.allowRequestSending()},e.sendQueuedRequests=function(e,t){(0,a.b0)(e)&&(e=0),x&&(e=oe(e),t=2),se(N,e,0)&&de(ae(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!_&&0===A&&0===N.length},e.setUnloading=function(e){x=e},e.addBatch=function(e){if(e&&e.count()>0){if(b.isTenantKilled(e.iKey()))return!1;N.push(e)}return!0},e.teardown=function(){N.length>0&&de(ae(),0,!0,2,2)},e.pause=function(){_=!0},e.resume=function(){_=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&((0,a.hX)(t)&&(t=1),x&&(t=oe(t),n=2),de([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}();function Se(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function Ae(e){clearTimeout(e)}function ke(e,t){return{set:e||Se,clear:t||Ae}}var Re,Pe="eventsDiscarded",Ne=function(e){function t(){var n,r=e.call(this)||this;r.identifier="PostChannel",r.priority=1011,r.version="3.2.14";var l,d,f,h,p,g,v,m=!1,C=[],T=null,E=!1,w=0,b=500,_=0,I=1e4,S={},A=H,k=null,R=null,P=0,N=0,O={},M=-1,x=!0,L=!1,q=6,F=2;return(0,o.A)(t,r,(function(e,t){function r(e){"beforeunload"!==(e||(0,c.zk)().event).type&&(L=!0,d.setUnloading(L)),W(2,2)}function o(e){L=!1,d.setUnloading(L)}function B(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,x&&(u.u9,e.ext=(0,a.hW)(e.ext),e.baseData&&(e.baseData=(0,a.hW)(e.baseData)),e.data&&(e.data=(0,a.hW)(e.data))),e.sync)if(P||E)e.latency=3,e.sync=!1;else if(d)return x&&(e=(0,a.hW)(e)),void d.sendSynchronousBatch(ie.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,r=_,o=I;4===n&&(r=w,o=b);var i=!1;if(r<o)i=!$(e,t);else{var s=1,c=20;4===n&&(s=4,c=1),i=!0,function(e,t,n,r){for(;n<=t;){var o=X(e,t,!0);if(o&&o.count()>0){var i=o.split(0,r),a=i.count();if(a>0)return 4===n?w-=a:_-=a,ce(Pe,[i],U.QueueFull),!0}n++}return J(),!1}(e.iKey,e.latency,s,c)&&(i=!$(e,t))}i&&se(Pe,[e],U.QueueFull)}function K(e,t,n){var r=Z(e,t,n);return d.sendQueuedRequests(t,n),r}function j(){return _>0}function Y(){if(M>=0&&Z(M,0,p)&&d.sendQueuedRequests(0,p),w>0&&!R&&!E){var e=S[A][2];e>=0&&(R=z((function(){R=null,K(4,0,1),Y()}),e))}var t=S[A][1];!k&&!T&&t>=0&&!E&&(j()?k=z((function(){k=null,K(0===N?3:1,0,1),N++,N%=2,Y()}),t):N=0)}function G(){n=null,m=!1,C=[],T=null,E=!1,w=0,b=500,_=0,I=1e4,S={},A=H,k=null,R=null,P=0,N=0,l=null,O={},f=void 0,h=0,M=-1,p=null,x=!0,L=!1,q=6,F=2,g=null,v=ke(),d=new Ie(500,2,1,{requeue:oe,send:le,sent:de,drop:fe,rspFail:he,oth:pe},v),re(),O[4]={batches:[],iKeyMap:{}},O[3]={batches:[],iKeyMap:{}},O[2]={batches:[],iKeyMap:{}},O[1]={batches:[],iKeyMap:{}},ge()}function z(e,t){0===t&&P&&(t=1);var n=1e3;return P&&(n=ue(P-1)),v.set(e,t*n)}function V(){return null!==k&&(v.clear(k),k=null,N=0,!0)}function W(e,t){V(),T&&(v.clear(T),T=null),E||K(1,e,t)}function X(e,t,n){var r=O[t];r||(r=O[t=1]);var o=r.iKeyMap[e];return!o&&n&&(o=ie.create(e),r.batches.push(o),r.iKeyMap[e]=o),o}function Q(t,n){d.canSendRequest()&&!P&&(f>0&&_>f&&(n=!0),n&&null==T&&e.flush(t,null,20))}function $(e,t){x&&(e=(0,a.hW)(e));var n=e.latency,r=X(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(_++,t&&0===e.sendAttempt&&Q(!e.sync,h>0&&r.count()>=h)):w++,!0)}function J(){for(var e=0,t=0,n=function(n){var r=O[n];r&&r.batches&&(0,a.Iu)(r.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},r=1;r<=4;r++)n(r);_=t,w=e}function Z(t,n,r){var o=!1,s=0===n;return!s||d.canSendRequest()?(0,i.r2)(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var r=O[n];r&&r.batches&&r.batches.length>0&&((0,a.Iu)(r.batches,(function(t){d.addBatch(t)?o=o||t&&t.count()>0:e=e.concat(t.events()),4===n?w-=t.count():_-=t.count()})),r.batches=[],r.iKeyMap={}),n--}e.length>0&&se(Pe,e,U.KillSwitch),o&&M>=t&&(M=-1,p=0)}),(function(){return{latency:t,sendType:n,sendReason:r}}),!s):(M=M>=0?Math.min(M,t):t,p=Math.max(p,r)),o}function ee(e,t){K(1,0,t),J(),ne((function(){e&&e(),C.length>0?T=z((function(){T=null,ee(C.shift(),t)}),0):(T=null,Y())}))}function ne(e){d.isCompletelyIdle()?e():T=z((function(){T=null,ne(e)}),.25)}function re(){(S={}).REAL_TIME=[2,1,0],S.NEAR_REAL_TIME=[6,3,0],S.BEST_EFFORT=[18,9,0]}function oe(t,n){var r=[],o=q;L&&(o=F),(0,a.Iu)(t,(function(t){t&&t.count()>0&&(0,a.Iu)(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<o?((0,u.u9)(t,e.identifier),B(t,!1)):r.push(t))}))})),r.length>0&&se(Pe,r,U.NonRetryableStatus),L&&W(2,2)}function ae(t,n){var r=e._notificationManager||{},o=r[t];if(o)try{o.apply(r,n)}catch(i){(0,s.ZP)(e.diagLog(),1,74,t+" notification failed: "+i)}}function se(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&ae(e,[t].concat(n))}function ce(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&(0,a.Iu)(t,(function(t){t&&t.count()>0&&ae(e,[t.events()].concat(n))}))}function le(e,t,n){e&&e.length>0&&ae("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function de(e,t){ce("eventsSent",e,t),Y()}function fe(e,t){ce(Pe,e,t>=8e3&&t<=8999?t-8e3:U.Unknown)}function he(e){ce(Pe,e,U.NonRetryableStatus),Y()}function pe(e,t){ce(Pe,e,U.Unknown),Y()}function ge(){h=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,I/6)}G(),e._getDbgPlgTargets=function(){return[d]},e.initialize=function(s,c,h){(0,i.r2)(c,(function(){return"PostChannel:initialize"}),(function(){var i=c;t.initialize(s,c,h);try{c.addUnloadCb;g=(0,D.Hm)((0,y.Z)(e.identifier),c.evtNamespace&&c.evtNamespace());var p=e._getTelCtx();s.extensionConfig[e.identifier]=s.extensionConfig[e.identifier]||{},n=p.getExtCfg(e.identifier),v=ke(n.setTimeoutOverride,n.clearTimeoutOverride),x=!n.disableOptimizeObj&&(0,u.F2)(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(i),n.eventsLimitInMem>0&&(I=n.eventsLimitInMem),n.immediateEventLimit>0&&(b=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(f=n.autoFlushEventsLimit),(0,a.Et)(n.maxEventRetryAttempts)&&(q=n.maxEventRetryAttempts),(0,a.Et)(n.maxUnloadEventRetryAttempts)&&(F=n.maxUnloadEventRetryAttempts),ge(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(l=n.httpXHROverride),(0,u.yD)(s.anonCookieName)&&d.addQueryStringParameter("anoncknm",s.anonCookieName),d.sendHook=n.payloadPreprocessor,d.sendListener=n.payloadListener;var m=n.overrideEndpointUrl?n.overrideEndpointUrl:s.endpointUrl;e._notificationManager=c.getNotifyMgr(),d.initialize(m,e.core,e,l,n);var C=s.disablePageUnloadEvents||[];(0,D.ee)(r,C,g),(0,D.Fc)(r,C,g),(0,D.oS)(o,s.disablePageShowEvents,g)}catch(T){throw e.setInitialized(!1),T}}),(function(){return{coreConfig:s,core:c,extensions:h}}))},e.processTelemetry=function(t,r){(0,u.u9)(t,e.identifier);var o=(r=e._getTelCtx(r)).getExtCfg(e.identifier),i=!!n.disableTelemetry;o&&(i=i||!!o.disableTelemetry);var a=t;i||m||(n.overrideInstrumentationKey&&(a.iKey=n.overrideInstrumentationKey),o&&o.overrideInstrumentationKey&&(a.iKey=o.overrideInstrumentationKey),B(a,!0),L?W(2,2):Y()),e.processNext(a,r)},e._doTeardown=function(e,t){W(2,2),m=!0,d.teardown(),(0,D.Ds)(null,g),(0,D.sq)(null,g),(0,D.vF)(null,g),G()},e.setEventQueueLimits=function(e,t){I=e>0?e:1e4,f=t>0?t:0,ge();var n=_>e;if(!n&&h>0)for(var r=1;!n&&r<=3;r++){var o=O[r];o&&o.batches&&(0,a.Iu)(o.batches,(function(e){e&&e.count()>=h&&(n=!0)}))}Q(!0,n)},e.pause=function(){V(),E=!0,d.pause()},e.resume=function(){E=!1,d.resume(),Y()},e.addResponseHandler=function(e){d._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){V(),re(),A=H,Y(),(0,a.z)(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),S[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!E)if(n=n||1,e)null==T?(V(),Z(1,0,n),T=z((function(){T=null,ee(t,n)}),0)):C.push(t);else{var r=V();K(1,1,n),null!==t&&void 0!==t&&t(),r&&Y()}},e.setMsaAuthTicket=function(e){d.addHeader(te,e)},e.hasEvents=j,e._setTransmitProfile=function(e){A!==e&&void 0!==S[e]&&(V(),A=e,Y())},e._backOffTransmission=function(){P<4&&(P++,V(),Y())},e._clearBackOff=function(){P&&(P=0,V(),Y())},(0,a.r)(e,"_setTimeoutOverride",(function(){return v.set}),(function(e){v=ke(e,v.clear)})),(0,a.r)(e,"_clearTimeoutOverride",(function(){return v.clear}),(function(e){v=ke(v.set,e)}))})),r}return(0,r.qU)(t,e),t.__ieDyn=1,t}(T.s),Oe=Ne,Me="locale",xe="ver",De="name",Le=(0,L.oP)({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"]}),Ue=(0,L.oP)({id:[0,"id"],ver:[1,xe],appName:[2,De],locale:[3,Me],expId:[4,"expId"],env:[5,"env"]}),He=(0,L.oP)({domain:[0,"domain"],browser:[1,"browser"],browserVer:[2,"browserVer"],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),qe=(0,L.oP)({locale:[0,Me],localId:[1,"localId"],id:[2,"id"]}),Fe=(0,L.oP)({osName:[0,De],ver:[1,xe]}),Be=(0,L.oP)({ver:[0,xe],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),Ke=(0,L.oP)({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,"serviceName"]}),je=(0,L.oP)({popSample:[0,"popSample"],eventFlags:[1,"eventFlags"]}),Ye=(0,L.oP)({tz:[0,"tz"]}),Ge=(0,L.oP)({sessionId:[0,"sesId"]}),ze=(0,L.oP)({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),Ve=(0,L.oP)({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),We=(0,L.oP)({traceId:[0,"traceID"],traceName:[1,De],parentId:[2,"parentID"]}),Xe=(0,L.oP)({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]}),Qe=n(90732),$e=n(33571);function Je(){return void 0===Re&&(Re=!!et(0)),Re}function Ze(){return Je()?et(0):null}function et(e){var t,n,r=null;try{var o=(0,d.mS)();if(!o)return null;n=new Date,(r=0===e?o.localStorage:o.sessionStorage)&&(0,a.Tn)(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(i){r=null}return r}function tt(){return this.getId()}function nt(e){this.setId(e)}var rt=function(){function e(){(0,o.A)(e,this,(function(e){e.setId=function(t){e.customId=t},e.getId=function(){return(0,a.Kg)(e.customId)?e.customId:e.automaticId}}))}return e._staticInit=void(0,a.r)(e.prototype,"id",tt,nt),e}(),ot="ai_session",it=function(){function e(t,n){var r,i,c=(0,s.y0)(t),l=(0,m.um)(t);(0,o.A)(e,this,(function(t){var o,d={sessionRenewalMs:(o=n).sessionRenewalMs&&function(){return o.sessionRenewalMs},sessionExpirationMs:o.sessionExpirationMs&&function(){return o.sessionExpirationMs},cookieDomain:o.cookieDomain&&function(){return o.cookieDomain},namePrefix:o.namePrefix&&function(){return o.namePrefix},sessionAsGuid:function(){return o.sessionAsGuid},idLength:function(){return o.idLength?o.idLength:22}};function f(e){var n=t.automaticSession,r=e.split("|");r.length>0&&n.setId(r[0]);try{if(r.length>1){var o=+r[1];n.acquisitionDate=+new Date(o),n.acquisitionDate=n.acquisitionDate>0?n.acquisitionDate:0}if(r.length>2){var i=+r[2];n.renewalDate=+new Date(i),n.renewalDate=n.renewalDate>0?n.renewalDate:0}}catch(a){(0,s.ZP)(c,1,510,"Error parsing ai_session cookie, session will be reset: "+a)}0===n.renewalDate&&(0,s.ZP)(c,2,517,"AI session renewal date is 0, session will be reset.")}function h(){var e=t.automaticSession,n=(new Date).getTime(),r=t.config.sessionAsGuid();!(0,a.b0)(r)&&r?(0,a.Lm)(r)?e.setId((0,u.gj)()):e.setId((0,u.gj)(r)):e.setId((0,$e.Si)(d&&d.idLength?d.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,p(e.getId(),e.acquisitionDate,e.renewalDate),Je()||(0,s.ZP)(c,2,505,"Browser does not support local storage. Session durations will be inaccurate.")}function p(e,n,o){var a=n+t.config.sessionExpirationMs(),s=o+t.config.sessionRenewalMs(),c=new Date,u=[e,n,o];a<s?c.setTime(a):c.setTime(s);var d=t.config.cookieDomain?t.config.cookieDomain():null;l.set(i(),u.join("|")+";expires="+c.toUTCString(),null,d),r=(new Date).getTime()}(0,a.Tn)(n.sessionExpirationMs)||(d.sessionExpirationMs=function(){return e.acquisitionSpan}),(0,a.Tn)(n.sessionRenewalMs)||(d.sessionRenewalMs=function(){return e.renewalSpan}),t.config=d,i=function(){return t.config.namePrefix&&t.config.namePrefix()?ot+t.config.namePrefix():ot},t.automaticSession=new rt,t.update=function(){t.automaticSession.getId()||function(){var e=l.get(i());if(e&&(0,a.Tn)(e.split))f(e);else{var n=function(e,t){var n=Ze();if(null!==n)try{return n.getItem(t)}catch(r){Re=!1,(0,s.ZP)(e,1,503,"Browser failed read of local storage. "+r)}return null}(c,i());n&&f(n)}t.automaticSession.getId()||h()}();var n=t.automaticSession,o=t.config,u=(new Date).getTime(),d=u-n.acquisitionDate>o.sessionExpirationMs(),g=u-n.renewalDate>o.sessionRenewalMs();if(d||g)h();else{(!r||u-r>e.cookieUpdateInterval)&&(n.renewalDate=u,p(n.getId(),n.acquisitionDate,n.renewalDate))}},t.backup=function(){var e,n,r,o=t.automaticSession;e=o.getId(),n=o.acquisitionDate,r=o.renewalDate,function(e,t,n){var r=Ze();if(null!==r)try{r.setItem(t,n)}catch(o){Re=!1,(0,s.ZP)(e,1,504,"Browser failed write to local storage. "+o)}}(c,i(),[e,n,r].join("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),at=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function st(e,t){void 0===t&&(t=at);var n=null;if(e)for(var r=e.split(","),o=0;o<r.length;o++)ct(r[o],t)&&(n?n+=","+r[o]:n=r[o]);return n}function ct(e,t){if(void 0===t&&(t=at),!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 ut(){return this.getExpId()}var lt=function(){function e(t,n){var r=null,i=at.slice(0),a="Treatments",s=(0,m.um)(n),l=t;(0,o.A)(e,this,(function(e){if((0,c.Wt)()){var n=(0,c.YE)().documentElement;n&&(e.locale=n.lang)}function o(e){e!==r&&(r=st(e,i))}e.env=t.env?t.env:function(e){var t,n={},r=(0,c.YE)();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 l.expId?(o(l.expId),r):(o((0,u.UM)(s,a)),r)}}))}return e.validateAppExpId=st,e._staticInit=void(0,a.r)(e.prototype,"expId",ut),e}(),dt=function(){},ft=function(){};function ht(){return this.getMsfpc()}function pt(){return this.getAnid()}var gt=function(){function e(t,n){var r=(0,m.um)(n);(0,o.A)(e,this,(function(e){t.serviceName&&(e.serviceName=t.serviceName),e.getMsfpc=function(){return(0,u.UM)(r,"MSFPC")},e.getAnid=function(){return(0,u.UM)(r,"ANON").slice(0,34)}}))}return e._staticInit=function(){var t=e.prototype;(0,a.r)(t,"msfpc",ht),(0,a.r)(t,"anid",pt)}(),e}(),vt=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())},mt={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},yt={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},Ct="Unknown",Tt=[{r:mt.WINPHONE,os:"Windows Phone"},{r:mt.WINRT,os:"Windows RT"},{r:mt.WIN,os:"Windows"},{r:mt.IOS,os:"iOS"},{r:mt.ANDROID,os:"Android"},{r:mt.LINUX,os:"Linux"},{r:mt.CROS,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:mt.OSX,os:"Mac OS X"}];function Et(e,t){return"Windows"===t?wt(e,"Windows NT"):"Android"===t?wt(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=bt(n);return r?n.split(r)[0]:n}}return Ct}(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=bt(n);return r?n.split(r)[0]:n}}return Ct}(e):Ct}function wt(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?yt[n[1]]?yt[n[1]]:n[1]:Ct}function bt(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var _t=function(e){if(e.populateOperatingSystemInfo){var t=this,n=(0,c.w3)()||{},r=e.userAgent||n.userAgent||"",o=e.userAgentData||n.userAgentData||{};if(r){var i=function(e){for(var t=0;t<Tt.length;t++){var n=Tt[t];if(n.r&&e.match(n.r))return n.os;if(n.s&&-1!==e.indexOf(n.s))return n.os}return Ct}(r.toLowerCase());t.name=i,t.ver=Et(r,i)}t.name&&t.name!==Ct||!(0,a.Kg)(o.platform)||(t.name=o.platform)}},It=n(87390),St="MicrosoftApplicationsTelemetryDeviceId";var At=function(){function e(t,n){var r=0;(0,o.A)(e,this,(function(e){var o=t.propertyStorageOverride;e.seq=r,e.epoch=(0,$e.VN)(!1).toString();var i=(0,m.um)(n,t);if(i.isEnabled()||o){var a=function(e,t,n){return t?t.getProperty(n)||"":(0,u.UM)(e,n)}(i,o,St);a||(a=(0,It.aq)()),function(e,t,n,r){t?t.setProperty(n,r):e.set(n,r,31536e3)}(i,o,St,a),e.installId=a}else i.purge(St);e.getSequenceId=function(){return++r}}))}return e.__ieDyn=1,e}(),kt=function(e,t,n,r){var o=this;if(o.traceId=t||(0,It.cL)(),e.enableDistributedTracing&&!n&&(n=(0,It.cL)().substring(0,16)),o.parentId=n,e.enableApplicationInsightsTrace){o.name=r;var i=(0,c.g$)();i&&i.pathname&&(o.name=i.pathname)}};function Rt(){return this.getLocalId()}function Pt(e){this.setLocalId(e)}var Nt=function(){function e(t,n,r){var i,s=n,c=(0,m.um)(r,t);(0,o.A)(e,this,(function(n){if(c&&c.isEnabled()&&(p(),s.enableApplicationInsightsUser)){var r=(0,u.UM)(c,e.userCookieName);if(r){var o=r.split(e.cookieSeparator);o.length>0&&(n.id=o[0])}if(!n.id){n.id=(0,$e.Si)(t&&!(0,a.b0)(t.idLength)?t.idLength:22);var l=(0,a._u)(new Date);n.accountAcquisitionDate=l;var d=[n.id,l],f=s.cookieDomain?s.cookieDomain:void 0;c.set(e.userCookieName,d.join(e.cookieSeparator),31536e3,f)}}if("undefined"!==typeof navigator){var h=navigator;n.locale=h.userLanguage||h.language}function p(){if(!s.hashIdentifiers&&!s.dropIdentifiers){var e=(0,u.UM)(c,"MUID");e&&(i="t:"+e)}return i}n.getLocalId=function(){return i||p()},n.setLocalId=function(e){i=e}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=void(0,a.r)(e.prototype,"localId",Rt,Pt),e}(),Ot=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)},Mt=["Required","Analytics","SocialMedia","Advertising"],xt="([\\d,.]+)",Dt="Unknown",Lt="Edg/",Ut=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:Lt,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"}],Ht=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function qt(e,t){return t.indexOf(e)>-1}function Ft(e,t){for(var n=0;n<t.length;n++)if(e==t[n].brand)return t[n].version;return null}function Bt(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&&qt(Lt,t)&&(e="Edg");var n=t.match(new RegExp(e+"/"+xt));if(n)return n[1];if("Opera"===e&&(n=t.match(new RegExp("OPR/([\\d,.]+)"))))return n[1];return Dt}(t,e)}function Kt(){return this.getUserConsent()}var jt=function(){function e(t,n){var r=(0,m.um)(n),i=t||{};(0,o.A)(e,this,(function(e){var t=(0,c.g$)();if(t){var n=t.hostname;n&&(e.domain="file:"===t.protocol?"local":n)}if(i.populateBrowserInfo){var o=i.userAgent,s=(i.userAgentData||{}).brands,l=(0,c.w3)();l&&(o=o||l.userAgent||"",s=s||(l.userAgentData||{}).brands),function(t,n){if((0,a.cy)(n))try{for(var r=0;r<Ht.length;r++){var o=Ft(Ht[r].br,n);if(o)return e.browser=Ht[r].b,void(e.browserVer=o)}}catch(s){}if(t){var i=function(e){if(e)for(var t=0;t<Ut.length;t++)if(qt(Ut[t].ua,e))return Ut[t].b;return Dt}(t);e.browser=i,e.browserVer=Bt(t,i)}}(o,s);var d=function(){var e={h:0,w:0},t=(0,c.zk)();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e}();e.screenRes=d.w+"X"+d.h}(0,a.b0)(i.gpcDataSharingOptIn)?e.gpcDataSharingOptIn=null:e.gpcDataSharingOptIn=i.gpcDataSharingOptIn,e.getUserConsent=function(){return i.userConsented||!!(0,u.UM)(r,i.userConsentCookieName||"MSCC")},e.getUserConsentDetails=function(){var t=null;try{var n=i.callback;if(n&&n.userConsentDetails){var r=n.userConsentDetails();if(r){t=i.disableConsentDetailsSanitize?r:{};for(var o=0;o<Mt.length;o++){var a=Mt[o];t[a]=r[a]||!1}}}var s=e.gpcDataSharingOptIn;return null!==s&&((t=t||{}).GPC_DataSharingOptIn=!!s),t?JSON.stringify(t):null}catch(c){}},(0,a.r)(e,"userConsent",e.getUserConsent)}))}return e._staticInit=void(0,a.r)(e.prototype,"userConsent",Kt),e}();function Yt(e,t,n,r,o){var i=t.ext[Le[e]];if(i)try{(0,a.z)(r,(function(e,t){if((0,a.Kg)(t)||(0,a.Et)(t)||(0,a.Lm)(t)){var r=i[n[e]];!o&&(r||(0,a.Kg)(r)||(0,a.Et)(r)||(0,a.Lm)(r))&&(t=r),i[n[e]]=t}}))}catch(s){}return i}var Gt=function(){function e(t,n,r){(0,o.A)(e,this,(function(e){e.app=new lt(n,r),e.cloud=new dt,e.user=new Nt(t,n,r),e.os=new _t(n),e.web=new jt(n,r);var o=new At(t,r),i=new gt(n,r),s=new Ot(n);e.loc=new vt,e.device=new ft;var c=new it(r,n);e.session=new rt;var u=function(e,t){var n=e||{};return{getName:function(){return n.name},setName:function(e){t&&t.setName(e),n.name=e},getTraceId:function(){return n.traceId},setTraceId:function(e){t&&t.setTraceId(e),(0,Qe.hX)(e)&&(n.traceId=e)},getSpanId:function(){return n.parentId},setSpanId:function(e){t&&t.setSpanId(e),(0,Qe.wN)(e)&&(n.parentId=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}(new kt(n),f()),l=!(n||{}).eventContainExtFields;function d(){var t=e.session;if(t&&(0,a.Kg)(t.customId))return t.customId;c.update();var n=c.automaticSession;if(n){var r=n.getId();r&&(0,a.Kg)(r)&&(t.automaticId=r)}return t.automaticId}function f(){var e=u;return r&&r.getTraceCtx&&(e=r.getTraceCtx(!1)||u),e}e.getTraceCtx=function(){return u},e.getSessionId=d,e.applyApplicationContext=function(t){var n,r=e.app;Yt(4,t,Ue,((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;Yt(0,t,qe,((n={})[1]=r.getLocalId(),n[0]=r.locale,n[2]=r.id,n),l)},e.applyWebContext=function(t){var n,r=e.web;Yt(3,t,He,((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;Yt(5,t,Fe,((n={})[0]=r.name,n[1]=r.ver,n),l)},e.applySdkContext=function(e){var t;Yt(6,e,Be,((t={})[2]=o.installId,t[1]=o.getSequenceId(),t[3]=o.epoch,t),l)},e.applyIntWebContext=function(e){var t;Yt(7,e,Ke,((t={})[0]=i.getMsfpc(),t[1]=i.getAnid(),t[2]=i.serviceName,t),l)},e.applyUtcContext=function(e){var t,n=((t={})[0]=s.popSample,t);s.eventFlags>0&&(n[1]=s.eventFlags),Yt(8,e,je,n,l)},e.applyLocContext=function(t){var n;Yt(9,t,Ye,((n={})[0]=e.loc.tz,n),l)},e.applySessionContext=function(e){var t;Yt(4,e,Ge,((t={})[0]=d(),t),l)},e.applyDeviceContext=function(t){var n,r=e.device;Yt(1,t,ze,((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;Yt(10,t,Ve,((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=f();r&&Yt(2,e,We,((t={})[0]=r.getTraceId(),t[1]=r.getName(),t[2]=r.getSpanId(),t),!1)}},e.applyDistributedTraceContext=function(e){var t,n=f();if(n){var r=((t={})[0]=n.getTraceId(),t[1]=n.getSpanId(),t),o=n.getTraceFlags();(0,a.hX)(o)||(r[2]=o),Yt(11,e,Xe,r,!1)}}}))}return e.__ieDyn=1,e}();var zt=[Le[4],Le[0],Le[3],Le[5],Le[6],Le[7],Le[8],Le[9],Le[1],Le[2],Le[11],Le[10]],Vt=function(e){function t(){var n,r,i,s=e.call(this)||this;return s.identifier="SystemPropertiesCollector",s.priority=3,s.version="3.2.14",(0,o.A)(t,s,(function(e,t){function o(){n=null,r={}}o(),e.initialize=function(r,o,a){t.initialize(r,o,a),i=e._getTelCtx().getExtCfg(e.identifier),n=new Gt(r,i,o),o&&o.setTraceCtx&&o.setTraceCtx(n.getTraceCtx())},e.processTelemetry=function(t,o){(0,u.u9)(t,e.identifier),o=e._getTelCtx(o);var s,c,l=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},(0,a.Iu)(zt,(function(e){l[e]=l[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),i.enableApplicationInsightsTrace&&n.applyAITraceContext(t),i.enableDistributedTracing&&n.applyDistributedTraceContext(t),n.applyCloudContext(t)),(0,a.Iu)((0,a.cG)(l),(function(e){0===(0,a.cG)(l[e]).length&&delete l[e]})),s=r,c=t.data,s&&(0,a.z)(s,(function(e,t){c[e]||(c[e]=t)})),e.processNext(t,o)},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 i=r.getTraceCtx(!1);i&&i===n.getTraceCtx()&&r.setTraceCtx(null)}o()}})),s}return(0,r.qU)(t,e),t.__ieDyn=1,t}(T.s),Wt=["c:","i:","w:"],Xt={"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"},Qt=function(){function e(t){this.core=t;var n,r=(0,u.gj)(),i=(0,It.cL)(),a=null,s=!1,l=(0,m.um)(t);(0,o.A)(e,this,(function(e){e.getTraceId=function(){return t&&t.getTraceCtx&&t.getTraceCtx().getTraceId()||i},e.getLastPageViewId=function(){return r},e.initializeIds=function(){s?r=(0,u.gj)():s=!0},e.getMuidUserId=function(){var e=(0,u.UM)(l,"MUID");return e&&e.length?"t:"+e:e},e.setAppUserId=function(e){if(a=null,e)for(var t=0;t<Wt.length;t++)if(Wt[t]===e.substring(0,2)){a=e;break}},e.setDeviceClass=function(e){e&&(n=e)},e.getDeviceClass=function(){return n},e.getAppUserId=function(){return a},e.syncMuid=function(e){var t=(0,c.g$)();if(t&&e){var n=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",r=(0,c.YE)();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 Xt[e]}}))}return e.visitorId=function(){return(0,u.UM)((0,m.um)(null),"MUID")},e}(),$t=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}(),Jt=n(61979),Zt=n(75846),en=n(4529),tn=n(22534),nn=n(70093),rn=n(94326),on=n(60523),an=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var o=this;o.ver=2,o[rn.RS]=(0,on.Rr)(e,t)||nn.R2,o[rn.$y]=(0,on.xP)(e,n),o[rn.XA]=(0,on.Vj)(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),sn=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||nn.R2,i[rn.pM]=(0,on.Vk)(e,t),i[rn.$y]=(0,on.xP)(e,r),i[rn.XA]=(0,on.Vj)(e,o),n&&(i[rn.Ur]=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),cn=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},un=function(){function e(e,t,n,r,o,i,a,s,c){this.aiDataContract={ver:1,metrics:1,properties:0};var u=this;u.ver=2;var l=new cn;l[rn.F2]=r>0?r:void 0,l.max=isNaN(i)||null===i?void 0:i,l.min=isNaN(o)||null===o?void 0:o,l[rn.RS]=(0,on.Rr)(e,t)||nn.R2,l.value=n,l.stdDev=isNaN(a)||null===a?void 0:a,u.metrics=[l],u[rn.$y]=(0,on.xP)(e,s),u[rn.XA]=(0,on.Vj)(e,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),ln=function(){function e(e,t,n,r,o,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var s=this;s.ver=2,s.id=(0,on.HQ)(e,a),s.url=(0,on.pJ)(e,n),s[rn.RS]=(0,on.Rr)(e,t)||nn.R2,isNaN(r)||(s[rn.qd]=(0,Jt.bb)(r)),s[rn.$y]=(0,on.xP)(e,o),s[rn.XA]=(0,on.Vj)(e,i)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),dn=function(){function e(e,t,n,r,o,i,a){this.aiDataContract={ver:1,name:0,url:0,duration:0,perfTotal:0,networkConnect:0,sentRequest:0,receivedResponse:0,domProcessing:0,properties:0,measurements:0};var s=this;s.ver=2,s.url=(0,on.pJ)(e,n),s[rn.RS]=(0,on.Rr)(e,t)||nn.R2,s[rn.$y]=(0,on.xP)(e,o),s[rn.XA]=(0,on.Vj)(e,i),a&&(s.domProcessing=a.domProcessing,s[rn.qd]=a[rn.qd],s.networkConnect=a.networkConnect,s.perfTotal=a.perfTotal,s[rn.fd]=a[rn.fd],s.sentRequest=a.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}();function fn(e,t){var n=e;return n&&!(0,a.Kg)(n)&&(JSON&&JSON[rn.Jj]?(n=JSON[rn.Jj](e),!t||n&&"{}"!==n||(n=(0,a.Tn)(e[rn.xE])?e[rn.xE]():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function hn(e,t){var n=e;return e&&(n&&!(0,a.Kg)(n)&&(n=e.message||e.description||n),n&&!(0,a.Kg)(n)&&(n=fn(n,!0)),e.filename&&(n=n+" @"+(e.filename||"")+":"+(e.lineno||"?")+":"+(e.colno||"?"))),t&&"String"!==t&&"Object"!==t&&"Error"!==t&&-1===(n||"")[rn.Sj](t)&&(n=t+": "+n),n||""}function pn(e){return e&&e.src&&(0,a.Kg)(e.src)&&e.obj&&(0,a.cy)(e.obj)}function gn(e){var t=e||"";(0,a.Kg)(t)||(t=(0,a.Kg)(t.stack)?t.stack:""+t);var n=t[rn.sY]("\n");return{src:t,obj:n}}function vn(e){var t=null;if(e)try{if(e.stack)t=gn(e.stack);else if(e.error&&e.error.stack)t=gn(e.error.stack);else if(e.exception&&e.exception.stack)t=gn(e.exception.stack);else if(pn(e))t=e;else if(pn(e.stackDetails))t=e.stackDetails;else if(window&&window.opera&&e.message)t=function(e){for(var t=[],n=e[rn.sY]("\n"),r=0;r<n[rn.oI];r++){var o=n[r];n[r+1]&&(o+="@"+n[r+1],r++),t.push(o)}return{src:e,obj:t}}(e[rn.pM]);else if(e.reason&&e.reason.stack)t=gn(e.reason.stack);else if((0,a.Kg)(e))t=gn(e);else{var n=e.message||e.description||"";(0,a.Kg)(e.errorSrc)&&(n&&(n+="\n"),n+=" from "+e.errorSrc),n&&(t=gn(n))}}catch(r){t=gn(r)}return t||{src:"",obj:null}}function mn(e){var t="";if(e&&!(t=e.typeName||e[rn.RS]||""))try{var n=/function (.{1,200})\(/.exec(e.constructor[rn.xE]());t=n&&n[rn.oI]>1?n[1]:""}catch(r){}return t}function yn(e){if(e)try{if(!(0,a.Kg)(e)){var t=mn(e),n=fn(e,!1);return n&&"{}"!==n||(e.error&&(t=mn(e=e.error)),n=fn(e,!0)),0!==n[rn.Sj](t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var Cn=function(){function e(e,t,n,r,o,i){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var s=this;s.ver=2,!function(e){try{if((0,a.Gv)(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(t){}return!1}(t)?(n||(n={}),s[rn.OK]=[new Tn(e,t,n)],s[rn.$y]=(0,on.xP)(e,n),s[rn.XA]=(0,on.Vj)(e,r),o&&(s[rn.Ur]=o),i&&(s.id=i)):(s[rn.OK]=t[rn.OK]||[],s[rn.$y]=t[rn.$y],s[rn.XA]=t[rn.XA],t[rn.Ur]&&(s[rn.Ur]=t[rn.Ur]),t.id&&(s.id=t.id),t[rn.Fq]&&(s[rn.Fq]=t[rn.Fq]),(0,a.hX)(t[rn.r1])||(s[rn.r1]=t[rn.r1]))}return e.CreateAutoException=function(e,t,n,r,o,i,a,s){var c,u=mn(o||i||e);return(c={})[rn.pM]=hn(e,u),c.url=t,c.lineNumber=n,c.columnNumber=r,c.error=yn(o||i||e),c.evt=yn(i||e),c[rn.qg]=u,c.stackDetails=vn(a||o||i),c.errorSrc=s,c},e.CreateFromInterface=function(t,n,o,i){var s=n[rn.OK]&&(0,a.W$)(n[rn.OK],(function(e){return Tn[rn.vu](t,e)}));return new e(t,(0,r.Im)((0,r.Im)({},n),{exceptions:s}),o,i)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,o=t.measurements,i=t.severityLevel,s=t.problemGroup,c=t.id,u=t.isManual,l=n instanceof Array&&(0,a.W$)(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"})[rn.OK]=l,e.severityLevel=i,e.properties=r,e.measurements=o,e.problemGroup=s,e.id=c,e.isManual=u,e},e.CreateSimpleException=function(e,t,n,r,o,i){var a;return{exceptions:[(a={},a[rn.lW]=!0,a.message=e,a.stack=o,a.typeName=t,a)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=yn,e}(),Tn=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(function(e){try{if((0,a.Gv)(e))return"hasFullStack"in e&&"typeName"in e}catch(t){}return!1}(t))r[rn.qg]=t[rn.qg],r[rn.pM]=t[rn.pM],r.stack=t.stack,r[rn.on]=t[rn.on]||[],r[rn.lW]=t[rn.lW];else{var o=t,i=o&&o.evt;(0,a.bJ)(o)||(o=o.error||i||o),r[rn.qg]=(0,on.Rr)(e,mn(o))||nn.R2,r[rn.pM]=(0,on.Vk)(e,hn(t||o,r[rn.qg]))||nn.R2;var s=t.stackDetails||vn(t);r[rn.on]=function(e){var t,n=e.obj;if(n&&n[rn.oI]>0){t=[];var r=0,o=0;if((0,a.Iu)(n,(function(e){var n=e[rn.xE]();if(En.regex.test(n)){var i=new En(n,r++);o+=i[rn.J$],t.push(i)}})),o>32768)for(var i=0,s=t[rn.oI]-1,c=0,u=i,l=s;i<s;){if((c+=t[i][rn.J$]+t[s][rn.J$])>32768){var d=l-u+1;t.splice(u,d);break}u=i,l=s,i++,s--}}return t}(s),(0,a.cy)(r[rn.on])&&(0,a.W$)(r[rn.on],(function(t){t[rn.QE]=(0,on.Rr)(e,t[rn.QE]),t[rn.IE]=(0,on.Rr)(e,t[rn.IE])})),r.stack=(0,on.Vt)(e,function(e){var t="";return e&&(e.obj?(0,a.Iu)(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(s)),r.hasFullStack=(0,a.cy)(r.parsedStack)&&r.parsedStack[rn.oI]>0,n&&(n[rn.qg]=n[rn.qg]||r[rn.qg])}}return e.prototype.toInterface=function(){var e,t=this,n=t[rn.on]instanceof Array&&(0,a.W$)(t[rn.on],(function(e){return e.toInterface()}));return(e={id:t.id,outerId:t.outerId,typeName:t[rn.qg],message:t[rn.pM],hasFullStack:t[rn.lW],stack:t.stack})[rn.on]=n||void 0,e},e.CreateFromInterface=function(t,n){var o=n[rn.on]instanceof Array&&(0,a.W$)(n[rn.on],(function(e){return En[rn.vu](e)}))||n[rn.on];return new e(t,(0,r.Im)((0,r.Im)({},n),{parsedStack:o}))},e}(),En=function(){function e(t,n){this.aiDataContract={level:1,method:1,assembly:0,fileName:0,line:0};var r=this;if(r[rn.J$]=0,"string"===typeof t){var o=t;r[rn.Av]=n,r[rn.lx]="<no_method>",r[rn.QE]=(0,a.EH)(o),r[rn.IE]="",r[rn.h_]=0;var i=o.match(e.regex);i&&i[rn.oI]>=5&&(r[rn.lx]=(0,a.EH)(i[2])||r[rn.lx],r[rn.IE]=(0,a.EH)(i[4]),r[rn.h_]=parseInt(i[5])||0)}else r[rn.Av]=t[rn.Av],r[rn.lx]=t[rn.lx],r[rn.QE]=t[rn.QE],r[rn.IE]=t[rn.IE],r[rn.h_]=t[rn.h_],r[rn.J$]=0;r.sizeInBytes+=r.method[rn.oI],r.sizeInBytes+=r.fileName[rn.oI],r.sizeInBytes+=r.assembly[rn.oI],r[rn.J$]+=e.baseSize,r.sizeInBytes+=r.level.toString()[rn.oI],r.sizeInBytes+=r.line.toString()[rn.oI]}return e.CreateFromInterface=function(t){return new e(t,null)},e.prototype.toInterface=function(){var e=this;return{level:e[rn.Av],method:e[rn.lx],assembly:e[rn.QE],fileName:e[rn.IE],line:e[rn.h_]}},e.regex=/^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/,e.baseSize=58,e}(),wn=n(63713),bn=n(1250),_n=n(24845),In=n(7329),Sn="enableUnhandledPromiseRejectionTracking",An="isBrowserLinkTrackingEnabled",kn="sendPageViewPerformanceInternal",Rn="populatePageViewPerformanceEvent",Pn=null;var Nn=function(){function e(t,n,r,i){(0,o.A)(e,this,(function(e){var o,u=null,l=[],d=!1;function f(e){r&&r.flush(e)}function h(){u||(u=setTimeout((function(){u=null;var e=l.slice(0),t=!1;l=[],(0,a.Iu)(e,(function(e){e()?t=!0:l.push(e)})),l.length>0&&h(),t&&f(!0)}),100))}function p(e){l.push(e),h()}r&&(o=r.logger),e.trackPageView=function(e,r){var u=e.name;if((0,a.hX)(u)||"string"!==typeof u){var l=(0,c.YE)();u=e.name=l&&l.title||""}var h=e.uri;if((0,a.hX)(h)||"string"!==typeof h){var g=(0,c.g$)();h=e.uri=g&&g.href||""}if(!i.isPerformanceTimingSupported())return t.sendPageViewInternal(e,r),f(!0),void(function(){if(null==Pn)try{Pn=!!(self&&self instanceof WorkerGlobalScope)}catch(e){Pn=!1}return Pn}()||(0,s.ZP)(o,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var v,m,y=!1,C=i.getPerformanceTiming().navigationStart;C>0&&(v=(0,bn.jj)(C,+new Date),i.shouldCollectDuration(v)||(v=void 0)),(0,a.hX)(r)||(0,a.hX)(r.duration)||(m=r.duration),!n&&isNaN(m)||(isNaN(m)&&(r||(r={}),r.duration=v),t.sendPageViewInternal(e,r),f(!0),y=!0);r||(r={}),p((function(){var n=!1;try{if(i.isPerformanceTimingDataReady()){n=!0;var l={name:u,uri:h};i[Rn](l),l.isValid||y?(y||(r.duration=l.durationMs,t.sendPageViewInternal(e,r)),d||(t[kn](l,r),d=!0)):(r.duration=v,t.sendPageViewInternal(e,r))}else C>0&&(0,bn.jj)(C,+new Date)>6e4&&(n=!0,y||(r.duration=6e4,t.sendPageViewInternal(e,r)))}catch(f){(0,s.ZP)(o,1,38,"trackPageView failed on page load calculation: "+(0,a.lL)(f),{exception:(0,c.mm)(f)})}return n}))},e.teardown=function(e,t){if(u){clearTimeout(u),u=null;var n=l.slice(0);l=[],(0,a.Iu)(n,(function(e){e()&&!0}))}}}))}return e.__ieDyn=1,e}(),On=36e5,Mn=["googlebot","adsbot-google","apis-google","mediapartners-google"];function xn(){var e=(0,c.FJ)();return e&&!!e.timing}function Dn(){var e=(0,c.FJ)(),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 Ln(){return xn()?(0,c.FJ)().timing:null}function Un(){return function(){var e=(0,c.FJ)();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0}()?(0,c.FJ)().getEntriesByType("navigation")[0]:null}function Hn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,c.w3)()||{},r=n.userAgent,o=!1;if(r)for(var i=0;i<Mn.length;i++)o=o||-1!==r.toLowerCase().indexOf(Mn[i]);if(o)return!1;for(i=0;i<e.length;i++)if(e[i]<0||e[i]>=On)return!1;return!0}var qn=function(){function e(t){var n=(0,s.y0)(t);(0,o.A)(e,this,(function(e){e[Rn]=function(t){t.isValid=!1;var r=Un(),o=Ln(),i=0,a=0,c=0,u=0,l=0;(r||o)&&(r?(i=r.duration,a=0===r.startTime?r.connectEnd:(0,bn.jj)(r.startTime,r.connectEnd),c=(0,bn.jj)(r.requestStart,r.responseStart),u=(0,bn.jj)(r.responseStart,r.responseEnd),l=(0,bn.jj)(r.responseEnd,r.loadEventEnd)):(i=(0,bn.jj)(o.navigationStart,o.loadEventEnd),a=(0,bn.jj)(o.navigationStart,o.connectEnd),c=(0,bn.jj)(o.requestStart,o.responseStart),u=(0,bn.jj)(o.responseStart,o.responseEnd),l=(0,bn.jj)(o.responseEnd,o.loadEventEnd)),0===i?(0,s.ZP)(n,2,10,"error calculating page view performance.",{total:i,network:a,request:c,response:u,dom:l}):e.shouldCollectDuration(i,a,c,u,l)?i<Math.floor(a)+Math.floor(c)+Math.floor(u)+Math.floor(l)?(0,s.ZP)(n,2,8,"client performance math error.",{total:i,network:a,request:c,response:u,dom:l}):(t.durationMs=i,t.perfTotal=t.duration=(0,Jt.bb)(i),t.networkConnect=(0,Jt.bb)(a),t.sentRequest=(0,Jt.bb)(c),t.receivedResponse=(0,Jt.bb)(u),t.domProcessing=(0,Jt.bb)(l),t.isValid=!0):(0,s.ZP)(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:i,network:a,request:c,response:u,dom:l}))},e.getPerformanceTiming=Ln,e.isPerformanceTimingSupported=xn,e.isPerformanceTimingDataReady=Dn,e.shouldCollectDuration=Hn}))}return e.__ieDyn=1,e}(),Fn=function(){function e(t,n){var r="prevPageVisitData";(0,o.A)(e,this,(function(e){e.trackPreviousPageVisit=function(e,o){try{var i=function(e,n){var o=null;try{o=function(){var e=null;try{if((0,Zt.AN)()){var n=(0,a.x3)(),o=(0,Zt.vH)(t,r);o&&(0,c.Z)()&&((e=(0,c.hm)().parse(o)).pageVisitTime=n-e.pageVisitStartTime,(0,Zt.v7)(t,r))}}catch(i){(0,s.OG)(t,"Stop page visit timer failed: "+(0,c.mm)(i)),e=null}return e}(),function(e,n){try{if((0,Zt.AN)()){null!=(0,Zt.vH)(t,r)&&(0,a.$8)("Cannot call startPageVisit consecutively without first calling stopPageVisit");var o=new Bn(e,n),i=(0,c.hm)().stringify(o);(0,Zt.Dt)(t,r,i)}}catch(u){(0,s.OG)(t,"Call to start failed: "+(0,c.mm)(u))}}(e,n)}catch(i){(0,s.OG)(t,"Call to restart failed: "+(0,c.mm)(i)),o=null}return o}(e,o);i&&n(i.pageName,i.pageUrl,i.pageVisitTime)}catch(u){(0,s.OG)(t,"Auto track page visit time failed, metric will not be collected: "+(0,c.mm)(u))}},(0,a.r)(e,"_logger",(function(){return t})),(0,a.r)(e,"pageVisitTimeTrackingHandler",(function(){return n}))}))}return e.__ieDyn=1,e}(),Bn=function(e,t){this.pageVisitStartTime=(0,a.x3)(),this.pageName=e,this.pageUrl=t},Kn=function(e,t){var n=this,r={};n.start=function(t){"undefined"!==typeof r[t]&&(0,s.ZP)(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 c=r[t];if(isNaN(c))(0,s.ZP)(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var u=+new Date,l=(0,bn.jj)(c,u);n.action(t,o,l,i,a)}delete r[t],r[t]=void 0}};function jn(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function Yn(e,t){return(e=e||t)<6e4&&(e=6e4),e}function Gn(e){return e||(e={}),e.sessionRenewalMs=Yn(e.sessionRenewalMs,18e5),e.sessionExpirationMs=Yn(e.sessionExpirationMs,864e5),e.disableExceptionTracking=(0,Jt.Dt)(e.disableExceptionTracking),e.autoTrackPageVisitTime=(0,Jt.Dt)(e.autoTrackPageVisitTime),e.overridePageViewDuration=(0,Jt.Dt)(e.overridePageViewDuration),e[Sn]=(0,Jt.Dt)(e[Sn]),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isStorageUseDisabled=(0,Jt.Dt)(e.isStorageUseDisabled),e[An]=(0,Jt.Dt)(e[An]),e.enableAutoRouteTracking=(0,Jt.Dt)(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=(0,Jt.Dt)(e.enableDebug),e.disableFlushOnBeforeUnload=(0,Jt.Dt)(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=(0,Jt.Dt)(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e}var zn=function(e){function t(){var n,i,s,u,l,d,f,p,g,v,C,T,E,w,b=e.call(this)||this;b.identifier=en.Vp,b.priority=180,b.autoRoutePVDelay=500;var _,I,S;return(0,o.A)(t,b,(function(e,t){var o=t._addHook;function b(t,n,r,o,i){e.diagLog().throwInternal(t,n,r,o,i)}function A(){n=null,i=null,s=null,u=null,l=null,d=null,f=!1,p=!1,g=!1,v=!1,C=!1,T=!1,E=!1,w=!1,0;var e=(0,c.g$)(!0);_=e&&e.href||"",I=null,S=null}A(),e.getCookieMgr=function(){return(0,m.um)(e.core)},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=(0,tn.V)(t,an.dataType,an.envelopeType,e.diagLog(),n);e.core.track(r)}catch(o){b(2,39,"trackTrace failed, trace will not be collected: "+(0,a.lL)(o),{exception:(0,c.mm)(o)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(t){b(1,29,"startTrackEvent failed, event will not be collected: "+(0,a.lL)(t),{exception:(0,c.mm)(t)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(o){b(1,30,"stopTrackEvent failed, event will not be collected: "+(0,a.lL)(o),{exception:(0,c.mm)(o)})}},e.trackTrace=function(t,n){try{var r=(0,tn.V)(t,sn.dataType,sn.envelopeType,e.diagLog(),n);e.core.track(r)}catch(o){b(2,39,"trackTrace failed, trace will not be collected: "+(0,a.lL)(o),{exception:(0,c.mm)(o)})}},e.trackMetric=function(t,n){try{var r=(0,tn.V)(t,un.dataType,un.envelopeType,e.diagLog(),n);e.core.track(r)}catch(o){b(1,36,"trackMetric failed, metric will not be collected: "+(0,a.lL)(o),{exception:(0,c.mm)(o)})}},e.trackPageView=function(t,n){try{var o=t||{};s.trackPageView(o,(0,r.Im)((0,r.Im)((0,r.Im)({},o.properties),o.measurements),n)),e.config.autoTrackPageVisitTime&&l.trackPreviousPageVisit(o.name,o.uri)}catch(i){b(1,37,"trackPageView failed, page view will not be collected: "+(0,a.lL)(i),{exception:(0,c.mm)(i)})}},e.sendPageViewInternal=function(t,n,r){var o=(0,c.YE)();o&&(t.refUri=void 0===t.refUri?o.referrer:t.refUri);var i=(0,tn.V)(t,ln.dataType,ln.envelopeType,e.diagLog(),n,r);e.core.track(i),0},e[kn]=function(t,n,r){var o=(0,tn.V)(t,dn.dataType,dn.envelopeType,e.diagLog(),n,r);e.core.track(o)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{u[Rn](r),e[kn](r,n)}catch(o){b(1,37,"trackPageViewPerformance failed, page view will not be collected: "+(0,a.lL)(o),{exception:(0,c.mm)(o)})}},e.startTrackPage=function(e){try{if("string"!==typeof e){var t=(0,c.YE)();e=t&&t.title||""}i.start(e)}catch(n){b(1,31,"startTrackPage failed, page view may not be collected: "+(0,a.lL)(n),{exception:(0,c.mm)(n)})}},e.stopTrackPage=function(t,n,r,o){try{if("string"!==typeof t){var s=(0,c.YE)();t=s&&s.title||""}if("string"!==typeof n){var u=(0,c.g$)();n=u&&u.href||""}i.stop(t,n,r,o),e.config.autoTrackPageVisitTime&&l.trackPreviousPageVisit(t,n)}catch(d){b(1,32,"stopTrackPage failed, page view will not be collected: "+(0,a.lL)(d),{exception:(0,c.mm)(d)})}},e.sendExceptionInternal=function(t,n,r){var o=t&&(t.exception||t.error)||(0,a.bJ)(t)&&t||{name:t&&typeof t,message:t||nn.R2};t=t||{};var i=new Cn(e.diagLog(),o,t.properties||n,t.measurements,t.severityLevel,t.id).toInterface(),s=(0,tn.V)(i,Cn.dataType,Cn.envelopeType,e.diagLog(),n,r);e.core.track(s)},e.trackException=function(t,n){t&&!t.exception&&t.error&&(t.exception=t.error);try{e.sendExceptionInternal(t,n)}catch(r){b(1,35,"trackException failed, exception will not be collected: "+(0,a.lL)(r),{exception:(0,c.mm)(r)})}},e._onerror=function(t){var n=t&&t.error,r=t&&t.evt;try{if(!r){var o=(0,c.zk)();o&&(r=o.event)}var i=t&&t.url||((0,c.YE)()||{}).URL,s=t.errorSrc||"window.onerror@"+i+":"+(t.lineNumber||0)+":"+(t.columnNumber||0),u={errorSrc:s,url:i,lineNumber:t.lineNumber||0,columnNumber:t.columnNumber||0,message:t.message};(0,Jt.vv)(t.message,t.url,t.lineNumber,t.columnNumber,t.error)?function(t,n){var r=(0,tn.V)(t,Cn.dataType,Cn.envelopeType,e.diagLog(),n);e.core.track(r)}(Cn.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,s),u):(t.errorSrc||(t.errorSrc=s),e.trackException({exception:t,severityLevel:3},u))}catch(d){var l=n?n.name+", "+n.message:"null";b(1,11,"_onError threw exception while logging error, error will not be collected: "+(0,a.lL)(d),{exception:(0,c.mm)(d),errorString:l})}},e.addTelemetryInitializer=function(t){if(e.core)return e.core.addTelemetryInitializer(t);d||(d=[]),d.push(t)},e.initialize=function(r,m,b,A){if(!e.isInitialized()){(0,a.hX)(m)&&(0,a.$8)("Error initializing"),t.initialize(r,m,b,A),r.storagePrefix&&(0,Zt.vh)(r.storagePrefix);try{S=(0,D.Hm)((0,y.Z)(e.identifier),m.evtNamespace&&m.evtNamespace()),d&&((0,a.Iu)(d,(function(e){m.addTelemetryInitializer(e)})),d=null);var k=function(t){var n=(0,h.i8)(null,t,e.core),r=e.identifier,o=Gn(t),i=e.config=n.getExtCfg(r);void 0!==o&&(0,a.z)(o,(function(e,t){i[e]=n.getConfig(r,e,t),void 0===i[e]&&(i=t)}));return i}(r);!function(e){(0,a.b0)(e.isStorageUseDisabled)||(e.isStorageUseDisabled?(0,Zt.Nu)():(0,Zt.iw)())}(k),u=new qn(e.core),s=new Nn(e,k.overridePageViewDuration,e.core,u),l=new Fn(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){f=t[An]||n[An],function(){if(!p&&f){var t=["/browserLinkSignalR/","/__browserLink/"],n=function(e){if(f&&e.baseType===wn.A.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),p=!0}}()}(k,r),(n=new Kn(e.diagLog(),"trackEvent")).action=function(t,n,r,o,i){o||(o={}),i||(i={}),o.duration=r.toString(),e.trackEvent({name:t,properties:o,measurements:i})},(i=new Kn(e.diagLog(),"trackPageView")).action=function(t,n,r,o,i){(0,a.hX)(o)&&(o={}),o.duration=r.toString();var s={name:t,uri:n,properties:o,measurements:i};e.sendPageViewInternal(s,o)},(0,c.Vd)()&&(function(t){var n=(0,c.zk)(),r=(0,c.g$)(!0);(C=t.disableExceptionTracking)||T||t.autoExceptionInstrumented||(o((0,In.K_)(n,"onerror",{ns:S,rsp:function(t,n,r,o,i,a){C||!0===t.rslt||e._onerror(Cn.CreateAutoException(n,r,o,i,a,t.evt))}},!1)),T=!0);!function(t,n,r){(E=!0===t[Sn])&&!w&&(o((0,In.K_)(n,"onunhandledrejection",{ns:S,rsp:function(t,n){E&&!0!==t.rslt&&e._onerror(Cn.CreateAutoException(function(e){if(e&&e.reason){var t=e.reason;return!(0,a.Kg)(t)&&(0,a.Tn)(t.toString)?t.toString():(0,c.mm)(t)}return e||""}(n),r?r.href:"",0,0,n,t.evt))}},!1)),w=!0,t.autoUnhandledPromiseInstrumented=w)}(t,n,r)}(k),function(t){var n=(0,c.zk)(),r=(0,c.g$)(!0);if(g=!0===t.enableAutoRouteTracking,n&&g&&(0,c.tw)()){var i=(0,c.JK)();(0,a.Tn)(i.pushState)&&(0,a.Tn)(i.replaceState)&&typeof Event!==ce.bA&&function(t,n,r,i){var a=t.namePrefix||"";function s(){g&&jn(n,(0,_n.N)(a+"locationchange"))}function c(){if(I?(_=I,I=i&&i.href||""):I=i&&i.href||"",g){var t=function(){var t=null;e.core&&e.core.getTraceCtx&&(t=e.core.getTraceCtx(!1));if(!t){var n=e.core.getPlugin(en._u);if(n){var r=n.plugin.context;r&&(t=(0,bn.Ft)(r.telemetryTrace))}}return t}();if(t){t.setTraceId((0,It.cL)());var n="_unknown_";i&&i.pathname&&(n=i.pathname+(i.hash||"")),t.setName((0,on.Rr)(e.diagLog(),n))}setTimeout(function(t){e.trackPageView({refUri:t,properties:{duration:0}})}.bind(e,_),e.autoRoutePVDelay)}}v||(o((0,In.K_)(r,"pushState",{ns:S,rsp:function(){g&&(jn(n,(0,_n.N)(a+"pushState")),jn(n,(0,_n.N)(a+"locationchange")))}},!0)),o((0,In.K_)(r,"replaceState",{ns:S,rsp:function(){g&&(jn(n,(0,_n.N)(a+"replaceState")),jn(n,(0,_n.N)(a+"locationchange")))}},!0)),(0,D.mB)(n,a+"popstate",s,S),(0,D.mB)(n,a+"locationchange",c,S),v=!0)}(t,n,i,r)}}(k))}catch(R){throw e.setInitialized(!1),R}}},e._doTeardown=function(e,t){s&&s.teardown(e,t),(0,D.ML)(window,null,null,S),A()},(0,a.r)(e,"_pageViewManager",(function(){return s})),(0,a.r)(e,"_pageViewPerformanceManager",(function(){return u})),(0,a.r)(e,"_pageVisitTimeManager",(function(){return l})),(0,a.r)(e,"_evtNamespace",(function(){return"."+S}))})),b}return(0,r.qU)(t,e),t.Version="2.8.16",t.getDefaultConfig=Gn,t}(T.s),Vn=n(21814),Wn=n(49382),Xn=n(5322);function Qn(e,t,n){var r="";return t&&t[n]?r=t[n]:e&&(r=e[n]),r}var $n=function(){function e(e,t,n,r,o,i,a){this._webAnalyticsPlugin=e,this._config=t,this._contentHandler=n,this._id=r,this._pageTagsCallback=o,this.metaTags=i,this._traceLogger=a,this._pageTags={}}return e.prototype._setBasicProperties=function(e,t){e.ver="1.0",e.id=this._id.getLastPageViewId(),(0,u.yD)(e.name)||(e.name=Vn.m7(this._config,t)),!(0,u.yD)(e.uri)&&u.P$&&(e.uri=Vn.K(this._config,(0,c.g$)()))},e.prototype._setCommonProperties=function(e,t,n){var r=this;r._setBasicProperties(e,n),r._setPageTags(e,n),r._pageTypeMetaTag=Qn(r.metaTags,r._config.coreData,"pageType"),r._marketMetaTag=Qn(r.metaTags,r._config.coreData,"market"),r._behaviorMetaTag=Qn(r.metaTags,r._config.coreData,"behavior"),(0,u.yD)(n.pageType)&&(e.pageType=n.pageType),(0,u.yD)(r._pageTypeMetaTag)&&!(0,u.yD)(e.pageType)&&(e.pageType=r._pageTypeMetaTag),(0,u.yD)(r._marketMetaTag)&&(e.market=r._marketMetaTag),e.isLoggedIn=Vn.JT(r._config),t.cookieEnabled=(0,m.gi)()},e.prototype._setPageTags=function(e,t){var n=this;n._pageTags={},n.metaTags&&(n._pageTags.metaTags=n._pageTags.metaTags||{},(0,a.z)(n.metaTags,(function(e,t){"behavior"!==e&&"market"!==e&&"pageType"!==e&&(n._pageTags.metaTags[e]=t)}))),n._config.coreData&&n._config.coreData.pageTags&&(n._pageTags=(0,u.X$)(!0,n._pageTags,n._config.coreData.pageTags)),n._pageTagsCallback&&(n._pageTags=(0,u.X$)(!0,n._pageTags,n._pageTagsCallback())),(0,u.yD)(t.pageTags)&&(n._pageTags=(0,u.X$)(!0,n._pageTags,t.pageTags)),e.properties=e.properties||{},e.properties.pageTags=n._pageTags},e.prototype._getBehavior=function(e){var t;return e&&(0,u.yD)(e.behavior)?t=e.behavior:(0,u.yD)(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if((0,u.yD)(e)){var t=void 0,n=parseInt(e);if((t=isNaN(n)?Xn.n[e]:n)in Xn.n)return t}return 0},e.prototype._getContentFormatted=function(e){if((0,u.yD)(e))return(0,a.cy)(e)?JSON.stringify(e):(0,Wn.fw)(JSON.stringify(e))},e}(),Jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.qU)(t,e),t.prototype.trackContentUpdate=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.ContentUpdate",baseType:"ContentUpdateData",ext:n,data:{},baseData:{},latency:3};(0,a.Iu)(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],(function(t){r.baseData[t]=e[t]})),(0,a.z)(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.captureContentUpdate=function(e,t){e=(0,u.yD)(e)?e:{};var n={},r=(0,u.yD)(t)?t:{};this._setCommonProperties(n,r,e),n.behavior=this._getBehavior(e),(0,u.yD)(e.actionType)&&(n.actionType=e.actionType);var o=(0,Wn.IX)(),i=(0,Wn.cT)();n.pageHeight=u.g8?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),(0,u.yD)(e.isDomComplete)?r.isDomComplete=e.isDomComplete:r.isDomComplete=!1,this.trackContentUpdate(n,r)},t}($n),Zn=n(14371),er=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.qU)(t,e),t.prototype.trackPageAction=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.PageAction",baseType:"PageActionData",ext:n,data:{},baseData:{},latency:1};(0,a.b0)(e.sync)||(r.sync=e.sync),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.actionType=e.actionType,r.baseData.behavior=e.behavior,r.baseData.clickCoordinates=e.clickCoordinates,r.baseData.content=e.content,r.baseData.contentVer=e.contentVer,r.baseData.targetUri=e.targetUri,(0,a.z)(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageAction=function(e,t,n,r){t=(0,u.yD)(t)?t:{};var o={},i=(0,u.yD)(n)?n:{};this._setCommonProperties(o,i,t),o.isManual=!t.isAuto,o.behavior=this._getBehavior(t);var s={};if(e=(0,Wn.St)(e),r)o.behavior=9;else{var c=this._config||{};if((e&&(0,a.b0)(c.syncPageActionNavClick)||c.syncPageActionNavClick)&&(t.actionType===Zn.X.CLICKLEFT||t.actionType===Zn.X.KEYBOARDENTER)&&"a"===e.tagName.toLowerCase()){var l=(e.getAttribute("href")||"").toLowerCase();l&&((0,a.tG)(l,"https:")||(0,a.tG)(l,"http:")||(0,a.tG)(l,".")||(0,a.tG)(l,"/"))&&(o.sync=3)}}if(e&&(o.targetUri=Vn.x3(e),s=this._contentHandler.getElementContent(e,Zn.B.PAGE_ACTION),(s=(0,u.X$)(s,this._getCustomTags(e)))&&s.bhvr&&!(0,u.yD)(t.behavior))){var d=(0,Wn.E0)(s,"bhvr");o.behavior=this._getValidBehavior(d)}(0,u.yD)(t.actionType)&&(o.actionType=t.actionType),(0,u.yD)(t.clickCoordinateX)&&(0,u.yD)(t.clickCoordinateY)&&(o.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),(0,u.yD)(t.targetUri)&&(o.targetUri=t.targetUri),o.contentVer="2.0";var f=t.content||s;if(!(0,a.cy)(f)){var h=this._config.callback.pageActionContentTags;f=(0,u.X$)(f,"function"===typeof h?h(e):{},t&&t.contentTags?t.contentTags:{})}o.content=this._getContentFormatted(f),i.timeToAction=this._getTimeToClick(),i.refUri=(0,u.yD)(t.refUri)?t.refUri:this._config.coreData.referrerUri;var p=Vn.gJ(this._config,this._traceLogger);p&&(i.cookies=p),this.trackPageAction(o,i)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!Vn.Il(e))for(var n in e.attributes)if(n&&e.attributes[n]){var r=e.attributes[n].name;r&&0===r.toLowerCase().indexOf("ms.")&&(t[r]=e.attributes[n].value)}e=e.parentElement||e.parentNode}return t},t.prototype._getTimeToClick=function(){var e=(0,c.FJ)();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},t}($n),tr=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,null,r,{},{},o)||this;return s._webAnalyticsPlugin=t,s._config=n,s._id=r,s._traceLogger=o,s._timestamp=i,s._maxScroll=a,s}return(0,r.qU)(t,e),t.prototype.trackPageUnload=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.PageUnload",baseType:"PageUnloadData",ext:n,data:{},baseData:{},latency:3},o=this._config||{};((0,a.b0)(o.syncUnloadAction)||o.syncUnloadAction)&&(r.sync=3),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,(0,a.z)(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageUnload=function(e,t){e=(0,u.yD)(e)?e:{};var n={},r=(0,u.yD)(t)?t:{},o=u.g8?document.body.scrollHeight:0;if(this._setBasicProperties(n,e),n.isManual=!e.isAuto,r.dwellTime=this._timestamp._recordTimeSpan("dwellTime",!0),r.scrollDepth=e.scrollDepth||this._maxScroll.v.toString()+"/"+o.toString(),r.vpHeight=(0,Wn.IX)().h,r.vScrollOffset=e.vScrollOffset||this._maxScroll.v,u.P$){var i=(0,c.FJ)(),a=i?i.timing:null;a&&a.loadEventStart&&a.navigationStart&&a.loadEventStart>0&&(r.pageLoadTime=a.loadEventStart-a.navigationStart)}this.trackPageUnload(n,r)},t}($n),nr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.qU)(t,e),t.prototype.capturePageView=function(e,t){e=(0,u.yD)(e)?e:{};var n={},r=(0,u.yD)(t)?t:{};this._setCommonProperties(n,r,e),n.refUri=(0,u.yD)(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,n.isManual=!e.isAuto;var o=Vn.gJ(this._config,this._traceLogger);o&&(r.cookies=o),r.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(n,r)},t}($n),rr=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.qU)(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=(0,u.yD)(e)?e:{};var n={},r=(0,u.yD)(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}($n),or=n(6746),ir={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"}},ar={parentId:"parentId",parentName:"parentName"},sr={parentId:"pI",parentName:"pN"},cr=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?ir.shortNames:ir.longNames}return e.prototype.getMetadata=function(){var e={},t={};return u.g8&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),(0,u.X$)(!0,t,e)},e.prototype.getVisibleContent=function(){var e=(0,Wn.IX)(),t=(0,Wn.we)(e),n=null;u.g8&&(n=document.querySelectorAll((0,Wn.fw)(this._contentBlobFieldNames.areaName)+","+(0,Wn.fw)(this._contentBlobFieldNames.slotNumber)+","+(0,Wn.fw)(this._config.biBlobAttributeTag)));var r=[];if(n)for(var o=0;o<n.length;o++){var i=n[o];if(!(0,Wn.U$)(i)&&(0,Wn.wm)(i,t)){var a=this.getElementContent(i,Zn.B.CONTENT_UPDATE);a&&r.push(a)}}return r},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){(0,s.ZP)(this._traceLogger,1,506,"Can not parse "+r)}}else this._isTrackedWithDataBi(e)&&(o=e,i=(0,u.X$)(i,this._populateElementContentwithDataBi(o,e)));else if((n=(0,Wn.RB)(e,this._config.biBlobAttributeTag))&&(r=n.getAttribute(this._config.biBlobAttributeTag)),r)try{i=JSON.parse(r)}catch(a){(0,s.ZP)(this._traceLogger,1,506,"Can not parse "+r)}else o=(0,Wn.IA)(e,this._isTrackedWithDataBi),i=(0,u.X$)(i,this._populateElementContentwithDataBi(o,e));return(0,Wn.iK)(i),this._config.autoCapture.lineage&&t===Zn.B.PAGE_ACTION&&(i=(0,u.X$)(i,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(i=(0,u.X$)(i,this._getParentDetails(n||o,i))),i},e.prototype.getLineageDetails=function(e){for(var t,n,r,o=[],i=[],a=this._config.biBlobAttributeTag,c="data-module-id";e;){var u=e.getAttribute(a)||e[a],l=e.getAttribute(c)||e["data-module-id"];if(u){try{var d=JSON.parse(u)}catch(f){(0,s.ZP)(this._traceLogger,1,507,"Can not parse "+u)}d&&(n=d.cN||d.cT,r=d.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=(0,Wn.RB)(e,this._contentBlobFieldNames.areaName),o=(0,u.X$)({},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||(0,s.ZP)(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 c,l=0;l<e.attributes.length;l++){if((c=e.attributes[l]).name!==this._contentBlobFieldNames.id&&c.name!==this._contentBlobFieldNames.areaName&&c.name!==this._contentBlobFieldNames.slotNumber&&c.name!==this._contentBlobFieldNames.contentName&&c.name!==this._contentBlobFieldNames.contentSource&&c.name!==this._contentBlobFieldNames.templateName&&c.name!==this._contentBlobFieldNames.productId&&c.name!==this._contentBlobFieldNames.contentType&&c.name!==this._contentBlobFieldNames.parentId&&c.name!==this._contentBlobFieldNames.parentName&&-1!==c.name.indexOf("data-bi-"))n[c.name.replace("data-bi-","")]=c.value}return n},e.prototype._getMetaDataFromDOM=function(e,t){var n,r={};if(u.g8){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=(0,Wn.St)(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||Vn.Il(e)||!e.tagName)return"";var n,r=(0,c.YE)()||{};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?sr.parentId:ar.parentId,r=this._contentBlobFieldNames.isShortNames?sr.parentName:ar.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,c=(0,Wn.IA)(e.parentElement,this._isTracked);if(c){var u=c.getAttribute(a)||e[a];if(u){try{var l=JSON.parse(u)}catch(d){(0,s.ZP)(this._traceLogger,1,507,"Can not parse "+u)}l&&(r=l.id,o=l.cN)}else r=c.getAttribute(this._contentBlobFieldNames.id),o=c.getAttribute(this._contentBlobFieldNames.contentName);r&&(i[t]=r),o&&(i[n]=o)}return i},e}();var ur=function(e){function t(){var n,r,i,c,l,d,f,h,p=e.call(this)||this;p.identifier="WebAnalyticsPlugin",p.version="3.2.14";var g,v,m,y,C=!1;return(0,o.A)(t,p,(function(e,t){function o(){n=null,r=null,i=null,c=null,l=null,d=null,f=null,h={h:0,v:0},C=!1,g=null,v=null,m=null,y=null}function T(e){m&&(e&&(y.pageView&&m.pageView(),y.onLoad&&m.onLoad()),y.click&&m.click(),y.scroll&&m.scroll(f.debounceMs),y.resize&&m.resize(f.debounceMs),(y.onUnload||f.manualPageUnload)&&m.maxScroll(h),y.onUnload&&m.onUnload())}function E(e){var t={};return void 0!==e.isManual&&(t.web={},t.web.isManual=void 0===e.isManual||e.isManual,delete e.isManual),t}o(),e.updateCoreDataConfig=function(e){f.coreData=(0,u.X$)(!0,f.coreData,e)},e.refreshMetadata=function(){var e=v.getMetadata();n.metaTags=e,i.metaTags=e,r.metaTags=e,l.metaTags=e},e.initialize=function(o,C,E){var w=C;o.extensionConfig=o.extensionConfig||[],o.extensionConfig[e.identifier]=o.extensionConfig[e.identifier]||{},e._config=f=function(e){var t={useDefaultContentName:!0,useShortNameForContentBlob:!0,debounceMs:{scroll:600,resize:3e3},biBlobAttributeTag:"data-m",isLoggedIn:!1,shareAuthStatus:!1,cookiesToCollect:["MSFPC","ANON"],autoCapture:{pageView:!0,onLoad:!0,onUnload:!0,click:!0,scroll:!1,resize:!1,lineage:!1,jsError:!0,msTags:!0},callback:{pageName:null,pageActionPageTags:null,pageViewPageTags:null,contentUpdatePageTags:null,pageActionContentTags:null,signedinStatus:null},coreData:{referrerUri:u.g8?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}},autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com"},n=[];return(0,a.z)(t,(function(e,t){(0,a.Gv)(t)&&n.push(e)})),(0,Wn.gY)(e,n),(0,u.X$)(!0,t,e)}(o.extensionConfig[e.identifier]),y=f.autoCapture;var b=w.getWParam;if(w.getWParam=function(){var e=0;return f.mscomCookies&&(e|=1),e|b()},o.extensionConfig[e.identifier].disableExceptionTracking=!y.jsError,t.initialize(o,C,E),v=v||new cr(f,e.diagLog()),m=m||new or.O(e,e.diagLog()),f.manageCv){for(var _=0;_<E.length;_++)if("CorrelationVectorPlugin"===E[_].identifier){f.manageCv=!0,d=E[_];break}d||((0,s.ZP)(e.diagLog(),2,508,'Automatic Cv management is set to "true" in config.  However, cv plugin is not available. Disabling automatic Cv management'),f.manageCv=!1)}e.id=new Qt(C),g=new $t;var I=v.getMetadata();n=new nr(p,f,v,e.id,f.callback.pageViewPageTags,I,e.diagLog()),r=new er(p,f,v,e.id,f.callback.pageActionPageTags,I,e.diagLog()),i=new Jn(p,f,v,e.id,f.callback.contentUpdatePageTags,I,e.diagLog()),c=new tr(p,f,e.id,e.diagLog(),g,h),l=new rr(p,f,v,e.id,f.callback.pageViewPageTags,I,e.diagLog()),f.syncMuid&&(0,Vn.rJ)((function(){var t=e.id.getMuidHost(f.muidDomain);e.id.syncMuid(t)}),e._evtNamespace),T(!0)},e.processTelemetry=function(n,r){(0,u.u9)(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?f.manageCv&&(i=d.getCv())&&i.increment():f.manageCv&&((i=d.getCv())?i.seed():i=d.getCv()),t.processTelemetry(o,r)},e.trackEvent=function(t,n){t.latency=t.latency||1,t.baseData=t.baseData||{},t.data=t.data||{},(0,u.yD)(n)&&(0,a.z)(n,(function(e,n){t.data[e]=n})),e.core.track(t)},e.trackPageView=function(n,r){g._recordTimeSpan("dwellTime",!1),h.v=0,C=!1,e.id.initializeIds(),n.id=e.id.getLastPageViewId(),t.sendPageViewInternal(n,r,E(n))},e.capturePageView=function(e,t){n.capturePageView(e,t)},e.trackPageViewPerformance=function(e,n){t.sendPageViewPerformanceInternal(e,n,E(e))},e.capturePageViewPerformance=function(e,t){l.capturePageViewPerformance(e,t)},e.trackException=function(e,n){e.id=e.id||(0,u.gj)(),t.sendExceptionInternal(e,n,E(e))},e.trackPageAction=function(e,t){r.trackPageAction(e,t)},e.capturePageAction=function(e,t,n,o){(0,Wn.hj)(e,t)&&r.capturePageAction(e,t,n,o)},e.trackContentUpdate=function(e,t){i.trackContentUpdate(e,t)},e.captureContentUpdate=function(e,t){i.captureContentUpdate(e,t)},e.trackPageUnload=function(e,t){C||(C=!0,c.trackPageUnload(e,t))},e.capturePageUnload=function(e,t){C||(C=!0,c.capturePageUnload(e,t))},e._populatePageViewPerformance=function(t){var n=e._pageViewPerformanceManager;n&&n.populatePageViewPerformanceEvent(t)},e.setContentHandler=function(e){v=e},e.setAutoCaptureHandler=function(e){m!==e&&(m&&m.teardown(),m=e,T(!1))},e._doTeardown=function(e,n){m&&m.teardown(e,n),t._doTeardown(e,n),o()}})),p}return(0,r.qU)(t,e),t.__ieDyn=1,t}(zn),lr=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],dr=["queue","extensions","version","sv"],fr=function(e){function t(){var n,r,l,d,f=e.call(this)||this;function h(){l=new Oe,d=new Vt,r=new ur}return(0,o.A)(t,f,(function(e,t){h(),e.initialize=function(n,o){(0,i.r2)(e,(function(){return"ApplicationInsights:initialize"}),(function(){var i=[d,r];if(o&&(i=i.concat(o)),n||(0,a.$8)("You must provide a config object!"),n.channels&&n.channels.length>0){for(var u=!1,f=0;f<n.channels[0].length;f++)if(n.channels[0][f].identifier===l.identifier){u=!0;break}u||n.channels[0].push(l)}else n.channels=[[l]];var h=n.extensionConfig=n.extensionConfig||[];h[l.identifier]=h[l.identifier]||n&&n.channelConfiguration||{},h[d.identifier]=h[d.identifier]||n&&n.propertyConfiguration||{},h[r.identifier]=h[r.identifier]||n&&n.webAnalyticsConfiguration||{};try{t.initialize(n,i)}catch(p){(0,s.ZP)(e.logger,1,514,"Failed to initialize SDK."+(0,c.mm)(p))}}),(function(){return{config:n,extensions:o}}))},e._getDbgPlgTargets=function(){return[f.config]},e.getPropertyManager=function(){return d},e.getPostChannel=function(){return l},e.getWebAnalyticsExtension=function(){return r},(0,a.o$)(e,(function(){return r}),["trackEvent","trackPageView","trackPageAction","trackContentUpdate","trackPageUnload","trackException","trackPageViewPerformance","capturePageView","capturePageViewPerformance","capturePageAction","captureContentUpdate","capturePageUnload","_onerror"]),e.emptySnippetQueue=function(t){try{if(t&&((0,a.hX)(n),(0,a.z)(e,(function(n,r){if((0,a.Kg)(n)&&!(0,a.Tn)(r)&&n&&"_"!==n[0]&&-1===(0,a.rD)(lr,n))try{t[n]=r}catch(o){(0,s.ZP)(e.logger,2,514,"Failed to set ["+n+"] during initialization."+(0,c.mm)(o))}}))),(0,a.cy)(t.queue)){for(var r=t.queue.length,o=0;o<r;o++){(0,t.queue[o])()}t.queue=void 0,delete t.queue}}catch(i){i&&(0,a.Tn)(i.toString)&&i.toString()}},e.updateSnippetDefinitions=function(e){var t=f;t.snippet=e,n=""+(e.sv||e.version||""),t.config?t.config=(0,u.X$)(!0,e.config,t.config||{}):t.config=e.config,(0,a.qz)(e,t,(function(e){return e&&-1===(0,a.rD)(lr,e)&&-1===(0,a.rD)(dr,e)}))},e.unload=function(e,n,r){void 0===e&&(e=!0),t.unload(e,(function(e){h(),n&&n(e)}),r)}})),f}return(0,r.qU)(t,e),t.__ieDyn=1,t}(x)},79697:function(e,t,n){"use strict";n.d(t,{o:function(){return C}});var r=n(73951),o=n(52917),i=n(97337),a=n(14032),s=n(50144),c=n(79383),u=n(58814),l=n(533),d=n(10387),f=n(55389),h=n(99677),p=n(70093);function g(e){try{return e.responseText}catch(t){}return""}var v=function(){function e(){}return e.prototype.makeRequest=function(e,t,n,r){var o,i=this;if((0,s.PV)()){var a=new XDomainRequest;a.open(n,e),a.onload=function(){r(200,g(a),{})},a.onerror=function(){r(400,g(a),{})},a.ontimeout=function(){r(500,g(a),{})},a.onprogress=function(){},setTimeout((function(){a.send(t)}),0)}else if((0,s.lV)())fetch(e,(o={body:t,method:n,credentials:"include"},o[p.xF]=!0,o)).then((function(e){var t={};e.headers&&e.headers.forEach((function(e,n){t[n]=e})),r(e.status,JSON.stringify(e.json()),t)})).catch((function(e){r(0,e,{})}));else if((0,s.xk)()){var u=(0,c.H$)(n,e,!0,!0);u.onload=function(){r(u.status,g(u),i._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.onerror=function(){r(u.status,g(u),i._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.ontimeout=function(){r(u.status,g(u),i._convertAllHeadersToMap(u.getAllResponseHeaders()))},u.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}(),m=function(){function e(e,t,n){this._endpointUrl="",this._logger=n,this._endpointUrl=e,this._requestHandler=new v,this.setAuthType(t)}return e.prototype.setAuthType=function(e){var t="";switch(e){case h.h.AAD:t="aad.js";break;case h.h.MSA:t="msa.js"}this._getLoginUrlPath=this._endpointUrl+"auth/GetLoginUrl/"+t,this._signOutPath=this._endpointUrl+"auth/SignOut/"+t},e.prototype.startAuthHandshake=function(){var e=this;this._requestHandler.makeRequest(this._getLoginUrlPath,"","GET",(function(t,n,r){try{var o=JSON.parse(n).webResult.authLoginUrl,i=(0,s.YE)();if(i){var a=i.createElement("iframe"),c=Math.floor(Math.random()*Math.floor(1e4));a.id="telframe"+c,a.style.display="none",a.src=o,i.body.appendChild(a),e._loginIframeId=a.id}}catch(u){(0,d.ZP)(e._logger,1,501,"Error with auth handshake process: "+u)}}))},e.prototype.cleanAuthIFrame=function(){var e=(0,s.YE)();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}(),y="authBounced",C=function(e){function t(){var n,r,f,p,g,v,C,T,E=e.call(this)||this;return E.identifier="AuthPlugin",E.priority=190,E.version="3.2.14",(0,o.A)(t,E,(function(t,o){function w(){if(f.authType!=h.h.NONE){var e=n,t=e.getWParam;e.getWParam=function(){var e=0;return(e=f.authType===h.h.MSA?8|e:16|e)|(t?t():0)}}}function b(e,n){var r=(0,s.YE)();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{_()}catch(a){(0,d.ZP)(t.diagLog(),1,502,"Error receiving auth redirect message: "+a)}}}function _(){g&&clearTimeout(g),r&&r.cleanAuthIFrame(),p=!1,I()}function I(){(0,l.Iu)(C,(function(e){e.ctx.processNext(e.item)})),C=[]}function S(){n=null,r=null,f=null,p=!1,g=null,v=null,C=[]}S(),t.initialize=function(t,o,c){var u=E;n=o,e.prototype.initialize.call(E,t,o,c),T=(0,i.Hm)((0,a.Z)(u.identifier),o.evtNamespace&&o.evtNamespace());var l=u.identifier;f=t.extensionConfig[l]||{},t.extensionConfig[l]=f,p=!1,v=f.handShakeTimeoutMs?f.handShakeTimeoutMs:5e3;var d=f.overrideAuthEndpointUrl?f.overrideAuthEndpointUrl:t.endpointUrl;function h(){I()}r=new m(d,f.authType,u.diagLog()),w();var g=t.disablePageUnloadEvents||[];(0,i.ee)(h,g,T),(0,i.Fc)(h,g,T);var y=(0,s.zk)();y&&(0,i.mB)(y,"message",(function(e){b(e,d)}),T)},t.processTelemetry=function(e,n){if(n=t._getTelCtx(n),(0,c.u9)(e,t.identifier),f.authType!==h.h.NONE&&f.loggedInStatusCallback&&!0===f.loggedInStatusCallback()){var o=(0,u.um)(t.core);if(!(0,c.UM)(o,y)){o.set(y,(0,l._u)(new Date),1800),p=!0,g=setTimeout((function(){_()}),v),r.startAuthHandshake()}}p?C.push({ctx:n,item:e}):t.processNext(e,n)},t.signOut=function(){(0,u.um)(n).del(y),r.signOutAndClearCookies(),_()},t.setAuthType=function(e){_(),f.authType=e,r.setAuthType(e),w()},t._doTeardown=function(e,t){_(),(0,i.ML)((0,s.zk)(),"message",null,T),(0,i.Ds)(null,T),(0,i.sq)(null,T),S()},(0,l.r)(t,"_authHandler",(function(){return r})),(0,l.r)(t,"_authConfig",(function(){return f})),(0,l.r)(t,"_eventQueue",(function(){return C})),(0,l.r)(t,"_handshakeInProgress",(function(){return p})),(0,l.r)(t,"_evtNamespace",(function(){return"."+T}))})),E}return(0,r.qU)(t,e),t.__ieDyn=1,t}(f.s)},99677:function(e,t,n){"use strict";n.d(t,{h:function(){return r}});var r={NONE:0,MSA:1,AAD:2}},83660:function(e,t,n){"use strict";n.d(t,{S:function(){return o},_0:function(){return a},hj:function(){return i},m5:function(){return r}});var r="",o="https://browser.events.data.microsoft.com/OneCollector/1.0/",i="version",a="properties"},79383:function(e,t,n){"use strict";n.d(t,{EO:function(){return C},F2:function(){return N},Go:function(){return w},H$:function(){return O},Hh:function(){return T},P$:function(){return m},TC:function(){return E},UM:function(){return b},WB:function(){return S},X$:function(){return I},g8:function(){return v},gj:function(){return _},u9:function(){return R},xE:function(){return h},yD:function(){return y}});var r,o=n(50144),i=n(533),a=n(58814),s=n(87390),c=n(50068),u=n(97337),l=n(33571),d=n(21336),f=n(83660),h="1DS-Web-JS-3.2.14",p="withCredentials",g=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),v=Boolean((0,o.YE)()),m=Boolean((0,o.zk)());function y(e){return!(e===f.m5||(0,i.hX)(e))}function C(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return f.m5}function T(e){return!!(e&&(0,i.Et)(e)&&e>=1&&e<=4)}function E(e,t,n){if(!t&&!y(t)||"string"!==typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,i.cy)(t))t={value:t};else if("object"!==r||c.J$.call(t,"value")){if((0,i.hX)(t.value)||t.value===f.m5||!(0,i.Kg)(t.value)&&!(0,i.Et)(t.value)&&!(0,i.Lm)(t.value)&&!(0,i.cy)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,i.cy)(t.value)&&!k(t.value))return null;if(!(0,i.hX)(t.kind)){if((0,i.cy)(t.value)||!A(t.kind))return null;t.value=t.value.toString()}return t}function w(e,t,n){var r=-1;if(!(0,i.b0)(e))if(t>0&&(32===t?r=8192:t<=13&&(r=t<<5)),function(e){if(e>=0&&e<=9)return!0;return!1}(n))-1===r&&(r=0),r|=n;else{var o=g[P(e)]||-1;-1!==r&&-1!==o?r|=o:6===o&&(r=o)}return r}function b(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||f.m5}function _(e){void 0===e&&(e="D");var t=(0,s.aq)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,f.m5)),t}function I(e,t,n,r,o){var a={},s=!1,u=0,l=arguments.length,d=Object[c.vR],f=arguments;for("[object Boolean]"===d.toString.call(f[0])&&(s=f[0],u++);u<l;u++){e=f[u];(0,i.z)(e,(function(e,t){s&&t&&(0,i.Gv)(t)?(0,i.cy)(t)?(a[e]=a[e]||[],(0,i.Iu)(t,(function(t,n){t&&(0,i.Gv)(t)?a[e][n]=I(!0,a[e][n],t):a[e][n]=t}))):a[e]=I(!0,a[e],t):a[e]=t}))}return a}var S=s.UU;function A(e){return 0===e||e>0&&e<=13||32===e}function k(e){return e.length>0}function R(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=S()}function P(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===c._1&&(t=4,(0,i.cy)(e)?(t=4096,e.length>0&&(t|=P(e[0]))):c.J$.call(e,"value")&&(t=8192|P(e.value)))}return t}c.bA,c._1,c.bA,i.Iu,i.rD,i.W$,i.KT,i.cG,i._u,o.lV,i.Kg,i.Et,i.Lm,i.Tn,i.cy,i.Gv,i.EH,o.Uf,i._u,o.PV,a.gi,a.It,i.r,u.ee,u.So,i.Cv,i.z,i.Ed,i.b0,i.hX,i.mQ,i.Tn,i.Gv,i.$P,i.cy,i.bJ,i.Kg,i.Et,i.Lm,i._u,i.Iu,i.rD,i.W$,i.KT,i.EH,d.AQ,i.cG,i.r,u.So,i.x3,o.lT,s.aq,s.UU,l.Si,l.Z1,l.VN,l.yc,l.k5,s.cL;function N(){return!!(0,o.EH)("chrome")}function O(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,p,n),s.open(e,t,!o),n&&a(s,p,n),!o&&i&&a(s,"timeout",i),s}},75262:function(e,t,n){"use strict";n.d(t,{A:function(){return u}});var r=n(73951),o=n(79383),i=n(10387),a=n(55389),s=function(){},c=function(){function e(e,t){this._base="",this._currentElement=0,this._base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._cv1Constants=new s,this._cv2Constants=new s,this._cvVersionAtLatestValidityCheck=2,this._traceLogger=(0,i.y0)(t),this._cv1Constants.maxCorrelationVectorLength=63,this._cv1Constants.baseLength=16,this._cv1Constants.validationPattern=new RegExp("^["+this._base64CharSet+"]{"+this._cv1Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._cv2Constants.maxCorrelationVectorLength=127,this._cv2Constants.baseLength=22,this._cv2Constants.validationPattern=new RegExp("^["+this._base64CharSet+"]{"+this._cv2Constants.baseLength.toString()+"}(.[0-9]+)*$"),this._currentCvConstants=this._cv2Constants,this.init(e)}return e.prototype.isInit=function(){return this.isValid(this.storedCv())},e.prototype.storedCv=function(){return this._base.concat(".",this._currentElement.toString())},e.prototype.getValue=function(){var e=this.storedCv();if(this.isValid(e))return e},e.prototype.getRelatedCv=function(){return this._relatedCv},e.prototype.incrementExternal=function(e){if(this.isValid(e)){var t=e.split("."),n=t.length;t[n-1]=(parseInt(t[n-1],10)+1).toString();for(var r="",o=0;o<n;o++)r+=t[o],o<n-1&&(r+=".");var i=t[0].length===this._cv2Constants.baseLength?this._cv2Constants.maxCorrelationVectorLength:this._cv1Constants.maxCorrelationVectorLength;if(r.length<=i)return r}},e.prototype.canExtend=function(){var e=this.storedCv();return!!this.isValid(e)&&this._isLeqThanMaxCorrelationVectorLength(e.length+2)},e.prototype.canIncrement=function(){return!!this.isValid(this.storedCv())&&this._isLeqThanMaxCorrelationVectorLength(this._base.length+1+(this._currentElement+1+"").length)},e.prototype.setValue=function(e){if(this.isValid(e)){var t=e.lastIndexOf(".");return t>1?(this._base=e.substr(0,t),this._currentElement=parseInt(e.substr(t+1),10)):(this._base=e,this._currentElement=0),!0}return(0,i.ZP)(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}(),u=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 c(n._cvInitialValue):new c,n}return(0,r.qU)(t,e),t.prototype.initialize=function(t,n,r){e.prototype.initialize.call(this,t,n,r)},t.prototype.processTelemetry=function(e,t){(0,o.u9)(e,this.identifier),e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},e.ext.mscv.cV||this._cv&&this._cv.isInit()&&(e.ext.mscv.cV=this._cv.getValue()),this.processNext(e,t)},t.prototype.getCv=function(){return this._cv||(0,i.ZP)(this.diagLog(),2,513,"Correlation Vector has not been initialized."),this._cv},t}(a.s)},18500:function(e,t,n){"use strict";n.d(t,{A:function(){return Ie}});var r=n(73951),o=n(52917),i=n(79383),a=n(87390),s=function(){function e(t){var n=(0,i.gj)(),r=(0,a.cL)();(0,o.A)(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}(),c=n(533),u=n(10387),l=n(63713);function d(e){var t="ai."+e+".";return function(e){return t+e}}var f=d("application"),h=d("device"),p=d("location"),g=d("operation"),v=d("session"),m=d("user"),y=d("cloud"),C=d("internal"),T=function(e){function t(){return e.call(this)||this}return(0,r.qU)(t,e),t}((0,c.SZ)({applicationVersion:f("ver"),applicationBuild:f("build"),applicationTypeId:f("typeId"),applicationId:f("applicationId"),applicationLayer:f("layer"),deviceId:h("id"),deviceIp:h("ip"),deviceLanguage:h("language"),deviceLocale:h("locale"),deviceModel:h("model"),deviceFriendlyName:h("friendlyName"),deviceNetwork:h("network"),deviceNetworkName:h("networkName"),deviceOEMName:h("oemName"),deviceOS:h("os"),deviceOSVersion:h("osVersion"),deviceRoleInstance:h("roleInstance"),deviceRoleName:h("roleName"),deviceScreenResolution:h("screenResolution"),deviceType:h("type"),deviceMachineName:h("machineName"),deviceVMName:h("vmName"),deviceBrowser:h("browser"),deviceBrowserVersion:h("browserVersion"),locationIp:p("ip"),locationCountry:p("country"),locationProvince:p("province"),locationCity:p("city"),operationId:g("id"),operationName:g("name"),operationParentId:g("parentId"),operationRootId:g("rootId"),operationSyntheticSource:g("syntheticSource"),operationCorrelationVector:g("correlationVector"),sessionId:v("id"),sessionIsFirst:v("isFirst"),sessionIsNew:v("isNew"),userAccountAcquisitionDate:m("accountAcquisitionDate"),userAccountId:m("accountId"),userAgent:m("userAgent"),userId:m("id"),userStoreRegion:m("storeRegion"),userAuthUserId:m("authUserId"),userAnonymousUserAcquisitionDate:m("anonUserAcquisitionDate"),userAuthenticatedUserAcquisitionDate:m("authUserAcquisitionDate"),cloudName:y("name"),cloudRole:y("role"),cloudRoleVer:y("roleVer"),cloudRoleInstance:y("roleInstance"),cloudEnvironment:y("environment"),cloudLocation:y("location"),cloudDeploymentUnit:y("deploymentUnit"),internalNodeName:C("nodeName"),internalSdkVersion:C("sdkVersion"),internalAgentVersion:C("agentVersion"),internalSnippet:C("snippet"),internalSdkSrc:C("sdkSrc")})),E="trace",w=(new T,n(1250)),b=n(78018),_=n(90732),I=n(22534),S=n(4529),A=n(70093),k=n(21336),R=n(50068),P=n(50144),N=n(97337),O=n(14032),M=n(78905),x=n(7329),D=n(55389),L="duration",U="excludeRequestFromAutoTrackingPatterns",H=n(61979),q=n(28598),F=n(60523);function B(e,t,n){var r=0,o=e[t],i=e[n];return o&&i&&(r=(0,w.jj)(o,i)),r}function K(e,t,n,r,o){var i=0,a=B(n,r,o);return a&&(i=j(e,t,(0,H.bb)(a))),i}function j(e,t,n){var r=0;e&&t&&n&&((e.ajaxPerf=e.ajaxPerf||{})[t]=n,r=1);return r}var Y=function(){var e=this;e.openDone=!1,e.setRequestHeaderDone=!1,e.sendDone=!1,e.abortDone=!1,e.stateChangeAttached=!1},G=function(){function e(t,n,r,i){var a,s=this,u=r;s.perfMark=null,s.completed=!1,s.requestHeadersSize=null,s.requestHeaders=null,s.responseReceivingDuration=null,s.callbackDuration=null,s.ajaxTotalDuration=null,s.aborted=0,s.pageUrl=null,s.requestUrl=null,s.requestSize=0,s.method=null,s.status=null,s.requestSentTime=null,s.responseStartedTime=null,s.responseFinishedTime=null,s.callbackFinishedTime=null,s.endTime=null,s.xhrMonitoringState=new Y,s.clientFailure=0,s.traceID=t,s.spanID=n,s.traceFlags=null===i||void 0===i?void 0:i.getTraceFlags(),s.eventTraceCtx=i?((a={}).traceId=i.getTraceId(),a.spanId=i.getSpanId(),a.traceFlags=i.getTraceFlags(),a):null,(0,o.A)(e,s,(function(e){e.getAbsoluteUrl=function(){return e.requestUrl?(0,q.wX)(e.requestUrl):null},e.getPathName=function(){return e.requestUrl?(0,F.pJ)(u,(0,q.k6)(e.method,e.requestUrl)):null},e.CreateTrackItem=function(t,n,r){var o;if(e.ajaxTotalDuration=Math.round(1e3*(0,w.jj)(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",u="redirect",l="request",d="response",f="startTime",h="connectEnd",p="requestStart",g="responseEnd",v=u+"Start",m=u="End",y="transferSize",C="encodedBodySize",T="decodedBodySize",E="serverTiming";if(n){o|=K(r,u,n,v,m),o|=K(r,a,n,"domainLookupStart","domainLookupEnd"),o|=K(r,s,n,"connectStart",h),o|=K(r,l,n,p,"requestEnd"),o|=K(r,d,n,"responseStart",g),o|=K(r,"networkConnect",n,f,h),o|=K(r,"sentRequest",n,p,g);var w=n.duration;w||(w=B(n,f,g)||0),o|=j(r,L,w),o|=j(r,"perfTotal",w);var b=n.serverTiming;if(b){var _={};(0,c.Iu)(b,(function(e,t){var n=(0,c.cH)(e.name||""+t),r=_[n]||{};(0,c.z)(e,(function(e,t){(e!==i&&(0,c.Kg)(t)||(0,c.Et)(t))&&(r[e]&&(t=r[e]+";"+t),!t&&(0,c.Kg)(t)||(r[e]=t))})),_[n]=r})),o|=j(r,E,_)}o|=j(r,y,n.transferSize),o|=j(r,C,n.encodedBodySize),o|=j(r,T,n.decodedBodySize)}else e.perfMark&&(o|=j(r,"missing",e.perfAttempts));o&&(t.properties=r)}(e,i),n&&(0,c.cG)(e.requestHeaders).length>0&&(a.requestHeaders=e.requestHeaders),r){var s=r();if(s){var u=s.correlationContext;if(u&&(i.correlationContext=u),s.headerMap&&(0,c.cG)(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={})[E]=((t={}).traceID=r.traceId,t.parentID=r.spanId,t);(0,c.hX)(r.traceFlags)||(o.traceFlags=r.traceFlags)}return n}}))}return e.__ieDyn=1,e}(),z="ai.ajxmn.",V="fetch",W="Failed to monitor XMLHttpRequest",X=", monitoring data for this ajax call ",Q=X+"may be incorrect.",$=X+"won't be sent.",J="Failed to get Request-Context correlation header as it may be not included in the response or not accessible.",Z="Failed to add custom defined request context as configured call back may missing a null check.",ee="Failed to calculate the duration of the ",te=0;var ne=null;var re=function(e,t){return e&&t&&e._ajaxData?(e._ajaxData.i||{})[t]:null},oe=function(e,t){var n=!1;if(e){var r=(e._ajaxData||{}).xh;r&&(0,c.Iu)(r,(function(e){if(e.n===t)return n=!0,-1}))}return n};function ie(e,t){var n="";try{var r=re(e,t);r&&r.requestUrl&&(n+="(url: '"+r.requestUrl+"')")}catch(o){}return n}function ae(e,t,n,r,o){(0,u.ZP)(e.diagLog(),1,t,n,r,o)}function se(e,t,n,r,o){(0,u.ZP)(e.diagLog(),2,t,n,r,o)}function ce(e,t,n){return function(r){ae(e,t,n,{ajaxDiagnosticsMessage:ie(r.inst,e._ajaxDataId),exception:(0,P.mm)(r.err)})}}function ue(e,t){return e&&t?e.indexOf(t):-1}function le(e,t,n){var r={id:t,fn:n};return e.push(r),{remove:function(){(0,c.Iu)(e,(function(t,n){if(t.id===r.id)return e.splice(n,1),-1}))}}}function de(e,t,n,r){var o=!0;return(0,c.Iu)(t,(function(t,i){try{!1===t.fn.call(null,n)&&(o=!1)}catch(a){(0,u.ZP)(e&&e.logger,1,64,"Dependency "+r+" [#"+i+"] failed: "+(0,c.lL)(a),{exception:(0,P.mm)(a)},!0)}})),o}var fe="*.blob.core.",he=(0,c.ol)([fe+"windows.net",fe+"chinacloudapi.cn",fe+"cloudapi.de",fe+"usgovcloudapi.net"]),pe=[/https:\/\/[^\/]*(\.pipe\.aria|aria\.pipe|events\.data|collector\.azure)\.[^\/]+\/(OneCollector\/1|Collector\/3)\.0/i];function ge(){return{maxAjaxCallsPerView:500,disableAjaxTracking:!1,disableFetchTracking:!1,excludeRequestFromAutoTrackingPatterns:void 0,disableCorrelationHeaders:!1,distributedTracingMode:1,correlationHeaderExcludedDomains:he,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 ve(){var e=ge();return(0,c.z)(e,(function(t){e[t]=void 0})),e}var me=function(e){function t(){var n,i,s,u,d,f,h,p,g,v,m,y,C,T,E,D,L,H,q,F,B,K,j,Y,X=e.call(this)||this;return X.identifier=t.identifier,X.priority=120,(0,o.A)(t,X,(function(e,o){var X=o._addHook;function fe(){var r=(0,P.g$)();n=!1,i=!1,s=r&&r.host&&r.host.toLowerCase(),u=t.getEmptyConfig(),d=!1,f=!1,h=0,p=null,g=!1,v=!1,m=null,y=!1,C=0,T=!1,E={},D=!1,L=!1,H=null,q=null,F=null,K=0,j=[],Y=[],B=(0,O.Z)("ajaxData"),e._ajaxDataId=B}function he(e){var t=!0;return(e||u.ignoreHeaders)&&(0,c.Iu)(u.ignoreHeaders,(function(n){if(n.toLowerCase()===e.toLowerCase())return t=!1,-1})),t}function me(e,t,n){X((0,x.uT)(e,t,n))}function ye(e,t,n){var r=!1,o=(((0,c.Kg)(t)?t:(t||{}).url||"")||"").toLowerCase();if((0,c.Iu)(H,(function(e){var t=e;(0,c.Kg)(e)&&(t=new RegExp(e)),r||(r=t.test(o))})),r)return r;var i=ue(o,"?"),a=ue(o,"#");return(-1===i||-1!==a&&a<i)&&(i=a),-1!==i&&(o=o.substring(0,i)),(0,c.hX)(e)?(0,c.hX)(t)||(r="object"===typeof t&&!0===t[A.xF]||!!n&&!0===n[A.xF]):r=!0===e[A.xF]||!0===o[A.xF],!r&&o&&(0,w.Qu)(o)&&(r=!0),r?E[o]||(E[o]=1):E[o]&&(r=!0),r}function Ce(e,t,n){var r=!0,o=i;return(0,c.hX)(e)||(r=!0===n||!(0,c.hX)(t)),o&&r}function Te(){var t=null;return e.core&&e.core.getTraceCtx&&(t=e.core.getTraceCtx(!1)),!t&&p&&p.telemetryTrace&&(t=(0,w.Ft)(p.telemetryTrace)),t}function Ee(e){try{var t=e.responseType;if(""===t||"text"===t)return e.responseText}catch(n){}return null}function we(t){try{var n=t.getAllResponseHeaders();if(null!==n)if(-1!==ue(n.toLowerCase(),b.a[8])){var r=t.getResponseHeader(b.a[0]);return w.ci.getCorrelationContext(r)}}catch(o){se(e,18,J,{ajaxDiagnosticsMessage:ie(t,B),exception:(0,P.mm)(o)})}}function be(e,t){if(t.requestUrl&&m&&y){var n=(0,P.FJ)();if(n&&(0,c.Tn)(n.mark)){te++;var r=m+e+"#"+te;n.mark(r);var o=n.getEntriesByName(r);o&&1===o.length&&(t.perfMark=o[0])}}}function _e(e,t,n,r){var o=t.perfMark,i=(0,P.FJ)(),a=u.maxAjaxPerfLookupAttempts,s=u.ajaxPerfLookupDelay,l=t.requestUrl,d=0;!function u(){try{if(i&&o){d++;for(var f=null,h=i.getEntries(),p=h.length-1;p>=0;p--){var g=h[p];if(g){if("resource"===g.entryType)g.initiatorType!==e||-1===ue(g.name,l)&&-1===ue(l,g.name)||(f=g);else if("mark"===g.entryType&&g.name===o.name){t.perfTiming=f;break}if(g.startTime<o.startTime-1e3)break}}}!o||t.perfTiming||d>=a||!1===t.async?(o&&(0,c.Tn)(i.clearMarks)&&i.clearMarks(o.name),t.perfAttempts=d,n()):setTimeout(u,s)}catch(v){r(v)}}()}function Ie(t){var n="";try{(0,c.hX)(t)||((0,c.Kg)(t)?n+="(url: '".concat(t,"')"):n+="(url: '".concat(t.url,"')"))}catch(r){ae(e,15,"Failed to grab failed fetch diagnostics message",{exception:(0,P.mm)(r)})}return n}function Se(t,n,o,i,a,s,c){function u(t,n,r){var i=r||{};i.fetchDiagnosticsMessage=Ie(o),n&&(i.exception=(0,P.mm)(n)),se(e,t,ee+"fetch call"+$,i)}a&&(a.responseFinishedTime=(0,w.lt)(),a.status=n,_e(V,a,(function(){var t,c=a.CreateTrackItem("Fetch",d,s);try{q&&(t=q({status:n,request:o,response:i}))}catch(f){se(e,104,Z)}if(c){void 0!==t&&(c.properties=(0,r.Im)((0,r.Im)({},c.properties),t));var l=a.getPartAProps();ke(Y,e.core,a,c,null,l)}else u(14,null,{requestSentTime:a.requestSentTime,responseFinishedTime:a.responseFinishedTime})}),(function(e){u(18,e,null)})))}function Ae(t){if(t&&t.headers)try{var n=t.headers.get(b.a[0]);return w.ci.getCorrelationContext(n)}catch(r){se(e,18,J,{fetchDiagnosticsMessage:Ie(t),exception:(0,P.mm)(r)})}}function ke(t,n,r,o,i,a){var s=!0;t.length>0&&(s=de(n,t,{item:o,properties:i,sysProperties:a,context:r?r.context:null,aborted:!!r&&!!r.aborted},"initializer"));s&&e.trackDependencyDataInternal(o,i,a)}fe(),e.initialize=function(s,l,h,E){e.isInitialized()||(o.initialize(s,l,h,E),F=(0,N.Hm)((0,O.Z)("ajax"),l&&l.evtNamespace&&l.evtNamespace()),function(n){var r=(0,M.i8)(null,n,e.core);u=ve();var o=ge();(0,c.z)(o,(function(e,n){u[e]=r.getConfig(t.identifier,e,n)}));var i=u.distributedTracingMode;if(d=u.enableRequestHeaderTracking,f=u.enableAjaxErrorStatusText,y=u.enableAjaxPerfTracking,C=u.maxAjaxCallsPerView,T=u.enableResponseHeaderTracking,H=[].concat(u[U]||[],!1!==u.addIntEndpoints?pe:[]),q=u.addRequestContext,v=0===i||1===i,g=1===i||2===i,y){var a=n.instrumentationKey||"unkwn";m=a.length>5?z+a.substring(a.length-5)+".":z+a+"."}D=!!u.disableAjaxTracking,L=!!u.disableFetchTracking}(s),!function(e,t){var n,r=!1;if((0,P.xk)()){var o=XMLHttpRequest[R.vR];r=!(0,c.hX)(o)&&!(0,c.hX)(o.open)&&!(0,c.hX)(o.send)&&!(0,c.hX)(o.abort)}var i=(0,P.L0)();if(i&&i<9&&(r=!1),r)try{var a=new XMLHttpRequest,s={xh:[],i:(n={},n[t]={},n)};a._ajaxData=s;var u=XMLHttpRequest[R.vR].open;XMLHttpRequest[R.vR].open=u}catch(l){r=!1,ae(e,15,"Failed to enable XMLHttpRequest monitoring, extension is not supported",{exception:(0,P.mm)(l)})}return r}(e,B)||D||i||(me(XMLHttpRequest,"open",{ns:F,req:function(t,n,o,i){if(!D){var s=t.inst,u=re(s,B);!ye(s,o)&&Ce(s,u,!0)&&(u&&u.xhrMonitoringState.openDone||(u=function(t,n,r,o){var i,s=Te(),c=s&&s.getTraceId()||(0,a.cL)(),u=(0,a.cL)().substr(0,16),l=t._ajaxData=t._ajaxData||{xh:[],i:{}},d=l.i=l.i||{},h=d[B]=d[B]||new G(c,u,e.diagLog(),null===(i=e.core)||void 0===i?void 0:i.getTraceCtx());return h.traceFlags=s&&s.getTraceFlags(),h.method=n,h.requestUrl=r,h.xhrMonitoringState.openDone=!0,h.requestHeaders={},h.async=o,h.errorStatusText=f,h}(s,n,o,i)),function(t,n){n.xhrMonitoringState.stateChangeAttached=(0,N.mB)(t,"readystatechange",(function(){try{t&&4===t.readyState&&Ce(t,n)&&function(t){var n=re(t,B);function o(n,r){var o=r||{};o.ajaxDiagnosticsMessage=ie(t,B),n&&(o.exception=(0,P.mm)(n)),se(e,14,ee+"ajax call"+$,o)}n.responseFinishedTime=(0,w.lt)(),n.status=t.status,_e("xmlhttprequest",n,(function(){try{var i=n.CreateTrackItem("Ajax",d,(function(){var e={statusText:t.statusText,headerMap:null,correlationContext:we(t),type:t.responseType,responseText:Ee(t),response:t.response};if(T){var n=t.getAllResponseHeaders();if(n){var r=(0,c.EH)(n).split(/[\r\n]+/),o={};(0,c.Iu)(r,(function(e){var t=e.split(": "),n=t.shift(),r=t.join(": ");he(n)&&(o[n]=r)})),e.headerMap=o}}return e})),a=void 0;try{q&&(a=q({status:t.status,xhr:t}))}catch(l){se(e,104,Z)}if(i){void 0!==a&&(i.properties=(0,r.Im)((0,r.Im)({},i.properties),a));var s=n.getPartAProps();ke(Y,e.core,n,i,null,s)}else o(null,{requestSentTime:n.requestSentTime,responseFinishedTime:n.responseFinishedTime})}finally{try{var u=(t._ajaxData||{i:{}}).i||{};u[B]&&(u[B]=null)}catch(l){}}}),(function(e){o(e,null)}))}(t)}catch(i){var o=(0,P.mm)(i);o&&-1!==ue(o.toLowerCase(),"c00c023f")||ae(e,16,W+" 'readystatechange' event handler"+Q,{ajaxDiagnosticsMessage:ie(t,B),exception:o})}}),F)}(s,u))}},hkErr:ce(e,15,W+".open"+Q)}),me(XMLHttpRequest,"send",{ns:F,req:function(t,n){if(!D){var r=t.inst,o=re(r,B);Ce(r,o)&&!o.xhrMonitoringState.sendDone&&(be("xhr",o),o.requestSentTime=(0,w.lt)(),e.includeCorrelationHeaders(o,void 0,void 0,r),o.xhrMonitoringState.sendDone=!0)}},hkErr:ce(e,17,W+Q)}),me(XMLHttpRequest,"abort",{ns:F,req:function(e){if(!D){var t=e.inst,n=re(t,B);Ce(t,n)&&!n.xhrMonitoringState.abortDone&&(n.aborted=1,n.xhrMonitoringState.abortDone=!0)}},hkErr:ce(e,13,W+".abort"+Q)}),me(XMLHttpRequest,"setRequestHeader",{ns:F,req:function(e,t,n){if(!D){var r=e.inst,o=re(r,B);o&&Ce(r,o)&&(function(e,t,n){if(e){var r=(e._ajaxData||{}).xh;r&&r.push({n:t,v:n})}}(r,t,n),d&&he(t)&&o&&(o.requestHeaders[t]=n))}},hkErr:ce(e,71,W+".setRequestHeader"+Q)}),i=!0),function(){var t=function(){var e=(0,k.mS)();return!e||(0,c.hX)(e.Request)||(0,c.hX)(e.Request[R.vR])||(0,c.hX)(e.fetch)?null:e.fetch}();if(!t)return;var r=(0,k.mS)(),o=t.polyfill;L||n?o&&X((0,x.qB)(r,V,{ns:F,req:function(e,t,n){ye(null,t,n)}})):(X((0,x.qB)(r,V,{ns:F,req:function(t,r,s){var c;if(!L&&n&&!ye(null,r,s)&&(!o||!i)){var u=t.ctx();c=function(t,n){var r,o=Te(),i=o&&o.getTraceId()||(0,a.cL)(),s=(0,a.cL)().substr(0,16),c=new G(i,s,e.diagLog(),null===(r=e.core)||void 0===r?void 0:r.getTraceCtx());c.traceFlags=o&&o.getTraceFlags(),c.requestSentTime=(0,w.lt)(),c.errorStatusText=f,t instanceof Request?c.requestUrl=t?t.url:"":c.requestUrl=t;var u="GET";n&&n.method?u=n.method:t&&t instanceof Request&&(u=t.method);c.method=u;var l={};if(d){new Headers((n?n.headers:0)||t instanceof Request&&t.headers||{}).forEach((function(e,t){he(t)&&(l[t]=e)}))}return c.requestHeaders=l,be(V,c),c}(r,s);var l=e.includeCorrelationHeaders(c,r,s);l!==s&&t.set(1,l),u.data=c}},rsp:function(e,t){if(!L){var n=e.ctx().data;n&&(e.rslt=e.rslt.then((function(r){return Se(e,(r||{}).status,t,r,n,(function(){var e={statusText:(r||{}).statusText,headerMap:null,correlationContext:Ae(r)};if(T&&r){var t={};r.headers.forEach((function(e,n){he(n)&&(t[n]=e)})),e.headerMap=t}return e})),r})).catch((function(r){throw Se(e,0,t,null,n,null,{error:r.message||(0,P.mm)(r)}),r})))}},hkErr:ce(e,15,"Failed to monitor Window.fetch"+Q)},!0,function(){if(null==ne)try{ne=!!(self&&self instanceof WorkerGlobalScope)}catch(e){ne=!1}return ne}())),n=!0);o&&(r.fetch.polyfill=o)}(),function(){var t=e.core.getPlugin(S._u);t&&(p=t.plugin.context)}())},e._doTeardown=function(){fe()},e.trackDependencyData=function(t,n){ke(Y,e.core,null,t,n)},e.includeCorrelationHeaders=function(t,n,r,o){var i=e._currentWindowHost||s;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};de(t,e,a,"listener"),n.traceID=a.traceId,n.spanID=a.spanId,n.traceFlags=a.traceFlags,n.context=a.context}}(j,e.core,t,o,n,r),n||""===n){if(w.ci.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),i)){r||(r={});var a=new Headers(r.headers||n instanceof Request&&n.headers||{});if(v){var l="|"+t.traceID+"."+t.spanID;a.set(b.a[3],l),d&&(t.requestHeaders[b.a[3]]=l)}if((m=u.appId||p&&p.appId())&&(a.set(b.a[0],b.a[2]+m),d&&(t.requestHeaders[b.a[0]]=b.a[2]+m)),g){var f=t.traceFlags;(0,c.hX)(f)&&(f=1);var h=(0,_.L0)((0,_.wk)(t.traceID,t.spanID,f));a.set(b.a[4],h),d&&(t.requestHeaders[b.a[4]]=h)}r.headers=a}return r}if(o){if(w.ci.canIncludeCorrelationHeader(u,t.getAbsoluteUrl(),i)){if(v)if(oe(o,b.a[3]))se(e,71,"Unable to set ["+b.a[3]+"] as it has already been set by another instance");else{l="|"+t.traceID+"."+t.spanID;o.setRequestHeader(b.a[3],l),d&&(t.requestHeaders[b.a[3]]=l)}var m;if((m=u.appId||p&&p.appId())&&(oe(o,b.a[0])?se(e,71,"Unable to set ["+b.a[0]+"] as it has already been set by another instance"):(o.setRequestHeader(b.a[0],b.a[2]+m),d&&(t.requestHeaders[b.a[0]]=b.a[2]+m))),g){f=t.traceFlags;if((0,c.hX)(f)&&(f=1),oe(o,b.a[4]))se(e,71,"Unable to set ["+b.a[4]+"] as it has already been set by another instance");else{h=(0,_.L0)((0,_.wk)(t.traceID,t.spanID,f));o.setRequestHeader(b.a[4],h),d&&(t.requestHeaders[b.a[4]]=h)}}}return o}},e.trackDependencyDataInternal=function(t,n,r){if(-1===C||h<C){2!==u.distributedTracingMode&&1!==u.distributedTracingMode||"string"!==typeof t.id||"."===t.id[t.id.length-1]||(t.id+="."),(0,c.hX)(t.startTime)&&(t.startTime=new Date);var o=(0,I.V)(t,l.A.dataType,l.A.envelopeType,e.diagLog(),n,r);e.core.track(o)}else h===C&&ae(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);++h},e.addDependencyListener=function(e){return le(j,K++,e)},e.addDependencyInitializer=function(e){return le(Y,K++,e)}})),X}return(0,r.qU)(t,e),t.prototype.processTelemetry=function(e,t){this.processNext(e,t)},t.prototype.addDependencyInitializer=function(e){return null},t.identifier="AjaxDependencyPlugin",t.getDefaultConfig=ge,t.getEmptyConfig=ve,t}(D.s);function ye(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 Ce(e,t){var n,r={},o=(0,P.YE)();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 Te(e){(0,c.z)(e,(function(t,n){(!(0,i.yD)(n)||"{}"===JSON.stringify(n)&&"callback"!==t)&&delete e[t]}))}var Ee=function(){function e(){}return e.prototype._setCommonProperties=function(e,t){(0,i.yD)(t.cV)&&(e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},e.ext.mscv.cV=t.cV),e.baseData.operationName=t.operationName,e.baseData.latencyMs=t.latencyMs,e.baseData.serviceErrorCode=t.serviceErrorCode||-1,e.baseData.succeeded=t.succeeded,e.baseData.requestStatus=t.requestStatus,e.baseData.requestMethod=t.requestMethod,(0,i.yD)(t.target)&&(e.baseData.target=t.target),(0,i.yD)(t.responseContentType)&&(e.baseData.responseContentType=t.responseContentType),(0,i.yD)(t.protocol)&&(e.baseData.protocol=t.protocol),(0,i.yD)(t.protocolStatusCode)&&(e.baseData.protocolStatusCode=t.protocolStatusCode)},e}(),we=function(){function e(){this._qosEvent=new Ee}return e.prototype._setQosProperties=function(e,t){this._qosEvent._setCommonProperties(e,t),(0,i.yD)(t.callerIpAddress)&&(e.baseData.callerIpAddress=t.callerIpAddress),(0,i.yD)(t.callerName)&&(e.baseData.callerName=t.callerName),(0,i.yD)(t.requestSizeBytes)&&(e.baseData.requestSizeBytes=t.requestSizeBytes),(0,i.yD)(t.operationVersion)&&(e.baseData.operationVersion=t.operationVersion)},e}(),be=function(){function e(){this._qosEvent=new Ee}return e.prototype._setQosProperties=function(e,t){this._qosEvent._setCommonProperties(e,t),e.baseData.dependencyOperationName=t.dependencyOperationName,e.baseData.dependencyName=t.dependencyName,e.baseData.dependencyType=t.dependencyType||"WebService",(0,i.yD)(t.dependencyOperationVersion)&&(e.baseData.dependencyOperationVersion=t.dependencyOperationVersion),(0,i.yD)(t.responseSizeBytes)&&(e.baseData.responseSizeBytes=t.responseSizeBytes)},e}(),_e="MS-CV",Ie=function(e){function t(){var n,r,a,d,f,h=e.call(this)||this;return h.identifier="QosPlugin",h.version="3.2.14",(0,o.A)(t,h,(function(e,t){function o(e){var t={enableCorsCorrelation:!1,correlationHeaderExcludedDomains:[],correlationHeaderExcludePatterns:null,disableCorrelationHeaders:!1,maxAjaxCallsPerView:-1,disableAjaxTracking:!1,disableFetchTracking:!1,enableCvHeaders:!1,appId:void 0,excludeRequestFromAutoTrackingPatterns:void 0,distributedTracingMode:1,correlationHeaderDomains:void 0,enableRequestHeaderTracking:!1,enableResponseHeaderTracking:!1,enableAjaxErrorStatusText:!1,enableAjaxPerfTracking:!1,maxAjaxPerfLookupAttempts:3,ajaxPerfLookupDelay:25,ignoreHeaders:["Authorization","X-API-Key","WWW-Authenticate"],addRequestContext:void 0,callback:{pageName:null,id:null},autoCapture:{msTags:!0},coreData:{requestUri:"",pageName:""}},n=[];return(0,c.z)(t,(function(e,t){t&&(0,c.Gv)(t)&&n.push(e)})),function(e,t){Te(e),(0,c.Iu)(t,(function(t){(0,c.Gv)(e[t])?Te(e[t]):delete e[t]}))}(e,n),(0,i.X$)(!0,t,e)}function h(t,n){g(t,n),e.core.track(t)}function p(){n=null,d={market:"",serverImpressionGuid:""},f={},r=new be,a=new we}function g(e,t){(0,i.yD)(t)&&(0,c.z)(t,(function(t,n){e.data[t]=n}))}p(),e.includeCorrelationHeaders=function(n,r,o,i){var a=t.includeCorrelationHeaders(n,r,o,i);if(f.enableCvHeaders){var s=e.getCv();if(s&&(r||i)){s.increment();var u=s.getValue();r?(a||(a=o||{}),a.headers&&(0,c.Tn)(a.headers.append)||(a.headers=new Headers(a.headers||r instanceof Request&&r.headers||{})),a.headers.append(_e,u)):a.setRequestHeader(_e,u)}}return a},e.initialize=function(r,a,c){var l=r.extensionConfig=r.extensionConfig||[];l[e.identifier]=l[e.identifier]||{},f=e._qosConfig=o(l[e.identifier]),l[me.identifier]=f,t.initialize(r,a,c);var h=function(e){var t,n={};return t=Ce("awa-",!0),e.autoCapture&&e.autoCapture.msTags&&(n=Ce("ms.",!1)),(0,i.X$)(!0,t,n)}(e._qosConfig);d.market=ye(h,f.coreData,"market"),d.serverImpressionGuid=ye(h,f.coreData,"serverImpressionGuid");var p=(a.getPlugin("CorrelationVectorPlugin")||{}).plugin,g=(a.getPlugin("WebAnalyticsPlugin")||{}).plugin;g&&g.id?e.id=g.id:e.id=new s(a),f.enableCvHeaders&&(p?(f.enableCvHeaders=!0,n=p):((0,u.ZP)(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 '),f.enableCvHeaders=!1))},e.processTelemetry=function(t,n){(0,i.u9)(t,e.identifier);var r=t;if(r.baseType===l.A.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 a=o||{},s=a[E];if(s){var u=a.dt=a.dt||{};u.traceId=u.traceId||s.traceID,u.spanId=u.spanId||s.parentID,(0,c.hX)(s.traceFlags)||(0,c.Et)(u.traceFlags)||(u.traceFlags=s.traceFlags)}(0,i.yD)(n.cV)&&(a.mscv={},a.mscv.cV=n.cV),n.id=f.callback&&f.callback.id?f.callback.id():(0,i.gj)(),(r=r||{}).pageName=(0,i.yD)(r.pageName)?r.pageName:function(e){if(e.callback&&"function"===typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var t=((0,P.g$)()||{}).pathname||"",n=t.replace(/(^\/+|\/+$)/g,"").split("/"),r=n.length;return n&&n[r-1]?n[r-1]:"Home"}(e._qosConfig),r.uri=(0,i.yD)(r.uri)?r.uri:function(e){var t=(0,P.g$)()||{};return e.coreData.requestUri?e.coreData.requestUri:t.href}(e._qosConfig),r.market=(0,i.yD)(r.market)?r.market:d.market,r.serverImpressionGuid=(0,i.yD)(r.serverImpressionGuid)?r.serverImpressionGuid:d.serverImpressionGuid,t.trackDependencyDataInternal(n,r,a)},e.trackServiceOutgoingQos=function(e,t){var n={name:"Ms.Qos.OutgoingServiceRequest",baseType:"RemoteDependencyData",ext:{},baseData:{},data:{},latency:3};r._setQosProperties(n,e),g(n,t),h(n)},e.trackServiceIncomingQos=function(e,t){var n={name:"Ms.Qos.IncomingServiceRequest",baseType:"RequestData",ext:{},baseData:{},data:{},latency:3};a._setQosProperties(n,e),g(n,t),h(n)},e.getCv=function(){return n?n.getCv():null},e._doTeardown=function(e,n){t._doTeardown(e,n),p()}})),h}return(0,r.qU)(t,e),t.__ieDyn=1,t}(me)},5322:function(e,t,n){"use strict";var r;n.d(t,{n:function(){return r}}),function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.NAVIGATIONBACK=1]="NAVIGATIONBACK",e[e.NAVIGATION=2]="NAVIGATION",e[e.NAVIGATIONFORWARD=3]="NAVIGATIONFORWARD",e[e.APPLY=4]="APPLY",e[e.REMOVE=5]="REMOVE",e[e.SORT=6]="SORT",e[e.EXPAND=7]="EXPAND",e[e.REDUCE=8]="REDUCE",e[e.CONTEXTMENU=9]="CONTEXTMENU",e[e.TAB=10]="TAB",e[e.COPY=11]="COPY",e[e.EXPERIMENTATION=12]="EXPERIMENTATION",e[e.PRINT=13]="PRINT",e[e.SHOW=14]="SHOW",e[e.HIDE=15]="HIDE",e[e.MAXIMIZE=16]="MAXIMIZE",e[e.MINIMIZE=17]="MINIMIZE",e[e.BACKBUTTON=18]="BACKBUTTON",e[e.STARTPROCESS=20]="STARTPROCESS",e[e.PROCESSCHECKPOINT=21]="PROCESSCHECKPOINT",e[e.COMPLETEPROCESS=22]="COMPLETEPROCESS",e[e.SCENARIOCANCEL=23]="SCENARIOCANCEL",e[e.DOWNLOADCOMMIT=40]="DOWNLOADCOMMIT",e[e.DOWNLOAD=41]="DOWNLOAD",e[e.SEARCHAUTOCOMPLETE=60]="SEARCHAUTOCOMPLETE",e[e.SEARCH=61]="SEARCH",e[e.SEARCHINITIATE=62]="SEARCHINITIATE",e[e.TEXTBOXINPUT=63]="TEXTBOXINPUT",e[e.PURCHASE=80]="PURCHASE",e[e.ADDTOCART=81]="ADDTOCART",e[e.VIEWCART=82]="VIEWCART",e[e.ADDWISHLIST=83]="ADDWISHLIST",e[e.FINDSTORE=84]="FINDSTORE",e[e.CHECKOUT=85]="CHECKOUT",e[e.REMOVEFROMCART=86]="REMOVEFROMCART",e[e.PURCHASECOMPLETE=87]="PURCHASECOMPLETE",e[e.VIEWCHECKOUTPAGE=88]="VIEWCHECKOUTPAGE",e[e.VIEWCARTPAGE=89]="VIEWCARTPAGE",e[e.VIEWPDP=90]="VIEWPDP",e[e.UPDATEITEMQUANTITY=91]="UPDATEITEMQUANTITY",e[e.INTENTTOBUY=92]="INTENTTOBUY",e[e.PUSHTOINSTALL=93]="PUSHTOINSTALL",e[e.SIGNIN=100]="SIGNIN",e[e.SIGNOUT=101]="SIGNOUT",e[e.SOCIALSHARE=120]="SOCIALSHARE",e[e.SOCIALLIKE=121]="SOCIALLIKE",e[e.SOCIALREPLY=122]="SOCIALREPLY",e[e.CALL=123]="CALL",e[e.EMAIL=124]="EMAIL",e[e.COMMUNITY=125]="COMMUNITY",e[e.SOCIALFOLLOW=126]="SOCIALFOLLOW",e[e.VOTE=140]="VOTE",e[e.SURVEYINITIATE=141]="SURVEYINITIATE",e[e.SURVEYCOMPLETE=142]="SURVEYCOMPLETE",e[e.REPORTAPPLICATION=143]="REPORTAPPLICATION",e[e.REPORTREVIEW=144]="REPORTREVIEW",e[e.SURVEYCHECKPOINT=145]="SURVEYCHECKPOINT",e[e.CONTACT=160]="CONTACT",e[e.REGISTRATIONINITIATE=161]="REGISTRATIONINITIATE",e[e.REGISTRATIONCOMPLETE=162]="REGISTRATIONCOMPLETE",e[e.CANCELSUBSCRIPTION=163]="CANCELSUBSCRIPTION",e[e.RENEWSUBSCRIPTION=164]="RENEWSUBSCRIPTION",e[e.CHANGESUBSCRIPTION=165]="CHANGESUBSCRIPTION",e[e.REGISTRATIONCHECKPOINT=166]="REGISTRATIONCHECKPOINT",e[e.CHATINITIATE=180]="CHATINITIATE",e[e.CHATEND=181]="CHATEND",e[e.TRIALSIGNUP=200]="TRIALSIGNUP",e[e.TRIALINITIATE=201]="TRIALINITIATE",e[e.SIGNUP=210]="SIGNUP",e[e.FREESIGNUP=211]="FREESIGNUP",e[e.PARTNERREFERRAL=220]="PARTNERREFERRAL",e[e.LEARNLOWFUNNEL=230]="LEARNLOWFUNNEL",e[e.LEARNHIGHFUNNEL=231]="LEARNHIGHFUNNEL",e[e.SHOPPINGINTENT=232]="SHOPPINGINTENT",e[e.TRIALINTENT=234]="TRIALINTENT",e[e.VIDEOSTART=240]="VIDEOSTART",e[e.VIDEOPAUSE=241]="VIDEOPAUSE",e[e.VIDEOCONTINUE=242]="VIDEOCONTINUE",e[e.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT",e[e.VIDEOJUMP=244]="VIDEOJUMP",e[e.VIDEOCOMPLETE=245]="VIDEOCOMPLETE",e[e.VIDEOBUFFERING=246]="VIDEOBUFFERING",e[e.VIDEOERROR=247]="VIDEOERROR",e[e.VIDEOMUTE=248]="VIDEOMUTE",e[e.VIDEOUNMUTE=249]="VIDEOUNMUTE",e[e.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN",e[e.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN",e[e.VIDEOREPLAY=252]="VIDEOREPLAY",e[e.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD",e[e.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK",e[e.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL",e[e.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL",e[e.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL",e[e.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE",e[e.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL",e[e.VIRTUALEVENTJOIN=260]="VIRTUALEVENTJOIN",e[e.VIRTUALEVENTEND=261]="VIRTUALEVENTEND",e[e.JOINTEAMSMEETINGEVENT=262]="JOINTEAMSMEETINGEVENT",e[e.IMPRESSION=280]="IMPRESSION",e[e.CLICK=281]="CLICK",e[e.RICHMEDIACOMPLETE=282]="RICHMEDIACOMPLETE",e[e.ADBUFFERING=283]="ADBUFFERING",e[e.ADERROR=284]="ADERROR",e[e.ADSTART=285]="ADSTART",e[e.ADCOMPLETE=286]="ADCOMPLETE",e[e.ADSKIP=287]="ADSKIP",e[e.ADTIMEOUT=288]="ADTIMEOUT",e[e.OTHER=300]="OTHER"}(r||(r={}))},21814:function(e,t,n){"use strict";n.d(t,{Il:function(){return d},JT:function(){return p},K:function(){return f},gJ:function(){return g},m7:function(){return h},rJ:function(){return m},x3:function(){return v}});var r=n(79383),o=n(50144),i=n(533),a=n(10387),s=n(97337),c=n(14032),u=n(49382),l={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function d(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");return!!(0,r.yD)(t)&&"pii"===t.toLowerCase()}catch(n){return!1}}function f(e,t){return e.coreData&&e.coreData.requestUri&&""!==e.coreData.requestUri?e.coreData.requestUri:function(e,t){if(!t)return null;var n=t.protocol+"//"+(t.hostname||t.host)+((0,r.yD)(t.port)?":"+t.port:"")+t.pathname;if(e.urlCollectQuery){var o=t.search;if(!o){var i=t.hash||"",a=i.indexOf("?");-1!==a&&(o=i.slice(a))}n+=o}e.urlCollectHash&&(n+=t.hash||"");return n}(e,t)}function h(e,t){if(t&&t.pageName)return t.pageName;if(e.callback&&"function"===typeof e.callback.pageName)return e.callback.pageName();if(e.coreData&&e.coreData.pageName)return e.coreData.pageName;var n=((0,o.g$)()||{}).pathname||"",r=n.replace(/(^\/+|\/+$)/g,"").split("/");return n=r&&r[r.length-1]?r[r.length-1]:"Home"}function p(e){return e.callback&&"function"===typeof e.callback.signedinStatus?e.callback.signedinStatus():e.isLoggedIn}function g(e,t){var n,o="",s={},c=[],u=e.cookiesToCollect;!1===e.shareAuthStatus?c=u:(0,i.Iu)(u,(function(e){"ANON"!==e&&c.push(e)}));try{try{r.P$&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(c=c.concat(window.varCustomerCookies))}catch(l){(0,a.ZP)(t,1,512,"Failed to get cookies ")}(0,i.Iu)(c,(function(e){s.hasOwnProperty(e)||(s[e]="",r.g8&&""!==(n=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")))&&(o+=e+"="+n+";"))}))}catch(l){(0,a.ZP)(t,1,512,"Failed to get cookies ")}return o}function v(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=function(e){var t=e;if(t){var n=(0,u.pA)(t);if(n&&1===n.length){if(n[0].href)return n[0].href;if(n[0].src)return n[0].src}}return""}(e);break;case"INPUT":var n=e.type;if(n&&l[n.toUpperCase()]){var r=(0,o.g$)()||{};t=e.form?e.form.action||r.pathname||"":r.pathname||""}}return t}function m(e,t){var n=(0,s.Hm)((0,c.Z)("onDomLoaded"),t);y((function(){if(r.g8&&"complete"===document.readyState)e();else{var t=(0,o.zk)();t&&(0,s.mB)(t,"load",(function(){e&&e(),e=null,(0,s.ML)(t,null,null,n)}),n)}}))}function y(e){var t=(0,o.YE)()||{};/in/.test(t.readyState)?setTimeout((function(){y(e)}),100):e.call()}},14371:function(e,t,n){"use strict";n.d(t,{B:function(){return r},X:function(){return o}});var r,o={CLICKLEFT:"CL",CLICKRIGHT:"CR",CLICKMIDDLE:"CM",SCROLL:"S",ZOOM:"Z",RESIZE:"R",KEYBOARDENTER:"KE",KEYBOARDSPACE:"KS",OTHER:"O"};!function(e){e[e.PAGE_ACTION=0]="PAGE_ACTION",e[e.CONTENT_UPDATE=1]="CONTENT_UPDATE"}(r||(r={}))},49382:function(e,t,n){"use strict";n.d(t,{$z:function(){return v},E0:function(){return h},IA:function(){return u},IX:function(){return S},PF:function(){return g},RB:function(){return E},St:function(){return d},U$:function(){return C},cT:function(){return I},fw:function(){return b},gY:function(){return a},hj:function(){return T},iK:function(){return s},iy:function(){return p},pA:function(){return c},pk:function(){return _},v2:function(){return y},we:function(){return A},wm:function(){return f},zO:function(){return m}});var r=n(533),o=n(79383),i=n(50144);function a(e,t){s(e),(0,r.Iu)(t,(function(t,n){(0,r.Gv)(e[t])?s(e[t]):delete e[t]}))}function s(e){(0,r.z)(e,(function(t,n){(!(0,o.yD)(n)||"{}"===JSON.stringify(n)&&"callback"!==t)&&delete e[t]}))}function c(e){return u(e,l)}function u(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 l(e){return"A"===e.nodeName}function d(e){return e}function f(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,u=t.bottom;return Math.max(0,Math.min(o,c)-Math.max(n,a))*Math.max(0,Math.min(i,u)-Math.max(r,s))}((e=e).getBoundingClientRect(),t)>0}function h(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}function p(e){return"which"in e?3===e.which:"button"in e?2===e.button:void 0}function g(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}function v(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}function m(e){if("keyCode"in e)return 13===e.keyCode}function y(e){if("keyCode"in e)return 32===e.keyCode}function C(e,t){var n=E(e,"data-bi-dnt");return!!(0,o.yD)(n)}function T(e,t){return!(t&&t.isAuto&&(0,o.yD)(E(e,"data-bi-mto")))&&!C(e)}function E(e,t){return u(e,w,t)}function w(e,t){var n=e.getAttribute(t);return(0,o.yD)(n)||""===n}function b(e){return"["+e+"]"}function _(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 I(){var e={h:0,v:0},t=(0,i.zk)(),n=(0,i.YE)();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 S(){var e={h:0,w:0},t=(0,i.zk)(),n=(0,i.YE)();if(t&&n&&t.screen){var r=n.body||{},o=n.documentElement||{};e.h=t.innerHeight||r.clientHeight||o.clientHeight,e.w=t.innerWidth||r.clientWidth||o.clientWidth}return e}function A(e){return{top:0,bottom:e.h,left:0,right:e.w}}},6746:function(e,t,n){"use strict";n.d(t,{O:function(){return d}});var r=n(52917),o=n(97337),i=n(14032),a=n(50144),s=n(21814),c=n(14371),u=n(49382),l={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},d=function(){function e(t,n){var d,f,h,p,g,v,m,y,C,T=this;(0,r.A)(e,this,(function(e){function r(e){var t={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},n=(0,a.zk)(),r=(e=e||n.event).srcElement||e.target,o={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},i=(0,u.iy)(e);if(i)o.actionType=c.X.CLICKRIGHT;else if((0,u.PF)(e))o.actionType=c.X.CLICKLEFT;else if((0,u.zO)(e))o.actionType=c.X.KEYBOARDENTER;else if((0,u.v2)(e))o.actionType=c.X.KEYBOARDSPACE;else{if(!(0,u.$z)(e))return;o.actionType=c.X.CLICKMIDDLE}for(;r&&r.tagName;){if(r.control&&t[r.control.tagName.toUpperCase()]&&(r=r.control),t[r.tagName.toUpperCase()]){("INPUT"!==r.tagName.toUpperCase()||l[r.type.toUpperCase()])&&d&&d.capturePageAction(r,o,{},i);break}r=r.parentElement||r.parentNode}}function E(){e._analyticsPlugin=null,e._traceLogger=null,d=null,f=null,h=null,g=!1,v=!1,m=!1,y=!1,C=!1}E(),d=t,f=n,h=(0,o.Hm)((0,i.Z)("AutoCaptureHandler"),d._evtNamespace),e._analyticsPlugin=d,e._traceLogger=f,e.pageView=function(){d&&d.capturePageView({isAuto:!0})},e.onLoad=function(){d&&!C&&((0,s.rJ)((function(){d&&d.capturePageViewPerformance({isAuto:!0}),d&&d.captureContentUpdate({isAuto:!0,isDomComplete:!0})}),h),C=!0)},e.click=function(){if(!p){var e=(0,a.zk)(),t=(0,a.YE)();if(e&&e.addEventListener){var n=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";(0,o.mB)(e,n,r,h),(0,o.mB)(e,"keyup",r,h)}else t&&t.attachEvent&&((0,o.mB)(t,"click",r,h),(0,o.mB)(t,"keyup",r,h));p=!0}},e.scroll=function(e){if(!g){var t=(0,u.pk)(null,(function(){d&&d.captureContentUpdate({isAuto:!0,actionType:c.X.SCROLL})}),e.scroll,T);(0,o.mB)((0,a.zk)(),"scroll",t,h),g=!0}},e.maxScroll=function(e){if(!v){(0,o.mB)((0,a.zk)(),"scroll",(function(){var t=(0,u.cT)();e.v=e.v>t.v?e.v:t.v}),h),v=!0}},e.resize=function(e){if(!m){var t=(0,u.pk)((function(){d&&d.captureContentUpdate({isAuto:!0,actionType:c.X.RESIZE})}),null,e.resize,T);(0,o.mB)((0,a.zk)(),"resize",t,h),m=!0}},e.onUnload=function(){function e(){d&&d.capturePageUnload({isAuto:!0})}if(!y){var t=((d||{}).core||{}).config.disablePageUnloadEvents;(0,o.ee)(e,t,h),(0,o.Fc)(e,t,h),y=!0}},e.teardown=function(e,t){(0,o.ML)((0,a.zk)(),null,null,h),(0,o.ML)((0,a.YE)(),null,null,h),(0,o.Ds)(null,h),(0,o.sq)(null,h),E()},e._processClick=r}))}return e.__ieDyn=1,e}()},70093:function(e,t,n){"use strict";n.d(t,{R2:function(){return a},_G:function(){return o},ks:function(){return s},wc:function(){return i},xF:function(){return r}});var r="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",o="https://dc.services.visualstudio.com",i="/v2/track",a="not_specified",s="iKey"},24845:function(e,t,n){"use strict";n.d(t,{N:function(){return i}});var r=n(533),o=n(50144);function i(e){var t=null;if((0,r.Tn)(Event))t=new Event(e);else{var n=(0,o.YE)();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}},61979:function(e,t,n){"use strict";n.d(t,{Dt:function(){return i},Y8:function(){return s},bb:function(){return a},vv:function(){return c}});var r=n(533),o=n(94326);function i(e,t){return void 0===t&&(t=!1),void 0===e||null===e?t:"true"===e.toString()[o.OL]()}function a(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t[o.oI]?"00"+t:2===t[o.oI]?"0"+t:t,n=n[o.oI]<2?"0"+n:n,r=r[o.oI]<2?"0"+r:r,(a>0?a+".":"")+(i=i[o.oI]<2?"0"+i:i)+":"+r+":"+n+"."+t}function s(e,t){var n=null;return(0,r.Iu)(e,(function(e){if(e.identifier===t)return n=e,-1})),n}function c(e,t,n,o,i){return!i&&(0,r.Kg)(e)&&("Script error."===e||"Script error"===e)}},78018:function(e,t,n){"use strict";n.d(t,{a:function(){return r}});var r=(0,n(60830).oP)({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"]})},75846:function(e,t,n){"use strict";n.d(t,{BW:function(){return C},AN:function(){return b},Nu:function(){return v},iw:function(){return y},Se:function(){return T},vH:function(){return I},T9:function(){return _},v7:function(){return A},tm:function(){return w},_M:function(){return E},Dt:function(){return S},vh:function(){return m}});var r=n(533),o=n(21336),i=n(50144),a=n(10387),s=n(60830),c=(0,s.Hj)({LocalStorage:0,SessionStorage:1}),u=((0,s.Hj)({AI:0,AI_AND_W3C:1,W3C:2}),n(94326)),l=void 0,d=void 0,f="";function h(){return C()?p(c.LocalStorage):null}function p(e){try{if((0,r.hX)((0,o.mS)()))return null;var t=(new Date)[u.xE](),n=(0,i.EH)(e===c.LocalStorage?"localStorage":"sessionStorage"),a=f+t;n.setItem(a,t);var s=n.getItem(a)!==t;if(n[u.AZ](a),!s)return n}catch(l){}return null}function g(){return b()?p(c.SessionStorage):null}function v(){l=!1,d=!1}function m(e){f=e||""}function y(){l=C(!0),d=b(!0)}function C(e){return(e||void 0===l)&&(l=!!p(c.LocalStorage)),l}function T(e,t){var n=h();if(null!==n)try{return n.getItem(t)}catch(o){l=!1,(0,a.ZP)(e,2,1,"Browser failed read of local storage. "+(0,r.lL)(o),{exception:(0,i.mm)(o)})}return null}function E(e,t,n){var o=h();if(null!==o)try{return o.setItem(t,n),!0}catch(s){l=!1,(0,a.ZP)(e,2,3,"Browser failed write to local storage. "+(0,r.lL)(s),{exception:(0,i.mm)(s)})}return!1}function w(e,t){var n=h();if(null!==n)try{return n[u.AZ](t),!0}catch(o){l=!1,(0,a.ZP)(e,2,5,"Browser failed removal of local storage item. "+(0,r.lL)(o),{exception:(0,i.mm)(o)})}return!1}function b(e){return(e||void 0===d)&&(d=!!p(c.SessionStorage)),d}function _(){var e=[];return b()&&(0,r.z)((0,i.EH)("sessionStorage"),(function(t){e.push(t)})),e}function I(e,t){var n=g();if(null!==n)try{return n.getItem(t)}catch(o){d=!1,(0,a.ZP)(e,2,2,"Browser failed read of session storage. "+(0,r.lL)(o),{exception:(0,i.mm)(o)})}return null}function S(e,t,n){var o=g();if(null!==o)try{return o.setItem(t,n),!0}catch(s){d=!1,(0,a.ZP)(e,2,4,"Browser failed write to session storage. "+(0,r.lL)(s),{exception:(0,i.mm)(s)})}return!1}function A(e,t){var n=g();if(null!==n)try{return n[u.AZ](t),!0}catch(o){d=!1,(0,a.ZP)(e,2,6,"Browser failed removal of session storage item. "+(0,r.lL)(o),{exception:(0,i.mm)(o)})}return!1}},22534:function(e,t,n){"use strict";n.d(t,{V:function(){return s}});var r=n(533),o=n(70093),i=n(60523),a=n(94326);function s(e,t,n,s,c,u){var l;n=(0,i.Rr)(s,n)||o.R2,((0,r.hX)(e)||(0,r.hX)(t)||(0,r.hX)(n))&&(0,r.$8)("Input doesn't contain all required fields");var d="";e[o.ks]&&(d=e[o.ks],delete e[o.ks]);var f=((l={})[a.RS]=n,l.time=(0,r._u)(new Date),l.iKey=d,l.ext=u||{},l.tags=[],l.data={},l.baseType=t,l.baseData=e,l);return(0,r.hX)(c)||(0,r.z)(c,(function(e,t){f.data[e]=t})),f}!function(){function e(){}e.create=s}()},60523:function(e,t,n){"use strict";n.d(t,{HQ:function(){return v},Rr:function(){return l},Vj:function(){return g},Vk:function(){return f},Vt:function(){return h},pJ:function(){return d},xP:function(){return p}});var r,o=n(533),i=n(10387),a=n(50144),s=n(94326);function c(e,t,n){var r=t[s.oI],o=u(e,t);if(o[s.oI]!==r){for(var i=0,a=o;void 0!==n[a];)i++,a=o[s.Re](0,147)+y(i);o=a}return o}function u(e,t){var n;return t&&(t=(0,o.EH)(t[s.xE]()))[s.oI]>150&&(n=t[s.Re](0,150),(0,i.ZP)(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:t},!0)),n||t}function l(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=(0,o.EH)(t)).toString()[s.oI]>n&&(r=t[s.xE]()[s.Re](0,n),(0,i.ZP)(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function d(e,t){return m(e,t,2048,66)}function f(e,t){var n;return t&&t[s.oI]>32768&&(n=t[s.Re](0,32768),(0,i.ZP)(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function h(e,t){var n;if(t){var r=""+t;r[s.oI]>32768&&(n=r[s.Re](0,32768),(0,i.ZP)(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function p(e,t){if(t){var n={};(0,o.z)(t,(function(t,r){if((0,o.Gv)(r)&&(0,a.Z)())try{r=(0,a.hm)()[s.Jj](r)}catch(u){(0,i.ZP)(e,2,49,"custom property is not valid",{exception:u},!0)}r=l(e,r,8192),t=c(e,t,n),n[t]=r})),t=n}return t}function g(e,t){if(t){var n={};(0,o.z)(t,(function(t,r){t=c(e,t,n),n[t]=r})),t=n}return t}function v(e,t){return t?m(e,t,128,69)[s.xE]():t}function m(e,t,n,r){var a;return t&&(t=(0,o.EH)(t))[s.oI]>n&&(a=t[s.Re](0,n),(0,i.ZP)(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),a||t}function y(e){var t="00"+e;return t.substr(t[s.oI]-3)}(r={MAX_NAME_LENGTH:150,MAX_ID_LENGTH:128,MAX_PROPERTY_LENGTH:8192,MAX_STRING_LENGTH:1024,MAX_URL_LENGTH:2048,MAX_MESSAGE_LENGTH:32768,MAX_EXCEPTION_LENGTH:32768})[s.VB]=c,r.sanitizeKey=u,r.sanitizeString=l,r.sanitizeUrl=d,r.sanitizeMessage=f,r[s.R$]=h,r[s.vk]=p,r[s.xd]=g,r.sanitizeId=v,r.sanitizeInput=m,r.padNumber=y,r.trim=o.EH},63713:function(e,t,n){"use strict";n.d(t,{A:function(){return s}});var r=n(61979),o=n(1250),i=n(94326),a=n(60523),s=function(){function e(e,t,n,s,c,u,l,d,f,h,p,g){void 0===f&&(f="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 v=this;v.ver=2,v.id=t,v[i.qd]=(0,r.bb)(c),v.success=u,v.resultCode=l+"",v.type=(0,a.Rr)(e,f);var m=(0,o._U)(e,n,d,s);v.data=(0,a.pJ)(e,s)||m.data,v.target=(0,a.Rr)(e,m.target),h&&(v.target="".concat(v.target," | ").concat(h)),v[i.RS]=(0,a.Rr)(e,m[i.RS]),v[i.$y]=(0,a.xP)(e,p),v[i.XA]=(0,a.Vj)(e,g)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}()},28598:function(e,t,n){"use strict";n.d(t,{Gz:function(){return d},M0:function(){return p},PS:function(){return h},cM:function(){return u},k6:function(){return f},wX:function(){return l}});var r=n(50144),o=n(533),i=n(94326),a=(0,r.YE)()||{},s=0,c=[null,null,null,null,null];function u(e){var t=s,n=c,r=n[t];return a.createElement?n[t]||(r=n[t]=a.createElement("a")):r={host:h(e,!0)},r.href=e,++t>=n[i.oI]&&(t=0),s=t,r}function l(e){var t,n=u(e);return n&&(t=n.href),t}function d(e){var t,n=u(e);return n&&(t=n[i.Ue]),t}function f(e,t){return e?e.toUpperCase()+" "+t:t}function h(e,t){var n=p(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[i.oI]>3&&(0,o.Kg)(r[2])&&r[2][i.oI]>0)return r[2]+(r[3]||"")}return n}function p(e,t){var n=null;if(e){var r=e.match(/(\w{1,150}):\/\/([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r[i.oI]>2&&(0,o.Kg)(r[2])&&r[2][i.oI]>0&&(n=r[2]||"",t&&r[i.oI]>2)){var a=(r[1]||"")[i.OL](),s=r[3]||"";("http"===a&&":80"===s||"https"===a&&":443"===s)&&(s=""),n+=s}}return n}},1250:function(e,t,n){"use strict";n.d(t,{Ft:function(){return _},Qu:function(){return C},_U:function(){return E},ci:function(){return T},jj:function(){return b},lt:function(){return w}});var r=n(533),o=n(87390),i=n(58814),a=n(33571),s=n(50144),c=n(97337),u=n(90732),l=n(70093),d=n(24845),f=n(61979),h=n(78018),p=n(75846),g=n(60523),v=n(28598),m=n(94326),y=[l._G+l.wc,"https://breeze.aimon.applicationinsights.io"+l.wc,"https://dc-int.services.visualstudio.com"+l.wc];function C(e){return-1!==(0,r.rD)(y,e[m.OL]())}l.R2,d.N,p.Nu,p.BW,p.Se,p._M,p.tm,p.AN,p.T9,p.vH,p.Dt,p.v7,o.WD,o.ht,i.It,o.TV,f.Dt,o.Ri,o.Yj,r.EH,a.Si,o.cL,r.cy,r.bJ,r.$P,r._u,s.L0,f.bb,f.vv,s.mm,r.lL,c.Q3,s.Uf,f.Y8,v.cM,v.wX,v.Gz,v.k6,v.PS,v.M0;var T={correlationIdPrefix:"cid-v1:",canIncludeCorrelationHeader:function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e[m.Ol])for(var o=0;o<e.correlationHeaderExcludePatterns[m.oI];o++)if(e[m.Ol][o].test(t))return!1;var i=(0,v.cM)(t).host[m.OL]();if(!i||-1===i[m.Sj](":443")&&-1===i[m.Sj](":80")||(i=((0,v.M0)(t,!0)||"")[m.OL]()),(!e||!e.enableCorsCorrelation)&&i&&i!==n)return!1;var a,s=e&&e.correlationHeaderDomains;if(s&&((0,r.Iu)(s,(function(e){var t=new RegExp(e.toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*"));a=a||t.test(i)})),!a))return!1;var c=e&&e.correlationHeaderExcludedDomains;if(!c||0===c[m.oI])return!0;for(o=0;o<c[m.oI];o++){if(new RegExp(c[o].toLowerCase().replace(/\\/g,"\\\\").replace(/\./g,"\\.").replace(/\*/g,".*")).test(i))return!1}return i&&i[m.oI]>0},getCorrelationContext:function(e){if(e){var t=T.getCorrelationContextValue(e,h.a[1]);if(t&&t!==T.correlationIdPrefix)return t}},getCorrelationContextValue:function(e,t){if(e)for(var n=e[m.sY](","),r=0;r<n[m.oI];++r){var o=n[r][m.sY]("=");if(2===o[m.oI]&&o[0]===t)return o[1]}}};function E(e,t,n,r){var o,i=r,a=r;if(t&&t[m.oI]>0){var s=(0,v.cM)(t);if(o=s.host,!i)if(null!=s[m.Ue]){var c=0===s.pathname[m.oI]?"/":s[m.Ue];"/"!==c.charAt(0)&&(c="/"+c),a=s[m.Ue],i=(0,g.Rr)(e,n?n+" "+c:c)}else i=(0,g.Rr)(e,t)}else o=r,i=r;return{target:o,name:i,data:a}}function w(){var e=(0,s.FJ)();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return(0,r.x3)()}function b(e,t){var n=null;return 0===e||0===t||(0,r.hX)(e)||(0,r.hX)(t)||(n=t-e),n}function _(e,t){var n=e||{};return{getName:function(){return n[m.RS]},setName:function(e){t&&t.setName(e),n[m.RS]=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),(0,u.hX)(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),(0,u.wN)(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}},94326:function(e,t,n){"use strict";n.d(t,{$y:function(){return m},AZ:function(){return s},Av:function(){return k},F2:function(){return l},Fq:function(){return w},IE:function(){return S},J$:function(){return C},Jj:function(){return d},OK:function(){return g},OL:function(){return i},Ol:function(){return h},QE:function(){return I},R$:function(){return D},RS:function(){return c},Re:function(){return M},Sj:function(){return p},Ue:function(){return f},Ur:function(){return E},VB:function(){return x},XA:function(){return y},fd:function(){return O},h_:function(){return P},lW:function(){return A},lx:function(){return R},oI:function(){return o},on:function(){return v},pM:function(){return u},qd:function(){return N},qg:function(){return T},r1:function(){return b},sY:function(){return r},vk:function(){return L},vu:function(){return _},xE:function(){return a},xd:function(){return U}});var r="split",o="length",i="toLowerCase",a="toString",s="removeItem",c="name",u="message",l="count",d="stringify",f="pathname",h="correlationHeaderExcludePatterns",p="indexOf",g="exceptions",v="parsedStack",m="properties",y="measurements",C="sizeInBytes",T="typeName",E="severityLevel",w="problemGroup",b="isManual",_="CreateFromInterface",I="assembly",S="fileName",A="hasFullStack",k="level",R="method",P="line",N="duration",O="receivedResponse",M="substring",x="sanitizeKeyAndAddUniqueness",D="sanitizeException",L="sanitizeProperties",U="sanitizeMeasurements"},4529:function(e,t,n){"use strict";n.d(t,{Vp:function(){return o},_u:function(){return r}});var r="AppInsightsPropertiesPlugin",o="ApplicationInsightsAnalytics"},60830:function(e,t,n){"use strict";n.d(t,{Hj:function(){return o},oP:function(){return i}});var r=n(533);function o(e){var t={};return(0,r.z)(e,(function(e,n){t[e]=n,t[n]=e})),(0,r.ol)(t)}function i(e){var t={};return(0,r.z)(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),(0,r.ol)(t)}},55389:function(e,t,n){"use strict";n.d(t,{s:function(){return u}});var r=n(52917),o=n(86058),i=n(533),a=n(98184),s=n(78905),c=n(71128),u=function(){function e(){var t,n,u,l,d,f=this;function h(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,s.i8)(null,{},f[a.eT]);t=u&&u.getPlugin?r[o.$o](null,u.getPlugin):r[o.$o](null,u)}return t}function p(e,t,r){e&&(0,i.KY)(e,a.Bw,[],null,i.hX),!r&&t&&(r=t[o.ps]()[o.uR]());var c=u;u&&u.getPlugin&&(c=u.getPlugin()),f[a.eT]=t,n=(0,s.i8)(r,e,t,c)}function g(){t=!1,f[a.eT]=null,n=null,u=null,d=[],l=(0,c.P)()}g(),(0,r.A)(e,f,(function(e){e[o.mE]=function(e,n,r,o){p(e,n,o),t=!0},e[o.Ik]=function(t,n){var r,c=e[a.eT];if(c&&(!t||c===t[a.eT]())){var f,h=!1,p=t||(0,s.tS)(null,c,u&&u.getPlugin?u.getPlugin():u),v=n||((r={reason:0})[o.tI]=!1,r);return e[o.tn]&&!0===e[o.tn](p,v,m)?f=!0:m(),f}function m(){if(!h){h=!0,l.run(p,n);var e=d;d=[],(0,i.Iu)(e,(function(e){e.rm()})),!0===f&&p[o.$5](v),g()}}},e[o.HC]=function(t,n){var r=e[a.eT];if(r&&(!t||r===t[a.eT]())){var i,c=!1,l=t||(0,s.nU)(null,r,u&&u.getPlugin?u.getPlugin():u),d=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(l,d,f)?i=!0:f(),i}function f(){c||(c=!0,p(l.getCfg(),l.core(),l[o.uR]()))}},e._addHook=function(e){e&&((0,i.cy)(e)?d=d.concat(e):d[o.y5](e))},(0,i.RF)(e,"_addUnloadCb",(function(){return l}),"add")})),f[o.e4]=function(e){return h(e)[o.e4]()},f[o.tZ]=function(){return t},f.setInitialized=function(e){t=e},f[o.YH]=function(e){u=e},f[o.$5]=function(e,t){t?t[o.$5](e):u&&(0,i.Tn)(u[a.qT])&&u[a.qT](e,null)},f._getTelCtx=h}return e.__ieDyn=1,e}()},58814:function(e,t,n){"use strict";n.d(t,{It:function(){return k},d5:function(){return m},gi:function(){return w},um:function(){return T},xN:function(){return E}});var r=n(86058),o=n(10387),i=n(50144),a=n(533),s=n(98184),c="toGMTString",u="toUTCString",l="expires",d=null,f=null,h=null,p=(0,i.YE)(),g={},v={};function m(e,t){var n=E._ckMgr||v._ckMgr;return n||(n=E._ckMgr=E(e,t),v._ckMgr=n),n}function y(e){return!e||e.isEnabled()}function C(e,t){return!!(t&&e&&(0,a.cy)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.Sj](t)}function T(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var o=t[r.lK];n=o._ckMgr?o._ckMgr:E(t)}return n||(n=m(t,(e||{})[r.Uw])),n}function E(e,t){var n,o=function(e){var t=e[r.lK]=e[r.lK]||{};if((0,a.KY)(t,"domain",e.cookieDomain,a.Gh,a.hX),(0,a.KY)(t,"path",e.cookiePath||"/",null,a.hX),(0,a.hX)(t.enabled)){var n=void 0;(0,a.b0)(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),(0,a.b0)(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n}return t}(e||v),d=o.path||"/",h=o.domain,p=!1!==o.enabled,g=((n={isEnabled:function(){var e=p&&w(t),n=v._ckMgr;return e&&n&&g!==n&&(e=y(n)),e}})[r.kt]=function(e){p=!1!==e},n.set=function(e,t,n,p,v){var m=!1;if(y(g)&&!function(e,t){return!!(t&&e&&(0,a.cy)(e.blockedCookies)&&-1!==e.blockedCookies[r.Sj](t))||C(e,t)}(o,e)){var T={},E=(0,a.EH)(t||s.m5),w=E[r.Sj](";");if(-1!==w&&(E=(0,a.EH)(t[r.Re](0,w)),T=b(t[r.Re](w+1))),(0,a.KY)(T,"domain",p||h,a.zz,a.b0),!(0,a.hX)(n)){var S=(0,i.lT)();if((0,a.b0)(T.expires)){var R=(0,a.x3)()+1e3*n;if(R>0){var P=new Date;P.setTime(R),(0,a.KY)(T,l,_(P,S?c:u)||_(P,S?c:u)||s.m5,a.zz)}}S||(0,a.KY)(T,"max-age",s.m5+n,null,a.b0)}var N=(0,i.g$)();N&&"https:"===N.protocol&&((0,a.KY)(T,"secure",null,null,a.b0),null===f&&(f=!k(((0,i.w3)()||{})[r.tX])),f&&(0,a.KY)(T,"SameSite","None",null,a.b0)),(0,a.KY)(T,"path",v||d,null,a.b0),(o.setCookie||A)(e,I(E,T)),m=!0}return m},n.get=function(e){var t=s.m5;return y(g)&&!C(o,e)&&(t=(o.getCookie||S)(e)),t},n.del=function(e,t){var n=!1;return y(g)&&(n=g.purge(e,t)),n},n.purge=function(e,n){var r,a=!1;if(w(t)){var c=((r={}).path=n||"/",r.expires="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,i.lT)()||(c["max-age"]="0"),(o.delCookie||A)(e,I(s.m5,c)),a=!0}return a},n);return g._ckMgr=g,g}function w(e){if(null===d){d=!1;try{d=void 0!==(p||{}).cookie}catch(t){(0,o.ZP)(e,2,68,"Cannot access document.cookie - "+(0,a.lL)(t),{exception:(0,i.mm)(t)})}}return d}function b(e){var t={};if(e&&e[r.oI]){var n=(0,a.EH)(e)[r.sY](";");(0,a.Iu)(n,(function(e){if(e=(0,a.EH)(e||s.m5)){var n=e[r.Sj]("=");-1===n?t[e]=null:t[(0,a.EH)(e[r.Re](0,n))]=(0,a.EH)(e[r.Re](n+1))}}))}return t}function _(e,t){return(0,a.Tn)(e[t])?e[t]():null}function I(e,t){var n=e||s.m5;return(0,a.z)(t,(function(e,t){n+="; "+e+((0,a.hX)(t)?s.m5:"="+t)})),n}function S(e){var t=s.m5;if(p){var n=p.cookie||s.m5;h!==n&&(g=b(n),h=n),t=(0,a.EH)(g[e]||s.m5)}return t}function A(e,t){p&&(p.cookie=e+"="+t)}function k(e){return!!(0,a.Kg)(e)&&(!(!(0,a.Ju)(e,"CPU iPhone OS 12")&&!(0,a.Ju)(e,"iPad; CPU OS 12"))||(!!((0,a.Ju)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,a.Ju)(e,"Version/")&&(0,a.Ju)(e,"Safari"))||(!(!(0,a.Ju)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,a.Cv)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!(0,a.Ju)(e,"Chrome/5")&&!(0,a.Ju)(e,"Chrome/6"))||(!(!(0,a.Ju)(e,"UnrealEngine")||(0,a.Ju)(e,"Chrome"))||!(!(0,a.Ju)(e,"UCBrowser/12")&&!(0,a.Ju)(e,"UCBrowser/11")))))))}},87390:function(e,t,n){"use strict";n.d(t,{Ri:function(){return T},TV:function(){return E},UU:function(){return p},WD:function(){return y},Yj:function(){return w},aq:function(){return h},cL:function(){return g},ht:function(){return C}});var r,o=n(21336),i=n(86058),a=n(58814),s=n(50144),c=n(97337),u=n(533),l=n(98184),d=n(33571),f=null;function h(){var e=g();return e[i.Re](0,8)+"-"+e[i.Re](8,12)+"-"+e[i.Re](12,16)+"-"+e[i.Re](16,20)+"-"+e[i.Re](20)}function p(){var e=(0,s.FJ)();return e&&e.now?e.now():(0,u.x3)()}function g(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=l.m5,r=0;r<4;r++)n+=t[15&(e=(0,d.VN)())]+t[e>>4&15]+t[e>>8&15]+t[e>>12&15]+t[e>>16&15]+t[e>>20&15]+t[e>>24&15]+t[e>>28&15];var o=t[8+(3&(0,d.VN)())|0];return n[i.$4](0,8)+n[i.$4](9,4)+"4"+n[i.$4](13,3)+o+n[i.$4](16,3)+n[i.$4](19,12)}var v={_canUseCookies:void 0,isTypeof:u.Ed,isUndefined:u.b0,isNullOrUndefined:u.hX,hasOwnProperty:u.mQ,isFunction:u.Tn,isObject:u.Gv,isDate:u.$P,isArray:u.cy,isError:u.bJ,isString:u.Kg,isNumber:u.Et,isBoolean:u.Lm,toISOString:u._u,arrForEach:u.Iu,arrIndexOf:u.rD,arrMap:u.W$,arrReduce:u.KT,strTrim:u.EH,objCreate:o.AQ,objKeys:u.cG,objDefineAccessors:u.r,addEventHandler:c.So,dateNow:u.x3,isIE:s.lT,disableCookies:y,newGuid:h,perfNow:p,newId:d.Si,randomValue:d.Z1,random32:d.VN,mwcRandomSeed:d.yc,mwcRandom32:d.k5,generateW3CId:g};c.Q3,c.Q3,c.Ym,c.Ym;function m(e,t){var n=(0,a.d5)(e,t),o=v._canUseCookies;return null===f&&(f=[],r=o,(0,u.r)(v,"_canUseCookies",(function(){return r}),(function(e){r=e,(0,u.Iu)(f,(function(t){t[i.kt](e)}))}))),-1===(0,u.rD)(f,n)&&f[i.y5](n),(0,u.Lm)(o)&&n[i.kt](o),(0,u.Lm)(r)&&n[i.kt](r),n}function y(){m()[i.kt](!1)}function C(e){return m(null,e).isEnabled()}function T(e,t){return m(null,e).get(t)}function E(e,t,n,r){m(null,e).set(t,n,null,r)}function w(e,t){return m(null,e).del(t)}},14032:function(e,t,n){"use strict";n.d(t,{T:function(){return g},Z:function(){return p}});var r=n(50068),o=n(86058),i=n(533),a=n(98184),s=n(33571),c=r.KU,u="2.8.16",l="."+(0,s.Si)(6),d=0;function f(e){return 1===e[o.re]||9===e[o.re]||!+e[o.re]}function h(e,t){var n=t[e.id];if(!n){n={};try{f(t)&&(function(e,t,n){if(c)try{return c(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 p(e,t){return void 0===t&&(t=!1),(0,i.cH)(e+d+++(t?".2.8.16":a.m5)+l)}function g(e){var t={id:p("_aiData-"+(e||a.m5)+"."+u),accept:function(e){return f(e)},get:function(e,n,r,o){var a=e[t.id];return a?a[(0,i.cH)(n)]:(o&&((a=h(t,e))[(0,i.cH)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(n){}}};return t}},23935:function(e,t,n){"use strict";n.d(t,{$:function(){return u},M:function(){return l}});var r,o=n(86058),i=n(50144),a=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],s=null;function c(e,t){return function(){var n=arguments,r=u(t);if(r){var i=r.listener;i&&i[e]&&i[e][o.y9](i,n)}}}function u(e){var t=s;return t||!0===e.disableDbgExt||(t=s||function(){var e=(0,i.EH)("Microsoft");return e&&(s=e.ApplicationInsights),s}()),t?t.ChromeDbgExt:null}function l(e){if(!r){r={};for(var t=0;t<a[o.oI];t++)r[a[t]]=c(a[t],e)}return r}},10387:function(e,t,n){"use strict";n.d(t,{OG:function(){return v},WD:function(){return d},ZP:function(){return g},wq:function(){return h},y0:function(){return f}});var r=n(52917),o=n(86058),i=n(23935),a=n(50144),s=n(533),c=n(98184);function u(e){return e?'"'+e[o.W7](/\"/g,c.m5)+'"':c.m5}function l(e,t){var n=(0,a.U5)();if(n){var r="log";n[e]&&(r=e),(0,s.Tn)(n[r])&&n[r](t)}}var d=function(){function e(e,t,n,r){void 0===n&&(n=!1);var i=this;i[o.JR]=e,i[o.pM]=(n?"AI: ":"AI (Internal): ")+e;var s=c.m5;(0,a.Z)()&&(s=(0,a.hm)().stringify(r));var l=(t?" message:"+u(t):c.m5)+(r?" props:"+u(s):c.m5);i[o.pM]+=l}return e.dataType="MessageData",e}();function f(e,t){return(e||{})[o.Uw]||new h(t)}var h=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,u,f,h,p=0,g={};(0,r.A)(e,this,(function(e){function r(t,n){if(!(p>=f)){var r=!0,i="AITR_"+n[o.JR];if(g[i]?r=!1:g[i]=!0,r&&(t<=u&&(e.queue[o.y5](n),p++,v(1===t?"error":"warn",n)),p===f)){var a="Internal events throttle limit per PageView reached for this app.",s=new d(23,a,!1);e.queue[o.y5](s),1===t?e[c.Zi](a):e[c.Tj](a)}}}function v(e,n){var r=(0,i.$)(t||{});r&&r[o.e4]&&r[o.e4](e,n)}!function(e){n=(0,s.SA)(e.loggingLevelConsole,0),u=(0,s.SA)(e.loggingLevelTelemetry,1),f=(0,s.SA)(e.maxMessageLimit,25),h=(0,s.SA)(e.enableDebug,(0,s.SA)(e[o.a$],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return u},e.maxInternalMessageLimit=function(){return f},e[o.a$]=function(){return h},e.throwInternal=function(t,i,u,l,f){void 0===f&&(f=!1);var p=new d(i,u,f,l);if(h)throw(0,a.mm)(p);var m=1===t?c.Zi:c.Tj;if((0,s.b0)(p[o.pM]))v("throw"+(1===t?"Critical":"Warning"),p);else{if(f){var y=+p[o.JR];!g[y]&&n>=t&&(e[m](p[o.pM]),g[y]=!0)}else n>=t&&e[m](p[o.pM]);r(t,p)}},e[c.Tj]=function(e){l("warn",e),v("warning",e)},e[c.Zi]=function(e){l("error",e),v("error",e)},e.resetInternalMessageCount=function(){p=0,g={}},e[o.sx]=r}))}return e.__ieDyn=1,e}();function p(e){return e||new h}function g(e,t,n,r,o,i){void 0===i&&(i=!1),p(e).throwInternal(t,n,r,o,i)}function v(e,t){p(e)[c.Tj](t)}},50144:function(e,t,n){"use strict";n.d(t,{EH:function(){return C},FJ:function(){return P},JK:function(){return A},L0:function(){return U},MY:function(){return M},PV:function(){return B},R7:function(){return F},U5:function(){return R},Uf:function(){return q},Vd:function(){return T},Wt:function(){return w},YE:function(){return b},Z:function(){return N},g$:function(){return k},hm:function(){return O},iN:function(){return x},lT:function(){return L},lV:function(){return D},mm:function(){return H},tw:function(){return S},w3:function(){return I},xk:function(){return K},zk:function(){return E}});var r=n(50068),o=n(21336),i=n(86058),a=n(533),s=n(98184),c="window",u="JSON",l="msie",d="trident/",f="XMLHttpRequest",h=null,p=null,g=!1,v=null,m=null;function y(e,t){var n=!1;if(e){try{if(!(n=t in e)){var o=e[r.vR];o&&(n=t in o)}}catch(s){}if(!n)try{var i=new e;n=!(0,a.b0)(i[t])}catch(s){}}return n}function C(e){var t=(0,o.mS)();return t&&t[e]?t[e]:e===c&&T()?window:null}function T(){return Boolean(typeof window===r._1&&window)}function E(){return T()?window:C(c)}function w(){return Boolean(typeof document===r._1&&document)}function b(){return w()?document:C("document")}function _(){return Boolean(typeof navigator===r._1&&navigator)}function I(){return _()?navigator:C("navigator")}function S(){return Boolean(typeof history===r._1&&history)}function A(){return S()?history:C("history")}function k(e){if(e&&g){var t=C("__mockLocation");if(t)return t}return typeof location===r._1&&location?location:C("location")}function R(){return typeof console!==r.bA?console:C("console")}function P(){return C("performance")}function N(){return Boolean(typeof JSON===r._1&&JSON||null!==C(u))}function O(){return N()?JSON||C(u):null}function M(){return C("crypto")}function x(){return C("msCrypto")}function D(){var e=I();return!(!e||!e.product)&&"ReactNative"===e.product}function L(){var e=I();if(e&&(e[i.tX]!==p||null===h)){var t=((p=e[i.tX])||s.m5)[i.OL]();h=(0,a.Ju)(t,l)||(0,a.Ju)(t,d)}return h}function U(e){if(void 0===e&&(e=null),!e){var t=I()||{};e=t?(t[i.tX]||s.m5)[i.OL]():s.m5}var n=(e||s.m5)[i.OL]();if((0,a.Ju)(n,l)){var r=b()||{};return Math.max(parseInt(n[i.sY](l)[1]),r.documentMode||0)}if((0,a.Ju)(n,d)){var o=parseInt(n[i.sY](d)[1]);if(o)return o+4}return null}function H(e){var t=Object[r.vR].toString[i.Ek](e),n=s.m5;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[i.RS]+"'":N()&&(n=O().stringify(e)),t+n}function q(){return null===m&&(m=_()&&Boolean(I().sendBeacon)),m}function F(e){var t=!1;try{t=!!C("fetch");var n=C("Request");t&&e&&n&&(t=y(n,"keepalive"))}catch(r){}return t}function B(){return null===v&&(v=typeof XDomainRequest!==r.bA)&&K()&&(v=v&&!y(C(f),"withCredentials")),v}function K(){var e=!1;try{e=!!C(f)}catch(t){}return e}},97337:function(e,t,n){"use strict";n.d(t,{Ds:function(){return D},Fc:function(){return L},Hm:function(){return S},ML:function(){return k},Q3:function(){return R},So:function(){return N},Ym:function(){return P},ee:function(){return x},mB:function(){return A},oS:function(){return H},sq:function(){return U},vF:function(){return q}});var r=n(86058),o=n(14032),i=n(50144),a=n(533),s=n(98184),c="events",u="visibilitychange",l="pagehide",d="pageshow",f="unload",h="beforeunload",p=(0,o.Z)("aiEvtPageHide"),g=(0,o.Z)("aiEvtPageShow"),v=/\.[\.]+/g,m=/[\.]+$/,y=1,C=(0,o.T)("events"),T=/^([^.]*)(?:\.(.+)|)/;function E(e){return e&&e[r.W7]?e[r.W7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,s.m5):e}function w(e,t){var n;if(t){var o=s.m5;(0,a.cy)(t)?(o=s.m5,(0,a.Iu)(t,(function(e){(e=E(e))&&("."!==e[0]&&(e="."+e),o+=e)}))):o=E(t),o&&("."!==o[0]&&(o="."+o),e=(e||s.m5)+o)}var i=T.exec(e||s.m5)||[];return(n={})[r.QM]=i[1],n.ns=(i[2]||s.m5).replace(v,".").replace(m,s.m5)[r.sY](".").sort().join("."),n}function b(e,t,n){void 0===n&&(n=!0);var r=C.get(e,c,{},n),o=r[t];return o||(o=r[t]=[]),o}function _(e,t,n,o){e&&t&&t[r.QM]&&(e.removeEventListener?e.removeEventListener(t[r.QM],n,o):e.detachEvent&&e.detachEvent("on"+t[r.QM],n))}function I(e,t,n,o){for(var i=t[r.oI];i--;){var a=t[i];a&&(n.ns&&n.ns!==a.evtName.ns||o&&!o(a)||(_(e,a.evtName,a[r.Yo],a.capture),t[r.Ic](i,1)))}}function S(e,t){return t?w("xx",(0,a.cy)(t)?[e].concat(t):[e,t]).ns[r.sY]("."):e}function A(e,t,n,o,i){var a;void 0===i&&(i=!1);var s=!1;if(e)try{var c=w(t,o);if(s=function(e,t,n,o){var i=!1;return e&&t&&t[r.QM]&&n&&(e.addEventListener?(e.addEventListener(t[r.QM],n,o),i=!0):e.attachEvent&&(e.attachEvent("on"+t[r.QM],n),i=!0)),i}(e,c,n,i),s&&C.accept(e)){var u=((a={guid:y++,evtName:c})[r.Yo]=n,a.capture=i,a);b(e,c.type)[r.y5](u)}}catch(l){}return s}function k(e,t,n,o,i){if(void 0===i&&(i=!1),e)try{var s=w(t,o),u=!1;!function(e,t,n){if(t[r.QM])I(e,b(e,t[r.QM]),t,n);else{var o=C.get(e,c,{});(0,a.z)(o,(function(r,o){I(e,o,t,n)})),0===(0,a.cG)(o)[r.oI]&&C.kill(e,c)}}(e,s,(function(e){return!((!s.ns||n)&&e[r.Yo]!==n)&&(u=!0,!0)})),u||_(e,s,n,i)}catch(l){}}function R(e,t,n,r){return void 0===r&&(r=!1),A(e,t,n,null,r)}function P(e,t,n,r){void 0===r&&(r=!1),k(e,t,n,null,r)}function N(e,t,n){var r=!1,o=(0,i.zk)();o&&(r=A(o,e,t,n),r=A(o.body,e,t,n)||r);var a=(0,i.YE)();return a&&(r=A(a,e,t,n)||r),r}function O(e,t,n,o){var i=!1;return t&&e&&e[r.oI]>0&&(0,a.Iu)(e,(function(e){e&&(n&&-1!==(0,a.rD)(n,e)||(i=N(e,t,o)||i))})),i}function M(e,t,n){e&&(0,a.cy)(e)&&(0,a.Iu)(e,(function(e){e&&function(e,t,n){var r=(0,i.zk)();r&&(k(r,e,t,n),k(r.body,e,t,n));var o=(0,i.YE)();o&&k(o,e,t,n)}(e,t,n)}))}function x(e,t,n){return function(e,t,n,o){var i=!1;return t&&e&&(0,a.cy)(e)&&!(i=O(e,t,n,o))&&n&&n[r.oI]>0&&(i=O(e,t,null,o)),i}([h,f,l],e,t,n)}function D(e,t){M([h,f,l],e,t)}function L(e,t,n){var r=S(p,n),o=O([l],e,t,r);return t&&-1!==(0,a.rD)(t,u)||(o=O([u],(function(t){var n=(0,i.YE)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||o),!o&&t&&(o=L(e,null,n)),o}function U(e,t){var n=S(p,t);M([l],e,n),M([u],null,n)}function H(e,t,n){var r=S(g,n),o=O([d],e,t,r);return!(o=O([u],(function(t){var n=(0,i.YE)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||o)&&t&&(o=H(e,null,n)),o}function q(e,t){var n=S(g,t);M([d],e,n),M([u],null,n)}},533:function(e,t,n){"use strict";n.d(t,{$8:function(){return ue},$P:function(){return U},CP:function(){return ve},Cv:function(){return x},EH:function(){return X},Ed:function(){return I},Et:function(){return B},Gh:function(){return k},Gv:function(){return P},Iu:function(){return G},Ju:function(){return L},KT:function(){return W},KY:function(){return ie},Kg:function(){return F},Lm:function(){return K},N6:function(){return ne},RF:function(){return fe},SA:function(){return se},SZ:function(){return pe},Tn:function(){return N},W$:function(){return V},_u:function(){return Y},b0:function(){return S},bJ:function(){return q},c2:function(){return ae},cG:function(){return J},cH:function(){return O},cy:function(){return H},fw:function(){return _},hW:function(){return ge},hX:function(){return A},lL:function(){return oe},mQ:function(){return R},o$:function(){return he},ol:function(){return te},qz:function(){return de},r:function(){return Z},rD:function(){return z},tG:function(){return D},x3:function(){return re},z:function(){return M},zz:function(){return ce}});var r=n(50068),o=n(21336),i=n(86058),a=n(98184),s="constructor",c=r.KU,u=r.s6.freeze,l=(r.s6.seal,r.s6.keys),d=String[r.vR],f=d.trim,h=d.endsWith,p=d.startsWith,g=Date[r.vR].toISOString,v=Array.isArray,m=r.Wy.toString,y=r.J$.toString,C=y[i.Ek](r.s6),T=/-([a-z])/g,E=/([^\w\d_$])/g,w=/^(\d+[\w\d_$])/,b=Object.getPrototypeOf;function _(e){if(e){if(b)return b(e);var t=e.__proto__||e[r.vR]||e.constructor;if(t)return t}return null}function I(e,t){return typeof e===t}function S(e){return void 0===e||typeof e===r.bA}function A(e){return null===e||S(e)}function k(e){return!A(e)}function R(e,t){return!(!e||!r.J$[i.Ek](e,t))}function P(e){return!(!e||typeof e!==r._1)}function N(e){return!(!e||typeof e!==r.hW)}function O(e){var t=e;return t&&F(t)&&(t=(t=(t=t[i.W7](T,(function(e,t){return t.toUpperCase()})))[i.W7](E,"_"))[i.W7](w,(function(e,t){return"_"+t}))),t}function M(e,t){if(e)for(var n in e)r.J$[i.Ek](e,n)&&t[i.Ek](e,n,e[n])}function x(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=h?e.endsWith(t):function(e,t){var n=!1,r=t?t[i.oI]:0,o=e?e[i.oI]:0;if(r&&o&&o>=r&&!(n=e===t)){for(var a=o-1,s=r-1;s>=0;s--){if(e[a]!=t[s])return!1;a--}n=!0}return n}(e,t)),n}function D(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=p?e.startsWith(t):function(e,t){var n=!1,r=t?t[i.oI]:0;if(e&&r&&e[i.oI]>=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 L(e,t){return!(!e||!t)&&-1!==e[i.Sj](t)}function U(e){return!(!e||"[object Date]"!==m[i.Ek](e))}var H=v||function(e){return!(!e||"[object Array]"!==m[i.Ek](e))};function q(e){return!(!e||"[object Error]"!==m[i.Ek](e))}function F(e){return"string"===typeof e}function B(e){return"number"===typeof e}function K(e){return"boolean"===typeof e}function j(e){var t=!1;if(e&&"object"===typeof e){var n=b?b(e):_(e);n?(n.constructor&&r.J$[i.Ek](n,s)&&(n=n.constructor),t=typeof n===r.hW&&y[i.Ek](n)===C):t=!0}return t}function Y(e){if(e)return g?e.toISOString():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[i.oI]&&(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 G(e,t,n){var r=e[i.oI];try{for(var o=0;o<r&&(!(o in e)||-1!==t[i.Ek](n||e,e[o],o,e));o++);}catch(a){}}function z(e,t,n){if(e){if(e.indexOf)return e.indexOf(t,n);var r=e[i.oI],o=n||0;try{for(var a=Math.max(o>=0?o:r-Math.abs(o),0);a<r;a++)if(a in e&&e[a]===t)return a}catch(s){}}return-1}function V(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var o=e[i.oI],a=n||e;r=new Array(o);try{for(var s=0;s<o;s++)s in e&&(r[s]=t[i.Ek](a,e[s],e))}catch(c){}}return r}function W(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var o=e[i.oI],a=0;if(arguments[i.oI]>=3)r=arguments[2];else{for(;a<o&&!(a in e);)a++;r=e[a++]}for(;a<o;)a in e&&(r=t(r,e[a],a,e)),a++}return r}function X(e){return e&&(e=f&&e.trim?e.trim():e[i.W7]?e[i.W7](/^\s+|(?=\s)\s+$/g,a.m5):e),e}var Q=!{toString:null}.propertyIsEnumerable("toString"),$=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function J(e){var t=typeof e;if(t===r.hW||t===r._1&&null!==e||(0,o.zk)("objKeys called on non-object"),!Q&&l)return l(e);var n=[];for(var a in e)e&&r.J$[i.Ek](e,a)&&n[i.y5](a);if(Q)for(var s=$[i.oI],c=0;c<s;c++)e&&r.J$[i.Ek](e,$[c])&&n[i.y5]($[c]);return n}function Z(e,t,n,r){if(c)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),r&&(o.set=r),c(e,t,o),!0}catch(i){}return!1}function ee(e){return e}function te(e){return u&&M(e,(function(e,t){(H(t)||P(t))&&u(t)})),ne(e)}var ne=u||ee;function re(){var e=Date;return e.now?e.now():(new e).getTime()}function oe(e){return q(e)?e[i.RS]:a.m5}function ie(e,t,n,r,o){var i=n;return e&&((i=e[t])===n||o&&!o(i)||r&&!r(n)||(i=n,e[t]=i)),i}function ae(e,t,n){var r;return e?!(r=e[t])&&A(r)&&(r=S(n)?{}:n,e[t]=r):r=S(n)?{}:n,r}function se(e,t){return A(e)?t:e}function ce(e){return!!e}function ue(e){throw new Error(e)}function le(e,t){var n=null,r=null;return N(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][i.y9](r,e)}}function de(e,t,n){if(e&&t&&P(e)&&P(t)){var r=function(r){if(F(r)){var o=t[r];N(o)?n&&!n(r,!0,t,e)||(e[r]=le(t,r)):n&&!n(r,!1,t,e)||(R(e,r)&&delete e[r],Z(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=o))}};for(var o in t)r(o)}return e}function fe(e,t,n,r,o){e&&t&&n&&(!1!==o||S(e[t]))&&(e[t]=le(n,r))}function he(e,t,n,r){return e&&t&&P(e)&&H(n)&&G(n,(function(n){F(n)&&fe(e,n,t,n,r)})),e}function pe(e){return function(){var t=this;e&&M(e,(function(e,n){t[e]=n}))}}function ge(e){return e&&r.zi&&(e=(0,r.s6)((0,r.zi)({},e))),e}function ve(e,t,n,o,a,s){var c=arguments,u=c[0]||{},l=c[i.oI],d=!1,f=1;for(l>0&&K(u)&&(d=u,u=c[f]||{},f++),P(u)||(u={});f<l;f++){var h=c[f],p=H(h),g=P(h);for(var v in h){var m=p&&v in h||g&&r.J$[i.Ek](h,v);if(m){var y=h[v],C=void 0;if(d&&y&&((C=H(y))||j(y))){var T=u[v];C?H(T)||(T=[]):j(T)||(T={}),y=ve(d,T,y)}void 0!==y&&(u[v]=y)}}}return u}},7329:function(e,t,n){"use strict";n.d(t,{K_:function(){return p},qB:function(){return h},uT:function(){return d}});var r=n(50068),o=n(86058),i=n(50144),a=n(533),s=["req","rsp","hkErr","fnErr"];function c(e,t){if(e)for(var n=0;n<e[o.oI]&&!t(e[n],n);n++);}function u(e,t,n,r,i){i>=0&&i<=2&&c(e,(function(e,a){var c=e.cbks,u=c[s[i]];if(u){t.ctx=function(){return r[a]=r[a]||{}};try{u[o.y9](t.inst,n)}catch(f){var l=t.err;try{var d=c[s[2]];d&&(t.err=f,d[o.y9](t.inst,n))}catch(h){}finally{t.err=l}}}}))}function l(e,t,n,r){var o=null;return e&&((0,a.mQ)(e,t)?o=e:n&&(o=l((0,a.fw)(e),t,r,!1))),o}function d(e,t,n){return e?h(e[r.vR],t,n,!1):null}function f(e,t,n,r){var a=n&&n._aiHooks;if(!a){var s=function(e){return function(){var t,n=this,r=arguments,a=e.h,s=((t={})[o.RS]=e.n,t.inst=n,t.ctx=null,t.set=h,t),l=[],d=f([s],r);function f(e,t){return c(t,(function(t){e[o.y5](t)})),e}function h(e,t){(r=f([],r))[e]=t,d=f([s],r)}s.evt=(0,i.EH)("event"),u(a,s,d,l,0);var p=e.f;if(p)try{s.rslt=p[o.y9](n,r)}catch(g){throw s.err=g,u(a,s,d,l,3),g}return u(a,s,d,l,1),s.rslt}}(a={i:0,n:t,f:n,h:[]});s._aiHooks=a,e[t]=s}var l={id:a.i,cbks:r,rm:function(){var e=this.id;c(a.h,(function(t,n){if(t.id===e)return a.h[o.Ic](n,1),1}))}};return a.i++,a.h[o.y5](l),l}function h(e,t,n,o,i){if(void 0===o&&(o=!0),e&&t&&n){var a=l(e,t,o,i);if(a){var s=a[t];if(typeof s===r.hW)return f(a,t,s,n)}}return null}function p(e,t,n,r,o){if(e&&t&&n){var i=l(e,t,r,o)||e;if(i)return f(i,t,i[t],n)}return null}},98184:function(e,t,n){"use strict";n.d(t,{Bw:function(){return c},Hr:function(){return s},LZ:function(){return o},Tj:function(){return m},Vo:function(){return d},Yd:function(){return a},Yp:function(){return h},Zi:function(){return v},dI:function(){return p},eT:function(){return i},fc:function(){return f},jy:function(){return u},kI:function(){return y},l0:function(){return g},m5:function(){return r},qT:function(){return l}});var r="",o="channels",i="core",a="createPerfMgr",s="disabled",c="extensionConfig",u="extensions",l="processTelemetry",d="priority",f="eventsSent",h="eventsDiscarded",p="eventsSendRequest",g="perfEvent",v="errorToConsole",m="warnToConsole",y="getPerfMgr"},29592:function(e,t,n){"use strict";n.d(t,{NS:function(){return u},Z4:function(){return f},r2:function(){return d}});var r=n(52917),o=n(86058),i=n(533),a=n(98184),s=null,c=function(){function e(t,n,r){var a,s=this,c=!1;(s.start=(0,i.x3)(),s[o.RS]=t,s[o.tI]=r,s[o.Zu]=function(){return!1},(0,i.Tn)(n))&&(c=(0,i.r)(s,"payload",(function(){return!a&&(0,i.Tn)(n)&&(a=n(),n=null),a})));s[o.O_]=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?s[t]:(s.ctx||{})[t]:null},s[o.e_]=function(t,n){if(t)if(t===e.ParentContextKey)s[t]||(s[o.Zu]=function(){return!0}),s[t]=n;else if(t===e.ChildrenContextKey)s[t]=n;else{(s.ctx=s.ctx||{})[t]=n}},s[o.Ru]=function(){var t=0,r=s[o.O_](e.ChildrenContextKey);if((0,i.cy)(r))for(var a=0;a<r[o.oI];a++){var u=r[a];u&&(t+=u[o.fA])}s[o.fA]=(0,i.x3)()-s.start,s.exTime=s[o.fA]-t,s[o.Ru]=function(){},!c&&(0,i.Tn)(n)&&(s.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),u=function(){function e(t){this.ctx={},(0,r.A)(e,this,(function(e){e.create=function(e,t,n){return new c(e,t,n)},e.fire=function(e){e&&(e[o.Ru](),t&&(0,i.Tn)(t[a.l0])&&t[a.l0](e))},e[o.e_]=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e[o.O_]=function(t){return(e.ctx||{})[t]}}))}return e.__ieDyn=1,e}(),l="CoreUtils.doPerf";function d(e,t,n,r,i){if(e){var s=e;if(s[a.kI]&&(s=s[a.kI]()),s){var u=void 0,d=s[o.O_](l);try{if(u=s.create(t(),r,i)){if(d&&u[o.e_]&&(u[o.e_](c.ParentContextKey,d),d[o.O_]&&d[o.e_])){var f=d[o.O_](c.ChildrenContextKey);f||(f=[],d[o.e_](c.ChildrenContextKey,f)),f[o.y5](u)}return s[o.e_](l,u),n(u)}}catch(h){u&&u[o.e_]&&u[o.e_]("exception",h)}finally{u&&s.fire(u),s[o.e_](l,d)}}}return n()}function f(){return s}},78905:function(e,t,n){"use strict";n.d(t,{PV:function(){return v},i8:function(){return h},nU:function(){return g},tS:function(){return p}});var r=n(86058),o=n(10387),i=n(50144),a=n(533),s=n(98184),c=n(29592),u=n(94131),l="TelemetryPluginChain",d=0;function f(e,t,n,c){var u=null,l=[];null!==c&&(u=c?function(e,t,n){for(;e;){if(e[r.AP]()===n)return e;e=e[r.uR]()}return v([n],t[r.GA]||{},t)}(e,n,c):e);var d={_next:function(){var e=u;if(u=e?e[r.uR]():null,!e){var t=l;t&&t[r.oI]>0&&((0,a.Iu)(t,(function(e){try{e.func[r.Ek](e.self,e.args)}catch(t){(0,o.ZP)(n[r.Uw],2,73,"Unexpected Exception during onComplete - "+(0,i.mm)(t))}})),l=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,o.y0)(n,t)},getCfg:function(){return t},getExtCfg:f,getConfig:function(e,n,r){void 0===r&&(r=!1);var o,i=f(e,null);i&&!(0,a.hX)(i[n])?o=i[n]:t&&!(0,a.hX)(t[n])&&(o=t[n]);return(0,a.hX)(o)?r:o},hasNext:function(){return!!u},getNext:function(){return u},setNext:function(e){u=e},iterate:function(e){var t;for(;t=d._next();){var n=t[r.AP]();n&&e(n)}},onComplete:function(e,t){for(var n=[],o=2;o<arguments.length;o++)n[o-2]=arguments[o];e&&l[r.y5]({func:e,self:(0,a.b0)(t)?d.ctx:t,args:n})}}};function f(e,n,r){var o;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var i=t[s.Bw];i&&e&&(o=i[e])}if(o){if((0,a.Gv)(n)&&0!==r){var c=(0,a.CP)(!0,n,o);t&&2===r&&(0,a.z)(n,(function(e){if((0,a.hX)(c[e])){var n=t[e];(0,a.hX)(n)||(c[e]=n)}})),o=c}}else o=n;return o}return d}function h(e,t,n,o){var i=f(e,t,n,o),c=i.ctx;return c[r.$5]=function(e){var t=i._next();return t&&t[s.qT](e,c),!t},c[r.$o]=function(e,o){return void 0===e&&(e=null),(0,a.cy)(e)&&(e=v(e,t,n,o)),h(e||c[r.uR](),t,n,o)},c}function p(e,t,n){var o=t[r.GA]||{},i=f(e,o,t,n),s=i.ctx;return s[r.$5]=function(e){var t=i._next();return t&&t.unload(s,e),!t},s[r.$o]=function(e,n){return void 0===e&&(e=null),(0,a.cy)(e)&&(e=v(e,o,t,n)),p(e||s[r.uR](),t,n)},s}function g(e,t,n){var o=t[r.GA]||{},i=f(e,o,t,n).ctx;return i[r.$5]=function(e){return i.iterate((function(t){(0,a.Tn)(t[r.HC])&&t[r.HC](i,e)}))},i[r.$o]=function(e,n){return void 0===e&&(e=null),(0,a.cy)(e)&&(e=v(e,o,t,n)),g(e||i[r.uR](),t,n)},i}function v(e,t,n,f){var p=null,g=!f;if((0,a.cy)(e)&&e[r.oI]>0){var m=null;(0,a.Iu)(e,(function(e){if(g||f!==e||(g=!0),g&&e&&(0,a.Tn)(e[s.qT])){var v=function(e,t,n){var f,p=null,g=(0,a.Tn)(e[s.qT]),v=(0,a.Tn)(e[r.YH]);f=e?e[r.Ju]+"-"+e[s.Vo]+"-"+d++:"Unknown-0-"+d++;var m={getPlugin:function(){return e},getNext:function(){return p},processTelemetry:T,unload:E,update:w,_id:f,_setNext:function(e){p=e}};function y(){var r;return e&&(0,a.Tn)(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=h(m,t,n)),r}function C(t,n,a,u,d){var h=!1,g=e?e[r.Ju]:l,v=t._hasRun;return v||(v=t._hasRun={}),t.setNext(p),e&&(0,c.r2)(t[s.eT](),(function(){return g+":"+a}),(function(){v[f]=!0;try{var e=p?p._id:s.m5;e&&(v[e]=!1),h=n(t)}catch(u){var c=!p||v[p._id];c&&(h=!0),p&&c||(0,o.ZP)(t[r.e4](),1,73,"Plugin ["+g+"] failed during "+a+" - "+(0,i.mm)(u)+", run flags: "+(0,i.mm)(v))}}),u,d),h}function T(t,n){function o(n){if(!e||!g)return!1;var o=(0,u.Cr)(e);return!o[r.Ik]&&!o[s.Hr]&&(v&&e[r.YH](p),e[s.qT](t,n),!0)}C(n=n||y(),o,"processTelemetry",(function(){return{item:t}}),!t.sync)||n[r.$5](t)}function E(t,n){function o(){var o=!1;if(e){var i=(0,u.Cr)(e),a=e[s.eT]||i[s.eT];!e||a&&a!==t.core()||i[r.Ik]||(i[s.eT]=null,i[r.Ik]=!0,i[r.tZ]=!1,e[r.Ik]&&!0===e[r.Ik](t,n)&&(o=!0))}return o}C(t,o,"unload",(function(){}),n[r.tI])||t[r.$5](n)}function w(t,n){function o(){var o=!1;if(e){var i=(0,u.Cr)(e),a=e[s.eT]||i[s.eT];!e||a&&a!==t.core()||i[r.Ik]||e[r.HC]&&!0===e[r.HC](t,n)&&(o=!0)}return o}C(t,o,"update",(function(){}),!1)||t[r.$5](n)}return(0,a.N6)(m)}(e,t,n);p||(p=v),m&&m._setNext(v),m=v}}))}return f&&!p?v([f],t,n):p}},33571:function(e,t,n){"use strict";n.d(t,{Si:function(){return y},VN:function(){return g},Z1:function(){return p},k5:function(){return m},yc:function(){return v}});var r=n(86058),o=n(50144),i=n(533),a=n(98184),s=4294967296,c=4294967295,u=!1,l=123456789,d=987654321;function f(e){e<0&&(e>>>=0),l=123456789+e&c,d=987654321-e&c,u=!0}function h(){try{var e=2147483647&(0,i.x3)();f((Math.random()*s^e)+e)}catch(t){}}function p(e){return e>0?Math.floor(g()/c*(e+1))>>>0:0}function g(e){var t=0,n=(0,o.MY)()||(0,o.iN)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,o.lT)()&&(u||h(),t=m()&c),0===t&&(t=Math.floor(s*Math.random()|0)),e||(t>>>=0),t}function v(e){e?f(e):h()}function m(e){var t=((d=36969*(65535&d)+(d>>16)&c)<<16)+(65535&(l=18e3*(65535&l)+(l>>16)&c))>>>0&c|0;return e||(t>>>=0),t}function y(e){void 0===e&&(e=22);for(var t=g()>>>0,n=0,o=a.m5;o[r.oI]<e;)n++,o+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(g()<<2&4294967295|3&t)>>>0,n=0);return o}},94131:function(e,t,n){"use strict";n.d(t,{Cr:function(){return u},Xc:function(){return d},pI:function(){return l},u7:function(){return f}});var r=n(86058),o=n(14032),i=n(533),a=n(98184),s=n(90732),c=(0,o.T)("plugin");function u(e){return c.get(e,"state",{},!0)}function l(e,t){for(var n,o=[],s=null,c=e[r.uR]();c;){var l=c[r.AP]();if(l){s&&(0,i.Tn)(s[r.YH])&&(0,i.Tn)(l[a.qT])&&s[r.YH](l);((0,i.Tn)(l[r.tZ])?l[r.tZ]():(n=u(l))[r.tZ])||o[r.y5](l),s=l,c=c[r.uR]()}}(0,i.Iu)(o,(function(o){var i=e[a.eT]();o[r.mE](e.getCfg(),i,t,e[r.uR]()),n=u(o),o[a.eT]||n[a.eT]||(n[a.eT]=i),n[r.tZ]=!0,delete n[r.Ik]}))}function d(e){return e.sort((function(e,t){var n=0;if(t){var r=(0,i.Tn)(t[a.qT]);(0,i.Tn)(e[a.qT])?n=r?e[a.Vo]-t[a.Vo]:1:r&&(n=-1)}else n=e?1:-1;return n}))}function f(e){var t={};return{getName:function(){return t[r.RS]},setName:function(n){e&&e.setName(n),t[r.RS]=n},getTraceId:function(){return t[r.P5]},setTraceId:function(n){e&&e.setTraceId(n),(0,s.hX)(n)&&(t[r.P5]=n)},getSpanId:function(){return t[r.wi]},setSpanId:function(n){e&&e.setSpanId(n),(0,s.wN)(n)&&(t[r.wi]=n)},getTraceFlags:function(){return t[r.Rr]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.Rr]=n}}}},71128:function(e,t,n){"use strict";n.d(t,{P:function(){return s}});var r=n(86058),o=n(10387),i=n(50144),a=n(533);function s(){var e=[];return{add:function(t){t&&e[r.y5](t)},run:function(t,n){(0,a.Iu)(e,(function(e){try{e(t,n)}catch(a){(0,o.ZP)(t[r.e4](),2,73,"Unexpected error calling unload handler - "+(0,i.mm)(a))}})),e=[]}}}},90732:function(e,t,n){"use strict";n.d(t,{L0:function(){return g},hX:function(){return h},wN:function(){return p},wk:function(){return f}});var r=n(86058),o=n(87390),i="00",a="ff",s="00000000000000000000000000000000",c="0000000000000000";function u(e,t,n){return!(!e||e[r.oI]!==t||e===n)&&!!e.match(/^[\da-f]*$/i)}function l(e,t,n){return u(e,t)?e:n}function d(e){(isNaN(e)||e<0||e>255)&&(e=1);for(var t=e.toString(16);t[r.oI]<2;)t="0"+t;return t}function f(e,t,n,s){var c;return(c={})[r.s]=u(s,2,a)?s:i,c[r.P5]=h(e)?e:(0,o.cL)(),c.spanId=p(t)?t:(0,o.cL)()[r.$4](0,16),c.traceFlags=n>=0&&n<=255?n:1,c}function h(e){return u(e,32,s)}function p(e){return u(e,16,c)}function g(e){if(e){var t=d(e[r.Rr]);u(t,2)||(t="01");var n=e[r.s]||i;return"00"!==n&&"ff"!==n&&(n=i),"".concat(n.toLowerCase(),"-").concat(l(e.traceId,32,s).toLowerCase(),"-").concat(l(e.spanId,16,c).toLowerCase(),"-").concat(t.toLowerCase())}return""}},86058:function(e,t,n){"use strict";n.d(t,{$4:function(){return F},$5:function(){return p},$o:function(){return M},AP:function(){return T},Di:function(){return y},EX:function(){return E},Ek:function(){return V},GA:function(){return u},H7:function(){return w},HC:function(){return R},Ic:function(){return b},Ik:function(){return _},JR:function(){return I},Ju:function(){return a},OL:function(){return z},O_:function(){return J},P5:function(){return te},QM:function(){return W},RF:function(){return i},RS:function(){return o},Re:function(){return L},Rr:function(){return re},Ru:function(){return ee},Sj:function(){return D},TP:function(){return m},Uw:function(){return d},W7:function(){return j},YH:function(){return O},Yo:function(){return X},Zu:function(){return $},a$:function(){return Y},by:function(){return C},e4:function(){return N},e_:function(){return Z},fA:function(){return h},kt:function(){return q},lJ:function(){return Q},lK:function(){return x},mE:function(){return r},oI:function(){return f},pM:function(){return S},ps:function(){return g},re:function(){return B},s:function(){return oe},sY:function(){return H},sl:function(){return l},sx:function(){return G},tI:function(){return A},tX:function(){return U},tZ:function(){return c},tn:function(){return k},uR:function(){return P},vR:function(){return v},wi:function(){return ne},y5:function(){return s},y9:function(){return K}});var r="initialize",o="name",i="getNotifyMgr",a="identifier",s="push",c="isInitialized",u="config",l="instrumentationKey",d="logger",f="length",h="time",p="processNext",g="getProcessTelContext",v="addNotificationListener",m="removeNotificationListener",y="stopPollingInternalLogs",C="onComplete",T="getPlugin",E="flush",w="_extensions",b="splice",_="teardown",I="messageId",S="message",A="isAsync",k="_doTeardown",R="update",P="getNext",N="diagLog",O="setNextPlugin",M="createNew",x="cookieCfg",D="indexOf",L="substring",U="userAgent",H="split",q="setEnabled",F="substr",B="nodeType",K="apply",j="replace",Y="enableDebugExceptions",G="logInternalMessage",z="toLowerCase",V="call",W="type",X="handler",Q="listeners",$="isChildEvt",J="getCtx",Z="setCtx",ee="complete",te="traceId",ne="spanId",re="traceFlags",oe="version"},50068:function(e,t,n){"use strict";n.d(t,{J$:function(){return h},KU:function(){return f},OR:function(){return d},QV:function(){return s},Wy:function(){return u},_1:function(){return o},bA:function(){return i},hW:function(){return r},s6:function(){return c},vR:function(){return a},zi:function(){return l}});var r="function",o="object",i="undefined",a="prototype",s="hasOwnProperty",c=Object,u=c[a],l=c.assign,d=c.create,f=c.defineProperty,h=u[s]},21336:function(e,t,n){"use strict";n.d(t,{AQ:function(){return s},mS:function(){return i},zk:function(){return a}});var r=n(50068),o=null;function i(e){void 0===e&&(e=!0);var t=!1===e?null:o;return t||(typeof globalThis!==r.bA&&(t=globalThis),t||typeof self===r.bA||(t=self),t||typeof window===r.bA||(t=window),t||typeof n.g===r.bA||(t=n.g),o=t),t}function a(e){throw new TypeError(e)}function s(e){var t=r.OR;if(t)return t(e);if(null==e)return{};var n=typeof e;function o(){}return n!==r._1&&n!==r.hW&&a("Object prototype may only be an Object:"+e),o[r.vR]=e,new o}},73951:function(e,t,n){"use strict";n.d(t,{Im:function(){return i},qU:function(){return s},vz:function(){return c}});var r=n(50068),o=n(21336),i=(((0,o.mS)()||{}).Symbol,((0,o.mS)()||{}).Reflect,r.zi||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var i in t=arguments[n])r.Wy[r.QV].call(t,i)&&(e[i]=t[i]);return e}),a=function(e,t){return a=r.s6.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t[r.QV](n)&&(e[n]=t[n])},a(e,t)};function s(e,t){function n(){this.constructor=e}typeof t!==r.hW&&null!==t&&(0,o.zk)("Class extends value "+String(t)+" is not a constructor or null"),a(e,t),e[r.vR]=null===t?(0,o.AQ)(t):(n[r.vR]=t[r.vR],new n)}function c(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}},52917:function(e,t,n){"use strict";var r;n.d(t,{A:function(){return k}});var o="undefined",i="constructor",a="prototype",s="function",c="_dynClass",u="_unknown_",l="_dyn__proto__",d=Object,f=d.getPrototypeOf,h=d.getOwnPropertyNames;var p=function(){var e;return typeof globalThis!==o&&(e=globalThis),e||typeof self===o||(e=self),e||typeof window===o||(e=window),e||typeof n.g===o||(e=n.g),e||{}}(),g=p.__dynProto$Gbl||(p.__dynProto$Gbl={o:(r={},r.setInstFuncs=!0,r.useBaseInst=!0,r),n:1e3});function v(e,t){return e&&d.prototype.hasOwnProperty.call(e,t)}function m(e){return e&&(e===d.prototype||e===Array.prototype)}function y(e){return m(e)||e===Function.prototype}function C(e){var t;if(e){if(f)return f(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,v(e,l)||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n)}return t}function T(e,t){var n=[];if(h)n=h(e);else for(var r in e)"string"===typeof r&&v(e,r)&&n.push(r);if(n&&n.length>0)for(var o=0;o<n.length;o++)t(n[o])}function E(e,t,n){return t!==i&&typeof e[t]===s&&(n||v(e,t))}function w(e){throw new TypeError("DynamicProto: "+e)}function b(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function _(e,t,n,r){var o=null;if(e&&v(n,c)){var i=e._dynInstFuncs||{};if((o=(i[n._dynClass]||{})[t])||w("Missing ["+t+"] "+s),!o._dynInstChk&&!1!==i._dynInstChk){for(var a=!v(e,t),u=C(e),l=[];a&&u&&!y(u)&&!b(l,u);){var d=u[t];if(d){a=d===r;break}l.push(u),u=C(u)}try{a&&(e[t]=o),o._dynInstChk=1}catch(f){i._dynInstChk=!1}}}return o}function I(e,t,n){var r=t[e];return r===n&&(r=C(t)[e]),typeof r!==s&&w("["+e+"] is not a "+s),r}function S(e,t,n,r,o){if(!m(e)){var i=n._dynInstFuncs=n._dynInstFuncs||{},a=i[t]=i[t]||{};!1!==i._dynInstChk&&(i._dynInstChk=!!o),T(n,(function(t){E(n,t,!1)&&n[t]!==r[t]&&(a[t]=n[t],delete n[t],(!v(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function n(){return(_(this,t,e,n)||I(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}function A(e,t){return v(e,a)?e.name||t||u:((e||{}).constructor||{}).name||t||u}function k(e,t,n,r){v(e,a)||w("theClass is an invalid class definition.");var o=e.prototype;(function(e,t){if(f){for(var n=[],r=C(t);r&&!y(r)&&!b(n,r);){if(r===e)return!0;n.push(r),r=C(r)}return!1}return!0})(o,t)||w("["+A(e)+"] not in hierarchy of ["+A(t)+"]");var i=null;v(o,c)?i=o._dynClass:(i="_dynCls$"+A(e,"_")+"$"+g.n,g.n++,o._dynClass=i);var s=k._dfOpts,u=!!s.useBaseInst;u&&r&&void 0!==r.useBaseInst&&(u=!!r.useBaseInst);var l=function(e){var t={};return T(e,(function(n){!t[n]&&E(e,n,!1)&&(t[n]=e[n])})),t}(t),d=function(e,t,n,r){function o(e,t,n){var o=t[n];if(o._isDynProxy&&r){var i=e._dynInstFuncs||{};!1!==i._dynInstChk&&(o=(i[t._dynClass]||{})[n]||o)}return function(){return o.apply(e,arguments)}}var i={};T(n,(function(e){i[e]=o(t,n,e)}));for(var a=C(e),s=[];a&&!y(a)&&!b(s,a);)T(a,(function(e){!i[e]&&E(a,e,!f)&&(i[e]=o(t,a,e))})),s.push(a),a=C(a);return i}(o,t,l,u);n(t,d);var h=!!f&&!!s.setInstFuncs;h&&r&&(h=!!r.setInstFuncs),S(o,i,t,l,!1!==h)}k._dfOpts=g.o},63343: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,u=c.MutationObserver||c.WebKitMutationObserver;function l(e){return function(){var t=setTimeout(r,0),n=setInterval(r,50);function r(){clearTimeout(t),clearInterval(n),e()}}}o="function"===typeof u?function(e){var t=1,n=new u(e),r=document.createTextNode("");return n.observe(r,{characterData:!0}),function(){t=-t,r.data=t}}(s):l(s),r.requestFlush=o,r.makeRequestCallFromTimer=l},12577:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},82429:function(e,t,n){var r=n(92811);e.exports=function(e){if(!r(e)&&null!==e)throw TypeError("Can't set "+String(e)+" as a prototype");return e}},6494:function(e,t,n){var r=n(87966),o=n(30845),i=n(40228),a=r("unscopables"),s=Array.prototype;void 0==s[a]&&i(s,a,o(null)),e.exports=function(e){s[a][e]=!0}},60446:function(e,t,n){"use strict";var r=n(74152).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},3706:function(e){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},59054:function(e,t,n){var r=n(92811);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},47803:function(e,t,n){"use strict";var r,o=n(61193),i=n(10292),a=n(92811),s=n(50063),c=n(17922),u=n(40228),l=n(34553),d=n(96046).f,f=n(30790),h=n(97490),p=n(87966),g=n(62237),v=i.DataView,m=v&&v.prototype,y=i.Int8Array,C=y&&y.prototype,T=i.Uint8ClampedArray,E=T&&T.prototype,w=y&&f(y),b=C&&f(C),_=Object.prototype,I=_.isPrototypeOf,S=p("toStringTag"),A=g("TYPED_ARRAY_TAG"),k=!(!i.ArrayBuffer||!v),R=k&&!!h&&"Opera"!==c(i.opera),P=!1,N={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},O=function(e){return a(e)&&s(N,c(e))};for(r in N)i[r]||(R=!1);if((!R||"function"!=typeof w||w===Function.prototype)&&(w=function(){throw TypeError("Incorrect invocation")},R))for(r in N)i[r]&&h(i[r],w);if((!R||!b||b===_)&&(b=w.prototype,R))for(r in N)i[r]&&h(i[r].prototype,b);if(R&&f(E)!==b&&h(E,b),o&&!s(b,S))for(r in P=!0,d(b,S,{get:function(){return a(this)?this[A]:void 0}}),N)i[r]&&u(i[r],A,r);k&&h&&f(m)!==_&&h(m,_),e.exports={NATIVE_ARRAY_BUFFER:k,NATIVE_ARRAY_BUFFER_VIEWS:R,TYPED_ARRAY_TAG:P&&A,aTypedArray:function(e){if(O(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(h){if(I.call(w,e))return e}else for(var t in N)if(s(N,r)){var n=i[t];if(n&&(e===n||I.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 N){var a=i[r];a&&s(a.prototype,e)&&delete a.prototype[e]}b[e]&&!n||l(b,e,n?t:R&&C[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,a;if(o){if(h){if(n)for(r in N)(a=i[r])&&s(a,e)&&delete a[e];if(w[e]&&!n)return;try{return l(w,e,n?t:R&&y[e]||t)}catch(c){}}for(r in N)!(a=i[r])||a[e]&&!n||l(a,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||s(N,t)},isTypedArray:O,TypedArray:w,TypedArrayPrototype:b}},92453:function(e,t,n){"use strict";var r=n(10292),o=n(61193),i=n(47803).NATIVE_ARRAY_BUFFER,a=n(40228),s=n(21079),c=n(9310),u=n(3706),l=n(5633),d=n(2439),f=n(57335),h=n(39411),p=n(91393).f,g=n(96046).f,v=n(86202),m=n(23270),y=n(202),C=y.get,T=y.set,E="ArrayBuffer",w="DataView",b="Wrong index",_=r.ArrayBuffer,I=_,S=r.DataView,A=r.RangeError,k=h.pack,R=h.unpack,P=function(e){return[255&e]},N=function(e){return[255&e,e>>8&255]},O=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]},x=function(e){return k(e,23,4)},D=function(e){return k(e,52,8)},L=function(e,t){g(e.prototype,t,{get:function(){return C(this)[t]}})},U=function(e,t,n,r){var o=f(n),i=C(e);if(o+t>i.byteLength)throw A(b);var a=C(i.buffer).bytes,s=o+i.byteOffset,c=a.slice(s,s+t);return r?c:c.reverse()},H=function(e,t,n,r,o,i){var a=f(n),s=C(e);if(a+t>s.byteLength)throw A(b);for(var c=C(s.buffer).bytes,u=a+s.byteOffset,l=r(+o),d=0;d<t;d++)c[u+d]=l[i?d:t-d-1]};if(i){if(!c((function(){_(1)}))||!c((function(){new _(-1)}))||c((function(){return new _,new _(1.5),new _(NaN),_.name!=E}))){for(var q,F=(I=function(e){return u(this,I),new _(f(e))}).prototype=_.prototype,B=p(_),K=0;B.length>K;)(q=B[K++])in I||a(I,q,_[q]);F.constructor=I}var j=new S(new I(2)),Y=S.prototype.setInt8;j.setInt8(0,2147483648),j.setInt8(1,2147483649),!j.getInt8(0)&&j.getInt8(1)||s(S.prototype,{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},{unsafe:!0})}else I=function(e){u(this,I,E);var t=f(e);T(this,{bytes:v.call(new Array(t),0),byteLength:t}),o||(this.byteLength=t)},S=function(e,t,n){u(this,S,w),u(e,I,w);var r=C(e).byteLength,i=l(t);if(i<0||i>r)throw A("Wrong offset");if(i+(n=void 0===n?r-i:d(n))>r)throw A("Wrong length");T(this,{buffer:e,byteLength:n,byteOffset:i}),o||(this.buffer=e,this.byteLength=n,this.byteOffset=i)},o&&(L(I,"byteLength"),L(S,"buffer"),L(S,"byteLength"),L(S,"byteOffset")),s(S.prototype,{getInt8:function(e){return U(this,1,e)[0]<<24>>24},getUint8:function(e){return U(this,1,e)[0]},getInt16:function(e){var t=U(this,2,e,arguments.length>1?arguments[1]:void 0);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=U(this,2,e,arguments.length>1?arguments[1]:void 0);return t[1]<<8|t[0]},getInt32:function(e){return M(U(this,4,e,arguments.length>1?arguments[1]:void 0))},getUint32:function(e){return M(U(this,4,e,arguments.length>1?arguments[1]:void 0))>>>0},getFloat32:function(e){return R(U(this,4,e,arguments.length>1?arguments[1]:void 0),23)},getFloat64:function(e){return R(U(this,8,e,arguments.length>1?arguments[1]:void 0),52)},setInt8:function(e,t){H(this,1,e,P,t)},setUint8:function(e,t){H(this,1,e,P,t)},setInt16:function(e,t){H(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setUint16:function(e,t){H(this,2,e,N,t,arguments.length>2?arguments[2]:void 0)},setInt32:function(e,t){H(this,4,e,O,t,arguments.length>2?arguments[2]:void 0)},setUint32:function(e,t){H(this,4,e,O,t,arguments.length>2?arguments[2]:void 0)},setFloat32:function(e,t){H(this,4,e,x,t,arguments.length>2?arguments[2]:void 0)},setFloat64:function(e,t){H(this,8,e,D,t,arguments.length>2?arguments[2]:void 0)}});m(I,E),m(S,w),e.exports={ArrayBuffer:I,DataView:S}},50796:function(e,t,n){"use strict";var r=n(28040),o=n(64063),i=n(2439),a=Math.min;e.exports=[].copyWithin||function(e,t){var n=r(this),s=i(n.length),c=o(e,s),u=o(t,s),l=arguments.length>2?arguments[2]:void 0,d=a((void 0===l?s:o(l,s))-u,s-c),f=1;for(u<c&&c<u+d&&(f=-1,u+=d-1,c+=d-1);d-- >0;)u in n?n[c]=n[u]:delete n[c],c+=f,u+=f;return n}},86202:function(e,t,n){"use strict";var r=n(28040),o=n(64063),i=n(2439);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,u=void 0===c?n:o(c,n);u>s;)t[s++]=e;return t}},86152:function(e,t,n){"use strict";var r=n(8084).forEach,o=n(74036);e.exports=o("forEach")?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},27311:function(e,t,n){"use strict";var r=n(60690),o=n(28040),i=n(11768),a=n(9222),s=n(2439),c=n(1637),u=n(55886);e.exports=function(e){var t,n,l,d,f,h=o(e),p="function"==typeof this?this:Array,g=arguments.length,v=g>1?arguments[1]:void 0,m=void 0!==v,y=0,C=u(h);if(m&&(v=r(v,g>2?arguments[2]:void 0,2)),void 0==C||p==Array&&a(C))for(n=new p(t=s(h.length));t>y;y++)c(n,y,m?v(h[y],y):h[y]);else for(f=(d=C.call(h)).next,n=new p;!(l=f.call(d)).done;y++)c(n,y,m?i(d,v,[l.value,y],!0):l.value);return n.length=y,n}},64358:function(e,t,n){var r=n(264),o=n(2439),i=n(64063),a=function(e){return function(t,n,a){var s,c=r(t),u=o(c.length),l=i(a,u);if(e&&n!=n){for(;u>l;)if((s=c[l++])!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!1)}},8084:function(e,t,n){var r=n(60690),o=n(99436),i=n(28040),a=n(2439),s=n(96074),c=[].push,u=function(e){var t=1==e,n=2==e,u=3==e,l=4==e,d=6==e,f=5==e||d;return function(h,p,g,v){for(var m,y,C=i(h),T=o(C),E=r(p,g,3),w=a(T.length),b=0,_=v||s,I=t?_(h,w):n?_(h,0):void 0;w>b;b++)if((f||b in T)&&(y=E(m=T[b],b,C),e))if(t)I[b]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return b;case 2:c.call(I,m)}else if(l)return!1;return d?-1:u||l?l:I}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6)}},87378:function(e,t,n){"use strict";var r=n(264),o=n(5633),i=n(2439),a=n(74036),s=Math.min,c=[].lastIndexOf,u=!!c&&1/[1].lastIndexOf(1,-0)<0,l=a("lastIndexOf");e.exports=u||l?function(e){if(u)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},494:function(e,t,n){var r=n(9310),o=n(87966),i=n(43592),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}))}},46545:function(e,t,n){var r=n(12577),o=n(28040),i=n(99436),a=n(2439),s=function(e){return function(t,n,s,c){r(n);var u=o(t),l=i(u),d=a(u.length),f=e?d-1:0,h=e?-1:1;if(s<2)for(;;){if(f in l){c=l[f],f+=h;break}if(f+=h,e?f<0:d<=f)throw TypeError("Reduce of empty array with no initial value")}for(;e?f>=0:d>f;f+=h)f in l&&(c=n(c,l[f],f,u));return c}};e.exports={left:s(!1),right:s(!0)}},96074:function(e,t,n){var r=n(92811),o=n(39691),i=n(87966)("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)}},60690:function(e,t,n){var r=n(12577);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)}}},11768:function(e,t,n){var r=n(59054);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}}},48839:function(e,t,n){var r=n(87966)("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}},53301:function(e){var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},17922:function(e,t,n){var r=n(60229),o=n(53301),i=n(87966)("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}},72699:function(e,t,n){"use strict";var r=n(96046).f,o=n(30845),i=n(21079),a=n(60690),s=n(3706),c=n(25877),u=n(91695),l=n(61904),d=n(61193),f=n(85306).fastKey,h=n(202),p=h.set,g=h.getterFor;e.exports={getConstructor:function(e,t,n,u){var l=e((function(e,r){s(e,l,t),p(e,{type:t,index:o(null),first:void 0,last:void 0,size:0}),d||(e.size=0),void 0!=r&&c(r,e[u],e,n)})),h=g(t),v=function(e,t,n){var r,o,i=h(e),a=m(e,t);return a?a.value=n:(i.last=a={index:o=f(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},m=function(e,t){var n,r=h(e),o=f(t);if("F"!==o)return r.index[o];for(n=r.first;n;n=n.next)if(n.key==t)return n};return i(l.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=m(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!!m(this,e)}}),i(l.prototype,n?{get:function(e){var t=m(this,e);return t&&t.value},set:function(e,t){return v(this,0===e?0:e,t)}}:{add:function(e){return v(this,e=0===e?0:e,e)}}),d&&r(l.prototype,"size",{get:function(){return h(this).size}}),l},setStrong:function(e,t,n){var r=t+" Iterator",o=g(t),i=g(r);u(e,t,(function(e,t){p(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),l(t)}}},17444:function(e,t,n){"use strict";var r=n(21079),o=n(85306).getWeakData,i=n(59054),a=n(92811),s=n(3706),c=n(25877),u=n(8084),l=n(50063),d=n(202),f=d.set,h=d.getterFor,p=u.find,g=u.findIndex,v=0,m=function(e){return e.frozen||(e.frozen=new y)},y=function(){this.entries=[]},C=function(e,t){return p(e.entries,(function(e){return e[0]===t}))};y.prototype={get:function(e){var t=C(this,e);if(t)return t[1]},has:function(e){return!!C(this,e)},set:function(e,t){var n=C(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=g(this.entries,(function(t){return t[0]===e}));return~t&&this.entries.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,u){var d=e((function(e,r){s(e,d,t),f(e,{type:t,id:v++,frozen:void 0}),void 0!=r&&c(r,e[u],e,n)})),p=h(t),g=function(e,t,n){var r=p(e),a=o(i(t),!0);return!0===a?m(r).set(t,n):a[r.id]=n,e};return r(d.prototype,{delete:function(e){var t=p(this);if(!a(e))return!1;var n=o(e);return!0===n?m(t).delete(e):n&&l(n,t.id)&&delete n[t.id]},has:function(e){var t=p(this);if(!a(e))return!1;var n=o(e);return!0===n?m(t).has(e):n&&l(n,t.id)}}),r(d.prototype,n?{get:function(e){var t=p(this);if(a(e)){var n=o(e);return!0===n?m(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return g(this,e,t)}}:{add:function(e){return g(this,e,!0)}}),d}}},20539:function(e,t,n){"use strict";var r=n(53113),o=n(10292),i=n(5597),a=n(34553),s=n(85306),c=n(25877),u=n(3706),l=n(92811),d=n(9310),f=n(48839),h=n(23270),p=n(43698);e.exports=function(e,t,n){var g=-1!==e.indexOf("Map"),v=-1!==e.indexOf("Weak"),m=g?"set":"add",y=o[e],C=y&&y.prototype,T=y,E={},w=function(e){var t=C[e];a(C,e,"add"==e?function(e){return t.call(this,0===e?0:e),this}:"delete"==e?function(e){return!(v&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!l(e)?void 0:t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!l(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||!(v||C.forEach&&!d((function(){(new y).entries().next()})))))T=n.getConstructor(t,e,g,m),s.REQUIRED=!0;else if(i(e,!0)){var b=new T,_=b[m](v?{}:-0,1)!=b,I=d((function(){b.has(1)})),S=f((function(e){new y(e)})),A=!v&&d((function(){for(var e=new y,t=5;t--;)e[m](t,t);return!e.has(-0)}));S||((T=t((function(t,n){u(t,T,e);var r=p(new y,t,T);return void 0!=n&&c(n,r[m],r,g),r}))).prototype=C,C.constructor=T),(I||A)&&(w("delete"),w("has"),g&&w("get")),(A||_)&&w(m),v&&C.clear&&delete C.clear}return E[e]=T,r({global:!0,forced:T!=y},E),h(T,e),v||n.setStrong(T,e,g),T}},28005:function(e,t,n){var r=n(50063),o=n(45644),i=n(80348),a=n(96046);e.exports=function(e,t){for(var n=o(t),s=a.f,c=i.f,u=0;u<n.length;u++){var l=n[u];r(e,l)||s(e,l,c(t,l))}}},44245:function(e,t,n){var r=n(87966)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(o){}}return!1}},16804:function(e,t,n){var r=n(9310);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},20561:function(e,t,n){var r=n(33849),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+">"}},84287:function(e,t,n){"use strict";var r=n(10350).IteratorPrototype,o=n(30845),i=n(71991),a=n(23270),s=n(10184),c=function(){return this};e.exports=function(e,t,n){var u=t+" Iterator";return e.prototype=o(r,{next:i(1,n)}),a(e,u,!1,!0),s[u]=c,e}},40228:function(e,t,n){var r=n(61193),o=n(96046),i=n(71991);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},71991:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1637:function(e,t,n){"use strict";var r=n(30974),o=n(96046),i=n(71991);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},48237:function(e,t,n){"use strict";var r=n(59054),o=n(30974);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return o(r(this),"number"!==e)}},91695:function(e,t,n){"use strict";var r=n(53113),o=n(84287),i=n(30790),a=n(97490),s=n(23270),c=n(40228),u=n(34553),l=n(87966),d=n(19738),f=n(10184),h=n(10350),p=h.IteratorPrototype,g=h.BUGGY_SAFARI_ITERATORS,v=l("iterator"),m="keys",y="values",C="entries",T=function(){return this};e.exports=function(e,t,n,l,h,E,w){o(n,t,l);var b,_,I,S=function(e){if(e===h&&N)return N;if(!g&&e in R)return R[e];switch(e){case m:case y:case C:return function(){return new n(this,e)}}return function(){return new n(this)}},A=t+" Iterator",k=!1,R=e.prototype,P=R[v]||R["@@iterator"]||h&&R[h],N=!g&&P||S(h),O="Array"==t&&R.entries||P;if(O&&(b=i(O.call(new e)),p!==Object.prototype&&b.next&&(d||i(b)===p||(a?a(b,p):"function"!=typeof b[v]&&c(b,v,T)),s(b,A,!0,!0),d&&(f[A]=T))),h==y&&P&&P.name!==y&&(k=!0,N=function(){return P.call(this)}),d&&!w||R[v]===N||c(R,v,N),f[t]=N,h)if(_={values:S(y),keys:E?N:S(m),entries:S(C)},w)for(I in _)(g||k||!(I in R))&&u(R,I,_[I]);else r({target:t,proto:!0,forced:g||k},_);return _}},56492:function(e,t,n){var r=n(31132),o=n(50063),i=n(70286),a=n(96046).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});o(t,e)||a(t,e,{value:i.f(e)})}},61193:function(e,t,n){var r=n(9310);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},18506:function(e,t,n){var r=n(10292),o=n(92811),i=r.document,a=o(i)&&o(i.createElement);e.exports=function(e){return a?i.createElement(e):{}}},41121: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}},14526:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},53113:function(e,t,n){var r=n(10292),o=n(80348).f,i=n(40228),a=n(34553),s=n(35579),c=n(28005),u=n(5597);e.exports=function(e,t){var n,l,d,f,h,p=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[p]||s(p,{}):(r[p]||{}).prototype)for(l in t){if(f=t[l],d=e.noTargetGet?(h=o(n,l))&&h.value:n[l],!u(g?l:p+(v?".":"#")+l,e.forced)&&void 0!==d){if(typeof f===typeof d)continue;c(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),a(n,l,f,e)}}},9310:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},83615:function(e,t,n){"use strict";var r=n(40228),o=n(34553),i=n(9310),a=n(87966),s=n(67450),c=a("species"),u=!i((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})),l=!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 f=a(e),h=!i((function(){var t={};return t[f]=function(){return 7},7!=""[e](t)})),p=h&&!i((function(){var t=!1,n=/a/;return"split"===e&&((n={}).constructor={},n.constructor[c]=function(){return n},n.flags="",n[f]=/./[f]),n.exec=function(){return t=!0,null},n[f](""),!t}));if(!h||!p||"replace"===e&&!u||"split"===e&&!l){var g=/./[f],v=n(f,""[e],(function(e,t,n,r,o){return t.exec===s?h&&!o?{done:!0,value:g.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}})),m=v[0],y=v[1];o(String.prototype,e,m),o(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)}),d&&r(RegExp.prototype[f],"sham",!0)}}},41116:function(e,t,n){"use strict";var r=n(39691),o=n(2439),i=n(60690);e.exports=function e(t,n,a,s,c,u,l,d){for(var f,h=c,p=0,g=!!l&&i(l,d,3);p<s;){if(p in a){if(f=g?g(a[p],p,n):a[p],u>0&&r(f))h=e(t,n,f,o(f.length),h,u-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[h]=f}h++}p++}return h}},17405:function(e,t,n){"use strict";var r=n(19738),o=n(10292),i=n(9310);e.exports=r||!i((function(){var e=Math.random();__defineSetter__.call(null,e,(function(){})),delete o[e]}))},39542:function(e,t,n){var r=n(9310);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},32921:function(e,t,n){var r=n(9310),o=n(26533);e.exports=function(e){return r((function(){return!!o[e]()||"\u200b\x85\u180e"!="\u200b\x85\u180e"[e]()||o[e].name!==e}))}},72907:function(e,t,n){var r=n(9310);e.exports=!r((function(){return Object.isExtensible(Object.preventExtensions({}))}))},86503:function(e,t,n){"use strict";var r=n(12577),o=n(92811),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}},50528:function(e,t,n){var r=n(31132),o=n(10292),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]}},55886:function(e,t,n){var r=n(17922),o=n(10184),i=n(87966)("iterator");e.exports=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},44274:function(e,t,n){var r=n(59054),o=n(55886);e.exports=function(e){var t=o(e);if("function"!=typeof t)throw TypeError(String(e)+" is not iterable");return r(t.call(e))}},10292: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")()},50063:function(e){var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},67200:function(e){e.exports={}},80086:function(e,t,n){var r=n(10292);e.exports=function(e,t){var n=r.console;n&&n.error&&(1===arguments.length?n.error(e):n.error(e,t))}},52670:function(e,t,n){var r=n(50528);e.exports=r("document","documentElement")},66914:function(e,t,n){var r=n(61193),o=n(9310),i=n(18506);e.exports=!r&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},39411: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 u,l,d,f=new Array(c),h=8*c-s-1,p=(1<<h)-1,g=p>>1,v=23===s?r(2,-24)-r(2,-77):0,m=e<0||0===e&&1/e<0?1:0,y=0;for((e=n(e))!=e||e===t?(l=e!=e?1:0,u=p):(u=o(i(e)/a),e*(d=r(2,-u))<1&&(u--,d*=2),(e+=u+g>=1?v/d:v*r(2,1-g))*d>=2&&(u++,d/=2),u+g>=p?(l=0,u=p):u+g>=1?(l=(e*d-1)*r(2,s),u+=g):(l=e*r(2,g-1)*r(2,s),u=0));s>=8;f[y++]=255&l,l/=256,s-=8);for(u=u<<s|l,h+=s;h>0;f[y++]=255&u,u/=256,h-=8);return f[--y]|=128*m,f},unpack:function(e,n){var o,i=e.length,a=8*i-n-1,s=(1<<a)-1,c=s>>1,u=a-7,l=i-1,d=e[l--],f=127&d;for(d>>=7;u>0;f=256*f+e[l],l--,u-=8);for(o=f&(1<<-u)-1,f>>=-u,u+=n;u>0;o=256*o+e[l],l--,u-=8);if(0===f)f=1-c;else{if(f===s)return o?NaN:d?-1/0:t;o+=r(2,n),f-=c}return(d?-1:1)*o*r(2,f-n)}}},99436:function(e,t,n){var r=n(9310),o=n(53301),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},43698:function(e,t,n){var r=n(92811),o=n(97490);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}},70625:function(e,t,n){var r=n(86730),o=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return o.call(e)}),e.exports=r.inspectSource},85306:function(e,t,n){var r=n(67200),o=n(92811),i=n(50063),a=n(96046).f,s=n(62237),c=n(72907),u=s("meta"),l=0,d=Object.isExtensible||function(){return!0},f=function(e){a(e,u,{value:{objectID:"O"+ ++l,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,u)){if(!d(e))return"F";if(!t)return"E";f(e)}return e[u].objectID},getWeakData:function(e,t){if(!i(e,u)){if(!d(e))return!0;if(!t)return!1;f(e)}return e[u].weakData},onFreeze:function(e){return c&&h.REQUIRED&&d(e)&&!i(e,u)&&f(e),e}};r[u]=!0},202:function(e,t,n){var r,o,i,a=n(34514),s=n(10292),c=n(92811),u=n(40228),l=n(50063),d=n(93532),f=n(67200),h=s.WeakMap;if(a){var p=new h,g=p.get,v=p.has,m=p.set;r=function(e,t){return m.call(p,e,t),t},o=function(e){return g.call(p,e)||{}},i=function(e){return v.call(p,e)}}else{var y=d("state");f[y]=!0,r=function(e,t){return u(e,y,t),t},o=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(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}}}},9222:function(e,t,n){var r=n(87966),o=n(10184),i=r("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(o.Array===e||a[i]===e)}},39691:function(e,t,n){var r=n(53301);e.exports=Array.isArray||function(e){return"Array"==r(e)}},5597:function(e,t,n){var r=n(9310),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==u||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",u=i.POLYFILL="P";e.exports=i},68796:function(e,t,n){var r=n(92811),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},73491:function(e,t,n){var r=n(71364);e.exports=/(iphone|ipod|ipad).*applewebkit/i.test(r)},92811:function(e){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},19738:function(e){e.exports=!1},10181:function(e,t,n){var r=n(92811),o=n(53301),i=n(87966)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},25877:function(e,t,n){var r=n(59054),o=n(9222),i=n(2439),a=n(60690),s=n(55886),c=n(11768),u=function(e,t){this.stopped=e,this.result=t};(e.exports=function(e,t,n,l,d){var f,h,p,g,v,m,y,C=a(t,n,l?2:1);if(d)f=e;else{if("function"!=typeof(h=s(e)))throw TypeError("Target is not iterable");if(o(h)){for(p=0,g=i(e.length);g>p;p++)if((v=l?C(r(y=e[p])[0],y[1]):C(e[p]))&&v instanceof u)return v;return new u(!1)}f=h.call(e)}for(m=f.next;!(y=m.call(f)).done;)if("object"==typeof(v=c(f,C,y.value,l))&&v&&v instanceof u)return v;return new u(!1)}).stop=function(e){return new u(!0,e)}},10350:function(e,t,n){"use strict";var r,o,i,a=n(30790),s=n(40228),c=n(50063),u=n(87966),l=n(19738),d=u("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(o=a(a(i)))!==Object.prototype&&(r=o):f=!0),void 0==r&&(r={}),l||c(r,d)||s(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},10184:function(e){e.exports={}},72105: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},86224:function(e,t,n){var r=n(5767),o=Math.abs,i=Math.pow,a=i(2,-52),s=i(2,-23),c=i(2,127)*(2-s),u=i(2,-126);e.exports=Math.fround||function(e){var t,n,i=o(e),l=r(e);return i<u?l*(i/u/s+1/a-1/a)*u*s:(n=(t=(1+s/a)*i)-(t-i))>c||n!=n?l*(1/0):l*n}},72315: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)}},5767:function(e){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},75362:function(e,t,n){var r,o,i,a,s,c,u,l,d=n(10292),f=n(80348).f,h=n(53301),p=n(98190).set,g=n(73491),v=d.MutationObserver||d.WebKitMutationObserver,m=d.process,y=d.Promise,C="process"==h(m),T=f(d,"queueMicrotask"),E=T&&T.value;E||(r=function(){var e,t;for(C&&(e=m.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()},C?a=function(){m.nextTick(r)}:v&&!g?(s=!0,c=document.createTextNode(""),new v(r).observe(c,{characterData:!0}),a=function(){c.data=s=!s}):y&&y.resolve?(u=y.resolve(void 0),l=u.then,a=function(){l.call(u,r)}):a=function(){p.call(d,r)}),e.exports=E||function(e){var t={fn:e,next:void 0};i&&(i.next=t),o||(o=t,a()),i=t}},60109:function(e,t,n){var r=n(10292);e.exports=r.Promise},43933:function(e,t,n){var r=n(9310);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},45416:function(e,t,n){var r=n(9310),o=n(87966),i=n(19738),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}))},34514:function(e,t,n){var r=n(10292),o=n(70625),i=r.WeakMap;e.exports="function"===typeof i&&/native code/.test(o(i))},30008:function(e,t,n){"use strict";var r=n(12577),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)}},31400:function(e,t,n){var r=n(10181);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},11163:function(e,t,n){var r=n(10292).isFinite;e.exports=Number.isFinite||function(e){return"number"==typeof e&&r(e)}},84764:function(e,t,n){"use strict";var r=n(61193),o=n(9310),i=n(83349),a=n(43088),s=n(97164),c=n(28040),u=n(99436),l=Object.assign,d=Object.defineProperty;e.exports=!l||o((function(){if(r&&1!==l({b:1},l(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!=l({},e)[n]||i(l({},t)).join("")!=o}))?function(e,t){for(var n=c(e),o=arguments.length,l=1,d=a.f,f=s.f;o>l;)for(var h,p=u(arguments[l++]),g=d?i(p).concat(d(p)):i(p),v=g.length,m=0;v>m;)h=g[m++],r&&!f.call(p,h)||(n[h]=p[h]);return n}:l},30845:function(e,t,n){var r=n(59054),o=n(22866),i=n(14526),a=n(67200),s=n(52670),c=n(18506),u=n(93532)("IE_PROTO"),l=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?(l.prototype=r(e),n=new l,l.prototype=null,n[u]=e):n=d(),void 0===t?n:o(n,t)},a[u]=!0},22866:function(e,t,n){var r=n(61193),o=n(96046),i=n(59054),a=n(83349);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}},96046:function(e,t,n){var r=n(61193),o=n(66914),i=n(59054),a=n(30974),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}},80348:function(e,t,n){var r=n(61193),o=n(97164),i=n(71991),a=n(264),s=n(30974),c=n(50063),u=n(66914),l=Object.getOwnPropertyDescriptor;t.f=r?l:function(e,t){if(e=a(e),t=s(t,!0),u)try{return l(e,t)}catch(n){}if(c(e,t))return i(!o.f.call(e,t),e[t])}},55601:function(e,t,n){var r=n(264),o=n(91393).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))}},91393:function(e,t,n){var r=n(26367),o=n(14526).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},43088:function(e,t){t.f=Object.getOwnPropertySymbols},30790:function(e,t,n){var r=n(50063),o=n(28040),i=n(93532),a=n(16804),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}},26367:function(e,t,n){var r=n(50063),o=n(264),i=n(64358).indexOf,a=n(67200);e.exports=function(e,t){var n,s=o(e),c=0,u=[];for(n in s)!r(a,n)&&r(s,n)&&u.push(n);for(;t.length>c;)r(s,n=t[c++])&&(~i(u,n)||u.push(n));return u}},83349:function(e,t,n){var r=n(26367),o=n(14526);e.exports=Object.keys||function(e){return r(e,o)}},97164: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},97490:function(e,t,n){var r=n(59054),o=n(82429);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)},7920:function(e,t,n){var r=n(61193),o=n(83349),i=n(264),a=n(97164).f,s=function(e){return function(t){for(var n,s=i(t),c=o(s),u=c.length,l=0,d=[];u>l;)n=c[l++],r&&!a.call(s,n)||d.push(e?[n,s[n]]:s[n]);return d}};e.exports={entries:s(!0),values:s(!1)}},55032:function(e,t,n){"use strict";var r=n(60229),o=n(17922);e.exports=r?{}.toString:function(){return"[object "+o(this)+"]"}},45644:function(e,t,n){var r=n(50528),o=n(91393),i=n(43088),a=n(59054);e.exports=r("Reflect","ownKeys")||function(e){var t=o.f(a(e)),n=i.f;return n?t.concat(n(e)):t}},60907:function(e,t,n){var r=n(10292),o=n(61151).trim,i=n(26533),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},25196:function(e,t,n){var r=n(10292),o=n(61151).trim,i=n(26533),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},31132:function(e,t,n){var r=n(10292);e.exports=r},54630:function(e){e.exports=function(e){try{return{error:!1,value:e()}}catch(t){return{error:!0,value:t}}}},33607:function(e,t,n){var r=n(59054),o=n(92811),i=n(30008);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}},89270: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))},u=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,u,l=e.length,d=128,f=0,h=72;for(r=0;r<e.length;r++)(u=e[r])<128&&n.push(a(u));var p=n.length,g=p;for(p&&n.push("-");g<l;){var v=t;for(r=0;r<e.length;r++)(u=e[r])>=d&&u<v&&(v=u);var m=g+1;if(v-d>i((t-f)/m))throw RangeError(o);for(f+=(v-d)*m,d=v,r=0;r<e.length;r++){if((u=e[r])<d&&++f>t)throw RangeError(o);if(u==d){for(var y=f,C=36;;C+=36){var T=C<=h?1:C>=h+26?26:C-h;if(y<T)break;var E=y-T,w=36-T;n.push(a(s(T+E%w))),y=i(E/w)}n.push(a(s(y))),h=c(f,m,g==p),f=0,++g}}++f,++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--"+u(o):o);return i.join(".")}},21079:function(e,t,n){var r=n(34553);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},34553:function(e,t,n){var r=n(10292),o=n(40228),i=n(50063),a=n(35579),s=n(70625),c=n(202),u=c.get,l=c.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var c=!!s&&!!s.unsafe,u=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||o(n,"name",t),l(n).source=d.join("string"==typeof t?t:"")),e!==r?(c?!f&&e[t]&&(u=!0):delete e[t],u?e[t]=n:o(e,t,n)):u?e[t]=n:a(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&u(this).source||s(this)}))},49805:function(e,t,n){var r=n(53301),o=n(67450);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)}},67450:function(e,t,n){"use strict";var r=n(800),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,u,l=this;return c&&(n=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),s&&(t=l.lastIndex),a=o.call(l,e),s&&a&&(l.lastIndex=l.global?a.index+a[0].length:t),c&&a&&a.length>1&&i.call(a[0],n,(function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)})),a}),e.exports=a},800:function(e,t,n){"use strict";var r=n(59054);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}},33849:function(e){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},73097:function(e){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},35579:function(e,t,n){var r=n(10292),o=n(40228);e.exports=function(e,t){try{o(r,e,t)}catch(n){r[e]=t}return t}},61904:function(e,t,n){"use strict";var r=n(50528),o=n(96046),i=n(87966),a=n(61193),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}})}},23270:function(e,t,n){var r=n(96046).f,o=n(50063),i=n(87966)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},93532:function(e,t,n){var r=n(48654),o=n(62237),i=r("keys");e.exports=function(e){return i[e]||(i[e]=o(e))}},86730:function(e,t,n){var r=n(10292),o=n(35579),i="__core-js_shared__",a=r[i]||o(i,{});e.exports=a},48654:function(e,t,n){var r=n(19738),o=n(86730);(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)"})},74036:function(e,t,n){"use strict";var r=n(9310);e.exports=function(e,t){var n=[][e];return!n||!r((function(){n.call(null,t||function(){throw 1},1)}))}},62368:function(e,t,n){var r=n(59054),o=n(12577),i=n(87966)("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)}},74152:function(e,t,n){var r=n(5633),o=n(33849),i=function(e){return function(t,n){var i,a,s=String(o(t)),c=r(n),u=s.length;return c<0||c>=u?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===u||(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)}},38850:function(e,t,n){var r=n(2439),o=n(96232),i=n(33849),a=Math.ceil,s=function(e){return function(t,n,s){var c,u,l=String(i(t)),d=l.length,f=void 0===s?" ":String(s),h=r(n);return h<=d||""==f?l:(c=h-d,(u=o.call(f,a(c/f.length))).length>c&&(u=u.slice(0,c)),e?l+u:u+l)}};e.exports={start:s(!1),end:s(!0)}},96232:function(e,t,n){"use strict";var r=n(5633),o=n(33849);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}},61151:function(e,t,n){var r=n(33849),o="["+n(26533)+"]",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)}},98190:function(e,t,n){var r,o,i,a=n(10292),s=n(9310),c=n(53301),u=n(60690),l=n(52670),d=n(18506),f=n(73491),h=a.location,p=a.setImmediate,g=a.clearImmediate,v=a.process,m=a.MessageChannel,y=a.Dispatch,C=0,T={},E="onreadystatechange",w=function(e){if(T.hasOwnProperty(e)){var t=T[e];delete T[e],t()}},b=function(e){return function(){w(e)}},_=function(e){w(e.data)},I=function(e){a.postMessage(e+"",h.protocol+"//"+h.host)};p&&g||(p=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return T[++C]=function(){("function"==typeof e?e:Function(e)).apply(void 0,t)},r(C),C},g=function(e){delete T[e]},"process"==c(v)?r=function(e){v.nextTick(b(e))}:y&&y.now?r=function(e){y.now(b(e))}:m&&!f?(i=(o=new m).port2,o.port1.onmessage=_,r=u(i.postMessage,i,1)):!a.addEventListener||"function"!=typeof postMessage||a.importScripts||s(I)?r=E in d("script")?function(e){l.appendChild(d("script")).onreadystatechange=function(){l.removeChild(this),w(e)}}:function(e){setTimeout(b(e),0)}:(r=I,a.addEventListener("message",_,!1))),e.exports={set:p,clear:g}},72989:function(e,t,n){var r=n(53301);e.exports=function(e){if("number"!=typeof e&&"Number"!=r(e))throw TypeError("Incorrect invocation");return+e}},64063:function(e,t,n){var r=n(5633),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)}},57335:function(e,t,n){var r=n(5633),o=n(2439);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}},264:function(e,t,n){var r=n(99436),o=n(33849);e.exports=function(e){return r(o(e))}},5633:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},2439:function(e,t,n){var r=n(5633),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},28040:function(e,t,n){var r=n(33849);e.exports=function(e){return Object(r(e))}},82844:function(e,t,n){var r=n(39919);e.exports=function(e,t){var n=r(e);if(n%t)throw RangeError("Wrong offset");return n}},39919:function(e,t,n){var r=n(5633);e.exports=function(e){var t=r(e);if(t<0)throw RangeError("The argument can't be less than 0");return t}},30974:function(e,t,n){var r=n(92811);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")}},60229:function(e,t,n){var r={};r[n(87966)("toStringTag")]="z",e.exports="[object z]"===String(r)},42238:function(e,t,n){"use strict";var r=n(53113),o=n(10292),i=n(61193),a=n(60116),s=n(47803),c=n(92453),u=n(3706),l=n(71991),d=n(40228),f=n(2439),h=n(57335),p=n(82844),g=n(30974),v=n(50063),m=n(17922),y=n(92811),C=n(30845),T=n(97490),E=n(91393).f,w=n(33584),b=n(8084).forEach,_=n(61904),I=n(96046),S=n(80348),A=n(202),k=n(43698),R=A.get,P=A.set,N=I.f,O=S.f,M=Math.round,x=o.RangeError,D=c.ArrayBuffer,L=c.DataView,U=s.NATIVE_ARRAY_BUFFER_VIEWS,H=s.TYPED_ARRAY_TAG,q=s.TypedArray,F=s.TypedArrayPrototype,B=s.aTypedArrayConstructor,K=s.isTypedArray,j="BYTES_PER_ELEMENT",Y="Wrong length",G=function(e,t){for(var n=0,r=t.length,o=new(B(e))(r);r>n;)o[n]=t[n++];return o},z=function(e,t){N(e,t,{get:function(){return R(this)[t]}})},V=function(e){var t;return e instanceof D||"ArrayBuffer"==(t=m(e))||"SharedArrayBuffer"==t},W=function(e,t){return K(e)&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},X=function(e,t){return W(e,t=g(t,!0))?l(2,e[t]):O(e,t)},Q=function(e,t,n){return!(W(e,t=g(t,!0))&&y(n)&&v(n,"value"))||v(n,"get")||v(n,"set")||n.configurable||v(n,"writable")&&!n.writable||v(n,"enumerable")&&!n.enumerable?N(e,t,n):(e[t]=n.value,e)};i?(U||(S.f=X,I.f=Q,z(F,"buffer"),z(F,"byteOffset"),z(F,"byteLength"),z(F,"length")),r({target:"Object",stat:!0,forced:!U},{getOwnPropertyDescriptor:X,defineProperty:Q}),e.exports=function(e,t,n){var i=e.match(/\d+$/)[0]/8,s=e+(n?"Clamped":"")+"Array",c="get"+e,l="set"+e,g=o[s],v=g,m=v&&v.prototype,I={},S=function(e,t){N(e,t,{get:function(){return function(e,t){var n=R(e);return n.view[c](t*i+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,r){var o=R(e);n&&(r=(r=M(r))<0?0:r>255?255:255&r),o.view[l](t*i+o.byteOffset,r,!0)}(this,t,e)},enumerable:!0})};U?a&&(v=t((function(e,t,n,r){return u(e,v,s),k(y(t)?V(t)?void 0!==r?new g(t,p(n,i),r):void 0!==n?new g(t,p(n,i)):new g(t):K(t)?G(v,t):w.call(v,t):new g(h(t)),e,v)})),T&&T(v,q),b(E(g),(function(e){e in v||d(v,e,g[e])})),v.prototype=m):(v=t((function(e,t,n,r){u(e,v,s);var o,a,c,l=0,d=0;if(y(t)){if(!V(t))return K(t)?G(v,t):w.call(v,t);o=t,d=p(n,i);var g=t.byteLength;if(void 0===r){if(g%i)throw x(Y);if((a=g-d)<0)throw x(Y)}else if((a=f(r)*i)+d>g)throw x(Y);c=a/i}else c=h(t),o=new D(a=c*i);for(P(e,{buffer:o,byteOffset:d,byteLength:a,length:c,view:new L(o)});l<c;)S(e,l++)})),T&&T(v,q),m=v.prototype=C(F)),m.constructor!==v&&d(m,"constructor",v),H&&d(m,H,s),I[s]=v,r({global:!0,forced:v!=g,sham:!U},I),j in v||d(v,j,i),j in m||d(m,j,i),_(s)}):e.exports=function(){}},33584:function(e,t,n){var r=n(28040),o=n(2439),i=n(55886),a=n(9222),s=n(60690),c=n(47803).aTypedArrayConstructor;e.exports=function(e){var t,n,u,l,d,f,h=r(e),p=arguments.length,g=p>1?arguments[1]:void 0,v=void 0!==g,m=i(h);if(void 0!=m&&!a(m))for(f=(d=m.call(h)).next,h=[];!(l=f.call(d)).done;)h.push(l.value);for(v&&p>2&&(g=s(g,arguments[2],2)),n=o(h.length),u=new(c(this))(n),t=0;n>t;t++)u[t]=v?g(h[t],t):h[t];return u}},60116:function(e,t,n){var r=n(10292),o=n(9310),i=n(48839),a=n(47803).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}))},62237:function(e){var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},14877:function(e,t,n){var r=n(43933);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol()},71364:function(e,t,n){var r=n(50528);e.exports=r("navigator","userAgent")||""},43592:function(e,t,n){var r,o,i=n(10292),a=n(71364),s=i.process,c=s&&s.versions,u=c&&c.v8;u?o=(r=u.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},56840:function(e,t,n){var r=n(71364);e.exports=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(r)},87966:function(e,t,n){var r=n(10292),o=n(48654),i=n(50063),a=n(62237),s=n(43933),c=n(14877),u=o("wks"),l=r.Symbol,d=c?l:a;e.exports=function(e){return i(u,e)||(s&&i(l,e)?u[e]=l[e]:u[e]=d("Symbol."+e)),u[e]}},26533: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"},70286:function(e,t,n){var r=n(87966);t.f=r},498:function(e,t,n){"use strict";var r=n(53113),o=n(10292),i=n(92453),a=n(61904),s="ArrayBuffer",c=i.ArrayBuffer;r({global:!0,forced:o.ArrayBuffer!==c},{ArrayBuffer:c}),a(s)},85647:function(e,t,n){"use strict";var r=n(53113),o=n(9310),i=n(39691),a=n(92811),s=n(28040),c=n(2439),u=n(1637),l=n(96074),d=n(494),f=n(87966),h=n(43592),p=f("isConcatSpreadable"),g=9007199254740991,v="Maximum allowed index exceeded",m=h>=51||!o((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),y=d("concat"),C=function(e){if(!a(e))return!1;var t=e[p];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!m||!y},{concat:function(e){var t,n,r,o,i,a=s(this),d=l(a,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(C(i=-1===t?a:arguments[t])){if(f+(o=c(i.length))>g)throw TypeError(v);for(n=0;n<o;n++,f++)n in i&&u(d,f,i[n])}else{if(f>=g)throw TypeError(v);u(d,f++,i)}return d.length=f,d}})},9268:function(e,t,n){var r=n(53113),o=n(50796),i=n(6494);r({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},64050:function(e,t,n){var r=n(53113),o=n(86202),i=n(6494);r({target:"Array",proto:!0},{fill:o}),i("fill")},84021:function(e,t,n){"use strict";var r=n(53113),o=n(8084).filter,i=n(9310),a=n(494)("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)}})},70169:function(e,t,n){"use strict";var r=n(53113),o=n(8084).findIndex,i=n(6494),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)},94840:function(e,t,n){"use strict";var r=n(53113),o=n(8084).find,i=n(6494),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)},74055:function(e,t,n){"use strict";var r=n(53113),o=n(41116),i=n(28040),a=n(2439),s=n(12577),c=n(96074);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}})},54788:function(e,t,n){"use strict";var r=n(53113),o=n(41116),i=n(28040),a=n(2439),s=n(5633),c=n(96074);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}})},95543:function(e,t,n){var r=n(53113),o=n(27311);r({target:"Array",stat:!0,forced:!n(48839)((function(e){Array.from(e)}))},{from:o})},87742:function(e,t,n){"use strict";var r=n(53113),o=n(64358).includes,i=n(6494);r({target:"Array",proto:!0},{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),i("includes")},30113:function(e,t,n){"use strict";var r=n(53113),o=n(64358).indexOf,i=n(74036),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)}})},49453:function(e,t,n){"use strict";var r=n(264),o=n(6494),i=n(10184),a=n(202),s=n(91695),c="Array Iterator",u=a.set,l=a.getterFor(c);e.exports=s(Array,"Array",(function(e,t){u(this,{type:c,target:r(e),index:0,kind:t})}),(function(){var e=l(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")},91887:function(e,t,n){"use strict";var r=n(53113),o=n(99436),i=n(264),a=n(74036),s=[].join,c=o!=Object,u=a("join",",");r({target:"Array",proto:!0,forced:c||u},{join:function(e){return s.call(i(this),void 0===e?",":e)}})},76058:function(e,t,n){var r=n(53113),o=n(87378);r({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},97617:function(e,t,n){"use strict";var r=n(53113),o=n(8084).map,i=n(9310),a=n(494)("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)}})},90378:function(e,t,n){"use strict";var r=n(53113),o=n(9310),i=n(1637);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}})},63538:function(e,t,n){"use strict";var r=n(53113),o=n(46545).right;r({target:"Array",proto:!0,forced:n(74036)("reduceRight")},{reduceRight:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},91321:function(e,t,n){"use strict";var r=n(53113),o=n(46545).left;r({target:"Array",proto:!0,forced:n(74036)("reduce")},{reduce:function(e){return o(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},66493:function(e,t,n){"use strict";var r=n(53113),o=n(92811),i=n(39691),a=n(64063),s=n(2439),c=n(264),u=n(1637),l=n(494),d=n(87966)("species"),f=[].slice,h=Math.max;r({target:"Array",proto:!0,forced:!l("slice")},{slice:function(e,t){var n,r,l,p=c(this),g=s(p.length),v=a(e,g),m=a(void 0===t?g:t,g);if(i(p)&&("function"!=typeof(n=p.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[d])&&(n=void 0):n=void 0,n===Array||void 0===n))return f.call(p,v,m);for(r=new(void 0===n?Array:n)(h(m-v,0)),l=0;v<m;v++,l++)v in p&&u(r,l,p[v]);return r.length=l,r}})},49923:function(e,t,n){"use strict";var r=n(53113),o=n(12577),i=n(28040),a=n(9310),s=n(74036),c=[],u=c.sort,l=a((function(){c.sort(void 0)})),d=a((function(){c.sort(null)})),f=s("sort");r({target:"Array",proto:!0,forced:l||!d||f},{sort:function(e){return void 0===e?u.call(i(this)):u.call(i(this),o(e))}})},17377:function(e,t,n){n(61904)("Array")},69663:function(e,t,n){"use strict";var r=n(53113),o=n(64063),i=n(5633),a=n(2439),s=n(28040),c=n(96074),u=n(1637),l=n(494),d=Math.max,f=Math.min,h=9007199254740991,p="Maximum allowed length exceeded";r({target:"Array",proto:!0,forced:!l("splice")},{splice:function(e,t){var n,r,l,g,v,m,y=s(this),C=a(y.length),T=o(e,C),E=arguments.length;if(0===E?n=r=0:1===E?(n=0,r=C-T):(n=E-2,r=f(d(i(t),0),C-T)),C+n-r>h)throw TypeError(p);for(l=c(y,r),g=0;g<r;g++)(v=T+g)in y&&u(l,g,y[v]);if(l.length=r,n<r){for(g=T;g<C-r;g++)m=g+n,(v=g+r)in y?y[m]=y[v]:delete y[m];for(g=C;g>C-r+n;g--)delete y[g-1]}else if(n>r)for(g=C-r;g>T;g--)m=g+n-1,(v=g+r-1)in y?y[m]=y[v]:delete y[m];for(g=0;g<n;g++)y[g+T]=arguments[g+2];return y.length=C-r+n,l}})},39732:function(e,t,n){n(6494)("flatMap")},22863:function(e,t,n){n(6494)("flat")},97031:function(e,t,n){var r=n(40228),o=n(48237),i=n(87966)("toPrimitive"),a=Date.prototype;i in a||r(a,i,o)},56766:function(e,t,n){"use strict";var r=n(92811),o=n(96046),i=n(30790),a=n(87966)("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}})},3113:function(e,t,n){var r=n(61193),o=n(96046).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""}}})},48414:function(e,t,n){var r=n(10292);n(23270)(r.JSON,"JSON",!0)},64250:function(e,t,n){"use strict";var r=n(20539),o=n(72699);e.exports=r("Map",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},37528:function(e,t,n){var r=n(53113),o=n(72315),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))}})},2763:function(e,t,n){var r=n(53113),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}})},53800:function(e,t,n){var r=n(53113),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}})},5407:function(e,t,n){var r=n(53113),o=n(5767),i=Math.abs,a=Math.pow;r({target:"Math",stat:!0},{cbrt:function(e){return o(e=+e)*a(i(e),1/3)}})},90624:function(e,t,n){var r=n(53113),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}})},32297:function(e,t,n){var r=n(53113),o=n(72105),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)}})},15723:function(e,t,n){var r=n(53113),o=n(72105);r({target:"Math",stat:!0,forced:o!=Math.expm1},{expm1:o})},86902:function(e,t,n){n(53113)({target:"Math",stat:!0},{fround:n(86224)})},8304:function(e,t,n){var r=n(53113),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,u=0;s<c;)u<(n=i(arguments[s++]))?(o=o*(r=u/n)*r+1,u=n):o+=n>0?(r=n/u)*r:n;return u===1/0?1/0:u*a(o)}})},11343:function(e,t,n){var r=n(53113),o=n(9310),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)}})},34421:function(e,t,n){var r=n(53113),o=Math.log,i=Math.LOG10E;r({target:"Math",stat:!0},{log10:function(e){return o(e)*i}})},15669:function(e,t,n){n(53113)({target:"Math",stat:!0},{log1p:n(72315)})},4400:function(e,t,n){var r=n(53113),o=Math.log,i=Math.LN2;r({target:"Math",stat:!0},{log2:function(e){return o(e)/i}})},67593:function(e,t,n){n(53113)({target:"Math",stat:!0},{sign:n(5767)})},10830:function(e,t,n){var r=n(53113),o=n(9310),i=n(72105),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)}})},70509:function(e,t,n){var r=n(53113),o=n(72105),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))}})},86754:function(e,t,n){n(23270)(Math,"Math",!0)},24368:function(e,t,n){var r=n(53113),o=Math.ceil,i=Math.floor;r({target:"Math",stat:!0},{trunc:function(e){return(e>0?i:o)(e)}})},46733:function(e,t,n){"use strict";var r=n(61193),o=n(10292),i=n(5597),a=n(34553),s=n(50063),c=n(53301),u=n(43698),l=n(30974),d=n(9310),f=n(30845),h=n(91393).f,p=n(80348).f,g=n(96046).f,v=n(61151).trim,m="Number",y=o.Number,C=y.prototype,T=c(f(C))==m,E=function(e){var t,n,r,o,i,a,s,c,u=l(e,!1);if("string"==typeof u&&u.length>2)if(43===(t=(u=v(u)).charCodeAt(0))||45===t){if(88===(n=u.charCodeAt(2))||120===n)return NaN}else if(48===t){switch(u.charCodeAt(1)){case 66:case 98:r=2,o=49;break;case 79:case 111:r=8,o=55;break;default:return+u}for(a=(i=u.slice(2)).length,s=0;s<a;s++)if((c=i.charCodeAt(s))<48||c>o)return NaN;return parseInt(i,r)}return+u};if(i(m,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var w,b=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof b&&(T?d((function(){C.valueOf.call(n)})):c(n)!=m)?u(new y(E(t)),n,b):E(t)},_=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(","),I=0;_.length>I;I++)s(y,w=_[I])&&!s(b,w)&&g(b,w,p(y,w));b.prototype=C,C.constructor=b,a(o,m,b)}},10275:function(e,t,n){n(53113)({target:"Number",stat:!0},{EPSILON:Math.pow(2,-52)})},46189:function(e,t,n){n(53113)({target:"Number",stat:!0},{isFinite:n(11163)})},35330:function(e,t,n){n(53113)({target:"Number",stat:!0},{isInteger:n(68796)})},92985:function(e,t,n){n(53113)({target:"Number",stat:!0},{isNaN:function(e){return e!=e}})},40824:function(e,t,n){var r=n(53113),o=n(68796),i=Math.abs;r({target:"Number",stat:!0},{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},47490:function(e,t,n){n(53113)({target:"Number",stat:!0},{MAX_SAFE_INTEGER:9007199254740991})},10192:function(e,t,n){n(53113)({target:"Number",stat:!0},{MIN_SAFE_INTEGER:-9007199254740991})},40581:function(e,t,n){var r=n(53113),o=n(60907);r({target:"Number",stat:!0,forced:Number.parseFloat!=o},{parseFloat:o})},70370:function(e,t,n){var r=n(53113),o=n(25196);r({target:"Number",stat:!0,forced:Number.parseInt!=o},{parseInt:o})},12399:function(e,t,n){"use strict";var r=n(53113),o=n(5633),i=n(72989),a=n(96232),s=n(9310),c=1..toFixed,u=Math.floor,l=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),f=[0,0,0,0,0,0],h="",p="0",g=function(e,t){for(var n=-1,r=t;++n<6;)r+=e*f[n],f[n]=r%1e7,r=u(r/1e7)},v=function(e){for(var t=6,n=0;--t>=0;)n+=f[t],f[t]=u(n/e),n=n%e*1e7},m=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==f[e]){var n=String(f[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*l(2,69,1))-69)<0?c*l(2,-t,1):c/l(2,t,1),n*=4503599627370496,(t=52-t)>0){for(g(0,n),r=d;r>=7;)g(1e7,0),r-=7;for(g(l(10,r,1),0),r=t-1;r>=23;)v(1<<23),r-=23;v(1<<r),g(1,1),v(2),p=m()}else g(0,n),g(1<<-t,0),p=m()+a.call("0",d);return p=d>0?h+((s=p.length)<=d?"0."+a.call("0",d-s)+p:p.slice(0,s-d)+"."+p.slice(s-d)):h+p}})},52566:function(e,t,n){var r=n(53113),o=n(84764);r({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},15902:function(e,t,n){"use strict";var r=n(53113),o=n(61193),i=n(17405),a=n(28040),s=n(12577),c=n(96046);o&&r({target:"Object",proto:!0,forced:i},{__defineGetter__:function(e,t){c.f(a(this),e,{get:s(t),enumerable:!0,configurable:!0})}})},39474:function(e,t,n){"use strict";var r=n(53113),o=n(61193),i=n(17405),a=n(28040),s=n(12577),c=n(96046);o&&r({target:"Object",proto:!0,forced:i},{__defineSetter__:function(e,t){c.f(a(this),e,{set:s(t),enumerable:!0,configurable:!0})}})},83963:function(e,t,n){var r=n(53113),o=n(7920).entries;r({target:"Object",stat:!0},{entries:function(e){return o(e)}})},65276:function(e,t,n){var r=n(53113),o=n(72907),i=n(9310),a=n(92811),s=n(85306).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}})},18090:function(e,t,n){var r=n(53113),o=n(25877),i=n(1637);r({target:"Object",stat:!0},{fromEntries:function(e){var t={};return o(e,(function(e,n){i(t,e,n)}),void 0,!0),t}})},58850:function(e,t,n){var r=n(53113),o=n(9310),i=n(264),a=n(80348).f,s=n(61193),c=o((function(){a(1)}));r({target:"Object",stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return a(i(e),t)}})},47745:function(e,t,n){var r=n(53113),o=n(61193),i=n(45644),a=n(264),s=n(80348),c=n(1637);r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(e){for(var t,n,r=a(e),o=s.f,u=i(r),l={},d=0;u.length>d;)void 0!==(n=o(r,t=u[d++]))&&c(l,t,n);return l}})},76599:function(e,t,n){var r=n(53113),o=n(9310),i=n(55601).f;r({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},80888:function(e,t,n){var r=n(53113),o=n(9310),i=n(28040),a=n(30790),s=n(16804);r({target:"Object",stat:!0,forced:o((function(){a(1)})),sham:!s},{getPrototypeOf:function(e){return a(i(e))}})},58993:function(e,t,n){var r=n(53113),o=n(9310),i=n(92811),a=Object.isExtensible;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isExtensible:function(e){return!!i(e)&&(!a||a(e))}})},1590:function(e,t,n){var r=n(53113),o=n(9310),i=n(92811),a=Object.isFrozen;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isFrozen:function(e){return!i(e)||!!a&&a(e)}})},70072:function(e,t,n){var r=n(53113),o=n(9310),i=n(92811),a=Object.isSealed;r({target:"Object",stat:!0,forced:o((function(){a(1)}))},{isSealed:function(e){return!i(e)||!!a&&a(e)}})},56099:function(e,t,n){n(53113)({target:"Object",stat:!0},{is:n(73097)})},26327:function(e,t,n){var r=n(53113),o=n(28040),i=n(83349);r({target:"Object",stat:!0,forced:n(9310)((function(){i(1)}))},{keys:function(e){return i(o(e))}})},35085:function(e,t,n){"use strict";var r=n(53113),o=n(61193),i=n(17405),a=n(28040),s=n(30974),c=n(30790),u=n(80348).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(e){var t,n=a(this),r=s(e,!0);do{if(t=u(n,r))return t.get}while(n=c(n))}})},30289:function(e,t,n){"use strict";var r=n(53113),o=n(61193),i=n(17405),a=n(28040),s=n(30974),c=n(30790),u=n(80348).f;o&&r({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(e){var t,n=a(this),r=s(e,!0);do{if(t=u(n,r))return t.set}while(n=c(n))}})},45732:function(e,t,n){var r=n(53113),o=n(92811),i=n(85306).onFreeze,a=n(72907),s=n(9310),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}})},72974:function(e,t,n){var r=n(53113),o=n(92811),i=n(85306).onFreeze,a=n(72907),s=n(9310),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}})},53476:function(e,t,n){n(53113)({target:"Object",stat:!0},{setPrototypeOf:n(97490)})},19514:function(e,t,n){var r=n(60229),o=n(34553),i=n(55032);r||o(Object.prototype,"toString",i,{unsafe:!0})},19037:function(e,t,n){var r=n(53113),o=n(7920).values;r({target:"Object",stat:!0},{values:function(e){return o(e)}})},14108:function(e,t,n){var r=n(53113),o=n(60907);r({global:!0,forced:parseFloat!=o},{parseFloat:o})},79195:function(e,t,n){var r=n(53113),o=n(25196);r({global:!0,forced:parseInt!=o},{parseInt:o})},79160:function(e,t,n){"use strict";var r=n(53113),o=n(19738),i=n(60109),a=n(9310),s=n(50528),c=n(62368),u=n(33607),l=n(34553);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 u(t,e()).then((function(){return n}))}:e,n?function(n){return u(t,e()).then((function(){throw n}))}:e)}}),o||"function"!=typeof i||i.prototype.finally||l(i.prototype,"finally",s("Promise").prototype.finally)},77445:function(e,t,n){"use strict";var r,o,i,a,s=n(53113),c=n(19738),u=n(10292),l=n(50528),d=n(60109),f=n(34553),h=n(21079),p=n(23270),g=n(61904),v=n(92811),m=n(12577),y=n(3706),C=n(53301),T=n(70625),E=n(25877),w=n(48839),b=n(62368),_=n(98190).set,I=n(75362),S=n(33607),A=n(80086),k=n(30008),R=n(54630),P=n(202),N=n(5597),O=n(87966),M=n(43592),x=O("species"),D="Promise",L=P.get,U=P.set,H=P.getterFor(D),q=d,F=u.TypeError,B=u.document,K=u.process,j=l("fetch"),Y=k.f,G=Y,z="process"==C(K),V=!!(B&&B.createEvent&&u.dispatchEvent),W="unhandledrejection",X=N(D,(function(){if(!(T(q)!==String(q))){if(66===M)return!0;if(!z&&"function"!=typeof PromiseRejectionEvent)return!0}if(c&&!q.prototype.finally)return!0;if(M>=51&&/native code/.test(q))return!1;var e=q.resolve(1),t=function(e){e((function(){}),(function(){}))};return(e.constructor={})[x]=t,!(e.then((function(){}))instanceof t)})),Q=X||!w((function(e){q.all(e).catch((function(){}))})),$=function(e){var t;return!(!v(e)||"function"!=typeof(t=e.then))&&t},J=function(e,t,n){if(!t.notified){t.notified=!0;var r=t.reactions;I((function(){for(var o=t.value,i=1==t.state,a=0;r.length>a;){var s,c,u,l=r[a++],d=i?l.ok:l.fail,f=l.resolve,h=l.reject,p=l.domain;try{d?(i||(2===t.rejection&&ne(e,t),t.rejection=1),!0===d?s=o:(p&&p.enter(),s=d(o),p&&(p.exit(),u=!0)),s===l.promise?h(F("Promise-chain cycle")):(c=$(s))?c.call(s,f,h):f(s)):h(o)}catch(g){p&&!u&&p.exit(),h(g)}}t.reactions=[],t.notified=!1,n&&!t.rejection&&ee(e,t)}))}},Z=function(e,t,n){var r,o;V?((r=B.createEvent("Event")).promise=t,r.reason=n,r.initEvent(e,!1,!0),u.dispatchEvent(r)):r={promise:t,reason:n},(o=u["on"+e])?o(r):e===W&&A("Unhandled promise rejection",n)},ee=function(e,t){_.call(u,(function(){var n,r=t.value;if(te(t)&&(n=R((function(){z?K.emit("unhandledRejection",r,e):Z(W,e,r)})),t.rejection=z||te(t)?2:1,n.error))throw n.value}))},te=function(e){return 1!==e.rejection&&!e.parent},ne=function(e,t){_.call(u,(function(){z?K.emit("rejectionHandled",e):Z("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 F("Promise can't be resolved itself");var i=$(r);i?I((function(){var o={done:!1};try{i.call(r,re(e,t,o,n),re(oe,t,o,n))}catch(a){oe(t,o,a,n)}})):(n.value=r,n.state=1,J(t,n,!1))}catch(a){oe(t,{done:!1},a,n)}}};X&&(q=function(e){y(this,q,D),m(e),r.call(this);var t=L(this);try{e(re(ie,this,t),re(oe,this,t))}catch(n){oe(this,t,n)}},(r=function(e){U(this,{type:D,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=h(q.prototype,{then:function(e,t){var n=H(this),r=Y(b(this,q));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=z?K.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=L(e);this.promise=e,this.resolve=re(ie,e,t),this.reject=re(oe,e,t)},k.f=Y=function(e){return e===q||e===i?new o(e):G(e)},c||"function"!=typeof d||(a=d.prototype.then,f(d.prototype,"then",(function(e,t){var n=this;return new q((function(e,t){a.call(n,e,t)})).then(e,t)}),{unsafe:!0}),"function"==typeof j&&s({global:!0,enumerable:!0,forced:!0},{fetch:function(e){return S(q,j.apply(u,arguments))}}))),s({global:!0,wrap:!0,forced:X},{Promise:q}),p(q,D,!1,!0),g(D),i=l(D),s({target:D,stat:!0,forced:X},{reject:function(e){var t=Y(this);return t.reject.call(void 0,e),t.promise}}),s({target:D,stat:!0,forced:c||X},{resolve:function(e){return S(c&&this===i?q:this,e)}}),s({target:D,stat:!0,forced:Q},{all:function(e){var t=this,n=Y(t),r=n.resolve,o=n.reject,i=R((function(){var n=m(t.resolve),i=[],a=0,s=1;E(e,(function(e){var c=a++,u=!1;i.push(void 0),s++,n.call(t,e).then((function(e){u||(u=!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=Y(t),r=n.reject,o=R((function(){var o=m(t.resolve);E(e,(function(e){o.call(t,e).then(n.resolve,r)}))}));return o.error&&r(o.value),n.promise}})},84495:function(e,t,n){var r=n(53113),o=n(50528),i=n(12577),a=n(59054),s=n(9310),c=o("Reflect","apply"),u=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):u.call(e,t,n)}})},18666:function(e,t,n){var r=n(53113),o=n(50528),i=n(12577),a=n(59054),s=n(92811),c=n(30845),u=n(86503),l=n(9310),d=o("Reflect","construct"),f=l((function(){function e(){}return!(d((function(){}),[],e)instanceof e)})),h=!l((function(){d((function(){}))})),p=f||h;r({target:"Reflect",stat:!0,forced:p,sham:p},{construct:function(e,t){i(e),a(t);var n=arguments.length<3?e:i(arguments[2]);if(h&&!f)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(u.apply(e,r))}var o=n.prototype,l=c(s(o)?o:Object.prototype),p=Function.apply.call(e,l,t);return s(p)?p:l}})},65080:function(e,t,n){var r=n(53113),o=n(61193),i=n(59054),a=n(30974),s=n(96046);r({target:"Reflect",stat:!0,forced:n(9310)((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}}})},69288:function(e,t,n){var r=n(53113),o=n(59054),i=n(80348).f;r({target:"Reflect",stat:!0},{deleteProperty:function(e,t){var n=i(o(e),t);return!(n&&!n.configurable)&&delete e[t]}})},45370:function(e,t,n){var r=n(53113),o=n(61193),i=n(59054),a=n(80348);r({target:"Reflect",stat:!0,sham:!o},{getOwnPropertyDescriptor:function(e,t){return a.f(i(e),t)}})},11920:function(e,t,n){var r=n(53113),o=n(59054),i=n(30790);r({target:"Reflect",stat:!0,sham:!n(16804)},{getPrototypeOf:function(e){return i(o(e))}})},5367:function(e,t,n){var r=n(53113),o=n(92811),i=n(59054),a=n(50063),s=n(80348),c=n(30790);r({target:"Reflect",stat:!0},{get:function e(t,n){var r,u,l=arguments.length<3?t:arguments[2];return i(t)===l?t[n]:(r=s.f(t,n))?a(r,"value")?r.value:void 0===r.get?void 0:r.get.call(l):o(u=c(t))?e(u,n,l):void 0}})},18731:function(e,t,n){n(53113)({target:"Reflect",stat:!0},{has:function(e,t){return t in e}})},83545:function(e,t,n){var r=n(53113),o=n(59054),i=Object.isExtensible;r({target:"Reflect",stat:!0},{isExtensible:function(e){return o(e),!i||i(e)}})},23496:function(e,t,n){n(53113)({target:"Reflect",stat:!0},{ownKeys:n(45644)})},25580:function(e,t,n){var r=n(53113),o=n(50528),i=n(59054);r({target:"Reflect",stat:!0,sham:!n(72907)},{preventExtensions:function(e){i(e);try{var t=o("Object","preventExtensions");return t&&t(e),!0}catch(n){return!1}}})},98076:function(e,t,n){var r=n(53113),o=n(59054),i=n(82429),a=n(97490);a&&r({target:"Reflect",stat:!0},{setPrototypeOf:function(e,t){o(e),i(t);try{return a(e,t),!0}catch(n){return!1}}})},35827:function(e,t,n){var r=n(53113),o=n(59054),i=n(92811),a=n(50063),s=n(9310),c=n(96046),u=n(80348),l=n(30790),d=n(71991);r({target:"Reflect",stat:!0,forced:s((function(){var e=c.f({},"a",{configurable:!0});return!1!==Reflect.set(l(e),"a",1,e)}))},{set:function e(t,n,r){var s,f,h=arguments.length<4?t:arguments[3],p=u.f(o(t),n);if(!p){if(i(f=l(t)))return e(f,n,r,h);p=d(0)}if(a(p,"value")){if(!1===p.writable||!i(h))return!1;if(s=u.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!==p.set&&(p.set.call(h,r),!0)}})},25885:function(e,t,n){var r=n(61193),o=n(10292),i=n(5597),a=n(43698),s=n(96046).f,c=n(91393).f,u=n(10181),l=n(800),d=n(34553),f=n(9310),h=n(61904),p=n(87966)("match"),g=o.RegExp,v=g.prototype,m=/a/g,y=/a/g,C=new g(m)!==m;if(r&&i("RegExp",!C||f((function(){return y[p]=!1,g(m)!=m||g(y)==y||"/a/i"!=g(m,"i")})))){for(var T=function(e,t){var n=this instanceof T,r=u(e),o=void 0===t;return!n&&r&&e.constructor===T&&o?e:a(C?new g(r&&!o?e.source:e,t):g((r=e instanceof T)?e.source:e,r&&o?l.call(e):t),n?this:v,T)},E=function(e){e in T||s(T,e,{configurable:!0,get:function(){return g[e]},set:function(t){g[e]=t}})},w=c(g),b=0;w.length>b;)E(w[b++]);v.constructor=T,T.prototype=v,d(o,"RegExp",T)}h("RegExp")},84532:function(e,t,n){"use strict";var r=n(53113),o=n(67450);r({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},2342:function(e,t,n){var r=n(61193),o=n(96046),i=n(800);r&&"g"!=/./g.flags&&o.f(RegExp.prototype,"flags",{configurable:!0,get:i})},12892:function(e,t,n){"use strict";var r=n(34553),o=n(59054),i=n(9310),a=n(800),s="toString",c=RegExp.prototype,u=c.toString,l=i((function(){return"/a/b"!=u.call({source:"a",flags:"b"})})),d=u.name!=s;(l||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})},9088:function(e,t,n){"use strict";var r=n(20539),o=n(72699);e.exports=r("Set",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),o)},16848:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("anchor")},{anchor:function(e){return o(this,"a","name",e)}})},4739:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("big")},{big:function(){return o(this,"big","","")}})},76783:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("blink")},{blink:function(){return o(this,"blink","","")}})},52182:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("bold")},{bold:function(){return o(this,"b","","")}})},33253:function(e,t,n){"use strict";var r=n(53113),o=n(74152).codeAt;r({target:"String",proto:!0},{codePointAt:function(e){return o(this,e)}})},25912:function(e,t,n){"use strict";var r=n(53113),o=n(80348).f,i=n(2439),a=n(31400),s=n(33849),c=n(44245),u=n(19738),l="".endsWith,d=Math.min,f=c("endsWith");r({target:"String",proto:!0,forced:!(!u&&!f&&!!function(){var e=o(String.prototype,"endsWith");return e&&!e.writable}())&&!f},{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 l?l.call(t,c,o):t.slice(o-c.length,o)===c}})},26683:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("fixed")},{fixed:function(){return o(this,"tt","","")}})},78797:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("fontcolor")},{fontcolor:function(e){return o(this,"font","color",e)}})},8565:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("fontsize")},{fontsize:function(e){return o(this,"font","size",e)}})},12844:function(e,t,n){var r=n(53113),o=n(64063),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("")}})},73528:function(e,t,n){"use strict";var r=n(53113),o=n(31400),i=n(33849);r({target:"String",proto:!0,forced:!n(44245)("includes")},{includes:function(e){return!!~String(i(this)).indexOf(o(e),arguments.length>1?arguments[1]:void 0)}})},17980:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("italics")},{italics:function(){return o(this,"i","","")}})},97199:function(e,t,n){"use strict";var r=n(74152).charAt,o=n(202),i=n(91695),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})}))},70549:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("link")},{link:function(e){return o(this,"a","href",e)}})},96248:function(e,t,n){"use strict";var r=n(83615),o=n(59054),i=n(2439),a=n(33849),s=n(60446),c=n(49805);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),u=String(this);if(!a.global)return c(a,u);var l=a.unicode;a.lastIndex=0;for(var d,f=[],h=0;null!==(d=c(a,u));){var p=String(d[0]);f[h]=p,""===p&&(a.lastIndex=s(u,i(a.lastIndex),l)),h++}return 0===h?null:f}]}))},57020:function(e,t,n){"use strict";var r=n(53113),o=n(38850).end;r({target:"String",proto:!0,forced:n(56840)},{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},26213:function(e,t,n){"use strict";var r=n(53113),o=n(38850).start;r({target:"String",proto:!0,forced:n(56840)},{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}})},57291:function(e,t,n){var r=n(53113),o=n(264),i=n(2439);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("")}})},32622:function(e,t,n){n(53113)({target:"String",proto:!0},{repeat:n(96232)})},90657:function(e,t,n){"use strict";var r=n(83615),o=n(59054),i=n(28040),a=n(2439),s=n(5633),c=n(33849),u=n(60446),l=n(49805),d=Math.max,f=Math.min,h=Math.floor,p=/\$([$&'`]|\d\d?|<[^>]*>)/g,g=/\$([$&'`]|\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),p=String(this),g="function"===typeof i;g||(i=String(i));var v=h.global;if(v){var m=h.unicode;h.lastIndex=0}for(var y=[];;){var C=l(h,p);if(null===C)break;if(y.push(C),!v)break;""===String(C[0])&&(h.lastIndex=u(p,a(h.lastIndex),m))}for(var T,E="",w=0,b=0;b<y.length;b++){C=y[b];for(var _=String(C[0]),I=d(f(s(C.index),p.length),0),S=[],A=1;A<C.length;A++)S.push(void 0===(T=C[A])?T:String(T));var k=C.groups;if(g){var R=[_].concat(S,I,p);void 0!==k&&R.push(k);var P=String(i.apply(void 0,R))}else P=r(_,p,I,S,k,i);I>=w&&(E+=p.slice(w,I)+P,w=I+_.length)}return E+p.slice(w)}];function r(e,n,r,o,a,s){var c=r+e.length,u=o.length,l=g;return void 0!==a&&(a=i(a),l=p),t.call(s,l,(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 l=+i;if(0===l)return t;if(l>u){var d=h(l/10);return 0===d?t:d<=u?void 0===o[d-1]?i.charAt(1):o[d-1]+i.charAt(1):t}s=o[l-1]}return void 0===s?"":s}))}}))},23005:function(e,t,n){"use strict";var r=n(83615),o=n(59054),i=n(33849),a=n(73097),s=n(49805);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),u=i.lastIndex;a(u,0)||(i.lastIndex=0);var l=s(i,c);return a(i.lastIndex,u)||(i.lastIndex=u),null===l?-1:l.index}]}))},7986:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("small")},{small:function(){return o(this,"small","","")}})},91909:function(e,t,n){"use strict";var r=n(83615),o=n(10181),i=n(59054),a=n(33849),s=n(62368),c=n(60446),u=n(2439),l=n(49805),d=n(67450),f=n(9310),h=[].push,p=Math.min,g=4294967295,v=!f((function(){return!RegExp(g,"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?g: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,u,l=[],f=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),p=0,v=new RegExp(e.source,f+"g");(s=d.call(v,r))&&!((c=v.lastIndex)>p&&(l.push(r.slice(p,s.index)),s.length>1&&s.index<r.length&&h.apply(l,s.slice(1)),u=s[0].length,p=c,l.length>=i));)v.lastIndex===s.index&&v.lastIndex++;return p===r.length?!u&&v.test("")||l.push(""):l.push(r.slice(p)),l.length>i?l.slice(0,i):l}:"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),f=String(this),h=s(d,RegExp),m=d.unicode,y=(d.ignoreCase?"i":"")+(d.multiline?"m":"")+(d.unicode?"u":"")+(v?"y":"g"),C=new h(v?d:"^(?:"+d.source+")",y),T=void 0===o?g:o>>>0;if(0===T)return[];if(0===f.length)return null===l(C,f)?[f]:[];for(var E=0,w=0,b=[];w<f.length;){C.lastIndex=v?w:0;var _,I=l(C,v?f:f.slice(w));if(null===I||(_=p(u(C.lastIndex+(v?0:w)),f.length))===E)w=c(f,w,m);else{if(b.push(f.slice(E,w)),b.length===T)return b;for(var S=1;S<=I.length-1;S++)if(b.push(I[S]),b.length===T)return b;w=E=_}}return b.push(f.slice(E)),b}]}),!v)},71441:function(e,t,n){"use strict";var r=n(53113),o=n(80348).f,i=n(2439),a=n(31400),s=n(33849),c=n(44245),u=n(19738),l="".startsWith,d=Math.min,f=c("startsWith");r({target:"String",proto:!0,forced:!(!u&&!f&&!!function(){var e=o(String.prototype,"startsWith");return e&&!e.writable}())&&!f},{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 l?l.call(t,r,n):t.slice(n,n+r.length)===r}})},22607:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("strike")},{strike:function(){return o(this,"strike","","")}})},26967:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("sub")},{sub:function(){return o(this,"sub","","")}})},66505:function(e,t,n){"use strict";var r=n(53113),o=n(20561);r({target:"String",proto:!0,forced:n(39542)("sup")},{sup:function(){return o(this,"sup","","")}})},38589:function(e,t,n){"use strict";var r=n(53113),o=n(61151).end,i=n(32921)("trimEnd"),a=i?function(){return o(this)}:"".trimEnd;r({target:"String",proto:!0,forced:i},{trimEnd:a,trimRight:a})},91732:function(e,t,n){"use strict";var r=n(53113),o=n(61151).start,i=n(32921)("trimStart"),a=i?function(){return o(this)}:"".trimStart;r({target:"String",proto:!0,forced:i},{trimStart:a,trimLeft:a})},59949:function(e,t,n){"use strict";var r=n(53113),o=n(61151).trim;r({target:"String",proto:!0,forced:n(32921)("trim")},{trim:function(){return o(this)}})},44851:function(e,t,n){n(56492)("asyncIterator")},19042:function(e,t,n){"use strict";var r=n(53113),o=n(61193),i=n(10292),a=n(50063),s=n(92811),c=n(96046).f,u=n(28005),l=i.Symbol;if(o&&"function"==typeof l&&(!("description"in l.prototype)||void 0!==l().description)){var d={},f=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:String(arguments[0]),t=this instanceof f?new l(e):void 0===e?l():l(e);return""===e&&(d[t]=!0),t};u(f,l);var h=f.prototype=l.prototype;h.constructor=f;var p=h.toString,g="Symbol(test)"==String(l("test")),v=/^Symbol\((.*)\)[^)]+$/;c(h,"description",{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=p.call(e);if(a(d,e))return"";var n=g?t.slice(7,-1):t.replace(v,"$1");return""===n?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},69326:function(e,t,n){n(56492)("hasInstance")},36983:function(e,t,n){n(56492)("isConcatSpreadable")},86508:function(e,t,n){n(56492)("iterator")},76626:function(e,t,n){"use strict";var r=n(53113),o=n(10292),i=n(50528),a=n(19738),s=n(61193),c=n(43933),u=n(14877),l=n(9310),d=n(50063),f=n(39691),h=n(92811),p=n(59054),g=n(28040),v=n(264),m=n(30974),y=n(71991),C=n(30845),T=n(83349),E=n(91393),w=n(55601),b=n(43088),_=n(80348),I=n(96046),S=n(97164),A=n(40228),k=n(34553),R=n(48654),P=n(93532),N=n(67200),O=n(62237),M=n(87966),x=n(70286),D=n(56492),L=n(23270),U=n(202),H=n(8084).forEach,q=P("hidden"),F="Symbol",B=M("toPrimitive"),K=U.set,j=U.getterFor(F),Y=Object.prototype,G=o.Symbol,z=i("JSON","stringify"),V=_.f,W=I.f,X=w.f,Q=S.f,$=R("symbols"),J=R("op-symbols"),Z=R("string-to-symbol-registry"),ee=R("symbol-to-string-registry"),te=R("wks"),ne=o.QObject,re=!ne||!ne.prototype||!ne.prototype.findChild,oe=s&&l((function(){return 7!=C(W({},"a",{get:function(){return W(this,"a",{value:7}).a}})).a}))?function(e,t,n){var r=V(Y,t);r&&delete Y[t],W(e,t,n),r&&e!==Y&&W(Y,t,r)}:W,ie=function(e,t){var n=$[e]=C(G.prototype);return K(n,{type:F,tag:e,description:t}),s||(n.description=t),n},ae=c&&"symbol"==typeof G.iterator?function(e){return"symbol"==typeof e}:function(e){return Object(e)instanceof G},se=function(e,t,n){e===Y&&se(J,t,n),p(e);var r=m(t,!0);return p(n),d($,r)?(n.enumerable?(d(e,q)&&e[q][r]&&(e[q][r]=!1),n=C(n,{enumerable:y(0,!1)})):(d(e,q)||W(e,q,y(1,{})),e[q][r]=!0),oe(e,r,n)):W(e,r,n)},ce=function(e,t){p(e);var n=v(t),r=T(n).concat(fe(n));return H(r,(function(t){s&&!ue.call(n,t)||se(e,t,n[t])})),e},ue=function(e){var t=m(e,!0),n=Q.call(this,t);return!(this===Y&&d($,t)&&!d(J,t))&&(!(n||!d(this,t)||!d($,t)||d(this,q)&&this[q][t])||n)},le=function(e,t){var n=v(e),r=m(t,!0);if(n!==Y||!d($,r)||d(J,r)){var o=V(n,r);return!o||!d($,r)||d(n,q)&&n[q][r]||(o.enumerable=!0),o}},de=function(e){var t=X(v(e)),n=[];return H(t,(function(e){d($,e)||d(N,e)||n.push(e)})),n},fe=function(e){var t=e===Y,n=X(t?J:v(e)),r=[];return H(n,(function(e){!d($,e)||t&&!d(Y,e)||r.push($[e])})),r};(c||(G=function(){if(this instanceof G)throw TypeError("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,t=O(e),n=function e(n){this===Y&&e.call(J,n),d(this,q)&&d(this[q],t)&&(this[q][t]=!1),oe(this,t,y(1,n))};return s&&re&&oe(Y,t,{configurable:!0,set:n}),ie(t,e)},k(G.prototype,"toString",(function(){return j(this).tag})),S.f=ue,I.f=se,_.f=le,E.f=w.f=de,b.f=fe,s&&(W(G.prototype,"description",{configurable:!0,get:function(){return j(this).description}}),a||k(Y,"propertyIsEnumerable",ue,{unsafe:!0}))),u||(x.f=function(e){return ie(M(e),e)}),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:G}),H(T(te),(function(e){D(e)})),r({target:F,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(Z,t))return Z[t];var n=G(t);return Z[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?C(e):ce(C(e),t)},defineProperty:se,defineProperties:ce,getOwnPropertyDescriptor:le}),r({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:de,getOwnPropertySymbols:fe}),r({target:"Object",stat:!0,forced:l((function(){b.f(1)}))},{getOwnPropertySymbols:function(e){return b.f(g(e))}}),z)&&r({target:"JSON",stat:!0,forced:!c||l((function(){var e=G();return"[null]"!=z([e])||"{}"!=z({a:e})||"{}"!=z(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 f(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!ae(t))return t}),o[1]=t,z.apply(null,o)}});G.prototype[B]||A(G.prototype,B,G.prototype.valueOf),L(G,F),N[q]=!0},79737:function(e,t,n){n(56492)("match")},40952:function(e,t,n){n(56492)("replace")},40186:function(e,t,n){n(56492)("search")},70202:function(e,t,n){n(56492)("species")},17824:function(e,t,n){n(56492)("split")},22463:function(e,t,n){n(56492)("toPrimitive")},91404:function(e,t,n){n(56492)("toStringTag")},91015:function(e,t,n){n(56492)("unscopables")},72129:function(e,t,n){"use strict";var r=n(47803),o=n(50796),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("copyWithin",(function(e,t){return o.call(i(this),e,t,arguments.length>2?arguments[2]:void 0)}))},31205:function(e,t,n){"use strict";var r=n(47803),o=n(8084).every,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("every",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},7129:function(e,t,n){"use strict";var r=n(47803),o=n(86202),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("fill",(function(e){return o.apply(i(this),arguments)}))},1282:function(e,t,n){"use strict";var r=n(47803),o=n(8084).filter,i=n(62368),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,u=new(s(n))(c);c>r;)u[r]=t[r++];return u}))},35954:function(e,t,n){"use strict";var r=n(47803),o=n(8084).findIndex,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("findIndex",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},19075:function(e,t,n){"use strict";var r=n(47803),o=n(8084).find,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("find",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},73141:function(e,t,n){n(42238)("Float32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},95850:function(e,t,n){n(42238)("Float64",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},54007:function(e,t,n){"use strict";var r=n(47803),o=n(8084).forEach,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("forEach",(function(e){o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},88912:function(e,t,n){"use strict";var r=n(60116);(0,n(47803).exportTypedArrayStaticMethod)("from",n(33584),r)},88693:function(e,t,n){"use strict";var r=n(47803),o=n(64358).includes,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("includes",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},49826:function(e,t,n){"use strict";var r=n(47803),o=n(64358).indexOf,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("indexOf",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},77796:function(e,t,n){n(42238)("Int16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},41314:function(e,t,n){n(42238)("Int32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},79371:function(e,t,n){n(42238)("Int8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},41977:function(e,t,n){"use strict";var r=n(10292),o=n(47803),i=n(49453),a=n(87966)("iterator"),s=r.Uint8Array,c=i.values,u=i.keys,l=i.entries,d=o.aTypedArray,f=o.exportTypedArrayMethod,h=s&&s.prototype[a],p=!!h&&("values"==h.name||void 0==h.name),g=function(){return c.call(d(this))};f("entries",(function(){return l.call(d(this))})),f("keys",(function(){return u.call(d(this))})),f("values",g,!p),f(a,g,!p)},9772:function(e,t,n){"use strict";var r=n(47803),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].join;i("join",(function(e){return a.apply(o(this),arguments)}))},68887:function(e,t,n){"use strict";var r=n(47803),o=n(87378),i=r.aTypedArray;(0,r.exportTypedArrayMethod)("lastIndexOf",(function(e){return o.apply(i(this),arguments)}))},15068:function(e,t,n){"use strict";var r=n(47803),o=n(8084).map,i=n(62368),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)}))}))},94773:function(e,t,n){"use strict";var r=n(47803),o=n(60116),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)},23633:function(e,t,n){"use strict";var r=n(47803),o=n(46545).right,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduceRight",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},80634:function(e,t,n){"use strict";var r=n(47803),o=n(46545).left,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("reduce",(function(e){return o(i(this),e,arguments.length,arguments.length>1?arguments[1]:void 0)}))},7784:function(e,t,n){"use strict";var r=n(47803),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}))},20318:function(e,t,n){"use strict";var r=n(47803),o=n(2439),i=n(82844),a=n(28040),s=n(9310),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),u=0;if(s+t>n)throw RangeError("Wrong length");for(;u<s;)this[t+u]=r[u++]}),s((function(){new Int8Array(1).set({})})))},85220:function(e,t,n){"use strict";var r=n(47803),o=n(62368),i=n(9310),a=r.aTypedArray,s=r.aTypedArrayConstructor,c=r.exportTypedArrayMethod,u=[].slice;c("slice",(function(e,t){for(var n=u.call(a(this),e,t),r=o(this,this.constructor),i=0,c=n.length,l=new(s(r))(c);c>i;)l[i]=n[i++];return l}),i((function(){new Int8Array(1).slice()})))},72080:function(e,t,n){"use strict";var r=n(47803),o=n(8084).some,i=r.aTypedArray;(0,r.exportTypedArrayMethod)("some",(function(e){return o(i(this),e,arguments.length>1?arguments[1]:void 0)}))},22548:function(e,t,n){"use strict";var r=n(47803),o=r.aTypedArray,i=r.exportTypedArrayMethod,a=[].sort;i("sort",(function(e){return a.call(o(this),e)}))},91823:function(e,t,n){"use strict";var r=n(47803),o=n(2439),i=n(64063),a=n(62368),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))}))},7124:function(e,t,n){"use strict";var r=n(10292),o=n(47803),i=n(9310),a=r.Int8Array,s=o.aTypedArray,c=o.exportTypedArrayMethod,u=[].toLocaleString,l=[].slice,d=!!a&&i((function(){u.call(new a(1))}));c("toLocaleString",(function(){return u.apply(d?l.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])})))},10271:function(e,t,n){"use strict";var r=n(47803).exportTypedArrayMethod,o=n(9310),i=n(10292).Uint8Array,a=i&&i.prototype||{},s=[].toString,c=[].join;o((function(){s.call({})}))&&(s=function(){return c.call(this)});var u=a.toString!=s;r("toString",s,u)},10119:function(e,t,n){n(42238)("Uint16",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},201:function(e,t,n){n(42238)("Uint32",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},7998:function(e,t,n){n(42238)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}))},27949:function(e,t,n){n(42238)("Uint8",(function(e){return function(t,n,r){return e(this,t,n,r)}}),!0)},85525:function(e,t,n){"use strict";var r,o=n(10292),i=n(21079),a=n(85306),s=n(20539),c=n(17444),u=n(92811),l=n(202).enforce,d=n(34514),f=!o.ActiveXObject&&"ActiveXObject"in o,h=Object.isExtensible,p=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},g=e.exports=s("WeakMap",p,c);if(d&&f){r=c.getConstructor(p,"WeakMap",!0),a.REQUIRED=!0;var v=g.prototype,m=v.delete,y=v.has,C=v.get,T=v.set;i(v,{delete:function(e){if(u(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),m.call(this,e)||t.frozen.delete(e)}return m.call(this,e)},has:function(e){if(u(e)&&!h(e)){var t=l(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(u(e)&&!h(e)){var t=l(this);return t.frozen||(t.frozen=new r),y.call(this,e)?C.call(this,e):t.frozen.get(e)}return C.call(this,e)},set:function(e,t){if(u(e)&&!h(e)){var n=l(this);n.frozen||(n.frozen=new r),y.call(this,e)?T.call(this,e,t):n.frozen.set(e,t)}else T.call(this,e,t);return this}})}},53411:function(e,t,n){"use strict";n(20539)("WeakSet",(function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}}),n(17444))},51922:function(e,t,n){n(56492)("dispose")},81162:function(e,t,n){n(56492)("observable")},40137:function(e,t,n){n(56492)("patternMatch")},60839:function(e,t,n){var r=n(10292),o=n(41121),i=n(86152),a=n(40228);for(var s in o){var c=r[s],u=c&&c.prototype;if(u&&u.forEach!==i)try{a(u,"forEach",i)}catch(l){u.forEach=i}}},36726:function(e,t,n){var r=n(10292),o=n(41121),i=n(49453),a=n(40228),s=n(87966),c=s("iterator"),u=s("toStringTag"),l=i.values;for(var d in o){var f=r[d],h=f&&f.prototype;if(h){if(h[c]!==l)try{a(h,c,l)}catch(g){h[c]=l}if(h[u]||a(h,u,d),o[d])for(var p in i)if(h[p]!==i[p])try{a(h,p,i[p])}catch(g){h[p]=i[p]}}}},88685:function(e,t,n){var r=n(53113),o=n(10292),i=n(98190);r({global:!0,bind:!0,enumerable:!0,forced:!o.setImmediate||!o.clearImmediate},{setImmediate:i.set,clearImmediate:i.clear})},74803:function(e,t,n){var r=n(53113),o=n(10292),i=n(75362),a=n(53301),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)}})},90089:function(e,t,n){"use strict";n(49453);var r=n(53113),o=n(50528),i=n(45416),a=n(34553),s=n(21079),c=n(23270),u=n(84287),l=n(202),d=n(3706),f=n(50063),h=n(60690),p=n(17922),g=n(59054),v=n(92811),m=n(30845),y=n(71991),C=n(44274),T=n(55886),E=n(87966),w=o("fetch"),b=o("Headers"),_=E("iterator"),I="URLSearchParams",S="URLSearchParamsIterator",A=l.set,k=l.getterFor(I),R=l.getterFor(S),P=/\+/g,N=Array(4),O=function(e){return N[e-1]||(N[e-1]=RegExp("((?:%[\\da-f]{2}){"+e+"})","gi"))},M=function(e){try{return decodeURIComponent(e)}catch(t){return e}},x=function(e){var t=e.replace(P," "),n=4;try{return decodeURIComponent(t)}catch(r){for(;n;)t=t.replace(O(n--),M);return t}},D=/[!'()~]|%20/g,L={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},U=function(e){return L[e]},H=function(e){return encodeURIComponent(e).replace(D,U)},q=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:x(r.shift()),value:x(r.join("="))}))},F=function(e){this.entries.length=0,q(this.entries,e)},B=function(e,t){if(e<t)throw TypeError("Not enough arguments")},K=u((function(e,t){A(this,{type:S,iterator:C(k(e).entries),kind:t})}),"Iterator",(function(){var e=R(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})),j=function(){d(this,j,I);var e,t,n,r,o,i,a,s,c,u=arguments.length>0?arguments[0]:void 0,l=this,h=[];if(A(l,{type:I,entries:h,updateURL:function(){},updateSearchParams:F}),void 0!==u)if(v(u))if("function"===typeof(e=T(u)))for(n=(t=e.call(u)).next;!(r=n.call(t)).done;){if((a=(i=(o=C(g(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 u)f(u,c)&&h.push({key:c,value:u[c]+""});else q(h,"string"===typeof u?"?"===u.charAt(0)?u.slice(1):u:u+"")},Y=j.prototype;s(Y,{append:function(e,t){B(arguments.length,2);var n=k(this);n.entries.push({key:e+"",value:t+""}),n.updateURL()},delete:function(e){B(arguments.length,1);for(var t=k(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){B(arguments.length,1);for(var t=k(this).entries,n=e+"",r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){B(arguments.length,1);for(var t=k(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){B(arguments.length,1);for(var t=k(this).entries,n=e+"",r=0;r<t.length;)if(t[r++].key===n)return!0;return!1},set:function(e,t){B(arguments.length,1);for(var n,r=k(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=k(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=k(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 K(this,"keys")},values:function(){return new K(this,"values")},entries:function(){return new K(this,"entries")}},{enumerable:!0}),a(Y,_,Y.entries),a(Y,"toString",(function(){for(var e,t=k(this).entries,n=[],r=0;r<t.length;)e=t[r++],n.push(H(e.key)+"="+H(e.value));return n.join("&")}),{enumerable:!0}),c(j,I),r({global:!0,forced:!i},{URLSearchParams:j}),i||"function"!=typeof w||"function"!=typeof b||r({global:!0,enumerable:!0,forced:!0},{fetch:function(e){var t,n,r,o=[e];return arguments.length>1&&(v(t=arguments[1])&&(n=t.body,p(n)===I&&((r=t.headers?new b(t.headers):new b).has("content-type")||r.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"),t=m(t,{body:y(0,String(n)),headers:y(0,r)}))),o.push(t)),w.apply(this,o)}}),e.exports={URLSearchParams:j,getState:k}},48985:function(e,t,n){"use strict";n(97199);var r,o=n(53113),i=n(61193),a=n(45416),s=n(10292),c=n(22866),u=n(34553),l=n(3706),d=n(50063),f=n(84764),h=n(27311),p=n(74152).codeAt,g=n(89270),v=n(23270),m=n(90089),y=n(202),C=s.URL,T=m.URLSearchParams,E=m.getState,w=y.set,b=y.getterFor("URL"),_=Math.floor,I=Math.pow,S="Invalid scheme",A="Invalid host",k="Invalid port",R=/[A-Za-z]/,P=/[\d+\-.A-Za-z]/,N=/\d/,O=/^(0x|0X)/,M=/^[0-7]+$/,x=/^\d+$/,D=/^[\dA-Fa-f]+$/,L=/[\u0000\u0009\u000A\u000D #%/:?@[\\]]/,U=/[\u0000\u0009\u000A\u000D #/:?@[\\]]/,H=/^[\u0000-\u001F ]+|[\u0000-\u001F ]+$/g,q=/[\u0009\u000A\u000D]/g,F=function(e,t){var n,r,o;if("["==t.charAt(0)){if("]"!=t.charAt(t.length-1))return A;if(!(n=K(t.slice(1,-1))))return A;e.host=n}else if(Q(e)){if(t=g(t),L.test(t))return A;if(null===(n=B(t)))return A;e.host=n}else{if(U.test(t))return A;for(n="",r=h(t),o=0;o<r.length;o++)n+=W(r[o],Y);e.host=n}},B=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=O.test(o)?16:8,o=o.slice(8==i?1:2)),""===o)a=0;else{if(!(10==i?x:8==i?M:D).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>=I(256,5-t))return null}else if(a>255)return null;for(s=n.pop(),r=0;r<n.length;r++)s+=n[r]*I(256,3-r);return s},K=function(e){var t,n,r,o,i,a,s,c=[0,0,0,0,0,0,0,0],u=0,l=null,d=0,f=function(){return e.charAt(d)};if(":"==f()){if(":"!=e.charAt(1))return;d+=2,l=++u}for(;f();){if(8==u)return;if(":"!=f()){for(t=n=0;n<4&&D.test(f());)t=16*t+parseInt(f(),16),d++,n++;if("."==f()){if(0==n)return;if(d-=n,u>6)return;for(r=0;f();){if(o=null,r>0){if(!("."==f()&&r<4))return;d++}if(!N.test(f()))return;for(;N.test(f());){if(i=parseInt(f(),10),null===o)o=i;else{if(0==o)return;o=10*o+i}if(o>255)return;d++}c[u]=256*c[u]+o,2!=++r&&4!=r||u++}if(4!=r)return;break}if(":"==f()){if(d++,!f())return}else if(f())return;c[u++]=t}else{if(null!==l)return;d++,l=++u}}if(null!==l)for(a=u-l,u=7;0!=u&&a>0;)s=c[u],c[u--]=c[l+a-1],c[l+--a]=s;else if(8!=u)return;return c},j=function(e){var t,n,r,o;if("number"==typeof e){for(t=[],n=0;n<4;n++)t.unshift(e%256),e=_(e/256);return t.join(".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,o=0,i=0;i<8;i++)0!==e[i]?(o>n&&(t=r,n=o),r=null,o=0):(null===r&&(r=i),++o);return o>n&&(t=r,n=o),t}(e),n=0;n<8;n++)o&&0===e[n]||(o&&(o=!1),r===n?(t+=n?":":"::",o=!0):(t+=e[n].toString(16),n<7&&(t+=":")));return"["+t+"]"}return e},Y={},G=f({},Y,{" ":1,'"':1,"<":1,">":1,"`":1}),z=f({},G,{"#":1,"?":1,"{":1,"}":1}),V=f({},z,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),W=function(e,t){var n=p(e,0);return n>32&&n<127&&!d(t,e)?e:encodeURIComponent(e)},X={ftp:21,file:null,http:80,https:443,ws:80,wss:443},Q=function(e){return d(X,e.scheme)},$=function(e){return""!=e.username||""!=e.password},J=function(e){return!e.host||e.cannotBeABaseURL||"file"==e.scheme},Z=function(e,t){var n;return 2==e.length&&R.test(e.charAt(0))&&(":"==(n=e.charAt(1))||!t&&"|"==n)},ee=function(e){var t;return e.length>1&&Z(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&&Z(t[0],!0)||t.pop()},ne=function(e){return"."===e||"%2e"===e.toLowerCase()},re={},oe={},ie={},ae={},se={},ce={},ue={},le={},de={},fe={},he={},pe={},ge={},ve={},me={},ye={},Ce={},Te={},Ee={},we={},be={},_e=function(e,t,n,o){var i,a,s,c,u,l=n||re,f=0,p="",g=!1,v=!1,m=!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(H,"")),t=t.replace(q,""),i=h(t);f<=i.length;){switch(a=i[f],l){case re:if(!a||!R.test(a)){if(n)return S;l=ie;continue}p+=a.toLowerCase(),l=oe;break;case oe:if(a&&(P.test(a)||"+"==a||"-"==a||"."==a))p+=a.toLowerCase();else{if(":"!=a){if(n)return S;p="",l=ie,f=0;continue}if(n&&(Q(e)!=d(X,p)||"file"==p&&($(e)||null!==e.port)||"file"==e.scheme&&!e.host))return;if(e.scheme=p,n)return void(Q(e)&&X[e.scheme]==e.port&&(e.port=null));p="","file"==e.scheme?l=ve:Q(e)&&o&&o.scheme==e.scheme?l=ae:Q(e)?l=le:"/"==i[f+1]?(l=se,f++):(e.cannotBeABaseURL=!0,e.path.push(""),l=Ee)}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,l=be;break}l="file"==o.scheme?ve:ce;continue;case ae:if("/"!=a||"/"!=i[f+1]){l=ce;continue}l=de,f++;break;case se:if("/"==a){l=fe;break}l=Te;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&&Q(e))l=ue;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="",l=we;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(),l=Te;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="",l=be}break;case ue:if(!Q(e)||"/"!=a&&"\\"!=a){if("/"!=a){e.username=o.username,e.password=o.password,e.host=o.host,e.port=o.port,l=Te;continue}l=fe}else l=de;break;case le:if(l=de,"/"!=a||"/"!=p.charAt(f+1))continue;f++;break;case de:if("/"!=a&&"\\"!=a){l=fe;continue}break;case fe:if("@"==a){g&&(p="%40"+p),g=!0,s=h(p);for(var y=0;y<s.length;y++){var C=s[y];if(":"!=C||m){var T=W(C,V);m?e.password+=T:e.username+=T}else m=!0}p=""}else if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(g&&""==p)return"Invalid authority";f-=h(p).length+1,p="",l=he}else p+=a;break;case he:case pe:if(n&&"file"==e.scheme){l=ye;continue}if(":"!=a||v){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)){if(Q(e)&&""==p)return A;if(n&&""==p&&($(e)||null!==e.port))return;if(c=F(e,p))return c;if(p="",l=Ce,n)return;continue}"["==a?v=!0:"]"==a&&(v=!1),p+=a}else{if(""==p)return A;if(c=F(e,p))return c;if(p="",l=ge,n==pe)return}break;case ge:if(!N.test(a)){if(a==r||"/"==a||"?"==a||"#"==a||"\\"==a&&Q(e)||n){if(""!=p){var E=parseInt(p,10);if(E>65535)return k;e.port=Q(e)&&E===X[e.scheme]?null:E,p=""}if(n)return;l=Ce;continue}return k}p+=a;break;case ve:if(e.scheme="file","/"==a||"\\"==a)l=me;else{if(!o||"file"!=o.scheme){l=Te;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="",l=we;else{if("#"!=a){ee(i.slice(f).join(""))||(e.host=o.host,e.path=o.path.slice(),te(e)),l=Te;continue}e.host=o.host,e.path=o.path.slice(),e.query=o.query,e.fragment="",l=be}}break;case me:if("/"==a||"\\"==a){l=ye;break}o&&"file"==o.scheme&&!ee(i.slice(f).join(""))&&(Z(o.path[0],!0)?e.path.push(o.path[0]):e.host=o.host),l=Te;continue;case ye:if(a==r||"/"==a||"\\"==a||"?"==a||"#"==a){if(!n&&Z(p))l=Te;else if(""==p){if(e.host="",n)return;l=Ce}else{if(c=F(e,p))return c;if("localhost"==e.host&&(e.host=""),n)return;p="",l=Ce}continue}p+=a;break;case Ce:if(Q(e)){if(l=Te,"/"!=a&&"\\"!=a)continue}else if(n||"?"!=a)if(n||"#"!=a){if(a!=r&&(l=Te,"/"!=a))continue}else e.fragment="",l=be;else e.query="",l=we;break;case Te:if(a==r||"/"==a||"\\"==a&&Q(e)||!n&&("?"==a||"#"==a)){if(".."===(u=(u=p).toLowerCase())||"%2e."===u||".%2e"===u||"%2e%2e"===u?(te(e),"/"==a||"\\"==a&&Q(e)||e.path.push("")):ne(p)?"/"==a||"\\"==a&&Q(e)||e.path.push(""):("file"==e.scheme&&!e.path.length&&Z(p)&&(e.host&&(e.host=""),p=p.charAt(0)+":"),e.path.push(p)),p="","file"==e.scheme&&(a==r||"?"==a||"#"==a))for(;e.path.length>1&&""===e.path[0];)e.path.shift();"?"==a?(e.query="",l=we):"#"==a&&(e.fragment="",l=be)}else p+=W(a,z);break;case Ee:"?"==a?(e.query="",l=we):"#"==a?(e.fragment="",l=be):a!=r&&(e.path[0]+=W(a,Y));break;case we:n||"#"!=a?a!=r&&("'"==a&&Q(e)?e.query+="%27":e.query+="#"==a?"%23":W(a,Y)):(e.fragment="",l=be);break;case be:a!=r&&(e.fragment+=W(a,G))}f++}},Ie=function(e){var t,n,r=l(this,Ie,"URL"),o=arguments.length>1?arguments[1]:void 0,a=String(e),s=w(r,{type:"URL"});if(void 0!==o)if(o instanceof Ie)t=b(o);else if(n=_e(t={},String(o)))throw TypeError(n);if(n=_e(s,a,null,t))throw TypeError(n);var c=s.searchParams=new T,u=E(c);u.updateSearchParams(s.query),u.updateURL=function(){s.query=String(c)||null},i||(r.href=Ae.call(r),r.origin=ke.call(r),r.protocol=Re.call(r),r.username=Pe.call(r),r.password=Ne.call(r),r.host=Oe.call(r),r.hostname=Me.call(r),r.port=xe.call(r),r.pathname=De.call(r),r.search=Le.call(r),r.searchParams=Ue.call(r),r.hash=He.call(r))},Se=Ie.prototype,Ae=function(){var e=b(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,u=t+":";return null!==o?(u+="//",$(e)&&(u+=n+(r?":"+r:"")+"@"),u+=j(o),null!==i&&(u+=":"+i)):"file"==t&&(u+="//"),u+=e.cannotBeABaseURL?a[0]:a.length?"/"+a.join("/"):"",null!==s&&(u+="?"+s),null!==c&&(u+="#"+c),u},ke=function(){var e=b(this),t=e.scheme,n=e.port;if("blob"==t)try{return new URL(t.path[0]).origin}catch(r){return"null"}return"file"!=t&&Q(e)?t+"://"+j(e.host)+(null!==n?":"+n:""):"null"},Re=function(){return b(this).scheme+":"},Pe=function(){return b(this).username},Ne=function(){return b(this).password},Oe=function(){var e=b(this),t=e.host,n=e.port;return null===t?"":null===n?j(t):j(t)+":"+n},Me=function(){var e=b(this).host;return null===e?"":j(e)},xe=function(){var e=b(this).port;return null===e?"":String(e)},De=function(){var e=b(this),t=e.path;return e.cannotBeABaseURL?t[0]:t.length?"/"+t.join("/"):""},Le=function(){var e=b(this).query;return e?"?"+e:""},Ue=function(){return b(this).searchParams},He=function(){var e=b(this).fragment;return e?"#"+e:""},qe=function(e,t){return{get:e,set:t,configurable:!0,enumerable:!0}};if(i&&c(Se,{href:qe(Ae,(function(e){var t=b(this),n=String(e),r=_e(t,n);if(r)throw TypeError(r);E(t.searchParams).updateSearchParams(t.query)})),origin:qe(ke),protocol:qe(Re,(function(e){var t=b(this);_e(t,String(e)+":",re)})),username:qe(Pe,(function(e){var t=b(this),n=h(String(e));if(!J(t)){t.username="";for(var r=0;r<n.length;r++)t.username+=W(n[r],V)}})),password:qe(Ne,(function(e){var t=b(this),n=h(String(e));if(!J(t)){t.password="";for(var r=0;r<n.length;r++)t.password+=W(n[r],V)}})),host:qe(Oe,(function(e){var t=b(this);t.cannotBeABaseURL||_e(t,String(e),he)})),hostname:qe(Me,(function(e){var t=b(this);t.cannotBeABaseURL||_e(t,String(e),pe)})),port:qe(xe,(function(e){var t=b(this);J(t)||(""==(e=String(e))?t.port=null:_e(t,e,ge))})),pathname:qe(De,(function(e){var t=b(this);t.cannotBeABaseURL||(t.path=[],_e(t,e+"",Ce))})),search:qe(Le,(function(e){var t=b(this);""==(e=String(e))?t.query=null:("?"==e.charAt(0)&&(e=e.slice(1)),t.query="",_e(t,e,we)),E(t.searchParams).updateSearchParams(t.query)})),searchParams:qe(Ue),hash:qe(He,(function(e){var t=b(this);""!=(e=String(e))?("#"==e.charAt(0)&&(e=e.slice(1)),t.fragment="",_e(t,e,be)):t.fragment=null}))}),u(Se,"toJSON",(function(){return Ae.call(this)}),{enumerable:!0}),u(Se,"toString",(function(){return Ae.call(this)}),{enumerable:!0}),C){var Fe=C.createObjectURL,Be=C.revokeObjectURL;Fe&&u(Ie,"createObjectURL",(function(e){return Fe.apply(C,arguments)})),Be&&u(Ie,"revokeObjectURL",(function(e){return Be.apply(C,arguments)}))}v(Ie,"URL"),o({global:!0,forced:!a,sham:!i},{URL:Ie})},12713:function(e,t,n){"use strict";n(53113)({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return URL.prototype.toString.call(this)}})},4853:function(e,t,n){"use strict";var r=n(47802);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(90948)(t),e.exports.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}}},90948: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 u=0;t[0]=t[0].replace(/%([a-zA-Z%])/g,(function(e,n){if("%%"===e)return e;u++;var o=r.formatters[n];if("function"===typeof o){var a=t[u];e=o.call(i,a),t.splice(u,1),u--}return e})),r.formatArgs.call(i,t);var l=i.log||r.log;l.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(39405),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}},38579: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?f(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 u=o(t);u&&this._monitorIntersections(u.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=l(o),s=this._rootContainsTarget(o),c=r.entry,u=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:u});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=p(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 g=p(s),v=g&&l(g),m=g&&this._computeTargetAndRootIntersection(g,v,i);v&&m?(s=g,d=f(v,m)):(s=null,a=null)}else{var y=s.ownerDocument;s!=y.body&&s!=y.documentElement&&"visible"!=h.overflow&&(d=l(s))}if(d&&(a=u(d,a)),!a)break;s=s&&p(s)}return a}},a.prototype._getRootRect=function(){var t;if(this.root)t=l(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 u(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 l(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 f(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=p(n)}return!1}function p(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}}()},7093:function(e,t,n){var r=n(4853)("jsonp");e.exports=function(e,t,n){"function"==typeof t&&(n=t,t={});t||(t={});var a,s,c=t.prefix||"__jp",u=t.name||c+o++,l=t.param||"callback",d=null!=t.timeout?t.timeout:6e4,f=encodeURIComponent,h=document.getElementsByTagName("script")[0]||document.head;d&&(s=setTimeout((function(){p(),n&&n(new Error("Timeout"))}),d));function p(){a.parentNode&&a.parentNode.removeChild(a),window[u]=i,s&&clearTimeout(s)}return window[u]=function(e){r("jsonp got",e),p(),n&&n(null,e)},e=(e+=(~e.indexOf("?")?"&":"?")+l+"="+f(u)).replace("?&","?"),r('jsonp req "%s"',e),(a=document.createElement("script")).src=e,h.parentNode.insertBefore(a,h),function(){window[u]&&p()}};var o=0;function i(){}},39405: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 u=typeof e;if("string"===u&&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"===u&&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))}},16512: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),u=1;u<arguments.length;u++){for(var l in a=Object(arguments[u]))n.call(a,l)&&(c[l]=a[l]);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}},51947:function(e,t,n){"use strict";var r=n(63343);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?l(t.promise,i):u(t.promise,r)}else 1===e._V?u(t.promise,e._W):l(t.promise,e._W)}))}(e,t)}function u(e,t){if(t===e)return l(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 l(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 l(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 f(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,u(t,e))}),(function(e){n||(n=!0,l(t,e))}));n||r!==a||(n=!0,l(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 f(t,n,a))}))}(this,e,t);var n=new s(o);return c(this,new f(e,t,n)),n}},50991:function(e,t,n){"use strict";var r=n(51947);e.exports=r;var o=l(!0),i=l(!1),a=l(null),s=l(void 0),c=l(0),u=l("");function l(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 u;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 l(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)}},51387:function(e,t,n){"use strict";var r=n(51947),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 u(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(u.bind(null,e._1),s(n,o)?100:2e3),logged:!1})}}},51216:function(e,t,n){"use strict";n(76626),n(19042),n(44851),n(69326),n(36983),n(86508),n(79737),n(40952),n(40186),n(70202),n(17824),n(22463),n(91404),n(91015),n(85647),n(48414),n(86754),n(19514),n(51922),n(81162),n(40137),n(36726),n(95543),n(97199),"undefined"===typeof Promise&&(n(51387).enable(),self.Promise=n(50991)),"undefined"!==typeof window&&n(78556),Object.assign=n(16512)},91747:function(e,t,n){"use strict";n(76626),n(19042),n(44851),n(69326),n(36983),n(86508),n(79737),n(40952),n(40186),n(70202),n(17824),n(22463),n(91404),n(91015),n(85647),n(9268),n(64050),n(84021),n(94840),n(70169),n(54788),n(74055),n(95543),n(87742),n(30113),n(49453),n(91887),n(76058),n(97617),n(90378),n(91321),n(63538),n(66493),n(49923),n(17377),n(69663),n(22863),n(39732),n(498),n(97031),n(56766),n(3113),n(48414),n(64250),n(37528),n(2763),n(53800),n(5407),n(90624),n(32297),n(15723),n(86902),n(8304),n(11343),n(34421),n(15669),n(4400),n(67593),n(10830),n(70509),n(86754),n(24368),n(46733),n(10275),n(46189),n(35330),n(92985),n(40824),n(47490),n(10192),n(40581),n(70370),n(12399),n(52566),n(15902),n(39474),n(83963),n(65276),n(18090),n(58850),n(47745),n(76599),n(80888),n(56099),n(58993),n(1590),n(70072),n(26327),n(35085),n(30289),n(45732),n(72974),n(53476),n(19514),n(19037),n(14108),n(79195),n(77445),n(79160),n(84495),n(18666),n(65080),n(69288),n(5367),n(45370),n(11920),n(18731),n(83545),n(23496),n(25580),n(35827),n(98076),n(25885),n(84532),n(2342),n(12892),n(9088),n(33253),n(25912),n(12844),n(73528),n(97199),n(96248),n(57020),n(26213),n(57291),n(32622),n(90657),n(23005),n(91909),n(71441),n(59949),n(38589),n(91732),n(16848),n(4739),n(76783),n(52182),n(26683),n(78797),n(8565),n(17980),n(70549),n(7986),n(22607),n(26967),n(66505),n(73141),n(95850),n(79371),n(77796),n(41314),n(7998),n(27949),n(10119),n(201),n(72129),n(31205),n(7129),n(1282),n(19075),n(35954),n(54007),n(88912),n(88693),n(49826),n(41977),n(9772),n(68887),n(15068),n(94773),n(80634),n(23633),n(7784),n(20318),n(85220),n(72080),n(22548),n(91823),n(7124),n(10271),n(85525),n(53411),n(60839),n(36726),n(88685),n(74803),n(48985),n(12713),n(90089),n(56344)},56344: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(N){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var o=t&&t.prototype instanceof v?t:v,i=Object.create(o.prototype),a=new k(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===p){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=h;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?p:f,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=p,n.method="throw",n.arg=c.arg)}}}(e,n,a),i}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(N){return{type:"throw",arg:N}}}e.wrap=u;var d="suspendedStart",f="suspendedYield",h="executing",p="completed",g={};function v(){}function m(){}function y(){}var C={};c(C,i,(function(){return this}));var T=Object.getPrototypeOf,E=T&&T(T(R([])));E&&E!==n&&r.call(E,i)&&(C=E);var w=y.prototype=v.prototype=Object.create(C);function b(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(o,i,a,s){var c=l(e[o],e,i);if("throw"!==c.type){var u=c.arg,d=u.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){u.value=e,a(u)}),(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 I(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,I(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var o=l(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;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,g):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}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 A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function R(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 m.prototype=y,c(w,"constructor",y),c(y,"constructor",m),m.displayName=c(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===m||"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(w),e},e.awrap=function(e){return{__await:e}},b(_.prototype),c(_.prototype,a,(function(){return this})),e.AsyncIterator=_,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new _(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(w),c(w,s,"Generator"),c(w,i,(function(){return this})),c(w,"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=R,k.prototype={constructor:k,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(A),!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"),u=r.call(a,"finallyLoc");if(c&&u){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(!u)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,g):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),g},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),A(n),g}},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;A(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:R(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},78556:function(e,t,n){"use strict";n.r(t),n.d(t,{DOMException:function(){return S},Headers:function(){return p},Request:function(){return E},Response:function(){return _},fetch:function(){return A}});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 u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(e){return e&&u.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 f(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 p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function v(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function m(e){var t=new FileReader,n=v(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 C(){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)||l(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=g(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=g(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(m)}),this.text=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=v(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(w)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=d(e),t=f(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[d(e)]},p.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},p.prototype.set=function(e,t){this.map[d(e)]=f(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},i&&(p.prototype[Symbol.iterator]=p.prototype.entries);var T=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(e,t){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n=(t=t||{}).body;if(e instanceof E){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=function(e){var t=e.toUpperCase();return T.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 w(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 b(e){var t=new p;return e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t}function _(e,t){if(!(this instanceof _))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 p(t.headers),this.url=t.url||"",this._initBody(e)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},C.call(E.prototype),C.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},_.error=function(){var e=new _(null,{status:0,statusText:""});return e.type="error",e};var I=[301,302,303,307,308];_.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new _(null,{status:t,headers:{location:e}})};var S=r.DOMException;try{new S}catch(k){(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 A(e,t){return new Promise((function(n,o){var i=new E(e,t);if(i.signal&&i.signal.aborted)return o(new S("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:b(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 _(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 p?i.headers.forEach((function(e,t){s.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){s.setRequestHeader(e,f(t.headers[e]))})),i.signal&&(i.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&i.signal.removeEventListener("abort",u)}),s.send("undefined"===typeof i._bodyInit?null:i._bodyInit)}))}A.polyfill=!0,r.fetch||(r.fetch=A,r.Headers=p,r.Request=E,r.Response=_)},18916:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=void 0;t.Logger=function(){function e(){}return e.getLogger=function(){return this.loggerInstance},e.setLogger=function(e){return this.loggerInstance=e||console,e},e.loggerInstance=console,e}()},55142:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(84867);r.__exportStar(n(18180),t),r.__exportStar(n(67699),t),r.__exportStar(n(32457),t),r.__exportStar(n(46949),t),r.__exportStar(n(18916),t)},18180:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},67699:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getModule=t.getContainer=t.createRuntimeVariables=t.injectScript=t.createDelegatedModule=t.importDelegatedModule=t.extractUrlAndGlobal=void 0;var r=n(84867);t.extractUrlAndGlobal=function(e){var t=e.indexOf("@");if(t<=0||t===e.length-1)throw new Error('Invalid request "'.concat(e,'"'));return[e.substring(t+1),e.substring(0,t)]};t.importDelegatedModule=function(e){return r.__awaiter(void 0,void 0,void 0,(function(){return r.__generator(this,(function(t){return[2,o(e).then((function(e){return e})).then((function(e){if("undefined"===typeof window)return e;var t={get:e.get,init:function(n,r){try{e.init(n,r),t.__initialized=!0}catch(o){return 1}}};return t.__initialized||t.init(n.S.default),t}))]}))}))};t.createDelegatedModule=function(e,t){for(var n=[],r=0,o=Object.entries(t);r<o.length;r++){var i=o[r],a=i[0],s=i[1];if(Array.isArray(s)||"object"===typeof s)throw new Error('[Module Federation] Delegated module params cannot be an array or object. Key "'.concat(a,'" should be a string or number'));n.push("".concat(a,"=").concat(s))}return"internal ".concat(e,"?").concat(n.join("&"))};var o=function(e){var r,o=function(){try{var e={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:"localhost",WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REMOTES||{};return Object.entries(e).reduce((function(e,n){var r=n[0],o=n[1];if("object"===typeof o&&"function"===typeof o.then)e[r]={asyncContainer:o};else if("function"===typeof o)e[r]={asyncContainer:o};else if("string"===typeof o&&o.startsWith("internal "));else{if("string"!==typeof o)throw console.log("remotes process",{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:"localhost",WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REMOTES),new Error('[mf] Invalid value received for runtime_remote "'.concat(r,'"'));var i=(0,t.extractUrlAndGlobal)(o),a=i[0],s=i[1];e[r]={global:s,url:a}}return e}),{})}catch(n){console.warn("Unable to retrieve runtime remotes: ",n)}return{}}(),i="string"===typeof e?o[e]:e;if(i.asyncContainer)r="function"===typeof i.asyncContainer.then?i.asyncContainer:i.asyncContainer();else{var a=i.global,s=i.uniqueKey?i.uniqueKey:a,c=new Error;n.g.__remote_scope__||(n.g.__remote_scope__={_config:{}});var u="undefined"!==typeof window?window:n.g.__remote_scope__;if("undefined"===typeof window)u._config[s]=i.url;else if(u.remoteLoading||(u.remoteLoading={}),u.remoteLoading[s])return u.remoteLoading[s];r=new Promise((function(e,t){function r(){var t=u[a];return e(t)}if("undefined"!==typeof u[a])return r();n.l(i.url,(function(e){if("undefined"!==typeof u[a])return r();var n=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;c.message="Loading script failed.\n("+n+": "+o+" or global var "+a+")",c.name="ScriptExternalLoadError",c.type=n,c.request=o,t(c)}),s)})),"undefined"!==typeof window&&(u.remoteLoading[s]=r)}return r};t.injectScript=function(e){return function(e){return e.then((function(e){return n.S.default?e:Promise.resolve(n.I("default")).then((function(){return e}))})).then((function(e){try{e.init(n.S.default)}catch(t){}return e}))}(o(e))};t.createRuntimeVariables=function(e){return e?Object.entries(e).reduce((function(e,t){if(t[1].startsWith("promise ")||t[1].startsWith("external ")){var n=t[1].replace("promise ","").replace("external ","");return e[t[0]]="function() {\n        return ".concat(n,"\n      }"),e}return e[t[0]]=JSON.stringify(t[1]),e}),{}):{}};t.getContainer=function(e){return r.__awaiter(void 0,void 0,void 0,(function(){var o,i,a;return r.__generator(this,(function(r){switch(r.label){case 0:if(!e)throw Error("Remote container options is empty");return o="undefined"!==typeof window?window:n.g.__remote_scope__,"string"!==typeof e?[3,1]:o[e]?[2,o[e]]:[2];case 1:return i=e.uniqueKey,o[i]?[2,o[i]]:[4,(0,t.injectScript)({global:e.global,url:e.url})];case 2:if(a=r.sent())return[2,a];throw Error("Remote container ".concat(e.url," is empty"))}}))}))};t.getModule=function(e){var n=e.remoteContainer,o=e.modulePath,i=e.exportName;return r.__awaiter(void 0,void 0,void 0,(function(){var e,a,s,c;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,(0,t.getContainer)(n)];case 1:e=r.sent(),r.label=2;case 2:return r.trys.push([2,4,,5]),[4,null===e||void 0===e?void 0:e.get(o)];case 3:return(a=r.sent())?(s=a(),i?[2,s&&"object"===typeof s?s[i]:void 0]:[2,s]):[2,void 0];case 4:return c=r.sent(),console.log(c),[2,void 0];case 5:return[2]}}))}))}},46949:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.importRemote=void 0;var r=n(84867),o=function(e,t,r){return new Promise((function(o,i){var a=r?"?t=".concat((new Date).getTime()):"";n.l("".concat(e).concat(a),(function(e){var t;if("load"===(null===e||void 0===e?void 0:e.type))return o();var n=null===(t=null===e||void 0===e?void 0:e.target)||void 0===t?void 0:t.src,r=new Error;r.message="Loading script failed.\n(missing: "+n+")",r.name="ScriptExternalLoadError",i(r)}),t)}))};t.importRemote=function(e){var t=e.url,i=e.scope,a=e.module,s=e.remoteEntryFileName,c=void 0===s?"remoteEntry.js":s,u=e.bustRemoteEntryCache,l=void 0===u||u;return r.__awaiter(void 0,void 0,void 0,(function(){var e,s,u;return r.__generator(this,(function(d){switch(d.label){case 0:return e=i,window[e]?[3,6]:(s="","string"!==typeof t?[3,1]:(s=t,[3,3]));case 1:return[4,t()];case 2:s=d.sent(),d.label=3;case 3:return[4,Promise.all([o("".concat(s,"/").concat(c),i,l),r.__awaiter(void 0,void 0,void 0,(function(){var e;return r.__generator(this,(function(t){switch(t.label){case 0:return(null===(e=n.S)||void 0===e?void 0:e.default)?[3,2]:[4,n.I("default")];case 1:t.sent(),t.label=2;case 2:return[2]}}))}))])];case 4:if(d.sent(),!window[e])throw new Error("Remote loaded successfully but ".concat(i," could not be found! Verify that the name is correct in the Webpack configuration!"));return[4,Promise.all([(f=window[e],r.__awaiter(void 0,void 0,void 0,(function(){var e,t;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),e=n.S,f.__initialized||f.__initializing?[3,2]:(f.__initializing=!0,[4,f.init(e.default)]);case 1:r.sent(),f.__initialized=!0,delete f.__initializing,r.label=2;case 2:return[3,4];case 3:return t=r.sent(),console.error(t),[3,4];case 4:return[2]}}))}))),window[e].get(a.startsWith("./")?a:"./".concat(a))])];case 5:return u=d.sent(),[2,(0,u[1])()];case 6:return[4,window[e].get(a.startsWith("./")?a:"./".concat(a))];case 7:return[2,d.sent()()]}var f}))}))}},32457:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isObjectEmpty=void 0;t.isObjectEmpty=function(e){for(var t in e)return!1;return!0}},95235:function(e,t,n){"use strict";n.d(t,{A:function(){return Kt}});var r={};n.r(r),n.d(r,{hasBrowserEnv:function(){return ge},hasStandardBrowserEnv:function(){return me},hasStandardBrowserWebWorkerEnv:function(){return ye},navigator:function(){return ve},origin:function(){return Ce}});var o=n(61249);function i(e,t){return function(){return e.apply(t,arguments)}}var a,s=n(47802),c=Object.prototype.toString,u=Object.getPrototypeOf,l=(a=Object.create(null),function(e){var t=c.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),d=function(e){return e=e.toLowerCase(),function(t){return l(t)===e}},f=function(e){return function(t){return typeof t===e}},h=Array.isArray,p=f("undefined");var g=d("ArrayBuffer");var v=f("string"),m=f("function"),y=f("number"),C=function(e){return null!==e&&"object"===typeof e},T=function(e){if("object"!==l(e))return!1;var t=u(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},E=d("Date"),w=d("File"),b=d("Blob"),_=d("FileList"),I=d("URLSearchParams"),S=["ReadableStream","Request","Response","Headers"].map(d),A=(0,o.A)(S,4),k=A[0],R=A[1],P=A[2],N=A[3];function O(e,t){var n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.allOwnKeys,a=void 0!==i&&i;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),h(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{var s,c=a?Object.getOwnPropertyNames(e):Object.keys(e),u=c.length;for(n=0;n<u;n++)s=c[n],t.call(null,e[s],s,e)}}function M(e,t){t=t.toLowerCase();for(var n,r=Object.keys(e),o=r.length;o-- >0;)if(t===(n=r[o]).toLowerCase())return n;return null}var x="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,D=function(e){return!p(e)&&e!==x};var L,U=(L="undefined"!==typeof Uint8Array&&u(Uint8Array),function(e){return L&&e instanceof L}),H=d("HTMLFormElement"),q=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),F=d("RegExp"),B=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};O(n,(function(n,o){var i;!1!==(i=t(n,o,e))&&(r[o]=i||n)})),Object.defineProperties(e,r)};var K=d("AsyncFunction"),j=function(e,t){return e?setImmediate:t?(n="axios@".concat(Math.random()),r=[],x.addEventListener("message",(function(e){var t=e.source,o=e.data;t===x&&o===n&&r.length&&r.shift()()}),!1),function(e){r.push(e),x.postMessage(n,"*")}):function(e){return setTimeout(e)};var n,r}("function"===typeof setImmediate,m(x.postMessage)),Y="undefined"!==typeof queueMicrotask?queueMicrotask.bind(x):"undefined"!==typeof s&&s.nextTick||j,G={isArray:h,isArrayBuffer:g,isBuffer:function(e){return null!==e&&!p(e)&&null!==e.constructor&&!p(e.constructor)&&m(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"===typeof FormData&&e instanceof FormData||m(e.append)&&("formdata"===(t=l(e))||"object"===t&&m(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&g(e.buffer)},isString:v,isNumber:y,isBoolean:function(e){return!0===e||!1===e},isObject:C,isPlainObject:T,isReadableStream:k,isRequest:R,isResponse:P,isHeaders:N,isUndefined:p,isDate:E,isFile:w,isBlob:b,isRegExp:F,isFunction:m,isStream:function(e){return C(e)&&m(e.pipe)},isURLSearchParams:I,isTypedArray:U,isFileList:_,forEach:O,merge:function e(){for(var t=D(this)&&this||{},n=t.caseless,r={},o=function(t,o){var i=n&&M(r,o)||o;T(r[i])&&T(t)?r[i]=e(r[i],t):T(t)?r[i]=e({},t):h(t)?r[i]=t.slice():r[i]=t},i=0,a=arguments.length;i<a;i++)arguments[i]&&O(arguments[i],o);return r},extend:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.allOwnKeys;return O(t,(function(t,r){n&&m(t)?e[r]=i(t,n):e[r]=t}),{allOwnKeys:o}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,i,a,s={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],r&&!r(a,e,t)||s[a]||(t[a]=e[a],s[a]=!0);e=!1!==n&&u(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:l,kindOfTest:d,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(h(e))return e;var t=e.length;if(!y(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:H,hasOwnProperty:q,hasOwnProp:q,reduceDescriptors:B,freezeMethods:function(e){B(e,(function(t,n){if(m(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];m(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return h(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return null!=e&&Number.isFinite(e=+e)?e:t},findKey:M,global:x,isContextDefined:D,isSpecCompliantForm:function(e){return!!(e&&m(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(C(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var o=h(n)?[]:{};return O(n,(function(t,n){var i=e(t,r+1);!p(i)&&(o[n]=i)})),t[r]=void 0,o}}return n}(e,0)},isAsyncFn:K,isThenable:function(e){return e&&(C(e)||m(e))&&m(e.then)&&m(e.catch)},setImmediate:j,asap:Y},z=n(31802),V=n(31344),W=n(63598),X=n(42732);function Q(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(Q,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});var $=Q.prototype,J={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){J[e]={value:e}})),Object.defineProperties(Q,J),Object.defineProperty($,"isAxiosError",{value:!0}),Q.from=function(e,t,n,r,o,i){var a=Object.create($);return G.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),Q.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};var Z=Q;function ee(e){return G.isPlainObject(e)||G.isArray(e)}function te(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function ne(e,t,n){return e?e.concat(t).map((function(e,t){return e=te(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var re=G.toFlatObject(G,{},null,(function(e){return/^is[A-Z]/.test(e)}));var oe=function(e,t,n){if(!G.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=G.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!G.isUndefined(t[e])}))).metaTokens,o=n.visitor||u,i=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&G.isSpecCompliantForm(t);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function c(e){if(null===e)return"";if(G.isDate(e))return e.toISOString();if(!s&&G.isBlob(e))throw new Z("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(e)||G.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function u(e,n,o){var s=e;if(e&&!o&&"object"===typeof e)if(G.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(G.isArray(e)&&function(e){return G.isArray(e)&&!e.some(ee)}(e)||(G.isFileList(e)||G.endsWith(n,"[]"))&&(s=G.toArray(e)))return n=te(n),s.forEach((function(e,r){!G.isUndefined(e)&&null!==e&&t.append(!0===a?ne([n],r,i):null===a?n:n+"[]",c(e))})),!1;return!!ee(e)||(t.append(ne(o,n,i),c(e)),!1)}var l=[],d=Object.assign(re,{defaultVisitor:u,convertValue:c,isVisitable:ee});if(!G.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!G.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),G.forEach(n,(function(n,i){!0===(!(G.isUndefined(n)||null===n)&&o.call(t,n,G.isString(i)?i.trim():i,r,d))&&e(n,r?r.concat(i):[i])})),l.pop()}}(e),t};function ie(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function ae(e,t){this._pairs=[],e&&oe(e,this,t)}var se=ae.prototype;se.append=function(e,t){this._pairs.push([e,t])},se.toString=function(e){var t=e?function(t){return e.call(this,t,ie)}:ie;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var ce=ae;function ue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function le(e,t,n){if(!t)return e;var r=n&&n.encode||ue;G.isFunction(n)&&(n={serialize:n});var o,i=n&&n.serialize;if(o=i?i(t,n):G.isURLSearchParams(t)?t.toString():new ce(t,n).toString(r)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}var de=function(){function e(){(0,V.A)(this,e),this.handlers=[]}return(0,W.A)(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){G.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),fe={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},he=n(18188),pe={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:ce,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]},ge="undefined"!==typeof window&&"undefined"!==typeof document,ve="object"===typeof navigator&&navigator||void 0,me=ge&&(!ve||["ReactNative","NativeScript","NS"].indexOf(ve.product)<0),ye="undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,Ce=ge&&window.location.href||"http://localhost",Te=(0,he.A)((0,he.A)({},r),pe);var Ee=function(e){function t(e,n,r,o){var i=e[o++];if("__proto__"===i)return!0;var a=Number.isFinite(+i),s=o>=e.length;return i=!i&&G.isArray(r)?r.length:i,s?(G.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&G.isObject(r[i])||(r[i]=[]),t(e,n,r[i],o)&&G.isArray(r[i])&&(r[i]=function(e){var t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t<i;t++)r[n=o[t]]=e[n];return r}(r[i])),!a)}if(G.isFormData(e)&&G.isFunction(e.entries)){var n={};return G.forEachEntry(e,(function(e,r){t(function(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),r,n,0)})),n}return null};var we={transitional:fe,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=G.isObject(e);if(i&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return o?JSON.stringify(Ee(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return oe(e,new Te.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return Te.isNode&&G.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=G.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return oe(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return i||o?(t.setContentType("application/json",!1),function(e,t,n){if(G.isString(e))try{return(t||JSON.parse)(e),G.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||we.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!this.responseType||r)){var o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(i){if(o){if("SyntaxError"===i.name)throw Z.from(i,Z.ERR_BAD_RESPONSE,this,null,this.response);throw i}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Te.classes.FormData,Blob:Te.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],(function(e){we.headers[e]={}}));var be=we,_e=n(72382),Ie=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Se=Symbol("internals");function Ae(e){return e&&String(e).trim().toLowerCase()}function ke(e){return!1===e||null==e?e:G.isArray(e)?e.map(ke):String(e)}function Re(e,t,n,r,o){return G.isFunction(r)?r.call(this,t,n):(o&&(t=n),G.isString(t)?G.isString(r)?-1!==t.indexOf(r):G.isRegExp(r)?r.test(t):void 0:void 0)}var Pe=function(e,t){function n(e){(0,V.A)(this,n),e&&this.set(e)}return(0,W.A)(n,[{key:"set",value:function(e,t,n){var r=this;function i(e,t,n){var o=Ae(t);if(!o)throw new Error("header name must be a non-empty string");var i=G.findKey(r,o);(!i||void 0===r[i]||!0===n||void 0===n&&!1!==r[i])&&(r[i||t]=ke(e))}var a=function(e,t){return G.forEach(e,(function(e,n){return i(e,n,t)}))};if(G.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(G.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a(function(e){var t,n,r,o={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&Ie[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)})),o}(e),t);else if(G.isHeaders(e)){var s,c=(0,_e.A)(e.entries());try{for(c.s();!(s=c.n()).done;){var u=(0,o.A)(s.value,2),l=u[0];i(u[1],l,n)}}catch(d){c.e(d)}finally{c.f()}}else null!=e&&i(t,e,n);return this}},{key:"get",value:function(e,t){if(e=Ae(e)){var n=G.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(G.isFunction(t))return t.call(this,r,n);if(G.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=Ae(e)){var n=G.findKey(this,e);return!(!n||void 0===this[n]||t&&!Re(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=Ae(e)){var o=G.findKey(n,e);!o||t&&!Re(0,n[o],o,t)||(delete n[o],r=!0)}}return G.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!Re(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return G.forEach(this,(function(r,o){var i=G.findKey(n,o);if(i)return t[i]=ke(r),void delete t[o];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();a!==o&&delete t[o],t[a]=ke(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return G.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&G.isArray(n)?n.join(", "):n)})),t}},{key:e,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=(0,o.A)(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:t,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[Se]=this[Se]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=Ae(e);t[r]||(!function(e,t){var n=G.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})}))}(n,e),t[r]=!0)}return G.isArray(e)?e.forEach(r):r(e),this}}]),n}(Symbol.iterator,Symbol.toStringTag);Pe.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(Pe.prototype,(function(e,t){var n=e.value,r=t[0].toUpperCase()+t.slice(1);return{get:function(){return n},set:function(e){this[r]=e}}})),G.freezeMethods(Pe);var Ne=Pe;function Oe(e,t){var n=this||be,r=t||n,o=Ne.from(r.headers),i=r.data;return G.forEach(e,(function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)})),o.normalize(),i}function Me(e){return!(!e||!e.__CANCEL__)}function xe(e,t,n){Z.call(this,null==e?"canceled":e,Z.ERR_CANCELED,t,n),this.name="CanceledError"}G.inherits(xe,Z,{__CANCEL__:!0});var De=xe;function Le(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new Z("Request failed with status code "+n.status,[Z.ERR_BAD_REQUEST,Z.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}var Ue=n(8778);var He=function(e,t){e=e||10;var n,r=new Array(e),o=new Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(s){var c=Date.now(),u=o[a];n||(n=c),r[i]=s,o[i]=c;for(var l=a,d=0;l!==i;)d+=r[l++],l%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),!(c-n<t)){var f=u&&c-u;return f?Math.round(1e3*d/f):void 0}}};var qe=function(e,t){var n,r,o=0,i=1e3/t,a=function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now();o=i,n=null,r&&(clearTimeout(r),r=null),e.apply(null,t)};return[function(){for(var e=Date.now(),t=e-o,s=arguments.length,c=new Array(s),u=0;u<s;u++)c[u]=arguments[u];t>=i?a(c,e):(n=c,r||(r=setTimeout((function(){r=null,a(n)}),i-t)))},function(){return n&&a(n)}]},Fe=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=0,o=He(50,250);return qe((function(n){var i=n.loaded,a=n.lengthComputable?n.total:void 0,s=i-r,c=o(s),u=i<=a;r=i;var l=(0,Ue.A)({loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&u?(a-i)/c:void 0,event:n,lengthComputable:null!=a},t?"download":"upload",!0);e(l)}),n)},Be=function(e,t){var n=null!=e;return[function(r){return t[0]({lengthComputable:n,total:e,loaded:r})},t[1]]},Ke=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return G.asap((function(){return e.apply(void 0,n)}))}},je=n(22489),Ye=n(95112),Ge=n(63998),ze=n(2737),Ve=n(93);var We=Te.hasStandardBrowserEnv?function(e,t){return function(n){return n=new URL(n,Te.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)}}(new URL(Te.origin),Te.navigator&&/(msie|trident)/i.test(Te.navigator.userAgent)):function(){return!0},Xe=Te.hasStandardBrowserEnv?{write:function(e,t,n,r,o,i){var a=[e+"="+encodeURIComponent(t)];G.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),G.isString(r)&&a.push("path="+r),G.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Qe(e,t,n){var r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&r||0==n?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var $e=function(e){return e instanceof Ne?(0,he.A)({},e):e};function Je(e,t){t=t||{};var n={};function r(e,t,n,r){return G.isPlainObject(e)&&G.isPlainObject(t)?G.merge.call({caseless:r},e,t):G.isPlainObject(t)?G.merge({},t):G.isArray(t)?t.slice():t}function o(e,t,n,o){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function i(e,t){if(!G.isUndefined(t))return r(void 0,t)}function a(e,t){return G.isUndefined(t)?G.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t,n){return o($e(e),$e(t),0,!0)}};return G.forEach(Object.keys(Object.assign({},e,t)),(function(r){var i=c[r]||o,a=i(e[r],t[r],r);G.isUndefined(a)&&i!==s||(n[r]=a)})),n}var Ze=function(e){var t,n,r=Je({},e),o=r.data,i=r.withXSRFToken,a=r.xsrfHeaderName,s=r.xsrfCookieName,c=r.headers,u=r.auth;if(r.headers=c=Ne.from(c),r.url=le(Qe(r.baseURL,r.url),e.params,e.paramsSerializer),u&&c.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),G.isFormData(o))if(Te.hasStandardBrowserEnv||Te.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(!1!==(t=c.getContentType())){var l=t?t.split(";").map((function(e){return e.trim()})).filter(Boolean):[],d=(n=l,(0,Ye.A)(n)||(0,Ge.A)(n)||(0,ze.A)(n)||(0,Ve.A)()),f=d[0],h=d.slice(1);c.setContentType([f||"multipart/form-data"].concat((0,je.A)(h)).join("; "))}if(Te.hasStandardBrowserEnv&&(i&&G.isFunction(i)&&(i=i(r)),i||!1!==i&&We(r.url))){var p=a&&s&&Xe.read(s);p&&c.set(a,p)}return r},et="undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,i,a,s,c,u=Ze(e),l=u.data,d=Ne.from(u.headers).normalize(),f=u.responseType,h=u.onUploadProgress,p=u.onDownloadProgress;function g(){s&&s(),c&&c(),u.cancelToken&&u.cancelToken.unsubscribe(r),u.signal&&u.signal.removeEventListener("abort",r)}var v=new XMLHttpRequest;function m(){if(v){var r=Ne.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders());Le((function(e){t(e),g()}),(function(e){n(e),g()}),{data:f&&"text"!==f&&"json"!==f?v.response:v.responseText,status:v.status,statusText:v.statusText,headers:r,config:e,request:v}),v=null}}if(v.open(u.method.toUpperCase(),u.url,!0),v.timeout=u.timeout,"onloadend"in v?v.onloadend=m:v.onreadystatechange=function(){v&&4===v.readyState&&(0!==v.status||v.responseURL&&0===v.responseURL.indexOf("file:"))&&setTimeout(m)},v.onabort=function(){v&&(n(new Z("Request aborted",Z.ECONNABORTED,e,v)),v=null)},v.onerror=function(){n(new Z("Network Error",Z.ERR_NETWORK,e,v)),v=null},v.ontimeout=function(){var t=u.timeout?"timeout of "+u.timeout+"ms exceeded":"timeout exceeded",r=u.transitional||fe;u.timeoutErrorMessage&&(t=u.timeoutErrorMessage),n(new Z(t,r.clarifyTimeoutError?Z.ETIMEDOUT:Z.ECONNABORTED,e,v)),v=null},void 0===l&&d.setContentType(null),"setRequestHeader"in v&&G.forEach(d.toJSON(),(function(e,t){v.setRequestHeader(t,e)})),G.isUndefined(u.withCredentials)||(v.withCredentials=!!u.withCredentials),f&&"json"!==f&&(v.responseType=u.responseType),p){var y=Fe(p,!0),C=(0,o.A)(y,2);a=C[0],c=C[1],v.addEventListener("progress",a)}if(h&&v.upload){var T=Fe(h),E=(0,o.A)(T,2);i=E[0],s=E[1],v.upload.addEventListener("progress",i),v.upload.addEventListener("loadend",s)}(u.cancelToken||u.signal)&&(r=function(t){v&&(n(!t||t.type?new De(null,e,v):t),v.abort(),v=null)},u.cancelToken&&u.cancelToken.subscribe(r),u.signal&&(u.signal.aborted?r():u.signal.addEventListener("abort",r)));var w=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(u.url);w&&-1===Te.protocols.indexOf(w)?n(new Z("Unsupported protocol "+w+":",Z.ERR_BAD_REQUEST,e)):v.send(l||null)}))},tt=function(e,t){var n=(e=e?e.filter(Boolean):[]).length;if(t||n){var r,o=new AbortController,i=function(e){if(!r){r=!0,s();var t=e instanceof Error?e:this.reason;o.abort(t instanceof Z?t:new De(t instanceof Error?t.message:t))}},a=t&&setTimeout((function(){a=null,i(new Z("timeout ".concat(t," of ms exceeded"),Z.ETIMEDOUT))}),t),s=function(){e&&(a&&clearTimeout(a),a=null,e.forEach((function(e){e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)})),e=null)};e.forEach((function(e){return e.addEventListener("abort",i)}));var c=o.signal;return c.unsubscribe=function(){return G.asap(s)},c}};function nt(e){this.wrapped=e}function rt(e){var t,n;function r(t,n){try{var i=e[t](n),a=i.value,s=a instanceof nt;Promise.resolve(s?a.wrapped:a).then((function(e){s?r("return"===t?"return":"next",e):o(i.done?"return":"normal",e)}),(function(e){r("throw",e)}))}catch(c){o("throw",c)}}function o(e,o){switch(e){case"return":t.resolve({value:o,done:!0});break;case"throw":t.reject(o);break;default:t.resolve({value:o,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,o){return new Promise((function(i,a){var s={key:e,arg:o,resolve:i,reject:a,next:null};n?n=n.next=s:(t=n=s,r(e,o))}))},"function"!==typeof e.return&&(this.return=void 0)}function ot(e){return function(){return new rt(e.apply(this,arguments))}}function it(e){return new nt(e)}function at(e,t){var n={},r=!1;function o(n,o){return r=!0,o=new Promise((function(t){t(e[n](o))})),{done:!1,value:t(o)}}return n["undefined"!==typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},n.next=function(e){return r?(r=!1,e):o("next",e)},"function"===typeof e.throw&&(n.throw=function(e){if(r)throw r=!1,e;return o("throw",e)}),"function"===typeof e.return&&(n.return=function(e){return r?(r=!1,e):o("return",e)}),n}function st(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new ct(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function ct(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then((function(e){return{value:e,done:t}}))}return ct=function(e){this.s=e,this.n=e.next},ct.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new ct(e)}rt.prototype["function"===typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},rt.prototype.next=function(e){return this._invoke("next",e)},rt.prototype.throw=function(e){return this._invoke("throw",e)},rt.prototype.return=function(e){return this._invoke("return",e)};var ut,lt,dt=X.mark((function e(t,n){var r,o,i;return X.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.byteLength,n&&!(r<n)){e.next=5;break}return e.next=4,t;case 4:return e.abrupt("return");case 5:o=0;case 6:if(!(o<r)){e.next=13;break}return i=o+n,e.next=10,t.slice(o,i);case 10:o=i,e.next=6;break;case 13:case"end":return e.stop()}}),e)})),ft=function(){var e=ot(X.mark((function e(t,n){var r,o,i,a,s,c;return X.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1,o=!1,e.prev=2,a=st(ht(t));case 4:return e.next=6,it(a.next());case 6:if(!(r=!(s=e.sent).done)){e.next=12;break}return c=s.value,e.delegateYield(at(st(dt(c,n)),it),"t0",9);case 9:r=!1,e.next=4;break;case 12:e.next=18;break;case 14:e.prev=14,e.t1=e.catch(2),o=!0,i=e.t1;case 18:if(e.prev=18,e.prev=19,!r||null==a.return){e.next=23;break}return e.next=23,it(a.return());case 23:if(e.prev=23,!o){e.next=26;break}throw i;case 26:return e.finish(23);case 27:return e.finish(18);case 28:case"end":return e.stop()}}),e,null,[[2,14,18,28],[19,,23,27]])})));return function(t,n){return e.apply(this,arguments)}}(),ht=function(){var e=ot(X.mark((function e(t){var n,r,o,i;return X.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t[Symbol.asyncIterator]){e.next=3;break}return e.delegateYield(at(st(t),it),"t0",2);case 2:return e.abrupt("return");case 3:n=t.getReader(),e.prev=4;case 5:return e.next=7,it(n.read());case 7:if(r=e.sent,o=r.done,i=r.value,!o){e.next=12;break}return e.abrupt("break",16);case 12:return e.next=14,i;case 14:e.next=5;break;case 16:return e.prev=16,e.next=19,it(n.cancel());case 19:return e.finish(16);case 20:case"end":return e.stop()}}),e,null,[[4,,16,20]])})));return function(t){return e.apply(this,arguments)}}(),pt=function(e,t,n,r){var o,i=ft(e,t),a=0,s=function(e){o||(o=!0,r&&r(e))};return new ReadableStream({pull:function(e){return(0,z.A)(X.mark((function t(){var r,o,c,u,l;return X.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,i.next();case 3:if(r=t.sent,o=r.done,c=r.value,!o){t.next=10;break}return s(),e.close(),t.abrupt("return");case 10:u=c.byteLength,n&&(l=a+=u,n(l)),e.enqueue(new Uint8Array(c)),t.next=19;break;case 15:throw t.prev=15,t.t0=t.catch(0),s(t.t0),t.t0;case 19:case"end":return t.stop()}}),t,null,[[0,15]])})))()},cancel:function(e){return s(e),i.return()}},{highWaterMark:2})},gt="function"===typeof fetch&&"function"===typeof Request&&"function"===typeof Response,vt=gt&&"function"===typeof ReadableStream,mt=gt&&("function"===typeof TextEncoder?(ut=new TextEncoder,function(e){return ut.encode(e)}):function(){var e=(0,z.A)(X.mark((function e(t){return X.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=Uint8Array,e.next=3,new Response(t).arrayBuffer();case 3:return e.t1=e.sent,e.abrupt("return",new e.t0(e.t1));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),yt=function(e){try{for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return!!e.apply(void 0,n)}catch(o){return!1}},Ct=vt&&yt((function(){var e=!1,t=new Request(Te.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})),Tt=vt&&yt((function(){return G.isReadableStream(new Response("").body)})),Et={stream:Tt&&function(e){return e.body}};gt&&(lt=new Response,["text","arrayBuffer","blob","formData","stream"].forEach((function(e){!Et[e]&&(Et[e]=G.isFunction(lt[e])?function(t){return t[e]()}:function(t,n){throw new Z("Response type '".concat(e,"' is not supported"),Z.ERR_NOT_SUPPORT,n)})})));var wt=function(){var e=(0,z.A)(X.mark((function e(t){var n;return X.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t){e.next=2;break}return e.abrupt("return",0);case 2:if(!G.isBlob(t)){e.next=4;break}return e.abrupt("return",t.size);case 4:if(!G.isSpecCompliantForm(t)){e.next=9;break}return n=new Request(Te.origin,{method:"POST",body:t}),e.next=8,n.arrayBuffer();case 8:case 15:return e.abrupt("return",e.sent.byteLength);case 9:if(!G.isArrayBufferView(t)&&!G.isArrayBuffer(t)){e.next=11;break}return e.abrupt("return",t.byteLength);case 11:if(G.isURLSearchParams(t)&&(t+=""),!G.isString(t)){e.next=16;break}return e.next=15,mt(t);case 16:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),bt=function(){var e=(0,z.A)(X.mark((function e(t,n){var r;return X.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=G.toFiniteNumber(t.getContentLength()),e.abrupt("return",null==r?wt(n):r);case 2:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),_t=gt&&function(){var e=(0,z.A)(X.mark((function e(t){var n,r,i,a,s,c,u,l,d,f,h,p,g,v,m,y,C,T,E,w,b,_,I,S,A,k,R,P,N,O,M,x,D,L;return X.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=Ze(t),r=n.url,i=n.method,a=n.data,s=n.signal,c=n.cancelToken,u=n.timeout,l=n.onDownloadProgress,d=n.onUploadProgress,f=n.responseType,h=n.headers,p=n.withCredentials,g=void 0===p?"same-origin":p,v=n.fetchOptions,f=f?(f+"").toLowerCase():"text",m=tt([s,c&&c.toAbortSignal()],u),C=m&&m.unsubscribe&&function(){m.unsubscribe()},e.prev=4,e.t0=d&&Ct&&"get"!==i&&"head"!==i,!e.t0){e.next=11;break}return e.next=9,bt(h,a);case 9:e.t1=T=e.sent,e.t0=0!==e.t1;case 11:if(!e.t0){e.next=15;break}E=new Request(r,{method:"POST",body:a,duplex:"half"}),G.isFormData(a)&&(w=E.headers.get("content-type"))&&h.setContentType(w),E.body&&(b=Be(T,Fe(Ke(d))),_=(0,o.A)(b,2),I=_[0],S=_[1],a=pt(E.body,65536,I,S));case 15:return G.isString(g)||(g=g?"include":"omit"),A="credentials"in Request.prototype,y=new Request(r,(0,he.A)((0,he.A)({},v),{},{signal:m,method:i.toUpperCase(),headers:h.normalize().toJSON(),body:a,duplex:"half",credentials:A?g:void 0})),e.next=20,fetch(y);case 20:return k=e.sent,R=Tt&&("stream"===f||"response"===f),Tt&&(l||R&&C)&&(P={},["status","statusText","headers"].forEach((function(e){P[e]=k[e]})),N=G.toFiniteNumber(k.headers.get("content-length")),O=l&&Be(N,Fe(Ke(l),!0))||[],M=(0,o.A)(O,2),x=M[0],D=M[1],k=new Response(pt(k.body,65536,x,(function(){D&&D(),C&&C()})),P)),f=f||"text",e.next=26,Et[G.findKey(Et,f)||"text"](k,t);case 26:return L=e.sent,!R&&C&&C(),e.next=30,new Promise((function(e,n){Le(e,n,{data:L,headers:Ne.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:y})}));case 30:return e.abrupt("return",e.sent);case 33:if(e.prev=33,e.t2=e.catch(4),C&&C(),!e.t2||"TypeError"!==e.t2.name||!/fetch/i.test(e.t2.message)){e.next=38;break}throw Object.assign(new Z("Network Error",Z.ERR_NETWORK,t,y),{cause:e.t2.cause||e.t2});case 38:throw Z.from(e.t2,e.t2&&e.t2.code,t,y);case 39:case"end":return e.stop()}}),e,null,[[4,33]])})));return function(t){return e.apply(this,arguments)}}(),It={http:null,xhr:et,fetch:_t};G.forEach(It,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));var St=function(e){return"- ".concat(e)},At=function(e){return G.isFunction(e)||null===e||!1===e},kt=function(e){for(var t,n,r=(e=G.isArray(e)?e:[e]).length,i={},a=0;a<r;a++){var s=void 0;if(n=t=e[a],!At(t)&&void 0===(n=It[(s=String(t)).toLowerCase()]))throw new Z("Unknown adapter '".concat(s,"'"));if(n)break;i[s||"#"+a]=n}if(!n){var c=Object.entries(i).map((function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];return"adapter ".concat(n," ")+(!1===r?"is not supported by the environment":"is not available in the build")})),u=r?c.length>1?"since :\n"+c.map(St).join("\n"):" "+St(c[0]):"as no adapter specified";throw new Z("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n};function Rt(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new De(null,e)}function Pt(e){return Rt(e),e.headers=Ne.from(e.headers),e.data=Oe.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),kt(e.adapter||be.adapter)(e).then((function(t){return Rt(e),t.data=Oe.call(e,e.transformResponse,t),t.headers=Ne.from(t.headers),t}),(function(t){return Me(t)||(Rt(e),t&&t.response&&(t.response.data=Oe.call(e,e.transformResponse,t.response),t.response.headers=Ne.from(t.response.headers))),Promise.reject(t)}))}var Nt="1.8.2",Ot={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Ot[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Mt={};Ot.transitional=function(e,t,n){function r(e,t){return"[Axios v1.8.2] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,i){if(!1===e)throw new Z(r(o," has been removed"+(t?" in "+t:"")),Z.ERR_DEPRECATED);return t&&!Mt[o]&&(Mt[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},Ot.spelling=function(e){return function(t,n){return console.warn("".concat(n," is likely a misspelling of ").concat(e)),!0}};var xt={assertOptions:function(e,t,n){if("object"!==typeof e)throw new Z("options must be an object",Z.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var i=r[o],a=t[i];if(a){var s=e[i],c=void 0===s||a(s,i,e);if(!0!==c)throw new Z("option "+i+" must be "+c,Z.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new Z("Unknown option "+i,Z.ERR_BAD_OPTION)}},validators:Ot},Dt=xt.validators,Lt=function(){function e(t){(0,V.A)(this,e),this.defaults=t,this.interceptors={request:new de,response:new de}}return(0,W.A)(e,[{key:"request",value:function(){var e=(0,z.A)(X.mark((function e(t,n){var r,o;return X.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this._request(t,n);case 3:return e.abrupt("return",e.sent);case 6:if(e.prev=6,e.t0=e.catch(0),e.t0 instanceof Error){r={},Error.captureStackTrace?Error.captureStackTrace(r):r=new Error,o=r.stack?r.stack.replace(/^.+\n/,""):"";try{e.t0.stack?o&&!String(e.t0.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(e.t0.stack+="\n"+o):e.t0.stack=o}catch(i){}}throw e.t0;case 10:case"end":return e.stop()}}),e,this,[[0,6]])})));return function(t,n){return e.apply(this,arguments)}}()},{key:"_request",value:function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};var n=t=Je(this.defaults,t),r=n.transitional,o=n.paramsSerializer,i=n.headers;void 0!==r&&xt.assertOptions(r,{silentJSONParsing:Dt.transitional(Dt.boolean),forcedJSONParsing:Dt.transitional(Dt.boolean),clarifyTimeoutError:Dt.transitional(Dt.boolean)},!1),null!=o&&(G.isFunction(o)?t.paramsSerializer={serialize:o}:xt.assertOptions(o,{encode:Dt.function,serialize:Dt.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),xt.assertOptions(t,{baseUrl:Dt.spelling("baseURL"),withXsrfToken:Dt.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();var a=i&&G.merge(i.common,i[t.method]);i&&G.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete i[e]})),t.headers=Ne.concat(a,i);var s=[],c=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(c=c&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var u,l=[];this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));var d,f=0;if(!c){var h=[Pt.bind(this),void 0];for(h.unshift.apply(h,s),h.push.apply(h,l),d=h.length,u=Promise.resolve(t);f<d;)u=u.then(h[f++],h[f++]);return u}d=s.length;var p=t;for(f=0;f<d;){var g=s[f++],v=s[f++];try{p=g(p)}catch(m){v.call(this,m);break}}try{u=Pt.call(this,p)}catch(m){return Promise.reject(m)}for(f=0,d=l.length;f<d;)u=u.then(l[f++],l[f++]);return u}},{key:"getUri",value:function(e){return le(Qe((e=Je(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}]),e}();G.forEach(["delete","get","head","options"],(function(e){Lt.prototype[e]=function(t,n){return this.request(Je(n||{},{method:e,url:t,data:(n||{}).data}))}})),G.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,o){return this.request(Je(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}Lt.prototype[e]=t(),Lt.prototype[e+"Form"]=t(!0)}));var Ut=Lt,Ht=function(){function e(t){if((0,V.A)(this,e),"function"!==typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,o){r.reason||(r.reason=new De(e,t,o),n(r.reason))}))}return(0,W.A)(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}},{key:"toAbortSignal",value:function(){var e=this,t=new AbortController,n=function(e){t.abort(e)};return this.subscribe(n),t.signal.unsubscribe=function(){return e.unsubscribe(n)},t.signal}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var qt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(qt).forEach((function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];qt[r]=n}));var Ft=qt;var Bt=function e(t){var n=new Ut(t),r=i(Ut.prototype.request,n);return G.extend(r,Ut.prototype,n,{allOwnKeys:!0}),G.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Je(t,n))},r}(be);Bt.Axios=Ut,Bt.CanceledError=De,Bt.CancelToken=Ht,Bt.isCancel=Me,Bt.VERSION=Nt,Bt.toFormData=oe,Bt.AxiosError=Z,Bt.Cancel=Bt.CanceledError,Bt.all=function(e){return Promise.all(e)},Bt.spread=function(e){return function(t){return e.apply(null,t)}},Bt.isAxiosError=function(e){return G.isObject(e)&&!0===e.isAxiosError},Bt.mergeConfig=Je,Bt.AxiosHeaders=Ne,Bt.formToJSON=function(e){return Ee(G.isHTMLForm(e)?new FormData(e):e)},Bt.getAdapter=kt,Bt.HttpStatusCode=Ft,Bt.default=Bt;var Kt=Bt}}]);
//# sourceMappingURL=3815.1e40de27.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[3951],{50068:function(n,t,r){r.d(t,{J$:function(){return v},KU:function(){return s},OR:function(){return p},QV:function(){return i},Wy:function(){return a},_1:function(){return u},bA:function(){return e},hW:function(){return o},s6:function(){return c},vR:function(){return f},zi:function(){return l}});var o="function",u="object",e="undefined",f="prototype",i="hasOwnProperty",c=Object,a=c[f],l=c.assign,p=c.create,s=c.defineProperty,v=a[i]},21336:function(n,t,r){r.d(t,{AQ:function(){return i},mS:function(){return e},zk:function(){return f}});var o=r(50068),u=null;function e(n){void 0===n&&(n=!0);var t=!1===n?null:u;return t||(typeof globalThis!==o.bA&&(t=globalThis),t||typeof self===o.bA||(t=self),t||typeof window===o.bA||(t=window),t||typeof r.g===o.bA||(t=r.g),u=t),t}function f(n){throw new TypeError(n)}function i(n){var t=o.OR;if(t)return t(n);if(null==n)return{};var r=typeof n;function u(){}return r!==o._1&&r!==o.hW&&f("Object prototype may only be an Object:"+n),u[o.vR]=n,new u}},73951:function(n,t,r){r.d(t,{Im:function(){return e},qU:function(){return i},vz:function(){return c}});var o=r(50068),u=r(21336),e=(((0,u.mS)()||{}).Symbol,((0,u.mS)()||{}).Reflect,o.zi||function(n){for(var t,r=1,u=arguments.length;r<u;r++)for(var e in t=arguments[r])o.Wy[o.QV].call(t,e)&&(n[e]=t[e]);return n}),f=function(n,t){return f=o.s6.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t[o.QV](r)&&(n[r]=t[r])},f(n,t)};function i(n,t){function r(){this.constructor=n}typeof t!==o.hW&&null!==t&&(0,u.zk)("Class extends value "+String(t)+" is not a constructor or null"),f(n,t),n[o.vR]=null===t?(0,u.AQ)(t):(r[o.vR]=t[o.vR],new r)}function c(n,t){for(var r=0,o=t.length,u=n.length;r<o;r++,u++)n[u]=t[r];return n}}}]);
//# sourceMappingURL=3951.898a84da.chunk.js.map
/*! For license information please see 3989.bb027167.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[3989],{16512:function(e){var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function l(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(l){return!1}}()?Object.assign:function(e,i){for(var a,o,u=l(e),c=1;c<arguments.length;c++){for(var s in a=Object(arguments[c]))n.call(a,s)&&(u[s]=a[s]);if(t){o=t(a);for(var f=0;f<o.length;f++)r.call(a,o[f])&&(u[o[f]]=a[o[f]])}}return u}},22627:function(e,t,n){var r=n(80322),l=n(16512),i=n(34442);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!r)throw Error(a(227));function o(e,t,n,r,l,i,a,o,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(s){this.onError(s)}}var u=!1,c=null,s=!1,f=null,d={onError:function(e){u=!0,c=e}};function p(e,t,n,r,l,i,a,s,f){u=!1,c=null,o.apply(d,arguments)}var m=null,h=null,g=null;function v(e,t,n){var r=e.type||"unknown-event";e.currentTarget=g(n),function(e,t,n,r,l,i,o,d,m){if(p.apply(this,arguments),u){if(!u)throw Error(a(198));var h=c;u=!1,c=null,s||(s=!0,f=h)}}(r,t,void 0,e),e.currentTarget=null}var y=null,b={};function w(){if(y)for(var e in b){var t=b[e],n=y.indexOf(e);if(!(-1<n))throw Error(a(96,e));if(!x[n]){if(!t.extractEvents)throw Error(a(97,e));for(var r in x[n]=t,n=t.eventTypes){var l=void 0,i=n[r],o=t,u=r;if(T.hasOwnProperty(u))throw Error(a(99,u));T[u]=i;var c=i.phasedRegistrationNames;if(c){for(l in c)c.hasOwnProperty(l)&&k(c[l],o,u);l=!0}else i.registrationName?(k(i.registrationName,o,u),l=!0):l=!1;if(!l)throw Error(a(98,r,e))}}}}function k(e,t,n){if(E[e])throw Error(a(100,e));E[e]=t,S[e]=t.eventTypes[n].dependencies}var x=[],T={},E={},S={};function C(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!b.hasOwnProperty(t)||b[t]!==r){if(b[t])throw Error(a(102,t));b[t]=r,n=!0}}n&&w()}var _=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),P=null,N=null,z=null;function O(e){if(e=h(e)){if("function"!==typeof P)throw Error(a(280));var t=e.stateNode;t&&(t=m(t),P(e.stateNode,e.type,t))}}function M(e){N?z?z.push(e):z=[e]:N=e}function I(){if(N){var e=N,t=z;if(z=N=null,O(e),t)for(e=0;e<t.length;e++)O(t[e])}}function F(e,t){return e(t)}function R(e,t,n,r,l){return e(t,n,r,l)}function D(){}var L=F,A=!1,U=!1;function V(){null===N&&null===z||(D(),I())}function j(e,t,n){if(U)return e(t,n);U=!0;try{return L(e,t,n)}finally{U=!1,V()}}var W=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Q=Object.prototype.hasOwnProperty,H={},B={};function K(e,t,n,r,l,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){$[e]=new K(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];$[t]=new K(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){$[e]=new K(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){$[e]=new K(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){$[e]=new K(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){$[e]=new K(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){$[e]=new K(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){$[e]=new K(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){$[e]=new K(e,5,!1,e.toLowerCase(),null,!1)}));var q=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(q,Y);$[t]=new K(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(q,Y);$[t]=new K(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(q,Y);$[t]=new K(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){$[e]=new K(e,1,!1,e.toLowerCase(),null,!1)})),$.xlinkHref=new K("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){$[e]=new K(e,1,!1,e.toLowerCase(),null,!0)}));var X=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function G(e,t,n,r){var l=$.hasOwnProperty(t)?$[t]:null;(null!==l?0===l.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,l,r)&&(n=null),r||null===l?function(e){return!!Q.call(B,e)||!Q.call(H,e)&&(W.test(e)?B[e]=!0:(H[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):l.mustUseProperty?e[l.propertyName]=null===n?3!==l.type&&"":n:(t=l.attributeName,r=l.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(l=l.type)||4===l&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}X.hasOwnProperty("ReactCurrentDispatcher")||(X.ReactCurrentDispatcher={current:null}),X.hasOwnProperty("ReactCurrentBatchConfig")||(X.ReactCurrentBatchConfig={suspense:null});var Z=/^(.*)[\\\/]/,J="function"===typeof Symbol&&Symbol.for,ee=J?Symbol.for("react.element"):60103,te=J?Symbol.for("react.portal"):60106,ne=J?Symbol.for("react.fragment"):60107,re=J?Symbol.for("react.strict_mode"):60108,le=J?Symbol.for("react.profiler"):60114,ie=J?Symbol.for("react.provider"):60109,ae=J?Symbol.for("react.context"):60110,oe=J?Symbol.for("react.concurrent_mode"):60111,ue=J?Symbol.for("react.forward_ref"):60112,ce=J?Symbol.for("react.suspense"):60113,se=J?Symbol.for("react.suspense_list"):60120,fe=J?Symbol.for("react.memo"):60115,de=J?Symbol.for("react.lazy"):60116,pe=J?Symbol.for("react.block"):60121,me="function"===typeof Symbol&&Symbol.iterator;function he(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=me&&e[me]||e["@@iterator"])?e:null}function ge(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case ne:return"Fragment";case te:return"Portal";case le:return"Profiler";case re:return"StrictMode";case ce:return"Suspense";case se:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case ue:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return ge(e.type);case pe:return ge(e.render);case de:if(e=1===e._status?e._result:null)return ge(e)}return null}function ve(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,l=e._debugSource,i=ge(e.type);n=null,r&&(n=ge(r.type)),r=i,i="",l?i=" (at "+l.fileName.replace(Z,"")+":"+l.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n    in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}function ye(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function be(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function we(e){e._valueTracker||(e._valueTracker=function(e){var t=be(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var l=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function ke(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=be(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function xe(e,t){var n=t.checked;return l({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Te(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=ye(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Ee(e,t){null!=(t=t.checked)&&G(e,"checked",t,!1)}function Se(e,t){Ee(e,t);var n=ye(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?_e(e,t.type,n):t.hasOwnProperty("defaultValue")&&_e(e,t.type,ye(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Ce(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function _e(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Pe(e,t){return e=l({children:void 0},t),(t=function(e){var t="";return r.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Ne(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l<n.length;l++)t["$"+n[l]]=!0;for(n=0;n<e.length;n++)l=t.hasOwnProperty("$"+e[n].value),e[n].selected!==l&&(e[n].selected=l),l&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ye(n),t=null,l=0;l<e.length;l++){if(e[l].value===n)return e[l].selected=!0,void(r&&(e[l].defaultSelected=!0));null!==t||e[l].disabled||(t=e[l])}null!==t&&(t.selected=!0)}}function ze(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return l({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Oe(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(a(92));if(Array.isArray(n)){if(!(1>=n.length))throw Error(a(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:ye(n)}}function Me(e,t){var n=ye(t.value),r=ye(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function Ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Fe="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function De(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?De(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Ae,Ue,Ve=(Ue=function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((Ae=Ae||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=Ae.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return Ue(e,t)}))}:Ue);function je(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}function We(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Qe={animationend:We("Animation","AnimationEnd"),animationiteration:We("Animation","AnimationIteration"),animationstart:We("Animation","AnimationStart"),transitionend:We("Transition","TransitionEnd")},He={},Be={};function Ke(e){if(He[e])return He[e];if(!Qe[e])return e;var t,n=Qe[e];for(t in n)if(n.hasOwnProperty(t)&&t in Be)return He[e]=n[t];return e}_&&(Be=document.createElement("div").style,"AnimationEvent"in window||(delete Qe.animationend.animation,delete Qe.animationiteration.animation,delete Qe.animationstart.animation),"TransitionEvent"in window||delete Qe.transitionend.transition);var $e=Ke("animationend"),qe=Ke("animationiteration"),Ye=Ke("animationstart"),Xe=Ke("transitionend"),Ge="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ze=new("function"===typeof WeakMap?WeakMap:Map);function Je(e){var t=Ze.get(e);return void 0===t&&(t=new Map,Ze.set(e,t)),t}function et(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function tt(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function nt(e){if(et(e)!==e)throw Error(a(188))}function rt(e){if(e=function(e){var t=e.alternate;if(!t){if(null===(t=et(e)))throw Error(a(188));return t!==e?null:e}for(var n=e,r=t;;){var l=n.return;if(null===l)break;var i=l.alternate;if(null===i){if(null!==(r=l.return)){n=r;continue}break}if(l.child===i.child){for(i=l.child;i;){if(i===n)return nt(l),e;if(i===r)return nt(l),t;i=i.sibling}throw Error(a(188))}if(n.return!==r.return)n=l,r=i;else{for(var o=!1,u=l.child;u;){if(u===n){o=!0,n=l,r=i;break}if(u===r){o=!0,r=l,n=i;break}u=u.sibling}if(!o){for(u=i.child;u;){if(u===n){o=!0,n=i,r=l;break}if(u===r){o=!0,r=i,n=l;break}u=u.sibling}if(!o)throw Error(a(189))}}if(n.alternate!==r)throw Error(a(190))}if(3!==n.tag)throw Error(a(188));return n.stateNode.current===n?e:t}(e),!e)return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function lt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function it(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var at=null;function ot(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)v(e,t[r],n[r]);else t&&v(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(at=lt(at,e)),e=at,at=null,e){if(it(e,ot),at)throw Error(a(95));if(s)throw e=f,s=!1,f=null,e}}function ct(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function st(e){if(!_)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var ft=[];function dt(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ft.length&&ft.push(e)}function pt(e,t,n,r){if(ft.length){var l=ft.pop();return l.topLevelType=e,l.eventSystemFlags=r,l.nativeEvent=t,l.targetInst=n,l}return{topLevelType:e,eventSystemFlags:r,nativeEvent:t,targetInst:n,ancestors:[]}}function mt(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r=n;if(3===r.tag)r=r.stateNode.containerInfo;else{for(;r.return;)r=r.return;r=3!==r.tag?null:r.stateNode.containerInfo}if(!r)break;5!==(t=n.tag)&&6!==t||e.ancestors.push(n),n=On(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var l=ct(e.nativeEvent);r=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===n&&(a|=64);for(var o=null,u=0;u<x.length;u++){var c=x[u];c&&(c=c.extractEvents(r,t,i,l,a))&&(o=lt(o,c))}ut(o)}}function ht(e,t,n){if(!n.has(e)){switch(e){case"scroll":Yt(t,"scroll",!0);break;case"focus":case"blur":Yt(t,"focus",!0),Yt(t,"blur",!0),n.set("blur",null),n.set("focus",null);break;case"cancel":case"close":st(e)&&Yt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===Ge.indexOf(e)&&qt(e,t)}n.set(e,null)}}var gt,vt,yt,bt=!1,wt=[],kt=null,xt=null,Tt=null,Et=new Map,St=new Map,Ct=[],_t="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Pt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Nt(e,t,n,r,l){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|n,nativeEvent:l,container:r}}function zt(e,t){switch(e){case"focus":case"blur":kt=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function Ot(e,t,n,r,l,i){return null===e||e.nativeEvent!==i?(e=Nt(t,n,r,l,i),null!==t&&(null!==(t=Mn(t))&&vt(t)),e):(e.eventSystemFlags|=r,e)}function Mt(e){var t=On(e.target);if(null!==t){var n=et(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=tt(n)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){yt(n)}))}else if(3===t&&n.stateNode.hydrate)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function It(e){if(null!==e.blockedOn)return!1;var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var n=Mn(t);return null!==n&&vt(n),e.blockedOn=t,!1}return!0}function Ft(e,t,n){It(e)&&n.delete(t)}function Rt(){for(bt=!1;0<wt.length;){var e=wt[0];if(null!==e.blockedOn){null!==(e=Mn(e.blockedOn))&&gt(e);break}var t=Jt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:wt.shift()}null!==kt&&It(kt)&&(kt=null),null!==xt&&It(xt)&&(xt=null),null!==Tt&&It(Tt)&&(Tt=null),Et.forEach(Ft),St.forEach(Ft)}function Dt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Rt)))}function Lt(e){function t(t){return Dt(t,e)}if(0<wt.length){Dt(wt[0],e);for(var n=1;n<wt.length;n++){var r=wt[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==kt&&Dt(kt,e),null!==xt&&Dt(xt,e),null!==Tt&&Dt(Tt,e),Et.forEach(t),St.forEach(t),n=0;n<Ct.length;n++)(r=Ct[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ct.length&&null===(n=Ct[0]).blockedOn;)Mt(n),null===n.blockedOn&&Ct.shift()}var At={},Ut=new Map,Vt=new Map,jt=["abort","abort",$e,"animationEnd",qe,"animationIteration",Ye,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Xe,"transitionEnd","waiting","waiting"];function Wt(e,t){for(var n=0;n<e.length;n+=2){var r=e[n],l=e[n+1],i="on"+(l[0].toUpperCase()+l.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[r],eventPriority:t},Vt.set(r,t),Ut.set(r,i),At[l]=i}}Wt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Wt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Wt(jt,2);for(var Qt="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<Qt.length;Ht++)Vt.set(Qt[Ht],0);var Bt=i.unstable_UserBlockingPriority,Kt=i.unstable_runWithPriority,$t=!0;function qt(e,t){Yt(t,e,!1)}function Yt(e,t,n){var r=Vt.get(t);switch(void 0===r?2:r){case 0:r=Xt.bind(null,t,1,e);break;case 1:r=Gt.bind(null,t,1,e);break;default:r=Zt.bind(null,t,1,e)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Xt(e,t,n,r){A||D();var l=Zt,i=A;A=!0;try{R(l,e,t,n,r)}finally{(A=i)||V()}}function Gt(e,t,n,r){Kt(Bt,Zt.bind(null,e,t,n,r))}function Zt(e,t,n,r){if($t)if(0<wt.length&&-1<_t.indexOf(e))e=Nt(null,e,t,n,r),wt.push(e);else{var l=Jt(e,t,n,r);if(null===l)zt(e,r);else if(-1<_t.indexOf(e))e=Nt(l,e,t,n,r),wt.push(e);else if(!function(e,t,n,r,l){switch(t){case"focus":return kt=Ot(kt,e,t,n,r,l),!0;case"dragenter":return xt=Ot(xt,e,t,n,r,l),!0;case"mouseover":return Tt=Ot(Tt,e,t,n,r,l),!0;case"pointerover":var i=l.pointerId;return Et.set(i,Ot(Et.get(i)||null,e,t,n,r,l)),!0;case"gotpointercapture":return i=l.pointerId,St.set(i,Ot(St.get(i)||null,e,t,n,r,l)),!0}return!1}(l,e,t,n,r)){zt(e,r),e=pt(e,r,null,t);try{j(mt,e)}finally{dt(e)}}}}function Jt(e,t,n,r){if(null!==(n=On(n=ct(r)))){var l=et(n);if(null===l)n=null;else{var i=l.tag;if(13===i){if(null!==(n=tt(l)))return n;n=null}else if(3===i){if(l.stateNode.hydrate)return 3===l.tag?l.stateNode.containerInfo:null;n=null}else l!==n&&(n=null)}}e=pt(e,r,n,t);try{j(mt,e)}finally{dt(e)}return null}var en={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tn=["Webkit","ms","Moz","O"];function nn(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||en.hasOwnProperty(e)&&en[e]?(""+t).trim():t+"px"}function rn(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),l=nn(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}Object.keys(en).forEach((function(e){tn.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),en[t]=en[e]}))}));var ln=l({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function an(e,t){if(t){if(ln[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function on(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var un=Fe;function cn(e,t){var n=Je(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=S[t];for(var r=0;r<t.length;r++)ht(t[r],e,n)}function sn(){}function fn(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function dn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function pn(e,t){var n,r=dn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=dn(r)}}function mn(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?mn(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hn(){for(var e=window,t=fn();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=fn((e=t.contentWindow).document)}return t}function gn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var vn="$?",yn="$!",bn=null,wn=null;function kn(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function xn(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Tn="function"===typeof setTimeout?setTimeout:void 0,En="function"===typeof clearTimeout?clearTimeout:void 0;function Sn(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function Cn(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||n===yn||n===vn){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var _n=Math.random().toString(36).slice(2),Pn="__reactInternalInstance$"+_n,Nn="__reactEventHandlers$"+_n,zn="__reactContainere$"+_n;function On(e){var t=e[Pn];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zn]||n[Pn]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Cn(e);null!==e;){if(n=e[Pn])return n;e=Cn(e)}return t}n=(e=n).parentNode}return null}function Mn(e){return!(e=e[Pn]||e[zn])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function In(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Fn(e){return e[Nn]||null}function Rn(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Dn(e,t){var n=e.stateNode;if(!n)return null;var r=m(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(a(231,t,typeof n));return n}function Ln(e,t,n){(t=Dn(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=lt(n._dispatchListeners,t),n._dispatchInstances=lt(n._dispatchInstances,e))}function An(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=Rn(t);for(t=n.length;0<t--;)Ln(n[t],"captured",e);for(t=0;t<n.length;t++)Ln(n[t],"bubbled",e)}}function Un(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=Dn(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=lt(n._dispatchListeners,t),n._dispatchInstances=lt(n._dispatchInstances,e))}function Vn(e){e&&e.dispatchConfig.registrationName&&Un(e._targetInst,null,e)}function jn(e){it(e,An)}var Wn=null,Qn=null,Hn=null;function Bn(){if(Hn)return Hn;var e,t,n=Qn,r=n.length,l="value"in Wn?Wn.value:Wn.textContent,i=l.length;for(e=0;e<r&&n[e]===l[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===l[i-t];t++);return Hn=l.slice(e,1<t?1-t:void 0)}function Kn(){return!0}function $n(){return!1}function qn(e,t,n,r){for(var l in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(l)&&((t=e[l])?this[l]=t(n):"target"===l?this.target=r:this[l]=n[l]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?Kn:$n,this.isPropagationStopped=$n,this}function Yn(e,t,n,r){if(this.eventPool.length){var l=this.eventPool.pop();return this.call(l,e,t,n,r),l}return new this(e,t,n,r)}function Xn(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Gn(e){e.eventPool=[],e.getPooled=Yn,e.release=Xn}l(qn.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Kn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Kn)},persist:function(){this.isPersistent=Kn},isPersistent:$n,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=$n,this._dispatchInstances=this._dispatchListeners=null}}),qn.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},qn.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return l(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=l({},r.Interface,e),n.extend=r.extend,Gn(n),n},Gn(qn);var Zn=qn.extend({data:null}),Jn=qn.extend({data:null}),er=[9,13,27,32],tr=_&&"CompositionEvent"in window,nr=null;_&&"documentMode"in document&&(nr=document.documentMode);var rr=_&&"TextEvent"in window&&!nr,lr=_&&(!tr||nr&&8<nr&&11>=nr),ir=String.fromCharCode(32),ar={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},or=!1;function ur(e,t){switch(e){case"keyup":return-1!==er.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function cr(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var sr=!1;var fr={eventTypes:ar,extractEvents:function(e,t,n,r){var l;if(tr)e:{switch(e){case"compositionstart":var i=ar.compositionStart;break e;case"compositionend":i=ar.compositionEnd;break e;case"compositionupdate":i=ar.compositionUpdate;break e}i=void 0}else sr?ur(e,n)&&(i=ar.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=ar.compositionStart);return i?(lr&&"ko"!==n.locale&&(sr||i!==ar.compositionStart?i===ar.compositionEnd&&sr&&(l=Bn()):(Qn="value"in(Wn=r)?Wn.value:Wn.textContent,sr=!0)),i=Zn.getPooled(i,t,n,r),l?i.data=l:null!==(l=cr(n))&&(i.data=l),jn(i),l=i):l=null,(e=rr?function(e,t){switch(e){case"compositionend":return cr(t);case"keypress":return 32!==t.which?null:(or=!0,ir);case"textInput":return(e=t.data)===ir&&or?null:e;default:return null}}(e,n):function(e,t){if(sr)return"compositionend"===e||!tr&&ur(e,t)?(e=Bn(),Hn=Qn=Wn=null,sr=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return lr&&"ko"!==t.locale?null:t.data}}(e,n))?((t=Jn.getPooled(ar.beforeInput,t,n,r)).data=e,jn(t)):t=null,null===l?t:null===t?l:[l,t]}},dr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!dr[e.type]:"textarea"===t}var mr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function hr(e,t,n){return(e=qn.getPooled(mr.change,e,t,n)).type="change",M(n),jn(e),e}var gr=null,vr=null;function yr(e){ut(e)}function br(e){if(ke(In(e)))return e}function wr(e,t){if("change"===e)return t}var kr=!1;function xr(){gr&&(gr.detachEvent("onpropertychange",Tr),vr=gr=null)}function Tr(e){if("value"===e.propertyName&&br(vr))if(e=hr(vr,e,ct(e)),A)ut(e);else{A=!0;try{F(yr,e)}finally{A=!1,V()}}}function Er(e,t,n){"focus"===e?(xr(),vr=n,(gr=t).attachEvent("onpropertychange",Tr)):"blur"===e&&xr()}function Sr(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return br(vr)}function Cr(e,t){if("click"===e)return br(t)}function _r(e,t){if("input"===e||"change"===e)return br(t)}_&&(kr=st("input")&&(!document.documentMode||9<document.documentMode));var Pr={eventTypes:mr,_isInputEventSupported:kr,extractEvents:function(e,t,n,r){var l=t?In(t):window,i=l.nodeName&&l.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===l.type)var a=wr;else if(pr(l))if(kr)a=_r;else{a=Sr;var o=Er}else(i=l.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(a=Cr);if(a&&(a=a(e,t)))return hr(a,n,r);o&&o(e,l,t),"blur"===e&&(e=l._wrapperState)&&e.controlled&&"number"===l.type&&_e(l,"number",l.value)}},Nr=qn.extend({view:null,detail:null}),zr={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Or(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=zr[e])&&!!t[e]}function Mr(){return Or}var Ir=0,Fr=0,Rr=!1,Dr=!1,Lr=Nr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Mr,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Ir;return Ir=e.screenX,Rr?"mousemove"===e.type?e.screenX-t:0:(Rr=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Fr;return Fr=e.screenY,Dr?"mousemove"===e.type?e.screenY-t:0:(Dr=!0,0)}}),Ar=Lr.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Ur={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Vr={eventTypes:Ur,extractEvents:function(e,t,n,r,l){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0===(32&l)&&(n.relatedTarget||n.fromElement)||!a&&!i)return null;(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=n.relatedTarget||n.toElement)?On(t):null)&&(t!==et(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var o=Lr,u=Ur.mouseLeave,c=Ur.mouseEnter,s="mouse";else"pointerout"!==e&&"pointerover"!==e||(o=Ar,u=Ur.pointerLeave,c=Ur.pointerEnter,s="pointer");if(e=null==a?i:In(a),i=null==t?i:In(t),(u=o.getPooled(u,a,n,r)).type=s+"leave",u.target=e,u.relatedTarget=i,(n=o.getPooled(c,t,n,r)).type=s+"enter",n.target=i,n.relatedTarget=e,s=t,(r=a)&&s)e:{for(c=s,a=0,e=o=r;e;e=Rn(e))a++;for(e=0,t=c;t;t=Rn(t))e++;for(;0<a-e;)o=Rn(o),a--;for(;0<e-a;)c=Rn(c),e--;for(;a--;){if(o===c||o===c.alternate)break e;o=Rn(o),c=Rn(c)}o=null}else o=null;for(c=o,o=[];r&&r!==c&&(null===(a=r.alternate)||a!==c);)o.push(r),r=Rn(r);for(r=[];s&&s!==c&&(null===(a=s.alternate)||a!==c);)r.push(s),s=Rn(s);for(s=0;s<o.length;s++)Un(o[s],"bubbled",u);for(s=r.length;0<s--;)Un(r[s],"captured",n);return 0===(64&l)?[u]:[u,n]}};var jr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Wr=Object.prototype.hasOwnProperty;function Qr(e,t){if(jr(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(r=0;r<n.length;r++)if(!Wr.call(t,n[r])||!jr(e[n[r]],t[n[r]]))return!1;return!0}var Hr=_&&"documentMode"in document&&11>=document.documentMode,Br={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Kr=null,$r=null,qr=null,Yr=!1;function Xr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return Yr||null==Kr||Kr!==fn(n)?null:("selectionStart"in(n=Kr)&&gn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},qr&&Qr(qr,n)?null:(qr=n,(e=qn.getPooled(Br.select,$r,e,t)).type="select",e.target=Kr,jn(e),e))}var Gr={eventTypes:Br,extractEvents:function(e,t,n,r,l,i){if(!(i=!(l=i||(r.window===r?r.document:9===r.nodeType?r:r.ownerDocument)))){e:{l=Je(l),i=S.onSelect;for(var a=0;a<i.length;a++)if(!l.has(i[a])){l=!1;break e}l=!0}i=!l}if(i)return null;switch(l=t?In(t):window,e){case"focus":(pr(l)||"true"===l.contentEditable)&&(Kr=l,$r=t,qr=null);break;case"blur":qr=$r=Kr=null;break;case"mousedown":Yr=!0;break;case"contextmenu":case"mouseup":case"dragend":return Yr=!1,Xr(n,r);case"selectionchange":if(Hr)break;case"keydown":case"keyup":return Xr(n,r)}return null}},Zr=qn.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Jr=qn.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),el=Nr.extend({relatedTarget:null});function tl(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var nl={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rl={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},ll=Nr.extend({key:function(e){if(e.key){var t=nl[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tl(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?rl[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Mr,charCode:function(e){return"keypress"===e.type?tl(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tl(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),il=Lr.extend({dataTransfer:null}),al=Nr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Mr}),ol=qn.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),ul=Lr.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),cl={eventTypes:At,extractEvents:function(e,t,n,r){var l=Ut.get(e);if(!l)return null;switch(e){case"keypress":if(0===tl(n))return null;case"keydown":case"keyup":e=ll;break;case"blur":case"focus":e=el;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Lr;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=il;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=al;break;case $e:case qe:case Ye:e=Zr;break;case Xe:e=ol;break;case"scroll":e=Nr;break;case"wheel":e=ul;break;case"copy":case"cut":case"paste":e=Jr;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Ar;break;default:e=qn}return jn(t=e.getPooled(l,t,n,r)),t}};if(y)throw Error(a(101));y=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),w(),m=Fn,h=Mn,g=In,C({SimpleEventPlugin:cl,EnterLeaveEventPlugin:Vr,ChangeEventPlugin:Pr,SelectEventPlugin:Gr,BeforeInputEventPlugin:fr});var sl=[],fl=-1;function dl(e){0>fl||(e.current=sl[fl],sl[fl]=null,fl--)}function pl(e,t){fl++,sl[fl]=e.current,e.current=t}var ml={},hl={current:ml},gl={current:!1},vl=ml;function yl(e,t){var n=e.type.contextTypes;if(!n)return ml;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l,i={};for(l in n)i[l]=t[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function bl(e){return null!==(e=e.childContextTypes)&&void 0!==e}function wl(){dl(gl),dl(hl)}function kl(e,t,n){if(hl.current!==ml)throw Error(a(168));pl(hl,t),pl(gl,n)}function xl(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in e))throw Error(a(108,ge(t)||"Unknown",i));return l({},n,{},r)}function Tl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ml,vl=hl.current,pl(hl,e),pl(gl,gl.current),!0}function El(e,t,n){var r=e.stateNode;if(!r)throw Error(a(169));n?(e=xl(e,t,vl),r.__reactInternalMemoizedMergedChildContext=e,dl(gl),dl(hl),pl(hl,e)):dl(gl),pl(gl,n)}var Sl=i.unstable_runWithPriority,Cl=i.unstable_scheduleCallback,_l=i.unstable_cancelCallback,Pl=i.unstable_requestPaint,Nl=i.unstable_now,zl=i.unstable_getCurrentPriorityLevel,Ol=i.unstable_ImmediatePriority,Ml=i.unstable_UserBlockingPriority,Il=i.unstable_NormalPriority,Fl=i.unstable_LowPriority,Rl=i.unstable_IdlePriority,Dl={},Ll=i.unstable_shouldYield,Al=void 0!==Pl?Pl:function(){},Ul=null,Vl=null,jl=!1,Wl=Nl(),Ql=1e4>Wl?Nl:function(){return Nl()-Wl};function Hl(){switch(zl()){case Ol:return 99;case Ml:return 98;case Il:return 97;case Fl:return 96;case Rl:return 95;default:throw Error(a(332))}}function Bl(e){switch(e){case 99:return Ol;case 98:return Ml;case 97:return Il;case 96:return Fl;case 95:return Rl;default:throw Error(a(332))}}function Kl(e,t){return e=Bl(e),Sl(e,t)}function $l(e,t,n){return e=Bl(e),Cl(e,t,n)}function ql(e){return null===Ul?(Ul=[e],Vl=Cl(Ol,Xl)):Ul.push(e),Dl}function Yl(){if(null!==Vl){var e=Vl;Vl=null,_l(e)}Xl()}function Xl(){if(!jl&&null!==Ul){jl=!0;var e=0;try{var t=Ul;Kl(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),Ul=null}catch(n){throw null!==Ul&&(Ul=Ul.slice(e+1)),Cl(Ol,Yl),n}finally{jl=!1}}}function Gl(e,t,n){return 1073741821-(1+((1073741821-e+t/10)/(n/=10)|0))*n}function Zl(e,t){if(e&&e.defaultProps)for(var n in t=l({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var Jl={current:null},ei=null,ti=null,ni=null;function ri(){ni=ti=ei=null}function li(e){var t=Jl.current;dl(Jl),e.type._context._currentValue=t}function ii(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function ai(e,t){ei=e,ni=ti=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(Ia=!0),e.firstContext=null)}function oi(e,t){if(ni!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||(ni=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ti){if(null===ei)throw Error(a(308));ti=t,ei.dependencies={expirationTime:0,firstContext:t,responders:null}}else ti=ti.next=t;return e._currentValue}var ui=!1;function ci(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function si(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function fi(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function di(e,t){if(null!==(e=e.updateQueue)){var n=(e=e.shared).pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}}function pi(e,t){var n=e.alternate;null!==n&&si(n,e),null===(n=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=n.next,n.next=t)}function mi(e,t,n,r){var i=e.updateQueue;ui=!1;var a=i.baseQueue,o=i.shared.pending;if(null!==o){if(null!==a){var u=a.next;a.next=o.next,o.next=u}a=o,i.shared.pending=null,null!==(u=e.alternate)&&(null!==(u=u.updateQueue)&&(u.baseQueue=o))}if(null!==a){u=a.next;var c=i.baseState,s=0,f=null,d=null,p=null;if(null!==u)for(var m=u;;){if((o=m.expirationTime)<r){var h={expirationTime:m.expirationTime,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null};null===p?(d=p=h,f=c):p=p.next=h,o>s&&(s=o)}else{null!==p&&(p=p.next={expirationTime:1073741823,suspenseConfig:m.suspenseConfig,tag:m.tag,payload:m.payload,callback:m.callback,next:null}),pu(o,m.suspenseConfig);e:{var g=e,v=m;switch(o=t,h=n,v.tag){case 1:if("function"===typeof(g=v.payload)){c=g.call(h,c,o);break e}c=g;break e;case 3:g.effectTag=-4097&g.effectTag|64;case 0:if(null===(o="function"===typeof(g=v.payload)?g.call(h,c,o):g)||void 0===o)break e;c=l({},c,o);break e;case 2:ui=!0}}null!==m.callback&&(e.effectTag|=32,null===(o=i.effects)?i.effects=[m]:o.push(m))}if(null===(m=m.next)||m===u){if(null===(o=i.shared.pending))break;m=a.next=o.next,o.next=u,i.baseQueue=a=o,i.shared.pending=null}}null===p?f=c:p.next=d,i.baseState=f,i.baseQueue=p,mu(s),e.expirationTime=s,e.memoizedState=c}}function hi(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],l=r.callback;if(null!==l){if(r.callback=null,r=l,l=n,"function"!==typeof r)throw Error(a(191,r));r.call(l)}}}var gi=X.ReactCurrentBatchConfig,vi=(new r.Component).refs;function yi(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:l({},t,n),e.memoizedState=n,0===e.expirationTime&&(e.updateQueue.baseState=n)}var bi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&et(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=eu(),l=gi.suspense;(l=fi(r=tu(r,e,l),l)).payload=t,void 0!==n&&null!==n&&(l.callback=n),di(e,l),nu(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=eu(),l=gi.suspense;(l=fi(r=tu(r,e,l),l)).tag=1,l.payload=t,void 0!==n&&null!==n&&(l.callback=n),di(e,l),nu(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=eu(),r=gi.suspense;(r=fi(n=tu(n,e,r),r)).tag=2,void 0!==t&&null!==t&&(r.callback=t),di(e,r),nu(e,n)}};function wi(e,t,n,r,l,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!Qr(n,r)||!Qr(l,i))}function ki(e,t,n){var r=!1,l=ml,i=t.contextType;return"object"===typeof i&&null!==i?i=oi(i):(l=bl(t)?vl:hl.current,i=(r=null!==(r=t.contextTypes)&&void 0!==r)?yl(e,l):ml),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=bi,e.stateNode=t,t._reactInternalFiber=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=l,e.__reactInternalMemoizedMaskedChildContext=i),t}function xi(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bi.enqueueReplaceState(t,t.state,null)}function Ti(e,t,n,r){var l=e.stateNode;l.props=n,l.state=e.memoizedState,l.refs=vi,ci(e);var i=t.contextType;"object"===typeof i&&null!==i?l.context=oi(i):(i=bl(t)?vl:hl.current,l.context=yl(e,i)),mi(e,n,l,r),l.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(yi(e,t,i,n),l.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof l.getSnapshotBeforeUpdate||"function"!==typeof l.UNSAFE_componentWillMount&&"function"!==typeof l.componentWillMount||(t=l.state,"function"===typeof l.componentWillMount&&l.componentWillMount(),"function"===typeof l.UNSAFE_componentWillMount&&l.UNSAFE_componentWillMount(),t!==l.state&&bi.enqueueReplaceState(l,l.state,null),mi(e,n,l,r),l.state=e.memoizedState),"function"===typeof l.componentDidMount&&(e.effectTag|=4)}var Ei=Array.isArray;function Si(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(a(309));var r=n.stateNode}if(!r)throw Error(a(147,e));var l=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===l?t.ref:(t=function(e){var t=r.refs;t===vi&&(t=r.refs={}),null===e?delete t[l]:t[l]=e},t._stringRef=l,t)}if("string"!==typeof e)throw Error(a(284));if(!n._owner)throw Error(a(290,e))}return e}function Ci(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function _i(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function l(e,t){return(e=Fu(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function o(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Lu(n,e.mode,r)).return=e,t):((t=l(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=l(t,n.props)).ref=Si(e,t,n),r.return=e,r):((r=Ru(n.type,n.key,n.props,null,e.mode,r)).ref=Si(e,t,n),r.return=e,r)}function s(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Au(n,e.mode,r)).return=e,t):((t=l(t,n.children||[])).return=e,t)}function f(e,t,n,r,i){return null===t||7!==t.tag?((t=Du(n,e.mode,r,i)).return=e,t):((t=l(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t||"number"===typeof t)return(t=Lu(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(n=Ru(t.type,t.key,t.props,null,e.mode,n)).ref=Si(e,null,t),n.return=e,n;case te:return(t=Au(t,e.mode,n)).return=e,t}if(Ei(t)||he(t))return(t=Du(t,e.mode,n,null)).return=e,t;Ci(e,t)}return null}function p(e,t,n,r){var l=null!==t?t.key:null;if("string"===typeof n||"number"===typeof n)return null!==l?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return n.key===l?n.type===ne?f(e,t,n.props.children,r,l):c(e,t,n,r):null;case te:return n.key===l?s(e,t,n,r):null}if(Ei(n)||he(n))return null!==l?null:f(e,t,n,r,null);Ci(e,n)}return null}function m(e,t,n,r,l){if("string"===typeof r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,l);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return e=e.get(null===r.key?n:r.key)||null,r.type===ne?f(t,e,r.props.children,l,r.key):c(t,e,r,l);case te:return s(t,e=e.get(null===r.key?n:r.key)||null,r,l)}if(Ei(r)||he(r))return f(t,e=e.get(n)||null,r,l,null);Ci(t,r)}return null}function h(l,a,o,u){for(var c=null,s=null,f=a,h=a=0,g=null;null!==f&&h<o.length;h++){f.index>h?(g=f,f=null):g=f.sibling;var v=p(l,f,o[h],u);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&t(l,f),a=i(v,a,h),null===s?c=v:s.sibling=v,s=v,f=g}if(h===o.length)return n(l,f),c;if(null===f){for(;h<o.length;h++)null!==(f=d(l,o[h],u))&&(a=i(f,a,h),null===s?c=f:s.sibling=f,s=f);return c}for(f=r(l,f);h<o.length;h++)null!==(g=m(f,l,h,o[h],u))&&(e&&null!==g.alternate&&f.delete(null===g.key?h:g.key),a=i(g,a,h),null===s?c=g:s.sibling=g,s=g);return e&&f.forEach((function(e){return t(l,e)})),c}function g(l,o,u,c){var s=he(u);if("function"!==typeof s)throw Error(a(150));if(null==(u=s.call(u)))throw Error(a(151));for(var f=s=null,h=o,g=o=0,v=null,y=u.next();null!==h&&!y.done;g++,y=u.next()){h.index>g?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,c);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&t(l,h),o=i(b,o,g),null===f?s=b:f.sibling=b,f=b,h=v}if(y.done)return n(l,h),s;if(null===h){for(;!y.done;g++,y=u.next())null!==(y=d(l,y.value,c))&&(o=i(y,o,g),null===f?s=y:f.sibling=y,f=y);return s}for(h=r(l,h);!y.done;g++,y=u.next())null!==(y=m(h,l,g,y.value,c))&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),o=i(y,o,g),null===f?s=y:f.sibling=y,f=y);return e&&h.forEach((function(e){return t(l,e)})),s}return function(e,r,i,u){var c="object"===typeof i&&null!==i&&i.type===ne&&null===i.key;c&&(i=i.props.children);var s="object"===typeof i&&null!==i;if(s)switch(i.$$typeof){case ee:e:{for(s=i.key,c=r;null!==c;){if(c.key===s){if(7===c.tag){if(i.type===ne){n(e,c.sibling),(r=l(c,i.props.children)).return=e,e=r;break e}}else if(c.elementType===i.type){n(e,c.sibling),(r=l(c,i.props)).ref=Si(e,c,i),r.return=e,e=r;break e}n(e,c);break}t(e,c),c=c.sibling}i.type===ne?((r=Du(i.props.children,e.mode,u,i.key)).return=e,e=r):((u=Ru(i.type,i.key,i.props,null,e.mode,u)).ref=Si(e,r,i),u.return=e,e=u)}return o(e);case te:e:{for(c=i.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),(r=l(r,i.children||[])).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=Au(i,e.mode,u)).return=e,e=r}return o(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==r&&6===r.tag?(n(e,r.sibling),(r=l(r,i)).return=e,e=r):(n(e,r),(r=Lu(i,e.mode,u)).return=e,e=r),o(e);if(Ei(i))return h(e,r,i,u);if(he(i))return g(e,r,i,u);if(s&&Ci(e,i),"undefined"===typeof i&&!c)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return n(e,r)}}var Pi=_i(!0),Ni=_i(!1),zi={},Oi={current:zi},Mi={current:zi},Ii={current:zi};function Fi(e){if(e===zi)throw Error(a(174));return e}function Ri(e,t){switch(pl(Ii,t),pl(Mi,e),pl(Oi,zi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Le(null,"");break;default:t=Le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}dl(Oi),pl(Oi,t)}function Di(){dl(Oi),dl(Mi),dl(Ii)}function Li(e){Fi(Ii.current);var t=Fi(Oi.current),n=Le(t,e.type);t!==n&&(pl(Mi,e),pl(Oi,n))}function Ai(e){Mi.current===e&&(dl(Oi),dl(Mi))}var Ui={current:0};function Vi(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||n.data===vn||n.data===yn))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function ji(e,t){return{responder:e,props:t}}var Wi=X.ReactCurrentDispatcher,Qi=X.ReactCurrentBatchConfig,Hi=0,Bi=null,Ki=null,$i=null,qi=!1;function Yi(){throw Error(a(321))}function Xi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!jr(e[n],t[n]))return!1;return!0}function Gi(e,t,n,r,l,i){if(Hi=i,Bi=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Wi.current=null===e||null===e.memoizedState?wa:ka,e=n(r,l),t.expirationTime===Hi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,$i=Ki=null,t.updateQueue=null,Wi.current=xa,e=n(r,l)}while(t.expirationTime===Hi)}if(Wi.current=ba,t=null!==Ki&&null!==Ki.next,Hi=0,$i=Ki=Bi=null,qi=!1,t)throw Error(a(300));return e}function Zi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===$i?Bi.memoizedState=$i=e:$i=$i.next=e,$i}function Ji(){if(null===Ki){var e=Bi.alternate;e=null!==e?e.memoizedState:null}else e=Ki.next;var t=null===$i?Bi.memoizedState:$i.next;if(null!==t)$i=t,Ki=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Ki=e).memoizedState,baseState:Ki.baseState,baseQueue:Ki.baseQueue,queue:Ki.queue,next:null},null===$i?Bi.memoizedState=$i=e:$i=$i.next=e}return $i}function ea(e,t){return"function"===typeof t?t(e):t}function ta(e){var t=Ji(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=Ki,l=r.baseQueue,i=n.pending;if(null!==i){if(null!==l){var o=l.next;l.next=i.next,i.next=o}r.baseQueue=l=i,n.pending=null}if(null!==l){l=l.next,r=r.baseState;var u=o=i=null,c=l;do{var s=c.expirationTime;if(s<Hi){var f={expirationTime:c.expirationTime,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null};null===u?(o=u=f,i=r):u=u.next=f,s>Bi.expirationTime&&(Bi.expirationTime=s,mu(s))}else null!==u&&(u=u.next={expirationTime:1073741823,suspenseConfig:c.suspenseConfig,action:c.action,eagerReducer:c.eagerReducer,eagerState:c.eagerState,next:null}),pu(s,c.suspenseConfig),r=c.eagerReducer===e?c.eagerState:e(r,c.action);c=c.next}while(null!==c&&c!==l);null===u?i=r:u.next=o,jr(r,t.memoizedState)||(Ia=!0),t.memoizedState=r,t.baseState=i,t.baseQueue=u,n.lastRenderedState=r}return[t.memoizedState,n.dispatch]}function na(e){var t=Ji(),n=t.queue;if(null===n)throw Error(a(311));n.lastRenderedReducer=e;var r=n.dispatch,l=n.pending,i=t.memoizedState;if(null!==l){n.pending=null;var o=l=l.next;do{i=e(i,o.action),o=o.next}while(o!==l);jr(i,t.memoizedState)||(Ia=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function ra(e){var t=Zi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:ea,lastRenderedState:e}).dispatch=ya.bind(null,Bi,e),[t.memoizedState,e]}function la(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Bi.updateQueue)?(t={lastEffect:null},Bi.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ia(){return Ji().memoizedState}function aa(e,t,n,r){var l=Zi();Bi.effectTag|=e,l.memoizedState=la(1|t,n,void 0,void 0===r?null:r)}function oa(e,t,n,r){var l=Ji();r=void 0===r?null:r;var i=void 0;if(null!==Ki){var a=Ki.memoizedState;if(i=a.destroy,null!==r&&Xi(r,a.deps))return void la(t,n,i,r)}Bi.effectTag|=e,l.memoizedState=la(1|t,n,i,r)}function ua(e,t){return aa(516,4,e,t)}function ca(e,t){return oa(516,4,e,t)}function sa(e,t){return oa(4,2,e,t)}function fa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function da(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,oa(4,2,fa.bind(null,t,e),n)}function pa(){}function ma(e,t){return Zi().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ga(e,t){var n=Ji();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Xi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function va(e,t,n){var r=Hl();Kl(98>r?98:r,(function(){e(!0)})),Kl(97<r?97:r,(function(){var r=Qi.suspense;Qi.suspense=void 0===t?null:t;try{e(!1),n()}finally{Qi.suspense=r}}))}function ya(e,t,n){var r=eu(),l=gi.suspense;l={expirationTime:r=tu(r,e,l),suspenseConfig:l,action:n,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?l.next=l:(l.next=i.next,i.next=l),t.pending=l,i=e.alternate,e===Bi||null!==i&&i===Bi)qi=!0,l.expirationTime=Hi,Bi.expirationTime=Hi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,o=i(a,n);if(l.eagerReducer=i,l.eagerState=o,jr(o,a))return}catch(u){}nu(e,r)}}var ba={readContext:oi,useCallback:Yi,useContext:Yi,useEffect:Yi,useImperativeHandle:Yi,useLayoutEffect:Yi,useMemo:Yi,useReducer:Yi,useRef:Yi,useState:Yi,useDebugValue:Yi,useResponder:Yi,useDeferredValue:Yi,useTransition:Yi},wa={readContext:oi,useCallback:ma,useContext:oi,useEffect:ua,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,aa(4,2,fa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return aa(4,2,e,t)},useMemo:function(e,t){var n=Zi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Zi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=ya.bind(null,Bi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Zi().memoizedState=e},useState:ra,useDebugValue:pa,useResponder:ji,useDeferredValue:function(e,t){var n=ra(e),r=n[0],l=n[1];return ua((function(){var n=Qi.suspense;Qi.suspense=void 0===t?null:t;try{l(e)}finally{Qi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ra(!1),n=t[0];return t=t[1],[ma(va.bind(null,t,e),[t,e]),n]}},ka={readContext:oi,useCallback:ha,useContext:oi,useEffect:ca,useImperativeHandle:da,useLayoutEffect:sa,useMemo:ga,useReducer:ta,useRef:ia,useState:function(){return ta(ea)},useDebugValue:pa,useResponder:ji,useDeferredValue:function(e,t){var n=ta(ea),r=n[0],l=n[1];return ca((function(){var n=Qi.suspense;Qi.suspense=void 0===t?null:t;try{l(e)}finally{Qi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=ta(ea),n=t[0];return t=t[1],[ha(va.bind(null,t,e),[t,e]),n]}},xa={readContext:oi,useCallback:ha,useContext:oi,useEffect:ca,useImperativeHandle:da,useLayoutEffect:sa,useMemo:ga,useReducer:na,useRef:ia,useState:function(){return na(ea)},useDebugValue:pa,useResponder:ji,useDeferredValue:function(e,t){var n=na(ea),r=n[0],l=n[1];return ca((function(){var n=Qi.suspense;Qi.suspense=void 0===t?null:t;try{l(e)}finally{Qi.suspense=n}}),[e,t]),r},useTransition:function(e){var t=na(ea),n=t[0];return t=t[1],[ha(va.bind(null,t,e),[t,e]),n]}},Ta=null,Ea=null,Sa=!1;function Ca(e,t){var n=Mu(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function _a(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Pa(e){if(Sa){var t=Ea;if(t){var n=t;if(!_a(e,t)){if(!(t=Sn(n.nextSibling))||!_a(e,t))return e.effectTag=-1025&e.effectTag|2,Sa=!1,void(Ta=e);Ca(Ta,n)}Ta=e,Ea=Sn(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Sa=!1,Ta=e}}function Na(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;Ta=e}function za(e){if(e!==Ta)return!1;if(!Sa)return Na(e),Sa=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!xn(t,e.memoizedProps))for(t=Ea;t;)Ca(e,t),t=Sn(t.nextSibling);if(Na(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){Ea=Sn(e.nextSibling);break e}t--}else"$"!==n&&n!==yn&&n!==vn||t++}e=e.nextSibling}Ea=null}}else Ea=Ta?Sn(e.stateNode.nextSibling):null;return!0}function Oa(){Ea=Ta=null,Sa=!1}var Ma=X.ReactCurrentOwner,Ia=!1;function Fa(e,t,n,r){t.child=null===e?Ni(t,null,n,r):Pi(t,e.child,n,r)}function Ra(e,t,n,r,l){n=n.render;var i=t.ref;return ai(t,l),r=Gi(e,t,n,r,i,l),null===e||Ia?(t.effectTag|=1,Fa(e,t,r,l),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=l&&(e.expirationTime=0),Ga(e,t,l))}function Da(e,t,n,r,l,i){if(null===e){var a=n.type;return"function"!==typeof a||Iu(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Ru(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,La(e,t,a,r,l,i))}return a=e.child,l<i&&(l=a.memoizedProps,(n=null!==(n=n.compare)?n:Qr)(l,r)&&e.ref===t.ref)?Ga(e,t,i):(t.effectTag|=1,(e=Fu(a,r)).ref=t.ref,e.return=t,t.child=e)}function La(e,t,n,r,l,i){return null!==e&&Qr(e.memoizedProps,r)&&e.ref===t.ref&&(Ia=!1,l<i)?(t.expirationTime=e.expirationTime,Ga(e,t,i)):Ua(e,t,n,r,i)}function Aa(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function Ua(e,t,n,r,l){var i=bl(n)?vl:hl.current;return i=yl(t,i),ai(t,l),n=Gi(e,t,n,r,i,l),null===e||Ia?(t.effectTag|=1,Fa(e,t,n,l),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=l&&(e.expirationTime=0),Ga(e,t,l))}function Va(e,t,n,r,l){if(bl(n)){var i=!0;Tl(t)}else i=!1;if(ai(t,l),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),ki(t,n,r),Ti(t,n,r,l),r=!0;else if(null===e){var a=t.stateNode,o=t.memoizedProps;a.props=o;var u=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=oi(c):c=yl(t,c=bl(n)?vl:hl.current);var s=n.getDerivedStateFromProps,f="function"===typeof s||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(o!==r||u!==c)&&xi(t,a,r,c),ui=!1;var d=t.memoizedState;a.state=d,mi(t,r,a,l),u=t.memoizedState,o!==r||d!==u||gl.current||ui?("function"===typeof s&&(yi(t,n,s,r),u=t.memoizedState),(o=ui||wi(t,n,o,r,d,u,c))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=o):("function"===typeof a.componentDidMount&&(t.effectTag|=4),r=!1)}else a=t.stateNode,si(e,t),o=t.memoizedProps,a.props=t.type===t.elementType?o:Zl(t.type,o),u=a.context,"object"===typeof(c=n.contextType)&&null!==c?c=oi(c):c=yl(t,c=bl(n)?vl:hl.current),(f="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(o!==r||u!==c)&&xi(t,a,r,c),ui=!1,u=t.memoizedState,a.state=u,mi(t,r,a,l),d=t.memoizedState,o!==r||u!==d||gl.current||ui?("function"===typeof s&&(yi(t,n,s,r),d=t.memoizedState),(s=ui||wi(t,n,o,r,u,d,c))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,c),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,c)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=r,t.memoizedState=d),a.props=r,a.state=d,a.context=c,r=s):("function"!==typeof a.componentDidUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),r=!1);return ja(e,t,n,r,i,l)}function ja(e,t,n,r,l,i){Aa(e,t);var a=0!==(64&t.effectTag);if(!r&&!a)return l&&El(t,n,!1),Ga(e,t,i);r=t.stateNode,Ma.current=t;var o=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=Pi(t,e.child,null,i),t.child=Pi(t,null,o,i)):Fa(e,t,o,i),t.memoizedState=r.state,l&&El(t,n,!0),t.child}function Wa(e){var t=e.stateNode;t.pendingContext?kl(0,t.pendingContext,t.pendingContext!==t.context):t.context&&kl(0,t.context,!1),Ri(e,t.containerInfo)}var Qa,Ha,Ba,Ka={dehydrated:null,retryTime:0};function $a(e,t,n){var r,l=t.mode,i=t.pendingProps,a=Ui.current,o=!1;if((r=0!==(64&t.effectTag))||(r=0!==(2&a)&&(null===e||null!==e.memoizedState)),r?(o=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),pl(Ui,1&a),null===e){if(void 0!==i.fallback&&Pa(t),o){if(o=i.fallback,(i=Du(null,l,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Du(o,l,n,null)).return=t,i.sibling=n,t.memoizedState=Ka,t.child=i,n}return l=i.children,t.memoizedState=null,t.child=Ni(t,null,l,n)}if(null!==e.memoizedState){if(l=(e=e.child).sibling,o){if(i=i.fallback,(n=Fu(e,e.pendingProps)).return=t,0===(2&t.mode)&&(o=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(n.child=o;null!==o;)o.return=n,o=o.sibling;return(l=Fu(l,i)).return=t,n.sibling=l,n.childExpirationTime=0,t.memoizedState=Ka,t.child=n,l}return n=Pi(t,e.child,i.children,n),t.memoizedState=null,t.child=n}if(e=e.child,o){if(o=i.fallback,(i=Du(null,l,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(n=Du(o,l,n,null)).return=t,i.sibling=n,n.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ka,t.child=i,n}return t.memoizedState=null,t.child=Pi(t,e,i.children,n)}function qa(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t),ii(e.return,t)}function Ya(e,t,n,r,l,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailExpiration:0,tailMode:l,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailExpiration=0,a.tailMode=l,a.lastEffect=i)}function Xa(e,t,n){var r=t.pendingProps,l=r.revealOrder,i=r.tail;if(Fa(e,t,r.children,n),0!==(2&(r=Ui.current)))r=1&r|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&qa(e,n);else if(19===e.tag)qa(e,n);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(pl(Ui,r),0===(2&t.mode))t.memoizedState=null;else switch(l){case"forwards":for(n=t.child,l=null;null!==n;)null!==(e=n.alternate)&&null===Vi(e)&&(l=n),n=n.sibling;null===(n=l)?(l=t.child,t.child=null):(l=n.sibling,n.sibling=null),Ya(t,!1,l,n,i,t.lastEffect);break;case"backwards":for(n=null,l=t.child,t.child=null;null!==l;){if(null!==(e=l.alternate)&&null===Vi(e)){t.child=l;break}e=l.sibling,l.sibling=n,n=l,l=e}Ya(t,!0,n,null,i,t.lastEffect);break;case"together":Ya(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ga(e,t,n){null!==e&&(t.dependencies=e.dependencies);var r=t.expirationTime;if(0!==r&&mu(r),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(n=Fu(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Fu(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Za(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ja(e,t,n){var r=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:case 17:return bl(t.type)&&wl(),null;case 3:return Di(),dl(gl),dl(hl),(n=t.stateNode).pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||!za(t)||(t.effectTag|=4),null;case 5:Ai(t),n=Fi(Ii.current);var i=t.type;if(null!==e&&null!=t.stateNode)Ha(e,t,i,r,n),e.ref!==t.ref&&(t.effectTag|=128);else{if(!r){if(null===t.stateNode)throw Error(a(166));return null}if(e=Fi(Oi.current),za(t)){r=t.stateNode,i=t.type;var o=t.memoizedProps;switch(r[Pn]=t,r[Nn]=o,i){case"iframe":case"object":case"embed":qt("load",r);break;case"video":case"audio":for(e=0;e<Ge.length;e++)qt(Ge[e],r);break;case"source":qt("error",r);break;case"img":case"image":case"link":qt("error",r),qt("load",r);break;case"form":qt("reset",r),qt("submit",r);break;case"details":qt("toggle",r);break;case"input":Te(r,o),qt("invalid",r),cn(n,"onChange");break;case"select":r._wrapperState={wasMultiple:!!o.multiple},qt("invalid",r),cn(n,"onChange");break;case"textarea":Oe(r,o),qt("invalid",r),cn(n,"onChange")}for(var u in an(i,o),e=null,o)if(o.hasOwnProperty(u)){var c=o[u];"children"===u?"string"===typeof c?r.textContent!==c&&(e=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(e=["children",""+c]):E.hasOwnProperty(u)&&null!=c&&cn(n,u)}switch(i){case"input":we(r),Ce(r,o,!0);break;case"textarea":we(r),Ie(r);break;case"select":case"option":break;default:"function"===typeof o.onClick&&(r.onclick=sn)}n=e,t.updateQueue=n,null!==n&&(t.effectTag|=4)}else{switch(u=9===n.nodeType?n:n.ownerDocument,e===un&&(e=De(i)),e===un?"script"===i?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(i,{is:r.is}):(e=u.createElement(i),"select"===i&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,i),e[Pn]=t,e[Nn]=r,Qa(e,t),t.stateNode=e,u=on(i,r),i){case"iframe":case"object":case"embed":qt("load",e),c=r;break;case"video":case"audio":for(c=0;c<Ge.length;c++)qt(Ge[c],e);c=r;break;case"source":qt("error",e),c=r;break;case"img":case"image":case"link":qt("error",e),qt("load",e),c=r;break;case"form":qt("reset",e),qt("submit",e),c=r;break;case"details":qt("toggle",e),c=r;break;case"input":Te(e,r),c=xe(e,r),qt("invalid",e),cn(n,"onChange");break;case"option":c=Pe(e,r);break;case"select":e._wrapperState={wasMultiple:!!r.multiple},c=l({},r,{value:void 0}),qt("invalid",e),cn(n,"onChange");break;case"textarea":Oe(e,r),c=ze(e,r),qt("invalid",e),cn(n,"onChange");break;default:c=r}an(i,c);var s=c;for(o in s)if(s.hasOwnProperty(o)){var f=s[o];"style"===o?rn(e,f):"dangerouslySetInnerHTML"===o?null!=(f=f?f.__html:void 0)&&Ve(e,f):"children"===o?"string"===typeof f?("textarea"!==i||""!==f)&&je(e,f):"number"===typeof f&&je(e,""+f):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(E.hasOwnProperty(o)?null!=f&&cn(n,o):null!=f&&G(e,o,f,u))}switch(i){case"input":we(e),Ce(e,r,!1);break;case"textarea":we(e),Ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+ye(r.value));break;case"select":e.multiple=!!r.multiple,null!=(n=r.value)?Ne(e,!!r.multiple,n,!1):null!=r.defaultValue&&Ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof c.onClick&&(e.onclick=sn)}kn(i,r)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ba(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(a(166));n=Fi(Ii.current),Fi(Oi.current),za(t)?(n=t.stateNode,r=t.memoizedProps,n[Pn]=t,n.nodeValue!==r&&(t.effectTag|=4)):((n=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[Pn]=t,t.stateNode=n)}return null;case 13:return dl(Ui),r=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=n,t):(n=null!==r,r=!1,null===e?void 0!==t.memoizedProps.fallback&&za(t):(r=null!==(i=e.memoizedState),n||null===i||null!==(i=e.child.sibling)&&(null!==(o=t.firstEffect)?(t.firstEffect=i,i.nextEffect=o):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),n&&!r&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ui.current)?Ro===Po&&(Ro=No):(Ro!==Po&&Ro!==No||(Ro=zo),0!==Vo&&null!==Mo&&(ju(Mo,Fo),Wu(Mo,Vo)))),(n||r)&&(t.effectTag|=4),null);case 4:return Di(),null;case 10:return li(t),null;case 19:if(dl(Ui),null===(r=t.memoizedState))return null;if(i=0!==(64&t.effectTag),null===(o=r.rendering)){if(i)Za(r,!1);else if(Ro!==Po||null!==e&&0!==(64&e.effectTag))for(o=t.child;null!==o;){if(null!==(e=Vi(o))){for(t.effectTag|=64,Za(r,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===r.lastEffect&&(t.firstEffect=null),t.lastEffect=r.lastEffect,r=t.child;null!==r;)o=n,(i=r).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=o,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,o=e.dependencies,i.dependencies=null===o?null:{expirationTime:o.expirationTime,firstContext:o.firstContext,responders:o.responders}),r=r.sibling;return pl(Ui,1&Ui.current|2),t.child}o=o.sibling}}else{if(!i)if(null!==(e=Vi(o))){if(t.effectTag|=64,i=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),Za(r,!0),null===r.tail&&"hidden"===r.tailMode&&!o.alternate)return null!==(t=t.lastEffect=r.lastEffect)&&(t.nextEffect=null),null}else 2*Ql()-r.renderingStartTime>r.tailExpiration&&1<n&&(t.effectTag|=64,i=!0,Za(r,!1),t.expirationTime=t.childExpirationTime=n-1);r.isBackwards?(o.sibling=t.child,t.child=o):(null!==(n=r.last)?n.sibling=o:t.child=o,r.last=o)}return null!==r.tail?(0===r.tailExpiration&&(r.tailExpiration=Ql()+500),n=r.tail,r.rendering=n,r.tail=n.sibling,r.lastEffect=t.lastEffect,r.renderingStartTime=Ql(),n.sibling=null,t=Ui.current,pl(Ui,i?1&t|2:1&t),n):null}throw Error(a(156,t.tag))}function eo(e){switch(e.tag){case 1:bl(e.type)&&wl();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Di(),dl(gl),dl(hl),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ai(e),null;case 13:return dl(Ui),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return dl(Ui),null;case 4:return Di(),null;case 10:return li(e),null;default:return null}}function to(e,t){return{value:e,source:t,stack:ve(t)}}Qa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ha=function(e,t,n,r,i){var a=e.memoizedProps;if(a!==r){var o,u,c=t.stateNode;switch(Fi(Oi.current),e=null,n){case"input":a=xe(c,a),r=xe(c,r),e=[];break;case"option":a=Pe(c,a),r=Pe(c,r),e=[];break;case"select":a=l({},a,{value:void 0}),r=l({},r,{value:void 0}),e=[];break;case"textarea":a=ze(c,a),r=ze(c,r),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(c.onclick=sn)}for(o in an(n,r),n=null,a)if(!r.hasOwnProperty(o)&&a.hasOwnProperty(o)&&null!=a[o])if("style"===o)for(u in c=a[o])c.hasOwnProperty(u)&&(n||(n={}),n[u]="");else"dangerouslySetInnerHTML"!==o&&"children"!==o&&"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(E.hasOwnProperty(o)?e||(e=[]):(e=e||[]).push(o,null));for(o in r){var s=r[o];if(c=null!=a?a[o]:void 0,r.hasOwnProperty(o)&&s!==c&&(null!=s||null!=c))if("style"===o)if(c){for(u in c)!c.hasOwnProperty(u)||s&&s.hasOwnProperty(u)||(n||(n={}),n[u]="");for(u in s)s.hasOwnProperty(u)&&c[u]!==s[u]&&(n||(n={}),n[u]=s[u])}else n||(e||(e=[]),e.push(o,n)),n=s;else"dangerouslySetInnerHTML"===o?(s=s?s.__html:void 0,c=c?c.__html:void 0,null!=s&&c!==s&&(e=e||[]).push(o,s)):"children"===o?c===s||"string"!==typeof s&&"number"!==typeof s||(e=e||[]).push(o,""+s):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&(E.hasOwnProperty(o)?(null!=s&&cn(i,o),e||c===s||(e=[])):(e=e||[]).push(o,s))}n&&(e=e||[]).push("style",n),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ba=function(e,t,n,r){n!==r&&(t.effectTag|=4)};var no="function"===typeof WeakSet?WeakSet:Set;function ro(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=ve(n)),null!==n&&ge(n.type),t=t.value,null!==e&&1===e.tag&&ge(e.type);try{console.error(t)}catch(l){setTimeout((function(){throw l}))}}function lo(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(n){Cu(e,n)}else t.current=null}function io(e,t){switch(t.tag){case 0:case 11:case 15:case 22:case 3:case 5:case 6:case 4:case 17:return;case 1:if(256&t.effectTag&&null!==e){var n=e.memoizedProps,r=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?n:Zl(t.type,n),r),e.__reactInternalSnapshotBeforeUpdate=t}return}throw Error(a(163))}function ao(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.destroy;n.destroy=void 0,void 0!==r&&r()}n=n.next}while(n!==t)}}function oo(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function uo(e,t,n){switch(n.tag){case 0:case 11:case 15:case 22:return void oo(3,n);case 1:if(e=n.stateNode,4&n.effectTag)if(null===t)e.componentDidMount();else{var r=n.elementType===n.type?t.memoizedProps:Zl(n.type,t.memoizedProps);e.componentDidUpdate(r,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=n.updateQueue)&&hi(n,t,e));case 3:if(null!==(t=n.updateQueue)){if(e=null,null!==n.child)switch(n.child.tag){case 5:case 1:e=n.child.stateNode}hi(n,t,e)}return;case 5:return e=n.stateNode,void(null===t&&4&n.effectTag&&kn(n.type,n.memoizedProps)&&e.focus());case 6:case 4:case 12:case 19:case 17:case 20:case 21:return;case 13:return void(null===n.memoizedState&&(n=n.alternate,null!==n&&(n=n.memoizedState,null!==n&&(n=n.dehydrated,null!==n&&Lt(n)))))}throw Error(a(163))}function co(e,t,n){switch("function"===typeof zu&&zu(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var r=e.next;Kl(97<n?97:n,(function(){var e=r;do{var n=e.destroy;if(void 0!==n){var l=t;try{n()}catch(i){Cu(l,i)}}e=e.next}while(e!==r)}))}break;case 1:lo(t),"function"===typeof(n=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(n){Cu(e,n)}}(t,n);break;case 5:lo(t);break;case 4:go(e,t,n)}}function so(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&so(t)}function fo(e){return 5===e.tag||3===e.tag||4===e.tag}function po(e){e:{for(var t=e.return;null!==t;){if(fo(t)){var n=t;break e}t=t.return}throw Error(a(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw Error(a(161))}16&n.effectTag&&(je(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||fo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}r?mo(e,n,t):ho(e,n,t)}function mo(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=sn));else if(4!==r&&null!==(e=e.child))for(mo(e,t,n),e=e.sibling;null!==e;)mo(e,t,n),e=e.sibling}function ho(e,t,n){var r=e.tag,l=5===r||6===r;if(l)e=l?e.stateNode:e.stateNode.instance,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ho(e,t,n),e=e.sibling;null!==e;)ho(e,t,n),e=e.sibling}function go(e,t,n){for(var r,l,i=t,o=!1;;){if(!o){o=i.return;e:for(;;){if(null===o)throw Error(a(160));switch(r=o.stateNode,o.tag){case 5:l=!1;break e;case 3:case 4:r=r.containerInfo,l=!0;break e}o=o.return}o=!0}if(5===i.tag||6===i.tag){e:for(var u=e,c=i,s=n,f=c;;)if(co(u,f,s),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}l?(u=r,c=i.stateNode,8===u.nodeType?u.parentNode.removeChild(c):u.removeChild(c)):r.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){r=i.stateNode.containerInfo,l=!0,i.child.return=i,i=i.child;continue}}else if(co(e,i,n),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(o=!1)}i.sibling.return=i.return,i=i.sibling}}function vo(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void ao(3,t);case 1:case 12:case 17:return;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,l=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[Nn]=r,"input"===e&&"radio"===r.type&&null!=r.name&&Ee(n,r),on(e,l),t=on(e,r),l=0;l<i.length;l+=2){var o=i[l],u=i[l+1];"style"===o?rn(n,u):"dangerouslySetInnerHTML"===o?Ve(n,u):"children"===o?je(n,u):G(n,o,u,t)}switch(e){case"input":Se(n,r);break;case"textarea":Me(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?Ne(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?Ne(n,!!r.multiple,r.defaultValue,!0):Ne(n,!!r.multiple,r.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Lt(t.containerInfo)));case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,Wo=Ql()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"===typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,l=void 0!==(l=e.memoizedProps.style)&&null!==l&&l.hasOwnProperty("display")?l.display:null,i.style.display=nn("display",l));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void yo(t);case 19:return void yo(t)}throw Error(a(163))}function yo(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new no),t.forEach((function(t){var r=Pu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var bo="function"===typeof WeakMap?WeakMap:Map;function wo(e,t,n){(n=fi(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ho||(Ho=!0,Bo=r),ro(e,t)},n}function ko(e,t,n){(n=fi(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var l=t.value;n.payload=function(){return ro(e,t),r(l)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(n.callback=function(){"function"!==typeof r&&(null===Ko?Ko=new Set([this]):Ko.add(this),ro(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var xo,To=Math.ceil,Eo=X.ReactCurrentDispatcher,So=X.ReactCurrentOwner,Co=16,_o=32,Po=0,No=3,zo=4,Oo=0,Mo=null,Io=null,Fo=0,Ro=Po,Do=null,Lo=1073741823,Ao=1073741823,Uo=null,Vo=0,jo=!1,Wo=0,Qo=null,Ho=!1,Bo=null,Ko=null,$o=!1,qo=null,Yo=90,Xo=null,Go=0,Zo=null,Jo=0;function eu(){return 0!==(48&Oo)?1073741821-(Ql()/10|0):0!==Jo?Jo:Jo=1073741821-(Ql()/10|0)}function tu(e,t,n){if(0===(2&(t=t.mode)))return 1073741823;var r=Hl();if(0===(4&t))return 99===r?1073741823:1073741822;if(0!==(Oo&Co))return Fo;if(null!==n)e=Gl(e,0|n.timeoutMs||5e3,250);else switch(r){case 99:e=1073741823;break;case 98:e=Gl(e,150,100);break;case 97:case 96:e=Gl(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Mo&&e===Fo&&--e,e}function nu(e,t){if(50<Go)throw Go=0,Zo=null,Error(a(185));if(null!==(e=ru(e,t))){var n=Hl();1073741823===t?0!==(8&Oo)&&0===(48&Oo)?ou(e):(iu(e),0===Oo&&Yl()):iu(e),0===(4&Oo)||98!==n&&99!==n||(null===Xo?Xo=new Map([[e,t]]):(void 0===(n=Xo.get(e))||n>t)&&Xo.set(e,t))}}function ru(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,l=null;if(null===r&&3===e.tag)l=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){l=r.stateNode;break}r=r.return}return null!==l&&(Mo===l&&(mu(t),Ro===zo&&ju(l,Fo)),Wu(l,t)),l}function lu(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Vu(e,t=e.firstPendingTime))return t;var n=e.lastPingedTime;return 2>=(e=n>(e=e.nextKnownPendingLevel)?n:e)&&t!==e?0:e}function iu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=ql(ou.bind(null,e));else{var t=lu(e),n=e.callbackNode;if(0===t)null!==n&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var r=eu();if(1073741823===t?r=99:1===t||2===t?r=95:r=0>=(r=10*(1073741821-t)-10*(1073741821-r))?99:250>=r?98:5250>=r?97:95,null!==n){var l=e.callbackPriority;if(e.callbackExpirationTime===t&&l>=r)return;n!==Dl&&_l(n)}e.callbackExpirationTime=t,e.callbackPriority=r,t=1073741823===t?ql(ou.bind(null,e)):$l(r,au.bind(null,e),{timeout:10*(1073741821-t)-Ql()}),e.callbackNode=t}}}function au(e,t){if(Jo=0,t)return Qu(e,t=eu()),iu(e),null;var n=lu(e);if(0!==n){if(t=e.callbackNode,0!==(48&Oo))throw Error(a(327));if(Tu(),e===Mo&&n===Fo||su(e,n),null!==Io){var r=Oo;Oo|=Co;for(var l=du();;)try{gu();break}catch(u){fu(e,u)}if(ri(),Oo=r,Eo.current=l,1===Ro)throw t=Do,su(e,n),ju(e,n),iu(e),t;if(null===Io)switch(l=e.finishedWork=e.current.alternate,e.finishedExpirationTime=n,r=Ro,Mo=null,r){case Po:case 1:throw Error(a(345));case 2:Qu(e,2<n?2:n);break;case No:if(ju(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bu(l)),1073741823===Lo&&10<(l=Wo+500-Ql())){if(jo){var i=e.lastPingedTime;if(0===i||i>=n){e.lastPingedTime=n,su(e,n);break}}if(0!==(i=lu(e))&&i!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}e.timeoutHandle=Tn(wu.bind(null,e),l);break}wu(e);break;case zo:if(ju(e,n),n===(r=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=bu(l)),jo&&(0===(l=e.lastPingedTime)||l>=n)){e.lastPingedTime=n,su(e,n);break}if(0!==(l=lu(e))&&l!==n)break;if(0!==r&&r!==n){e.lastPingedTime=r;break}if(1073741823!==Ao?r=10*(1073741821-Ao)-Ql():1073741823===Lo?r=0:(r=10*(1073741821-Lo)-5e3,0>(r=(l=Ql())-r)&&(r=0),(n=10*(1073741821-n)-l)<(r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*To(r/1960))-r)&&(r=n)),10<r){e.timeoutHandle=Tn(wu.bind(null,e),r);break}wu(e);break;case 5:if(1073741823!==Lo&&null!==Uo){i=Lo;var o=Uo;if(0>=(r=0|o.busyMinDurationMs)?r=0:(l=0|o.busyDelayMs,r=(i=Ql()-(10*(1073741821-i)-(0|o.timeoutMs||5e3)))<=l?0:l+r-i),10<r){ju(e,n),e.timeoutHandle=Tn(wu.bind(null,e),r);break}}wu(e);break;default:throw Error(a(329))}if(iu(e),e.callbackNode===t)return au.bind(null,e)}}return null}function ou(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&Oo))throw Error(a(327));if(Tu(),e===Mo&&t===Fo||su(e,t),null!==Io){var n=Oo;Oo|=Co;for(var r=du();;)try{hu();break}catch(l){fu(e,l)}if(ri(),Oo=n,Eo.current=r,1===Ro)throw n=Do,su(e,t),ju(e,t),iu(e),n;if(null!==Io)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Mo=null,wu(e),iu(e)}return null}function uu(e,t){var n=Oo;Oo|=1;try{return e(t)}finally{0===(Oo=n)&&Yl()}}function cu(e,t){var n=Oo;Oo&=-2,Oo|=8;try{return e(t)}finally{0===(Oo=n)&&Yl()}}function su(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,En(n)),null!==Io)for(n=Io.return;null!==n;){var r=n;switch(r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&wl();break;case 3:Di(),dl(gl),dl(hl);break;case 5:Ai(r);break;case 4:Di();break;case 13:case 19:dl(Ui);break;case 10:li(r)}n=n.return}Mo=e,Io=Fu(e.current,null),Fo=t,Ro=Po,Do=null,Ao=Lo=1073741823,Uo=null,Vo=0,jo=!1}function fu(e,t){for(;;){try{if(ri(),Wi.current=ba,qi)for(var n=Bi.memoizedState;null!==n;){var r=n.queue;null!==r&&(r.pending=null),n=n.next}if(Hi=0,$i=Ki=Bi=null,qi=!1,null===Io||null===Io.return)return Ro=1,Do=t,Io=null;e:{var l=e,i=Io.return,a=Io,o=t;if(t=Fo,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==o&&"object"===typeof o&&"function"===typeof o.then){var u=o;if(0===(2&a.mode)){var c=a.alternate;c?(a.updateQueue=c.updateQueue,a.memoizedState=c.memoizedState,a.expirationTime=c.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var s=0!==(1&Ui.current),f=i;do{var d;if(d=13===f.tag){var p=f.memoizedState;if(null!==p)d=null!==p.dehydrated;else{var m=f.memoizedProps;d=void 0!==m.fallback&&(!0!==m.unstable_avoidThisFallback||!s)}}if(d){var h=f.updateQueue;if(null===h){var g=new Set;g.add(u),f.updateQueue=g}else h.add(u);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var v=fi(1073741823,null);v.tag=2,di(a,v)}a.expirationTime=1073741823;break e}o=void 0,a=t;var y=l.pingCache;if(null===y?(y=l.pingCache=new bo,o=new Set,y.set(u,o)):void 0===(o=y.get(u))&&(o=new Set,y.set(u,o)),!o.has(a)){o.add(a);var b=_u.bind(null,l,u,a);u.then(b,b)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);o=Error((ge(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ve(a))}5!==Ro&&(Ro=2),o=to(o,a),f=i;do{switch(f.tag){case 3:u=o,f.effectTag|=4096,f.expirationTime=t,pi(f,wo(f,u,t));break e;case 1:u=o;var w=f.type,k=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof w.getDerivedStateFromError||null!==k&&"function"===typeof k.componentDidCatch&&(null===Ko||!Ko.has(k)))){f.effectTag|=4096,f.expirationTime=t,pi(f,ko(f,u,t));break e}}f=f.return}while(null!==f)}Io=yu(Io)}catch(x){t=x;continue}break}}function du(){var e=Eo.current;return Eo.current=ba,null===e?ba:e}function pu(e,t){e<Lo&&2<e&&(Lo=e),null!==t&&e<Ao&&2<e&&(Ao=e,Uo=t)}function mu(e){e>Vo&&(Vo=e)}function hu(){for(;null!==Io;)Io=vu(Io)}function gu(){for(;null!==Io&&!Ll();)Io=vu(Io)}function vu(e){var t=xo(e.alternate,e,Fo);return e.memoizedProps=e.pendingProps,null===t&&(t=yu(e)),So.current=null,t}function yu(e){Io=e;do{var t=Io.alternate;if(e=Io.return,0===(2048&Io.effectTag)){if(t=Ja(t,Io,Fo),1===Fo||1!==Io.childExpirationTime){for(var n=0,r=Io.child;null!==r;){var l=r.expirationTime,i=r.childExpirationTime;l>n&&(n=l),i>n&&(n=i),r=r.sibling}Io.childExpirationTime=n}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Io.firstEffect),null!==Io.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Io.firstEffect),e.lastEffect=Io.lastEffect),1<Io.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Io:e.firstEffect=Io,e.lastEffect=Io))}else{if(null!==(t=eo(Io)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Io.sibling))return t;Io=e}while(null!==Io);return Ro===Po&&(Ro=5),null}function bu(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function wu(e){var t=Hl();return Kl(99,ku.bind(null,e,t)),null}function ku(e,t){do{Tu()}while(null!==qo);if(0!==(48&Oo))throw Error(a(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var l=bu(n);if(e.firstPendingTime=l,r<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:r<=e.firstSuspendedTime&&(e.firstSuspendedTime=r-1),r<=e.lastPingedTime&&(e.lastPingedTime=0),r<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Mo&&(Io=Mo=null,Fo=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,l=n.firstEffect):l=n:l=n.firstEffect,null!==l){var i=Oo;Oo|=_o,So.current=null,bn=$t;var o=hn();if(gn(o)){if("selectionStart"in o)var u={start:o.selectionStart,end:o.selectionEnd};else e:{var c=(u=(u=o.ownerDocument)&&u.defaultView||window).getSelection&&u.getSelection();if(c&&0!==c.rangeCount){u=c.anchorNode;var s=c.anchorOffset,f=c.focusNode;c=c.focusOffset;try{u.nodeType,f.nodeType}catch(C){u=null;break e}var d=0,p=-1,m=-1,h=0,g=0,v=o,y=null;t:for(;;){for(var b;v!==u||0!==s&&3!==v.nodeType||(p=d+s),v!==f||0!==c&&3!==v.nodeType||(m=d+c),3===v.nodeType&&(d+=v.nodeValue.length),null!==(b=v.firstChild);)y=v,v=b;for(;;){if(v===o)break t;if(y===u&&++h===s&&(p=d),y===f&&++g===c&&(m=d),null!==(b=v.nextSibling))break;y=(v=y).parentNode}v=b}u=-1===p||-1===m?null:{start:p,end:m}}else u=null}u=u||{start:0,end:0}}else u=null;wn={activeElementDetached:null,focusedElem:o,selectionRange:u},$t=!1,Qo=l;do{try{xu()}catch(C){if(null===Qo)throw Error(a(330));Cu(Qo,C),Qo=Qo.nextEffect}}while(null!==Qo);Qo=l;do{try{for(o=e,u=t;null!==Qo;){var w=Qo.effectTag;if(16&w&&je(Qo.stateNode,""),128&w){var k=Qo.alternate;if(null!==k){var x=k.ref;null!==x&&("function"===typeof x?x(null):x.current=null)}}switch(1038&w){case 2:po(Qo),Qo.effectTag&=-3;break;case 6:po(Qo),Qo.effectTag&=-3,vo(Qo.alternate,Qo);break;case 1024:Qo.effectTag&=-1025;break;case 1028:Qo.effectTag&=-1025,vo(Qo.alternate,Qo);break;case 4:vo(Qo.alternate,Qo);break;case 8:go(o,s=Qo,u),so(s)}Qo=Qo.nextEffect}}catch(C){if(null===Qo)throw Error(a(330));Cu(Qo,C),Qo=Qo.nextEffect}}while(null!==Qo);if(x=wn,k=hn(),w=x.focusedElem,u=x.selectionRange,k!==w&&w&&w.ownerDocument&&mn(w.ownerDocument.documentElement,w)){null!==u&&gn(w)&&(k=u.start,void 0===(x=u.end)&&(x=k),"selectionStart"in w?(w.selectionStart=k,w.selectionEnd=Math.min(x,w.value.length)):(x=(k=w.ownerDocument||document)&&k.defaultView||window).getSelection&&(x=x.getSelection(),s=w.textContent.length,o=Math.min(u.start,s),u=void 0===u.end?o:Math.min(u.end,s),!x.extend&&o>u&&(s=u,u=o,o=s),s=pn(w,o),f=pn(w,u),s&&f&&(1!==x.rangeCount||x.anchorNode!==s.node||x.anchorOffset!==s.offset||x.focusNode!==f.node||x.focusOffset!==f.offset)&&((k=k.createRange()).setStart(s.node,s.offset),x.removeAllRanges(),o>u?(x.addRange(k),x.extend(f.node,f.offset)):(k.setEnd(f.node,f.offset),x.addRange(k))))),k=[];for(x=w;x=x.parentNode;)1===x.nodeType&&k.push({element:x,left:x.scrollLeft,top:x.scrollTop});for("function"===typeof w.focus&&w.focus(),w=0;w<k.length;w++)(x=k[w]).element.scrollLeft=x.left,x.element.scrollTop=x.top}$t=!!bn,wn=bn=null,e.current=n,Qo=l;do{try{for(w=e;null!==Qo;){var T=Qo.effectTag;if(36&T&&uo(w,Qo.alternate,Qo),128&T){k=void 0;var E=Qo.ref;if(null!==E){var S=Qo.stateNode;Qo.tag,k=S,"function"===typeof E?E(k):E.current=k}}Qo=Qo.nextEffect}}catch(C){if(null===Qo)throw Error(a(330));Cu(Qo,C),Qo=Qo.nextEffect}}while(null!==Qo);Qo=null,Al(),Oo=i}else e.current=n;if($o)$o=!1,qo=e,Yo=t;else for(Qo=l;null!==Qo;)t=Qo.nextEffect,Qo.nextEffect=null,Qo=t;if(0===(t=e.firstPendingTime)&&(Ko=null),1073741823===t?e===Zo?Go++:(Go=0,Zo=e):Go=0,"function"===typeof Nu&&Nu(n.stateNode,r),iu(e),Ho)throw Ho=!1,e=Bo,Bo=null,e;return 0!==(8&Oo)||Yl(),null}function xu(){for(;null!==Qo;){var e=Qo.effectTag;0!==(256&e)&&io(Qo.alternate,Qo),0===(512&e)||$o||($o=!0,$l(97,(function(){return Tu(),null}))),Qo=Qo.nextEffect}}function Tu(){if(90!==Yo){var e=97<Yo?97:Yo;return Yo=90,Kl(e,Eu)}}function Eu(){if(null===qo)return!1;var e=qo;if(qo=null,0!==(48&Oo))throw Error(a(331));var t=Oo;for(Oo|=_o,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!==(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:case 22:ao(5,n),oo(5,n)}}catch(r){if(null===e)throw Error(a(330));Cu(e,r)}n=e.nextEffect,e.nextEffect=null,e=n}return Oo=t,Yl(),!0}function Su(e,t,n){di(e,t=wo(e,t=to(n,t),1073741823)),null!==(e=ru(e,1073741823))&&iu(e)}function Cu(e,t){if(3===e.tag)Su(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Su(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"===typeof n.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Ko||!Ko.has(r))){di(n,e=ko(n,e=to(t,e),1073741823)),null!==(n=ru(n,1073741823))&&iu(n);break}}n=n.return}}function _u(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),Mo===e&&Fo===n?Ro===zo||Ro===No&&1073741823===Lo&&Ql()-Wo<500?su(e,Fo):jo=!0:Vu(e,n)&&(0!==(t=e.lastPingedTime)&&t<n||(e.lastPingedTime=n,iu(e)))}function Pu(e,t){var n=e.stateNode;null!==n&&n.delete(t),0===(t=0)&&(t=tu(t=eu(),e,null)),null!==(e=ru(e,t))&&iu(e)}xo=function(e,t,n){var r=t.expirationTime;if(null!==e){var l=t.pendingProps;if(e.memoizedProps!==l||gl.current)Ia=!0;else{if(r<n){switch(Ia=!1,t.tag){case 3:Wa(t),Oa();break;case 5:if(Li(t),4&t.mode&&1!==n&&l.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:bl(t.type)&&Tl(t);break;case 4:Ri(t,t.stateNode.containerInfo);break;case 10:r=t.memoizedProps.value,l=t.type._context,pl(Jl,l._currentValue),l._currentValue=r;break;case 13:if(null!==t.memoizedState)return 0!==(r=t.child.childExpirationTime)&&r>=n?$a(e,t,n):(pl(Ui,1&Ui.current),null!==(t=Ga(e,t,n))?t.sibling:null);pl(Ui,1&Ui.current);break;case 19:if(r=t.childExpirationTime>=n,0!==(64&e.effectTag)){if(r)return Xa(e,t,n);t.effectTag|=64}if(null!==(l=t.memoizedState)&&(l.rendering=null,l.tail=null),pl(Ui,Ui.current),!r)return null}return Ga(e,t,n)}Ia=!1}}else Ia=!1;switch(t.expirationTime=0,t.tag){case 2:if(r=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,l=yl(t,hl.current),ai(t,n),l=Gi(null,t,r,e,l,n),t.effectTag|=1,"object"===typeof l&&null!==l&&"function"===typeof l.render&&void 0===l.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,bl(r)){var i=!0;Tl(t)}else i=!1;t.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,ci(t);var o=r.getDerivedStateFromProps;"function"===typeof o&&yi(t,r,o,e),l.updater=bi,t.stateNode=l,l._reactInternalFiber=t,Ti(t,r,e,n),t=ja(null,t,r,!0,i,n)}else t.tag=0,Fa(null,t,l,n),t=t.child;return t;case 16:e:{if(l=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(l),1!==l._status)throw l._result;switch(l=l._result,t.type=l,i=t.tag=function(e){if("function"===typeof e)return Iu(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===ue)return 11;if(e===fe)return 14}return 2}(l),e=Zl(l,e),i){case 0:t=Ua(null,t,l,e,n);break e;case 1:t=Va(null,t,l,e,n);break e;case 11:t=Ra(null,t,l,e,n);break e;case 14:t=Da(null,t,l,Zl(l.type,e),r,n);break e}throw Error(a(306,l,""))}return t;case 0:return r=t.type,l=t.pendingProps,Ua(e,t,r,l=t.elementType===r?l:Zl(r,l),n);case 1:return r=t.type,l=t.pendingProps,Va(e,t,r,l=t.elementType===r?l:Zl(r,l),n);case 3:if(Wa(t),r=t.updateQueue,null===e||null===r)throw Error(a(282));if(r=t.pendingProps,l=null!==(l=t.memoizedState)?l.element:null,si(e,t),mi(t,r,null,n),(r=t.memoizedState.element)===l)Oa(),t=Ga(e,t,n);else{if((l=t.stateNode.hydrate)&&(Ea=Sn(t.stateNode.containerInfo.firstChild),Ta=t,l=Sa=!0),l)for(n=Ni(t,null,r,n),t.child=n;n;)n.effectTag=-3&n.effectTag|1024,n=n.sibling;else Fa(e,t,r,n),Oa();t=t.child}return t;case 5:return Li(t),null===e&&Pa(t),r=t.type,l=t.pendingProps,i=null!==e?e.memoizedProps:null,o=l.children,xn(r,l)?o=null:null!==i&&xn(r,i)&&(t.effectTag|=16),Aa(e,t),4&t.mode&&1!==n&&l.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Fa(e,t,o,n),t=t.child),t;case 6:return null===e&&Pa(t),null;case 13:return $a(e,t,n);case 4:return Ri(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Pi(t,null,r,n):Fa(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,Ra(e,t,r,l=t.elementType===r?l:Zl(r,l),n);case 7:return Fa(e,t,t.pendingProps,n),t.child;case 8:case 12:return Fa(e,t,t.pendingProps.children,n),t.child;case 10:e:{r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value;var u=t.type._context;if(pl(Jl,u._currentValue),u._currentValue=i,null!==o)if(u=o.value,0===(i=jr(u,i)?0:0|("function"===typeof r._calculateChangedBits?r._calculateChangedBits(u,i):1073741823))){if(o.children===l.children&&!gl.current){t=Ga(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){o=u.child;for(var s=c.firstContext;null!==s;){if(s.context===r&&0!==(s.observedBits&i)){1===u.tag&&((s=fi(n,null)).tag=2,di(u,s)),u.expirationTime<n&&(u.expirationTime=n),null!==(s=u.alternate)&&s.expirationTime<n&&(s.expirationTime=n),ii(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}s=s.next}}else o=10===u.tag&&u.type===t.type?null:u.child;if(null!==o)o.return=u;else for(o=u;null!==o;){if(o===t){o=null;break}if(null!==(u=o.sibling)){u.return=o.return,o=u;break}o=o.return}u=o}Fa(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=(i=t.pendingProps).children,ai(t,n),r=r(l=oi(l,i.unstable_observedBits)),t.effectTag|=1,Fa(e,t,r,n),t.child;case 14:return i=Zl(l=t.type,t.pendingProps),Da(e,t,l,i=Zl(l.type,i),r,n);case 15:return La(e,t,t.type,t.pendingProps,r,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Zl(r,l),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,bl(r)?(e=!0,Tl(t)):e=!1,ai(t,n),ki(t,r,l),Ti(t,r,l,n),ja(null,t,r,!0,e,n);case 19:return Xa(e,t,n)}throw Error(a(156,t.tag))};var Nu=null,zu=null;function Ou(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Mu(e,t,n,r){return new Ou(e,t,n,r)}function Iu(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Fu(e,t){var n=e.alternate;return null===n?((n=Mu(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Ru(e,t,n,r,l,i){var o=2;if(r=e,"function"===typeof e)Iu(e)&&(o=1);else if("string"===typeof e)o=5;else e:switch(e){case ne:return Du(n.children,l,i,t);case oe:o=8,l|=7;break;case re:o=8,l|=1;break;case le:return(e=Mu(12,n,t,8|l)).elementType=le,e.type=le,e.expirationTime=i,e;case ce:return(e=Mu(13,n,t,l)).type=ce,e.elementType=ce,e.expirationTime=i,e;case se:return(e=Mu(19,n,t,l)).elementType=se,e.expirationTime=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ie:o=10;break e;case ae:o=9;break e;case ue:o=11;break e;case fe:o=14;break e;case de:o=16,r=null;break e;case pe:o=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Mu(o,n,t,l)).elementType=e,t.type=r,t.expirationTime=i,t}function Du(e,t,n,r){return(e=Mu(7,e,r,t)).expirationTime=n,e}function Lu(e,t,n){return(e=Mu(6,e,null,t)).expirationTime=n,e}function Au(e,t,n){return(t=Mu(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Uu(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Vu(e,t){var n=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==n&&n>=t&&e<=t}function ju(e,t){var n=e.firstSuspendedTime,r=e.lastSuspendedTime;n<t&&(e.firstSuspendedTime=t),(r>t||0===n)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Wu(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var n=e.firstSuspendedTime;0!==n&&(t>=n?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Qu(e,t){var n=e.lastExpiredTime;(0===n||n>t)&&(e.lastExpiredTime=t)}function Hu(e,t,n,r){var l=t.current,i=eu(),o=gi.suspense;i=tu(i,l,o);e:if(n){t:{if(et(n=n._reactInternalFiber)!==n||1!==n.tag)throw Error(a(170));var u=n;do{switch(u.tag){case 3:u=u.stateNode.context;break t;case 1:if(bl(u.type)){u=u.stateNode.__reactInternalMemoizedMergedChildContext;break t}}u=u.return}while(null!==u);throw Error(a(171))}if(1===n.tag){var c=n.type;if(bl(c)){n=xl(n,c,u);break e}}n=u}else n=ml;return null===t.context?t.context=n:t.pendingContext=n,(t=fi(i,o)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),di(l,t),nu(l,i),i}function Bu(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Ku(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function $u(e,t){Ku(e,t),(e=e.alternate)&&Ku(e,t)}function qu(e,t,n){var r=new Uu(e,t,n=null!=n&&!0===n.hydrate),l=Mu(3,null,null,2===t?7:1===t?3:0);r.current=l,l.stateNode=r,ci(l),e[zn]=r.current,n&&0!==t&&function(e,t){var n=Je(t);_t.forEach((function(e){ht(e,t,n)})),Pt.forEach((function(e){ht(e,t,n)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=r}function Yu(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Xu(e,t,n,r,l){var i=n._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof l){var o=l;l=function(){var e=Bu(a);o.call(e)}}Hu(t,a,e,l)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new qu(e,0,t?{hydrate:!0}:void 0)}(n,r),a=i._internalRoot,"function"===typeof l){var u=l;l=function(){var e=Bu(a);u.call(e)}}cu((function(){Hu(t,a,e,l)}))}return Bu(a)}function Gu(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}function Zu(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yu(t))throw Error(a(200));return Gu(e,t,null,n)}qu.prototype.render=function(e){Hu(e,this._internalRoot,null,null)},qu.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Hu(null,e,null,(function(){t[zn]=null}))},gt=function(e){if(13===e.tag){var t=Gl(eu(),150,100);nu(e,t),$u(e,t)}},vt=function(e){13===e.tag&&(nu(e,3),$u(e,3))},yt=function(e){if(13===e.tag){var t=eu();nu(e,t=tu(t,e,null)),$u(e,t)}},P=function(e,t,n){switch(t){case"input":if(Se(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var l=Fn(r);if(!l)throw Error(a(90));ke(r),Se(r,l)}}}break;case"textarea":Me(e,n);break;case"select":null!=(t=n.value)&&Ne(e,!!n.multiple,t,!1)}},F=uu,R=function(e,t,n,r,l){var i=Oo;Oo|=4;try{return Kl(98,e.bind(null,t,n,r,l))}finally{0===(Oo=i)&&Yl()}},D=function(){0===(49&Oo)&&(function(){if(null!==Xo){var e=Xo;Xo=null,e.forEach((function(e,t){Qu(t,e),iu(t)})),Yl()}}(),Tu())},L=function(e,t){var n=Oo;Oo|=2;try{return e(t)}finally{0===(Oo=n)&&Yl()}};var Ju={Events:[Mn,In,Fn,C,T,jn,function(e){it(e,Vn)},M,I,Zt,ut,Tu,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Nu=function(e){try{t.onCommitFiberRoot(n,e,void 0,64===(64&e.current.effectTag))}catch(r){}},zu=function(e){try{t.onCommitFiberUnmount(n,e)}catch(r){}}}catch(r){}})(l({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:X.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:On,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ju,t.createPortal=Zu,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&Oo))throw Error(a(187));var n=Oo;Oo|=1;try{return Kl(99,e.bind(null,t))}finally{Oo=n,Yl()}},t.hydrate=function(e,t,n){if(!Yu(t))throw Error(a(200));return Xu(null,e,t,!0,n)},t.render=function(e,t,n){if(!Yu(t))throw Error(a(200));return Xu(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Yu(e))throw Error(a(40));return!!e._reactRootContainer&&(cu((function(){Xu(null,null,e,!1,(function(){e._reactRootContainer=null,e[zn]=null}))})),!0)},t.unstable_batchedUpdates=uu,t.unstable_createPortal=function(e,t){return Zu(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Yu(n))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Xu(e,t,n,!1,r)},t.version="16.14.0"},43989:function(e,t,n){!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(22627)},48291:function(e,t){var n,r,l,i,a;if("undefined"===typeof window||"function"!==typeof MessageChannel){var o=null,u=null,c=function e(){if(null!==o)try{var n=t.unstable_now();o(!0,n),o=null}catch(r){throw setTimeout(e,0),r}},s=Date.now();t.unstable_now=function(){return Date.now()-s},n=function(e){null!==o?setTimeout(n,0,e):(o=e,setTimeout(c,0))},r=function(e,t){u=setTimeout(e,t)},l=function(){clearTimeout(u)},i=function(){return!1},a=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,m=window.clearTimeout;if("undefined"!==typeof console){var h=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof h&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof f&&"function"===typeof f.now)t.unstable_now=function(){return f.now()};else{var g=d.now();t.unstable_now=function(){return d.now()-g}}var v=!1,y=null,b=-1,w=5,k=0;i=function(){return t.unstable_now()>=k},a=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var x=new MessageChannel,T=x.port2;x.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();k=e+w;try{y(!0,e)?T.postMessage(null):(v=!1,y=null)}catch(n){throw T.postMessage(null),n}}else v=!1},n=function(e){y=e,v||(v=!0,T.postMessage(null))},r=function(e,n){b=p((function(){e(t.unstable_now())}),n)},l=function(){m(b),b=-1}}function E(e,t){var n=e.length;e.push(t);e:for(;;){var r=n-1>>>1,l=e[r];if(!(void 0!==l&&0<_(l,t)))break e;e[r]=t,e[n]=l,n=r}}function S(e){return void 0===(e=e[0])?null:e}function C(e){var t=e[0];if(void 0!==t){var n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,l=e.length;r<l;){var i=2*(r+1)-1,a=e[i],o=i+1,u=e[o];if(void 0!==a&&0>_(a,n))void 0!==u&&0>_(u,a)?(e[r]=u,e[o]=n,r=o):(e[r]=a,e[i]=n,r=i);else{if(!(void 0!==u&&0>_(u,n)))break e;e[r]=u,e[o]=n,r=o}}}return t}return null}function _(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var P=[],N=[],z=1,O=null,M=3,I=!1,F=!1,R=!1;function D(e){for(var t=S(N);null!==t;){if(null===t.callback)C(N);else{if(!(t.startTime<=e))break;C(N),t.sortIndex=t.expirationTime,E(P,t)}t=S(N)}}function L(e){if(R=!1,D(e),!F)if(null!==S(P))F=!0,n(A);else{var t=S(N);null!==t&&r(L,t.startTime-e)}}function A(e,n){F=!1,R&&(R=!1,l()),I=!0;var a=M;try{for(D(n),O=S(P);null!==O&&(!(O.expirationTime>n)||e&&!i());){var o=O.callback;if(null!==o){O.callback=null,M=O.priorityLevel;var u=o(O.expirationTime<=n);n=t.unstable_now(),"function"===typeof u?O.callback=u:O===S(P)&&C(P),D(n)}else C(P);O=S(P)}if(null!==O)var c=!0;else{var s=S(N);null!==s&&r(L,s.startTime-n),c=!1}return c}finally{O=null,M=a,I=!1}}function U(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=a;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){F||I||(F=!0,n(A))},t.unstable_getCurrentPriorityLevel=function(){return M},t.unstable_getFirstCallbackNode=function(){return S(P)},t.unstable_next=function(e){switch(M){case 1:case 2:case 3:var t=3;break;default:t=M}var n=M;M=t;try{return e()}finally{M=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=M;M=e;try{return t()}finally{M=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();if("object"===typeof a&&null!==a){var u=a.delay;u="number"===typeof u&&0<u?o+u:o,a="number"===typeof a.timeout?a.timeout:U(e)}else a=U(e),u=o;return e={id:z++,callback:i,priorityLevel:e,startTime:u,expirationTime:a=u+a,sortIndex:-1},u>o?(e.sortIndex=u,E(N,e),null===S(P)&&e===S(N)&&(R?l():R=!0,r(L,u-o))):(e.sortIndex=a,E(P,e),F||I||(F=!0,n(A))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();D(e);var n=S(P);return n!==O&&null!==O&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime<O.expirationTime||i()},t.unstable_wrapCallback=function(e){var t=M;return function(){var n=M;M=t;try{return e.apply(this,arguments)}finally{M=n}}}},34442:function(e,t,n){e.exports=n(48291)}}]);
//# sourceMappingURL=3989.bb027167.chunk.js.map
/*! For license information please see 4242.e887dfe7.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[4242],{9329:function(t,n){var e;!function(){"use strict";var r={}.hasOwnProperty;function i(){for(var t=[],n=0;n<arguments.length;n++){var e=arguments[n];if(e){var o=typeof e;if("string"===o||"number"===o)t.push(e);else if(Array.isArray(e)){if(e.length){var s=i.apply(null,e);s&&t.push(s)}}else if("object"===o)if(e.toString===Object.prototype.toString)for(var u in e)r.call(e,u)&&e[u]&&t.push(u);else t.push(e.toString())}}return t.join(" ")}t.exports?(i.default=i,t.exports=i):void 0===(e=function(){return i}.apply(n,[]))||(t.exports=e)}()},35938:function(t,n,e){"use strict";t.exports=e(2144).polyfill()},2144:function(t,n,e){var r=e(47802);t.exports=function(){"use strict";function t(t){var n=typeof t;return null!==t&&("object"===n||"function"===n)}function n(t){return"function"===typeof t}var i=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},o=0,s=void 0,u=void 0,c=function(t,n){w[o]=t,w[o+1]=n,2===(o+=2)&&(u?u(A):j())};function a(t){u=t}function f(t){c=t}var l="undefined"!==typeof window?window:void 0,h=l||{},p=h.MutationObserver||h.WebKitMutationObserver,v="undefined"===typeof self&&"undefined"!==typeof r&&"[object process]"==={}.toString.call(r),_="undefined"!==typeof Uint8ClampedArray&&"undefined"!==typeof importScripts&&"undefined"!==typeof MessageChannel;function d(){return function(){return r.nextTick(A)}}function y(){return"undefined"!==typeof s?function(){s(A)}:g()}function m(){var t=0,n=new p(A),e=document.createTextNode("");return n.observe(e,{characterData:!0}),function(){e.data=t=++t%2}}function b(){var t=new MessageChannel;return t.port1.onmessage=A,function(){return t.port2.postMessage(0)}}function g(){var t=setTimeout;return function(){return t(A,1)}}var w=new Array(1e3);function A(){for(var t=0;t<o;t+=2)(0,w[t])(w[t+1]),w[t]=void 0,w[t+1]=void 0;o=0}function S(){try{var t=Function("return this")().require("vertx");return s=t.runOnLoop||t.runOnContext,y()}catch(n){return g()}}var j=void 0;function x(t,n){var e=this,r=new this.constructor(O);void 0===r[C]&&Q(r);var i=e._state;if(i){var o=arguments[i-1];c((function(){return G(i,r,o,e._result)}))}else z(e,r,t,n);return r}function E(t){var n=this;if(t&&"object"===typeof t&&t.constructor===n)return t;var e=new n(O);return L(e,t),e}j=v?d():p?m():_?b():void 0===l?S():g();var C=Math.random().toString(36).substring(2);function O(){}var T=void 0,k=1,M=2;function P(){return new TypeError("You cannot resolve a promise with itself")}function F(){return new TypeError("A promises callback cannot return that same promise.")}function Y(t,n,e,r){try{t.call(n,e,r)}catch(i){return i}}function q(t,n,e){c((function(t){var r=!1,i=Y(e,n,(function(e){r||(r=!0,n!==e?L(t,e):U(t,e))}),(function(n){r||(r=!0,W(t,n))}),"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,W(t,i))}),t)}function D(t,n){n._state===k?U(t,n._result):n._state===M?W(t,n._result):z(n,void 0,(function(n){return L(t,n)}),(function(n){return W(t,n)}))}function K(t,e,r){e.constructor===t.constructor&&r===x&&e.constructor.resolve===E?D(t,e):void 0===r?U(t,e):n(r)?q(t,e,r):U(t,e)}function L(n,e){if(n===e)W(n,P());else if(t(e)){var r=void 0;try{r=e.then}catch(i){return void W(n,i)}K(n,e,r)}else U(n,e)}function N(t){t._onerror&&t._onerror(t._result),B(t)}function U(t,n){t._state===T&&(t._result=n,t._state=k,0!==t._subscribers.length&&c(B,t))}function W(t,n){t._state===T&&(t._state=M,t._result=n,c(N,t))}function z(t,n,e,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=n,i[o+k]=e,i[o+M]=r,0===o&&t._state&&c(B,t)}function B(t){var n=t._subscribers,e=t._state;if(0!==n.length){for(var r=void 0,i=void 0,o=t._result,s=0;s<n.length;s+=3)r=n[s],i=n[s+e],r?G(e,r,i,o):i(o);t._subscribers.length=0}}function G(t,e,r,i){var o=n(r),s=void 0,u=void 0,c=!0;if(o){try{s=r(i)}catch(a){c=!1,u=a}if(e===s)return void W(e,F())}else s=i;e._state!==T||(o&&c?L(e,s):!1===c?W(e,u):t===k?U(e,s):t===M&&W(e,s))}function H(t,n){try{n((function(n){L(t,n)}),(function(n){W(t,n)}))}catch(e){W(t,e)}}var I=0;function J(){return I++}function Q(t){t[C]=I++,t._state=void 0,t._result=void 0,t._subscribers=[]}function R(){return new Error("Array Methods must be provided an Array")}var V=function(){function t(t,n){this._instanceConstructor=t,this.promise=new t(O),this.promise[C]||Q(this.promise),i(n)?(this.length=n.length,this._remaining=n.length,this._result=new Array(this.length),0===this.length?U(this.promise,this._result):(this.length=this.length||0,this._enumerate(n),0===this._remaining&&U(this.promise,this._result))):W(this.promise,R())}return t.prototype._enumerate=function(t){for(var n=0;this._state===T&&n<t.length;n++)this._eachEntry(t[n],n)},t.prototype._eachEntry=function(t,n){var e=this._instanceConstructor,r=e.resolve;if(r===E){var i=void 0,o=void 0,s=!1;try{i=t.then}catch(c){s=!0,o=c}if(i===x&&t._state!==T)this._settledAt(t._state,n,t._result);else if("function"!==typeof i)this._remaining--,this._result[n]=t;else if(e===et){var u=new e(O);s?W(u,o):K(u,t,i),this._willSettleAt(u,n)}else this._willSettleAt(new e((function(n){return n(t)})),n)}else this._willSettleAt(r(t),n)},t.prototype._settledAt=function(t,n,e){var r=this.promise;r._state===T&&(this._remaining--,t===M?W(r,e):this._result[n]=e),0===this._remaining&&U(r,this._result)},t.prototype._willSettleAt=function(t,n){var e=this;z(t,void 0,(function(t){return e._settledAt(k,n,t)}),(function(t){return e._settledAt(M,n,t)}))},t}();function X(t){return new V(this,t).promise}function Z(t){var n=this;return i(t)?new n((function(e,r){for(var i=t.length,o=0;o<i;o++)n.resolve(t[o]).then(e,r)})):new n((function(t,n){return n(new TypeError("You must pass an array to race."))}))}function $(t){var n=new this(O);return W(n,t),n}function tt(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function nt(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var et=function(){function t(n){this[C]=J(),this._result=this._state=void 0,this._subscribers=[],O!==n&&("function"!==typeof n&&tt(),this instanceof t?H(this,n):nt())}return t.prototype.catch=function(t){return this.then(null,t)},t.prototype.finally=function(t){var e=this,r=e.constructor;return n(t)?e.then((function(n){return r.resolve(t()).then((function(){return n}))}),(function(n){return r.resolve(t()).then((function(){throw n}))})):e.then(t,t)},t}();function rt(){var t=void 0;if("undefined"!==typeof e.g)t=e.g;else if("undefined"!==typeof self)t=self;else try{t=Function("return this")()}catch(i){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;if(n){var r=null;try{r=Object.prototype.toString.call(n.resolve())}catch(i){}if("[object Promise]"===r&&!n.cast)return}t.Promise=et}return et.prototype.then=x,et.all=X,et.race=Z,et.resolve=E,et.reject=$,et._setScheduler=a,et._setAsap=f,et._asap=c,et.polyfill=rt,et.Promise=et,et}()}}]);
//# sourceMappingURL=4242.e887dfe7.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[4461],{16988:function(e,t,o){o.d(t,{a:function(){return c}});var n=o(84867),r=o(80322),i=o(7354),a=o(77933),s=o(39409),l=o(3650),d=o(83063);function c(e,t){void 0===t&&(t={});var o=t.factoryOptions,c=(void 0===o?{}:o).defaultProp,p=function(o){var l=function(e,t,o){var n=["theme","styles","tokens"];return s.X.getSettings(o||n,e,t.customizations)}(t.displayName,r.useContext(a.z),t.fields),d=t.state;d&&(o=(0,n.__assign)((0,n.__assign)({},o),d(o)));var c=o.theme||l.theme,p=u(o,c,t.tokens,l.tokens,o.tokens),m=function(e,t,o){for(var n=[],r=3;r<arguments.length;r++)n[r-3]=arguments[r];return i.TW.apply(void 0,n.map((function(n){return"function"===typeof n?n(e,t,o):n})))}(o,c,p,t.styles,l.styles,o.styles),h=(0,n.__assign)((0,n.__assign)({},o),{styles:m,tokens:p,_defaultStyles:m,theme:c});return e(h)};return p.displayName=t.displayName||e.name,c&&(p.create=(0,l.Bw)(p,{defaultProp:c})),(0,d.k)(p,t.statics),p}function u(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];for(var i={},a=0,s=o;a<s.length;a++){var l=s[a];l&&(l="function"===typeof l?l(e,t):l,Array.isArray(l)&&(l=u.apply(void 0,(0,n.__spreadArray)([e,t],l,!1))),(0,d.k)(i,l))}return i}},3650:function(e,t,o){o.d(t,{Bw:function(){return c},Sk:function(){return p},WL:function(){return d}});var n=o(84867),r=o(80322),i=o(72495),a=o(65808),s=o(16758),l=o(83063);function d(e,t){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=e;return a.isSlot?0===(o=r.Children.toArray(o)).length?a(t):a((0,n.__assign)((0,n.__assign)({},t),{children:o})):r.createElement.apply(r,(0,n.__spreadArray)([e,t],o,!1))}function c(e,t){void 0===t&&(t={});var o=t.defaultProp,a=void 0===o?"children":o;return function(t,o,d,c,u){if(r.isValidElement(o))return o;var p=function(e,t){var o,n;"string"===typeof t||"number"===typeof t||"boolean"===typeof t?((o={})[e]=t,n=o):n=t;return n}(a,o),m=function(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];for(var r={},a=[],d=0,c=o;d<c.length;d++){var u=c[d];a.push(u&&u.className),(0,l.k)(r,u)}return r.className=(0,i.e)([e,a],{rtl:(0,s.jI)(t)}),r}(c,u,t,p);if(d){if(d.component){var h=d.component;return r.createElement(h,(0,n.__assign)({},m))}if(d.render)return d.render(m,e)}return r.createElement(e,(0,n.__assign)({},m))}}var u=(0,a.J9)((function(e){return c(e)}));function p(e,t){var o={},n=e,r=function(e){if(t.hasOwnProperty(e)){var r=function(o){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(r.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return m(t[e],o,n[e],n.slots&&n.slots[e],n._defaultStyles&&n._defaultStyles[e],n.theme)};r.isSlot=!0,o[e]=r}};for(var i in t)r(i);return o}function m(e,t,o,n,r,i){return void 0!==e.create?e.create(t,o,n,r):u(e)(t,o,n,r,i)}},83063:function(e,t,o){o.d(t,{k:function(){return n}});var n=o(84867).__assign},6589:function(e,t,o){o.d(t,{S:function(){return x}});var n=o(75425),r=o(84867),i=o(80322),a=o(66848),s=o(51667),l=o(30749),d=o(26858),c=o(13578),u=o(12300),p=(0,d.Z)(),m=i.forwardRef((function(e,t){var o=e.disabled,n=e.required,d=e.inputProps,m=e.name,h=e.ariaLabel,f=e.ariaLabelledBy,g=e.ariaDescribedBy,b=e.ariaPositionInSet,v=e.ariaSetSize,_=e.title,x=e.checkmarkIconProps,y=e.styles,C=e.theme,k=e.className,w=e.boxSide,S=void 0===w?"start":w,I=(0,a.B)("checkbox-",e.id),N=i.useRef(null),T=(0,s.a)(N,t),F=i.useRef(null),R=(0,l.k)(e.checked,e.defaultChecked,e.onChange),O=R[0],D=R[1],E=(0,l.k)(e.indeterminate,e.defaultIndeterminate),P=E[0],H=E[1];(0,c.vk)(N);var B=p(y,{theme:C,className:k,disabled:o,indeterminate:P,checked:O,reversed:"start"!==S,isUsingCustomLabelRender:!!e.onRenderLabel}),W=i.useCallback((function(e){P?(D(!!O,e),H(!1)):D(!O,e)}),[D,H,P,O]),L=i.useCallback((function(e){return e&&e.label?i.createElement("span",{className:B.text,title:e.title},e.label):null}),[B.text]),A=i.useCallback((function(e){if(F.current){var t=!!e;F.current.indeterminate=t,H(t)}}),[H]);!function(e,t,o,n,r){i.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},get indeterminate(){return!!o},set indeterminate(e){n(e)},focus:function(){r.current&&r.current.focus()}}}),[r,t,o,n])}(e,O,P,A,F),i.useEffect((function(){return A(P)}),[A,P]);var M=e.onRenderLabel||L,z=P?"mixed":void 0,G=(0,r.__assign)((0,r.__assign)({className:B.input,type:"checkbox"},d),{checked:!!O,disabled:o,required:n,name:m,id:I,title:_,onChange:W,"aria-disabled":o,"aria-label":h,"aria-labelledby":f,"aria-describedby":g,"aria-posinset":b,"aria-setsize":v,"aria-checked":z});return i.createElement("div",{className:B.root,title:_,ref:T},i.createElement("input",(0,r.__assign)({},G,{ref:F,title:_,"data-ktp-execute-target":!0})),i.createElement("label",{className:B.label,htmlFor:I},i.createElement("div",{className:B.checkbox,"data-ktp-target":!0},i.createElement(u.I,(0,r.__assign)({iconName:"CheckMark"},x,{className:B.checkmark}))),M(e,L)))}));m.displayName="CheckboxBase";var h=o(7354),f=o(40950),g={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},b="20px",v="200ms",_="cubic-bezier(.4, 0, .23, 1)",x=(0,n.I)(m,(function(e){var t,o,n,i,a,s,l,d,c,u,p,m,x,y,C,k,w,S,I=e.className,N=e.theme,T=e.reversed,F=e.checked,R=e.disabled,O=e.isUsingCustomLabelRender,D=e.indeterminate,E=N.semanticColors,P=N.effects,H=N.palette,B=N.fonts,W=(0,h.Km)(g,N),L=E.inputForegroundChecked,A=H.neutralSecondary,M=H.neutralPrimary,z=E.inputBackgroundChecked,G=E.inputBackgroundChecked,K=E.disabledBodySubtext,j=E.inputBorderHovered,V=E.inputBackgroundCheckedHovered,Z=E.inputBackgroundChecked,q=E.inputBackgroundCheckedHovered,U=E.inputBackgroundCheckedHovered,Q=E.inputTextHovered,Y=E.disabledBodySubtext,J=E.bodyText,X=E.disabledText,$=[(t={content:'""',borderRadius:P.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:R?K:z,transitionProperty:"border-width, border, border-color",transitionDuration:v,transitionTimingFunction:_},t[h.up]={borderColor:"WindowText"},t)];return{root:[W.root,{position:"relative",display:"flex"},T&&"reversed",F&&"is-checked",!R&&"is-enabled",R&&"is-disabled",!R&&[!F&&(o={},o[":hover .".concat(W.checkbox)]=(n={borderColor:j},n[h.up]={borderColor:"Highlight"},n),o[":focus .".concat(W.checkbox)]={borderColor:j},o[":hover .".concat(W.checkmark)]=(i={color:A,opacity:"1"},i[h.up]={color:"Highlight"},i),o),F&&!D&&(a={},a[":hover .".concat(W.checkbox)]={background:q,borderColor:U},a[":focus .".concat(W.checkbox)]={background:q,borderColor:U},a[h.up]=(s={},s[":hover .".concat(W.checkbox)]={background:"Highlight",borderColor:"Highlight"},s[":focus .".concat(W.checkbox)]={background:"Highlight"},s[":focus:hover .".concat(W.checkbox)]={background:"Highlight"},s[":focus:hover .".concat(W.checkmark)]={color:"Window"},s[":hover .".concat(W.checkmark)]={color:"Window"},s),a),D&&(l={},l[":hover .".concat(W.checkbox,", :hover .").concat(W.checkbox,":after")]=(d={borderColor:V},d[h.up]={borderColor:"WindowText"},d),l[":focus .".concat(W.checkbox)]={borderColor:V},l[":hover .".concat(W.checkmark)]={opacity:"0"},l),(c={},c[":hover .".concat(W.text,", :focus .").concat(W.text)]=(u={color:Q},u[h.up]={color:R?"GrayText":"WindowText"},u),c)],I],input:(p={position:"absolute",background:"none",opacity:0},p[".".concat(f.Y2," &:focus + label::before")]=(m={outline:"1px solid "+N.palette.neutralSecondary,outlineOffset:"2px"},m[h.up]={outline:"1px solid WindowText"},m),p),label:[W.label,N.fonts.medium,{display:"flex",alignItems:O?"center":"flex-start",cursor:R?"default":"pointer",position:"relative",userSelect:"none"},T&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[W.checkbox,(x={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:b,width:b,border:"1px solid ".concat(M),borderRadius:P.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:v,transitionTimingFunction:_,overflow:"hidden",":after":D?$:null},x[h.up]=(0,r.__assign)({borderColor:"WindowText"},(0,h.Qg)()),x),D&&{borderColor:z},T?{marginLeft:4}:{marginRight:4},!R&&!D&&F&&(y={background:Z,borderColor:G},y[h.up]={background:"Highlight",borderColor:"Highlight"},y),R&&(C={borderColor:K},C[h.up]={borderColor:"GrayText"},C),F&&R&&(k={background:Y,borderColor:K},k[h.up]={background:"Window"},k)],checkmark:[W.checkmark,(w={opacity:F&&!D?"1":"0",color:L},w[h.up]=(0,r.__assign)({color:R?"GrayText":"Window"},(0,h.Qg)()),w)],text:[W.text,(S={color:R?X:J,fontSize:B.medium.fontSize,lineHeight:"20px"},S[h.up]=(0,r.__assign)({color:R?"GrayText":"WindowText"},(0,h.Qg)()),S),T?{marginRight:4}:{marginLeft:4}]}}),void 0,{scope:"Checkbox"})},66298:function(e,t,o){o.d(t,{n:function(){return B}});var n=o(75425),r=o(84867),i=o(80322),a=o(42682),s=o(26858),l=o(93177),d=o(40950),c=o(33347),u=o(13578),p=o(92256),m=o(12300),h=o(48038),f=o(32133),g=o(16711),b=(0,s.Z)(),v={imageSize:{width:32,height:32}},_=function(e){var t=(0,h.N)((0,r.__assign)((0,r.__assign)({},v),{key:e.itemKey}),e),o=t.ariaLabel,n=t.focused,a=t.required,s=t.theme,l=t.iconProps,d=t.imageSrc,u=t.imageSize,_=t.disabled,x=t.checked,y=t.id,C=t.styles,k=t.name,w=(0,r.__rest)(t,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),S=b(C,{theme:s,hasIcon:!!l,hasImage:!!d,checked:x,disabled:_,imageIsLarge:!!d&&(u.width>71||u.height>71),imageSize:u,focused:n}),I=(0,c.G1)(w,c.QQ),N=I.className,T=(0,r.__rest)(I,["className"]),F=function(){return i.createElement("span",{id:t.labelId,className:"ms-ChoiceFieldLabel"},t.text)},R=function(){var e=t.imageAlt,o=void 0===e?"":e,n=t.selectedImageSrc,a=(t.onRenderLabel?(0,f.j)(t.onRenderLabel,F):F)((0,r.__assign)((0,r.__assign)({},t),{key:t.itemKey}));return i.createElement("label",{htmlFor:y,className:S.field},d&&i.createElement("div",{className:S.innerField},i.createElement("div",{className:S.imageWrapper},i.createElement(p._,(0,r.__assign)({src:d,alt:o},u))),i.createElement("div",{className:S.selectedImageWrapper},i.createElement(p._,(0,r.__assign)({src:n,alt:o},u)))),l&&i.createElement("div",{className:S.innerField},i.createElement("div",{className:S.iconWrapper},i.createElement(m.I,(0,r.__assign)({},l)))),d||l?i.createElement("div",{className:S.labelWrapper},a):a)},O=t.onRenderField,D=void 0===O?R:O;return i.createElement("div",{className:S.root},i.createElement("div",{className:S.choiceFieldWrapper},i.createElement("input",(0,r.__assign)({"aria-label":o,id:y,className:(0,g.A)(S.input,N),type:"radio",name:k,disabled:_,checked:x,required:a},T,{onChange:function(e){var o;null===(o=t.onChange)||void 0===o||o.call(t,e,(0,r.__assign)((0,r.__assign)({},t),{key:t.itemKey}))},onFocus:function(e){var o;null===(o=t.onFocus)||void 0===o||o.call(t,e,(0,r.__assign)((0,r.__assign)({},t),{key:t.itemKey}))},onBlur:function(e){var o;null===(o=t.onBlur)||void 0===o||o.call(t,e)}})),D((0,r.__assign)((0,r.__assign)({},t),{key:t.itemKey}),R)))};_.displayName="ChoiceGroupOption";var x=o(7354),y={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"},C="200ms",k="cubic-bezier(.4, 0, .23, 1)";function w(e,t){var o,n;return["is-inFocus",{selectors:(o={},o[".".concat(d.Y2," &")]={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:(n={},n[x.up]={borderColor:"WindowText",borderWidth:t?1:2},n)}}},o)}]}function S(e,t,o){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:C,transitionTimingFunction:"ease",selectors:{".ms-Image":{display:"inline-block",borderStyle:"none"}}},(o?!e:e)&&["is-hidden",{position:"absolute",left:0,top:0,width:"100%",height:"100%",overflow:"hidden",opacity:0}]]}var I=(0,n.I)(_,(function(e){var t,o,n,i,a,s=e.theme,l=e.hasIcon,d=e.hasImage,c=e.checked,u=e.disabled,p=e.imageIsLarge,m=e.focused,h=e.imageSize,f=s.palette,g=s.semanticColors,b=s.fonts,v=(0,x.Km)(y,s),_=f.neutralPrimary,I=g.inputBorderHovered,N=g.inputBackgroundChecked,T=f.themeDark,F=g.disabledBodySubtext,R=g.bodyBackground,O=f.neutralSecondary,D=g.inputBackgroundChecked,E=f.themeDark,P=g.disabledBodySubtext,H=f.neutralDark,B=g.focusBorder,W=g.inputBorderHovered,L=g.inputBackgroundChecked,A=f.themeDark,M=f.neutralLighter,z={selectors:{".ms-ChoiceFieldLabel":{color:H},":before":{borderColor:c?T:I},":after":[!l&&!d&&!c&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:O},c&&{borderColor:E,background:E}]}},G={borderColor:c?A:W,selectors:{":before":{opacity:1,borderColor:c?T:I}}},K=[{content:'""',display:"inline-block",backgroundColor:R,borderWidth:1,borderStyle:"solid",borderColor:_,width:20,height:20,fontWeight:"normal",position:"absolute",top:0,left:0,boxSizing:"border-box",transitionProperty:"border-color",transitionDuration:C,transitionTimingFunction:k,borderRadius:"50%"},u&&{borderColor:F,selectors:(t={},t[x.up]=(0,r.__assign)({borderColor:"GrayText",background:"Window"},(0,x.Qg)()),t)},c&&{borderColor:u?F:N,selectors:(o={},o[x.up]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},o)},(l||d)&&{top:3,right:3,left:"auto",opacity:c?1:0}],j=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:C,transitionTimingFunction:k,boxSizing:"border-box"},c&&{borderWidth:5,borderStyle:"solid",borderColor:u?P:D,background:D,left:5,top:5,width:10,height:10,selectors:(n={},n[x.up]={borderColor:"Highlight",forcedColorAdjust:"none"},n)},c&&(l||d)&&{top:8,right:8,left:"auto"}];return{root:[v.root,s.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:g.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!l&&!d&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},d&&"ms-ChoiceField--image",l&&"ms-ChoiceField--icon",(l||d)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:M,height:"100%"}],choiceFieldWrapper:[v.choiceFieldWrapper,m&&w(B,l||d)],input:[v.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},u&&"is-disabled"],field:[v.field,c&&v.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!u&&z,":focus":!u&&z,":before":K,":after":j}},l&&"ms-ChoiceField--icon",d&&"ms-ChoiceField-field--image",(l||d)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:C,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},c&&{borderColor:L},(l||d)&&!u&&{selectors:{":hover":G,":focus":G}},u&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:g.disabledBodyText,selectors:(i={},i[x.up]=(0,r.__assign)({color:"GrayText"},(0,x.Qg)()),i)}}},c&&u&&{borderColor:M}],innerField:[v.innerField,d&&{height:h.height,width:h.width},(l||d)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(l||d)&&p&&{paddingLeft:24,paddingRight:24},(l||d)&&u&&{opacity:.25,selectors:(a={},a[x.up]={color:"GrayText",opacity:1},a)}],imageWrapper:S(!1,v.imageWrapper,c),selectedImageWrapper:S(!0,v.imageWrapper,c),iconWrapper:[v.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[v.labelWrapper,b.medium,(l||d)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:32,lineHeight:15,maxWidth:2*h.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}}),void 0,{scope:"ChoiceGroupOption"}),N=o(66848),T=o(30749),F=o(51667),R=(0,s.Z)(),O=function(e,t){return"".concat(t,"-").concat(e.key)},D=function(e,t){return void 0===t?void 0:(0,l.I6)(e,(function(e){return e.key===t}))},E=function(e,t,o,n){var r=D(e,t)||e.filter((function(e){return!e.disabled}))[0],i=r&&document.getElementById(O(r,o));i&&(i.focus(),(0,d.Fy)(!0,i,n))},P=i.forwardRef((function(e,t){var o=e.className,n=e.theme,s=e.styles,l=e.options,d=void 0===l?[]:l,p=e.label,m=e.required,h=e.disabled,f=e.name,g=e.defaultSelectedKey,b=e.componentRef,v=e.onChange,_=(0,N.B)("ChoiceGroup"),x=(0,N.B)("ChoiceGroupLabel"),y=(0,c.G1)(e,c.JM,["onChange","className","required"]),C=R(s,{theme:n,className:o,optionsContainIconOrImage:d.some((function(e){return!(!e.iconProps&&!e.imageSrc)}))}),k=e.ariaLabelledBy||(p?x:e["aria-labelledby"]),w=(0,T.k)(e.selectedKey,g),S=w[0],P=w[1],H=i.useState(),B=H[0],W=H[1],L=i.useRef(null),A=(0,F.a)(L,t),M=i.useContext(u.dM);!function(e,t,o,n,r){i.useImperativeHandle(n,(function(){return{get checkedOption(){return D(e,t)},focus:function(){E(e,t,o,r)}}}),[e,t,o,r])}(d,S,_,b,null===M||void 0===M?void 0:M.registeredProviders),(0,u.vk)(L);var z=i.useCallback((function(e,t){var o;t&&(W(t.itemKey),null===(o=t.onFocus)||void 0===o||o.call(t,e))}),[]),G=i.useCallback((function(e,t){var o;W(void 0),null===(o=null===t||void 0===t?void 0:t.onBlur)||void 0===o||o.call(t,e)}),[]),K=i.useCallback((function(e,t){var o;t&&(P(t.itemKey),null===(o=t.onChange)||void 0===o||o.call(t,e),null===v||void 0===v||v(e,D(d,t.itemKey)))}),[v,d,P]),j=i.useCallback((function(e){(function(e){return e.relatedTarget instanceof HTMLElement&&"true"===e.relatedTarget.dataset.isFocusTrapZoneBumper})(e)&&E(d,S,_,null===M||void 0===M?void 0:M.registeredProviders)}),[d,S,_,M]);return i.createElement("div",(0,r.__assign)({className:C.root},y,{ref:A}),i.createElement("div",(0,r.__assign)({role:"radiogroup"},k&&{"aria-labelledby":k},{onFocus:j}),p&&i.createElement(a.J,{className:C.label,required:m,id:x,disabled:h},p),i.createElement("div",{className:C.flexContainer},d.map((function(e){return i.createElement(I,(0,r.__assign)({itemKey:e.key},e,{key:e.key,onBlur:G,onFocus:z,onChange:K,focused:e.key===B,checked:e.key===S,disabled:e.disabled||h,id:O(e,_),labelId:e.labelId||"".concat(x,"-").concat(e.key),name:f||_,required:m}))})))))}));P.displayName="ChoiceGroup";var H={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},B=(0,n.I)(P,(function(e){var t=e.className,o=e.optionsContainIconOrImage,n=e.theme,r=(0,x.Km)(H,n);return{root:[t,r.root,n.fonts.medium,{display:"block"}],flexContainer:[r.flexContainer,o&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}}),void 0,{scope:"ChoiceGroup"})},12318:function(e,t,o){o.d(t,{m:function(){return X}});var n=o(75425),r=o(84867),i=o(80322),a=o(26858),s=o(93177),l=o(46823),d=o(16711),c=o(16114),u=o(54121),p=o(67471),m=o(81708),h=o(50453),f=o(33347),g=o(67223),b=o(84022),v=o(60478),_=o(43639),x=o(20852),y=o(27630),C=o(3564),k=function(){function e(){this._size=0}return e.prototype.updateOptions=function(e){for(var t=[],o=[],n=0,i=0;i<e.length;i++){var a=e[i],s=a.itemType,l=a.hidden;s===C.W.Divider||s===C.W.Header?(t.push(i),o.push(i)):l?o.push(i):n++}this._size=n,this._displayOnlyOptionsCache=t,this._notSelectableOptionsCache=o,this._cachedOptions=(0,r.__spreadArray)([],e,!0)},Object.defineProperty(e.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),e.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._notSelectableOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index ".concat(e," is not a selectable element."));if(this._notSelectableOptionsCache[t]!==e)return e-t+1}},e}(),w=o(84218),S=o(90973),I=o(12300),N=o(42682),T=o(21441),F=o(89233),R=o(25418),O=o(91083),D=o(6589),E=o(48038),P=o(84920),H=o(51667),B=(0,a.Z)(),W={options:[]};var L=i.forwardRef((function(e,t){var o=(0,E.N)(W,e),n=i.useRef(null),a=(0,H.a)(t,n),l=(0,F.z)(n,o.responsiveMode),d=function(e){var t,o=e.defaultSelectedKeys,n=e.selectedKeys,r=e.defaultSelectedKey,a=e.selectedKey,l=e.options,d=e.multiSelect,c=(0,P.Z)(l),u=i.useState([]),p=u[0],m=u[1],h=l!==c;t=d?h&&void 0!==o?o:n:h&&void 0!==r?r:a;var f=(0,P.Z)(t);return i.useEffect((function(){var e=function(){return l.map((function(e,t){return e.selected?t:-1})).filter((function(e){return-1!==e}))},o=function(e){return(0,s.SL)(l,(function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected}))};void 0===t&&c||t===f&&!h||m(function(){if(void 0===t)return d?e():-1!==(a=o(null))?[a]:[];if(!Array.isArray(t))return-1!==(a=o(t))?[a]:[];for(var n=[],r=0,i=t;r<i.length;r++){var a,s=i[r];-1!==(a=o(s))&&n.push(a)}return n}())}),[h,d,c,f,l,t]),[p,m]}(o),c=d[0],u=d[1];return i.createElement(K,(0,r.__assign)({},o,{responsiveMode:l,hoisted:{rootRef:a,selectedIndices:c,setSelectedIndices:u}}))}));L.displayName="DropdownBase";var A,M,z,G,K=function(e){function t(t){var o=e.call(this,t)||this;o._host=i.createRef(),o._focusZone=i.createRef(),o._dropDown=i.createRef(),o._scrollIdleDelay=250,o._sizePosCache=new k,o._requestAnimationFrame=function(e){var t;return function(o){t||(t=new Set,(0,l.i)(e,{componentWillUnmount:function(){t.forEach((function(e){return cancelAnimationFrame(e)}))}}));var n=requestAnimationFrame((function(){t.delete(n),o()}));t.add(n)}}(o),o.dismissMenu=function(){o.state.isOpen&&o.setState({isOpen:!1})},o._onChange=function(e,t,n,i,a){var s=o.props,l=s.onChange,d=s.onChanged;if(l||d){var c=a?(0,r.__assign)((0,r.__assign)({},t[n]),{selected:!i}):t[n];l&&l((0,r.__assign)((0,r.__assign)({},e),{target:o._dropDown.current}),c,n),d&&d(c,n)}},o._getPlaceholder=function(){return o.props.placeholder||o.props.placeHolder},o._getTitle=function(e,t){var n=o.props.multiSelectDelimiter,r=void 0===n?", ":n;return e.map((function(e){return e.text})).join(r)},o._onRenderTitle=function(e){return i.createElement(i.Fragment,null,o._getTitle(e))},o._onRenderPlaceholder=function(e){return o._getPlaceholder()?i.createElement(i.Fragment,null,o._getPlaceholder()):null},o._onRenderContainer=function(e){var t=e.calloutProps,n=e.panelProps,a=o.props,s=a.responsiveMode,l=a.dropdownWidth,d=s<=R.AR.medium,c={firstFocusableTarget:"#".concat(o._listId,"1")},u=o._classNames.subComponentStyles?o._classNames.subComponentStyles.panel:void 0,p=void 0,m=void 0;return"auto"===l?m=o._dropDown.current?o._dropDown.current.clientWidth:0:p=l||(o._dropDown.current?o._dropDown.current.clientWidth:0),d?i.createElement(T.Z,(0,r.__assign)({closeButtonAriaLabel:"Close",focusTrapZoneProps:c,hasCloseButton:!0,isOpen:!0,isLightDismiss:!0,onDismiss:o._onDismiss,styles:u},n),o._renderFocusableList(e)):i.createElement(_.P,(0,r.__assign)({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:x.A.bottomLeftEdge,calloutWidth:p,calloutMinWidth:m},t,{className:o._classNames.callout,target:o._dropDown.current,onDismiss:o._onDismiss,onScroll:o._onScroll,onPositioned:o._onPositioned}),o._renderFocusableList(e))},o._onRenderCaretDown=function(e){return i.createElement(I.I,{className:o._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},o._onRenderList=function(e){var t=e.onRenderItem,n=void 0===t?o._onRenderItem:t,a={items:[]},s=[],l=function(){var e=a.id?[i.createElement("div",{role:"group",key:a.id,"aria-labelledby":a.id},a.items)]:a.items;s=(0,r.__spreadArray)((0,r.__spreadArray)([],s,!0),e,!0),a={items:[]}};return e.options.forEach((function(e,t){!function(e,t){switch(e.itemType){case C.W.Header:a.items.length>0&&l();var i=o._id+e.key;a.items.push(n((0,r.__assign)((0,r.__assign)({id:i},e),{index:t}),o._onRenderItem)),a.id=i;break;case C.W.Divider:t>0&&a.items.push(n((0,r.__assign)((0,r.__assign)({},e),{index:t}),o._onRenderItem)),a.items.length>0&&l();break;default:a.items.push(n((0,r.__assign)((0,r.__assign)({},e),{index:t}),o._onRenderItem))}}(e,t)})),a.items.length>0&&l(),i.createElement(i.Fragment,null,s)},o._onRenderItem=function(e){switch(e.itemType){case C.W.Divider:return o._renderSeparator(e);case C.W.Header:return o._renderHeader(e);default:return o._renderOption(e)}},o._renderOption=function(e){var t,n=o.props,a=n.onRenderOption,s=void 0===a?o._onRenderOption:a,l=n.hoisted.selectedIndices,c=void 0===l?[]:l,u=!(void 0===e.index||!c)&&c.indexOf(e.index)>-1,p=e.hidden?o._classNames.dropdownItemHidden:u&&!0===e.disabled?o._classNames.dropdownItemSelectedAndDisabled:u?o._classNames.dropdownItemSelected:!0===e.disabled?o._classNames.dropdownItemDisabled:o._classNames.dropdownItem,m=e.title,h=o._listId+e.index,f=null!==(t=e.id)&&void 0!==t?t:h+"-label",g=o._classNames.subComponentStyles?o._classNames.subComponentStyles.multiSelectItem:void 0;return o.props.multiSelect?i.createElement(D.S,{id:h,key:e.key,disabled:e.disabled,onChange:o._onItemClick(e),inputProps:(0,r.__assign)({"aria-selected":u,onMouseEnter:o._onItemMouseEnter.bind(o,e),onMouseLeave:o._onMouseItemLeave.bind(o,e),onMouseMove:o._onItemMouseMove.bind(o,e),role:"option"},{"data-index":e.index,"data-is-focusable":!(e.disabled||e.hidden)}),label:e.text,title:m,onRenderLabel:o._onRenderItemLabel.bind(o,(0,r.__assign)((0,r.__assign)({},e),{id:f})),className:(0,d.A)(p,"is-multi-select"),checked:u,styles:g,ariaPositionInSet:e.hidden?void 0:o._sizePosCache.positionInSet(e.index),ariaSetSize:e.hidden?void 0:o._sizePosCache.optionSetSize,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:f}):i.createElement(y.c,{id:h,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:p,onClick:o._onItemClick(e),onMouseEnter:o._onItemMouseEnter.bind(o,e),onMouseLeave:o._onMouseItemLeave.bind(o,e),onMouseMove:o._onItemMouseMove.bind(o,e),role:"option","aria-selected":u?"true":"false",ariaLabel:e.ariaLabel,title:m,"aria-posinset":o._sizePosCache.positionInSet(e.index),"aria-setsize":o._sizePosCache.optionSetSize},s(e,o._onRenderOption))},o._onRenderOption=function(e){return i.createElement("span",{className:o._classNames.dropdownOptionText},e.text)},o._onRenderMultiselectOption=function(e){return i.createElement("span",{id:e.id,"aria-hidden":"true",className:o._classNames.dropdownOptionText},e.text)},o._onRenderItemLabel=function(e){var t=o.props.onRenderOption;return(void 0===t?o._onRenderMultiselectOption:t)(e,o._onRenderMultiselectOption)},o._onPositioned=function(e){o._focusZone.current&&o._requestAnimationFrame((function(){var e=o.props.hoisted.selectedIndices;if(o._focusZone.current)if(!o._hasBeenPositioned&&e&&e[0]&&!o.props.options[e[0]].disabled){var t=(0,c.Y)().getElementById("".concat(o._id,"-list").concat(e[0]));t&&o._focusZone.current.focusElement(t),o._hasBeenPositioned=!0}else o._focusZone.current.focus()})),o.state.calloutRenderEdge&&o.state.calloutRenderEdge===e.targetEdge||o.setState({calloutRenderEdge:e.targetEdge})},o._onItemClick=function(e){return function(t){e.disabled||(o.setSelectedIndex(t,e.index),o.props.multiSelect||o.setState({isOpen:!1}))}},o._onScroll=function(){o._isScrollIdle||void 0===o._scrollIdleTimeoutId?o._isScrollIdle=!1:(clearTimeout(o._scrollIdleTimeoutId),o._scrollIdleTimeoutId=void 0),o._scrollIdleTimeoutId=window.setTimeout((function(){o._isScrollIdle=!0}),o._scrollIdleDelay)},o._onMouseItemLeave=function(e,t){if(!o._shouldIgnoreMouseEvent()&&o._host.current)if(o._host.current.setActive)try{o._host.current.setActive()}catch(n){}else o._host.current.focus()},o._onDismiss=function(){o.setState({isOpen:!1})},o._onDropdownBlur=function(e){o._isDisabled()||o.state.isOpen||(o.setState({hasFocus:!1}),o.props.onBlur&&o.props.onBlur(e))},o._onDropdownKeyDown=function(e){if(!o._isDisabled()&&(o._lastKeyDownWasAltOrMeta=o._isAltOrMeta(e),!o.props.onKeyDown||(o.props.onKeyDown(e),!e.defaultPrevented))){var t,n=o.props.hoisted.selectedIndices.length?o.props.hoisted.selectedIndices[0]:-1,r=e.altKey||e.metaKey,i=o.state.isOpen;switch(e.which){case u.c.enter:o.setState({isOpen:!i});break;case u.c.escape:if(!i)return;o.setState({isOpen:!1});break;case u.c.up:if(r){if(i){o.setState({isOpen:!1});break}return}o.props.multiSelect?o.setState({isOpen:!0}):o._isDisabled()||(t=o._moveIndex(e,-1,n-1,n));break;case u.c.down:r&&(e.stopPropagation(),e.preventDefault()),r&&!i||o.props.multiSelect?o.setState({isOpen:!0}):o._isDisabled()||(t=o._moveIndex(e,1,n+1,n));break;case u.c.home:o.props.multiSelect||(t=o._moveIndex(e,1,0,n));break;case u.c.end:o.props.multiSelect||(t=o._moveIndex(e,-1,o.props.options.length-1,n));break;case u.c.space:break;default:return}t!==n&&(e.stopPropagation(),e.preventDefault())}},o._onDropdownKeyUp=function(e){if(!o._isDisabled()){var t=o._shouldHandleKeyUp(e),n=o.state.isOpen;o.props.onKeyUp&&(o.props.onKeyUp(e),e.defaultPrevented)||(e.which===u.c.space?(o.setState({isOpen:!n}),e.stopPropagation(),e.preventDefault()):t&&n&&o.setState({isOpen:!1}))}},o._onZoneKeyDown=function(e){var t,n,r;o._lastKeyDownWasAltOrMeta=o._isAltOrMeta(e);var i=e.altKey||e.metaKey;switch(e.which){case u.c.up:i?o.setState({isOpen:!1}):o._host.current&&(r=(0,p.dm)(o._host.current,o._host.current.lastChild,!0));break;case u.c.home:case u.c.end:case u.c.pageUp:case u.c.pageDown:break;case u.c.down:!i&&o._host.current&&(r=(0,p.j5)(o._host.current,o._host.current.firstChild,!0));break;case u.c.escape:o.setState({isOpen:!1});break;case u.c.tab:o.setState({isOpen:!1});var a=(0,c.Y)();a&&(e.shiftKey?null===(t=(0,p.yv)(a.body,o._dropDown.current,!1,!1,!0,!0))||void 0===t||t.focus():null===(n=(0,p.eX)(a.body,o._dropDown.current,!1,!1,!0,!0))||void 0===n||n.focus());break;default:return}r&&r.focus(),e.stopPropagation(),e.preventDefault()},o._onZoneKeyUp=function(e){o._shouldHandleKeyUp(e)&&o.state.isOpen&&(o.setState({isOpen:!1}),e.preventDefault())},o._onDropdownClick=function(e){if(!o.props.onClick||(o.props.onClick(e),!e.defaultPrevented)){var t=o.state.isOpen;o._isDisabled()||o._shouldOpenOnFocus()||o.setState({isOpen:!t}),o._isFocusedByClick=!1}},o._onDropdownMouseDown=function(){o._isFocusedByClick=!0},o._onFocus=function(e){if(!o._isDisabled()){o.props.onFocus&&o.props.onFocus(e);var t={hasFocus:!0};o._shouldOpenOnFocus()&&(t.isOpen=!0),o.setState(t)}},o._isDisabled=function(){var e=o.props.disabled,t=o.props.isDisabled;return void 0===e&&(e=t),e},o._onRenderLabel=function(e){var t=e.label,n=e.required,r=e.disabled,a=o._classNames.subComponentStyles?o._classNames.subComponentStyles.label:void 0;return t?i.createElement(N.J,{className:o._classNames.label,id:o._labelId,required:n,styles:a,disabled:r},t):null},(0,m.f)(o);t.multiSelect,t.selectedKey,t.selectedKeys,t.defaultSelectedKey,t.defaultSelectedKeys;var n=t.options;return o._id=t.id||(0,h.O)("Dropdown"),o._labelId=o._id+"-label",o._listId=o._id+"-list",o._optionId=o._id+"-option",o._isScrollIdle=!0,o._hasBeenPositioned=!1,o._sizePosCache.updateOptions(n),o.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},o}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props,t=e.options,o=e.hoisted.selectedIndices;return(0,O.D)(t,o)},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this._id,t=this.props,o=t.className,n=t.label,a=t.options,s=t.ariaLabel,l=t.required,d=t.errorMessage,c=t.styles,u=t.theme,p=t.panelProps,m=t.calloutProps,h=t.onRenderTitle,b=void 0===h?this._getTitle:h,v=t.onRenderContainer,_=void 0===v?this._onRenderContainer:v,x=t.onRenderCaretDown,y=void 0===x?this._onRenderCaretDown:x,C=t.onRenderLabel,k=void 0===C?this._onRenderLabel:C,w=t.onRenderItem,S=void 0===w?this._onRenderItem:w,I=t.hoisted.selectedIndices,N=this.state,T=N.isOpen,F=N.calloutRenderEdge,R=N.hasFocus,D=t.onRenderPlaceholder||t.onRenderPlaceHolder||this._getPlaceholder;a!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(a);var E=(0,O.D)(a,I),P=(0,f.G1)(t,f.JM),H=this._isDisabled(),W=e+"-errorMessage";this._classNames=B(c,{theme:u,className:o,hasError:!!(d&&d.length>0),hasLabel:!!n,isOpen:T,required:l,disabled:H,isRenderingPlaceholder:!E.length,panelClassName:p?p.className:void 0,calloutClassName:m?m.className:void 0,calloutRenderEdge:F});var L=!!d&&d.length>0;return i.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":T?this._listId:void 0},k(this.props,this._onRenderLabel),i.createElement("div",(0,r.__assign)({"data-is-focusable":!H,"data-ktp-target":!0,ref:this._dropDown,id:e,tabIndex:H?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":T?"true":"false","aria-label":s,"aria-labelledby":n&&!s?(0,g._)(this._labelId,this._optionId):void 0,"aria-describedby":L?this._id+"-errorMessage":void 0,"aria-required":l,"aria-disabled":H,"aria-controls":T?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}),i.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":R?"polite":void 0,"aria-atomic":!!R||void 0,"aria-invalid":L},E.length?b(E,this._onRenderTitle):D(t,this._onRenderPlaceholder)),i.createElement("span",{className:this._classNames.caretDownWrapper},y(t,this._onRenderCaretDown))),T&&_((0,r.__assign)((0,r.__assign)({},t),{onDismiss:this._onDismiss,onRenderItem:S}),this._onRenderContainer),L&&i.createElement("div",{role:"alert",id:W,className:this._classNames.errorMessage},d))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var o=this.props,n=o.options,r=o.selectedKey,i=o.selectedKeys,a=o.multiSelect,s=o.notifyOnReselect,l=o.hoisted.selectedIndices,d=void 0===l?[]:l,c=!!d&&d.indexOf(t)>-1,u=[];if(t=Math.max(0,Math.min(n.length-1,t)),void 0===r&&void 0===i){if(a||s||t!==d[0]){if(a)if(u=d?this._copyArray(d):[],c){var p=u.indexOf(t);p>-1&&u.splice(p,1)}else u.push(t);else u=[t];e.persist(),this.props.hoisted.setSelectedIndices(u),this._onChange(e,n,t,c,a)}}else this._onChange(e,n,t,c,a)},t.prototype._copyArray=function(e){for(var t=[],o=0,n=e;o<n.length;o++){var r=n[o];t.push(r)}return t},t.prototype._moveIndex=function(e,t,o,n){var r=this.props.options;if(n===o||0===r.length)return n;o>=r.length?o=0:o<0&&(o=r.length-1);for(var i=0;r[o].itemType===C.W.Header||r[o].itemType===C.W.Divider||r[o].disabled;){if(i>=r.length)return n;o+t<0?o=r.length:o+t>=r.length&&(o=-1),o+=t,i++}return this.setSelectedIndex(e,o),o},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,o=void 0===t?this._onRenderList:t,n=e.label,r=e.ariaLabel,a=e.multiSelect;return i.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},i.createElement(w.R,{ref:this._focusZone,direction:S.E.vertical,id:this._listId,className:this._classNames.dropdownItems,role:"listbox","aria-label":r,"aria-labelledby":n&&!r?this._labelId:void 0,"aria-multiselectable":a},o(e,this._onRenderList)))},t.prototype._renderSeparator=function(e){var t=e.index,o=e.key,n=e.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return t>0?i.createElement("div",{role:"presentation",key:o,className:n}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,o=void 0===t?this._onRenderOption:t,n=e.key,r=e.id,a=e.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return i.createElement("div",{id:r,key:n,className:a},o(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},t.prototype._onItemMouseMove=function(e,t){var o=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&document.activeElement!==o&&o.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._isAltOrMeta=function(e){return e.which===u.c.alt||"Meta"===e.key},t.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!((0,b.c)()||(0,v.u)())},t.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},t.defaultProps={options:[]},t}(i.Component),j=o(40950),V=o(59772),Z=o(7354),q={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"},U=((A={})["".concat(Z.up,", ").concat(Z.hT.replace("@media ",""))]=(0,r.__assign)({},(0,Z.Qg)()),A),Q={selectors:(0,r.__assign)((M={},M[Z.up]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},M[".ms-Checkbox-checkbox"]=(z={},z[Z.up]={borderColor:"HighlightText"},z),M),U)},Y={selectors:(G={},G[Z.up]={borderColor:"Highlight"},G)},J=(0,Z.L6)(0,Z.O7),X=(0,n.I)(L,(function(e){var t,o,n,i,a,s,l,d,c,u,p,m,h=e.theme,f=e.hasError,g=e.hasLabel,b=e.className,v=e.isOpen,_=e.disabled,x=e.required,y=e.isRenderingPlaceholder,C=e.panelClassName,k=e.calloutClassName,w=e.calloutRenderEdge;if(!h)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var S=(0,Z.Km)(q,h),I=h.palette,N=h.semanticColors,T=h.effects,F=h.fonts,R={color:N.menuItemTextHovered},O={color:N.menuItemText},D={borderColor:N.errorText},E=[S.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%"}}],P=[S.dropdownItemHeader,(0,r.__assign)((0,r.__assign)({},F.medium),{fontWeight:Z.BO.semibold,color:N.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(t={},t[Z.up]=(0,r.__assign)({color:"GrayText"},(0,Z.Qg)()),t)})],H=N.menuItemBackgroundPressed,B=function(e){var t,o;return void 0===e&&(e=!1),{selectors:(t={"&:hover":[{color:N.menuItemTextHovered,backgroundColor:e?H:N.menuItemBackgroundHovered},Q],"&.is-multi-select:hover":[{backgroundColor:e?H:"transparent"},Q],"&:active:hover":[{color:N.menuItemTextHovered,backgroundColor:e?N.menuItemBackgroundHovered:N.menuItemBackgroundPressed},Q]},t[".".concat(j.Y2," &:focus:after")]=(o={left:0,top:0,bottom:0,right:0},o[Z.up]={inset:"2px"},o),t[Z.up]={border:"none"},t)}},W=(0,r.__spreadArray)((0,r.__spreadArray)([],E,!0),[{backgroundColor:H,color:N.menuItemTextHovered},B(!0),Q],!1),L=(0,r.__spreadArray)((0,r.__spreadArray)([],E,!0),[{color:N.disabledText,cursor:"default",selectors:(o={},o[Z.up]={color:"GrayText",border:"none"},o)}],!1),A=w===V.x.bottom?"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0"):"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2),M=w===V.x.bottom?"0 0 ".concat(T.roundedCorner2," ").concat(T.roundedCorner2):"".concat(T.roundedCorner2," ").concat(T.roundedCorner2," 0 0");return{root:[S.root,b],label:S.label,dropdown:[S.dropdown,Z.S8,F.medium,{color:N.menuItemText,borderColor:N.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(n={},n["&:hover ."+S.title]=[!_&&R,{borderColor:v?I.neutralSecondary:I.neutralPrimary},Y],n["&:focus ."+S.title]=[!_&&R,{selectors:(i={},i[Z.up]={color:"Highlight"},i)}],n["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:_?"none":"2px solid ".concat(I.themePrimary),borderRadius:"2px",selectors:(a={},a[Z.up]={color:"Highlight"},a)}],n["&:active ."+S.title]=[!_&&R,{borderColor:I.themePrimary},Y],n["&:hover ."+S.caretDown]=!_&&O,n["&:focus ."+S.caretDown]=[!_&&O,{selectors:(s={},s[Z.up]={color:"Highlight"},s)}],n["&:active ."+S.caretDown]=!_&&O,n["&:hover ."+S.titleIsPlaceHolder]=!_&&O,n["&:focus ."+S.titleIsPlaceHolder]=!_&&O,n["&:active ."+S.titleIsPlaceHolder]=!_&&O,n["&:hover ."+S.titleHasError]=D,n["&:active ."+S.titleHasError]=D,n)},v&&"is-open",_&&"is-disabled",x&&"is-required",x&&!g&&{selectors:(l={":before":{content:"'*'",color:N.errorText,position:"absolute",top:-5,right:-10}},l[Z.up]={selectors:{":after":{right:-14}}},l)}],title:[S.title,Z.S8,{backgroundColor:N.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:N.inputBorder,borderRadius:v?A:T.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},y&&[S.titleIsPlaceHolder,{color:N.inputPlaceholderText}],f&&[S.titleHasError,D],_&&{backgroundColor:N.disabledBackground,border:"none",color:N.disabledText,cursor:"default",selectors:(d={},d[Z.up]=(0,r.__assign)({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},(0,Z.Qg)()),d)}],caretDownWrapper:[S.caretDownWrapper,{height:32,lineHeight:30,paddingTop:1,position:"absolute",right:8,top:0},!_&&{cursor:"pointer"}],caretDown:[S.caretDown,{color:I.neutralSecondary,fontSize:F.small.fontSize,pointerEvents:"none"},_&&{color:N.disabledText,selectors:(c={},c[Z.up]=(0,r.__assign)({color:"GrayText"},(0,Z.Qg)()),c)}],errorMessage:(0,r.__assign)((0,r.__assign)({color:N.errorText},h.fonts.small),{paddingTop:5}),callout:[S.callout,{boxShadow:T.elevation8,borderRadius:M,selectors:(u={},u[".ms-Callout-main"]={borderRadius:M},u)},k],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[S.dropdownItems,{display:"block"}],dropdownItem:(0,r.__spreadArray)((0,r.__spreadArray)([],E,!0),[B()],!1),dropdownItemSelected:W,dropdownItemDisabled:L,dropdownItemSelectedAndDisabled:[W,L,{backgroundColor:"transparent"}],dropdownItemHidden:(0,r.__spreadArray)((0,r.__spreadArray)([],E,!0),[{display:"none"}],!1),dropdownDivider:[S.dropdownDivider,{height:1,backgroundColor:N.bodyDivider}],dropdownDividerHidden:[S.dropdownDivider,{display:"none"}],dropdownOptionText:[S.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:P,dropdownItemHeaderHidden:(0,r.__spreadArray)((0,r.__spreadArray)([],P,!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(j.Y2," &:focus + label::before")]={outlineOffset:"0px"},p)}},panel:{root:[C],main:{selectors:(m={},m[J]={width:272},m)},contentInner:{padding:"0 0 20px"}}}}}),void 0,{scope:"Dropdown"});X.displayName="Dropdown"},87841:function(e,t,o){o.d(t,{N:function(){return h}});var n=o(75425),r=o(84867),i=o(80322),a=o(51667),s=o(26858),l=o(13578),d=(0,s.Z)(),c=function(e,t){i.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])},u=function(e,t){t.as;var o=t.disabled,n=t.target,i=t.href,a=(t.theme,t.getStyles,t.styles,t.componentRef,t.underline,(0,r.__rest)(t,["as","disabled","target","href","theme","getStyles","styles","componentRef","underline"]));return"string"===typeof e?"a"===e?(0,r.__assign)({target:n,href:o?void 0:i},a):"button"===e?(0,r.__assign)({type:"button",disabled:o},a):(0,r.__assign)((0,r.__assign)({},a),{disabled:o}):(0,r.__assign)({target:n,href:i,disabled:o},a)},p=i.forwardRef((function(e,t){var o=function(e,t){var o=e.as,n=e.className,s=e.disabled,p=e.href,m=e.onClick,h=e.styles,f=e.theme,g=e.underline,b=i.useRef(null),v=(0,a.a)(b,t);c(e,b),(0,l.vk)(b);var _=d(h,{className:n,isButton:!p,isDisabled:s,isUnderlined:g,theme:f}),x=o||(p?"a":"button");return{state:{},slots:{root:x},slotProps:{root:(0,r.__assign)((0,r.__assign)({},u(x,e)),{"aria-disabled":s,className:_.root,onClick:function(e){s?e.preventDefault():m&&m(e)},ref:v})}}}(e,t),n=o.slots,s=o.slotProps;return i.createElement(n.root,(0,r.__assign)({},s.root))}));p.displayName="LinkBase";var m=o(54733),h=(0,n.I)(p,m.$,void 0,{scope:"Link"})},54733:function(e,t,o){o.d(t,{$:function(){return i},e:function(){return r}});var n=o(7354),r={root:"ms-Link"},i=function(e){var t,o,i,a,s,l,d,c=e.className,u=e.isButton,p=e.isDisabled,m=e.isUnderlined,h=e.theme,f=h.semanticColors,g=f.link,b=f.linkHovered,v=f.disabledText,_=f.focusBorder,x=(0,n.Km)(r,h);return{root:[x.root,h.fonts.medium,{color:g,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:m?"underline":"none",selectors:(t={".ms-Fabric--isFocusVisible &:focus":{boxShadow:"0 0 0 1px ".concat(_," inset"),outline:"1px auto ".concat(_),selectors:(o={},o[n.up]={outline:"1px solid WindowText"},o)}},t[n.up]={borderBottom:"none"},t)},u&&{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:(i={},i[n.up]={color:"LinkText",forcedColorAdjust:"none"},i)},!u&&{selectors:(a={},a[n.up]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},a)},p&&["is-disabled",{color:v,cursor:"default"},{selectors:(s={"&:link, &:visited":{pointerEvents:"none"}},s[n.up]={color:"GrayText"},s)}],!p&&{selectors:{"&:active, &:hover, &:active:hover":{color:b,textDecoration:"underline",selectors:(l={},l[n.up]={color:"LinkText"},l)},"&:focus":{color:g,selectors:(d={},d[n.up]={color:"LinkText"},d)}}},x.root,c]}}},21441:function(e,t,o){o.d(t,{Z:function(){return X}});var n,r=o(75425),i=o(84867),a=o(80322),s=o(47751),l=o(22068),d=o(68301),c=o(67275),u=o(26858),p=o(11499),m=o(16711),h=o(81708),f=o(10990),g=o(50453),b=o(3676),v=o(76929),_=o(16758),x=o(33347),y=o(89896),C=o(28483),k=o(51416),w=(0,u.Z)();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(n||(n={}));var S,I,N,T,F,R=function(e){function t(t){var o=e.call(this,t)||this;o._panel=a.createRef(),o._animationCallback=null,o._hasCustomNavigation=!(!o.props.onRenderNavigation&&!o.props.onRenderNavigationContent),o.dismiss=function(e){o.props.onDismiss&&o.isActive&&o.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&o.close()},o._allowScrollOnPanel=function(e){e?o._allowTouchBodyScroll?(0,p.K0)(e,o._events):(0,p.c8)(e,o._events):o._events.off(o._scrollableContent),o._scrollableContent=e},o._onRenderNavigation=function(e){if(!o.props.onRenderNavigationContent&&!o.props.onRenderNavigation&&!o.props.hasCloseButton)return null;var t=o.props.onRenderNavigationContent,n=void 0===t?o._onRenderNavigationContent:t;return a.createElement("div",{className:o._classNames.navigation},n(e,o._onRenderNavigationContent))},o._onRenderNavigationContent=function(e){var t,n=e.closeButtonAriaLabel,r=e.hasCloseButton,i=e.onRenderHeader,l=void 0===i?o._onRenderHeader:i;if(r){var d=null===(t=o._classNames.subComponentStyles)||void 0===t?void 0:t.closeButton();return a.createElement(a.Fragment,null,!o._hasCustomNavigation&&l(o.props,o._onRenderHeader,o._headerTextId),a.createElement(s.K,{styles:d,className:o._classNames.closeButton,onClick:o._onPanelClick,ariaLabel:n,title:n,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},o._onRenderHeader=function(e,t,n){var r=e.headerText,s=e.headerTextProps,l=void 0===s?{}:s;return r?a.createElement("div",{className:o._classNames.header},a.createElement("div",(0,i.__assign)({id:n,role:"heading","aria-level":1},l,{className:(0,m.A)(o._classNames.headerText,l.className)}),r)):null},o._onRenderBody=function(e){return a.createElement("div",{className:o._classNames.content},e.children)},o._onRenderFooter=function(e){var t=o.props.onRenderFooterContent,n=void 0===t?null:t;return n?a.createElement("div",{className:o._classNames.footer},a.createElement("div",{className:o._classNames.footerInner},n())):null},o._animateTo=function(e){e===n.open&&o.props.onOpen&&o.props.onOpen(),o._animationCallback=o._async.setTimeout((function(){o.setState({visibility:e}),o._onTransitionComplete(e)}),200)},o._clearExistingAnimationTimer=function(){null!==o._animationCallback&&o._async.clearTimeout(o._animationCallback)},o._onPanelClick=function(e){o.dismiss(e)},o._onTransitionComplete=function(e){o._updateFooterPosition(),e===n.open&&o.props.onOpened&&o.props.onOpened(),e===n.closed&&o.props.onDismissed&&o.props.onDismissed()};var r=o.props.allowTouchBodyScroll,l=void 0!==r&&r;return o._allowTouchBodyScroll=l,(0,h.f)(o),(0,f.A)("Panel",t,{ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),o.state={isFooterSticky:!1,visibility:n.closed,id:(0,g.O)("Panel")},o}return(0,i.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==n.closed&&t.visibility!==n.animatingClosed?e.isOpen||t.visibility!==n.open&&t.visibility!==n.animatingOpen?null:{visibility:n.animatingClosed}:{visibility:n.animatingOpen}},t.prototype.componentDidMount=function(){this._async=new b.j(this),this._events=new v.g(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:n.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var o=this._shouldListenForOuterClick(this.props),r=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===n.animatingOpen?this._animateTo(n.open):this.state.visibility===n.animatingClosed&&this._animateTo(n.closed)),o&&!r?this._events.on(document.body,"mousedown",this._dismissOnOuterClick,!0):!o&&r&&this._events.off(document.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.className,o=void 0===t?"":t,r=e.elementToFocusOnDismiss,s=e.firstFocusableSelector,u=e.focusTrapZoneProps,p=e.forceFocusInsideTrap,m=e.hasCloseButton,h=e.headerText,f=e.headerClassName,g=void 0===f?"":f,b=e.ignoreExternalFocusing,v=e.isBlocking,y=e.isFooterAtBottom,S=e.isLightDismiss,I=e.isHiddenOnDismiss,N=e.layerProps,T=e.overlayProps,F=e.popupProps,R=e.type,O=e.styles,D=e.theme,E=e.customWidth,P=e.onLightDismissClick,H=void 0===P?this._onPanelClick:P,B=e.onRenderNavigation,W=void 0===B?this._onRenderNavigation:B,L=e.onRenderHeader,A=void 0===L?this._onRenderHeader:L,M=e.onRenderBody,z=void 0===M?this._onRenderBody:M,G=e.onRenderFooter,K=void 0===G?this._onRenderFooter:G,j=this.state,V=j.isFooterSticky,Z=j.visibility,q=j.id,U=R===k.H.smallFixedNear||R===k.H.customNear,Q=(0,_.jI)(D)?U:!U,Y=R===k.H.custom||R===k.H.customNear?{width:E}:{},J=(0,x.G1)(this.props,x.JM),X=this.isActive,$=Z===n.animatingClosed||Z===n.animatingOpen;if(this._headerTextId=h&&q+"-headerText",!X&&!$&&!I)return null;this._classNames=w(O,{theme:D,className:o,focusTrapZoneClassName:u?u.className:void 0,hasCloseButton:m,headerClassName:g,isAnimating:$,isFooterSticky:V,isFooterAtBottom:y,isOnRightSide:Q,isOpen:X,isHiddenOnDismiss:I,type:R,hasCustomNavigation:this._hasCustomNavigation});var ee,te=this._classNames,oe=this._allowTouchBodyScroll;return v&&X&&(ee=a.createElement(d.h,(0,i.__assign)({className:te.overlay,isDarkThemed:!1,onClick:S?H:void 0,allowTouchBodyScroll:oe},T))),a.createElement(l.W,(0,i.__assign)({},N),a.createElement(c.z,(0,i.__assign)({role:"dialog","aria-modal":v?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:te.hiddenPanel,enableAriaHiddenSiblings:!!X},F),a.createElement("div",(0,i.__assign)({"aria-hidden":!X&&$},J,{ref:this._panel,className:te.root}),ee,a.createElement(C.Y,(0,i.__assign)({ignoreExternalFocusing:b,forceFocusInsideTrap:!(!v||I&&!X)&&p,firstFocusableSelector:s,isClickableOutsideFocusTrap:!0},u,{className:te.main,style:Y,elementToFocusOnDismiss:r}),a.createElement("div",{className:te.contentInner},a.createElement("div",{ref:this._allowScrollOnPanel,className:te.scrollableContent,"data-is-scrollable":!0},a.createElement("div",{className:te.commands,"data-is-visible":!0},W(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!m)&&A(this.props,this._onRenderHeader,this._headerTextId),z(this.props,this._onRenderBody),K(this.props,this._onRenderFooter)))))))},t.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||this.setState({visibility:n.animatingOpen}))},t.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:n.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===n.open||this.state.visibility===n.animatingOpen},enumerable:!1,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,o=e.scrollHeight;this.setState({isFooterSticky:t<o})}},t.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&((0,y.s)(t,e.target)||(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e)))},t.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:k.H.smallFixedFar},t}(a.Component),O=o(7354),D={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"},E="100%",P="auto",H=272,B=340,W=592,L=644,A=940,M="auto",z=0,G=48,K=428,j=176,V=((S={})["@media (min-width: ".concat(O.O7,"px)")]={width:B},S),Z=((I={})["@media (min-width: ".concat(O.mu,"px)")]={width:W},I["@media (min-width: ".concat(O.af,"px)")]={width:L},I),q=((N={})["@media (min-width: ".concat(O.c3,"px)")]={left:G,width:P},N["@media (min-width: ".concat(O.Ke,"px)")]={left:K},N),U=((T={})["@media (min-width: ".concat(O.Ke,"px)")]={left:M,width:A},T),Q=((F={})["@media (min-width: ".concat(O.Ke,"px)")]={left:j},F),Y=function(e){var t;switch(e){case k.H.smallFixedFar:t=(0,i.__assign)({},V);break;case k.H.medium:t=(0,i.__assign)((0,i.__assign)({},V),Z);break;case k.H.large:t=(0,i.__assign)((0,i.__assign)((0,i.__assign)({},V),Z),q);break;case k.H.largeFixed:t=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},V),Z),q),U);break;case k.H.extraLarge:t=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},V),Z),q),Q)}return t},J={paddingLeft:"24px",paddingRight:"24px"},X=(0,r.I)(R,(function(e){var t,o,n,r,a=e.className,s=e.focusTrapZoneClassName,l=e.hasCloseButton,d=e.headerClassName,c=e.isAnimating,u=e.isFooterSticky,p=e.isFooterAtBottom,m=e.isOnRightSide,h=e.isOpen,f=e.isHiddenOnDismiss,g=e.hasCustomNavigation,b=e.theme,v=e.type,_=void 0===v?k.H.smallFixedFar:v,x=b.effects,y=b.fonts,C=b.semanticColors,w=(0,O.Km)(D,b),S=_===k.H.custom||_===k.H.customNear;return{root:[w.root,b.fonts.medium,h&&w.isOpen,l&&w.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},S&&m&&w.custom,S&&!m&&w.customNear,a],overlay:[{pointerEvents:"auto",cursor:"pointer"},h&&c&&O.lw.fadeIn100,!h&&c&&O.lw.fadeOut100],hiddenPanel:[!h&&!c&&f&&{visibility:"hidden"}],main:[w.main,{backgroundColor:C.bodyBackground,boxShadow:x.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:M,right:z,width:E,selectors:(0,i.__assign)((t={},t[O.up]={borderLeft:"3px solid ".concat(C.variantBorder),borderRight:"3px solid ".concat(C.variantBorder)},t),Y(_))},_===k.H.smallFluid&&{left:z},_===k.H.smallFixedNear&&{left:z,right:M,width:H},_===k.H.customNear&&{right:"auto",left:0},S&&{maxWidth:"100vw"},h&&c&&!m&&O.lw.slideRightIn40,h&&c&&m&&O.lw.slideLeftIn40,!h&&c&&!m&&O.lw.slideLeftOut40,!h&&c&&m&&O.lw.slideRightOut40,s],commands:[w.commands,{backgroundColor:C.bodyBackground,paddingTop:18,selectors:(o={},o["@media (min-height: ".concat(O.O7,"px)")]={position:"sticky",top:0,zIndex:1},o)},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,J,{alignSelf:"flex-start"},l&&!g&&{flexGrow:1},g&&{flexShrink:0}],headerText:[w.headerText,y.xLarge,{color:C.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},d],scrollableContent:[w.scrollableContent,{overflowY:"auto"},p&&{flexGrow:1,display:"inherit",flexDirection:"inherit"}],content:[w.content,J,{paddingBottom:20},p&&{selectors:(n={},n["@media (min-height: ".concat(O.O7,"px)")]={flexGrow:1},n)}],footer:[w.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity ".concat(O.cs.durationValue3," ").concat(O.cs.easeFunction2),selectors:(r={},r["@media (min-height: ".concat(O.O7,"px)")]={position:"sticky",bottom:0},r)},u&&{backgroundColor:C.bodyBackground,borderTopColor:C.variantBorder}],footerInner:[w.footerInner,J,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[w.closeButton,{marginRight:14,color:b.palette.neutralSecondary,fontSize:O.fF.large},g&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:b.palette.neutralPrimary}}}}}),void 0,{scope:"Panel"})},51416:function(e,t,o){var n;o.d(t,{H:function(){return n}}),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"}(n||(n={}))},14452:function(e,t,o){o.d(t,{w:function(){return l}});var n=o(75425),r=o(7354),i=o(80322),a=(0,o(26858).Z)(),s=i.forwardRef((function(e,t){var o=e.styles,n=e.theme,r=e.className,s=e.vertical,l=e.alignContent,d=e.children,c=a(o,{theme:n,className:r,alignContent:l,vertical:s});return i.createElement("div",{className:c.root,ref:t},i.createElement("div",{className:c.content,role:"separator","aria-orientation":s?"vertical":"horizontal"},d))})),l=(0,n.I)(s,(function(e){var t,o,n=e.theme,i=e.alignContent,a=e.vertical,s=e.className,l="start"===i,d="center"===i,c="end"===i;return{root:[n.fonts.medium,{position:"relative"},i&&{textAlign:i},!i&&{textAlign:"center"},a&&(d||!i)&&{verticalAlign:"middle"},a&&l&&{verticalAlign:"top"},a&&c&&{verticalAlign:"bottom"},a&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:n.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[r.up]={backgroundColor:"WindowText"},t)}},!a&&{padding:"4px 0",selectors:{":before":(o={backgroundColor:n.palette.neutralLighter,height:"1px",content:'""',display:"block",position:"absolute",top:"50%",bottom:"0",left:"0",right:"0"},o[r.up]={backgroundColor:"WindowText"},o)}},s],content:[{position:"relative",display:"inline-block",padding:"0 12px",color:n.semanticColors.bodyText,background:n.semanticColors.bodyBackground},a&&{padding:"12px 0"}]}}),void 0,{scope:"Separator"});l.displayName="Separator"},47495:function(e,t,o){o.d(t,{y:function(){return g}});var n=o(75425),r=o(84867),i=o(80322),a=o(16420),s=o(26858),l=o(33347),d=o(47770),c=(0,s.Z)(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.type,o=e.size,n=e.ariaLabel,s=e.ariaLive,u=e.styles,p=e.label,m=e.theme,h=e.className,f=e.labelPosition,g=n,b=(0,l.G1)(this.props,l.JM,["size"]),v=o;void 0===v&&void 0!==t&&(v=t===a.Q.large?a.H.large:a.H.medium);var _=c(u,{theme:m,size:v,className:h,labelPosition:f});return i.createElement("div",(0,r.__assign)({},b,{className:_.root}),i.createElement("div",{className:_.circle}),p&&i.createElement("div",{className:_.label},p),g&&i.createElement("div",{role:"status","aria-live":s},i.createElement(d.P,null,i.createElement("div",{className:_.screenReaderText},g))))},t.defaultProps={size:a.H.medium,ariaLive:"polite",labelPosition:"bottom"},t}(i.Component),p=o(7354),m=o(65808),h={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},f=(0,m.J9)((function(){return(0,p.i7)({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})})),g=(0,n.I)(u,(function(e){var t,o=e.theme,n=e.size,i=e.className,s=e.labelPosition,l=o.palette,d=(0,p.Km)(h,o);return{root:[d.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===s&&{flexDirection:"column-reverse"},"right"===s&&{flexDirection:"row"},"left"===s&&{flexDirection:"row-reverse"},i],circle:[d.circle,{boxSizing:"border-box",borderRadius:"50%",border:"1.5px solid "+l.themeLight,borderTopColor:l.themePrimary,animationName:f(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[p.up]=(0,r.__assign)({borderTopColor:"Highlight"},(0,p.Qg)()),t)},n===a.H.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],n===a.H.small&&["ms-Spinner--small",{width:16,height:16}],n===a.H.medium&&["ms-Spinner--medium",{width:20,height:20}],n===a.H.large&&["ms-Spinner--large",{width:28,height:28}]],label:[d.label,o.fonts.small,{color:l.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===s&&{margin:"0 0 8px"},"right"===s&&{margin:"0 0 0 8px"},"left"===s&&{margin:"0 8px 0 0"}],screenReaderText:p.dX}}),void 0,{scope:"Spinner"})},16420:function(e,t,o){var n,r;o.d(t,{H:function(){return n},Q:function(){return r}}),function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(n||(n={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(r||(r={}))},58793:function(e,t,o){o.d(t,{B:function(){return x}});var n=o(84867),r=o(80322),i=o(3650),a=o(16988),s=o(10990),l=o(33347),d=o(16711),c=o(7354),u=o(86402),p=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},m=function(e){var t=parseFloat(e),o=isNaN(t)?0:t,n=isNaN(t)?"":t.toString();return{value:o,unit:e.substring(n.toString().length)||"px"}},h=function(e,t){if(void 0===e||"number"===typeof e||""===e)return e;var o=e.split(" ");return o.length<2?p(e,t):o.reduce((function(e,o){return p(e,t)+" "+p(o,t)}))},f={start:"flex-start",end:"flex-end"},g={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"},b=o(23256);function v(e,t){var o=t.disableShrink,i=t.enableScopedSelectors,a=t.doNotRenderFalsyValues,s=r.Children.toArray(e);return s=r.Children.map(s,(function(e){if(!e)return a?null:e;if(!r.isValidElement(e))return e;if(e.type===r.Fragment)return e.props.children?v(e.props.children,{disableShrink:o,enableScopedSelectors:i,doNotRenderFalsyValues:a}):null;var t,s=e,l={};(t=e)&&"object"===typeof t&&t.type&&t.type.displayName===b.a.displayName&&(l={shrink:!o});var c=s.props.className;return r.cloneElement(s,(0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},l),s.props),c&&{className:c}),i&&{className:(0,d.A)(g.child,c)}))}))}var _={Item:b.a},x=(0,a.a)((function(e){var t=e.as,o=void 0===t?"div":t,r=e.disableShrink,a=void 0!==r&&r,d=e.doNotRenderFalsyValues,c=void 0!==d&&d,u=e.enableScopedSelectors,p=void 0!==u&&u,m=e.wrap,h=(0,n.__rest)(e,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]);(0,s.A)("Stack",e,{gap:"tokens.childrenGap",maxHeight:"tokens.maxHeight",maxWidth:"tokens.maxWidth",padding:"tokens.padding"});var f=v(e.children,{disableShrink:a,enableScopedSelectors:p,doNotRenderFalsyValues:c}),g=(0,l.G1)(h,l.vt),b=(0,i.Sk)(e,{root:o,inner:"div"});return m?(0,i.WL)(b.root,(0,n.__assign)({},g),(0,i.WL)(b.inner,null,f)):(0,i.WL)(b.root,(0,n.__assign)({},g),f)}),{displayName:"Stack",styles:function(e,t,o){var r,i,a,s,l,d,b,v,_,x,y,C,k,w=e.className,S=e.disableShrink,I=e.enableScopedSelectors,N=e.grow,T=e.horizontal,F=e.horizontalAlign,R=e.reversed,O=e.verticalAlign,D=e.verticalFill,E=e.wrap,P=(0,c.Km)(g,t),H=o&&o.childrenGap?o.childrenGap:e.gap,B=o&&o.maxHeight?o.maxHeight:e.maxHeight,W=o&&o.maxWidth?o.maxWidth:e.maxWidth,L=o&&o.padding?o.padding:e.padding,A=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 o=e.split(" ");if(o.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===o.length)return{rowGap:m(p(o[0],t)),columnGap:m(p(o[1],t))};var n=m(p(e,t));return{rowGap:n,columnGap:n}}(H,t),M=A.rowGap,z=A.columnGap,G="".concat(-.5*z.value).concat(z.unit),K="".concat(-.5*M.value).concat(M.unit),j={textOverflow:"ellipsis"},V="> "+(I?"."+g.child:"*"),Z=((r={})["".concat(V,":not(.").concat(u.e.root,")")]={flexShrink:0},r);return E?{root:[P.root,{flexWrap:"wrap",maxWidth:W,maxHeight:B,width:"auto",overflow:"visible",height:"100%"},F&&(i={},i[T?"justifyContent":"alignItems"]=f[F]||F,i),O&&(a={},a[T?"alignItems":"justifyContent"]=f[O]||O,a),w,{display:"flex"},T&&{height:D?"100%":"auto"}],inner:[P.inner,(s={display:"flex",flexWrap:"wrap",marginLeft:G,marginRight:G,marginTop:K,marginBottom:K,overflow:"visible",boxSizing:"border-box",padding:h(L,t),width:0===z.value?"100%":"calc(100% + ".concat(z.value).concat(z.unit,")"),maxWidth:"100vw"},s[V]=(0,n.__assign)({margin:"".concat(.5*M.value).concat(M.unit," ").concat(.5*z.value).concat(z.unit)},j),s),S&&Z,F&&(l={},l[T?"justifyContent":"alignItems"]=f[F]||F,l),O&&(d={},d[T?"alignItems":"justifyContent"]=f[O]||O,d),T&&(b={flexDirection:R?"row-reverse":"row",height:0===M.value?"100%":"calc(100% + ".concat(M.value).concat(M.unit,")")},b[V]={maxWidth:0===z.value?"100%":"calc(100% - ".concat(z.value).concat(z.unit,")")},b),!T&&(v={flexDirection:R?"column-reverse":"column",height:"calc(100% + ".concat(M.value).concat(M.unit,")")},v[V]={maxHeight:0===M.value?"100%":"calc(100% - ".concat(M.value).concat(M.unit,")")},v)]}:{root:[P.root,(_={display:"flex",flexDirection:T?R?"row-reverse":"row":R?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:D?"100%":"auto",maxWidth:W,maxHeight:B,padding:h(L,t),boxSizing:"border-box"},_[V]=j,_),S&&Z,N&&{flexGrow:!0===N?1:N},F&&(x={},x[T?"justifyContent":"alignItems"]=f[F]||F,x),O&&(y={},y[T?"alignItems":"justifyContent"]=f[O]||O,y),T&&z.value>0&&(C={},C["".concat(V,R?":not(:last-child)":":not(:first-child)")]={marginLeft:"".concat(z.value).concat(z.unit)},C),!T&&M.value>0&&(k={},k["".concat(V,R?":not(:last-child)":":not(:first-child)")]={marginTop:"".concat(M.value).concat(M.unit)},k),w]}},statics:_})},23256:function(e,t,o){o.d(t,{a:function(){return l}});var n=o(84867),r=o(3650),i=o(16988),a=o(33347),s=o(86402),l=(0,i.a)((function(e){var t=e.children,o=(0,a.G1)(e,a.vt);if(null==t)return null;var i=(0,r.Sk)(e,{root:"div"});return(0,r.WL)(i.root,(0,n.__assign)({},o),t)}),{displayName:"StackItem",styles:s.a})},86402:function(e,t,o){o.d(t,{a:function(){return a},e:function(){return r}});var n=o(7354),r={root:"ms-StackItem"},i={start:"flex-start",end:"flex-end"},a=function(e,t,o){var a=e.grow,s=e.shrink,l=e.disableShrink,d=e.align,c=e.verticalFill,u=e.order,p=e.className,m=e.basis,h=void 0===m?"auto":m,f=(0,n.Km)(r,t);return{root:[t.fonts.medium,f.root,{flexBasis:h,margin:o.margin,padding:o.padding,height:c?"100%":"auto",width:"auto"},a&&{flexGrow:!0===a?1:a},(l||!a&&!s)&&{flexShrink:0},s&&!l&&{flexShrink:1},d&&{alignSelf:i[d]||d},u&&{order:u},p]}}},79211:function(e,t,o){o.d(t,{A:function(){return I}});var n=o(75425),r=o(84867),i=o(80322),a=o(42682),s=o(12300),l=o(26858),d=o(81708),c=o(3676),u=o(50453),p=o(47770);var m=o(56205);var h,f=o(33347),g=o(50963),b=o(61652),v=(0,l.Z)(),_="TextField",x=function(e){function t(t){var o=e.call(this,t)||this;o._textElement=i.createRef(),o._onFocus=function(e){o.props.onFocus&&o.props.onFocus(e),o.setState({isFocused:!0},(function(){o.props.validateOnFocusIn&&o._validate(o.value)}))},o._onBlur=function(e){o.props.onBlur&&o.props.onBlur(e),o.setState({isFocused:!1},(function(){o.props.validateOnFocusOut&&o._validate(o.value)}))},o._onRenderLabel=function(e){var t=e.label,n=e.required,r=o._classNames.subComponentStyles?o._classNames.subComponentStyles.label:void 0;return t?i.createElement(a.J,{required:n,htmlFor:o._id,styles:r,disabled:e.disabled,id:o._labelId},e.label):null},o._onRenderDescription=function(e){return e.description?i.createElement("span",{className:o._classNames.description},e.description):null},o._onRevealButtonClick=function(e){o.setState((function(e){return{isRevealingPassword:!e.isRevealingPassword}}))},o._onInputChange=function(e){var t,n,r=e.target.value,i=y(o.props,o.state)||"";void 0!==r&&r!==o._lastChangeValue&&r!==i?(o._lastChangeValue=r,null===(n=(t=o.props).onChange)||void 0===n||n.call(t,e,r),o._isControlled||o.setState({uncontrolledValue:r})):o._lastChangeValue=void 0},(0,d.f)(o),o._async=new c.j(o),o._fallbackId=(0,u.O)(_),o._descriptionId=(0,u.O)("TextFieldDescription"),o._labelId=(0,u.O)("TextFieldLabel"),o._prefixId=(0,u.O)("TextFieldPrefix"),o._suffixId=(0,u.O)("TextFieldSuffix"),o._warnControlledUsage();var n=t.defaultValue,r=void 0===n?"":n;return"number"===typeof r&&(r=String(r)),o.state={uncontrolledValue:o._isControlled?void 0:r,isFocused:!1,errorMessage:""},o._delayedValidate=o._async.debounce(o._validate,o.props.deferredValidationTime),o._lastValidation=0,o}return(0,r.__extends)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return y(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(e,t,o){var n=this.props,r=(o||{}).selection,i=void 0===r?[null,null]:r,a=i[0],s=i[1];!!e.multiline!==!!n.multiline&&t.isFocused&&(this.focus(),null!==a&&null!==s&&a>=0&&s>=0&&this.setSelectionRange(a,s)),e.value!==n.value&&(this._lastChangeValue=void 0);var l=y(e,t),d=this.value;l!==d&&(this._warnControlledUsage(e),this.state.errorMessage&&!n.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),C(n)&&this._delayedValidate(d))},t.prototype.render=function(){var e=this.props,t=e.borderless,o=e.className,n=e.disabled,a=e.invalid,l=e.iconProps,d=e.inputClassName,c=e.label,u=e.multiline,m=e.required,f=e.underlined,_=e.prefix,x=e.resizable,y=e.suffix,C=e.theme,k=e.styles,w=e.autoAdjustHeight,S=e.canRevealPassword,I=e.revealPasswordAriaLabel,N=e.type,T=e.onRenderPrefix,F=void 0===T?this._onRenderPrefix:T,R=e.onRenderSuffix,O=void 0===R?this._onRenderSuffix:R,D=e.onRenderLabel,E=void 0===D?this._onRenderLabel:D,P=e.onRenderDescription,H=void 0===P?this._onRenderDescription:P,B=this.state,W=B.isFocused,L=B.isRevealingPassword,A=this._errorMessage,M="boolean"===typeof a?a:!!A,z=!!S&&"password"===N&&function(){if("boolean"!==typeof h){var e=(0,g.z)();if(null===e||void 0===e?void 0:e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");h=!((0,b.l)()||t)}else h=!0}return h}(),G=this._classNames=v(k,{theme:C,className:o,disabled:n,focused:W,required:m,multiline:u,hasLabel:!!c,hasErrorMessage:M,borderless:t,resizable:x,hasIcon:!!l,underlined:f,inputClassName:d,autoAdjustHeight:w,hasRevealButton:z});return i.createElement("div",{ref:this.props.elementRef,className:G.root},i.createElement("div",{className:G.wrapper},E(this.props,this._onRenderLabel),i.createElement("div",{className:G.fieldGroup},(void 0!==_||this.props.onRenderPrefix)&&i.createElement("div",{className:G.prefix,id:this._prefixId},F(this.props,this._onRenderPrefix)),u?this._renderTextArea():this._renderInput(),l&&i.createElement(s.I,(0,r.__assign)({className:G.icon},l)),z&&i.createElement("button",{"aria-label":I,className:G.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!L,type:"button"},i.createElement("span",{className:G.revealSpan},i.createElement(s.I,{className:G.revealIcon,iconName:L?"Hide":"RedEye"}))),(void 0!==y||this.props.onRenderSuffix)&&i.createElement("div",{className:G.suffix,id:this._suffixId},O(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&i.createElement("span",{id:this._descriptionId},H(this.props,this._onRenderDescription),A&&i.createElement("div",{role:"alert"},i.createElement(p.P,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._warnControlledUsage=function(e){this._id,this.props,null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,(0,m.R)("Warning: 'value' prop on '".concat(_,"' should not be null. Consider using an ")+"empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return void 0!==(e=this.props)[t="value"]&&null!==e[t];var e,t},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(e){var t=e.prefix;return i.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return i.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var e=this._errorMessage;return e?"string"===typeof e?i.createElement("p",{className:this._classNames.errorMessage},i.createElement("span",{"data-automation-id":"error-message"},e)):i.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},e):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var e=this.props.invalid,t=void 0===e?!!this._errorMessage:e,o=(0,f.G1)(this.props,f.Sh,["defaultValue"]),n=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return i.createElement("textarea",(0,r.__assign)({id:this._id},o,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":n,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":t,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e=this.props,t=e.ariaLabel,o=e.invalid,n=void 0===o?!!this._errorMessage:o,a=e.onRenderPrefix,s=e.onRenderSuffix,l=e.prefix,d=e.suffix,c=e.type,u=void 0===c?"text":c,p=[];e.label&&p.push(this._labelId),(void 0!==l||a)&&p.push(this._prefixId),(void 0!==d||s)&&p.push(this._suffixId);var m=(0,r.__assign)((0,r.__assign)({type:this.state.isRevealingPassword?"text":u,id:this._id},(0,f.G1)(this.props,f.QQ,["defaultValue","type"])),{"aria-labelledby":this.props["aria-labelledby"]||(p.length>0?p.join(" "):void 0),ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-label":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":n,onFocus:this._onFocus,onBlur:this._onBlur}),h=function(e){return i.createElement("input",(0,r.__assign)({},e))};return(this.props.onRenderInput||h)(m,h)},t.prototype._validate=function(e){var t=this;if(this._latestValidateValue!==e||!C(this.props)){this._latestValidateValue=e;var o=this.props.onGetErrorMessage,n=o&&o(e||"");if(void 0!==n)if("string"!==typeof n&&"then"in n){var r=++this._lastValidation;n.then((function(o){r===t._lastValidation&&t.setState({errorMessage:o}),t._notifyAfterValidate(e,o)}))}else this.setState({errorMessage:n}),this._notifyAfterValidate(e,n);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var e=this._textElement.current;e.style.height="",e.style.height=e.scrollHeight+"px"}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(i.Component);function y(e,t){var o=e.value,n=void 0===o?t.uncontrolledValue:o;return"number"===typeof n?String(n):n}function C(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var k=o(7354),w={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 S(e){var t=e.underlined,o=e.disabled,n=e.focused,r=e.theme,i=r.palette,a=r.fonts;return function(){var e;return{root:[t&&o&&{color:i.neutralTertiary},t&&{fontSize:a.medium.fontSize,marginRight:8,paddingLeft:12,paddingRight:0,lineHeight:"22px",height:32},t&&n&&{selectors:(e={},e[k.up]={height:31},e)}]}}}var I=(0,n.I)(x,(function(e){var t,o,n,i,a,s,l,d,c,u,p,m,h=e.theme,f=e.className,g=e.disabled,b=e.focused,v=e.required,_=e.multiline,x=e.hasLabel,y=e.borderless,C=e.underlined,I=e.hasIcon,N=e.resizable,T=e.hasErrorMessage,F=e.inputClassName,R=e.autoAdjustHeight,O=e.hasRevealButton,D=h.semanticColors,E=h.effects,P=h.fonts,H=(0,k.Km)(w,h),B={background:D.disabledBackground,color:g?D.disabledText:D.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[k.up]={background:"Window",color:g?"GrayText":"WindowText"},t)},W=[{color:D.inputPlaceholderText,opacity:1,selectors:(o={},o[k.up]={color:"GrayText"},o)}],L={color:D.disabledText,selectors:(n={},n[k.up]={color:"GrayText"},n)};return{root:[H.root,P.medium,v&&H.required,g&&H.disabled,b&&H.active,_&&H.multiline,y&&H.borderless,C&&H.underlined,k.S8,{position:"relative"},f],wrapper:[H.wrapper,C&&[{display:"flex",borderBottom:"1px solid ".concat(T?D.errorText:D.inputBorder),width:"100%"},g&&{borderBottomColor:D.disabledBackground,selectors:(i={},i[k.up]=(0,r.__assign)({borderColor:"GrayText"},(0,k.Qg)()),i)},!g&&{selectors:{":hover":{borderBottomColor:T?D.errorText:D.inputBorderHovered,selectors:(a={},a[k.up]=(0,r.__assign)({borderBottomColor:"Highlight"},(0,k.Qg)()),a)}}},b&&[{position:"relative"},(0,k.Sq)(T?D.errorText:D.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[H.fieldGroup,k.S8,{border:"1px solid ".concat(D.inputBorder),borderRadius:E.roundedCorner2,background:D.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},_&&{minHeight:"60px",height:"auto",display:"flex"},!b&&!g&&{selectors:{":hover":{borderColor:D.inputBorderHovered,selectors:(s={},s[k.up]=(0,r.__assign)({borderColor:"Highlight"},(0,k.Qg)()),s)}}},b&&!C&&(0,k.Sq)(T?D.errorText:D.inputFocusBorderAlt,E.roundedCorner2),g&&{borderColor:D.disabledBackground,selectors:(l={},l[k.up]=(0,r.__assign)({borderColor:"GrayText"},(0,k.Qg)()),l),cursor:"default"},y&&{border:"none"},y&&b&&{border:"none",selectors:{":after":{border:"none"}}},C&&{flex:"1 1 0px",border:"none",textAlign:"left"},C&&g&&{backgroundColor:"transparent"},T&&!C&&{borderColor:D.errorText,selectors:{"&:hover":{borderColor:D.errorText}}},!x&&v&&{selectors:(d={":before":{content:"'*'",color:D.errorText,position:"absolute",top:-5,right:-10}},d[k.up]={selectors:{":before":{color:"WindowText",right:-14}}},d)}],field:[P.medium,H.field,k.S8,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:D.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(c={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},c[k.up]={background:"Window",color:g?"GrayText":"WindowText"},c)},(0,k.CX)(W),_&&!N&&[H.unresizable,{resize:"none"}],_&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},_&&R&&{overflow:"hidden"},I&&!O&&{paddingRight:24},_&&I&&{paddingRight:40},g&&[{backgroundColor:D.disabledBackground,color:D.disabledText,borderColor:D.disabledBackground},(0,k.CX)(L)],C&&{textAlign:"left"},b&&!y&&{selectors:(u={},u[k.up]={paddingLeft:11,paddingRight:11},u)},b&&_&&!y&&{selectors:(p={},p[k.up]={paddingTop:4},p)},F],icon:[_&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:k.fF.medium,lineHeight:18},g&&{color:D.disabledText}],description:[H.description,{color:D.bodySubtext,fontSize:P.xSmall.fontSize}],errorMessage:[H.errorMessage,k.lw.slideDownIn20,P.small,{color:D.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[H.prefix,B],suffix:[H.suffix,B],revealButton:[H.revealButton,"ms-Button","ms-Button--icon",(0,k.gm)(h,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:D.link,selectors:{":hover":{outline:0,color:D.primaryButtonBackgroundHovered,backgroundColor:D.buttonBackgroundHovered,selectors:(m={},m[k.up]={borderColor:"Highlight",color:"Highlight"},m)},":focus":{outline:0}}},I&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:k.fF.medium,lineHeight:18},subComponentStyles:{label:S(e)}}}),void 0,{scope:"TextField"})},82180:function(e,t,o){o.d(t,{E:function(){return s}});var n=o(16988),r=o(84867),i=o(3650),a=o(33347),s=(0,n.a)((function(e){if(null==e.children)return null;e.block,e.className;var t=e.as,o=void 0===t?"span":t,n=(e.variant,e.nowrap,(0,r.__rest)(e,["block","className","as","variant","nowrap"])),s=(0,i.Sk)(e,{root:o});return(0,i.WL)(s.root,(0,r.__assign)({},(0,a.G1)(n,a.vt)))}),{displayName:"Text",styles:function(e,t){var o=e.as,n=e.className,r=e.block,i=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,d=s[a||"medium"];return{root:[d,{color:d.color||l.bodyText,display:r?"td"===o?"table-cell":"block":"inline",mozOsxFontSmoothing:d.MozOsxFontSmoothing,webkitFontSmoothing:d.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},n]}}})},91083:function(e,t,o){function n(e,t){for(var o=[],n=0,r=t;n<r.length;n++){var i=e[r[n]];i&&o.push(i)}return o}o.d(t,{D:function(){return n}})},3564:function(e,t,o){var n;o.d(t,{W:function(){return n}}),function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.SelectAll=3]="SelectAll"}(n||(n={}))},61652:function(e,t,o){o.d(t,{l:function(){return r}});var n=o(50963),r=function(){var e,t=(0,n.z)();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}}}]);
//# sourceMappingURL=4461.d306b2f1.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[4493],{51667:function(e,n,r){r.d(n,{a:function(){return a}});var t=r(84867),o=r(80322);function a(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=o.useCallback((function(n){r.current=n;for(var t=0,o=e;t<o.length;t++){var a=o[t];"function"===typeof a?a(n):a&&(a.current=n)}}),(0,t.__spreadArray)([],e,!0));return r}},20403:function(e,n,r){r.d(n,{ZY:function(){return i},_0:function(){return o},ox:function(){return a}});var t=r(80322),o=t.createContext({window:"object"===typeof window?window:void 0}),a=function(){return t.useContext(o).window},i=function(){var e;return null===(e=t.useContext(o).window)||void 0===e?void 0:e.document}},6939:function(e,n,r){r.d(n,{a:function(){return C}});var t,o,a,i,u,c={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"},d=r(40100),l={elevation4:d.f.depth4,elevation8:d.f.depth8,elevation16:d.f.depth16,elevation64:d.f.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},s=r(32945);!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)"}(t||(t={})),function(e){e.Arabic="'".concat(t.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(t.Cyrillic,"'"),e.EastEuropean="'".concat(t.EastEuropean,"'"),e.Greek="'".concat(t.Greek,"'"),e.Hebrew="'".concat(t.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(t.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(t.Vietnamese,"'"),e.WestEuropean="'".concat(t.WestEuropean,"'"),e.Armenian="'".concat(t.Armenian,"'"),e.Georgian="'".concat(t.Georgian,"'")}(o||(o={})),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"}(a||(a={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(i||(i={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(u||(u={}));var f="'Segoe UI', '".concat(t.WestEuropean,"'"),g={ar:o.Arabic,bg:o.Cyrillic,cs:o.EastEuropean,el:o.Greek,et:o.EastEuropean,he:o.Hebrew,hi:o.Hindi,hr:o.EastEuropean,hu:o.EastEuropean,ja:o.Japanese,kk:o.EastEuropean,ko:o.Korean,lt:o.EastEuropean,lv:o.EastEuropean,pl:o.EastEuropean,ru:o.Cyrillic,sk:o.EastEuropean,"sr-latn":o.EastEuropean,th:o.Thai,tr:o.EastEuropean,uk:o.Cyrillic,vi:o.Vietnamese,"zh-hans":o.ChineseSimplified,"zh-hant":o.ChineseTraditional,hy:o.Armenian,ka:o.Georgian};function p(e,n,r){return{fontFamily:r,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:n}}var v=r(8820),m=r(50963),h=function(e){var n=function(e){for(var n in g)if(g.hasOwnProperty(n)&&e&&0===n.indexOf(e))return g[n];return f}(e),r="".concat(n,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:p(a.mini,i.regular,r),xSmall:p(a.xSmall,i.regular,r),small:p(a.small,i.regular,r),smallPlus:p(a.smallPlus,i.regular,r),medium:p(a.medium,i.regular,r),mediumPlus:p(a.mediumPlus,i.regular,r),large:p(a.large,i.regular,r),xLarge:p(a.xLarge,i.semibold,r),xLargePlus:p(a.xLargePlus,i.semibold,r),xxLarge:p(a.xxLarge,i.semibold,r),xxLargePlus:p(a.xxLargePlus,i.semibold,r),superLarge:p(a.superLarge,i.semibold,r),mega:p(a.mega,i.semibold,r)}}((0,v.Z)());function b(e,n,r,t){e="'".concat(e,"'");var o=void 0!==t?"local('".concat(t,"'),"):"";(0,s.n)({fontFamily:e,src:o+"url('".concat(n,".woff2') format('woff2'),")+"url('".concat(n,".woff') format('woff')"),fontWeight:r,fontStyle:"normal",fontDisplay:"swap"})}function x(e,n,r,t,o){void 0===t&&(t="segoeui");var a="".concat(e,"/").concat(r,"/").concat(t);b(n,a+"-light",i.light,o&&o+" Light"),b(n,a+"-semilight",i.semilight,o&&o+" SemiLight"),b(n,a+"-regular",i.regular,o),b(n,a+"-semibold",i.semibold,o&&o+" SemiBold"),b(n,a+"-bold",i.bold,o&&o+" Bold")}!function(e){if(e){var n="".concat(e,"/fonts");x(n,t.Thai,"leelawadeeui-thai","leelawadeeui"),x(n,t.Arabic,"segoeui-arabic"),x(n,t.Cyrillic,"segoeui-cyrillic"),x(n,t.EastEuropean,"segoeui-easteuropean"),x(n,t.Greek,"segoeui-greek"),x(n,t.Hebrew,"segoeui-hebrew"),x(n,t.Vietnamese,"segoeui-vietnamese"),x(n,t.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),x(n,o.Selawik,"selawik","selawik"),x(n,t.Armenian,"segoeui-armenian"),x(n,t.Georgian,"segoeui-georgian"),b("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-semilight"),i.light),b("Leelawadee UI Web","".concat(n,"/leelawadeeui-thai/leelawadeeui-bold"),i.semibold)}}(function(){var e,n,r=null===(e=(0,m.z)())||void 0===e?void 0:e.FabricConfig;return null!==(n=null===r||void 0===r?void 0:r.fontBaseUrl)&&void 0!==n?n:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var k=r(94401),y={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},w=r(22800);function C(e,n){void 0===e&&(e={}),void 0===n&&(n=!1);var r=!!e.isInverted,t={palette:c,effects:l,fonts:h,spacing:y,isInverted:r,disableGlobalClassNames:!1,semanticColors:(0,w.b)(c,l,void 0,r,n),rtl:void 0};return(0,k.z)(t,e)}},40100:function(e,n,r){var t;r.d(n,{f:function(){return t}}),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)"}(t||(t={}))},94401:function(e,n,r){r.d(n,{z:function(){return a}});var t=r(84892),o=r(22800);function a(e,n){var r,a,i;void 0===n&&(n={});var u=(0,t.h)({},e,n,{semanticColors:(0,o.B)(n.palette,n.effects,n.semanticColors,void 0===n.isInverted?e.isInverted:n.isInverted)});if((null===(r=n.palette)||void 0===r?void 0:r.themePrimary)&&!(null===(a=n.palette)||void 0===a?void 0:a.accent)&&(u.palette.accent=n.palette.themePrimary),n.defaultFontStyle)for(var c=0,d=Object.keys(u.fonts);c<d.length;c++){var l=d[c];u.fonts[l]=(0,t.h)(u.fonts[l],n.defaultFontStyle,null===(i=null===n||void 0===n?void 0:n.fonts)||void 0===i?void 0:i[l])}return u}},22800:function(e,n,r){r.d(n,{B:function(){return a},b:function(){return o}});var t=r(84867);function o(e,n,r,o,i){return void 0===i&&(i=!1),function(e,n){var r="";!0===n&&(r=" /* @deprecated */");return e.listTextColor=e.listText+r,e.menuItemBackgroundChecked+=r,e.warningHighlight+=r,e.warningText=e.messageText+r,e.successText+=r,e}(a(e,n,(0,t.__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 a(e,n,r,o,a){void 0===a&&(a=!1);var i={},u=e||{},c=u.white,d=u.black,l=u.themePrimary,s=u.themeDark,f=u.themeDarker,g=u.themeDarkAlt,p=u.themeLighter,v=u.neutralLight,m=u.neutralLighter,h=u.neutralDark,b=u.neutralQuaternary,x=u.neutralQuaternaryAlt,k=u.neutralPrimary,y=u.neutralSecondary,w=u.neutralSecondaryAlt,C=u.neutralTertiary,B=u.neutralTertiaryAlt,S=u.neutralLighterAlt,E=u.accent;return c&&(i.bodyBackground=c,i.bodyFrameBackground=c,i.accentButtonText=c,i.buttonBackground=c,i.primaryButtonText=c,i.primaryButtonTextHovered=c,i.primaryButtonTextPressed=c,i.inputBackground=c,i.inputForegroundChecked=c,i.listBackground=c,i.menuBackground=c,i.cardStandoutBackground=c),d&&(i.bodyTextChecked=d,i.buttonTextCheckedHovered=d),l&&(i.link=l,i.primaryButtonBackground=l,i.inputBackgroundChecked=l,i.inputIcon=l,i.inputFocusBorderAlt=l,i.menuIcon=l,i.menuHeader=l,i.accentButtonBackground=l),s&&(i.primaryButtonBackgroundPressed=s,i.inputBackgroundCheckedHovered=s,i.inputIconHovered=s),f&&(i.linkHovered=f),g&&(i.primaryButtonBackgroundHovered=g),p&&(i.inputPlaceholderBackgroundChecked=p),v&&(i.bodyBackgroundChecked=v,i.bodyFrameDivider=v,i.bodyDivider=v,i.variantBorder=v,i.buttonBackgroundCheckedHovered=v,i.buttonBackgroundPressed=v,i.listItemBackgroundChecked=v,i.listHeaderBackgroundPressed=v,i.menuItemBackgroundPressed=v,i.menuItemBackgroundChecked=v),m&&(i.bodyBackgroundHovered=m,i.buttonBackgroundHovered=m,i.buttonBackgroundDisabled=m,i.buttonBorderDisabled=m,i.primaryButtonBackgroundDisabled=m,i.disabledBackground=m,i.listItemBackgroundHovered=m,i.listHeaderBackgroundHovered=m,i.menuItemBackgroundHovered=m),b&&(i.primaryButtonTextDisabled=b,i.disabledSubtext=b),x&&(i.listItemBackgroundCheckedHovered=x),C&&(i.disabledBodyText=C,i.variantBorderHovered=(null===r||void 0===r?void 0:r.variantBorderHovered)||C,i.buttonTextDisabled=C,i.inputIconDisabled=C,i.disabledText=C),k&&(i.bodyText=k,i.actionLink=k,i.buttonText=k,i.inputBorderHovered=k,i.inputText=k,i.listText=k,i.menuItemText=k),S&&(i.bodyStandoutBackground=S,i.defaultStateBackground=S),h&&(i.actionLinkHovered=h,i.buttonTextHovered=h,i.buttonTextChecked=h,i.buttonTextPressed=h,i.inputTextHovered=h,i.menuItemTextHovered=h),y&&(i.bodySubtext=y,i.focusBorder=y,i.inputBorder=y,i.smallInputBorder=y,i.inputPlaceholderText=y),w&&(i.buttonBorder=w),B&&(i.disabledBodySubtext=B,i.disabledBorder=B,i.buttonBackgroundChecked=B,i.menuDivider=B),E&&(i.accentButtonBackground=E),(null===n||void 0===n?void 0:n.elevation4)&&(i.cardShadow=n.elevation4),!o&&(null===n||void 0===n?void 0:n.elevation8)?i.cardShadowHovered=n.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=(0,t.__assign)((0,t.__assign)({},i),r)}},55924:function(e,n,r){r.d(n,{N:function(){return a}});var t=r(80322),o=r(13578),a=function(e){var n=e.providerRef,r=e.layerRoot,a=t.useState([])[0],i=t.useContext(o.dM),u=void 0!==i&&!r,c=t.useMemo((function(){return u?void 0:{providerRef:n,registeredProviders:a,registerProvider:function(e){a.push(e),null===i||void 0===i||i.registerProvider(e)},unregisterProvider:function(e){null===i||void 0===i||i.unregisterProvider(e);var n=a.indexOf(e);n>=0&&a.splice(n,1)}}}),[n,a,i,u]);return t.useEffect((function(){if(c)return c.registerProvider(c.providerRef),function(){return c.unregisterProvider(c.providerRef)}}),[c]),c?t.createElement(o.dM.Provider,{value:c},e.children):t.createElement(t.Fragment,null,e.children)}},54121:function(e,n,r){r.d(n,{c:function(){return t}});var t={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pauseBreak:19,capslock:20,escape:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,del:46,zero:48,one:49,two:50,three:51,four:52,five:53,six:54,seven:55,eight:56,nine:57,colon:58,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftWindow:91,rightWindow:92,select:93,zero_numpad:96,one_numpad:97,two_numpad:98,three_numpad:99,four_numpad:100,five_numpad:101,six_numpad:102,seven_numpad:103,eight_numpad:104,nine_numpad:105,multiply:106,add:107,subtract:109,decimalPoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrollLock:145,semicolon:186,equalSign:187,comma:188,dash:189,period:190,forwardSlash:191,graveAccent:192,openBracket:219,backSlash:220,closeBracket:221,singleQuote:222}},16711:function(e,n,r){function t(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r=[],t=0,o=e;t<o.length;t++){var a=o[t];if(a)if("string"===typeof a)r.push(a);else if(a.hasOwnProperty("toString")&&"function"===typeof a.toString)r.push(a.toString());else for(var i in a)a[i]&&r.push(i)}return r.join(" ")}r.d(n,{A:function(){return t}})},77933:function(e,n,r){r.d(n,{z:function(){return o}});var t=r(80322),o=t.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},87022:function(e,n,r){r.d(n,{m:function(){return i}});var t=r(80322),o=r(39409),a=r(77933);function i(e,n){var r=function(){var e=t.useState(0)[1];return function(){return e((function(e){return++e}))}}(),i=t.useContext(a.z).customizations,u=i.inCustomizerContext;return t.useEffect((function(){return u||o.X.observe(r),function(){u||o.X.unobserve(r)}}),[u]),o.X.getSettings(e,n,i)}},50453:function(e,n,r){r.d(n,{O:function(){return u}});var t=r(50963),o=r(41441),a=(0,t.z)()||{};void 0===a.__currentId__&&(a.__currentId__=0);var i=!1;function u(e){if(!i){var n=o.n.getInstance();n&&n.onReset&&n.onReset(c),i=!0}return(void 0===e?"id__":e)+a.__currentId__++}function c(e){void 0===e&&(e=0),a.__currentId__=e}},48038:function(e,n,r){r.d(n,{N:function(){return o}});var t=r(84867);function o(e,n){for(var r=(0,t.__assign)({},n),o=0,a=Object.keys(e);o<a.length;o++){var i=a[o];void 0===r[i]&&(r[i]=e[i])}return r}},5141:function(e,n,r){function t(e,n){if(!e||!n)return!e&&!n;for(var r in e)if(e.hasOwnProperty(r)&&(!n.hasOwnProperty(r)||n[r]!==e[r]))return!1;for(var r in n)if(n.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function o(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return a.apply(this,[null,e].concat(n))}function a(e,n){for(var r=[],t=2;t<arguments.length;t++)r[t-2]=arguments[t];n=n||{};for(var o=0,a=r;o<a.length;o++){var i=a[o];if(i)for(var u in i)!i.hasOwnProperty(u)||e&&!e(u)||(n[u]=i[u])}return n}function i(e,n){var r={};for(var t in e)-1===n.indexOf(t)&&e.hasOwnProperty(t)&&(r[t]=e[t]);return r}r.d(n,{ab:function(){return t},cJ:function(){return i},kp:function(){return o}})},33347:function(e,n,r){r.d(n,{Cq:function(){return m},Cs:function(){return S},Fo:function(){return d},G1:function(){return L},Gp:function(){return B},JM:function(){return P},P4:function(){return s},QQ:function(){return p},Qf:function(){return C},Sg:function(){return c},Sh:function(){return v},al:function(){return b},cr:function(){return k},g0:function(){return x},k3:function(){return y},lA:function(){return w},p3:function(){return l},q6:function(){return u},t0:function(){return f},tK:function(){return h},uw:function(){return g},vt:function(){return i},xM:function(){return E}});var t=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];for(var r={},t=0,o=e;t<o.length;t++)for(var a=o[t],i=Array.isArray(a)?a:Object.keys(a),u=0,c=i;u<c.length;u++){var d=c[u];r[d]=1}return r},o=t(["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=t(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),i=t(a,o),u=t(i,["form"]),c=t(i,["height","loop","muted","preload","src","width"]),d=t(c,["poster"]),l=t(i,["start"]),s=t(i,["value"]),f=t(i,["download","href","hrefLang","media","rel","target","type"]),g=t(i,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),p=t(g,["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"]),v=t(g,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),m=t(g,["form","multiple","required"]),h=t(i,["selected","value"]),b=t(i,["cellPadding","cellSpacing"]),x=i,k=t(i,["rowSpan","scope"]),y=t(i,["colSpan","headers","rowSpan","scope"]),w=t(i,["span"]),C=t(i,["span"]),B=t(i,["acceptCharset","action","encType","encType","method","noValidate","target"]),S=t(i,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),E=t(i,["alt","crossOrigin","height","src","srcSet","useMap","width"]),P=i;function L(e,n,r){for(var t=Array.isArray(n),o={},a=0,i=Object.keys(e);a<i.length;a++){var u=i[a];!(!t&&n[u]||t&&n.indexOf(u)>=0||0===u.indexOf("data-")||0===u.indexOf("aria-"))||r&&-1!==(null===r||void 0===r?void 0:r.indexOf(u))||(o[u]=e[u])}return o}},16758:function(e,n,r){r.d(n,{SM:function(){return l},jI:function(){return d}});var t,o=r(54121),a=r(16114),i=r(30059),u=r(16639),c="isRTL";function d(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===t){var n=(0,i.G)(c);null!==n&&function(e,n){void 0===n&&(n=!1);var r=(0,a.Y)();r&&r.documentElement.setAttribute("dir",e?"rtl":"ltr");n&&(0,i.S)(c,e?"1":"0");t=e,(0,u.DU)(t)}(t="1"===n);var r=(0,a.Y)();void 0===t&&r&&(t="rtl"===(r.body&&r.body.getAttribute("dir")||r.documentElement.getAttribute("dir")),(0,u.DU)(t))}return!!t}function l(e,n){return void 0===n&&(n={}),d(n)&&(e===o.c.left?e=o.c.right:e===o.c.right&&(e=o.c.left)),e}},13578:function(e,n,r){r.d(n,{MO:function(){return m},dM:function(){return p},vk:function(){return v}});var t,o=r(80322),a=r(50963),i=r(54121),u=((t={})[i.c.up]=1,t[i.c.down]=1,t[i.c.left]=1,t[i.c.right]=1,t[i.c.home]=1,t[i.c.end]=1,t[i.c.tab]=1,t[i.c.pageUp]=1,t[i.c.pageDown]=1,t);function c(e){return!!u[e]}var d=r(40950),l=new WeakMap,s=new WeakMap;function f(e,n){var r,t=l.get(e);return r=t?t+n:1,l.set(e,r),r}function g(e){var n=s.get(e);if(n)return n;return n={onMouseDown:function(n){return h(n,e.registeredProviders)},onPointerDown:function(n){return b(n,e.registeredProviders)},onKeyDown:function(n){return x(n,e.registeredProviders)},onKeyUp:function(n){return k(n,e.registeredProviders)}},s.set(e,n),n}var p=o.createContext(void 0);function v(e){var n=o.useContext(p);o.useEffect((function(){var r,t,o,i,u=(0,a.z)(null===e||void 0===e?void 0:e.current);if(u&&!0!==(null===(r=u.FabricConfig)||void 0===r?void 0:r.disableFocusRects)){var c,d,l,s,p=u;if((null===(t=null===n||void 0===n?void 0:n.providerRef)||void 0===t?void 0:t.current)&&(null===(i=null===(o=null===n||void 0===n?void 0:n.providerRef)||void 0===o?void 0:o.current)||void 0===i?void 0:i.addEventListener)){p=n.providerRef.current;var v=g(n);c=v.onMouseDown,d=v.onPointerDown,l=v.onKeyDown,s=v.onKeyUp}else c=h,d=b,l=x,s=k;var m=f(p,1);return m<=1&&(p.addEventListener("mousedown",c,!0),p.addEventListener("pointerdown",d,!0),p.addEventListener("keydown",l,!0),p.addEventListener("keyup",s,!0)),function(){var e;u&&!0!==(null===(e=u.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(m=f(p,-1))&&(p.removeEventListener("mousedown",c,!0),p.removeEventListener("pointerdown",d,!0),p.removeEventListener("keydown",l,!0),p.removeEventListener("keyup",s,!0))}}}),[n,e])}var m=function(e){return v(e.rootRef),null};function h(e,n){(0,d.Fy)(!1,e.target,n)}function b(e,n){"mouse"!==e.pointerType&&(0,d.Fy)(!1,e.target,n)}function x(e,n){c(e.which)&&(0,d.Fy)(!0,e.target,n)}function k(e,n){c(e.which)&&(0,d.Fy)(!0,e.target,n)}}}]);
//# sourceMappingURL=4493.3586c424.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[4515],{44515:function(e,r,n){n.r(r),n.d(r,{memoizeFunctionProperties:function(){return o}});var t=n(84867),a=n(9766),i=Object.keys;function o(e){var r,n,o={};try{for(var c=(0,t.__values)(i(e)),u=c.next();!u.done;u=c.next()){var f=u.value,l=e[f];if("function"===typeof l){var p=l;o[f]=(0,a.memoizeFunction)(p.bind(o))}else o[f]=l}}catch(s){r={error:s}}finally{try{u&&!u.done&&(n=c.return)&&n.call(c)}finally{if(r)throw r.error}}return o}}}]);
//# sourceMappingURL=4515.b2e08ca8.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,2486,3407,4520,4867,5343,5788,7248],{25788:function(n,r,t){t.r(r),t.d(r,{createICUString:function(){return p},getPluralString:function(){return h},getPluralStringUnsafe:function(){return y},getStringForRange:function(){return l},mapMidgardLocaleToCLDRLocale:function(){return f},mapNumberToRangeForLocale:function(){return s},parsePluralString:function(){return v}});var e=t(84867),o=t(73594),u=t(44886),c=t.n(u),i=["zero","one","two","few","many","other"],a={zero:/zero\s*{([^}]+)}/,one:/one\s*{([^}]+)}/,two:/two\s*{([^}]+)}/,few:/few\s*{([^}]+)}/,many:/many\s*{([^}]+)}/,other:/other\s*{([^}]+)}/};function f(n){return n.split("-")[0]}function l(n,r){var t=(0,e.__read)(a[r].exec(n)||[],2)[1];return void 0===t?"":t}function s(n,r){return c()(r,n)}function p(n){var r="";return i.forEach((function(t){n[t]&&(r+=" ".concat(t,"{").concat(n[t],"}"))})),"".concat("{count, plural,").concat(r).concat("}")}function v(n,r,t){return l(n,s(r,t)||"other")}function y(n,r,t){if(r<0||r!==1/0&&!(0,o.isSafeInteger)(r))throw new Error("count must be a positive integer or Infinity");return v(n,r,t)}function h(n,r,t){if(void 0===r)return n;try{return y(n,r,t||"en")}catch(e){return n}}},84520:function(n,r,t){t.r(r),t.d(r,{createICUString:function(){return e.createICUString},getPluralString:function(){return e.getPluralString},getPluralStringUnsafe:function(){return e.getPluralStringUnsafe},getPluralizedString:function(){return s},getPluralizedStringUnsafe:function(){return l},getStringForRange:function(){return e.getStringForRange},mapMidgardLocaleToCLDRLocale:function(){return e.mapMidgardLocaleToCLDRLocale},mapNumberToRangeForLocale:function(){return e.mapNumberToRangeForLocale},parsePluralString:function(){return e.parsePluralString},parsePluralizedString:function(){return f},parseRange:function(){return a},validatePluralizedString:function(){return p}});var e=t(25788),o=t(84867),u=t(73594),c=["->","\u2013>","-","\u2013"],i=/^\d+$/;function a(n){var r=(0,u.find)(c,(function(r){return n.indexOf(r)>=0})),t=r?n.split(r).map((function(n){return n.trim()})):[n.trim()];if(1===t.length){var e=t[0];if((0,u.startsWith)(e,"*")){var o=e.substring("*".length);return o.match(i)?function(n){return(0,u.endsWith)(n.toString(),o)}:null}return e.match(i)?function(n){return n.toString()===e}:null}if(2===t.length){if(!t[0].match(i))return null;var a=parseInt(t[0],10);if(isNaN(a))return null;if("INF"===t[1])return function(n){return n>=a};if(!t[1].match(i))return null;var f=parseInt(t[1],10);return isNaN(f)?null:function(n){return n>=a&&n<f}}return null}function f(n,r){var t,e,u,c,i=function(r){throw new Error('pluralized string "'.concat(n,'" ').concat(r))};try{for(var f=(0,o.__values)(n.split("||")),l=f.next();!l.done;l=f.next()){var s=l.value,p=s.split("::");2!==p.length&&i("is missing separator ".concat("::",' in clause "').concat(s,'"'));var v=(0,o.__read)(p,2),y=v[0],h=v[1];try{for(var d=(u=void 0,(0,o.__values)(y.split(","))),g=d.next();!g.done;g=d.next()){var b=g.value,m=a(b);if(null===m)i('contains invalid range "'.concat(b,'"'));else if(!r(h,m))return}}catch(F){u={error:F}}finally{try{g&&!g.done&&(c=d.return)&&c.call(d)}finally{if(u)throw u.error}}}}catch(w){t={error:w}}finally{try{l&&!l.done&&(e=f.return)&&e.call(f)}finally{if(t)throw t.error}}}function l(n,r){if(r<0||r!==1/0&&!(0,u.isSafeInteger)(r))throw new Error("count must be a positive integer or Infinity");var t="";return f(n,(function(n,e){return!e(r)||(t=n,!1)})),t}function s(n,r){if(void 0===r)return n;try{return l(n,r)}catch(t){return n}}function p(n){f(n,(function(){return!0}))}},44886:function(n){var r={};function t(n){var t;return r[n]?n:(t=n.toLowerCase().replace("_","-"),r[t]?t:(t=t.split("-")[0],r[t]?t:null))}function e(n,e){var o=t(n);if(!o)return-1;if(!r[o].cFn)return 0;var u=String(e),c=u.indexOf(".")<0?"":u.split(".")[1],i=c.length,a=+e,f=+u.split(".")[0],l=0===c.length?0:+c.replace(/0+$/,"");return r[o].cFn(a,f,i,+c,l)}function o(n,e){var o=t(n);if(!o)return-1;if(!r[o].oFn)return 0;var u=String(e),c=u.indexOf(".")<0?"":u.split(".")[1],i=c.length,a=+e,f=+u.split(".")[0],l=0===c.length?0:+c.replace(/0+$/,"");return r[o].oFn(a,f,i,+c,l)}n.exports=function(n,o){var u=t(n);return u?r[u].c[e(u,o)]:null},n.exports.indexOf=e,n.exports.forms=function(n){var e=t(n);return r[e]?r[e].c:null},n.exports.ordinal=function(n,e){var u=t(n);return r[u]?r[u].o[o(u,e)]:null},n.exports.ordinal.indexOf=o,n.exports.ordinal.forms=function(n){var e=t(n);return r[e]?r[e].o:null};var u=["zero","one","two","few","many","other"];function c(n){return u[n]}function i(n,t){var e;for(t.c=t.c?t.c.map(c):["other"],t.o=t.o?t.o.map(c):["other"],e=0;e<n.length;e++)r[n[e]]=t}function a(n,r,t){return n<=t&&t<=r&&t%1===0}function f(n,r){return n.indexOf(r)>=0}i(["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(n){return 1===n?0:1}}),i(["ak","bho","guw","ln","mg","nso","pa","ti","wa"],{c:[1,5],cFn:function(n){return a(0,1,n)?0:1}}),i(["am","fa","kn","zu"],{c:[1,5],cFn:function(n,r){return 0===r||1===n?0:1}}),i(["ar","ars"],{c:[0,1,2,3,4,5],cFn:function(n){var r=n%100;return 0===n?0:1===n?1:2===n?2:a(3,10,r)?3:a(11,99,r)?4:5}}),i(["as","bn"],{c:[1,5],cFn:function(n,r){return 0===r||1===n?0:1},o:[1,2,3,4,5],oFn:function(n){return f([1,5,7,8,9,10],n)?0:f([2,3],n)?1:4===n?2:6===n?3:4}}),i(["ast","de","et","fi","fy","gl","ia","io","ji","nl","pt-pt","sw","ur","yi"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1}}),i(["az"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,3,4,5],oFn:function(n,r){var t=r%10,e=r%100,o=r%1e3;return f([1,2,5,7,8],t)||f([20,50,70,80],e)?0:f([3,4],t)||f([100,200,300,400,500,600,700,800,900],o)?1:0===r||6===t||f([40,60,90],e)?2:3}}),i(["be"],{c:[1,3,4,5],cFn:function(n){var r=n%10,t=n%100;return 1===r&&11!==t?0:a(2,4,r)&&!a(12,14,t)?1:0===r||a(5,9,r)||a(11,14,t)?2:3},o:[3,5],oFn:function(n){var r=n%100;return f([2,3],n%10)&&!f([12,13],r)?0:1}}),i(["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"],{}),i(["br"],{c:[1,2,3,4,5],cFn:function(n){var r=n%10,t=n%100,e=n%1e6;return 1!==r||f([11,71,91],t)?2!==r||f([12,72,92],t)?!a(3,4,r)&&9!==r||a(10,19,t)||a(70,79,t)||a(90,99,t)?0!==n&&0===e?3:4:2:1:0}}),i(["bs","hr","sh","sr"],{c:[1,3,5],cFn:function(n,r,t,e){var o=r%10,u=r%100,c=e%10,i=e%100;return 0===t&&1===o&&11!==u||1===c&&11!==i?0:0===t&&a(2,4,o)&&!a(12,14,u)||a(2,4,c)&&!a(12,14,i)?1:2}}),i(["ca"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[1,2,3,5],oFn:function(n){return f([1,3],n)?0:2===n?1:4===n?2:3}}),i(["ceb"],{c:[1,5],cFn:function(n,r,t,e){var o=r%10,u=e%10;return 0===t&&f([1,2,3],r)||0===t&&!f([4,6,9],o)||0!==t&&!f([4,6,9],u)?0:1}}),i(["cs","sk"],{c:[1,3,4,5],cFn:function(n,r,t){return 1===r&&0===t?0:a(2,4,r)&&0===t?1:0!==t?2:3}}),i(["cy"],{c:[0,1,2,3,4,5],cFn:function(n){return 0===n?0:1===n?1:2===n?2:3===n?3:6===n?4:5},o:[0,1,2,3,4,5],oFn:function(n){return f([0,7,8,9],n)?0:1===n?1:2===n?2:f([3,4],n)?3:f([5,6],n)?4:5}}),i(["da"],{c:[1,5],cFn:function(n,r,t,e,o){return 1===n||0!==o&&f([0,1],r)?0:1}}),i(["dsb","hsb"],{c:[1,2,3,5],cFn:function(n,r,t,e){var o=r%100,u=e%100;return 0===t&&1===o||1===u?0:0===t&&2===o||2===u?1:0===t&&a(3,4,o)||a(3,4,u)?2:3}}),i(["en"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[1,2,3,5],oFn:function(n){var r=n%10,t=n%100;return 1===r&&11!==t?0:2===r&&12!==t?1:3===r&&13!==t?2:3}}),i(["ff","kab"],{c:[1,5],cFn:function(n,r){return f([0,1],r)?0:1}}),i(["fil","tl"],{c:[1,5],cFn:function(n,r,t,e){var o=r%10,u=e%10;return 0===t&&f([1,2,3],r)||0===t&&!f([4,6,9],o)||0!==t&&!f([4,6,9],u)?0:1},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["fr","hy"],{c:[1,5],cFn:function(n,r){return f([0,1],r)?0:1},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["ga"],{c:[1,2,3,4,5],cFn:function(n){return 1===n?0:2===n?1:a(3,6,n)?2:a(7,10,n)?3:4},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["gd"],{c:[1,2,3,5],cFn:function(n){return f([1,11],n)?0:f([2,12],n)?1:a(3,10,n)||a(13,19,n)?2:3},o:[1,2,3,5],oFn:function(n){return f([1,11],n)?0:f([2,12],n)?1:f([3,13],n)?2:3}}),i(["gu","hi"],{c:[1,5],cFn:function(n,r){return 0===r||1===n?0:1},o:[1,2,3,4,5],oFn:function(n){return 1===n?0:f([2,3],n)?1:4===n?2:6===n?3:4}}),i(["gv"],{c:[1,2,3,4,5],cFn:function(n,r,t){var e=r%10;return 0===t&&1===e?0:0===t&&2===e?1:0===t&&f([0,20,40,60,80],r%100)?2:0!==t?3:4}}),i(["he","iw"],{c:[1,2,4,5],cFn:function(n,r,t){var e=n%10;return 1===r&&0===t?0:2===r&&0===t?1:0!==t||a(0,10,n)||0!==e?3:2}}),i(["hu"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,5],oFn:function(n){return f([1,5],n)?0:1}}),i(["is"],{c:[1,5],cFn:function(n,r,t,e,o){return 0===o&&1===r%10&&11!==r%100||0!==o?0:1}}),i(["it","sc","scn"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[4,5],oFn:function(n){return f([11,8,80,800],n)?0:1}}),i(["iu","naq","se","sma","smi","smj","smn","sms"],{c:[1,2,5],cFn:function(n){return 1===n?0:2===n?1:2}}),i(["ka"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,4,5],oFn:function(n,r){var t=r%100;return 1===r?0:0===r||a(2,20,t)||40===t||60===t||80===t?1:2}}),i(["kk"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[4,5],oFn:function(n){var r=n%10;return 6===r||9===r||0===r&&0!==n?0:1}}),i(["ksh"],{c:[0,1,5],cFn:function(n){return 0===n?0:1===n?1:2}}),i(["kw"],{c:[0,1,2,3,4,5],cFn:function(n){var r=n%100,t=n%1e3,e=n%1e5,o=n%1e6;return 0===n?0:1===n?1:f([2,22,42,62,82],r)||0===t&&(a(1e3,2e4,e)||4e4===e||6e4===e||8e4===e)||0!==n&&1e5===o?2:f([3,23,43,63,83],r)?3:1!==n&&f([1,21,41,61,81],r)?4:5},o:[1,4,5],oFn:function(n){var r=n%100;return a(1,4,n)||a(1,4,r)||a(21,24,r)||a(41,44,r)||a(61,64,r)||a(81,84,r)?0:5===n||5===r?1:2}}),i(["lag"],{c:[0,1,5],cFn:function(n,r){return 0===n?0:f([0,1],r)&&0!==n?1:2}}),i(["lo","ms","vi"],{o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["lt"],{c:[1,3,4,5],cFn:function(n,r,t,e){var o=n%10,u=n%100;return 1!==o||a(11,19,u)?a(2,9,o)&&!a(11,19,u)?1:0!==e?2:3:0}}),i(["lv","prg"],{c:[0,1,5],cFn:function(n,r,t,e){var o=n%10,u=n%100,c=e%100,i=e%10;return 0===o||a(11,19,u)||2===t&&a(11,19,c)?0:1===o&&11!==u||2===t&&1===i&&11!==c||2!==t&&1===i?1:2}}),i(["mk"],{c:[1,5],cFn:function(n,r,t,e){return 0===t&&1===r%10&&11!==r%100||1===e%10&&11!==e%100?0:1},o:[1,2,4,5],oFn:function(n,r){var t=r%10,e=r%100;return 1===t&&11!==e?0:2===t&&12!==e?1:f([7,8],t)&&!f([17,18],e)?2:3}}),i(["mo","ro"],{c:[1,3,5],cFn:function(n,r,t){return 1===r&&0===t?0:0!==t||0===n||a(2,19,n%100)?1:2},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["mr"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,2,3,5],oFn:function(n){return 1===n?0:f([2,3],n)?1:4===n?2:3}}),i(["mt"],{c:[1,3,4,5],cFn:function(n){var r=n%100;return 1===n?0:0===n||a(2,10,r)?1:a(11,19,r)?2:3}}),i(["ne"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,5],oFn:function(n){return a(1,4,n)?0:1}}),i(["or"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,2,3,4,5],oFn:function(n){return 1===n||5===n||a(7,9,n)?0:f([2,3],n)?1:4===n?2:6===n?3:4}}),i(["pl"],{c:[1,3,4,5],cFn:function(n,r,t){var e=r%10,o=r%100;return 1===r&&0===t?0:0===t&&a(2,4,e)&&!a(12,14,o)?1:0===t&&1!==r&&a(0,1,e)||0===t&&a(5,9,e)||0===t&&a(12,14,o)?2:3}}),i(["pt"],{c:[1,5],cFn:function(n,r){return a(0,1,r)?0:1}}),i(["ru"],{c:[1,3,4,5],cFn:function(n,r,t){var e=r%10,o=r%100;return 0===t&&1===e&&11!==o?0:0===t&&a(2,4,e)&&!a(12,14,o)?1:0===t&&0===e||0===t&&a(5,9,e)||0===t&&a(11,14,o)?2:3}}),i(["shi"],{c:[1,3,5],cFn:function(n,r){return 0===r||1===n?0:a(2,10,n)?1:2}}),i(["si"],{c:[1,5],cFn:function(n,r,t,e){return f([0,1],n)||0===r&&1===e?0:1}}),i(["sl"],{c:[1,2,3,5],cFn:function(n,r,t){var e=r%100;return 0===t&&1===e?0:0===t&&2===e?1:0===t&&a(3,4,e)||0!==t?2:3}}),i(["sq"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,4,5],oFn:function(n){return 1===n?0:4===n%10&&14!==n%100?1:2}}),i(["sv"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[1,5],oFn:function(n){var r=n%100;return f([1,2],n%10)&&!f([11,12],r)?0:1}}),i(["tk"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[3,5],oFn:function(n){return f([6,9],n%10)||10===n?0:1}}),i(["tzm"],{c:[1,5],cFn:function(n){return a(0,1,n)||a(11,99,n)?0:1}}),i(["uk"],{c:[1,3,4,5],cFn:function(n,r,t){var e=r%10,o=r%100;return 0===t&&1===e&&11!==o?0:0===t&&a(2,4,e)&&!a(12,14,o)?1:0===t&&0===e||0===t&&a(5,9,e)||0===t&&a(11,14,o)?2:3},o:[3,5],oFn:function(n){return 3===n%10&&13!==n%100?0:1}})},84867:function(n,r,t){t.r(r),t.d(r,{__assign:function(){return u},__asyncDelegator:function(){return w},__asyncGenerator:function(){return F},__asyncValues:function(){return _},__await:function(){return m},__awaiter:function(){return l},__classPrivateFieldGet:function(){return x},__classPrivateFieldIn:function(){return I},__classPrivateFieldSet:function(){return k},__createBinding:function(){return p},__decorate:function(){return i},__exportStar:function(){return v},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return j},__importStar:function(){return P},__makeTemplateObject:function(){return S},__metadata:function(){return f},__param:function(){return a},__read:function(){return h},__rest:function(){return c},__spread:function(){return d},__spreadArray:function(){return b},__spreadArrays:function(){return g},__values:function(){return y}});var e=function(n,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t])},e(n,r)};function o(n,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=n}e(n,r),n.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var u=function(){return u=Object.assign||function(n){for(var r,t=1,e=arguments.length;t<e;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o]);return n},u.apply(this,arguments)};function c(n,r){var t={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&r.indexOf(e)<0&&(t[e]=n[e]);if(null!=n&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(n);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(n,e[o])&&(t[e[o]]=n[e[o]])}return t}function i(n,r,t,e){var o,u=arguments.length,c=u<3?r:null===e?e=Object.getOwnPropertyDescriptor(r,t):e;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)c=Reflect.decorate(n,r,t,e);else for(var i=n.length-1;i>=0;i--)(o=n[i])&&(c=(u<3?o(c):u>3?o(r,t,c):o(r,t))||c);return u>3&&c&&Object.defineProperty(r,t,c),c}function a(n,r){return function(t,e){r(t,e,n)}}function f(n,r){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(n,r)}function l(n,r,t,e){return new(t||(t=Promise))((function(o,u){function c(n){try{a(e.next(n))}catch(r){u(r)}}function i(n){try{a(e.throw(n))}catch(r){u(r)}}function a(n){var r;n.done?o(n.value):(r=n.value,r instanceof t?r:new t((function(n){n(r)}))).then(c,i)}a((e=e.apply(n,r||[])).next())}))}function s(n,r){var t,e,o,u,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(t)throw new TypeError("Generator is already executing.");for(;c;)try{if(t=1,e&&(o=2&u[0]?e.return:u[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,u[1])).done)return o;switch(e=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,e=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){c.label=u[1];break}if(6===u[0]&&c.label<o[1]){c.label=o[1],o=u;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(u);break}o[2]&&c.ops.pop(),c.trys.pop();continue}u=r.call(n,c)}catch(i){u=[6,i],e=0}finally{t=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var p=Object.create?function(n,r,t,e){void 0===e&&(e=t);var o=Object.getOwnPropertyDescriptor(r,t);o&&!("get"in o?!r.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(n,e,o)}:function(n,r,t,e){void 0===e&&(e=t),n[e]=r[t]};function v(n,r){for(var t in n)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||p(r,n,t)}function y(n){var r="function"===typeof Symbol&&Symbol.iterator,t=r&&n[r],e=0;if(t)return t.call(n);if(n&&"number"===typeof n.length)return{next:function(){return n&&e>=n.length&&(n=void 0),{value:n&&n[e++],done:!n}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(n,r){var t="function"===typeof Symbol&&n[Symbol.iterator];if(!t)return n;var e,o,u=t.call(n),c=[];try{for(;(void 0===r||r-- >0)&&!(e=u.next()).done;)c.push(e.value)}catch(i){o={error:i}}finally{try{e&&!e.done&&(t=u.return)&&t.call(u)}finally{if(o)throw o.error}}return c}function d(){for(var n=[],r=0;r<arguments.length;r++)n=n.concat(h(arguments[r]));return n}function g(){for(var n=0,r=0,t=arguments.length;r<t;r++)n+=arguments[r].length;var e=Array(n),o=0;for(r=0;r<t;r++)for(var u=arguments[r],c=0,i=u.length;c<i;c++,o++)e[o]=u[c];return e}function b(n,r,t){if(t||2===arguments.length)for(var e,o=0,u=r.length;o<u;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return n.concat(e||Array.prototype.slice.call(r))}function m(n){return this instanceof m?(this.v=n,this):new m(n)}function F(n,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,o=t.apply(n,r||[]),u=[];return e={},c("next"),c("throw"),c("return"),e[Symbol.asyncIterator]=function(){return this},e;function c(n){o[n]&&(e[n]=function(r){return new Promise((function(t,e){u.push([n,r,t,e])>1||i(n,r)}))})}function i(n,r){try{(t=o[n](r)).value instanceof m?Promise.resolve(t.value.v).then(a,f):l(u[0][2],t)}catch(e){l(u[0][3],e)}var t}function a(n){i("next",n)}function f(n){i("throw",n)}function l(n,r){n(r),u.shift(),u.length&&i(u[0][0],u[0][1])}}function w(n){var r,t;return r={},e("next"),e("throw",(function(n){throw n})),e("return"),r[Symbol.iterator]=function(){return this},r;function e(e,o){r[e]=n[e]?function(r){return(t=!t)?{value:m(n[e](r)),done:"return"===e}:o?o(r):r}:o}}function _(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,t=n[Symbol.asyncIterator];return t?t.call(n):(n=y(n),r={},e("next"),e("throw"),e("return"),r[Symbol.asyncIterator]=function(){return this},r);function e(t){r[t]=n[t]&&function(r){return new Promise((function(e,o){(function(n,r,t,e){Promise.resolve(e).then((function(r){n({value:r,done:t})}),r)})(e,o,(r=n[t](r)).done,r.value)}))}}}function S(n,r){return Object.defineProperty?Object.defineProperty(n,"raw",{value:r}):n.raw=r,n}var O=Object.create?function(n,r){Object.defineProperty(n,"default",{enumerable:!0,value:r})}:function(n,r){n.default=r};function P(n){if(n&&n.__esModule)return n;var r={};if(null!=n)for(var t in n)"default"!==t&&Object.prototype.hasOwnProperty.call(n,t)&&p(r,n,t);return O(r,n),r}function j(n){return n&&n.__esModule?n:{default:n}}function x(n,r,t,e){if("a"===t&&!e)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof r?n!==r||!e:!r.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?e:"a"===t?e.call(n):e?e.value:r.get(n)}function k(n,r,t,e,o){if("m"===e)throw new TypeError("Private method is not writable");if("a"===e&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"===typeof r?n!==r||!o:!r.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===e?o.call(n,t):o?o.value=t:r.set(n,t),t}function I(n,r){if(null===r||"object"!==typeof r&&"function"!==typeof r)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof n?r===n:n.has(r)}}}]);
//# sourceMappingURL=4520.6385d58c.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[4683],{54683:function(e,t,n){n.r(t),n.d(t,{AccessibilityList:function(){return o},AccessibilityListWithAriaLabel:function(){return d},RenderListItemDescription:function(){return E},accessibilityListItem:function(){return c},getHighContrastBackgroundColorSelectors:function(){return h}});var s=n(7354),i=n(80322),r=(0,s.l8)({list:{display:"block",margin:0,padding:0,listStyleType:"none"},listItem:{display:"block"},listItemHorizontal:{display:"inline-block"},verticalDivider:{padding:"0px 4px",flex:"none",flexGrow:0,minWidth:"0px !important",marginTop:"8px",marginBottom:"8px"},listItemHorizontalEnd:{display:"inline-block",flexGrow:1,justifyContent:"flex-end"}}),o=function(e){var t=e.items,n=e.listClassName,s=e.listItemClassName,o=e.itemDisplay,l=e.ariaLabel,a=e.showLastItemOnRight,c=t&&t.filter(Boolean);if(!c||0===c.length)return i.createElement("div",{className:"".concat(r.list," ").concat(n||""),role:"list"});var u=c.map((function(e,t){var n,u;return u="Horizontal"===o?t+1===c.length&&a?r.listItemHorizontalEnd:"verticalDivider"===(null===(n=e.props)||void 0===n?void 0:n.className)?r.verticalDivider:r.listItemHorizontal:r.listItem,i.createElement("div",{key:e.key||t,"aria-label":l(t+1,c.length),className:"".concat(u," ").concat(s||"")},e)}));return i.createElement("div",{className:"".concat(r.list," ").concat(n||"")},u)},l=n(45047),a=n(73669),c=l.declareStringWithPlaceholders("accessibility-utils-ui.utilityStrings.accessibilityListItem"),u=function(){return u=Object.assign||function(e){for(var t,n=1,s=arguments.length;n<s;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},u.apply(this,arguments)};function d(e){var t=function(){var e=(0,a.useStringProvider)().lookupString;if((0,l.isDev)())return function(e,t){return c({p0:e.toString(),p1:t.toString()})};var t=e(c.key);return function(e,n){return t({p0:e.toString(),p1:n.toString()})}}();return i.createElement(o,u({},e,{ariaLabel:t}))}var h=function(){return{"@media screen and (-ms-high-contrast: active)":{backgroundColor:"white",MsHighContrastAdjust:"none"},"@media screen and (-ms-high-contrast: black-on-white)":{backgroundColor:"black",MsHighContrastAdjust:"none"}}};var _=void 0;try{_=window}catch(I){}var m,f=n(84867),p=0,v=1,y=2,g="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),C={};try{C=window||{}}catch(T){}var b=function(){function e(e,t){var n,s,i,r,o,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,f.__assign)({injectionMode:"undefined"===typeof document?p:v,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null===t||void 0===t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(s=null===t||void 0===t?void 0:t.counter)&&void 0!==s?s:this._counter,this._keyToClassName=null!==(r=null!==(i=this._config.classNameCache)&&void 0!==i?i:null===t||void 0===t?void 0:t.keyToClassName)&&void 0!==r?r:this._keyToClassName,this._preservedRules=null!==(o=null===t||void 0===t?void 0:t.preservedRules)&&void 0!==o?o:this._preservedRules,this._rules=null!==(l=null===t||void 0===t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(m=C.__stylesheet__)||m._lastStyleElement&&m._lastStyleElement.ownerDocument!==document){var t=(null===C||void 0===C?void 0:C.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);m=n,C.__stylesheet__=n}return m},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=(0,f.__assign)((0,f.__assign)({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,n,s){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:s}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,s=n!==p?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),s)switch(n){case v:var i=s.sheet;try{i.insertRule(e,i.cssRules.length)}catch(I){}break;case y:s.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),g||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var s=this._config.cspSettings;if(s&&s.nonce&&t.setAttribute("nonce",s.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var i=this._findPlaceholderStyleTag();n=i?i.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}(),k=function(e){if("undefined"!==typeof window&&window.document&&window.document.createElement&&"undefined"!==typeof _){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:_}}()||{};void 0===k.__currentId__&&(k.__currentId__=0);var N=!1;function S(e){void 0===e&&(e=0),k.__currentId__=e}function R(e,t){var n=i.useRef(t);return n.current||(n.current=function(e){if(!N){var t=b.getInstance();t&&t.onReset&&t.onReset(S),N=!0}return(void 0===e?"id__":e)+k.__currentId__++}(e)),n.current}var w=(0,l.declareStringWithPlaceholders)("accessibility-utils-ui.accessibility-utils.positionInSet");function E(e){var t=e.posInSet,n=e.setSize,s=e.onRenderDescribedElement,r=function(e,t){return(0,a.useStringWithPlaceholders)(w,{pos:e.toString(),size:t.toString()})}(t,n),o=R();return i.createElement(i.Fragment,null,i.createElement("div",{id:o,hidden:!0},r),s(o))}}}]);
//# sourceMappingURL=4683.193bc579.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[4799],{44799:function(e,t,r){r.r(t),r.d(t,{changeTheme:function(){return Y},makeGetStyles:function(){return te},makeGetStylesFromStyleObject:function(){return ae},useTheme:function(){return le},withTheme:function(){return de}});var n,a=r(7354),i={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)"}(n||(n={}));var o,s={elevation4:n.depth4,elevation8:n.depth8,elevation16:n.depth16,elevation64:n.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"};function l(){return void 0===o&&(o="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),o}o=l();var u,c=r(84867),d=0,g=1,f=2,p="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),m={};try{m=window||{}}catch(_){}var h,v=function(){function e(e,t){var r,n,a,i,o,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,c.__assign)({injectionMode:"undefined"===typeof document?d:g,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(r=null===t||void 0===t?void 0:t.classNameToArgs)&&void 0!==r?r:this._classNameToArgs,this._counter=null!==(n=null===t||void 0===t?void 0:t.counter)&&void 0!==n?n:this._counter,this._keyToClassName=null!==(i=null!==(a=this._config.classNameCache)&&void 0!==a?a:null===t||void 0===t?void 0:t.keyToClassName)&&void 0!==i?i:this._keyToClassName,this._preservedRules=null!==(o=null===t||void 0===t?void 0:t.preservedRules)&&void 0!==o?o:this._preservedRules,this._rules=null!==(s=null===t||void 0===t?void 0:t.rules)&&void 0!==s?s:this._rules}return e.getInstance=function(){if(!(u=m.__stylesheet__)||u._lastStyleElement&&u._lastStyleElement.ownerDocument!==document){var t=(null===m||void 0===m?void 0:m.FabricConfig)||{},r=new e(t.mergeStyles,t.serializedStylesheet);u=r,m.__stylesheet__=r}return u},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=(0,c.__assign)((0,c.__assign)({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace,r=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(r,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,r,n){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:r,rules:n}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var r=this._config.injectionMode,n=r!==d?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(r){case g:var a=n.sheet;try{a.insertRule(e,a.cssRules.length)}catch(i){}break;case f:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),p||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),r=null;t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)r=this._lastStyleElement.nextElementSibling;else{var a=this._findPlaceholderStyleTag();r=a?a.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(r)?r:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}(),y={};function b(e,t){var r=e[t];"-"!==r.charAt(0)&&(e[t]=y[r]=y[r]||r.replace(/([A-Z])/g,"-$1").toLowerCase())}var k={"user-select":1};function x(e,t){var r=function(){var e;if(!h){var t="undefined"!==typeof document?document:void 0,r="undefined"!==typeof navigator?navigator:void 0,n=null===(e=null===r||void 0===r?void 0:r.userAgent)||void 0===e?void 0:e.toLowerCase();h=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!r||!/rv:11.0/i.test(r.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return h}(),n=e[t];if(k[n]){var a=e[t+1];k[n]&&(r.isWebkit&&e.push("-webkit-"+n,a),r.isMoz&&e.push("-moz-"+n,a),r.isMs&&e.push("-ms-"+n,a),r.isOpera&&e.push("-o-"+n,a))}}var _,C=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function S(e,t){var r=e[t],n=e[t+1];if("number"===typeof n){var a=C.indexOf(r)>-1,i=r.indexOf("--")>-1,o=a||i?"":"px";e[t+1]="".concat(n).concat(o)}}var B="left",T="right",E=((_={}).left=T,_.right=B,_),w={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function I(e,t,r){if(e.rtl){var n=t[r];if(!n)return;var a=t[r+1];if("string"===typeof a&&a.indexOf("@noflip")>=0)t[r+1]=a.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(B)>=0)t[r]=n.replace(B,T);else if(n.indexOf(T)>=0)t[r]=n.replace(T,B);else if(String(a).indexOf(B)>=0)t[r+1]=a.replace(B,T);else if(String(a).indexOf(T)>=0)t[r+1]=a.replace(T,B);else if(E[n])t[r]=E[n];else if(w[a])t[r+1]=w[a];else switch(n){case"margin":case"padding":t[r+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}(a);break;case"box-shadow":t[r+1]=function(e,t){var r=e.split(" "),n=parseInt(r[t],10);return r[0]=r[0].replace(String(n),String(-1*n)),r.join(" ")}(a,0)}}}var A,L,H,F,N;function z(e,t){if(!t)return"";var r=[];for(var n in t)t.hasOwnProperty(n)&&"displayName"!==n&&void 0!==t[n]&&r.push(n,t[n]);for(var a=0;a<r.length;a+=2)b(r,a),S(r,a),I(e,r,a),x(r,a);for(a=1;a<r.length;a+=4)r.splice(a,1,":",r[a],";");return r.join("")}function P(e){var t=v.getInstance(),r=z({rtl:l()},e);if(!t.classNameFromKey(r)){var n=t.getClassName();t.insertRule("@font-face{".concat(r,"}"),!0),t.cacheClassName(n,r,[],["font-face",r])}}!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)"}(A||(A={})),function(e){e.Arabic="'".concat(A.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(A.Cyrillic,"'"),e.EastEuropean="'".concat(A.EastEuropean,"'"),e.Greek="'".concat(A.Greek,"'"),e.Hebrew="'".concat(A.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(A.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(A.Vietnamese,"'"),e.WestEuropean="'".concat(A.WestEuropean,"'"),e.Armenian="'".concat(A.Armenian,"'"),e.Georgian="'".concat(A.Georgian,"'")}(L||(L={})),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"}(H||(H={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(F||(F={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(N||(N={}));var D="'Segoe UI', '".concat(A.WestEuropean,"'"),W={ar:L.Arabic,bg:L.Cyrillic,cs:L.EastEuropean,el:L.Greek,et:L.EastEuropean,he:L.Hebrew,hi:L.Hindi,hr:L.EastEuropean,hu:L.EastEuropean,ja:L.Japanese,kk:L.EastEuropean,ko:L.Korean,lt:L.EastEuropean,lv:L.EastEuropean,pl:L.EastEuropean,ru:L.Cyrillic,sk:L.EastEuropean,"sr-latn":L.EastEuropean,th:L.Thai,tr:L.EastEuropean,uk:L.Cyrillic,vi:L.Vietnamese,"zh-hans":L.ChineseSimplified,"zh-hant":L.ChineseTraditional,hy:L.Armenian,ka:L.Georgian};function R(e,t,r){return{fontFamily:r,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var U=r(8820),O=r(50963),G=function(e){var t=function(e){for(var t in W)if(W.hasOwnProperty(t)&&e&&0===t.indexOf(e))return W[t];return D}(e),r="".concat(t,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:R(H.mini,F.regular,r),xSmall:R(H.xSmall,F.regular,r),small:R(H.small,F.regular,r),smallPlus:R(H.smallPlus,F.regular,r),medium:R(H.medium,F.regular,r),mediumPlus:R(H.mediumPlus,F.regular,r),large:R(H.large,F.regular,r),xLarge:R(H.xLarge,F.semibold,r),xLargePlus:R(H.xLargePlus,F.semibold,r),xxLarge:R(H.xxLarge,F.semibold,r),xxLargePlus:R(H.xxLargePlus,F.semibold,r),superLarge:R(H.superLarge,F.semibold,r),mega:R(H.mega,F.semibold,r)}}((0,U.Z)());function M(e,t,r,n){P({fontFamily:e="'".concat(e,"'"),src:(void 0!==n?"local('".concat(n,"'),"):"")+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:r,fontStyle:"normal",fontDisplay:"swap"})}function j(e,t,r,n,a){void 0===n&&(n="segoeui");var i="".concat(e,"/").concat(r,"/").concat(n);M(t,i+"-light",F.light,a&&a+" Light"),M(t,i+"-semilight",F.semilight,a&&a+" SemiLight"),M(t,i+"-regular",F.regular,a),M(t,i+"-semibold",F.semibold,a&&a+" SemiBold"),M(t,i+"-bold",F.bold,a&&a+" Bold")}!function(e){if(e){var t="".concat(e,"/fonts");j(t,A.Thai,"leelawadeeui-thai","leelawadeeui"),j(t,A.Arabic,"segoeui-arabic"),j(t,A.Cyrillic,"segoeui-cyrillic"),j(t,A.EastEuropean,"segoeui-easteuropean"),j(t,A.Greek,"segoeui-greek"),j(t,A.Hebrew,"segoeui-hebrew"),j(t,A.Vietnamese,"segoeui-vietnamese"),j(t,A.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),j(t,L.Selawik,"selawik","selawik"),j(t,A.Armenian,"segoeui-armenian"),j(t,A.Georgian,"segoeui-georgian"),M("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),F.light),M("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),F.semibold)}}(function(){var e,t,r=null===(e=(0,O.z)())||void 0===e?void 0:e.FabricConfig;return null!==(t=null===r||void 0===r?void 0:r.fontBaseUrl)&&void 0!==t?t:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var V=r(84892);function J(e,t,r,n,a){return void 0===a&&(a=!1),function(e,t){var r="";!0===t&&(r=" /* @deprecated */");return e.listTextColor=e.listText+r,e.menuItemBackgroundChecked+=r,e.warningHighlight+=r,e.warningText=e.messageText+r,e.successText+=r,e}(K(e,t,(0,c.__assign)({primaryButtonBorder:"transparent",errorText:n?"#F1707B":"#a4262c",messageText:n?"#F3F2F1":"#323130",messageLink:n?"#6CB8F6":"#005A9E",messageLinkHovered:n?"#82C7FF":"#004578",infoIcon:n?"#C8C6C4":"#605e5c",errorIcon:n?"#F1707B":"#A80000",blockingIcon:n?"#442726":"#FDE7E9",warningIcon:n?"#C8C6C4":"#797775",severeWarningIcon:n?"#FCE100":"#D83B01",successIcon:n?"#92C353":"#107C10",infoBackground:n?"#323130":"#f3f2f1",errorBackground:n?"#442726":"#FDE7E9",blockingBackground:n?"#442726":"#FDE7E9",warningBackground:n?"#433519":"#FFF4CE",severeWarningBackground:n?"#4F2A0F":"#FED9CC",successBackground:n?"#393D1B":"#DFF6DD",warningHighlight:n?"#fff100":"#ffb900",successText:n?"#92c353":"#107C10"},r),n),a)}function K(e,t,r,n,a){void 0===a&&(a=!1);var i={},o=e||{},s=o.white,l=o.black,u=o.themePrimary,d=o.themeDark,g=o.themeDarker,f=o.themeDarkAlt,p=o.themeLighter,m=o.neutralLight,h=o.neutralLighter,v=o.neutralDark,y=o.neutralQuaternary,b=o.neutralQuaternaryAlt,k=o.neutralPrimary,x=o.neutralSecondary,_=o.neutralSecondaryAlt,C=o.neutralTertiary,S=o.neutralTertiaryAlt,B=o.neutralLighterAlt,T=o.accent;return s&&(i.bodyBackground=s,i.bodyFrameBackground=s,i.accentButtonText=s,i.buttonBackground=s,i.primaryButtonText=s,i.primaryButtonTextHovered=s,i.primaryButtonTextPressed=s,i.inputBackground=s,i.inputForegroundChecked=s,i.listBackground=s,i.menuBackground=s,i.cardStandoutBackground=s),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),u&&(i.link=u,i.primaryButtonBackground=u,i.inputBackgroundChecked=u,i.inputIcon=u,i.inputFocusBorderAlt=u,i.menuIcon=u,i.menuHeader=u,i.accentButtonBackground=u),d&&(i.primaryButtonBackgroundPressed=d,i.inputBackgroundCheckedHovered=d,i.inputIconHovered=d),g&&(i.linkHovered=g),f&&(i.primaryButtonBackgroundHovered=f),p&&(i.inputPlaceholderBackgroundChecked=p),m&&(i.bodyBackgroundChecked=m,i.bodyFrameDivider=m,i.bodyDivider=m,i.variantBorder=m,i.buttonBackgroundCheckedHovered=m,i.buttonBackgroundPressed=m,i.listItemBackgroundChecked=m,i.listHeaderBackgroundPressed=m,i.menuItemBackgroundPressed=m,i.menuItemBackgroundChecked=m),h&&(i.bodyBackgroundHovered=h,i.buttonBackgroundHovered=h,i.buttonBackgroundDisabled=h,i.buttonBorderDisabled=h,i.primaryButtonBackgroundDisabled=h,i.disabledBackground=h,i.listItemBackgroundHovered=h,i.listHeaderBackgroundHovered=h,i.menuItemBackgroundHovered=h),y&&(i.primaryButtonTextDisabled=y,i.disabledSubtext=y),b&&(i.listItemBackgroundCheckedHovered=b),C&&(i.disabledBodyText=C,i.variantBorderHovered=(null===r||void 0===r?void 0:r.variantBorderHovered)||C,i.buttonTextDisabled=C,i.inputIconDisabled=C,i.disabledText=C),k&&(i.bodyText=k,i.actionLink=k,i.buttonText=k,i.inputBorderHovered=k,i.inputText=k,i.listText=k,i.menuItemText=k),B&&(i.bodyStandoutBackground=B,i.defaultStateBackground=B),v&&(i.actionLinkHovered=v,i.buttonTextHovered=v,i.buttonTextChecked=v,i.buttonTextPressed=v,i.inputTextHovered=v,i.menuItemTextHovered=v),x&&(i.bodySubtext=x,i.focusBorder=x,i.inputBorder=x,i.smallInputBorder=x,i.inputPlaceholderText=x),_&&(i.buttonBorder=_),S&&(i.disabledBodySubtext=S,i.disabledBorder=S,i.buttonBackgroundChecked=S,i.menuDivider=S),T&&(i.accentButtonBackground=T),(null===t||void 0===t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!n&&(null===t||void 0===t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=(0,c.__assign)((0,c.__assign)({},i),r)}var Q={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function X(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var r=!!e.isInverted;return function(e,t){var r,n,a;void 0===t&&(t={});var i=(0,V.h)({},e,t,{semanticColors:K(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(r=t.palette)||void 0===r?void 0:r.themePrimary)&&!(null===(n=t.palette)||void 0===n?void 0:n.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var o=0,s=Object.keys(i.fonts);o<s.length;o++){var l=s[o];i.fonts[l]=(0,V.h)(i.fonts[l],t.defaultFontStyle,null===(a=null===t||void 0===t?void 0:t.fonts)||void 0===a?void 0:a[l])}return i}({palette:i,effects:s,fonts:G,spacing:Q,isInverted:r,disableGlobalClassNames:!1,semanticColors:J(i,s,void 0,r,t),rtl:void 0},e)}var q=r(39409);function Y(e,t){if(t)t(e);else{(0,a.EQ)(e);var r=X(e);q.X.applyScopedSettings("WithTheme",{theme:r})}}var Z=r(73594),$=r(65808),ee=function(){return{}};function te(e){return(0,$.J9)((function(t,r){void 0===r&&(r=ee);var n=e(t),i=r(t);return(0,a.l8)(re(n,i))}))}function re(e,t){return Z.makeObject.apply(void 0,(0,c.__spreadArray)([function(r){var n=e[r];return(Array.isArray(n)?n:[n]).concat(t[r])}],(0,Z.keys)(e),!1))}var ne={};function ae(e){return(0,$.J9)((function(t){return void 0===t&&(t=ne),(0,a.l8)(re(e,t))}))}var ie=r(77933),oe=r(80322),se=(0,Z.memoizeFunction)((function(e){var t=e,r=(0,c.__assign)({},t.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,c.__assign)((0,c.__assign)({},t),{palette:r})}));function le(){var e=oe.useContext(ie.z),t=ue(e.customizations),r=oe.useState(t),n=r[0],a=r[1];return oe.useEffect((function(){var t=ue(e.customizations);a(t)}),[e.customizations]),oe.useEffect((function(){var t=function(){var t=ue(e.customizations);a(t)};return q.X.observe(t),function(){return q.X.unobserve(t)}}),[e.customizations]),se(n)}function ue(e){return q.X.getSettings(["theme"],"WithTheme",e).theme}var ce=r(8492);function de(e){var t=function(t){function r(){return null!==t&&t.apply(this,arguments)||this}return(0,c.__extends)(r,t),r.prototype.render=function(){var t=se(this.props.theme);return oe.createElement(e,(0,c.__assign)({},this.props,{theme:t}))},r}(oe.Component);return(0,ce.T)("WithTheme",["theme"])(t)}}}]);
//# sourceMappingURL=4799.be286d61.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,2486,4867,5343,7248],{84867:function(t,n,e){e.r(n),e.d(n,{__assign:function(){return u},__asyncDelegator:function(){return O},__asyncGenerator:function(){return m},__asyncValues:function(){return g},__await:function(){return w},__awaiter:function(){return l},__classPrivateFieldGet:function(){return E},__classPrivateFieldIn:function(){return k},__classPrivateFieldSet:function(){return T},__createBinding:function(){return p},__decorate:function(){return i},__exportStar:function(){return y},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return x},__importStar:function(){return S},__makeTemplateObject:function(){return j},__metadata:function(){return f},__param:function(){return c},__read:function(){return _},__rest:function(){return a},__spread:function(){return b},__spreadArray:function(){return v},__spreadArrays:function(){return d},__values:function(){return h}});var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(t,n)};function o(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var u=function(){return u=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},u.apply(this,arguments)};function a(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function i(t,n,e,r){var o,u=arguments.length,a=u<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(u<3?o(a):u>3?o(n,e,a):o(n,e))||a);return u>3&&a&&Object.defineProperty(n,e,a),a}function c(t,n){return function(e,r){n(e,r,t)}}function f(t,n){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,n)}function l(t,n,e,r){return new(e||(e=Promise))((function(o,u){function a(t){try{c(r.next(t))}catch(n){u(n)}}function i(t){try{c(r.throw(t))}catch(n){u(n)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,i)}c((r=r.apply(t,n||[])).next())}))}function s(t,n){var e,r,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(t,a)}catch(i){u=[6,i],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var p=Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]};function y(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||p(n,t,e)}function h(t){var n="function"===typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,n){var e="function"===typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,u=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=u.next()).done;)a.push(r.value)}catch(i){o={error:i}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(o)throw o.error}}return a}function b(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(_(arguments[n]));return t}function d(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var u=arguments[n],a=0,i=u.length;a<i;a++,o++)r[o]=u[a];return r}function v(t,n,e){if(e||2===arguments.length)for(var r,o=0,u=n.length;o<u;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function m(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),u=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){u.push([t,n,e,r])>1||i(t,n)}))})}function i(t,n){try{(e=o[t](n)).value instanceof w?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(r){l(u[0][3],r)}var e}function c(t){i("next",t)}function f(t){i("throw",t)}function l(t,n){t(n),u.shift(),u.length&&i(u[0][0],u[0][1])}}function O(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:w(t[r](n)),done:"return"===r}:o?o(n):n}:o}}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=h(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function j(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}var P=Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n};function S(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&p(n,t,e);return P(n,t),n}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,n,e,r){if("a"===e&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof n?t!==n||!r:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(t):r?r.value:n.get(t)}function T(t,n,e,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 n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,e):o?o.value=e:n.set(t,e),e}function k(t,n){if(null===n||"object"!==typeof n&&"function"!==typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?n===t:t.has(n)}}}]);
//# sourceMappingURL=4867.943b6b28.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5035],{75035:function(a,n,p){p.r(n);var r=p(39151),u={};for(var c in r)"default"!==c&&(u[c]=function(a){return r[a]}.bind(0,c));p.d(n,u)}}]);
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5078],{75078:function(e,t,n){n.r(t),n.d(t,{Accordion:function(){return yo},ActionButton:function(){return Ir},ActionButtonFinalColumn:function(){return So},ActionMenuFinalColumn:function(){return Bo},AlertCard:function(){return Zo},Animation:function(){return ii},Announced:function(){return mi},AnnouncementsProvider:function(){return xi},AriaDescription:function(){return _i},Badge:function(){return Ri},Banner:function(){return Vi},BannerBreadcrumbTitleColumn:function(){return Qi},BannerContext:function(){return Ni},BannerInfoColumn:function(){return rl},BannerInfoColumnShimmer:function(){return cl},BannerPersonaColumn:function(){return Fl},BannerPersonaColumnShimmer:function(){return Hl},BannerTitleColumn:function(){return Sl},BannerTitleColumnShimmer:function(){return Vl},BaseLayout:function(){return Ul},BingMaps:function(){return rx},BingMapsContext:function(){return ex},BingMapsProvider:function(){return lx},Breadcrumb:function(){return qi},Button:function(){return qr},ButtonFinalColumn:function(){return Kl},Callout:function(){return ea},CalloutColumn:function(){return Zl},CardCallToAction:function(){return Io},CardGroup:function(){return Xl},CardGroupBeta:function(){return Nv},CardListItem:function(){return tc},Checkbox:function(){return rc},CheckboxShimmer:function(){return ac},ChoiceGroup:function(){return Cc},ChoiceGroupShimmer:function(){return kc},ChoiceSummary:function(){return Ic},CircleShimmerColumn:function(){return Fc},ComboBox:function(){return Bi},CustomColumn:function(){return Dc},DetailsCardShimmer:function(){return Yv},DetailsFeedListItem:function(){return Uc},DetailsFeedListItemShimmer:function(){return jc},DetailsList:function(){return tu},Dialog:function(){return Bu},DialogControlProvider:function(){return Iu},DialogFooter:function(){return _u},DialogImageContent:function(){return Du},Drawer:function(){return Ws},DrawerContextWrapper:function(){return Ru},DrawerHeader:function(){return ho},DrawerHeaderAction:function(){return Kr},DrawerHeaderCallout:function(){return ta},DrawerHeaderLink:function(){return aa},DrawerHeaderMedia:function(){return Va},DrawerHeaderStatus:function(){return Ma},DrawerHeaderTitle:function(){return Ua},DrawerHeaderTitleWithShimmer:function(){return Ja},DrawerHeaderToggle:function(){return mo},DrawerShimmer:function(){return zu},Dropdown:function(){return Gu},DropdownShimmer:function(){return Wu},EmergencyBanner:function(){return Qu},EmptyColumn:function(){return es},ErrorCallout:function(){return Br},ErrorIllustration:function(){return Ju},ExpandedFeatureGroup:function(){return Ep},Facepile:function(){return _p},FatalError:function(){return Gp},Feature:function(){return $m},FeatureFlexGroup:function(){return Up},FeatureShimmer:function(){return Jm},FlexibleMenu:function(){return Ur},FlowProgressBar:function(){return Xp},FocusTrapZone:function(){return eg},FocusZone:function(){return Nc},FooterColumn:function(){return rs},FourColumnListItem:function(){return ad},FourSegmentsHighlightArea:function(){return am},GroupedList:function(){return Ad},Heading:function(){return Mt},HeroImage:function(){return hg},HipChallenge:function(){return Ag},HipChallengeShimmer:function(){return xg},Hyperlink:function(){return nr},HyperlinkColumn:function(){return as},HyperlinkTitleColumn:function(){return xs},Icon:function(){return Yt},IconButton:function(){return Qr},IconColumn:function(){return os},IconList:function(){return Ig},Image:function(){return Ba},IrisCard:function(){return Vg},Label:function(){return yn},LeftNav:function(){return dh},LineShimmerColumn:function(){return gs},List:function(){return Rd},ListCard:function(){return gh},ListItem:function(){return Ns},ListItemMedia:function(){return Es},Media:function(){return Fa},MediaButtonChoiceGroupShimmer:function(){return Eh},MediaContainer:function(){return pf},MediaGroup:function(){return Yh},MediaShimmerColumn:function(){return hs},MediaTitleColumn:function(){return ys},MenuIconButton:function(){return Rr},MessageBar:function(){return qu},MobileListItem:function(){return Vs},NoHrefLink:function(){return ir},NotificationBar:function(){return _f},NotificationBarProvider:function(){return ff},OneColumnListItem:function(){return nd},OneSegmentHighlightArea:function(){return lm},PageLayout:function(){return Op},PasswordInput:function(){return Bf},PeoplePicker:function(){return Df},Persona:function(){return _l},PersonaListCard:function(){return xh},PersonaShimmer:function(){return Mf},PersonaShimmerColumn:function(){return fs},PersonaTitleColumn:function(){return bs},PictureEditor:function(){return Uf},Pill:function(){return Zs},PillContainer:function(){return Js},PillContainerListItem:function(){return $s},PillContainerShimmer:function(){return jf},ProgressIndicator:function(){return gr},ProgressTrackerDots:function(){return Jf},ProgressViewDemoHelper:function(){return Zf},QuotaBar:function(){return av},Rating:function(){return lv},RestoreFocusAfterUpdate:function(){return u.ip},RichText:function(){return ur},SearchBox:function(){return uv},SelectButtonChoiceGroupShimmer:function(){return Wh},SensitiveContentColumn:function(){return ps},Separator:function(){return xv},ShimmerCircle:function(){return ll},ShimmerLine:function(){return Qa},ShimmerProgressView:function(){return M},SimpleCard:function(){return Ev},SimpleCardShimmer:function(){return Cv},SimpleFeedListItem:function(){return ld},SimpleFeedListItemShimmer:function(){return cd},SlotStack:function(){return ut},SlotStackItem:function(){return dt},Spinner:function(){return ro},Stack:function(){return ot},StackItem:function(){return it},StatusTracker:function(){return Vh},StopPropagation:function(){return Bn},TabItem:function(){return rf},Tabs:function(){return nf},Text:function(){return Fn},TextAction:function(){return Sv},TextActionListHeader:function(){return Bv},TextArea:function(){return Dv},TextColumn:function(){return vs},TextFinalColumn:function(){return ts},TextInput:function(){return Bg},TextTitleColumn:function(){return _s},ThemedContainer:function(){return d.Dz},ThreeSegmentsHighlightArea:function(){return gm},Toggle:function(){return uo},ToggleFinalColumn:function(){return ns},ToggleShimmer:function(){return Fm},TooltipHost:function(){return zn},TruncatedText:function(){return Qn},TwoSegmentsDetailsArea:function(){return op},TwoSegmentsHighlightArea:function(){return km},VerticalSpaceBetweenComponents:function(){return y},ViewportProvider:function(){return u.k6},anchorPositionToFluentMapping:function(){return f},boxShadowDepths:function(){return pe},checkDate:function(){return Oe},createGlobalState:function(){return u.VB},defaultInitialListLength:function(){return Ud},drawerHeaderColumnComponent:function(){return zv},drawerHeaderComponent:function(){return Rv},enforceSecureUrl:function(){return u.d_},expandedFeatureGroupDetailsAreaComponent:function(){return mp},expandedFeatureGroupHighlightAreaComponent:function(){return dp},formatString:function(){return u.JT},generateGuid:function(){return u.DA},getBase64Image:function(){return $v},getDropdownRef:function(){return Uu},getFavicon:function(){return u.p2},getKeyboardEventKeyCode:function(){return u.KQ},getRTLIcon:function(){return ke},getRandomNumber:function(){return u.rV},getTextFieldStyles:function(){return yg},getURLDomainName:function(){return u.PA},highContrastMedia:function(){return ne},iconNameList:function(){return jt},initializeIconsTwoUi:function(){return Qt},isHttpUrl:function(){return u.q$},isMobileViewport:function(){return se},isRTL:function(){return Ce},listItemColumnComponent:function(){return Fs},listItemComponent:function(){return gd},media:function(){return $},registerIconsTwoUi:function(){return Jt},replaceTokensWithValues:function(){return u.Zr},splitTextWithTokens:function(){return u.GF},toLongDate:function(){return Le},toLongDateTime:function(){return Ie},toLongDay:function(){return Ve},toShortDate:function(){return Be},toShortDay:function(){return Ne},toShortDayMonthDate:function(){return ze},toShortDayMonthDateYear:function(){return He},toShortMonthDay:function(){return Fe},toShortMonthDayYear:function(){return Re},toShortMonthYear:function(){return De},toShortTime:function(){return Ae},truncateMilliseconds:function(){return Ue},twouiZIndexes:function(){return u.XZ},useAnnouncementsDispatchContext:function(){return vi},useBingMapsContext:function(){return tx},useDialogController:function(){return Fu},useId:function(){return Xo.B},useIris:function(){return Fg},useLeftNavViewportProvider:function(){return u.TH},useMount:function(){return u.JO},useNotificationBarController:function(){return vf},useTheme:function(){return d.DP},useUnmount:function(){return u.iK},useViewport:function(){return ce},useViewportProvider:function(){return u.LI},userDisplayLanguage:function(){return Te},viewportTypeFromPixelWidthGeneric:function(){return u.gB},viewportTypes:function(){return E}});var r=n(84867),a=n(40100),o=n(58793),i=n(80322),l=n.n(i),c=n(84077),s=function(e,t){(0,c.useComponentMountLogger)("0.1.25269003",e,t)},d=n(50779),u=n(45),m=n(50453),p=function(e,t){if(void 0!==t){var n=[];t.forEach((function(e){var t=e();t&&n.push(t)})),0!==n.length&&g(e,n.join(", "),n.length)}},g=function(e,t,n){(0,c.reportComponentValidationErrorEvent)(e,t,n)},h=n(20852),f={"top-auto":h.A.topAutoEdge,"top-center":h.A.topCenter,"top-right":h.A.topRightEdge,"top-left":h.A.topLeftEdge,"right-center":h.A.rightCenter,"right-top":h.A.rightTopEdge,"right-bottom":h.A.rightBottomEdge,"bottom-auto":h.A.bottomAutoEdge,"bottom-center":h.A.bottomCenter,"bottom-right":h.A.bottomRightEdge,"bottom-left":h.A.bottomLeftEdge,"left-center":h.A.leftCenter,"left-top":h.A.leftTopEdge,"left-bottom":h.A.leftBottomEdge},v={"top-auto":"above","top-center":"above","top-right":"above","top-left":"above","right-center":"after","right-top":"after","right-bottom":"after","bottom-auto":"below","bottom-center":"below","bottom-right":"below","bottom-left":"below","left-center":"before","left-top":"before","left-bottom":"before"},x=1e3,E=["s","m","l","xl","xxl","xxxl"],y="16px",b="TwoUIV9Text",_="TwoUIV9Group2",w="TwoUIV9Group3",C="TwoUIV9Group4",k="TwoUIV9Group5",T="TwoUIV9GroupA",S="TwoUIV9GroupB",P="TwoUIV9TBD",B=n(78536),L=function(e){var t=function(t){return t?l().createElement(A,{shimmerElements:e.firstLoadView,isLoaded:!0,isOverflowHidden:e.isOverflowHidden,children:t}):void 0};return l().createElement(c.TwoUIProgressView,{operationData:e.operationData,inertView:e.inertView,firstLoadView:l().createElement(A,{shimmerElements:e.firstLoadView}),finishedView:t(e.finishedView),failedView:t(e.failedView),updatingView:t(e.updatingView),updateFailedView:t(e.updateFailedView)})},A=function(e){var t=e.children,n=e.shimmerElements,r=e.isLoaded,a=e.isOverflowHidden,o=void 0!==a&&a;return l().createElement(B.W,{styles:{root:{width:"100%",overflow:o?"hidden":void 0},shimmerWrapper:{overflow:"visible"},shimmerGradient:{display:"none"}},shimmerColors:{shimmerWave:"transparent",shimmer:"transparent"},isDataLoaded:r,customElementsGroup:n},r?t:null)},I=n(30752),F=n(7354);function D(e){return function(){for(var t=(0,d.DP)(),n={},r=0,a=Object.keys(e);r<a.length;r++){var o=a[r],i=e[o];n[o]="function"===typeof i?i(t):i}return(0,F.l8)(n)}}function R(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return F.Zq.apply(void 0,e)}var z=function(e){var t=function(t){return t?l().createElement(N,{shimmerElements:e.firstLoadView,isLoaded:!0,isOverflowHidden:e.isOverflowHidden,children:t}):void 0};return l().createElement(c.TwoUIProgressView,{operationData:e.operationData,inertView:e.inertView,firstLoadView:l().createElement(N,{shimmerElements:e.firstLoadView}),finishedView:t(e.finishedView),failedView:t(e.failedView),updatingView:t(e.updatingView),updateFailedView:t(e.updateFailedView)})},H=(0,I.n)({root:{width:"100%",position:"relative",height:"auto"},rootOverflowHidden:{overflow:"hidden"},shimmerWrapper:{width:"100%"},hiddenShimmerWrapper:{width:"100%",opacity:"0",position:"absolute",transition:"opacity ".concat(200,"ms")},dataWrapper:{opacity:"0",transition:"opacity ".concat(200,"ms")},dataWrapperVisible:{opacity:"1"}}),N=function(e){var t=e.children,n=e.shimmerElements,r=e.isLoaded,a=void 0!==r&&r,o=e.isOverflowHidden,i=void 0!==o&&o,c=H(),s=l().Children.toArray(n),d=l().useState(a),u=d[0],m=d[1];return l().useEffect((function(){if(a){var e=setTimeout((function(){m(!0)}),200);return function(){clearTimeout(e)}}m(!1)}),[a]),l().createElement("div",{className:R(c.root,i&&c.rootOverflowHidden)},!u&&l().createElement("div",{className:a?c.hiddenShimmerWrapper:c.shimmerWrapper},s),l().createElement("div",{className:R(c.dataWrapper,a&&c.dataWrapperVisible)},t))},V=w,M=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(V)?l().createElement(z,(0,r.__assign)({},t)):l().createElement(L,(0,r.__assign)({},t))};function W(e,t,n){var r=function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var o=e.apply(void 0,r);return O(o,t,n)};return Object.defineProperty(r,"displayName",{enumerable:!0,configurable:!0,get:function(){return"".concat(e.displayName||e.name,"_").concat(U(n))},set:function(){}}),r}var O=function e(t,n,r){var a=Z(t);if(K(t)){if(j(r).test(a)||n.includes(t.type))return t;if(t.type===M){var o=t.props;return Object.keys(o).forEach((function(t){if("operationData"!==t){var a=o[t];e(a,n,r)}})),t}}return g(a,"Invalid ".concat(r," component ").concat(a,".")+" Use an allowed child component or a custom component wrapped using the childWrapper HOC defined in ".concat(r),1),t},G=(0,m.O)("Validation"),U=function(e){return"".concat(e).concat(G)},j=function(e){return new RegExp("_".concat(U(e),"$"))},K=function(e){return!!e&&l().isValidElement(e)&&"string"!==typeof e.type},Z=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)},X="ViewportProvider",Y={"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"},q={s:0,m:480,l:640,xl:1024,xxl:1366,xxxl:1920},Q={s:q.m-1,m:q.l-1,l:q.xl-1,xl:q.xxl-1,xxl:q.xxxl-1,xxxl:Number.MAX_SAFE_INTEGER},J=function(e){return E.find((function(t){return e<=Q[t]}))||"xxxl"},$={minS:"@media only screen and (min-width: ".concat(q.s,"px)"),minM:"@media only screen and (min-width: ".concat(q.m,"px)"),minL:"@media only screen and (min-width: ".concat(q.l,"px)"),minXl:"@media only screen and (min-width: ".concat(q.xl,"px)"),minXxl:"@media only screen and (min-width: ".concat(q.xxl,"px)"),minXxxl:"@media only screen and (min-width: ".concat(q.xxxl,"px)"),maxS:"@media only screen and (max-width: ".concat(Q.s,"px)"),maxM:"@media only screen and (max-width: ".concat(Q.m,"px)"),maxL:"@media only screen and (max-width: ".concat(Q.l,"px)"),maxXl:"@media only screen and (max-width: ".concat(Q.xl,"px)"),maxXxl:"@media only screen and (max-width: ".concat(Q.xxl,"px)")},ee="@media only screen and (min-height: 0px)",te="@media only screen and (min-height: 420px)",ne={active:"@media only screen and (forced-colors: active)",blackOnWhite:"@media only screen and (forced-colors: active) and (prefers-color-scheme: light)",whiteOnBlack:"@media only screen and (forced-colors: active) and (prefers-color-scheme: dark)"},re=(0,u.VB)(J(window.innerWidth)),ae="x-viewport",oe=window.matchMedia?E.map((function(e){var t=window.matchMedia("(max-width: ".concat(Q[e],"px) and (min-width: ").concat(q[e],"px)"));return t[ae]=e,t})):void 0,ie=function(e){var t;if(e.matches){var n=e[ae]||(null===(t=e.currentTarget)||void 0===t?void 0:t[ae])||J(window.innerWidth);re.setValue(n)}},le=function(){(0,u.JO)((function(){oe&&oe.forEach((function(e){e.addListener(ie)})),re.setValue(J(window.innerWidth))})),(0,u.iK)((function(){oe&&oe.forEach((function(e){return e.removeListener(ie)}))}))},ce=function(){var e=(0,c.useTwoUIFlights)().includes(X),t=re.useValue();return e?(0,u.LI)():t},se=function(e){return["s","m"].includes(e)},de=function(){var e;return{root:(e={cursor:"pointer",position:"relative",borderWidth:"0px",height:"100%",width:"100%",padding:"0px"},e[ne.active]={borderWidth:"1px",":focus":{outline:"auto"}},e)}},ue=function(e,t,n,r){return{root:{borderRadius:t,overflow:"0px"!==t?"hidden":void 0,boxShadow:n?a.f.depth4:void 0,borderBottom:r?"1px solid ".concat(e.palette.white):void 0}}},me="100ms",pe={rest:a.f.depth4,hover:a.f.depth8,controls:a.f.depth16,surface:a.f.depth64},ge={root:{position:"absolute",left:"-10000px",top:"auto",width:"1px",height:"1px",overflow:"hidden",clip:"rect(1px, 1px, 1px, 1px)"}},he=n(23256),fe=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&&g(e,"Invalid props: ".concat(r),1)}},ve=n(59921),xe=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}},Ee=function(e){return function(){return!l().isValidElement(e)||e.type!==ye&&e.type!==pt?"SlotStack only accepts children of type SlotStackItem.":void 0}};var ye=function(){return l().createElement(l().Fragment,null)},be=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]),a=l().Children.toArray(t).filter((function(e){return!!e})).map((function(e){return p("SlotStack",[Ee(e)]),l().createElement(tt,(0,r.__assign)({},e.props,{key:e.key||void 0}))}));return l().createElement(et,(0,r.__assign)({type:"slots"},n,{children:a}))},_e=n(16758),we=n(8820),Ce=function(){return(0,_e.jI)()},ke=function(e){if(Ce())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},Te=function(){return(0,we.Z)()||navigator.language},Se=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$"),Pe="01/01/1996",Be=function(e,t){return Oe(e).toLocaleDateString(t||Te(),{year:"numeric",month:"numeric",day:"numeric"})},Le=function(e,t){return Oe(e).toLocaleDateString(t||Te(),{year:"numeric",month:"long",day:"numeric"})},Ae=function(e,t){return Ge(e).toLocaleTimeString(t||Te(),{hour:"2-digit",minute:"2-digit"})},Ie=function(e,t){return Oe(e).toLocaleString(t||Te())},Fe=function(e,t){return Oe(e).toLocaleDateString(t||Te(),{month:"short",day:"numeric"})},De=function(e,t){return Oe(e).toLocaleDateString(t||Te(),{year:"numeric",month:"short"})},Re=function(e,t){return Oe(e).toLocaleDateString(t||Te(),{year:"numeric",month:"short",day:"numeric"})},ze=function(e,t){return Oe(e).toLocaleDateString(t||Te(),{weekday:"short",month:"short",day:"numeric"})},He=function(e,t){return Oe(e).toLocaleDateString(t||Te(),{weekday:"short",year:"numeric",month:"short",day:"numeric"})},Ne=function(e,t){return Me(e,t,"short")},Ve=function(e,t){return Me(e,t,"long")},Me=function(e,t,n){return Oe(e).toLocaleDateString(t||Te(),{weekday:n})},We=function(e){return function(){return e?"string"===typeof e&&isNaN(Date.parse(e))?"dateTimeFormat: Unsupported timestamp format":void 0:"dateTimeFormat: timestamp not specified"}},Oe=function(e){p("dateTimeFormat",[We(e)]);var t=e;return"string"===typeof e&&(t=new Date(e)),t},Ge=function(e){if("string"===typeof e){if(Se.test(e))return new Date("".concat(Pe," ").concat(e));if("1.00:00:00"===e)return new Date("".concat(Pe," ").concat(e.slice(-8)))}return Oe(e)},Ue=function(e){return e.replace(/\.\d*/,(function(e){return e.length>=4?e.substr(0,4):e.padEnd(4,"0")}))},je=(0,I.n)({root:{display:"flex",flexWrap:"nowrap",boxSizing:"border-box","> *":{textOverflow:"ellipsis"},"> :not(:first-child)":{marginTop:"0px"},"> *:not(.ms-StackItem)":{flexShrink:1}}}),Ke=(0,I.n)({column:{flexDirection:"column"},row:{flexDirection:"row"}}),Ze=(0,I.n)({column:{flexDirection:"column-reverse"},row:{flexDirection:"row-reverse"}}),Xe=(0,I.n)({root:{boxShadow:pe.rest}}),Ye=(0,I.n)({root:{flexWrap:"wrap",height:"100%"},inner:{display:"flex",flexWrap:"wrap",boxSizing:"border-box",width:"100%",maxWidth:"100vw"}}),qe=(0,I.n)({start:{alignItems:"start"},end:{alignItems:"end"},center:{alignItems:"center"},"space-between":{alignItems:"space-between"},"space-around":{alignItems:"space-around"},"space-evenly":{alignItems:"space-evenly"},baseline:{alignItems:"baseline"},stretch:{alignItems:"stretch"},undefined:{alignItems:"undefined"}}),Qe=(0,I.n)({start:{justifyContent:"start"},end:{justifyContent:"end"},center:{justifyContent:"center"},"space-between":{justifyContent:"space-between"},"space-around":{justifyContent:"space-around"},"space-evenly":{justifyContent:"space-evenly"},baseline:{justifyContent:"baseline"},stretch:{justifyContent:"stretch"},undefined:{justifyContent:"undefined"}}),Je=function(e){var t=e.horizontal,n=e.reversed,r=void 0!==n&&n,a=e.wrap,o=void 0!==a&&a,i=e.type,l=e.verticalAlign,c=e.horizontalAlign,s=[je().root],d="slots"===i||t;if(r){var u=Ze();s=s.concat(d?u.row:u.column)}else{var m=Ke();s=s.concat(d?m.row:m.column)}if(o&&"slots"!==i){var p=Ye();s=s.concat(p.root)}var g=qe(),h=Qe(),f=d?l:c,v=d?c:l;return s=f&&g[f]?s.concat(g[f]):s.concat(g.undefined),s=v&&h[v]?s.concat(h[v]):s.concat(h.undefined),ve.z.apply(void 0,s)},$e=function(e){return function(){return l().isValidElement(e)&&e.type===tt&&e.props.slots?void 0:'<SlotStack type="slots"> only accepts children of type <StackItem slot="x">.'}},et=function(e){var t=e.type,n=e.children,a=e.childrenGap,o=e.horizontal,i=e.height,c=e.width,s=e.maxHeight,u=e.maxWidth,m=e.overflow,g=e.tabIndex,h=e.margin,f=e.padding,v=e.backgroundColor,x=e.reversed,E=void 0!==x&&x,y=e.textAlignment,b=e.totalSlots,_=e.wrap,w=void 0!==_&&_,C=e.withBorder,k=void 0!==C&&C,T=e.boxShadow,S=void 0!==T&&T,P=e.borderRadius,B=(0,r.__rest)(e,["type","children","childrenGap","horizontal","height","width","maxHeight","maxWidth","overflow","tabIndex","margin","padding","backgroundColor","reversed","textAlignment","totalSlots","wrap","withBorder","boxShadow","borderRadius"]);fe("Stack",B);var L=Je({horizontal:o,reversed:E,wrap:w,type:t,verticalAlign:B.verticalAlign,horizontalAlign:B.horizontalAlign}),A=S?Xe().root:"",I=(0,ve.z)(L,A);"slots"===t&&(o=!0);var F="unset";if("grow"in B&&(F=!0===B.grow?1:!1===B.grow?0:B.grow),"slots"===t){var D=function(e,t){var n=e.reduce((function(e,t){return e+t.props.slots}),0);return p("SlotStack",[xe(n,t)]),e.map((function(e){var n=e.props,a=n.slots,o=(0,r.__rest)(n,["slots"]),i=a/t,c=16*(1-i),s="calc(".concat(100*i,"% - ").concat(c,"px)");return l().createElement(tt,(0,r.__assign)({},o,{width:s,key:e.key||void 0}))}))}((Array.isArray(n)?n:[n]).map((function(e){return p("Stack",[$e(e)]),e})),b);return l().createElement("div",(0,r.__assign)({style:{gap:16,height:i,width:c,maxHeight:s,maxWidth:u,padding:f,margin:h,backgroundColor:v?d.J9[v]:"auto",textAlign:y,overflow:m,borderRadius:P||(k?"2px":"unset"),borderWidth:k?"1px":"unset",borderStyle:k?"solid":"unset",borderColor:k?d.J9.neutralSecondary:"unset",flexGrow:F},className:I},B,{tabIndex:g}),D)}return l().createElement("div",(0,r.__assign)({style:{gap:a,height:i,width:c,maxHeight:s,maxWidth:u,padding:f,margin:h,backgroundColor:v?d.J9[v]:"auto",textAlign:y,overflow:m,borderRadius:P||(k?"2px":"unset"),borderWidth:k?"1px":"unset",borderStyle:k?"solid":"unset",borderColor:k?d.J9.neutralSecondary:"unset",flexGrow:F},className:I},B),n)},tt=function(e){var t=e.children,n=void 0===t?l().createElement(l().Fragment,null):t,a=e.margin,o=e.height,i=e.padding,c=e.width,s=e.boxSizing,d=e.textAlignment,u=(0,r.__rest)(e,["children","margin","height","padding","width","boxSizing","textAlignment"]);fe("StackItem",u);var m="unset";"shrink"in u&&(m=!0===u.shrink?1:!1===u.shrink?0:u.shrink);var p="unset";return"grow"in u&&(p=!0===u.grow?1:!1===u.grow?0:u.grow),l().createElement("div",(0,r.__assign)({style:{height:o,width:c,padding:i,margin:a,textAlign:d||"inherit",boxSizing:s,alignSelf:u.align,flexShrink:m,flexGrow:p}},u),n)},nt=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(w)?l().createElement(et,(0,r.__assign)({},n),t):l().createElement(ot,(0,r.__assign)({},n),t)},rt=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(w)?l().createElement(tt,(0,r.__assign)({},n),t):l().createElement(it,(0,r.__assign)({},n),t)},at=function(e){return function(){return!l().isValidElement(e)||e.type!==it&&e.type!==rt||!e.props.slots?'<SlotStack type="slots"> only accepts children of type <StackItem slot="x">.':void 0}},ot=function(e){var t=e.type,n=e.children,a=e.childrenGap,i=e.horizontal,c=e.height,s=e.width,u=e.maxHeight,m=e.maxWidth,g=e.overflow,h=e.tabIndex,f=e.margin,v=e.padding,x=e.backgroundColor,E=e.reversed,y=void 0!==E&&E,b=e.textAlignment,_=e.totalSlots,w=e.wrap,C=void 0!==w&&w,k=e.withBorder,T=void 0!==k&&k,S=e.boxShadow,P=void 0!==S&&S,B=e.borderRadius,L=(0,r.__rest)(e,["type","children","childrenGap","horizontal","height","width","maxHeight","maxWidth","overflow","tabIndex","margin","padding","backgroundColor","reversed","textAlignment","totalSlots","wrap","withBorder","boxShadow","borderRadius"]);fe("Stack",L);var A=(0,d.DP)(),I={root:{}},F={};if(F.childrenGap="slots"===t?16:a,u&&(F.maxHeight=u),m&&(F.maxWidth=m),g&&(I.root.overflow=g),f&&(I.root.margin=f),v&&(I.root.padding=v),c&&(I.root.height=c),s&&(I.root.width=s),T&&(I.root.borderWidth="1px",I.root.borderStyle="solid",I.root.borderColor=A.palette.neutralSecondary,I.root.borderRadius="2px"),b&&(I.root["text-align"]=b),x&&(I.root["background-color"]=A.palette[x]),P&&(I.root.boxShadow=pe.rest),B&&(I.root["border-radius"]=B),"slots"===t){var D=function(e,t){var n=e.reduce((function(e,t){return e+t.props.slots}),0);return p("SlotStack",[lt(n,t)]),e.map((function(e){var n=e.props,a=n.slots,o=(0,r.__rest)(n,["slots"]),i=a/t,c=16*(1-i),s="calc(".concat(100*i,"% - ").concat(c,"px)");return l().createElement(it,(0,r.__assign)({},o,{width:s,key:e.key||void 0}))}))}((Array.isArray(n)?n:[n]).map((function(e){return p("Stack",[at(e)]),e})),_);return l().createElement(o.B,(0,r.__assign)({horizontal:!0,reversed:y,styles:I,tokens:F,wrap:!1},L,{doNotRenderFalsyValues:!0}),D)}return l().createElement(o.B,(0,r.__assign)({horizontal:i,reversed:y,styles:I,tokens:F,wrap:C,tabIndex:h},L,{doNotRenderFalsyValues:!0}),n)},it=function(e){var t=e.children,n=void 0===t?l().createElement(l().Fragment,null):t,a=e.margin,o=e.height,i=e.padding,c=e.width,s=e.boxSizing,d=e.textAlignment,u=(0,r.__rest)(e,["children","margin","height","padding","width","boxSizing","textAlignment"]);fe("StackItem",u);var m={root:{}};return a&&(m.root.margin=a),i&&(m.root.padding=i),o&&(m.root.height=o),c&&(m.root.width=c),s&&(m.root.boxSizing=s),d&&(m.root["text-align"]=d),l().createElement(he.a,(0,r.__assign)({styles:m,tokens:{}},u),n)},lt=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}},ct=function(e){return function(){return!l().isValidElement(e)||e.type!==dt&&e.type!==pt?"SlotStack only accepts children of type SlotStackItem.":void 0}};var st,dt=function(){return l().createElement(l().Fragment,null)},ut=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]),a=l().Children.toArray(t).filter((function(e){return!!e})).map((function(e){return p("SlotStack",[ct(e)]),l().createElement(it,(0,r.__assign)({},e.props,{key:e.key||void 0}))}));return l().createElement(ot,(0,r.__assign)({type:"slots"},n,{children:a}))},mt=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(w)?l().createElement(be,(0,r.__assign)({},n),t):l().createElement(ut,(0,r.__assign)({},n),t)},pt=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(w)?l().createElement(ye,(0,r.__assign)({},n),t):l().createElement(dt,(0,r.__assign)({},n),t)},gt=n(41608),ht=n(87841),ft=n(14766),vt={"semi-bold":F.BO.semibold,bold:F.BO.bold},xt=function(e,t){return{disabled:e.palette.neutralTertiary,error:e.palette.redDark,white:e.palette.neutralHigh}[t]},Et="1.4",yt="1.2",bt=function(e,t){var n,r,a,o,i,l,c,s,d,u,m,p,g,h,f,v,x,E,y,b,_,w,C,k,T,S,P,B;return{xxlPageBanner:{fontSize:"80px",fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:yt,fontFamily:null===(n=e.fonts)||void 0===n?void 0:n.large.font,hoverColor:e.palette.neutralPrimary},xlPageHeader:{fontSize:"64px",fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:yt,fontFamily:null===(r=e.fonts)||void 0===r?void 0:r.large.font,hoverColor:e.palette.neutralPrimary},pageBanner:{fontSize:F.s.superLarge,fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(a=e.fonts)||void 0===a?void 0:a.large.font,hoverColor:e.palette.neutralPrimary},pageTitle:{fontSize:F.s.xxLargePlus,fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(o=e.fonts)||void 0===o?void 0:o.large.font,hoverColor:e.palette.neutralPrimary},pageHeader:{fontSize:F.s.xxLarge,fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(i=e.fonts)||void 0===i?void 0:i.large.font,hoverColor:e.palette.neutralPrimary},statusHeader:{fontSize:F.s.xLargePlus,fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(l=e.fonts)||void 0===l?void 0:l.medium.font,hoverColor:e.palette.neutralPrimary},bodyLargeRegular:{fontSize:F.s.xLargePlus,fontWeight:F.BO.regular,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(c=e.fonts)||void 0===c?void 0:c.medium.font,hoverColor:e.palette.neutralPrimary},paneHeader:{fontSize:F.s.xLarge,fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(s=e.fonts)||void 0===s?void 0:s.medium.font,hoverColor:e.palette.neutralPrimary},paneThemeTitle:{fontSize:F.s.large,fontWeight:F.BO.semibold,color:e.palette.themePrimary,lineHeight:Et,fontFamily:null===(d=e.fonts)||void 0===d?void 0:d.medium.font,hoverColor:e.palette.themePrimary},paneTitle:{fontSize:F.s.large,fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(u=e.fonts)||void 0===u?void 0:u.medium.font,hoverColor:e.palette.neutralPrimary},bodyMediumThemeRegular:{fontSize:F.s.large,fontWeight:F.BO.regular,lineHeight:Et,color:e.palette.themePrimary,fontFamily:null===(m=e.fonts)||void 0===m?void 0:m.medium.font,hoverColor:e.palette.themePrimary},bodyMediumRegular:{fontSize:F.s.large,fontWeight:F.BO.regular,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(p=e.fonts)||void 0===p?void 0:p.medium.font,hoverColor:e.palette.neutralPrimary},bodyMediumSecondaryRegular:{fontSize:F.s.large,fontWeight:F.BO.regular,color:e.palette.neutralSecondary,lineHeight:Et,fontFamily:null===(g=e.fonts)||void 0===g?void 0:g.medium.font,hoverColor:e.palette.neutralSecondary},headerErrorText:{fontSize:F.s.mediumPlus,fontWeight:F.BO.semibold,color:e.semanticColors.errorBlockIcon,lineHeight:Et,fontFamily:null===(h=e.fonts)||void 0===h?void 0:h.medium.font,hoverColor:e.semanticColors.errorBlockIcon},subjectTitle:{fontSize:F.s.mediumPlus,fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(f=e.fonts)||void 0===f?void 0:f.medium.font,hoverColor:e.palette.neutralPrimary},errorBlockIcon:{fontSize:F.s.medium,fontWeight:F.BO.regular,color:e.semanticColors.errorBlockIcon,lineHeight:Et,fontFamily:null===(v=e.fonts)||void 0===v?void 0:v.medium.font,hoverColor:e.semanticColors.errorBlockIcon},cautionYellowText:{fontSize:F.s.medium,fontWeight:F.BO.regular,color:e.semanticColors.cautionYellow,lineHeight:Et,fontFamily:null===(x=e.fonts)||void 0===x?void 0:x.medium.font,hoverColor:e.semanticColors.cautionYellow},bodySuccessText:{fontSize:F.s.medium,fontWeight:F.BO.regular,color:e.semanticColors.messageWebSuccess,lineHeight:Et,fontFamily:null===(E=e.fonts)||void 0===E?void 0:E.medium.font,hoverColor:e.semanticColors.messageWebSuccess},bodyThemeDarkText:{fontSize:F.s.medium,fontWeight:F.BO.semibold,color:e.palette.themeDarkAlt,lineHeight:Et,fontFamily:null===(y=e.fonts)||void 0===y?void 0:y.medium.font,hoverColor:e.palette.themeDarkAlt},bodyThemeText:{fontSize:F.s.medium,fontWeight:F.BO.regular,color:e.palette.themePrimary,lineHeight:Et,fontFamily:null===(b=e.fonts)||void 0===b?void 0:b.medium.font,hoverColor:e.palette.themeDark},headerText:{fontSize:F.s.medium,fontWeight:F.BO.semibold,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(_=e.fonts)||void 0===_?void 0:_.medium.font,hoverColor:e.palette.neutralPrimary},bodyTertiaryText:{fontSize:F.s.medium,fontWeight:F.BO.regular,color:e.palette.neutralTertiary,lineHeight:Et,fontFamily:null===(w=e.fonts)||void 0===w?void 0:w.medium.font,hoverColor:e.palette.neutralTertiary},bodySecondaryText:{fontSize:F.s.medium,fontWeight:F.BO.regular,color:e.palette.neutralSecondary,lineHeight:Et,fontFamily:null===(C=e.fonts)||void 0===C?void 0:C.medium.font,hoverColor:e.palette.neutralSecondary},bodyPrimaryText:{fontSize:F.s.medium,fontWeight:F.BO.regular,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(k=e.fonts)||void 0===k?void 0:k.medium.font,hoverColor:e.palette.neutralPrimary},metadataText:{fontSize:F.s.small,fontWeight:F.BO.regular,color:e.palette.neutralSecondary,lineHeight:Et,fontFamily:null===(T=e.fonts)||void 0===T?void 0:T.small.font,hoverColor:e.palette.neutralSecondary},captionText:{fontSize:F.s.xSmall,fontWeight:F.BO.regular,color:e.palette.neutralPrimary,lineHeight:Et,fontFamily:null===(S=e.fonts)||void 0===S?void 0:S.small.font,hoverColor:e.palette.neutralPrimary},superscript:{fontSize:F.s.xSmall,fontWeight:F.BO.regular,color:e.palette.themePrimary,lineHeight:Et,fontFamily:null===(P=e.fonts)||void 0===P?void 0:P.small.font,hoverColor:e.palette.themePrimary},paneCautionTitle:{fontSize:F.s.large,fontWeight:F.BO.semibold,color:e.semanticColors.cautionYellow,lineHeight:Et,fontFamily:null===(B=e.fonts)||void 0===B?void 0:B.medium.font,hoverColor:e.semanticColors.cautionYellow}}[t]},_t=function(e,t,n,a){var o,i=bt(e,t),l=(0,r.__assign)((0,r.__assign)({},i),{fontWeight:n?vt[n]:i.fontWeight,color:a?xt(e,a):i.color,fontSize:i.fontSize,lineHeight:i.lineHeight});return(0,r.__assign)((0,r.__assign)({},l),{selectors:(o={},o[F.up]={color:"windowtext"},o)})},wt=n(82180),Ct=function(e){var t=e.tag,n=e.variant,a=void 0===n?"paneHeader":n,o=e.block,i=e.nowrap,c=e.weightOverride,u=e.colorOverride,m=e.children,p=(0,r.__rest)(e,["tag","variant","block","nowrap","weightOverride","colorOverride","children"]);s("Heading",p.id),fe("Heading",p);var g=(0,d.DP)(),h=_t(g,a,c,u);return l().createElement(wt.E,(0,r.__assign)({as:t,block:o,nowrap:i,styles:{root:{fontSize:h.fontSize,fontWeight:h.fontWeight,lineHeight:h.lineHeight,fontFamily:h.fontFamily,selectors:h.selectors,color:h.color}}},p),m)},kt=n(25647),Tt=n(76826),St=n(82425),Pt=(0,I.n)({disabled:{color:Tt.L.colorNeutralForeground4},error:{color:Tt.L.colorStatusDangerForeground1},white:{color:Tt.L.colorNeutralForegroundInverted}}),Bt=(0,I.n)({"semi-bold":{fontWeight:St.g.body1Strong.fontWeight},bold:{fontWeight:St.g.body1Stronger.fontWeight}}),Lt=(0,I.n)({small:{fontFamily:"Segoe UI Variable Small, ".concat(Tt.L.fontFamilyBase)},medium:{fontFamily:"Segoe UI Variable Text, ".concat(Tt.L.fontFamilyBase)},large:{fontFamily:"Segoe UI Variable Display, ".concat(Tt.L.fontFamilyBase)}}),At={xxlPageBanner:Tt.L.colorNeutralForeground1,xlPageHeader:Tt.L.colorNeutralForeground1,pageBanner:Tt.L.colorNeutralForeground1,pageTitle:Tt.L.colorNeutralForeground1,pageHeader:Tt.L.colorNeutralForeground1,statusHeader:Tt.L.colorNeutralForeground1,paneHeader:Tt.L.colorNeutralForeground1,paneThemeTitle:Tt.L.colorBrandForeground1,paneTitle:Tt.L.colorNeutralForeground1,subjectTitle:Tt.L.colorNeutralForeground2,headerText:Tt.L.colorNeutralForeground2,headerErrorText:Tt.L.colorStatusDangerForeground1,bodyLargeRegular:Tt.L.colorNeutralForeground2,bodyThemeDarkText:Tt.L.colorBrandForeground2,bodyThemeText:Tt.L.colorBrandForeground1,bodyMediumRegular:Tt.L.colorNeutralForeground2,bodyMediumThemeRegular:Tt.L.colorBrandForeground1,bodyMediumSecondaryRegular:Tt.L.colorNeutralForeground3,bodyPrimaryText:Tt.L.colorNeutralForeground2,bodySecondaryText:Tt.L.colorNeutralForeground3,bodySuccessText:Tt.L.colorStatusSuccessForeground3,bodyTertiaryText:Tt.L.colorNeutralForeground4,metadataText:Tt.L.colorNeutralForeground3,captionText:Tt.L.colorNeutralForeground2,errorBlockIcon:Tt.L.colorStatusDangerForeground1,cautionYellowText:Tt.L.colorStatusWarningForeground1,superscript:Tt.L.colorBrandForeground1,paneCautionTitle:Tt.L.colorStatusWarningForeground1},It={xxlPageBanner:"80px",xlPageHeader:St.g.display.fontSize,pageBanner:St.g.largeTitle.fontSize,pageTitle:St.g.title1.fontSize,pageHeader:St.g.title2.fontSize,statusHeader:St.g.title3.fontSize,paneCautionTitle:"18px",bodyLargeRegular:St.g.title3.fontSize,paneHeader:St.g.subtitle1.fontSize,paneThemeTitle:"18px",paneTitle:"18px",bodyMediumThemeRegular:St.g.body2.fontSize,bodyMediumRegular:St.g.body2.fontSize,bodyMediumSecondaryRegular:St.g.body2.fontSize,headerErrorText:St.g.body1.fontSize,subjectTitle:St.g.subtitle2.fontSize,errorBlockIcon:St.g.body1.fontSize,cautionYellowText:St.g.body1.fontSize,bodySuccessText:St.g.body1.fontSize,bodyThemeDarkText:St.g.body1Strong.fontSize,bodyThemeText:St.g.body1.fontSize,headerText:St.g.body1Strong.fontSize,bodyTertiaryText:St.g.body1.fontSize,bodySecondaryText:St.g.body1.fontSize,bodyPrimaryText:St.g.body1.fontSize,metadataText:St.g.caption1.fontSize,captionText:St.g.caption1.fontSize,superscript:St.g.caption1.fontSize},Ft={xxlPageBanner:St.g.display.fontWeight,xlPageHeader:St.g.display.fontWeight,pageBanner:St.g.largeTitle.fontWeight,pageTitle:St.g.title1.fontWeight,pageHeader:St.g.title2.fontWeight,statusHeader:St.g.title3.fontWeight,paneCautionTitle:St.g.largeTitle.fontWeight,bodyLargeRegular:St.g.body2.fontWeight,paneHeader:St.g.subtitle1.fontWeight,paneThemeTitle:St.g.subtitle1.fontWeight,paneTitle:St.g.subtitle1.fontWeight,bodyMediumThemeRegular:St.g.body2.fontWeight,bodyMediumRegular:St.g.body2.fontWeight,bodyMediumSecondaryRegular:St.g.body2.fontWeight,headerErrorText:St.g.largeTitle.fontWeight,subjectTitle:St.g.subtitle2.fontWeight,errorBlockIcon:St.g.body1.fontWeight,cautionYellowText:St.g.body1.fontWeight,bodySuccessText:St.g.body1.fontWeight,bodyThemeDarkText:St.g.body1Strong.fontWeight,bodyThemeText:St.g.body1.fontWeight,headerText:St.g.body1Strong.fontWeight,bodyTertiaryText:St.g.body1.fontWeight,bodySecondaryText:St.g.body1.fontWeight,bodyPrimaryText:St.g.body1.fontWeight,metadataText:St.g.caption1.fontWeight,captionText:St.g.caption1.fontWeight,superscript:St.g.caption1.fontWeight},Dt={xxlPageBanner:St.g.display.lineHeight,xlPageHeader:St.g.display.lineHeight,pageBanner:St.g.largeTitle.lineHeight,pageTitle:St.g.title1.lineHeight,pageHeader:St.g.title2.lineHeight,statusHeader:St.g.title3.lineHeight,paneCautionTitle:St.g.largeTitle.lineHeight,bodyLargeRegular:St.g.title3.lineHeight,paneHeader:St.g.subtitle1.lineHeight,paneThemeTitle:St.g.subtitle1.lineHeight,paneTitle:St.g.subtitle1.lineHeight,bodyMediumThemeRegular:St.g.body2.lineHeight,bodyMediumRegular:St.g.body2.lineHeight,bodyMediumSecondaryRegular:St.g.body2.lineHeight,headerErrorText:St.g.largeTitle.lineHeight,subjectTitle:St.g.subtitle2.lineHeight,errorBlockIcon:St.g.body1.lineHeight,cautionYellowText:St.g.body1.lineHeight,bodySuccessText:St.g.body1.lineHeight,bodyThemeDarkText:St.g.body1Strong.lineHeight,bodyThemeText:St.g.body1.lineHeight,headerText:St.g.body1Strong.lineHeight,bodyTertiaryText:St.g.body1.lineHeight,bodySecondaryText:St.g.body1.lineHeight,bodyPrimaryText:St.g.body1.lineHeight,metadataText:St.g.caption1.lineHeight,captionText:St.g.caption1.lineHeight,superscript:St.g.caption1.lineHeight},Rt=(0,I.n)({xxlPageBanner:{":hover":{color:At.xxlPageBanner}},xlPageHeader:{":hover":{color:At.xlPageHeader}},pageBanner:{":hover":{color:At.pageBanner}},pageTitle:{":hover":{color:At.pageTitle}},pageHeader:{":hover":{color:At.pageHeader}},statusHeader:{":hover":{color:At.statusHeader}},paneCautionTitle:{":hover":{color:At.paneCautionTitle}},bodyLargeRegular:{":hover":{color:At.bodyLargeRegular}},paneHeader:{":hover":{color:At.paneHeader}},paneThemeTitle:{":hover":{color:At.paneThemeTitle}},paneTitle:{":hover":{color:At.paneTitle}},bodyMediumThemeRegular:{":hover":{color:At.bodyMediumThemeRegular}},bodyMediumRegular:{":hover":{color:At.bodyMediumRegular}},bodyMediumSecondaryRegular:{":hover":{color:At.bodyMediumSecondaryRegular}},headerErrorText:{":hover":{color:At.headerErrorText}},subjectTitle:{":hover":{color:At.subjectTitle}},errorBlockIcon:{":hover":{color:At.errorBlockIcon}},cautionYellowText:{":hover":{color:At.cautionYellowText}},bodySuccessText:{":hover":{color:At.bodySuccessText}},bodyThemeDarkText:{":hover":{color:At.bodyThemeDarkText}},bodyThemeText:{":hover":{color:Tt.L.colorBrandBackgroundSelected}},headerText:{":hover":{color:At.headerText}},bodyTertiaryText:{":hover":{color:At.bodyTertiaryText}},bodySecondaryText:{":hover":{color:At.bodySecondaryText}},bodyPrimaryText:{":hover":{color:At.bodyPrimaryText}},metadataText:{":hover":{color:At.metadataText}},captionText:{":hover":{color:At.captionText}},superscript:{":hover":{color:At.superscript}}}),zt=(0,I.n)({xxlPageBanner:{fontSize:It.xxlPageBanner,fontWeight:Ft.xxlPageBanner,lineHeight:Dt.xxlPageBanner,color:At.xxlPageBanner},xlPageHeader:{fontSize:It.xlPageHeader,fontWeight:Ft.xlPageHeader,lineHeight:Dt.xlPageHeader,color:At.xlPageHeader},pageBanner:{fontSize:It.pageBanner,fontWeight:Ft.pageBanner,lineHeight:Dt.pageBanner,color:At.pageBanner},pageTitle:{fontSize:It.pageTitle,fontWeight:Ft.pageTitle,lineHeight:Dt.pageTitle,color:At.pageTitle},pageHeader:{fontSize:It.pageHeader,fontWeight:Ft.pageHeader,lineHeight:Dt.pageHeader,color:At.pageHeader},statusHeader:{fontSize:It.statusHeader,fontWeight:Ft.statusHeader,lineHeight:Dt.statusHeader,color:At.statusHeader},paneCautionTitle:{fontSize:It.paneCautionTitle,fontWeight:Ft.paneCautionTitle,lineHeight:Dt.paneCautionTitle,color:At.paneCautionTitle},bodyLargeRegular:{fontSize:It.bodyLargeRegular,fontWeight:Ft.bodyLargeRegular,lineHeight:Dt.bodyLargeRegular,color:At.bodyLargeRegular},paneHeader:{fontSize:It.paneHeader,fontWeight:Ft.paneHeader,lineHeight:Dt.paneHeader,color:At.paneHeader},paneThemeTitle:{fontSize:It.paneThemeTitle,fontWeight:Ft.paneThemeTitle,lineHeight:Dt.paneThemeTitle,color:At.paneThemeTitle},paneTitle:{fontSize:It.paneTitle,fontWeight:Ft.paneTitle,lineHeight:Dt.paneTitle,color:At.paneTitle},bodyMediumThemeRegular:{fontSize:It.bodyMediumThemeRegular,fontWeight:Ft.bodyMediumThemeRegular,lineHeight:Dt.bodyMediumThemeRegular,color:At.bodyMediumThemeRegular},bodyMediumRegular:{fontSize:It.bodyMediumRegular,fontWeight:Ft.bodyMediumRegular,lineHeight:Dt.bodyMediumRegular,color:At.bodyMediumRegular},bodyMediumSecondaryRegular:{fontSize:It.bodyMediumSecondaryRegular,fontWeight:Ft.bodyMediumSecondaryRegular,lineHeight:Dt.bodyMediumSecondaryRegular,color:At.bodyMediumSecondaryRegular},headerErrorText:{fontSize:It.headerErrorText,fontWeight:Ft.headerErrorText,lineHeight:Dt.headerErrorText,color:At.headerErrorText},subjectTitle:{fontSize:It.subjectTitle,fontWeight:Ft.subjectTitle,lineHeight:Dt.subjectTitle,color:At.subjectTitle},errorBlockIcon:{fontSize:It.errorBlockIcon,fontWeight:Ft.errorBlockIcon,lineHeight:Dt.errorBlockIcon,color:At.errorBlockIcon},cautionYellowText:{fontSize:It.cautionYellowText,fontWeight:Ft.cautionYellowText,lineHeight:Dt.cautionYellowText,color:At.cautionYellowText},bodySuccessText:{fontSize:It.bodySuccessText,fontWeight:Ft.bodySuccessText,lineHeight:Dt.bodySuccessText,color:At.bodySuccessText},bodyThemeDarkText:{fontSize:It.bodyThemeDarkText,fontWeight:Ft.bodyThemeDarkText,lineHeight:Dt.bodyThemeDarkText,color:At.bodyThemeDarkText},bodyThemeText:{fontSize:It.bodyThemeText,fontWeight:Ft.bodyThemeText,lineHeight:Dt.bodyThemeText,color:At.bodyThemeText},headerText:{fontSize:It.headerText,fontWeight:Ft.headerText,lineHeight:Dt.headerText,color:At.headerText},bodyTertiaryText:{fontSize:It.bodyTertiaryText,fontWeight:Ft.bodyTertiaryText,lineHeight:Dt.bodyTertiaryText,color:At.bodyTertiaryText},bodySecondaryText:{fontSize:It.bodySecondaryText,fontWeight:Ft.bodySecondaryText,lineHeight:Dt.bodySecondaryText,color:At.bodySecondaryText},bodyPrimaryText:{fontSize:It.bodyPrimaryText,fontWeight:Ft.bodyPrimaryText,lineHeight:Dt.bodyPrimaryText,color:At.bodyPrimaryText},metadataText:{fontSize:It.metadataText,fontWeight:Ft.metadataText,lineHeight:Dt.metadataText,color:At.metadataText},captionText:{fontSize:It.captionText,fontWeight:Ft.captionText,lineHeight:Dt.captionText,color:At.captionText},superscript:{fontSize:It.superscript,fontWeight:Ft.superscript,lineHeight:Dt.superscript,color:At.superscript}}),Ht=function(e,t,n){var r=function(e){var t=Lt(),n=zt();return{xxlPageBanner:(0,ve.z)(t.large,n.xxlPageBanner),xlPageHeader:(0,ve.z)(t.large,n.xlPageHeader),pageBanner:(0,ve.z)(t.large,n.pageBanner),pageTitle:(0,ve.z)(t.large,n.pageTitle),pageHeader:(0,ve.z)(t.medium,n.pageHeader),statusHeader:(0,ve.z)(t.medium,n.statusHeader),paneCautionTitle:(0,ve.z)(t.medium,n.paneCautionTitle),bodyLargeRegular:(0,ve.z)(t.medium,n.bodyLargeRegular),paneHeader:(0,ve.z)(t.medium,n.paneHeader),paneThemeTitle:(0,ve.z)(t.medium,n.paneThemeTitle),paneTitle:(0,ve.z)(t.medium,n.paneTitle),bodyMediumThemeRegular:(0,ve.z)(t.medium,n.bodyMediumThemeRegular),bodyMediumRegular:(0,ve.z)(t.medium,n.bodyMediumRegular),bodyMediumSecondaryRegular:(0,ve.z)(t.medium,n.bodyMediumSecondaryRegular),headerErrorText:(0,ve.z)(t.medium,n.headerErrorText),subjectTitle:(0,ve.z)(t.medium,n.subjectTitle),errorBlockIcon:(0,ve.z)(t.medium,n.errorBlockIcon),cautionYellowText:(0,ve.z)(t.medium,n.cautionYellowText),bodySuccessText:(0,ve.z)(t.medium,n.bodySuccessText),bodyThemeDarkText:(0,ve.z)(t.medium,n.bodyThemeDarkText),bodyThemeText:(0,ve.z)(t.medium,n.bodyThemeText),headerText:(0,ve.z)(t.medium,n.headerText),bodyTertiaryText:(0,ve.z)(t.medium,n.bodyTertiaryText),bodySecondaryText:(0,ve.z)(t.medium,n.bodySecondaryText),bodyPrimaryText:(0,ve.z)(t.medium,n.bodyPrimaryText),metadataText:(0,ve.z)(t.small,n.metadataText),captionText:(0,ve.z)(t.small,n.captionText),superscript:(0,ve.z)(t.small,n.superscript)}[e]}(e),a=Pt(),o=Bt();return n&&(r=(0,ve.z)(r,a[n])),t&&(r=(0,ve.z)(r,o[t])),r},Nt="paneHeader",Vt=function(e){var t=e.tag,n=e.variant,a=void 0===n?Nt:n,o=e.block,i=e.nowrap,c=e.weightOverride,d=e.colorOverride,u=e.children,m=(0,r.__rest)(e,["tag","variant","block","nowrap","weightOverride","colorOverride","children"]);s("Heading",m.id),fe("Heading",m);var p=Ht(a,c,d);return l().createElement(kt.E,(0,r.__assign)({as:t,block:o,truncate:o&&i,wrap:!i,className:p,style:{textAlign:"unset"}},m),u)},Mt=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(_)?l().createElement(Vt,(0,r.__assign)({},t)):l().createElement(Ct,(0,r.__assign)({},t))},Wt=n(47495),Ot=n(16420),Gt=n(42682),Ut=n(79989),jt=["Accept","Add","AddFriend","AddGroup","AddMedium","AddTo","Admin","Airplane","AllApps","AppIconDefaultAdd","AppIconDefaultList","Apps","AskAParent","AuthenticatorApp","Back","BingLogo","BirthdayCake","BlockContact","Blocked","BoardActivityFeed","BrokenFile","BulletedList","BumperLeft","BumperRight","ButtonA","ButtonB","ButtonX","ButtonY","Calendar","CalendarReply","Camera","Cancel","Car","CellPhone","CellPhonePermissions","CheckMark","ChevronDown","ChevronDownMed","ChevronDownSmall","ChevronLeft","ChevronLeftMed","ChevronLeftSmall","ChevronRight","ChevronRightMed","ChevronRightSmall","ChevronUp","ChevronUpMed","ChevronUpSmall","ChromeClose","ChromeMaximize","ChromeMinimize","CircleFill","CircleFillBadge12","CircleRing","CityNext2","ClearFilter","Clock","Cloud","CloudUpload","CompassNW","Completed","CompletedSolid","Contact","ContactCircle","ContactSolid","ConvertTo","Copilot","Copy","CriticalErrorSolid","DataConnectionLibrary","DateTime","DefenderApp","Delete","DeviceFamily","DeviceLaptopNoPic","Devices","Devices2","Devices3","DeviceTag","Diagnostic","Diamond","DisconnectDevice","Dislike","Download","DpadDown","DpadLeft","DpadRight","DpadUp","Dynamics365Logo","EdgeLogo","EditContact","EditListPencil","Education","Error","ErrorBadge","Family","FamilySafety","Favicon","FavoriteStar","Feedback","FileExplorer","FilterAlt","Financial","Flag","Folder","FollowUser","Forward","FullCircleMask","Game","GenericApp","Giftbox","GitHubLogo","Globe","Globe2","Group","HardDrive","Headset","Health","Heart","HeartBroken","Help","Hide","History","Home","HourGlass","ImageOff","Important","Info","InfoSolid","InkingColorOutline","Insights","Installation","InternetSharing","Jogging","LaptopSecure","LaptopSelected","Leisure","Like","Link","LinkedInLogo","LocaleLanguage","Lock","Mail","Manage","MapPin","Media","Message","Microphone","Microsoft365Logo","MicrosoftLogo","MobBattery0","MobBattery1","MobBattery10","MobBattery2","MobBattery3","MobBattery4","MobBattery5","MobBattery6","MobBattery7","MobBattery8","MobBattery9","Money","More","MoreVertical","MultiplayerJoinChallenge","MultiSelect","MyMoviesTV","MyNetwork","NavigateExternalInline","Oem","OfficeLogo","OneDriveLogo","OpenInNewTab","OpenInNewWindow","OutlookLogoInverse","Package","PassiveAuthentication","Pause","PaymentCard","PaymentCardArt128","PC1","People","PeopleSettings","Permissions","PersonWork","Photo2","Photo2Remove","PhotosApp","PictureFill","PieSingle","Pin","Pinned","Play","POI","PopExpand","PowerButton","PreviewLink","Print","ProtectedDocument","Pulse","QRCode","RadioBullet","ReadingMode","Recent","Refresh","RemoveCircle","Repair","RevealPasswordMedium","RewardsLogo","Ringer","Safe","Savings","ScreenTime","Search","Send","Settings","SettingsApp","SettingsSync","Share","Shield","ShieldTask","ShieldTaskSolid","Shirt","Shop","ShoppingCart","Signin","SignOut","Silver","SkypeLogo","Snooze","SortDown","SortUp","SpeedHigh","StarburstSuggested","StatusCircle","StatusCircle7","StatusCircleBlock2","StatusCircleCheckmark","StatusCircleExclamation","StatusCircleOuter","StatusErrorCircle7","StatusErrorFull","StatusWarning","Stop","Stopwatch","StoreLogo16","Street","Subscriptions","Switch","Sync","System","Tablet","Tag","TagSolid","TeamsLogo","TextSortAscending","TextSortDescending","ThisPC","Ticket","Toolbox","TriggerLeft","TriggerRight","Trophy","TVMonitor","TwitterLogo","Undo","Unknown","Unlock","UpdateRestore","Video","ViewDashboard","Volume","Warning","WarningSolid","WebSearch","Website","WhatsThis","Wifi","WindowsLogo","Work","XboxController","XboxGamePass","XboxGold","XboxLogo","XboxOneConsole"],Kt=new Set(jt),Zt=function(e,t){return e.palette[t]||e.semanticColors[t]},Xt="AMC Icons",Yt=function(e){var t=e.iconName,n=e.size,a=void 0===n?"16px":n,o=e.color,c=e.disabled,u=void 0!==c&&c,m=e["aria-label"],g=(0,r.__rest)(e,["iconName","size","color","disabled","aria-label"]);s("Icon",g.id),fe("Icon",g);var h=(0,d.DP)(),f=Kt.has(t)?t:"BrokenFile",v=qt(h,a,o,u);return(0,i.useEffect)((function(){p("Icon",[function(){if(!Kt.has(t))return"Invalid icon name: ".concat(t,". Please refer to the TwoUI Icon component for a list of all valid icon names.")}])}),[t]),l().createElement("span",(0,r.__assign)({role:m?"img":"presentation","aria-hidden":!m,"data-icon-name":f,className:f,style:v,"aria-label":m},g))},qt=function(e,t,n,a){var o=a?"neutralTertiaryAlt":n;return(0,r.__assign)((0,r.__assign)({fontFamily:Xt},o&&{color:Zt(e,o)}),{fontSize:t})},Qt=function(){(0,Ut.v)()},Jt=function(e){var t=[],n={};e.forEach((function(e){Kt.has(e)&&(t.push(e),n[e]=l().createElement(Yt,{iconName:e}))})),(0,F.hJ)(t),(0,F.K1)({icons:n})},$t=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}},en=function(e){var t=e.labelState,n=e.disabled,a=e.required,o=e.htmlFor,i=e.children,c=(0,r.__rest)(e,["labelState","disabled","required","htmlFor","children"]);s("Label",c.id),fe("Label",c);var u=(0,d.DP)(),m=function(e,t){switch(t){case"Error":case"Saving":case"Saved":return{root:{height:16,fontWeight:"normal",fontSize:12,lineHeight:16,padding:0,color:$t(e,t)}};case"Light":return{root:{fontWeight:"normal",color:$t(e,t)}};default:return{root:{}}}}(u,t),p=l().createElement(Gt.J,(0,r.__assign)({disabled:n,required:a,htmlFor:o,styles:m},c),i);return void 0!==t&&"Error"!==t?l().createElement(nt,{horizontal:!0,childrenGap:7},function(e,t){switch(t){case"Saving":return l().createElement(Wt.y,{ariaLive:"assertive",size:Ot.H.xSmall});case"Saved":return l().createElement(Yt,(0,r.__assign)({iconName:"CheckMark",size:"16px"},{styles:{root:{color:e.palette.blue}}}));default:return}}(u,t),p):p},tn=n(56422),nn=n(41434),rn=function(e){switch(e){case"highlighter":return Tt.L.colorPaletteYellowForeground3;case"black":case"neutralDark":case"neutralPrimary":default:return Tt.L.colorNeutralForeground1;case"white":return Tt.L.colorNeutralForegroundInverted;case"teal":return Tt.L.colorPaletteLightTealForeground2;case"neutralLight":return Tt.L.colorNeutralForeground3;case"neutralLighter":return Tt.L.colorNeutralForeground4;case"neutralSecondary":return Tt.L.colorNeutralForeground2;case"neutralTertiaryAlt":return Tt.L.colorNeutralForegroundDisabled;case"themeDark":return Tt.L.colorBrandForegroundLinkHover;case"themeDarker":return Tt.L.colorBrandForegroundLinkPressed;case"themeDarkAlt":return Tt.L.colorBrandForegroundLinkSelected;case"themeTertiary":return Tt.L.colorBrandForegroundInvertedHover;case"themeSecondary":return Tt.L.colorBrandForegroundInverted;case"themePrimary":return Tt.L.colorBrandForeground1;case"themeLighter":return Tt.L.colorBrandForegroundOnLight;case"successIcon":return Tt.L.colorPaletteGreenForeground1;case"errorIcon":return Tt.L.colorPaletteRedForeground1;case"warningIcon":return Tt.L.colorPaletteRedForeground2;case"severeWarningIcon":return Tt.L.colorPaletteDarkOrangeForeground2}},an=(0,i.createContext)({iconStore:{}}),on=(an.Provider,{BirthdayCake:"FoodCakeRegular",CheckMark:"CheckmarkRegular",BrokenFile:"DocumentErrorRegular",Photo2Remove:"DocumentErrorRegular"}),ln=nn.EEC,cn=function(e){var t=e.iconName,n=e.size,a=void 0===n?"16px":n,o=e.color,c=e.disabled,s=void 0!==c&&c,d=e["aria-label"],u=(0,r.__rest)(e,["iconName","size","color","disabled","aria-label"]),m=s?"neutralTertiaryAlt":o||"black",p=(0,r.__assign)({fontSize:a,primaryFill:rn(m),"aria-label":d},u),h=(0,i.useContext)(an).iconStore;if(!Kt.has(t))return g("Icon","IconName ".concat(t," not in IconNameSet"),1),l().createElement(ln,(0,r.__assign)({},p));var f=on[t]||t;if(!(f in h))return l().createElement(Yt,(0,r.__assign)({},e));var v=h[f];return l().createElement(v,(0,r.__assign)({},p))},sn=n(47234),dn=0,un=1,mn=2,pn=3,gn=((st={})[dn]="extra-tiny",st[un]="tiny",st[mn]="small",st[pn]="medium",st),hn={top:"above",right:"after",left:"before",bottom:"below"},fn=function(e){var t=e.label,n=e.labelPosition,a=void 0===n?"right":n,o=e.spinnerSize,i=void 0===o?mn:o,c=(0,r.__rest)(e,["label","labelPosition","spinnerSize"]);return s("Spinner",c.id),fe("Spinner",c),l().createElement(sn.y,{"aria-label":c["aria-label"],"aria-live":c["aria-live"],role:"alert",label:t,labelPosition:hn[a],size:gn[i]})},vn=function(){var e=(0,i.useState)(!1),t=e[0],n=e[1];return(0,i.useEffect)((function(){var e=setTimeout((function(){n(!0)}),x);return function(){return clearTimeout(e)}}),[]),t?l().createElement(sn.y,null):null},xn=(0,I.n)({root:{fontSize:Tt.L.fontSizeBase200},error:{color:Tt.L.colorStatusDangerForeground1},saving:{color:Tt.L.colorBrandForeground1},saved:{color:Tt.L.colorBrandForeground1},light:{color:Tt.L.colorNeutralForeground3,fontWeight:Tt.L.fontWeightRegular}}),En=function(e){var t=e.labelState,n=e.disabled,a=e.required,o=e.htmlFor,l=e.children,c=(0,r.__rest)(e,["labelState","disabled","required","htmlFor","children"]);s("Label",c.id),fe("Label",c);var d=xn(),u=d.root;"Error"===t?u=(0,ve.z)(d.root,d.error):"Saving"===t?u=(0,ve.z)(d.root,d.saving):"Saved"===t?u=(0,ve.z)(d.root,d.saved):"Light"===t&&(u=(0,ve.z)(d.root,d.light));var m=i.createElement(tn.J,(0,r.__assign)({disabled:n,required:a,htmlFor:o,className:u},c),l);return void 0!==t&&"Error"!==t?i.createElement(nt,{horizontal:!0,childrenGap:7},function(e){switch(e){case"Saving":return i.createElement(fn,{"aria-label":"loading","aria-live":"assertive",spinnerSize:dn});case"Saved":return i.createElement(cn,{iconName:"CheckMark",size:"16px"});default:return}}(t),m):m},yn=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(w)?l().createElement(En,(0,r.__assign)({},t)):l().createElement(en,(0,r.__assign)({},t))},bn=function(e){return!1===isNaN(Number(e))},_n=function(){return navigator.userAgent.includes("rv:11.0")};function wn(e,t){return e.length<=0||0===t?[]:e.reduce((function(e,n,r){return r%t===0?e.push([n]):e[e.length-1].push(n),e}),[])}var Cn=function(e){return e.stopPropagation()},kn=function(e){var t,n=e.children,a=e.keycodes,o=void 0===a?[]:a,i=(0,r.__rest)(e,["children","keycodes"]);return s("StopPropagation"),l().createElement("div",{style:(t=i,"inline-block"===t.display?{display:"inline-block"}:t.grow?{height:"100%",width:"100%"}:void 0),onClick:Cn,onKeyDown:function(e){return function(e,t){t.includes(e.keyCode)&&e.stopPropagation()}(e,o)},role:"presentation"},n)},Tn=function(e){return e.stopPropagation()},Sn=function(e){var t,n=e.children,a=e.keycodes,o=void 0===a?[]:a,i=(0,r.__rest)(e,["children","keycodes"]);return s("StopPropagation"),l().createElement("div",{style:(t=i,"inline-block"===t.display?{display:"inline-block"}:t.grow?{height:"100%",width:"100%"}:void 0),onClick:Tn,onKeyDown:function(e){return function(e,t){t.includes(e.keyCode)&&e.stopPropagation()}(e,o)},role:"presentation"},n)},Pn=_,Bn=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(Pn)?l().createElement(Sn,(0,r.__assign)({},t)):l().createElement(kn,(0,r.__assign)({},t))},Ln="bodyPrimaryText",An=function(e){var t=e.block,n=e.nowrap,a=e.variant,o=void 0===a?Ln:a,i=e.colorOverride,c=e.weightOverride,d=e.children,u=e.disabled,m=void 0!==u&&u,p=(0,r.__rest)(e,["block","nowrap","variant","colorOverride","weightOverride","children","disabled"]);s("Text",p.id),fe("Text",p);var g=Ht(o,c,m?"disabled":i);return l().createElement(kt.E,(0,r.__assign)({block:t,wrap:!n,className:g,style:{textAlign:"unset"}},p),d)},In=function(e){var t=e.block,n=e.nowrap,a=e.variant,o=void 0===a?"bodyPrimaryText":a,i=e.colorOverride,c=e.weightOverride,u=e.children,m=e.disabled,p=void 0!==m&&m,g=(0,r.__rest)(e,["block","nowrap","variant","colorOverride","weightOverride","children","disabled"]);s("Text",g.id),fe("Text",g);var h=(0,d.DP)(),f=_t(h,o,c,p?"disabled":i);return l().createElement(wt.E,(0,r.__assign)({block:t,nowrap:n,styles:{root:{fontSize:f.fontSize,fontWeight:f.fontWeight,lineHeight:f.lineHeight,fontFamily:f.fontFamily,selectors:f.selectors,color:f.color}}},g),u)},Fn=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(b)?l().createElement(An,(0,r.__assign)({},n),t):l().createElement(In,(0,r.__assign)({},n),t)},Dn=n(84496),Rn=function(e){return{backgroundColor:e.palette.neutralHigh,styles:{beakCurtain:{backgroundColor:e.palette.neutralHigh}}}},zn=function(e){var t=e.children,n=e.tooltipText,r=e.tooltipPosition;s("TooltipHost");var a=(0,d.DP)();return l().createElement(Dn.S,{directionalHint:f[r||"top-center"],content:n,calloutProps:Rn(a)},t)},Hn=function(e,t){return window.getComputedStyle(e).getPropertyValue(t)},Nn=function(e){var t=e;return t.includes("px")&&(t=t.replace("px","")),+t},Vn=function(e){return Nn(Hn(e,"font-size"))},Mn=function(e){var t=Hn(e,"line-height");return"normal"===t?1.4*Vn(e):Nn(t)},Wn=function(e,t){return Math.round(e*t)},On=function(e){var t,n=e.type,a=e.lines,o=void 0===a?1:a,d=e.stopPropagation,u=void 0===d||d,m=e.isFocusable,p=void 0===m?"ifTruncated":m,g=e.onTruncated,h=(0,r.__rest)(e,["type","lines","stopPropagation","isFocusable","onTruncated"]);s("TruncatedText",h.id);var f=(0,i.useRef)(null),v=(0,i.useState)(void 0),x=v[0],E=v[1],y=(0,i.useState)(!1),w=y[0],C=y[1],k=function(){if(f.current){var e=(t=f.current).scrollHeight>t.clientHeight;C(e),e&&(null===g||void 0===g||g())}var t},T=function(){var e;(null===(e=f.current)||void 0===e?void 0:e.firstElementChild)&&E(Vn(f.current.firstElementChild))};(0,i.useLayoutEffect)((function(){return window.addEventListener("resize",T),window.addEventListener("resize",k),function(){window.removeEventListener("resize",k),window.removeEventListener("resize",T)}}),[]),(0,i.useLayoutEffect)((function(){T()}),[f]),(0,i.useLayoutEffect)((function(){k()}),[x,h.children]);var S,P="always"===p||"ifTruncated"===p&&w?{"data-is-focusable":!0,tabIndex:0}:null,B=_n()&&f.current?{height:Wn(Mn(f.current),o),overflowY:"scroll"}:void 0,L=(0,c.useTwoUIFlights)();if(L.includes(b)&&"heading"!==n||L.includes(_)&&"heading"===n){var A=h.variant||("heading"===n?Nt:Ln);S=Dt[A]}var I=l().createElement("span",(0,r.__assign)({ref:f},P,{style:(0,r.__assign)({fontSize:x,overflow:"hidden",boxSizing:"content-box",whiteSpace:"normal",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,color:null!==(t=h.colorOverride)&&void 0!==t?t:void 0,lineHeight:S},B)}),"heading"===n?l().createElement(Mt,(0,r.__assign)({},h)):l().createElement(Fn,(0,r.__assign)({},h)));if(w&&!_n()){var F=l().createElement(zn,{tooltipText:h.children,tooltipPosition:"bottom-left"},I);return u?l().createElement(Bn,null,F):F}return I},Gn=n(49307),Un=function(e){var t=e.children,n=e.tooltipText,r=e.tooltipPosition;s("TooltipHost");var a=t;return l().createElement(Gn.m,{positioning:{position:v[r||"top-center"]},content:n,relationship:"description",appearance:"normal",withArrow:!0},a)},jn=function(e,t){return window.getComputedStyle(e).getPropertyValue(t)},Kn=function(e){var t=e;return t.includes("px")&&(t=t.replace("px","")),+t},Zn=function(e){return Kn(jn(e,"font-size"))},Xn=function(e){var t=jn(e,"line-height");return"normal"===t?1.4*Zn(e):Kn(t)},Yn=function(e,t){return Math.round(e*t)},qn=function(e){var t,n=e.type,a=e.lines,o=void 0===a?1:a,c=e.stopPropagation,d=void 0===c||c,u=e.isFocusable,m=void 0===u?"ifTruncated":u,p=e.onTruncated,g=(0,r.__rest)(e,["type","lines","stopPropagation","isFocusable","onTruncated"]);s("TruncatedText",g.id);var h=(0,i.useRef)(null),f=(0,i.useState)(void 0),v=f[0],x=f[1],E=(0,i.useState)(!1),y=E[0],b=E[1],_=function(){if(h.current){var e=(t=h.current).scrollHeight>t.clientHeight;b(e),e&&(null===p||void 0===p||p())}var t},w=function(){var e;(null===(e=h.current)||void 0===e?void 0:e.firstElementChild)&&x(Zn(h.current.firstElementChild))};(0,i.useLayoutEffect)((function(){return window.addEventListener("resize",w),window.addEventListener("resize",_),function(){window.removeEventListener("resize",_),window.removeEventListener("resize",w)}}),[]),(0,i.useLayoutEffect)((function(){w()}),[h]),(0,i.useLayoutEffect)((function(){_()}),[v,g.children]);var C="always"===m||"ifTruncated"===m&&y?{"data-is-focusable":!0,tabIndex:0}:null,k=_n()&&h.current?{height:Yn(Xn(h.current),o),overflowY:"scroll"}:void 0,T=g.variant||("heading"===n?Nt:Ln),S=Dt[T],P=l().createElement("span",(0,r.__assign)({ref:h},C,{style:(0,r.__assign)({fontSize:v,overflow:"hidden",boxSizing:"content-box",whiteSpace:"normal",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:o,color:null!==(t=g.colorOverride)&&void 0!==t?t:void 0,lineHeight:S,flex:"none",alignSelf:"flex-start"},k)}),"heading"===n?l().createElement(Vt,(0,r.__assign)({},g)):l().createElement(An,(0,r.__assign)({},g)));if(y&&!_n()){var B=l().createElement(Un,{tooltipText:g.children,tooltipPosition:"bottom-left"},P);return d?l().createElement(Sn,null,B):B}return P},Qn=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(w)?l().createElement(qn,(0,r.__assign)({},t)):l().createElement(On,(0,r.__assign)({},t))},Jn=function(e){var t,n=e.children,a=e.disabled,o=e.truncatedLinkProps,u=e.textVariant,m=void 0===u?"bodyThemeText":u,p=e.underline,g=(0,r.__rest)(e,["children","disabled","truncatedLinkProps","textVariant","underline"]);s("Hyperlink",g.id);var h,f,v,x=(0,c.useTwoUITelemetry)(),E=(0,d.DP)(),y="download"in g?g.download:void 0,b="href"in g?g.href:void 0;b||(b="#",a||(v=ft.Link,h="to"in g?g.to:void 0,f="replace"in g?g.replace:void 0));var _=g.title,w=(0,r.__rest)(g,["title"]);delete w.textVariant,fe("Hyperlink",w);var C=_||w["aria-label"];"string"!==typeof n&&O(n,[Mt,yn],"Hyperlink"),"target"in w&&(w.rel="noreferrer noopener");var k=_t(E,m,void 0,a?"disabled":void 0),T={root:(t={fontSize:k.fontSize,fontWeight:k.fontWeight,lineHeight:k.lineHeight,fontFamily:k.fontFamily,selectors:k.selectors,color:k.color,":hover":{color:k.hoverColor}},t[F.up]={color:"linktext",":focus > span":{color:"Highlight",outline:"1px solid Highlight"}},t)};return(0,i.useEffect)((function(){x.checkUrlAndReportHttp(b)}),[b]),l().createElement(ht.N,(0,r.__assign)({href:b,title:C,disabled:a,styles:T},w,{as:v,to:h,replace:f,download:y,underline:p}),o?l().createElement(Qn,{lines:o.lines,variant:m,stopPropagation:!1},n):n)},$n=n(12264),er=(0,I.n)({root:{"&HighContrastSelector":{color:"linktext",":focus > span":{color:"Highlight",outline:"".concat(Tt.L.strokeWidthThin," solid Highlight")}},textDecorationThickness:"auto","&:hover":{textDecorationThickness:"auto"}}}),tr=function(e){var t=e.children,n=e.disabled,a=e.truncatedLinkProps,o=e.textVariant,d=void 0===o?"bodyThemeText":o,u=e.underline,m=(0,r.__rest)(e,["children","disabled","truncatedLinkProps","textVariant","underline"]);s("Hyperlink",m.id);var p=(0,c.useTwoUITelemetry)(),g="download"in m?m.download:void 0,h="href"in m?m.href:void 0,f=(0,ft.useHistory)(),v="to"in m?m.to:void 0,x="replace"in m?m.replace:void 0,E=m.title,y=(0,r.__rest)(m,["title"]),b=(y.textVariant,(0,r.__rest)(y,["textVariant"]));fe("Hyperlink",b);var _=E||b["aria-label"];"string"!==typeof t&&O(t,[Vt,Mt,yn,En],"Hyperlink"),"target"in b&&(b.rel="noreferrer noopener");var w=Ht(d,void 0,n?"disabled":void 0),C=(0,ve.z)(Rt()[d],w),k=(0,ve.z)(er().root,C);(0,i.useEffect)((function(){p.checkUrlAndReportHttp(h)}),[h]);return l().createElement($n.N,(0,r.__assign)({href:h,title:_,disabled:n,className:k},b,{download:g,inline:u,as:"a",onClick:function(e){if("onClick"in m&&m.onClick&&m.onClick(e),v&&!h){e.preventDefault();var t="function"===typeof v?v(f.location):v;x?f.replace(t):f.push(t)}}}),a?l().createElement(qn,{lines:a.lines,variant:d,stopPropagation:!1},t):t)},nr=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(T)?l().createElement(tr,(0,r.__assign)({},t)):l().createElement(Jn,(0,r.__assign)({},t))},rr=function(e){var t,n=e.children,a=e.disabled,o=e.textVariant,i=void 0===o?"bodyThemeText":o,c=e.truncatedLinkProps,u=e.underline,m=(0,r.__rest)(e,["children","disabled","textVariant","truncatedLinkProps","underline"]);s("NoHrefLink",m.id),fe("NoHrefLink",m);var p=(0,d.DP)(),g=_t(p,i,void 0,a?"disabled":void 0),h={root:{fontSize:g.fontSize,fontWeight:g.fontWeight,lineHeight:g.lineHeight,fontFamily:g.fontFamily,selectors:g.selectors,color:g.color,":hover":{color:g.hoverColor}}};return a||(h.root.selectors=((t={})[F.up]={color:"linktext"},t)),l().createElement(ht.N,(0,r.__assign)({disabled:a,styles:h,underline:u},m),c?l().createElement(Qn,{lines:c.lines,variant:i,stopPropagation:!1},n):n)},ar=(0,I.n)({underlined:{textDecorationThickness:"auto","&:hover":{textDecorationThickness:"auto"}},highContrast:{"@media (forced-colors: active)":{color:"LinkText",":hover":{color:"LinkText"}}}}),or=function(e){var t=e.children,n=e.disabled,a=e.textVariant,o=void 0===a?"bodyThemeText":a,i=e.truncatedLinkProps,c=e.underline,d=(0,r.__rest)(e,["children","disabled","textVariant","truncatedLinkProps","underline"]);s("NoHrefLink",d.id),fe("NoHrefLink",d);var u=ar(),m=Ht(o,void 0,n?"disabled":void 0),p=(0,ve.z)(Rt()[o],m,u.underlined,!n&&u.highContrast);return l().createElement($n.N,(0,r.__assign)({},d,{disabled:n,className:p,inline:c,as:"button"}),i?l().createElement(qn,{lines:i.lines,variant:o,stopPropagation:!1},t):t)},ir=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(C)?l().createElement(or,(0,r.__assign)({},t)):l().createElement(rr,(0,r.__assign)({},t))},lr=function(e){var t=e.textWithTokens,n=e.tokensAndValues,a=e.truncatedTextProps,o=(0,r.__rest)(e,["textWithTokens","tokensAndValues","truncatedTextProps"]);s("RichText",o.id);var i=(0,u.GF)(t);return a?l().createElement(Qn,(0,r.__assign)({},o,a),(0,u.Zr)(i,n,cr)):l().createElement(Fn,(0,r.__assign)({},o),(0,u.Zr)(i,n,cr))},cr=function(e){var t=[ir],n=[nr],a=null===e||void 0===e?void 0:e.type;if(t.includes(a)){var o=e.props;return l().createElement(ir,(0,r.__assign)({},o,{underline:!0}))}if(n.includes(a)){o=e.props;return l().createElement(nr,(0,r.__assign)({},o,{underline:!0}))}return e},sr=function(e){var t=e.textWithTokens,n=e.tokensAndValues,a=e.truncatedTextProps,o=(0,r.__rest)(e,["textWithTokens","tokensAndValues","truncatedTextProps"]);s("RichText",o.id);var i=(0,u.GF)(t);return a?l().createElement(qn,(0,r.__assign)({},o,a),(0,u.Zr)(i,n,dr)):l().createElement(An,(0,r.__assign)({},o),(0,u.Zr)(i,n,dr))},dr=function(e){var t=[or,ir],n=[tr,nr],a=null===e||void 0===e?void 0:e.type;if(t.includes(a)){var o=e.props;return l().createElement(or,(0,r.__assign)({},o,{underline:!0}))}if(n.includes(a)){o=e.props;return l().createElement(tr,(0,r.__assign)({},o,{underline:!0}))}return e},ur=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(k)?l().createElement(sr,(0,r.__assign)({},t)):l().createElement(lr,(0,r.__assign)({},t))},mr=function(e,t,n,r,a){var o,i,l;"wide"===t?i="480px":"narrow"===t&&(i="200px"),"thick"===a?l="8px":"thin"===a&&(l="4px");var c=_t(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:l,backgroundColor:n},progressTrack:(o={borderRadius:l,backgroundColor:r},o[F.up]={backgroundColor:"windowText"},o),root:{maxWidth:i}}},pr=function(e){return l().createElement(nt,null,l().createElement(ur,{textWithTokens:e.textWithTokens,tokensAndValues:e.tokensAndValues,truncatedTextProps:e.truncatedTextProps}))},gr=function(e){var t,n,r=e.label,a=e.labelTextVariant,o=void 0===a?"headerText":a,i=e.description,c=e.percentComplete,u=e.ariaValueText,m=e.ariaLabel,p=e.icon,g=e.usage,h=e.barColor,f=void 0===h?"themePrimary":h,v=e.trackColor,x=void 0===v?"neutralLight":v,E=e.barType,y=e.isStackStyle,b=e.size;s("ProgressIndicator");var _,w=(0,d.DP)();_=E?"thick"===E?8:4:c||0===c?4:2;var C=null!==(t=w.palette[f])&&void 0!==t?t:w.semanticColors[f],k=null!==(n=w.palette[x])&&void 0!==n?n:w.semanticColors[x],T=l().createElement(Qn,{lines:3,variant:"metadataText"},i);return l().createElement(gt.Z,{styles:mr(w,b,C,k,E),label:l().createElement(nt,{horizontal:!y,horizontalAlign:"space-between",wrap:!0},l().createElement(nt,{horizontal:!0,childrenGap:5},p&&!y?l().createElement(Yt,{iconName:p.iconName,size:p.size,color:p.color,disabled:p.disabled}):null,r?"string"===typeof r?l().createElement(nt,null,l().createElement(Qn,{lines:2,variant:o},r)):pr(r):null),g?pr(g):null),description:T,percentComplete:c,ariaValueText:u,barHeight:_,ariaLabel:m})},hr=function(e,t,n){var r;return{root:{minHeight:n,width:"100%",backgroundColor:t?e.palette.neutralMed:e.palette.neutralHigh,textAlign:"left",selectors:(r={":hover":{backgroundColor:e.palette.neutralLighter},":active":{backgroundColor:e.palette.neutralLight}},r[F.up]={":hover":{backgroundColor:"Highlight",color:"HighlightText",forcedColorAdjust:"none"}},r)}}},fr=function(e){return{root:{width:e?"calc(100% - 48px)":"100%"}}},vr=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)}}},xr=function(e){return{root:{padding:"0px"!==e?"0px 0px 0px ".concat(e):void 0}}},Er=function(e,t,n){return{transform:"start"===n?yr(t):br(t),transition:"transform 0.1s linear 0s",fontSize:"16px",fontFamily:"AMC Icons",color:e.palette.neutralSecondary}},yr=function(e){var t=Ce(),n="rotate(0deg)";return e&&t&&(n="rotate(-90deg)"),e&&!t&&(n="rotate(90deg)"),n},br=function(e){var t=Ce(),n="rotate(0deg)";return e&&t&&(n="rotate(-180deg)"),e&&!t&&(n="rotate(180deg)"),n},_r=function(e){var t=e.chevronPosition,n=void 0===t?"start":t,a=e.isShimmer,o=void 0!==a&&a,c=(0,i.useContext)(vo),s=(0,d.DP)(),u="start"===n?ke("ChevronRightMed"):"ChevronDownMed";return l().createElement("span",(0,r.__assign)({role:o?void 0:"button","data-is-focusable":!0,tabIndex:0,"aria-expanded":o?void 0:c.drawerOpen,"aria-controls":c.drawerID},c.chevronAriaLabel?{"aria-label":c.chevronAriaLabel}:{"aria-labelledby":o?void 0:c.drawerHeaderTitleId},{"data-icon-name":u,className:u,style:Er(s,c.drawerOpen,n),onClick:c.onClickDrawer,onKeyDown:function(e){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),void 0!==c.onClickDrawer&&c.onClickDrawer(e))}}))},wr=n(29178),Cr=n(77557),kr=n(47751),Tr=n(43639),Sr=function(e){return{calloutMain:{backgroundColor:e.palette.neutralHigh,maxWidth:"300px",padding:"20px 24px"},beak:{backgroundColor:e.palette.neutralHigh}}},Pr={display:"inline-block",verticalAlign:"text-top"},Br=function(e){var t=e.targetOrTriggerButton,n=e.calloutPosition,a=void 0===n?"bottom-center":n,o=e.errorMessage,c=e.errorMessageAriaLabel,u=(0,r.__rest)(e,["targetOrTriggerButton","calloutPosition","errorMessage","errorMessageAriaLabel"]);s("ErrorCallout",u.id);var m,p,g=(0,d.DP)(),h=(0,i.useState)(!0),v=h[0],x=h[1],E=(0,i.useRef)(null);"aria-label"in t?p=t:m=t;var y=m||E;fe("ErrorCallout",u);var b={icon:{color:g.semanticColors.errorIcon},root:{height:"100%"}};return l().createElement(l().Fragment,null,p?l().createElement("div",null,l().createElement("div",{ref:E,style:Pr},l().createElement(kr.K,{onClick:function(){x(!v)},ariaLabel:p["aria-label"],"data-bi-id":p["data-bi-id"],iconProps:{iconName:"Error"},styles:b}))):null,v?l().createElement(Tr.P,(0,r.__assign)({styles:Sr(g),role:"alertdialog",target:y,onDismiss:function(){x(!1)},setInitialFocus:!0,directionalHint:f[a]},u),l().createElement(nt,{horizontal:!0,verticalAlign:"center",childrenGap:6},p?null:l().createElement(Yt,{iconName:"Error",color:"errorIcon",size:"16px"}),l().createElement(yn,{"aria-label":c},o))):null)},Lr=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"}},Ar=function(e){var t=e.errorIconName,n=void 0===t?"Error":t,a=e.errorMessage,i=e.errorMessageAriaLabel,c=e.retryLink,s=(e.children,(0,r.__rest)(e,["errorIconName","errorMessage","errorMessageAriaLabel","retryLink","children"]));return fe("RetryActionButton",s),l().createElement(o.B,{horizontal:!0,tokens:{childrenGap:8},style:{display:"inline-flex"},doNotRenderFalsyValues:!0},l().createElement(o.B,{tokens:{padding:"5px 0 0 0"},doNotRenderFalsyValues:!0},l().createElement(Yt,{iconName:n,color:"errorIcon",size:"12px"})),l().createElement(o.B,{horizontal:!1,doNotRenderFalsyValues:!0},l().createElement(yn,{"aria-label":i},a),l().createElement(ir,(0,r.__assign)({},c))))},Ir=function(e){var t,n=e.text,a=e["aria-label"],o=e.disabled,u=void 0!==o&&o,m=e.iconName,p=e.textAlignment,g=void 0===p?"center":p,h=e.operationData,f=e.type,v=e.parentComponentName,x=(0,r.__rest)(e,["text","aria-label","disabled","iconName","textAlignment","operationData","type","parentComponentName"]);s("ActionButton",x.id),fe("ActionButton",x);var E=(0,c.useTwoUITelemetry)(),y="primary"===f?wr.j:Cr.r,b=function(e,t,n){return void 0===n&&(n="themePrimary"),"error"===e?{rest:"errorIcon",hover:"warningIcon",pressed:"severeWarningIcon"}:Lr(e,t,n)}(e.type,u),_="TextColumn"===v||"MediaTitleColumn"===v;"default"!==e.type&&e.type||(b=Lr(e.type,u,e.buttonColor));var w,C=(0,d.DP)(),k=(0,r.__assign)({text:n,disabled:u,ariaLabel:a,styles:{root:(0,r.__assign)((t={color:Zt(C,b.rest),textAlign:g},t[F.up]={color:(w=e.type,"primary"!==w?"highlight":void 0)},t),_&&{height:"auto",wordBreak:"normal"}),rootHovered:{color:Zt(C,b.hover)},rootPressed:{color:Zt(C,b.pressed)}},onRenderIcon:m?function(){return l().createElement(Yt,{size:"16px",iconName:m})}:void 0},x),T=x.href;(0,i.useEffect)((function(){E.checkUrlAndReportHttp(T)}),[T]);var S=function(){return x.tooltipHostProps?l().createElement(zn,(0,r.__assign)({},x.tooltipHostProps),l().createElement(y,(0,r.__assign)({},k))):l().createElement(y,(0,r.__assign)({},k))};if(h){var P=S();"retryActionButton"in h&&h.retryActionButton?P=l().createElement(Ar,(0,r.__assign)({},h.retryActionButton)):"errorCallout"in h&&h.errorCallout&&(P=l().createElement(Fr,{as:y,buttonProps:k,errorCalloutProps:h.errorCallout}));var B=(0,r.__assign)((0,r.__assign)({},k),{text:h.textWhileUpdating||n,disabled:!0,onRenderIcon:function(){return l().createElement(Wt.y,{size:Ot.H.small,style:{marginLeft:"4px",marginRight:"4px"}})}});return l().createElement(c.TwoUIProgressView,{operationData:h.progressViewOperationData,updatingView:l().createElement(y,(0,r.__assign)({},B)),updateFailedView:P,finishedView:S(),failedView:void 0})}return S()},Fr=function(e){var t=e.as,n=e.buttonProps,a=e.errorCalloutProps,o=(0,i.useRef)(null);return l().createElement(l().Fragment,null,l().createElement(t,(0,r.__assign)({elementRef:o},n)),l().createElement(Br,(0,r.__assign)({targetOrTriggerButton:o},a)))},Dr=n(82914),Rr=function(e){var t=e.iconName,n=e.menuItems,a=e.iconColor,o=e.isBeakVisible,i=e.backgroundColor,u=e.onMenuOpened,m=e.onMenuDismissed,p=e.menuItemsPadding,g=e.disabled,f=e.hasHighContrastBackground,v=e.menuIconVariant,x=void 0===v?"default":v,E=(0,r.__rest)(e,["iconName","menuItems","iconColor","isBeakVisible","backgroundColor","onMenuOpened","onMenuDismissed","menuItemsPadding","disabled","hasHighContrastBackground","menuIconVariant"]);s("MenuIconButton",E.id);var y=(0,d.DP)(),b=(0,c.useTwoUITelemetry)(),_=b.twoUITelemetryIds.areaBiId,w=function(){return null},C={iconProps:{iconName:t},menuProps:{items:n.map((function(e,t){if("divider"===e.itemType)return{key:"divider_".concat(t),text:"",itemType:Dr.G.Divider};if("header"===e.itemType)return(0,r.__assign)((0,r.__assign)({},e),{style:e.backgroundColor?{backgroundColor:Zt(y,e.backgroundColor)}:{},itemType:Dr.G.Header});return(0,r.__assign)((0,r.__assign)({},e),{ariaLabel:e["aria-label"],itemType:Dr.G.Normal,onRender:g?function(){return l().createElement(nt,{padding:"8px 8p 4px 8px"},l().createElement(Fn,{disabled:!0},e.name))}:e.onRender,onClick:function(t){var n={clickId:"".concat(e["data-bi-id"]),pageArea:_};b.reportClick(n),e.onClick&&e.onClick(t)}})})),isBeakVisible:o,styles:{root:{padding:p,backgroundColor:i?Zt(y,i):void 0}},directionalHint:h.A.bottomRightEdge,gapSpace:4,onMenuOpened:u,onMenuDismissed:m}},k={icon:{}};return"card"===x&&(k.root=(0,r.__assign)((0,r.__assign)({},k.root),{padding:"22px 10px 22px 10px"})),a&&(k.icon.color=Zt(y,a)),f&&(k.rootHovered={backgroundColor:y.palette.neutralLight},k.rootPressed={backgroundColor:y.palette.neutralQuaternaryAlt}),E.tooltipHostProps?l().createElement(zn,(0,r.__assign)({},E.tooltipHostProps),l().createElement(kr.K,(0,r.__assign)({},C,E,{onRenderMenuIcon:w,styles:k}))):l().createElement(kr.K,(0,r.__assign)({},C,E,{onRenderMenuIcon:w,styles:k}))},zr=function(e,t){return{display:"flex",flexDirection:"row",justifyContent:e,flexWrap:"wrap",overflow:"hidden",flexShrink:1,alignItems:"center",height:t,whiteSpace:"nowrap",padding:"2px"}};function Hr(e,t){var r;return function(){clearTimeout(r),r=n.g.setTimeout(e,t)}}var Nr,Vr,Mr="MoreVertical",Wr=function(e,t,n){for(var r=[],a=e.clientHeight+e.offsetTop,o=function(e){var o=t[e];if(o.hasAttribute("hidden")&&o.removeAttribute("hidden"),o.offsetTop>=a){var i=n[e];o.setAttribute("hidden","");var l=Gr(i);r.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 l}})}},i=0;i<t.length;i++)o(i);return r},Or=function(e,t,n){t.setAttribute("hidden","");var a=Gr(n);return(0,r.__spreadArray)([{key:"overflow-0",name:"overflowItem-0","data-bi-id":n.props["data-bi-id"]||"","aria-label":n.props["aria-label"]||n.props.ariaLabel||"",onRender:function(){return a}}],e,!0)},Gr=function(e){return l().cloneElement(e,{children:l().isValidElement(e.props.children)?l().cloneElement(e.props.children,(0,r.__assign)((0,r.__assign)({},e.props.children.props),{role:"menuitem"})):e.props.children,role:l().isValidElement(e.props.children)?void 0:"menuitem"})},Ur=function(e){var t=e.children,n=e.alignment,a=void 0===n?"flex-start":n,o=(0,r.__rest)(e,["children","alignment"]);s("FlexibleMenu",o.id);var c=(0,i.useState)(1),d=c[0],u=c[1],m=function(){u(window.innerWidth)};return(0,i.useLayoutEffect)((function(){var e=Hr(m,300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),l().createElement(jr,(0,r.__assign)({windowWidth:d,alignment:a},o),t)},jr=function(e){var t=e.menuProps,n=e.height,a=e.children,o=e.windowWidth,c=e.alignment,s=(0,r.__rest)(e,["menuProps","height","children","windowWidth","alignment"]),d=(0,i.useRef)(null),u=(0,i.useState)(!1),m=u[0],p=u[1],g=(0,i.useState)([]),h=g[0],f=g[1],v=(null===t||void 0===t?void 0:t.menuItems)||[],x=zr(c,n);return(0,i.useLayoutEffect)((function(){p(!0)}),[o,a,t]),(0,i.useLayoutEffect)((function(){if(d.current){var e=Array.from(d.current.children),t=l().Children.toArray(a),n=Wr(d.current,e,t);if(e.length>0){var o=e[0],i=t[0],c=d.current.clientWidth;o.clientWidth>=c&&(n=Or(n,o,i))}var s=(0,r.__spreadArray)((0,r.__spreadArray)([],n,!0),v,!0);s.length>0?f(s):p(!1)}}),[o,a,t]),l().createElement(nt,{horizontal:!0,verticalAlign:"center",grow:!0,horizontalAlign:"end",padding:m?"":"0 8px 0 0"},l().createElement(Bn,{grow:!0},l().createElement("div",{style:x,ref:d},a)),m?l().createElement(Rr,(0,r.__assign)({},s,t,{iconName:Mr,menuItems:h})):null)},Kr=function(e){var t=e.actionAlignment,n=e.actionButton,a=e.menuIconButton,o=(0,r.__rest)(e,["actionAlignment","actionButton","menuIconButton"]),i=(0,r.__assign)({menuProps:a,height:"40px",alignment:t},o);return l().createElement(Bn,{keycodes:[13]},l().createElement(Ur,(0,r.__assign)({},i),n?l().createElement(Ir,(0,r.__assign)({},n)):null))},Zr=n(93258),Xr=n(40950),Yr=function(e){var t=e.errorMessage,n=e.errorMessageAriaLabel,a=e.retryLink,i=(e.children,(0,r.__rest)(e,["errorMessage","errorMessageAriaLabel","retryLink","children"]));return fe("ErrorButton",i),l().createElement(o.B,{horizontal:!0,tokens:{childrenGap:8},style:{display:"inline-flex"},doNotRenderFalsyValues:!0},l().createElement(o.B,{tokens:{padding:"5px 0 0 0"},doNotRenderFalsyValues:!0},l().createElement(Yt,{iconName:"Error",color:"errorIcon",size:"12px"})),l().createElement(o.B,{horizontal:!0,tokens:{childrenGap:6},doNotRenderFalsyValues:!0},l().createElement(Gt.J,{"aria-label":n},t),l().createElement(ir,(0,r.__assign)({},a))))},qr=function(e){var t=e.type,n=void 0===t?"default":t,a=e.onClick,o=e.text,i=e["aria-label"],u=e.disabled,m=void 0!==u&&u,p=e.allowDisabledFocus,g=void 0!==p&&p,h=e.operationData,f=(0,r.__rest)(e,["type","onClick","text","aria-label","disabled","allowDisabledFocus","operationData"]);s("Button",f.id),fe("Button",f);var v=(0,d.DP)(),x="primaryAlt"===n?function(e){var t,n,r={root:{height:"unset",minHeight:"32px"},textContainer:{padding:"6px 0"},label:{lineHeight:"normal"}};return(0,F.TW)(r,{root:{backgroundColor:e.palette.transparent,borderColor:e.palette.themeDarkAlt,color:e.palette.themeDarkAlt,":focus":{":focus::after":(t={},t[ne.active]={inset:"-3px"},t)},selectors:(n={},n[".".concat(Xr.Y2," &:focus")]={selectors:{":after":{border:"none",outlineColor:e.palette.themeDark}}},n)},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}})}(v):"error"===n?function(e){var t,n={root:{height:"unset",minHeight:"32px"},textContainer:{padding:"6px 0"},label:{lineHeight:"normal"}};return(0,F.TW)(n,{root:{borderColor:e.palette.redDark,color:e.palette.redDark,selectors:(t={},t[".".concat(Xr.Y2," &:focus")]={selectors:{":after":{border:"none",outlineColor:e.palette.themeDark}}},t)}})}(v):"primary"===n?function(){var e,t={root:{height:"unset",minHeight:"32px"},textContainer:{padding:"6px 0"},label:{lineHeight:"normal"}};return(0,F.TW)(t,{root:{":focus":{":focus::after":(e={},e[ne.active]={inset:"-3px"},e)}}})}():{root:{height:"unset",minHeight:"32px"},textContainer:{padding:"6px 0"},label:{lineHeight:"normal"}},E=(0,r.__assign)({onClick:a,text:o,disabled:m,ariaLabel:i,allowDisabledFocus:g,styles:x},f),y="primary"===n||"primaryAlt"===n?wr.j:Zr.Y;if(h){var b=h.errorButton?l().createElement(Yr,(0,r.__assign)({},h.errorButton)):l().createElement(y,(0,r.__assign)({},E)),_=(0,r.__assign)((0,r.__assign)({},E),{onClick:void 0,text:o,disabled:!0,allowDisabledFocus:!1,onRenderIcon:function(){return l().createElement(Wt.y,{size:Ot.H.small,styles:{root:{marginRight:"4px"}}})}});return l().createElement(c.TwoUIProgressView,{operationData:h.progressViewOperationData,updatingView:l().createElement(y,(0,r.__assign)({},_)),finishedView:l().createElement(y,(0,r.__assign)({},E)),failedView:b})}return l().createElement(y,(0,r.__assign)({},E))},Qr=function(e){var t=e.onClick,n=e["aria-label"],a=e.disabled,o=void 0!==a&&a,i=e.iconName,u=e.iconColor,m=void 0===u?"themePrimary":u,p=e.hasHighContrastBackground,g=e.iconButtonVariant,h=void 0===g?"default":g,f=e.iconButtonRef,v=(0,r.__rest)(e,["onClick","aria-label","disabled","iconName","iconColor","hasHighContrastBackground","iconButtonVariant","iconButtonRef"]);s("IconButton",v.id),fe("IconButton",v);var x=(0,d.DP)(),E=(0,r.__assign)((0,r.__assign)({},v),{onClick:t,disabled:o,ariaLabel:n,componentRef:f,onRenderIcon:function(){return l().createElement(Yt,{size:"16px",color:o?"neutralTertiaryAlt":m,iconName:i})}}),y=Zt(x,m),b={icon:{color:y}};"card"===h&&(b.root={padding:"22px"});var _=function(){return v.tooltipHostProps?l().createElement(zn,(0,r.__assign)({},v.tooltipHostProps),l().createElement(kr.K,(0,r.__assign)({},E,{styles:b}))):l().createElement(kr.K,(0,r.__assign)({},E,{styles:b}))};if(o&&(b.rootDisabled={backgroundColor:"inherit"}),p&&(b.rootHovered={backgroundColor:x.palette.neutralLight},b.rootPressed={backgroundColor:x.palette.neutralQuaternaryAlt}),v.operationData){var w=v.operationData,C=(0,r.__assign)((0,r.__assign)({},E),{onClick:function(){},disabled:!0,onRenderIcon:function(){return l().createElement(Wt.y,{color:y,size:Ot.H.small,style:{marginLeft:"4px",marginRight:"4px"}})}});return l().createElement(c.TwoUIProgressView,{operationData:w.progressViewOperationData,inertView:l().createElement(kr.K,(0,r.__assign)({},E,{styles:b})),updatingView:l().createElement(Cr.r,(0,r.__assign)({},C)),finishedView:_()})}return _()},Jr={display:"inline-block"},$r=function(e){return{calloutMain:{backgroundColor:e.palette.neutralHigh,maxWidth:"300px",padding:"20px 24px"},beak:{backgroundColor:e.palette.neutralHigh}}},ea=function(e){var t=e.calloutPosition,n=e.calloutRole,a=void 0===n?"status":n,o=e.children,c=(0,r.__rest)(e,["calloutPosition","calloutRole","children"]);s("Callout",c.id),fe("Callout",c);var u,m=(0,i.useState)(!1),p=m[0],g=m[1],h=(0,i.useRef)(null),v=(0,d.DP)(),x=function(){g(!p)},E="IconButton"===c.calloutTrigger?c.calloutTriggerProps.iconName:void 0;switch((0,i.useEffect)((function(){g(!1)}),[E]),c.calloutTrigger){case"NoHrefLink":u=l().createElement(ir,(0,r.__assign)({},c.calloutTriggerProps,{onClick:x}));break;case"IconButton":u=l().createElement(Qr,(0,r.__assign)({},c.calloutTriggerProps,{onClick:x}));break;case"Button":u=l().createElement(qr,(0,r.__assign)({},c.calloutTriggerProps,{onClick:x}))}return l().createElement(l().Fragment,null,l().createElement("div",{style:(0,r.__assign)({},Jr),ref:h},u),p?l().createElement(Tr.P,(0,r.__assign)({styles:$r(v),role:a,target:h,onDismiss:function(){g(!1)},setInitialFocus:!0,directionalHint:f[t||"bottom-center"],layerProps:{eventBubblingEnabled:!0}},c),o):null)},ta=function(e){var t=e.calloutProps;return l().createElement(o.B,{horizontalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Bn,null,l().createElement(ea,(0,r.__assign)({},t),t.children)))},na=function(e){var t=e.errorMessage,n=e.id;return l().createElement(o.B,{horizontal:!0,horizontalAlign:"start",verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(o.B,{verticalAlign:"center",tokens:{padding:"0px 16px 0px 0px"},doNotRenderFalsyValues:!0},l().createElement(Yt,{iconName:"Error",size:"16px",color:"errorIcon"})),l().createElement(o.B,{verticalAlign:"center",styles:{root:{overflow:"hidden"}},doNotRenderFalsyValues:!0},l().createElement(Fn,{block:!0,nowrap:!0,colorOverride:"error",variant:"bodyPrimaryText",id:n},t)))},ra={root:{maxWidth:"fit-content"}},aa=function(e){var t=e.kind,n=e.showDrawerLinkEllipsis,a=void 0===n||n,i=(0,r.__rest)(e,["kind","showDrawerLinkEllipsis"]),c=l().createElement(l().Fragment,null),s=a?{truncatedLinkProps:{}}:void 0;switch(t){case"hyperlink":c=l().createElement(nr,(0,r.__assign)({},i.hyperlink,s));break;case"routelink":c=l().createElement(nr,(0,r.__assign)({},i.routelink,s));break;case"nohreflink":c=l().createElement(ir,(0,r.__assign)({},i.nohreflink,s))}return l().createElement(Bn,{keycodes:[13]},l().createElement(o.B,{styles:ra,doNotRenderFalsyValues:!0},c))},oa=n(65670),ia=n(29589),la={"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"},ca=(Object.keys(la),Object.values(la),n(48560)),sa=n(92256),da=function(e,t,n,r,a){var o={image:{}};if(n&&(o.image.borderRadius=n),e&&(o.image.filter="grayscale(100%)"),t&&(o.image.opacity="0.5"),r&&(o.image[ne.whiteOnBlack]={filter:"invert(100%)"}),a)switch(a){case"toLeft":o.image["-webkit-mask-image"]="linear-gradient(to left, #fff, transparent);";break;case"toBottom":o.image["-webkit-mask-image"]="linear-gradient(to bottom, #fff, transparent);";break;case"toRight":o.image["-webkit-mask-image"]="linear-gradient(to right, #fff, transparent);";break;case"toTop":o.image["-webkit-mask-image"]="linear-gradient(to top, #fff, transparent);"}return o},ua={none:ca.N_.none,center:ca.N_.center,"center-contain":ca.N_.centerContain,"center-cover":ca.N_.centerCover,contain:ca.N_.contain,cover:ca.N_.cover},ma=function(e,t,n,r){return{root:{height:t,width:n,backgroundColor:r?e.palette.neutralLighter:"transparent"}}},pa=function(e){var t=e.height,n=e.width,a=e.fallbackIconProps,i=(0,r.__rest)(e,["height","width","fallbackIconProps"]),c=(0,d.DP)();if(t&&n){var s=ga(t),u=ga(n),m=Math.min(s,u),p=m>=36,g=void 0;g=m>=100?"48px":m<100&&m>=50?"32px":"16px";var h=a?l().createElement(Yt,(0,r.__assign)({},a,{size:g})):l().createElement(Yt,{iconName:"Photo2Remove",color:"neutralTertiaryAlt",size:g}),f=l().createElement(o.B,{styles:ma(c,s,u,p),horizontalAlign:"center",verticalAlign:"center",role:"altTextImage"===i.imageType?"img":"presentation",doNotRenderFalsyValues:!0},h);return"altTextImage"===i.imageType?l().createElement(zn,{tooltipText:i.alt,tooltipPosition:"top-center"},f):f}return null},ga=function(e){return"number"===typeof e?e:e.includes("px")?+e.substr(0,e.length-"px".length):0},ha=function(e){var t=e.imageFit,n=e.src,a=e.errorSrc,o=e.borderRadius,d=e.height,u=e.width,m=e.grayscale,p=e.disabled,g=e.enableHighContrastMode,h=e.imageGradientType,f=(0,r.__rest)(e,["imageFit","src","errorSrc","borderRadius","height","width","grayscale","disabled","enableHighContrastMode","imageGradientType"]);s("Image",f.id),fe("Image",f);var v=(0,c.useTwoUITelemetry)(),x=(0,i.useState)(n),E=x[0],y=x[1],b=(0,i.useState)(!1),_=b[0],w=b[1];(0,i.useEffect)((function(){v.checkUrlAndReportHttp(n),y(n)}),[n]);var C=(0,i.useRef)(!0);(0,i.useEffect)((function(){C.current?C.current=!1:w(!1)}),[E]);var k={};return"ariaHiddenImage"===f.imageType&&(k={"aria-hidden":!0}),_?l().createElement(pa,(0,r.__assign)({height:d,width:u},f)):l().createElement(sa._,(0,r.__assign)({onLoadingStateChange:function(e){e!==ca.P6.error&&void 0!==E&&null!==E||(a&&E!==a?y(a):w(!0))},imageFit:t?ua[t]:void 0,src:E,styles:da(m,p,o,g,h),height:d,width:u},k,f))},fa=n(90671),va=(0,I.n)({base:{transition:"opacity ".concat(Tt.L.durationNormal)},loading:{opacity:"0"},loaded:{opacity:"1"}}),xa=(0,I.n)({"4px":{borderRadius:Tt.L.borderRadiusSmall},"8px":{borderRadius:Tt.L.borderRadiusMedium},"16px":{borderRadius:Tt.L.borderRadiusLarge},"50%":{borderRadius:"50%"}}),Ea=(0,I.n)({disabledLoading:{opacity:"0"},disabledLoaded:{opacity:"0.5"}}),ya=(0,I.n)({grayscale:{filter:"grayscale(100%)"},highContrast:(Nr={},Nr[ne.whiteOnBlack]={filter:"invert(100%)"},Nr)}),ba=(0,I.n)({toLeft:{"-webkit-mask-image":"linear-gradient(to left, #fff, transparent)"},toBottom:{"-webkit-mask-image":"linear-gradient(to bottom, #fff, transparent)"},toRight:{"-webkit-mask-image":"linear-gradient(to right, #fff, transparent)"},toTop:{"-webkit-mask-image":"linear-gradient(to top, #fff, transparent)"}}),_a=(0,I.n)({naturalSizing:{height:"auto",width:"auto"},positioningContainer:{position:"relative"},centeredPositioning:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}}),wa=D({withBackPlate:{backgroundColor:Tt.L.colorNeutralBackground1Pressed},transparent:{backgroundColor:"transparent"},fallbackContainer:{transition:"opacity ".concat(Tt.L.durationNormal)},fallbackContainerVisible:{opacity:"1"},fallbackContainerHidden:{opacity:"0"}}),Ca=function(e){var t=e.height,n=e.width,a=e.fallbackIconProps,o=(0,r.__rest)(e,["height","width","fallbackIconProps"]),c=(0,i.useState)(!1),s=c[0],d=c[1],u=wa(),m=Je({verticalAlign:"center",horizontalAlign:"center"});if((0,i.useEffect)((function(){var e=setTimeout((function(){d(!0)}),10);return function(){return clearTimeout(e)}}),[]),t&&n){var p=ka(t),g=ka(n),h=Math.min(p,g),f=h>=36,v=void 0;v=h>=100?"48px":h<100&&h>=50?"32px":"16px";var x=a?l().createElement(cn,(0,r.__assign)({},a,{size:v})):l().createElement(cn,{iconName:"Photo2Remove",color:"neutralTertiaryAlt",size:v}),E=l().createElement("div",{className:R(m,f?u.withBackPlate:u.transparent),style:{height:p,width:g},role:"altTextImage"===o.imageType?"img":"presentation"},x),y="altTextImage"===o.imageType?l().createElement(Un,{tooltipText:o.alt,tooltipPosition:"top-center"},E):E;return l().createElement("div",{className:R(u.fallbackContainer,s?u.fallbackContainerVisible:u.fallbackContainerHidden)},y)}return null},ka=function(e){return"number"===typeof e?e:e.includes("px")?+e.substr(0,e.length-"px".length):0},Ta=/\.svg$/i,Sa=function(e){var t=e.imageFit,n=e.src,a=e.errorSrc,o=e.borderRadius,d=e.height,u=e.width,m=e.grayscale,p=e.disabled,g=e.enableHighContrastMode,h=e.imageGradientType,f=e.id,v=e.imageType,x=(0,r.__rest)(e,["imageFit","src","errorSrc","borderRadius","height","width","grayscale","disabled","enableHighContrastMode","imageGradientType","id","imageType"]);s("Image",f);var E,y=(0,c.useTwoUITelemetry)(),b=va(),_=xa(),w=Ea(),C=ya(),k=ba(),T=_a(),S=(0,i.useState)(n),P=S[0],B=S[1],L=(0,i.useState)(!1),A=L[0],I=L[1],F=(0,i.useState)(!1),D=F[0],R=F[1],z=l().useRef(null),H={};switch("ariaHiddenImage"===v&&(H={"aria-hidden":!0,alt:""}),t){case"contain":case"center-contain":E="contain";break;case"cover":E="cover";break;case"center":case"center-cover":E="center";break;case"none":E="none";break;default:E=void 0}var N=l().useCallback((function(){return!(!z.current||!n)&&(z.current.naturalWidth>0&&z.current.naturalHeight>0||z.current.complete&&Ta.test(n))}),[n]);(0,i.useEffect)((function(){y.checkUrlAndReportHttp(n),B(n),R(!1),N()&&setTimeout((function(){R(!0)}),0)}),[n,y,N]),(0,i.useLayoutEffect)((function(){!D&&N()&&requestAnimationFrame((function(){R(!0)}))}),[D,N]);var V=function(){R(!0)},M=function(){a&&P!==a?(B(a),R(!1)):I(!0)},W=(0,ve.z)(b.base,!D&&b.loading,D&&b.loaded,o&&_[o],m&&C.grayscale,p&&!D&&w.disabledLoading,p&&D&&w.disabledLoaded,g&&C.highContrast,h&&k[h],"none"===t&&!d&&!u&&T.naturalSizing,("center"===t||"center-contain"===t||"center-cover"===t)&&T.centeredPositioning),O=(x.children,(0,r.__rest)(x,["children"]));if(A){var G=(0,r.__assign)((0,r.__assign)({height:d,width:u},O),v&&{imageType:v});return l().createElement(Ca,(0,r.__assign)({},G))}return"cover"===t||"contain"===t?l().createElement("div",{className:T.positioningContainer,style:{height:d,width:u}},l().createElement(fa._,(0,r.__assign)({ref:z,src:P,fit:E,className:W,onLoad:V,onError:M,style:{height:"100%",width:"100%"}},H,O))):"center"===t||"center-cover"===t?l().createElement("div",{className:T.positioningContainer,style:{height:d,width:u}},l().createElement(fa._,(0,r.__assign)({ref:z,src:P,fit:E,onLoad:V,onError:M,className:T.centeredPositioning},H,O))):"center-contain"===t?l().createElement("div",{className:T.positioningContainer,style:{height:d,width:u}},l().createElement(fa._,(0,r.__assign)({ref:z,src:P,fit:"contain",onLoad:V,onError:M,className:T.centeredPositioning},H,O))):l().createElement(fa._,(0,r.__assign)({ref:z,src:P,className:W,height:d,width:u,fit:E,onLoad:V,onError:M},H,O))},Pa=C,Ba=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(Pa)?l().createElement(Sa,(0,r.__assign)({},t)):l().createElement(ha,(0,r.__assign)({},t))},La=function(e,t,n){return{root:{width:e,backgroundColor:t,fontSize:e,lineHeight:e,minHeight:e,borderRadius:n||"0px"}}},Aa=function(e,t,n){return{root:{width:e,height:e,backgroundColor:t,borderRadius:n||"0px"}}},Ia=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"}},Fa=function(e){var t=e.size,n=e.image,a=e.height,o=e.padding,i=e.imagePadding,u=e.disabled,m=e.topAlign,p=e.borderRadius,g=e.horizontal,h=void 0===g||g,f=e.linkProps,v=e.children,x=(0,r.__rest)(e,["size","image","height","padding","imagePadding","disabled","topAlign","borderRadius","horizontal","linkProps","children"]);s("Media",x.id),fe("Media",x);var E,y,b=(0,d.DP)(),_=ce(),w={},C=a||"44px",k=o||"6px 0",T=(0,c.useTwoUIFlights)();switch(t){case"xs":w={height:y="16px",width:y,lineHeight:"14px",fontSize:"10px"},E="12px";break;case"sm":w={height:y="24px",width:y,lineHeight:"22px",fontSize:"15px"},E="16px";break;case"md":w={height:y="32px",width:y,lineHeight:"29px",fontSize:"20px"},E="24px";break;case"lg":E="32px",y="48px",C=null!==a&&void 0!==a?a:"icon"===n.imageType&&n.backplate?la[E]:y,w={height:y,width:y,lineHeight:"45px",fontSize:"30px"};break;case"xl":k=o||"10px 0",E="48px",y="60px",C=null!==a&&void 0!==a?a:"icon"===n.imageType&&n.backplate?la[E]:y,w={height:y,width:y,lineHeight:"57px",fontSize:"60px"};break;case"xxl":k=o||"10px 0",E="60px",y="72px",C=null!==a&&void 0!==a?a:"icon"===n.imageType&&n.backplate?la[E]:y,w={height:y,width:y,lineHeight:"69px",fontSize:"45px"};break;case"xxxl":k=o||"10px 0",E="96px",y="96px",C=null!==a&&void 0!==a?a:"icon"===n.imageType&&n.backplate?la[E]:y,w={height:y,width:y,lineHeight:"93px",fontSize:"60px"}}if("imageCard"===n.imageType){if(T.includes("lowerMediaImageHeight"))y="220px",w={height:"220px",width:"146.67px"};else switch(t){case"xl":case"xxl":case"xxxl":case"lg":case"md":y="246px",w={height:"246px",width:"164px"};break;case"sm":case"xs":y="186px",w={height:"186px",width:"124px"}}k=o||"0px",C=null!==a&&void 0!==a?a:y}var S=h?"start":"center",P=h?void 0:"center",B={display:"flex",alignItems:"center",justifyContent:"center",textAlign:"center",height:"100%",position:"imageCard"===n.imageType&&n.textHost?"relative":void 0},L=l().createElement(nt,(0,r.__assign)({horizontal:h,childrenGap:"8px",padding:k},x),l().createElement(rt,{align:S,height:m?void 0:C,shrink:0,padding:i},l().createElement("div",{style:B},function(){var e;switch(n.imageType){case"image":case"imageCard":return Da((0,r.__assign)((0,r.__assign)({},n),{theme:b,viewportType:_,style:w,imageSize:y,disabled:u,borderRadius:p}));case"imageFavicon":var a=null!==(e=n.iconProps)&&void 0!==e?e:{iconName:"Globe",color:"neutralPrimary"};return Da((0,r.__assign)((0,r.__assign)({},n),{theme:b,viewportType:_,style:w,imageSize:y,disabled:u,borderRadius:p,fallbackIconProps:a}));case"icon":return za((0,r.__assign)({theme:b,iconSize:E,disabled:u,borderRadius:p},n));case"character":return Ha((0,r.__assign)({theme:b,style:w,size:t,disabled:u,borderRadiusStyle:p},n))}}())),v?l().createElement(rt,{align:"center",grow:!0,textAlignment:P},v):null);if(f){f.kind;var A=(0,r.__rest)(f,["kind"]);return l().createElement(ht.N,(0,r.__assign)({},A,{styles:{root:{selectors:{":hover":{textDecoration:"none"},":active:focus":{textDecoration:"none"}}}},disabled:u}),L)}return L},Da=function(e){var t,n=e.theme,a=(e.viewportType,e.imageSize),i=e.backplate,c=e.textHost,s=(e.imageType,e.style),d=(0,r.__rest)(e,["theme","viewportType","imageSize","backplate","textHost","imageType","style"]),u=c?l().createElement(l().Fragment,null,l().createElement(Ba,(0,r.__assign)({},d,{alt:"",height:s.height,width:s.width})),Ra(c,n,d.borderRadius)):l().createElement(Ba,(0,r.__assign)({},d,{alt:"",height:s.height,width:s.width}));if(i){var m=null!==(t=Zt(n,!0===i?"themePrimary":i))&&void 0!==t?t:i;return l().createElement(o.B,{verticalAlign:"center",horizontalAlign:"center",styles:Aa(Y[a],m,d.borderRadius),doNotRenderFalsyValues:!0},u)}return u},Ra=function(e,t,n){return l().createElement("div",{style:Ia(e,t,n)},l().createElement(Qn,(0,r.__assign)({},e.truncatedTextProps)))},za=function(e){var t,n=e.theme,a=e.iconSize,i=e.borderRadius,c=(e.imageType,e.iconColor),s=e.backplate,d=(0,r.__rest)(e,["theme","iconSize","borderRadius","imageType","iconColor","backplate"]),u=l().createElement(Yt,(0,r.__assign)({},d,{size:a,color:c}));if(s){var m=Zt(n,!0===s?"themePrimary":s);return l().createElement(o.B,{horizontal:!0,styles:La(la[a],m,i),doNotRenderFalsyValues:!0},l().createElement(o.B,{verticalAlign:"center",styles:(t=la[a],{root:{width:t,height:t,position:"absolute",verticalAlign:"center",textAlign:"center"}}),doNotRenderFalsyValues:!0},u))}return u},Ha=function(e){var t,n=e.theme,a=e.style,o=e.size,i=e.disabled,c=e.borderRadiusStyle,s=e.characterVariant,d=e.backplateColor,u=(0,r.__rest)(e,["theme","style","size","disabled","borderRadiusStyle","characterVariant","backplateColor"]);p("Media",[(t=u.character,function(){return 1!==t.length?"Prop 'character' must be one character":void 0})]);var m,g,h=n.palette,f=null!==c&&void 0!==c?c:["xs","sm","md"].includes(o)?"2px":"4px";d?(m=Zt(n,d),g=s&&"neutralDark"===s?n.palette.neutralDark:n.palette.neutralHigh):(m=i?h.neutralLighter:h.neutralSecondary,g=n.palette.neutralHigh);var v=(0,r.__assign)({background:m,color:g,borderRadius:f},a);return l().createElement("div",{style:v},u.character)},Na=function(e){return e.map((function(e){return e.key})).toString()},Va=function(e){var t=e.mediaImageList,n=e.overflowLabel,a=e.mediaLabel,i=e.hideHeaderMedia,c=e.id,s="",d=t?t.map((function(e,t){return s+="item".concat(t),{key:t.toString(),mediaImage:e}})):[],u=Ce()?"translateX(100%)":"translateX(-100%)",m={transition:"transform 0.5s ease-out",transformOrigin:"left",transform:i?u:"translateX(0%)"},p=function(e){return l().createElement(nt,{margin:"0px 8px 0px 0px"},l().createElement(Fa,{size:"md",borderRadius:"4px",image:{imageType:"image",src:e.mediaImage},height:"32px",padding:"0px"}))},g=function(e){return l().createElement(nt,{verticalAlign:"center"},l().createElement(Fn,{variant:"bodySecondaryText"},"+".concat(null===e||void 0===e?void 0:e.length," ").concat(n)))},h={primary:d,overflow:[],cacheKey:s};return l().createElement(nt,{grow:!0},l().createElement(nt,{width:"inherit",maxWidth:"664px"},l().createElement(ia.A,{onRenderData:function(e){return l().createElement(nt,{childrenGap:"17px",verticalAlign:"center",horizontal:!0},l().createElement(Fn,{id:c},a),l().createElement(nt,{overflow:"hidden"},l().createElement(o.B,{style:m,doNotRenderFalsyValues:!0},l().createElement(oa.p,{items:e.primary,onRenderItem:p,overflowItems:e.overflow,onRenderOverflowButton:g}))))},data:h,onReduceData:function(e){if(0!==e.primary.length){var t=(0,r.__spreadArray)((0,r.__spreadArray)([],e.primary.slice(-1),!0),e.overflow,!0),n=e.primary.slice(0,-1);return{primary:n,overflow:t,cacheKey:Na(n)}}},onGrowData:function(e){if(0!==e.overflow.length){var t=(0,r.__spreadArray)([],e.overflow.slice(1),!0),n=(0,r.__spreadArray)((0,r.__spreadArray)([],e.primary,!0),e.overflow.slice(0,1),!0);return{primary:n,overflow:t,cacheKey:Na(n)}}}})))},Ma=function(e){var t=e.iconName,n=e.statusAlignment,r=void 0===n?"start":n,a=e.textWeightOverride,i=e.textVariant,c=e.children;return l().createElement(o.B,{horizontal:!0,horizontalAlign:r,verticalAlign:"center",doNotRenderFalsyValues:!0},t?l().createElement(o.B,{verticalAlign:"center",styles:{root:{paddingRight:"8px"}},doNotRenderFalsyValues:!0},l().createElement(Yt,{iconName:t,size:"16px"})):null,l().createElement(o.B,{styles:{root:{overflow:"hidden"}},doNotRenderFalsyValues:!0},l().createElement(Qn,{weightOverride:a,variant:i},c)))},Wa=function(e){return"text"!==e.kind||void 0===e.nowrap||e.nowrap?{}:{root:{textAlign:"left"}}},Oa=function(e){switch(e.kind){case"text":e.kind;var t=e.nowrap,n=void 0===t||t,a=(0,r.__rest)(e,["kind","nowrap"]);return n?l().createElement(Qn,(0,r.__assign)({},a)):l().createElement(Fn,(0,r.__assign)({},a));case"hyperlink":e.kind;var o=(0,r.__rest)(e,["kind"]);return l().createElement(Bn,{keycodes:[13]},l().createElement(nr,(0,r.__assign)({},o)));case"heading":e.kind;var i=e.nowrap,c=(n=void 0===i||i,(0,r.__rest)(e,["kind","nowrap"]));return n?l().createElement(Qn,(0,r.__assign)({type:"heading"},c)):l().createElement(Mt,(0,r.__assign)({},c))}},Ga=function(e){var t=e.nowrap,n=void 0===t||t,a=(0,r.__rest)(e,["nowrap"]);return n?l().createElement(Qn,(0,r.__assign)({variant:"metadataText"},a)):l().createElement(Fn,(0,r.__assign)({variant:"metadataText"},a))},Ua=function(e){var t=e.media,n=e.title,a=e.subtitleTextProps,i=e.id,c=l().createElement(o.B,{styles:{root:{overflow:"hidden"}},verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(o.B,{horizontal:!0,horizontalAlign:"start",styles:Wa(n),doNotRenderFalsyValues:!0},l().createElement(Oa,(0,r.__assign)({},n,{id:i}))),l().createElement(o.B,{horizontal:!0,horizontalAlign:"start",doNotRenderFalsyValues:!0},a?l().createElement(Ga,(0,r.__assign)({},a)):null));return l().createElement(o.B,{horizontal:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},t?l().createElement(o.B,{verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Fa,(0,r.__assign)({},t),c)):c)},ja=n(55884),Ka=function(e){var t=e.height,n=e.width,r=void 0===n?"100%":n,a=e.shimmerColors;return s("ShimmerLine"),l().createElement(B.W,{width:r,shimmerElements:[{type:ja.w.line,width:"100%",height:t}],shimmerColors:a})},Za=n(22855),Xa=n(60776),Ya=function(e){var t=e.height,n=e.width,a=void 0===n?"100%":n,o=(0,r.__rest)(e,["height","width"]);return i.createElement(Za.E,(0,r.__assign)({"aria-label":"Loading content"},o),i.createElement(Xa.H,{style:{width:a,height:t}}))},qa=_,Qa=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(qa)?l().createElement(Ya,(0,r.__assign)({},t)):l().createElement(Ka,(0,r.__assign)({},t))},Ja=function(e){var t=e.media,n=e.title,a=e.id;return l().createElement(o.B,{horizontal:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},t?l().createElement(o.B,{styles:{root:{paddingRight:"16px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Fa,(0,r.__assign)({},t))):null,l().createElement(o.B,{styles:{root:{overflow:"hidden"}},verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(o.B,{horizontal:!0,horizontalAlign:"start",styles:Wa(n),doNotRenderFalsyValues:!0},l().createElement(Oa,(0,r.__assign)({},n,{id:a}))),l().createElement(o.B,{horizontal:!0,horizontalAlign:"start",doNotRenderFalsyValues:!0},l().createElement(Qa,{height:8,width:286}))))},$a=n(92634),eo=function(e){var t=e.label,n=e.labelPosition,a=void 0===n?"right":n,o=e.spinnerSize,i=void 0===o?Ot.H.medium:o,c=(0,r.__rest)(e,["label","labelPosition","spinnerSize"]);return s("Spinner",c.id),fe("Spinner",c),l().createElement(Wt.y,(0,r.__assign)({role:"alert",label:t,labelPosition:a,size:i},c))},to=function(){var e=(0,i.useState)(!1),t=e[0],n=e[1];return(0,i.useEffect)((function(){var e=setTimeout((function(){n(!0)}),x);return function(){return clearTimeout(e)}}),[]),t?l().createElement(Wt.y,null):null},no=_,ro=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(no)?l().createElement(fn,(0,r.__assign)({},t)):l().createElement(eo,(0,r.__assign)({},t))},ao=function(){return(0,c.useTwoUIFlights)().includes(no)?l().createElement(vn,null):l().createElement(to,null)},oo=function(e,t){return(0,r.__assign)((0,r.__assign)({},t),{text:(0,r.__assign)((0,r.__assign)({},null===t||void 0===t?void 0:t.text),{wordBreak:"normal"}),pill:[(0,r.__assign)({},null===t||void 0===t?void 0:t.pill),{selectors:{":focus":{outline:"1px solid ".concat(e.palette.neutralPrimary)}}}]})},io=function(e){var t=e.inlineLabel,n=e.label,r=e.labelState,a=e.htmlFor,o=e.children,i=0,c="";return t&&(i=16,c="4px 0 0 0"),l().createElement(nt,{horizontal:t,childrenGap:i},n?l().createElement(nt,null,l().createElement(yn,{labelState:r,htmlFor:a},n)):null,l().createElement(nt,{horizontal:!0,padding:c,height:32},o))},lo=(0,i.forwardRef)((function(e,t){var n=e.inlineLabel,a=e.label,o=e.labelState,c=e.children,s=e.id,u=e.styles,p=(0,r.__rest)(e,["inlineLabel","label","labelState","children","id","styles"]),g=(0,i.useRef)(s||(0,m.O)("Toggle")).current,h=(0,d.DP)();return l().createElement(io,{inlineLabel:n,label:a,labelState:o,htmlFor:g},l().createElement("div",{ref:t},l().createElement($a.l,(0,r.__assign)({},p,{id:g,"data-bi-ctrlstate":!!p.checked,styles:oo(h,u)}))),c)})),co=function(e){var t=(0,i.useState)(!1),n=t[0],a=t[1],o=(0,r.__assign)((0,r.__assign)({},e),{checked:!e.checked,disabled:!0});(0,i.useEffect)((function(){var e=setTimeout((function(){a(!0)}),x);return function(){return clearTimeout(e)}}),[]);var c=l().createElement(nt,{verticalAlign:"start",padding:"0 0 8px 8px"},l().createElement(ro,{"aria-label":e.ariaLabel})),s={};return n&&(s.text={display:"none"},e.onText||e.offText||(s.pill={display:"none"})),l().createElement(lo,(0,r.__assign)({},o,{styles:s}),n?c:null)},so=function(e){var t,n=e.errorCalloutProps,a=e.toggleProps,o=(0,i.useRef)(null);return t=a.onText||a.offText?n.targetOrTriggerButton:o,l().createElement(lo,(0,r.__assign)({},a,{ref:o,styles:{text:{display:"none"}}}),l().createElement(nt,{verticalAlign:"baseline"},l().createElement(Br,{calloutPosition:"bottom-center",targetOrTriggerButton:t,errorMessageAriaLabel:n.errorMessageAriaLabel,errorMessage:n.errorMessage})))},uo=function(e){var t=e["aria-label"],n=e.label,a=e.labelPosition,o=void 0===a?null:a,i=e.labelState,d=e.onText,u=e.offText,m=e.onChange,p=e.checked,g=e.disabled,h=void 0!==g&&g,f=e.operationData,v=e.componentRef,x=(0,r.__rest)(e,["aria-label","label","labelPosition","labelState","onText","offText","onChange","checked","disabled","operationData","componentRef"]);s("Toggle",x.id),fe("Toggle",x);var E=(0,r.__assign)((0,r.__assign)({ariaLabel:t,label:n,labelState:i,onText:d,offText:u,onChange:m,checked:p,disabled:h,componentRef:v},x),function(e){if("inline"===e)return{inlineLabel:!0}}(o));if(f){var y=l().createElement(lo,(0,r.__assign)({},E));return f.errorCallout&&(y=l().createElement(so,{toggleProps:E,errorCalloutProps:f.errorCallout,operationData:f})),l().createElement(c.TwoUIProgressView,{operationData:f.progressViewOperationData,updatingView:l().createElement(co,(0,r.__assign)({},E)),finishedView:l().createElement(lo,(0,r.__assign)({},E)),updateFailedView:y})}return l().createElement(lo,(0,r.__assign)({},E))},mo=function(e){var t=e.label,n=e.togglePosition,a=void 0===n?"start":n,o=(0,r.__rest)(e,["label","togglePosition"]),i=ce(),c="s"===i||"m"===i||"l"===i,s=(0,r.__assign)({},o);return c&&(s=(0,r.__assign)((0,r.__assign)({},o),{offText:void 0,onText:void 0})),l().createElement(mt,{totalSlots:5,reversed:"end"===a,verticalAlign:"center"},l().createElement(pt,{slots:2},l().createElement(nt,{verticalAlign:"center",horizontalAlign:"end",padding:"12px 0 0 0"},l().createElement(Bn,{keycodes:[13]},l().createElement(uo,(0,r.__assign)({},s))))),l().createElement(pt,{slots:3},c?null:l().createElement(Fn,{variant:"bodySecondaryText",block:!0,nowrap:!0},t)))},po="DrawerHeader",go=[Ua,Ma,Kr,mo,aa,na,Va,Ja,ta],ho=function(e){var t,n,r=e.totalSlots,a=e.columns,c=e.chevronPosition,s=void 0===c?"start":c,u=e.progressIndicator,m=e.showAltBackgroundColor,p=void 0!==m&&m,h=e.minHeight,f=void 0===h?"48px":h,v=e.indentPadding,x=void 0===v?"0px":v,E=e.isShimmer,y=void 0!==E&&E,b=(0,d.DP)(),_=[Ua,na,Ja,Va],w=_.map((function(e){return e.name})).join(", "),C=(0,i.useContext)(vo).drawerHeaderTitleId;t=a&&a.length>=1?a[0].column:void 0,(0,i.useEffect)((function(){t&&_.includes(t.type)||g("DrawerHeader","Invalid first column for Drawer Header. Acceptable types for the DrawerHeader's first column are: ".concat(w),1),a.forEach((function(e){O(e.column,go,po)}))}),[a]);var k=l().createElement(o.B,{verticalAlign:"center",styles:{root:{padding:"0px 16px"}},doNotRenderFalsyValues:!0},l().createElement(_r,{chevronPosition:s,isShimmer:y}));t&&(n=l().cloneElement(t,{id:C}));var T=a.map((function(e,r){var i="start"===s&&0===r||"end"===s&&r===a.length-1,c="end"===s&&0===r||"start"===s&&r===a.length-1;return l().createElement(pt,{slots:e.slots,key:r},l().createElement(o.B,{horizontal:!0,styles:c?vr(s,x):0===r?xr(x):void 0,doNotRenderFalsyValues:!0},"start"===s&&0===r?k:null,l().createElement(o.B,{styles:fr(i),doNotRenderFalsyValues:!0},0===r&&t?n:e.column),"end"===s&&r===a.length-1?k:null))})),S=u?l().createElement(gr,{ariaValueText:null===u||void 0===u?void 0:u.ariaValueText,ariaLabel:null===u||void 0===u?void 0:u.ariaLabel}):l().createElement(l().Fragment,null),P=u?"6px 0px 8px 0px":"8px 0px";return l().createElement(o.B,{verticalAlign:"center",styles:hr(b,p,f),doNotRenderFalsyValues:!0},S,l().createElement(o.B,{horizontal:!0,verticalAlign:"center",tokens:{padding:P},doNotRenderFalsyValues:!0},l().createElement(o.B,{verticalAlign:"center",styles:{root:{width:"100%"}},doNotRenderFalsyValues:!0},l().createElement(mt,{verticalAlign:"center",totalSlots:r},T))))},fo={drawerOpen:!1,drawerID:"",drawerHeaderTitleId:"",onClickDrawer:function(){},chevronAriaLabel:void 0},vo=(0,i.createContext)(fo),xo=[ho],Eo=function(e){var t,n,a,c=e.drawerOpen,s=void 0!==c&&c,m=e.drawerHeader,p=e.drawerContentPadding,g=e.borderRadius,h=void 0===g?"4px":g,f=e.shadow,v=void 0!==f&&f,x=e.onClickToOpen,E=e.onClickToClose,y=e.buttonId,b=e.children,_=e.showDivider,w=void 0!==_&&_,C=e.isListItem,k=void 0!==C&&C,T=e.chevronAriaLabel,S=(0,r.__rest)(e,["drawerOpen","drawerHeader","drawerContentPadding","borderRadius","shadow","onClickToOpen","onClickToClose","buttonId","children","showDivider","isListItem","chevronAriaLabel"]),P=(0,d.DP)();t=m,n=xo,a="Drawer",(0,i.useEffect)((function(){O(t,n,a)}),[t,n,a]);var B=function(e){if("click"===e.type||"keydown"===e.type&&"Enter"===e.key||" "===e.key){var t=s?E:x;t&&t(e)}},L="drawer_".concat((0,u.DA)()),A="drawerHeaderTitle_".concat((0,u.DA)());return l().createElement(vo.Provider,{value:{drawerOpen:s,drawerID:L,drawerHeaderTitleId:A,onClickDrawer:B,chevronAriaLabel:T}},l().createElement(o.B,{styles:ue(P,h,v,w),doNotRenderFalsyValues:!0,role:k?"listitem":void 0},l().createElement(o.B,{horizontal:!0,doNotRenderFalsyValues:!0},l().createElement(o.B,(0,r.__assign)({id:y,onClick:B,styles:de()},S,{doNotRenderFalsyValues:!0}),m)),l().createElement(o.B,{id:L,tokens:{padding:s?p:"0px"},doNotRenderFalsyValues:!0},s?b:void 0)))},yo=function(e){var t=e.accordionDrawers,n=e.drawerIndexOpen,i=e.borderRadius,c=void 0===i?"8px":i,d=e.showBoxShadow,u=void 0===d||d,m=(0,r.__rest)(e,["accordionDrawers","drawerIndexOpen","borderRadius","showBoxShadow"]);s("Accordion",m.id);var p={root:{borderRadius:c,overflow:"hidden",boxShadow:u?a.f.depth4:a.f.depth0}};return l().createElement(o.B,{styles:p,doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:{root:{overflow:"auto"}},doNotRenderFalsyValues:!0},t.map((function(e,a){var i=a!==t.length-1?"0px 0px 1px 0px":"0px";return l().createElement(o.B,{key:a,padding:i,id:m.id,lang:m.lang,doNotRenderFalsyValues:!0},l().createElement(Eo,(0,r.__assign)({},e,{borderRadius:"0px",shadow:!1,drawerOpen:a===n})))}))))},bo=function(e){var t,n=e.children,a=e.alignment,o=void 0===a?"flex-start":a,c=e.nonFlexiblePart,d=(0,r.__rest)(e,["children","alignment","nonFlexiblePart"]);s("FlexibleMenuWithConstrain",d.id),p("FlexibleMenuWithConstrain",[(t=c,function(){if(l().Children.toArray(t).length>3)return"More than allowed number of elements are constrained in FlexibleMenuWithConstrain"})]);var u=(0,i.useState)(1),m=u[0],g=u[1],h=function(){g(window.innerWidth)};(0,i.useLayoutEffect)((function(){var e=Hr(h,300);return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var f=(0,r.__assign)({windowWidth:m,alignment:o,nonFlexiblePart:c},d);return l().createElement(_o,(0,r.__assign)({},f),n)},_o=function(e){var t=e.menuProps,n=e.height,a=e.children,o=e.windowWidth,c=e.alignment,s=e.nonFlexiblePart,d=(0,r.__rest)(e,["menuProps","height","children","windowWidth","alignment","nonFlexiblePart"]),u=(0,i.useRef)(null),m=(0,i.useRef)(null),p=(0,i.useState)(!1),g=p[0],h=p[1],f=(0,i.useState)([]),v=f[0],x=f[1],E=(null===t||void 0===t?void 0:t.menuItems)||[],y=zr(c,n),b={display:"flex",flexDirection:"row",justifyContent:c,flexWrap:"nowrap",minWidth:"fit-content",alignItems:"center"};return(0,i.useLayoutEffect)((function(){h(!0)}),[o,a,t]),(0,i.useLayoutEffect)((function(){if(u.current&&m.current){var e=Array.from(u.current.children),t=l().Children.toArray(a),n=Wr(u.current,e,t);if(e.length>0){var o=e[0],i=t[0],c=m.current.getBoundingClientRect().width;Array.from(m.current.children).reduce((function(e,t){return e+t.getBoundingClientRect().width}),0)>=c&&(n=Or(n,o,i))}var s=(0,r.__spreadArray)((0,r.__spreadArray)([],n,!0),E,!0);s.length>0?x(s):h(!1)}}),[o,a,t]),l().createElement(nt,{horizontal:!0,verticalAlign:"center",grow:!0,horizontalAlign:"end",padding:g?"":"0 8px 0 0"},l().createElement(Bn,{grow:!0},l().createElement("div",{style:b,ref:m},s,l().createElement("div",{style:y,ref:u},a))),g?l().createElement(Rr,(0,r.__assign)({},d,t,{iconName:Mr,menuItems:v})):null)},wo="8px 0 8px 16px",Co=function(e){var t=e.operationalData,n=e.children,a=l().createElement(l().Fragment,null,n);return t?l().createElement(c.TwoUIProgressView,{operationData:t.operationData,updatingView:l().createElement(ro,(0,r.__assign)({},t.spinnerProps)),finishedView:a,inertView:a}):a},ko=function(e,t){switch(e.contentType){case"hyperlink":return e.hyperlinkElements.map((function(e,n){return l().createElement(nr,(0,r.__assign)({},e,{disabled:t,key:n}))}));case"text":return e.textElements.map((function(n,a){return e.truncatedTextProps?l().createElement(Qn,(0,r.__assign)({lines:e.truncatedTextProps.lines,stopPropagation:e.truncatedTextProps.stopPropagation},n,{disabled:t,key:a})):l().createElement(Fn,(0,r.__assign)({},n,{disabled:t,key:a}))}));case"callout":return e.calloutElements.map((function(e,t){return l().createElement(ea,(0,r.__assign)({},e,{key:t}))}));default:return}},To=function(e,t){return function(){if(t&&t>1){var n=0;if(e.slice(0,t).forEach((function(e){n-=e.text?1:0})),n<0)return"More than 1 Action Button cannot be constraint in case the button also has text inside it"}}},So=function(e){var t=e.actionButtonProps,n=e.menuProps,a=void 0===n?{"aria-label":"Menu Icon Button","data-bi-id":"Menu Icon Button",tooltipHostProps:{tooltipText:""},menuItems:[]}:n,o=(e.collapseActionText,e.disabled),i=(e.menuDisabled,e.operationalData),s=e.numberofButtonsToConstrain,d=e.textAlignment,u=void 0===d?"left":d,m=(0,r.__rest)(e,["actionButtonProps","menuProps","collapseActionText","disabled","menuDisabled","operationalData","numberofButtonsToConstrain","textAlignment"]),g=(0,c.useTwoUITelemetry)(),h=g.twoUITelemetryIds.areaBiId;p("ActionButtonFinalColumn",[To(t,s)]);var f=t.map((function(e,t){return l().createElement(Bn,{key:t},l().createElement(Ir,(0,r.__assign)({},e,{onClick:function(t){var n={clickId:"".concat(e["data-bi-id"]),pageArea:h};g.reportClick(n),"onClick"in e&&e.onClick(t)}})))})),v=s||"right"===u?bo:Ur,x=(0,r.__assign)({menuProps:a,height:"40px",alignment:"flex-end","aria-label":"","data-bi-id":""},s&&{nonFlexiblePart:f.slice(0,s)}),E=l().createElement(nt,{verticalAlign:"center",padding:"right"===u?"0 8px 0 0":""},l().createElement(Co,{operationalData:i},ko(m,o)));return"right"===u&&(x.nonFlexiblePart=x.nonFlexiblePart?(0,r.__spreadArray)([E],x.nonFlexiblePart,!0):E),l().createElement(nt,{verticalAlign:s?"center":void 0,horizontal:!0,grow:!0,childrenGap:16},"left"===u?E:void 0,l().createElement(v,(0,r.__assign)({},x),f.slice(s)))},Po="0 16px 0 0",Bo=function(e){var t=e.menuProps,n=e.disabled,a=e.operationalData,o=(0,r.__rest)(e,["menuProps","disabled","operationalData"]);return l().createElement(nt,{horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center"},l().createElement(nt,null,l().createElement(Co,{operationalData:a},ko(o,n))),l().createElement(Bn,null,l().createElement(Rr,(0,r.__assign)({},t,{disabled:n,menuItemsPadding:2}))))},Lo=function(e){var t=e.text;return l().createElement(o.B,(0,r.__assign)({},{tokens:{padding:"64px 16px 0 16px"},style:{lineHeight:"1.4"},grow:!0},{doNotRenderFalsyValues:!0}),l().createElement(Yt,{iconName:"Warning",size:"48px",color:"errorIcon"}),l().createElement(Qn,{variant:"statusHeader",lines:2},t))},Ao=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[ne.active]={inset:"4px"},r)}},rootHovered:{color:e.palette.themePrimary,background:t?e.palette[t]:e.palette.neutralMed},icon:{marginRight:"4px",marginLeft:"0px"}}},Io=function(e){var t=e.href,n=e.iconName,a=e.backgroundHoverColorOverride,o=(0,r.__rest)(e,["href","iconName","backgroundHoverColorOverride"]);fe("CardCallToAction",o);var s=(0,c.useTwoUITelemetry)(),u=(0,d.DP)();(0,i.useEffect)((function(){s.checkUrlAndReportHttp(t)}),[t]);var m=(0,r.__assign)({},o);return l().createElement(Bn,null,l().createElement(Cr.r,(0,r.__assign)({href:t,iconProps:{iconName:n},styles:Ao(u,a,!!n)},m)))},Fo={tokens:{childrenGap:10,padding:"16px 16px 0 16px"},styles:{root:{marginBottom:"-20px"}},grow:!0},Do=[nr,qr,ir],Ro=function(e){var t=e.heading,n=e.text,a=e.textColorOverride,c=e.headingTag;return(0,i.useEffect)((function(){"string"!==typeof n&&Object.keys(n.tokensAndValues).forEach((function(e){return function(e,t,n){var r=Z(e);return K(e)?(j(n).test(r)||!t.includes(e.type)||g(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}(n.tokensAndValues[e],Do,"CardDetails")}))}),[n]),l().createElement(o.B,(0,r.__assign)({},Fo,{doNotRenderFalsyValues:!0}),c?l().createElement(Qn,{variant:"subjectTitle",lines:1,type:"heading",tag:c},t):l().createElement(Qn,{variant:"subjectTitle",lines:1},t),"string"===typeof n?l().createElement(Qn,{variant:"metadataText",colorOverride:a,lines:3},n):l().createElement(ur,(0,r.__assign)({},n,{truncatedTextProps:{lines:3}})))},zo="12px 0 12px 16px",Ho=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}}}},No=function(e,t,n,a){return{styles:{root:(0,r.__assign)({cursor:n?"pointer":void 0},Ho(e,a))},tokens:{padding:t?"12px 12px 12px 16px":zo}}},Vo=function(e){var t=e.text,n=e.action,a=e.tag,i=void 0===a?"h5":a,c=(0,r.__rest)(e,["text","action","tag"]),s="withInfoIcon"===c.headerType,u=(0,d.DP)(),m=No(u,s,!!n,c.backgroundHoverColorOverride),p=m.styles,g=m.tokens,h=l().createElement(l().Fragment,null,l().createElement(nt,{horizontal:!0,verticalAlign:"center",childrenGap:5},"withTitleImage"===c.headerType?l().createElement(Ba,{width:22,height:22,imageType:"ariaHiddenImage",src:c.imgSrc}):null,l().createElement(Qn,{variant:"headerText",lines:1,type:"heading",tag:i},t)),l().createElement(nt,{horizontal:!0,verticalAlign:"center"},"withInfoIcon"===c.headerType?l().createElement(Yt,{iconName:"Info",size:"14px",color:"errorIcon"}):null,c.headerType&&"default"!==c.headerType||!c.menuProps?null:l().createElement(Bn,null,l().createElement(Rr,(0,r.__assign)({},c.menuProps,{iconName:"MoreVertical",iconColor:"neutralSecondary",menuIconVariant:"card"})))));return n?l().createElement(Bn,null,l().createElement(o.B,(0,r.__assign)({styles:p,tokens:g,horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between"},n,{tabIndex:0,doNotRenderFalsyValues:!0}),l().createElement(Cr.r,(0,r.__assign)({text:t,styles:ge},n)),h)):l().createElement(o.B,{styles:p,tokens:g,horizontal:!0,verticalAlign:"center",horizontalAlign:"space-between",doNotRenderFalsyValues:!0},h)},Mo=n(99723),Wo=244,Oo=function(e){return{margin:"16px 16px 0",overflow:"hidden",padding:"".concat(e&&"0 24px")}},Go={width:"100%",height:"210px"},Uo=function(e,t,n,r){var o;return{root:{backgroundColor:r?e.palette[r]:e.palette.neutralHigh,height:t,minWidth:"".concat(Wo,"px"),maxWidth:"".concat(288,"px"),borderRadius:"8px",boxShadow:a.f.depth4,overflow:"hidden",transitionDuration:me,cursor:n?"pointer":"auto",selectors:(o={":hover":{boxShadow:n?a.f.depth8:void 0}},o[F.up]={border:"1px solid transparent",":focus":{outline:"3px auto highlight",outlineOffset:"4px",transition:"outline 0s, outline-offset 0s"},"a:focus":{outline:"3px auto highlight"}},o)}}},jo={large:"424px",medium:"336px",small:"124px"},Ko=function(e){var t=e.childrenGap,n=void 0===t?0:t,a=e.height,i=void 0===a?"large":a,s=e.action,u=e.children,m=e.backgroundColorOverride,p=e["aria-label"],g=e.role,h=void 0===g?"group":g,f=(0,r.__rest)(e,["childrenGap","height","action","children","backgroundColorOverride","aria-label","role"]),v=(0,c.useTwoUITelemetry)();fe("CardCanvas",f);var x=(0,d.DP)(),E=s&&s["aria-label"]||p;return l().createElement(o.B,(0,r.__assign)({role:h,"data-testid":"card",onKeyPress:function(e){"Enter"===e.key&&(e.preventDefault(),(0,Mo.B)(e.target))},onClick:function(e){var t;s&&(s.onClick&&s.onClick(e),s.href&&("_blank"===s.target?window.open(s.href):window.location.assign(s.href)),v.reportClick({clickId:s["data-bi-id"],pageArea:(null===(t=s["data-bi-id"])||void 0===t?void 0:t.split(".")[0])||"",targetUri:s.href}))},tabIndex:s?0:void 0,grow:!0,styles:Uo(x,jo[i],!!s,m),tokens:{childrenGap:n},"aria-label":E},f,{doNotRenderFalsyValues:!0}),u)},Zo=function(e){var t=e.headerProps,n=e.alertProps,a=e.detailsProps,o=e.ctaProps;return s("AlertCard"),l().createElement(d.Dz,{variant:"AMC-on-red"},l().createElement(Ko,{action:o,height:"large",backgroundColorOverride:"neutralLight"},l().createElement(Vo,(0,r.__assign)({},t,{backgroundHoverColorOverride:"neutralTertiaryAlt"})),l().createElement(Lo,(0,r.__assign)({},n)),l().createElement(Ro,(0,r.__assign)({},a)),l().createElement(Io,(0,r.__assign)({},o,{backgroundHoverColorOverride:"neutralTertiaryAlt"}))))},Xo=n(66848),Yo=n(61962),qo=n.n(Yo),Qo={hover:"mouseenter",click:"click"},Jo="data_ready",$o="complete",ei=function(e){var t=e.id,n=e.src,r=e.alt,a=e.animationTrigger,o=e.height,s=e.width,d=e.autoPlay,u=void 0!==d&&d,m=e.loop,p=void 0!==m&&m,g=(0,c.useTwoUITelemetry)(),h=(0,i.useRef)(null),f=(0,Xo.B)(r),v=(0,i.useRef)(!1),x=(0,i.useRef)(),E=a?Qo[a]:void 0;(0,i.useEffect)((function(){if(E){var e=function(){!v.current&&x.current&&(v.current=!0,x.current.goToAndPlay(0))};return h.current.addEventListener(E,e),function(){h.current.removeEventListener(E,e)}}}),[E]),(0,i.useEffect)((function(){var e=function(){v.current=!1},t=function(){v.current=u,x.current.addEventListener($o,e)};return x.current=qo().loadAnimation({container:h.current,renderer:"svg",loop:p,autoplay:u,path:n,name:f}),x.current.addEventListener(Jo,t),function(){x.current.removeEventListener(Jo,t),x.current.removeEventListener($o,e),qo().destroy(f)}}),[x,r,u,p,n,f]),(0,i.useEffect)((function(){g.checkUrlAndReportHttp(n)}),[n]);var y={height:o,width:s};return l().createElement("div",{id:t,ref:h,style:y,role:"img","aria-label":r})},ti=n(85875),ni={hover:"mouseenter",click:"click"},ri="data_ready",ai="complete",oi=function(e){var t=e.id,n=e.src,r=e.alt,a=e.animationTrigger,o=e.height,s=e.width,d=e.autoPlay,u=void 0!==d&&d,m=e.loop,p=void 0!==m&&m,g=(0,c.useTwoUITelemetry)(),h=(0,i.useRef)(null),f=(0,ti.Bi)(r),v=(0,i.useRef)(!1),x=(0,i.useRef)(),E=a?ni[a]:void 0;(0,i.useEffect)((function(){var e;if(E){var t=function(){!v.current&&x.current&&(v.current=!0,x.current.goToAndPlay(0))};return null===(e=h.current)||void 0===e||e.addEventListener(E,t),function(){var e;null===(e=h.current)||void 0===e||e.removeEventListener(E,t)}}}),[E]),(0,i.useEffect)((function(){var e=function(){v.current=!1},t=function(){var t;v.current=u,null===(t=x.current)||void 0===t||t.addEventListener(ai,e)};return x.current=qo().loadAnimation({container:h.current,renderer:"svg",loop:p,autoplay:u,path:n,name:f}),x.current.addEventListener(ri,t),function(){var n,r;null===(n=x.current)||void 0===n||n.removeEventListener(ri,t),null===(r=x.current)||void 0===r||r.removeEventListener(ai,e),qo().destroy(f)}}),[r,u,p,n,f]),(0,i.useEffect)((function(){g.checkUrlAndReportHttp(n)}),[n]);var y={height:o,width:s};return l().createElement("div",{id:t,ref:h,style:y,role:"img","aria-label":r})},ii=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes("TwoUIV9GroupA")?l().createElement(oi,(0,r.__assign)({},t)):l().createElement(ei,(0,r.__assign)({},t))},li=n(18725),ci=function(e){var t=e.message,n=e.ariaLive,r=void 0===n?"polite":n;return s("Announced"),l().createElement(li.e,{message:t,"aria-live":r})},si=n(33517),di=function(e){var t=e.message,n=e.ariaLive,r=void 0===n?"polite":n;s("Announced");var a=(0,si.X)().announce;return(0,i.useEffect)((function(){"off"!==r&&a(t,{polite:"assertive"!==r})})),l().createElement(l().Fragment,null)},ui=P,mi=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(ui)?l().createElement(di,(0,r.__assign)({},t)):l().createElement(ci,(0,r.__assign)({},t))},pi=n(30447),gi=function(e){var t=e.announcedComponent,n=fi();return l().createElement(l().Fragment,null,n.announcements.map((function(e,n){return l().createElement(t,(0,r.__assign)({key:n},e))})))},hi=(0,i.createContext)(null),fi=function(){var e=(0,i.useContext)(hi);if(null===e)throw new Error("AnnouncementsContext: Context is uninitialized. Confirm that your component is contained within an AnnouncementsContext.Provider component.");return e.state},vi=function(){var e=(0,i.useContext)(hi);if(null===e)throw new Error("AnnouncementsContext: Context is uninitialized. Confirm that your component is contained within an AnnouncementsContext.Provider component.");return e.dispatch},xi=function(e){var t=e.children,n=e.announcedComponent,r=(0,c.useTwoUIFlights)().includes("TwoUIV9TBD"),a=(0,si.X)().announce,o=(0,i.useReducer)((function(e,t){if("push"===t.type)return r?("off"!==t.announcement.ariaLive&&a(t.announcement.message,{polite:"assertive"!==t.announcement.ariaLive}),e):{announcements:e.announcements.concat(t.announcement)}}),{announcements:[]}),s=o[0],d=o[1];return r?l().createElement(hi.Provider,{value:{state:s,dispatch:d}},l().createElement(pi.l,null,t)):l().createElement(hi.Provider,{value:{state:s,dispatch:d}},t,l().createElement(gi,{announcedComponent:n}))},Ei=function(e){var t=e.id,n=e.children;return s("AriaDescription",t),l().createElement("div",{id:t,style:{display:"none"}},n)},yi=(0,I.n)({root:{display:"none"}}),bi=function(e){var t=e.id,n=e.children;s("AriaDescription",t);var r=yi();return l().createElement("div",{id:t,className:r.root},n)},_i=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(T)?l().createElement(bi,(0,r.__assign)({},t)):l().createElement(Ei,(0,r.__assign)({},t))},wi=n(33566),Ci=function(e,t,n){return{input:{paddingLeft:t?"30px":0,background:e.palette.neutralHigh},container:{width:"auto"},root:{background:e.palette.neutralHigh,paddingLeft:"8px"},optionsContainerWrapper:{maxHeight:n,background:e.palette.neutralHigh},callout:{maxWidth:"fit-content"}}},ki=function(e){var t,n,r;return{root:{height:"40px",border:"none",background:e.palette.neutralHigh},rootHovered:{background:e.palette.neutralLighterAlt,span:(t={},t[F.up]={color:"highlight"},t)},rootPressed:{background:e.palette.neutralLight,span:(n={},n[F.up]={color:"highlight"},n)},rootChecked:{background:e.palette.neutralLight,span:(r={},r[F.up]={color:"highlightText"},r)}}},Ti=function(e){return{margin:e?"-50px 8px 4px 8px":"-28px 8px 4px 8px",position:"relative",width:"24px"}},Si=function(e,t){return l().createElement(Ba,{src:e,imageType:"ariaHiddenImage",fallbackIconProps:t,height:"24px",width:"24px"})},Pi=function(e){var t,n;if(e){var r=null===(t=e.data)||void 0===t?void 0:t.image,a=(null===r||void 0===r?void 0:r.fallbackIconProps)||{iconName:"ImageOff"},o=l().createElement(nt,{horizontal:!0},l().createElement(rt,null,l().createElement(Qn,{variant:"bodySecondaryText",stopPropagation:!1,lines:1},e.text)),(null===(n=e.data)||void 0===n?void 0:n.suffixText)?l().createElement(rt,{width:"auto"},l().createElement(Fn,{variant:"bodySecondaryText",nowrap:!0},e.data.suffixText)):null);return l().createElement(l().Fragment,null,r?l().createElement(nt,{horizontal:!0,padding:"0px 8px 0px 8px"},l().createElement(rt,{padding:"0px 16px 0px 0px"},Si(r.src,a)),o):l().createElement(l().Fragment,null,o))}return l().createElement(l().Fragment,null)},Bi=function(e){var t,n,a,o,i=e["aria-label"],s=e["data-bi-prefix"],u=e.pageArea,m=e.text,p=e.options,g=e.selectedOption,h=e.onChange,f=e.onInputValueChange,v=e.placeholder,x=e.required,E=e.label,y=e.errorMessage,b=e.disabled,_=e.onBlur,w=e.maxHeight,C=e.autoComplete,k=void 0!==C&&C,T=(0,r.__rest)(e,["aria-label","data-bi-prefix","pageArea","text","options","selectedOption","onChange","onInputValueChange","placeholder","required","label","errorMessage","disabled","onBlur","maxHeight","autoComplete"]),S=(0,c.useTwoUITelemetry)();fe("ComboBox",T);var P=(0,d.DP)(),B=w?"".concat(w,"px"):"auto",L=(null===(n=null===(t=null===g||void 0===g?void 0:g.data)||void 0===t?void 0:t.image)||void 0===n?void 0:n.fallbackIconProps)||{iconName:"ImageOff"},A=!(!y||""===y),I=(0,r.__spreadArray)([],p,!0);return l().createElement(l().Fragment,null,l().createElement(wi.F,(0,r.__assign)({ariaLabel:i,allowFreeInput:!0,autoComplete:!0===k?"on":"off",comboBoxOptionStyles:ki(P),label:E,options:I,onInputValueChange:function(e){f&&f(e)},onRenderOption:Pi,onChange:function(e,t,n,r){if(t){var a={clickId:"".concat(s,"-").concat(t.key),pageArea:u};S.reportClick(a)}h&&h(e,t,n,r)},placeholder:v,required:x,selectedKey:null===g||void 0===g?void 0:g.key,styles:Ci(P,null===(a=null===g||void 0===g?void 0:g.data)||void 0===a?void 0:a.image.src,B),text:m,useComboBoxAsMenuWidth:!0,errorMessage:y,disabled:b,onBlur:_,openOnKeyboardFocus:!0},T)),(null===(o=null===g||void 0===g?void 0:g.data)||void 0===o?void 0:o.image)?l().createElement("div",{style:Ti(A)},Si(g.data.image.src,L)):null)},Li=function(e){switch(e){case"Small":return"3px 8px";case"Large":return"8px 16px"}},Ai=function(e){var t=e.text,n=e.badgeSize,a=void 0===n?"Small":n,o=e.lowlight,i=void 0!==o&&o,c=e.uppercase,u=void 0!==c&&c,m=(0,r.__rest)(e,["text","badgeSize","lowlight","uppercase"]);s("Badge",m.id),fe("Badge",m);var p=function(e,t,n,r){return{root:{borderRadius:"2px",background:n?e.palette.neutralPrimary:e.palette.highlighter,color:n?e.palette.neutralMed:e.palette.neutralDark,padding:Li(t),fontSize:14,fontWeight:"normal",lineHeight:20,textTransform:r&&"Large"===t?"uppercase":"none",width:"fit-content"}}}((0,d.DP)(),a,i,u);return l().createElement(Gt.J,(0,r.__assign)({styles:p},m),t)},Ii=n(18402),Fi=(0,I.n)({root:{display:"flex",borderRadius:Tt.L.borderRadiusSmall,fontSize:Tt.L.fontSizeBase300,fontWeight:Tt.L.fontWeightRegular,lineHeight:Tt.L.lineHeightBase300,width:"fit-content",color:Tt.L.colorNeutralForeground1},highlight:{color:Tt.L.colorNeutralForeground1},lowlight:{color:Tt.L.colorNeutralForegroundInverted},uppercase:{textTransform:"uppercase"}}),Di=function(e){var t=e.text,n=e.badgeSize,a=void 0===n?"Small":n,o=e.lowlight,l=void 0!==o&&o,c=e.uppercase,d=void 0!==c&&c,u=(0,r.__rest)(e,["text","badgeSize","lowlight","uppercase"]),m=Fi();s("Badge",u.id);var p="Large"===a?"extra-large":"large",g=l?"important":"warning",h=l?m.lowlight:m.highlight,f=d&&"Large"===a?m.uppercase:void 0,v=(0,ve.z)(m.root,h,f);return i.createElement(Ii.E,(0,r.__assign)({size:p,color:g,className:v},u),t)},Ri=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(Di,(0,r.__assign)({},t)):l().createElement(Ai,(0,r.__assign)({},t))},zi=function(e){return function(){return e.length<1?"Banner cannot have less than ".concat(1," column"):void 0}},Hi=function(e){return function(){return e.length>3?"Banner cannot have more than ".concat(3," column"):void 0}},Ni=(0,i.createContext)({setDisplaySecondColumnContainer:function(){},setDisplayThirdColumnContainer:function(){}}),Vi=function(e){var t=e.id,n=e.expanded,a=void 0===n||n,c=e.children;s("Banner",t);var d=(0,i.useState)(!0),u=d[0],m=d[1],g=(0,i.useState)(!0),h=g[0],f=g[1],v=l().Children.toArray(c);p("Banner",[zi(v),Hi(v)]);var x=v.length,E=ce(),y=["s","m","l"].includes(E),b=["s","m"].includes(E),_="".concat(b?"28px":"24px"," 0 0"),w=a?_:void 0,C=!y&&x>1?"50%":"100%",k=function(e){return e?{root:{width:"s"===E?"100%":"50%"}}:{root:{width:"0%",overflow:"hidden"}}},T={horizontalAlign:y?"start":"end"},S=y?"100%":"50%";return l().createElement(Ni.Provider,{value:{setDisplaySecondColumnContainer:m,setDisplayThirdColumnContainer:f}},l().createElement(o.B,{horizontal:!0,wrap:!0,styles:{root:{width:"100%",padding:w}},id:t,doNotRenderFalsyValues:!0},l().createElement(he.a,{styles:{root:{width:C}},shrink:0},v[0]),x>1?l().createElement(o.B,(0,r.__assign)({},T,{horizontal:!0,wrap:!0,styles:{root:{width:S}},doNotRenderFalsyValues:!0}),v[1]?l().createElement(he.a,{styles:k(u),shrink:0},v[1]):null,v[2]?l().createElement(he.a,{styles:k(h),shrink:0},v[2]):null):null))},Mi=n(57839),Wi={selectors:(Vr={},Vr[$.maxS]={fontSize:"12px",lineHeight:"16px"},Vr[$.minM]={fontSize:"12px",lineHeight:"16px"},Vr[$.minXl]={fontSize:"14px",lineHeight:"20px"},Vr)},Oi=function(e,t){var n,a={};return t&&(a={color:e.palette.neutralSecondary,fontFamily:Xt,selectors:(n={},n[$.maxS]={fontSize:18},n[$.minM]={fontSize:18},n[$.minL]={fontSize:24},n[$.minXl]={fontSize:24},n)}),{chevron:(0,r.__assign)({marginLeft:2,marginRight:2},a),listItem:{height:"100%"},overflowButton:{height:"16px"},item:(0,r.__assign)((0,r.__assign)({},Wi),{":hover":{cursor:"text"}}),itemLink:Wi,list:{selectors:{"li:first-child > *:first-child":{paddingLeft:"0px"}},alignItems:"center"}}},Gi=function(e,t){var n,r,a,o,i="[class*=crumbTitle], .".concat(t);return{root:(n={color:e.palette.neutralSecondary},n[i]={color:e.palette.neutralSecondary},n[":hover"]=(r={},r[i]={backgroundColor:e.palette.neutralLighter},r.textDecoration="none",r),n[":active:hover"]=(a={},a[i]={backgroundColor:e.palette.neutralLight},a.textDecoration="none",a),n[":focus"]={textDecoration:"none"},n[F.up]=(o={},o[i]={color:"LinkText"},o[":focus"]={outline:"highlight auto 1px !important"},o),n)}},Ui=function(e,t){var n=_t(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"}}},ji=function(e,t,n,r){return{root:{marginRight:4,marginLeft:e&&!t?4:0,maxWidth:n,width:r,alignItems:"center"}}},Ki=function(e,t){return{root:{marginRight:e?8:2,marginLeft:t?0:2,marginTop:0}}},Zi=function(e,t){return{root:{marginRight:e?8:2,marginLeft:t?0:2,marginTop:0}}},Xi=0,Yi=1,qi=function(e){var t=e.items,n=e.overflowIndex,a=void 0===n?0:n,u=e.maxDisplayedItems,m=void 0===u?3:u,p=e.pageArea,g=e.dataBiPrefix,h=e.isIncludingCurrentPage,f=e.itemStyle,v=void 0===f?Xi:f,x=(0,r.__rest)(e,["items","overflowIndex","maxDisplayedItems","pageArea","dataBiPrefix","isIncludingCurrentPage","itemStyle"]),E=(0,c.useTwoUITelemetry)();s("Breadcrumb"),(0,i.useEffect)((function(){}),[]);var y=ce(),b=(0,ft.useHistory)(),_=(0,d.DP)(),w=v===Yi,C=t.length>1?t[0].mediaProps:void 0,k=(0,i.useRef)(null),T=(0,i.useState)(500),S=T[0],P=T[1],B=(0,i.useState)(void 0),L=B[0],A=B[1];function I(e,t){var n=function(e){var t,n,r,a,o=document.createElement("span"),i=_t(_,e);switch(e){case"paneTitle":o.style.fontFamily=null!==(n=null===(t=_.fonts.medium)||void 0===t?void 0:t.fontFamily)&&void 0!==n?n:"Segoe UI";break;case"statusHeader":o.style.fontFamily=null!==(a=null===(r=_.fonts.large)||void 0===r?void 0:r.fontFamily)&&void 0!==a?a:"Segoe UI"}return o.style.fontSize=i.fontSize,o.style.fontWeight=i.fontWeight.toLocaleString(),document.body.appendChild(o),o}(t);n.innerText=e;var r=Math.ceil(n.getBoundingClientRect().width);return n.remove(),r+4}function F(e,t,n){var r="paneTitle",a=16;switch(y){case"l":case"xl":case"xxl":case"xxxl":r="statusHeader",a=24}var o=t?I(e,r):0;return n?o+a+2+8:o+4}var D=function(){if(k.current){var e=.85*k.current.offsetWidth-24;if(e>0)if(1===t.length)P(e);else{var n=F(t[0].text,!C,!!t[0].mediaProps),r=F(t[t.length-1].text,!0,!!t[t.length-1].mediaProps),a=Math.floor(e-n),o=Math.floor(.7*e);if(a<(o=o>r?r:o))A(Math.floor(e-o)),P(o);else{var i=r>a?a:r;A(void 0),P(i)}}else A(void 0),P(void 0)}};(0,i.useEffect)((function(){window.addEventListener("resize",D)}),[]);var R=function(e,t){var n={clickId:"".concat(g,"-").concat(null===t||void 0===t?void 0:t.key),pageArea:p};E.reportClick(n)},z=null===t||void 0===t?void 0:t.map((function(e,n){switch(e.type){case"route":return{text:e.text,key:e.id,onClick:function(t,n){R(0,n),b.push(e.to)},isCurrentItem:h&&n===t.length-1,id:e.id};case"hyperlink":return{text:e.text,key:e.id,href:e.href,onClick:R,isCurrentItem:h&&n===t.length-1,id:e.id};case"text":return{text:e.text,key:e.id,isCurrentItem:h&&n===t.length-1,id:e.id}}}));(0,i.useEffect)((function(){z.forEach((function(e){E.checkUrlAndReportHttp(e.href)}))}),[z]);var H=(0,i.useState)("paneTitle"),N=H[0],V=H[1],M=(0,i.useState)("".concat(16,"px")),W=M[0],O=M[1];(0,i.useEffect)((function(){switch(D(),y){case"s":case"m":V("paneTitle"),O("".concat(16,"px"));break;case"l":case"xl":case"xxl":case"xxxl":V("statusHeader"),O("".concat(24,"px"))}}),[y]);var G=l().createElement(Mi.Q,(0,r.__assign)({styles:Oi(_,w),items:z,overflowIndex:a,maxDisplayedItems:m,onRenderItem:w?function(e){var n,a,i,c=(null===e||void 0===e?void 0:e.key)===t[t.length-1].id,s=(null===e||void 0===e?void 0:e.key)===t[0].id,d=t.findIndex((function(t){return t.id===(null===e||void 0===e?void 0:e.key)})),u=!(s&&!c)&&""!==t[d].text;switch(null===(n=t[d].mediaProps)||void 0===n?void 0:n.kind){case"image":a=l().createElement(o.B,{styles:Ki(u,s),doNotRenderFalsyValues:!0},l().createElement(Ba,(0,r.__assign)({imageType:"altTextImage"},t[d].mediaProps,{height:W,width:W})));break;case"icon":i=t[d].mediaProps.iconName,a=l().createElement(o.B,{styles:Zi(u,s),doNotRenderFalsyValues:!0},l().createElement(Yt,(0,r.__assign)({},t[d].mediaProps,{size:W})))}var m={href:e.href,styles:Gi(_,i),"data-bi-id":e.text,"aria-label":e.text,onClick:e.onClick,underline:!1,id:e.id};return c||"text"===t[d].type?l().createElement(o.B,{horizontal:!0,styles:c?ji(void 0===a,s,void 0,S):ji(void 0===a,s,s?L:void 0,void 0),doNotRenderFalsyValues:!0},a,l().createElement(Qn,{type:"heading",tag:"h1",lines:1,variant:N,id:e.id},e.text)):C&&(null===e||void 0===e?void 0:e.key)===t[0].id?l().createElement(zn,{tooltipText:e.text,tooltipPosition:"top-center"},l().createElement(ht.N,(0,r.__assign)({},m),l().createElement(o.B,{horizontal:!0,doNotRenderFalsyValues:!0},a))):l().createElement(zn,{tooltipText:e.text,tooltipPosition:"top-center"},l().createElement(ht.N,(0,r.__assign)({},m),l().createElement(o.B,{horizontal:!0,styles:ji(void 0===a,s,s?L:void 0,void 0),doNotRenderFalsyValues:!0},a,l().createElement(wt.E,{className:"crumbTitle",styles:Ui(_,N)},e.text))))}:void 0,focusZoneProps:{handleTabKey:1}},x));return w?l().createElement("div",{className:"divRef",ref:k},G):G},Qi=function(e){var t=e.breadcrumbTitleProps,n=(0,r.__rest)(e,["breadcrumbTitleProps"]);return fe("BannerBreadcrumbTitleColumn",n),l().createElement(o.B,{styles:{root:{paddingTop:"18px",paddingBottom:"24px"}},doNotRenderFalsyValues:!0},l().createElement(qi,(0,r.__assign)({maxDisplayedItems:5,itemStyle:Yi},t)))},Ji=function(){var e;return{root:{selectors:(e={},e[$.maxS]={paddingTop:"4px",paddingBottom:"8px"},e[$.minM]={paddingTop:"8px",paddingBottom:"8px"},e[$.minXl]={paddingTop:"29px",paddingBottom:"19px"},e)}}},$i=function(e,t,n){var r,a,o,i,l,c,s,d=".".concat(t),u=n?e.palette.themeDarkAlt:e.palette.neutralPrimary,m=n?e.palette.themePrimary:e.palette.themeSecondary,p=m,g=n?e.palette.themeDarkAlt:e.palette.themePrimary;return{root:{maxWidth:"100%",selectors:(r={".FullCircleMask":{color:e.palette.themeLighter}},r[d]={color:e.palette.themePrimary},r[".infoColumnCta, .ChevronRight, .ChevronLeft"]={color:u},r[".ChevronRight, .ChevronLeft"]=(a={display:"block",paddingLeft:"13px",paddingRight:"52px",transform:"translateY(4px)"},a[$.maxM]={transform:"translateY(8px)"},a),r[".infoColumnInfoText"]={color:e.palette.neutralSecondary},r[":focus"]={outline:"1px solid ".concat(e.palette.neutralPrimary),selectors:(o={".FullCircleMask":{color:e.palette.themeLighter}},o[d]={color:e.palette.themePrimary},o[".infoColumnCta, .ChevronRight, .ChevronLeft"]={color:u},o[".infoColumnInfoText"]={color:e.palette.neutralSecondary},o)},r[":hover"]={selectors:(i={".FullCircleMask":{color:e.palette.themeSecondary}},i[d]={color:e.palette.neutralHigh},i[".infoColumnCta, .ChevronRight, .ChevronLeft"]={color:m},i[".infoColumnInfoText"]={color:p},i)},r[":active:focus"]={outline:"0px",selectors:(l={".FullCircleMask":{color:e.palette.themePrimary}},l[d]={color:e.palette.neutralHigh},l[".infoColumnCta, .ChevronRight, .ChevronLeft"]={color:e.palette.themePrimary},l[".infoColumnInfoText"]={color:g},l)},r[F.up]=(c={".FullCircleMask, .infoColumnCta, .infoColumnInfoText":{color:"LinkText"}},c[d]={color:"Window"},c[":hover, &:focus"]=(s={".FullCircleMask, .infoColumnCta, .infoColumnInfoText, .ChevronRight, .ChevronLeft":{color:"highlight"}},s[d]={color:"Window"},s),c),r)}}},el=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[F.up]=(n={},n[r]={"-webkit-forced-color-adjust":"none","forced-color-adjust":"none"},n),t)}}},tl=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[F.up]={".StatusWarning, .StatusCircle7":{"-webkit-forced-color-adjust":"none","forced-color-adjust":"none"}},t)}}},nl=function(e){var t,n;return{root:{maxWidth:"100%",marginRight:e?void 0:"13px",selectors:{".infoColumnCta":{fontWeight:F.BO.semibold,selectors:(t={},t[$.maxM]={lineHeight:"16px",marginTop:"8px"},t[$.minL]={lineHeight:"16px"},t)},".infoColumnInfoText":{lineHeight:"16px",selectors:(n={},n[$.maxS]={display:"none"},n[$.minM]={display:"none"},n[$.minL]={display:"block"},n)}}}}},rl=function(e){var t=e.iconName,n=e.ctaText,a=e.ctaUrl,i=e.onClick,c=e.infoText,s=e.badge,u=e.isHyperlinkVariant,m=(0,r.__rest)(e,["iconName","ctaText","ctaUrl","onClick","infoText","badge","isHyperlinkVariant"]);fe("BannerInfoColumn",m);var p,g=(0,d.DP)(),h=Ce();if("Alert"===s)p=l().createElement(o.B,{styles:tl(h),doNotRenderFalsyValues:!0},l().createElement(Yt,{iconName:"StatusCircle7",color:"errorIcon",size:"32px"}),l().createElement(Yt,{iconName:"StatusWarning",color:"white",size:"24px"}));else p=l().createElement(l().Fragment,null);return l().createElement(o.B,{horizontal:!0,styles:Ji(),doNotRenderFalsyValues:!0},l().createElement(he.a,null,l().createElement(ht.N,(0,r.__assign)({href:a,onClick:i,style:{textDecoration:"none",boxShadow:"none",display:"inline-block"},styles:$i(g,t,u)},m),p,l().createElement(o.B,{horizontal:!0,styles:el(t),doNotRenderFalsyValues:!0},l().createElement(Yt,{iconName:"FullCircleMask",size:"32px"}),l().createElement(Yt,{iconName:t,size:"16px"})),l().createElement(o.B,{styles:nl(u),doNotRenderFalsyValues:!0},l().createElement(wt.E,{className:"infoColumnCta",block:!0,variant:"small"},n),l().createElement(wt.E,{className:"infoColumnInfoText",block:!0,variant:"small"},c)))),u?l().createElement(he.a,{styles:$i(g,t,u)},l().createElement(Yt,{iconName:ke("ChevronRight"),size:"12px"})):null)},al=function(e){var t=e.height,n=e.shimmerColors;return s("ShimmerCircle"),l().createElement(B.W,{style:{borderRadius:"100%",overflow:"hidden"},shimmerElements:[{type:ja.w.circle,height:t}],shimmerColors:n})},ol=function(e){var t=e.height,n=(0,r.__rest)(e,["height"]);return i.createElement(Za.E,(0,r.__assign)({"aria-label":"Loading content"},n),i.createElement(Xa.H,{shape:"circle",style:{height:t,width:t}}))},il=_,ll=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(il)?l().createElement(ol,(0,r.__assign)({},t)):l().createElement(al,(0,r.__assign)({},t))},cl=function(){var e=ce(),t=["l","xl","xxl","xxxl"].includes(e);return l().createElement(o.B,{horizontal:!0,styles:Ji(),doNotRenderFalsyValues:!0},l().createElement(o.B,{horizontal:!0,styles:el(),doNotRenderFalsyValues:!0},l().createElement(ll,{height:32})),l().createElement(o.B,{styles:nl(),verticalAlign:"center",tokens:{childrenGap:2},doNotRenderFalsyValues:!0},l().createElement(Qa,{width:102,height:14}),t?l().createElement(Qa,{width:135,height:14}):null))},sl=n(55516),dl=n(16184),ul=["160","200","256"],ml={24:sl.WH.size24,28:sl.WH.size28,32:sl.WH.size32,40:sl.WH.size40,48:sl.WH.size48,56:sl.WH.size56,72:sl.WH.size72,100:sl.WH.size100,120:sl.WH.size120};function pl(e){return ml[e||"32"]}var gl=function(e){var t=(0,r.__rest)(e,[]);return l().createElement(hl,(0,r.__assign)({},t))},hl=function(e){var t,n=e.operationData,a=e.size,o=void 0===a?"32":a,m=e.imageUrl,p=e.text,g=e.secondaryText,h=e.hideText,f=void 0!==h&&h,v=e.trackingId,x=(0,r.__rest)(e,["operationData","size","imageUrl","text","secondaryText","hideText","trackingId"]);fe("Persona",x);var E=(0,Xo.B)(),y=(0,c.useTwoUITelemetry)();s("Persona",x.id);var b=(0,c.useTwoUIComponentQos)(),_=b.startOperation,w=b.reportSuccess,C=b.reportFailure,k=(0,i.useState)(!1),T=k[0],S=k[1],P=function(e){return ul.includes(e)}(o),B=P?sl.WH.size120:pl(o),L=P?Number(o):void 0,A=m?(0,u.PA)(m):"unknown-domain",I="".concat("persona.image-load.").concat(A,".").concat(v),D=(0,d.DP)();(0,i.useEffect)((function(){y.checkUrlAndReportHttp(m),m?(S(!0),v&&_(I,E,!0)):S(!1)}),[m]);var R=function(){return l().createElement(ll,{height:+o})},z=(0,F.Zq)({selectors:(t={},t.span={fontSize:"96px"},t)}),H="256"===o?{coinProps:{className:z}}:void 0,N=(0,r.__assign)({size:B,coinSize:L,imageUrl:m,text:p,secondaryText:g,hidePersonaDetails:f,onPhotoLoadingStateChange:function(e){e===ca.P6.error?(v&&C(I,E,new Error("Image failed to load")),S(!1)):e===ca.P6.loaded&&(v&&w(I,E),S(!1))},onRenderInitials:T?R:void 0,initialsTextColor:D.palette.neutralHigh,showInitialsUntilImageLoads:T,coinProps:H},x),V=l().createElement(dl.F,(0,r.__assign)({},N)),W=l().createElement(dl.F,(0,r.__assign)({},N,{showInitialsUntilImageLoads:!0,onRenderInitials:R,onPhotoLoadingStateChange:void 0}));return n?l().createElement(M,{operationData:n,inertView:W,firstLoadView:W,updatingView:W,updateFailedView:V,finishedView:V,failedView:V}):V},fl=n(47873),vl=(0,I.n)({personaTextContainer:{maxWidth:"100%",minWidth:0,"& *":{"&:not([role='img']):not([class*='avatar']):not([class*='coin']):not([class*='image']):not(img):not(svg)":{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},"& div:not([role='img']):not([class*='avatar']):not([class*='coin'])":{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& span":{maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}}});var xl=["100","160","200","256"],El={24:24,28:28,32:32,40:40,48:48,56:56,72:72,96:96,120:120};var yl=function(e){var t=(0,r.__rest)(e,[]);return l().createElement(bl,(0,r.__assign)({},t))},bl=function(e){var t=e.operationData,n=e.size,a=void 0===n?"32":n,o=e.imageUrl,d=e.text,m=e.secondaryText,p=e.hideText,g=void 0!==p&&p,h=e.trackingId,f=e.className,v=(0,r.__rest)(e,["operationData","size","imageUrl","text","secondaryText","hideText","trackingId","className"]);fe("Persona",v);var x=(0,ti.Bi)(),E=(0,c.useTwoUITelemetry)();s("Persona",v.id);var y=(0,c.useTwoUIComponentQos)(),b=y.startOperation,_=y.reportSuccess,w=y.reportFailure,C=vl(),k=(0,i.useState)(!1),T=k[0],S=k[1],P=(0,i.useState)(!1),B=P[0],L=P[1],A=function(e){return xl.includes(e)}(a),I=A?"100"===a?96:120:function(e){return El[e]||32}(a),F=A?Number(a):void 0,D=o?(0,u.PA)(o):"unknown-domain",R="".concat("persona.image-load.").concat(D,".").concat(h);(0,i.useEffect)((function(){E.checkUrlAndReportHttp(o),o?(S(!0),h&&b(R,x,!0)):S(!1)}),[o]);var H=function(){h&&w(R,x,new Error("Image failed to load")),S(!1),L(!0)},N=function(){h&&_(R,x),S(!1),L(!1)},V=function(){return l().createElement(ll,{height:+a})},M=!g&&m&&!["24","28","32"].includes(a),W=function(e,t,n){var r=function(e){return{24:"11px",28:"12px",32:"14px",40:"16px",48:"20px",56:"28px",72:"32px",96:"36px",100:"40px",120:"44px",160:"60px",200:"72px",256:"96px"}[e]}(e),a={fontSize:r};return t&&n&&(a.width="".concat(n,"px"),a.height="".concat(n,"px")),{avatarStyle:a}}(a,A,F).avatarStyle,O={name:d,secondaryText:M?m:void 0,avatar:(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({},o&&!B?{image:{src:o,onError:H,onLoad:N}}:{}),{size:I,color:"colorful"}),T?{children:V()}:{}),{style:W}),textAlignment:"center",textPosition:"after"},G=l().createElement(fl.F,(0,r.__assign)({},v,O,{className:(0,ve.z)(C.personaTextContainer,f)})),U=l().createElement(fl.F,(0,r.__assign)({},v,{name:d,secondaryText:M?m:void 0,avatar:(0,r.__assign)((0,r.__assign)({size:I,color:"colorful"},o&&!B?{image:{src:o,onError:H,onLoad:N}}:{}),{children:V(),style:W}),textAlignment:"center",textPosition:"after",className:(0,ve.z)(C.personaTextContainer,f)}));return t?l().createElement(z,{operationData:t,inertView:U,firstLoadView:U,updatingView:U,updateFailedView:G,finishedView:G,failedView:G}):G},_l=function(e){return(0,c.useTwoUIFlights)().includes(C)?l().createElement(yl,(0,r.__assign)({},e)):l().createElement(gl,(0,r.__assign)({},e))},wl=function(){var e;return{root:{selectors:(e={},e[$.maxS]={paddingTop:"13px",paddingBottom:"14px"},e[$.minM]={paddingTop:"24px",paddingBottom:"8px"},e[$.minXl]={paddingTop:"23px",paddingBottom:"17px"},e)}}},Cl=function(){var e;return{root:{marginRight:"16px",selectors:(e={},e[$.maxS]={marginRight:"12px"},e)}}},kl=function(){var e;return{root:{marginRight:"16px",selectors:(e={},e[$.maxS]={marginRight:"12px"},e)}}},Tl="h1",Sl=function(e){var t=e.bannerTitle,n=e.mediaProps,a=(0,r.__rest)(e,["bannerTitle","mediaProps"]);fe("BannerTitleColumn",a);var c=ce();(0,i.useEffect)((function(){}),[]);var s="pageTitle";"s"===c?s="paneTitle":["m","l"].includes(c)&&(s="statusHeader");var d,u="32px";switch("s"===c?u="16px":["m","l"].includes(c)&&(u="24px"),null===n||void 0===n?void 0:n.kind){case"image":var m="s"===c?36:38;d=l().createElement(o.B,{styles:Cl(),verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Ba,(0,r.__assign)({imageType:"altTextImage"},n,{height:m,width:m})));break;case"icon":d=l().createElement(o.B,{styles:kl(),verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Yt,(0,r.__assign)({},n,{size:u})))}return l().createElement(o.B,{horizontal:!0,styles:wl(),doNotRenderFalsyValues:!0},d,l().createElement(o.B,{verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Qn,(0,r.__assign)({type:"heading",tag:Tl,lines:1,variant:s},a),t)))},Pl=function(e){switch(e){case"s":return"8px 0";case"m":case"l":return"13px 0 8px";default:return"18px 0 8px"}},Bl=function(e){return{margin:"0 16px 0 0",width:"s"===e?"56px":"72px"}},Ll=function(e,t){return t?{root:{color:e.palette.neutralPrimary,marginBottom:"3px"}}:{root:{color:e.palette.neutralPrimary,marginBottom:"3px",selectors:{":focus":{outline:"".concat(e.palette.neutralPrimary," auto 1px"),boxShadow:"none",color:e.palette.neutralPrimary,textDecoration:"underline"},":hover":{color:e.palette.neutralPrimary,textDecoration:"underline"},":active":{color:e.palette.neutralPrimary,textDecoration:"underline"},":focus:hover":{color:e.palette.neutralPrimary,textDecoration:"underline"},":active:hover":{color:e.palette.neutralPrimary,textDecoration:"underline"},".ms-Fabric--isFocusVisible &:focus":{outline:"".concat(e.palette.neutralPrimary," auto 1px"),boxShadow:"none",color:e.palette.neutralPrimary,textDecoration:"underline"}}}}},Al=function(e,t){var n;switch(t){case"s":n="paneTitle";break;case"m":case"l":n="statusHeader";break;default:n="pageTitle"}var r=bt(e,n);return{root:{fontSize:r.fontSize,fontWeight:r.fontWeight,lineHeight:r.lineHeight,fontFamily:r.fontFamily,color:void 0}}},Il=function(e,t){var n={color:bt(e,"metadataText").color,display:"flex"};return t?{root:n}:{root:(0,r.__assign)((0,r.__assign)({},n),{selectors:{":focus":{outline:"1px solid ".concat(e.palette.themeSecondary),color:e.palette.themeSecondary,textDecoration:"underline"},":hover":{color:e.palette.themeSecondary,textDecoration:"underline"},":active":{color:e.palette.themePrimary,textDecoration:"underline"},":focus:hover":{color:e.palette.themeSecondary,textDecoration:"underline"},":active:hover":{color:e.palette.themePrimary,textDecoration:"underline"}}})}},Fl=function(e){var t=e.persona,n=e.title,a=e.info,o=ce();return(0,i.useEffect)((function(){}),[]),l().createElement(nt,{horizontal:!0,padding:Pl(o)},l().createElement(nt,(0,r.__assign)({},Bl(o)),l().createElement(Dl,(0,r.__assign)({},t))),l().createElement(nt,{verticalAlign:"center"},l().createElement(Rl,(0,r.__assign)({},n)),a?l().createElement(zl,(0,r.__assign)({},a)):null))},Dl=function(e){var t=e.imageSrcUrl,n=e.operationData,a=(0,r.__rest)(e,["imageSrcUrl","operationData"]),c=ce(),s=(0,d.DP)(),u=(0,i.useState)(!1),m=u[0],p=u[1],g=function(){m||p(!0)},h=function(){m&&p(!1)},f="s"===c?"56":"72",v="s"===c?"20px":"24px",x=function(e,t){var n="s"===t?"56px":"72px";return{root:{alignItems:"center",backgroundColor:e.palette.neutralDark+"70",borderRadius:n,color:e.palette.neutralHigh,display:"flex",height:n,justifyContent:"center",position:"absolute",top:0,verticalAlign:"center",width:n}}}(s,c);return a.href?l().createElement(ht.N,(0,r.__assign)({},a,{styles:{root:{position:"relative"}},onMouseEnter:g,onMouseLeave:h,onFocus:g,onBlur:h}),l().createElement(_l,{size:f,imageUrl:t,operationData:n}),m?l().createElement(o.B,{styles:x,doNotRenderFalsyValues:!0}," ",l().createElement(Yt,{iconName:"Camera",size:v})," "):null):l().createElement(_l,{size:f,imageUrl:t,operationData:n})},Rl=function(e){var t=e.titleText,n=(0,r.__rest)(e,["titleText"]),a=ce(),o=(0,d.DP)();return n.href?l().createElement(ht.N,(0,r.__assign)({},n,{styles:Ll(o,n.disabled)}),l().createElement(wt.E,{styles:Al(o,a),as:Tl},t)):l().createElement(wt.E,(0,r.__assign)({},n,{styles:Al(o,a),as:Tl}),t)},zl=function(e){var t=e.iconName,n=e.infoText,a=(0,r.__rest)(e,["iconName","infoText"]),o=(0,d.DP)(),i=bt(o,"metadataText");return"href"in a&&a.href?l().createElement(ht.N,(0,r.__assign)({},a,{styles:Il(o,a.disabled)}),l().createElement(rt,{padding:"0 6px 0 2px"},l().createElement(Yt,{iconName:t,size:"12px"})),l().createElement(wt.E,{styles:{root:{fontSize:i.fontSize,fontWeight:i.fontWeight,lineHeight:i.lineHeight,fontFamily:i.fontFamily,color:"unset"}}},n)):l().createElement(nt,(0,r.__assign)({},a,{horizontal:!0}),l().createElement(rt,{padding:"0 6px 0 2px"},l().createElement(Yt,{iconName:t,size:"12px"})),l().createElement(wt.E,{styles:{root:{fontSize:i.fontSize,fontWeight:i.fontWeight,lineHeight:i.lineHeight,fontFamily:i.fontFamily,color:i.color}}},n))},Hl=function(e){var t=e.showInfo,n=ce();return(0,i.useEffect)((function(){}),[]),l().createElement(nt,{horizontal:!0,padding:Pl(n)},l().createElement(nt,(0,r.__assign)({},Bl(n)),l().createElement(ll,{height:"s"===n?56:72})),l().createElement(nt,{verticalAlign:"center",childrenGap:8},l().createElement(Qa,{width:135,height:"s"===n?22:36}),t?l().createElement(Qa,{width:185,height:16}):null))},Nl={s:25,m:33,l:33,xl:44,xxl:44,xxxl:44},Vl=function(){var e=ce(),t=e?Nl[e]:Nl.xl;return l().createElement(o.B,{horizontal:!0,styles:wl(),doNotRenderFalsyValues:!0},l().createElement(Qa,{width:200,height:t}))},Ml=function(e){var t=e.horizontal,n=void 0===t||t,r=e.horizontalAlign,a=void 0===r?"space-between":r,i=e.children,s=(0,c.useTwoUIFlights)();le();var m={root:{backgroundColor:(0,d.DP)().semanticColors.bodyBackground}},p=l().createElement(o.B,{horizontal:n,horizontalAlign:a,styles:m,doNotRenderFalsyValues:!0},i);return s.includes(X)?l().createElement(u.k6,null,p):p},Wl=function(e){var t=e.horizontal,n=e.horizontalAlign,a=e.children,o=(0,r.__rest)(e,["horizontal","horizontalAlign","children"]);return s("BaseLayout"),l().createElement(d.Dz,(0,r.__assign)({},o),l().createElement(Ml,{horizontal:t,horizontalAlign:n},a))},Ol=function(e){var t=e.horizontal,n=void 0===t||t,r=e.horizontalAlign,a=void 0===r?"space-between":r,o=e.children,i=(0,c.useTwoUIFlights)();le();var s=l().createElement(nt,{horizontal:n,horizontalAlign:a,backgroundColor:"white"},o);return i.includes(X)?l().createElement(u.k6,null,s):s},Gl=function(e){var t=e.horizontal,n=e.horizontalAlign,a=e.children,o=(0,r.__rest)(e,["horizontal","horizontalAlign","children"]);return s("BaseLayout"),l().createElement(d.Dz,(0,r.__assign)({},o),l().createElement(Ol,{horizontal:t,horizontalAlign:n},a))},Ul=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(Gl,(0,r.__assign)({},t)):l().createElement(Wl,(0,r.__assign)({},t))},jl=function(e){var t=e.children,n=e.disabled,r=e.iconName;return l().createElement(nt,{horizontal:!0,grow:!0,verticalAlign:"center"},t,r?l().createElement(nt,{padding:Po},l().createElement(Yt,{size:"16px",iconName:ke(r),color:"neutralSecondary",disabled:n})):null)},Kl=function(e){var t=e.buttonProps,n=e.disabled,a=e.columnAlign,o=void 0===a?"end":a,i=e.iconName,c=e.operationalData,s=(0,r.__rest)(e,["buttonProps","disabled","columnAlign","iconName","operationalData"]);return l().createElement(jl,{iconName:i,disabled:n},l().createElement(nt,{horizontal:!0,grow:!0,horizontalAlign:"end"===o?"space-between":"start",childrenGap:16,verticalAlign:"center"},l().createElement(nt,null,l().createElement(Co,{operationalData:c},ko(s,n))),l().createElement(nt,{padding:Po},l().createElement(Bn,null,l().createElement(qr,(0,r.__assign)({},t,{disabled:n}))))))},Zl=function(e){var t=e.calloutProps,n=e.operationalData;return l().createElement(nt,{horizontalAlign:"start"},l().createElement(Co,{operationalData:n},l().createElement(Bn,null,t.map((function(e,t){return l().createElement(ea,(0,r.__assign)({},e,{key:t}),e.children)})))))},Xl=function(e){var t=e.children,n=e.onCardReflow,r=(0,i.useRef)(null),a=(0,i.useState)(1),c=a[0],s=a[1];(0,i.useLayoutEffect)((function(){var e=function(){if(r.current){var e=r.current.clientWidth,t=Yl(e);s(t)}};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),(0,i.useLayoutEffect)((function(){null===n||void 0===n||n(c)}),[c]);var d,u=wn(l().Children.toArray(t),c);return l().createElement("div",{style:{display:"flex"},ref:r},l().createElement(o.B,{tokens:{childrenGap:16},styles:(d=c,{root:{minWidth:Wo,maxWidth:"".concat(ql(d),"px")}}),grow:!0,doNotRenderFalsyValues:!0},u.map((function(e,t){return l().createElement(mt,{totalSlots:c,key:t},e.map((function(e,t){return l().createElement(pt,{slots:1,key:t},e)})))}))))},Yl=function(e){return Math.max(Math.floor((e+16)/260),1)},ql=function(e){return 288*e+16*(e-1)},Ql=function(e){return{root:{height:"100%",width:"100%",selectors:{":hover":{backgroundColor:e.palette.neutralMed}}}}},Jl=function(e){return{root:(0,r.__assign)((0,r.__assign)({},Ql(e).root),{padding:"0 16px"})}},$l="0 16px",ec=function(e){return function(){return e<1||e>4?"CardListItem only supports from 1 to 4 items, ".concat(e," is provided"):void 0}},tc=function(e){var t=e.slotCount,n=e.imageSrc,a=e.titleText,o=e.infoText,s=e.textColorOverride,u=(0,r.__rest)(e,["slotCount","imageSrc","titleText","infoText","textColorOverride"]);fe("CardListItem",u);var m,g=(0,c.useTwoUITelemetry)(),h=(0,d.DP)();if((0,i.useEffect)((function(){g.checkUrlAndReportHttp(n)}),[n]),(0,i.useEffect)((function(){p("CardListItem",[ec(t)])}),[t]),1===t)return l().createElement(Bn,{grow:!0},l().createElement(Cr.r,(0,r.__assign)({},u,{styles:Ql(h)}),l().createElement(nt,{width:"100%",horizontalAlign:"start",verticalAlign:"center",childrenGap:32},l().createElement(rt,{align:"center"},l().createElement(Ba,{src:n,alt:a,imageType:"altTextImage",width:168,height:168,imageFit:"center-contain"})),l().createElement(rt,{align:"start"},l().createElement(nt,{padding:$l,textAlignment:"left"},l().createElement(rt,{align:"start"},l().createElement(Qn,{variant:"headerText"},a)),l().createElement(rt,{align:"start"},l().createElement(Qn,{variant:"bodyPrimaryText",colorOverride:s,lines:2},o)))))));if(2===t)m=72;else m=56;return l().createElement(Bn,{grow:!0},l().createElement(Cr.r,(0,r.__assign)({},u,{styles:Jl(h)}),l().createElement(nt,{horizontal:!0,childrenGap:16},l().createElement(nt,null,l().createElement(Ba,{src:n,imageType:"ariaHiddenImage",height:m,width:m})),l().createElement(nt,{verticalAlign:"center",horizontalAlign:"start",textAlignment:"left"},l().createElement(rt,{align:"start"},l().createElement(Qn,{variant:"headerText"},a)),l().createElement(rt,{align:"start"},l().createElement(Qn,{variant:"bodyPrimaryText",colorOverride:s,lines:2},o))))))},nc=n(6589),rc=function(e){var t=e.operationData,n=e.label,a=e.labelPosition,o=e["aria-label"],d=e.onChange,u=e.disabled,m=e.checked,p=e.id,g=(0,r.__rest)(e,["operationData","label","labelPosition","aria-label","onChange","disabled","checked","id"]);s("Checkbox",p),fe("Checkbox",g);var h={ariaLabel:o,boxSide:a||"start",onChange:u?void 0:d,disabled:u,checked:m,id:p,inputProps:(0,r.__assign)((0,r.__assign)({},g),{"data-bi-ctrlstate":!!m})},f=function(e){return n&&"string"!==typeof n?l().createElement(nc.S,(0,r.__assign)({styles:{checkbox:{alignSelf:"flex-start"}}},h,{onRenderLabel:function(){return l().createElement(ur,(0,r.__assign)({},n))}},e)):l().createElement(nc.S,(0,r.__assign)({},h,{label:n},e))},v=(0,i.useRef)(null);if(t){var x=void 0;return x=n?{"aria-label":t.errorProps.targetOrTriggerButton["aria-label"],"data-bi-id":t.errorProps.targetOrTriggerButton["data-bi-id"]}:v,l().createElement(c.TwoUIProgressView,{operationData:t.progressViewOperationData,updatingView:l().createElement(nt,{horizontal:!0,childrenGap:8,verticalAlign:"center"},h.label?f({checked:!m,disabled:!0}):null,l().createElement(ao,null)),finishedView:l().createElement(nt,{horizontal:!0,childrenGap:8,verticalAlign:"center"},f()),updateFailedView:l().createElement(nt,{horizontal:!0,childrenGap:8,verticalAlign:"center"},l().createElement("div",{ref:v},f()),l().createElement(Br,(0,r.__assign)({},t.errorProps,{targetOrTriggerButton:x})))})}return f()},ac=function(e){var t=e.withText,n=void 0===t||t;return l().createElement(o.B,{doNotRenderFalsyValues:!0},l().createElement(Qa,{height:14,width:n?135:14}))},oc=n(66298),ic=function(e){return["selectButton","mediaButton"].includes(e)?{root:{width:"100%"},flexContainer:{display:"flex",flexWrap:"wrap",justifyContent:"space-between"}}:{}},lc="0px 0px 12px 0px",cc="8px",sc=function(e){return e?"bodyTertiaryText":"bodyPrimaryText"},dc=function(e,t,n,r,a,o){var i,l=a?e.palette.neutralLighter:e.palette.neutralHigh;return(i={backgroundColor:o?e.palette.themeLighterAlt:l,padding:t?"12px":"24px",width:"100%",minHeight:t?"auto":n,textAlign:r,borderRadius:cc})[F.up]={span:{color:o?"highlight":"auto"}},i},uc=function(e,t,n,a,o){return{root:{width:t||o?"100%":"calc(50% - ".concat("8px",")"),paddingTop:8},choiceFieldWrapper:(0,r.__assign)({width:"100%",height:"100%",display:"flex"},mc(e,n,a))}},mc=function(e,t,n){var r,o;return n?{}:((r={boxSizing:"content-box",border:"solid",borderWidth:t?"2px":"1px",padding:t?"0px":"1px",borderRadius:cc,borderColor:t?e.palette.themePrimary:e.palette.neutralTertiary})[ne.active]={borderWidth:t?"4px":"1px",color:t?"highlight":e.palette.neutralTertiary,padding:t?"0px":"3px"},r.selectors={":focus-within":{outline:"3px solid",outlineColor:e.palette.neutralPrimary,borderWidth:"2px",padding:"0px",borderRadius:cc},":hover":(o={borderColor:t?void 0:e.palette.neutralPrimary,boxShadow:a.f.depth16,transitionDuration:me},o[ne.active]={color:"highlight",span:{color:"highlight"}},o)," input":{cursor:"pointer"}},r)},pc=function(e,t,n,a,o){var i=e.trim().length>0,c=o?"0px 0px 6px":"0px 0px 14px";return l().createElement(l().Fragment,null,l().createElement(nt,{horizontal:!0},i?l().createElement(nt,{padding:"selectButton"===a?c:lc,grow:1},l().createElement(Fn,{variant:sc(t),weightOverride:"bold"},e)):null,n?l().createElement(nt,{padding:"selectButton"===a?c:lc,horizontalAlign:"end",grow:1},function(e,t){return"richText"===e.lineItemType?l().createElement(nt,null,e.ariaLabelOverride&&l().createElement("p",{style:{width:"1px",height:"1px",overflow:"hidden",margin:"-1px",padding:"0px",border:0,whiteSpace:"nowrap"}},e.ariaLabelOverride),l().createElement(ur,{"aria-hidden":!!e.ariaLabelOverride,textWithTokens:e.textWithTokens,tokensAndValues:e.tokensAndValues})):l().createElement(Fn,{variant:sc(t),weightOverride:e.isBold?"bold":void 0},e.text)}(n,t)):null),o?l().createElement(Fa,(0,r.__assign)({padding:"0px 0px 25px"},o),l().createElement(Fn,{variant:sc(t),weightOverride:"bold"},o.text)):null)},gc=function(e,t){return l().createElement(l().Fragment,null,e?e.map((function(e,n){return"media"===e.lineItemType?l().createElement(Fa,(0,r.__assign)({key:n},e,{disabled:t}),l().createElement(Fn,{variant:sc(t),weightOverride:e.isBold?"bold":void 0},e.text)):l().createElement(Fn,{key:n,variant:sc(t),weightOverride:e.isBold?"bold":void 0},e.text)})):null)},hc=function(e){switch(e){case"left":case"right":return"start";case"top":case"bottom":return"center"}},fc=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}}},vc=function(e,t,n,a,o,i){void 0===n&&(n="auto");var l=["left","right"].includes(a),c=["bottom","right"].includes(a),s=["top","bottom"].includes(a),d=l?"left":"center";return{horizontal:l,reversed:c,verticalAlign:s?"center":"start",horizontalAlign:"right"===a?"space-between":s?"center":void 0,styles:{root:(0,r.__assign)({},dc(e,t,n,d,o,i))}}},xc=function(e,t){return function(){return t&&"left"!==e?"MediaButtonChoiceGroup must have mediaPosition set to `left` when provided a topRightText":void 0}},Ec=function(e){var t=e.text,n=e.lines,a=e.disabled,i=e.height,c=e.mediaPosition,s=e.mediaProp,u=e.selected,m=e.topRightText,g=e.optionType,h=ce(),f=(0,d.DP)(),v=se(h),x=(0,r.__assign)((0,r.__assign)({},s),{shouldFadeIn:"image"!==s.imageType&&void 0});return p("MediaButtonChoiceGroup",[xc(c,m)]),l().createElement(o.B,(0,r.__assign)({},vc(f,v,i,c,a,u),{doNotRenderFalsyValues:!0}),l().createElement(o.B,{styles:fc(c),doNotRenderFalsyValues:!0},l().createElement(Fa,{size:"xl",padding:"0px",image:x,disabled:a})),l().createElement(nt,{width:"100%"},pc(t,a,m,g),l().createElement(nt,{horizontalAlign:hc(c)},gc(n,a))))},yc=function(e,t,n,a,o,i){return void 0===n&&(n="auto"),{root:(0,r.__assign)({},dc(e,t,n,a,o,i))}},bc=function(e){switch(e){case"left":return"start";case"center":return"center";case"right":return"end"}},_c=function(e,t){return function(){return t&&"left"!==e?"SelectButtonChoiceGroup must have textAlignment set to `left` when provided a topRightText":void 0}},wc=function(e){var t=e.text,n=e.lines,r=e.disabled,a=e.height,i=e.textAlignment,c=e.selected,s=e.topRightText,u=e.optionType,m=e.subTextWithMedia,g=ce(),h=(0,d.DP)(),f=se(g);return p("SelectButtonChoiceGroup",[_c(i,s)]),l().createElement(o.B,{styles:yc(h,f,a,i,r,c),doNotRenderFalsyValues:!0},pc(t,r,s,u,m),l().createElement(nt,{horizontalAlign:bc(i)},gc(n,r)))},Cc=function(e){var t=e.label,n=e.onChange,a=e.selectedKey,o=e.textAlignment,u=void 0===o?"left":o,m=e.operationData,p=e.isSingleColumn,g=(0,r.__rest)(e,["label","onChange","selectedKey","textAlignment","operationData","isSingleColumn"]);s("ChoiceGroup",g.id);var h=(0,i.useState)(a||void 0),f=h[0],v=h[1];(0,i.useEffect)((function(){v(a)}),[a]);var x=ce(),E=(0,d.DP)(),y=se(x),b=["selectButton","mediaButton"].includes(g.optionType),_=function(e){var t;return t="selectButton"===g.optionType?g.options.map((function(t){return(0,r.__assign)((0,r.__assign)({},t),{styles:uc(E,y,t.key===f,e||t.disabled,p),onRenderField:function(){return l().createElement(wc,(0,r.__assign)({},t,{height:p?"auto":g.height,textAlignment:u,selected:t.key===f,disabled:e||t.disabled,optionType:g.optionType}))}})})):"mediaButton"===g.optionType?g.options.map((function(t){return(0,r.__assign)((0,r.__assign)({},t),{styles:uc(E,y,t.key===f,e||t.disabled,p),onRenderField:function(){var n;return l().createElement(Ec,(0,r.__assign)({},t,{height:p?"auto":g.height,mediaPosition:null!==(n=g.mediaPosition)&&void 0!==n?n:"left",selected:t.key===f,disabled:e||t.disabled,optionType:g.optionType}))}})})):g.options.slice(),t},w=g.optionType,C=(g.options,g.height,g.mediaPosition,(0,r.__rest)(g,["optionType","options","height","mediaPosition"]));fe("ChoiceGroup",C);var k=(0,r.__assign)({label:t,selectedKey:a,options:_(),onChange:function(e,t){b&&!a&&v(t.key),n&&n(t,e)},styles:ic(w)},C);return m?l().createElement(c.TwoUIProgressView,{operationData:m.progressViewOperationData,updatingView:l().createElement(l().Fragment,null,l().createElement(nt,{horizontal:!0,childrenGap:8},l().createElement(Gt.J,{disabled:!0},t),l().createElement(ao,null)),l().createElement(oc.n,(0,r.__assign)({},k,{label:"",disabled:!0,options:_(!0)}))),updateFailedView:l().createElement(l().Fragment,null,l().createElement(nt,{horizontal:!0,childrenGap:8},l().createElement(Gt.J,null,t),l().createElement(nt,{padding:"8px 0px 0px 0px"},l().createElement(Br,(0,r.__assign)({},m.errorProps)))),l().createElement(oc.n,(0,r.__assign)({},k,{label:""}))),finishedView:l().createElement(oc.n,(0,r.__assign)({},k))}):l().createElement(oc.n,(0,r.__assign)({},k))},kc=function(e){for(var t=e.label,n=e.numberOfShimmers,r=void 0===n?4:n,a=[],o=0;o<r;o++)a.push(l().createElement(Qa,{key:o,width:150,height:14}));return l().createElement(nt,{childrenGap:10},t?l().createElement(yn,null,t):null,a)},Tc=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[F.up]={border:"1px solid WindowText",".choiceSummaryIcon":{"forced-color-adjust":"none",color:"ButtonText"},".choiceSummaryIcon:hover, .choiceSummaryIcon:focus":{background:"Highlight",color:"Window"}},t),maxWidth:"288px",minWidth:"34px"}}},Sc={listStyle:"none",display:"inline-flex"},Pc=(0,r.__assign)((0,r.__assign)({},Sc),{verticalAlign:"top"}),Bc=function(e){var t=e.label,n=e.onClick,a=e.divRef,i=(0,r.__rest)(e,["label","onClick","divRef"]);fe("ChoiceSummaryOption",i);var c=(0,d.DP)(),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[F.up]={background:"GrayText",".choiceSummaryIcon":{background:"GrayText"}},t)}}}(c):Tc(c),u=function(e){return{root:{marginLeft:"4px",color:e.palette.neutralPrimary,selectors:{":hover":{color:e.palette.neutralPrimary},":disabled":{color:e.palette.neutralTertiary}}}}}(c),m=i.disabled?"bodyTertiaryText":"bodyPrimaryText";return l().createElement("li",{style:Sc},l().createElement(o.B,{horizontal:!0,styles:s,doNotRenderFalsyValues:!0},l().createElement("div",{ref:a},l().createElement(kr.K,(0,r.__assign)({className:"choiceSummaryIcon",styles:u,iconProps:{iconName:"Cancel"},onClick:i.disabled?function(){}:n},i))),l().createElement(Fn,{variant:m},t)))},Lc=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return l().createElement("ul",(0,r.__assign)({"aria-live":"polite"},n),t)},Ac=function(e){var t=e.errorMessage,n=e.optionProps,a=(0,i.useRef)(null);return l().createElement(l().Fragment,null,l().createElement(Bc,(0,r.__assign)({divRef:a},n)),l().createElement(Br,{targetOrTriggerButton:a,errorMessageAriaLabel:t,errorMessage:t}))},Ic=function(e){var t=e.options,n=(0,r.__rest)(e,["options"]);s("ChoiceSummary",n.id);var a=(0,d.DP)();if(n.operationData){var i=n.operationData,u=function(e,t){return l().createElement("li",{style:Pc,key:t},l().createElement(o.B,{horizontal:!0,styles:Tc(a),doNotRenderFalsyValues:!0},l().createElement(Wt.y,{size:Ot.H.xSmall,style:{padding:"10px",marginLeft:"4px"}}),l().createElement(Fn,null,e)))},m=t.map((function(e,t){var a,o=n.disabled||e.disabled,s="".concat(i.progressViewOperationData.operationName,".").concat(e.id);return l().createElement(c.TwoUIProgressView,{key:e.id,operationData:(0,r.__assign)((0,r.__assign)({},i.progressViewOperationData),{operationName:s}),updatingView:u(e.label,t),finishedView:l().createElement(Bc,(0,r.__assign)({},e,{disabled:o})),updateFailedView:l().createElement(Ac,{errorMessage:null===(a=n.operationData)||void 0===a?void 0:a.errorMessage,optionProps:e})})}));return l().createElement(Lc,null,m)}var p=t.map((function(e,t){var a=n.disabled||e.disabled;return l().createElement(Bc,(0,r.__assign)({key:t},e,{disabled:a}))}));return l().createElement(Lc,(0,r.__assign)({},n),p)},Fc=function(e){var t=e.shimmerSize;return l().createElement(nt,{horizontal:!0,verticalAlign:"center"},l().createElement(nt,{width:t,margin:"0 10px 0 0"},l().createElement(ll,{height:t})))},Dc=function(e){var t=e.children;return l().createElement(nt,null,t)},Rc=n(9970),zc=n(84218),Hc=n(90973),Nc=(0,i.forwardRef)((function(e,t){var n=e.as,a=void 0===n?"div":n,o=e.direction,c=void 0===o?"bidirectional":o,d=e.handleTabKey,u=e.shouldEnterInnerZone,m=e.children,p=(0,r.__rest)(e,["as","direction","handleTabKey","shouldEnterInnerZone","children"]);s("FocusZone",p.id);var g=(0,i.useRef)(null);return(0,i.useImperativeHandle)(t,(function(){return{focus:function(){var e;null===(e=g.current)||void 0===e||e.focus()}}})),fe("FocusZone",p),l().createElement(zc.R,(0,r.__assign)({as:a,direction:Hc.E[c],handleTabKey:d?Hc.l[d]:void 0,isInnerZoneKeystroke:u},p,{componentRef:g}),m)})),Vc=function(e,t){return function(){return e&&t?"Forbidden passing listItemRole when removeRole prop is true":void 0}},Mc=function(e,t,n,a,o,i,l,c){var s,d,u,m,p,g,h=t||"neutralHigh",f="themeLighterAlt"===h?e.palette.themeLighter:e.palette.neutralLighterAlt,v=o?{cursor:"pointer",":hover":(s={background:f},s[F.up]={background:"highlight"},s),":active":(d={background:e.palette.neutralLight},d[F.up]={background:"highlight"},d)}:void 0,x=l?{backgroundColor:e.palette.themeLighterAlt,border:"1px solid ".concat(e.palette.themeSecondary),":hover":(u={backgroundColor:e.palette.themeLighterAlt,borderColor:e.palette.themeDark},u[F.up]={backgroundColor:"highlight"},u),":active":(m={backgroundColor:e.palette.themeLighter,borderColor:e.palette.themeDark},m[F.up]={backgroundColor:"highlight"},m)}:void 0,E=((p={})[F.up]={border:"1px solid WindowText"},p[":focus"]={outlineOffset:"-2px"},p),y={":hover":(g={background:f,outline:"1px solid ".concat(f)},g[F.up]={background:"highlight"},g),":active":{backgroundColor:e.palette.neutralLight,outline:"1px solid ".concat(e.palette.neutralLight)},":hover:active":{backgroundColor:e.palette.neutralLight,outline:"1px solid ".concat(e.palette.neutralLight)}};return{root:(0,r.__assign)((0,r.__assign)((0,r.__assign)((0,r.__assign)({backgroundColor:Zt(e,h),padding:n,borderBottom:i?"1px solid ".concat(e.palette.white):void 0,minHeight:a},v),x),E),"DetailsList"===c&&y)}},Wc=function(e){var t=e.backgroundColor,n=e.padding,a=e.children,s=e.groupSpacerNestingDepth,u=e.onClickProps,m=e.onEnter,g=e.onLeave,h=e.showDivider,f=void 0===h||h,v=e.disabled,x=e.selected,E=e["data-is-focusable"],y=void 0===E||E,b=e.listItemRole,_=e.horizontalStack,w=void 0===_||_,C=e.listType,k=(0,r.__rest)(e,["backgroundColor","padding","children","groupSpacerNestingDepth","onClickProps","onEnter","onLeave","showDivider","disabled","selected","data-is-focusable","listItemRole","horizontalStack","listType"]),T=(0,c.useTwoUITelemetry)();fe("ListItemCanvas",k);var S,P=(0,d.DP)();(0,i.useEffect)((function(){p("ListItemCanvas",[Vc(k.removeRole,b)])})),u&&!v&&(S=(0,r.__assign)((0,r.__assign)({},u),{onClick:function(e){T.reportClick({clickId:u["data-bi-id"],pageArea:u.pageArea}),u.onClick(e)}}));return l().createElement(o.B,(0,r.__assign)({"data-is-focusable":y,tabIndex:y?0:-1,grow:!0,verticalAlign:"center",styles:Mc(P,t,n,"48px",!!u&&!v,f,x,C),role:k.removeRole?void 0:b||"listitem"},k,S,{"aria-label":k["aria-label"],onMouseEnter:m,onTouchStart:m,onFocus:m,onMouseLeave:g,onTouchCancel:g,onBlur:g,doNotRenderFalsyValues:!0}),l().createElement(Nc,{direction:"horizontal"},l().createElement(o.B,{verticalAlign:"center",horizontal:w,grow:!0,doNotRenderFalsyValues:!0},void 0!==s&&0!==s?l().createElement(rt,null,l().createElement(Rc.A,{count:s})):null,S?l().createElement(Bn,null,l().createElement(Zr.Y,(0,r.__assign)({text:S["aria-label"]},S,{id:S.id?"".concat(S.id,"-hidden"):void 0,styles:ge}))):null,l().createElement(rt,{grow:!0},a))))},Oc=function(e){return l().createElement(Gc,(0,r.__assign)({},e))},Gc=function(e){var t=e.image,n=e.imageSize,a=void 0===n?"md":n,o=e.children,i=e.groupSpacerNestingDepth,c=e.onClickProps,s=e.backgroundColor,d=e.actions,u=e.disabled,m=void 0!==u&&u,g=e.showDivider,h=void 0!==g&&g,f=(0,r.__rest)(e,["image","imageSize","children","groupSpacerNestingDepth","onClickProps","backgroundColor","actions","disabled","showDivider"]);fe("BaseFeedListItemInternal",f);var v,x,E,y,b=ce(),_=l().createElement(l().Fragment,null);switch(d&&(p("BaseFeedListItemInternal",[(v=d.length,function(){return v>3?"BaseFeedListItem supports up to ".concat(3," action slots"):void 0})]),_=["xl","xxl","xxxl"].includes(b)?l().createElement(nt,{verticalAlign:"center",type:"slots",totalSlots:d.length},d.map((function(e,t){return l().createElement(rt,{key:e.key||t,slots:1},m?l().cloneElement(e,{disabled:m}):e)}))):l().createElement(nt,{verticalAlign:"center",horizontal:!0,horizontalAlign:["s","m"].includes(b)?"end":"start"},d.map((function(e,t){return l().createElement(rt,{key:e.key||t},m?l().cloneElement(e,{disabled:m}):e)})))),b){case"s":y=(x=4)-(E=(null===d||void 0===d?void 0:d.length)?1:0);break;case"m":case"l":y=(x=6)-(E=(null===d||void 0===d?void 0:d.length)?2:0);break;case"xl":y=(x=12)-(E=d?2*d.length:0);break;case"xxl":case"xxxl":y=(x=12)-(E=d?2*d.length:0)-1}return l().createElement(Wc,{groupSpacerNestingDepth:i,onClickProps:c,backgroundColor:s,showDivider:h},l().createElement(mt,(0,r.__assign)({totalSlots:x,verticalAlign:"center"},f),l().createElement(pt,{slots:y},l().createElement(Fa,{disabled:m,size:a,image:t,padding:"2px 0 2px 16px"},o)),E?l().createElement(pt,{slots:E},_):null))},Uc=function(e){var t=e.image,n=e.text,a=e.firstDetail,o=e.secondDetail,c=e.detailsIconButtonProps,s=e.actionProps,d=e.disabled,u=void 0!==d&&d,m=(0,r.__rest)(e,["image","text","firstDetail","secondDetail","detailsIconButtonProps","actionProps","disabled"]);fe("DetailsFeedListItem",m),(0,i.useEffect)((function(){}),[]);var p,g=ce(),h=l().createElement(ea,(0,r.__assign)({},c,{calloutPosition:"left-top"}));return p=["s","m"].includes(g)?[h,l().createElement(Qr,(0,r.__assign)({key:"iconAction",disabled:u},s))]:"l"===g?[h,l().createElement(Ir,(0,r.__assign)({key:"buttonAction",disabled:u},s))]:[l().createElement(Fn,{key:"first",disabled:u},a),l().createElement(Fn,{key:"second",disabled:u},o),l().createElement(Ir,(0,r.__assign)({key:"buttonAction",disabled:u},s))],l().createElement(Oc,(0,r.__assign)({image:t,actions:p,disabled:u},m),l().createElement(Fn,{disabled:u},n))},jc=function(e){var t,n,r,a,o,i=e.backgroundColor,c=void 0===i?"neutralMed":i,s=ce();switch(s){case"s":r=(t=4)-(n=1),a=20,o=131;break;case"m":case"l":r=(t=6)-(n=2),a=20,o=166;break;case"xl":r=(t=12)-(n=6),a=20,o=277;break;case"xxl":case"xxxl":r=(t=12)-(n=6)-1,a=20,o=277}return l().createElement(Wc,{backgroundColor:c},l().createElement(mt,{totalSlots:t},l().createElement(pt,{slots:r},"s"===s?l().createElement(nt,{horizontal:!0,height:49,verticalAlign:"center"},l().createElement(rt,{padding:"0 0 0 11px",key:"1"},l().createElement(Qa,{height:16,width:16})),l().createElement(rt,{padding:"0 0 0 9px",key:"2"},l().createElement(Qa,{height:a,width:o}))):l().createElement(nt,{horizontal:!0,height:49,verticalAlign:"center"},l().createElement(rt,{padding:"0 0 0 16px",key:"1"},l().createElement(Qa,{height:16,width:16})),l().createElement(rt,{padding:"0 0 0 10px",key:"2"},l().createElement(Qa,{height:32,width:32})),l().createElement(rt,{padding:"0 0 0 9px",key:"3"},l().createElement(Qa,{height:a,width:o})))),["l","m","s"].includes(s)?l().createElement(pt,{slots:n},l().createElement(nt,{horizontal:!0,height:49,verticalAlign:"center"},l().createElement(rt,null,l().createElement(Qa,{height:16,width:"s"===s?63:145})))):l().createElement(pt,{slots:n},l().createElement(nt,{type:"slots",totalSlots:3,verticalAlign:"center",height:"100%"},l().createElement(rt,{slots:1,key:"1"},l().createElement(Qa,{height:16,width:100})),l().createElement(rt,{slots:1,key:"2"},l().createElement(Qa,{height:16,width:100})),l().createElement(rt,{slots:1,key:"3"},l().createElement(Qa,{height:16,width:100}))))))},Kc=n(75708),Zc=n(27798),Xc=n(33460),Yc=n(52e3),qc=n(26700),Qc=n(91274),Jc=n(21424),$c=n(42523),es=function(e){var t=e.operationalData;return l().createElement(nt,{horizontalAlign:"start"},l().createElement(Co,{operationalData:t}))},ts=function(e){var t=e.iconName,n=e.disabled,a=e.operationalData,o=e.columnAlign,i=void 0===o?"start":o,c=(0,r.__rest)(e,["iconName","disabled","operationalData","columnAlign"]);return l().createElement(jl,{iconName:t,disabled:n},l().createElement(nt,{horizontalAlign:"end"===i?"end":"start",margin:"end"===i?"0px 8px":void 0,grow:!0},l().createElement(Co,{operationalData:a},ko(c,n))))},ns=function(e){var t=e.toggleProps,n=e.disabled,a=e.columnAlign,o=void 0===a?"end":a,i=e.iconName,c=e.operationalData,s=(0,r.__rest)(e,["toggleProps","disabled","columnAlign","iconName","operationalData"]);return l().createElement(jl,{iconName:i,disabled:n},l().createElement(nt,{horizontal:!0,grow:!0,horizontalAlign:"end"===o?"space-between":"start",childrenGap:16,verticalAlign:"center"},l().createElement(nt,null,l().createElement(Co,{operationalData:c},ko(s,n))),l().createElement(nt,{padding:Po},l().createElement(Bn,null,l().createElement(uo,(0,r.__assign)({},t,{labelPosition:"inline",disabled:n}))))))},rs=function(e){var t=e.label,n=e.links,a=e.disabled;return l().createElement(nt,{verticalAlign:"center",wrap:!0,horizontal:!0,padding:"1px 0 1px 0"},t?l().createElement(nt,{horizontal:!0,verticalAlign:"center",padding:"0 16px 0 0"},l().createElement(Fn,{variant:"bodySecondaryText",disabled:a},t)):null,l().createElement(nt,{verticalAlign:"center",horizontal:!0,wrap:!0},n.map((function(e,t){return l().createElement(rt,{padding:"0 16px 0 0",key:t},"href"in e?l().createElement(nr,(0,r.__assign)({},e,{disabled:null!==a&&void 0!==a?a:e.disabled})):l().createElement(ir,(0,r.__assign)({},e,{disabled:null!==a&&void 0!==a?a:e.disabled})))}))))},as=function(e){var t=e.hyperlinks,n=e.disabled,a=e.operationalData;return l().createElement(nt,{horizontal:!0,childrenGap:"16",wrap:!0},l().createElement(Co,{operationalData:a},t.map((function(e,t){return l().createElement(nr,(0,r.__assign)({},e,{disabled:null!==n&&void 0!==n?n:e.disabled,key:t}))}))))},os=function(e){var t=e.icons,n=e.disabled,a=e.operationalData;return l().createElement(nt,{horizontal:!0,childrenGap:"16",wrap:!0},l().createElement(Co,{operationalData:a},t.map((function(e,t){return l().createElement(Yt,(0,r.__assign)({},e,{disabled:null!==n&&void 0!==n?n:e.disabled,key:t}))}))))},is=function(){return l().createElement(mt,{totalSlots:12},l().createElement(pt,{slots:1},l().createElement(l().Fragment,null)),l().createElement(pt,{slots:8},l().createElement(Qa,{height:12})),l().createElement(pt,{slots:2},l().createElement(Qa,{height:12})),l().createElement(pt,{slots:1},l().createElement(l().Fragment,null)))},ls="RevealPasswordMedium",cs=function(e,t,n){return l().createElement(wt.E,{key:"".concat(t,"-").concat(n),style:{color:e}},t)},ss=function(e){var t=e.contentType,n=function(e,t,n){var r=[];"password"===n&&Array.from(e).forEach((function(e,n){bn(e)?r.push(cs(t.semanticColors.errorBlockIcon,e,n)):function(e){return 1===e.length&&/[a-zA-Z]/.test(e)}(e)?r.push(cs(t.palette.neutralPrimary,e,n)):r.push(cs(t.semanticColors.messageLink,e,n))}));return r}(e.value,(0,d.DP)(),t);return l().createElement(o.B,{horizontal:!0,styles:{root:{display:"flex",flexWrap:"wrap"}},doNotRenderFalsyValues:!0},n)},ds=function(){var e=(0,r.__spreadArray)([],Array(25),!0).map((function(e,t){return l().createElement(Yt,{key:t,iconName:"CircleFillBadge12",size:"6px",color:"neutralSecondary"})}));return l().createElement(o.B,{horizontal:!0,styles:{root:{display:"flex",flexWrap:"wrap",overflow:"hidden",height:"6px"}},doNotRenderFalsyValues:!0},e)},us=function(e){var t=e.contentType,n=e.shown,r=e.value;return n&&r?l().createElement(ss,{value:r,contentType:t}):l().createElement(ds,null)},ms=function(e){var t=e.contentType,n=e.onHideButtonClick,r=e.onShowButtonClick,a=e.operationalData,c=e.showIconButton,d=e.hideIconButton,u=e.value,m=e.iconButtonRef;s("SensitiveContent");var p=(0,i.useState)(!0),g=p[0],h=p[1],f=(0,i.useState)({iconName:ls,tooltip:c.tooltip,"aria-label":c["aria-label"],"data-bi-id":c["data-bi-id"],disabled:c.disabled}),v=f[0],x=f[1],E=function(){g?(h(!1),y(!0),r&&r()):(h(!0),y(!1),n&&n())},y=function(e){x({iconName:e?"Hide":ls,tooltip:e?d.tooltip:c.tooltip,"aria-label":e?d["aria-label"]:c["aria-label"],"data-bi-id":e?d["data-bi-id"]:c["data-bi-id"],disabled:e?d.disabled:c.disabled})},b={display:"flex",justifyContent:"space-between",maxWidth:"calc(".concat(120,"px + ").concat(48,"px)")},_=l().createElement(o.B,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"8px"},styles:{root:b},doNotRenderFalsyValues:!0},l().createElement(us,{shown:!1,value:u,contentType:t}),l().createElement(o.B,{styles:{root:{height:"32px",padding:"0px 16px 0px 8px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(ro,{"aria-label":null===a||void 0===a?void 0:a.spinnerAriaLabel,spinnerSize:Ot.H.small}))),w=l().createElement(o.B,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"8px"},styles:{root:b},doNotRenderFalsyValues:!0},l().createElement(us,{shown:!g,value:u,contentType:t}),l().createElement(o.B,{styles:{root:{height:"32px",marginRight:"8px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Bn,null,l().createElement(Qr,{iconButtonRef:m,iconName:v.iconName,iconColor:"neutralSecondary",disabled:v.disabled,onClick:E,"aria-label":v["aria-label"],"data-bi-id":v["data-bi-id"],tooltipHostProps:{tooltipText:v.tooltip}})))),C=l().createElement(o.B,{horizontal:!0,verticalAlign:"center",tokens:{childrenGap:"8px"},styles:{root:b},doNotRenderFalsyValues:!0},l().createElement(us,{shown:!1,value:void 0,contentType:t}),l().createElement(o.B,{styles:{root:{height:"32px",marginRight:"8px"}},verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Bn,null,l().createElement(Qr,{iconName:ls,iconColor:"neutralSecondary",disabled:c.disabled,onClick:E,"aria-label":c["aria-label"],"data-bi-id":c["data-bi-id"],tooltipHostProps:{tooltipText:c.tooltip}}))));return a?l().createElement(M,{operationData:a.operationData,inertView:w,firstLoadView:l().createElement(is,null),failedView:C,updatingView:_,updateFailedView:w,finishedView:w}):w},ps=function(e){var t=e.sensitiveContentProps;return l().createElement(ms,(0,r.__assign)({},t))},gs=function(e){var t=e.shimmerLineProps,n=e.horizontal,r=n?"":"0 0 4px 0";return l().createElement(nt,{childrenGap:"0 10px",verticalAlign:"center",horizontal:n},t.map((function(e,n){return l().createElement(nt,{margin:n===t.length-1?"":r,key:n},l().createElement(Qa,{height:12,width:e.width?e.width:120,shimmerColors:e.shimmerColors}))})))},hs=function(e){var t=e.mediaShimmerSize,n=e.shimmerLineProps;return l().createElement(nt,{horizontal:!0,childrenGap:"0 10px",verticalAlign:"center"},l().createElement(Qa,{height:t,width:t}),l().createElement(nt,{horizontal:!1},n.map((function(e,t){return l().createElement(nt,{margin:t===n.length-1?"":"0 0 4px 0",key:t},l().createElement(Qa,{height:12,width:e.width?e.width:120,shimmerColors:e.shimmerColors}))}))))},fs=function(e){var t=e.personaShimmerSize,n=e.shimmerLineProps;return l().createElement(nt,{horizontal:!0,verticalAlign:"center"},l().createElement(nt,{width:t,margin:"0 10px 0 0"},l().createElement(ll,{height:t})),l().createElement(nt,{horizontal:!1},n.map((function(e,t){return l().createElement(nt,{margin:t===n.length-1?"":"0 0 4px 0"},l().createElement(Qa,{height:12,width:e.width?e.width:120,shimmerColors:e.shimmerColors}))}))))},vs=function(e){var t=e.textElements,n=void 0===t?[]:t,a=e.disabled,o=void 0!==a&&a,i=e.indentPadding,c=void 0===i?"0px":i,s=e.operationalData,d=e.truncatedTextProps,u=e.ctaButtonProps,m=n.map((function(e,t){return d?l().createElement(Qn,(0,r.__assign)({lines:d.lines,stopPropagation:!1},e,{disabled:o,key:t})):l().createElement(Fn,(0,r.__assign)({},e,{disabled:o,key:t}))}));return l().createElement(nt,{horizontalAlign:"start",padding:"0px"!==c?"0px 0px 0px ".concat(c," "):void 0},l().createElement(Co,{operationalData:s},u?l().createElement(nt,{horizontal:!0,verticalAlign:"center",childrenGap:"8px"},m,u&&l().createElement(Ir,(0,r.__assign)({},u,{parentComponentName:"TextColumn"}))):m))},xs=function(e){var t=e.titleHyperlinkProps,n=e.subtitles,a=void 0===n?[]:n,o=e.disabled,i=e.truncatedSubtitleTextProps;return l().createElement(nt,null,l().createElement(nr,(0,r.__assign)({},t)),a.map((function(e,t){return i?l().createElement(Qn,(0,r.__assign)({lines:i.lines,stopPropagation:!1},e,{disabled:o,key:t})):l().createElement(Fn,(0,r.__assign)({},e,{disabled:o,key:t}))})))},Es=function(e){var t=e.children,n=e.indicatorColor,a=e.image,o=e.disabled,i=void 0!==o&&o,c=e.padding,s=e.height,d=(0,r.__rest)(e,["children","indicatorColor","image","disabled","padding","height"]),u=a?l().createElement(Fa,(0,r.__assign)({},d,{padding:c||"0px",height:s||"auto",image:a}),l().createElement(nt,{padding:"0px 0px 0px 12px"},i?l().Children.map(t,(function(e,t){return l().isValidElement(e)?l().cloneElement(e,{disabled:i,key:e.key||t}):e})):t)):l().createElement(nt,null,t);return n?l().createElement(nt,{horizontal:!0,verticalAlign:"center",childrenGap:16},l().createElement(rt,null,l().createElement("div",{role:"presentation",style:{backgroundColor:n,borderRadius:2,width:12,height:12}})),u):u},ys=function(e){var t=e.listItemMediaProps,n=e.title,a=e.titleTextVariant,o=e.isTitleSemiBold,i=void 0!==o&&o,c=e.subtitles,s=void 0===c?[]:c,d=e.disabled,u=e.truncatedTitleTextProps,m=e.truncatedSubtitleTextProps,p=e.ctaButtonProps,g=u?l().createElement(Qn,{lines:u.lines,stopPropagation:u.stopPropagation,children:n,variant:a,weightOverride:i?"semi-bold":void 0,disabled:d}):l().createElement(Fn,{variant:a,weightOverride:i?"semi-bold":void 0,children:n,disabled:d}),h=s.map((function(e,t){return m?l().createElement(Qn,(0,r.__assign)({lines:m.lines,stopPropagation:m.stopPropagation},e,{disabled:d,key:t})):l().createElement(Fn,(0,r.__assign)({},e,{disabled:d,key:t}))}));return l().createElement(Es,(0,r.__assign)({},t),p?l().createElement(nt,{horizontal:!0,verticalAlign:"center",childrenGap:"8px"},g,h,p&&l().createElement(Ir,(0,r.__assign)({},p,{parentComponentName:"MediaTitleColumn"}))):l().createElement(l().Fragment,null,g,h))},bs=function(e){var t=e.personaProps,n=e.title,a=e.subtitles,o=void 0===a?[]:a,i=e.disabled,c=e.truncatedTitleTextProps,s=e.truncatedSubtitleTextProps;return l().createElement(nt,{verticalAlign:"center",horizontal:!0,padding:"4px 0 4px 0",childrenGap:10},l().createElement(nt,{height:t.size,width:t.size}," ",l().createElement(_l,(0,r.__assign)({},t,{text:n,hideText:!0}))," "),l().createElement(nt,null,c?l().createElement(Qn,{lines:c.lines,stopPropagation:c.stopPropagation,children:n,disabled:i}):l().createElement(Fn,{children:n,disabled:i}),o.map((function(e,t){return s?l().createElement(Qn,(0,r.__assign)({lines:s.lines,stopPropagation:s.stopPropagation},e,{disabled:i,key:t})):l().createElement(Fn,(0,r.__assign)({},e,{disabled:i,key:t}))}))))},_s=function(e){var t=e.title,n=e.isTitleSemiBold,a=void 0!==n&&n,o=e.subtitles,i=void 0===o?[]:o,c=e.disabled,s=e.truncatedTitleTextProps,d=e.truncatedSubtitleTextProps;return l().createElement(nt,null,s?l().createElement(Qn,{lines:s.lines,stopPropagation:s.stopPropagation,children:t,weightOverride:a?"semi-bold":void 0,disabled:c}):l().createElement(Fn,{children:t,weightOverride:a?"semi-bold":void 0,disabled:c}),i.map((function(e,t){return d?l().createElement(Qn,(0,r.__assign)({lines:d.lines,stopPropagation:d.stopPropagation},e,{disabled:c,key:t})):l().createElement(Fn,(0,r.__assign)({},e,{disabled:c,key:t}))})))},ws=function(e){var t=e.personaGraphic,n=e.children;return l().createElement(nt,{horizontal:!0,padding:"12px 0"},t,l().createElement(nt,{horizontal:!1},n))},Cs=[ea,Yt,In,Fn,nr,Br],ks=(0,r.__spreadArray)([ws,Es,_l,In,Fn],Cs,!0),Ts=[Ir,qr,ea,Qr,ir,nr,uo],Ss=[So,Bo,Kl,Zl,Fc,Dc,Xc.v,Zc.e,es,rs,as,xs,os,gs,hs,ys,ps,fs,bs,vs,ts,_s,ns],Ps=[So,Bo,Kl,Zl,Dc,as,xs,ps,ns],Bs="ListItem",Ls=function(e,t){return O(e,t,Bs)},As=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}},Is=function(e,t,n){p("".concat(e,"ListItemInternal"),[As(t,n)])};function Fs(e){return W(e,Ss,Bs)}var Ds=function(e){var t,n=e.find((function(e){return e.type===Es||e.type===_l})),a=e.filter((function(e){return e!==n}));if(n)if(n.type===_l){var o=Rs((0,r.__spreadArray)([l().createElement(Fn,null,n.props.text)],a,!0));t=l().createElement(ws,{personaGraphic:l().cloneElement(n,(0,r.__assign)((0,r.__assign)({},n.props),{text:void 0}))},o)}else{o=Rs((0,r.__spreadArray)([n.props.children],a,!0));t=l().cloneElement(n,void 0,o)}return t?[t]:e},Rs=function(e){return e.map((function(e,t){return e&&null===e.key?l().cloneElement(e,{key:t}):e}))},zs={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]},Hs=function(e,t,n){return function(){return e!==t?"ListItem needs to have ".concat(t," columns for variant ").concat(n,"."):void 0}},Ns=function(e){var t=e.columns,n=void 0===t?[]:t,a=e.disabled,c=void 0!==a&&a,s=(e.menuDisabled,e.verticalAlign),d=void 0===s?"center":s,u=e.variant,m=e.cellRole,g=e.customListItemPadding,h=(0,r.__rest)(e,["columns","disabled","menuDisabled","verticalAlign","variant","cellRole","customListItemPadding"]);fe("ListItem",h);var f=zs[u];(0,i.useEffect)((function(){p("ListItem",[Hs(n.length,f.length,u)])}),[n,f,u]),(0,i.useEffect)((function(){n.forEach((function(e){return Ls(e,Ss)}))}),[n]);var v=l().createElement(mt,{totalSlots:12,verticalAlign:d},n.map((function(e,t){return l().createElement(pt,{slots:f[t],key:e.key||t},m?l().createElement(o.B,{role:m,doNotRenderFalsyValues:!0},l().cloneElement(e,{disabled:c||e.props.disabled,key:e.key||t})):l().cloneElement(e,{disabled:c||e.props.disabled,key:e.key||t}))})));return l().createElement(Wc,(0,r.__assign)({},h,{showDivider:h.showDivider,padding:null!==g&&void 0!==g?g:wo,disabled:c}),v)},Vs=function(e){var t=e.leftColumn,n=e.rightColumn,a=e.disabled,o=void 0!==a&&a,c=(e.menuDisabled,e.cellRole),s=e.customListItemPadding,d=(0,r.__rest)(e,["leftColumn","rightColumn","disabled","menuDisabled","cellRole","customListItemPadding"]);fe("MobileListItem",d),(0,i.useEffect)((function(){Ls(t,Ss)}),[t]),(0,i.useEffect)((function(){Ls(n,Ss)}),[n]);var u=function(e){return c?l().createElement("div",{role:c},l().cloneElement(e,{disabled:o})):l().cloneElement(e,{disabled:o})},m=l().createElement(nt,{verticalAlign:"center",horizontalAlign:"space-between",horizontal:!0,childrenGap:16},l().createElement(nt,{verticalAlign:"center",grow:!0},u(t)),l().createElement(nt,{verticalAlign:"center",grow:!0},u(n)));return l().createElement(Wc,(0,r.__assign)({padding:null!==s&&void 0!==s?s:wo},d),m)},Ms=n(48856),Ws=function(e){var t=e.defaultExpanded,n=e.onClickToOpen,a=e.onClickToClose,o=(0,r.__rest)(e,["defaultExpanded","onClickToOpen","onClickToClose"]);s("Drawer",o.buttonId);var c=(0,i.useState)(t),d=c[0],u=c[1],m=function(){u(!d)};return l().createElement(Eo,(0,r.__assign)({drawerOpen:d,onClickToOpen:function(e){null===n||void 0===n||n(e),m()},onClickToClose:function(e){null===a||void 0===a||a(e),m()}},o))},Os={display:"inline-block",marginRight:"8px"},Gs=function(e){var t=e.charactersInPill,n="".concat(40+6*t,"px");return l().createElement("span",{style:Os},l().createElement(Qa,{width:n,height:12}))},Us=function(e,t,n){return"image"===(null===t||void 0===t?void 0:t.contentType)?{imageProps:{src:t.imgSrc,imageFit:ca.N_.contain,maximizeFrame:!0},styles:{root:{margin:"0px 8px 0px 0px"}}}:{iconName:null===t||void 0===t?void 0:t.iconName,styles:{root:{color:Ks(e,n),margin:"0px 8px 0px 0px"}}}},js=function(e){return"high"===e?"errorBlockIcon":"bodyPrimaryText"},Ks=function(e,t){switch(t){case"high":return e.semanticColors.errorBlockIcon;case"medium":case"low":return e.palette.neutralPrimary;default:return e.palette.neutralSecondary}},Zs=function(e){var t=e.text,n=e.disabled,a=e.onClick,o=e.operationData,u=e.pillMedia,m=e.severity,p=(0,r.__rest)(e,["text","disabled","onClick","operationData","pillMedia","severity"]);s("Pill",p.id),fe("Pill",p);var g=(0,d.DP)(),h=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:pe.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)}}}(g,m),f=l().createElement(Zr.Y,(0,r.__assign)({disabled:n,onClick:a,styles:h,iconProps:Us(g,u,m)},p),l().createElement(Fn,{block:!0,nowrap:!0,variant:js(m),disabled:n},t)),v=(0,i.useRef)(null);if(o){var x=l().createElement("span",{ref:v,style:{paddingBottom:"11px"}},f,l().createElement(Br,{targetOrTriggerButton:v,errorMessageAriaLabel:"Error message aria label",errorMessage:o.errorMessage,calloutPosition:"top-auto"}));return l().createElement(c.TwoUIProgressView,{operationData:o.progressViewOperationData,updatingView:l().createElement(Gs,{charactersInPill:t.length}),finishedView:f,failedView:x})}return f},Xs=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("_")}},Ys=function(e){return e.visible.length?Xs(e.visible.slice(0,-1),e):void 0},qs=function(e){return e.remaining?Xs(e.pills.slice(0,e.visible.length+1),e):void 0},Qs=(0,i.forwardRef)((function(e,t){var n=e.children,a=(0,r.__rest)(e,["children"]),o=(0,i.useState)(0),c=o[0],s=o[1];(0,i.useImperativeHandle)(t,(function(){return{setRemaining:s}}));var d=l().Children.toArray(n);return d=d.slice(d.length-c),l().createElement(Js,(0,r.__assign)({children:d},a))})),Js=function(e){var t=e.children,n=e.severity,a=e.lines,o=void 0===a?2:a,c=e.showMoreBtnBiId,d=e.showMoreAriaLabelFormatter,u=(0,r.__rest)(e,["children","severity","lines","showMoreBtnBiId","showMoreAriaLabelFormatter"]);s("PillContainer");var m=(0,i.useRef)(null),p=(0,i.useState)(!1),g=p[0],h=p[1],f=(0,i.useCallback)((function(){return h(!0)}),[]),v=(0,i.useCallback)((function(){return h(!1)}),[]),x=(0,i.useCallback)((function(e){var t;return null===(t=m.current)||void 0===t?void 0:t.setRemaining(e.remaining)}),[]),E=l().Children.toArray(t),y=l().createElement(l().Fragment,null,l().createElement(ia.A,{data:Xs(E,null),onRenderData:function(e){return l().createElement("div",{style:{display:"flex"}},e.visible,o<=1&&e.remaining?l().createElement(Zs,{"aria-label":d(e.remaining),"data-bi-id":c,text:"+".concat(e.remaining),onClick:u.useCustomExpand?u.onShowMore:f,severity:n}):null)},onReduceData:Ys,onGrowData:qs,dataDidRender:x}),o>1?l().createElement(Qs,(0,r.__assign)({ref:m,lines:o-1,children:E,showMoreBtnBiId:c,showMoreAriaLabelFormatter:d,severity:n},u)):null);return E.length?(u.useCustomExpand||(y=l().createElement(l().Fragment,null,l().createElement("div",{style:g?{visibility:"hidden",position:"absolute",width:"100%"}:void 0},y),g?l().createElement(l().Fragment,null,l().createElement("div",{style:{display:"flex",flexFlow:"wrap"}},t),l().createElement(ir,{"aria-label":u.showLessAriaLabel,"data-bi-id":u.showLessBiId,onClick:v},u.showLessText)):null)),y):null},$s=function(e){var t=e.pills,n=e.groupSpacerNestingDepth,a=e.backgroundColor,o=e.onClickProps,i=e.pillContainerProps,c=(0,r.__rest)(e,["pills","groupSpacerNestingDepth","backgroundColor","onClickProps","pillContainerProps"]);return s("PillContainerListItem",c.id),fe("PillContainerListItem",c),l().createElement(Wc,(0,r.__assign)({groupSpacerNestingDepth:n,backgroundColor:a,onClickProps:o},c),l().createElement(nt,{padding:"0 16px"},l().createElement(Js,(0,r.__assign)({useCustomExpand:!0},i),t.map((function(e,t){return l().createElement(Zs,(0,r.__assign)({},e,{key:t}))})))))},ed=function(e){return e.map((function(e){return e.key})).toString()},td=function(e){var t=e.finalColumnText,n=e.finalColumnActions,a=void 0===n?[]:n,o=e.existingMenuProps,i=void 0===o?{"aria-label":"","data-bi-id":""}:o,c=e.finalColumnAlign,s=void 0===c?"end":c,d=e.collapseActionText,u=void 0!==d&&d,m=e.disabled,p=void 0!==m&&m,g=e.menuDisabled,h=void 0!==g&&g,f=(0,r.__rest)(e,["finalColumnText","finalColumnActions","existingMenuProps","finalColumnAlign","collapseActionText","disabled","menuDisabled"]),v=i.menuItems||[],x=a.length>0||v.length>0,E="",y={primary:a.map((function(e,t){return E+="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 l().createElement(Bn,{key:t},e)}}})),overflow:[],cacheKey:E},b=function(e){return l().createElement(Bn,{key:e.key},p?l().cloneElement(e.action,{disabled:p}):e.action)},_=function(e){return l().createElement(nt,{verticalAlign:"center"},l().createElement(Rr,(0,r.__assign)({},i,{iconName:"MoreVertical",disabled:h||p,menuItems:e,menuItemsPadding:i.menuItemsPadding||2})))};return l().createElement(nt,{horizontal:!0,grow:!0},t&&t.length>0?l().createElement(nt,{horizontal:!0,verticalAlign:"center",childrenGap:16},t.map((function(e,t){return!p&&e.key?e:l().cloneElement(e,{disabled:p,key:e.key||t})}))):null,x?l().createElement(nt,{grow:!0},l().createElement(ia.A,{data:y,onReduceData:function(e){if(0!==e.primary.length){var t=(0,r.__spreadArray)((0,r.__spreadArray)([],e.primary.slice(-1),!0),e.overflow,!0),n=e.primary.slice(0,-1);return{primary:n,overflow:t,cacheKey:ed(n)}}},onGrowData:function(e){if(0!==e.overflow.length){var t=(0,r.__spreadArray)([],e.overflow.slice(1),!0),n=(0,r.__spreadArray)((0,r.__spreadArray)([],e.primary,!0),e.overflow.slice(0,1),!0);return{primary:n,overflow:t,cacheKey:ed(n)}}},onRenderData:function(e){var t=e.primary;u&&(t=t.map((function(e){return e.isCollapsible?(0,r.__assign)((0,r.__assign)({},e),{action:l().cloneElement(e.action,(0,r.__assign)((0,r.__assign)({},e.action.props),{text:""}))}):e})));var n="start"===s||0===t.length?{overflowButton:{"flex-grow":1,"justify-content":"flex-end"}}:{item:{alignItems:"center",":first-of-type":{"flex-grow":1,"justify-content":"flex-end"}}};return 0===e.overflow.length&&0===v.length&&(n.root={padding:"0 8px 0 0"}),l().createElement(oa.p,{items:t,overflowItems:(0,r.__spreadArray)((0,r.__spreadArray)([],v,!0),e.overflow,!0),onRenderItem:b,onRenderOverflowButton:_,styles:n})}})):null,f.iconName&&0===y.overflow.length?l().createElement(nt,{grow:!0,horizontalAlign:"end",verticalAlign:"center",padding:"0 8px 0 0"},l().createElement(Yt,{size:"16px",iconName:ke(f.iconName),color:"neutralPrimary"})):null)},nd=function(e){return l().createElement(rd,(0,r.__assign)({},e))},rd=function(e){var t=e.firstColumn,n=e.actions,a=void 0===n?[]:n,o=e.actionsAlign,c=void 0===o?"end":o,s=e.disabled,d=void 0!==s&&s,u=e.menuDisabled,m=void 0!==u&&u,p=(0,r.__rest)(e,["firstColumn","actions","actionsAlign","disabled","menuDisabled"]);(0,i.useEffect)((function(){}),[]),fe("OneColumnInternalListItem",p),(0,i.useEffect)((function(){t.forEach((function(e){return Ls(e,ks)}))}),[t]),(0,i.useEffect)((function(){a.forEach((function(e){return Ls(e,Ts)}))}),[a]);var g=ce(),h=void 0!==p.onClickProps;Is("OneColumn",h,a.length);var f,v="s"===g||"m"===g||"l"===g;return"menu"===p.decorationType&&(f=(0,r.__assign)({},p.menuProps)),l().createElement(Wc,(0,r.__assign)({},p),l().createElement(nt,{verticalAlign:"center",horizontal:!0,padding:wo,childrenGap:16},l().createElement(nt,{verticalAlign:"center",grow:!1},t.map((function(e,t){return l().cloneElement(e,{disabled:d,key:e.key||t})}))),l().createElement(td,{finalColumnActions:a,finalColumnAlign:c,collapseActionText:v,existingMenuProps:f,iconName:"icon"===p.decorationType?p.iconName:void 0,disabled:d,menuDisabled:m})))},ad=function(e){var t=e.variant,n=(0,r.__rest)(e,["variant"]);switch(t){case"ThreeThreeThreeThree":return l().createElement(od,(0,r.__assign)({firstColumnWidth:3,secondColumnWidth:3,thirdColumnWidth:3,finalColumnWidth:3},n));case"SixTwoTwoTwo":return l().createElement(od,(0,r.__assign)({firstColumnWidth:6,secondColumnWidth:2,thirdColumnWidth:2,finalColumnWidth:2},n))}},od=function(e){var t=e.firstColumn,n=void 0===t?[]:t,a=e.firstColumnWidth,o=e.secondColumn,c=void 0===o?[]:o,s=e.secondColumnWidth,d=e.thirdColumn,u=void 0===d?[]:d,m=e.thirdColumnWidth,p=e.finalColumnText,g=void 0===p?[]:p,h=e.finalColumnActions,f=void 0===h?[]:h,v=e.finalColumnWidth,x=e.finalColumnAlign,E=void 0===x?"end":x,y=e.disabled,b=void 0!==y&&y,_=e.menuDisabled,w=void 0!==_&&_,C=(0,r.__rest)(e,["firstColumn","firstColumnWidth","secondColumn","secondColumnWidth","thirdColumn","thirdColumnWidth","finalColumnText","finalColumnActions","finalColumnWidth","finalColumnAlign","disabled","menuDisabled"]);(0,i.useEffect)((function(){}),[]),fe("FourColumnListItemInternal",C),(0,i.useEffect)((function(){n.forEach((function(e){return Ls(e,ks)}))}),[n]),(0,i.useEffect)((function(){c&&c.forEach((function(e){Ls(e,Cs)}))}),[c]),(0,i.useEffect)((function(){u&&u.forEach((function(e){Ls(e,Cs)}))}),[u]),(0,i.useEffect)((function(){g&&g.forEach((function(e){return Ls(e,Cs)}))}),[g]),(0,i.useEffect)((function(){f&&f.forEach((function(e){return Ls(e,Ts)}))}),[f]);var k,T=ce(),S=void 0!==C.onClickProps;return Is("FourColumn",S,f.length),"s"===T||"m"===T||"l"===T?l().createElement(nd,(0,r.__assign)({firstColumn:Ds((0,r.__spreadArray)((0,r.__spreadArray)((0,r.__spreadArray)((0,r.__spreadArray)([],n,!0),c,!0),u,!0),g,!0)),actions:f,actionsAlign:"end",disabled:b,menuDisabled:w},C)):("menu"===C.decorationType&&(k=(0,r.__assign)({},C.menuProps)),l().createElement(Wc,(0,r.__assign)({},C),l().createElement(mt,{totalSlots:12,verticalAlign:"center"},l().createElement(pt,{slots:a},l().createElement(nt,{padding:wo},n.map((function(e,t){return l().cloneElement(e,{disabled:b,key:e.key||t})})))),l().createElement(pt,{slots:s},l().createElement(nt,{horizontal:!0,childrenGap:4},c.map((function(e,t){return l().cloneElement(e,{disabled:b,key:e.key||t})})))),l().createElement(pt,{slots:m},l().createElement(nt,{horizontal:!0,childrenGap:4},u.map((function(e,t){return l().cloneElement(e,{disabled:b,key:e.key||t})})))),l().createElement(pt,{slots:v},l().createElement(td,{finalColumnText:g,finalColumnActions:f,finalColumnAlign:E,existingMenuProps:k,collapseActionText:S,iconName:"icon"===C.decorationType?C.iconName:void 0,disabled:b,menuDisabled:w})))))},id={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]},ld=function(e){var t=e.image,n=e.text,a=e.actionProps,o=(0,r.__rest)(e,["image","text","actionProps"]);fe("SimpleFeedListItem",o),(0,i.useEffect)((function(){}),[]);var c,s=ce();return c=["s","m"].includes(s)?l().createElement(Qr,(0,r.__assign)({key:"iconAction"},a)):l().createElement(Ir,(0,r.__assign)({key:"buttonAction"},a)),l().createElement(Oc,(0,r.__assign)({image:t,actions:[c]},o),n)},cd=function(e){var t,n,r,a=e.backgroundColor,o=ce();switch(o){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 l().createElement(Wc,{backgroundColor:a},l().createElement(mt,{totalSlots:t},l().createElement(pt,{slots:r},l().createElement(nt,{horizontal:!0,height:49,verticalAlign:"center"},l().createElement(rt,{padding:"0 0 0 16px"},l().createElement(Qa,{height:32,width:32})),l().createElement(rt,{padding:"0 0 0 8px"},l().createElement(Qa,{height:20,width:"s"===o||"m"===o?145:277})))),l().createElement(pt,{slots:n},l().createElement(nt,{horizontal:!0,height:49,verticalAlign:"center"},l().createElement(rt,null,l().createElement(Qa,{height:14,width:"s"===o||"m"===o?14:150}))))))},sd=[Uc,jc,Ws,ad,nd,ld,cd,function(e){var t=e.firstColumnComponentName,n=void 0===t?"Text":t,r=e.variant;(0,i.useEffect)((function(){}),[]);var a=ce(),o="s"===a||"m"===a,c=o?16:32,s=l().createElement(Qa,{height:o?15:20});switch(n){case"Icon":s=l().createElement(nt,{width:c,margin:"0 10px 0 0"},l().createElement(ll,{height:c}));break;case"Persona":s=l().createElement(nt,{horizontal:!0,verticalAlign:"center"},l().createElement(nt,{width:c,margin:"0 10px 0 0"},l().createElement(ll,{height:c})),l().createElement(Qa,{height:c,width:150}));break;case"ListItemMedia":s=l().createElement(nt,{horizontal:!0,childrenGap:"0 10px",verticalAlign:"center"},l().createElement(Qa,{height:c,width:c}),l().createElement(Qa,{height:c,width:150}))}var d=r?id[r][0]:12;return o?l().createElement(Wc,null,l().createElement(nt,{backgroundColor:"neutralHigh",margin:"0 0 3px 0",padding:"8px 13px 4px 52px",verticalAlign:"center"},l().createElement(nt,{margin:"0 0 4px 0"},s),r?id[r].slice(1).map((function(e,t){return l().createElement(nt,{margin:"0 0 4px 0",key:t},l().createElement(Qa,{height:20}))})):null)):l().createElement(Wc,null,l().createElement(mt,{backgroundColor:"neutralHigh",totalSlots:12,height:48,margin:"0 0 3px 0",padding:"0 13px 0 52px",verticalAlign:"center"},l().createElement(pt,{slots:d},s),r?id[r].slice(1).map((function(e,t){return l().createElement(pt,{slots:e,key:t},l().createElement(Qa,{height:20}))})):null))},Ns,Vs,Wc,$s],dd="neutralHigh",ud=function(e,t,n,a,o){return void 0===a&&(a=0),void 0===o&&(o=!0),l().cloneElement(e,(0,r.__assign)({disabled:n,backgroundColor:e.props.backgroundColor||t,groupSpacerNestingDepth:a,showDivider:o},e.props))},md="List",pd=function(e){return(Array.isArray(e)?e:e?[e]:[]).map((function(e){return O(e,sd,md)}))};function gd(e){return W(e,sd,md)}var hd,fd,vd,xd,Ed,yd,bd,_d,wd,Cd,kd,Td,Sd,Pd=function e(t){for(var n,r=0,a=t.length;r<a;r++){var o=t[r];if(l().isValidElement(o)&&o.props.children){if(n&&"non-leaf"!==n)return!1;if(n="non-leaf",!e(pd(o.props.children)))return!1}else{if(n&&"leaf"!==n)return!1;n="leaf"}}return!0},Bd=function(e){return function(){return Pd(e)?void 0:"Cannot mix childless and child-containing list nodes on the same level."}},Ld=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[F.up]={border:"none"},n)},groupHeaderContainer:{height:"100%"}}},Ad=function(e){return s("GroupedList",e.id),l().createElement(jd,(0,r.__assign)({},e,{listType:"GroupedList"}))},Id=function(e){var t=e.children,n=e.listItemBackgroundColor,a=void 0===n?dd:n,o=e.disabled,c=e.showDivider,s=void 0===c||c,u=e.expandButtonProps,m=(0,r.__rest)(e,["children","listItemBackgroundColor","disabled","showDivider","expandButtonProps"]);(0,i.useEffect)((function(){}),[]),p("GroupedList",[Bd(pd(t))]);var g=(0,i.useRef)(new Map).current,h=(0,d.DP)(),f=[],v=Fd(pd(t),g,f)||[];return l().createElement(Ms.D,{groups:v,items:f,onRenderCell:function(e,t){return ud(t,a,o,e,s)},groupProps:{headerProps:{onRenderTitle:o?function(e){var t=e.group.data;return l().cloneElement(t,{menuDisabled:!0})}:function(e){var t=e.group.data;return ud(t,a,o,void 0,!1)},styles:Ld(h,s),onToggleCollapse:function(e){g.set(e.key,!e.isCollapsed)},expandButtonProps:u},role:"group"},selectionMode:Jc.Qc.none,onShouldVirtualize:function(){return!1},rootListProps:m})},Fd=function e(t,n,r,a,o){void 0===r&&(r=[]),void 0===a&&(a=0),void 0===o&&(o="");for(var i=[],c=0,s=t.length;c<s;c++){var d=t[c];if(l().isValidElement(d)&&d.props.children){var u=(d.key||c).toString();o&&(u="".concat(o,"-").concat(c));var m=pd(d.props.children),p=r.length,g=m.length,h=e(m,n,r,a+1,u);i.push({count:g,key:u,name:d.props["aria-label"],ariaLabel:d.props["aria-label"],startIndex:p,level:a,children:h,isCollapsed:n.has(u)?n.get(u):!d.props.defaultExpanded,data:l().cloneElement(d,{defaultExpanded:void 0,children:void 0,key:u})})}else r.push(d)}return i},Dd=n(45818),Rd=(0,i.forwardRef)((function(e,t){return s("List",e.id),l().createElement(jd,(0,r.__assign)({},e,{listType:"List",ref:t}))})),zd=(0,i.forwardRef)((function(e,t){var n=e.children,a=e.listItemBackgroundColor,o=void 0===a?dd:a,i=e.enableVirtualization,c=void 0!==i&&i,s=e.disabled,d=e.showDivider,u=void 0===d||d,m=e.isTabbable,p=void 0!==m&&m,g=e.listRole,h=void 0===g?"list":g,f=(0,r.__rest)(e,["children","listItemBackgroundColor","enableVirtualization","disabled","showDivider","isTabbable","listRole"]),v=Ce(),x=p?"all":void 0;return l().createElement(Nc,{handleTabKey:x,shouldEnterInnerZone:function(e){return e.key===(v?"ArrowLeft":"ArrowRight")},direction:"vertical",ref:t},l().createElement(Dd.B,(0,r.__assign)({},f,{items:pd(n).slice(),onRenderCell:function(e){return ud(e,o,s,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 c},role:h})))})),Hd=function(e,t,n){return{root:{boxShadow:n?a.f.depth8:void 0,borderRadius:t?"0 0 4px 4px":"0px",padding:"8px 16px",backgroundColor:e.palette.neutralMed}}},Nd=function(e){var t=e.label,n=e.links,a=e.borderRadius,i=void 0===a||a,c=e.shadow,s=void 0===c||c,u=(0,d.DP)();return l().createElement(o.B,{verticalAlign:"center",styles:Hd(u,i,s),doNotRenderFalsyValues:!0},l().createElement(o.B,{wrap:!0,horizontal:!0,style:{margin:"9px 0 9px 0"},doNotRenderFalsyValues:!0},t?l().createElement(o.B,{horizontal:!0,styles:{root:{margin:"0 16px 0 0"}},doNotRenderFalsyValues:!0},l().createElement(Fn,{variant:"bodySecondaryText"},t)):null,l().createElement(o.B,{horizontal:!0,tokens:{childrenGap:"0 16"},wrap:1!==n.length,doNotRenderFalsyValues:!0},n.map((function(e,t){return l().createElement(he.a,{key:t},l().createElement(Md,(0,r.__assign)({},e)))})))))},Vd=function(e){var t=e.leftLinks,n=e.rightLink,a=e.shouldRightLinkRightAligned,i=void 0!==a&&a,c=e.borderRadius,s=void 0===c||c,u=e.shadow,m=void 0===u||u,p=(0,d.DP)(),g=ce(),h=t.length,f=i?8:6,v=12-f,x=l().createElement(mt,{totalSlots:12},l().createElement(pt,{slots:f},1===h?l().createElement(Md,(0,r.__assign)({},t[0])):l().createElement(o.B,{horizontal:!0,tokens:{childrenGap:"0 16"},doNotRenderFalsyValues:!0},t.map((function(e,t){return l().createElement(he.a,{key:t},l().createElement(Md,(0,r.__assign)({},e)))})))),l().createElement(pt,{slots:v},i?l().createElement(o.B,{horizontalAlign:"end",doNotRenderFalsyValues:!0},l().createElement(Md,(0,r.__assign)({},n))):l().createElement(Md,(0,r.__assign)({},n)))),E=l().createElement(o.B,{horizontal:!1,tokens:{childrenGap:"16px"},doNotRenderFalsyValues:!0},l().createElement(he.a,null,1===h?l().createElement(Md,(0,r.__assign)({},t[0])):l().createElement(o.B,{horizontal:!0,tokens:{childrenGap:"0 16"},doNotRenderFalsyValues:!0},t.map((function(e,t){return l().createElement(he.a,{key:t},l().createElement(Md,(0,r.__assign)({},e)))})))),l().createElement(he.a,null,l().createElement(Md,(0,r.__assign)({},n))));return l().createElement(o.B,{verticalAlign:"center",styles:Hd(p,s,m),doNotRenderFalsyValues:!0},l().createElement(o.B,{style:{margin:"9px 0 9px 0"},doNotRenderFalsyValues:!0},function(){switch(g){case"xxxl":case"xxl":case"xl":case"l":return x;case"m":case"s":return E}}()))},Md=function(e){return"href"in e?l().createElement(nr,(0,r.__assign)({},e)):l().createElement(ir,(0,r.__assign)({},e))},Wd=function(e){return"twocolumn"===e.type?l().createElement(Vd,(0,r.__assign)({},e)):l().createElement(Nd,(0,r.__assign)({},e))},Od=function(e){var t=e.minHeight,n=void 0===t?"44px":t,a=(0,r.__rest)(e,["minHeight"]),i=(0,d.DP)();return l().createElement(o.B,{verticalAlign:"center",style:{backgroundColor:i.palette.neutralHigh,minHeight:n,padding:"0 16px"},doNotRenderFalsyValues:!0},l().createElement(rt,null,l().createElement(ir,(0,r.__assign)({},a))))},Gd=function(e,t,n,r){return{root:{boxShadow:e?a.f.depth4:void 0,borderRadius:n?t:void 0,overflow:n?"hidden":void 0,height:r}}},Ud=5,jd=(0,i.forwardRef)((function(e,t){var n,a,s,d,u=e.listType,m=e.label,p=e.header,g=e.footer,h=e.placeholder,f=e.children,v=e.shadow,x=e.roundedCorners,E=e.borderRadius,y=void 0===E?"8px":E,b=e.operationData,_=e.showDefaultHeaderDivider,w=void 0===_||_,C=(0,r.__rest)(e,["listType","label","header","footer","placeholder","children","shadow","roundedCorners","borderRadius","operationData","showDefaultHeaderDivider"]),k=(0,i.useState)(null!==(n=C.defaultExpanded)&&void 0!==n&&n),T=k[0],S=k[1],P=null===m||void 0===m?void 0:m.text,B=pd(f);if(C.isAlwaysExpanded){s=0;C.isAlwaysExpanded;var L=(0,r.__rest)(C,["isAlwaysExpanded"]);a=L}else{if((s=C.initialListLength||Ud)>0&&B.length>s){P="".concat(P," (").concat(B.length,")");var A=T?C.showLessButtonProps:C.showMoreButtonProps;d=(0,r.__assign)((0,r.__assign)({},A),{onClick:function(){return S(!T)}})}B=T?B:B.slice(0,s);C.isAlwaysExpanded,C.initialListLength,C.showMoreButtonProps,C.showLessButtonProps,L=(0,r.__rest)(C,["isAlwaysExpanded","initialListLength","showMoreButtonProps","showLessButtonProps"]);a=L}if(B.length>0&&"DetailsList"!==u){var I=B[B.length-1];B[B.length-1]=l().createElement(I.type,(0,r.__assign)((0,r.__assign)({},I.props),{showDivider:!1}))}"DetailsList"===u&&(B=B.map((function(e){return l().createElement(e.type,(0,r.__assign)((0,r.__assign)({},e.props),{cellRole:"gridcell",listType:"DetailsList"}))}))),fe("ListWrapper",a);var F="DetailsList"===u?C.customHeight:void 0,D=function(e){return l().createElement(o.B,{styles:Gd(v,y,x,F),doNotRenderFalsyValues:!0},m?l().createElement(yn,{id:m.id},P):null,e?l().createElement("div",{style:{position:"absolute",width:"100%",zIndex:1}},l().createElement(gt.Z,{styles:{itemProgress:{padding:"0px"}}})):null,p?ud(l().createElement(Wc,{showDivider:w,removeRole:!0,"data-is-focusable":!1},l().createElement(nt,{padding:wo},e?l().cloneElement(p,{menuDisabled:e,showDivider:w}):p)),C.listItemBackgroundColor,void 0,void 0,w):null,h&&0===B.length?h:function(e){var n=(0,r.__assign)((0,r.__assign)({"aria-labelledby":null===m||void 0===m?void 0:m.id},a),{disabled:e,children:B}),o=(0,r.__assign)((0,r.__assign)({"aria-labelledby":null===m||void 0===m?void 0:m.id},a),{disabled:e,children:B,headerColumns:C.headerColumns,ariaLabelForListHeader:C.ariaLabelForListHeader,checkButtonAriaLabel:C.checkButtonAriaLabel,onHeaderChange:C.onHeaderChange,announcedSortMessage:C.announcedSortMessage});return l().createElement(l().Fragment,null,function(){switch(u){case"List":return l().createElement(zd,(0,r.__assign)({},n,{ref:t}));case"DetailsList":return l().createElement(nu,(0,r.__assign)({},o));default:return l().createElement(Id,(0,r.__assign)({showDivider:w},n))}}(),d?l().createElement(Od,(0,r.__assign)({},d)):null)}(e),g?l().createElement(Wd,(0,r.__assign)({},g)):null)};return b?l().createElement(c.TwoUIProgressView,{operationData:b.progressViewOperationData,failedView:D(),finishedView:D(),updatingView:D(!0)}):D()})),Kd=function(e,t){return function(){return e!==t.length?"DetailsList must have the same number of columns in the headers and rows":void 0}},Zd=function(e){return Ps.includes(e.type)},Xd="8px 0 8px 2px",Yd={cellLeftPadding:0,cellRightPadding:0,cellExtraRightPadding:0},qd=function(e,t,n){var a,o;return t&&(o={flexFlow:"column wrap-reverse",justifyContent:"center"}),{root:{width:n?"fit-content !important":void 0,"[role=button]":(a={},a[F.up]={":hover":{outline:"1px solid Highlight"},":active:hover":{outline:"1px solid Highlight"}},a)},cellTooltip:{position:"relative",height:"100%",width:"100%"},cellTitle:(0,r.__assign)({whiteSpace:"normal",alignItems:"center",height:"100%",width:"100%",paddingRight:"2px",paddingLeft:0===e?"12px":"8px"},o)}},Qd={root:{width:"100% !important"}},Jd=function(e){return{list:{backgroundColor:e.semanticColors.buttonBackground}}},$d={root:{alignItems:"center",marginRight:"8px"}},eu=function(e){return{root:{height:e,position:"relative",overflow:"unset"}}},tu=function(e){return s("DetailsList",e.id),l().createElement(jd,(0,r.__assign)({},e,{listType:"DetailsList"}))},nu=function(e){var t,n,a,s,u=e.headerColumns,m=e.ariaLabelForListHeader,g=e.checkButtonAriaLabel,f=e.children,v=e.announcedSortMessage,x=e.onHeaderChange,E=e.customHeight,y=(0,r.__rest)(e,["headerColumns","ariaLabelForListHeader","checkButtonAriaLabel","children","announcedSortMessage","onHeaderChange","customHeight"]),b=(0,d.DP)(),_=(0,c.useTwoUITelemetry)(),w=(0,c.useTwoUITelemetryIds)().areaBiId,C=pd(f).slice();p("DetailsList",[(s=C,function(){return s.length<1?"DetailsList cannot have less than ".concat(1," rows"):void 0}),Kd(null!==(n=null===(t=C[0].props.columns)||void 0===t?void 0:t.length)&&void 0!==n?n:2,u),(a=u,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}(a)?void 0:"Only one column header can be sorted ascending or descending"})]);for(var k=!1,T=u.length,S=0;!k&&S<T;){var P=u[S];switch(P.sortStatus){case"sortedAscending":case"sortedDescending":var B=P.sortFunction(C,S,"sortedDescending"===P.sortStatus),L=B[0];B[1];C=(0,r.__spreadArray)([],L,!0),k=!0}S++}S++;var A=(0,i.useState)(),I=A[0],F=A[1],D=(0,i.useState)(v),R=D[0],z=D[1],H=function(){F(void 0)};function N(e,t){var n=t.data.detailsHeaderColumn,a=[];switch(n.sortStatus){case"notSorted":case"sortedDescending":case"sortedAscending":n.sortOptionsMenu.forEach((function(e){var n,o;a.push((0,r.__assign)((0,r.__assign)({},e),{checked:e.checked(null!==(n=t.isSorted)&&void 0!==n&&n,null!==(o=t.isSortedDescending)&&void 0!==o&&o),role:"menuitemradio",onClick:function(){return function(e,t,n){var a={clickId:"".concat(n),pageArea:w};_.reportClick(a);var o=e.data.detailsHeaderArray,i=o.findIndex((function(t){return t.key===e.key}));if(i>=0&&e.data){var l=e.data.detailsHeaderColumn;switch(l.sortStatus){case"notSorted":case"sortedDescending":case"sortedAscending":var c=l.sortFunction(e.data.detailsListItems,i,t),s=c[0],d=c[1];if(s){z("".concat(l.name," ").concat(d));var u=o.map((function(e,n){return n===i?(0,r.__assign)((0,r.__assign)({},e),{sortStatus:t?"sortedDescending":"sortedAscending"}):(0,r.__assign)((0,r.__assign)({},e),{sortStatus:"notSortable"===e.sortStatus?e.sortStatus:"notSorted"})}));x&&x(u)}}}}(t,e.isSortedDescending,e["data-bi-id"])}}))}))}return{items:null!==a&&void 0!==a?a:[],target:e.currentTarget,directionalHint:h.A.bottomLeftEdge,gapSpace:10,onDismiss:H,styles:Jd(b)}}var V,M,W=function(e,t){var n={clickId:"".concat(t.data.detailsHeaderColumn["data-bi-id"]),pageArea:w};_.reportClick(n),t.columnActionsMode!==Kc.vn.disabled&&F(N(e,t))},O=function(e,t){e&&t&&e.columnActionsMode!==Kc.vn.disabled&&F(N(t,e))},G=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)?Zd(n.listItemColumn)&&"notSortable"!==n.sortStatus?l().createElement(l().Fragment,null):n.listItemColumn:null!==(t=!(null===e||void 0===e?void 0:e.column.isMultiline))&&void 0!==t&&t?l().createElement(Qn,{type:"text",lines:1,variant:"headerText",stopPropagation:!1},null===e||void 0===e?void 0:e.column.name):l().createElement(Fn,{children:null===e||void 0===e?void 0:e.column.name,variant:"headerText",nowrap:!1,block:!0})},U=function(e,t,n){var r;return"listItemHeader"===e.headerType&&Zd(e.listItemColumn)?"notSortable"===e.sortStatus?l().createElement(Zc.e,{column:t,columnIndex:n,styles:Qd}):l().createElement(Dc,null,l().createElement(o.B,{horizontal:!0,styles:$d,doNotRenderFalsyValues:!0},e.listItemColumn,l().createElement(Xc.v,{column:t,columnIndex:n,cellStyleProps:Yd,styles:qd(n,!1,!0)}))):l().createElement(Xc.v,{column:t,columnIndex:n,cellStyleProps:Yd,styles:qd(n,null!==(r=t.isIconOnly)&&void 0!==r&&r)})},j=(M=C,(V=u).map((function(e){var t,n="sortedAscending"===e.sortStatus||"sortedDescending"===e.sortStatus,a={key:e.key,minWidth:e.minWidth?parseInt(e.minWidth,10):parseInt("300px",10),name:e.name,ariaLabel:e.ariaLabel,onRenderHeader:G,columnActionsMode:"notSortable"===e.sortStatus?Kc.vn.disabled:n?void 0:Kc.vn.hasDropdown,isSorted:n,isSortedDescending:"sortedDescending"===e.sortStatus,onColumnClick:W,onColumnContextMenu:O,data:{detailsHeaderColumn:e,detailsListItems:M,detailsHeaderArray:V},isResizable:!0};if("listItemHeader"===e.headerType)return a;var o=null!==(t=e.textTruncates)&&void 0!==t&&t;return(0,r.__assign)((0,r.__assign)({},a),{iconName:e.iconName,isIconOnly:e.isIconOnly,isMultiline:!o,onRenderHeader:e.isIconOnly?void 0:G})}))),K=[R?l().createElement(li.e,{message:R}):void 0,l().createElement(Qc.R,{items:C,columns:j,onItemContextMenu:function(e,t,n){var r={target:null===n||void 0===n?void 0:n.target,items:[{key:"text",name:"selected"}],onDismiss:function(){F(void 0)}};return t&&t>-1&&F(r),!1},ariaLabelForListHeader:m,checkButtonAriaLabel:g,listProps:(0,r.__assign)({items:C,onRenderCell:function(e){return ud(e)}},y),layoutMode:Kc.ch.fixedColumns,onRenderDetailsHeader:function(e){if(null===e||void 0===e?void 0:e.columns[0].data){var t=null===e||void 0===e?void 0:e.columns[0].data.detailsListItems;if(t[0].props.leftColumn){var n={"aria-label":null===e||void 0===e?void 0:e.ariaLabel,leftColumn:e?U(null===e||void 0===e?void 0:e.columns[0].data.detailsHeaderColumn,null===e||void 0===e?void 0:e.columns[0],0):l().createElement(l().Fragment,null),rightColumn:e?U(null===e||void 0===e?void 0:e.columns[1].data.detailsHeaderColumn,null===e||void 0===e?void 0:e.columns[1],1):l().createElement(l().Fragment,null),onClickProps:void 0,listItemRole:"row",customListItemPadding:Xd};return E?l().createElement(Yc.i,{stickyPosition:qc.P.Header},l().createElement(Vs,(0,r.__assign)({},n))):l().createElement(Vs,(0,r.__assign)({},n))}var a={"aria-label":null===e||void 0===e?void 0:e.ariaLabel,variant:t[0].props.variant,columns:e?e.columns.map((function(t,n){return U(null===e||void 0===e?void 0:e.columns[n].data.detailsHeaderColumn,t,n)})):[],onClickProps:void 0,listItemRole:"row",horizontalStack:!1,verticalAlign:"stretch",customListItemPadding:Xd};return E?l().createElement(Yc.i,{stickyPosition:qc.P.Header},l().createElement(Ns,(0,r.__assign)({},a))):l().createElement(Ns,(0,r.__assign)({},a))}return l().createElement(l().Fragment,null)},styles:{headerWrapper:{"[role=row] > div":{display:"flex",flexGrow:1,"div ":{alignItems:"stretch","div > div":{height:"100%",maxWidth:"100%"}}}}},selectionMode:Jc.Qc.none}),I?l().createElement($c.l,(0,r.__assign)({},I)):null];return l().createElement(o.B,{styles:{root:{display:"flex",flexDirection:"column",flexWrap:"wrap",width:"100%",overflowX:"auto","[class=ms-Viewport]":{width:"100%"}}},doNotRenderFalsyValues:!0},E?l().createElement(o.B,{styles:eu(E),doNotRenderFalsyValues:!0},K):l().createElement(l().Fragment,null,K))},ru=n(65086),au=n(82239),ou=n(10286),iu=n(69778),lu={width:"100%",maxWidth:"100%",minWidth:"100%",height:"100%",maxHeight:"100%",minHeight:"100%",borderRadius:"0px"},cu={main:(hd={},hd[$.maxM]=(0,r.__assign)({},lu),hd[$.maxS]=(0,r.__assign)({},lu),hd),scrollableContent:(fd={},fd[$.maxM]={minHeight:"100%"},fd[$.maxS]={minHeight:"100%"},fd)},su={main:(vd={},vd[$.maxL]=(0,r.__assign)({},lu),vd[$.maxM]=(0,r.__assign)({},lu),vd[$.maxS]=(0,r.__assign)({},lu),vd),scrollableContent:(xd={},xd[$.maxL]={minHeight:"100%"},xd[$.maxM]={minHeight:"100%"},xd[$.maxS]={minHeight:"100%"},xd)},du=function(e){switch(e.fullScreenViewports){case"smallAndMedium":return cu;case"smallToLarge":return su}},uu={padding:"24px",smallScreenPadding:"16px",removeBodyBottomPadding:!1},mu={headerLeftRightPadding:"24px",withHeaderHorizontalLine:!1},pu={isStickyFooterWithText:!1,hasFooterBackground:!1,hasFooterHorizontalLine:!1},gu=function(e){return(0,F.Zq)({backgroundColor:e.palette.neutralHigh})},hu=function(e,t){var n,r;return void 0===t&&(t=mu),(0,F.Zq)([null===(r=e.fonts)||void 0===r?void 0:r.xLarge,{color:e.semanticColors.bodyText,fontWeight:F.BO.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[$.maxS]={padding:"16px"},n)}])},fu=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}}},vu={itemProgress:{padding:0}},xu="dialogBody",Eu=function(e,t){var n,r,a;if(!e)return{root:{height:"100%"}};var o=t?"auto":"60vh";return{root:(n={},n[e.forceStickyOnSmallScreens?ee:te]={maxHeight:null!==(r=e.bodyMaxHeight)&&void 0!==r?r:o,minHeight:null!==(a=e.bodyMinHeight)&&void 0!==a?a:"auto",height:"100%",overflowY:"auto",outline:"none"},n)}},yu=function(e){var t;return(0,F.l8)({main:(t={},t[e.forceStickyOnSmallScreens?ee:te]={display:"flex",flexDirection:"column",overflowY:"hidden"},t)})},bu=function(e,t,n,r,a,o){var i,l=t?"".concat(t.height).concat(t.unit):void 0,c=n?parseInt(n,10):0,s={main:(i={backgroundColor:e.palette.neutralHigh,borderRadius:a,maxWidth:n||"480px",minWidth:n||"auto",height:l,top:0},i[$.maxL]={maxWidth:n?q.l>c?n:"96%":"480px",minWidth:n?q.l>c?n:"96%":"auto"},i[$.maxM]={margin:"16px",maxWidth:n&&q.m>c?n:"96%",minWidth:n?q.m>c?n:"96%":"auto",minHeight:t?"92%":void 0},i[$.maxS]={margin:"8px",maxWidth:"96%",minWidth:"96%",minHeight:t?"96%":void 0},i),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},d=o?du(o):void 0;return(0,F.l8)(s,r,d)},_u=function(e){var t,n,a=e.isFooterDisabled,o=e.richTextProps,i=e.textAlignment,c=void 0===i?"left":i,s=e.removeMarginTop,d=e.hasFullWidthButtons,u=(e.hasFooterBackground,(0,r.__rest)(e,["isFooterDisabled","richTextProps","textAlignment","removeMarginTop","hasFullWidthButtons","hasFooterBackground"]));if("secondary"===u.dialogType)n=[u.buttonLeft?l().createElement(qr,(0,r.__assign)({},u.buttonLeft,{disabled:a||u.buttonLeft.disabled,key:1})):null,l().createElement(qr,(0,r.__assign)({},u.buttonRight,{disabled:a||u.buttonRight.disabled,key:0}))];else{var m=a||u.buttonPrimary.disabled,p=a||(null===(t=u.buttonSecondary)||void 0===t?void 0:t.disabled);n="flow"===u.dialogType?[l().createElement(qr,(0,r.__assign)({},u.buttonSecondary,{disabled:p,key:0})),l().createElement(qr,(0,r.__assign)({},u.buttonPrimary,{disabled:m,type:"primary",key:1}))]:[l().createElement(qr,(0,r.__assign)({},u.buttonPrimary,{disabled:m,type:"primary",key:0})),u.buttonSecondary&&l().createElement(qr,(0,r.__assign)({},u.buttonSecondary,{disabled:p,key:1}))]}var g=d?"0px":void 0,h=d?"0px":void 0,f=s?"0px":void 0,v=d?"flex":void 0,x=d?"column":void 0;return l().createElement(ot,{textAlignment:c,padding:o&&"12px 0 0 0",childrenGap:12},o?l().createElement(ur,(0,r.__assign)({},o)):null,l().createElement(iu.E,{styles:{actions:{marginTop:f,marginLeft:g,display:v,flexDirection:x},actionsRight:{marginRight:h,display:"flex",flexDirection:x,justifyContent:"flex-end"},action:{marginLeft:g,marginRight:h,display:v,flexDirection:x}}},n))},wu=function(e){var t=e.operationData,n=e.footerProps,a=function(e,t){var n;return void 0===t&&(t=pu),(0,F.l8)({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[$.maxS]={padding:"0 16px 16px 16px"},n)}})}((0,d.DP)(),{isStickyFooterWithText:!!(null===n||void 0===n?void 0:n.richTextProps),hasFooterBackground:null===n||void 0===n?void 0:n.hasFooterBackground,hasFooterHorizontalLine:null===n||void 0===n?void 0:n.hasFooterHorizontalLine}).footer,i=function(e){return l().createElement(l().Fragment,null,e?l().createElement(o.B,{className:a,doNotRenderFalsyValues:!0},l().createElement(_u,(0,r.__assign)({},e))):null)},s=i(n),u=n?(0,r.__assign)({isFooterDisabled:!0},n):void 0;if(t){var m=i(t.progressDialogProps?t.progressDialogProps.dialogFooterProps:u),p=function(e){return i(e.dialogFooterProps)};return l().createElement(c.TwoUIProgressView,{operationData:t.progressViewOperationData,inertView:s,firstLoadView:m,updatingView:m,updateFailedView:p(t.errorDialogProps),finishedView:t.successDialogProps?p(t.successDialogProps):s,failedView:p(t.errorDialogProps)})}return s},Cu=n(29668),ku=function(e){var t=e["aria-label"],n=(0,r.__rest)(e,["aria-label"]);s("SearchBox",n.id);var a=function(e){return{root:{backgroundColor:Zt(e,"neutralHigh")}}}((0,d.DP)());return fe("SearchBox",n),l().createElement(Cu.G,(0,r.__assign)({ariaLabel:t,styles:n.disabled?void 0:a},n))},Tu=function(e){var t=e.title,n=e.titleAriaId,a=e.searchBoxProps,i=e.subtitle,s=e.closeButton,u=e.backButton,m=e.headerLeftRightPadding,p=e.headingTag,g=void 0===p?"h1":p,h=e.operationData,f=e.withHeaderHorizontalLine,v=(0,d.DP)(),x=hu(v,{headerLeftRightPadding:m||"24px",withHeaderHorizontalLine:f}),E=a?6:i?8:0,y=function(e){var t=l().createElement(l().Fragment,null);return e||s?(e&&(t="string"===typeof e?l().createElement(On,{type:"heading",tag:g,variant:"paneHeader",id:n,lines:2},e):"src"in e?l().createElement(Ba,(0,r.__assign)({},e,{id:n,height:24})):l().createElement(o.B,{horizontal:!0,tokens:{childrenGap:"8px"},verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Ba,(0,r.__assign)({},e.image,{id:n,height:24})),l().createElement(On,{type:"heading",tag:g,variant:"paneHeader",lines:2},e.text))),l().createElement(o.B,{className:x,tokens:{childrenGap:E},doNotRenderFalsyValues:!0},l().createElement(o.B,{horizontal:!0,horizontalAlign:"space-between",styles:{root:{minHeight:"32px"}},doNotRenderFalsyValues:!0},u?l().createElement(o.B,{horizontal:!0,horizontalAlign:"start",tokens:{childrenGap:"16px"},doNotRenderFalsyValues:!0},l().createElement(kr.K,(0,r.__assign)({styles:fu(v,!0),iconProps:{iconName:"Back"}},u,{ariaLabel:u["aria-label"]})),t):t,s?l().createElement("div",{style:{width:"24px",flexShrink:0}}):null),l().createElement(o.B,{tokens:{childrenGap:16},doNotRenderFalsyValues:!0},a?l().createElement(ku,(0,r.__assign)({},a)):null,i?l().createElement(ur,(0,r.__assign)({},i)):null))):t},b=y(t);if(h){var _=l().createElement(l().Fragment,null,l().createElement("div",{style:{position:"absolute",width:"100%",zIndex:1},"aria-hidden":!0},l().createElement(gt.Z,{styles:vu})),h.progressDialogTitle?y(h.progressDialogTitle):b),w=y(h.errorDialogTitle);return l().createElement(c.TwoUIProgressView,{operationData:h.progressViewOperationData,inertView:b,firstLoadView:_,updatingView:_,updateFailedView:w,finishedView:l().createElement(l().Fragment,null,h.successDialogTitle?y(h.successDialogTitle):b),failedView:w})}return b},Su=function(e){var t=e.closeButton,n=e.onCloseButtonClicked,a=e.headerLeftRightPadding,i=void 0===a?"24px":a,c=(0,d.DP)(),s=hu(c,{headerLeftRightPadding:i,withHeaderHorizontalLine:!1});return t?l().createElement(o.B,{className:s,styles:{root:{position:"absolute",top:0,right:0}},doNotRenderFalsyValues:!0},l().createElement(kr.K,(0,r.__assign)({styles:fu(c),iconProps:{iconName:"Cancel"},onClick:function(e){n&&e&&n(e)}},t,{ariaLabel:t["aria-label"]}))):null},Pu=function(e){var t=e.subText,n=e.operationData,r=function(){var e;return(0,F.Zq)({marginBottom:"24px",selectors:(e={},e[$.maxS]={marginBottom:"16px"},e)})}(),a=function(e){return e?l().createElement(o.B,{className:r,doNotRenderFalsyValues:!0},l().createElement(In,{variant:"bodyPrimaryText"},e)):l().createElement(l().Fragment,null)},i=a(t),s=(null===n||void 0===n?void 0:n.progressSubText)?a(n.progressSubText):i;if(n){var d=a(n.errorSubText);return l().createElement(c.TwoUIProgressView,{operationData:n.progressViewOperationData,inertView:i,firstLoadView:i,updatingView:s,updateFailedView:d,finishedView:n.successSubText?a(n.successSubText):i,failedView:d})}return i},Bu=function(e){e.isBlocking;var t,n,a,u,m,p=e.showOverlay,g=void 0===p||p,h=e.headerLeftRightPadding,f=e.headingTag,v=e.withHeaderHorizontalLine,x=e.dialogStylesTemp,E=e.bodyStyleTemp,y=e.topOffsetFixed,_=void 0!==y&&y,w=e.minBodyHeight,C=e.staticBodyWidth,k=e.isOpen,T=void 0!==k&&k,S=e.isModeless,P=void 0!==S&&S,B=e.onDismiss,L=e.onDismissed,A=e.title,I=e.searchBoxProps,D=e.subtitle,R=e.subText,z=e.contentId,H=e.closeButton,N=e.backButton,V=e.dialogFooterProps,M=e.operationData,W=e.stickyHeaderFooter,O=e.removeBodyBottomPadding,G=e.borderRadius,U=void 0===G?"8px":G,j=e.hostId,K=e.fullScreenMode,Z=e.children,X=(0,r.__rest)(e,["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"]);s("Dialog",X.id),fe("Dialog",X);var Y=(0,i.useRef)(document.activeElement);(0,i.useEffect)((function(){return null===W||void 0===W||W.bodyMinHeight,function(){Y.current&&Y.current.focus()}}),[null===W||void 0===W?void 0:W.bodyMinHeight]);var q=(0,Xo.B)("twoui"),Q=(0,d.DP)(),J=function(e){var t;return void 0===e&&(e=uu),(0,F.Zq)({padding:e.padding,paddingBottom:e.removeBodyBottomPadding?0:void 0,selectors:(t={},t[$.maxS]={padding:e.smallScreenPadding,paddingBottom:e.removeBodyBottomPadding?0:void 0},t)})}({padding:E?E.padding:uu.padding,smallScreenPadding:E?E.smallScreenPadding:uu.smallScreenPadding,removeBodyBottomPadding:O}),ee={isBlocking:!1,styles:bu(Q,w,C,x,U,K),topOffsetFixed:_,isOpen:T,onDismiss:B,onDismissed:L,isModeless:P,overlay:{styles:{root:{opacity:g?void 0:0}},onClick:void 0},isClickableOutsideFocusTrap:!1,titleAriaId:q,containerClassName:W?yu(W).main:gu(Q),layerProps:{eventBubblingEnabled:!0,hostId:j},allowTouchBodyScroll:!0,firstFocusableSelector:(null===W||void 0===W?void 0:W.firstFocusOnContent)?xu:void 0},te=function(e){B&&e&&B(e)},ne=(0,c.useTwoUIFlights)().includes(b),re=l().createElement(xi,{announcedComponent:mi},l().createElement(Tu,{title:A,titleAriaId:q,searchBoxProps:I,subtitle:D,closeButton:H,backButton:N,headerLeftRightPadding:h,headingTag:f,withHeaderHorizontalLine:v,operationData:M?{progressViewOperationData:M.progressViewOperationData,errorDialogTitle:null===(t=M.errorDialogProps)||void 0===t?void 0:t.title,successDialogTitle:null===(n=M.successDialogProps)||void 0===n?void 0:n.title,progressDialogTitle:null===(a=M.progressDialogProps)||void 0===a?void 0:a.title}:void 0,onCloseButtonClicked:te}),l().createElement(o.B,{id:z,className:(null===W||void 0===W?void 0:W.firstFocusOnContent)?"".concat(J," ").concat(xu):J,styles:Eu(W,w),tabIndex:(null===W||void 0===W?void 0:W.firstFocusOnContent)?-1:void 0,doNotRenderFalsyValues:!0},l().createElement(Pu,{subText:R,operationData:M?{progressViewOperationData:M.progressViewOperationData,errorSubText:M.errorDialogProps.subText,successSubText:null===(u=M.successDialogProps)||void 0===u?void 0:u.subText,progressSubText:null===(m=M.progressDialogProps)||void 0===m?void 0:m.subText}:void 0}),function(){if(ne){var e="AMC"===Q.name?au.o:(0,d.Sy)(Q);return l().createElement(ou.q,{style:{display:"grid"},theme:e,dir:(0,_e.jI)()?"rtl":"ltr"},Z)}return Z}()),l().createElement(wu,{operationData:M,footerProps:V}),l().createElement(Su,{closeButton:H,onCloseButtonClicked:te,headerLeftRightPadding:h}));return l().createElement(ru.a,(0,r.__assign)({},ee),re)},Lu=l().createContext({openDialog:function(e,t){return(0,u.DA)()},closeDialog:function(e){},switchToDialog:function(e,t){return(0,u.DA)()}}),Au=function(e,t){switch(t.type){case"closeDialog":return!t.id&&e.length>0?e.slice(1):e.filter((function(e){return e.id!==t.id}));case"openDialog":return(0,r.__spreadArray)([{id:t.id,controlledDialog:t.dialog}],e.filter((function(e){return e.id!==t.id})),!0);default:return e}},Iu=function(e){var t=e.children,n=(0,i.useReducer)(Au,[]),r=n[0],a=n[1],o=(0,i.useMemo)((function(){var e=function(e,t){var n=t;return n||(n=(0,u.DA)()),a({type:"openDialog",dialog:e,id:n}),n},t=function(e){a({type:"closeDialog",id:e})};return{openDialog:e,closeDialog:t,switchToDialog:function(n,r){return t(),e(n,r)}}}),[a]),c=r.map((function(e){return l().createElement("div",{key:e.id},e.controlledDialog)}));return l().createElement(Lu.Provider,{value:o},t,c)},Fu=function(){return(0,i.useContext)(Lu)},Du=function(e){var t=e.src,n=e.alt;return l().createElement(ot,{horizontalAlign:"center"},l().createElement(it,{padding:"24px 0 0 0"},l().createElement(Ba,{src:t,alt:n,imageType:"altTextImage"})))},Ru=function(e){var t=e.children;return l().createElement(vo.Provider,{value:{drawerOpen:false,drawerID:"testDrawer",drawerHeaderTitleId:"testDrawerHeaderTitle"}},t)},zu=function(e){var t=e.backgroundColor,n=void 0===t?"neutralHigh":t,r=e.anchor,a=void 0===r?"right":r,i=e.numberOfTitleLines,c=void 0===i?2:i,s=e.borderRadius,u=void 0===s?"4px":s,m=e.shadow,p=void 0!==m&&m,g=e.showDivider,h=void 0!==g&&g,f=(0,d.DP)(),v=ce(),x=!("s"===v||"m"===v),E="right"!==a&&x?"space-between":"end";return l().createElement(o.B,{styles:ue(f,u,p,h),doNotRenderFalsyValues:!0},l().createElement(mt,{totalSlots:12,backgroundColor:n},l().createElement(pt,{slots:6},l().createElement(nt,{horizontal:!0,height:49,verticalAlign:"center"},l().createElement(rt,{padding:"22px 14px 22px 22px",key:"1"},l().createElement(Qa,{height:24,width:24})),l().createElement(nt,{horizontalAlign:"start"},l().createElement(rt,{padding:"4px",key:"2"},l().createElement(Qa,{height:12,width:153})),2===c?l().createElement(rt,{padding:"4px",key:"3"},l().createElement(Qa,{height:8,width:153})):null))),l().createElement(pt,{slots:6},l().createElement(nt,{horizontal:!0,height:49,verticalAlign:"center",horizontalAlign:E},x?l().createElement(rt,{padding:"21px",key:"1"},l().createElement(Qa,{height:8,width:127})):null,l().createElement(rt,{padding:"3px 19px 3px 3px",key:"2"},l().createElement(Qa,{height:12,width:12}))))))},Hu=n(3564),Nu=n(25418),Vu=n(12318),Mu={height:45},Wu=function(e){var t=e.width,n=void 0===t?145:t;return l().createElement(o.B,{style:Mu,verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Qa,{width:n,height:16}))},Ou=function(){return l().createElement(o.B,{verticalFill:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Wt.y,{size:Ot.H.medium}))},Gu=function(e){var t,n=e["aria-label"],a=e["data-bi-prefix"],o=e.value,u=e.pageArea,m=e.placeholder,p=e.options,g=e.onChange,h=e.label,v=e.width,x=e.calloutWidth,E=e.calloutPosition,y=void 0===E?"bottom-center":E,b=e.alignTitle,_=e.maxHeight,w=e.descriptions,C=void 0!==w&&w,k=e.disabled,T=void 0!==k&&k,S=e.multiSelect,P=void 0!==S&&S,B=e.dropdownStyle,L=void 0===B?"default":B,A=e.title,I=e.componentRef,F=e.calloutPreventDismissOnScroll,D=void 0!==F&&F,R=e.required,z=e.disableResponsiveMode,H=void 0!==z&&z,N=(0,r.__rest)(e,["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"]),V=(0,c.useTwoUITelemetry)();s("Dropdown",N.id),fe("Dropdown",N);var W,O=(0,d.DP)(),G=(0,i.useRef)(null),U="borderless"===L?O.semanticColors.bodyBackground:O.palette.neutralHigh,j={title:{backgroundColor:T?O.palette.neutralLighterAlt:U,borderColor:"borderless"===L?"transparent":void 0,textAlign:b},dropdownItem:{backgroundColor:O.palette.neutralHigh,height:"auto"},dropdownItemSelected:{height:"auto"},dropdownItemDisabled:{backgroundColor:O.palette.neutralHigh,height:"auto"},dropdownOptionText:{overflow:"visible",whiteSpace:"normal"},dropdownItemSelectedAndDisabled:(t={},t[ne.active]={backgroundColor:"transparent",border:"1px solid highlight"},t.height="auto",t),caretDown:{color:T?"auto":O.palette.neutralSecondary}};v&&(j.dropdown={width:v}),C&&(j.dropdownItem={backgroundColor:O.palette.neutralHigh,selectors:{".ms-Button-flexContainer":{width:"100%"}},height:"auto"},j.dropdownItemSelected={selectors:{".ms-Button-flexContainer":{width:"100%"},height:"auto"}},W=function(e){return l().createElement("div",{style:{width:"100%",display:"flex",justifyContent:"space-between"}},l().createElement("span",null,e.text),e.description?l().createElement("span",null,e.description):l().createElement(l().Fragment,null))});var K={};P?K.selectedKeys=Array.isArray(o)?o.slice():null===o?o:[o]:K.selectedKey=Array.isArray(o)?o.slice():o;var Z=p.map((function(e,t){return"divider"===e.itemType?{key:"divider_".concat(t),text:"",itemType:Hu.W.Divider}:(0,r.__assign)((0,r.__assign)({},e),{itemType:Hu.W.Normal})})),X={calloutMaxHeight:_,directionalHint:f[y],preventDismissOnEvent:D?function(e){return"scroll"===e.type}:void 0},Y=(0,r.__assign)({placeholder:m,options:Z,onChange:function(e,t,n){if(t){var r={clickId:"".concat(a,"-").concat(t.id),pageArea:u};V.reportClick(r),g(e,{key:t.key.toString(),text:t.text,ariaLabel:t.ariaLabel,id:t.id},t.selected,n)}else g(e,void 0,void 0,n)},disabled:T,required:R,label:h,dropdownWidth:x,ariaLabel:n,calloutProps:X,styles:j,onRenderOption:W,multiSelect:P,componentRef:I},K);if(void 0!==A&&(Y.onRenderTitle=function(){return l().createElement(l().Fragment,null,A)}),H&&(Y.responsiveMode=Nu.AR.unknown),h&&(Y.ariaLabel=void 0),N.operationData){var q=N.operationData,Q=(0,r.__rest)(N,["operationData"]);Y=(0,r.__assign)((0,r.__assign)({},Y),Q);var J=void 0;J="callout"===q.errorProps.errorType?l().createElement(l().Fragment,null,l().createElement("div",{ref:G,style:{width:v}},l().createElement(Vu.m,(0,r.__assign)({},Y))),l().createElement(Br,{calloutPosition:"bottom-center",targetOrTriggerButton:G,errorMessageAriaLabel:q.errorProps.errorCallout.errorMessageAriaLabel,errorMessage:q.errorProps.errorCallout.errorMessage})):l().createElement(Vu.m,(0,r.__assign)({},Y,{errorMessage:q.errorProps.errorMessage}));var $=(0,r.__assign)((0,r.__assign)({},j),{title:{backgroundColor:O.palette.neutralHigh,border:"1px solid ".concat(O.palette.neutralQuaternary),textAlign:b}});return l().createElement(M,{operationData:q.progressViewOperationData,firstLoadView:l().createElement(Wu,null),updatingView:l().createElement(Vu.m,(0,r.__assign)({},Y,{disabled:!0,onRenderCaretDown:Ou,styles:$})),finishedView:l().createElement(Vu.m,(0,r.__assign)({},Y)),updateFailedView:J,failedView:void 0})}return Y=(0,r.__assign)((0,r.__assign)({},Y),N),l().createElement(Vu.m,(0,r.__assign)({},Y))},Uu=function(){return l().createRef()},ju=n(56758),Ku=n(88714),Zu={info:ju.H.info,secondary:ju.H.info,warning:ju.H.warning,"severe-warning":ju.H.severeWarning,error:ju.H.error,blocked:ju.H.blocked,success:ju.H.success},Xu=function(e,t,n,a,o){var i,l={content:{padding:"8px 0"},actions:{alignItems:"center",marginRight:"24px",lineHeight:"16px"},innerText:{whiteSpace:"normal",overflow:"visible",width:"100%"},iconContainer:{alignItems:"center",marginLeft:t?"0px":"16px"},root:(i={".ms-Link":{color:e.semanticColors.messageLink},".ms-Link > span":{color:e.semanticColors.messageLink}},i[F.up]={".ms-Link":{color:"linktext"},".ms-Link:hover":{color:"linktext"},".ms-Link > span":{color:"linktext"},span:{color:"windowtext"}},i)};if(n&&(l.actions={alignItems:"flex-end",marginBottom:"8px",marginRight:"24px"},l.innerText=(0,F.Zq)(l.innerText,{lineHeight:"normal"}),l.icon={lineHeight:"16px",paddingTop:"3px"}),t&&(l.icon={display:"none"},l.text={marginLeft:"0px"}),"info"===a&&(l.root=(0,r.__assign)((0,r.__assign)({},l.root),{background:e.palette.neutralHigh})),o){var c=void 0;switch(o){case"floating":c={borderRadius:"8px",boxShadow:pe.rest};break;case"embedded-dialog":c={borderRadius:"4px",border:"1px solid ".concat(e.palette.neutralLighterAlt)}}c&&(l.root=(0,r.__assign)((0,r.__assign)({},l.root),c))}return l},Yu=function(e){return null===e||void 0===e?void 0:e["aria-label"]},qu=function(e){var t=e.messageContent,n=e.messageHeader,a=e.messageBarType,o=void 0===a?"info":a,u=e.actionProps,m=e.dismissButtonProps,p=e.hideIcon,g=e.iconProps,h=e.messageBarVariant,f=void 0===h?"default":h,v=e.isMultiline,x=e.messageContentId,E=(0,r.__rest)(e,["messageContent","messageHeader","messageBarType","actionProps","dismissButtonProps","hideIcon","iconProps","messageBarVariant","isMultiline","messageContentId"]),y=(0,c.useTwoUITelemetry)(),_=(0,i.useRef)(null);s("MessageBar",E.id),fe("MessageBar",E);var w=(0,c.useTwoUIFlights)().includes(b);(0,i.useEffect)((function(){var e=_.current;if(e){var t=e.querySelector(".ms-MessageBar-content");t&&x&&t.setAttribute("aria-labelledby",x)}}),[x]);var C,k,T,S=(0,d.DP)();if(u)if(Array.isArray(u))C=l().createElement(nt,{horizontal:!0,childrenGap:12,verticalAlign:"center"},u.map((function(e){return"noHrefLink"===e.actionType?l().createElement(nt,null,l().createElement(ir,(0,r.__assign)({},e))):"button"===e.actionType?l().createElement(nt,null,l().createElement(qr,(0,r.__assign)({type:"primaryAlt"},e))):l().createElement(nt,null,l().createElement(nr,(0,r.__assign)({},e)))})));else if("noHrefLink"===u.actionType){u.actionType;var P=(0,r.__rest)(u,["actionType"]);C=l().createElement(ir,(0,r.__assign)({},P))}else if("button"===u.actionType){u.actionType,P=(0,r.__rest)(u,["actionType"]);C=l().createElement(qr,(0,r.__assign)({type:"primaryAlt"},P))}else{u.actionType,P=(0,r.__rest)(u,["actionType"]);C=l().createElement(nr,(0,r.__assign)({},P))}k="string"===typeof t?l().createElement(Fn,null,t):l().createElement(ur,(0,r.__assign)({},t)),T=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}(o,S,g);var B=w?0:6;return l().createElement(Ku.n,(0,r.__assign)({ref:_,messageBarType:Zu[o],onDismiss:m?function(){if(m){var e={clickId:"".concat(m["data-bi-id"]),pageArea:"".concat(m.pageArea)};y.reportClick(e),m.onDismiss()}}:void 0,dismissButtonAriaLabel:Yu(m),isMultiline:null!==v&&void 0!==v&&v,actions:C,styles:Xu(S,p,n,o,f),messageBarIconProps:T},E),l().createElement(nt,{childrenGap:B,id:x},l().createElement(Fn,{variant:"subjectTitle",block:!0},n),k))},Qu=function(){return l().createElement(qu,{actionProps:{"aria-label":"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435",children:"\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435","data-bi-id":"emergency-banner-link",href:"https://blogs.microsoft.com/on-the-issues/2022/03/04/microsoft-suspends-russia-sales-ukraine-conflict?icid=mscom_marcom_TS1_Sales_update"},messageBarType:"info",messageContent:"\u041c\u0430\u0439\u043a\u0440\u043e\u0441\u043e\u0444\u0442 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b \u0432\u0441\u0435 \u043d\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0434\u0430\u0436\u0438 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u043e\u0432 \u0438 \u0443\u0441\u043b\u0443\u0433 \u0432 \u0411\u0435\u043b\u0430\u0440\u0443\u0441\u0438 \u0438 \u0420\u043e\u0441\u0441\u0438\u0438."})},Ju=function(e){var t=e.errorMessage,n=e.description,a=e.imageSrc,o=e.correlationVector,i=e.align,c=void 0===i?"auto":i,d=e.buttonProps,u=(0,r.__rest)(e,["errorMessage","description","imageSrc","correlationVector","align","buttonProps"]);return s("ErrorIllustration",u.id),fe("ErrorIllustration",u),l().createElement(nt,(0,r.__assign)({},u),l().createElement(rt,{align:c},l().createElement(Ba,{imageType:"ariaHiddenImage",src:a})),l().createElement(rt,{align:c},l().createElement(Fa,{image:{iconName:"Error",imageType:"icon"},size:"sm"},t)),l().createElement(rt,{align:c},l().createElement(nt,{margin:"0 26px",childrenGap:"26px"},n?l().createElement(rt,{align:c},l().createElement(Fn,{variant:"bodySecondaryText"},n)):null,l().createElement(rt,{align:c},l().createElement(Fn,null,"TraceID: ",o)),d?l().createElement(rt,{align:c},l().createElement(qr,(0,r.__assign)({},d))):null)))},$u=function(){var e;return{root:(e={borderRadius:"8px",overflow:"hidden",boxShadow:a.f.depth4},e[F.up]={border:"1px solid WindowText"},e)}},em=function(e){var t=e.variant,n=(0,r.__rest)(e,["variant"]);if("ThreeThreeThreeThree"===t)return l().createElement(tm,(0,r.__assign)({},n))},tm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,a=e.fourthSegment,o=e.backgroundColor;switch(ce()){case"xxxl":case"xxl":case"xl":return l().createElement(mt,{totalSlots:12,padding:"16px",backgroundColor:o},l().createElement(pt,{slots:3},t),l().createElement(pt,{slots:3},n),l().createElement(pt,{slots:3},r),l().createElement(pt,{slots:3},a));case"l":return l().createElement(nt,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},l().createElement(mt,{totalSlots:12},l().createElement(pt,{slots:6},t),l().createElement(pt,{slots:6},n)),l().createElement(mt,{totalSlots:12},l().createElement(pt,{slots:6},r),l().createElement(pt,{slots:6},a)));case"m":case"s":return l().createElement(nt,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},t,n,r,a)}},nm=function(e){var t=e.variant,n=(0,r.__rest)(e,["variant"]);if("ThreeThreeThreeThree"===t)return l().createElement(rm,(0,r.__assign)({},n))},rm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,a=e.fourthSegment,o=e.backgroundColor;switch(ce()){case"xxxl":case"xxl":case"xl":return l().createElement(be,{totalSlots:12,padding:"16px",backgroundColor:o},l().createElement(ye,{slots:3},t),l().createElement(ye,{slots:3},n),l().createElement(ye,{slots:3},r),l().createElement(ye,{slots:3},a));case"l":return l().createElement(et,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},l().createElement(be,{totalSlots:12},l().createElement(ye,{slots:6},t),l().createElement(ye,{slots:6},n)),l().createElement(be,{totalSlots:12},l().createElement(ye,{slots:6},r),l().createElement(ye,{slots:6},a)));case"m":case"s":return l().createElement(et,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:o},t,n,r,a)}},am=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(nm,(0,r.__assign)({},n),t):l().createElement(em,(0,r.__assign)({},n),t)},om=function(e){var t=e.segment,n=e.backgroundColor;return l().createElement(nt,{horizontal:!1,padding:"16px",backgroundColor:n},t)},im=function(e){var t=e.segment,n=e.backgroundColor;return l().createElement(et,{horizontal:!1,padding:"16px",backgroundColor:n},t)},lm=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(im,(0,r.__assign)({},n),t):l().createElement(om,(0,r.__assign)({},n),t)},cm=function(e){var t=e.variant,n=(0,r.__rest)(e,["variant"]);switch(t){case"FourFourFour":return l().createElement(sm,(0,r.__assign)({},n));case"SixThreeThree":return l().createElement(dm,(0,r.__assign)({},n))}},sm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,a=e.backgroundColor;switch(ce()){case"xxxl":case"xxl":case"xl":return l().createElement(mt,{totalSlots:12,padding:"16px",backgroundColor:a},l().createElement(pt,{slots:4},t),l().createElement(pt,{slots:4},n),l().createElement(pt,{slots:4},r));case"l":case"m":case"s":return l().createElement(nt,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:a},t,n,r)}},dm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,a=e.backgroundColor;switch(ce()){case"xxxl":case"xxl":case"xl":return l().createElement(mt,{totalSlots:12,padding:"16px",backgroundColor:a},l().createElement(pt,{slots:6},t),l().createElement(pt,{slots:3},n),l().createElement(pt,{slots:3},r));case"l":return l().createElement(nt,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:a},t,l().createElement(mt,{totalSlots:12},l().createElement(pt,{slots:6},n),l().createElement(pt,{slots:6},r)));case"m":case"s":return l().createElement(nt,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:a},t,n,r)}},um=function(e){var t=e.variant,n=(0,r.__rest)(e,["variant"]);switch(t){case"FourFourFour":return l().createElement(mm,(0,r.__assign)({},n));case"SixThreeThree":return l().createElement(pm,(0,r.__assign)({},n))}},mm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,a=e.backgroundColor;switch(ce()){case"xxxl":case"xxl":case"xl":return l().createElement(be,{totalSlots:12,padding:"16px",backgroundColor:a},l().createElement(ye,{slots:4},t),l().createElement(ye,{slots:4},n),l().createElement(ye,{slots:4},r));case"l":case"m":case"s":return l().createElement(et,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:a},t,n,r)}},pm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.thirdSegment,a=e.backgroundColor;switch(ce()){case"xxxl":case"xxl":case"xl":return l().createElement(be,{totalSlots:12,padding:"16px",backgroundColor:a},l().createElement(ye,{slots:6},t),l().createElement(ye,{slots:3},n),l().createElement(ye,{slots:3},r));case"l":return l().createElement(et,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:a},t,l().createElement(be,{totalSlots:12},l().createElement(ye,{slots:6},n),l().createElement(ye,{slots:6},r)));case"m":case"s":return l().createElement(et,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:a},t,n,r)}},gm=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(um,(0,r.__assign)({},n),t):l().createElement(cm,(0,r.__assign)({},n),t)},hm=function(e){var t=e.variant,n=(0,r.__rest)(e,["variant"]);switch(t){case"SixSix":return l().createElement(fm,(0,r.__assign)({},n));case"OneThree":return l().createElement(vm,(0,r.__assign)({},n));case"OneTwo":return l().createElement(xm,(0,r.__assign)({},n));case"OneOne":return l().createElement(Em,(0,r.__assign)({},n))}},fm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,a=e.compact,o=void 0!==a&&a,i=ce(),c=l().createElement(mt,{totalSlots:12,padding:"16px",backgroundColor:r},l().createElement(pt,{slots:6},t),l().createElement(pt,{slots:6},n)),s=l().createElement(nt,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(i){case"xxxl":case"xxl":case"xl":return c;case"l":return o?c:s;case"m":case"s":return s}},vm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,a=e.compact,o=void 0!==a&&a,i=ce(),c=l().createElement(mt,{totalSlots:4,padding:"16px",backgroundColor:r},l().createElement(pt,{slots:1},t),l().createElement(pt,{slots:3},n)),s=l().createElement(nt,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(i){case"xxxl":case"xxl":case"xl":return c;case"l":return o?c:s;case"m":case"s":return s}},xm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,a=e.compact,o=void 0!==a&&a,i=ce(),c=l().createElement(mt,{totalSlots:3,padding:"16px",backgroundColor:r},l().createElement(pt,{slots:1},t),l().createElement(pt,{slots:2},n)),s=l().createElement(nt,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(i){case"xxxl":case"xxl":case"xl":return c;case"l":return o?c:s;case"m":case"s":return s}},Em=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,a=e.compact,o=void 0!==a&&a,i=ce(),c=l().createElement(mt,{totalSlots:2,padding:"2px",backgroundColor:r},l().createElement(pt,{slots:1},t),l().createElement(pt,{slots:1},n)),s=l().createElement(nt,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(i){case"xxxl":case"xxl":case"xl":return c;case"l":return o?c:s;case"m":case"s":return s}},ym=function(e){var t=e.variant,n=(0,r.__rest)(e,["variant"]);switch(t){case"SixSix":return l().createElement(bm,(0,r.__assign)({},n));case"OneThree":return l().createElement(_m,(0,r.__assign)({},n));case"OneTwo":return l().createElement(wm,(0,r.__assign)({},n));case"OneOne":return l().createElement(Cm,(0,r.__assign)({},n))}},bm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,a=e.compact,o=void 0!==a&&a,i=ce(),c=l().createElement(be,{totalSlots:12,padding:"16px",backgroundColor:r},l().createElement(ye,{slots:6},t),l().createElement(ye,{slots:6},n)),s=l().createElement(et,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(i){case"xxxl":case"xxl":case"xl":return c;case"l":return o?c:s;case"m":case"s":return s}},_m=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,a=e.compact,o=void 0!==a&&a,i=ce(),c=l().createElement(be,{totalSlots:4,padding:"16px",backgroundColor:r},l().createElement(ye,{slots:1},t),l().createElement(ye,{slots:3},n)),s=l().createElement(et,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(i){case"xxxl":case"xxl":case"xl":return c;case"l":return o?c:s;case"m":case"s":return s}},wm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,a=e.compact,o=void 0!==a&&a,i=ce(),c=l().createElement(be,{totalSlots:3,padding:"16px",backgroundColor:r},l().createElement(ye,{slots:1},t),l().createElement(ye,{slots:2},n)),s=l().createElement(et,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(i){case"xxxl":case"xxl":case"xl":return c;case"l":return o?c:s;case"m":case"s":return s}},Cm=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,a=e.compact,o=void 0!==a&&a,i=ce(),c=l().createElement(be,{totalSlots:2,padding:"2px",backgroundColor:r},l().createElement(ye,{slots:1},t),l().createElement(ye,{slots:1},n)),s=l().createElement(et,{horizontal:!1,childrenGap:"12px",padding:"16px",backgroundColor:r},t,n);switch(i){case"xxxl":case"xxl":case"xl":return c;case"l":return o?c:s;case"m":case"s":return s}},km=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(ym,(0,r.__assign)({},n),t):l().createElement(hm,(0,r.__assign)({},n),t)},Tm="8px",Sm="--comparison-card-col",Pm=(D({root:function(e){var t;return{display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:e.palette.neutralHigh,borderRadius:Tm,boxShadow:pe.hover,selectors:(t={},t[F.up]={outline:"1px solid transparent"},t)}},badge:function(e){return{display:"flex",padding:"0px 24px",borderTopLeftRadius:Tm,borderTopRightRadius:Tm,backgroundColor:e.palette.highlighter,height:"28px",alignItems:"center",span:{alignSelf:"center !important"}}},header:{margin:"16px 24px 24px 24px"},featureList:{listStyle:"none",margin:"0 24px",marginBottom:"auto",padding:0,columns:"var(".concat(Sm,", auto)")," > *":{breakInside:"avoid"}},actions:{display:"flex",flexDirection:"column",padding:"16px 24px 24px 24px"," > *:not(:last-child)":{marginBottom:"12px"}}}),D({badgeCenter:{textAlign:"center",justifyContent:"center"},headerCenter:{textAlign:"center",span:{alignSelf:"center !important"}},headerNoBadge:{marginTop:"44px"},bottomMargin:{paddingBottom:"32px"},actionsCenter:{textAlign:"center"},actionFullWidth:{button:{width:"100%"}}}),D({root:(Ed={display:"flex",flexDirection:"column",gap:"16px",listStyle:"none",padding:0,margin:0},Ed[Sm]="auto",Ed["> *"]={flex:1},Ed),groupItem:{display:"flex","> *":{flex:1}}}),{flexDirection:"row",flexWrap:"wrap","> *":{flexBasis:"49%"}}),Bm={"> *":{flexBasis:"0"}},Lm={"> :first-child":(yd={flexBasis:"100%"},yd[Sm]=2,yd)},Am={"> :first-child":(bd={flexBasis:"0"},bd[Sm]="auto",bd)},Im=(D({rootL:(_d={},_d[$.minL]={flexDirection:"row"},_d),rootXl:(wd={},wd[$.minXl]={flexDirection:"row"},wd)}),D({rootL:(Cd={},Cd[$.minL]=(0,r.__assign)({},Pm),Cd[$.minXl]=(0,r.__assign)({},Bm),Cd),rootXl:(kd={},kd[$.minXl]=(0,r.__assign)({},Pm),kd[$.minXxl]=(0,r.__assign)({},Bm),kd)}),D({rootL:(Td={},Td[$.minL]=(0,r.__assign)((0,r.__assign)({},Pm),Lm),Td[$.minXl]=(0,r.__assign)((0,r.__assign)({},Bm),Am),Td),rootXl:(Sd={},Sd[$.minXl]=(0,r.__assign)((0,r.__assign)({},Pm),Lm),Sd[$.minXxl]=(0,r.__assign)((0,r.__assign)({},Bm),Am),Sd)}),{height:57}),Fm=function(e){var t=e.width,n=void 0===t?"40px":t;return l().createElement(o.B,{style:Im,verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Qa,{width:n,height:12}))},Dm=function(e){var t,n=e.actionProps,a=(0,r.__rest)(e,["actionProps"]);switch(n.kind){case"button":n.kind;var o=(0,r.__rest)(n,["kind"]);t=l().createElement(qr,(0,r.__assign)({},o));break;case"actionButton":n.kind;var i=(0,r.__rest)(n,["kind"]);t=l().createElement(Ir,(0,r.__assign)({},i));break;case"hyperlink":n.kind;var c=(0,r.__rest)(n,["kind"]);t=l().createElement(nr,(0,r.__assign)({},c));break;case"noHrefLink":n.kind;var s=(0,r.__rest)(n,["kind"]);t=l().createElement(ir,(0,r.__assign)({},s));break;case"toggle":n.kind;var u=(0,r.__rest)(n,["kind"]);t=l().createElement(uo,(0,r.__assign)({},u));break;case"toggleShimmer":n.kind;var m=(0,r.__rest)(n,["kind"]);t=l().createElement(Fm,(0,r.__assign)({},m))}return"actionButton"===n.kind&&n.buttonTheme?l().createElement(Bn,(0,r.__assign)({},a),l().createElement(d.Dz,{variant:n.buttonTheme,noRootElement:!0},t)):l().createElement(Bn,(0,r.__assign)({},a),t)},Rm=function(){var e=ce(),t=se(e);return l().createElement(nt,null,l().createElement(nt,{padding:t?"20px 0px":"0px 0px 20px"},l().createElement(Qa,{width:"30%",height:25})),l().createElement(nt,{childrenGap:10},l().createElement(Qa,{width:"80%",height:15}),l().createElement(Qa,{width:"70%",height:15})))},zm=function(e){var t=e.tag,n=e.variant,a=e.text,o=e.headerColorOverride,i=e.weightOverride,c={tag:null!==t&&void 0!==t?t:"h5",variant:null!==n&&void 0!==n?n:"statusHeader",children:a};return l().createElement(Mt,(0,r.__assign)({},c,{colorOverride:o,weightOverride:i}))},Hm=function(e){var t,n,a=e.featureHeading,o=e.bodyText,i=e.bodyTextVariant,c=void 0===i?"bodyPrimaryText":i,s=e.ctaProps,d=e.operationData;if(a&&(t=l().createElement(zm,(0,r.__assign)({},a))),"string"===typeof o)n=l().createElement(Fn,{variant:c},o);else if(Array.isArray(o)){var u=o.map((function(e,t){return"string"===typeof e?l().createElement(Fn,{key:t,variant:c},e):l().createElement(ur,(0,r.__assign)({key:t},e))}));n=l().createElement(nt,{childrenGap:2},u)}else o&&(n=l().createElement(ur,(0,r.__assign)({},o)));var m="0 0 12px",p=ce(),g=se(p),h=l().createElement(nt,{grow:!0},t?l().createElement(rt,{margin:m},t):null,l().createElement(rt,{margin:m},n),l().createElement(nt,{horizontal:!g,childrenGap:12,verticalAlign:"baseline"},s?s.map((function(e,t){return l().createElement(Dm,(0,r.__assign)({key:t},e))})):null));return d?l().createElement(M,{operationData:d,firstLoadView:l().createElement(Rm,null),finishedView:h,failedView:void 0}):h},Nm=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[F.up]={":focus-within":{outline:"2px auto highlight"}},t)}:{root:(n={padding:"0px 5px 5px",boxSizing:"border-box",flex:"1 1 50%"},n[F.up]={":focus-within":{outline:"2px auto highlight"}},n)}},Vm=function(e){var t,n=e.featureHeading,a=e.mediaPropsList,i=e.operationData,c=ce(),s=se(c);n&&(t=l().createElement(zm,(0,r.__assign)({},n)));var d=null===a||void 0===a?void 0:a.map((function(e){return l().createElement(he.a,{styles:Nm(s)},l().createElement(Fa,{image:e.image,size:e.size,linkProps:e.linkProps},e.children))})),u=l().createElement(o.B,{doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:{root:{padding:"0px 0px 12px 0px"}},doNotRenderFalsyValues:!0},t),l().createElement(o.B,{horizontal:!0,wrap:!0,doNotRenderFalsyValues:!0},d));return i?l().createElement(M,{operationData:i,firstLoadView:l().createElement(Rm,null),finishedView:u,failedView:void 0}):u},Mm=n(90659),Wm=function(e){var t=e.aspectRatio,n=e.height,a=(0,r.__rest)(e,["aspectRatio","height"]);return l().createElement(Mm.y,(0,r.__assign)({style:{aspectRatio:t,height:n}},a))},Om={extraSmall:48,small:168,medium:224,large:300,extraLarge:400},Gm=function(e){return"card"===e||"alertCard"===e},Um=function(e,t,n,a,o){var i,l={backgroundColor:e.palette.neutralHigh,borderRadius:o,boxShadow:a?pe.rest:void 0,minHeight:Om[n],overflow:"hidden",selectors:(i={},i[F.up]={outline:"1px solid transparent"},i)};return"card"===t?{root:l}:"alertCard"===t?{root:(0,r.__assign)((0,r.__assign)({},l),{backgroundColor:e.palette.redLight})}:{root:{minHeight:Om[n]}}},jm=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)},Km=function(e,t,n,r,a){if(!n)return r?t?Gm(e)?"16px":"16px 0":jm(!!a,r):Gm(e)?t?"16px 32px":a?"16px 0 16px 32px":"16px 32px 16px 0":"16px 0"},Zm=function(e,t,n,r,a){return n||a?t?Gm(e)?"0 16px 16px":"0 0 16px":jm(!r,n,a):Gm(e)?t?"0 32px 16px":r?"16px 32px 16px 0":"16px 0 16px 32px":"16px 0"},Xm=function(e){var t=e.backgroundType,n=void 0===t?"card":t,a=e.layoutType,i=e.isImageBlockLeft,c=e.isImageBlockBottom,s=e.insidePaddingVariant,u=e.height,m=void 0===u?"medium":u,p=e.paddingVariant,g=e.showShadow,h=void 0===g||g,f=e.borderRadius,v=void 0===f?"8px":f,x=e.isImageFullBleed,E=void 0!==x&&x,y=e.imageSlot,b=e.contentSlot,_=e.isVerticalLayout,w=void 0===_?["s","m"]:_,C=(0,r.__rest)(e,["backgroundType","layoutType","isImageBlockLeft","isImageBlockBottom","insidePaddingVariant","height","paddingVariant","showShadow","borderRadius","isImageFullBleed","imageSlot","contentSlot","isVerticalLayout"]);fe("FeatureLayout",C);var k,T=ce(),S=(0,d.DP)(),P=w.includes(T);if(P)k=l().createElement(nt,{reversed:c},l().createElement(rt,{padding:Km(n,P,E,p)},y),l().createElement(rt,{padding:Zm(n,P,p)},b));else{var B="2/3"===a?7:6,L="2/3"===a?1:0,A=12-B-L;k=l().createElement(mt,{totalSlots:12,verticalAlign:"center",reversed:i},l().createElement(pt,{slots:B},l().createElement(nt,{padding:Zm(n,P,p,i,s)},b)),L?l().createElement(pt,{slots:L},l().createElement(l().Fragment,null)):null,l().createElement(pt,{slots:A},l().createElement(nt,{padding:Km(n,P,E,p,i)},y)))}return l().createElement(o.B,(0,r.__assign)({styles:Um(S,n,m,h,v)},C,{doNotRenderFalsyValues:!0}),k)},Ym=function(e){var t=e.height,n=void 0===t?"medium":t;return l().createElement(o.B,{doNotRenderFalsyValues:!0},l().createElement(Qa,{height:qm(n)}))},qm=function(e){return Om[e]},Qm=function(e){var t,n=e.imageProps,a=e.height,o=void 0===a?"medium":a,i=e.operationData,c=e.imageFit,s=e.imageGradientType;return t="parallax"===n.imageType?l().createElement(nt,{borderRadius:n.borderRadius,overflow:"hidden",width:"100%",height:"100%"},l().createElement(Wm,{height:qm(o),layers:n.imageLayers.map((function(e){return(0,r.__assign)((0,r.__assign)({},e),{children:l().createElement(Ba,{src:e.imageSrc,imageType:"ariaHiddenImage",imageFit:"cover",width:"100%",height:"100%"})})}))})):l().createElement(Ba,(0,r.__assign)({},n,{height:qm(o),imageFit:c,imageGradientType:s})),i?l().createElement(M,{operationData:i,firstLoadView:l().createElement(Ym,{height:o}),finishedView:t}):t},Jm=function(e){return l().createElement(Xm,(0,r.__assign)({},e,{imageSlot:l().createElement(Ym,{height:e.height}),contentSlot:l().createElement(Rm,null)}))},$m=function(e){var t=e.featureHeading,n=e.imageProps,a=e.insidePaddingVariant,o=(e.children,e.backgroundType),c=e.layoutType,d=void 0===c?"1/2":c,u=e.paddingVariant,m=e.showShadow,g=e.borderRadius,h=e.isImageBlockLeft,f=e.isImageBlockBottom,v=e.isImageFullBleed,x=e.isImageGradient,E=e.isVerticalLayout,y=void 0===E?["s","m"]:E,b=e.height,_=void 0===b?"medium":b,w=(0,r.__rest)(e,["featureHeading","imageProps","insidePaddingVariant","children","backgroundType","layoutType","paddingVariant","showShadow","borderRadius","isImageBlockLeft","isImageBlockBottom","isImageFullBleed","isImageGradient","isVerticalLayout","height"]);s("Feature",w.id),fe("Feature",w),(0,i.useEffect)((function(){var e;"mediaList"===w.kind&&p("Feature",[(e=w.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"===w.kind?w.mediaPropsList:void 0]);var C,k,T=ce(),S=y.includes(T);x&&(C=S?"toBottom":"toLeft"),k="mediaList"===w.kind?l().createElement(Vm,{featureHeading:t,mediaPropsList:w.mediaPropsList,operationData:w.operationData}):"noBodyContent"===w.kind?l().createElement(Hm,{featureHeading:t,ctaProps:w.ctaProps,operationData:w.operationData}):l().createElement(Hm,{featureHeading:t,bodyTextVariant:w.bodyTextVariant,bodyText:w.bodyText,ctaProps:w.ctaProps,operationData:w.operationData});var P=l().createElement(Jm,{backgroundType:"card",height:"medium",layoutType:"2/3"}),B=l().createElement(Xm,{backgroundType:o,layoutType:d,isImageBlockLeft:h,isImageBlockBottom:f,isImageFullBleed:v,insidePaddingVariant:a,height:_,paddingVariant:u,showShadow:m,borderRadius:g,isVerticalLayout:y,imageSlot:l().createElement(Qm,{imageProps:n,height:_,imageFit:v?"cover":"center-contain",imageGradientType:C,operationData:w.operationData}),contentSlot:k,id:w.id});return w.operationData?l().createElement(M,{operationData:w.operationData,inertView:P,firstLoadView:P,updatingView:P,finishedView:B,failedView:void 0}):B},ep=function(e){var t=e.url;s("IrisBeacon");var n=(0,u.d_)(t);return n?l().createElement(Ba,{imageType:"ariaHiddenImage",src:n}):null},tp=function(e){var t=e.url;s("IrisBeacon");var n=(0,u.d_)(t);if(!n)return null;return l().createElement(Sa,{src:n,imageType:"ariaHiddenImage"})},np=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(tp,(0,r.__assign)({},n),t):l().createElement(ep,(0,r.__assign)({},n),t)},rp=function(e){var t=e.impressionBeaconUrl,n=e.clickBeaconUrl,a=e.ctaProps,o=(0,r.__rest)(e,["impressionBeaconUrl","clickBeaconUrl","ctaProps"]);s("IrisFeature",o.id);var c=(0,i.useState)(!1),d=c[0],u=c[1],m=(0,i.useState)(!1),p=m[0],g=m[1],h=[];if(a){if(a.length>0){var f=a[0].actionProps;h.push({actionProps:(0,r.__assign)((0,r.__assign)({},f),{onClick:function(e){(null===f||void 0===f?void 0:f.onClick)&&f.onClick(e),u(!0)}})})}if(a.length>1){var v=a[1].actionProps;h.push({actionProps:(0,r.__assign)((0,r.__assign)({},v),{onClick:function(e){(null===v||void 0===v?void 0:v.onClick)&&v.onClick(e),g(!0)}})})}}return l().createElement(l().Fragment,null,l().createElement($m,(0,r.__assign)({ctaProps:h},o)),function(e){return e?l().createElement(np,{url:e}):l().createElement(l().Fragment,null)}(t),d?ap(n,"click1"):null,p?ap(n,"click2"):null)};function ap(e,t){var n=l().createElement(l().Fragment,null);if(e){var r=e.replace(/{ACTION}/g,t);n=l().createElement(np,{url:r})}return n}D({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 op=function(e){var t=e.variant,n=(0,r.__rest)(e,["variant"]);if("SixSix"===t)return l().createElement(cp,(0,r.__assign)({},n))},ip=function(e){return{root:{width:"50%",display:"flex",flexDirection:"column",flex:1,minHeight:e}}},lp=function(e){return{root:{height:e,minHeight:e,display:"flex",flexDirection:"column",flexGrow:1}}},cp=function(e){var t=e.firstSegment,n=e.secondSegment,r=e.backgroundColor,a=e.childrenGap,i=void 0===a?"12px 16px":a,c=e.minHeight;switch(ce()){case"xxxl":case"xxl":case"xl":return l().createElement(nt,{horizontal:!0,childrenGap:i,backgroundColor:r},l().createElement(o.B,{styles:ip(c),doNotRenderFalsyValues:!0},t),l().createElement(o.B,{styles:ip(c),doNotRenderFalsyValues:!0},n));case"l":case"m":case"s":return l().createElement(nt,{horizontal:!1,childrenGap:i,backgroundColor:r},l().createElement(o.B,{styles:lp(c),doNotRenderFalsyValues:!0},t),l().createElement(o.B,{styles:{root:{display:"flex",flexDirection:"column",flex:1}},doNotRenderFalsyValues:!0},n))}},sp=[$m,Jm,rp,qu,lm,km,gm,am];function dp(e){return W(e,sp,"ExpandedFeatureGroupContent")}var up=[Rd,qu,op];function mp(e){return W(e,up,"ExpandedFeatureGroupContent")}var pp,gp,hp,fp,vp=function(e,t){return{root:{borderBottom:t?"1px solid ".concat(e.palette.neutralLighter):"0px"}}},xp=function(e){var t=e.highlightArea,n=e.detailsArea,r=(0,d.DP)();return(0,i.useEffect)((function(){if(t)if(Array.isArray(t))for(var e=0;e<t.length;e++)O(t[e],sp,"ExpandedFeatureGroupContent");else O(t,sp,"ExpandedFeatureGroupContent")}),[t]),(0,i.useEffect)((function(){if(n)if(Array.isArray(n))for(var e=0;e<n.length;e++)O(n[e],up,"ExpandedFeatureGroupContent");else O(n,up,"ExpandedFeatureGroupContent")}),[n]),l().createElement(o.B,{doNotRenderFalsyValues:!0},t?l().createElement(o.B,{styles:vp(r,!!n),doNotRenderFalsyValues:!0},t):null,n?l().createElement(o.B,{doNotRenderFalsyValues:!0},n):null)},Ep=function(e){var t=e.drawerAreaProps,n=e.highlightArea,a=e.detailsArea;s("ExpandedFeatureGroup");var i,c=l().createElement(o.B,{styles:(i=!!t,{root:{marginTop:i?"1px":"0px"}}),doNotRenderFalsyValues:!0},l().createElement(xp,{highlightArea:n,detailsArea:a}));return l().createElement(o.B,{styles:$u(),doNotRenderFalsyValues:!0},t?l().createElement(Ws,(0,r.__assign)({borderRadius:"0px"},t),c):c)},yp=n(31244),bp=n(78352),_p=function(e){var t=e.personas,n=e.maxDisplayablePersonas,a=void 0===n?5:n,o=e.personaSize,i=e.overflowButton,c=void 0===i?"descriptive":i,d=e.overflowButtonProps,u=(0,r.__rest)(e,["personas","maxDisplayablePersonas","personaSize","overflowButton","overflowButtonProps"]);s("Facepile",u.id);var m=(0,r.__assign)((0,r.__assign)({},u),{personas:t.slice(0),maxDisplayablePersonas:a,personaSize:pl(o),overflowButtonType:yp.Z[c],overflowButtonProps:d,onRenderPersonaCoin:function(e){return l().createElement(_l,{hideText:!0,imageUrl:null===e||void 0===e?void 0:e.imageUrl,size:o,text:null===e||void 0===e?void 0:e.personaName})}});return l().createElement(bp.g,(0,r.__assign)({},m))},wp="100vh",Cp={root:{width:"100%",minHeight:wp}},kp={root:{overflowX:"hidden",width:"100vw",minHeight:wp}},Tp=function(e){return{root:{position:"fixed",minHeight:"44px",zIndex:u.XZ.twoUINavBar,width:"100%",backgroundColor:e.semanticColors.bodyBackground}}},Sp={root:{flex:2,boxSizing:"border-box",width:"100%",selectors:(pp={"#uhf-footer > div":{paddingLeft:0,paddingRight:0}},pp[$.maxS]={padding:"0 16px 10px",width:"100%"},pp[$.minM]={padding:"0 16px 10px",width:"100%"},pp[$.minL]={padding:"0 48px 10px",width:"100%"},pp[$.minXl]={padding:"0 54px 10px",width:"100%"},pp[$.minXxl]={padding:"0 0 10px",margin:"0 auto",maxWidth:"968px",width:"100%"},pp[$.minXxxl]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},pp)}},Pp=function(e){var t=e.messageBarContainer,n=e.leftNavContainer,r=e.children,a=e.id;s("WithNavBarPageLayout",a);var c=ce(),m=(0,u.TH)(),p=(0,d.DP)(),g=(0,i.useRef)(null);return(0,i.useLayoutEffect)((function(){if(g.current&&g.current.parentNode){var e=document.getElementById("uhf-footer");if(e){var t=e.parentElement;return g.current.parentNode.appendChild(e),function(){t.appendChild(e)}}}}),[]),l().createElement(o.B,{horizontal:!0,styles:Cp,doNotRenderFalsyValues:!0},"s"!==c&&"s"!==m?n:null,l().createElement(o.B,{styles:kp,doNotRenderFalsyValues:!0},l().createElement("main",{role:"main",id:a,tabIndex:-1,style:{outline:"none"}},"s"===c||"s"===m?l().createElement(o.B,{styles:Tp(p),doNotRenderFalsyValues:!0},n):null,l().createElement(o.B,{doNotRenderFalsyValues:!0},t),l().createElement(o.B,{verticalAlign:"start",styles:Sp,doNotRenderFalsyValues:!0},l().createElement("div",{style:{minHeight:wp,padding:"0px 0px 4px 0px"}},r))),l().createElement("div",{ref:g})))},Bp="100vh",Lp={root:{width:"100%",minHeight:Bp}},Ap={root:{overflowX:"hidden",width:"100vw",minHeight:Bp}},Ip={root:{boxSizing:"border-box",width:"100%",selectors:(gp={},gp[$.maxS]={padding:"0 16px 10px",width:"100%"},gp[$.minM]={padding:"0 32px 10px",width:"100%"},gp[$.minL]={padding:"0 48px 10px",width:"100%"},gp[$.minXl]={padding:"0 54px 10px",width:"100%"},gp[$.minXxl]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},gp[$.minXxxl]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},gp)}},Fp=function(e){var t=e.messageBarContainer,n=e.children,r=e.id;return s("WithoutNavBarPageLayout",r),l().createElement(o.B,{horizontal:!0,styles:Lp,doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:Ap},l().createElement("main",{role:"main",id:r,tabIndex:-1,style:{outline:"none"}},l().createElement(o.B,{doNotRenderFalsyValues:!0},t),l().createElement(o.B,{verticalAlign:"start",styles:Ip,doNotRenderFalsyValues:!0},n))))},Dp=function(e){var t=e.messageBarContainer,n=e.children,a=e.id,o=(0,r.__rest)(e,["messageBarContainer","children","id"]);switch(o.layoutType){case"withoutNavBar":return l().createElement(Fp,{layoutType:o.layoutType,messageBarContainer:t,id:a},n);case"withNavBar":return l().createElement(Pp,{layoutType:o.layoutType,messageBarContainer:t,leftNavContainer:o.leftNavContainer,id:a},n)}},Rp="100vh",zp=(0,I.n)({content:(hp={flex:2,boxSizing:"border-box",width:"100%","& #uhf-footer > div":{paddingLeft:0,paddingRight:0}},hp[$.maxS]={padding:"0 16px 10px",width:"100%"},hp[$.minM]={padding:"0 16px 10px",width:"100%"},hp[$.minL]={padding:"0 48px 10px",width:"100%"},hp[$.minXl]={padding:"0 54px 10px",width:"100%"},hp[$.minXxl]={padding:"0 0 10px",margin:"0 auto",maxWidth:"968px",width:"100%"},hp[$.minXxxl]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},hp),mainContainer:{outline:"none"},mobileNavBarWrapper:{position:"fixed",minHeight:"44px",zIndex:u.XZ.twoUINavBar,width:"100%",backgroundColor:Tt.L.colorNeutralBackground1},contentWrapper:{minHeight:Rp,padding:"0px 0px 4px 0px"},rootContainer:{display:"flex",flexDirection:"row",width:"100%",minHeight:Rp},mainColumn:{display:"flex",flexDirection:"column",width:"100vw",overflow:"hidden",minHeight:Rp}}),Hp=function(e){var t=e.messageBarContainer,n=e.leftNavContainer,r=e.children,a=e.id;s("WithNavBarPageLayout",a);var o=ce(),c=(0,u.TH)(),d=zp(),m=(0,i.useRef)(null);return(0,i.useLayoutEffect)((function(){if(m.current&&m.current.parentNode){var e=document.getElementById("uhf-footer");if(e){var t=e.parentElement;return m.current.parentNode.appendChild(e),function(){t.appendChild(e)}}}}),[]),l().createElement("div",{className:d.rootContainer},"s"!==o&&("s"!==c?n:null),l().createElement("div",{className:d.mainColumn},l().createElement("main",{role:"main",id:a,tabIndex:-1,style:{outline:"none"}},"s"===o||"s"===c?l().createElement("div",{className:d.mobileNavBarWrapper},n):null,l().createElement("div",null,t),l().createElement("div",{className:d.content},l().createElement("div",{className:d.contentWrapper},r))),l().createElement("div",{ref:m})))},Np="100vh",Vp=(0,I.n)({content:(fp={display:"flex",flexDirection:"column",alignItems:"flex-start",boxSizing:"border-box",width:"100%"},fp[$.maxS]={padding:"0 16px 10px",width:"100%"},fp[$.minM]={padding:"0 32px 10px",width:"100%"},fp[$.minL]={padding:"0 48px 10px",width:"100%"},fp[$.minXl]={padding:"0 54px 10px",width:"100%"},fp[$.minXxl]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},fp[$.minXxxl]={padding:"0 0 10px",margin:"0 auto",maxWidth:"1184px",width:"100%"},fp),rootContainer:{display:"flex",flexDirection:"row",width:"100%",minHeight:Np},mainColumn:{display:"flex",flexDirection:"column",width:"100vw",overflow:"hidden",minHeight:Np}}),Mp=function(e){var t=e.messageBarContainer,n=e.children,r=e.id;s("WithoutNavBarPageLayout",r);var a=Vp();return l().createElement("div",{className:a.rootContainer},l().createElement("div",{className:a.mainColumn},l().createElement("main",{role:"main",id:r,tabIndex:-1,style:{outline:"none"}},l().createElement("div",null,t),l().createElement("div",{className:a.content},n))))},Wp=function(e){var t=e.messageBarContainer,n=e.children,a=e.id,o=(0,r.__rest)(e,["messageBarContainer","children","id"]);switch(o.layoutType){case"withoutNavBar":return l().createElement(Mp,{layoutType:o.layoutType,messageBarContainer:t,id:a},n);case"withNavBar":return l().createElement(Hp,{layoutType:o.layoutType,messageBarContainer:t,leftNavContainer:o.leftNavContainer,id:a},n)}},Op=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(Wp,(0,r.__assign)({},t)):l().createElement(Dp,(0,r.__assign)({},t))},Gp=function(e){var t=e.variant,n=void 0===t?"AMC":t,r=e.content,a=e.cv,o=e.id;s("FatalError",o);return l().createElement(Ul,{variant:n,idPrefix:"fatalerror"},l().createElement(Op,{layoutType:"withoutNavBar",id:o},l().createElement(nt,{margin:"64px 0 48px 0"},l().createElement(rt,{align:"center",textAlignment:"center",padding:"37px 0 3px 0"},l().createElement(Mt,{tag:"h2",variant:"pageBanner"},r.title)),l().createElement(rt,{align:"center",textAlignment:"center",padding:"4px 0 8px 0"},l().createElement(Fn,{variant:"statusHeader"},r.summary))),l().createElement(nt,{padding:"24px 0 0 0"},l().createElement(rt,{align:"center"},l().createElement(Fn,null,"TraceId: ",a)))))},Up=function(e){var t=e.features;s("FeatureFlexGroup"),(0,i.useEffect)((function(){var e;p("FeatureFlexGroup",[(e=t.length,function(){return e<2||e>5?"Incorrect number of features provided. ".concat(e," were provided but the min allowed is ").concat(2," and the\n    max allowed is ").concat(5):void 0})])}),[t.length]);var n=ce(),a={display:"flex",flexWrap:"wrap",flexDirection:"l"===n||"m"===n||"s"===n?"column":"row",gap:"".concat(16,"px")},o=function(e){var r=0,a=1;return t.length%2!==0&&"xl"===n&&(3===t.length&&e===t.length-1?(r="100%",a=void 0):5===t.length&&(e>2?(r="calc((100% - ".concat(16,"px) / 2)"),a=void 0):(r="calc((100% - ".concat(32,"px) / 3)"),a=void 0))),{flexBasis:r,flexGrow:a}};return l().createElement("div",{style:a},t.map((function(e,t){return"default"===e.kind?l().createElement("div",{key:t,style:o(t)},l().createElement($m,(0,r.__assign)({},e.content,{layoutType:"l"===n||"m"===n?"1/2":e.content.layoutType}))):"iris"===e.kind?l().createElement("div",{key:t,style:o(t)},l().createElement(rp,(0,r.__assign)({},e.content,{layoutType:"l"===n||"m"===n?"1/2":e.content.layoutType}))):l().createElement("div",{key:t,style:o(t)},l().createElement(Jm,(0,r.__assign)({},e,{layoutType:"l"===n||"m"===n?"1/2":e.layoutType})))})))},jp=function(e){return{root:{marginRight:"-2px",marginLeft:e?void 0:"-2px",zIndex:u.XZ.twoUIFlowProgressBar}}},Kp=function(e){return"completed"===e||"active"===e},Zp=function(e){var t=e.status,n=e.isMobile,r=e.isFirst,a=e.isLast,i=!n||n&&!a,c=Kp(t);return l().createElement(ot,{horizontal:!0},n?l().createElement(o.B,{styles:jp(r),doNotRenderFalsyValues:!0},l().createElement(Yt,{iconName:"completed"===t?"CompletedSolid":"CircleFill",color:c?"themePrimary":"neutralLight"})):void 0,i?l().createElement(ot,{width:"100%","aria-hidden":!0,verticalAlign:"center"},l().createElement(gt.Z,{percentComplete:c?1:0,barHeight:4})):void 0)},Xp=function(e){var t,n,a=e.currentStepNumber,i=void 0===a?1:a,c=e.isFlowEnded,d=e.steps,u=e.completedAriaValueText,m=(0,r.__rest)(e,["currentStepNumber","isFlowEnded","steps","completedAriaValueText"]);s("FlowProgressBar",m.id),fe("FlowProgressBar",m);var p=d.length;n=d.map((function(e,t){var n,a=t+1;return n=c||a<i?"completed":i===a?"active":"inactive",(0,r.__assign)((0,r.__assign)({},e),{status:n})})),t=c?u:n[i-1].ariaValueText;var g=ce(),h=se(g),f=h?0:4,v="".concat(i,". ").concat(n[i-1].name),x=100/p;return l().createElement(o.B,{role:"progressbar","aria-label":t,"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":c?100:(i-1)*x,"aria-valuetext":t,tokens:{padding:"16px 0px 0px 0px"},doNotRenderFalsyValues:!0},l().createElement(ot,{horizontal:!0,childrenGap:f},n.map((function(e,t){return l().createElement(o.B,{key:t,grow:t<n.length-1||!h,tokens:{maxWidth:h?void 0:"".concat(x,"%")},styles:{root:{cursor:"default"}},doNotRenderFalsyValues:!0},l().createElement(zn,{tooltipPosition:"top-center",tooltipText:e.name},h?null:(r=e,l().createElement(ot,{width:"100%",horizontal:!0},l().createElement(it,{width:"12px",height:"12px",padding:"0px 8px 0px 0px"},"completed"===r.status?l().createElement(Yt,{iconName:"CompletedSolid",color:"themePrimary"}):void 0),l().createElement(Fn,{block:!0,nowrap:!0,variant:Kp(r.status)?"bodyPrimaryText":"bodySecondaryText"},r.name))),l().createElement(Zp,{status:e.status,isMobile:h,isFirst:0===t,isLast:t===n.length-1})));var r}))),h?l().createElement(o.B,{styles:{root:{overflowWrap:"break-word"}},tokens:{padding:"16px 0px"},doNotRenderFalsyValues:!0},l().createElement(Fn,null,v)):void 0)},Yp=n(28483),qp=function(e){var t=e.disabled,n=void 0!==t&&t,a=e.isClickableOutsideZone,o=void 0!==a&&a,i=e.ignoreExternalFocusing,c=void 0!==i&&i,d=e.useRelativePosition,u=void 0!==d&&d,m=e.children,p=(0,r.__rest)(e,["disabled","isClickableOutsideZone","ignoreExternalFocusing","useRelativePosition","children"]);s("FocusTrapZone",p.id),fe("FocusTrapZone",p);var g={};return u&&(g.position="relative"),l().createElement(Yp.Y,(0,r.__assign)({disabled:n,isClickableOutsideFocusTrap:o,ignoreExternalFocusing:c,style:g},p),m)},Qp=n(16598),Jp=n(4537),$p=function(e){var t=e.disabled,n=void 0!==t&&t,a=e.isClickableOutsideZone,o=void 0!==a&&a,c=e.ignoreExternalFocusing,d=void 0!==c&&c,u=e.useRelativePosition,m=void 0!==u&&u,p=e.children,g=(0,r.__rest)(e,["disabled","isClickableOutsideZone","ignoreExternalFocusing","useRelativePosition","children"]);s("FocusTrapZone",g.id),fe("FocusTrapZone",g);var h=(0,i.useRef)(null),f=(0,i.useRef)(null);(0,i.useEffect)((function(){return n||d||(f.current=document.activeElement,setTimeout((function(){if(h.current){var e=h.current.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');null===e||void 0===e||e.focus()}}),0)),function(){!d&&f.current&&f.current.focus()}}),[n,d]);var v=(0,Qp.V)({tabBehavior:n?void 0:"limited-trap-focus"}),x=(0,Jp.y)({trapFocus:!n&&!o}).modalAttributes;(0,i.useEffect)((function(){if(!n&&!o){var e=function(e){h.current&&!h.current.contains(e.target)&&(e.preventDefault(),e.stopPropagation())};return document.addEventListener("click",e,!0),function(){document.removeEventListener("click",e,!0)}}}),[n,o]);var E=(0,r.__assign)({},m&&{position:"relative"}),y=n?{}:o?v:(0,r.__assign)((0,r.__assign)({},x),v);return l().createElement("div",(0,r.__assign)({ref:h},y,{style:E},g),p)},eg=function(e){var t=e.children,n=(0,r.__rest)(e,["children"]);return(0,c.useTwoUIFlights)().includes(T)?l().createElement($p,(0,r.__assign)({},n),t):l().createElement(qp,(0,r.__assign)({},n),t)},tg="12.25vw",ng="6.12vw",rg={root:{position:"absolute",bottom:"-".concat(ng),width:"100%"}},ag=function(e){return{root:{backgroundColor:e.palette.neutralHigh,borderRadius:"50%",width:tg,height:tg}}},og={root:{width:ng,height:ng}},ig=function(e){var t="calc(".concat(tg,"/2)");return{root:{position:"relative",marginBottom:e?t:void 0}}},lg=function(e){var t=e.imageSrc,n=(0,d.DP)();return l().createElement(o.B,{styles:rg,horizontal:!0,horizontalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:ag(n),horizontalAlign:"center",verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:og,doNotRenderFalsyValues:!0},l().createElement(Ba,{imageType:"ariaHiddenImage",src:t,width:ng,height:ng}))))},cg=function(e){var t=e.backgroundImageProps,n=e.foregroundImageProps;return s("HeroImage"),l().createElement(o.B,{styles:ig(!!n),doNotRenderFalsyValues:!0},"static"===t.kind?l().createElement(Ba,{imageType:"ariaHiddenImage",src:t.imageSrc,width:"100%"}):null,"parallax"===t.kind?l().createElement(Wm,{aspectRatio:t.aspectRatio,layers:t.imageLayers.map((function(e){return(0,r.__assign)((0,r.__assign)({},e),{children:l().createElement(Ba,{src:e.imageSrc,imageType:"ariaHiddenImage",width:"100%",height:"100%",imageFit:"cover"})})}))}):null,n?l().createElement(lg,(0,r.__assign)({},n)):null)},sg="12.25vw",dg="6.12vw",ug=(0,I.n)({wrapper:{position:"absolute",bottom:"-".concat(dg),width:"100%"},circle:{backgroundColor:Tt.L.colorNeutralBackground1,borderRadius:"50%",width:sg,height:sg,display:"flex",alignItems:"center",justifyContent:"center"}}),mg=(0,I.n)({root:{position:"relative"},withForeground:{marginBottom:"calc(".concat(sg,"/2)")}}),pg=function(e){var t=e.imageSrc,n=ug();return l().createElement("div",{className:n.wrapper},l().createElement(et,{horizontal:!0,horizontalAlign:"center"},l().createElement("div",{className:n.circle},l().createElement(et,{horizontalAlign:"center",verticalAlign:"center",width:dg,height:dg},l().createElement(Sa,{imageType:"ariaHiddenImage",src:t,width:dg,height:dg,imageFit:"contain"})))))},gg=function(e){var t=e.backgroundImageProps,n=e.foregroundImageProps;s("HeroImage");var a=mg(),o=(0,ve.z)(a.root,n&&a.withForeground);return l().createElement("div",{className:o},l().createElement(et,null,"static"===t.kind?l().createElement(Sa,{imageType:"ariaHiddenImage",src:t.imageSrc,width:"100%"}):null,"parallax"===t.kind?l().createElement(Wm,{aspectRatio:t.aspectRatio,layers:t.imageLayers.map((function(e){return(0,r.__assign)((0,r.__assign)({},e),{children:l().createElement(Sa,{src:e.imageSrc,imageType:"ariaHiddenImage",width:"100%",height:"100%",imageFit:"cover"})})}))}):null,n?l().createElement(pg,(0,r.__assign)({},n)):null))},hg=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(gg,(0,r.__assign)({},t)):l().createElement(cg,(0,r.__assign)({},t))},fg=(0,i.forwardRef)((function(e,t){var n=e.mode,a=e.operationData,o=e.challengeSource,s=e.noAudioSupportMessage,d=e.playAudioButtonProps,u=e.switchToVisualWhenAudioFailedButtonProps,m=e.cannotLoadChallengeMessage,p=e.onNewChallengeRequested,g=e.reloaded,h=(0,i.useRef)(null),f=(0,c.useTwoUIOperationDispatcher)(),v=l().useState(!1),x=v[0],E=v[1];(0,i.useImperativeHandle)(t,(function(){return{playAudioChallenge:y}}));var y=function(){var e,t,r;"audio"===n&&((null===(e=h.current)||void 0===e?void 0:e.paused)?(null===(t=h.current)||void 0===t||t.play(),E(!0)):(null===(r=h.current)||void 0===r||r.pause(),E(!1)))},b=l().createElement(Cr.r,(0,r.__assign)({},d,{onClick:y,"data-testid":"playbutton"}),l().createElement(Yt,{iconName:x?"Pause":"Play",size:"72px"})),_=g?l().createElement(Nc,{shouldFocusOnMount:!0},b):[b],w=l().createElement(l().Fragment,null,"audio"===n?l().createElement(l().Fragment,null,l().createElement("audio",{ref:h,src:o,onError:function(){f({name:a.operationName,status:"update-failed",error:{name:"HipChallenge audio error",message:"Audio failed to loaded"}})},onEnded:function(){E(!1)}},l().createElement(Fn,null,s),l().createElement(Ir,(0,r.__assign)({},u,{onClick:function(e){p("visual")}}))),_):null,"visual"===n?l().createElement(l().Fragment,null,l().createElement(Ba,{imageType:"ariaHiddenImage",src:o})):null),C=l().createElement(Fn,{colorOverride:"error"},m),k="audio"===n?l().createElement(Qa,{height:96,width:102}):l().createElement(Qa,{height:96,width:216});return l().createElement(nt,{height:96,verticalAlign:"center"},l().createElement(M,{operationData:{componentName:"".concat(a.componentName,".challengeBase"),operationName:a.operationName,defaultState:"inert"},firstLoadView:k,updatingView:k,updateFailedView:C,failedView:C,finishedView:w}))})),vg=function(e){var t=e.mode,n=e.refreshChallengeButtonProps,a=e.switchToAudioButtonProps,o=e.switchToVisualButtonProps,i=e.getNewAudioChallengeButtonProps,c=e.getNewPictureChallengeButtonProps,s=e.bottomMargin,d=void 0===s?16:s,u=e.reloaded,m=e.onNewChallengeRequested,p="audio"===t&&i?i:"visual"===t&&c?c:n,g=l().createElement(Ir,(0,r.__assign)({iconName:"Refresh"},p,{onClick:function(e){m(t)}})),h="visual"===t&&u?l().createElement(Nc,{shouldFocusOnMount:!0},g):g,f=[l().createElement(Ir,(0,r.__assign)({iconName:"Volume"},a,{onClick:function(e){m("audio")}}))];return l().createElement(nt,{horizontal:!0,childrenGap:8,verticalAlign:"center",margin:"0px 0px ".concat(d,"px 0px")},h,"visual"===t?f:l().createElement(Ir,(0,r.__assign)({iconName:"Photo2"},o,{onClick:function(e){m("visual")}})))},xg=function(e){var t=e.mode,n=e.alignment,r=e.controlsBottomMargin,a=void 0===r?16:r,o=l().createElement(nt,null,l().createElement(nt,{margin:"24px 0px ".concat(a,"px 0px"),horizontal:!0,childrenGap:17},l().createElement(Qa,{height:12,width:48}),l().createElement(Qa,{height:12,width:48}))),i=l().createElement(nt,{margin:"8px 0px 8px 0px"},l().createElement(Qa,{height:12,width:176})),c=l().createElement(nt,{margin:"0px 0px 8px 0px"},l().createElement(Qa,{height:96,width:216})),s=l().createElement(nt,{margin:"0px 0px 8px 0px"},l().createElement(Qa,{height:96,width:102})),d=l().createElement(Qa,{height:25,width:432}),u=l().createElement(nt,{margin:"0px 0px 18px 0px"},l().createElement(Qa,{height:8,width:113}));return"audio"===t?l().createElement(nt,{horizontalAlign:n},i,s,o,u,d):l().createElement(nt,{horizontalAlign:n},i,c,o,d)},Eg=n(79211),yg=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:wg(n)}}},bg=function(e,t,n){var a=yg(e,t,n);return(0,r.__assign)((0,r.__assign)({},a),{prefix:{display:"none"}})},_g=function(e,t,n){var a=yg(e,t,n);return(0,r.__assign)((0,r.__assign)({},a),{field:{padding:"0 8px 0 0"},prefix:{background:t?e.palette.neutralLighter:e.palette.transparent,padding:"0px 8px"}})},wg=function(e){return{root:e&&{padding:"0px",height:"100%"}}},Cg=function(e){var t,n=e["aria-label"],a=e.underlined,o=e.imageSrc,c=(0,r.__rest)(e,["aria-label","underlined","imageSrc"]),u=(0,d.DP)(),m=!!o,p=(0,i.useState)(ca.P6.notLoaded),g=p[0],h=p[1];s("TextInput",c.id),fe("TextInput",c),t=m&&g!==ca.P6.error?_g(u,c.disabled||!1,a):bg(u,c.disabled||!1,a);var f=function(e){e===ca.P6.loaded?h(ca.P6.loaded):e===ca.P6.notLoaded?h(ca.P6.notLoaded):h(ca.P6.error)},v={};g===ca.P6.notLoaded&&(v={root:{display:"none"}});return m?l().createElement(Eg.A,(0,r.__assign)({},c,{underlined:a,ariaLabel:n,styles:t,onRenderPrefix:function(){return l().createElement(l().Fragment,null,g===ca.P6.notLoaded?l().createElement(Wt.y,{size:Ot.H.small}):null,l().createElement(sa._,{styles:v,shouldFadeIn:!0,src:o,height:"16px",width:"16px",role:"presentation",onLoadingStateChange:f}))}})):l().createElement(Eg.A,(0,r.__assign)({},c,{underlined:a,ariaLabel:n,styles:t}))},kg=n(80719),Tg=n(116),Sg=(0,I.n)({fieldGroup:{backgroundColor:Tt.L.colorTransparentBackground,width:"100%"},fieldGroupEnabled:{backgroundColor:Tt.L.colorNeutralBackground1},wrapperUnderlined:{display:"block",width:"100%"},fieldWithImage:{paddingRight:Tt.L.spacingHorizontalM},prefixEnabled:{backgroundColor:Tt.L.colorNeutralBackground1},prefixDisabled:{backgroundColor:Tt.L.colorTransparentBackground},prefixHidden:{display:"none"},labelUnderlined:{padding:Tt.L.spacingVerticalNone,height:"100%"}}),Pg=function(e){var t=e["aria-label"],n=e.underlined,a=e.imageSrc,o=(0,r.__rest)(e,["aria-label","underlined","imageSrc"]),i=!!a,c=Sg();s("TextInput",o.id),fe("TextInput",o);o.children;var d=o.onChange,u=o.label,m=o.required,p=o.errorMessage,g=o.description,h=(0,r.__rest)(o,["children","onChange","label","required","errorMessage","description"]),f=Boolean(o.disabled),v=u?l().createElement("span",{className:(0,ve.z)(n&&c.labelUnderlined)},l().createElement(En,{disabled:f},u)):void 0;return l().createElement(kg.D,{label:v,required:m,validationMessage:p,hint:g,className:(0,ve.z)(n&&c.wrapperUnderlined)},l().createElement(Tg.p,(0,r.__assign)({},h,{"aria-label":t,className:(0,ve.z)(c.fieldGroup,!f&&c.fieldGroupEnabled,i&&c.fieldWithImage),appearance:n?"underline":"outline",contentBefore:i?l().createElement("div",{className:(0,ve.z)(f?c.prefixDisabled:c.prefixEnabled)},l().createElement(Sa,{src:a||"",shouldFadeIn:!0,height:"16px",width:"16px",imageType:"ariaHiddenImage"})):void 0,onChange:function(e,t){null===d||void 0===d||d(e,t.value)}})))},Bg=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(Pg,(0,r.__assign)({},t)):l().createElement(Cg,(0,r.__assign)({},t))},Lg=function(e){var t=e.mode,n=e.userSolution,a=e.audioPlaceholder,o=e.visualPlaceholder,i=e.playAudioInstruction,c=e.onSolutionChanged,s=e.onPlayAudio,d=(0,r.__rest)(e,["mode","userSolution","audioPlaceholder","visualPlaceholder","playAudioInstruction","onSolutionChanged","onPlayAudio"]),u=(0,Xo.B)(),m="audio"===t?a:o;return l().createElement(l().Fragment,null,"audio"===t?l().createElement(nt,{margin:"0px 0px 16px 0px"},l().createElement(Fn,{id:u},i)):null,l().createElement(Bg,(0,r.__assign)({},d,{"aria-describedby":u,value:n,placeholder:m,onChange:function(e,n){(null===n||void 0===n?void 0:n.endsWith("1"))&&"audio"===t?s():c(null!==n&&void 0!==n?n:"")}})))},Ag=function(e){var t=e.variant,n=e.mode,a=e.challengeSource,o=e.userSolution,c=e.operationData,d=e.titleProps,u=e.challengeProps,m=e.controlsProps,p=e.solutionInputProps,g=e.visualCaptchaLoadedMessage,h=e.audioCaptchaLoadedMessage,f=e.onNewChallengeRequested,v=e.onSolutionChanged,x=(0,i.useState)(!1),E=x[0],y=x[1];s("HipChallenge");var b=(0,i.useRef)(null),_=d?l().createElement(Fn,(0,r.__assign)({},d,{weightOverride:"semi-bold"})):null,w=function(e){y(!0),f(e)},C="visual"===n?g:h,k=l().createElement(fg,(0,r.__assign)({},u,{mode:n,ref:b,challengeSource:a,operationData:c,onNewChallengeRequested:w,visualCaptchaLoadedMessage:g,audioCaptchaLoadedMessage:h,reloaded:E})),T=l().createElement(vg,(0,r.__assign)({},m,{mode:n,reloaded:E,onNewChallengeRequested:w})),S=(0,r.__assign)((0,r.__assign)({},p),{mode:n,userSolution:o,onSolutionChanged:v,onPlayAudio:function(){var e;null===(e=null===b||void 0===b?void 0:b.current)||void 0===e||e.playAudioChallenge()}}),P=l().createElement(Lg,(0,r.__assign)({},S)),B=l().createElement(Lg,(0,r.__assign)({},S,{id:"".concat(S.id,"-disabled"),"data-bi-id":"".concat(S["data-bi-id"],"-disabled"),disabled:!0})),L=l().createElement(M,{operationData:{componentName:"".concat(c.componentName,".challengeSolution"),operationName:c.operationName,defaultState:"inert"},inertView:B,firstLoadView:B,updatingView:B,updateFailedView:B,failedView:B,finishedView:P}),A=l().createElement(xg,{mode:n,controlsBottomMargin:m.bottomMargin,alignment:t.alignment}),I="top"===t.titleLocation?l().createElement(l().Fragment,null,l().createElement(nt,{horizontalAlign:t.alignment},l().createElement(nt,{margin:"8px 0px 8px 0px"},_),k,T),L):l().createElement(l().Fragment,null,l().createElement(nt,{horizontalAlign:t.alignment},k,T,l().createElement(nt,{margin:"0 0 16px 0"},_)),L),F=l().createElement(l().Fragment,null,C&&E?l().createElement(mi,{message:C,ariaLive:"polite"}):l().createElement(l().Fragment,null),I);return l().createElement(M,{operationData:{componentName:c.componentName,operationName:c.operationName,defaultState:"inert"},inertView:A,firstLoadView:I,updatingView:I,updateFailedView:I,failedView:I,finishedView:F})},Ig={Accept:{content:"E8FB"},Add:{content:"E710"},AddFriend:{content:"E8FA"},AddGroup:{content:"EE3D"},AddMedium:{content:"ECA1"},AddTo:{content:"ECC8"},Admin:{content:"E7EF"},Airplane:{content:"E709"},AllApps:{content:"E71D"},AppIconDefaultAdd:{content:"EFDA"},AppIconDefaultList:{content:"EFDE"},Apps:{content:"ED35"},AskAParent:{content:"F206"},AuthenticatorApp:{content:"F6B1"},Back:{content:"E72B"},BingLogo:{content:"EB6B"},BirthdayCake:{content:"EF8D"},BlockContact:{content:"E8F8"},Blocked:{content:"E733"},BoardActivityFeed:{content:"EDF0"},BrokenFile:{content:"F1E4"},BulletedList:{content:"E8FD"},BumperLeft:{content:"F10C"},BumperRight:{content:"F10D"},ButtonA:{content:"F093"},ButtonB:{content:"F094"},ButtonX:{content:"F096"},ButtonY:{content:"F095"},Calendar:{content:"E787"},CalendarReply:{content:"E8F5"},Camera:{content:"E722"},Cancel:{content:"E711"},Car:{content:"E804"},CellPhone:{content:"E8EA"},CellPhonePermissions:{content:"F5E1"},CheckMark:{content:"E73E"},ChevronDown:{content:"E70D"},ChevronDownMed:{content:"E972"},ChevronDownSmall:{content:"E96E"},ChevronLeft:{content:"E76B"},ChevronLeftMed:{content:"E973"},ChevronLeftSmall:{content:"E96F"},ChevronRight:{content:"E76C"},ChevronRightMed:{content:"E974"},ChevronRightSmall:{content:"E970"},ChevronUp:{content:"E70E"},ChevronUpMed:{content:"E971"},ChevronUpSmall:{content:"E96D"},ChromeClose:{content:"E8BB"},ChromeMaximize:{content:"E922"},ChromeMinimize:{content:"E921"},CircleFill:{content:"EA3B"},CircleFillBadge12:{content:"EDB0"},CircleRing:{content:"EA3A"},CityNext2:{content:"EC07"},ClearFilter:{content:"EB3A"},Clock:{content:"E917"},Cloud:{content:"E753"},CloudUpload:{content:"EC8E"},CompassNW:{content:"E942"},Completed:{content:"E930"},CompletedSolid:{content:"EC61"},Contact:{content:"E77B"},ContactCircle:{content:"E77B"},ContactSolid:{content:"EA8C"},ConvertTo:{content:"F05C"},Copy:{content:"E8C8"},Copilot:{content:"EAB1"},CriticalErrorSolid:{content:"F5C9"},DataConnectionLibrary:{content:"EEB7"},DateTime:{content:"EC92"},DefenderApp:{content:"E83D"},Delete:{content:"E74D"},DeviceFamily:{content:"F844"},DeviceLaptopNoPic:{content:"E7F8"},Devices:{content:"E772"},Devices2:{content:"E975"},Devices3:{content:"EA6C"},DeviceTag:{content:"F6F2"},Diagnostic:{content:"E9D9"},Diamond:{content:"ED02"},DisconnectDevice:{content:"F118"},Dislike:{content:"E8E0"},Download:{content:"E896"},DpadDown:{content:"F3DD"},DpadLeft:{content:"F3DA"},DpadRight:{content:"F3DB"},DpadUp:{content:"F3DC"},Dynamics365Logo:{content:"EDCC"},EdgeLogo:{content:"E3AB"},EditContact:{content:"EFD3"},EditListPencil:{content:"E668"},Education:{content:"E7BE"},Error:{content:"E783"},ErrorBadge:{content:"EA39"},Family:{content:"EBDA"},FamilySafety:{content:"E4B0"},Favicon:{content:"E737"},FavoriteStar:{content:"E734"},Feedback:{content:"ED15"},FileExplorer:{content:"EC50"},FilterAlt:{content:"E61A"},Financial:{content:"E7BB"},Flag:{content:"E7C1"},Folder:{content:"E8B7"},FollowUser:{content:"EE05"},Forward:{content:"E72A"},FullCircleMask:{content:"E91F"},Game:{content:"E7FC"},GenericApp:{content:"EB3B"},Giftbox:{content:"EC1F"},GitHubLogo:{content:"F65E"},Globe:{content:"E774"},Globe2:{content:"F49A"},Group:{content:"E902"},HardDrive:{content:"EDA2"},Headset:{content:"E95B"},Health:{content:"E95E"},Heart:{content:"EB51"},HeartBroken:{content:"EA92"},Help:{content:"E897"},Hide:{content:"ED1A"},History:{content:"E81C"},Home:{content:"E80F"},HourGlass:{content:"EA03"},ImageOff:{content:"F86A"},Important:{content:"E8C9"},Info:{content:"E946"},InfoSolid:{content:"F167"},InkingColorOutline:{content:"ED66"},Insights:{content:"E3AF"},Installation:{content:"E311"},InternetSharing:{content:"E704"},Jogging:{content:"EAD2"},LaptopSecure:{content:"F552"},LaptopSelected:{content:"EC76"},Leisure:{content:"EBF3"},Like:{content:"E8E1"},Link:{content:"E71B"},LinkedInLogo:{content:"F20A"},LocaleLanguage:{content:"F2B7"},Lock:{content:"E72E"},Mail:{content:"E715"},Manage:{content:"E912"},MapPin:{content:"E707"},Media:{content:"EA69"},Message:{content:"E8BD"},Microphone:{content:"E720"},Microsoft365Logo:{content:"EAA9"},MicrosoftLogo:{content:"EC6A"},MobBattery0:{content:"EBA0"},MobBattery1:{content:"EBA1"},MobBattery10:{content:"EBAA"},MobBattery2:{content:"EBA2"},MobBattery3:{content:"EBA3"},MobBattery4:{content:"EBA4"},MobBattery5:{content:"EBA5"},MobBattery6:{content:"EBA6"},MobBattery7:{content:"EBA7"},MobBattery8:{content:"EBA8"},MobBattery9:{content:"EBA9"},Money:{content:"EAFD"},More:{content:"E712"},MoreVertical:{content:"F2BC"},MultiplayerJoinChallenge:{content:"EF23"},MultiSelect:{content:"E762"},MyMoviesTV:{content:"EE6C"},MyNetwork:{content:"EC27"},NavigateExternalInline:{content:"F35F"},Oem:{content:"E74C"},OfficeLogo:{content:"EB6E"},OneDriveLogo:{content:"E941"},OpenInNewTab:{content:"F6AB"},OpenInNewWindow:{content:"E8A7"},OutlookLogoInverse:{content:"EB6D"},Package:{content:"E7B8"},PassiveAuthentication:{content:"F32A"},Pause:{content:"E769"},PaymentCard:{content:"E8C7"},PaymentCardArt128:{content:"EEF1"},PC1:{content:"E977"},PeopleSettings:{content:"F72C"},People:{content:"E716"},Permissions:{content:"E8D7"},PersonWork:{content:"E631"},Photo2:{content:"EB9F"},Photo2Remove:{content:"ECAC"},PhotosApp:{content:"E7A9"},PictureFill:{content:"F523"},PieSingle:{content:"EB05"},Pin:{content:"E718"},Pinned:{content:"E840"},Play:{content:"E768"},POI:{content:"ECAF"},PopExpand:{content:"E49A"},PowerButton:{content:"E7E8"},PreviewLink:{content:"E8A1"},Print:{content:"E749"},ProtectedDocument:{content:"E8A6"},Pulse:{content:"E660"},QRCode:{content:"ED14"},RadioBullet:{content:"E915"},ReadingMode:{content:"E736"},Recent:{content:"E823"},Refresh:{content:"E72C"},RemoveCircle:{content:"E738"},Repair:{content:"E90F"},RevealPasswordMedium:{content:"F78D"},RewardsLogo:{content:"ED4E"},Ringer:{content:"EA8F"},Safe:{content:"F540"},Savings:{content:"EB0B"},ScreenTime:{content:"F182"},Search:{content:"E721"},Send:{content:"E724"},Settings:{content:"E713"},SettingsApp:{content:"F0FF"},SettingsSync:{content:"E359"},Share:{content:"E72D"},Shield:{content:"EA18"},ShieldTask:{content:"F760"},ShieldTaskSolid:{content:"F761"},Shirt:{content:"ED00"},Shop:{content:"E719"},ShoppingCart:{content:"E7BF"},Signin:{content:"F286"},SignOut:{content:"F3B1"},Silver:{content:"EB0D"},SkypeLogo:{content:"EB6F"},Snooze:{content:"F4BD"},SortDown:{content:"EE69"},SortUp:{content:"EE68"},SpeedHigh:{content:"EC4A"},StarburstSuggested:{content:"F188"},StatusCircle:{content:"EA81"},StatusCircle7:{content:"F0B6"},StatusCircleBlock2:{content:"F141"},StatusCircleCheckmark:{content:"F13E"},StatusCircleExclamation:{content:"F13C"},StatusCircleOuter:{content:"F136"},StatusErrorCircle7:{content:"F0B8"},StatusErrorFull:{content:"EB90"},StatusWarning:{content:"EA84"},Stop:{content:"E71A"},Stopwatch:{content:"E916"},StoreLogo16:{content:"EA96"},Street:{content:"E913"},Subscriptions:{content:"ED0F"},Switch:{content:"E8AB"},Sync:{content:"E895"},System:{content:"E770"},Tablet:{content:"E70A"},Tag:{content:"E8EC"},TagSolid:{content:"F70E"},TeamsLogo:{content:"F27B"},TextSortAscending:{content:"EDC0"},TextSortDescending:{content:"EDC1"},ThisPC:{content:"EC4E"},Ticket:{content:"EB54"},Toolbox:{content:"ECED"},TriggerLeft:{content:"F10A"},TriggerRight:{content:"F10B"},Trophy:{content:"EF9A"},TVMonitor:{content:"E7F4"},TwitterLogo:{content:"ECB5"},Undo:{content:"E7A7"},Unknown:{content:"E9CE"},Unlock:{content:"E785"},UpdateRestore:{content:"E777"},Video:{content:"E714"},ViewDashboard:{content:"F246"},Volume:{content:"E767"},Warning:{content:"E7BA"},WarningSolid:{content:"F736"},WebSearch:{content:"F6FA"},Website:{content:"EB41"},WhatsThis:{content:"EC23"},Wifi:{content:"E701"},WindowsLogo:{content:"E782"},Work:{content:"E821"},XboxController:{content:"EB65"},XboxGamePass:{content:"F1DC"},XboxGold:{content:"EDEB"},XboxLogo:{content:"EB70"},XboxOneConsole:{content:"E990"}},Fg=function(e,t,n,r,a){void 0===a&&(a=.5);var o=l().useRef(null),c=Dg(r||o,a),s=!r||c,d=(0,i.useState)(!1),u=d[0],m=d[1];return[s?l().createElement(np,{url:e}):l().createElement(l().Fragment,null),u?l().createElement(np,{url:t.replace(/{ACTION}/g,"click")}):l().createElement(l().Fragment,null),function(e){n&&n(e),m(!0)}]},Dg=function(e,t){void 0===t&&(t=.5);var n=(0,i.useState)(!1),r=n[0],a=n[1];return(0,i.useEffect)((function(){if(e.current){var n=new IntersectionObserver((function(e){e.forEach((function(e){e.isIntersecting&&(a(!0),n.unobserve(e.target))}))}),{threshold:t});return n.observe(e.current),function(){e.current&&n.unobserve(e.current)}}}),[e]),r},Rg=function(e){return l().createElement(nt,(0,r.__assign)({},Oo(!0)),l().createElement(ii,(0,r.__assign)({},Go,e)))},zg=function(e){var t=e.iconName,n=e.size;return l().createElement(nt,(0,r.__assign)({},Oo(!1)),l().createElement(nt,(0,r.__assign)({},Go,{horizontalAlign:"center",verticalAlign:"center"}),l().createElement(Yt,{size:n,iconName:t})))},Hg=function(e){var t=e.isSmallerImg,n=void 0!==t&&t,a=(0,r.__rest)(e,["isSmallerImg"]);return l().createElement(nt,(0,r.__assign)({},Oo(n)),l().createElement(Ba,(0,r.__assign)({},Go,a,{imageFit:"center-contain"})))},Ng=function(e){switch(e.graphicType){case"image":e.graphicType;var t=(0,r.__rest)(e,["graphicType"]);return l().createElement(Hg,(0,r.__assign)({},t));case"animation":e.graphicType;var n=(0,r.__rest)(e,["graphicType"]);return l().createElement(Rg,(0,r.__assign)({},n));case"icon":e.graphicType;var a=(0,r.__rest)(e,["graphicType"]);return l().createElement(zg,(0,r.__assign)({},a))}},Vg=function(e){var t=e.headerProps,n=e.detailsProps,a=e.graphicProps,o=e.impressionBeaconUrl,i=e.clickBeaconUrl,c=e.ctaProps,d=e.impressionWhenVisible,u=void 0!==d&&d,m=(0,r.__rest)(e,["headerProps","detailsProps","graphicProps","impressionBeaconUrl","clickBeaconUrl","ctaProps","impressionWhenVisible"]);s("IrisCard",m.id);var p=l().useRef(null),g=Fg(o,i,c.onClick,u?p:void 0),h=g[0],f=g[1],v=g[2];fe("IrisCard",m);var x=(0,r.__assign)((0,r.__assign)({},c),{onClick:v});return l().createElement(l().Fragment,null,l().createElement("div",{ref:p},l().createElement(Ko,(0,r.__assign)({action:x,height:"large"},m),t?l().createElement(Vo,(0,r.__assign)({},t)):null,l().createElement(Ng,(0,r.__assign)({},a)),l().createElement(Ro,(0,r.__assign)({},n)),l().createElement(Io,(0,r.__assign)({},x)))),h,f)},Mg=n(54121),Wg=n(5817),Og=n(89312),Gg=n(54440),Ug=function(e,t){return{position:"fixed",height:lh(t)&&e?"auto":"calc(100% - ".concat(48,"px)"),zIndex:u.XZ.twoUINavBar}},jg=function(e){return{root:{paddingRight:ch(e)?"".concat(48,"px"):"".concat(233,"px")}}},Kg=function(e){return{root:{zIndex:u.XZ.twoUILeftNavBypassBlocksButton,fontWeight:600,backgroundColor:e.palette.neutralPrimary,borderColor:e.palette.neutralPrimary,left:"8px",top:"0",padding:"12px",position:"absolute",transform:"translateY(-200%)",verticalAlign:"center",display:"inline-block",whiteSpace:"nowrap",selectors:{":focus":{transform:"translateX(0%)",background:e.palette.neutralPrimary,borderColor:e.palette.neutralPrimary,selectors:{":hover":{transform:"translateX(0%)",background:e.palette.neutralSecondary,borderColor:e.palette.neutralSecondary},":active":{transform:"translateX(0%)",background:e.palette.neutralDark,borderColor:e.palette.neutralDark}}}}}}},Zg=function(e){var t=e.text,n=e["aria-label"],r=e["data-bi-id"],a=e.targetId,o=(0,d.DP)();return l().createElement(wr.j,{styles:Kg(o),ariaLabel:n,"data-bi-id":r,onClick:function(){var e=document.getElementById(a);null===e||void 0===e||e.focus(),null===e||void 0===e||e.scrollIntoView()}},t)},Xg=function(e){return{root:{margin:"24px 10px 24px 10px",height:ch(e)?"28px":"48px"}}},Yg=function(e,t,n){var a;void 0===n&&(n=!1);var o=((a={outline:n?"":"2px solid ".concat(t.palette.themePrimary)})[F.up]={outline:n?"":"2px solid highlight"},a);return{root:{width:ch(e)?"28px":"48px",borderRadius:"50%",":focus":o,":hover":o,":active":(0,r.__assign)((0,r.__assign)({},o),{outline:n?"":"2px solid ".concat(t.palette.themeDark)})}}},qg={root:{":hover":{textDecoration:"none"},":active":{textDecoration:"none"},":active:hover":{textDecoration:"none"}}},Qg=function(e){return{root:{marginRight:e?void 0:"8px"}}},Jg=function(e,t,n){var a,o;void 0===n&&(n=!1);var i=t?e.palette.neutralPrimary:e.palette.neutralSecondary,l=((a={color:n?i:e.palette.themePrimary})[F.up]={color:n?"buttontext":"highlight"},a);return{root:{width:"fit-content",":hover":{textDecoration:"none"},":active":{textDecoration:"none"},":active:hover":{textDecoration:"none"},"h1, h2, span":(o={color:i},o[F.up]={color:"buttontext"},o[":focus"]=l,o[":hover"]=l,o[":active"]=(0,r.__assign)((0,r.__assign)({},l),{color:n?i:e.palette.themeDark}),o)}}},$g=function(e){var t=e.size,n=e.personaInfo,r=e.primaryText,a=e.viewport,o=e.theme,i=e.disableInteraction,c=e.operationData;return l().createElement(hl,{size:t,styles:Yg(a,o,i),imageUrl:n.imageUrl,text:"initials"===n.fallback?r:void 0,operationData:c,hideText:!0})},eh=function(e){var t,n={stopPropagation:!1,isFocusable:e.itemInteractiveProps?"always":"ifTruncated"};return"heading"===e.kind?l().createElement(Qn,(0,r.__assign)({},n,{type:"heading",tag:null!==(t=e.headingTag)&&void 0!==t?t:"h1",variant:"headerText"}),e.text):l().createElement(Qn,(0,r.__assign)({},n,{variant:"headerText"}),e.text)},th=function(e){var t=e.text,n=e.itemInteractiveProps?"always":"ifTruncated";return l().createElement(Qn,{stopPropagation:!1,isFocusable:n,variant:"metadataText"},t)},nh=function(e){var t=e.isNavCollapsed,n=e.persona,a=e.primaryInfo,i=e.secondaryInfo,c=e.tertiaryInfo,s=(0,d.DP)(),m=(0,u.TH)(),p="48";return ch(m)&&(p="28"),l().createElement(o.B,{horizontal:!0,styles:Xg(m),doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:Qg(t),doNotRenderFalsyValues:!0},n.itemInteractiveProps?l().createElement(ht.N,{styles:qg,"aria-label":n.itemInteractiveProps["aria-label"],"data-bi-id":n.itemInteractiveProps["data-bi-id"],onClick:"withOnClick"===n.itemInteractiveProps.itemInteraction.interactionType?n.itemInteractiveProps.itemInteraction.onClick:void 0,href:"withHref"===n.itemInteractiveProps.itemInteraction.interactionType?n.itemInteractiveProps.itemInteraction.href:void 0,target:"withHref"===n.itemInteractiveProps.itemInteraction.interactionType?n.itemInteractiveProps.itemInteraction.target:void 0},l().createElement($g,{size:p,viewport:m,theme:s,personaInfo:n,primaryText:a.text,disableInteraction:!1,operationData:n.operationData})):l().createElement(o.B,{styles:qg,doNotRenderFalsyValues:!0},l().createElement($g,{size:p,viewport:m,theme:s,personaInfo:n,primaryText:a.text,disableInteraction:!0,operationData:n.operationData}))),t?void 0:l().createElement(o.B,{verticalAlign:"center",doNotRenderFalsyValues:!0},a.itemInteractiveProps?l().createElement(ht.N,{styles:Jg(s,!0),"aria-label":a.itemInteractiveProps["aria-label"],"data-bi-id":a.itemInteractiveProps["data-bi-id"],onClick:"withOnClick"===a.itemInteractiveProps.itemInteraction.interactionType?a.itemInteractiveProps.itemInteraction.onClick:void 0,href:"withHref"===a.itemInteractiveProps.itemInteraction.interactionType?a.itemInteractiveProps.itemInteraction.href:void 0,target:"withHref"===a.itemInteractiveProps.itemInteraction.interactionType?a.itemInteractiveProps.itemInteraction.target:void 0,tabIndex:-1,"data-is-focusable":!1},l().createElement(eh,(0,r.__assign)({},a))):l().createElement(o.B,{styles:Jg(s,!0,!0),doNotRenderFalsyValues:!0},l().createElement(eh,(0,r.__assign)({},a))),i.itemInteractiveProps?l().createElement(ht.N,{styles:Jg(s,!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,tabIndex:-1,"data-is-focusable":!1},l().createElement(th,(0,r.__assign)({},i))):l().createElement(o.B,{styles:Jg(s,!1,!0),doNotRenderFalsyValues:!0},l().createElement(th,(0,r.__assign)({},i))),c?l().createElement(o.B,{styles:Jg(s,!1,!0),doNotRenderFalsyValues:!0},l().createElement(ir,(0,r.__assign)({},c))):void 0))},rh=function(e){var t=e.isNavCollapsed,n=(0,u.TH)(),r=48;return ch(n)&&(r=28),l().createElement(o.B,{horizontal:!0,styles:Xg(n),doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:Qg(t),doNotRenderFalsyValues:!0},l().createElement(ll,{height:r})),t?void 0:l().createElement(o.B,{verticalAlign:"center",tokens:{childrenGap:16},doNotRenderFalsyValues:!0},l().createElement(Qa,{width:171,height:8}),sh(n)?l().createElement(Qa,{width:150,height:8}):null))},ah=function(e){return{calloutMain:{background:e.palette.neutralHigh},beakCurtain:{background:e.palette.neutralHigh},beak:{background:e.palette.neutralHigh}}},oh=function(e){var t=e.isSelected,n=e.text,r=e.onTruncated;return l().createElement(Qn,{weightOverride:t?"semi-bold":void 0,onTruncated:r},n)},ih=function(e,t,n,a,o,i,c,s){var d,u=t.mainKey===e.itemKey&&!t.subKey;return{key:e.itemKey,name:n?null:l().createElement(oh,(0,r.__assign)({},e,{isSelected:u,onTruncated:c})),"aria-label":e["aria-label"],"data-bi-id":e["data-bi-id"],isSelected:u,onClick:"withOnClick"===e.linkInteraction.interactionType?e.linkInteraction.onClick:void 0,href:"withHref"===e.linkInteraction.interactionType?e.linkInteraction.href:void 0,target:"withHref"===e.linkInteraction.interactionType?e.linkInteraction.target:void 0,styles:function(e){return function(e,t,n,r,a){var o,i,l,c,s,d=e.hasSelectedNestedLink&&!e.isExpanded||!e.hasSelectedNestedLink&&e.isSelected;return{iconContainer:{"::before":(o={opacity:d?1:0,backgroundColor:"#005FB8",width:"3px",height:"16px",left:"0px",top:void 0,borderRadius:"999px"},o[F.up]={backgroundColor:"highlighttext"},o),flex:e.isNested?"0 0 16px":void 0},icon:{color:d?t.palette.themeDarkAlt:t.palette.neutralSecondary,display:"flex",fontFamily:null!==a&&void 0!==a?a:void 0},root:(i={marginBottom:r?void 0:"6px",marginRight:n?void 0:"8px",borderRadius:"4px",minHeight:"40px",width:e.isNavCollapsed?void 0:e.isNested?"188px":"220px",boxShadow:d?pe.rest:void 0,backgroundColor:d?t.palette.neutralHigh:t.palette.white},i[F.up]={border:"1px solid windowtext",backgroundColor:d?"highlight":void 0,span:{color:d?"highlighttext":"buttontext",backgroundColor:d?"highlight":"canvas",padding:d?.5:void 0},i:{color:d?"highlighttext":"buttontext",backgroundColor:d?"highlight":"canvas",forcedColorAdjust:"preserve-parent-color"}},i[":focus"]={":focus::after":(l={borderRadius:"3px",boxShadow:"0 0 0 1px ".concat(t.palette.neutralSecondary),outline:"none",border:"none"},l[F.up]={outline:"2px solid buttontext",border:"1px solid buttontext"},l)},i[":hover"]=(c={backgroundColor:t.palette.neutralLighter},c[F.up]={backgroundColor:"highlight",span:{color:"highlighttext",backgroundColor:"highlight",padding:.5},i:{color:"highlighttext",backgroundColor:"highlight",forcedColorAdjust:"preserve-parent-color"}},c),i[":active"]=(s={backgroundColor:t.palette.neutralLight,span:{color:t.palette.neutralSecondary,padding:.5}},s[F.up]={span:{color:"highlighttext",backgroundColor:"highlight"},i:{color:"highlighttext",backgroundColor:"highlight"}},s),i)}}(e,a,n,o,i)},icon:e.icon,tooltipProps:{calloutProps:{styles:ah(a)},content:n||s?e.text:void 0},links:null===(d=e.subLinks)||void 0===d?void 0:d.map((function(n){return{name:n.text,key:n.itemKey,isSelected:t.mainKey===e.itemKey&&t.subKey===n.itemKey,onClick:"withOnClick"===n.linkInteraction.interactionType?n.linkInteraction.onClick:void 0,href:"withHref"===n.linkInteraction.interactionType?n.linkInteraction.href:void 0,target:"withHref"===n.linkInteraction.interactionType?n.linkInteraction.target:void 0,styles:{iconContainer:{"::before":{top:"auto"}}}}})),navLinkGroupStyles:{nestedNavLinks:{" > li":{display:"flex",justifyContent:"flex-end"}}}}},lh=function(e){return"s"===e},ch=function(e){return["s","m"].includes(e)},sh=function(e){return"l"===e},dh=function(e){var t=e.bypassBlocksButton,n=e.expandCollapseNavButton,a=e.navHeader,c=e.navLinkGroups,s=e.selectedNavLink,m=(0,d.DP)(),p=(0,u.TH)(),g=(0,i.useRef)(p),h=(0,i.useState)(ch(p)),f=h[0],v=h[1];(0,u.JO)((function(){Jt(["Subscriptions","Apps"])})),(0,i.useEffect)((function(){sh(p)&&v(!1),sh(g.current)&&ch(p)&&v(!0),g.current=p}),[p]);var x=l().useRef(null);(0,i.useEffect)((function(){if(!sh(p)&&!f){var e=function(e){e.target instanceof Node&&x.current&&!x.current.contains(e.target)&&v(!0)},t=function(e){e.target instanceof Node&&x.current&&!x.current.contains(e.target)&&v(!0)},n=function(e){var t=(0,u.KQ)(e);(t===Mg.c.escape||"string"===typeof t&&"escape"===t.toLowerCase())&&v(!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)}}}),[p,f,x]);var E=(0,i.useState)([]),y=E[0],b=E[1],_=function(e,t){var n=y.find((function(n){return n.groupIndex===e&&n.subIndex===t}));return!!n&&n.isTruncated},w=[];c.forEach((function(e,t){var n={key:e.key,name:e.title,links:mh(e.navLinks,s,f,m,t,_,(function(e,t){!function(e,t){!1===_(e,t)&&b((0,r.__spreadArray)((0,r.__spreadArray)([],y,!0),[{groupIndex:e,subIndex:t,isTruncated:!0}],!1))}(e,t)})),styles:{navGroupTitle:{fontSize:m.fonts.small.fontSize}}};w.push(0!==t?n:(0,r.__assign)((0,r.__assign)({},n),{onRenderGroupTitle:function(e){return uh(a,e)}}))}));return l().createElement(Wg.N,{theme:d.jw},l().createElement(Og.s.Provider,{value:{onThrowOnUndefinedColor:function(e){return d.jw.semanticColors[e.desiredColorName]},disableThrowOnUndefinedColor:!0}},l().createElement(o.B,{doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:jg(p),doNotRenderFalsyValues:!0}),l().createElement("div",{ref:x,style:Ug(f,p)},t?l().createElement(Zg,(0,r.__assign)({},t)):null,l().createElement(Gg.s,{styles:function(e){return function(e,t,n,r){var a=e.isNavCollapsed?48:233;return{root:{boxShadow:e.isNavCollapsed||sh(n)?void 0:pe.hover,height:"100%"},navContainer:{maxWidth:a+17,paddingRight:e.isNavCollapsed?"3px":void 0,transitionDuration:"0s"},navGroup:{display:e.isNavCollapsed&&lh(n)?"none":void 0},navWrapper:{paddingLeft:sh(n)?"10px":void 0,paddingTop:ch(n)?"4px":"24px"},subComponentStyles:{collapseNavButtonStyles:{root:{backgroundColor:t.palette.white,borderBottom:r?void 0:"1px solid ".concat(t.palette.neutralLighter),":hover":{backgroundColor:t.palette.neutralLighter},":active":{backgroundColor:t.palette.neutralLight,borderBottom:"1px solid ".concat(t.palette.neutralLight)}},icon:{color:t.palette.neutralPrimary,":hover":{color:t.palette.neutralDark},":active":{color:t.palette.neutralDark}}}}}}(e,m,p,n.removeNavButtonBorder||!1)},groups:w,hideCollapseLink:sh(p),collapseNavLinkProps:n,isNavCollapsed:f,onNavCollapsed:function(){v(!f)}})))))},uh=function(e,t){switch(e.headerType){case"profileHeader":return l().createElement(nh,(0,r.__assign)({},e,{isNavCollapsed:!!(null===t||void 0===t?void 0:t.isNavCollapsed)}));case"profileHeaderShimmer":return l().createElement(rh,(0,r.__assign)({},e,{isNavCollapsed:!!(null===t||void 0===t?void 0:t.isNavCollapsed)}))}},mh=function(e,t,n,r,a,o,i){return e.map((function(l,c){if("directlink"===l.linkType)return ih(l,t,n,r,c===e.length-1,Xt,(function(){i(a,c)}),o(a,c))}))},ph=function(e){var t=e.headerProps,n=e.ctaPropsOrAction,a=e.children,o=(0,r.__rest)(e,["headerProps","ctaPropsOrAction","children"]);fe("CardListCanvas",o);var i=l().Children.toArray(a).slice(0,4),c=320;i.length>0&&(c/=i.length);var s,d=i.map((function(e,t){return l().createElement(nt,{height:c,verticalAlign:"center",horizontalAlign:"center",key:t},e)}));return n&&"text"in n&&(s=n),l().createElement(Ko,(0,r.__assign)({action:n,height:"large"},o),t?l().createElement(Vo,(0,r.__assign)({},t)):null,d,s?l().createElement(Io,(0,r.__assign)({},s)):l().createElement(Cr.r,(0,r.__assign)({styles:ge},n)))},gh=function(e){var t=e.headerProps,n=e.ctaPropsOrAction,a=e.simpleListCardItems,o=(e.children,(0,r.__rest)(e,["headerProps","ctaPropsOrAction","simpleListCardItems","children"]));s("ListCard",o.id),fe("ListCard",o);var i=a.slice(0,4),c=i.map((function(e){return l().createElement(tc,(0,r.__assign)({},e,{key:e["data-bi-id"],slotCount:i.length}))}));return l().createElement(ph,(0,r.__assign)({headerProps:t,ctaPropsOrAction:n},o),c)},hh={1:"120",2:"72",3:"56",4:"56"},fh=function(e){return function(){return e<1||e>4?"PersonaCardListItem only supports from 1 to 4 items, ".concat(e," is provided"):void 0}},vh=function(e){var t=e.slotCount,n=e.imageSrc,a=e.titleText,o=e.infoText,c=(0,r.__rest)(e,["slotCount","imageSrc","titleText","infoText"]);fe("PersonaCardListItem",c);var s=(0,d.DP)();(0,i.useEffect)((function(){p("PersonaCardListItem",[fh(t)])}),[t]);var u=l().createElement(_l,{size:hh[t],hideText:!0,imageUrl:n});return 1===t?l().createElement(Bn,{grow:!0},l().createElement(Cr.r,(0,r.__assign)({},c,{styles:Ql(s)}),l().createElement(nt,{width:"100%",height:"100%",horizontalAlign:"start",verticalAlign:"center",childrenGap:32},l().createElement(nt,{horizontalAlign:"center",width:"100%"},u),l().createElement(nt,{horizontalAlign:"start",padding:$l,textAlignment:"left"},l().createElement(Qn,{variant:"headerText"},a),l().createElement(Qn,{variant:"bodyPrimaryText",lines:2},o))))):l().createElement(Bn,{grow:!0},l().createElement(Cr.r,(0,r.__assign)({},c,{styles:Jl(s)}),l().createElement(nt,{horizontal:!0,childrenGap:16},l().createElement(nt,null,u),l().createElement(nt,{horizontal:!1,verticalAlign:"center",horizontalAlign:"start",textAlignment:"left"},l().createElement(rt,{align:"start"},l().createElement(Qn,{variant:"headerText"},a)),l().createElement(rt,{align:"start"},l().createElement(Qn,{variant:"bodyPrimaryText",lines:2},o))))))},xh=function(e){var t=e.headerProps,n=e.ctaProps,a=e.personaListCardItems,o=(e.children,(0,r.__rest)(e,["headerProps","ctaProps","personaListCardItems","children"]));s("PersonaListCard",o.id),fe("PersonaListCard",o);var i=a.slice(0,4),c=i.map((function(e){return l().createElement(vh,(0,r.__assign)({},e,{key:e["data-bi-id"],slotCount:i.length}))}));return l().createElement(ph,(0,r.__assign)({ctaPropsOrAction:n,headerProps:t},o),c)},Eh=function(e){for(var t,n=e.height,a=e.mediaPosition,i=e.maxShimmerWidth,c=void 0===i?150:i,s=e.showLabelShimmer,u=e.numberOfShimmerButtons,m=void 0===u?4:u,p=e.isSingleColumn,g=(0,d.DP)(),h=.4*c,f=.9*c,v="top"===a||"bottom"===a,x=ce(),E=se(x),y=[],b=0;b<m;b++)y.push((t=b,l().createElement(o.B,{key:t,styles:uc(g,E,!1,!1,p),doNotRenderFalsyValues:!0},l().createElement(o.B,(0,r.__assign)({},vc(g,E,n,a,!1,!1),{doNotRenderFalsyValues:!0}),l().createElement(o.B,{styles:fc(a),doNotRenderFalsyValues:!0},l().createElement(Qa,{width:72,height:72})),l().createElement(o.B,{tokens:{childrenGap:10},horizontalAlign:v?"center":void 0,styles:{root:{width:"100%",overflow:"hidden"}},doNotRenderFalsyValues:!0},l().createElement(nt,{padding:lc},l().createElement(Qa,{width:h,height:14})),l().createElement(Qa,{width:c,height:8}),l().createElement(Qa,{width:f,height:8}))))));return l().createElement(nt,{childrenGap:4},s?l().createElement(Qa,{width:160,height:12}):null,l().createElement(o.B,{styles:{root:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"}},doNotRenderFalsyValues:!0},y))},yh=function(e,t,n){var r;return{root:(r={backgroundColor:e.palette.transparent,boxShadow:n?a.f.depth4:void 0,borderRadius:t,overflow:"hidden"},r[F.up]={outline:"1px solid WindowText"},r)}},bh=function(e){return function(){return"xs"!==e&&"sm"!==e?"Do not support container size: ".concat(e):void 0}},_h=function(e){var t,n,a,c,s=e.containerSize,u=e.displayTitle,m=e.titleAriaLabel,g=void 0===m?"":m,h=e.productLinkData,f=e.displayImage,v=e.displayImageAlt,x=e.tooltipText,E=e.displayImageColor,y=e.children,b=(0,r.__rest)(e,["containerSize","displayTitle","titleAriaLabel","productLinkData","displayImage","displayImageAlt","tooltipText","displayImageColor","children"]),_=(0,d.DP)();switch((0,i.useEffect)((function(){p("SimpleOrderItem",[bh(s)])}),[s]),s){case"sm":t="semi-bold",n="subjectTitle",a="72px",c="72px";break;case"xs":n="bodyPrimaryText",a="56px",c="56px"}var w={"aria-label":g||u,href:(null===h||void 0===h?void 0:h.productLink)||"","data-bi-id":(null===h||void 0===h?void 0:h.dataBIId)||"",target:"_blank",disabled:!h},C=h?l().createElement(nr,(0,r.__assign)({},w,{textVariant:n}),u):u,k="lowContrastTransparent"===E?_.palette.themeSecondary:_.palette.neutralMed;return l().createElement(nt,{horizontal:!0,id:b.id,lang:b.lang},l().createElement(rt,{align:"start",shrink:0,margin:"0px 16px 0px 0px"},l().createElement(o.B,{style:{backgroundColor:k},doNotRenderFalsyValues:!0},l().createElement(ht.N,(0,r.__assign)({tabIndex:-1},w),l().createElement(Ba,{src:f,alt:v,imageType:"altTextImage",width:c,height:a,borderRadius:"4px",imageFit:"contain"})))),l().createElement(rt,{shrink:!0,margin:x?"0px 7px 0px 0px":void 0},l().createElement(nt,null,l().createElement(rt,{align:"start"},l().createElement(Fn,{variant:n,weightOverride:t},C)),y?l().createElement(rt,{grow:!0},y):null)),x?l().createElement(rt,{shrink:!0,margin:"2px 0px 0px 0px"},l().createElement(zn,{tooltipText:x,tooltipPosition:"right-bottom"},l().createElement(Yt,{size:"12px",color:"themePrimary",iconName:"Info"}))):null)},wh=function(e){var t=e.priceDetails,n=e.localStatus,a=e.quantity,o=(e.isGiftOrder,e.orderAttributes),i=e.priceInfoToolTipText,c=(0,r.__rest)(e,["priceDetails","localStatus","quantity","isGiftOrder","orderAttributes","priceInfoToolTipText"]),s=Ce();return l().createElement(_h,(0,r.__assign)({},c),l().createElement(nt,{childrenGap:"2px"},n?l().createElement(rt,{height:"20px"},l().createElement(Fn,{variant:"bodySecondaryText"},n)):null,a?l().createElement(nt,{height:"20px",horizontal:!0,childrenGap:"5px",verticalAlign:"center"},a?l().createElement(rt,{align:"center"},l().createElement(Fn,{variant:"bodySecondaryText"},a)):null):null,l().createElement(nt,{height:"20px",horizontal:!0,childrenGap:"5px",verticalAlign:"center",wrap:!0},t?l().createElement(nt,{horizontal:!0},l().createElement(rt,{align:"center",height:"20px",margin:i?"0px 7px 0px 0px":void 0},l().createElement(Fn,{variant:"bodySecondaryText"},t)),i?l().createElement(rt,{align:"center",shrink:!0,margin:"2px 0px 0px 0px"},l().createElement(zn,{tooltipText:i,tooltipPosition:s?"left-bottom":"right-bottom"},l().createElement(Yt,{size:"12px",color:"themePrimary",iconName:"Info"}))):null):null,null===o||void 0===o?void 0:o.filter((function(e){return e})).map((function(e,t){return l().createElement(rt,{align:"center",key:t},l().createElement(Fn,{variant:"bodySecondaryText"},"| ",e))})))))},Ch=function(e){var t=(0,r.__rest)(e,[]);switch(s("OrderItem",t.id),fe("OrderItem",t),t.orderItemType){case"SimpleOrderItem":return l().createElement(_h,(0,r.__assign)({},t));case"DetailedOrderItem":return l().createElement(wh,(0,r.__assign)({},t))}return null},kh=function(e){var t,n=e.drawerHeaderTitleText,a=e.bundleItems,o=e.overflowLabel,c=(0,r.__rest)(e,["drawerHeaderTitleText","bundleItems","overflowLabel"]);s("BundleItem",c.id);var d=a.map((function(e){return e.displayImage})),u=(0,i.useState)(null!==(t=c.defaultExpanded)&&void 0!==t&&t),m=u[0],p=u[1],g=[{column:l().createElement(Va,{hideHeaderMedia:m,mediaImageList:d,mediaLabel:n,overflowLabel:o}),slots:12}],h=l().createElement(ho,{totalSlots:12,columns:g,showAltBackgroundColor:!0,chevronPosition:"end"});return l().createElement(nt,{width:"100%",backgroundColor:"neutralMed"},l().createElement(Ws,(0,r.__assign)({drawerContentPadding:"0px 10px",drawerHeader:h,borderRadius:"0px"},c,{onClickToClose:function(e){var t;null===(t=null===c||void 0===c?void 0:c.onClickToClose)||void 0===t||t.call(c,e),p(!1)},onClickToOpen:function(e){var t;null===(t=null===c||void 0===c?void 0:c.onClickToOpen)||void 0===t||t.call(c,e),p(!0)}}),a?l().createElement(nt,null,a.map((function(e,t){return l().createElement(rt,{padding:"12px 0px",key:t},l().createElement(Ch,(0,r.__assign)({containerSize:"xs",orderItemType:"DetailedOrderItem"},e)))}))):null))},Th={hollowGrayCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/3e329228-4c45-4f6e-99fc-dd9c3f3cec57.svg?n=hollow-gray-circle.svg",horizontalMargin:"7px 0px",verticalMargin:"0px 9px",topOffset:5},hollowBlueCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/a0867592-4a0f-49f5-b3a6-364516db9868.svg?n=hollow-blue-circle.svg",horizontalMargin:"7px 0px",verticalMargin:"0px 9px",topOffset:5},solidGrayCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/c1d8a1e2-3e0e-402f-8691-33aef4056296.svg?n=solid-gray-circle.svg",horizontalMargin:"7px 0px",verticalMargin:"0px 9px",topOffset:5},solidBlueCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/9435b62b-dfde-47f8-9c0d-02f0731d3fc2.svg?n=solid-blue-circle.svg",horizontalMargin:"7px 0px",verticalMargin:"0px 9px",topOffset:5},deliveryTruck:{src:"https://assets.account.microsoft.com/shared/compassassets/b4ec9d7e-6f4c-48fd-928f-df05b810dabe.svg?n=truck.svg",rtlSrc:"https://assets.account.microsoft.com/shared/compassassets/6314240b-3ae9-4d2e-bf2f-825af312d5dd.svg?n=truck-rtl.svg",horizontalMargin:"3px 0px",verticalMargin:"0px 4px",topOffset:1},blueCheckMark:{src:"https://assets.account.microsoft.com/shared/compassassets/be21deff-0774-4d01-a697-2b8fd2b100ab.svg?n=blue-check-mark.svg",horizontalMargin:"3px 0px",verticalMargin:"0px 5px",topOffset:0},grayErrorCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/c0272210-d100-4b54-be4c-7d9d05cb6d6e.svg?n=error-circle-gray.svg",horizontalMargin:"3px 0px",verticalMargin:"0px 5.5px",topOffset:3},yellowErrorCircle:{src:"https://assets.account.microsoft.com/shared/compassassets/56b95e93-a1c9-46d7-b496-ab6c4431631f.svg?n=error-circle-yellow.svg",horizontalMargin:"3px 0px",verticalMargin:"0px 6px",topOffset:2}},Sh=function(e){return{borderTop:"2px dashed ".concat(e.palette.neutralQuaternary),display:"block",width:"100%",margin:"11px 0px"}},Ph=function(e){return(0,r.__assign)((0,r.__assign)({},Sh(e)),{borderTop:"2px solid ".concat(e.palette.neutralQuaternary)})},Bh=function(e){return(0,r.__assign)((0,r.__assign)({},Sh(e)),{borderTop:"2px solid ".concat(e.palette.themePrimary)})},Lh=function(e,t,n){void 0===n&&(n="dashed");var a,o=Ce()?{borderRight:"2px ".concat(n," ").concat(t),margin:"0px 13px 0px 0px"}:{borderLeft:"2px ".concat(n," ").concat(t),margin:"0px 0px 0px 13px"};return e&&"dashed"===n&&(a=e-1.5),(0,r.__assign)((0,r.__assign)({},o),{display:"block",height:"100%",minHeight:a||(void 0!==e?e:"46px"),marginTop:a&&a>0?"1.5px":"0px"})},Ah=function(e,t){return Lh(t,"".concat(e.palette.neutralQuaternary),"solid")},Ih=function(e,t){return Lh(t,"".concat(e.palette.themePrimary),"solid")},Fh=function(e){var t;return l().createElement(nt,null,l().createElement(rt,null,"text"===e.statusLabel.kind?l().createElement(Fn,(0,r.__assign)({},e.statusLabel)):l().createElement(ur,(0,r.__assign)({},e.statusLabel))),null===(t=e.subStatusLabels)||void 0===t?void 0:t.map((function(e,t){return l().createElement(rt,{key:t},"text"===e.kind?l().createElement(Fn,(0,r.__assign)({},e)):l().createElement(ur,(0,r.__assign)({},e)))})))},Dh=function(e){return Ce()&&Th[e].rtlSrc?Th[e].rtlSrc:Th[e].src},Rh=function(e,t,n){return function(){return e.length<2&&("horizontal"!==t||!n)?"StatusTracker cannot have less than ".concat(2," statuses"):void 0}},zh=function(e,t,n,r){return function(){return n>=e.length&&("horizontal"!==t||!r)?"StatusTracker cannot have its current step more than the total number of statuses":void 0}},Hh=function(e){var t=e.lineStyle,n=void 0===t?"dashed":t,a=e.currentStep,o=void 0===a?0:a,i=e.labelBottom,c=void 0!==i&&i,s=e.statuses,u=void 0===s?[]:s,m=(0,d.DP)(),p=u[o];return l().createElement(nt,null,c?null:l().createElement(rt,null,Fh(p.labels)),l().createElement(rt,{padding:"0px 0px 12px 0px"},l().createElement("ol",{style:{display:"flex"},"aria-label":p.ariaLabel,tabIndex:-1},u.map((function(e,t){return t!==u.length-1?l().createElement(l().Fragment,{key:t},l().createElement("li",{"aria-hidden":!0,style:{margin:Th[e.imageName].horizontalMargin,display:"inline-block",verticalAlign:"top"},key:"image-".concat(t)},l().createElement(Ba,{src:Dh(e.imageName),imageType:"ariaHiddenImage",imageFit:"none"})),l().createElement("li",{"aria-hidden":!0,style:(0,r.__assign)((0,r.__assign)({},(a=u.length,{width:"calc(100% / ".concat(a-1,")"),minWidth:"46px"})),{display:"inline-block",verticalAlign:"top"}),key:"line-".concat(t)},t<o?l().createElement("span",{className:"line",style:Bh(m)}):null,t>=o&&"dashed"===n?l().createElement("span",{className:"line",style:Sh(m)}):null,t>=o&&"solid"===n?l().createElement("span",{className:"line",style:Ph(m)}):null)):l().createElement("li",{"aria-hidden":!0,style:{margin:Th[e.imageName].horizontalMargin,display:"inline-block",verticalAlign:"top"},key:"image-".concat(t)},l().createElement(Ba,{src:Dh(e.imageName),imageType:"ariaHiddenImage",imageFit:"none"}));var a})))),c?l().createElement(rt,null,Fh(p.labels)):null)},Nh=function(e){var t=e.lineStyle,n=void 0===t?"dashed":t,a=e.currentStep,i=void 0===a?0:a,c=e.infoMessage,s=e.statuses,u=void 0===s?[]:s,m=(0,d.DP)(),p={},g=function(e){return l().createElement(he.a,{style:{margin:Th[e.imageName].verticalMargin}},l().createElement(Ba,{src:Dh(e.imageName),imageType:"ariaHiddenImage",imageFit:"none"}))},h=function(e,t,r){return void 0===t&&(t=!1),l().createElement(he.a,{verticalFill:t},function(e,t,n,r,a){return t<n?l().createElement("span",{className:"line",style:Ih(e,a)}):"dashed"===r?l().createElement("span",{className:"line",style:Lh(a,e.palette.neutralQuaternary,r)}):l().createElement("span",{className:"line",style:Ah(e,a)})}(m,e,i,n,r))};return l().createElement(o.B,{doNotRenderFalsyValues:!0},l().createElement(he.a,{style:{margin:"0px 0px 0px 5px"}},c?l().createElement(o.B,{horizontal:!0,doNotRenderFalsyValues:!0},l().createElement(he.a,{style:{margin:"0px 5px 0px 2px"}},c.icon?l().createElement(o.B,{doNotRenderFalsyValues:!0},l().createElement(Yt,(0,r.__assign)({},c.icon))):null),l().createElement(he.a,{style:{padding:"0px 8px 20px"}},"text"===c.message.kind?l().createElement(Fn,(0,r.__assign)({},c.message)):l().createElement(ur,(0,r.__assign)({},c.message)))):null),l().createElement(he.a,null,l().createElement("ol",null,u.map((function(e,t){return p=e.ariaLabel?{role:"img","aria-label":e.ariaLabel}:{},0===t?l().createElement("li",{style:{display:"block"},key:t},l().createElement(o.B,{horizontal:!0,doNotRenderFalsyValues:!0},l().createElement(he.a,(0,r.__assign)({},p,{style:{margin:"".concat(Th[e.imageName].topOffset,"px 0px 0px 0px")}}),l().createElement(o.B,{style:{height:"100%"},doNotRenderFalsyValues:!0},g(e),h(t,!0))),l().createElement(he.a,{style:{padding:"0px 8px 20px"}},Fh(e.labels)))):t!==u.length-1?l().createElement("li",{"aria-hidden":t>i,style:{display:"block"},key:t},l().createElement(o.B,{horizontal:!0,doNotRenderFalsyValues:!0},l().createElement(he.a,(0,r.__assign)({},p),l().createElement(o.B,{style:{height:"100%"},doNotRenderFalsyValues:!0},h(t-1,!1,Th[e.imageName].topOffset),g(e),h(t,!0))),l().createElement(he.a,{style:{padding:"0px 8px 20px"}},Fh(e.labels)))):l().createElement("li",{"aria-hidden":t>i,style:{display:"block"},key:t},l().createElement(o.B,{horizontal:!0,doNotRenderFalsyValues:!0},l().createElement(he.a,(0,r.__assign)({},p),l().createElement(o.B,{doNotRenderFalsyValues:!0},h(t-1,!1,Th[e.imageName].topOffset),g(e))),l().createElement(he.a,{style:{padding:"0px 8px"}},Fh(e.labels))))})))))},Vh=function(e){var t=e.variant,n=e.lineStyle,r=void 0===n?"dashed":n,a=e.currentStep,o=void 0===a?0:a,c=e.nonStepLabels,d=e.labelBottom,u=void 0!==d&&d,m=e.infoMessage,g=e.statuses,h=void 0===g?[]:g;return s("StatusTrackerV2"),(0,i.useEffect)((function(){var e=[Rh(h,t,c),zh(h,t,o,c)];p("StatusTrackerV2",e)}),[h,t,c,o]),"horizontal"===t?c?l().createElement(nt,null,Fh(c)):l().createElement(Hh,{lineStyle:r,currentStep:o,labelBottom:u,statuses:h}):l().createElement(Nh,{lineStyle:r,currentStep:o,infoMessage:m,statuses:h})},Mh=function(e){var t,n=e.drawerHeaderTitleText,a=e.detailedBundleItems,o=e.overflowLabel,c=(0,r.__rest)(e,["drawerHeaderTitleText","detailedBundleItems","overflowLabel"]),s=ce(),d=["s","m"].includes(s),u=a.map((function(e){return e.orderItemProps.displayImage})),m=(0,i.useState)(null!==(t=c.defaultExpanded)&&void 0!==t&&t),p=m[0],g=m[1],h=[{column:l().createElement(Va,{hideHeaderMedia:p,mediaImageList:u,mediaLabel:n,overflowLabel:o}),slots:12}],f=l().createElement(ho,{totalSlots:12,columns:h,showAltBackgroundColor:!0,chevronPosition:"end"});if(0===a.length)return l().createElement(l().Fragment,null);return l().createElement(Ws,(0,r.__assign)({drawerHeader:f,borderRadius:"0px",onClickToOpen:function(){g(!0)},onClickToClose:function(){g(!1)}},c),l().createElement(nt,{backgroundColor:"transparent"},function(e,t,n){return e.map((function(e,a){return l().createElement(nt,{key:a,margin:t(a),backgroundColor:"transparent"},l().createElement(gm,{backgroundColor:"neutralMed",firstSegment:l().createElement(Ch,(0,r.__assign)({},e.orderItemProps)),secondSegment:e.statusTrackerProps?l().createElement(Vh,(0,r.__assign)({},e.statusTrackerProps)):null,thirdSegment:n(e),variant:"SixThreeThree"}))}))}(a,(function(e){return 0===e?"1px 0px":e===a.length-1?"0px":"0px 0px 1px 0px"}),(function(e){var t=l().createElement(nt,{horizontalAlign:d?"start":"end",padding:d?"10px 0px 0px 0px":"0px"},l().createElement(nt,{width:d?"auto":"205px",childrenGap:"8px",horizontal:d},e.callToActionButtonPropsArray&&(null===e||void 0===e?void 0:e.callToActionButtonPropsArray.map((function(e,t){return l().createElement(qr,(0,r.__assign)({key:t},e))}))))),n=l().createElement(nt,{horizontalAlign:d?"start":"end",padding:d?"10px 0px 0px 0px":"0px"},t,e.showSpinner?l().createElement(nt,{margin:"20px 77px",horizontalAlign:"center"},l().createElement(ro,{"aria-label":"",label:void 0,labelPosition:"left",spinnerSize:2})):null);return l().createElement(l().Fragment,null,n)}))))};var Wh=function(e){for(var t,n=e.height,r=e.maxShimmerWidth,a=void 0===r?150:r,i=e.textAlignment,c=void 0===i?"left":i,s=e.showLabelShimmer,u=e.numberOfShimmerButtons,m=void 0===u?4:u,p=e.isSingleColumn,g="center"===c?"center":"right"===c?"end":void 0,h=.4*a,f=.9*a,v=ce(),x=(0,d.DP)(),E=se(v),y=[],b=0;b<m;b++)y.push((t=b,l().createElement(o.B,{key:t,styles:uc(x,E,!1,!1,p),doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:yc(x,E,n,c,!1,!1),doNotRenderFalsyValues:!0},l().createElement(o.B,{styles:{root:{width:"100%",overflow:"hidden"}},tokens:{childrenGap:10},horizontalAlign:g,doNotRenderFalsyValues:!0},l().createElement(nt,{padding:lc},l().createElement(Qa,{width:h,height:14})),l().createElement(Qa,{width:a,height:8}),l().createElement(Qa,{width:f,height:8}))))));return l().createElement(nt,{childrenGap:4},s?l().createElement(Qa,{width:160,height:12}):null,l().createElement(o.B,{styles:{root:{display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"space-between"}},doNotRenderFalsyValues:!0},y))},Oh={s:2,m:3,l:4,xl:5},Gh={s:2,m:2,l:3,xl:5},Uh=function(e){return function(){return e.length<1?"MediaGroup cannot have less than ".concat(1," items"):void 0}},jh=function(e){return function(){return e.length>10?"MediaGroup cannot have more than ".concat(10," items"):void 0}},Kh=function(e,t,n){var r="minimalNoShadow"===n,o="24px";return t?o="16px 0px 24px 0px":r&&(o="0"),{root:{outline:"1px solid transparent",backgroundColor:n.includes("minimal")?e.palette.transparent:e.palette.neutralHigh,borderRadius:t?"0px":"8px",boxShadow:r?a.f.depth0:a.f.depth4,overflow:"hidden",transitionDuration:me,cursor:"auto",padding:o}}},Zh=function(e,t,n){var r,a,o,i,l,c;return{root:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:t?"auto":"152px",maxWidth:200,width:t?"auto":"100%",border:t?"none":"1px solid transparent",margin:t?"8px 0px 0px 0px":void 0,borderRadius:"8px",selectors:(r={":focus":(a={border:"1px solid ".concat(e.palette.neutralPrimary),backgroundColor:e.palette.neutralMed},a[F.up]={border:"1px solid Highlight",span:{color:"Highlight"}},a),":hover":(o={textDecoration:"none",borderBottom:t?"none":void 0,backgroundColor:n?e.palette.transparent:e.palette.neutralMed,boxShadow:n?void 0:"".concat(pe.hover),cursor:n?"default":"pointer"},o[F.up]={span:{color:"Highlight"}},o),":hover:focus":(i={border:"1px solid ".concat(e.palette.neutralPrimary),backgroundColor:e.palette.neutralMed,boxShadow:"".concat(pe.hover)},i[F.up]={border:"1px solid Highlight",span:{color:"Highlight"}},i),":active:focus":(l={textDecoration:"none",border:"1px solid transparent",boxShadow:"".concat(pe.rest),backgroundColor:e.palette.neutralLighterAlt},l[F.up]={border:"1px solid Highlight",span:{color:"Highlight",outline:"1px solid Highlight"}},l),".ms-Fabric--isFocusVisible &:focus":(c={boxShadow:"none",outline:"none"},c[F.up]={boxShadow:"none",outline:"none"},c)},r[F.up]={border:"1px solid Window"},r)}}},Xh=function(e){var t=e.mediaImage,n=e.mediaText,a=e.ctaUrl,i=e.onClickProps,c=e.mediaVariant,s=void 0===c?"default":c,u=e["data-bi-id"],m=e["aria-label"],p=e.target,g=void 0===p?"_blank":p,h=(0,r.__rest)(e,["mediaImage","mediaText","ctaUrl","onClickProps","mediaVariant","data-bi-id","aria-label","target"]);fe("MediaGroupProduct",h);var f=(0,d.DP)(),v=ce(),x="icon"===t.imageType?"xxl":"lg",E="imageCard"===t.imageType,y=["minimalShadow","minimalNoShadow"].includes(s);return y?l().createElement(o.B,{styles:Zh(f,!0,y)},l().createElement(Fa,{size:"image"===t.imageType?"xxxl":"xl",borderRadius:"4px",image:t,horizontal:!1,padding:"image"===t.imageType?"0":"8px"})):l().createElement(o.B,(0,r.__assign)({"data-is-focusable":!0,tabIndex:0,grow:!0,verticalAlign:"center",role:"listitem",doNotRenderFalsyValues:!0,onClick:function(e){void 0!==i&&i.onClick(e),void 0!==a&&window.open(a,g)},styles:Zh(f,E,y),"data-bi-id":u,"aria-label":m},h),l().createElement(Fa,{size:E?function(){switch(v){case"l":return"lg";case"m":return"md";case"s":return"sm";default:return x}}():x,borderRadius:E?"8px":void 0,image:t,horizontal:!1},n?l().createElement(Fn,null,n):null))},Yh=function(e){var t=e.products,n=e.padding,a=void 0===n?"16px":n,c=e.variant,u=void 0===c?"default":c,m=(0,r.__rest)(e,["products","padding","variant"]);s("MediaGroup",m.id),(0,i.useEffect)((function(){var e=[Uh(t),jh(t)];p("MediaGroup",e)}),[t]),fe("MediaGroup",m);var g=t.some((function(e){return"imageCard"===e.mediaImage.imageType})),h=["minimalShadow","minimalNoShadow"].includes(u),f=ce(),v=(0,d.DP)(),x=function(e,t,n){return["xxl","xxxl"].includes(e)?t:n?Gh[e]:Oh[e]}(f,t.length,g),E=function(e,t){return e.reduce((function(e,n,r){return r%t===0?e.push([n]):e[e.length-1].push(n),e}),[])}(t,x);return l().createElement(o.B,(0,r.__assign)({styles:Kh(v,g,u),tokens:{childrenGap:24},verticalAlign:"center",horizontalAlign:g||h?"center":void 0},m,{role:h?"":"list",doNotRenderFalsyValues:!0}),l().createElement(Nc,null,E.map((function(e,t){return g||h?l().createElement(o.B,{tokens:{childrenGap:a},horizontal:!0,key:t,doNotRenderFalsyValues:!0},e.map((function(e,t){return l().createElement(he.a,{key:t},l().createElement(o.B,{grow:1,styles:{root:{display:"flex",flexDirection:"row",justifyContent:"start"}},doNotRenderFalsyValues:!0},l().createElement(Xh,(0,r.__assign)({mediaVariant:u},e))))}))):l().createElement(mt,{key:t,totalSlots:x},e.map((function(e,t){return l().createElement(pt,{key:t,slots:1},l().createElement(o.B,{grow:1,styles:{root:{display:"flex",flexDirection:"row",justifyContent:"center"}},doNotRenderFalsyValues:!0},l().createElement(Xh,(0,r.__assign)({},e))))})))}))))},qh=n(58753),Qh=n(52324),Jh={display:"inline-flex",verticalAlign:"bottom"},$h={display:"inline-flex"},ef=function(e){return function(){return l().isValidElement(e)&&e.type===rf?void 0:"Tabs only accepts children of type TabItem"}},tf="data-bi-props",nf=function(e){var t=e.selectedKey,n=e.children,a=e.onChange,o=e.variant,i=void 0===o?"default":o,c=e.separator,m=void 0!==c&&c,g=(0,r.__rest)(e,["selectedKey","children","onChange","variant","separator"]);s("Tabs",g.id),fe("Tabs",g);var h=(0,ft.useHistory)(),f=(0,d.DP)(),v=l().Children.map(n,(function(e){if(e)return p("Tabs",[ef(e)]),rf(e.props,e.props.itemKey===t)})),x=function(e,t,n){var a=t?{borderBottomWidth:"1px",borderBottomStyle:"solid",borderColor:e.palette.neutralLight}:void 0;return{root:"centeredWithBackground"===n?(0,r.__assign)((0,r.__assign)({},a),{zIndex:u.XZ.twoUITab,borderTopLeftRadius:"8px",borderTopRightRadius:"8px",background:e.palette.neutralHigh,textAlign:"center",paddingTop:"16px"}):(0,r.__assign)((0,r.__assign)({},a),{zIndex:u.XZ.twoUITab})}}(f,m,i);return l().createElement(qh.f,(0,r.__assign)({selectedKey:t,onLinkClick:function(e,t){var n,r=null===(n=null===e||void 0===e?void 0:e.props)||void 0===n?void 0:n.headerButtonProps[tf];a&&a(r,t),r.url&&h.push(r.url)},styles:x,overflowBehavior:"menu",theme:f},g),v)},rf=function(e,t){var n,a=e.text,i=e.icon,c=e.textColorVariant,s=void 0===c?"default":c,u=e.staticWidth,m=e["aria-label"],p=e.itemKey,g=e.children,h=(0,r.__rest)(e,["text","icon","textColorVariant","staticWidth","aria-label","itemKey","children"]);fe("TabItem",h);var f=(0,d.DP)(),v=i||"default"!==s||u;return l().createElement(Qh.y,{headerText:a,ariaLabel:m,itemKey:p,headerButtonProps:(0,r.__assign)((0,r.__assign)({},h),(n={},n[tf]=e,n)),onRenderItemLink:v?function(e,n){if(!e||!n)return null;var a={display:"block",width:u||"auto"};if(t&&"primary"===s)a=(0,r.__assign)((0,r.__assign)({},a),{color:f.palette.themePrimary});return l().createElement(o.B,{horizontal:!0,tokens:{childrenGap:8},style:(0,r.__assign)({},a),doNotRenderFalsyValues:!0},i?l().createElement("div",{style:Jh},l().createElement(Yt,{iconName:i})," "):void 0,l().createElement("div",{style:$h},n((0,r.__assign)({},e))))}:void 0},g)},af=[lm,km,gm,am,Ws,zu,Rd,kh,Mh,Qa,Cc,Wh,qu,Yh,nf],of=[Ir],lf=function(e){var t=e.headerProps,n=e.headerActionElement,a=e.features,c=e.borderRadius,u=void 0===c?"8px":c,m=e.hasBoxShadow,p=void 0===m||m,g=e.role,h=e.headerId;s("MediaContainer"),(0,i.useEffect)((function(){if(a)for(var e=0;e<a.length;e++)O(a[e].featureNode,af,"MediaContainer")}),[a]);var f=(0,d.DP)(),v=ce(),x=se(v),E="10px 16px 3px 16px";n&&(O(n,of,"MediaContainer"),E="3px 16px 3px 16px");return l().createElement(o.B,{styles:yh(f,u,p),role:g,"aria-labelledby":h,doNotRenderFalsyValues:!0},t?l().createElement(nt,{padding:E,backgroundColor:"neutralHigh",horizontal:!x,verticalAlign:"center",horizontalAlign:"space-between"},l().createElement(ur,(0,r.__assign)({},t)),x?l().createElement(o.B,{styles:{root:{marginLeft:"-8px",display:"block"}},doNotRenderFalsyValues:!0},n):n):null,a&&a.map((function(e,t){return l().createElement(nt,{padding:e.padding,margin:e.margin,backgroundColor:e.backgroundColor,key:t},e.featureNode)})))},cf=n(94252),sf=(0,I.n)({root:(0,r.__assign)((0,r.__assign)({display:"flex",flexDirection:"column",backgroundColor:Tt.L.colorTransparentBackground},cf.Pt.overflow("hidden")),{"@media (forced-colors: active)":(0,r.__assign)({},cf.Pt.border("1px","solid","WindowText"))}),rootWithShadow:{boxShadow:Tt.L.shadow4},mobileActionWrapper:{marginLeft:Tt.L.spacingHorizontalMNudge,display:"block"}}),df=[lm,km,gm,am,Ws,zu,Rd,kh,Mh,Qa,Cc,Wh,qu,Yh,nf,gm,cm,km,hm,lm,om],uf=[Ir],mf=function(e){var t=e.headerProps,n=e.headerActionElement,a=e.features,o=e.borderRadius,c=void 0===o?"8px":o,d=e.hasBoxShadow,u=void 0===d||d,m=e.role,p=e.headerId;s("MediaContainer"),(0,i.useEffect)((function(){if(a)for(var e=0;e<a.length;e++)O(a[e].featureNode,df,"MediaContainer")}),[a]);var g=ce(),h=se(g),f=sf(),v="10px 16px 3px 16px";n&&(O(n,uf,"MediaContainer"),v="3px 16px 3px 16px");var x=(0,ve.z)(f.root,u&&f.rootWithShadow);return l().createElement("div",{className:x,style:{borderRadius:c},role:m,"aria-labelledby":p},t?l().createElement(et,{padding:v,backgroundColor:"neutralHigh",horizontal:!h,verticalAlign:"center",horizontalAlign:"space-between"},l().createElement(lr,(0,r.__assign)({},t)),h?l().createElement("div",{className:f.mobileActionWrapper},n):n):null,a&&a.map((function(e,t){return l().createElement(et,{key:t,padding:e.padding,margin:e.margin,backgroundColor:e.backgroundColor},e.featureNode)})))},pf=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(S)?l().createElement(mf,(0,r.__assign)({},t)):l().createElement(lf,(0,r.__assign)({},t))},gf=l().createContext(void 0),hf=function(e,t){switch(t.type){case"closeNotificationBar":return e.filter((function(e){return e.id!==t.id}));case"openNotificationBar":return 0===e.length?[{id:t.id,notificationBar:t.notificationBar}]:[{id:t.id,notificationBar:t.notificationBar},e[0]];default:return e}},ff=function(e){var t=e.children,n=(0,i.useReducer)(hf,[]),r=n[0],a=n[1],o=r.map((function(e){return l().createElement(Ef,{id:e.id,key:e.id},e.notificationBar)}));return l().createElement(gf.Provider,{value:{showNotificationBar:function(e){var t=(0,u.DA)();a({type:"openNotificationBar",notificationBar:e,id:t})},removeNotificationBar:function(e){a({type:"closeNotificationBar",id:e})}}},t,l().createElement(wf,null,o))},vf=function(){return(0,i.useContext)(gf)},xf=l().createContext(""),Ef=function(e){var t=e.children,n=e.id;return l().createElement(xf.Provider,{value:n},t)},yf=function(){return{pointerEvents:"none",position:"fixed",width:"100%",bottom:0,left:0,zIndex:u.XZ.twoUINotificationBar,padding:"0 0 10px 0"}},bf=function(e,t,n,r){var a,o="neutralHigh";"error"===t?o="severeWarning":n&&(o="themeLighterAlt");var i=Zt(e,o),l="400px",c="800px";return"s"===r?(l="min(400px, calc(100vw - 32px))",c="calc(100vw - 32px)"):"m"===r?c="calc(100vw - 64px)":"l"===r&&(c="min(800px, calc(100vw - 96px))"),{root:(a={minHeight:48,maxHeight:92,minWidth:l,maxWidth:c,padding:"0 16px 0 16px",boxShadow:pe.controls,backgroundColor:i,borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",pointerEvents:"auto"},a[F.up]={outline:"1px solid highlight"},a)}},_f=(0,i.forwardRef)((function(e,t){var n=e.iconName,a=e.message,c=e.ariaMessage,m=e.notificationAction,p=e.closeButton,g=e.showTime,h=void 0===g?1e4:g,f=e.notificationBarType,v=void 0===f?"info":f,x=e.isThemeStyle,E=void 0!==x&&x,y=(0,i.useContext)(xf);s("NotificationBar");var b=vf(),_=(0,Xo.B)(),w=(0,d.DP)(),C=ce(),k=(0,i.useRef)(null),T=null===t,S=(0,i.useState)((function(){return T?"visible":"hidden"})),P=S[0],B=S[1],L=(0,i.useRef)(0);(0,u.iK)((function(){return clearTimeout(k.current)})),(0,i.useEffect)((function(){T&&D()}),[]);var A=function(){clearTimeout(k.current)},I=function(){if("visible"===P){var e=h-(Date.now()-L.current);k.current=setTimeout((function(){z()}),Math.max(e,1e3))}},D=function(){clearTimeout(k.current),L.current=Date.now(),k.current=setTimeout((function(){z()}),h),B("visible")},R=function e(){var t=document.getElementById(_);null===t||void 0===t||t.removeEventListener("webkitAnimationEnd",e),null===t||void 0===t||t.removeEventListener("animationend",e),B((function(e){return"slideOut"===e?"hidden":e})),null===b||void 0===b||b.removeNotificationBar(y)},z=function(){clearTimeout(k.current);var e=document.getElementById(_);null===e||void 0===e||e.addEventListener("webkitAnimationEnd",R),null===e||void 0===e||e.addEventListener("animationend",R),B("slideOut")};(0,i.useImperativeHandle)(t,(function(){return{showNotificationBar:D,hideNotificationBar:z}}));var H="error"===v?"errorIcon":"successIcon",N="error"===v?"errorBlockIcon":"bodyPrimaryText",V="error"===v?"default":"primary",M="error"===v?"errorIcon":"black";return"hidden"===P?l().createElement(l().Fragment,null):l().createElement(o.B,{id:_,styles:{root:["visible"===P?F.Dm.slideUpIn20:F.Dm.slideDownOut20,T?void 0:yf()]},horizontalAlign:"center",verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(o.B,{onMouseEnter:A,onMouseLeave:I,onFocus:A,onBlur:I,tokens:{childrenGap:8},styles:bf(w,v,E,C),horizontal:!0,doNotRenderFalsyValues:!0},n?l().createElement(o.B.Item,{align:"auto"},l().createElement(Yt,{iconName:n,size:"16px",color:H})):null,l().createElement(o.B.Item,{align:"auto",grow:!0,styles:{root:{margin:"12px 0px 12px 0px"}}},l().createElement(Qn,{variant:N,lines:3},a)),m?l().createElement(o.B.Item,{align:"auto",disableShrink:!0},l().createElement(qr,(0,r.__assign)({},m,{type:V}))):null,l().createElement(o.B.Item,{align:"auto",styles:{root:{marginLeft:"auto",marginRight:"-8px"}}},l().createElement(Qr,(0,r.__assign)({iconName:"Cancel",iconColor:M},p,{onClick:z})))),l().createElement(mi,{message:c,ariaLive:"assertive"}))})),wf=function(e){var t=e.children;return l().createElement(o.B,{styles:{root:[yf()]},tokens:{childrenGap:8},doNotRenderFalsyValues:!0},t)},Cf=function(e,t){return function(){return(e?t.length<=1:t.length<=2)?void 0:"PasswordInput has too many suffix buttons"}},kf=function(e){var t;return{root:{padding:"0 4px 0 0",".ms-Button--icon":(t={height:"24px",width:"24px"},t[F.up]={":hover":{backgroundColor:e?void 0:"highlight"}},t)}}},Tf=function(e,t,n){return(0,r.__assign)((0,r.__assign)({},yg(e,t,n)),{field:{paddingLeft:"12px"},root:{"input::-ms-reveal":{display:"none"}}})},Sf=function(){return{root:{padding:"9px 0px 0px 12px",width:"100%"}}},Pf=function(){return{root:{padding:"9px 8px 9px 0px"}}},Bf=function(e){var t,n=e["aria-label"],a=e.value,c=e.underlined,u=e.revealPasswordIconButton,m=e.suffixButtons,g=e.disabled,h=e.operationData,f=e.onBlur,v=(0,r.__rest)(e,["aria-label","value","underlined","revealPasswordIconButton","suffixButtons","disabled","operationData","onBlur"]),x=(0,d.DP)();s("PasswordInput",v.id),fe("PasswordInput",v),p("PasswordInput",[Cf(u,null!==m&&void 0!==m?m:[])]);var E=(0,i.useState)(!1),y=E[0],b=E[1],_=function(){b(!y)},w=(0,i.useState)(""!==a),C=w[0],k=w[1];l().useEffect((function(){k(!!a)}),[a]);var T=u||!!m&&m.length>0,S=l().createElement(Eg.A,(0,r.__assign)({},v,{value:a,underlined:c,ariaLabel:n,disabled:g,styles:Tf(x,g||!1,c),onRenderInput:function(e){return l().createElement(o.B,{styles:Sf,doNotRenderFalsyValues:!0},l().createElement(Qa,{height:12,width:120}))},onRenderSuffix:function(e){var t=l().createElement(o.B,{styles:Pf,doNotRenderFalsyValues:!0},l().createElement(Qa,{height:12,width:12}));return T?l().createElement(o.B,{horizontal:!0,doNotRenderFalsyValues:!0},u?t:void 0,m?m.map((function(){return t})):void 0):null}})),P=(0,r.__assign)((0,r.__assign)({},v),{value:a,underlined:c,ariaLabel:n,disabled:g,styles:Tf(x,g||!1,c),onRenderSuffix:function(e){var t;if(void 0!==u){var n={onClick:_,"data-bi-id":u.dataBiID,iconColor:"neutralSecondary",disabled:g},a=y?(0,r.__assign)({iconName:"Hide","aria-label":u.hideAriaLabel,tooltipHostProps:{tooltipText:u.hideTooltip}},n):(0,r.__assign)({iconName:"RevealPasswordMedium","aria-label":u.revealAriaLabel,tooltipHostProps:{tooltipText:u.revealTooltip}},n);t=l().createElement(Qr,(0,r.__assign)({},a))}else m&&m.length>0&&(t=void 0);return C?l().createElement(o.B,{horizontal:!0,styles:kf(null!==g&&void 0!==g&&g),doNotRenderFalsyValues:!0},t,g||null===m||void 0===m?void 0:m.map((function(e,n){return l().createElement(o.B,{horizontal:!0,style:(a=!t&&0===n,{marginLeft:a?void 0:"4px"}),doNotRenderFalsyValues:!0},l().createElement(Qr,(0,r.__assign)({},e,{iconColor:"neutralSecondary",key:n})));var a}))):null},onFocus:function(){k(""!==a)},onBlur:function(e){null===f||void 0===f||f(e),k(""!==a)},onRenderInput:function(e,t){var n;return e&&(e.type=y?"text":"password",e.style={textOverflow:"clip",color:g?x.palette.neutralTertiary:void 0},e.disabled=g),null!==(n=null===t||void 0===t?void 0:t(e))&&void 0!==n?n:null}}),B=l().createElement(Eg.A,(0,r.__assign)({},P)),L=l().createElement(Eg.A,(0,r.__assign)({},P,{errorMessage:null!==(t=null===h||void 0===h?void 0:h.errorMessage)&&void 0!==t?t:""}));return h?l().createElement(M,{operationData:h.progressViewOperationData,inertView:B,firstLoadView:S,failedView:L,updatingView:S,updateFailedView:L,finishedView:B}):B},Lf=n(68878),Af=n(89575),If=n(44101),Ff={valid:Lf.v.valid,warning:Lf.v.warning,invalid:Lf.v.invalid},Df=function(e){var t=e.onResolveSuggestions,n=e.onEmptyResolveSuggestions,a=e.onValidateInput,o=e.defaultSelectedItems,i=e.onChange,c=(0,r.__rest)(e,["onResolveSuggestions","onEmptyResolveSuggestions","onValidateInput","defaultSelectedItems","onChange"]);s("PeoplePicker",c.id),fe("PeoplePicker",c);return l().createElement(If.fw,(0,r.__assign)({onResolveSuggestions:function(e,n){return e?t(e,n):null},onChange:i,onEmptyResolveSuggestions:n,onValidateInput:a?function(e){return Ff[a(e)]}:void 0,defaultSelectedItems:o,createGenericItem:function(e,t){return{key:e,text:e,imageInitials:t===Lf.v.warning?"!":(0,Af.I)(e,Ce()),initialsColor:t===Lf.v.warning?sl.f5.darkRed:void 0,ValidationState:t}}},c))},Rf=function(e){switch(e){case"256":case"200":case"160":case"120":case"100":case"72":case"56":return 16;case"48":case"40":return 12;case"32":case"28":case"24":return 8}},zf=function(e){switch(e){case"256":case"200":case"160":case"120":case"100":case"72":case"56":case"48":return 10;case"40":return 8;case"32":case"28":case"24":return 4}},Hf=function(e){var t=e.size,n=e.primaryText,r=void 0!==n&&n,a=e.secondaryText,o=void 0!==a&&a,i=e.tertiaryText,c=void 0!==i&&i,s=t,d=r||o||c;return l().createElement(nt,{verticalAlign:"center",horizontal:!0},l().createElement(nt,{verticalAlign:"center",width:"".concat(s,"px")},l().createElement(ll,{height:+s})),d?l().createElement(nt,{verticalAlign:"center",padding:"0px 0px 0px ".concat(Rf(t),"px")},r?l().createElement(nt,null,l().createElement(Qa,{height:16,width:143})):null,o?l().createElement(nt,{padding:"".concat(zf(t),"px 0px 0px 0px")},l().createElement(Qa,{height:8,width:119})):null,c?l().createElement(nt,{padding:"".concat(zf(t),"px 0px 0px 0px")},l().createElement(Qa,{height:8,width:138})):null):null)},Nf=function(e){return["256","200","160","120","100","72","56","48"].includes(e)?10:["40"].includes(e)?8:(["32","28","24"].includes(e),4)},Vf=function(e){var t,n=e.size,r=e.primaryText,a=void 0!==r&&r,o=e.secondaryText,i=void 0!==o&&o,c=e.tertiaryText,s=void 0!==c&&c,d=Number(n),u=a||i||s;return l().createElement(nt,{verticalAlign:"center",horizontal:!0},l().createElement(nt,{verticalAlign:"center",width:"".concat(d,"px")},l().createElement(ll,{height:d})),u?l().createElement(nt,{verticalAlign:"center",padding:"0px 0px 0px ".concat((t=n,["256","200","160","120","100","72","56"].includes(t)?16:["48","40"].includes(t)?12:(["32","28","24"].includes(t),8)),"px")},a&&l().createElement(nt,null,l().createElement(Qa,{height:16,width:143})),i&&l().createElement(nt,{padding:"".concat(Nf(n),"px 0px 0px 0px")},l().createElement(Qa,{height:8,width:119})),s&&l().createElement(nt,{padding:"".concat(Nf(n),"px 0px 0px 0px")},l().createElement(Qa,{height:8,width:138}))):null)},Mf=function(e){return(0,c.useTwoUIFlights)().includes(C)?l().createElement(Vf,(0,r.__assign)({},e)):l().createElement(Hf,(0,r.__assign)({},e))},Wf=n(65063),Of=(0,i.forwardRef)((function(e,t){var n,a=e.operationData,o=e.personDisplayName,c=e.personImageUrl,s=e.onPictureSelected,d=e.onCanvasUpdated,u=e.getPhotoPickerStrings,m=e.photoSelectedString,p=e.arrowKeyMovementStrings,g=(0,i.useRef)((function(e,t){})),h=(0,i.useRef)(null);function f(e,t,n){return e.replace("{0}",t).replace("{1}",n)}var v=(0,r.__assign)((0,r.__assign)({},u),{photoSelected:function(e){return null===m||void 0===m?void 0:m.replace("{0}",e.p0)},leftArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(p.leftArrowKeyAriaLabel,t,n)},rightArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(p.rightArrowKeyAriaLabel,t,n)},upArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(p.upArrowKeyAriaLabel,t,n)},downArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(p.downArrowKeyAriaLabel,t,n)},dropZoneImageAriaLabel:null===(n=u.dropZoneImageAriaLabel)||void 0===n?void 0:n.replace("{0}",o)});(0,i.useImperativeHandle)(t,(function(){return{startUploadNewPhoto:function(){var e;null===(e=h.current)||void 0===e||e.click()}}}));var x=function(){},E=l().createElement(ll,{height:256}),y=l().createElement(l().Fragment,null,l().createElement("input",{role:"button",style:{display:"none"},type:"file",ref:h,onClick:function(e){return e.currentTarget.value=""},onChange:function(e){e.currentTarget.files&&(g.current(e.currentTarget.files[0],!1),null===s||void 0===s||s())},accept:"image/*"}),l().createElement(nt,{horizontalAlign:"center"},l().createElement(Wf.StandalonePhotoPicker,{enableImageRotation:!0,personDisplayName:o,personImageUrl:c,strings:v,onUpload:x,onDismiss:x,isImageRemovable:!1,isComponentInline:!0,imageCropShape:"Circle",imageScaling:"Fill",onCanvasUpdated:function(e,t){null===d||void 0===d||d(e,t)},hideButtons:!0,hideUploadHeader:!0,hideUploadPhotoButton:!0,styles:{pivot:{linkSelected:{padding:"0px",lineHeight:"10px"}}},renderCustomUploadButton:function(e){return g.current=e.onFileSelected,l().createElement(l().Fragment,null)}})));return l().createElement(nt,{verticalAlign:"center",horizontalAlign:"center",height:264,width:264,margin:"0 0 54px 0"},l().createElement(M,{operationData:a,firstLoadView:E,updatingView:E,finishedView:y,failedView:y}))})),Gf=(0,i.forwardRef)((function(e,t){var n,a=e.operationData,o=e.personDisplayName,c=e.personImageUrl,s=e.onPictureSelected,d=e.onCanvasUpdated,u=e.getPhotoPickerStrings,m=e.photoSelectedString,p=e.arrowKeyMovementStrings,g=(0,i.useRef)((function(e,t){})),h=(0,i.useRef)(null);function f(e,t,n){return e.replace("{0}",t).replace("{1}",n)}var v=(0,r.__assign)((0,r.__assign)({},u),{photoSelected:function(e){return null===m||void 0===m?void 0:m.replace("{0}",e.p0)},leftArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(p.leftArrowKeyAriaLabel,t,n)},rightArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(p.rightArrowKeyAriaLabel,t,n)},upArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(p.upArrowKeyAriaLabel,t,n)},downArrowKeyAriaLabel:function(e){var t=e.p0,n=e.p1;return f(p.downArrowKeyAriaLabel,t,n)},dropZoneImageAriaLabel:null===(n=u.dropZoneImageAriaLabel)||void 0===n?void 0:n.replace("{0}",o)});(0,i.useImperativeHandle)(t,(function(){return{startUploadNewPhoto:function(){var e;null===(e=h.current)||void 0===e||e.click()}}}));var x=function(){},E=l().createElement(ol,{height:256}),y=l().createElement(l().Fragment,null,l().createElement("input",{role:"button",style:{display:"none"},type:"file",ref:h,onClick:function(e){return e.currentTarget.value=""},onChange:function(e){e.currentTarget.files&&(g.current(e.currentTarget.files[0],!1),null===s||void 0===s||s())},accept:"image/*"}),l().createElement(et,{horizontalAlign:"center"},l().createElement(Wf.StandalonePhotoPicker,{enableImageRotation:!0,personDisplayName:o,personImageUrl:c,strings:v,onUpload:x,onDismiss:x,isImageRemovable:!1,isComponentInline:!0,imageCropShape:"Circle",imageScaling:"Fill",onCanvasUpdated:function(e,t){null===d||void 0===d||d(e,t)},hideButtons:!0,hideUploadHeader:!0,hideUploadPhotoButton:!0,styles:{pivot:{linkSelected:{padding:"0px",lineHeight:"10px"}}},renderCustomUploadButton:function(e){return g.current=e.onFileSelected,l().createElement(l().Fragment,null)}})));return l().createElement(et,{verticalAlign:"center",horizontalAlign:"center",height:264,width:264,margin:"0 0 54px 0"},l().createElement(z,{operationData:a,firstLoadView:E,updatingView:E,finishedView:y,failedView:y}))})),Uf=(0,i.forwardRef)((function(e,t){return(0,c.useTwoUIFlights)().includes(S)?l().createElement(Gf,(0,r.__assign)({ref:t},e)):l().createElement(Of,(0,r.__assign)({ref:t},e))})),jf=function(e){for(var t=e.numLines,n=void 0===t?2:t,r=[],a=0;a<n;a++)r.push(l().createElement(Qa,{height:32,key:a}));return l().createElement(nt,{childrenGap:8},r)},Kf=n(78754),Zf=function(e){var t=e.operationName,n=e.children,r=(0,c.useTwoUIOperationDispatcher)();return l().createElement(nt,{childrenGap:10},l().createElement(nt,{horizontal:!0,childrenGap:4},l().createElement(Kf.$,{text:"inertView","aria-label":"inertView","data-bi-id":"inertView",onClick:function(){r({name:t,status:"inert"})}}),l().createElement(Kf.$,{text:"firstLoadView","aria-label":"firstLoadView","data-bi-id":"firstLoadView",onClick:function(){r({name:t,status:"first-load"})}}),l().createElement(Kf.$,{text:"failedView","aria-label":"failedView","data-bi-id":"failedView",onClick:function(){r({name:t,status:"failed"})}}),l().createElement(Kf.$,{text:"updatingView","aria-label":"updatingView","data-bi-id":"updatingView",onClick:function(){r({name:t,status:"updating"})}}),l().createElement(Kf.$,{text:"updateFailedView","aria-label":"updateFailedView","data-bi-id":"updateFailedView",onClick:function(){r({name:t,status:"update-failed"})}}),l().createElement(Kf.$,{text:"finishedView","aria-label":"finishedView","data-bi-id":"finishedView",onClick:function(){r({name:t,status:"finished"})}})),l().createElement(nt,null,n))},Xf=function(e){var t=e.status,n=e.color;return l().createElement(Yt,{iconName:"completed"===t?"CircleFill":"CircleRing",color:n,size:"10px"})},Yf=function(e){return function(){return e<3?"ProgressTracker cannot have less than ".concat(3," steps"):void 0}},qf=function(e){return function(){return e>7?"ProgressTracker cannot have more than ".concat(7," steps"):void 0}},Qf=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}},Jf=function(e){var t=e.currentStep,n=void 0===t?0:t,r=e.numberOfSteps,a=e.dotColor,o=void 0===a?"neutralSecondary":a;(0,i.useEffect)((function(){var e=[Yf(r),qf(r),Qf(n,r)];p("ProgressTrackerDots",e)}),[r,n]);for(var c=[],s=0;s<r;s++){var d=s+1<=n?"completed":"active";c.push({status:d})}return l().createElement(nt,{horizontal:!0,horizontalAlign:"center",childrenGap:4},c.map((function(e,t){return l().createElement(rt,{key:t},l().createElement(Xf,{status:e.status,color:o}))})))},$f={segmentQuotaBar1:{backgroundColor:"#637cef","@media screen and (forced-colors: active)":{background:"GrayText"}},segmentQuotaBar2:{backgroundColor:"#e3008c","@media screen and (forced-colors: active)":{backgroundColor:"Highlight"}},segmentQuotaBar3:{backgroundColor:"#2aa0a4","@media screen and (forced-colors: active)":{backgroundColor:"CanvasText"}},segmentQuotaBar4:{backgroundColor:"#9373c0","@media screen and (forced-colors: active)":{backgroundColor:"LinkText"}},segmentQuotaBar5:{backgroundColor:"#13a10e","@media screen and (forced-colors: active)":{backgroundColor:"linear-gradient(40deg, white 50%, transparent 50%)",background:"linear-gradient(20deg, transparent 49%, black 50%), white",backgroundSize:"30px 30px"}},segmentQuotaBar6:{backgroundColor:"#3a96dd","@media screen and (forced-colors: active)":{backgroundColor:"GreyText"}},segmentQuotaBar7:{backgroundColor:"#ca5010","@media screen and (forced-colors: active)":{backgroundColor:"Highlight"}},segmentQuotaBar8:{backgroundColor:"#57811b","@media screen and (forced-colors: active)":{backgroundColor:"CanvasText"}}},ev=[$f.segmentQuotaBar1,$f.segmentQuotaBar2,$f.segmentQuotaBar3,$f.segmentQuotaBar4,$f.segmentQuotaBar5,$f.segmentQuotaBar6,$f.segmentQuotaBar7,$f.segmentQuotaBar8],tv=function(e){var t=e.index;return l().createElement("div",{style:(0,r.__assign)({width:"6px",height:"14px",WebkitBorderRadius:"100px / 50px",borderRadius:"6px",forcedColorAdjust:"none"},ev[t%ev.length])})},nv=function(e){var t=e.barValues,n=e.linkStyles;return l().createElement(nt,{childrenGap:12},t.map((function(e,t){var r=e.value<.1&&e.value>0;return l().createElement(ht.N,{styles:n,underline:!1,onClick:function(){return window.open(e.redirect)},"aria-label":e.ariaLabel,"data-bi-id":e.dataBiId},l().createElement(nt,{borderRadius:"4px",height:14,horizontal:!0,horizontalAlign:"space-between",verticalAlign:"center"},l().createElement(nt,{childrenGap:4,horizontal:!0,verticalAlign:"center"},l().createElement(tv,{index:t}),l().createElement(Fn,{variant:"metadataText",children:e.displayName})),l().createElement(nt,{childrenGap:8,horizontal:!0,verticalAlign:"center"},l().createElement(Fn,{variant:"metadataText",children:"".concat(r?" < ":"").concat(r?.1:e.value).concat(e.unit?" ".concat(e.unit):"")}),l().createElement(Yt,{iconName:"OpenInNewWindow",color:"neutralSecondary"}))))})))},rv=function(e){var t=e.barValues;return l().createElement(nt,{horizontal:!0,childrenGap:14,verticalAlign:"center"},t.map((function(e,t){return l().createElement(nt,{childrenGap:4,horizontal:!0,verticalAlign:"center"},l().createElement(tv,{index:t}),l().createElement(Fn,{variant:"metadataText",children:e.displayName}))})))},av=function(e){var t,n,r=e.barValues,a=e.isExpanded,i=void 0===a||a,c=e.label,u=e.totalAvalible;s("QuotaBar");var m=r.map((function(e){return e}));m.sort((function(e,t){if(e.value<t.value)return 1;if(e.value>t.value)return-1;var n=e.product.toLowerCase(),r=t.product.toLowerCase();return n<r?-1:n>r?1:0}));var p=100,g=(0,d.DP)(),h=m.length+1,f={root:(t={":hover":(n={background:"".concat(g.palette.neutralLighter),textDecoration:"none"},n[F.up]={background:"Highlight",span:{color:"HighlightText !important"}},n)},t[F.up]={span:{color:"linktext"},":focus > span":{color:"Highlight",outline:"1px solid Highlight"}},t)},v=function(e,t){return h--,l().createElement(o.B,{styles:{root:{width:void 0!==t&&t>0?"max(calc(".concat(t,"%),4px)"):void 0,transition:"none",borderRadius:"3px",backgroundColor:e,height:12,position:"relative",zIndex:h,outline:void 0!==t&&t>0?"2px solid ".concat(g.palette.neutralMed):"none",forcedColorAdjust:"none"}},doNotRenderFalsyValues:!0})};return l().createElement(l().Fragment,null,c?l().createElement(nt,null,l().createElement(ur,{variant:c.variant,textWithTokens:c.textWithTokens,tokensAndValues:c.tokensAndValues,truncatedTextProps:c.truncatedTextProps})):null,l().createElement("div",{style:{paddingTop:"12px",paddingBottom:"12px",paddingLeft:"1px",borderRadius:"4px",position:"relative",overflow:"hidden",height:12,maxWidth:"100%"}},l().createElement("div",{style:{borderRadius:"3px",backgroundColor:"transparent",position:"absolute",width:"calc(100% - 4px)",height:12,outline:"solid 1px ".concat("#929292"),display:"flex"}},m.map((function(e,t){return v(ev[t].backgroundColor,e.value/u*p)})))),i?l().createElement(nv,{barValues:m,linkStyles:f}):l().createElement(rv,{barValues:m}))},ov=n(92139),iv=n(28564),lv=function(e){var t=e.rating,n=e.ariaLabelFormat,a=e.onChange,o=e.allowZeroStars,i=void 0===o||o,c=(0,r.__rest)(e,["rating","ariaLabelFormat","onChange","allowZeroStars"]);s("Rating",c.id),fe("Rating",c);return l().createElement(ov.G,(0,r.__assign)({rating:t,size:iv.l.Large,ariaLabelFormat:n,onChange:function(e,t){a(e,t)},allowZeroStars:i},c))},cv=n(67875),sv=(0,I.n)({searchBox:{maxWidth:"unset",width:"100%"}}),dv=function(e){var t=e["aria-label"],n=e.onChange,a=e.onSearch,o=(e.children,(0,r.__rest)(e,["aria-label","onChange","onSearch","children"])),i=sv();return l().createElement(cv.G,(0,r.__assign)({className:i.searchBox,"aria-label":t,onChange:function(e,t){null===n||void 0===n||n(e,t.value)},input:{style:{textOverflow:"ellipsis"},onKeyDown:function(e){if("Enter"===e.key){var t=e.target.value;null===a||void 0===a||a(t)}}}},o))},uv=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(_)?l().createElement(dv,(0,r.__assign)({},t)):l().createElement(ku,(0,r.__assign)({},t))},mv=n(14452),pv=function(e){var t,n=e.content,a=e.alignContent,o=e.vertical,i=(0,r.__rest)(e,["content","alignContent","vertical"]);return s("Separator"),fe("Separator",i),n&&(t=l().createElement(Fn,{variant:"metadataText"},n)),l().createElement(mv.w,(0,r.__assign)({alignContent:a,vertical:o},i),t)},gv=n(13737),hv=D({root:{},spacingVerticalM:{padding:"".concat(Tt.L.spacingVerticalM," ").concat(Tt.L.spacingHorizontalNone)}}),fv=function(e){var t,n=e.content,a=e.alignContent,o=e.vertical,i=e.padding,c=void 0===i?"spacingVerticalM":i,d=(0,r.__rest)(e,["content","alignContent","vertical","padding"]);s("Separator"),fe("Separator",d),n&&(t=l().createElement(An,{variant:"metadataText"},n));var u=hv(),m=(0,ve.z)(u.root,"spacingVerticalM"===c&&u.spacingVerticalM);return l().createElement(gv.c,(0,r.__assign)({alignContent:a,vertical:o,className:m},d),t)},vv=_,xv=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(vv)?l().createElement(fv,(0,r.__assign)({},t)):l().createElement(pv,(0,r.__assign)({},t))},Ev=function(e){var t=e.headerProps,n=e.detailsProps,a=e.graphicProps,o=e.ctaProps,i=(0,r.__rest)(e,["headerProps","detailsProps","graphicProps","ctaProps"]);return s("SimpleCard",i.id),fe("SimpleCard",i),l().createElement(Ko,(0,r.__assign)({action:o,height:"large"},i),t?l().createElement(Vo,(0,r.__assign)({},t)):null,l().createElement(Ng,(0,r.__assign)({},a)),l().createElement(Ro,(0,r.__assign)({},n)),l().createElement(Io,(0,r.__assign)({},o)))},yv=function(){var e=(0,d.DP)();return l().createElement(o.B,{horizontalAlign:"start",verticalAlign:"center",styles:{root:{height:Ao(e).root.height,padding:"0 0 0 16px",borderRadius:"8px"}},doNotRenderFalsyValues:!0},l().createElement(Qa,{height:12,width:94}))},bv=function(){return l().createElement(o.B,(0,r.__assign)({},Fo,{doNotRenderFalsyValues:!0}),l().createElement(Qa,{height:16,width:"66%"}),l().createElement(Qa,{height:12,width:"75%"}),l().createElement(Qa,{height:12,width:"60%"}))},_v=function(){var e=(0,d.DP)(),t=No(e,!1),n=t.styles,r=t.tokens,a={root:{height:n.root.height,borderBottom:n.root.borderBottom}};return l().createElement(o.B,{styles:a,tokens:r,doNotRenderFalsyValues:!0},l().createElement(Qa,{height:14,width:135}))},wv=function(e){var t=e.hasHeader;return l().createElement(nt,{padding:16},l().createElement(Qa,{height:t?200:240}))},Cv=function(e){var t=e.hasHeader,n=void 0!==t&&t;return l().createElement(Ko,{height:"large","data-bi-id":"","aria-label":""},n?l().createElement(_v,null):null,l().createElement(wv,{hasHeader:n}),l().createElement(bv,null),l().createElement(yv,null))},kv=function(){return l().createElement(o.B,{verticalFill:!0,verticalAlign:"center",doNotRenderFalsyValues:!0},l().createElement(Wt.y,{size:Ot.H.medium}))},Tv=function(e){var t={root:{width:"30px",height:"30px"}};return e&&(t.rootDisabled={backgroundColor:"inherit"}),t},Sv=function(e){var t=e.submitButtonProps,n=e.iconName,a=void 0===n?"Add":n,o=e.imageSrc,u=e.disableIcon,m=void 0!==u&&u,p=(0,r.__rest)(e,["submitButtonProps","iconName","imageSrc","disableIcon"]),g=(0,d.DP)();s("TextAction",p.id),fe("TextAction",p);var h,f=!!o,v=(0,i.useState)(ca.P6.notLoaded),x=v[0],E=v[1];h=f&&x!==ca.P6.error?_g(g,p.disabled||!1):bg(g,p.disabled||!1);var y={};x===ca.P6.notLoaded&&(y={root:{display:"none"}});var b=function(e){e===ca.P6.loaded?E(ca.P6.loaded):e===ca.P6.notLoaded?E(ca.P6.notLoaded):E(ca.P6.error)},_=function(){return l().createElement(l().Fragment,null,x===ca.P6.notLoaded?l().createElement(Wt.y,{size:Ot.H.small}):null,l().createElement(sa._,{styles:y,shouldFadeIn:!0,src:o,height:"16px",width:"16px",role:"presentation",onLoadingStateChange:b}))},w=m?"neutralQuaternary":"neutralSecondary",C=(0,r.__assign)({styles:h,onKeyPress:function(e){"Enter"===e.key&&t.onSubmitButtonClick(e)},onRenderSuffix:function(){return l().createElement(kr.K,{onClick:t.onSubmitButtonClick,ariaLabel:t["aria-label"],onRenderIcon:function(){return l().createElement(Yt,{size:"16px",color:w,iconName:a})},"data-bi-id":t["data-bi-id"],styles:Tv(m),disabled:m})}},p);if(p.operationData){var k=p.operationData;return l().createElement(c.TwoUIProgressView,{operationData:k.progressViewOperationData,updatingView:f?l().createElement(Eg.A,(0,r.__assign)({},C,{disabled:!0,onRenderSuffix:kv,onRenderPrefix:kv})):l().createElement(Eg.A,(0,r.__assign)({},C,{disabled:!0,onRenderSuffix:kv})),finishedView:f?l().createElement(Eg.A,(0,r.__assign)({},C,{onRenderPrefix:_})):l().createElement(Eg.A,(0,r.__assign)({},C)),updateFailedView:f?l().createElement(Eg.A,(0,r.__assign)({},C,{onRenderPrefix:_,errorMessage:k.errorMessage})):l().createElement(Eg.A,(0,r.__assign)({},C,{errorMessage:k.errorMessage}))})}return f?l().createElement(Eg.A,(0,r.__assign)({},C,{onRenderPrefix:_})):l().createElement(Eg.A,(0,r.__assign)({},C))},Pv={s:12,m:12,l:8,xl:6,xxl:5,xxxl:4},Bv=function(e){var t=ce(),n=Pv[t];return l().createElement(mt,{totalSlots:12,padding:"8px 0"},l().createElement(pt,{slots:n},l().createElement(Sv,(0,r.__assign)({},e))))},Lv=function(e){var t=e["aria-label"],n=(e["data-bi-id"],e.value),a=e.description,o=e.placeholder,i=e.disabled,c=void 0!==i&&i,u=e.onChange,m=e.label,p=e.numberOfRows,g=(0,r.__rest)(e,["aria-label","data-bi-id","value","description","placeholder","disabled","onChange","label","numberOfRows"]),h=(0,d.DP)();return s("TextArea",g.id),fe("TextArea",g),l().createElement(Eg.A,(0,r.__assign)({multiline:!0,rows:p,label:m,ariaLabel:t,description:a,placeholder:o,disabled:c,onChange:u,value:n,styles:yg(h,c||!1)},g))},Av=n(19484),Iv=(0,I.n)({fieldGroup:{backgroundColor:Tt.L.colorNeutralBackground1},fieldGroupDisabled:{backgroundColor:Tt.L.colorNeutralBackground4}}),Fv=function(e){var t=e["aria-label"],n=(e["data-bi-id"],e.value),a=e.description,o=e.placeholder,i=e.disabled,c=void 0!==i&&i,d=e.onChange,u=e.label,m=e.numberOfRows,p=e.errorMessage,g=e.required,h=void 0!==g&&g,f=(0,r.__rest)(e,["aria-label","data-bi-id","value","description","placeholder","disabled","onChange","label","numberOfRows","errorMessage","required"]);s("TextArea",f.id),fe("TextArea",f);var v=Iv();return l().createElement(kg.D,{label:u,hint:a,validationMessage:p,validationState:p?"error":void 0,required:h},l().createElement(Av.T,(0,r.__assign)({"aria-label":t,value:n,onChange:function(e,t){null===d||void 0===d||d(e,t.value)},disabled:c,placeholder:o,rows:m,resize:"both",className:(0,ve.z)(v.fieldGroup,c&&v.fieldGroupDisabled)},f)))},Dv=function(e){var t=(0,r.__rest)(e,[]);return(0,c.useTwoUIFlights)().includes(T)?l().createElement(Fv,(0,r.__assign)({},t)):l().createElement(Lv,(0,r.__assign)({},t))};function Rv(e){return W(e,xo,"Drawer")}function zv(e){return W(e,go,po)}var Hv=function(e,t,n){return{root:{minWidth:t,maxWidth:"".concat(Mv(e,n),"px")}}},Nv=function(e){var t=e.children,n=e.minWidth,r=void 0===n?Wo:n,a=e.maxWidth,c=void 0===a?288:a,s=e.onCardReflow,d=(0,i.useRef)(null),u=(0,i.useState)(1),m=u[0],p=u[1];(0,i.useLayoutEffect)((function(){var e=function(){if(d.current){var e=d.current.clientWidth,t=Vv(e,r);p(t)}};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[]),(0,i.useLayoutEffect)((function(){null===s||void 0===s||s(m)}),[m]);var g=wn(l().Children.toArray(t),m);return l().createElement("div",{style:{display:"flex"},ref:d},l().createElement(o.B,{tokens:{childrenGap:16},styles:Hv(m,r,c),grow:!0,doNotRenderFalsyValues:!0},g.map((function(e,t){return l().createElement(mt,{totalSlots:m,key:t},e.map((function(e,t){return l().createElement(pt,{slots:1,key:t},e)})))}))))},Vv=function(e,t){return Math.max(Math.floor((e+16)/(t+16)),1)},Mv=function(e,t){return e*t+16*(e-1)},Wv=n(36224),Ov=function(e){return l().createElement(l().Fragment,null,l().createElement(fv,null),l().createElement(nt,{height:"84px"},l().createElement(Ya,{height:9})))},Gv=n(45525),Uv=(0,I.n)({shimmer:{flexDirection:"column",justifyContent:"center"}}),jv=function(e){var t=Uv();return l().createElement(Gv.w,{className:t.shimmer},l().createElement(Ya,{width:85,height:9}))},Kv=n(47403),Zv=function(e){return l().createElement(Kv.a,{header:l().createElement(Ya,{width:167,height:9}),image:l().createElement(Ya,{width:32,height:32})})},Xv=(0,I.n)({card:{minWidth:"290px",height:"220px",maxWidth:"444px"}}),Yv=function(e){s("DetailsCardShimmer");var t=Xv();return l().createElement(Wv.Z,{className:t.card},l().createElement(Zv,null),l().createElement(Ov,null),l().createElement(jv,null))},qv=((0,I.n)({card:{height:"356px"}}),function(e,t){return function(){return e&&!t?"BingMaps must have pushpinAccessible set to true when a pushPin has an ariaLabel":void 0}}),Qv=function(e){return function(){return null===e?"BingMapsContext: Context is not initialized. Confirm that your app is contained within a BingMapsProvider.":void 0}},Jv=function(e){return function(){return null===e?"BingMaps-loadBingMapsScript: callback is not provided":void 0}},$v=function(e,t,n){return new Promise((function(r,a){var o=new Image;o.src=e,o.setAttribute("crossOrigin","anonymous"),o.onload=function(){try{var e=document.createElement("canvas");e.width=null!==t&&void 0!==t?t:o.width,e.height=null!==n&&void 0!==n?n:o.height;var i=e.getContext("2d");null===i||void 0===i||i.drawImage(o,0,0);var l=e.toDataURL("image/png");r(l)}catch(c){a(c)}},o.onerror=function(){a(new Error("Failed to load image to convert to base64"))}}))},ex=(0,i.createContext)({}),tx=function(){var e=(0,i.useContext)(ex);return p("BingMaps",[Qv(e)]),e},nx=function(e,t,n){return{position:"absolute",width:e,height:t,backgroundColor:n,opacity:.35,zIndex:u.XZ.bingMapsOverlay}},rx=function(e){var t,n,a,m,g=e.spinnerAriaLabel,h=e.progressViewProps,f=e.center,v=e.mapLoadOptions,x=e.mapItems,E=e.mapWidth,y=e.mapHeight,b=e.clusteringOptions,_=e.mapPadding;s("BingMaps");var w=(0,i.useState)(),C=w[0],k=w[1],T=(0,i.useState)(!1),S=T[0],P=T[1],B=(0,i.useState)(!0),L=B[0],A=B[1],I=tx(),F=I.endState,D=I.currentError,R=(0,c.useTwoUIOperationDispatcher)(),z=ce(),H=(0,d.DP)(),N=(0,i.useRef)(null),V=h.operationData,M=h.failedView,W=null!==(t=null===x||void 0===x?void 0:x.iconOffset)&&void 0!==t?t:{xOffset:0,yOffset:0},O=null!==(n=null===x||void 0===x?void 0:x.textOffset)&&void 0!==n?n:{xOffset:0,yOffset:35},G=function(){if("success"===F)if(f)null===C||void 0===C||C.setView((0,r.__assign)({center:new Microsoft.Maps.Location(f.latitude,f.longitude)},v));else{var e=[];x&&("listItem"===x.optionType||"accordion"===x.optionType?x.mapElements.forEach((function(t){if(t.pushPin){var n=t.pushPin.location,r=n.latitude,a=n.longitude;e.push(new Microsoft.Maps.Location(r,a))}})):x.pushPins.forEach((function(t){e.push(new Microsoft.Maps.Location(t.location.latitude,t.location.longitude))})));var t=e&&e.length&&function(){var e=N.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(e),padding:_}:{center:new Microsoft.Maps.Location(0,0),zoom:1};null===C||void 0===C||C.setView((0,r.__assign)((0,r.__assign)({},t),v))}},U=function(e){var t,n;if("success"===F&&C&&x){var a,o=[];if("listItem"===x.optionType||"accordion"===x.optionType)for(var i=function(e){if(e.id===x.selectedMapItemId&&(a=e),e.pushPin){var i=e.pushPin.location,l=i.latitude,c=i.longitude,s=H.palette.themePrimary,d=void 0;d=e.id===x.selectedMapItemId?null!==(t=e.pushPin.selectedImage)&&void 0!==t?t:(f=s,E=e.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(f,'"/>\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(f,'" 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(E,'"/>\n    </defs>\n    </svg>')):null!==(n=e.pushPin.staticImage)&&void 0!==n?n: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>')}(s,e.pushPin.imageSrc);var u=new Microsoft.Maps.Pushpin(new Microsoft.Maps.Location(l,c),(0,r.__assign)((0,r.__assign)({},e.pushPin.options),{icon:d}));if(p("BingMaps",[qv(e.pushPin.ariaLabel,null===v||void 0===v?void 0:v.pushpinAccessible)]),u.metadata={ariaLabel:e.pushPin.ariaLabel,imageSrc:e.pushPin.imageSrc},e.pushPin.anchorOffset){var m=e.pushPin.anchorOffset,g=m.xOffset,h=m.yOffset;u.setOptions({anchor:new Microsoft.Maps.Point(g,h)})}Microsoft.Maps.Events.addHandler(u,"click",(function(){x.onSelectedMapItemChange(e.id)})),o.push(u)}var f,E},l=0,c=x.mapElements;l<c.length;l++){i(c[l])}else{var s=new Microsoft.Maps.Infobox(new Microsoft.Maps.Location(0,0),{visible:!1});s.setMap(C),x.pushPins.forEach((function(e){var t=e.location,n=t.latitude,a=t.longitude,i=new Microsoft.Maps.Location(n,a),l=new Microsoft.Maps.Pushpin(i,(0,r.__assign)({},e.options));if(p("BingMaps",[qv(e.ariaLabel,null===v||void 0===v?void 0:v.pushpinAccessible)]),l.metadata={ariaLabel:e.ariaLabel},e.infoboxProps){var c=e.infoboxProps,d=c.title,u=c.description,m=c.offset;Microsoft.Maps.Events.addHandler(l,"click",(function(){s.setOptions({title:d,description:u,offset:m?new Microsoft.Maps.Point(m.xOffset,m.yOffset):void 0,location:i,visible:!0,zIndex:-1})}))}o.push(l)}))}if(function(e){var t;if(e)if(e.pushPin){var n=e.pushPin.location,a=n.latitude,o=n.longitude;P(!1),null===C||void 0===C||C.setView((0,r.__assign)((0,r.__assign)({},v),{center:new Microsoft.Maps.Location(a,o),zoom:null!==(t=x.listItemClickZoomLevel)&&void 0!==t?t:15}))}else P(!0),null===C||void 0===C||C.setView((0,r.__assign)((0,r.__assign)({},v),{center:f?new Microsoft.Maps.Location(f.latitude,f.longitude):new Microsoft.Maps.Location(0,0),zoom:1}));else P(!1),G()}(a),e&&C.layers.clear(),null===b||void 0===b?void 0:b.useClustering){var d=b.clusterIcon,u=b.isClusterOnClickZoom;Microsoft.Maps.loadModule("Microsoft.Maps.Clustering",(function(){var e=d?new Microsoft.Maps.ClusterLayer(o,{clusteredPinCallback:function(e){u&&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);C.setView({bounds:r,padding:_})}}))}(e),e.setOptions({icon:d,textOffset:new Microsoft.Maps.Point(O.xOffset,O.yOffset),anchor:new Microsoft.Maps.Point(W.xOffset,W.yOffset)})}}):new Microsoft.Maps.ClusterLayer(o);C.layers.insert(e)}))}else{var m=new Microsoft.Maps.Layer;m.setPrimitives(o),C.layers.insert(m)}o.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))}))}))}};(0,u.JO)((function(){R({name:V.operationName,status:"first-load"})})),(0,i.useEffect)((function(){"success"===F?setTimeout((function(){try{!function(){var e;p("BingMaps",[(e=N.current,function(){return e?void 0:"BingMaps-initMap: ref is not defined"})]);var t=(0,r.__assign)({center:f?new Microsoft.Maps.Location(f.latitude,f.longitude):void 0,disableScrollWheelZoom:!0,showLocateMeButton:!1,showMapTypeSelector:!1},v);k(new Microsoft.Maps.Map(N.current,t))}()}catch(e){R({name:V.operationName,status:"failed",error:e})}R({name:V.operationName,status:"finished"})})):"failure"===F&&setTimeout((function(){R({name:V.operationName,status:"failed",error:D})}))}),[F]),(0,i.useEffect)((function(){U(!1)}),[C]),(0,i.useLayoutEffect)((function(){G()}),[f,v,x,C,N]),(0,i.useEffect)((function(){U(!0)}),[x]);var j,K,Z,X={width:E,height:y},Y=se(z)?void 0:"listItem"===(null===x||void 0===x?void 0:x.optionType)||"accordion"===(null===x||void 0===x?void 0:x.optionType)?(j="string"===typeof y?y:"".concat(y,"px"),K=x.containerProps.width,Z=x.containerProps.height,{position:"absolute",width:K,height:Z,top:8,left:8,zIndex:u.XZ.bingMapsListContainer,maxHeight:"calc(".concat(j," - 16px)"),overflowY:"auto"}):void 0;return l().createElement("div",{style:{position:"relative",minHeight:y}},l().createElement(c.TwoUIProgressView,{operationData:V,firstLoadView:l().createElement(nt,{width:E,height:y,verticalAlign:"center",horizontalAlign:"center"},l().createElement(ro,{"aria-label":g,spinnerSize:2})),finishedView:"listItem"===(null===x||void 0===x?void 0:x.optionType)||"accordion"===(null===x||void 0===x?void 0:x.optionType)?l().createElement(o.B,{"aria-label":x.containerProps.ariaLabel,style:Y,horizontal:!0,tokens:{childrenGap:"8px"},doNotRenderFalsyValues:!0},L?"listItem"===x.optionType?l().createElement(ax,{mapItems:x}):l().createElement(ox,{mapItems:x}):null,(null===(a=null===x||void 0===x?void 0:x.mapElements)||void 0===a?void 0:a.length)>0?l().createElement("div",{style:{backgroundColor:H.palette.neutralHigh,height:"max-content",borderRadius:"4px"}},l().createElement(Qr,{"data-bi-id":"collapse-button-bing-maps","aria-label":null!==(m=x.collapseButtonAriaLabel)&&void 0!==m?m:"","aria-expanded":L,iconName:L?"ChevronLeft":"ChevronRight",onClick:function(){return A(!L)},iconColor:"neutralPrimary"})):null):l().createElement(l().Fragment,null),failedView:M}),l().createElement("div",{style:X,ref:N},S?l().createElement(l().Fragment,null,l().createElement(o.B,{style:nx(E,y,H.palette.black),doNotRenderFalsyValues:!0}),"listItem"!==(null===x||void 0===x?void 0:x.optionType)&&"accordion"!==(null===x||void 0===x?void 0:x.optionType)||!x.noPushPinText?null:l().createElement(o.B,{verticalAlign:"center",horizontalAlign:"center",style:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%,-50%)",zIndex:u.XZ.bingMapsNoPushPinContainer},doNotRenderFalsyValues:!0},l().createElement(nt,{horizontal:!0,padding:"16px",backgroundColor:"neutralHigh",childrenGap:8},l().createElement(Yt,{iconName:"Info",size:"14px"}),l().createElement(Fn,null,x.noPushPinText)))):null))},ax=function(e){var t=e.mapItems;return l().createElement(Rd,(0,r.__assign)({},t.listProps),t.mapElements.map((function(e){return l().createElement(Ns,(0,r.__assign)({key:e.id,selected:e.id===t.selectedMapItemId},e.listItemProps,{onClickProps:(0,r.__assign)((0,r.__assign)({},e.onClickProps),{pageArea:t.pageArea,onClick:(n=e,function(e){t.onSelectedMapItemChange(n.id),n.onClickProps.onClick&&n.onClickProps.onClick(e)})})}));var n})))},ox=function(e){var t,n=e.mapItems,a=function(e){return function(t){n.onSelectedMapItemChange(e.id),e.accordionDrawerProps.onClickToClose&&e.accordionDrawerProps.onClickToClose(t)}},o=n.mapElements.map((function(e,o){return n.selectedMapItemId===e.id&&(t=o),(0,r.__assign)((0,r.__assign)({},e.accordionDrawerProps),{key:e.id,onClickToOpen:(i=e,function(e){n.onSelectedMapItemChange(i.id),i.accordionDrawerProps.onClickToOpen&&i.accordionDrawerProps.onClickToOpen(e)}),onClickToClose:a(e)});var i}));return l().createElement(yo,(0,r.__assign)({accordionDrawers:o,drawerIndexOpen:t},n.accordionProps))},ix="bing-maps",lx=function(e){var t=e.config,n=e.children,r=(0,i.useState)(),a=r[0],o=r[1],c=(0,i.useState)(),s=c[0],d=c[1];return(0,u.JO)((function(){var e=t.apiKey,n="".concat(t.prodOrExperimentalMapUrlV8,"&key=").concat(e),r="?".concat(t.prodOrExperimentalMapUrlV8.split("?")[1]),a=new URLSearchParams(r).get("callback");p("BingMaps",[Jv(a)]);var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.defer=!0,i.src=n,i.id=ix,i.setAttribute("data-testId",ix),window[a]=function(){o("success")},i.onerror=function(e){o("failure"),d(new Error(e.toString()))},document.body.appendChild(i)})),(0,u.iK)((function(){var e=document.getElementById(ix);e&&document.body.removeChild(e)})),l().createElement(ex.Provider,{value:{endState:a,currentError:s}},n)}}}]);
//# sourceMappingURL=5078.6d075d8d.chunk.js.map
/*! For license information please see 5303.842cd411.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5303,5415,9541],{31821:function(e,r){"use strict";r.A=function(e){for(var r,o=0,t=0,n=e.length;n>=4;++t,n-=4)r=1540483477*(65535&(r=255&e.charCodeAt(t)|(255&e.charCodeAt(++t))<<8|(255&e.charCodeAt(++t))<<16|(255&e.charCodeAt(++t))<<24))+(59797*(r>>>16)<<16),o=1540483477*(65535&(r^=r>>>24))+(59797*(r>>>16)<<16)^1540483477*(65535&o)+(59797*(o>>>16)<<16);switch(n){case 3:o^=(255&e.charCodeAt(t+2))<<16;case 2:o^=(255&e.charCodeAt(t+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(t)))+(59797*(o>>>16)<<16)}return(((o=1540483477*(65535&(o^=o>>>13))+(59797*(o>>>16)<<16))^o>>>15)>>>0).toString(36)}},41182:function(e,r,o){"use strict";o.d(r,{K:function(){return ae}});var t,n=o(84867),a={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)"}(t||(t={}));var i,c,l,d,u,s={elevation4:t.depth4,elevation8:t.depth8,elevation16:t.depth16,elevation64:t.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},g=o(32945);!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)"}(i||(i={})),function(e){e.Arabic="'".concat(i.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(i.Cyrillic,"'"),e.EastEuropean="'".concat(i.EastEuropean,"'"),e.Greek="'".concat(i.Greek,"'"),e.Hebrew="'".concat(i.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(i.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(i.Vietnamese,"'"),e.WestEuropean="'".concat(i.WestEuropean,"'"),e.Armenian="'".concat(i.Armenian,"'"),e.Georgian="'".concat(i.Georgian,"'")}(c||(c={})),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"}(l||(l={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(d||(d={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(u||(u={}));var v="'Segoe UI', '".concat(i.WestEuropean,"'"),f={ar:c.Arabic,bg:c.Cyrillic,cs:c.EastEuropean,el:c.Greek,et:c.EastEuropean,he:c.Hebrew,hi:c.Hindi,hr:c.EastEuropean,hu:c.EastEuropean,ja:c.Japanese,kk:c.EastEuropean,ko:c.Korean,lt:c.EastEuropean,lv:c.EastEuropean,pl:c.EastEuropean,ru:c.Cyrillic,sk:c.EastEuropean,"sr-latn":c.EastEuropean,th:c.Thai,tr:c.EastEuropean,uk:c.Cyrillic,vi:c.Vietnamese,"zh-hans":c.ChineseSimplified,"zh-hant":c.ChineseTraditional,hy:c.Armenian,ka:c.Georgian};function h(e,r,o){return{fontFamily:o,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:r}}var p=o(8820),m=o(50963),b=function(e){var r=function(e){for(var r in f)if(f.hasOwnProperty(r)&&e&&0===r.indexOf(e))return f[r];return v}(e),o="".concat(r,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:h(l.mini,d.regular,o),xSmall:h(l.xSmall,d.regular,o),small:h(l.small,d.regular,o),smallPlus:h(l.smallPlus,d.regular,o),medium:h(l.medium,d.regular,o),mediumPlus:h(l.mediumPlus,d.regular,o),large:h(l.large,d.regular,o),xLarge:h(l.xLarge,d.semibold,o),xLargePlus:h(l.xLargePlus,d.semibold,o),xxLarge:h(l.xxLarge,d.semibold,o),xxLargePlus:h(l.xxLargePlus,d.semibold,o),superLarge:h(l.superLarge,d.semibold,o),mega:h(l.mega,d.semibold,o)}}((0,p.Z)());function k(e,r,o,t){e="'".concat(e,"'");var n=void 0!==t?"local('".concat(t,"'),"):"";(0,g.n)({fontFamily:e,src:n+"url('".concat(r,".woff2') format('woff2'),")+"url('".concat(r,".woff') format('woff')"),fontWeight:o,fontStyle:"normal",fontDisplay:"swap"})}function B(e,r,o,t,n){void 0===t&&(t="segoeui");var a="".concat(e,"/").concat(o,"/").concat(t);k(r,a+"-light",d.light,n&&n+" Light"),k(r,a+"-semilight",d.semilight,n&&n+" SemiLight"),k(r,a+"-regular",d.regular,n),k(r,a+"-semibold",d.semibold,n&&n+" SemiBold"),k(r,a+"-bold",d.bold,n&&n+" Bold")}!function(e){if(e){var r="".concat(e,"/fonts");B(r,i.Thai,"leelawadeeui-thai","leelawadeeui"),B(r,i.Arabic,"segoeui-arabic"),B(r,i.Cyrillic,"segoeui-cyrillic"),B(r,i.EastEuropean,"segoeui-easteuropean"),B(r,i.Greek,"segoeui-greek"),B(r,i.Hebrew,"segoeui-hebrew"),B(r,i.Vietnamese,"segoeui-vietnamese"),B(r,i.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),B(r,c.Selawik,"selawik","selawik"),B(r,i.Armenian,"segoeui-armenian"),B(r,i.Georgian,"segoeui-georgian"),k("Leelawadee UI Web","".concat(r,"/leelawadeeui-thai/leelawadeeui-semilight"),d.light),k("Leelawadee UI Web","".concat(r,"/leelawadeeui-thai/leelawadeeui-bold"),d.semibold)}}(function(){var e,r,o=null===(e=(0,m.z)())||void 0===e?void 0:e.FabricConfig;return null!==(r=null===o||void 0===o?void 0:o.fontBaseUrl)&&void 0!==r?r:"https://res-1.cdn.office.net/files/fabric-cdn-prod_20230815.002/assets"}());var y=o(84892);function S(e,r,o,t,a){return void 0===a&&(a=!1),function(e,r){var o="";!0===r&&(o=" /* @deprecated */");return e.listTextColor=e.listText+o,e.menuItemBackgroundChecked+=o,e.warningHighlight+=o,e.warningText=e.messageText+o,e.successText+=o,e}(P(e,r,(0,n.__assign)({primaryButtonBorder:"transparent",errorText:t?"#F1707B":"#a4262c",messageText:t?"#F3F2F1":"#323130",messageLink:t?"#6CB8F6":"#005A9E",messageLinkHovered:t?"#82C7FF":"#004578",infoIcon:t?"#C8C6C4":"#605e5c",errorIcon:t?"#F1707B":"#A80000",blockingIcon:t?"#442726":"#FDE7E9",warningIcon:t?"#C8C6C4":"#797775",severeWarningIcon:t?"#FCE100":"#D83B01",successIcon:t?"#92C353":"#107C10",infoBackground:t?"#323130":"#f3f2f1",errorBackground:t?"#442726":"#FDE7E9",blockingBackground:t?"#442726":"#FDE7E9",warningBackground:t?"#433519":"#FFF4CE",severeWarningBackground:t?"#4F2A0F":"#FED9CC",successBackground:t?"#393D1B":"#DFF6DD",warningHighlight:t?"#fff100":"#ffb900",successText:t?"#92c353":"#107C10"},o),t),a)}function P(e,r,o,t,a){void 0===a&&(a=!1);var i={},c=e||{},l=c.white,d=c.black,u=c.themePrimary,s=c.themeDark,g=c.themeDarker,v=c.themeDarkAlt,f=c.themeLighter,h=c.neutralLight,p=c.neutralLighter,m=c.neutralDark,b=c.neutralQuaternary,k=c.neutralQuaternaryAlt,B=c.neutralPrimary,y=c.neutralSecondary,S=c.neutralSecondaryAlt,P=c.neutralTertiary,C=c.neutralTertiaryAlt,x=c.neutralLighterAlt,F=c.accent;return l&&(i.bodyBackground=l,i.bodyFrameBackground=l,i.accentButtonText=l,i.buttonBackground=l,i.primaryButtonText=l,i.primaryButtonTextHovered=l,i.primaryButtonTextPressed=l,i.inputBackground=l,i.inputForegroundChecked=l,i.listBackground=l,i.menuBackground=l,i.cardStandoutBackground=l),d&&(i.bodyTextChecked=d,i.buttonTextCheckedHovered=d),u&&(i.link=u,i.primaryButtonBackground=u,i.inputBackgroundChecked=u,i.inputIcon=u,i.inputFocusBorderAlt=u,i.menuIcon=u,i.menuHeader=u,i.accentButtonBackground=u),s&&(i.primaryButtonBackgroundPressed=s,i.inputBackgroundCheckedHovered=s,i.inputIconHovered=s),g&&(i.linkHovered=g),v&&(i.primaryButtonBackgroundHovered=v),f&&(i.inputPlaceholderBackgroundChecked=f),h&&(i.bodyBackgroundChecked=h,i.bodyFrameDivider=h,i.bodyDivider=h,i.variantBorder=h,i.buttonBackgroundCheckedHovered=h,i.buttonBackgroundPressed=h,i.listItemBackgroundChecked=h,i.listHeaderBackgroundPressed=h,i.menuItemBackgroundPressed=h,i.menuItemBackgroundChecked=h),p&&(i.bodyBackgroundHovered=p,i.buttonBackgroundHovered=p,i.buttonBackgroundDisabled=p,i.buttonBorderDisabled=p,i.primaryButtonBackgroundDisabled=p,i.disabledBackground=p,i.listItemBackgroundHovered=p,i.listHeaderBackgroundHovered=p,i.menuItemBackgroundHovered=p),b&&(i.primaryButtonTextDisabled=b,i.disabledSubtext=b),k&&(i.listItemBackgroundCheckedHovered=k),P&&(i.disabledBodyText=P,i.variantBorderHovered=(null===o||void 0===o?void 0:o.variantBorderHovered)||P,i.buttonTextDisabled=P,i.inputIconDisabled=P,i.disabledText=P),B&&(i.bodyText=B,i.actionLink=B,i.buttonText=B,i.inputBorderHovered=B,i.inputText=B,i.listText=B,i.menuItemText=B),x&&(i.bodyStandoutBackground=x,i.defaultStateBackground=x),m&&(i.actionLinkHovered=m,i.buttonTextHovered=m,i.buttonTextChecked=m,i.buttonTextPressed=m,i.inputTextHovered=m,i.menuItemTextHovered=m),y&&(i.bodySubtext=y,i.focusBorder=y,i.inputBorder=y,i.smallInputBorder=y,i.inputPlaceholderText=y),S&&(i.buttonBorder=S),C&&(i.disabledBodySubtext=C,i.disabledBorder=C,i.buttonBackgroundChecked=C,i.menuDivider=C),F&&(i.accentButtonBackground=F),(null===r||void 0===r?void 0:r.elevation4)&&(i.cardShadow=r.elevation4),!t&&(null===r||void 0===r?void 0:r.elevation8)?i.cardShadowHovered=r.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=(0,n.__assign)((0,n.__assign)({},i),o)}var C={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};var x=o(7354);function F(e){var r=e.theme,o=e.isFocused,t=e.disabled,n=(null===r||void 0===r?void 0:r.semanticColors.inputFocusBorderAlt)?null===r||void 0===r?void 0:r.semanticColors.inputFocusBorderAlt:"#0f6cbd",a=(null===r||void 0===r?void 0:r.effects.roundedCorner4)?null===r||void 0===r?void 0:r.effects.roundedCorner4:4;return{text:[{borderRadius:null===r||void 0===r?void 0:r.effects.roundedCorner4},o&&!t&&(0,x.Sq)(n,a)]}}var N=function(e,r,o){return{".ms-Fabric--isFocusVisible &:focus::after":{border:"1px solid ".concat(e),borderRadius:r,inset:"0",outline:"2px solid ".concat(o)}}};function A(e){var r=e.theme,o=e.primary,t=e.split;return(0,x.TW)(function(e){return{root:{paddingLeft:"12px",paddingRight:"12px",borderRadius:e.effects.roundedCorner4}}}(r),o?function(e){var r=e.effects,o=e.palette,t=e.semanticColors;return{root:(0,n.__assign)({backgroundColor:t.primaryButtonBackground,borderColor:t.primaryButtonBorder,color:t.primaryButtonText},N(o.white,r.roundedCorner4,t.focusBorder)),rootHovered:{backgroundColor:t.primaryButtonBackgroundHovered,borderColor:t.primaryButtonBackgroundHovered,color:t.primaryButtonTextHovered},rootPressed:{backgroundColor:t.primaryButtonBackgroundPressed,borderColor:t.primaryButtonBackgroundPressed,color:t.primaryButtonTextPressed},rootDisabled:{backgroundColor:t.primaryButtonBackgroundDisabled,borderColor:t.primaryButtonBackgroundDisabled,color:t.primaryButtonTextDisabled},description:{color:t.primaryButtonText},descriptionHovered:{color:t.primaryButtonText}}}(r):function(e){var r=e.effects,o=e.palette,t=e.semanticColors;return{root:(0,n.__assign)({borderColor:t.buttonBorder,color:t.buttonText},N("transparent",r.roundedCorner4,t.focusBorder)),rootHovered:{backgroundColor:t.buttonBackgroundHovered,borderColor:o.neutralTertiaryAlt,color:t.buttonTextHovered},rootPressed:{backgroundColor:t.buttonBackgroundPressed,borderColor:o.neutralTertiary,color:t.buttonTextPressed},rootDisabled:{backgroundColor:t.buttonBackgroundDisabled,borderColor:t.buttonBorderDisabled,color:t.buttonTextDisabled}}}(r),t&&function(e){return{splitButtonMenuButton:{borderRadius:"unset",borderTopRightRadius:null===e||void 0===e?void 0:e.effects.roundedCorner4,borderBottomRightRadius:null===e||void 0===e?void 0:e.effects.roundedCorner4},splitButtonDivider:w,splitButtonDividerDisabled:w}}(r))}var w={position:"relative",top:"unset",bottom:"unset"};var _=function(e){var r=e.theme,o=e.checked;return e.disabled?r.semanticColors.disabledSubtext:o?r.semanticColors.bodyTextChecked:r.semanticColors.inputPlaceholderText},O=function(e){var r=e.theme,o=e.checked;return e.disabled?r.semanticColors.disabledBorder:o?r.semanticColors.inputBackgroundChecked:r.semanticColors.inputPlaceholderText},T=function(e){var r=e.theme,o=e.checked;return e.disabled?o?r.semanticColors.disabledBorder:r.semanticColors.inputBackground:o?r.semanticColors.inputBackgroundChecked:r.semanticColors.inputBackground},L=function(e){var r=e.theme,o=e.checked;return e.disabled?r.semanticColors.disabledBorder:o?r.semanticColors.inputBackgroundCheckedHovered:r.semanticColors.inputIconHovered},D=function(e){var r=e.theme,o=e.checked;return e.disabled?o?r.semanticColors.disabledBorder:r.semanticColors.inputBackground:o?r.semanticColors.inputBackgroundCheckedHovered:r.semanticColors.inputBackground},H=function(e){var r=e.theme;return e.disabled?r.semanticColors.disabledSubtext:r.semanticColors.inputIconHovered},I=function(e){var r=e.theme;if(e.disabled)return r.semanticColors.buttonTextDisabled},E=function(e){var r=e.theme,o=e.disabled,t=e.checked;return o?r.semanticColors.buttonTextDisabled:t?void 0:r.semanticColors.inputBackground};var R=function(e){var r=e.theme,o=e.checked;return e.disabled?r.semanticColors.disabledText:o?r.semanticColors.inputBackgroundChecked:r.semanticColors.inputPlaceholderText},M=function(e){var r=e.theme,o=e.checked;return e.disabled?r.semanticColors.disabledText:o?r.semanticColors.inputIconHovered:r.semanticColors.inputPlaceholderText},z=function(e){var r=e.theme;return e.disabled?r.semanticColors.disabledText:r.semanticColors.inputIconHovered},W=function(e,r){var o=e.theme,t=e.checked;return e.disabled&&t?o.semanticColors.disabledText:t?r?o.semanticColors.inputBackgroundCheckedHovered:o.semanticColors.inputBackgroundChecked:"transparent"},G=function(e,r){var o=e.theme,t=e.checked;return e.disabled?o.semanticColors.disabledText:t?r?o.semanticColors.inputBackgroundCheckedHovered:o.semanticColors.inputBackgroundChecked:o.semanticColors.inputIconHovered},U=function(e){var r=e.theme,o=e.checked;return e.disabled?r.semanticColors.disabledText:o?M(e):r.semanticColors.inputIconHovered};var V=function(e,r,o){var t;void 0===r&&(r=!1),void 0===o&&(o=!1);var n=e.semanticColors,a=null!==(t=null===n||void 0===n?void 0:n.inputBottomBorderFocus)&&void 0!==t?t:e.palette.themePrimary,i="2px solid ".concat(o?n.errorText:a);return{borderColor:n.focusBorder,":after":{borderColor:n.focusBorder,borderBottom:r?"unset":i,clipPath:"inset(calc(100% - 2px) 0 0 0)"}}},j=function(e){var r=e.semanticColors;return{borderRadius:null===e||void 0===e?void 0:e.effects.roundedCorner4,border:"1px solid ".concat(r.disabledBorder),color:r.disabledText,backgroundColor:"unset"}};var K,X,Q=o(16758);function Y(e){return{root:{borderRadius:e.theme.effects.roundedCorner4}}}!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(K||(K={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(X||(X={}));var q=function(e){var r=e.theme,o=e.checked,t=e.disabled,n=r.semanticColors;return o?t?n.buttonBackgroundDisabled:n.inputBackgroundChecked:o?void 0:n.primaryButtonBorder},J=function(e){var r=e.theme,o=e.checked,t=e.disabled,n=r.semanticColors;return o?t?n.buttonBackgroundDisabled:n.inputBackgroundCheckedHovered:o?void 0:n.primaryButtonBorder},$=function(e){var r=e.theme,o=e.checked,t=e.disabled,n=r.semanticColors;return o?t?n.disabledBackground:n.primaryButtonBackgroundPressed:o?void 0:n.primaryButtonBorder},Z=function(e){var r=e.theme,o=e.disabled,t=r.semanticColors;return o?t.disabledBodySubtext:t.inputText},ee=o(56205),re={Breadcrumb:{styles:function(e){var r=e.theme.effects;return{itemLink:{borderRadius:r.roundedCorner4,".ms-Fabric--isFocusVisible &:focus::after":{borderRadius:r.roundedCorner4}}}}},CalloutContent:{styles:function(e){var r=e.theme.effects;return{root:{borderRadius:r.roundedCorner4},calloutMain:{borderRadius:r.roundedCorner4},beakCurtain:{borderRadius:r.roundedCorner4}}}},Check:{styles:function(e){var r=e.checked,o=e.theme;return o||(0,ee.R)("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%"}},r&&{":hover":{"::before":{backgroundColor:o.semanticColors.inputBackgroundCheckedHovered},'[data-icon-name="CircleRing"]':{borderColor:o.semanticColors.inputBackgroundCheckedHovered}},"::before":{backgroundColor:o.semanticColors.inputBackgroundChecked},'[data-icon-name="StatusCircleCheckmark"]':{opacity:1}}],check:[{fontSize:"18px",lineHeight:"16px",margin:"0",width:"16px",height:"16px",fontWeight:x.BO.regular,transition:"opacity ease-in-out 100ms",opacity:0,boxSizing:"border-box"},r&&{color:"white"}],circle:[{fontSize:0,width:"16px",height:"16px",borderRadius:2,borderColor:o.semanticColors.inputBorder,borderWidth:"1px",borderStyle:"solid",transition:"all ease-in-out 200ms",boxSizing:"border-box"},r&&{color:o.semanticColors.bodyTextChecked,borderColor:o.semanticColors.inputBackgroundChecked}]}}},Checkbox:{styles:function(e){return function(e){return{root:{"&:hover .ms-Checkbox-checkbox":{borderColor:L(e),background:D(e)},"&:hover .ms-Checkbox-text":{color:H(e)},"&:hover .ms-Checkbox-checkmark":{color:E(e)}},label:{gap:"4px",padding:"3px"},checkbox:{margin:0,backgroundColor:T(e),borderColor:O(e)},text:{margin:0,color:_(e)},checkmark:{color:I(e)}}}(e)}},ChoiceGroup:{styles:function(e){return function(e){return{root:{},label:{color:e.theme.semanticColors.inputPlaceholderText},flexContainer:{}}}(e)}},ChoiceGroupOption:{styles:function(e){return function(e){return{field:{color:M(e),".ms-ChoiceFieldLabel":{color:M(e)},"&:hover .ms-ChoiceFieldLabel":{color:U(e)},selectors:{"::before":{borderColor:R(e),width:"17px",height:"17px",margin:"2px"},"::after":{width:"11px",height:"11px",background:W(e,!1),borderColor:W(e,!1)},":hover":{color:z(e)},":hover::before":{borderColor:G(e,!0)},":hover::after":{background:W(e,!0),borderColor:W(e,!0)}}}}}(e)}},ColorPickerGridCell:{styles:function(e){var r,o=e.theme,t=e.circle,n=e.height,a=e.width,i=o.effects,c={borderRadius:i.roundedCorner2};if(n&&n>32&&n<=64||a&&a>32&&a<=64)c={borderRadius:i.roundedCorner4};else if(n&&n>64||a&&a>64){c={borderRadius:null!==(r=i.roundedCorner8)&&void 0!==r?r:"8px"}}return{colorCell:[!t&&c],svg:[!t&&c]}}},CommandBar:{styles:function(e){return{root:{height:"48px",borderRadius:e.theme.effects.roundedCorner8,alignItems:"center"},primarySet:{height:"40px"},secondarySet:{height:"40px"}}}},CommandBarButton:{styles:function(e){var r=e.theme,o=r,t=o.semanticColors,a=o.effects,i={borderRadius:0,borderTopRightRadius:a.roundedCorner4,borderBottomRightRadius:a.roundedCorner4},c={borderRadius:0,borderTopLeftRadius:a.roundedCorner4,borderBottomLeftRadius:a.roundedCorner4},l={height:32,paddingLeft:4,paddingRight:4},d=function(e){var r=e.effects,o=e.semanticColors,t={borderRadius:0,borderTopRightRadius:r.roundedCorner4,borderBottomRightRadius:r.roundedCorner4},a={borderRadius:0,borderTopLeftRadius:r.roundedCorner4,borderBottomLeftRadius:r.roundedCorner4};return{splitButtonContainer:{borderRadius:r.roundedCorner4,color:o.buttonText,".ms-Button:first-child":(0,n.__assign)((0,n.__assign)({},a),{height:"100%"}),".ms-Button--primary:hover":{border:"none"}},splitButtonMenuButton:(0,n.__assign)((0,n.__assign)({},t),{height:"100%",padding:"0px",width:20}),splitButtonContainerFocused:{":focus::after":{inset:"0px",outline:"none",borderRadius:r.roundedCorner4,border:"2px solid ".concat(o.focusBorder)}},splitButtonMenuFocused:{":focus::after":(0,n.__assign)({inset:"0px",outline:"none",border:"2px solid ".concat(o.focusBorder)},t)},splitButtonDivider:{right:19},splitButtonDividerDisabled:{right:19}}}(r);return(0,n.__assign)((0,n.__assign)({root:{backgroundColor:"transparent",height:"100%",padding:"0px",margin:"0px 2px",borderRadius:a.roundedCorner4,".ms-Fabric--isFocusVisible &:focus::after":{top:4,right:0,bottom:4,left:0,outline:"none",borderRadius:a.roundedCorner4,border:"2px solid ".concat(t.focusBorder)}},rootHovered:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:t.buttonBackgroundHovered}},rootPressed:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:t.buttonBackgroundPressed}},rootExpanded:{backgroundColor:"transparent",color:"inherit",".ms-Button-flexContainer":{backgroundColor:"transparent"}},rootChecked:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:t.buttonBackgroundChecked}},rootCheckedHovered:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:t.buttonBackgroundCheckedHovered}},rootCheckedPressed:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:t.buttonBackgroundPressed}},rootExpandedHovered:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:t.buttonBackgroundHovered}},flexContainer:{height:32,paddingLeft:4,paddingRight:4,borderRadius:a.roundedCorner4},icon:{color:"inherit"},menuIcon:{color:"inherit",fontSize:"10px"},rootDisabled:{backgroundColor:"transparent"},textContainer:{height:16}},d),{splitButtonContainer:{borderRadius:a.roundedCorner4,color:t.buttonText,".ms-Button:first-child":{".ms-Button-flexContainer":(0,n.__assign)((0,n.__assign)({},c),l)}},splitButtonMenuButton:(0,n.__assign)((0,n.__assign)({},i),{height:"100%",padding:"0px",width:20,marginLeft:"-2px",backgroundColor:"transparent",".ms-Button-flexContainer":(0,n.__assign)((0,n.__assign)({},i),l),"&:hover":{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:t.buttonBackgroundHovered}}}),splitButtonContainerFocused:{":focus::after":{inset:"4px 0px",outline:"none",borderRadius:a.roundedCorner4,border:"2px solid ".concat(t.focusBorder)}},splitButtonMenuButtonExpanded:{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:t.buttonBackgroundChecked},"&:hover":{backgroundColor:"transparent",".ms-Button-flexContainer":{backgroundColor:t.buttonBackgroundCheckedHovered}}},splitButtonFlexContainer:{border:"none"}})}},CompoundButton:{styles:A},ContextualMenu:{styles:function(e){var r=e.theme.effects;return{root:{borderRadius:r.roundedCorner4,boxShadow:r.elevation8},container:{borderRadius:r.roundedCorner4},list:{padding:"4px"},subComponentStyles:{callout:{},menuItem:{root:{borderRadius:r.roundedCorner2,"&:after":{borderRadius:r.roundedCorner2}},divider:{margin:"4px"},icon:{color:"inherit"}}}}}},DefaultButton:{styles:A},DetailRowCheck:{styles:function(){return{check:[{opacity:1}]}}},Dialog:{styles:function(e){var r=e.theme.effects;return{main:{borderRadius:r.roundedCorner8,boxShadow:r.elevation64}}}},DialogContent:{styles:function(e){var r=e.theme.effects;return{topButton:{"&:hover":{".ms-Dialog-button":{borderRadius:r.roundedCorner4}}},button:{borderRadius:r.roundedCorner4}}}},Dropdown:{styles:function(e){var r,o=e.theme,t=e.disabled,n=o,a=n.semanticColors,i=n.palette,c=null!==(r=null===a||void 0===a?void 0:a.inputBottomBorderFocus)&&void 0!==r?r:i.themePrimary,l="2px solid ".concat(c);return{dropdown:[t&&j(o),!t&&{selectors:{"&:focus:after":[{borderRadius:null===o||void 0===o?void 0:o.effects.roundedCorner4,borderColor:a.focusBorder,borderBottom:l,clipPath:"inset(calc(100% - 2px) 0 0 0)"}]}}],title:[{borderRadius:null===o||void 0===o?void 0:o.effects.roundedCorner4},t&&{backgroundColor:"unset"}],caretDown:{color:null===o||void 0===o?void 0:o.palette.neutralQuaternary},label:{fontWeight:x.BO.regular}}}},IconButton:{styles:function(e){var r=e.theme,o=r.effects,t=r.palette,a=r.semanticColors;return{root:(0,n.__assign)({borderColor:"transparent",borderRadius:o.roundedCorner4,color:t.neutralPrimaryAlt},N("transparent",o.roundedCorner4,a.focusBorder)),rootHovered:{backgroundColor:t.neutralLighter,borderColor:t.neutralLighter,color:a.buttonTextHovered},rootPressed:{backgroundColor:a.buttonBackgroundPressed,borderColor:a.buttonBackgroundPressed,color:a.buttonTextPressed},rootDisabled:{backgroundColor:"transparent",borderColor:"transparent",color:a.buttonTextDisabled}}}},MessageBar:{styles:function(e){return{root:{borderRadius:e.theme.effects.roundedCorner4}}}},Modal:{styles:function(e){var r=e.theme.effects;return{main:{borderRadius:r.roundedCorner8,boxShadow:r.elevation64}}}},Pivot:{styles:function(e){var r=e.theme,o=r.effects,t=r.semanticColors;return{link:{backgroundColor:"transparent",border:"2px solid transparent",borderRadius:o.roundedCorner4,height:"44px",lineHeight:"20px",marginRight:0,padding:"12px","&:hover::before":{borderRadius:o.roundedCorner4,height:"3px"},"&:hover":{".ms-Pivot-icon":{}},".ms-Fabric--isFocusVisible &:focus":{border:"2px solid ".concat(t.focusBorder),borderRadius:o.roundedCorner4,inset:0,outline:"none"}},icon:{height:"14px",width:"14px"},linkIsSelected:{border:"2px solid transparent",borderRadius:o.roundedCorner4,height:"44px",lineHeight:"20px",marginRight:0,padding:"12px","&::before":{borderRadius:o.roundedCorner4,height:"3px"},".ms-Fabric--isFocusVisible &:focus":{border:"2px solid ".concat(t.focusBorder),borderRadius:o.roundedCorner4,inset:0,outline:"none"},".ms-Pivot-icon":{}}}}},NormalPeoplePicker:{styles:F},CompactPeoplePicker:{styles:F},ListPeoplePickerBase:{styles:F},SearchBox:{styles:function(e){var r=e.hasFocus,o=e.underlined,t=e.disabled,n=e.theme,a=n.palette,i=n.semanticColors,c="1px solid ".concat(a.neutralPrimary);return{root:[{borderRadius:o?0:n.effects.roundedCorner4,borderBottom:c},r&&["is-active",{position:"relative",borderColor:"unset"},V(n)],t&&["is-disabled",j(n),{borderBottom:"1px solid ".concat(i.disabledBorder)}]],field:[t&&{"::placeholder":{color:i.disabledText}}],iconContainer:[{color:n.palette.neutralPrimary},t&&["is-disabled",{color:i.disabledText}]]}}},Slider:{styles:function(e){var r,o=e.theme,t=e.vertical,n=e.disabled,a=o.semanticColors,i=n?void 0:{backgroundColor:a.smallInputBorder},c=n?void 0:{backgroundColor:a.primaryButtonBackgroundHovered},l=n?void 0:{border:"1px solid "+a.smallInputBorder};return{thumb:[{background:n?a.disabledBorder:a.primaryButtonBackground,boxShadow:"0 0 0 4px ".concat(a.buttonBackground," inset"),borderWidth:1,borderColor:a.disabledBorder,height:20,width:20,":hover":{backgroundColor:n?a.disabledBorder:a.primaryButtonBackgroundHovered}},t?{left:-8,margin:"0 auto",transform:"translateY(8px)"}:{top:-8,transform:(0,Q.jI)(o)?"translateX(50%)":"translateX(-50%)"}],activeSection:[{background:n?a.disabledBorder:a.primaryButtonBackground}],inactiveSection:{backgroundColor:n?a.buttonBackgroundDisabled:a.smallInputBorder},slideBox:[(r={},r[":active .ms-Slider-inactive"]=i,r[":hover .ms-Slider-inactive"]=i,r[":active .ms-Slider-active"]=c,r[":hover .ms-Slider-active"]=c,r[":active .ms-Slider-thumb"]=l,r[":hover .ms-Slider-thumb"]=l,r)]}}},SpinButton:{styles:function(e){var r=e.theme,o=e.isFocused,t=e.disabled,n=r.semanticColors,a=n.disabledBorder,i=n.inputBorder,c=o?r.palette.themePrimary:r.palette.neutralPrimary;return t&&(c=n.disabledBorder,i=n.disabledBorder),{label:{fontWeight:x.BO.regular},input:{backgroundColor:"unset"},spinButtonWrapper:[{borderBottomColor:c,backgroundColor:"unset"},{":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:i,borderBottomColor:c,borderRadius:r.effects.roundedCorner4}},!t&&[{":hover :":{":after":{borderStyle:"solid",borderColor:a,borderBottom:r.palette.themePrimary,borderWidth:"1px"}}},o&&[{":hover:after, :after":{borderStyle:"solid",borderColor:a,borderBottomColor:c,borderWidth:"1px"}}]]]}}},Spinner:{styles:function(e){var r=e.theme,o=e.size;return{label:[r.fonts.mediumPlus,{color:r.semanticColors.bodyText,fontWeight:x.BO.semibold}],circle:[{borderWidth:3},o===K.large&&{height:36,width:36},o===K.medium&&{height:32,width:32},o===K.small&&{height:28,width:28},o===K.xSmall&&{height:24,width:24}]}}},TagItem:{styles:Y},TagPicker:{styles:F},Tag:{styles:Y},TextField:{styles:function(e){var r=e.theme,o=e.focused,t=e.borderless,n=e.underlined,a=e.hasErrorMessage,i=e.disabled,c=r.effects,l=r.semanticColors,d=r.palette,u={backgroundColor:"unset"},s=a?l.errorText:d.neutralPrimary,g=t||n?"unset":"1px solid ".concat(s);return{subComponentStyles:{label:{root:{fontWeight:x.BO.regular}}},prefix:u,suffix:u,field:[o&&{border:"unset",":after":{border:"unset"}},i&&{backgroundColor:"unset"},{borderRadius:c.roundedCorner4,":after":{borderRadius:c.roundedCorner4}}],fieldGroup:[{borderBottom:g,borderRadius:c.roundedCorner4,":after":{borderRadius:c.roundedCorner4}},o&&V(r,n,a),i&&j(r),i&&{borderBottom:"1px solid ".concat(l.disabledText)}]}}},Toggle:{styles:function(e){var r=e.theme,o=e.disabled,t=r.semanticColors,n=r.effects;return{root:{},label:{color:Z(e)},thumb:{width:"14px",height:"14px",backgroundColor:o?t.inputIconDisabled:void 0},container:{},pill:{backgroundColor:q(e),"&:hover":{backgroundColor:J(e)},"&:active":{backgroundColor:$(e)},"&:focus&:after":{borderRadius:n.roundedCorner4,outlineWidth:"2px"}},text:{}}}}},oe="#BDBDBD",te=(0,n.__assign)({themeDarker:"#0c3b5e",themeDark:"#0f548c",themeDarkAlt:"#115ea3",themePrimary:"#0f6cbd",themeSecondary:"#2886de",themeTertiary:"#77b7f7",themeLight:"#b4d6fa",themeLighter:"#cfe4fa",themeLighterAlt:"#ebf3fc",black:"#000000",blackTranslucent40:"rgba(0, 0, 0, 0.4)",neutralDark:"#141414",neutralPrimary:"#242424",neutralPrimaryAlt:"#383838",neutralSecondary:"#5c5c5c",neutralSecondaryAlt:"#8a8886",neutralTertiary:"#9e9e9e",neutralTertiaryAlt:"#c7c7c7",neutralQuaternary:"#d1d1d1",neutralQuaternaryAlt:"#e0e0e0",neutralLight:"#ebebeb",neutralLighter:"#f5f5f5",neutralLighterAlt:"#fafafa",accent:"#0f6cbd",white:"#FFFFFF",whiteTranslucent40:"rgba(255 ,255 ,255 ,0.4)"},{yellowDark:"#d39300",yellow:"#fde300",yellowLight:"#fef7b2",orange:"#f7630c",orangeLight:"#f98845",orangeLighter:"#fdcfb4",redDark:"#750b1c",red:"#d13438",magentaDark:"#6b0043",magenta:"#bf0077",magentaLight:"#d957a8",purpleDark:"#401b6c",purple:"#5c2e91",purpleLight:"#c6b1de",blueDark:"#003966",blueMid:"#004e8c",blue:"#0078d4",blueLight:"#3a96dd",tealDark:"#006666",teal:"#038387",tealLight:"#00b7c3",greenDark:"#0b6a0b",green:"#107c10",greenLight:"#13a10e"}),ne=te,ae=function(e,r){void 0===e&&(e={}),void 0===r&&(r=!1);var o=!!e.isInverted;return function(e,r){var o,t,n;void 0===r&&(r={});var a=(0,y.h)({},e,r,{semanticColors:P(r.palette,r.effects,r.semanticColors,void 0===r.isInverted?e.isInverted:r.isInverted)});if((null===(o=r.palette)||void 0===o?void 0:o.themePrimary)&&!(null===(t=r.palette)||void 0===t?void 0:t.accent)&&(a.palette.accent=r.palette.themePrimary),r.defaultFontStyle)for(var i=0,c=Object.keys(a.fonts);i<c.length;i++){var l=c[i];a.fonts[l]=(0,y.h)(a.fonts[l],r.defaultFontStyle,null===(n=null===r||void 0===r?void 0:r.fonts)||void 0===n?void 0:n[l])}return a}({palette:a,effects:s,fonts:b,spacing:C,isInverted:o,disableGlobalClassNames:!1,semanticColors:S(a,s,void 0,o,r),rtl:void 0},e)}({palette:te,semanticColors:{inputBottomBorderFocus:ne.themePrimary,inputBottomBorderRest:ne.neutralLighter,focusBorder:ne.neutralTertiary,inputBorder:ne.neutralQuaternary,inputBackgroundChecked:ne.themePrimary,inputBackground:ne.white,bodyTextChecked:ne.neutralPrimary,inputBackgroundCheckedHovered:ne.themeDarkAlt,warningText:ne.neutralPrimary,messageText:ne.neutralPrimary,messageLink:ne.themeDarkAlt,messageLinkHovered:ne.themeDarker,infoIcon:ne.neutralSecondary,warningIcon:ne.neutralPrimary,infoBackground:ne.neutralLighter,inputIconHovered:"#424242",inputPlaceholderText:"#616161",disabledBorder:oe,disabledText:oe},components:re,effects:{elevation4:"0px 2px 4px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12)",elevation8:"0px 4px 8px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12)",elevation16:"0px 8px 16px rgba(0, 0, 0, 0.14), 0px 0px 2px rgba(0, 0, 0, 0.12)",elevation64:"0px 32px 64px rgba(0, 0, 0, 0.24), 0px 0px 8px rgba(0, 0, 0, 0.2)",roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px",roundedCorner8:"8px",roundedCornerCircle:"50%"}})},57992:function(e,r,o){"use strict";o.d(r,{F:function(){return i},U:function(){return c}});var t=o(80322),n=t.createContext(void 0),a={},i=n.Provider,c=function(){return t.useContext(n)?t.useContext(n):a}},70979:function(e,r,o){"use strict";o.d(r,{Y:function(){return h},FD:function(){return p}});var t=o(47548);function n(e){return Boolean(null===e||void 0===e?void 0:e.hasOwnProperty(t.o))}var a=o(80322),i=o(8778),c=o(18188);o(8356);function l(e,r){return function(o,a,l,d,u){return n(a)?r(function(e,r){return(0,c.A)((0,c.A)({},r),{},(0,i.A)({},t.o,e))}(o,a),null,l,d,u):n(o)?r(o,a,l,d,u):e(o,a,l,d,u)}}var d=o(49839),u=o(12841);function s(e){var r=function(e,r){if("object"!==(0,u.A)(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var t=o.call(e,r||"default");if("object"!==(0,u.A)(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===(0,u.A)(r)?r:String(r)}function g(e){var r=e.as,o=e[t.o],n=e[t.Y],a=(0,d.A)(e,["as",t.o,t.Y].map(s)),i="string"===typeof o&&null!==r&&void 0!==r?r:o;return"string"!==typeof i&&r&&(a.as=r),{elementType:i,props:a,renderFunction:n}}var v=o(80812),f=o.t(v,2),h=l(f.jsx,(function(e,r,o){var t=g(e),n=t.elementType,i=t.renderFunction,l=t.props,d=(0,c.A)((0,c.A)({},l),r);return i?f.jsx(a.Fragment,{children:i(n,d)},o):f.jsx(n,d,o)})),p=l(f.jsxs,(function(e,r,o){var t=g(e),n=t.elementType,i=t.renderFunction,l=t.props,d=(0,c.A)((0,c.A)({},l),r);return i?f.jsx(a.Fragment,{children:i(n,(0,c.A)((0,c.A)({},d),{},{children:f.jsxs(a.Fragment,{children:d.children},void 0)}))},o):f.jsxs(n,d,o)}))},2152:function(e,r){"use strict";var o=60103,t=60106,n=60107,a=60108,i=60114,c=60109,l=60110,d=60112,u=60113,s=60120,g=60115,v=60116,f=60121,h=60122,p=60117,m=60129,b=60131;if("function"===typeof Symbol&&Symbol.for){var k=Symbol.for;o=k("react.element"),t=k("react.portal"),n=k("react.fragment"),a=k("react.strict_mode"),i=k("react.profiler"),c=k("react.provider"),l=k("react.context"),d=k("react.forward_ref"),u=k("react.suspense"),s=k("react.suspense_list"),g=k("react.memo"),v=k("react.lazy"),f=k("react.block"),h=k("react.server.block"),p=k("react.fundamental"),m=k("react.debug_trace_mode"),b=k("react.legacy_hidden")}function B(e){if("object"===typeof e&&null!==e){var r=e.$$typeof;switch(r){case o:switch(e=e.type){case n:case i:case a:case u:case s:return e;default:switch(e=e&&e.$$typeof){case l:case d:case v:case g:case c:return e;default:return r}}case t:return r}}}},8356:function(e,r,o){"use strict";o(2152)},10286:function(e,r,o){"use strict";o.d(r,{q:function(){return H}});var t=o(80322),n=o(18188),a=o(70979),i=o(634),c=o(74674),l=o(10752),d=o(11277),u=t.createContext(void 0),s=u.Provider,g=o(92393),v=o(11577),f=o(76235),h=o(3587),p=o(57992),m=o(75650),b=o(63759),k=o(48021),B=o(94396),y=o(56104),S=o(79924),P=o(85875);var C=o(85793),x=o(59921),F="fui-FluentProvider",N=(0,C.X)({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),A=t.useInsertionEffect?t.useInsertionEffect:S.E,w=function(e){var r=e.targetDocument,o=e.theme,a=e.rendererAttributes,i=t.useRef(),c=(0,P.Bi)(F),l=a,d=t.useMemo((function(){return function(e,r){if(r){var o=Object.keys(r).reduce((function(e,o){return"".concat(e,"--").concat(o,": ").concat(r[o],"; ")}),"");return"".concat(e," { ").concat(o," }")}return"".concat(e," {}")}(".".concat(c),o)}),[o,c]);return function(e,r){t.useState((function(){if(e){var o=e.getElementById(r);o&&e.head.append(o)}}))}(r,c),A((function(){var e=null===r||void 0===r?void 0:r.getElementById(c);return e?i.current=e:(i.current=function(e,r){if(e){var o=e.createElement("style");return Object.keys(r).forEach((function(e){o.setAttribute(e,r[e])})),e.head.appendChild(o),o}}(r,(0,n.A)((0,n.A)({},l),{},{id:c})),i.current&&function(e,r){var o=e.sheet;o&&(o.cssRules.length>0&&o.deleteRule(0),o.insertRule(r,0))}(i.current,d)),function(){var e;null===(e=i.current)||void 0===e||e.remove()}}),[c,r,d,l]),{styleTagId:c,rule:d}};var _={},O={},T=function(e,r){var o,a=(0,d.Y)(),i=t.useContext(u),c=(0,h.Pv)(),l=t.useContext(v.k7)||_,s=e.applyStylesToPortals,g=void 0===s||s,f=e.customStyleHooks_unstable,p=e.dir,S=void 0===p?a.dir:p,P=e.targetDocument,C=void 0===P?a.targetDocument:P,x=e.theme,F=e.overrides_unstable,N=void 0===F?{}:F,A=L(i,x),T=L(c,N),D=L(l,f),H=(0,m.J)(),I=w({theme:A,targetDocument:C,rendererAttributes:null!==(o=H.styleElementAttributes)&&void 0!==o?o:O}),E=I.styleTagId,R=I.rule;return{applyStylesToPortals:g,customStyleHooks_unstable:D,dir:S,targetDocument:C,theme:A,overrides_unstable:T,themeClassName:E,components:{root:"div"},root:k.Gk((0,B.g)("div",(0,n.A)((0,n.A)({},e),{},{dir:S,ref:(0,y.a)(r,(0,b.Y)({targetDocument:C}))})),{elementType:"div"}),serverStyleProps:{cssRule:R,attributes:(0,n.A)((0,n.A)({},H.styleElementAttributes),{},{id:E})}}};function L(e,r){return e&&r?(0,n.A)((0,n.A)({},e),r):e||r}var D=o(61249);var H=t.forwardRef((function(e,r){var o=T(e,r);!function(e){var r=(0,m.J)(),o=N({dir:e.dir,renderer:r});e.root.className=(0,x.z)(F,e.themeClassName,o.root,e.root.className)}(o);var u=function(e){var r=e.applyStylesToPortals,o=e.customStyleHooks_unstable,n=e.dir,a=e.root,i=e.targetDocument,c=e.theme,l=e.themeClassName,d=e.overrides_unstable,u=t.useMemo((function(){return{dir:n,targetDocument:i}}),[n,i]),s=t.useState((function(){return{}})),g=(0,D.A)(s,1)[0],v=t.useMemo((function(){return{textDirection:n}}),[n]);return{customStyleHooks_unstable:o,overrides_unstable:d,provider:u,textDirection:n,iconDirection:v,tooltip:g,theme:c,themeClassName:r?a.className:l}}(o);return function(e,r){return(0,i.C)(e),(0,a.Y)(d.K,{value:r.provider,children:(0,a.Y)(s,{value:r.theme,children:(0,a.Y)(g.I,{value:r.themeClassName,children:(0,a.Y)(v.gH,{value:r.customStyleHooks_unstable,children:(0,a.Y)(f.J,{value:r.tooltip,children:(0,a.Y)(l.e,{dir:r.textDirection,children:(0,a.Y)(p.F,{value:r.iconDirection,children:(0,a.Y)(h.Nv,{value:r.overrides_unstable,children:(0,a.FD)(e.root,{children:[(0,c.S)()?null:(0,a.Y)("style",(0,n.A)({dangerouslySetInnerHTML:{__html:e.serverStyleProps.cssRule}},e.serverStyleProps.attributes)),e.root.children]})})})})})})})})})}(o,u)}));H.displayName="FluentProvider"},11577:function(e,r,o){"use strict";o.d(r,{$e:function(){return c},gH:function(){return i},k7:function(){return n}});var t=o(80322),n=t.createContext(void 0),a=function(){},i=n.Provider,c=function(e){var r,o;return null!==(o=null===(r=t.useContext(n))||void 0===r?void 0:r[e])&&void 0!==o?o:a}},3587:function(e,r,o){"use strict";o.d(r,{Nv:function(){return a},Pv:function(){return i}});var t=o(80322),n=t.createContext(void 0),a=n.Provider;function i(){var e;return null!==(e=t.useContext(n))&&void 0!==e?e:{}}},11277:function(e,r,o){"use strict";o.d(r,{K:function(){return i},Y:function(){return c}});var t=o(80322),n=t.createContext(void 0),a={targetDocument:"object"===typeof document?document:void 0,dir:"ltr"},i=n.Provider;function c(){var e;return null!==(e=t.useContext(n))&&void 0!==e?e:a}},92393:function(e,r,o){"use strict";o.d(r,{I:function(){return a},q:function(){return i}});var t=o(80322),n=t.createContext(void 0),a=n.Provider;function i(){var e;return null!==(e=t.useContext(n))&&void 0!==e?e:""}},76235:function(e,r,o){"use strict";o.d(r,{J:function(){return i},n:function(){return c}});var t=o(80322),n=t.createContext(void 0),a={},i=n.Provider;function c(){var e;return null!==(e=t.useContext(n))&&void 0!==e?e:a}},69639:function(e,r,o){"use strict";o.d(r,{A7:function(){return t},BV:function(){return n}});":global([".concat("data-keyboard-nav","])");var t="data-fui-focus-visible",n="data-fui-focus-within"},63759:function(e,r,o){"use strict";o.d(r,{Y:function(){return u}});var t=o(80322),n=o(11277),a=o(93651),i=o(66297),c=o(69639);function l(e,r){if(d(e))return function(){};var o={current:void 0},t=(0,i.SQ)(r);function n(e){t.isNavigatingWithKeyboard()&&(0,a.s)(e)&&(o.current=e,e.setAttribute(c.A7,""))}function l(){o.current&&(o.current.removeAttribute(c.A7),o.current=void 0)}t.subscribe((function(e){e||l()}));var u=function(e){l(),n(e.composedPath()[0])},s=function(r){(!r.relatedTarget||(0,a.s)(r.relatedTarget)&&!e.contains(r.relatedTarget))&&l()};return e.addEventListener(i.Oy,u),e.addEventListener("focusout",s),e.focusVisible=!0,e.contains(r.document.activeElement)&&n(r.document.activeElement),function(){l(),e.removeEventListener(i.Oy,u),e.removeEventListener("focusout",s),delete e.focusVisible,(0,i.bd)(t)}}function d(e){return!!e&&(!!e.focusVisible||d(null===e||void 0===e?void 0:e.parentElement))}function u(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=(0,n.Y)(),a=t.useRef(null),i=null!==(e=r.targetDocument)&&void 0!==e?e:o.targetDocument;return t.useEffect((function(){if((null===i||void 0===i?void 0:i.defaultView)&&a.current)return l(a.current,i.defaultView)}),[a,i]),a}},634:function(e,r,o){"use strict";o.d(r,{C:function(){return t}});o(80322);function t(e){}},47548:function(e,r,o){"use strict";o.d(r,{Y:function(){return t},o:function(){return n}});var t=Symbol.for("fui.slotRenderFunction"),n=Symbol.for("fui.slotElementType")},94396:function(e,r,o){"use strict";o.d(r,{g:function(){return n}});o(80322);var t=o(41874),n=function(e,r,o){var n;return(0,t._)(null!==(n=r.as)&&void 0!==n?n:e,r,o)}},48021:function(e,r,o){"use strict";o.d(r,{Gf:function(){return d},Gk:function(){return c},lq:function(){return l}});var t=o(8778),n=o(18188),a=o(80322),i=o(47548);function c(e,r){var o=r.defaultProps,a=r.elementType,c=d(e),l=(0,n.A)((0,n.A)((0,n.A)({},o),c),{},(0,t.A)({},i.o,a));return c&&"function"===typeof c.children&&(l[i.Y]=c.children,l.children=null===o||void 0===o?void 0:o.children),l}function l(e,r){if(null!==e&&(void 0!==e||r.renderByDefault))return c(e,r)}function d(e){return"string"===typeof e||"number"===typeof e||Array.isArray(e)||a.isValidElement(e)?{children:e}:e}},85875:function(e,r,o){"use strict";o.d(r,{Bi:function(){return l},LX:function(){return i}});var t=o(80322),n=o(54098),a=t.createContext(void 0),i=a.Provider;function c(){return t.useContext(a)||""}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"fui-",r=arguments.length>1?arguments[1]:void 0,o=(0,n.LM)(),a=c(),i=t.useId;if(i){var l=i(),d=t.useMemo((function(){return l.replace(/:/g,"")}),[l]);return r||"".concat(a).concat(e).concat(d)}return t.useMemo((function(){return r||"".concat(a).concat(e).concat(++o.current)}),[a,e,r,o])}},79924:function(e,r,o){"use strict";o.d(r,{E:function(){return n}});var t=o(80322),n=(0,o(74674).S)()?t.useLayoutEffect:t.useEffect},56104:function(e,r,o){"use strict";o.d(r,{a:function(){return n}});var t=o(80322);function n(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];var n=t.useCallback((function(e){n.current=e;for(var o=0,t=r;o<t.length;o++){var a=t[o];"function"===typeof a?a(e):a&&(a.current=e)}}),[].concat(r));return n}},54098:function(e,r,o){"use strict";o.d(r,{LM:function(){return l},wR:function(){return d}});var t=o(61249),n=o(80322),a=o(74674),i={current:0},c=n.createContext(void 0);function l(){var e;return null!==(e=n.useContext(c))&&void 0!==e?e:i}function d(){var e=l()!==i,r=n.useState(e),o=(0,t.A)(r,2),c=o[0],d=o[1];return(0,a.S)()&&e&&n.useLayoutEffect((function(){d(!1)}),[]),c}},74674:function(e,r,o){"use strict";function t(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}o.d(r,{S:function(){return t}})},41874:function(e,r,o){"use strict";o.d(r,{_:function(){return k},n:function(){return B}});var t=o(22489),n=(o(80322),o(72382)),a=function(){for(var e={},r=arguments.length,o=new Array(r),t=0;t<r;t++)o[t]=arguments[t];for(var a=0,i=o;a<i.length;a++){var c,l=i[a],d=Array.isArray(l)?l:Object.keys(l),u=(0,n.A)(d);try{for(u.s();!(c=u.n()).done;){var s=c.value;e[s]=1}}catch(g){u.e(g)}finally{u.f()}}return e},i=a(["onAuxClick","onAnimationEnd","onAnimationStart","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"]),c=a(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),l=a(["itemID","itemProp","itemRef","itemScope","itemType"]),d=a(c,i,l),u=a(d,["form"]),s=a(d,["height","loop","muted","preload","src","width"]),g=a(s,["poster"]),v=a(d,["start"]),f=a(d,["value"]),h=a(d,["download","href","hrefLang","media","rel","target","type"]),p=a(d,["dateTime"]),m=a(d,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]);var b={label:u,audio:s,video:g,ol:v,li:f,a:h,button:m,input:a(m,["accept","alt","autoCorrect","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","minLength","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),textarea:a(m,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),select:a(m,["form","multiple","required"]),option:a(d,["selected","value"]),table:a(d,["cellPadding","cellSpacing"]),tr:d,th:a(d,["colSpan","rowSpan","scope"]),td:a(d,["colSpan","headers","rowSpan","scope"]),colGroup:a(d,["span"]),col:a(d,["span"]),fieldset:a(d,["disabled","form"]),form:a(d,["acceptCharset","action","encType","encType","method","noValidate","target"]),iframe:a(d,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),img:a(d,["alt","crossOrigin","height","src","srcSet","useMap","width"]),time:p,dialog:a(d,["open","onCancel","onClose"])};function k(e,r,o){var t=e&&b[e]||d;return t.as=1,function(e,r,o){for(var t=Array.isArray(r),n={},a=0,i=Object.keys(e);a<i.length;a++){var c=i[a];!(!t&&r[c]||t&&r.indexOf(c)>=0||0===c.indexOf("data-")||0===c.indexOf("aria-"))||o&&-1!==(null===o||void 0===o?void 0:o.indexOf(c))||(n[c]=e[c])}return n}(r,t,o)}var B=function(e){var r=e.primarySlotTagName,o=e.props,n=e.excludedPropNames;return{root:{style:o.style,className:o.className},primary:k(r,o,[].concat((0,t.A)(n||[]),["style","className"]))}}},93651:function(e,r,o){"use strict";function t(e,r){var o,t,n=e;return Boolean((null===n||void 0===n||null===(o=n.ownerDocument)||void 0===o?void 0:o.defaultView)&&n instanceof n.ownerDocument.defaultView[null!==(t=null===r||void 0===r?void 0:r.constructorName)&&void 0!==t?t:"HTMLElement"])}o.d(r,{s:function(){return t}})},77407:function(e,r,o){"use strict";o.d(r,{D:function(){return n}});var t=o(80322),n=t.createContext(void 0)},5817:function(e,r,o){"use strict";o.d(r,{N:function(){return A}});var t=o(80322),n=o(16711),a=o(20403),i=o(94431),c=o(50453),l=o(41441),d=o(12281),u=o(32945),s=o(88516),g=0,v={reset:function(){l.n.getInstance().onReset((function(){return g++}))},getId:function(){return g},renderStyles:function(e,r){return(0,d.L)(Array.isArray(e)?e:[e],r)},renderFontFace:function(e,r){return(0,u.n)(e)},renderKeyframes:function(e){return(0,s.i)(e)}};var f=function(e){var r=new Map,o=new Set,n=function e(t){var n=t.currentTarget,a=n.__id__;r.delete(a),n.removeEventListener("unload",e),o.delete(a)};return function(l){void 0===l&&(l={});var d,u=l.theme,s=(0,a.ox)();s&&(s.__id__=s.__id__||(0,c.O)(),d=s.__id__,o.has(d)||(o.add(d),s.addEventListener("unload",n)));var g=(0,i.D)();u=u||g;var f=v.getId(),h=[d,f,u],p=function(e,r){var o,t,n,a=r[0],i=r[1],c=r[2];return null===(n=null===(t=null===(o=e.get(a))||void 0===o?void 0:o.get(i))||void 0===t?void 0:t.get(c))||void 0===n?void 0:n.classMap}(r,h);if((0,t.useEffect)((function(){return function(e,r){var o,t,n=r[0],a=r[1],i=r[2],c=null===(t=null===(o=e.get(n))||void 0===o?void 0:o.get(a))||void 0===t?void 0:t.get(i);c&&c.refCount++}(r,[d,f,u]),function(){return function(e,r){var o,t,n,a,i,c,l,d,u=r[0],s=r[1],g=r[2],v=null===(t=null===(o=e.get(u))||void 0===o?void 0:o.get(s))||void 0===t?void 0:t.get(g);v&&(v.refCount--,0===v.refCount&&(null===(a=null===(n=e.get(u))||void 0===n?void 0:n.get(s))||void 0===a||a.delete(g),0===(null===(c=null===(i=e.get(u))||void 0===i?void 0:i.get(s))||void 0===c?void 0:c.size)&&(null===(l=e.get(u))||void 0===l||l.delete(s),0===(null===(d=e.get(u))||void 0===d?void 0:d.size)&&e.delete(u))))}(r,[d,f,u])}}),[d,f,u]),!p){var m=function(e){return"function"===typeof e}(e)?e(u):e;p=v.renderStyles(m,{targetWindow:s,rtl:!!u.rtl}),function(e,r,o){var t,n,a=r[0],i=r[1],c=r[2],l=null!==(t=e.get(a))&&void 0!==t?t:new Map;e.set(a,l);var d=null!==(n=l.get(i))&&void 0!==n?n:new Map;l.set(i,d),d.set(c,{classMap:o,refCount:0})}(r,h,p)}return p}}((function(e){var r=e.semanticColors,o=e.fonts;return{body:[{color:r.bodyText,background:r.bodyBackground,fontFamily:o.medium.fontFamily,fontWeight:o.medium.fontWeight,fontSize:o.medium.fontSize,MozOsxFontSmoothing:o.medium.MozOsxFontSmoothing,WebkitFontSmoothing:o.medium.WebkitFontSmoothing}]}}));function h(e){var r=f(e),o=e.className,i=e.applyTo;!function(e,r){var o,n="body"===e.applyTo,i=null===(o=(0,a.ZY)())||void 0===o?void 0:o.body;t.useEffect((function(){if(n&&i){for(var e=0,o=r;e<o.length;e++){var t=o[e];t&&i.classList.add(t)}return function(){if(n&&i)for(var e=0,o=r;e<o.length;e++){var t=o[e];t&&i.classList.remove(t)}}}}),[n,i,r])}(e,[r.root,r.body]),e.className=(0,n.A)(o,r.root,"element"===i&&r.body)}var p=o(84867),m=o(35141),b=o(5141),k=o(77933),B=o(55924),y=o(77407),S=function(e){var r=e.customizerContext,o=e.ref,n=e.theme,a=e.as||"div",i="string"===typeof e.as?(0,m._)(e.as,e):e.as===t.Fragment?{children:e.children}:(0,b.cJ)(e,["as"]);return t.createElement(y.D.Provider,{value:n},t.createElement(k.z.Provider,{value:r},t.createElement(B.N,{providerRef:o},t.createElement(a,(0,p.__assign)({},i)))))},P=o(94401),C=new Map,x=function(e){var r=e.theme,o=(0,i.D)(),n=e.theme=t.useMemo((function(){var e=(0,P.z)(o,r);return e.id=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];for(var o=[],t=0,n=e;t<n.length;t++){var a=n[t];if(a){var i=a.id||C.get(a);i||(i=(0,c.O)(""),C.set(a,i)),o.push(i)}}return o.join("-")}(o,r),e}),[o,r]);e.customizerContext=t.useMemo((function(){return{customizations:{inCustomizerContext:!0,settings:{theme:n},scopedSettings:n.components||{}}}}),[n]),e.theme.rtl!==o.rtl&&(e.dir=e.theme.rtl?"rtl":"ltr")},F=o(48038),N=o(51667),A=t.forwardRef((function(e,r){var o=function(e,r){var o=(0,F.N)(r,e);return x(o),{state:o,render:S}}(e,{ref:(0,N.a)(r,t.useRef(null)),as:"div",applyTo:"element"}),n=o.render,a=o.state;return h(a),n(a)}));A.displayName="ThemeProvider"},94431:function(e,r,o){"use strict";o.d(r,{D:function(){return c}});var t=o(80322),n=o(87022),a=o(6939),i=o(77407);var c=function(){var e=(0,t.useContext)(i.D),r=(0,n.m)(["theme"]).theme;return e||r||(0,a.a)({})}},80198:function(e,r,o){"use strict";o.d(r,{a:function(){return N}});var t,n={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)"}(t||(t={}));var a={elevation4:t.depth4,elevation8:t.depth8,elevation16:t.depth16,elevation64:t.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},i=o(21963),c=o(10709),l=o(53199);var d=o(56956),u="'Segoe UI', '"+d.Dn.WestEuropean+"'",s={ar:d.bi.Arabic,bg:d.bi.Cyrillic,cs:d.bi.EastEuropean,el:d.bi.Greek,et:d.bi.EastEuropean,he:d.bi.Hebrew,hi:d.bi.Hindi,hr:d.bi.EastEuropean,hu:d.bi.EastEuropean,ja:d.bi.Japanese,kk:d.bi.EastEuropean,ko:d.bi.Korean,lt:d.bi.EastEuropean,lv:d.bi.EastEuropean,pl:d.bi.EastEuropean,ru:d.bi.Cyrillic,sk:d.bi.EastEuropean,"sr-latn":d.bi.EastEuropean,th:d.bi.Thai,tr:d.bi.EastEuropean,uk:d.bi.Cyrillic,vi:d.bi.Vietnamese,"zh-hans":d.bi.ChineseSimplified,"zh-hant":d.bi.ChineseTraditional,hy:d.bi.Armenian,ka:d.bi.Georgian};function g(e,r,o){return{fontFamily:o,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:r}}function v(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}var f,h=void 0;try{h=window}catch(A){}function p(e){if(v()&&"undefined"!==typeof h){var r=e;return r&&r.ownerDocument&&r.ownerDocument.defaultView?r.ownerDocument.defaultView:h}}var m="language";var b=function(e){var r=function(e){for(var r in s)if(s.hasOwnProperty(r)&&e&&0===r.indexOf(e))return s[r];return u}(e)+", 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif";return{tiny:g(d.s.mini,d.BO.regular,r),xSmall:g(d.s.xSmall,d.BO.regular,r),small:g(d.s.small,d.BO.regular,r),smallPlus:g(d.s.smallPlus,d.BO.regular,r),medium:g(d.s.medium,d.BO.regular,r),mediumPlus:g(d.s.mediumPlus,d.BO.regular,r),large:g(d.s.large,d.BO.regular,r),xLarge:g(d.s.xLarge,d.BO.semibold,r),xLargePlus:g(d.s.xLargePlus,d.BO.semibold,r),xxLarge:g(d.s.xxLarge,d.BO.semibold,r),xxLargePlus:g(d.s.xxLargePlus,d.BO.semibold,r),superLarge:g(d.s.superLarge,d.BO.semibold,r),mega:g(d.s.mega,d.BO.semibold,r)}}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===f){var r=function(e){if(v()&&"undefined"!==typeof document){var r=e;return r&&r.ownerDocument?r.ownerDocument:document}}(),o="localStorage"===e?function(e){var r=null;try{var o=p();r=o?o.localStorage.getItem(e):null}catch(A){}return r}(m):"sessionStorage"===e?function(e){var r=null;try{var o=p();r=o?o.sessionStorage.getItem(e):null}catch(A){}return r}(m):void 0;o&&(f=o),void 0===f&&r&&(f=r.documentElement.getAttribute("lang")),void 0===f&&(f="en")}return f}());function k(e,r,o,t){!function(e){var r=c.n.getInstance(),o=(0,l.bz)((0,i.Iy)(),e);if(!r.classNameFromKey(o)){var t=r.getClassName();r.insertRule("@font-face{"+o+"}",!0),r.cacheClassName(t,o,[],["font-face",o])}}({fontFamily:e="'"+e+"'",src:(void 0!==t?"local('"+t+"'),":"")+"url('"+r+".woff2') format('woff2'),url('"+r+".woff') format('woff')",fontWeight:o,fontStyle:"normal",fontDisplay:"swap"})}function B(e,r,o,t,n){void 0===t&&(t="segoeui");var a=e+"/"+o+"/"+t;k(r,a+"-light",d.BO.light,n&&n+" Light"),k(r,a+"-semilight",d.BO.semilight,n&&n+" SemiLight"),k(r,a+"-regular",d.BO.regular,n),k(r,a+"-semibold",d.BO.semibold,n&&n+" SemiBold"),k(r,a+"-bold",d.BO.bold,n&&n+" Bold")}function y(e){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];for(var t=0,n=r;t<n.length;t++){var a=n[t];S(e||{},a)}return e}function S(e,r,o){for(var t in void 0===o&&(o=[]),o.push(r),r)if(r.hasOwnProperty(t)&&"__proto__"!==t&&"constructor"!==t&&"prototype"!==t){var n=r[t];if("object"!==typeof n||null===n||Array.isArray(n))e[t]=n;else{var a=o.indexOf(n)>-1;e[t]=a?n:S(e[t]||{},n,o)}}return o.pop(),e}!function(e){if(e){var r=e+"/fonts";B(r,d.Dn.Thai,"leelawadeeui-thai","leelawadeeui"),B(r,d.Dn.Arabic,"segoeui-arabic"),B(r,d.Dn.Cyrillic,"segoeui-cyrillic"),B(r,d.Dn.EastEuropean,"segoeui-easteuropean"),B(r,d.Dn.Greek,"segoeui-greek"),B(r,d.Dn.Hebrew,"segoeui-hebrew"),B(r,d.Dn.Vietnamese,"segoeui-vietnamese"),B(r,d.Dn.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),B(r,d.bi.Selawik,"selawik","selawik"),B(r,d.Dn.Armenian,"segoeui-armenian"),B(r,d.Dn.Georgian,"segoeui-georgian"),k("Leelawadee UI Web",r+"/leelawadeeui-thai/leelawadeeui-semilight",d.BO.light),k("Leelawadee UI Web",r+"/leelawadeeui-thai/leelawadeeui-bold",d.BO.semibold)}}(function(){var e,r,o=null===(e=p())||void 0===e?void 0:e.FabricConfig;return null!==(r=null===o||void 0===o?void 0:o.fontBaseUrl)&&void 0!==r?r:"https://static2.sharepointonline.com/files/fabric/assets"}());var P=o(84867);function C(e,r,o,t,n){return void 0===n&&(n=!1),function(e,r){var o="";!0===r&&(o=" /* @deprecated */");return e.listTextColor=e.listText+o,e.menuItemBackgroundChecked+=o,e.warningHighlight+=o,e.warningText=e.messageText+o,e.successText+=o,e}(x(e,r,(0,P.__assign)({primaryButtonBorder:"transparent",errorText:t?"#F1707B":"#a4262c",messageText:t?"#F3F2F1":"#323130",messageLink:t?"#6CB8F6":"#005A9E",messageLinkHovered:t?"#82C7FF":"#004578",infoIcon:t?"#C8C6C4":"#605e5c",errorIcon:t?"#F1707B":"#A80000",blockingIcon:t?"#442726":"#FDE7E9",warningIcon:t?"#C8C6C4":"#797775",severeWarningIcon:t?"#FCE100":"#D83B01",successIcon:t?"#92C353":"#107C10",infoBackground:t?"#323130":"#f3f2f1",errorBackground:t?"#442726":"#FDE7E9",blockingBackground:t?"#442726":"#FDE7E9",warningBackground:t?"#433519":"#FFF4CE",severeWarningBackground:t?"#4F2A0F":"#FED9CC",successBackground:t?"#393D1B":"#DFF6DD",warningHighlight:t?"#fff100":"#ffb900",successText:t?"#92c353":"#107C10"},o),t),n)}function x(e,r,o,t,n){void 0===n&&(n=!1);var a={},i=e||{},c=i.white,l=i.black,d=i.themePrimary,u=i.themeDark,s=i.themeDarker,g=i.themeDarkAlt,v=i.themeLighter,f=i.neutralLight,h=i.neutralLighter,p=i.neutralDark,m=i.neutralQuaternary,b=i.neutralQuaternaryAlt,k=i.neutralPrimary,B=i.neutralSecondary,y=i.neutralSecondaryAlt,S=i.neutralTertiary,C=i.neutralTertiaryAlt,x=i.neutralLighterAlt,F=i.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),d&&(a.link=d,a.primaryButtonBackground=d,a.inputBackgroundChecked=d,a.inputIcon=d,a.inputFocusBorderAlt=d,a.menuIcon=d,a.menuHeader=d,a.accentButtonBackground=d),u&&(a.primaryButtonBackgroundPressed=u,a.inputBackgroundCheckedHovered=u,a.inputIconHovered=u),s&&(a.linkHovered=s),g&&(a.primaryButtonBackgroundHovered=g),v&&(a.inputPlaceholderBackgroundChecked=v),f&&(a.bodyBackgroundChecked=f,a.bodyFrameDivider=f,a.bodyDivider=f,a.variantBorder=f,a.buttonBackgroundCheckedHovered=f,a.buttonBackgroundPressed=f,a.listItemBackgroundChecked=f,a.listHeaderBackgroundPressed=f,a.menuItemBackgroundPressed=f,a.menuItemBackgroundChecked=f),h&&(a.bodyBackgroundHovered=h,a.buttonBackgroundHovered=h,a.buttonBackgroundDisabled=h,a.buttonBorderDisabled=h,a.primaryButtonBackgroundDisabled=h,a.disabledBackground=h,a.listItemBackgroundHovered=h,a.listHeaderBackgroundHovered=h,a.menuItemBackgroundHovered=h),m&&(a.primaryButtonTextDisabled=m,a.disabledSubtext=m),b&&(a.listItemBackgroundCheckedHovered=b),S&&(a.disabledBodyText=S,a.variantBorderHovered=(null===o||void 0===o?void 0:o.variantBorderHovered)||S,a.buttonTextDisabled=S,a.inputIconDisabled=S,a.disabledText=S),k&&(a.bodyText=k,a.actionLink=k,a.buttonText=k,a.inputBorderHovered=k,a.inputText=k,a.listText=k,a.menuItemText=k),x&&(a.bodyStandoutBackground=x,a.defaultStateBackground=x),p&&(a.actionLinkHovered=p,a.buttonTextHovered=p,a.buttonTextChecked=p,a.buttonTextPressed=p,a.inputTextHovered=p,a.menuItemTextHovered=p),B&&(a.bodySubtext=B,a.focusBorder=B,a.inputBorder=B,a.smallInputBorder=B,a.inputPlaceholderText=B),y&&(a.buttonBorder=y),C&&(a.disabledBodySubtext=C,a.disabledBorder=C,a.buttonBackgroundChecked=C,a.menuDivider=C),F&&(a.accentButtonBackground=F),(null===r||void 0===r?void 0:r.elevation4)&&(a.cardShadow=r.elevation4),!t&&(null===r||void 0===r?void 0:r.elevation8)?a.cardShadowHovered=r.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=(0,P.__assign)((0,P.__assign)({},a),o)}var F={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function N(e,r){void 0===e&&(e={}),void 0===r&&(r=!1);var o=!!e.isInverted;return function(e,r){var o,t,n;void 0===r&&(r={});var a=y({},e,r,{semanticColors:x(r.palette,r.effects,r.semanticColors,void 0===r.isInverted?e.isInverted:r.isInverted)});if((null===(o=r.palette)||void 0===o?void 0:o.themePrimary)&&!(null===(t=r.palette)||void 0===t?void 0:t.accent)&&(a.palette.accent=r.palette.themePrimary),r.defaultFontStyle)for(var i=0,c=Object.keys(a.fonts);i<c.length;i++){var l=c[i];a.fonts[l]=y(a.fonts[l],r.defaultFontStyle,null===(n=null===r||void 0===r?void 0:r.fonts)||void 0===n?void 0:n[l])}return a}({palette:n,effects:a,fonts:b,spacing:F,isInverted:o,disableGlobalClassNames:!1,semanticColors:C(n,a,void 0,o,r),rtl:void 0},e)}},56956:function(e,r,o){"use strict";var t,n,a,i,c;o.d(r,{BO:function(){return i},Dn:function(){return t},bi:function(){return n},fF:function(){return c},s:function(){return a}}),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)"}(t||(t={})),function(e){e.Arabic="'"+t.Arabic+"'",e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'"+t.Cyrillic+"'",e.EastEuropean="'"+t.EastEuropean+"'",e.Greek="'"+t.Greek+"'",e.Hebrew="'"+t.Hebrew+"'",e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'"+t.Selawik+"'",e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'"+t.Vietnamese+"'",e.WestEuropean="'"+t.WestEuropean+"'",e.Armenian="'"+t.Armenian+"'",e.Georgian="'"+t.Georgian+"'"}(n||(n={})),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"}(a||(a={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(i||(i={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(c||(c={}))},21963:function(e,r,o){"use strict";function t(){return void 0===n&&(n="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),n}var n;function a(){return{rtl:t()}}o.d(r,{Iy:function(){return a}}),n=t()},10709:function(e,r,o){"use strict";o.d(r,{n:function(){return u}});var t,n=o(84867),a=0,i=1,c=2,l="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),d={};try{d=window||{}}catch(s){}var u=function(){function e(e,r){var o,t,c,l,d,u;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,n.__assign)({injectionMode:"undefined"===typeof document?a:i,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(o=null===r||void 0===r?void 0:r.classNameToArgs)&&void 0!==o?o:this._classNameToArgs,this._counter=null!==(t=null===r||void 0===r?void 0:r.counter)&&void 0!==t?t:this._counter,this._keyToClassName=null!==(l=null!==(c=this._config.classNameCache)&&void 0!==c?c:null===r||void 0===r?void 0:r.keyToClassName)&&void 0!==l?l:this._keyToClassName,this._preservedRules=null!==(d=null===r||void 0===r?void 0:r.preservedRules)&&void 0!==d?d:this._preservedRules,this._rules=null!==(u=null===r||void 0===r?void 0:r.rules)&&void 0!==u?u:this._rules}return e.getInstance=function(){if(!(t=d.__stylesheet__)||t._lastStyleElement&&t._lastStyleElement.ownerDocument!==document){var r=(null===d||void 0===d?void 0:d.FabricConfig)||{},o=new e(r.mergeStyles,r.serializedStylesheet);t=o,d.__stylesheet__=o}return t},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=(0,n.__assign)((0,n.__assign)({},this._config),e)},e.prototype.onReset=function(e){var r=this;return this._onResetCallbacks.push(e),function(){r._onResetCallbacks=r._onResetCallbacks.filter((function(r){return r!==e}))}},e.prototype.onInsertRule=function(e){var r=this;return this._onInsertRuleCallbacks.push(e),function(){r._onInsertRuleCallbacks=r._onInsertRuleCallbacks.filter((function(r){return r!==e}))}},e.prototype.getClassName=function(e){var r=this._config.namespace;return(r?r+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,r,o,t){this._keyToClassName[r]=e,this._classNameToArgs[e]={args:o,rules:t}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var r=this._classNameToArgs[e];return r&&r.args},e.prototype.insertedRulesFromClassName=function(e){var r=this._classNameToArgs[e];return r&&r.rules},e.prototype.insertRule=function(e,r){var o=this._config.injectionMode,t=o!==a?this._getStyleElement():void 0;if(r&&this._preservedRules.push(e),t)switch(o){case i:var n=t.sheet;try{n.insertRule(e,n.cssRules.length)}catch(l){}break;case c:t.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),l||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,r=document.createElement("style"),o=null;r.setAttribute("data-merge-styles","true");var t=this._config.cspSettings;if(t&&t.nonce&&r.setAttribute("nonce",t.nonce),this._lastStyleElement)o=this._lastStyleElement.nextElementSibling;else{var n=this._findPlaceholderStyleTag();o=n?n.nextElementSibling:e.childNodes[0]}return e.insertBefore(r,e.contains(o)?o:null),this._lastStyleElement=r,r},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}()},53199:function(e,r,o){"use strict";o.d(r,{bz:function(){return p}});var t,n={};function a(e,r){var o=e[r];"-"!==o.charAt(0)&&(e[r]=n[o]=n[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase())}var i={"user-select":1};function c(e,r){var o=function(){var e;if(!t){var r="undefined"!==typeof document?document:void 0,o="undefined"!==typeof navigator?navigator:void 0,n=null===(e=null===o||void 0===o?void 0:o.userAgent)||void 0===e?void 0:e.toLowerCase();t=r?{isWebkit:!(!r||!("WebkitAppearance"in r.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!o||!/rv:11.0/i.test(o.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return t}(),n=e[r];if(i[n]){var a=e[r+1];i[n]&&(o.isWebkit&&e.push("-webkit-"+n,a),o.isMoz&&e.push("-moz-"+n,a),o.isMs&&e.push("-ms-"+n,a),o.isOpera&&e.push("-o-"+n,a))}}var l,d=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function u(e,r){var o=e[r],t=e[r+1];if("number"===typeof t){var n=d.indexOf(o)>-1,a=o.indexOf("--")>-1,i=n||a?"":"px";e[r+1]=""+t+i}}var s="left",g="right",v=((l={}).left=g,l.right=s,l),f={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function h(e,r,o){if(e.rtl){var t=r[o];if(!t)return;var n=r[o+1];if("string"===typeof n&&n.indexOf("@noflip")>=0)r[o+1]=n.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(t.indexOf(s)>=0)r[o]=t.replace(s,g);else if(t.indexOf(g)>=0)r[o]=t.replace(g,s);else if(String(n).indexOf(s)>=0)r[o+1]=n.replace(s,g);else if(String(n).indexOf(g)>=0)r[o+1]=n.replace(g,s);else if(v[t])r[o]=v[t];else if(f[n])r[o+1]=f[n];else switch(t){case"margin":case"padding":r[o+1]=function(e){if("string"===typeof e){var r=e.split(" ");if(4===r.length)return r[0]+" "+r[3]+" "+r[2]+" "+r[1]}return e}(n);break;case"box-shadow":r[o+1]=function(e,r){var o=e.split(" "),t=parseInt(o[r],10);return o[0]=o[0].replace(String(t),String(-1*t)),o.join(" ")}(n,0)}}}function p(e,r){if(!r)return"";var o=[];for(var t in r)r.hasOwnProperty(t)&&"displayName"!==t&&void 0!==r[t]&&o.push(t,r[t]);for(var n=0;n<o.length;n+=2)a(o,n),u(o,n),h(e,o,n),c(o,n);for(n=1;n<o.length;n+=4)o.splice(n,1,":",o[n],";");return o.join("")}},36774:function(e,r,o){"use strict";o.d(r,{V:function(){return t}});var t={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"}},49553:function(e,r,o){"use strict";o.d(r,{oZ:function(){return t}});var t={10:"#061724",20:"#082338",30:"#0a2e4a",40:"#0c3b5e",50:"#0e4775",60:"#0f548c",70:"#115ea3",80:"#0f6cbd",90:"#2886de",100:"#479ef5",110:"#62abf5",120:"#77b7f7",130:"#96c6fa",140:"#b4d6fa",150:"#cfe4fa",160:"#ebf3fc"}},71916:function(e,r,o){"use strict";o.d(r,{Ul:function(){return i},cc:function(){return a},yd:function(){return n}});var t=o(55210),n={red:t.wv,green:t.wL,darkOrange:t.je,yellow:t.D9,berry:t.pT,lightGreen:t.EM,marigold:t.KK},a={darkRed:t.ik,cranberry:t.jF,pumpkin:t.Vv,peach:t.WB,gold:t.bK,brass:t.YA,brown:t.Xk,forest:t.CE,seafoam:t.$T,darkGreen:t.AV,lightTeal:t.JW,teal:t.$S,steel:t.s$,blue:t.z1,royalBlue:t.Os,cornflower:t.um,navy:t.Z,lavender:t.Us,purple:t.Zp,grape:t.QH,lilac:t.qn,pink:t.Vu,magenta:t.GC,plum:t.t1,beige:t.Zz,mink:t.QJ,platinum:t.X1,anchor:t.Y3},i={cranberry:t.jF,green:t.wL,orange:t.T_}},55210:function(e,r,o){"use strict";o.d(r,{$S:function(){return w},$T:function(){return C},AV:function(){return N},CE:function(){return P},D9:function(){return k},EM:function(){return x},GC:function(){return W},JW:function(){return A},KK:function(){return b},ON:function(){return d},Oh:function(){return t},Os:function(){return T},Q1:function(){return a},QH:function(){return E},QJ:function(){return V},Ql:function(){return u},T_:function(){return p},Us:function(){return H},Vu:function(){return z},Vv:function(){return h},WB:function(){return m},X1:function(){return j},Xk:function(){return S},Xv:function(){return l},Y3:function(){return K},YA:function(){return y},Z:function(){return D},Z1:function(){return c},Zp:function(){return I},Zz:function(){return U},bK:function(){return B},c8:function(){return n},ik:function(){return s},jF:function(){return g},je:function(){return f},pT:function(){return R},qn:function(){return M},s$:function(){return _},t1:function(){return G},ti:function(){return i},um:function(){return L},wL:function(){return F},wv:function(){return v},z1:function(){return O}});var t={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},n={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},a={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},i={5:"rgba(26, 26, 26, 0.05)",10:"rgba(26, 26, 26, 0.1)",20:"rgba(26, 26, 26, 0.2)",30:"rgba(26, 26, 26, 0.3)",40:"rgba(26, 26, 26, 0.4)",50:"rgba(26, 26, 26, 0.5)",60:"rgba(26, 26, 26, 0.6)",70:"rgba(26, 26, 26, 0.7)",80:"rgba(26, 26, 26, 0.8)",90:"rgba(26, 26, 26, 0.9)"},c={5:"rgba(31, 31, 31, 0.05)",10:"rgba(31, 31, 31, 0.1)",20:"rgba(31, 31, 31, 0.2)",30:"rgba(31, 31, 31, 0.3)",40:"rgba(31, 31, 31, 0.4)",50:"rgba(31, 31, 31, 0.5)",60:"rgba(31, 31, 31, 0.6)",70:"rgba(31, 31, 31, 0.7)",80:"rgba(31, 31, 31, 0.8)",90:"rgba(31, 31, 31, 0.9)"},l={5:"rgba(36, 36, 36, 0.05)",10:"rgba(36, 36, 36, 0.1)",20:"rgba(36, 36, 36, 0.2)",30:"rgba(36, 36, 36, 0.3)",40:"rgba(36, 36, 36, 0.4)",50:"rgba(36, 36, 36, 0.5)",60:"rgba(36, 36, 36, 0.6)",70:"rgba(36, 36, 36, 0.7)",80:"rgba(36, 36, 36, 0.8)",90:"rgba(36, 36, 36, 0.9)"},d="#ffffff",u="#000000",s={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},g={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},v={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},f={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},h={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},p={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},m={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},b={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},k={shade50:"#282400",shade40:"#4c4400",shade30:"#817400",shade20:"#c0ad00",shade10:"#e4cc00",primary:"#fde300",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},B={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},y={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},S={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},P={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},C={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},x={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},F={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},N={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},A={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},w={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},_={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},O={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},T={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},L={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},D={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},H={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},I={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},E={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},R={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},M={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},z={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},W={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},G={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},U={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},V={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},j={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},K={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"}},86518:function(e,r,o){"use strict";o.d(r,{L:function(){return t}});var t={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"}},80789:function(e,r,o){"use strict";o.d(r,{S:function(){return t}});var t={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"}},89602:function(e,r,o){"use strict";o.d(r,{GR:function(){return t},NM:function(){return a},aI:function(){return i},lm:function(){return n}});var t={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},n={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},a={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},i={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"}},67916:function(e,r,o){"use strict";o.d(r,{F:function(){return h},b:function(){return f}});var t="0",n="2px",a="4px",i="6px",c="8px",l="10px",d="12px",u="16px",s="20px",g="24px",v="32px",f={spacingHorizontalNone:t,spacingHorizontalXXS:n,spacingHorizontalXS:a,spacingHorizontalSNudge:i,spacingHorizontalS:c,spacingHorizontalMNudge:l,spacingHorizontalM:d,spacingHorizontalL:u,spacingHorizontalXL:s,spacingHorizontalXXL:g,spacingHorizontalXXXL:v},h={spacingVerticalNone:t,spacingVerticalXXS:n,spacingVerticalXS:a,spacingVerticalSNudge:i,spacingVerticalS:c,spacingVerticalMNudge:l,spacingVerticalM:d,spacingVerticalL:u,spacingVerticalXL:s,spacingVerticalXXL:g,spacingVerticalXXXL:v}},28179:function(e,r,o){"use strict";o.d(r,{k:function(){return t}});var t={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"}},76:function(e,r,o){"use strict";o.d(r,{TQ:function(){return t},dt:function(){return n}});var t=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],n=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"]},43825:function(e,r,o){"use strict";o.d(r,{s:function(){return t}});var t={success:"green",warning:"orange",danger:"cranberry"}},57389:function(e,r,o){"use strict";o.d(r,{C:function(){return a}});var t=o(807),n=o(49553),a=(0,t.W)(n.oZ)},82239:function(e,r,o){"use strict";o.d(r,{o:function(){return a}});var t=o(86314),n=o(49553),a=(0,t.a)(n.oZ)},76826:function(e,r,o){"use strict";o.d(r,{L:function(){return t}});var t={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackground3Static:"var(--colorBrandBackground3Static)",colorBrandBackground4Static:"var(--colorBrandBackground4Static)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralCardBackground:"var(--colorNeutralCardBackground)",colorNeutralCardBackgroundHover:"var(--colorNeutralCardBackgroundHover)",colorNeutralCardBackgroundPressed:"var(--colorNeutralCardBackgroundPressed)",colorNeutralCardBackgroundSelected:"var(--colorNeutralCardBackgroundSelected)",colorNeutralCardBackgroundDisabled:"var(--colorNeutralCardBackgroundDisabled)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerBackground3Hover:"var(--colorStatusDangerBackground3Hover)",colorStatusDangerBackground3Pressed:"var(--colorStatusDangerBackground3Pressed)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)",zIndexBackground:"var(--zIndexBackground, 0)",zIndexContent:"var(--zIndexContent, 1)",zIndexOverlay:"var(--zIndexOverlay, 1000)",zIndexPopup:"var(--zIndexPopup, 2000)",zIndexMessages:"var(--zIndexMessages, 3000)",zIndexFloating:"var(--zIndexFloating, 4000)",zIndexPriority:"var(--zIndexPriority, 5000)",zIndexDebug:"var(--zIndexDebug, 6000)"}},807:function(e,r,o){"use strict";o.d(r,{W:function(){return y}});var t=o(18188),n=o(61249),a=o(8778),i=o(71916),c=o(76),l=o(43825),d=c.TQ.reduce((function(e,r){var o,t=r.slice(0,1).toUpperCase()+r.slice(1),n=(o={},(0,a.A)(o,"colorPalette".concat(t,"Background1"),i.yd[r].shade40),(0,a.A)(o,"colorPalette".concat(t,"Background2"),i.yd[r].shade30),(0,a.A)(o,"colorPalette".concat(t,"Background3"),i.yd[r].primary),(0,a.A)(o,"colorPalette".concat(t,"Foreground1"),i.yd[r].tint30),(0,a.A)(o,"colorPalette".concat(t,"Foreground2"),i.yd[r].tint40),(0,a.A)(o,"colorPalette".concat(t,"Foreground3"),i.yd[r].tint20),(0,a.A)(o,"colorPalette".concat(t,"BorderActive"),i.yd[r].tint30),(0,a.A)(o,"colorPalette".concat(t,"Border1"),i.yd[r].primary),(0,a.A)(o,"colorPalette".concat(t,"Border2"),i.yd[r].tint20),o);return Object.assign(e,n)}),{});d.colorPaletteRedForeground3=i.yd.red.tint30,d.colorPaletteRedBorder2=i.yd.red.tint30,d.colorPaletteGreenForeground3=i.yd.green.tint40,d.colorPaletteGreenBorder2=i.yd.green.tint40,d.colorPaletteDarkOrangeForeground3=i.yd.darkOrange.tint30,d.colorPaletteDarkOrangeBorder2=i.yd.darkOrange.tint30,d.colorPaletteRedForegroundInverted=i.yd.red.primary,d.colorPaletteGreenForegroundInverted=i.yd.green.primary,d.colorPaletteYellowForegroundInverted=i.yd.yellow.shade30;var u=c.dt.reduce((function(e,r){var o,t=r.slice(0,1).toUpperCase()+r.slice(1),n=(o={},(0,a.A)(o,"colorPalette".concat(t,"Background2"),i.cc[r].shade30),(0,a.A)(o,"colorPalette".concat(t,"Foreground2"),i.cc[r].tint40),(0,a.A)(o,"colorPalette".concat(t,"BorderActive"),i.cc[r].tint30),o);return Object.assign(e,n)}),{});u.colorPaletteDarkRedBackground2=i.cc.darkRed.shade20,u.colorPalettePlumBackground2=i.cc.plum.shade20;var s=(0,t.A)((0,t.A)({},d),u),g=Object.entries(l.s).reduce((function(e,r){var o,t=(0,n.A)(r,2),c=t[0],l=t[1],d=c.slice(0,1).toUpperCase()+c.slice(1),u=(o={},(0,a.A)(o,"colorStatus".concat(d,"Background1"),i.Ul[l].shade40),(0,a.A)(o,"colorStatus".concat(d,"Background2"),i.Ul[l].shade30),(0,a.A)(o,"colorStatus".concat(d,"Background3"),i.Ul[l].primary),(0,a.A)(o,"colorStatus".concat(d,"Foreground1"),i.Ul[l].tint30),(0,a.A)(o,"colorStatus".concat(d,"Foreground2"),i.Ul[l].tint40),(0,a.A)(o,"colorStatus".concat(d,"Foreground3"),i.Ul[l].tint20),(0,a.A)(o,"colorStatus".concat(d,"BorderActive"),i.Ul[l].tint30),(0,a.A)(o,"colorStatus".concat(d,"ForegroundInverted"),i.Ul[l].shade10),(0,a.A)(o,"colorStatus".concat(d,"Border1"),i.Ul[l].primary),(0,a.A)(o,"colorStatus".concat(d,"Border2"),i.Ul[l].tint20),o);return Object.assign(e,u)}),{});g.colorStatusDangerBackground3Hover=i.Ul[l.s.danger].shade10,g.colorStatusDangerBackground3Pressed=i.Ul[l.s.danger].shade20,g.colorStatusDangerForeground3=i.Ul[l.s.danger].tint40,g.colorStatusDangerBorder2=i.Ul[l.s.danger].tint30,g.colorStatusSuccessForeground3=i.Ul[l.s.success].tint40,g.colorStatusSuccessBorder2=i.Ul[l.s.success].tint40,g.colorStatusWarningForegroundInverted=i.Ul[l.s.warning].shade20;var v=o(55210),f=o(36774),h=o(89602),p=o(28179),m=o(52085),b=o(80789),k=o(86518),B=o(67916),y=function(e){var r=function(e){return{colorNeutralForeground1:v.ON,colorNeutralForeground1Hover:v.ON,colorNeutralForeground1Pressed:v.ON,colorNeutralForeground1Selected:v.ON,colorNeutralForeground2:v.Oh[84],colorNeutralForeground2Hover:v.ON,colorNeutralForeground2Pressed:v.ON,colorNeutralForeground2Selected:v.ON,colorNeutralForeground2BrandHover:e[100],colorNeutralForeground2BrandPressed:e[90],colorNeutralForeground2BrandSelected:e[100],colorNeutralForeground3:v.Oh[68],colorNeutralForeground3Hover:v.Oh[84],colorNeutralForeground3Pressed:v.Oh[84],colorNeutralForeground3Selected:v.Oh[84],colorNeutralForeground3BrandHover:e[100],colorNeutralForeground3BrandPressed:e[90],colorNeutralForeground3BrandSelected:e[100],colorNeutralForeground4:v.Oh[60],colorNeutralForegroundDisabled:v.Oh[36],colorNeutralForegroundInvertedDisabled:v.c8[40],colorBrandForegroundLink:e[100],colorBrandForegroundLinkHover:e[110],colorBrandForegroundLinkPressed:e[90],colorBrandForegroundLinkSelected:e[100],colorNeutralForeground2Link:v.Oh[84],colorNeutralForeground2LinkHover:v.ON,colorNeutralForeground2LinkPressed:v.ON,colorNeutralForeground2LinkSelected:v.ON,colorCompoundBrandForeground1:e[100],colorCompoundBrandForeground1Hover:e[110],colorCompoundBrandForeground1Pressed:e[90],colorBrandForeground1:e[100],colorBrandForeground2:e[110],colorBrandForeground2Hover:e[130],colorBrandForeground2Pressed:e[160],colorNeutralForeground1Static:v.Oh[14],colorNeutralForegroundStaticInverted:v.ON,colorNeutralForegroundInverted:v.Oh[14],colorNeutralForegroundInvertedHover:v.Oh[14],colorNeutralForegroundInvertedPressed:v.Oh[14],colorNeutralForegroundInvertedSelected:v.Oh[14],colorNeutralForegroundInverted2:v.Oh[14],colorNeutralForegroundOnBrand:v.ON,colorNeutralForegroundInvertedLink:v.ON,colorNeutralForegroundInvertedLinkHover:v.ON,colorNeutralForegroundInvertedLinkPressed:v.ON,colorNeutralForegroundInvertedLinkSelected:v.ON,colorBrandForegroundInverted:e[80],colorBrandForegroundInvertedHover:e[70],colorBrandForegroundInvertedPressed:e[60],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:v.Oh[16],colorNeutralBackground1Hover:v.Oh[24],colorNeutralBackground1Pressed:v.Oh[12],colorNeutralBackground1Selected:v.Oh[22],colorNeutralBackground2:v.Oh[12],colorNeutralBackground2Hover:v.Oh[20],colorNeutralBackground2Pressed:v.Oh[8],colorNeutralBackground2Selected:v.Oh[18],colorNeutralBackground3:v.Oh[8],colorNeutralBackground3Hover:v.Oh[16],colorNeutralBackground3Pressed:v.Oh[4],colorNeutralBackground3Selected:v.Oh[14],colorNeutralBackground4:v.Oh[4],colorNeutralBackground4Hover:v.Oh[12],colorNeutralBackground4Pressed:v.Ql,colorNeutralBackground4Selected:v.Oh[10],colorNeutralBackground5:v.Ql,colorNeutralBackground5Hover:v.Oh[8],colorNeutralBackground5Pressed:v.Oh[2],colorNeutralBackground5Selected:v.Oh[6],colorNeutralBackground6:v.Oh[20],colorNeutralBackgroundInverted:v.ON,colorNeutralBackgroundStatic:v.Oh[24],colorNeutralBackgroundAlpha:v.ti[50],colorNeutralBackgroundAlpha2:v.Z1[70],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:v.Oh[22],colorSubtleBackgroundPressed:v.Oh[18],colorSubtleBackgroundSelected:v.Oh[20],colorSubtleBackgroundLightAlphaHover:v.Xv[80],colorSubtleBackgroundLightAlphaPressed:v.Xv[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:v.Q1[10],colorSubtleBackgroundInvertedPressed:v.Q1[30],colorSubtleBackgroundInvertedSelected:v.Q1[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:v.Oh[8],colorNeutralBackgroundInvertedDisabled:v.c8[10],colorNeutralStencil1:v.Oh[34],colorNeutralStencil2:v.Oh[20],colorNeutralStencil1Alpha:v.c8[10],colorNeutralStencil2Alpha:v.c8[5],colorBackgroundOverlay:v.Q1[50],colorScrollbarOverlay:v.c8[60],colorBrandBackground:e[70],colorBrandBackgroundHover:e[80],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[100],colorCompoundBrandBackgroundHover:e[110],colorCompoundBrandBackgroundPressed:e[90],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[20],colorBrandBackground2Hover:e[40],colorBrandBackground2Pressed:e[10],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:v.ON,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:v.Oh[20],colorNeutralCardBackgroundHover:v.Oh[24],colorNeutralCardBackgroundPressed:v.Oh[18],colorNeutralCardBackgroundSelected:v.Oh[22],colorNeutralCardBackgroundDisabled:v.Oh[8],colorNeutralStrokeAccessible:v.Oh[68],colorNeutralStrokeAccessibleHover:v.Oh[74],colorNeutralStrokeAccessiblePressed:v.Oh[70],colorNeutralStrokeAccessibleSelected:e[100],colorNeutralStroke1:v.Oh[40],colorNeutralStroke1Hover:v.Oh[46],colorNeutralStroke1Pressed:v.Oh[42],colorNeutralStroke1Selected:v.Oh[44],colorNeutralStroke2:v.Oh[32],colorNeutralStroke3:v.Oh[24],colorNeutralStrokeSubtle:v.Oh[4],colorNeutralStrokeOnBrand:v.Oh[16],colorNeutralStrokeOnBrand2:v.ON,colorNeutralStrokeOnBrand2Hover:v.ON,colorNeutralStrokeOnBrand2Pressed:v.ON,colorNeutralStrokeOnBrand2Selected:v.ON,colorBrandStroke1:e[100],colorBrandStroke2:e[50],colorBrandStroke2Hover:e[50],colorBrandStroke2Pressed:e[30],colorBrandStroke2Contrast:e[50],colorCompoundBrandStroke:e[100],colorCompoundBrandStrokeHover:e[110],colorCompoundBrandStrokePressed:e[90],colorNeutralStrokeDisabled:v.Oh[26],colorNeutralStrokeInvertedDisabled:v.c8[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:v.c8[10],colorNeutralStrokeAlpha2:v.c8[20],colorStrokeFocus1:v.Ql,colorStrokeFocus2:v.ON,colorNeutralShadowAmbient:"rgba(0,0,0,0.24)",colorNeutralShadowKey:"rgba(0,0,0,0.28)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.12)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.40)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.48)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}}(e);return(0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)({},f.V),h.GR),h.lm),h.aI),h.NM),p.k),B.b),B.F),b.S),k.L),r),s),g),(0,m.t)(r.colorNeutralShadowAmbient,r.colorNeutralShadowKey)),(0,m.t)(r.colorBrandShadowAmbient,r.colorBrandShadowKey,"Brand"))}},86314:function(e,r,o){"use strict";o.d(r,{a:function(){return y}});var t=o(18188),n=o(61249),a=o(8778),i=o(71916),c=o(76),l=o(43825),d=c.TQ.reduce((function(e,r){var o,t=r.slice(0,1).toUpperCase()+r.slice(1),n=(o={},(0,a.A)(o,"colorPalette".concat(t,"Background1"),i.yd[r].tint60),(0,a.A)(o,"colorPalette".concat(t,"Background2"),i.yd[r].tint40),(0,a.A)(o,"colorPalette".concat(t,"Background3"),i.yd[r].primary),(0,a.A)(o,"colorPalette".concat(t,"Foreground1"),i.yd[r].shade10),(0,a.A)(o,"colorPalette".concat(t,"Foreground2"),i.yd[r].shade30),(0,a.A)(o,"colorPalette".concat(t,"Foreground3"),i.yd[r].primary),(0,a.A)(o,"colorPalette".concat(t,"BorderActive"),i.yd[r].primary),(0,a.A)(o,"colorPalette".concat(t,"Border1"),i.yd[r].tint40),(0,a.A)(o,"colorPalette".concat(t,"Border2"),i.yd[r].primary),o);return Object.assign(e,n)}),{});d.colorPaletteYellowForeground1=i.yd.yellow.shade30,d.colorPaletteRedForegroundInverted=i.yd.red.tint20,d.colorPaletteGreenForegroundInverted=i.yd.green.tint20,d.colorPaletteYellowForegroundInverted=i.yd.yellow.tint40;var u=c.dt.reduce((function(e,r){var o,t=r.slice(0,1).toUpperCase()+r.slice(1),n=(o={},(0,a.A)(o,"colorPalette".concat(t,"Background2"),i.cc[r].tint40),(0,a.A)(o,"colorPalette".concat(t,"Foreground2"),i.cc[r].shade30),(0,a.A)(o,"colorPalette".concat(t,"BorderActive"),i.cc[r].primary),o);return Object.assign(e,n)}),{}),s=(0,t.A)((0,t.A)({},d),u),g=Object.entries(l.s).reduce((function(e,r){var o,t=(0,n.A)(r,2),c=t[0],l=t[1],d=c.slice(0,1).toUpperCase()+c.slice(1),u=(o={},(0,a.A)(o,"colorStatus".concat(d,"Background1"),i.Ul[l].tint60),(0,a.A)(o,"colorStatus".concat(d,"Background2"),i.Ul[l].tint40),(0,a.A)(o,"colorStatus".concat(d,"Background3"),i.Ul[l].primary),(0,a.A)(o,"colorStatus".concat(d,"Foreground1"),i.Ul[l].shade10),(0,a.A)(o,"colorStatus".concat(d,"Foreground2"),i.Ul[l].shade30),(0,a.A)(o,"colorStatus".concat(d,"Foreground3"),i.Ul[l].primary),(0,a.A)(o,"colorStatus".concat(d,"ForegroundInverted"),i.Ul[l].tint30),(0,a.A)(o,"colorStatus".concat(d,"BorderActive"),i.Ul[l].primary),(0,a.A)(o,"colorStatus".concat(d,"Border1"),i.Ul[l].tint40),(0,a.A)(o,"colorStatus".concat(d,"Border2"),i.Ul[l].primary),o);return Object.assign(e,u)}),{});g.colorStatusDangerBackground3Hover=i.Ul[l.s.danger].shade10,g.colorStatusDangerBackground3Pressed=i.Ul[l.s.danger].shade20,g.colorStatusWarningForeground1=i.Ul[l.s.warning].shade20,g.colorStatusWarningForeground3=i.Ul[l.s.warning].shade20,g.colorStatusWarningBorder2=i.Ul[l.s.warning].shade20;var v=o(55210),f=o(36774),h=o(89602),p=o(28179),m=o(52085),b=o(80789),k=o(86518),B=o(67916),y=function(e){var r=function(e){return{colorNeutralForeground1:v.Oh[14],colorNeutralForeground1Hover:v.Oh[14],colorNeutralForeground1Pressed:v.Oh[14],colorNeutralForeground1Selected:v.Oh[14],colorNeutralForeground2:v.Oh[26],colorNeutralForeground2Hover:v.Oh[14],colorNeutralForeground2Pressed:v.Oh[14],colorNeutralForeground2Selected:v.Oh[14],colorNeutralForeground2BrandHover:e[80],colorNeutralForeground2BrandPressed:e[70],colorNeutralForeground2BrandSelected:e[80],colorNeutralForeground3:v.Oh[38],colorNeutralForeground3Hover:v.Oh[26],colorNeutralForeground3Pressed:v.Oh[26],colorNeutralForeground3Selected:v.Oh[26],colorNeutralForeground3BrandHover:e[80],colorNeutralForeground3BrandPressed:e[70],colorNeutralForeground3BrandSelected:e[80],colorNeutralForeground4:v.Oh[44],colorNeutralForegroundDisabled:v.Oh[74],colorNeutralForegroundInvertedDisabled:v.c8[40],colorBrandForegroundLink:e[70],colorBrandForegroundLinkHover:e[60],colorBrandForegroundLinkPressed:e[40],colorBrandForegroundLinkSelected:e[70],colorNeutralForeground2Link:v.Oh[26],colorNeutralForeground2LinkHover:v.Oh[14],colorNeutralForeground2LinkPressed:v.Oh[14],colorNeutralForeground2LinkSelected:v.Oh[14],colorCompoundBrandForeground1:e[80],colorCompoundBrandForeground1Hover:e[70],colorCompoundBrandForeground1Pressed:e[60],colorBrandForeground1:e[80],colorBrandForeground2:e[70],colorBrandForeground2Hover:e[60],colorBrandForeground2Pressed:e[30],colorNeutralForeground1Static:v.Oh[14],colorNeutralForegroundStaticInverted:v.ON,colorNeutralForegroundInverted:v.ON,colorNeutralForegroundInvertedHover:v.ON,colorNeutralForegroundInvertedPressed:v.ON,colorNeutralForegroundInvertedSelected:v.ON,colorNeutralForegroundInverted2:v.ON,colorNeutralForegroundOnBrand:v.ON,colorNeutralForegroundInvertedLink:v.ON,colorNeutralForegroundInvertedLinkHover:v.ON,colorNeutralForegroundInvertedLinkPressed:v.ON,colorNeutralForegroundInvertedLinkSelected:v.ON,colorBrandForegroundInverted:e[100],colorBrandForegroundInvertedHover:e[110],colorBrandForegroundInvertedPressed:e[100],colorBrandForegroundOnLight:e[80],colorBrandForegroundOnLightHover:e[70],colorBrandForegroundOnLightPressed:e[50],colorBrandForegroundOnLightSelected:e[60],colorNeutralBackground1:v.ON,colorNeutralBackground1Hover:v.Oh[96],colorNeutralBackground1Pressed:v.Oh[88],colorNeutralBackground1Selected:v.Oh[92],colorNeutralBackground2:v.Oh[98],colorNeutralBackground2Hover:v.Oh[94],colorNeutralBackground2Pressed:v.Oh[86],colorNeutralBackground2Selected:v.Oh[90],colorNeutralBackground3:v.Oh[96],colorNeutralBackground3Hover:v.Oh[92],colorNeutralBackground3Pressed:v.Oh[84],colorNeutralBackground3Selected:v.Oh[88],colorNeutralBackground4:v.Oh[94],colorNeutralBackground4Hover:v.Oh[98],colorNeutralBackground4Pressed:v.Oh[96],colorNeutralBackground4Selected:v.ON,colorNeutralBackground5:v.Oh[92],colorNeutralBackground5Hover:v.Oh[96],colorNeutralBackground5Pressed:v.Oh[94],colorNeutralBackground5Selected:v.Oh[98],colorNeutralBackground6:v.Oh[90],colorNeutralBackgroundInverted:v.Oh[16],colorNeutralBackgroundStatic:v.Oh[20],colorNeutralBackgroundAlpha:v.c8[50],colorNeutralBackgroundAlpha2:v.c8[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:v.Oh[96],colorSubtleBackgroundPressed:v.Oh[88],colorSubtleBackgroundSelected:v.Oh[92],colorSubtleBackgroundLightAlphaHover:v.c8[70],colorSubtleBackgroundLightAlphaPressed:v.c8[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:v.Q1[10],colorSubtleBackgroundInvertedPressed:v.Q1[30],colorSubtleBackgroundInvertedSelected:v.Q1[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:v.Oh[94],colorNeutralBackgroundInvertedDisabled:v.c8[10],colorNeutralStencil1:v.Oh[90],colorNeutralStencil2:v.Oh[98],colorNeutralStencil1Alpha:v.Q1[10],colorNeutralStencil2Alpha:v.Q1[5],colorBackgroundOverlay:v.Q1[40],colorScrollbarOverlay:v.Q1[50],colorBrandBackground:e[80],colorBrandBackgroundHover:e[70],colorBrandBackgroundPressed:e[40],colorBrandBackgroundSelected:e[60],colorCompoundBrandBackground:e[80],colorCompoundBrandBackgroundHover:e[70],colorCompoundBrandBackgroundPressed:e[60],colorBrandBackgroundStatic:e[80],colorBrandBackground2:e[160],colorBrandBackground2Hover:e[150],colorBrandBackground2Pressed:e[130],colorBrandBackground3Static:e[60],colorBrandBackground4Static:e[40],colorBrandBackgroundInverted:v.ON,colorBrandBackgroundInvertedHover:e[160],colorBrandBackgroundInvertedPressed:e[140],colorBrandBackgroundInvertedSelected:e[150],colorNeutralCardBackground:v.Oh[98],colorNeutralCardBackgroundHover:v.ON,colorNeutralCardBackgroundPressed:v.Oh[96],colorNeutralCardBackgroundSelected:v.Oh[92],colorNeutralCardBackgroundDisabled:v.Oh[94],colorNeutralStrokeAccessible:v.Oh[38],colorNeutralStrokeAccessibleHover:v.Oh[34],colorNeutralStrokeAccessiblePressed:v.Oh[30],colorNeutralStrokeAccessibleSelected:e[80],colorNeutralStroke1:v.Oh[82],colorNeutralStroke1Hover:v.Oh[78],colorNeutralStroke1Pressed:v.Oh[70],colorNeutralStroke1Selected:v.Oh[74],colorNeutralStroke2:v.Oh[88],colorNeutralStroke3:v.Oh[94],colorNeutralStrokeSubtle:v.Oh[88],colorNeutralStrokeOnBrand:v.ON,colorNeutralStrokeOnBrand2:v.ON,colorNeutralStrokeOnBrand2Hover:v.ON,colorNeutralStrokeOnBrand2Pressed:v.ON,colorNeutralStrokeOnBrand2Selected:v.ON,colorBrandStroke1:e[80],colorBrandStroke2:e[140],colorBrandStroke2Hover:e[120],colorBrandStroke2Pressed:e[80],colorBrandStroke2Contrast:e[140],colorCompoundBrandStroke:e[80],colorCompoundBrandStrokeHover:e[70],colorCompoundBrandStrokePressed:e[60],colorNeutralStrokeDisabled:v.Oh[88],colorNeutralStrokeInvertedDisabled:v.c8[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:v.Q1[5],colorNeutralStrokeAlpha2:v.c8[20],colorStrokeFocus1:v.ON,colorStrokeFocus2:v.Ql,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}}(e);return(0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)((0,t.A)({},f.V),h.GR),h.lm),h.aI),h.NM),p.k),B.b),B.F),b.S),k.L),r),s),g),(0,m.t)(r.colorNeutralShadowAmbient,r.colorNeutralShadowKey)),(0,m.t)(r.colorBrandShadowAmbient,r.colorBrandShadowKey,"Brand"))}},52085:function(e,r,o){"use strict";o.d(r,{t:function(){return n}});var t=o(8778);function n(e,r){var o,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return o={},(0,t.A)(o,"shadow2".concat(n),"0 0 2px ".concat(e,", 0 1px 2px ").concat(r)),(0,t.A)(o,"shadow4".concat(n),"0 0 2px ".concat(e,", 0 2px 4px ").concat(r)),(0,t.A)(o,"shadow8".concat(n),"0 0 2px ".concat(e,", 0 4px 8px ").concat(r)),(0,t.A)(o,"shadow16".concat(n),"0 0 2px ".concat(e,", 0 8px 16px ").concat(r)),(0,t.A)(o,"shadow28".concat(n),"0 0 8px ".concat(e,", 0 14px 28px ").concat(r)),(0,t.A)(o,"shadow64".concat(n),"0 0 8px ".concat(e,", 0 32px 64px ").concat(r)),o}},35141:function(e,r,o){"use strict";o.d(r,{_:function(){return a}});var t=o(33347),n={label:t.q6,audio:t.Sg,video:t.Fo,ol:t.p3,li:t.P4,a:t.t0,button:t.uw,input:t.QQ,textarea:t.Sh,select:t.Cq,option:t.tK,table:t.al,tr:t.g0,th:t.cr,td:t.k3,colGroup:t.lA,col:t.Qf,form:t.Gp,iframe:t.Cs,img:t.xM};function a(e,r,o){var a=e&&n[e]||t.vt;return(0,t.G1)(r,a,o)}},85793:function(e,r,o){"use strict";o.d(r,{X:function(){return a}});var t=o(51812),n=o(94714);function a(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.A,a=o(),i=null,c=null;function l(o){var t=o.dir,l=o.renderer,d="ltr"===t;return d?null===i&&(i=(0,n.N)(e,t)):null===c&&(c=(0,n.N)(e,t)),a(l,r),d?i:c}return l}},60330:function(e,r,o){"use strict";o.d(r,{AX:function(){return h},EJ:function(){return l},FS:function(){return f},Ut:function(){return m},aN:function(){return d},ed:function(){return c},ez:function(){return u},fj:function(){return s},k1:function(){return i},qw:function(){return p},uq:function(){return g},wn:function(){return v}});var t="undefined"===typeof window?o.g:window,n="@griffel/";function a(e,r){return t[Symbol.for(n+e)]||(t[Symbol.for(n+e)]=r),t[Symbol.for(n+e)]}var i=a("DEFINITION_LOOKUP_TABLE",{}),c="data-make-styles-bucket",l="data-priority",d="f",u=7,s="___",g="_",v=s.length+u,f=0,h=1,p={all:1,borderColor:1,borderStyle:1,borderWidth:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1},m="DO_NOT_USE_DIRECTLY: @griffel/reset-value"},51812:function(e,r,o){"use strict";o.d(r,{A:function(){return t}});var t=function(){var e={};return function(r,o){void 0===e[r.id]&&(r.insertCSSRules(o),e[r.id]=!0)}}},59921:function(e,r,o){"use strict";o.d(r,{z:function(){return l}});var t=o(61249),n=o(60330),a=o(38811),i=o(94714),c={};function l(){for(var e=arguments,r=null,o="",l="",d=new Array(arguments.length),u=function(r){var t=e[r];if("string"===typeof t&&""!==t){var a=t.indexOf(n.fj);if(-1===a)o+=t+" ";else{var i=t.substr(a,n.wn);a>0&&(o+=t.slice(0,a)),l+=i,d[r]=i}0}},s=0;s<arguments.length;s++)u(s);if(""===l)return o.slice(0,-1);var g=c[l];if(void 0!==g)return o+g;for(var v=[],f=0;f<arguments.length;f++){var h=d[f];if(h){var p=n.k1[h];p&&(v.push(p[n.FS]),r=p[n.AX])}}var m=Object.assign.apply(Object,[{}].concat(v)),b=(0,i.z)(m,r),k=(0,t.A)(b,2),B=k[0],y=k[1],S=(0,a.G)(y,r,d),P=S+" "+B;return c[l]=P,n.k1[S]=[m,r],o+P}},94714:function(e,r,o){"use strict";o.d(r,{N:function(){return c},z:function(){return i}});var t=o(61249),n=o(60330),a=o(38811);function i(e,r){var o="",t="";for(var n in e){var a=e[n];if(0!==a){var i=Array.isArray(a),c="rtl"===r?(i?a[1]:a)+" ":(i?a[0]:a)+" ";o+=c,t+=c}else t+=n+" "}return[o.slice(0,-1),t.slice(0,-1)]}function c(e,r){var o={};for(var c in e){var l=i(e[c],r),d=(0,t.A)(l,2),u=d[0],s=d[1];if(""!==s){var g=(0,a.G)(s,r),v=g+(""===u?"":" "+u);n.k1[g]=[e[c],r],o[c]=v}else o[c]=""}return o}},38811:function(e,r,o){"use strict";o.d(r,{G:function(){return i}});var t=o(31821),n=o(60330);function a(e){var r=e.length;if(r===n.ez)return e;for(var o=r;o<n.ez;o++)e+="0";return e}function i(e,r){return n.fj+a((0,t.A)(e+r))}},75650:function(e,r,o){"use strict";o.d(r,{J:function(){return b}});var t=o(61249);function n(e){return Array.isArray(e)?e:[e]}var a=o(60330);function i(e,r,o,t){var n=[];if(t[a.ed]=r,t[a.EJ]=String(o),e)for(var i in t)e.setAttribute(i,t[i]);return{elementAttributes:t,insertRule:function(r){return(null===e||void 0===e?void 0:e.sheet)?e.sheet.insertRule(r,e.sheet.cssRules.length):n.push(r)},element:e,bucketName:r,cssRules:function(){return(null===e||void 0===e?void 0:e.sheet)?Array.from(e.sheet.cssRules).map((function(e){return e.cssText})):n}}}var c=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((function(e,r,o){return e[r]=o,e}),{});function l(e,r,o){return("m"===e?e+r:e)+o}function d(e,r,o,t){var n,a,c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},d="m"===e,u=null!==(n=c.m)&&void 0!==n?n:"0",g=null!==(a=c.p)&&void 0!==a?a:0,v=l(e,u,g);if(!t.stylesheets[v]){var f=r&&r.createElement("style"),h=i(f,e,g,Object.assign({},t.styleElementAttributes,d&&{media:u}));t.stylesheets[v]=h,r&&f&&r.head.insertBefore(f,s(r,o,e,t,c))}return t.stylesheets[v]}function u(e,r,o){var t,n;return r+(null!==(t=o.m)&&void 0!==t?t:"")===e.getAttribute(a.ed)+(null!==(n=e.media)&&void 0!==n?n:"")}function s(e,r,o,t){var n,i,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},d=c[o],s=null!==(n=l.m)&&void 0!==n?n:"",g=null!==(i=l.p)&&void 0!==i?i:0,v=function(e){return d-c[e.getAttribute(a.ed)]},f=e.head.querySelectorAll("[".concat(a.ed,"]"));if("m"===o){var h=e.head.querySelectorAll("[".concat(a.ed,'="').concat(o,'"]'));h.length&&(f=h,v=function(e){return t.compareMediaQueries(s,e.media)})}for(var p=function(e){return u(e,o,l)?g-Number(e.getAttribute("data-priority")):v(e)},m=f.length,b=m-1;b>=0;){var k=f.item(b);if(p(k)>0)return k.nextSibling;b--}return m>0?f.item(0):r?r.nextSibling:null}":(".concat(["-moz-placeholder","-moz-focus-inner","-moz-focusring","-ms-input-placeholder","-moz-read-write","-moz-read-only"].join("|"),")");function g(e,r){try{e.insertRule(r)}catch(o){0}}var v=0,f=function(e,r){return e<r?-1:e>r?1:0};function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"===typeof document?void 0:document,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.classNameHashSalt,a=r.unstable_filterCSSRule,i=r.insertionPoint,c=r.styleElementAttributes,l=r.compareMediaQueries,u=void 0===l?f:l,s={classNameHashSalt:o,insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(c),compareMediaQueries:u,id:"d".concat(v++),insertCSSRules:function(r){for(var o in r)for(var c=r[o],l=0,u=c.length;l<u;l++){var v=n(c[l]),f=(0,t.A)(v,2),h=f[0],p=f[1],m=d(o,e,i||null,s,p);s.insertionCache[h]||(s.insertionCache[h]=o,a?a(h)&&g(m,h):g(m,h))}}};return s}var p=o(80322),m=p.createContext(h());function b(){return p.useContext(m)}},10752:function(e,r,o){"use strict";o.d(r,{e:function(){return a},m:function(){return i}});var t=o(80322),n=t.createContext("ltr"),a=function(e){var r=e.children,o=e.dir;return t.createElement(n.Provider,{value:o},r)};function i(){return t.useContext(n)}},28207:function(e,r,o){"use strict";o.d(r,{Rz:function(){return H}});var t=o(18188),n=o(80198);function a(e){console&&console.warn&&console.warn(e)}var i=o(56956),c="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";var l={},d=void 0;try{d=window}catch(I){}function u(e,r){if("undefined"!==typeof d){var o=d.__packages__=d.__packages__||{};if(!o[e]||!l[e])l[e]=r,(o[e]=o[e]||[]).push(r)}}u("@fluentui/set-version","6.0.0"),u("@fluentui/style-utilities","8.7.12");var s=o(84867);var g=void 0;try{g=window}catch(I){}function v(e){if("undefined"!==typeof window&&window.document&&window.document.createElement&&"undefined"!==typeof g){var r=e;return r&&r.ownerDocument&&r.ownerDocument.defaultView?r.ownerDocument.defaultView:g}}var f=0,h=function(){function e(){}return e.getValue=function(e,r){var o=p();return void 0===o[e]&&(o[e]="function"===typeof r?r():r),o[e]},e.setValue=function(e,r){var o=p(),t=o.__callbacks__,n=o[e];if(r!==n){o[e]=r;var a={oldValue:n,value:r,key:e};for(var i in t)t.hasOwnProperty(i)&&t[i](a)}return r},e.addChangeListener=function(e){var r=e.__id__,o=m();r||(r=e.__id__=String(f++)),o[r]=e},e.removeChangeListener=function(e){delete m()[e.__id__]},e}();function p(){var e,r=v()||{};return r.__globalSettings__||(r.__globalSettings__=((e={}).__callbacks__={},e)),r.__globalSettings__}function m(){return p().__callbacks__}var b={settings:{},scopedSettings:{},inCustomizerContext:!1},k=h.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),B=[],y=function(){function e(){}return e.reset=function(){k.settings={},k.scopedSettings={}},e.applySettings=function(r){k.settings=(0,s.__assign)((0,s.__assign)({},k.settings),r),e._raiseChange()},e.applyScopedSettings=function(r,o){k.scopedSettings[r]=(0,s.__assign)((0,s.__assign)({},k.scopedSettings[r]),o),e._raiseChange()},e.getSettings=function(e,r,o){void 0===o&&(o=b);for(var t={},n=r&&o.scopedSettings[r]||{},a=r&&k.scopedSettings[r]||{},i=0,c=e;i<c.length;i++){var l=c[i];t[l]=n[l]||o.settings[l]||a[l]||k.settings[l]}return t},e.applyBatchedUpdates=function(r,o){e._suppressUpdates=!0;try{r()}catch(t){}e._suppressUpdates=!1,o||e._raiseChange()},e.observe=function(e){B.push(e)},e.unobserve=function(e){B=B.filter((function(r){return r!==e}))},e._raiseChange=function(){e._suppressUpdates||B.forEach((function(e){return e()}))},e}(),S=o(28480),P=(0,n.a)({}),C=[],x="theme";function F(){var e,r,o,t=v();(null===(r=null===t||void 0===t?void 0:t.FabricConfig)||void 0===r?void 0:r.legacyTheme)?function(e,r){var o;void 0===r&&(r=!1);P=(0,n.a)(e,r),(0,S.EQ)((0,s.__assign)((0,s.__assign)((0,s.__assign)((0,s.__assign)({},P.palette),P.semanticColors),P.effects),function(e){for(var r={},o=0,t=Object.keys(e.fonts);o<t.length;o++)for(var n=t[o],a=e.fonts[n],i=0,c=Object.keys(a);i<c.length;i++){var l=c[i],d=n+l.charAt(0).toUpperCase()+l.slice(1),u=a[l];"fontSize"===l&&"number"===typeof u&&(u+="px"),r[d]=u}return r}(P))),y.applySettings(((o={}).theme=P,o)),C.forEach((function(e){try{e(P)}catch(I){}}))}(t.FabricConfig.legacyTheme):y.getSettings([x]).theme||((null===(o=null===t||void 0===t?void 0:t.FabricConfig)||void 0===o?void 0:o.theme)&&(P=(0,n.a)(t.FabricConfig.theme)),y.applySettings(((e={}).theme=P,e)))}F(),F();var N,A=o(8778),w=function(e){var r=e.theme;return{root:(0,A.A)({border:"none"},c,{border:"1px solid ".concat(null===r||void 0===r?void 0:r.semanticColors.buttonBorder)})}},_={paddingLeft:32,paddingRight:32},O={ActionButton:{styles:w},Button:{styles:function(e){return{root:{border:"none"}}}},Check:{styles:function(e){var r=e.checked,o=e.theme;return o||a("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%"}},r&&{":hover":{"::before":{backgroundColor:o.semanticColors.inputBackgroundCheckedHovered},'[data-icon-name="CircleRing"]':{borderColor:o.semanticColors.inputBackgroundCheckedHovered}},"::before":{backgroundColor:o.semanticColors.inputBackgroundChecked},'[data-icon-name="StatusCircleCheckmark"]':{opacity:1}}],check:[{fontSize:"18px",lineHeight:"16px",margin:"0",width:"16px",height:"16px",fontWeight:i.BO.regular,transition:"opacity ease-in-out 100ms",opacity:0,boxSizing:"border-box"},r&&{color:o.semanticColors.alwaysWhite}],circle:[{fontSize:0,width:"16px",height:"16px",borderRadius:2,borderColor:o.semanticColors.inputBorder,borderWidth:"1px",borderStyle:"solid",transition:"all ease-in-out 200ms",boxSizing:"border-box"},r&&{color:o.semanticColors.alwaysWhite,borderColor:o.semanticColors.inputBackgroundChecked}]}}},Checkbox:{styles:function(e){var r=e.theme,o=e.checked,t=e.disabled;r||a("Theme is undefined or null.");var n=t?r.palette.neutralTertiaryAlt:o?r.palette.themePrimary:r.palette.neutralSecondaryAlt;return{checkbox:{border:"1px solid ".concat(n)},checkmark:["ms-Checkbox-checkmark",{color:r.semanticColors.inputForegroundChecked}]}}},ChoiceGroupOption:{styles:function(e){var r=e.theme,o=e.checked,t=e.disabled;return r||a("Theme is undefined or null."),{field:{selectors:{":before":[{borderColor:t?r.semanticColors.disabledBodySubtext:r.palette.neutralPrimary},o&&{borderColor:t?r.semanticColors.disabledBodySubtext:r.semanticColors.inputBackgroundChecked}]}}}}},CommandBarButton:{styles:w},CompoundButton:{styles:w},DefaultButton:{styles:w},DetailsColumn:{styles:function(e){return{cellName:{fontSize:e.theme.fonts.small.fontSize}}}},DetailsRow:{styles:function(e){var r=e.theme;return{fields:{color:null===r||void 0===r?void 0:r.semanticColors.listText,selectors:{"& > :first-child":{fontWeight:i.BO.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 r=e.isDark,o=e.theme;return o||a("Theme is undefined or null."),{root:[{backgroundColor:o.semanticColors.overlayBackground},r&&[{backgroundColor:o.semanticColors.overlayBackground}]]}}},Panel:{styles:function(e){var r=e.theme;return r||a("Theme is undefined or null."),{main:[{boxShadow:r.effects.elevation64,background:r.semanticColors.panelBackground}],content:[_,{paddingBottom:32}],header:[_],footerInner:[_],closeButton:{color:r.semanticColors.menuIcon,selectors:{":hover":{color:r.semanticColors.menuIcon}}}}}},Pivot:{styles:function(e){var r=e.theme;return r||a("M365Styles-Pivot error: Theme is undefined or null."),{link:[(0,A.A)({":hover":{backgroundColor:r.semanticColors.dashboardBackdrop}},c,{border:"none"})],linkIsSelected:[(0,A.A)({":hover":{backgroundColor:r.semanticColors.dashboardBackdrop}},c,{border:"none"})]}}},PrimaryButton:{styles:function(e){var r=e.theme;return r||a("Theme is undefined or null."),{root:{color:r.semanticColors.primaryButtonText,border:"none"},rootHovered:{color:r.semanticColors.primaryButtonTextHovered,border:"none"},rootPressed:{color:r.semanticColors.primaryButtonTextPressed,border:"none"},rootChecked:{color:r.semanticColors.primaryButtonText}}}},SearchBox:{styles:function(e){return{root:{selectors:{"::after":{borderWidth:1}}}}}},Spinner:{styles:function(e){var r=e.theme;return r||a("Theme is undefined or null."),{circle:{borderTopColor:r.palette.themeDarkAlt},label:{color:r.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"}(N||(N={}));var T=N,L={themePrimary:T.themePrimary,themeLighterAlt:T.themeLighterAlt,themeLighter:T.themeLighter,themeLight:T.themeLight,themeTertiary:T.themeTertiary,themeSecondary:T.themeSecondary,themeDarkAlt:T.themeDarkAlt,themeDark:T.themeDark,themeDarker:T.themeDarker,neutralLighterAlt:T.neutralLighterAlt,neutralLighter:T.neutralLighter,neutralLight:T.neutralLight,neutralQuaternaryAlt:T.neutralQuaternaryAlt,neutralQuaternary:T.neutralQuaternary,neutralTertiaryAlt:T.neutralTertiaryAlt,neutralTertiary:T.neutralTertiary,neutralSecondary:T.neutralSecondary,neutralPrimaryAlt:T.neutralPrimaryAlt,neutralPrimary:T.neutralPrimary,neutralDark:T.neutralDark,black:T.black,white:T.white},D={bodyTextChecked:T.neutralDark,disabledSubtext:T.neutralQuaternary,disabledBodySubtext:T.neutralTertiaryAlt,primaryButtonTextDisabled:T.neutralTertiary,bodyStandoutBackground:T.neutralLighter,buttonBackground:T.neutralLight,buttonBackgroundHovered:T.neutralTertiaryAlt,buttonBackgroundPressed:T.neutralTertiary,buttonTextHovered:T.neutralPrimary,buttonTextChecked:T.neutralSecondary,buttonTextPressed:T.neutralPrimary,buttonTextDisabled:T.neutralTertiary,menuHeader:T.neutralPrimary,listItemBackgroundChecked:T.neutralQuaternaryAlt,listItemBackgroundCheckedHovered:T.neutralQuaternary,link:T.themeDarkAlt,errorText:T.errorText,warningHighlight:T.warningHighlight,warningText:T.neutralPrimary,messageText:T.neutralPrimary,messageLink:T.themeDarkAlt,messageLinkHovered:T.themeDarker,infoIcon:T.neutralSecondary,errorIcon:T.highStatus,blockingIcon:T.highStatus,successIcon:T.goodStatus,warningIcon:T.neutralPrimary,severeWarningIcon:T.severeWarningIcon,infoBackground:T.neutralLighter,errorBackground:T.errorBackground,blockingBackground:T.blockingBackground,warningBackground:T.warningBackground,severeWarningBackground:T.severeWarningBackground,successBackground:T.successBackground,dashboardBackdrop:T.dashboardBackdrop,actionCardDashboardBorder:"transparent",actionCardDashboardBorderHovered:"transparent",gridItemDestinationBackground:T.neutralQuaternary,panelBackground:T.white,overlayBackground:T.overlayBackground,sectionDividerLine:T.neutralPrimary,primaryDividerLine:T.neutralTertiaryAlt,secondaryDividerLine:T.neutralQuaternaryAlt,dataVis1:T.dataVis1,dataVis2:T.dataVis2,dataVis3:T.dataVis3,dataVis4:T.dataVis4,dataVis5:T.dataVis5,dataVis6:T.dataVis6,dataVis7:T.dataVis7,dataVis8:T.dataVis8,dataVis9:T.dataVis9,dataVis10:T.dataVis10,headerText:T.black,secondaryListText:T.neutralSecondary,navBackground:T.navBackground,navItemBackgroundHovered:T.neutralQuaternary,navItemBackgroundPressed:T.neutralTertiaryAlt,criticalStatus:T.criticalStatus,highStatus:T.highStatus,mediumStatus:T.mediumStatus,lowStatus:T.lowStatus,goodStatus:T.goodStatus,unknownStatus:T.unknownStatus,insightLow:T.insightLow,insightMedium:T.insightMedium,insightHigh:T.insightHigh,neutralRisk:T.neutralRisk,stepCompleted:T.themePrimary,stepCurrent:T.themePrimary,stepNotStarted:T.unknownStatus,stepModifierBorder:T.themePrimary,stepHover:T.themeDark,stepPressed:T.themeDarker,stepError:T.highStatus,allStepsComplete:T.goodStatus,contextualAlertBackground:T.contextualAlertBackground,needHelpForeground:T.white,needHelpBackground:T.needHelpBackground,needHelpBackgroundPressed:T.needHelpBackgroundPressed,feedbackForeground:T.white,feedbackBackground:T.neutralDark,feedbackBackgroundPressed:T.neutralSecondary,alwaysWhite:T.white,alwaysBlack:T.black,filterPillRest:T.neutralLighterAlt,filterPillHover:T.neutralLight,filterPillPressed:T.neutralQuaternary,filterPillEditedRest:T.themeLighter,filterPillEditedHover:T.themeLight,filterPillEditedPressed:T.themeTertiary,tagBackgroundInsight:T.tagBackgroundInsight,tagBackgroundLowImpact:T.tagBackgroundLowImpact,tagBackgroundMediumImpact:T.neutralTertiaryAlt,tagBackgroundHighImpact:T.neutralPrimary,tagBackgroundNew:T.themePrimary,tagBackgroundActiveWarning:T.highStatus,tagBackgroundRecommendation:T.tagBackgroundRecommendation,tagTextInsight:T.neutralPrimary,tagTextLowImpact:T.neutralPrimary,tagTextMediumImpact:T.neutralPrimary,tagTextHighImpact:T.white,tagTextNew:T.white,tagTextActiveWarning:T.white},H=((0,n.a)({palette:(0,t.A)({},N),semanticColors:D}),(0,n.a)({palette:L,semanticColors:D,components:O}))},66297:function(e,r,o){"use strict";o.d(r,{Oy:function(){return d},RY:function(){return u},SQ:function(){return p},bd:function(){return m},kG:function(){return g}});var t=o(8778),n=o(72382),a=o(31344),i=o(63598),c="undefined"!==typeof WeakRef,l=function(){function e(r){(0,a.A)(this,e),c&&"object"===typeof r?this._weakRef=new WeakRef(r):this._instance=r}return(0,i.A)(e,[{key:"deref",value:function(){var e,r,o;return this._weakRef?(o=null==(e=this._weakRef)?void 0:e.deref())||delete this._weakRef:(null==(r=null==(o=this._instance)?void 0:o.isDisposed)?void 0:r.call(o))&&delete this._instance,o}}]),e}(),d="keyborg:focusin",u="keyborg:focusout";var s=!1;function g(e){var r=e.focus;r.__keyborgNativeFocus?r.__keyborgNativeFocus.call(e):e.focus()}var v=0,f=function(){function e(r,o){var t=this;(0,a.A)(this,e),this._isNavigatingWithKeyboard_DO_NOT_USE=!1,this._onFocusIn=function(e){if(!t._isMouseOrTouchUsedTimer&&!t.isNavigatingWithKeyboard){var r=e.detail;r.relatedTarget&&(r.isFocusedProgrammatically||void 0===r.isFocusedProgrammatically||(t.isNavigatingWithKeyboard=!0))}},this._onMouseDown=function(e){0===e.buttons||0===e.clientX&&0===e.clientY&&0===e.screenX&&0===e.screenY||t._onMouseOrTouch()},this._onMouseOrTouch=function(){var e=t._win;e&&(t._isMouseOrTouchUsedTimer&&e.clearTimeout(t._isMouseOrTouchUsedTimer),t._isMouseOrTouchUsedTimer=e.setTimeout((function(){delete t._isMouseOrTouchUsedTimer}),1e3)),t.isNavigatingWithKeyboard=!1},this._onKeyDown=function(e){t.isNavigatingWithKeyboard?t._shouldDismissKeyboardNavigation(e)&&t._scheduleDismiss():t._shouldTriggerKeyboardNavigation(e)&&(t.isNavigatingWithKeyboard=!0)},this.id="c"+ ++v,this._win=r;var i=r.document;if(o){var c=o.triggerKeys,g=o.dismissKeys;(null==c?void 0:c.length)&&(this._triggerKeys=new Set(c)),(null==g?void 0:g.length)&&(this._dismissKeys=new Set(g))}i.addEventListener(d,this._onFocusIn,!0),i.addEventListener("mousedown",this._onMouseDown,!0),r.addEventListener("keydown",this._onKeyDown,!0),i.addEventListener("touchstart",this._onMouseOrTouch,!0),i.addEventListener("touchend",this._onMouseOrTouch,!0),i.addEventListener("touchcancel",this._onMouseOrTouch,!0),function(e){var r=e;s||(s=function(e){var r=e.HTMLElement,o=r.prototype.focus,t=!1;return r.prototype.focus=function(){t=!0},e.document.createElement("button").focus(),r.prototype.focus=o,t}(r));var o=r.HTMLElement.prototype.focus;if(!o.__keyborgNativeFocus){r.HTMLElement.prototype.focus=f;var t=new Set,a=function(e){var r=e.target;if(r){var o=new CustomEvent(u,{cancelable:!0,bubbles:!0,composed:!0,detail:{originalEvent:e}});r.dispatchEvent(o)}},i=function e(r){var o=r.target;if(o){for(var i=r.composedPath()[0],l=new Set;i;)i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?(l.add(i),i=i.host):i=i.parentNode;var d,u=(0,n.A)(t);try{for(u.s();!(d=u.n()).done;){var s=d.value,g=s.deref();g&&l.has(g)||(t.delete(s),g&&(g.removeEventListener("focusin",e,!0),g.removeEventListener("focusout",a,!0)))}}catch(v){u.e(v)}finally{u.f()}c(o,r.relatedTarget||void 0)}},c=function(e,r,o){var c,u=e.shadowRoot;if(u){var v,f=(0,n.A)(t);try{for(f.s();!(v=f.n()).done;)if(v.value.deref()===u)return}catch(m){f.e(m)}finally{f.f()}return u.addEventListener("focusin",i,!0),u.addEventListener("focusout",a,!0),void t.add(new l(u))}var h={relatedTarget:r,originalEvent:o},p=new CustomEvent(d,{cancelable:!0,bubbles:!0,composed:!0,detail:h});p.details=h,(s||g.lastFocusedProgrammatically)&&(h.isFocusedProgrammatically=e===(null==(c=g.lastFocusedProgrammatically)?void 0:c.deref()),g.lastFocusedProgrammatically=void 0),e.dispatchEvent(p)},g=r.__keyborgData={focusInHandler:i,focusOutHandler:a,shadowTargets:t};r.document.addEventListener("focusin",r.__keyborgData.focusInHandler,!0),r.document.addEventListener("focusout",r.__keyborgData.focusOutHandler,!0);for(var v=r.document.activeElement;v&&v.shadowRoot;)c(v),v=v.shadowRoot.activeElement;f.__keyborgNativeFocus=o}function f(){var e=r.__keyborgData;return e&&(e.lastFocusedProgrammatically=new l(this)),o.apply(this,arguments)}}(r)}return(0,i.A)(e,[{key:"isNavigatingWithKeyboard",get:function(){return this._isNavigatingWithKeyboard_DO_NOT_USE},set:function(e){this._isNavigatingWithKeyboard_DO_NOT_USE!==e&&(this._isNavigatingWithKeyboard_DO_NOT_USE=e,this.update())}},{key:"dispose",value:function(){var e=this._win;if(e){this._isMouseOrTouchUsedTimer&&(e.clearTimeout(this._isMouseOrTouchUsedTimer),this._isMouseOrTouchUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),function(e){var r=e,o=r.HTMLElement.prototype,t=o.focus.__keyborgNativeFocus,a=r.__keyborgData;if(a){r.document.removeEventListener("focusin",a.focusInHandler,!0),r.document.removeEventListener("focusout",a.focusOutHandler,!0);var i,c=(0,n.A)(a.shadowTargets);try{for(c.s();!(i=c.n()).done;){var l=i.value.deref();l&&(l.removeEventListener("focusin",a.focusInHandler,!0),l.removeEventListener("focusout",a.focusOutHandler,!0))}}catch(d){c.e(d)}finally{c.f()}a.shadowTargets.clear(),delete r.__keyborgData}t&&(o.focus=t)}(e);var r=e.document;r.removeEventListener(d,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),r.removeEventListener("touchstart",this._onMouseOrTouch,!0),r.removeEventListener("touchend",this._onMouseOrTouch,!0),r.removeEventListener("touchcancel",this._onMouseOrTouch,!0),delete this._win}}},{key:"isDisposed",value:function(){return!!this._win}},{key:"update",value:function(){var e,r,o=null==(r=null==(e=this._win)?void 0:e.__keyborg)?void 0:r.refs;if(o)for(var t=0,n=Object.keys(o);t<n.length;t++){var a=n[t];h.update(o[a],this.isNavigatingWithKeyboard)}}},{key:"_shouldTriggerKeyboardNavigation",value:function(e){var r;if("Tab"===e.key)return!0;var o=null==(r=this._win)?void 0:r.document.activeElement,t=!this._triggerKeys||this._triggerKeys.has(e.keyCode),n=o&&("INPUT"===o.tagName||"TEXTAREA"===o.tagName||o.isContentEditable);return t&&!n}},{key:"_shouldDismissKeyboardNavigation",value:function(e){var r;return null==(r=this._dismissKeys)?void 0:r.has(e.keyCode)}},{key:"_scheduleDismiss",value:function(){var e=this,r=this._win;if(r){this._dismissTimer&&(r.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);var o=r.document.activeElement;this._dismissTimer=r.setTimeout((function(){e._dismissTimer=void 0;var t=r.document.activeElement;o&&t&&o===t&&(e.isNavigatingWithKeyboard=!1)}),500)}}}]),e}(),h=function(){function e(r,o){(0,a.A)(this,e),this._cb=[],this._id="k"+ ++v,this._win=r;var n=r.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new f(r,o),r.__keyborg={core:this._core,refs:(0,t.A)({},this._id,this)})}return(0,i.A)(e,[{key:"dispose",value:function(){var e,r=null==(e=this._win)?void 0:e.__keyborg;(null==r?void 0:r.refs[this._id])&&(delete r.refs[this._id],0===Object.keys(r.refs).length&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}},{key:"isNavigatingWithKeyboard",value:function(){var e;return!!(null==(e=this._core)?void 0:e.isNavigatingWithKeyboard)}},{key:"subscribe",value:function(e){this._cb.push(e)}},{key:"unsubscribe",value:function(e){var r=this._cb.indexOf(e);r>=0&&this._cb.splice(r,1)}},{key:"setVal",value:function(e){this._core&&(this._core.isNavigatingWithKeyboard=e)}}],[{key:"create",value:function(r,o){return new e(r,o)}},{key:"dispose",value:function(e){e.dispose()}},{key:"update",value:function(e,r){e._cb.forEach((function(e){return e(r)}))}}]),e}();function p(e,r){return h.create(e,r)}function m(e){h.dispose(e)}},47802:function(e){var r,o,t=e.exports={};function n(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function i(e){if(r===setTimeout)return setTimeout(e,0);if((r===n||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(o){try{return r.call(null,e,0)}catch(o){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:n}catch(e){r=n}try{o="function"===typeof clearTimeout?clearTimeout:a}catch(e){o=a}}();var c,l=[],d=!1,u=-1;function s(){d&&c&&(d=!1,c.length?l=c.concat(l):u=-1,l.length&&g())}function g(){if(!d){var e=i(s);d=!0;for(var r=l.length;r;){for(c=l,l=[];++u<r;)c&&c[u].run();u=-1,r=l.length}c=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===a||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(r){try{return o.call(null,e)}catch(r){return o.call(this,e)}}}(e)}}function v(e,r){this.fun=e,this.array=r}function f(){}t.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)r[o-1]=arguments[o];l.push(new v(e,r)),1!==l.length||d||i(g)},v.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=f,t.addListener=f,t.once=f,t.off=f,t.removeListener=f,t.removeAllListeners=f,t.emit=f,t.prependListener=f,t.prependOnceListener=f,t.listeners=function(e){return[]},t.binding=function(e){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(e){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},96656:function(e,r,o){"use strict";var t=o(80322),n=60103;if(r.Fragment=60107,"function"===typeof Symbol&&Symbol.for){var a=Symbol.for;n=a("react.element"),r.Fragment=a("react.fragment")}var i=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c=Object.prototype.hasOwnProperty,l={key:!0,ref:!0,__self:!0,__source:!0};function d(e,r,o){var t,a={},d=null,u=null;for(t in void 0!==o&&(d=""+o),void 0!==r.key&&(d=""+r.key),void 0!==r.ref&&(u=r.ref),r)c.call(r,t)&&!l.hasOwnProperty(t)&&(a[t]=r[t]);if(e&&e.defaultProps)for(t in r=e.defaultProps)void 0===a[t]&&(a[t]=r[t]);return{$$typeof:n,type:e,key:d,ref:u,props:a,_owner:i.current}}r.jsx=d,r.jsxs=d},80812:function(e,r,o){"use strict";e.exports=o(96656)},67281:function(e,r,o){var t=o(51954).default;function n(){"use strict";e.exports=n=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var r={},o=Object.prototype,a=o.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",d=i.toStringTag||"@@toStringTag";function u(e,r,o){return Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}),e[r]}try{u({},"")}catch(w){u=function(e,r,o){return e[r]=o}}function s(e,r,o,t){var n=r&&r.prototype instanceof f?r:f,a=Object.create(n.prototype),i=new F(t||[]);return a._invoke=function(e,r,o){var t="suspendedStart";return function(n,a){if("executing"===t)throw new Error("Generator is already running");if("completed"===t){if("throw"===n)throw a;return A()}for(o.method=n,o.arg=a;;){var i=o.delegate;if(i){var c=P(i,o);if(c){if(c===v)continue;return c}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===t)throw t="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);t="executing";var l=g(e,r,o);if("normal"===l.type){if(t=o.done?"completed":"suspendedYield",l.arg===v)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(t="completed",o.method="throw",o.arg=l.arg)}}}(e,o,i),a}function g(e,r,o){try{return{type:"normal",arg:e.call(r,o)}}catch(w){return{type:"throw",arg:w}}}r.wrap=s;var v={};function f(){}function h(){}function p(){}var m={};u(m,c,(function(){return this}));var b=Object.getPrototypeOf,k=b&&b(b(N([])));k&&k!==o&&a.call(k,c)&&(m=k);var B=p.prototype=f.prototype=Object.create(m);function y(e){["next","throw","return"].forEach((function(r){u(e,r,(function(e){return this._invoke(r,e)}))}))}function S(e,r){function o(n,i,c,l){var d=g(e[n],e,i);if("throw"!==d.type){var u=d.arg,s=u.value;return s&&"object"==t(s)&&a.call(s,"__await")?r.resolve(s.__await).then((function(e){o("next",e,c,l)}),(function(e){o("throw",e,c,l)})):r.resolve(s).then((function(e){u.value=e,c(u)}),(function(e){return o("throw",e,c,l)}))}l(d.arg)}var n;this._invoke=function(e,t){function a(){return new r((function(r,n){o(e,t,r,n)}))}return n=n?n.then(a,a):a()}}function P(e,r){var o=e.iterator[r.method];if(void 0===o){if(r.delegate=null,"throw"===r.method){if(e.iterator.return&&(r.method="return",r.arg=void 0,P(e,r),"throw"===r.method))return v;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var t=g(o,e.iterator,r.arg);if("throw"===t.type)return r.method="throw",r.arg=t.arg,r.delegate=null,v;var n=t.arg;return n?n.done?(r[e.resultName]=n.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,v):n:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function C(e){var r={tryLoc:e[0]};1 in e&&(r.catchLoc=e[1]),2 in e&&(r.finallyLoc=e[2],r.afterLoc=e[3]),this.tryEntries.push(r)}function x(e){var r=e.completion||{};r.type="normal",delete r.arg,e.completion=r}function F(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function N(e){if(e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,t=function r(){for(;++o<e.length;)if(a.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=void 0,r.done=!0,r};return t.next=t}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=p,u(B,"constructor",p),u(p,"constructor",h),h.displayName=u(p,d,"GeneratorFunction"),r.isGeneratorFunction=function(e){var r="function"==typeof e&&e.constructor;return!!r&&(r===h||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,u(e,d,"GeneratorFunction")),e.prototype=Object.create(B),e},r.awrap=function(e){return{__await:e}},y(S.prototype),u(S.prototype,l,(function(){return this})),r.AsyncIterator=S,r.async=function(e,o,t,n,a){void 0===a&&(a=Promise);var i=new S(s(e,o,t,n),a);return r.isGeneratorFunction(o)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},y(B),u(B,d,"Generator"),u(B,c,(function(){return this})),u(B,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var r=[];for(var o in e)r.push(o);return r.reverse(),function o(){for(;r.length;){var t=r.pop();if(t in e)return o.value=t,o.done=!1,o}return o.done=!0,o}},r.values=N,F.prototype={constructor:F,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(x),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=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 r=this;function o(o,t){return i.type="throw",i.arg=e,r.next=o,t&&(r.method="next",r.arg=void 0),!!t}for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t],i=n.completion;if("root"===n.tryLoc)return o("end");if(n.tryLoc<=this.prev){var c=a.call(n,"catchLoc"),l=a.call(n,"finallyLoc");if(c&&l){if(this.prev<n.catchLoc)return o(n.catchLoc,!0);if(this.prev<n.finallyLoc)return o(n.finallyLoc)}else if(c){if(this.prev<n.catchLoc)return o(n.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<n.finallyLoc)return o(n.finallyLoc)}}}},abrupt:function(e,r){for(var o=this.tryEntries.length-1;o>=0;--o){var t=this.tryEntries[o];if(t.tryLoc<=this.prev&&a.call(t,"finallyLoc")&&this.prev<t.finallyLoc){var n=t;break}}n&&("break"===e||"continue"===e)&&n.tryLoc<=r&&r<=n.finallyLoc&&(n=null);var i=n?n.completion:{};return i.type=e,i.arg=r,n?(this.method="next",this.next=n.finallyLoc,v):this.complete(i)},complete:function(e,r){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&&r&&(this.next=r),v},finish:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.finallyLoc===e)return this.complete(o.completion,o.afterLoc),x(o),v}},catch:function(e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc===e){var t=o.completion;if("throw"===t.type){var n=t.arg;x(o)}return n}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,o){return this.delegate={iterator:N(e),resultName:r,nextLoc:o},"next"===this.method&&(this.arg=void 0),v}},r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports},51954:function(e){function r(o){return e.exports=r="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,r(o)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports},42732:function(e,r,o){var t=o(67281)();e.exports=t;try{regeneratorRuntime=t}catch(n){"object"===typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},29612:function(e,r,o){"use strict";function t(e,r){(null==r||r>e.length)&&(r=e.length);for(var o=0,t=new Array(r);o<r;o++)t[o]=e[o];return t}o.d(r,{A:function(){return t}})},95112:function(e,r,o){"use strict";function t(e){if(Array.isArray(e))return e}o.d(r,{A:function(){return t}})},31802:function(e,r,o){"use strict";function t(e,r,o,t,n,a,i){try{var c=e[a](i),l=c.value}catch(d){return void o(d)}c.done?r(l):Promise.resolve(l).then(t,n)}function n(e){return function(){var r=this,o=arguments;return new Promise((function(n,a){var i=e.apply(r,o);function c(e){t(i,n,a,c,l,"next",e)}function l(e){t(i,n,a,c,l,"throw",e)}c(void 0)}))}}o.d(r,{A:function(){return n}})},31344:function(e,r,o){"use strict";function t(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}o.d(r,{A:function(){return t}})},63598:function(e,r,o){"use strict";function t(e,r){for(var o=0;o<r.length;o++){var t=r[o];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}function n(e,r,o){return r&&t(e.prototype,r),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e}o.d(r,{A:function(){return n}})},72382:function(e,r,o){"use strict";o.d(r,{A:function(){return n}});var t=o(2737);function n(e,r){var o="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!o){if(Array.isArray(e)||(o=(0,t.A)(e))||r&&e&&"number"===typeof e.length){o&&(e=o);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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,c=!0,l=!1;return{s:function(){o=o.call(e)},n:function(){var e=o.next();return c=e.done,e},e:function(e){l=!0,i=e},f:function(){try{c||null==o.return||o.return()}finally{if(l)throw i}}}}},8778:function(e,r,o){"use strict";function t(e,r,o){return r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e}o.d(r,{A:function(){return t}})},63998:function(e,r,o){"use strict";function t(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}o.d(r,{A:function(){return t}})},93:function(e,r,o){"use strict";function t(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}o.d(r,{A:function(){return t}})},18188:function(e,r,o){"use strict";o.d(r,{A:function(){return a}});var t=o(8778);function n(e,r){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),o.push.apply(o,t)}return o}function a(e){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?n(Object(o),!0).forEach((function(r){(0,t.A)(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):n(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}},49839:function(e,r,o){"use strict";function t(e,r){if(null==e)return{};var o,t,n=function(e,r){if(null==e)return{};var o,t,n={},a=Object.keys(e);for(t=0;t<a.length;t++)o=a[t],r.indexOf(o)>=0||(n[o]=e[o]);return n}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)o=a[t],r.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}o.d(r,{A:function(){return t}})},61249:function(e,r,o){"use strict";o.d(r,{A:function(){return i}});var t=o(95112);var n=o(2737),a=o(93);function i(e,r){return(0,t.A)(e)||function(e,r){var o=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var t,n,a=[],i=!0,c=!1;try{for(o=o.call(e);!(i=(t=o.next()).done)&&(a.push(t.value),!r||a.length!==r);i=!0);}catch(l){c=!0,n=l}finally{try{i||null==o.return||o.return()}finally{if(c)throw n}}return a}}(e,r)||(0,n.A)(e,r)||(0,a.A)()}},22489:function(e,r,o){"use strict";o.d(r,{A:function(){return i}});var t=o(29612);var n=o(63998),a=o(2737);function i(e){return function(e){if(Array.isArray(e))return(0,t.A)(e)}(e)||(0,n.A)(e)||(0,a.A)(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.")}()}},12841:function(e,r,o){"use strict";function t(e){return 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},t(e)}o.d(r,{A:function(){return t}})},2737:function(e,r,o){"use strict";o.d(r,{A:function(){return n}});var t=o(29612);function n(e,r){if(e){if("string"===typeof e)return(0,t.A)(e,r);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?(0,t.A)(e,r):void 0}}}}]);
//# sourceMappingURL=5303.842cd411.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,2486,4867,5343,7248],{84867:function(t,n,e){e.r(n),e.d(n,{__assign:function(){return u},__asyncDelegator:function(){return O},__asyncGenerator:function(){return m},__asyncValues:function(){return g},__await:function(){return w},__awaiter:function(){return l},__classPrivateFieldGet:function(){return E},__classPrivateFieldIn:function(){return k},__classPrivateFieldSet:function(){return T},__createBinding:function(){return p},__decorate:function(){return i},__exportStar:function(){return y},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return x},__importStar:function(){return S},__makeTemplateObject:function(){return j},__metadata:function(){return f},__param:function(){return c},__read:function(){return _},__rest:function(){return a},__spread:function(){return b},__spreadArray:function(){return v},__spreadArrays:function(){return d},__values:function(){return h}});var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(t,n)};function o(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var u=function(){return u=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},u.apply(this,arguments)};function a(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function i(t,n,e,r){var o,u=arguments.length,a=u<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(u<3?o(a):u>3?o(n,e,a):o(n,e))||a);return u>3&&a&&Object.defineProperty(n,e,a),a}function c(t,n){return function(e,r){n(e,r,t)}}function f(t,n){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,n)}function l(t,n,e,r){return new(e||(e=Promise))((function(o,u){function a(t){try{c(r.next(t))}catch(n){u(n)}}function i(t){try{c(r.throw(t))}catch(n){u(n)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,i)}c((r=r.apply(t,n||[])).next())}))}function s(t,n){var e,r,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(t,a)}catch(i){u=[6,i],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var p=Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]};function y(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||p(n,t,e)}function h(t){var n="function"===typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,n){var e="function"===typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,u=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=u.next()).done;)a.push(r.value)}catch(i){o={error:i}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(o)throw o.error}}return a}function b(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(_(arguments[n]));return t}function d(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var u=arguments[n],a=0,i=u.length;a<i;a++,o++)r[o]=u[a];return r}function v(t,n,e){if(e||2===arguments.length)for(var r,o=0,u=n.length;o<u;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function m(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),u=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){u.push([t,n,e,r])>1||i(t,n)}))})}function i(t,n){try{(e=o[t](n)).value instanceof w?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(r){l(u[0][3],r)}var e}function c(t){i("next",t)}function f(t){i("throw",t)}function l(t,n){t(n),u.shift(),u.length&&i(u[0][0],u[0][1])}}function O(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:w(t[r](n)),done:"return"===r}:o?o(n):n}:o}}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=h(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function j(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}var P=Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n};function S(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&p(n,t,e);return P(n,t),n}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,n,e,r){if("a"===e&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof n?t!==n||!r:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(t):r?r.value:n.get(t)}function T(t,n,e,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 n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,e):o?o.value=e:n.set(t,e),e}function k(t,n){if(null===n||"object"!==typeof n&&"function"!==typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?n===t:t.has(n)}}}]);
//# sourceMappingURL=5343.dd1c2ddd.chunk.js.map
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5400],{45:function(n,t,e){"use strict";function r(n){return n&&n.replace(/^http:\/\//i,"https://")}e.d(t,{ip:function(){return M},k6:function(){return O},VB:function(){return I},d_:function(){return r},JT:function(){return o},DA:function(){return a},p2:function(){return l},KQ:function(){return s},rV:function(){return u},PA:function(){return p},q$:function(){return i},Zr:function(){return g},GF:function(){return E},XZ:function(){return _},TH:function(){return G},JO:function(){return U},iK:function(){return b},LI:function(){return T},gB:function(){return S}});var i=function(n){return!!n.startsWith("http://")};function o(n,t){var e=n;if(!e)return e;if(null===t||!Array.isArray(t)&&"object"!==typeof t){var r=null===t||void 0===t?"":t;e=e.replace(/\{0\}/g,r)}else e=e.replace(/\{(\w+)\}/g,(function(n,e){var r=t[e];return null===r||void 0===r?"":r}));return e}var u=function(){var n=window.crypto||window.msCrypto;if(n){var t=new Uint32Array(1);return n.getRandomValues(t)[0]/4294967296}return Math.random()},c=function(){return(65536*(1+u())|0).toString(16).substring(1)},a=function(){return"".concat(c()).concat(c(),"-").concat(c(),"-").concat(c(),"-").concat(c(),"-").concat(c()).concat(c()).concat(c())},s=function(n){return n.code||n.keyCode},f=e(3200),d=new RegExp(/.\../),l=function(n,t){var e;void 0===t&&(t=24);try{e=new URL(n).hostname}catch(i){if(!d.test(n))return"";e=n}if(!e)return"";(e=e.toLowerCase()).includes("www.")&&(e=e.replace("www.",""));var r=v(e);return"".concat("https://th.bing.com/th/id/ODF.").concat(r,"?pid=").concat("AMC","&w=").concat(t,"&h=").concat(t,"&r=0")},v=function(n){return(0,f.MD5)(n).toString(f.enc.Base64url)},p=function(n){try{return new URL(n).host}catch(t){return window.location.host}},h=e(80322),m=e.n(h),w=/\{([-\w]+)\}/,x=/({[-\w]+\})/,E=function(n){return n.split(x).filter((function(n){return""!==n}))},g=function(n,t,e){return n.reduce((function(n,r,i){var o,u,c=r,a=null===(o=w.exec(r))||void 0===o?void 0:o[1];if(a&&t.hasOwnProperty(a)){var s=t[a];if(u=s,m().isValidElement(u))return s=e?e(s):s,n.push(m().cloneElement(s,{key:i})),n;c=null!==s&&void 0!==s?s:""}var f=n.length;return f&&"string"===typeof n[f-1]?n[f-1]+=c:n.push(c),n}),[])},y=[],b=function(n){(0,h.useEffect)((function(){return n}),y)},U=function(n){var t=(0,h.useRef)(!1);t.current||(t.current=!0,n())},C=e(94786),F=e.n(C);function I(n){var t=n,e=[];return{setValue:function(n){t!==n&&(t=n,F().unstable_batchedUpdates((function(){e.forEach((function(t){return t(n)}))})))},useValue:function(){var n=function(n){var t=(0,h.useState)(n)[1];return(0,h.useCallback)((function(n){t(n)}),[])}(t);return U((function(){e=e.concat(n)})),b((function(){e=e.filter((function(t){return t!==n}))})),t}}}var N,_={bingMapsOverlay:1,twoUIFlowProgressBar:1,twoUITab:1,bingMapsListContainer:2,mapsListContainer:2,bingMapsNoPushPinContainer:3,twoUINavBar:5,twoUILiveToast:6,twoUINavBarOverHeader:11,twoUILeftNavBypassBlocksButton:1e4,twoUIPanel:10001,twoUINotificationBar:10002},L=e(84867),M=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return(0,L.__extends)(t,n),t.prototype.getSnapshotBeforeUpdate=function(n){if(!n.isUpdating&&this.props.isUpdating&&document.activeElement){var t=F().findDOMNode(this);t&&t.contains(document.activeElement)&&(this.savedFocusElement=document.activeElement,N=this)}return null},t.prototype.componentDidUpdate=function(n){if(n.isUpdating&&!this.props.isUpdating&&this.savedFocusElement){var t=F().findDOMNode(this);if(t&&document.activeElement===document.body&&N===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 e=t.querySelector("".concat(this.savedFocusElement.tagName,'[data-bi-id="').concat(this.savedFocusElement.dataset.biId,'"]'));e&&e.focus()}this.savedFocusElement=void 0}},t.prototype.render=function(){return this.props.children},t}(m().Component),B=["s","m","l","xl","xxl","xxxl"],A=(0,h.createContext)(null),k={s:0,m:480,l:640,xl:1024,xxl:1366,xxxl:1920},P={s:k.m-1,m:k.l-1,l:k.xl-1,xl:k.xxl-1,xxl:k.xxxl-1,xxxl:Number.MAX_SAFE_INTEGER};function S(n,t,e){return e.find((function(e){return n<=t[e]}))||e[e.length-1]}var T=function(){var n=(0,h.useContext)(A);if(null===n)throw new Error("ViewportContext: Context is uninitialized. Confirm that your component is contained within an ViewportContext.Provider component.");return n.viewportType};function V(n,t,e){var r=(0,h.useState)(S(window.innerWidth,e,n)),i=r[0],o=r[1],u={},c=function(t){if(t.matches){var r=u[t.media]||S(window.innerWidth,e,n);o(r)}};return(0,h.useEffect)((function(){var r=window.matchMedia?n.map((function(n){var r=window.matchMedia("(max-width: ".concat(e[n],"px) and (min-width: ").concat(t[n],"px)"));return u[r.media]=n,r})):void 0;return r&&r.forEach((function(n){void 0!==n&&void 0!==n.addEventListener&&n.addEventListener("change",c)})),o(S(window.innerWidth,e,n)),function(){r&&r.forEach((function(n){void 0!==n&&void 0!==n.removeEventListener&&n.removeEventListener("change",c)}))}}),[]),i}var O=function(n){var t=n.children,e=V(B,k,P);return m().createElement(A.Provider,{value:{viewportType:e}},t)},R=["s","m","l"],D={s:0,m:548,l:1284},W={s:D.m-1,m:D.l-1,l:Number.MAX_SAFE_INTEGER},G=function(){return V(R,D,W)}},25156:function(){}}]);
//# sourceMappingURL=5400.d3b9f9c4.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5415],{31821:function(r,t){t.A=function(r){for(var t,n=0,e=0,o=r.length;o>=4;++e,o-=4)t=1540483477*(65535&(t=255&r.charCodeAt(e)|(255&r.charCodeAt(++e))<<8|(255&r.charCodeAt(++e))<<16|(255&r.charCodeAt(++e))<<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&r.charCodeAt(e+2))<<16;case 2:n^=(255&r.charCodeAt(e+1))<<8;case 1:n=1540483477*(65535&(n^=255&r.charCodeAt(e)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}},57992:function(r,t,n){n.d(t,{F:function(){return c},U:function(){return i}});var e=n(80322),o=e.createContext(void 0),u={},c=o.Provider,i=function(){return e.useContext(o)?e.useContext(o):u}},29612:function(r,t,n){function e(r,t){(null==t||t>r.length)&&(t=r.length);for(var n=0,e=new Array(t);n<t;n++)e[n]=r[n];return e}n.d(t,{A:function(){return e}})},95112:function(r,t,n){function e(r){if(Array.isArray(r))return r}n.d(t,{A:function(){return e}})},8778:function(r,t,n){function e(r,t,n){return t in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}n.d(t,{A:function(){return e}})},63998:function(r,t,n){function e(r){if("undefined"!==typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r)}n.d(t,{A:function(){return e}})},93:function(r,t,n){function e(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:function(){return e}})},18188:function(r,t,n){n.d(t,{A:function(){return u}});var e=n(8778);function o(r,t){var n=Object.keys(r);if(Object.getOwnPropertySymbols){var e=Object.getOwnPropertySymbols(r);t&&(e=e.filter((function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.push.apply(n,e)}return n}function u(r){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,e.A)(r,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(r,t,Object.getOwnPropertyDescriptor(n,t))}))}return r}},49839:function(r,t,n){function e(r,t){if(null==r)return{};var n,e,o=function(r,t){if(null==r)return{};var n,e,o={},u=Object.keys(r);for(e=0;e<u.length;e++)n=u[e],t.indexOf(n)>=0||(o[n]=r[n]);return o}(r,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(r);for(e=0;e<u.length;e++)n=u[e],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(r,n)&&(o[n]=r[n])}return o}n.d(t,{A:function(){return e}})},61249:function(r,t,n){n.d(t,{A:function(){return c}});var e=n(95112);var o=n(2737),u=n(93);function c(r,t){return(0,e.A)(r)||function(r,t){var n=null==r?null:"undefined"!==typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=n){var e,o,u=[],c=!0,i=!1;try{for(n=n.call(r);!(c=(e=n.next()).done)&&(u.push(e.value),!t||u.length!==t);c=!0);}catch(a){i=!0,o=a}finally{try{c||null==n.return||n.return()}finally{if(i)throw o}}return u}}(r,t)||(0,o.A)(r,t)||(0,u.A)()}},22489:function(r,t,n){n.d(t,{A:function(){return c}});var e=n(29612);var o=n(63998),u=n(2737);function c(r){return function(r){if(Array.isArray(r))return(0,e.A)(r)}(r)||(0,o.A)(r)||(0,u.A)(r)||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.")}()}},2737:function(r,t,n){n.d(t,{A:function(){return o}});var e=n(29612);function o(r,t){if(r){if("string"===typeof r)return(0,e.A)(r,t);var n=Object.prototype.toString.call(r).slice(8,-1);return"Object"===n&&r.constructor&&(n=r.constructor.name),"Map"===n||"Set"===n?Array.from(r):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,e.A)(r,t):void 0}}}}]);
//# sourceMappingURL=5415.155ccb05.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5418],{35418:function(n,r,a){function c(n){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];var c={};return r.forEach((function(r){return c[r]=n(r)})),c}a.r(r),a.d(r,{makeObject:function(){return c}})}}]);
//# sourceMappingURL=5418.a8f8bcb0.chunk.js.map
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[585,5418,5629,6156,7387,8575],{86156:function(n,r,t){"use strict";t.r(r),t.d(r,{filterOutNull:function(){return u}});var e=t(24726);function u(n){return n.filter(e.O)}},45629:function(n,r,t){"use strict";function e(n,r){return void 0===n?r:n}t.r(r),t.d(r,{areEqualNumbers:function(){return w},backfillUndefined:function(){return e},cacheLatest:function(){return b},countStringOccurrences:function(){return i},createArrayAndFillWith:function(){return x},defaultToEmptyArray:function(){return v},endsWith:function(){return T},filterOutNull:function(){return o.filterOutNull},find:function(){return f},flattenJoin:function(){return l},generateGuid:function(){return A},hasOwnProperty:function(){return d},identity:function(){return k},isDefined:function(){return E.O},isEmpty:function(){return z},isSafeInteger:function(){return C()},isString:function(){return B},keys:function(){return s.keys},lowerFirst:function(){return I},makeObject:function(){return M.makeObject},matchAll:function(){return P.matchAll},memoizeFunction:function(){return W.memoizeFunction},memoizeFunctionProperties:function(){return q.memoizeFunctionProperties},memoizeSelector:function(){return G.memoizeSelector},merge:function(){return L},neverGuard:function(){return j},neverGuardDefault:function(){return _},omitEmpty:function(){return h},omitNull:function(){return g},range:function(){return U},safeJoinStrings:function(){return V},sortObjectBy:function(){return $},startsWith:function(){return J},throwError:function(){return X.throwError},undefinedToNull:function(){return O},uniq:function(){return K},uniqBy:function(){return H},updateWith:function(){return m},upperFirst:function(){return D}});var u=t(84867);function i(n){return n.reduce((function(n,r){var t;return(0,u.__assign)((0,u.__assign)({},n),((t={})[r]=(n[r]||0)+1,t))}),{})}var o=t(86156);function f(n,r){for(var t=0;t<n.length;t++){var e=n[t];if(r(e))return e}}var c=t(12606),a=t.n(c);function l(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return a()((0,o.filterOutNull)(n)).join(",")}var s=t(87387),p=[];function v(n){return n||p}function h(n){return y(n,(function(n){return void 0!==n&&null!==n&&""!==n&&(!(n instanceof Array)||n.length>0)}))}function g(n){return y(n,(function(n){return null!==n}))}function y(n,r){if(void 0===n||null===n)return n;for(var t={},e=0,u=(0,s.keys)(n);e<u.length;e++){var i=u[e];r(n[i])&&(t[i]=n[i])}return t}function m(n,r){return Object.assign({},n,r)}function d(n,r){return n.hasOwnProperty(r)}function b(n){var r=void 0;return function(t){if(r&&t===r.arg)return r.result;var e=n(t);return r={arg:t,result:e},e}}function O(n){return void 0===n?null:n}function x(n,r){var t=[];if(n>0&&n<Number.MAX_VALUE)for(var e=0;e<n;e+=1)t.push(r(e));return t}function k(n){return n}function w(n,r,t){return void 0===t&&(t=1e-5),Math.abs(n-r)<t}function j(n){return n}function _(n,r){return r}var A=function(){var n=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return n()+n()+"-"+n()+"-"+n()+"-"+n()+"-"+n()+n()+n()},E=t(24726),N=t(50981),S=t.n(N);function z(n){return S()(n)}var F=t(15761),C=t.n(F),M=t(35418),P=t(18575),W=t(39151),q=t(80339),G=t(11347);function L(n,r,t){if(0===r.length)return n;if(0===n.length)return r;for(var e=0,u=0,i=[];e<n.length&&u<r.length;)if(1===t(n[e],r[u]))i.push(r[u++]);else i.push(n[e++]);return e===n.length&&i.push.apply(i,r.slice(u)),u===r.length&&i.push.apply(i,n.slice(e)),i}function U(n,r,t){return(0,u.__spreadArray)([],Array(n),!0).map((function(n,e){return(r||0)+e*(t||1)}))}function $(n,r){var t=(0,s.keys)(n).sort((function(n,t){return r(n.toString()).localeCompare(r(t.toString()))})),e={};return t.forEach((function(r){e[r]=n[r]})),e}function B(n){return"string"===typeof n}function D(n){return n.length?n[0].toUpperCase()+n.slice(1):n}function I(n){return n.length?n[0].toLowerCase()+n.slice(1):n}function J(n,r){return n.slice(0,r.length)===r}function T(n,r){return n.slice(0-r.length)===r}function V(n,r){return n.join(r)}var X=t(70585);function H(n,r){var t=n.map(r);return n.filter((function(n,e){return t.indexOf(r(n))===e}))}function K(n){return H(n,(function(n){return n}))}},24726:function(n,r,t){"use strict";function e(n){return null!==n&&void 0!==n}t.d(r,{O:function(){return e}})},87387:function(n,r,t){"use strict";function e(n){return"string"===typeof n?Object.keys(n.split("")):"number"===typeof n||"boolean"===typeof n?[]:Object.keys(n)}t.r(r),t.d(r,{keys:function(){return e}})},35418:function(n,r,t){"use strict";function e(n){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];var e={};return r.forEach((function(r){return e[r]=n(r)})),e}t.r(r),t.d(r,{makeObject:function(){return e}})},18575:function(n,r,t){"use strict";function e(n,r){var t=[];if(!r.global)throw new Error("regular expression must have the global flag set");var e=null;do{(e=r.exec(n))&&t.push(e)}while(e&&e[0]);return t}t.r(r),t.d(r,{matchAll:function(){return e}})},70585:function(n,r,t){"use strict";function e(n){throw new Error(n)}t.r(r),t.d(r,{throwError:function(){return e}})},46004:function(n,r,t){var e=t(86228),u=t(4879);n.exports=function n(r,t,i,o,f){var c=-1,a=r.length;for(i||(i=u),f||(f=[]);++c<a;){var l=r[c];t>0&&i(l)?t>1?n(l,t-1,i,o,f):e(f,l):o||(f[f.length]=l)}return f}},8940:function(n,r,t){var e=t(24796),u=/^\s+/;n.exports=function(n){return n?n.slice(0,e(n)+1).replace(u,""):n}},4879:function(n,r,t){var e=t(49485),u=t(71240),i=t(20573),o=e?e.isConcatSpreadable:void 0;n.exports=function(n){return i(n)||u(n)||!!(o&&n&&n[o])}},24796:function(n){var r=/\s/;n.exports=function(n){for(var t=n.length;t--&&r.test(n.charAt(t)););return t}},12606:function(n,r,t){var e=t(46004);n.exports=function(n){return(null==n?0:n.length)?e(n,1):[]}},50981:function(n,r,t){var e=t(64108),u=t(81793),i=t(71240),o=t(20573),f=t(10330),c=t(71484),a=t(8683),l=t(58331),s=Object.prototype.hasOwnProperty;n.exports=function(n){if(null==n)return!0;if(f(n)&&(o(n)||"string"==typeof n||"function"==typeof n.splice||c(n)||l(n)||i(n)))return!n.length;var r=u(n);if("[object Map]"==r||"[object Set]"==r)return!n.size;if(a(n))return!e(n).length;for(var t in n)if(s.call(n,t))return!1;return!0}},22162:function(n,r,t){var e=t(84949);n.exports=function(n){return"number"==typeof n&&n==e(n)}},15761:function(n,r,t){var e=t(22162),u=9007199254740991;n.exports=function(n){return e(n)&&n>=-9007199254740991&&n<=u}},56534:function(n,r,t){var e=t(66380),u=t(61462);n.exports=function(n){return"symbol"==typeof n||u(n)&&"[object Symbol]"==e(n)}},45388:function(n,r,t){var e=t(23410),u=1/0;n.exports=function(n){return n?(n=e(n))===u||n===-1/0?17976931348623157e292*(n<0?-1:1):n===n?n:0:0===n?n:0}},84949:function(n,r,t){var e=t(45388);n.exports=function(n){var r=e(n),t=r%1;return r===r?t?r-t:r:0}},23410:function(n,r,t){var e=t(8940),u=t(74537),i=t(56534),o=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,c=/^0o[0-7]+$/i,a=parseInt;n.exports=function(n){if("number"==typeof n)return n;if(i(n))return NaN;if(u(n)){var r="function"==typeof n.valueOf?n.valueOf():n;n=u(r)?r+"":r}if("string"!=typeof n)return 0===n?n:+n;n=e(n);var t=f.test(n);return t||c.test(n)?a(n.slice(2),t?2:8):o.test(n)?NaN:+n}}}]);
//# sourceMappingURL=5629.215c6435.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5687],{70925:function(e,n,t){t.r(n),t.d(n,{DefaultTwoUITelemetryIds:function(){return r.PF},TwoUIOperationsProvider:function(){return i.sB},TwoUIProgressView:function(){return w},TwoUITelemetryProvider:function(){return r.Xo},reportComponentValidationErrorEvent:function(){return r.b4},useComponentMountLogger:function(){return r.EN},useTwoUIComponentQos:function(){return l},useTwoUIFlights:function(){return r.Lq},useTwoUIOperationDispatcher:function(){return i.YJ},useTwoUITelemetry:function(){return r.ZJ},useTwoUITelemetryIds:function(){return r.VZ}});var r=t(35913),i=t(32445),o=t(80322),u=t.n(o),a=t(46611),s={startOperation:function(e,n,t){},reportSuccess:function(e,n,t){},reportFailure:function(e,n,t,r){},reportCancel:function(e,n){}},c=(0,o.createContext)(s),l=function(){var e=(0,a.Q)().componentQosContext,n=c;e&&(n=e);var t=(0,o.useContext)(n);if(!t)throw new Error("TwoUIComponentQoS: Context is uninitialized");return t},d=t(84867),p=t(45),f=function(e){var n,t=(0,i.pV)();if(e.updatingView){var r=null===(n=t[e.operationData.operationName])||void 0===n?void 0:n.status;return u().createElement(p.ip,{isUpdating:"updating"===r},u().createElement(v,(0,d.__assign)({},e)))}return u().createElement(v,(0,d.__assign)({},e))},v=function(e){var n=e.operationData,t=e.finishedView,r=e.failedView,o=void 0===r?null:r,u=e.firstLoadView,a=void 0===u?null:u,s=e.inertView,c=void 0===s?null:s,l=e.updateFailedView,d=void 0===l?o:l,p=e.updatingView,f=void 0===p?t:p,v=(0,i.pV)()[n.operationName],w=null===v||void 0===v?void 0:v.status;if(!w)return"finished"===n.defaultState?t:c;switch(w){case"updating":return f;case"first-load":return a;case"finished":return t;case"update-failed":return d;case"failed":return o;default:return c}},w=function(e){var n,t,r=null!==(t=null===(n=(0,a.Q)().operationEntities)||void 0===n?void 0:n.ExternalProgressView)&&void 0!==t?t:f;return u().createElement(r,(0,d.__assign)({},e))}}}]);
//# sourceMappingURL=5687.8c848524.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5788],{25788:function(n,r,t){t.r(r),t.d(r,{createICUString:function(){return l},getPluralString:function(){return p},getPluralStringUnsafe:function(){return g},getStringForRange:function(){return s},mapMidgardLocaleToCLDRLocale:function(){return a},mapNumberToRangeForLocale:function(){return F},parsePluralString:function(){return v}});var c=t(84867),o=t(73594),u=t(44886),e=t.n(u),i=["zero","one","two","few","many","other"],f={zero:/zero\s*{([^}]+)}/,one:/one\s*{([^}]+)}/,two:/two\s*{([^}]+)}/,few:/few\s*{([^}]+)}/,many:/many\s*{([^}]+)}/,other:/other\s*{([^}]+)}/};function a(n){return n.split("-")[0]}function s(n,r){var t=(0,c.__read)(f[r].exec(n)||[],2)[1];return void 0===t?"":t}function F(n,r){return e()(r,n)}function l(n){var r="";return i.forEach((function(t){n[t]&&(r+=" ".concat(t,"{").concat(n[t],"}"))})),"".concat("{count, plural,").concat(r).concat("}")}function v(n,r,t){return s(n,F(r,t)||"other")}function g(n,r,t){if(r<0||r!==1/0&&!(0,o.isSafeInteger)(r))throw new Error("count must be a positive integer or Infinity");return v(n,r,t)}function p(n,r,t){if(void 0===r)return n;try{return g(n,r,t||"en")}catch(c){return n}}},44886:function(n){var r={};function t(n){var t;return r[n]?n:(t=n.toLowerCase().replace("_","-"),r[t]?t:(t=t.split("-")[0],r[t]?t:null))}function c(n,c){var o=t(n);if(!o)return-1;if(!r[o].cFn)return 0;var u=String(c),e=u.indexOf(".")<0?"":u.split(".")[1],i=e.length,f=+c,a=+u.split(".")[0],s=0===e.length?0:+e.replace(/0+$/,"");return r[o].cFn(f,a,i,+e,s)}function o(n,c){var o=t(n);if(!o)return-1;if(!r[o].oFn)return 0;var u=String(c),e=u.indexOf(".")<0?"":u.split(".")[1],i=e.length,f=+c,a=+u.split(".")[0],s=0===e.length?0:+e.replace(/0+$/,"");return r[o].oFn(f,a,i,+e,s)}n.exports=function(n,o){var u=t(n);return u?r[u].c[c(u,o)]:null},n.exports.indexOf=c,n.exports.forms=function(n){var c=t(n);return r[c]?r[c].c:null},n.exports.ordinal=function(n,c){var u=t(n);return r[u]?r[u].o[o(u,c)]:null},n.exports.ordinal.indexOf=o,n.exports.ordinal.forms=function(n){var c=t(n);return r[c]?r[c].o:null};var u=["zero","one","two","few","many","other"];function e(n){return u[n]}function i(n,t){var c;for(t.c=t.c?t.c.map(e):["other"],t.o=t.o?t.o.map(e):["other"],c=0;c<n.length;c++)r[n[c]]=t}function f(n,r,t){return n<=t&&t<=r&&t%1===0}function a(n,r){return n.indexOf(r)>=0}i(["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(n){return 1===n?0:1}}),i(["ak","bho","guw","ln","mg","nso","pa","ti","wa"],{c:[1,5],cFn:function(n){return f(0,1,n)?0:1}}),i(["am","fa","kn","zu"],{c:[1,5],cFn:function(n,r){return 0===r||1===n?0:1}}),i(["ar","ars"],{c:[0,1,2,3,4,5],cFn:function(n){var r=n%100;return 0===n?0:1===n?1:2===n?2:f(3,10,r)?3:f(11,99,r)?4:5}}),i(["as","bn"],{c:[1,5],cFn:function(n,r){return 0===r||1===n?0:1},o:[1,2,3,4,5],oFn:function(n){return a([1,5,7,8,9,10],n)?0:a([2,3],n)?1:4===n?2:6===n?3:4}}),i(["ast","de","et","fi","fy","gl","ia","io","ji","nl","pt-pt","sw","ur","yi"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1}}),i(["az"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,3,4,5],oFn:function(n,r){var t=r%10,c=r%100,o=r%1e3;return a([1,2,5,7,8],t)||a([20,50,70,80],c)?0:a([3,4],t)||a([100,200,300,400,500,600,700,800,900],o)?1:0===r||6===t||a([40,60,90],c)?2:3}}),i(["be"],{c:[1,3,4,5],cFn:function(n){var r=n%10,t=n%100;return 1===r&&11!==t?0:f(2,4,r)&&!f(12,14,t)?1:0===r||f(5,9,r)||f(11,14,t)?2:3},o:[3,5],oFn:function(n){var r=n%100;return a([2,3],n%10)&&!a([12,13],r)?0:1}}),i(["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"],{}),i(["br"],{c:[1,2,3,4,5],cFn:function(n){var r=n%10,t=n%100,c=n%1e6;return 1!==r||a([11,71,91],t)?2!==r||a([12,72,92],t)?!f(3,4,r)&&9!==r||f(10,19,t)||f(70,79,t)||f(90,99,t)?0!==n&&0===c?3:4:2:1:0}}),i(["bs","hr","sh","sr"],{c:[1,3,5],cFn:function(n,r,t,c){var o=r%10,u=r%100,e=c%10,i=c%100;return 0===t&&1===o&&11!==u||1===e&&11!==i?0:0===t&&f(2,4,o)&&!f(12,14,u)||f(2,4,e)&&!f(12,14,i)?1:2}}),i(["ca"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[1,2,3,5],oFn:function(n){return a([1,3],n)?0:2===n?1:4===n?2:3}}),i(["ceb"],{c:[1,5],cFn:function(n,r,t,c){var o=r%10,u=c%10;return 0===t&&a([1,2,3],r)||0===t&&!a([4,6,9],o)||0!==t&&!a([4,6,9],u)?0:1}}),i(["cs","sk"],{c:[1,3,4,5],cFn:function(n,r,t){return 1===r&&0===t?0:f(2,4,r)&&0===t?1:0!==t?2:3}}),i(["cy"],{c:[0,1,2,3,4,5],cFn:function(n){return 0===n?0:1===n?1:2===n?2:3===n?3:6===n?4:5},o:[0,1,2,3,4,5],oFn:function(n){return a([0,7,8,9],n)?0:1===n?1:2===n?2:a([3,4],n)?3:a([5,6],n)?4:5}}),i(["da"],{c:[1,5],cFn:function(n,r,t,c,o){return 1===n||0!==o&&a([0,1],r)?0:1}}),i(["dsb","hsb"],{c:[1,2,3,5],cFn:function(n,r,t,c){var o=r%100,u=c%100;return 0===t&&1===o||1===u?0:0===t&&2===o||2===u?1:0===t&&f(3,4,o)||f(3,4,u)?2:3}}),i(["en"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[1,2,3,5],oFn:function(n){var r=n%10,t=n%100;return 1===r&&11!==t?0:2===r&&12!==t?1:3===r&&13!==t?2:3}}),i(["ff","kab"],{c:[1,5],cFn:function(n,r){return a([0,1],r)?0:1}}),i(["fil","tl"],{c:[1,5],cFn:function(n,r,t,c){var o=r%10,u=c%10;return 0===t&&a([1,2,3],r)||0===t&&!a([4,6,9],o)||0!==t&&!a([4,6,9],u)?0:1},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["fr","hy"],{c:[1,5],cFn:function(n,r){return a([0,1],r)?0:1},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["ga"],{c:[1,2,3,4,5],cFn:function(n){return 1===n?0:2===n?1:f(3,6,n)?2:f(7,10,n)?3:4},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["gd"],{c:[1,2,3,5],cFn:function(n){return a([1,11],n)?0:a([2,12],n)?1:f(3,10,n)||f(13,19,n)?2:3},o:[1,2,3,5],oFn:function(n){return a([1,11],n)?0:a([2,12],n)?1:a([3,13],n)?2:3}}),i(["gu","hi"],{c:[1,5],cFn:function(n,r){return 0===r||1===n?0:1},o:[1,2,3,4,5],oFn:function(n){return 1===n?0:a([2,3],n)?1:4===n?2:6===n?3:4}}),i(["gv"],{c:[1,2,3,4,5],cFn:function(n,r,t){var c=r%10;return 0===t&&1===c?0:0===t&&2===c?1:0===t&&a([0,20,40,60,80],r%100)?2:0!==t?3:4}}),i(["he","iw"],{c:[1,2,4,5],cFn:function(n,r,t){var c=n%10;return 1===r&&0===t?0:2===r&&0===t?1:0!==t||f(0,10,n)||0!==c?3:2}}),i(["hu"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,5],oFn:function(n){return a([1,5],n)?0:1}}),i(["is"],{c:[1,5],cFn:function(n,r,t,c,o){return 0===o&&1===r%10&&11!==r%100||0!==o?0:1}}),i(["it","sc","scn"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[4,5],oFn:function(n){return a([11,8,80,800],n)?0:1}}),i(["iu","naq","se","sma","smi","smj","smn","sms"],{c:[1,2,5],cFn:function(n){return 1===n?0:2===n?1:2}}),i(["ka"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,4,5],oFn:function(n,r){var t=r%100;return 1===r?0:0===r||f(2,20,t)||40===t||60===t||80===t?1:2}}),i(["kk"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[4,5],oFn:function(n){var r=n%10;return 6===r||9===r||0===r&&0!==n?0:1}}),i(["ksh"],{c:[0,1,5],cFn:function(n){return 0===n?0:1===n?1:2}}),i(["kw"],{c:[0,1,2,3,4,5],cFn:function(n){var r=n%100,t=n%1e3,c=n%1e5,o=n%1e6;return 0===n?0:1===n?1:a([2,22,42,62,82],r)||0===t&&(f(1e3,2e4,c)||4e4===c||6e4===c||8e4===c)||0!==n&&1e5===o?2:a([3,23,43,63,83],r)?3:1!==n&&a([1,21,41,61,81],r)?4:5},o:[1,4,5],oFn:function(n){var r=n%100;return f(1,4,n)||f(1,4,r)||f(21,24,r)||f(41,44,r)||f(61,64,r)||f(81,84,r)?0:5===n||5===r?1:2}}),i(["lag"],{c:[0,1,5],cFn:function(n,r){return 0===n?0:a([0,1],r)&&0!==n?1:2}}),i(["lo","ms","vi"],{o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["lt"],{c:[1,3,4,5],cFn:function(n,r,t,c){var o=n%10,u=n%100;return 1!==o||f(11,19,u)?f(2,9,o)&&!f(11,19,u)?1:0!==c?2:3:0}}),i(["lv","prg"],{c:[0,1,5],cFn:function(n,r,t,c){var o=n%10,u=n%100,e=c%100,i=c%10;return 0===o||f(11,19,u)||2===t&&f(11,19,e)?0:1===o&&11!==u||2===t&&1===i&&11!==e||2!==t&&1===i?1:2}}),i(["mk"],{c:[1,5],cFn:function(n,r,t,c){return 0===t&&1===r%10&&11!==r%100||1===c%10&&11!==c%100?0:1},o:[1,2,4,5],oFn:function(n,r){var t=r%10,c=r%100;return 1===t&&11!==c?0:2===t&&12!==c?1:a([7,8],t)&&!a([17,18],c)?2:3}}),i(["mo","ro"],{c:[1,3,5],cFn:function(n,r,t){return 1===r&&0===t?0:0!==t||0===n||f(2,19,n%100)?1:2},o:[1,5],oFn:function(n){return 1===n?0:1}}),i(["mr"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,2,3,5],oFn:function(n){return 1===n?0:a([2,3],n)?1:4===n?2:3}}),i(["mt"],{c:[1,3,4,5],cFn:function(n){var r=n%100;return 1===n?0:0===n||f(2,10,r)?1:f(11,19,r)?2:3}}),i(["ne"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,5],oFn:function(n){return f(1,4,n)?0:1}}),i(["or"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,2,3,4,5],oFn:function(n){return 1===n||5===n||f(7,9,n)?0:a([2,3],n)?1:4===n?2:6===n?3:4}}),i(["pl"],{c:[1,3,4,5],cFn:function(n,r,t){var c=r%10,o=r%100;return 1===r&&0===t?0:0===t&&f(2,4,c)&&!f(12,14,o)?1:0===t&&1!==r&&f(0,1,c)||0===t&&f(5,9,c)||0===t&&f(12,14,o)?2:3}}),i(["pt"],{c:[1,5],cFn:function(n,r){return f(0,1,r)?0:1}}),i(["ru"],{c:[1,3,4,5],cFn:function(n,r,t){var c=r%10,o=r%100;return 0===t&&1===c&&11!==o?0:0===t&&f(2,4,c)&&!f(12,14,o)?1:0===t&&0===c||0===t&&f(5,9,c)||0===t&&f(11,14,o)?2:3}}),i(["shi"],{c:[1,3,5],cFn:function(n,r){return 0===r||1===n?0:f(2,10,n)?1:2}}),i(["si"],{c:[1,5],cFn:function(n,r,t,c){return a([0,1],n)||0===r&&1===c?0:1}}),i(["sl"],{c:[1,2,3,5],cFn:function(n,r,t){var c=r%100;return 0===t&&1===c?0:0===t&&2===c?1:0===t&&f(3,4,c)||0!==t?2:3}}),i(["sq"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[1,4,5],oFn:function(n){return 1===n?0:4===n%10&&14!==n%100?1:2}}),i(["sv"],{c:[1,5],cFn:function(n,r,t){return 1===r&&0===t?0:1},o:[1,5],oFn:function(n){var r=n%100;return a([1,2],n%10)&&!a([11,12],r)?0:1}}),i(["tk"],{c:[1,5],cFn:function(n){return 1===n?0:1},o:[3,5],oFn:function(n){return a([6,9],n%10)||10===n?0:1}}),i(["tzm"],{c:[1,5],cFn:function(n){return f(0,1,n)||f(11,99,n)?0:1}}),i(["uk"],{c:[1,3,4,5],cFn:function(n,r,t){var c=r%10,o=r%100;return 0===t&&1===c&&11!==o?0:0===t&&f(2,4,c)&&!f(12,14,o)?1:0===t&&0===c||0===t&&f(5,9,c)||0===t&&f(11,14,o)?2:3},o:[3,5],oFn:function(n){return 3===n%10&&13!==n%100?0:1}})}}]);
//# sourceMappingURL=5788.e6eeb542.chunk.js.map
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5847],{83974:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mapStringsWithPlaceholdersToStandardFormat=r.mapStringsToStandardFormat=r.declarePluralStringWithPlaceholders=r.declarePluralString=void 0;var n=t(34852),o=t(24096),i=t(2338),a=t(88721),u=t(73790),c=t(47130);function l(e){var r=e.comment,t=e.placeholders,i=e.strings,u={comment:r,placeholders:t,text:function(e){return(0,n.createICUString)((0,a.doPseudoLocalization)()?(0,o.pseudoLocalizePluralWithPlaceholders)(i,e):i(e))}};return u}r.declarePluralString=function(e,r){var t=r&&{text:(0,n.createICUString)(r.strings),comment:r.comment},a=function(r){return void 0===r&&(r=(0,i.getDefaultStringProvider)()),(0,o.resolveString)(e,t,r)};return a.toString=a,a.key=e,a},r.declarePluralStringWithPlaceholders=function(e,r){var t=r&&l(r),n=function(r,n){return void 0===n&&(n=(0,i.getDefaultStringProvider)()),(0,o.resolveStringWithPlaceholders)(e,t,n,{alreadyPseudoLocalized:!0})(r)};return n.toString=function(r){return void 0===r&&(r=(0,i.getDefaultStringProvider)()),(0,a.isDevLocalization)()&&t||!(0,c.stringExists)(e,r)&&t?(0,u.getStringDescriptionWithPlaceholders)(e,t).stringToBeLocalized:(0,c.lookUpString)(e,r)},n.key=e,n},r.mapStringsToStandardFormat=function(e){var r=e.comment,t=e.strings;return{text:(0,n.createICUString)(t),comment:r}},r.mapStringsWithPlaceholdersToStandardFormat=l},24096:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.pseudoLocalizePluralWithPlaceholders=r.declareStringWithPlaceholders=r.declareString=r.lookupStringInStringProvider=r.resolveStringWithPlaceholders=r.resolveString=void 0;var n=t(74387),o=t(27101),i=t(2338),a=t(88721),u=t(73790),c=t(33106),l=t(47130),d=/\\{\\d+\\}/g,s=(0,o.memoizeFunction)((function(e){return new RegExp("\\{".concat(e,"\\}"),"g")}));function g(e,r,t){try{return(0,a.isDevLocalization)()&&r?(0,a.doPseudoLocalization)()?function(e){var r={},t={};(e.match(/({.+?})/g)||[]).forEach((function(e,n){var o="".concat(S,"_").concat(n);r[e]=o,t[o]=e}));var n=Object.keys(r).reduce((function(e,t){return e.replace(t,r[t])}),L(e)),o=(0,c.pseudoLocalize)(n);return Object.keys(t).reduce((function(e,r){return e.replace(r,t[r])}),h(o))}(r.text):r.text:!(0,l.stringExists)(e,t)&&r?r.text:(0,l.lookUpString)(e,t)}catch(n){return(0,l.handleLocalizationError)(n,t),""}}r.resolveString=g;var f=function(e,r){return function(t){try{return e(t)}catch(n){return(0,l.handleLocalizationError)(n,r),""}}};function p(e,r,t,o){try{return(0,a.isDevLocalization)()&&r&&r.text&&!(null===o||void 0===o?void 0:o.alreadyPseudoLocalized)?f((function(e){return(0,a.doPseudoLocalization)()?function(e,r){var t={},o={};(0,n.keys)(r).forEach((function(e,n){var i="".concat(S,"_").concat(n);t[e]=i,o[i]=r[e]}));var i=(0,c.pseudoLocalize)(L(e.text(t)));return(0,n.keys)(o).reduce((function(e,r){return e.replace(new RegExp(m(r),"g"),o[r])}),h(i))}(r,e):r.text(e)}),t):!(0,l.stringExists)(e,t)&&r&&r.text?f(r.text,t):f((function(r){return(0,n.keys)(r).sort().reduce((function(e,t,n){var o=r[t],i=("string"===typeof o&&o||o&&o.toString&&o.toString()||"").replace(d,"");return(e||"").replace(s(n),i)}),(0,l.lookUpString)(e,t))}),t)}catch(i){return(0,l.handleLocalizationError)(i,t),function(){return""}}}r.resolveStringWithPlaceholders=p,r.lookupStringInStringProvider=function(e){return function(r){return function(t){return t?p(r,void 0,e)(t):g(r,void 0,e)}}},r.declareString=function(e,r){var t=function(t){return void 0===t&&(t=(0,i.getDefaultStringProvider)()),g(e,r,t)};return t.toString=t,t.key=e,t},r.declareStringWithPlaceholders=function(e,r){var t=function(t,n){return void 0===n&&(n=(0,i.getDefaultStringProvider)()),p(e,r,n)(t)};return t.toString=function(t){return void 0===t&&(t=(0,i.getDefaultStringProvider)()),(0,a.isDevLocalization)()&&r||!(0,l.stringExists)(e,t)&&r?(0,u.getStringDescriptionWithPlaceholders)(e,r).stringToBeLocalized:(0,l.lookUpString)(e,t)},t.key=e,t};var S="0.7059175321136157";var v="->INF::",P="".concat(S,"_-1");function L(e){return e.replace(new RegExp(v,"g"),P)}function h(e){return e.replace(new RegExp(P,"g"),v)}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}r.pseudoLocalizePluralWithPlaceholders=function(e,r){var t={},o={};(0,n.keys)(r).forEach((function(e,n){var i="".concat(S,"_").concat(n);t[e]=i,o[i]=r[e]}));var i=e(t);return(0,n.keys)(i).forEach((function(e){var r=(0,c.pseudoLocalize)(L(i[e]));i[e]=(0,n.keys)(o).reduce((function(e,r){return e.replace(new RegExp(m(r),"g"),o[r])}),h(r))})),i}},2338:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.lookupStringInDefaultStringProvider=r.clearStringMapLoadersForDefaultStringProvider=r.setCurrentLocaleForDefaultStringProvider=r.getCurrentLocaleForDefaultStringProvider=r.addStringMapLoaderForDefaultStringProvider=r.addStringMapForDefaultStringProvider=r.setLocalizationErrorHandlerForDefaultStringProvider=r.getDefaultStringProvider=void 0;var n=t(84867),o=t(88721),i=t(47130),a={currentLocale:void 0,strings:{},errorHandler:function(e){return console.error(e)},loaders:[],stringMapInitialized:!1,suppressEmptyStringMapErrors:(0,o.isTest)()};function u(){return a}r.getDefaultStringProvider=u,r.setLocalizationErrorHandlerForDefaultStringProvider=function(e){a=(0,i.setLocalizationErrorHandler)(e,a)},r.addStringMapForDefaultStringProvider=function(e,r){a=(0,i.addStringMap)(e,r,a)},r.addStringMapLoaderForDefaultStringProvider=function(e){a=(0,i.addStringMapLoader)(e,a)},r.getCurrentLocaleForDefaultStringProvider=function(){return(0,i.getCurrentLocale)(u())},r.setCurrentLocaleForDefaultStringProvider=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(r){switch(r.label){case 0:return[4,(0,i.setCurrentLocale)(e,a)];case 1:return[2,(a=r.sent()).currentLocale]}}))}))},r.clearStringMapLoadersForDefaultStringProvider=function(){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(e){switch(e.label){case 0:return[4,(0,i.clearStringMapLoaders)(u())];case 1:return a=e.sent(),[2]}}))}))},r.lookupStringInDefaultStringProvider=function(e){return(0,i.lookUpString)(e,u())}},88721:function(e,r,t){"use strict";var n=t(47802);Object.defineProperty(r,"__esModule",{value:!0}),r.doPseudoLocalization=r.disableDevModeForLocalization=r.enableDevModeForLocalization=r.enablePseudoLocalization=r.disablePseudoLocalization=r.togglePseudoLocalization=r.isTest=r.isDevLocalization=r.skipLocalization=r.isDev=void 0;var o=!1,i=!1;function a(){return"undefined"!==typeof __DEV__&&__DEV__&&!i}function u(){return"undefined"!==typeof __SKIP_LOC__&&__SKIP_LOC__}r.isDev=a,r.skipLocalization=u,r.isDevLocalization=function(){return a()||u()},r.isTest=function(){return Boolean("undefined"!==typeof n&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:"localhost",WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&!1)},r.togglePseudoLocalization=function(){o=!o},r.disablePseudoLocalization=function(){o=!0},r.enablePseudoLocalization=function(){o=!1},r.enableDevModeForLocalization=function(){i=!1},r.disableDevModeForLocalization=function(){i=!0},r.doPseudoLocalization=function(){return!("undefined"===typeof __DEV__||!__DEV__||i)&&!("undefined"!==typeof __DISABLE_PSEUDO_LOC__&&__DISABLE_PSEUDO_LOC__||o)}},73790:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getStringDescriptionWithPlaceholders=r.getStringDescriptionWithoutPlaceholders=r.getStringDescriptionWithOnlyKey=void 0;var n=t(84867),o=t(73594),i=t(44063),a=t(61883);function u(e){return(e=(0,o.upperFirst)(e.trim()))&&!(0,o.endsWith)(e,".")&&(e+="."),e}r.getStringDescriptionWithOnlyKey=function(e){return{key:e,stringToBeLocalized:"",comment:"",placeholderNames:[]}},r.getStringDescriptionWithoutPlaceholders=function(e,r){return{key:e,stringToBeLocalized:r.text,comment:r.comment,placeholderNames:[]}},r.getStringDescriptionWithPlaceholders=function(e,r){for(var t=(0,o.keys)(r.placeholders).filter(o.isString).sort(),c={},l=0,d=(0,o.keys)(r.placeholders);l<d.length;l++){var s=d[l];c[s]=(0,o.isString)(s)?"{".concat(t.indexOf(s),"}"):(0,a.throwError)("Placeholder name ".concat(s," is not a string"))}var g=r.text(c),f=n.__spreadArray([r.comment],t.map((function(e,t){var n=r.placeholders[e].trim();return n?"{".concat(t,"} is a placeholder for ").concat((0,o.lowerFirst)(n)):null})),!0),p=(0,i.filterOutNull)(f).map(u).filter(Boolean).join(" ");return t.forEach((function(e,r){p=p.replace("{"+e+"}","{"+r+"}")})),{key:e,stringToBeLocalized:g,comment:p,placeholderNames:t}}},45847:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toSupportedLocale=r.supportedLocales=r.isSupportedLocale=r.stringExists=r.setLocalizationErrorHandler=r.setCurrentLocale=r.lookUpString=r.getCurrentLocale=r.flattenStringMap=r.clearStringMapLoaders=r.addStringMapLoader=r.addStringMap=r.makeGetStringMapLoader=r.getStringDescriptionWithoutPlaceholders=r.getStringDescriptionWithPlaceholders=r.getStringDescriptionWithOnlyKey=r.togglePseudoLocalization=r.isDevLocalization=r.isDev=r.enablePseudoLocalization=r.enableDevModeForLocalization=r.disablePseudoLocalization=r.disableDevModeForLocalization=r.setLocalizationErrorHandlerForDefaultStringProvider=r.setCurrentLocaleForDefaultStringProvider=r.lookupStringInDefaultStringProvider=r.getDefaultStringProvider=r.getCurrentLocaleForDefaultStringProvider=r.clearStringMapLoadersForDefaultStringProvider=r.addStringMapLoaderForDefaultStringProvider=r.addStringMapForDefaultStringProvider=r.lookupStringInStringProvider=r.declareStringWithPlaceholders=r.declareString=r.mapStringsWithPlaceholdersToStandardFormat=r.mapStringsToStandardFormat=r.declarePluralStringWithPlaceholders=r.declarePluralString=void 0;var n=t(83974);Object.defineProperty(r,"declarePluralString",{enumerable:!0,get:function(){return n.declarePluralString}}),Object.defineProperty(r,"declarePluralStringWithPlaceholders",{enumerable:!0,get:function(){return n.declarePluralStringWithPlaceholders}}),Object.defineProperty(r,"mapStringsToStandardFormat",{enumerable:!0,get:function(){return n.mapStringsToStandardFormat}}),Object.defineProperty(r,"mapStringsWithPlaceholdersToStandardFormat",{enumerable:!0,get:function(){return n.mapStringsWithPlaceholdersToStandardFormat}});var o=t(24096);Object.defineProperty(r,"declareString",{enumerable:!0,get:function(){return o.declareString}}),Object.defineProperty(r,"declareStringWithPlaceholders",{enumerable:!0,get:function(){return o.declareStringWithPlaceholders}}),Object.defineProperty(r,"lookupStringInStringProvider",{enumerable:!0,get:function(){return o.lookupStringInStringProvider}});var i=t(2338);Object.defineProperty(r,"addStringMapForDefaultStringProvider",{enumerable:!0,get:function(){return i.addStringMapForDefaultStringProvider}}),Object.defineProperty(r,"addStringMapLoaderForDefaultStringProvider",{enumerable:!0,get:function(){return i.addStringMapLoaderForDefaultStringProvider}}),Object.defineProperty(r,"clearStringMapLoadersForDefaultStringProvider",{enumerable:!0,get:function(){return i.clearStringMapLoadersForDefaultStringProvider}}),Object.defineProperty(r,"getCurrentLocaleForDefaultStringProvider",{enumerable:!0,get:function(){return i.getCurrentLocaleForDefaultStringProvider}}),Object.defineProperty(r,"getDefaultStringProvider",{enumerable:!0,get:function(){return i.getDefaultStringProvider}}),Object.defineProperty(r,"lookupStringInDefaultStringProvider",{enumerable:!0,get:function(){return i.lookupStringInDefaultStringProvider}}),Object.defineProperty(r,"setCurrentLocaleForDefaultStringProvider",{enumerable:!0,get:function(){return i.setCurrentLocaleForDefaultStringProvider}}),Object.defineProperty(r,"setLocalizationErrorHandlerForDefaultStringProvider",{enumerable:!0,get:function(){return i.setLocalizationErrorHandlerForDefaultStringProvider}});var a=t(88721);Object.defineProperty(r,"disableDevModeForLocalization",{enumerable:!0,get:function(){return a.disableDevModeForLocalization}}),Object.defineProperty(r,"disablePseudoLocalization",{enumerable:!0,get:function(){return a.disablePseudoLocalization}}),Object.defineProperty(r,"enableDevModeForLocalization",{enumerable:!0,get:function(){return a.enableDevModeForLocalization}}),Object.defineProperty(r,"enablePseudoLocalization",{enumerable:!0,get:function(){return a.enablePseudoLocalization}}),Object.defineProperty(r,"isDev",{enumerable:!0,get:function(){return a.isDev}}),Object.defineProperty(r,"isDevLocalization",{enumerable:!0,get:function(){return a.isDevLocalization}}),Object.defineProperty(r,"togglePseudoLocalization",{enumerable:!0,get:function(){return a.togglePseudoLocalization}});var u=t(73790);Object.defineProperty(r,"getStringDescriptionWithOnlyKey",{enumerable:!0,get:function(){return u.getStringDescriptionWithOnlyKey}}),Object.defineProperty(r,"getStringDescriptionWithPlaceholders",{enumerable:!0,get:function(){return u.getStringDescriptionWithPlaceholders}}),Object.defineProperty(r,"getStringDescriptionWithoutPlaceholders",{enumerable:!0,get:function(){return u.getStringDescriptionWithoutPlaceholders}});var c=t(67759);Object.defineProperty(r,"makeGetStringMapLoader",{enumerable:!0,get:function(){return c.makeGetStringMapLoader}});var l=t(47130);Object.defineProperty(r,"addStringMap",{enumerable:!0,get:function(){return l.addStringMap}}),Object.defineProperty(r,"addStringMapLoader",{enumerable:!0,get:function(){return l.addStringMapLoader}}),Object.defineProperty(r,"clearStringMapLoaders",{enumerable:!0,get:function(){return l.clearStringMapLoaders}}),Object.defineProperty(r,"flattenStringMap",{enumerable:!0,get:function(){return l.flattenStringMap}}),Object.defineProperty(r,"getCurrentLocale",{enumerable:!0,get:function(){return l.getCurrentLocale}}),Object.defineProperty(r,"lookUpString",{enumerable:!0,get:function(){return l.lookUpString}}),Object.defineProperty(r,"setCurrentLocale",{enumerable:!0,get:function(){return l.setCurrentLocale}}),Object.defineProperty(r,"setLocalizationErrorHandler",{enumerable:!0,get:function(){return l.setLocalizationErrorHandler}}),Object.defineProperty(r,"stringExists",{enumerable:!0,get:function(){return l.stringExists}});var d=t(97726);Object.defineProperty(r,"isSupportedLocale",{enumerable:!0,get:function(){return d.isSupportedLocale}}),Object.defineProperty(r,"supportedLocales",{enumerable:!0,get:function(){return d.supportedLocales}}),Object.defineProperty(r,"toSupportedLocale",{enumerable:!0,get:function(){return d.toSupportedLocale}})},67759:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.makeGetStringMapLoader=void 0;var n=t(97726);r.makeGetStringMapLoader=function(e){return function(r){var t=function(r){return e((0,n.toSupportedLocale)(r,"en-us"))};return r?e((0,n.toSupportedLocale)(r,"en-us")).catch((function(){})).then((function(){return t})):Promise.resolve(t)}}},33106:function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.pseudoLocalize=void 0;var t={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"};r.pseudoLocalize=function(e){return e.split("").reduce((function(e,r){var n=t[r]||r,o=n+(function(e){return"aeiou".indexOf(e.toLowerCase())>=0}(r)?n:"");return e+o}),"")}},47130:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.lookUpString=r.stringExists=r.flattenStringMap=r.clearStringMapLoaders=r.setCurrentLocale=r.getCurrentLocale=r.addStringMapLoader=r.addStringMap=r.handleLocalizationError=r.setLocalizationErrorHandler=void 0;var n=t(84867),o=t(74387),i=t(27101),a=t(88721);r.setLocalizationErrorHandler=function(e,r){return n.__assign(n.__assign({},r),{errorHandler:e})},r.handleLocalizationError=function(e,r){r.errorHandler(e)};var u,c=(0,i.memoizeFunction)((function(e,r){var t=d(r);return function(r){return Promise.resolve(e===r?t:{})}}));function l(e,r){return-1===r.loaders.indexOf(e)?n.__assign(n.__assign({},r),{loaders:r.loaders.concat(e)}):r}function d(e){var r={};return e&&function e(t,n){for(var i=0,a=(0,o.keys)(n);i<a.length;i++){var u=a[i];if("string"===typeof u){var c=n[u];"string"===typeof c?r[t+u]=c:"object"===typeof c&&e(t+u+".",c)}}}("",e),r}r.addStringMap=function(e,r,t){if(t.currentLocale===e||void 0===t.currentLocale){var o=d(r);return n.__assign(n.__assign({},t),{currentLocale:void 0===t.currentLocale?e:t.currentLocale,strings:n.__assign(n.__assign({},t.strings),o),stringMapInitialized:!0})}return l(c(e,r),t)},r.addStringMapLoader=l,r.getCurrentLocale=function(e){return u?u.then((function(e){return e.currentLocale})):Promise.resolve(e.currentLocale)},r.setCurrentLocale=function(e,r){var t=function(e,r){return n.__awaiter(this,void 0,void 0,(function(){var t,o,i=this;return n.__generator(this,(function(a){switch(a.label){case 0:return t=function(t){return n.__awaiter(i,void 0,void 0,(function(){var o,i;return n.__generator(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,t(e)];case 1:return[2,n.sent()];case 2:return o=n.sent(),i=o.message||"unknown error",r.errorHandler("Async string map loader failed: ".concat(i)),[2,{}];case 3:return[2]}}))}))},o=r.loaders.map(t),[4,Promise.all(o)];case 1:return[2,a.sent().map(d).reduce((function(e,r){return n.__assign(n.__assign({},e),r)}),{})]}}))}))}(e,r).then((function(t){return n.__assign(n.__assign({},r),{strings:t,currentLocale:e,stringMapInitialized:!0})}));return u=u?u.then((function(){return t})):t},r.clearStringMapLoaders=function(e){return n.__awaiter(this,void 0,void 0,(function(){return n.__generator(this,(function(r){switch(r.label){case 0:return u?[4,u]:[3,2];case 1:r.sent(),r.label=2;case 2:return u=void 0,[2,n.__assign(n.__assign({},e),{loaders:[],strings:{},currentLocale:void 0})]}}))}))},r.flattenStringMap=d,r.stringExists=function(e,r){return"string"===typeof r.strings[e]},r.lookUpString=function(e,r){var t=r.strings[e];if(!t||"string"!==typeof t){var n=(0,a.isDev)()||(0,a.isTest)()?e:"";return!function(e){for(var r in e)if(e.hasOwnProperty(r))return!1;return!0}(r.strings)?r.errorHandler("Key ".concat(e," does not exist in string map"),{stringsLoaded:!!r.stringMapInitialized}):!r.suppressEmptyStringMapErrors&&r.errorHandler("The current string map is empty. The string is probably resolved too early, at import time. Key: ".concat(e)),n}return t}},97726:function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.toSupportedLocale=r.supportedLocales=r.isSupportedLocale=void 0;var n=t(36205);Object.defineProperty(r,"isSupportedLocale",{enumerable:!0,get:function(){return n.isSupportedLocale}}),Object.defineProperty(r,"supportedLocales",{enumerable:!0,get:function(){return n.supportedLocales}}),Object.defineProperty(r,"toSupportedLocale",{enumerable:!0,get:function(){return n.toSupportedLocale}})},47802:function(e){var r,t,n=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(r===setTimeout)return setTimeout(e,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:o}catch(e){r=o}try{t="function"===typeof clearTimeout?clearTimeout:i}catch(e){t=i}}();var u,c=[],l=!1,d=-1;function s(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&g())}function g(){if(!l){var e=a(s);l=!0;for(var r=c.length;r;){for(u=c,c=[];++d<r;)u&&u[d].run();d=-1,r=c.length}u=null,l=!1,function(e){if(t===clearTimeout)return clearTimeout(e);if((t===i||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(e);try{t(e)}catch(r){try{return t.call(null,e)}catch(r){return t.call(this,e)}}}(e)}}function f(e,r){this.fun=e,this.array=r}function p(){}n.nextTick=function(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];c.push(new f(e,r)),1!==c.length||l||a(g)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}}}]);
//# sourceMappingURL=5847.b3603d00.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[585],{70585:function(r,n,p){function a(r){throw new Error(r)}p.r(n),p.d(n,{throwError:function(){return a}})}}]);
//# sourceMappingURL=585.67665160.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[5990],{2203:function(e,n,t){t.d(n,{$Oq:function(){return K},ADj:function(){return $},B2S:function(){return v},DWd:function(){return k},F$H:function(){return B},HkI:function(){return d},KCz:function(){return F},MxQ:function(){return E},NUA:function(){return g},Ndk:function(){return h},ORW:function(){return Z},PM$:function(){return z},TNE:function(){return _},TTi:function(){return m},U$D:function(){return x},Vo$:function(){return u},X0b:function(){return U},X8c:function(){return H},Z4e:function(){return M},_E3:function(){return a},b8q:function(){return G},dR_:function(){return P},fGI:function(){return p},fPq:function(){return R},gC_:function(){return A},gNc:function(){return I},gNt:function(){return c},grK:function(){return b},hmO:function(){return L},jcT:function(){return f},lYg:function(){return W},mx_:function(){return T},nHW:function(){return j},nPn:function(){return D},omG:function(){return V},pfk:function(){return q},qSk:function(){return y},qXC:function(){return o},qvE:function(){return i},uO1:function(){return l},uOK:function(){return N},vsS:function(){return w},xmy:function(){return C},xo$:function(){return O},y3Y:function(){return S},yQ7:function(){return s},yl$:function(){return Q}});var r=t(92729),i=(0,r.U)("PresenceAvailable10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm2.1-5.9L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.9-1.9a.5.5 0 0 1 .7.71Z"]),o=(0,r.U)("PresenceAvailable10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm6.1-1.6c.2.2.2.5 0 .7L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 1 1 .7-.7l.65.64 1.9-1.9c.2-.19.5-.19.7 0Z"]),a=(0,r.U)("PresenceAvailable12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm2.53-6.72L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22a.75.75 0 0 1 1.06 1.06Z"]),l=(0,r.U)("PresenceAvailable12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Zm7.03-1.78c.3.3.3.77 0 1.06L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22c.3-.3.77-.3 1.06 0Z"]),s=(0,r.U)("PresenceAvailable16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm3.7-9.3-4 4a1 1 0 0 1-1.41 0l-2-2a1 1 0 1 1 1.42-1.4L7 8.58l3.3-3.3a1 1 0 0 1 1.4 1.42Z"]),c=(0,r.U)("PresenceAvailable16Regular","16",["M11.7 6.7a1 1 0 0 0-1.4-1.4L7 8.58l-1.3-1.3a1 1 0 0 0-1.4 1.42l2 2a1 1 0 0 0 1.4 0l4-4ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),u=(0,r.U)("PresenceAvailable20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.2-11.8-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 1 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 1 1 1.4 1.42Z"]),d=(0,r.U)("PresenceAvailable20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm12.2-3.2a1 1 0 0 1 0 1.4l-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 0 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 0 1 1.4 0Z"]),f=(0,r.U)("PresenceAway10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm0-7v1.8l1.35 1.35a.5.5 0 1 1-.7.7l-1.5-1.5A.5.5 0 0 1 4 5V3a.5.5 0 0 1 1 0Z"]),m=(0,r.U)("PresenceAway10Regular","10",["M5 4.8V3a.5.5 0 0 0-1 0v2c0 .13.05.26.15.35l1.5 1.5a.5.5 0 1 0 .7-.7L5 4.79Zm5 .2A5 5 0 1 1 0 5a5 5 0 0 1 10 0ZM9 5a4 4 0 1 0-8 0 4 4 0 0 0 8 0Z"]),g=(0,r.U)("PresenceAway12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.5-8.75v2.4l1.49 1.28A.75.75 0 1 1 7 8.07l-1.75-1.5A.75.75 0 0 1 5 6V3.25a.75.75 0 0 1 1.5 0Z"]),p=(0,r.U)("PresenceAway12Regular","12",["M6.5 5.66V3.25a.75.75 0 0 0-1.5 0V6c0 .22.1.43.26.57l1.75 1.5A.75.75 0 1 0 8 6.93L6.5 5.66ZM12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Zm-1.5 0a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z"]),v=(0,r.U)("PresenceAway16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm.5-11.5v3.02l2.12 1.7a1 1 0 1 1-1.24 1.56l-2.5-2A1 1 0 0 1 6.5 8V4.5a1 1 0 0 1 2 0Z"]),h=(0,r.U)("PresenceAway16Regular","16",["M8.5 7.52V4.5a1 1 0 1 0-2 0V8c0 .3.14.6.38.78l2.5 2a1 1 0 1 0 1.24-1.56L8.5 7.52ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),b=(0,r.U)("PresenceAway20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm0-14V9.6l2.7 2.7a1 1 0 0 1-1.4 1.42l-3-3A1 1 0 0 1 8 10V6a1 1 0 1 1 2 0Z"]),y=(0,r.U)("PresenceAway20Regular","20",["M10 9.59V6a1 1 0 1 0-2 0V10c0 .27.1.52.3.7l3 3a1 1 0 1 0 1.4-1.4L10 9.58Zm-10 .4a10 10 0 1 1 20 0 10 10 0 0 1-20 0ZM10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),k=(0,r.U)("PresenceBlocked10Regular","10",["M10 5A5 5 0 1 0 0 5a5 5 0 0 0 10 0ZM9 5a4 4 0 0 1-6.45 3.16l5.61-5.61C8.69 3.22 9 4.08 9 5ZM7.45 1.84 1.84 7.45a4 4 0 0 1 5.61-5.61Z"]),M=(0,r.U)("PresenceBlocked12Regular","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Zm-1.5 0c0-.97-.3-1.87-.83-2.6L3.39 9.66A4.5 4.5 0 0 0 10.5 6ZM8.6 2.33a4.5 4.5 0 0 0-6.28 6.28l6.29-6.28Z"]),_=(0,r.U)("PresenceBlocked16Regular","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-2 0c0-1.3-.41-2.5-1.1-3.48L4.51 12.9A6 6 0 0 0 14 8Zm-2.52-4.9a6 6 0 0 0-8.37 8.37l8.37-8.36Z"]),T=(0,r.U)("PresenceBlocked20Regular","20",["M20 10a10 10 0 1 0-20 0 10 10 0 0 0 20 0Zm-2 0a8 8 0 0 1-12.9 6.32L16.31 5.09A7.97 7.97 0 0 1 18 10Zm-3.1-6.32L3.69 14.91A8 8 0 0 1 14.91 3.68Z"]),x=(0,r.U)("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),A=(0,r.U)("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),Z=(0,r.U)("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),w=(0,r.U)("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),B=(0,r.U)("PresenceDnd10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10ZM3.5 4.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Z"]),C=(0,r.U)("PresenceDnd10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm2 0c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 3 5Z"]),L=(0,r.U)("PresenceDnd12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12ZM3.75 5.25h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5Z"]),H=(0,r.U)("PresenceDnd12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3 6c0-.41.34-.75.75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 3 6Z"]),R=(0,r.U)("PresenceDnd16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16ZM5.25 7h5.5a1 1 0 1 1 0 2h-5.5a1 1 0 1 1 0-2Z"]),P=(0,r.U)("PresenceDnd16Regular","16",["M5.25 7a1 1 0 0 0 0 2h5.5a1 1 0 1 0 0-2h-5.5ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),E=(0,r.U)("PresenceDnd20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM7 9h6a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2Z"]),F=(0,r.U)("PresenceDnd20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm4 0a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"]),S=(0,r.U)("PresenceOffline10Regular","10",["M6.85 3.15c.2.2.2.5 0 .7L5.71 5l1.14 1.15a.5.5 0 1 1-.7.7L5 5.71 3.85 6.85a.5.5 0 1 1-.7-.7L4.29 5 3.15 3.85a.5.5 0 1 1 .7-.7L5 4.29l1.15-1.14c.2-.2.5-.2.7 0ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Zm5-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]),I=(0,r.U)("PresenceOffline12Regular","12",["M8.03 3.97c.3.3.3.77 0 1.06L7.06 6l.97.97a.75.75 0 0 1-1.06 1.06L6 7.06l-.97.97a.75.75 0 0 1-1.06-1.06L4.94 6l-.97-.97a.75.75 0 0 1 1.06-1.06l.97.97.97-.97c.3-.3.77-.3 1.06 0ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Zm6-4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),N=(0,r.U)("PresenceOffline16Regular","16",["M10.7 5.3a1 1 0 0 1 0 1.4L9.42 8l1.3 1.3a1 1 0 0 1-1.42 1.4L8 9.42l-1.3 1.3a1 1 0 0 1-1.4-1.42L6.58 8l-1.3-1.3a1 1 0 0 1 1.42-1.4L8 6.58l1.3-1.3a1 1 0 0 1 1.4 0ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),U=(0,r.U)("PresenceOffline20Regular","20",["M13.7 6.3a1 1 0 0 1 0 1.4L11.42 10l2.3 2.3a1 1 0 0 1-1.42 1.4L10 11.42l-2.3 2.3a1 1 0 0 1-1.4-1.42L8.58 10l-2.3-2.3a1 1 0 0 1 1.42-1.4L10 8.58l2.3-2.3a1 1 0 0 1 1.4 0ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm10-8a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),z=(0,r.U)("PresenceOof10Regular","10",["M5.35 3.85a.5.5 0 1 0-.7-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7L4.7 5.5h1.8a.5.5 0 1 0 0-1H4.7l.65-.65ZM5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z"]),D=(0,r.U)("PresenceOof12Regular","12",["M6.28 4.53a.75.75 0 0 0-1.06-1.06l-2 2c-.3.3-.3.77 0 1.06l2 2a.75.75 0 0 0 1.06-1.06l-.72-.72h2.69a.75.75 0 1 0 0-1.5h-2.7l.73-.72ZM6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Z"]),W=(0,r.U)("PresenceOof16Regular","16",["M8.2 6.2a1 1 0 1 0-1.4-1.4L4.3 7.3a1 1 0 0 0 0 1.4l2.5 2.5a1 1 0 0 0 1.4-1.4L7.42 9H11a1 1 0 1 0 0-2H7.41l.8-.8ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),V=(0,r.U)("PresenceOof20Regular","20",["M10.7 7.7A1 1 0 1 0 9.28 6.3l-3 3a1 1 0 0 0 0 1.41l3 3a1 1 0 1 0 1.42-1.41l-1.3-1.3H13a1 1 0 1 0 0-2H9.4l1.3-1.29ZM10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"]),O=(0,r.U)("PresenceUnknown10Regular","10",["M5 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Z"]),K=(0,r.U)("PresenceUnknown12Regular","12",["M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Z"]),G=(0,r.U)("PresenceUnknown16Regular","16",["M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Z"]),$=(0,r.U)("PresenceUnknown20Regular","20",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Z"]),j=(0,r.U)("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"]),q=(0,r.U)("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"]),Q=(0,r.U)("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"])},70056:function(e,n,t){t.d(n,{$97:function(){return o},Co_:function(){return i}});var r=t(92729),i=(0,r.U)("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]),o=(0,r.U)("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"])},92729:function(e,n,t){t.d(n,{U:function(){return F}});var r=t(22489),i=t(18188),o=t(80322),a=t(49839),l=t(57992),s="undefined"===typeof window?t.g:window,c="@griffel/";function u(e,n){return s[Symbol.for(c+e)]||(s[Symbol.for(c+e)]=n),s[Symbol.for(c+e)]}var d=u("DEFINITION_LOOKUP_TABLE",{}),f="data-make-styles-bucket",m="___",g=m.length+7,p=t(31821);function v(e){var n=e.length;if(7===n)return e;for(var t=n;t<7;t++)e+="0";return e}function h(e,n){return m+v((0,p.A)(e+n))}function b(e,n){var t="";for(var r in e){var i=e[r];if(i){var o=Array.isArray(i);t+="rtl"===n?(o?i[1]:i)+" ":(o?i[0]:i)+" "}}return t.slice(0,-1)}function y(e,n){var t={};for(var r in e){var i=b(e[r],n);if(""!==i){var o=h(i,n),a=o+" "+i;d[o]=[e[r],n],t[r]=a}else t[r]=""}return t}var k=t(61249);function M(e){return Array.isArray(e)?e:[e]}function _(e,n,t){var r=[];if(t["data-make-styles-bucket"]=n,e)for(var i in t)e.setAttribute(i,t[i]);return{elementAttributes:t,insertRule:function(n){return(null===e||void 0===e?void 0:e.sheet)?e.sheet.insertRule(n,e.sheet.cssRules.length):r.push(n)},element:e,bucketName:n,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 T=["r","d","l","v","w","f","i","h","a","k","t","m","c"].reduce((function(e,n,t){return e[n]=t,e}),{});function x(e,n,t,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a="m"===e,l=a?e+o.m:e;if(!r.stylesheets[l]){var s=n&&n.createElement("style"),c=_(s,e,(0,i.A)((0,i.A)({},r.styleElementAttributes),a&&{media:o.m}));r.stylesheets[l]=c,n&&s&&n.head.insertBefore(s,A(n,t,e,r,o))}return r.stylesheets[l]}function A(e,n,t,r,i){var o=T[t],a=function(e){return o-T[e.getAttribute(f)]},l=e.head.querySelectorAll("[".concat(f,"]"));if("m"===t&&i){var s=e.head.querySelectorAll("[".concat(f,'="').concat(t,'"]'));s.length&&(l=s,a=function(e){return r.compareMediaQueries(i.m,e.media)})}for(var c=l.length,u=c-1;u>=0;){var d=l.item(u);if(a(d)>0)return d.nextSibling;u--}return c>0?l.item(0):n?n.nextSibling:null}var Z=0,w=function(e,n){return e<n?-1:e>n?1:0};function B(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"===typeof document?void 0:document,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.unstable_filterCSSRule,r=n.insertionPoint,i=n.styleElementAttributes,o=n.compareMediaQueries,a=void 0===o?w:o,l={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:a,id:"d".concat(Z++),insertCSSRules:function(n){for(var i in n)for(var o=n[i],a=0,s=o.length;a<s;a++){var c=M(o[a]),u=(0,k.A)(c,2),d=u[0],f=u[1],m=x(i,e,r||null,l,f);if(!l.insertionCache[d]){l.insertionCache[d]=i;try{t?t(d)&&m.insertRule(d):m.insertRule(d)}catch(g){0}}}}};return l}":(".concat(["-moz-placeholder","-moz-focus-inner","-moz-focusring","-ms-input-placeholder","-moz-read-write","-moz-read-only"].join("|"),")");var C=o.createContext(B());var L=o.createContext("ltr");var H={};var R=["title","primaryFill"],P=function(e,n){var t=function(e,n){var t={},r=null,i=null;return function(o){var a=o.dir,l=o.renderer,s="ltr"===a,c=s?l.id:l.id+"r";return s?null===r&&(r=y(e,a)):null===i&&(i=y(e,a)),void 0===t[c]&&(l.insertCSSRules(n),t[c]=!0),s?r:i}}(e,n);return function(){var e=o.useContext(L),n=o.useContext(C);return t({dir:e,renderer:n})}}({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;}}"]}),E=function(e,n){var t=e.title,r=e.primaryFill,o=void 0===r?"currentColor":r,s=(0,a.A)(e,R),c=(0,i.A)((0,i.A)({},s),{},{title:void 0,fill:o}),u=P(),f=(0,l.U)();return c.className=function(){for(var e=arguments,n=null,t="",r="",i=new Array(arguments.length),o=function(n){var o=e[n];if("string"===typeof o&&""!==o){var a=o.indexOf(m);if(-1===a)t+=o+" ";else{var l=o.substr(a,g);a>0&&(t+=o.slice(0,a)),r+=l,i[n]=l}}},a=0;a<arguments.length;a++)o(a);if(""===r)return t.slice(0,-1);var l=H[r];if(void 0!==l)return t+l;for(var s=[],c=0;c<arguments.length;c++){var u=i[c];if(u){var f=d[u];f&&(s.push(f[0]),n=f[1])}}var p=Object.assign.apply(Object,[{}].concat(s)),v=b(p,n),y=h(v,n,i);return v=y+" "+v,H[r]=v,d[y]=[p,n],t+v}(u.root,(null===n||void 0===n?void 0:n.flipInRtl)&&"rtl"===(null===f||void 0===f?void 0:f.textDirection)&&u.rtl,c.className),t&&(c["aria-label"]=t),c["aria-label"]||c["aria-labelledby"]?c.role="img":c["aria-hidden"]=!0,c},F=function(e,n,t,a){var l="1em"===n?"20":n,s=o.forwardRef((function(e,s){var c=(0,i.A)((0,i.A)({},E(e,{flipInRtl:null===a||void 0===a?void 0:a.flipInRtl})),{},{ref:s,width:n,height:n,viewBox:"0 0 ".concat(l," ").concat(l),xmlns:"http://www.w3.org/2000/svg"});return o.createElement.apply(o,["svg",c].concat((0,r.A)(t.map((function(e){return o.createElement("path",{d:e,fill:c.fill})})))))}));return s.displayName=e,s}},88714:function(e,n,t){t.d(n,{n:function(){return H}});var r,i=t(75425),o=t(84867),a=t(80322),l=t(26858),s=t(33347),c=t(16711),u=t(47770),d=t(47751),f=t(12300),m=t(56758),g=t(90801),p=t(66848),v=((r={})[m.H.info]="Info",r[m.H.warning]="Info",r[m.H.error]="ErrorBadge",r[m.H.blocked]="Blocked2",r[m.H.severeWarning]="Warning",r[m.H.success]="Completed",r),h=(0,l.Z)(),b=function(e){switch(e){case m.H.blocked:case m.H.error:case m.H.severeWarning:return"assertive"}return"polite"},y=function(e){switch(e){case m.H.blocked:case m.H.error:case m.H.severeWarning:return"alert"}return"status"},k=a.forwardRef((function(e,n){var t=(0,g.C)(!1),r=t[0],i=t[1].toggle,l=(0,p.B)("MessageBar"),k=e.actions,M=e.className,_=e.children,T=e.overflowButtonAriaLabel,x=e.dismissIconProps,A=e.styles,Z=e.theme,w=e.messageBarType,B=void 0===w?m.H.info:w,C=e.onDismiss,L=void 0===C?void 0:C,H=e.isMultiline,R=void 0===H||H,P=e.truncated,E=e.dismissButtonAriaLabel,F=e.messageBarIconProps,S=e.role,I=e.delayedRender,N=void 0===I||I,U=e.expandButtonProps,z=(0,s.G1)(e,s.vt,["className","role"]),D=h(A,{theme:Z,messageBarType:B||m.H.info,onDismiss:void 0!==L,actions:void 0!==k,truncated:P,isMultiline:R,expandSingleLine:r,className:M}),W={iconName:r?"DoubleChevronUp":"DoubleChevronDown"},V=k||L?{"aria-describedby":l,role:"region"}:{},O=k?a.createElement("div",{className:D.actions},k):null,K=L?a.createElement(d.K,{disabled:!1,className:D.dismissal,onClick:L,iconProps:x||{iconName:"Clear"},title:E,ariaLabel:E}):null;return a.createElement("div",(0,o.__assign)({ref:n,className:D.root},V),a.createElement("div",{className:D.content},a.createElement("div",{className:D.iconContainer,"aria-hidden":!0},F?a.createElement(f.I,(0,o.__assign)({},F,{className:(0,c.A)(D.icon,F.className)})):a.createElement(f.I,{iconName:v[B],className:D.icon})),a.createElement("div",{className:D.text,id:l,role:S||y(B),"aria-live":b(B)},a.createElement("span",(0,o.__assign)({className:D.innerText},z),N?a.createElement(u.P,null,a.createElement("span",null,_)):a.createElement("span",null,_))),!R&&!O&&P&&a.createElement("div",{className:D.expandSingleLine},a.createElement(d.K,(0,o.__assign)({disabled:!1,className:D.expand,onClick:i,iconProps:W,ariaLabel:T,"aria-expanded":r},U))),!R&&O,!R&&K&&a.createElement("div",{className:D.dismissSingleLine},K),R&&K),R&&O)}));k.displayName="MessageBar";var M,_,T,x,A=t(7354),Z={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"},w=((M={})[m.H.error]="errorBackground",M[m.H.blocked]="errorBackground",M[m.H.success]="successBackground",M[m.H.warning]="warningBackground",M[m.H.severeWarning]="severeWarningBackground",M[m.H.info]="infoBackground",M),B=((_={})[m.H.error]="errorIcon",_[m.H.blocked]="errorIcon",_[m.H.success]="successIcon",_[m.H.warning]="warningIcon",_[m.H.severeWarning]="severeWarningIcon",_[m.H.info]="infoIcon",_),C=((T={})[m.H.error]="#ff0000",T[m.H.blocked]="#ff0000",T[m.H.success]="#bad80a",T[m.H.warning]="#fff100",T[m.H.severeWarning]="#ff0000",T[m.H.info]="WindowText",T),L=((x={})[m.H.error]="#e81123",x[m.H.blocked]="#e81123",x[m.H.success]="#107c10",x[m.H.warning]="#966400",x[m.H.severeWarning]="#d83b01",x[m.H.info]="WindowText",x),H=(0,i.I)(k,(function(e){var n,t,r,i,a,l,s,c,u,d,f,g=e.theme,p=e.className,v=e.onDismiss,h=e.truncated,b=e.isMultiline,y=e.expandSingleLine,k=e.messageBarType,M=void 0===k?m.H.info:k,_=g.semanticColors,T=g.fonts,x=(0,A.L6)(0,A.iD),H=(0,A.Km)(Z,g),R={fontSize:A.fF.xSmall,height:10,lineHeight:"10px",color:_.messageText,selectors:(n={},n[A.up]=(0,o.__assign)((0,o.__assign)({},(0,A.Qg)()),{color:"WindowText"}),n)},P=[(0,A.gm)(g,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":R,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[H.root,T.medium,M===m.H.error&&H.error,M===m.H.blocked&&H.blocked,M===m.H.severeWarning&&H.severeWarning,M===m.H.success&&H.success,M===m.H.warning&&H.warning,b?H.multiline:H.singleline,!b&&v&&H.dismissalSingleLine,!b&&h&&H.expandingSingleLine,{background:_[w[M]],boxSizing:"border-box",color:_.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(t={".ms-Link":{color:_.messageLink,selectors:{":hover":{color:_.messageLinkHovered}}}},t[A.up]=(0,o.__assign)((0,o.__assign)({},(0,A.Qg)()),{background:"transparent",border:"1px solid ".concat(C[M]),color:"WindowText"}),t[A.hT]={border:"1px solid ".concat(L[M])},t)},b&&{flexDirection:"column"},p],content:[H.content,(r={display:"flex",width:"100%",lineHeight:"normal"},r[x]={display:"grid",gridTemplateColumns:"auto 1fr auto",gridTemplateRows:"1fr auto",gridTemplateAreas:'\n            "icon text close"\n            "action action action"\n          '},r)],iconContainer:[H.iconContainer,(i={fontSize:A.fF.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"},i[x]={gridArea:"icon"},i)],icon:{color:_[B[M]],selectors:(a={},a[A.up]=(0,o.__assign)((0,o.__assign)({},(0,A.Qg)()),{color:"WindowText"}),a)},text:[H.text,(0,o.__assign)((0,o.__assign)({minWidth:0,display:"flex",flexGrow:1,margin:8},T.small),(l={},l[x]={gridArea:"text"},l.selectors=(s={},s[A.up]=(0,o.__assign)({},(0,A.Qg)()),s),l)),!v&&{marginRight:12}],innerText:[H.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},h&&{overflow:"visible",whiteSpace:"pre-wrap"},!b&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!b&&!h&&{selectors:(c={},c[x]={overflow:"visible",whiteSpace:"pre-wrap"},c)},y&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:[H.dismissSingleLine,(u={},u[x]={gridArea:"close"},u)],expandSingleLine:H.expandSingleLine,dismissal:[H.dismissal,P],expand:[H.expand,P],actions:[b?H.actions:H.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[x]={gridArea:"action",marginRight:8,marginBottom:8},d.selectors={"& button:nth-child(n+2)":(f={marginLeft:8},f[x]={marginBottom:0},f)},d),b&&{marginBottom:8},v&&!b&&{marginRight:0}]}}),void 0,{scope:"MessageBar"})},56758:function(e,n,t){var r;t.d(n,{H:function(){return r}}),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"}(r||(r={}))},55516:function(e,n,t){var r,i,o;t.d(n,{As:function(){return i},WH:function(){return r},f5:function(){return o}}),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"}(r||(r={})),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"}(i||(i={})),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"}(o||(o={}))},51027:function(e,n,t){t.d(n,{X:function(){return a}});var r=t(55516),i=[r.f5.lightBlue,r.f5.blue,r.f5.darkBlue,r.f5.teal,r.f5.green,r.f5.darkGreen,r.f5.lightPink,r.f5.pink,r.f5.magenta,r.f5.purple,r.f5.orange,r.f5.lightRed,r.f5.darkRed,r.f5.violet,r.f5.gold,r.f5.burgundy,r.f5.warmGray,r.f5.cyan,r.f5.rust,r.f5.coolGray],o=i.length;function a(e){var n=e.primaryText,t=e.text,a=e.initialsColor;return"string"===typeof a?a:function(e){switch(e){case r.f5.lightBlue:return"#4F6BED";case r.f5.blue:return"#0078D4";case r.f5.darkBlue:return"#004E8C";case r.f5.teal:return"#038387";case r.f5.lightGreen:case r.f5.green:return"#498205";case r.f5.darkGreen:return"#0B6A0B";case r.f5.lightPink:return"#C239B3";case r.f5.pink:return"#E3008C";case r.f5.magenta:return"#881798";case r.f5.purple:return"#5C2E91";case r.f5.orange:return"#CA5010";case r.f5.red:return"#EE1111";case r.f5.lightRed:return"#D13438";case r.f5.darkRed:return"#A4262C";case r.f5.transparent:return"transparent";case r.f5.violet:return"#8764B8";case r.f5.gold:return"#986F0B";case r.f5.burgundy:return"#750B1C";case r.f5.warmGray:return"#7A7574";case r.f5.cyan:return"#005B70";case r.f5.rust:return"#8E562E";case r.f5.coolGray:return"#69797E";case r.f5.black:return"#1D1D1D";case r.f5.gray:return"#393939"}}(a=void 0!==a?a:function(e){var n=r.f5.blue;if(!e)return n;for(var t=0,a=e.length-1;a>=0;a--){var l=e.charCodeAt(a),s=a%8;t^=(l<<s)+(l>>8-s)}return i[t%o]}(t||n))}},58753:function(e,n,t){t.d(n,{f:function(){return R}});var r=t(75425),i=t(84867),o=t(80322),a=t(66848),l=t(30749),s=t(26858),c=t(56205),u=t(33347),d=t(16711),f=t(54121),m=t(16758),g=t(27630);function p(e,n){void 0===n&&(n=null);var t=o.useRef({ref:function(){var e=function(e){t.ref.current!==e&&(t.cleanup&&(t.cleanup(),t.cleanup=void 0),t.ref.current=e,null!==e&&(t.cleanup=t.callback(e)))};return e.current=n,e}(),callback:e}).current;return t.callback=e,t.ref}var v=t(39265),h=t(50963),b=function(e){var n=e.onOverflowItemsChanged,t=e.rtl,r=e.pinnedIndex,i=o.useRef(),a=o.useRef(),l=p((function(e){var n=function(e,n){if("undefined"!==typeof ResizeObserver){var t=new ResizeObserver(n);return Array.isArray(e)?e.forEach((function(e){return t.observe(e)})):t.observe(e),function(){return t.disconnect()}}var r=function(){return n(void 0)},i=(0,h.z)(Array.isArray(e)?e[0]:e);if(!i)return function(){};var o=i.requestAnimationFrame(r);return i.addEventListener("resize",r,!1),function(){i.cancelAnimationFrame(o),i.removeEventListener("resize",r,!1)}}(e,(function(n){a.current=n?n[0].contentRect.width:e.clientWidth,i.current&&i.current()}));return function(){n(),a.current=void 0}})),s=p((function(e){return l(e.parentElement),function(){return l(null)}}));return(0,v.E)((function(){var e=l.current,o=s.current;if(e&&o){for(var c=[],u=0;u<e.children.length;u++){var d=e.children[u];d instanceof HTMLElement&&d!==o&&c.push(d)}var f=[],m=0;i.current=function(){var e=a.current;if(void 0!==e){for(var n=c.length-1;n>=0;n--){if(void 0===f[n]){var i=t?e-c[n].offsetLeft:c[n].offsetLeft+c[n].offsetWidth;n+1<c.length&&n+1===r&&(m=f[n+1]-i),n===c.length-2&&(m+=o.offsetWidth),f[n]=i+m}if(e>f[n])return void p(n+1)}p(0)}};var g=c.length,p=function(e){g!==e&&(g=e,n(e,c.map((function(n,t){return{ele:n,isOverflowing:t>=e&&t!==r}}))))},v=void 0;if(void 0!==a.current){var b=(0,h.z)(e);if(b){var y=b.requestAnimationFrame(i.current);v=function(){return b.cancelAnimationFrame(y)}}}return function(){v&&v(),p(c.length),i.current=void 0}}})),{menuButtonRef:s}},y=t(84218),k=t(90973),M=t(20852),_=t(12300),T=t(52324),x=(0,s.Z)(),A=function(e,n){var t={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return o.Children.forEach(o.Children.toArray(e.children),(function(r,o){if(Z(r)){var a=r.props,l=a.linkText,s=(0,i.__rest)(a,["linkText"]),u=r.props.itemKey||o.toString();t.links.push((0,i.__assign)((0,i.__assign)({headerText:l},s),{itemKey:u})),t.keyToIndexMapping[u]=o,t.keyToTabIdMapping[u]=function(e,n,t,r){return e.getTabId?e.getTabId(t,r):n+"-Tab".concat(r)}(e,n,u,o)}else r&&(0,c.R)("The children of a Pivot component must be of type PivotItem to be rendered.")})),t},Z=function(e){var n;return o.isValidElement(e)&&(null===(n=e.type)||void 0===n?void 0:n.name)===T.y.name},w=o.forwardRef((function(e,n){var t,r=o.useRef(null),s=o.useRef(null),c=(0,a.B)("Pivot"),p=(0,l.k)(e.selectedKey,e.defaultSelectedKey),v=p[0],h=p[1],T=e.componentRef,w=e.theme,B=e.linkSize,C=e.linkFormat,L=e.overflowBehavior,H=e.overflowAriaLabel,R=e.focusZoneProps,P=e.overflowButtonAs,E={"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]},F=(0,u.G1)(e,u.JM,["aria-label","aria-labelledby"]),S=A(e,c);o.useImperativeHandle(T,(function(){return{focus:function(){var e;null===(e=r.current)||void 0===e||e.focus()}}}));var I=function(e){if(!e)return null;var n=e.itemCount,r=e.itemIcon,i=e.headerText;return o.createElement("span",{className:t.linkContent},void 0!==r&&o.createElement("span",{className:t.icon},o.createElement(_.I,{iconName:r})),void 0!==i&&o.createElement("span",{className:t.text}," ",e.headerText),void 0!==n&&o.createElement("span",{className:t.count}," (",n,")"))},N=function(e,n,r,a){var l,s=n.itemKey,c=n.headerButtonProps,u=n.onRenderItemLink,f=e.keyToTabIdMapping[s],m=r===s;l=u?u(n,I):I(n);var p=n.headerText||"";p+=n.itemCount?" ("+n.itemCount+")":"",p+=n.itemIcon?" xx":"";var v=n.role&&"tab"!==n.role?{role:n.role}:{role:"tab","aria-selected":m};return o.createElement(g.c,(0,i.__assign)({},c,v,{id:f,key:s,className:(0,d.A)(a,m&&t.linkIsSelected),onClick:function(e){return U(s,e)},onKeyDown:function(e){return z(s,e)},"aria-label":n.ariaLabel,name:n.headerText,keytipProps:n.keytipProps,"data-content":p}),l)},U=function(e,n){n.preventDefault(),D(e,n)},z=function(e,n){n.which===f.c.enter&&(n.preventDefault(),D(e))},D=function(n,t){var r;if(h(n),S=A(e,c),e.onLinkClick&&S.keyToIndexMapping[n]>=0){var i=S.keyToIndexMapping[n],a=o.Children.toArray(e.children)[i];Z(a)&&e.onLinkClick(a,t)}null===(r=s.current)||void 0===r||r.dismissMenu()};t=x(e.styles,{theme:w,linkSize:B,linkFormat:C});var W=function(){return null===(e=v)||void 0!==e&&void 0!==S.keyToIndexMapping[e]?v:S.links.length?S.links[0].itemKey:void 0;var e}(),V=W?S.keyToIndexMapping[W]:0,O=S.links.map((function(e){return N(S,e,W,t.link)})),K=o.useMemo((function(){return{items:[],alignTargetEdge:!0,directionalHint:M.A.bottomRightEdge}}),[]),G=b({onOverflowItemsChanged:function(e,n){n.forEach((function(e){var n=e.ele,t=e.isOverflowing;return n.dataset.isOverflowing="".concat(t)})),K.items=S.links.slice(e).filter((function(e){return e.itemKey!==W})).map((function(n,r){return n.role="menuitem",{key:n.itemKey||"".concat(e+r),onRender:function(){return N(S,n,W,t.linkInMenu)}}}))},rtl:(0,m.jI)(w),pinnedIndex:V}).menuButtonRef,$=P||g.c;return o.createElement("div",(0,i.__assign)({ref:n},F),o.createElement(y.R,(0,i.__assign)({componentRef:r,role:"tablist"},E,{direction:k.E.horizontal},R,{className:(0,d.A)(t.root,null===R||void 0===R?void 0:R.className)}),O,"menu"===L&&o.createElement($,{className:(0,d.A)(t.link,t.overflowMenuButton),elementRef:G,componentRef:s,menuProps:K,menuIconProps:{iconName:"More",style:{color:"inherit"}},ariaLabel:H,role:"tab"})),W&&S.links.map((function(n){return(!0===n.alwaysRender||W===n.itemKey)&&function(n,r){if(e.headersOnly||!n)return null;var i=S.keyToIndexMapping[n],a=S.keyToTabIdMapping[n];return o.createElement("div",{role:"tabpanel",hidden:!r,key:n,"aria-hidden":!r,"aria-labelledby":a,className:t.itemContainer},o.Children.toArray(e.children)[i])}(n.itemKey,W===n.itemKey)})))}));w.displayName="Pivot";var B=t(7354),C=t(40950),L={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"},H=function(e,n,t){var r,o,a;void 0===t&&(t=!1);var l=e.linkSize,s=e.linkFormat,c=e.theme,u=c.semanticColors,d=c.fonts,f="large"===l,m="tabs"===s;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"}}},!t&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:(r={},r[".".concat(C.Y2," &:focus")]={outline:"1px solid ".concat(u.focusBorder)},r[".".concat(C.Y2," &:focus:after")]={content:"attr(data-content)",position:"relative",border:0},r[":before"]={backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left ".concat(B.cs.durationValue2," ").concat(B.cs.easeFunction2,",\n                        right ").concat(B.cs.durationValue2," ").concat(B.cs.easeFunction2)},r[":after"]={color:"transparent",content:"attr(data-content)",display:"block",fontWeight:B.BO.bold,height:1,overflow:"hidden",visibility:"hidden"},r)},f&&{fontSize:d.large.fontSize},m&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:u.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:(o={":focus":{outlineOffset:"-2px"}},o[".".concat(C.Y2," &:focus::before")]={height:"auto",background:"transparent",transition:"none"},o["&:hover, &:focus"]={color:u.buttonTextCheckedHovered},o["&:active, &:hover"]={color:u.primaryButtonText,backgroundColor:u.primaryButtonBackground},o["&.".concat(n.linkIsSelected)]={backgroundColor:u.primaryButtonBackground,color:u.primaryButtonText,fontWeight:B.BO.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[B.up]=(0,i.__assign)({fontWeight:B.BO.semibold,color:"HighlightText",background:"Highlight"},(0,B.Qg)()),a)},o[".".concat(C.Y2," &.").concat(n.linkIsSelected,":focus")]={outlineColor:u.primaryButtonText},o)}]]]},R=(0,r.I)(w,(function(e){var n,t,r,o,a=e.className,l=e.linkSize,s=e.linkFormat,c=e.theme,u=c.semanticColors,d=c.fonts,f=(0,B.Km)(L,c),m="large"===l,g="tabs"===s;return{root:[f.root,d.medium,B.S8,{position:"relative",color:u.link,whiteSpace:"nowrap"},m&&f.rootIsLarge,g&&f.rootIsTabs,a],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:(0,i.__spreadArray)((0,i.__spreadArray)([f.link],H(e,f),!0),[(n={},n["&[data-is-overflowing='true']"]={display:"none"},n)],!1),overflowMenuButton:[f.overflowMenuButton,(t={visibility:"hidden",position:"absolute",right:0},t[".".concat(f.link,"[data-is-overflowing='true'] ~ &")]={visibility:"visible",position:"relative"},t)],linkInMenu:(0,i.__spreadArray)((0,i.__spreadArray)([f.linkInMenu],H(e,f,!0),!0),[{textAlign:"left",width:"100%",height:36,lineHeight:36}],!1),linkIsSelected:[f.link,f.linkIsSelected,{fontWeight:B.BO.semibold,selectors:(r={":before":{backgroundColor:u.inputBackgroundChecked,selectors:(o={},o[B.up]={backgroundColor:"Highlight"},o)},":hover::before":{left:0,right:0}},r[B.up]={color:"Highlight"},r)}],linkContent:[f.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[f.text,{display:"inline-block",verticalAlign:"top"}],count:[f.count,{display:"inline-block",verticalAlign:"top"}],icon:f.icon}}),void 0,{scope:"Pivot"})},52324:function(e,n,t){t.d(n,{y:function(){return s}});var r=t(84867),i=t(80322),o=t(81708),a=t(10990),l=t(33347),s=function(e){function n(n){var t=e.call(this,n)||this;return(0,o.f)(t),(0,a.A)("PivotItem",n,{linkText:"headerText"}),t}return(0,r.__extends)(n,e),n.prototype.render=function(){return i.createElement("div",(0,r.__assign)({},(0,l.G1)(this.props,l.JM)),this.props.children)},n}(i.Component)},84496:function(e,n,t){t.d(n,{S:function(){return A}});var r=t(75425),i=t(84867),o=t(80322),a=t(7354),l=t(26858),s=t(50453);var c,u=t(19452),d=t(54121),f=t(81708),m=t(3676),g=t(5141),p=t(33347),v=t(33042),h=t(43639),b=t(20852),y=(0,l.Z)(),k=function(e){function n(){var n=null!==e&&e.apply(this,arguments)||this;return n._onRenderContent=function(e){return"string"===typeof e.content?o.createElement("p",{className:n._classNames.subText},e.content):o.createElement("div",{className:n._classNames.subText},e.content)},n}return(0,i.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.className,t=e.calloutProps,r=e.directionalHint,a=e.directionalHintForRTL,l=e.styles,s=e.id,c=e.maxWidth,u=e.onRenderContent,d=void 0===u?this._onRenderContent:u,f=e.targetElement,m=e.theme;return this._classNames=y(l,{theme:m,className:n||t&&t.className,beakWidth:t&&t.isBeakVisible?t.beakWidth:0,gapSpace:t&&t.gapSpace,maxWidth:c}),o.createElement(h.P,(0,i.__assign)({target:f,directionalHint:r,directionalHintForRTL:a},t,(0,p.G1)(this.props,p.JM,["id"]),{className:this._classNames.root}),o.createElement("div",{className:this._classNames.content,id:s,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},n.defaultProps={directionalHint:b.A.topCenter,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},n}(o.Component),M=(0,r.I)(k,(function(e){var n=e.className,t=e.beakWidth,r=void 0===t?16:t,i=e.gapSpace,o=void 0===i?0:i,l=e.maxWidth,s=e.theme,c=s.semanticColors,u=s.fonts,d=s.effects,f=-(Math.sqrt(r*r/2)+o)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,a.lw.fadeIn200,{background:c.menuBackground,boxShadow:d.elevation8,padding:"8px",maxWidth:l,selectors:{":after":{content:"''",position:"absolute",bottom:f,left:f,right:f,top:f,zIndex:0}}},n],content:["ms-Tooltip-content",u.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"}(c||(c={}));var _=(0,l.Z)(),T=function(e){function n(t){var r=e.call(this,t)||this;return r._tooltipHost=o.createRef(),r._defaultTooltipId=(0,s.O)("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 v.$.Parent:return r._tooltipHost.current.parentElement;case v.$.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,i=r.props,o=i.overflowMode,a=i.delay;if(n._currentVisibleTooltip&&n._currentVisibleTooltip!==r&&n._currentVisibleTooltip.dismiss(),n._currentVisibleTooltip=r,void 0!==o){var l=r._getTargetElement();if(l&&(!function(e){return e.clientWidth<e.scrollWidth}(t=l)&&!function(e){return e.clientHeight<e.scrollHeight}(t)))return}if(!e.target||!(0,u.s)(e.target,r._getTargetElement()))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==c.zero){var s=r._getDelayTime(a);r._openTimerId=r._async.setTimeout((function(){r._toggleTooltip(!0)}),s)}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===d.c.escape||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 c.medium:return 300;case c.long:return 500;default:return 0}},(0,f.f)(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r._async=new m.j(r),r}return(0,i.__extends)(n,e),n.prototype.render=function(){var e=this.props,n=e.calloutProps,t=e.children,r=e.content,l=e.directionalHint,s=e.directionalHintForRTL,c=e.hostClassName,u=e.id,d=e.setAriaDescribedBy,f=void 0===d||d,m=e.tooltipProps,v=e.styles,h=e.theme;this._classNames=_(v,{theme:h,className:c});var b=this.state.isTooltipVisible,y=u||this._defaultTooltipId,k=(0,i.__assign)((0,i.__assign)({id:"".concat(y,"--tooltip"),content:r,targetElement:this._getTargetElement(),directionalHint:l,directionalHintForRTL:s,calloutProps:(0,g.kp)({},n,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},(0,p.G1)(this.props,p.JM,["id"])),m),T=(null===m||void 0===m?void 0:m.onRenderContent)?m.onRenderContent(k,(function(e){return(null===e||void 0===e?void 0:e.content)?o.createElement(o.Fragment,null,e.content):null})):r,x=b&&!!T,A=f&&b&&T?y:void 0;return o.createElement("div",(0,i.__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":A}),t,x&&o.createElement(M,(0,i.__assign)({},k)),o.createElement("div",{hidden:!0,id:y,style:a.dX},T))},n.prototype.componentWillUnmount=function(){n._currentVisibleTooltip&&n._currentVisibleTooltip===this&&(n._currentVisibleTooltip=void 0),this._async.dispose()},n.defaultProps={delay:c.medium},n}(o.Component),x={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},A=(0,r.I)(T,(function(e){var n=e.className,t=e.theme;return{root:[(0,a.Km)(x,t).root,{display:"inline"},n]}}),void 0,{scope:"TooltipHost"})},33042:function(e,n,t){var r;t.d(n,{$:function(){return r}}),function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(r||(r={}))},89575:function(e,n,t){t.d(n,{I:function(){return s}});var r=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,i=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,o=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,a=/\s+/g,l=/[\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 s(e,n,t){return e?(e=function(e){return(e=(e=(e=e.replace(r,"")).replace(i,"")).replace(a," ")).trim()}(e),l.test(e)||!t&&o.test(e)?"":function(e,n){var t="",r=e.split(" ");return 2===r.length?(t+=r[0].charAt(0).toUpperCase(),t+=r[1].charAt(0).toUpperCase()):3===r.length?(t+=r[0].charAt(0).toUpperCase(),t+=r[2].charAt(0).toUpperCase()):0!==r.length&&(t+=r[0].charAt(0).toUpperCase()),n&&t.length>1?t.charAt(1)+t.charAt(0):t}(e,n)):""}}}]);
//# sourceMappingURL=5990.271846e1.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[6156],{86156:function(n,u,r){r.r(u),r.d(u,{filterOutNull:function(){return i}});var t=r(24726);function i(n){return n.filter(t.O)}},24726:function(n,u,r){function t(n){return null!==n&&void 0!==n}r.d(u,{O:function(){return t}})}}]);
//# sourceMappingURL=6156.9d3224bf.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[6314],{89896:function(e,t,n){n.d(t,{s:function(){return r}});var o=n(26974);function r(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 i=(0,o.P)(t);if(i===e){r=!0;break}t=i}else e.contains&&(r=e.contains(t));return r}},43822:function(e,t,n){n.d(t,{w:function(){return r}});var o=n(26974);function r(e,t){return e&&e!==document.body?t(e)?e:r((0,o.P)(e),t):null}},26974:function(e,t,n){n.d(t,{P:function(){return r}});var o=n(7080);function r(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t;return e&&(0,o.q)(e)&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}},7080:function(e,t,n){function o(e){return e&&!!e._virtual}n.d(t,{q:function(){return o}})},19452:function(e,t,n){n.d(t,{s:function(){return i}});var o=n(43822),r=n(28251);function i(e,t){var n=(0,o.w)(e,(function(e){return t===e||e.hasAttribute(r.r)}));return null!==n&&n.hasAttribute(r.r)}},28251:function(e,t,n){n.d(t,{V:function(){return r},r:function(){return o}});var o="data-portal-element";function r(e){e.setAttribute(o,"true")}},79989:function(e,t,n){n.d(t,{v:function(){return I}});var o=n(7354);function r(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function i(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function a(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function s(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function l(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function u(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function c(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function d(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function p(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function f(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function m(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function h(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function g(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function v(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function b(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function y(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function _(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function C(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}function k(e,t){void 0===e&&(e="");var n={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"}};(0,o.K1)(n,t)}var S=function(){(0,o.aH)("trash","delete"),(0,o.aH)("onedrive","onedrivelogo"),(0,o.aH)("alertsolid12","eventdatemissed12"),(0,o.aH)("sixpointstar","6pointstar"),(0,o.aH)("twelvepointstar","12pointstar"),(0,o.aH)("toggleon","toggleleft"),(0,o.aH)("toggleoff","toggleright")},E=n(50963);(0,n(97441).v)("@fluentui/font-icons-mdl2","8.5.25");var M="".concat(o.pD,"/assets/icons/"),x=(0,E.z)();function I(e,t){var n,o;void 0===e&&(e=(null===(n=null===x||void 0===x?void 0:x.FabricConfig)||void 0===n?void 0:n.iconBaseUrl)||(null===(o=null===x||void 0===x?void 0:x.FabricConfig)||void 0===o?void 0:o.fontBaseUrl)||M),[r,i,a,s,l,u,c,d,p,f,m,h,g,v,b,y,_,C,k].forEach((function(n){return n(e,t)})),S()}},59413:function(e,t,n){n.d(t,{Y:function(){return i}});var o=n(3676),r=n(80322);function i(){var e=r.useRef();return e.current||(e.current=new o.j),r.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}},90801:function(e,t,n){n.d(t,{C:function(){return i}});var o=n(80322),r=n(60278);function i(e){var t=o.useState(e),n=t[0],i=t[1];return[n,{setTrue:(0,r.d)((function(){return function(){i(!0)}})),setFalse:(0,r.d)((function(){return function(){i(!1)}})),toggle:(0,r.d)((function(){return function(){i((function(e){return!e}))}}))}]}},60278:function(e,t,n){n.d(t,{d:function(){return r}});var o=n(80322);function r(e){var t=o.useRef();return void 0===t.current&&(t.current={value:"function"===typeof e?e():e}),t.current.value}},30749:function(e,t,n){n.d(t,{k:function(){return i}});var o=n(80322),r=n(60278);function i(e,t,n){var i=o.useState(t),a=i[0],s=i[1],l=(0,r.d)(void 0!==e),u=l?e:a,c=o.useRef(u),d=o.useRef(n);o.useEffect((function(){c.current=u,d.current=n}));var p=(0,r.d)((function(){return function(e,t){var n="function"===typeof e?e(c.current):e;d.current&&d.current(t,n),l||s(n)}}));return[u,p]}},66848:function(e,t,n){n.d(t,{B:function(){return i}});var o=n(80322),r=n(50453);function i(e,t){var n=o.useRef(t);return n.current||(n.current=(0,r.O)(e)),n.current}},62950:function(e,t,n){n.d(t,{x:function(){return i}});var o=n(64710),r=n(80322);function i(e,t,n,i){var a=r.useRef(n);a.current=n,r.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n)return(0,o.on)(n,t,(function(e){return a.current(e)}),i)}),[e,t,i])}},84920:function(e,t,n){n.d(t,{Z:function(){return r}});var o=n(80322);function r(e){var t=(0,o.useRef)();return(0,o.useEffect)((function(){t.current=e})),t.current}},52922:function(e,t,n){n.d(t,{j:function(){return i}});var o=n(80322),r=n(60278),i=function(){var e=(0,r.d)({});return o.useEffect((function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++){var o=n[t];clearTimeout(o)}}}),[e]),(0,r.d)({setTimeout:function(e){function t(t,n){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}((function(t,n){var o=setTimeout(t,n);return e[o]=1,o})),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)}))})}},48028:function(e,t,n){n.d(t,{P:function(){return a}});var o=n(16114),r=n(80322),i=n(20403);function a(e,t){var n=r.useRef(),a=r.useRef(null),s=(0,i.ox)();if(!e||e!==n.current||"string"===typeof e){var l=null===t||void 0===t?void 0:t.current;if(e)if("string"===typeof e){var u=(0,o.Y)(l);a.current=u?u.querySelector(e):null}else a.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;n.current=e}return[a,s]}},51221:function(e,t,n){n.d(t,{i:function(){return r}});var o=n(80322),r=function(e){var t=o.useRef(e);t.current=e,o.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])}},20852:function(e,t,n){n.d(t,{A:function(){return o}});var o={topLeftEdge:0,topCenter:1,topRightEdge:2,topAutoEdge:3,bottomLeftEdge:4,bottomCenter:5,bottomRightEdge:6,bottomAutoEdge:7,leftTopEdge:8,leftCenter:9,leftBottomEdge:10,rightTopEdge:11,rightCenter:12,rightBottomEdge:13}},77557:function(e,t,n){n.d(t,{r:function(){return p}});var o=n(84867),r=n(80322),i=n(8174),a=n(28620),s=n(8492),l=n(7354),u=n(65808),c=n(33530),d=(0,u.J9)((function(e,t){var n,o,r,i=(0,c.$)(e),a={root:{padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent",selectors:(n={},n[l.up]={borderColor:"Window"},n)},rootHovered:{color:e.palette.themePrimary,selectors:(o={},o[l.up]={color:"Highlight"},o)},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:(r={},r[l.up]={color:"GrayText"},r)},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}};return(0,l.TW)(i,a,t)})),p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return r.createElement(i.S,(0,o.__assign)({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:d(n,t),onRenderDescription:a.K}))},t=(0,o.__decorate)([(0,s.T)("ActionButton",["theme","styles"],!0)],t)}(r.Component)},19616:function(e,t,n){n.d(t,{_:function(){return i},o:function(){return a}});var o=n(65808),r=n(7354),i={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"},a=(0,o.J9)((function(e,t,n,o,a,s,l,u,c,d,p){var f,m,h=(0,r.Km)(i,e||{}),g=d&&!p;return(0,r.l8)({root:[h.msButton,t.root,o,c&&["is-checked",t.rootChecked],g&&["is-expanded",t.rootExpanded,{selectors:(f={},f[":hover .".concat(h.msButtonIcon)]=t.iconExpandedHovered,f[":hover .".concat(h.msButtonMenuIcon)]=t.menuIconExpandedHovered||t.rootExpandedHovered,f[":hover"]=t.rootExpandedHovered,f)}],u&&[i.msButtonHasMenu,t.rootHasMenu],l&&["is-disabled",t.rootDisabled],!l&&!g&&!c&&{selectors:(m={":hover":t.rootHovered},m[":hover .".concat(h.msButtonLabel)]=t.labelHovered,m[":hover .".concat(h.msButtonIcon)]=t.iconHovered,m[":hover .".concat(h.msButtonDescription)]=t.descriptionHovered,m[":hover .".concat(h.msButtonMenuIcon)]=t.menuIconHovered,m[":focus"]=t.rootFocused,m[":active"]=t.rootPressed,m[":active .".concat(h.msButtonIcon)]=t.iconPressed,m[":active .".concat(h.msButtonDescription)]=t.descriptionPressed,m[":active .".concat(h.msButtonMenuIcon)]=t.menuIconPressed,m)},l&&c&&[t.rootCheckedDisabled],!l&&c&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},n],flexContainer:[h.msButtonFlexContainer,t.flexContainer],textContainer:[h.msButtonTextContainer,t.textContainer],icon:[h.msButtonIcon,a,t.icon,g&&t.iconExpanded,c&&t.iconChecked,l&&t.iconDisabled],label:[h.msButtonLabel,t.label,c&&t.labelChecked,l&&t.labelDisabled],menuIcon:[h.msButtonMenuIcon,s,t.menuIcon,c&&t.menuIconChecked,l&&!p&&t.menuIconDisabled,!l&&!g&&!c&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},g&&["is-expanded",t.menuIconExpanded]],description:[h.msButtonDescription,t.description,c&&t.descriptionChecked,l&&t.descriptionDisabled],screenReaderText:[h.msButtonScreenReaderText,t.screenReaderText]})}))},8174:function(e,t,n){n.d(t,{S:function(){return B}});var o=n(84867),r=n(80322),i=n(23993),a=n(65808),s=n(16711),l=n(19452),u=n(54121),c=n(40950),d=n(81708),p=n(3676),f=n(76929),m=n(63269),h=n(10990),g=n(50453),v=n(33347),b=n(5141),y=n(28620),_=n(13578),C=n(67223),k=n(12300),S=n(35566),E=n(92256),M=n(48767),x=function(e){var t=e.className,n=e.imageProps,i=(0,v.G1)(e,v.vt,["aria-label","aria-labelledby","title","aria-describedby"]),a=n.alt||e["aria-label"],l=a||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,u={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},c=l?{}:{"aria-hidden":!0};return r.createElement("div",(0,o.__assign)({},c,i,{className:(0,s.A)(M.xD,M.xW.root,M.xW.image,t)}),r.createElement(E._,(0,o.__assign)({},u,n,{alt:l?a:""})))},I=n(20852),T=n(42523),D=n(19616),F=n(7354),w=(0,a.J9)((function(e,t,n,o,r){return{root:(0,F.Zq)(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],o&&!t&&[e.splitButtonMenuButtonChecked],r&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:(0,F.Zq)(e.splitButtonContainer,!t&&o&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!o&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:(0,F.Zq)(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&r&&e.splitButtonMenuIcon),flexContainer:(0,F.Zq)(e.splitButtonFlexContainer),divider:(0,F.Zq)(e.splitButtonDivider,(r||t)&&e.splitButtonDividerDisabled)}})),P=n(57622),L=n(21005),R="BaseButton",B=function(e){function t(t){var n=e.call(this,t)||this;return n._buttonElement=r.createRef(),n._splitButtonContainer=r.createRef(),n._mergedRef=(0,i.K)(),n._renderedVisibleMenu=!1,n._getMemoizedMenuButtonKeytipProps=(0,a.J9)((function(e){return(0,o.__assign)((0,o.__assign)({},e),{hasMenu:!0})})),n._onRenderIcon=function(e,t){var i=n.props.iconProps;if(i&&(void 0!==i.iconName||i.imageProps)){var a=i.className,l=i.imageProps,u=(0,o.__rest)(i,["className","imageProps"]);if(i.styles)return r.createElement(k.I,(0,o.__assign)({className:(0,s.A)(n._classNames.icon,a),imageProps:l},u));if(i.iconName)return r.createElement(S.l8,(0,o.__assign)({className:(0,s.A)(n._classNames.icon,a)},u));if(l)return r.createElement(x,(0,o.__assign)({className:(0,s.A)(n._classNames.icon,a),imageProps:l},u))}return null},n._onRenderTextContents=function(){var e=n.props,t=e.text,o=e.children,i=e.secondaryText,a=void 0===i?n.props.description:i,s=e.onRenderText,l=void 0===s?n._onRenderText:s,u=e.onRenderDescription,c=void 0===u?n._onRenderDescription:u;return t||"string"===typeof o||a?r.createElement("span",{className:n._classNames.textContainer},l(n.props,n._onRenderText),c(n.props,n._onRenderDescription)):[l(n.props,n._onRenderText),c(n.props,n._onRenderDescription)]},n._onRenderText=function(){var e=n.props.text,t=n.props.children;return void 0===e&&"string"===typeof t&&(e=t),n._hasText()?r.createElement("span",{key:n._labelId,className:n._classNames.label,id:n._labelId},e):null},n._onRenderChildren=function(){var e=n.props.children;return"string"===typeof e?null:e},n._onRenderDescription=function(e){var t=e.secondaryText,o=void 0===t?n.props.description:t;return o?r.createElement("span",{key:n._descriptionId,className:n._classNames.description,id:n._descriptionId},o):null},n._onRenderAriaDescription=function(){var e=n.props.ariaDescription;return e?r.createElement("span",{className:n._classNames.screenReaderText,id:n._ariaDescriptionId},e):null},n._onRenderMenuIcon=function(e){var t=n.props.menuIconProps;return r.createElement(S.l8,(0,o.__assign)({iconName:"ChevronDown"},t,{className:n._classNames.menuIcon}))},n._onRenderMenu=function(e){var t=n.props.menuAs?(0,L.C)(n.props.menuAs,T.l):T.l;return r.createElement(t,(0,o.__assign)({},e))},n._onDismissMenu=function(e){var t=n.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||n._dismissMenu()},n._dismissMenu=function(){n._menuShouldFocusOnMount=void 0,n._menuShouldFocusOnContainer=void 0,n.setState({menuHidden:!0})},n._openMenu=function(e,t){void 0===t&&(t=!0),n.props.menuProps&&(n._menuShouldFocusOnContainer=e,n._menuShouldFocusOnMount=t,n._renderedVisibleMenu=!0,n.setState({menuHidden:!1}))},n._onToggleMenu=function(e){var t=!0;n.props.menuProps&&!1===n.props.menuProps.shouldFocusOnMount&&(t=!1),n.state.menuHidden?n._openMenu(e,t):n._dismissMenu()},n._onSplitContainerFocusCapture=function(e){var t=n._splitButtonContainer.current;!t||e.target&&(0,l.s)(e.target,t)||t.focus()},n._onSplitButtonPrimaryClick=function(e){n.state.menuHidden||n._dismissMenu();var t=n._processingTouch&&!n.props.toggle;!t&&n.props.onClick?n.props.onClick(e):t&&n._onMenuClick(e)},n._onKeyDown=function(e){!n.props.disabled||e.which!==u.c.enter&&e.which!==u.c.space?n.props.disabled||(n.props.menuProps?n._onMenuKeyDown(e):void 0!==n.props.onKeyDown&&n.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},n._onKeyUp=function(e){n.props.disabled||void 0===n.props.onKeyUp||n.props.onKeyUp(e)},n._onKeyPress=function(e){n.props.disabled||void 0===n.props.onKeyPress||n.props.onKeyPress(e)},n._onMouseUp=function(e){n.props.disabled||void 0===n.props.onMouseUp||n.props.onMouseUp(e)},n._onMouseDown=function(e){n.props.disabled||void 0===n.props.onMouseDown||n.props.onMouseDown(e)},n._onClick=function(e){n.props.disabled||(n.props.menuProps?n._onMenuClick(e):void 0!==n.props.onClick&&n.props.onClick(e))},n._onSplitButtonContainerKeyDown=function(e){e.which===u.c.enter||e.which===u.c.space?n._buttonElement.current&&(n._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):n._onMenuKeyDown(e)},n._onMenuKeyDown=function(e){var t;if(!n.props.disabled){n.props.onKeyDown&&n.props.onKeyDown(e);var o=e.which===u.c.up,r=e.which===u.c.down;if(!e.defaultPrevented&&n._isValidMenuOpenKey(e)){var i=n.props.onMenuClick;i&&i(e,n.props),n._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}if(e.which!==u.c.enter&&e.which!==u.c.space||(0,c.Fy)(!0,e.target,null===(t=n.context)||void 0===t?void 0:t.registeredProviders),!e.altKey&&!e.metaKey&&(o||r))if(!n.state.menuHidden&&n.props.menuProps)(void 0!==n._menuShouldFocusOnMount?n._menuShouldFocusOnMount:n.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),n._menuShouldFocusOnMount=!0,n.forceUpdate())}},n._onTouchStart=function(){n._isSplitButton&&n._splitButtonContainer.current&&!("onpointerdown"in n._splitButtonContainer.current)&&n._handleTouchAndPointerEvent()},n._onMenuClick=function(e){var t=n.props,o=t.onMenuClick,r=t.menuProps;o&&o(e,n.props);var i="boolean"===typeof(null===r||void 0===r?void 0:r.shouldFocusOnContainer)?r.shouldFocusOnContainer:"mouse"===e.nativeEvent.pointerType;e.defaultPrevented||(n._onToggleMenu(i),e.preventDefault(),e.stopPropagation())},(0,d.f)(n),n._async=new p.j(n),n._events=new f.g(n),(0,m.J)(R,t,["menuProps","onClick"],"split",n.props.split),(0,h.A)(R,t,{rootProps:void 0,description:"secondaryText",toggled:"checked"}),n._labelId=(0,g.O)(),n._descriptionId=(0,g.O)(),n._ariaDescriptionId=(0,g.O)(),n.state={menuHidden:!0},n}return(0,o.__extends)(t,e),Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,o=t.ariaLabel,r=t.ariaHidden,i=t.className,a=t.disabled,s=t.allowDisabledFocus,l=t.primaryDisabled,u=t.secondaryText,c=void 0===u?this.props.description:u,d=t.href,p=t.iconProps,f=t.menuIconProps,m=t.styles,h=t.checked,g=t.variantClassName,_=t.theme,C=t.toggle,k=t.getClassNames,S=t.role,E=this.state.menuHidden,M=a||l;this._classNames=k?k(_,i,g,p&&p.className,f&&f.className,M,h,!E,!!this.props.menuProps,this.props.split,!!s):(0,D.o)(_,m,i,g,p&&p.className,f&&f.className,M,!!this.props.menuProps,h,!E,this.props.split);var x=this,I=x._ariaDescriptionId,T=x._labelId,F=x._descriptionId,w=!M&&!!d,P=w?"a":"button",L=(0,v.G1)((0,b.kp)(w?{}:{type:"button"},this.props.rootProps,this.props),w?v.t0:v.uw,["disabled"]),R=o||L["aria-label"],B=void 0;n?B=I:c&&this.props.onRenderDescription!==y.K?B=F:L["aria-describedby"]&&(B=L["aria-describedby"]);var A=void 0;L["aria-labelledby"]?A=L["aria-labelledby"]:B&&!R&&(A=this._hasText()?T:void 0);var N=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),O="menuitemcheckbox"===S||"checkbox"===S,H=O||!0===C?!!h:void 0,W=(0,b.kp)(L,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:M&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":R,"aria-labelledby":A,"aria-describedby":B,"aria-disabled":M,"data-is-focusable":N})[O?"aria-checked":"aria-pressed"]=H,e));if(r&&(W["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(P,W);if(this.props.menuProps){var K=this.props.menuProps.id,U=void 0===K?"".concat(this._labelId,"-menu"):K;(0,b.kp)(W,{"aria-expanded":!E,"aria-controls":E?null:U,"aria-haspopup":!0})}return this._onRenderContent(P,W)},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){var e,t;this._isSplitButton&&this._splitButtonContainer.current?((0,c.Fy)(!0,void 0,null===(e=this.context)||void 0===e?void 0:e.registeredProviders),this._splitButtonContainer.current.focus()):this._buttonElement.current&&((0,c.Fy)(!0,void 0,null===(t=this.context)||void 0===t?void 0:t.registeredProviders),this._buttonElement.current.focus())},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(e,t){this._openMenu(e,t)},t.prototype._onRenderContent=function(e,t){var n=this,i=this.props,a=e,s=i.menuIconProps,l=i.menuProps,u=i.onRenderIcon,c=void 0===u?this._onRenderIcon:u,d=i.onRenderAriaDescription,p=void 0===d?this._onRenderAriaDescription:d,f=i.onRenderChildren,m=void 0===f?this._onRenderChildren:f,h=i.onRenderMenu,g=void 0===h?this._onRenderMenu:h,v=i.onRenderMenuIcon,b=void 0===v?this._onRenderMenuIcon:v,y=i.disabled,C=i.keytipProps;C&&l&&(C=this._getMemoizedMenuButtonKeytipProps(C));var k=function(e){return r.createElement(a,(0,o.__assign)({},t,e),r.createElement("span",{className:n._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},c(i,n._onRenderIcon),n._onRenderTextContents(),p(i,n._onRenderAriaDescription),m(i,n._onRenderChildren),!n._isSplitButton&&(l||s||n.props.onRenderMenuIcon)&&b(n.props,n._onRenderMenuIcon),l&&!l.doNotLayer&&n._shouldRenderMenu()&&g(n._getMenuProps(l),n._onRenderMenu)))},S=C?r.createElement(P.x,{keytipProps:this._isSplitButton?void 0:C,ariaDescribedBy:t["aria-describedby"],disabled:y},(function(e){return k(e)})):k();return l&&l.doNotLayer?r.createElement(r.Fragment,null,S,this._shouldRenderMenu()&&g(this._getMenuProps(l),this._onRenderMenu)):r.createElement(r.Fragment,null,S,r.createElement(_.MO,null))},t.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,o=t.renderPersistedMenuHiddenOnMount;return!e||!(!n||!this._renderedVisibleMenu&&!o)},t.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"===typeof this.props.children)},t.prototype._getMenuProps=function(e){var t=this.props.persistMenu,n=this.state.menuHidden;return e.ariaLabel||e.labelElementId||!this._hasText()||(e=(0,o.__assign)((0,o.__assign)({},e),{labelElementId:this._labelId})),(0,o.__assign)((0,o.__assign)({id:this._labelId+"-menu",directionalHint:I.A.bottomLeftEdge},e),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:t?n:void 0,className:(0,s.A)("ms-BaseButton-menuhost",e.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},t.prototype._onRenderSplitButtonContent=function(e,t){var n=this,i=this.props,a=i.styles,s=void 0===a?{}:a,l=i.disabled,u=i.allowDisabledFocus,c=i.checked,d=i.getSplitButtonClassNames,p=i.primaryDisabled,f=i.menuProps,m=i.toggle,h=i.role,g=i.primaryActionButtonProps,y=this.props.keytipProps,_=this.state.menuHidden,k=d?d(!!l,!_,!!c,!!u):s&&w(s,!!l,!_,!!c,!!p);(0,b.kp)(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),y&&f&&(y=this._getMemoizedMenuButtonKeytipProps(y));var S=(0,v.G1)(t,[],["disabled"]);g&&(0,b.kp)(t,g);var E=function(i){return r.createElement("div",(0,o.__assign)({},S,{"data-ktp-target":i?i["data-ktp-target"]:void 0,role:h||"button","aria-disabled":l,"aria-haspopup":!0,"aria-expanded":!_,"aria-pressed":m?!!c:void 0,"aria-describedby":(0,C._)(t["aria-describedby"],i?i["aria-describedby"]:void 0),className:k&&k.splitButtonContainer,onKeyDown:n._onSplitButtonContainerKeyDown,onTouchStart:n._onTouchStart,ref:n._splitButtonContainer,"data-is-focusable":!0,onClick:l||p?void 0:n._onSplitButtonPrimaryClick,tabIndex:!l&&!p||u?0:void 0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:n._onSplitContainerFocusCapture}),r.createElement("span",{style:{display:"flex",width:"100%"}},n._onRenderContent(e,t),n._onRenderSplitButtonMenuButton(k,i),n._onRenderSplitButtonDivider(k)))};return y?r.createElement(P.x,{keytipProps:y,disabled:l},(function(e){return E(e)})):E()},t.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return r.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}})}return null},t.prototype._onRenderSplitButtonMenuButton=function(e,n){var i=this.props,a=i.allowDisabledFocus,s=i.checked,l=i.disabled,u=i.splitButtonMenuProps,c=i.splitButtonAriaLabel,d=i.primaryDisabled,p=this.state.menuHidden,f=this.props.menuIconProps;void 0===f&&(f={iconName:"ChevronDown"});var m=(0,o.__assign)((0,o.__assign)({},u),{styles:e,checked:s,disabled:l,allowDisabledFocus:a,onClick:this._onMenuClick,menuProps:void 0,iconProps:(0,o.__assign)((0,o.__assign)({},f),{className:this._classNames.menuIcon}),ariaLabel:c,"aria-haspopup":!0,"aria-expanded":!p,"data-is-focusable":!1});return r.createElement(t,(0,o.__assign)({},m,{"data-ktp-execute-target":n?n["data-ktp-execute-target"]:n,onMouseDown:this._onMouseDown,tabIndex:d&&!a?0:-1}))},t.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.state.menuHidden&&e.focus()}),500)},t.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&(e.which===u.c.down&&(e.altKey||e.metaKey))},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t.contextType=_.dM,t}(r.Component)},33530:function(e,t,n){n.d(t,{$:function(){return s}});var o=n(65808),r=n(7354),i={outline:0},a=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},s=(0,o.J9)((function(e){var t,n,o=e.semanticColors,s=e.effects,l=e.fonts,u=o.buttonBorder,c=o.disabledBackground,d=o.disabledText,p={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[(0,r.gm)(e,{inset:1,highContrastStyle:p,borderColor:"transparent"}),e.fonts.medium,{border:"1px solid "+u,borderRadius:s.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:[(0,r.gm)(e,{inset:1,highContrastStyle:p,borderColor:"transparent"}),{backgroundColor:c,borderColor:c,color:d,cursor:"default",selectors:{":hover":i,":focus":i}}],iconDisabled:{color:d,selectors:(t={},t[r.up]={color:"GrayText"},t)},menuIconDisabled:{color:d,selectors:(n={},n[r.up]={color:"GrayText"},n)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:a(l.mediumPlus.fontSize),menuIcon:a(l.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:r.dX}}))},43867:function(e,t,n){n.d(t,{p:function(){return s},y:function(){return a}});var o=n(84867),r=n(7354),i=n(40950);function a(e){var t,n,i,a,s,l=e.semanticColors,u=e.palette,c=l.buttonBackground,d=l.buttonBackgroundPressed,p=l.buttonBackgroundHovered,f=l.buttonBackgroundDisabled,m=l.buttonText,h=l.buttonTextHovered,g=l.buttonTextDisabled,v=l.buttonTextChecked,b=l.buttonTextCheckedHovered;return{root:{backgroundColor:c,color:m},rootHovered:{backgroundColor:p,color:h,selectors:(t={},t[r.up]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:d,color:v},rootExpanded:{backgroundColor:d,color:v},rootChecked:{backgroundColor:d,color:v},rootCheckedHovered:{backgroundColor:d,color:b},rootDisabled:{color:g,backgroundColor:f,selectors:(n={},n[r.up]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n)},splitButtonContainer:{selectors:(i={},i[r.up]={border:"none"},i)},splitButtonMenuButton:{color:u.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:u.neutralLight,selectors:(a={},a[r.up]={color:"Highlight"},a)}}},splitButtonMenuButtonDisabled:{backgroundColor:l.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:l.buttonBackgroundDisabled}}},splitButtonDivider:(0,o.__assign)((0,o.__assign)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:u.neutralTertiaryAlt,selectors:(s={},s[r.up]={backgroundColor:"WindowText"},s)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:u.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:u.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:u.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:u.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:l.buttonText},splitButtonMenuIconDisabled:{color:l.buttonTextDisabled}}}function s(e){var t,n,a,s,l,u,c,d,p,f=e.palette,m=e.semanticColors;return{root:{backgroundColor:m.primaryButtonBackground,border:"1px solid ".concat(m.primaryButtonBackground),color:m.primaryButtonText,selectors:(t={},t[r.up]=(0,o.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},(0,r.Qg)()),t[".".concat(i.Y2," &:focus")]={selectors:{":after":{border:"none",outlineColor:f.white}}},t)},rootHovered:{backgroundColor:m.primaryButtonBackgroundHovered,border:"1px solid ".concat(m.primaryButtonBackgroundHovered),color:m.primaryButtonTextHovered,selectors:(n={},n[r.up]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n)},rootPressed:{backgroundColor:m.primaryButtonBackgroundPressed,border:"1px solid ".concat(m.primaryButtonBackgroundPressed),color:m.primaryButtonTextPressed,selectors:(a={},a[r.up]=(0,o.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},(0,r.Qg)()),a)},rootExpanded:{backgroundColor:m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed},rootChecked:{backgroundColor:m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:m.primaryButtonBackgroundPressed,color:m.primaryButtonTextPressed},rootDisabled:{color:m.primaryButtonTextDisabled,backgroundColor:m.primaryButtonBackgroundDisabled,selectors:(s={},s[r.up]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},s)},splitButtonContainer:{selectors:(l={},l[r.up]={border:"none"},l)},splitButtonDivider:(0,o.__assign)((0,o.__assign)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:f.white,selectors:(u={},u[r.up]={backgroundColor:"Window"},u)}),splitButtonMenuButton:{backgroundColor:m.primaryButtonBackground,color:m.primaryButtonText,selectors:(c={},c[r.up]={backgroundColor:"Canvas"},c[":hover"]={backgroundColor:m.primaryButtonBackgroundHovered,selectors:(d={},d[r.up]={color:"Highlight"},d)},c)},splitButtonMenuButtonDisabled:{backgroundColor:m.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:m.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:m.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:m.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:m.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:m.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:m.primaryButtonText},splitButtonMenuIconDisabled:{color:f.neutralTertiary,selectors:(p={},p[r.up]={color:"GrayText"},p)}}}},27630:function(e,t,n){n.d(t,{c:function(){return o}});var o=n(77557).r},93258:function(e,t,n){n.d(t,{Y:function(){return m}});var o=n(84867),r=n(80322),i=n(8174),a=n(28620),s=n(8492),l=n(7354),u=n(65808),c=n(33530),d=n(97440),p=n(43867),f=(0,u.J9)((function(e,t,n){var o=(0,c.$)(e),r=(0,d.$)(e),i={root:{minWidth:"80px",height:"32px"},label:{fontWeight:l.BO.semibold}};return(0,l.TW)(o,i,n?(0,p.p)(e):(0,p.y)(e),r,t)})),m=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,s=e.styles,l=e.theme;return r.createElement(i.S,(0,o.__assign)({},this.props,{variantClassName:n?"ms-Button--primary":"ms-Button--default",styles:f(l,s,n),onRenderDescription:a.K}))},t=(0,o.__decorate)([(0,s.T)("DefaultButton",["theme","styles"],!0)],t)}(r.Component)},47751:function(e,t,n){n.d(t,{K:function(){return f}});var o=n(84867),r=n(80322),i=n(8174),a=n(28620),s=n(8492),l=n(7354),u=n(65808),c=n(33530),d=n(97440),p=(0,u.J9)((function(e,t){var n,o=(0,c.$)(e),r=(0,d.$)(e),i=e.palette,a={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[l.up]={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}};return(0,l.TW)(o,a,r,t)})),f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return r.createElement(i.S,(0,o.__assign)({},this.props,{variantClassName:"ms-Button--icon",styles:p(n,t),onRenderText:a.K,onRenderDescription:a.K}))},t=(0,o.__decorate)([(0,s.T)("IconButton",["theme","styles"],!0)],t)}(r.Component)},29178:function(e,t,n){n.d(t,{j:function(){return l}});var o=n(84867),r=n(80322),i=n(28620),a=n(8492),s=n(93258),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,o.__extends)(t,e),t.prototype.render=function(){return r.createElement(s.Y,(0,o.__assign)({},this.props,{primary:!0,onRenderDescription:i.K}))},t=(0,o.__decorate)([(0,a.T)("PrimaryButton",["theme","styles"],!0)],t)}(r.Component)},97440:function(e,t,n){n.d(t,{$:function(){return i}});var o=n(84867),r=n(7354),i=(0,n(65808).J9)((function(e,t){var n,i,a,s,l,u,c,d,p,f,m,h,g,v=e.effects,b=e.palette,y=e.semanticColors,_={left:-2,top:-2,bottom:-2,right:-2,border:"none"},C={position:"absolute",width:1,right:31,top:8,bottom:8},k={splitButtonContainer:[(0,r.gm)(e,{highContrastStyle:_,inset:2,pointerEvents:"none"}),{display:"inline-flex",selectors:{".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":{borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",selectors:(n={},n[r.up]=(0,o.__assign)({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},(0,r.Qg)()),n[":hover"]={border:"none"},n[":active"]={border:"none"},n)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(i={},i[r.up]={border:"1px solid WindowText",borderLeftWidth:"0"},i)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(a={},a[r.up]={color:"Window",backgroundColor:"Highlight"},a)},".ms-Button.is-disabled":{color:y.buttonTextDisabled,selectors:(s={},s[r.up]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},s)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(l={},l[r.up]=(0,o.__assign)({color:"Window",backgroundColor:"WindowText"},(0,r.Qg)()),l)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(u={},u[r.up]=(0,o.__assign)({color:"Window",backgroundColor:"WindowText"},(0,r.Qg)()),u)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(c={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:v.roundedCorner2,borderBottomRightRadius:v.roundedCorner2,border:"1px solid ".concat(b.neutralSecondaryAlt),borderLeft:"none",outline:"transparent",userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",verticalAlign:"top",width:32,marginLeft:-1,marginTop:0,marginRight:0,marginBottom:0},c[r.up]={".ms-Button-menuIcon":{color:"WindowText"}},c),splitButtonDivider:(0,o.__assign)((0,o.__assign)({},C),{selectors:(d={},d[r.up]={backgroundColor:"WindowText"},d)}),splitButtonDividerDisabled:(0,o.__assign)((0,o.__assign)({},C),{selectors:(p={},p[r.up]={backgroundColor:"GrayText"},p)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(f={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(m={},m[r.up]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},m)},".ms-Button-menuIcon":{selectors:(h={},h[r.up]={color:"GrayText"},h)}},f[r.up]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},f)},splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:{outline:"none",border:"none",selectors:(g={},g[r.up]=(0,o.__assign)({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},(0,r.Qg)()),g)},splitButtonMenuFocused:(0,o.__assign)({},(0,r.gm)(e,{highContrastStyle:_,inset:2}))};return(0,r.TW)(k,t)}))},43639:function(e,t,n){n.d(t,{P:function(){return ke}});var o,r=n(84867),i=n(80322),a=n(75425),s=n(20852),l=n(67471),u=n(89896),c=n(64710),d=n(48038),p=n(33347),f=n(16711),m=n(5141),h=n(59772),g=n(16758),v=n(11499),b=function(){function e(e,t,n,o){void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=0),void 0===o&&(o=0),this.top=n,this.bottom=o,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 y(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}var _=((o={})[s.A.topLeftEdge]=y(h.x.top,h.x.left),o[s.A.topCenter]=y(h.x.top),o[s.A.topRightEdge]=y(h.x.top,h.x.right),o[s.A.topAutoEdge]=y(h.x.top,void 0,!0),o[s.A.bottomLeftEdge]=y(h.x.bottom,h.x.left),o[s.A.bottomCenter]=y(h.x.bottom),o[s.A.bottomRightEdge]=y(h.x.bottom,h.x.right),o[s.A.bottomAutoEdge]=y(h.x.bottom,void 0,!0),o[s.A.leftTopEdge]=y(h.x.left,h.x.top),o[s.A.leftCenter]=y(h.x.left),o[s.A.leftBottomEdge]=y(h.x.left,h.x.bottom),o[s.A.rightTopEdge]=y(h.x.right,h.x.top),o[s.A.rightCenter]=y(h.x.right),o[s.A.rightBottomEdge]=y(h.x.right,h.x.bottom),o);function C(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function k(e,t){var n=[];return e.top<t.top&&n.push(h.x.top),e.bottom>t.bottom&&n.push(h.x.bottom),e.left<t.left&&n.push(h.x.left),e.right>t.right&&n.push(h.x.right),n}function S(e,t){return e[h.x[t]]}function E(e,t,n){return e[h.x[t]]=n,e}function M(e,t){var n=N(t);return(S(e,n.positiveEdge)+S(e,n.negativeEdge))/2}function x(e,t){return e>0?t:-1*t}function I(e,t){return x(e,S(t,e))}function T(e,t,n){return x(n,S(e,n)-S(t,n))}function D(e,t,n,o){void 0===o&&(o=!0);var r=S(e,t)-n,i=E(e,t,n);return o&&(i=E(e,-1*t,S(e,-1*t)-r)),i}function F(e,t,n,o){return void 0===o&&(o=0),D(e,n,S(t,n)+x(n,o))}function w(e,t,n){return I(n,e)>I(n,t)}function P(e,t){for(var n=0,o=0,r=k(e,t);o<r.length;o++){var i=r[o];n+=Math.pow(T(e,t,i),2)}return n}function L(e,t,n,o,r,i,a){void 0===r&&(r=0);var s=o.alignmentEdge,l=o.alignTargetEdge,u={elementRectangle:e,targetEdge:o.targetEdge,alignmentEdge:s};i||a||(u=function(e,t,n,o,r){void 0===r&&(r=0);var i=[h.x.left,h.x.right,h.x.bottom,h.x.top];(0,g.jI)()&&(i[0]*=-1,i[1]*=-1);for(var a,s=e,l=o.targetEdge,u=o.alignmentEdge,c=l,d=u,p=0;p<4;p++){if(w(s,n,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:u};var f=P(s,n);(!a||f<a)&&(a=f,c=l,d=u),i.splice(i.indexOf(l),1),i.length>0&&(i.indexOf(-1*l)>-1?l*=-1:(u=l,l=i.slice(-1)[0]),s=A(e,t,{targetEdge:l,alignmentEdge:u},r))}return{elementRectangle:s=A(e,t,{targetEdge:c,alignmentEdge:d},r),targetEdge:c,alignmentEdge:d}}(e,t,n,o,r));var c=k(u.elementRectangle,n),d=i?-u.targetEdge:void 0;if(c.length>0)if(l)if(u.alignmentEdge&&c.indexOf(-1*u.alignmentEdge)>-1){var p=function(e,t,n,o){var r=e.alignmentEdge,i=e.targetEdge,a=-1*r;return{elementRectangle:A(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,o),targetEdge:i,alignmentEdge:a}}(u,t,r,a);if(C(p.elementRectangle,n))return p;u=R(k(p.elementRectangle,n),u,n,d)}else u=R(c,u,n,d);else u=R(c,u,n,d);return u}function R(e,t,n,o){for(var r=0,i=e;r<i.length;r++){var a=i[r],s=void 0;if(o&&o===-1*a)s=D(t.elementRectangle,a,S(n,a),!1),t.forcedInBounds=!0;else w(s=F(t.elementRectangle,n,a),n,-1*a)||(s=D(s,-1*a,S(n,-1*a),!1),t.forcedInBounds=!0);t.elementRectangle=s}return t}function B(e,t,n){var o=N(t).positiveEdge;return D(e,o,n-(M(e,t)-S(e,o)))}function A(e,t,n,o,r){void 0===o&&(o=0);var i=new b(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=r?s:-1*s;(i=r?F(i,t,s,o):function(e,t,n,o){void 0===o&&(o=0);var r=x(-1*n,o);return D(e,-1*n,S(t,n)+r)}(i,t,s,o),a)?i=F(i,t,a):i=B(i,l,M(t,s));return i}function N(e){return e===h.x.top||e===h.x.bottom?{positiveEdge:h.x.left,negativeEdge:h.x.right}:{positiveEdge:h.x.top,negativeEdge:h.x.bottom}}function O(e,t,n){return n&&Math.abs(T(e,n,t))>Math.abs(T(e,n,-1*t))?-1*t:t}function H(e,t,n,o,r,i,a,s){var l,u={},c=Y(t),d=i?n:-1*n,p=r||N(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&S(e,t)===S(n,t)}(e,(l=p,-1*l),o)||(p=O(e,p,o)),u[h.x[d]]=T(e,c,d),u[h.x[p]]=T(e,c,p),s&&(u[h.x[-1*d]]=T(e,c,-1*d),u[h.x[-1*p]]=T(e,c,-1*p)),u}function W(e){return Math.sqrt(e*e*2)}function K(e,t,n){if(void 0===e&&(e=s.A.bottomAutoEdge),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var o=(0,r.__assign)({},_[e]);return(0,g.jI)()?(o.alignmentEdge&&o.alignmentEdge%2===0&&(o.alignmentEdge=-1*o.alignmentEdge),void 0!==t?_[t]:o):o}function U(e,t,n){var o=M(t,e),r=M(n,e),i=N(e),a=i.positiveEdge,s=i.negativeEdge;return o<=r?a:s}function z(e,t,n,o,r,i,a){var s=A(e,t,o,r,a);return C(s,n)?{elementRectangle:s,targetEdge:o.targetEdge,alignmentEdge:o.alignmentEdge}:L(s,t,n,o,r,i,a)}function V(e,t,n){var o=-1*e.targetEdge,i=new b(0,e.elementRectangle.width,0,e.elementRectangle.height),a={},s=O(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:N(o).positiveEdge,n),l=T(e.elementRectangle,e.targetRectangle,o)>Math.abs(S(t,o));return a[h.x[o]]=S(t,o),a[h.x[s]]=T(t,i,s),{elementPosition:(0,r.__assign)({},a),closestEdge:U(e.targetEdge,t,i),targetEdge:o,hideBeak:!l}}function G(e,t){var n=t.targetRectangle,o=N(t.targetEdge),r=o.positiveEdge,i=o.negativeEdge,a=M(n,t.targetEdge),s=new b(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new b(0,e,0,e);return w(l=B(l=D(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-I(r,t.elementRectangle)),s,r)?w(l,s,i)||(l=F(l,s,i)):l=F(l,s,r),l}function Y(e){var t=e.getBoundingClientRect();return new b(t.left,t.right,t.top,t.bottom)}function q(e){return new b(e.left,e.right,e.top,e.bottom)}function j(e,t,n,o){var i=e.gapSpace?e.gapSpace:0,a=function(e,t){var n;if(t){if(t.preventDefault){var o=t;n=new b(o.clientX,o.clientX,o.clientY,o.clientY)}else if(t.getBoundingClientRect)n=Y(t);else{var r=t,i=r.left||r.x,a=r.top||r.y,s=r.right||i,l=r.bottom||a;n=new b(i,s,a,l)}if(!C(n,e))for(var u=0,c=k(n,e);u<c.length;u++){var d=c[u];n[h.x[d]]=e[h.x[d]]}}else n=new b(0,0,0,0);return n}(n,e.target),s=function(e,t,n,o,r){return e.isAuto&&(e.alignmentEdge=U(e.targetEdge,t,n)),e.alignTargetEdge=r,e}(K(e.directionalHint,e.directionalHintForRTL,o),a,n,e.coverTarget,e.alignTargetEdge),l=z(Y(t),a,n,s,i,e.directionalHintFixed,e.coverTarget);return(0,r.__assign)((0,r.__assign)({},l),{targetRectangle:a})}function Z(e,t,n,o,r){return{elementPosition:H(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,o,r,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function J(e,t,n,o,i){var a=e.isBeakVisible&&e.beakWidth||0,s=W(a)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var u=e.bounds?q(e.bounds):new b(0,window.innerWidth-(0,v.XJ)(),0,window.innerHeight),c=j(l,n,u,o),d=V(c,G(a,c),u);return(0,r.__assign)((0,r.__assign)({},Z(c,t,u,e.coverTarget,i)),{beakPosition:d})}function Q(e,t,n,o){return function(e,t,n,o){return J(e,t,n,o,!0)}(e,t,n,o)}var X,$=n(67275),ee=n(26858),te=n(7354),ne=n(59413),oe=n(62950),re=n(60278),ie=n(51667),ae=n(48028),se=((X={})[h.x.top]=te.lw.slideUpIn10,X[h.x.bottom]=te.lw.slideDownIn10,X[h.x.left]=te.lw.slideLeftIn10,X[h.x.right]=te.lw.slideRightIn10,X),le=0,ue=0,ce={opacity:0,filter:"opacity(0)",pointerEvents:"none"},de=["role","aria-roledescription"],pe={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:s.A.bottomAutoEdge},fe=(0,ee.Z)({disableCaching:!0});function me(e,t,n,o,a){var s=i.useState(),l=s[0],u=s[1],c=i.useRef(0),d=i.useRef(),p=(0,ne.Y)(),f=e.hidden,m=e.target,h=e.finalHeight,g=e.calloutMaxHeight,v=e.onPositioned,b=e.directionalHint;return i.useEffect((function(){if(!f){var i=p.requestAnimationFrame((function(){var i,s,p,f;if(t.current&&n){var b=(0,r.__assign)((0,r.__assign)({},e),{target:o.current,bounds:a()}),y=n.cloneNode(!0);y.style.maxHeight=g?"".concat(g):"",y.style.visibility="hidden",null===(i=n.parentElement)||void 0===i||i.appendChild(y);var _=d.current===m?l:void 0,C=h?Q(b,t.current,y,_):function(e,t,n,o){return J(e,t,n,o)}(b,t.current,y,_);null===(s=n.parentElement)||void 0===s||s.removeChild(y),!l&&C||l&&C&&(f=C,!ve((p=l).elementPosition,f.elementPosition)||!ve(p.beakPosition.elementPosition,f.beakPosition.elementPosition))&&c.current<5?(c.current++,u(C)):c.current>0&&(c.current=0,null===v||void 0===v||v(l))}}),n);return d.current=m,function(){p.cancelAnimationFrame(i),d.current=void 0}}u(void 0),c.current=0}),[f,b,p,n,g,t,o,h,a,v,l,e,m]),l}var he=i.memo(i.forwardRef((function(e,t){var n=(0,d.N)(pe,e),o=n.styles,a=n.style,s=n.ariaLabel,m=n.ariaDescribedBy,h=n.ariaLabelledBy,g=n.className,v=n.isBeakVisible,b=n.children,y=n.beakWidth,_=n.calloutWidth,C=n.calloutMaxWidth,k=n.calloutMinWidth,S=n.doNotLayer,E=n.finalHeight,M=n.hideOverflow,x=void 0===M?!!E:M,I=n.backgroundColor,T=n.calloutMaxHeight,D=n.onScroll,F=n.shouldRestoreFocus,w=void 0===F||F,P=n.target,L=n.hidden,R=n.onLayerMounted,B=n.popupProps,A=i.useRef(null),N=i.useState(null),O=N[0],H=N[1],W=i.useCallback((function(e){H(e)}),[]),K=(0,ie.a)(A,t),U=(0,ae.P)(n.target,{current:O}),z=U[0],V=U[1],G=function(e,t,n){var o=e.bounds,r=e.minPagePadding,a=void 0===r?pe.minPagePadding:r,s=e.target,l=i.useState(!1),u=l[0],c=l[1],d=i.useRef(),p=i.useCallback((function(){if(!d.current||u){var e="function"===typeof o?n?o(s,n):void 0:o;!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 o=0,r=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();o=(i.left+i.right)/2,r=(i.top+i.bottom)/2}else null!==e&&(o=e.left||e.x,r=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var u=l[s];o&&u.left<=o&&u.right>=o&&r&&u.top<=r&&u.bottom>=r&&(a={top:u.top,left:u.left,right:u.right,bottom:u.bottom,width:u.width,height:u.height})}return a}(e,t)}(t.current,n),e={top:e.top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,u&&c(!1)}return d.current}),[o,a,s,t,n,u]),f=(0,ne.Y)();return(0,oe.x)(n,"resize",f.debounce((function(){c(!0)}),500,{leading:!0})),p}(n,z,V),Y=me(n,A,O,z,G),q=function(e,t,n){var o,r=e.calloutMaxHeight,a=e.finalHeight,s=e.directionalHint,l=e.directionalHintFixed,u=e.hidden,c=i.useState(),d=c[0],p=c[1],f=null!==(o=null===n||void 0===n?void 0:n.elementPosition)&&void 0!==o?o:{},m=f.top,h=f.bottom;return i.useEffect((function(){var e,n,o=null!==(e=t())&&void 0!==e?e:{},i=o.top,a=o.bottom;"number"===typeof m&&a?n=a-m:"number"===typeof h&&"number"===typeof i&&a&&(n=a-i-h),p(!r&&!u||r&&n&&r>n?n:r||void 0)}),[h,r,a,s,l,t,u,n,m]),d}(n,G,Y),j=function(e,t,n,o,r){var a=e.hidden,s=e.onDismiss,l=e.preventDismissOnScroll,d=e.preventDismissOnResize,p=e.preventDismissOnLostFocus,f=e.dismissOnTargetClick,m=e.shouldDismissOnWindowFocus,h=e.preventDismissOnEvent,g=i.useRef(!1),v=(0,ne.Y)(),b=(0,re.d)([function(){g.current=!0},function(){g.current=!1}]),y=!!t;return i.useEffect((function(){var e=function(e){y&&!l&&b(e)},t=function(e){d||h&&h(e)||null===s||void 0===s||s(e)},i=function(e){p||b(e)},b=function(e){var t=e.composedPath?e.composedPath():[],i=t.length>0?t[0]:e.target,a=n.current&&!(0,u.s)(n.current,i);if(a&&g.current)g.current=!1;else if(!o.current&&a||e.target!==r&&a&&(!o.current||"stopPropagation"in o.current||f||i!==o.current&&!(0,u.s)(o.current,i))){if(h&&h(e))return;null===s||void 0===s||s(e)}},_=function(e){m&&((!h||h(e))&&(h||p)||(null===r||void 0===r?void 0:r.document.hasFocus())||null!==e.relatedTarget||null===s||void 0===s||s(e))},C=new Promise((function(n){v.setTimeout((function(){if(!a&&r){var o=[(0,c.on)(r,"scroll",e,!0),(0,c.on)(r,"resize",t,!0),(0,c.on)(r.document.documentElement,"focus",i,!0),(0,c.on)(r.document.documentElement,"click",i,!0),(0,c.on)(r,"blur",_,!0)];n((function(){o.forEach((function(e){return e()}))}))}}),0)}));return function(){C.then((function(e){return e()}))}}),[a,v,n,o,r,s,m,f,p,d,l,y,h]),b}(n,Y,A,z,V),Z=j[0],J=j[1],Q=(null===Y||void 0===Y?void 0:Y.elementPosition.top)&&(null===Y||void 0===Y?void 0:Y.elementPosition.bottom),X=(0,r.__assign)((0,r.__assign)({},null===Y||void 0===Y?void 0:Y.elementPosition),{maxHeight:q});if(Q&&(X.bottom=void 0),function(e,t,n){var o=e.hidden,r=e.setInitialFocus,a=(0,ne.Y)(),s=!!t;i.useEffect((function(){if(!o&&r&&s&&n){var e=a.requestAnimationFrame((function(){return(0,l.vO)(n)}),n);return function(){return a.cancelAnimationFrame(e)}}}),[o,s,a,n,r])}(n,Y,O),i.useEffect((function(){L||null===R||void 0===R||R()}),[L]),!V)return null;var ee=x,te=v&&!!P,le=fe(o,{theme:n.theme,className:g,overflowYHidden:ee,calloutWidth:_,positions:Y,beakWidth:y,backgroundColor:I,calloutMaxWidth:C,calloutMinWidth:k,doNotLayer:S}),ue=(0,r.__assign)((0,r.__assign)({maxHeight:T||"100%"},a),ee&&{overflowY:"hidden"}),he=n.hidden?{visibility:"hidden"}:void 0;return i.createElement("div",{ref:K,className:le.container,style:he},i.createElement("div",(0,r.__assign)({},(0,p.G1)(n,p.JM,de),{className:(0,f.A)(le.root,Y&&Y.targetEdge&&se[Y.targetEdge]),style:Y?(0,r.__assign)({},X):ce,tabIndex:-1,ref:W}),te&&i.createElement("div",{className:le.beak,style:ge(Y)}),te&&i.createElement("div",{className:le.beakCurtain}),i.createElement($.z,(0,r.__assign)({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:m,ariaLabel:s,ariaLabelledBy:h,className:le.calloutMain,onDismiss:n.onDismiss,onMouseDown:Z,onMouseUp:J,onRestoreFocus:n.onRestoreFocus,onScroll:D,shouldRestoreFocus:w,style:ue},B),b)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||(0,m.ab)(e,t)}));function ge(e){var t,n,o=(0,r.__assign)((0,r.__assign)({},null===(t=null===e||void 0===e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(n=null===e||void 0===e?void 0:e.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return o.top||o.bottom||o.left||o.right||(o.left=ue,o.top=le),o}function ve(e,t){for(var n in t)if(t.hasOwnProperty(n)){var o=e[n],r=t[n];if(void 0===o||void 0===r)return!1;if(o.toFixed(2)!==r.toFixed(2))return!1}return!0}function be(e){return{height:e,width:e}}he.displayName="CalloutContentBase";var ye={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},_e=(0,a.I)(he,(function(e){var t,n=e.theme,o=e.className,r=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,u=e.calloutMinWidth,c=e.doNotLayer,d=(0,te.Km)(ye,n),p=n.semanticColors,f=n.effects;return{container:[d.container,{position:"relative"}],root:[d.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:c?te.nA.Layer:void 0,boxSizing:"border-box",borderRadius:f.roundedCorner2,boxShadow:f.elevation16,selectors:(t={},t[te.up]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},(0,te.QN)(),o,!!i&&{width:i},!!l&&{maxWidth:l},!!u&&{minWidth:u}],beak:[d.beak,{position:"absolute",backgroundColor:p.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},be(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:p.menuBackground,borderRadius:f.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:p.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:f.roundedCorner2},r&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),Ce=n(22068),ke=i.forwardRef((function(e,t){var n=e.layerProps,o=e.doNotLayer,a=(0,r.__rest)(e,["layerProps","doNotLayer"]),s=i.createElement(_e,(0,r.__assign)({},a,{doNotLayer:o,ref:t}));return o?s:i.createElement(Ce.W,(0,r.__assign)({},n),s)}));ke.displayName="Callout"},42523:function(e,t,n){n.d(t,{l:function(){return Ae}});var o=n(84867),r=n(80322),i=n(75425),a=n(32133),s=n(82914),l=n(20852),u=n(90973),c=n(84218),d=n(26858),p=n(65808),f=n(16758),m=n(5141),h=n(16114),g=n(54121),v=n(67471),b=n(84022),y=n(60478),_=n(48038),C=n(33347),k=n(16711),S=n(13578);function E(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function M(e){return!(!e.subMenuProps&&!e.items)}function x(e){return!(!e.isDisabled&&!e.disabled)}function I(e){return null!==E(e)?"menuitemcheckbox":"menuitem"}var T=n(43639),D=n(81708),F=n(12300),w=function(e){var t=e.item,n=e.classNames,i=t.iconProps;return r.createElement(F.I,(0,o.__assign)({},i,{className:n.icon}))},P=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,w):w(e):null},L=function(e){var t=e.onCheckmarkClick,n=e.item,o=e.classNames,i=E(n);if(t){return r.createElement(F.I,{iconName:!1!==n.canCheck&&i?"CheckMark":"",className:o.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null},R=function(e){var t=e.item,n=e.classNames;return t.text||t.name?r.createElement("span",{className:n.label},t.text||t.name):null},B=function(e){var t=e.item,n=e.classNames;return t.secondaryText?r.createElement("span",{className:n.secondaryText},t.secondaryText):null},A=function(e){var t=e.item,n=e.classNames,i=e.theme;return M(t)?r.createElement(F.I,(0,o.__assign)({iconName:(0,f.jI)(i)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},N=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,o=e.openSubMenu,r=e.getSubmenuTarget;if(r){var i=r();M(t)&&o&&i&&o(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,o=e.dismissSubMenu;M(t)&&o&&o()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},(0,D.f)(n),n}return(0,o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,o=t.onRenderContent||this._renderLayout;return r.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},o(this.props,{renderCheckMarkIcon:L,renderItemIcon:P,renderItemName:R,renderSecondaryText:B,renderSubMenuIcon:A}))},t.prototype._renderLayout=function(e,t){return r.createElement(r.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(r.Component),O=n(7354),H=(0,p.J9)((function(e){return(0,O.l8)({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),W=36,K=(0,O.L6)(0,O.mm),U=(0,p.J9)((function(e){var t,n,r,i,a,s=e.semanticColors,l=e.fonts,u=e.palette,c=s.menuItemBackgroundHovered,d=s.menuItemTextHovered,p=s.menuItemBackgroundPressed,f=s.bodyDivider,m={item:[l.medium,{color:s.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:f,position:"relative"},root:[(0,O.gm)(e),l.medium,{color:s.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:W,lineHeight:W,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:s.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[O.up]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:c,color:d,selectors:{".ms-ContextualMenu-icon":{color:u.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootFocused:{backgroundColor:u.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:u.neutralPrimary}}},rootPressed:{backgroundColor:p,selectors:{".ms-ContextualMenu-icon":{color:u.themeDark},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootExpanded:{backgroundColor:p,color:s.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(r={},r[O.up]={color:"inherit"},r)},n[O.up]=(0,o.__assign)({},(0,O.Qg)()),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:W,fontSize:O.fF.medium,width:O.fF.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(i={},i[K]={fontSize:O.fF.large,width:O.fF.large},i)},iconColor:{color:s.menuIcon},iconDisabled:{color:s.disabledBodyText},checkmarkIcon:{color:s.bodySubtext},subMenuIcon:{height:W,lineHeight:W,color:u.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:O.fF.small,selectors:(a={":hover":{color:u.neutralPrimary},":active":{color:u.neutralPrimary}},a[K]={fontSize:O.fF.medium},a)},splitButtonFlexContainer:[(0,O.gm)(e),{display:"flex",height:W,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]};return(0,O.TW)(m)})),z=n(40950),V="28px",G=(0,O.L6)(0,O.mm),Y=(0,p.J9)((function(e){var t;return(0,O.l8)(H(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[G]={right:32},t)},divider:{height:16,width:1}})})),q={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"},j=(0,p.J9)((function(e,t,n,o,r,i,a,s,l,u,c,d){var p,f,m,h,g=U(e),v=(0,O.Km)(q,e);return(0,O.l8)({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,o&&[v.isChecked,g.rootChecked],r&&g.anchorLink,n&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!n&&[{selectors:(p={":hover":g.rootHovered,":active":g.rootPressed},p[".".concat(z.Y2," &:focus, .").concat(z.Y2," &:focus:hover")]=g.rootFocused,p[".".concat(z.Y2," &:hover")]={background:"inherit;"},p)}],d],splitPrimary:[g.root,{width:"calc(100% - ".concat(V,")")},o&&["is-checked",g.rootChecked],(t||c)&&["is-disabled",g.rootDisabled],!(t||c)&&!o&&[{selectors:(f={":hover":g.rootHovered},f[":hover ~ .".concat(v.splitMenu)]=g.rootHovered,f[":active"]=g.rootPressed,f[".".concat(z.Y2," &:focus, .").concat(z.Y2," &:focus:hover")]=g.rootFocused,f[".".concat(z.Y2," &:hover")]={background:"inherit;"},f)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:V},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(m={":hover":g.rootHovered,":active":g.rootPressed},m[".".concat(z.Y2," &:focus, .").concat(z.Y2," &:focus:hover")]=g.rootFocused,m[".".concat(z.Y2," &:hover")]={background:"inherit;"},m)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,l,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,u,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!o&&[{selectors:(h={},h[".".concat(z.Y2," &:focus, .").concat(z.Y2," &:focus:hover")]=g.rootFocused,h)}]],screenReaderText:[v.screenReaderText,g.screenReaderText,O.dX,{visibility:"hidden"}]})})),Z=function(e){var t=e.theme,n=e.disabled,o=e.expanded,r=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,u=e.iconClassName,c=e.subMenuClassName,d=e.primaryDisabled,p=e.className;return j(t,n,o,r,i,a,s,l,u,c,d,p)},J=(0,i.I)(N,Z,void 0,{scope:"ContextualMenuItem"}),Q=n(50453),X=n(67223),$=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,o=t.item,r=t.onItemMouseEnter;r&&r(o,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,o=t.item,r=t.onItemClickBase;r&&r(o,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,o=t.item,r=t.onItemMouseLeave;r&&r(o,e)},n._onItemKeyDown=function(e){var t=n.props,o=t.item,r=t.onItemKeyDown;r&&r(o,e)},n._onItemMouseMove=function(e){var t=n.props,o=t.item,r=t.onItemMouseMove;r&&r(o,e,e.currentTarget)},n._getSubmenuTarget=function(){},(0,D.f)(n),n}return(0,o.__extends)(t,e),t.prototype.shouldComponentUpdate=function(e){return!(0,m.ab)(e,this.props)},t}(r.Component),ee=n(57622),te=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=r.createRef(),t._getMemoizedMenuButtonKeytipProps=(0,p.J9)((function(e){return(0,o.__assign)((0,o.__assign)({},e),{hasMenu:!0})})),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,o=n.item,r=n.onItemClick;r&&r(o,e)},t._renderAriaDescription=function(e,n){return e?r.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return(0,o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,i=t.classNames,a=t.index,s=t.focusableElementIndex,l=t.totalItemCount,u=t.hasCheckmarks,c=t.hasIcons,d=t.contextualMenuItemAs,p=void 0===d?J:d,f=t.expandedMenuItemKey,m=t.onItemClick,h=t.openSubMenu,g=t.dismissSubMenu,v=t.dismissMenu,b=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(b=b||"nofollow noopener noreferrer");var y=M(n),_=(0,C.G1)(n,C.t0),k=x(n),S=n.itemProps,E=n.ariaDescription,I=n.keytipProps;I&&y&&(I=this._getMemoizedMenuButtonKeytipProps(I)),E&&(this._ariaDescriptionId=(0,Q.O)());var T=(0,X._)(n.ariaDescribedBy,E?this._ariaDescriptionId:void 0,_["aria-describedby"]),D={"aria-describedby":T};return r.createElement("div",null,r.createElement(ee.x,{keytipProps:n.keytipProps,ariaDescribedBy:T,disabled:k},(function(t){return r.createElement("a",(0,o.__assign)({},D,_,t,{ref:e._anchor,href:n.href,target:n.target,rel:b,className:i.root,role:"menuitem","aria-haspopup":y||void 0,"aria-expanded":y?n.key===f:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":x(n),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:y?e._onItemKeyDown:void 0}),r.createElement(p,(0,o.__assign)({componentRef:n.componentRef,item:n,classNames:i,index:a,onCheckmarkClick:u&&m?m:void 0,hasIcons:c,openSubMenu:h,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},S)),e._renderAriaDescription(E,i.screenReaderText))})))},t}($),ne=n(3676),oe=n(76929),re=(0,d.Z)(),ie=r.forwardRef((function(e,t){var n=e.styles,o=e.theme,i=e.getClassNames,a=e.className,s=re(n,{theme:o,getClassNames:i,className:a});return r.createElement("span",{className:s.wrapper,ref:t},r.createElement("span",{className:s.divider}))}));ie.displayName="VerticalDividerBase";var ae=(0,i.I)(ie,(function(e){var t=e.theme,n=e.getClassNames,o=e.className;if(!t)throw new Error("Theme is undefined or null.");if(n){var r=n(t);return{wrapper:[r.wrapper],divider:[r.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},o],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),se=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=(0,p.J9)((function(e){return(0,o.__assign)((0,o.__assign)({},e),{hasMenu:!0})})),n._onItemKeyDown=function(e){var t=n.props,o=t.item,r=t.onItemKeyDown;e.which===g.c.enter?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):r&&r(o,e)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(e,t){return e?r.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemMouseEnterPrimary=function(e){var t=n.props,r=t.item,i=t.onItemMouseEnter;i&&i((0,o.__assign)((0,o.__assign)({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,o=t.item,r=t.onItemMouseEnter;r&&r(o,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,r=t.item,i=t.onItemMouseMove;i&&i((0,o.__assign)((0,o.__assign)({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,o=t.item,r=t.onItemMouseMove;r&&r(o,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,o=t.item,r=t.onItemClickBase;r&&r(o,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,o=t.item,r=t.executeItemClick,i=t.onItemClick;if(!o.disabled&&!o.isDisabled)return n._processingTouch&&!o.canCheck&&i?i(o,e):void(r&&r(o,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new ne.j(n),n._events=new oe.g(n),n._dismissLabelId=(0,Q.O)(),n}return(0,o.__extends)(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e,t=this,n=this.props,i=n.item,a=n.classNames,s=n.index,l=n.focusableElementIndex,u=n.totalItemCount,c=n.hasCheckmarks,d=n.hasIcons,p=n.onItemMouseLeave,f=n.expandedMenuItemKey,m=M(i),h=i.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var g=i.ariaDescription;g&&(this._ariaDescriptionId=(0,Q.O)());var v=null!==(e=E(i))&&void 0!==e?e:void 0;return r.createElement(ee.x,{keytipProps:h,disabled:x(i)},(function(e){return r.createElement("div",{"data-ktp-target":e["data-ktp-target"],ref:function(e){return t._splitButton=e},role:I(i),"aria-label":i.ariaLabel,className:a.splitContainer,"aria-disabled":x(i),"aria-expanded":m?i.key===f:void 0,"aria-haspopup":!0,"aria-describedby":(0,X._)(i.ariaDescribedBy,g?t._ariaDescriptionId:void 0,e["aria-describedby"]),"aria-checked":v,"aria-posinset":l+1,"aria-setsize":u,onMouseEnter:t._onItemMouseEnterPrimary,onMouseLeave:p?p.bind(t,(0,o.__assign)((0,o.__assign)({},i),{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":i["aria-roledescription"]},t._renderSplitPrimaryButton(i,a,s,c,d),t._renderSplitDivider(i),t._renderSplitIconButton(i,a,s,e),t._renderAriaDescription(g,a.screenReaderText))}))},t.prototype._renderSplitPrimaryButton=function(e,t,n,i,a){var s=this.props,l=s.contextualMenuItemAs,u=void 0===l?J:l,c=s.onItemClick,d={key:e.key,disabled:x(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,id:this._dismissLabelId,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},p=e.itemProps;return r.createElement("button",(0,o.__assign)({},(0,C.G1)(d,C.uw)),r.createElement(u,(0,o.__assign)({"data-is-focusable":!1,item:d,classNames:t,index:n,onCheckmarkClick:i&&c?c:void 0,hasIcons:a},p)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||Y;return r.createElement(ae,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,i){var a=this.props,s=a.contextualMenuItemAs,l=void 0===s?J:s,u=a.onItemMouseLeave,c=a.onItemMouseDown,d=a.openSubMenu,p=a.dismissSubMenu,f=a.dismissMenu,m={onClick:this._onIconItemClick,disabled:x(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key,"aria-labelledby":this._dismissLabelId},h=(0,o.__assign)((0,o.__assign)({},(0,C.G1)(m,C.uw)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:u?u.bind(this,e):void 0,onMouseDown:function(t){return c?c(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":i["data-ktp-execute-target"],"aria-haspopup":!0}),g=e.itemProps;return r.createElement("button",(0,o.__assign)({},h),r.createElement(l,(0,o.__assign)({componentRef:e.componentRef,item:m,classNames:t,index:n,hasIcons:!1,openSubMenu:d,dismissSubMenu:p,dismissMenu:f,getSubmenuTarget:this._getSubmenuTarget},g)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},t}($),le=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=r.createRef(),t._getMemoizedMenuButtonKeytipProps=(0,p.J9)((function(e){return(0,o.__assign)((0,o.__assign)({},e),{hasMenu:!0})})),t._renderAriaDescription=function(e,n){return e?r.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return(0,o.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,i=t.classNames,a=t.index,s=t.focusableElementIndex,l=t.totalItemCount,u=t.hasCheckmarks,c=t.hasIcons,d=t.contextualMenuItemAs,p=void 0===d?J:d,f=t.expandedMenuItemKey,m=t.onItemMouseDown,h=t.onItemClick,g=t.openSubMenu,v=t.dismissSubMenu,b=t.dismissMenu,y=E(n),_=null!==y,k=I(n),S=M(n),T=n.itemProps,D=n.ariaLabel,F=n.ariaDescription,w=(0,C.G1)(n,C.uw);delete w.disabled;var P=n.role||k;F&&(this._ariaDescriptionId=(0,Q.O)());var L=(0,X._)(n.ariaDescribedBy,F?this._ariaDescriptionId:void 0,w["aria-describedby"]),R={className:i.root,onClick:this._onItemClick,onKeyDown:S?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return m?m(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":D,"aria-describedby":L,"aria-haspopup":S||void 0,"aria-expanded":S?n.key===f:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":x(n),"aria-checked":"menuitemcheckbox"!==P&&"menuitemradio"!==P||!_?void 0:!!y,"aria-selected":"menuitem"===P&&_?!!y:void 0,role:P,style:n.style},B=n.keytipProps;return B&&S&&(B=this._getMemoizedMenuButtonKeytipProps(B)),r.createElement(ee.x,{keytipProps:B,ariaDescribedBy:L,disabled:x(n)},(function(t){return r.createElement("button",(0,o.__assign)({ref:e._btn},w,R,t),r.createElement(p,(0,o.__assign)({componentRef:n.componentRef,item:n,classNames:i,index:a,onCheckmarkClick:u&&h?h:void 0,hasIcons:c,openSubMenu:g,dismissSubMenu:v,dismissMenu:b,getSubmenuTarget:e._getSubmenuTarget},T)),e._renderAriaDescription(F,i.screenReaderText))}))},t}($),ue=n(84920),ce=n(66848),de=n(39265),pe=n(59413);var fe=n(48028),me=n(89233),he=n(25418),ge=r.createContext({}),ve=(0,d.Z)(),be=(0,d.Z)(),ye={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:l.A.bottomAutoEdge,beakWidth:16};function _e(e){for(var t=0,n=0,o=e;n<o.length;n++){var r=o[n];if(r.itemType!==s.G.Divider&&r.itemType!==s.G.Header)t+=r.customOnRenderListLength?r.customOnRenderListLength:1}return t}function Ce(e,t){var n=null===t||void 0===t?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var i=[],a=0,s=r;a<s.length;a++){var l=s[a];if(l.preferMenuTargetAsEventTarget){var u=l.onClick,c=(0,o.__rest)(l,["onClick"]);i.push((0,o.__assign)((0,o.__assign)({},c),{onClick:we(u,n)}))}else i.push(l)}return i}}var ke="ContextualMenu",Se=(0,p.J9)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return O.pB.apply(void 0,(0,o.__spreadArray)([t,Z],e,!1))}}));function Ee(e,t){var n=e.hidden,o=e.items,i=e.theme,a=e.className,s=e.id,u=e.target,c=r.useState(),d=c[0],p=c[1],h=r.useState(),g=h[0],v=h[1],b=r.useState(),y=b[0],_=b[1],C=(0,ce.B)(ke,s),k=r.useCallback((function(){_(void 0),p(void 0),v(void 0)}),[]),S=r.useCallback((function(e,t,n){var o=e.key;d!==o&&(t.focus(),_(n),p(o),v(t))}),[d]);r.useEffect((function(){n&&k()}),[n,k]);var E=function(e,t){var n=r.useRef(!1);return r.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),function(o,r){r?e(o,r):n.current&&t()}}(t,k);return[d,S,function(){var e=Fe(d,o),t=null;if(e&&(t={items:Ce(e,{target:u}),target:g,onDismiss:E,isSubMenu:!0,id:C,shouldFocusOnMount:!0,shouldFocusOnContainer:y,directionalHint:(0,f.jI)(i)?l.A.leftTopEdge:l.A.rightTopEdge,className:a,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&(0,m.kp)(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var n=e.onItemClick;t.onItemClick=we(n,u)}return t},E]}function Me(e,t,n,o){var i=e.theme,a=e.isSubMenu,s=e.focusZoneProps,l=void 0===s?{}:s,c=l.checkForNoWrap,d=l.direction,p=void 0===d?u.E.vertical:d,m=r.useRef(),h=function(e,n,o){var r=!1;return n(e)&&(t(e,o),e.preventDefault(),e.stopPropagation(),r=!0),r},_=function(e){return e.which===g.c.escape||function(e){var t=(0,f.jI)(i)?g.c.right:g.c.left;return!(e.which!==t||!a)&&!(p!==u.E.vertical&&(!c||(0,v._l)(e.target,"data-no-horizontal-wrap")))}(e)||e.which===g.c.up&&(e.altKey||e.metaKey)},C=function(e){m.current=Ie(e);var t=e.which===g.c.escape&&((0,b.c)()||(0,y.u)());return h(e,_,t)},k=function(e){var t=m.current&&Ie(e);return m.current=!1,!!t&&!((0,y.u)()||(0,b.c)())};return[C,function(e){return h(e,k,!0)},function(e){if(!C(e)&&n.current){var t=!(!e.altKey&&!e.metaKey),o=e.which===g.c.up,r=e.which===g.c.down;if(!t&&(o||r)){var i=o?(0,v.dm)(n.current,n.current.lastChild,!0):(0,v.j5)(n.current,n.current.firstChild,!0);i&&(i.focus(),e.preventDefault(),e.stopPropagation())}}},function(e,t){var n=(0,f.jI)(i)?g.c.left:g.c.right;e.disabled||t.which!==n&&t.which!==g.c.enter&&(t.which!==g.c.down||!t.altKey&&!t.metaKey)||(o(e,t.currentTarget),t.preventDefault())}]}var xe=r.memo(r.forwardRef((function(e,t){var n,i=(0,_.N)(ye,e),a=(i.ref,(0,o.__rest)(i,["ref"])),l=r.useRef(null),d=(0,pe.Y)(),p=(0,ce.B)(ke,a.id),f=function(e,t){var n;return null===(n=a.onDismiss)||void 0===n?void 0:n.call(a,e,t)},m=(0,fe.P)(a.target,l),g=m[0],v=m[1],b=function(e,t,n){var o=e.hidden,i=e.onRestoreFocus,a=r.useRef(),s=r.useCallback((function(e){var t,n;i?i(e):(null===e||void 0===e?void 0:e.documentContainsFocus)&&(null===(n=null===(t=a.current)||void 0===t?void 0:t.focus)||void 0===n||n.call(t))}),[i]);return(0,de.E)((function(){var e,r;if(o)a.current&&(s({originalElement:a.current,containsFocus:!0,documentContainsFocus:(null===(r=(0,h.Y)())||void 0===r?void 0:r.hasFocus())||!1}),a.current=void 0);else{var i=null===t||void 0===t?void 0:t.document.activeElement;(null===(e=n.current)||void 0===e?void 0:e.contains(i))||"BODY"===i.tagName||(a.current=i)}}),[o,null===t||void 0===t?void 0:t.document.activeElement,s,n]),[s]}(a,v,l)[0],y=Ee(a,f),I=y[0],D=y[1],F=y[2],w=y[3],P=function(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,o=r.useRef(!t),i=r.useRef(!1);r.useEffect((function(){o.current=!t,i.current=!n&&!t&&i.current}),[t,n]);var a=r.useCallback((function(){t&&(o.current=!1)}),[t]);return[o,i,a]}(a),L=P[0],R=P[1],B=P[2],A=function(e){var t=r.useRef(!0),n=r.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]}(d),N=A[0],O=A[1],H=function(e,t){var n=e.subMenuHoverDelay,o=void 0===n?250:n,i=r.useRef(void 0),a=function(){void 0!==i.current&&(t.clearTimeout(i.current),i.current=void 0)};return[a,function(e){i.current=t.setTimeout((function(){e(),a()}),o)},i]}(a,d),W=H[0],K=H[1],U=H[2],z=(0,me.z)(l,a.responsiveMode);!function(e,t){var n=e.hidden,o=void 0!==n&&n,i=e.onMenuDismissed,a=e.onMenuOpened,s=(0,ue.Z)(o),l=r.useRef(a),u=r.useRef(i),c=r.useRef(e);l.current=a,u.current=i,c.current=e,r.useEffect((function(){var e,t;o&&!1===s?null===(e=u.current)||void 0===e||e.call(u,c.current):o||!1===s||null===(t=l.current)||void 0===t||t.call(l,c.current)}),[o,s]),r.useEffect((function(){return function(){var e;return null===(e=u.current)||void 0===e?void 0:e.call(u,c.current)}}),[])}(a);var V=Me(a,f,l,D),G=V[0],Y=V[1],q=V[2],j=V[3],Z=function(e,t,n,o,r,i,a,s,l,u,c,d,p){var f=e.target,m=function(){return!t.current||!i.current},h=function(e,t,n){var o=n||t.currentTarget;e.key!==a&&(u(),void 0===a&&o.focus(),M(e)?(t.stopPropagation(),l((function(){o.focus(),c(e,o,!0)}))):l((function(){d(t),o.focus()})))},g=function(t,n,o){var r=Ce(t,{target:f});if(u(),M(t)||r&&r.length){if(t.key!==a){var i="boolean"===typeof e.shouldFocusOnContainer?e.shouldFocusOnContainer:"mouse"===n.nativeEvent.pointerType;c(t,o,i)}}else v(t,n);n.stopPropagation(),n.preventDefault()},v=function(t,n){if(!t.disabled&&!t.isDisabled){t.preferMenuTargetAsEventTarget&&Pe(n,f);var o=!1;t.onClick?o=!!t.onClick(n,t):e.onItemClick&&(o=!!e.onItemClick(n,t)),!o&&n.defaultPrevented||p(n,!0)}};return[function(e,t,n){r.current&&(i.current=!0),m()||h(e,t,n)},function(e,a,s){var l=a.currentTarget;r.current&&(i.current=!0,t.current&&void 0===n.current&&l!==(null===o||void 0===o?void 0:o.document.activeElement)&&h(e,a,s))},function(e,t){var n;if(!m()&&(u(),void 0===a))if(s.current.setActive)try{s.current.setActive()}catch(o){}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]}(a,O,U,v,L,R,I,l,K,W,D,w,f),Q=Z[0],X=Z[1],$=Z[2],ee=Z[3],ne=Z[4],oe=Z[5],re=Z[6],ie=function(e,t,n){var o=0,i=e.items,a=e.totalItemCount,l=e.hasCheckmarks,u=e.hasIcons;return r.createElement("ul",{className:t.list,onKeyDown:G,onKeyUp:Y,role:"presentation"},i.map((function(e,n){var r=ae(e,n,o,a,l,u,t);if(e.itemType!==s.G.Divider&&e.itemType!==s.G.Header){var i=e.customOnRenderListLength?e.customOnRenderListLength:1;o+=i}return r})))},ae=function(e,t,n,o,i,l,u){var c,d,p=[],f=e.iconProps||{iconName:"None"},m=e.getItemClassNames,h=e.itemProps,g=h?h.styles:void 0,v=e.itemType===s.G.Divider?e.className:void 0,b=e.submenuIconProps?e.submenuIconProps.className:"";if(m)d=m(a.theme,x(e),I===e.key,!!E(e),!!e.href,"None"!==f.iconName,e.className,v,f.className,b,e.primaryDisabled);else{var y={theme:a.theme,disabled:x(e),expanded:I===e.key,checked:!!E(e),isAnchorLink:!!e.href,knownIcon:"None"!==f.iconName,itemClassName:e.className,dividerClassName:v,iconClassName:f.className,subMenuClassName:b,primaryDisabled:e.primaryDisabled};d=be(Se(null===(c=u.subComponentStyles)||void 0===c?void 0:c.menuItem,g),y)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=s.G.Divider),e.itemType){case s.G.Divider:p.push(Fe(t,d));break;case s.G.Header:p.push(Fe(t,d));var _=Le(e,d,u,t,i,l);p.push(Ie(_,e.key||t,d,e.title));break;case s.G.Section:p.push(xe(e,d,u,t,i,l));break;default:var C=function(){return we(e,d,t,n,o,i,l)},k=a.onRenderContextualMenuItem?a.onRenderContextualMenuItem(e,C):C();p.push(Ie(k,e.key||t,d,e.title))}return r.createElement(r.Fragment,{key:e.key},p)},xe=function(e,t,n,i,a,l){var u=e.sectionProps;if(u){var c,d;if(u.title){var f=void 0,m="";if("string"===typeof u.title){var h=p+u.title.replace(/\s/g,"");f={key:"section-".concat(u.title,"-title"),itemType:s.G.Header,text:u.title,id:h},m=h}else{var g=u.title.id||p+u.title.key.replace(/\s/g,"");f=(0,o.__assign)((0,o.__assign)({},u.title),{id:g}),m=g}f&&(d={role:"group","aria-labelledby":m},c=Le(f,t,n,i,a,l))}if(u.items&&u.items.length>0){var v=0;return r.createElement("li",{role:"presentation",key:u.key||e.key||"section-".concat(i)},r.createElement("div",(0,o.__assign)({},d),r.createElement("ul",{className:n.list,role:"presentation"},u.topDivider&&Fe(i,t,!0,!0),c&&Ie(c,e.key||i,t,e.title),u.items.map((function(e,t){var o=ae(e,t,v,_e(u.items),a,l,n);if(e.itemType!==s.G.Divider&&e.itemType!==s.G.Header){var r=e.customOnRenderListLength?e.customOnRenderListLength:1;v+=r}return o})),u.bottomDivider&&Fe(i,t,!1,!0))))}}},Ie=function(e,t,n,o){return r.createElement("li",{role:"presentation",title:o,key:t,className:n.item},e)},Fe=function(e,t,n,o){return o||e>0?r.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},we=function(e,t,n,i,s,l,u){if(e.onRender)return e.onRender((0,o.__assign)({"aria-posinset":i+1,"aria-setsize":s},e),f);var c={item:e,classNames:t,index:n,focusableElementIndex:i,totalItemCount:s,hasCheckmarks:l,hasIcons:u,contextualMenuItemAs:a.contextualMenuItemAs,onItemMouseEnter:Q,onItemMouseLeave:$,onItemMouseMove:X,onItemMouseDown:Te,executeItemClick:oe,onItemKeyDown:j,expandedMenuItemKey:I,openSubMenu:D,dismissSubMenu:w,dismissMenu:f};return e.href?r.createElement(te,(0,o.__assign)({},c,{onItemClick:ne})):e.split&&M(e)?r.createElement(se,(0,o.__assign)({},c,{onItemClick:ee,onItemClickBase:re,onTap:W})):r.createElement(le,(0,o.__assign)({},c,{onItemClick:ee,onItemClickBase:re}))},Le=function(e,t,n,i,s,l){var u=a.contextualMenuItemAs,c=void 0===u?J:u,d=e.itemProps,p=e.id,f=d&&(0,C.G1)(d,C.JM);return r.createElement("div",(0,o.__assign)({id:p,className:n.header},f,{style:e.style}),r.createElement(c,(0,o.__assign)({item:e,classNames:t,index:i,onCheckmarkClick:s?ee:void 0,hasIcons:l},d)))},Re=a.isBeakVisible,Be=a.items,Ae=a.labelElementId,Ne=a.id,Oe=a.className,He=a.beakWidth,We=a.directionalHint,Ke=a.directionalHintForRTL,Ue=a.alignTargetEdge,ze=a.gapSpace,Ve=a.coverTarget,Ge=a.ariaLabel,Ye=a.doNotLayer,qe=a.target,je=a.bounds,Ze=a.useTargetWidth,Je=a.useTargetAsMinWidth,Qe=a.directionalHintFixed,Xe=a.shouldFocusOnMount,$e=a.shouldFocusOnContainer,et=a.title,tt=a.styles,nt=a.theme,ot=a.calloutProps,rt=a.onRenderSubMenu,it=void 0===rt?De:rt,at=a.onRenderMenuList,st=void 0===at?function(e,t){return ie(e,ct)}:at,lt=a.focusZoneProps,ut=a.getMenuClassNames,ct=ut?ut(nt,Oe):ve(tt,{theme:nt,className:Oe}),dt=function e(t){for(var n=0,o=t;n<o.length;n++){var r=o[n];if(r.iconProps)return!0;if(r.itemType===s.G.Section&&r.sectionProps&&e(r.sectionProps.items))return!0}return!1}(Be);var pt,ft=(0,o.__assign)((0,o.__assign)({direction:u.E.vertical,handleTabKey:u.l.all,isCircularNavigation:!0},lt),{className:(0,k.A)(ct.root,null===(n=a.focusZoneProps)||void 0===n?void 0:n.className)}),mt=function(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}(Be),ht=I&&!0!==a.hidden?F():null;Re=void 0===Re?z<=he.AR.medium:Re;var gt=g.current;if((Ze||Je)&&gt&&gt.offsetWidth){var vt=gt.getBoundingClientRect().width-2;Ze?pt={width:vt}:Je&&(pt={minWidth:vt})}if(Be&&Be.length>0){var bt=_e(Be),yt=ct.subComponentStyles?ct.subComponentStyles.callout:void 0;return r.createElement(ge.Consumer,null,(function(e){return r.createElement(T.P,(0,o.__assign)({styles:yt,onRestoreFocus:b},ot,{target:qe||e.target,isBeakVisible:Re,beakWidth:He,directionalHint:We,directionalHintForRTL:Ke,gapSpace:ze,coverTarget:Ve,doNotLayer:Ye,className:(0,k.A)("ms-ContextualMenu-Callout",ot&&ot.className),setInitialFocus:Xe,onDismiss:a.onDismiss||e.onDismiss,onScroll:N,bounds:je,directionalHintFixed:Qe,alignTargetEdge:Ue,hidden:a.hidden||e.hidden,ref:t}),r.createElement("div",{style:pt,ref:l,id:Ne,className:ct.container,tabIndex:$e?0:-1,onKeyDown:q,onKeyUp:Y,onFocusCapture:B,"aria-label":Ge,"aria-labelledby":Ae,role:"menu"},et&&r.createElement("div",{className:ct.title}," ",et," "),Be&&Be.length?function(e,t){var n=a.focusZoneAs,i=void 0===n?c.R:n;return r.createElement(i,(0,o.__assign)({},t),e)}(st({ariaLabel:Ge,items:Be,totalItemCount:bt,hasCheckmarks:mt,hasIcons:dt,defaultMenuItemRenderer:function(e){return function(e,t){var n=e.index,o=e.focusableElementIndex,r=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return ae(e,n,o,r,i,a,t)}(e,ct)},labelElementId:Ae},(function(e,t){return ie(e,ct)})),ft):null,ht&&it(ht,De)),r.createElement(S.MO,null))}))}return null})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||(0,m.ab)(e,t)}));function Ie(e){return e.which===g.c.alt||"Meta"===e.key}function Te(e,t){var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,e,t)}function De(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function Fe(e,t){for(var n=0,o=t;n<o.length;n++){var r=o[n];if(r.itemType===s.G.Section&&r.sectionProps){var i=Fe(e,r.sectionProps.items);if(i)return i}else if(r.key&&r.key===e)return r}}function we(e,t){return e?function(n,o){return Pe(n,t),e(n,o)}:e}function Pe(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}xe.displayName="ContextualMenuBase";var Le={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function Re(e){return r.createElement(Be,(0,o.__assign)({},e))}var Be=(0,i.I)(xe,(function(e){var t=e.className,n=e.theme,o=(0,O.Km)(Le,n),r=n.fonts,i=n.semanticColors,a=n.effects;return{root:[n.fonts.medium,o.root,o.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[o.container,{selectors:{":focus":{outline:0}}}],list:[o.list,o.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[o.header,r.small,{fontWeight:O.BO.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:W,lineHeight:W,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[o.title,{fontSize:r.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?(0,a.j)(e.onRenderSubMenu,Re):Re}}),{scope:"ContextualMenu"}),Ae=Be;Ae.displayName="ContextualMenu"},82914:function(e,t,n){var o;n.d(t,{G:function(){return o}}),function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(o||(o={}))},28483:function(e,t,n){n.d(t,{Y:function(){return _}});var o=n(84867),r=n(80322),i=n(48038),a=n(67471),s=n(89896),l=n(64710),u=n(65311),c=n(33347),d=n(51667),p=n(84920),f=n(60278),m=n(66848),h=n(39265);function g(e){var t=r.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return(0,h.E)((function(){t.current=e}),[e]),(0,f.d)((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var o=t.current;return o.apply(void 0,e)}}))}var v=n(51221),b=n(20403),y={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},_=r.forwardRef((function(e,t){var n,h=r.useRef(null),C=r.useRef(null),k=r.useRef(null),S=(0,d.a)(h,t),E=(0,b.ZY)(),M=null===(n=(0,p.Z)(!1))||void 0===n||n,x=(0,i.N)(y,e),I=(0,f.d)({hasFocus:!1,focusStackId:(0,m.B)("ftz-",x.id)}),T=x.children,D=x.componentRef,F=x.disabled,w=x.disableFirstFocus,P=x.forceFocusInsideTrap,L=x.focusPreviouslyFocusedInnerElement,R=x.firstFocusableSelector,B=x.firstFocusableTarget,A=x.disableRestoreFocus,N=void 0===A?x.ignoreExternalFocusing:A,O=x.isClickableOutsideFocusTrap,H=x.enableAriaHiddenSiblings,W={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:F?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},K=r.useCallback((function(e){e!==C.current&&e!==k.current&&(0,a.lo)(e)}),[]),U=g((function(){if(h.current){var e=I.previouslyFocusedElementInTrapZone;if(L&&e&&(0,s.s)(h.current,e))K(e);else{var t=null;if("string"===typeof B)t=h.current.querySelector(B);else if(B)t=B(h.current);else if(R){var n="string"===typeof R?R:R();t=h.current.querySelector("."+n)}t||(t=(0,a.eX)(h.current,h.current.firstChild,!1,!1,!1,!0)),t&&K(t)}}})),z=function(e){if(!F&&h.current){var t=e===I.hasFocus?(0,a.Cm)(h.current,k.current,!0,!1):(0,a.oR)(h.current,C.current,!0,!1);t&&(t===C.current||t===k.current?U():t.focus())}},V=g((function(e){if(_.focusStack=_.focusStack.filter((function(e){return I.focusStackId!==e})),E){var t=E.activeElement;N||"function"!==typeof(null===e||void 0===e?void 0:e.focus)||!(0,s.s)(h.current,t)&&t!==E.body||K(e)}})),G=g((function(e){if(!F&&I.focusStackId===_.focusStack.slice(-1)[0]){var t=e.target;t&&!(0,s.s)(h.current,t)&&(E&&E.activeElement===E.body?setTimeout((function(){E&&E.activeElement===E.body&&(U(),I.hasFocus=!0)}),0):(U(),I.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return r.useEffect((function(){var e=[];return P&&e.push((0,l.on)(window,"focus",G,!0)),O||e.push((0,l.on)(window,"click",G,!0)),function(){e.forEach((function(e){return e()}))}}),[P,O]),r.useEffect((function(){if(!F&&(M||P)&&h.current){_.focusStack.push(I.focusStackId);var e=x.elementToFocusOnDismiss||E.activeElement;return w||(0,s.s)(h.current,e)||U(),function(){return V(e)}}}),[P,F]),r.useEffect((function(){if(!F&&H)return(0,u.q)(h.current)}),[F,H,h]),(0,v.i)((function(){delete I.previouslyFocusedElementInTrapZone})),function(e,t,n){r.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(D,I.previouslyFocusedElementInTrapZone,U),r.createElement("div",(0,o.__assign)({"aria-labelledby":x.ariaLabelledBy},(0,c.G1)(x,c.JM),{ref:S,onFocusCapture:function(e){var t;null===(t=x.onFocusCapture)||void 0===t||t.call(x,e),e.target===C.current?z(!0):e.target===k.current&&z(!1),I.hasFocus=!0,e.target!==e.currentTarget&&e.target!==C.current&&e.target!==k.current&&(I.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=x.onBlurCapture)||void 0===t||t.call(x,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=E.activeElement),(0,s.s)(h.current,n)||(I.hasFocus=!1)}}),r.createElement("div",(0,o.__assign)({},W,{ref:C})),T,r.createElement("div",(0,o.__assign)({},W,{ref:k})))}));_.displayName="FocusTrapZone",_.focusStack=[]},35566:function(e,t,n){n.d(t,{l8:function(){return d},ne:function(){return c}});var o=n(84867),r=n(80322),i=n(48767),a=n(65808),s=n(33347),l=n(16711),u=n(7354),c=(0,a.J9)((function(e){var t=(0,u.sW)(e)||{subset:{},code:void 0},n=t.code,o=t.subset;return n?{children:n,iconClassName:o.className,fontFamily:o.fontFace&&o.fontFace.fontFamily,mergeImageProps:o.mergeImageProps}:null}),void 0,!0),d=function(e){var t=e.iconName,n=e.className,a=e.style,u=void 0===a?{}:a,d=c(t)||{},p=d.iconClassName,f=d.children,m=d.fontFamily,h=d.mergeImageProps,g=(0,s.G1)(e,s.vt),v=e["aria-label"]||e.title,b=e["aria-label"]||e["aria-labelledby"]||e.title?{role:h?void 0:"img"}:{"aria-hidden":!0},y=f;return h&&"object"===typeof f&&"object"===typeof f.props&&v&&(y=r.cloneElement(f,{alt:v})),r.createElement("i",(0,o.__assign)({"data-icon-name":t},b,g,h?{title:void 0,"aria-label":void 0}:{},{className:(0,l.A)(i.xD,i.xW.root,p,!t&&i.xW.placeholder,n),style:(0,o.__assign)({fontFamily:m},u)}),y)};(0,a.J9)((function(e,t,n){return d({iconName:e,className:t,"aria-label":n})}))},12300:function(e,t,n){n.d(t,{I:function(){return h}});var o=n(75425),r=n(84867),i=n(80322),a=n(98660),s=n(92256),l=n(48560),u=n(26858),c=n(33347),d=n(35566),p=(0,u.Z)({cacheSize:100}),f=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===l.P6.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,o=e.styles,l=e.iconName,u=e.imageErrorAs,f=e.theme,m="string"===typeof l&&0===l.length,h=!!this.props.imageProps||this.props.iconType===a.A.image||this.props.iconType===a.A.Image,g=(0,d.ne)(l)||{},v=g.iconClassName,b=g.children,y=g.mergeImageProps,_=p(o,{theme:f,className:n,iconClassName:v,isImage:h,isPlaceholder:m}),C=h?"span":"i",k=(0,c.G1)(this.props,c.vt,["aria-label"]),S=this.state.imageLoadError,E=(0,r.__assign)((0,r.__assign)({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),M=S&&u||s._,x=this.props["aria-label"]||this.props.ariaLabel,I=E.alt||x||this.props.title,T=!!(I||this.props["aria-labelledby"]||E["aria-label"]||E["aria-labelledby"])?{role:h||y?void 0:"img","aria-label":h||y?void 0:I}:{"aria-hidden":!0},D=b;return y&&b&&"object"===typeof b&&I&&(D=i.cloneElement(b,{alt:I})),i.createElement(C,(0,r.__assign)({"data-icon-name":l},T,k,y?{title:void 0,"aria-label":void 0}:{},{className:_.root}),h?i.createElement(M,(0,r.__assign)({},E)):t||D)},t}(i.Component),m=n(48767),h=(0,o.I)(f,m.$f,void 0,{scope:"Icon"},!0);h.displayName="Icon"},48767:function(e,t,n){n.d(t,{$f:function(){return i},xD:function(){return r},xW:function(){return o}});var o=(0,n(7354).l8)({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),r="ms-Icon",i=function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,i=e.isImage,a=e.styles;return{root:[r&&o.placeholder,o.root,i&&o.image,n,t,a&&a.root,a&&a.imageContainer]}}},98660:function(e,t,n){var o;n.d(t,{A:function(){return o}}),function(e){e[e.default=0]="default",e[e.image=1]="image",e[e.Default=1e5]="Default",e[e.Image=100001]="Image"}(o||(o={}))},92256:function(e,t,n){n.d(t,{_:function(){return v}});var o=n(75425),r=n(84867),i=n(80322),a=n(26858),s=n(33347),l=n(48560),u=n(39265),c=n(51667),d=(0,a.Z)(),p=/\.svg$/i;var f=i.forwardRef((function(e,t){var n=i.useRef(),o=i.useRef(),a=function(e,t){var n=e.onLoadingStateChange,o=e.onLoad,r=e.onError,a=e.src,s=i.useState(l.P6.notLoaded),c=s[0],d=s[1];(0,u.E)((function(){d(l.P6.notLoaded)}),[a]),i.useEffect((function(){c===l.P6.notLoaded&&t.current&&(a&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&p.test(a))&&d(l.P6.loaded)})),i.useEffect((function(){null===n||void 0===n||n(c)}),[c]);var f=i.useCallback((function(e){null===o||void 0===o||o(e),a&&d(l.P6.loaded)}),[a,o]),m=i.useCallback((function(e){null===r||void 0===r||r(e),d(l.P6.error)}),[r]);return[c,f,m]}(e,o),f=a[0],m=a[1],h=a[2],g=(0,s.G1)(e,s.xM,["width","height"]),v=e.src,b=e.alt,y=e.width,_=e.height,C=e.shouldFadeIn,k=void 0===C||C,S=e.shouldStartVisible,E=e.className,M=e.imageFit,x=e.role,I=e.maximizeFrame,T=e.styles,D=e.theme,F=e.loading,w=function(e,t,n,o){var r=i.useRef(t),a=i.useRef();(void 0===a||r.current===l.P6.notLoaded&&t===l.P6.loaded)&&(a.current=function(e,t,n,o){var r=e.imageFit,i=e.width,a=e.height;if(void 0!==e.coverStyle)return e.coverStyle;if(t===l.P6.loaded&&(r===l.N_.cover||r===l.N_.contain||r===l.N_.centerContain||r===l.N_.centerCover)&&n.current&&o.current){var s=void 0;if(s="number"===typeof i&&"number"===typeof a&&r!==l.N_.centerContain&&r!==l.N_.centerCover?i/a:o.current.clientWidth/o.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>s)return l.Aw.landscape}return l.Aw.portrait}(e,t,n,o));return r.current=t,a.current}(e,f,o,n),P=d(T,{theme:D,className:E,width:y,height:_,maximizeFrame:I,shouldFadeIn:k,shouldStartVisible:S,isLoaded:f===l.P6.loaded||f===l.P6.notLoaded&&e.shouldStartVisible,isLandscape:w===l.Aw.landscape,isCenter:M===l.N_.center,isCenterContain:M===l.N_.centerContain,isCenterCover:M===l.N_.centerCover,isContain:M===l.N_.contain,isCover:M===l.N_.cover,isNone:M===l.N_.none,isError:f===l.P6.error,isNotImageFit:void 0===M});return i.createElement("div",{className:P.root,style:{width:y,height:_},ref:n},i.createElement("img",(0,r.__assign)({},g,{onLoad:m,onError:h,key:"fabricImage"+e.src||"",className:P.image,ref:(0,c.a)(o,t),src:v,alt:b,role:x,loading:F})))}));f.displayName="ImageBase";var m=n(7354),h=n(50963),g={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"},v=(0,o.I)(f,(function(e){var t=e.className,n=e.width,o=e.height,r=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,c=e.isContain,d=e.isCover,p=e.isCenterContain,f=e.isCenterCover,v=e.isNone,b=e.isError,y=e.isNotImageFit,_=e.theme,C=(0,m.Km)(g,_),k={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},S=(0,h.z)(),E=void 0!==S&&void 0===S.navigator.msMaxTouchPoints,M=c&&l||d&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[C.root,_.fonts.medium,{overflow:"hidden"},r&&[C.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&m.lw.fadeIn400,(u||c||d||p||f)&&{position:"relative"},t],image:[C.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],u&&[C.imageCenter,k],c&&[C.imageContain,E&&{width:"100%",height:"100%",objectFit:"contain"},!E&&M,!E&&k],d&&[C.imageCover,E&&{width:"100%",height:"100%",objectFit:"cover"},!E&&M,!E&&k],p&&[C.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},k],f&&[C.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},k],v&&[C.imageNone,{width:"auto",height:"auto"}],y&&[!!n&&!o&&{height:"auto",width:"100%"},!n&&!!o&&{height:"100%",width:"auto"},!!n&&!!o&&{height:"100%",width:"100%"}],l&&C.imageLandscape,!l&&C.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",b&&"is-error"]}}),void 0,{scope:"Image"},!0);v.displayName="Image"},48560:function(e,t,n){var o,r,i;n.d(t,{Aw:function(){return r},N_:function(){return o},P6:function(){return i}}),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"}(o||(o={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(r||(r={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(i||(i={}))},57622:function(e,t,n){n.d(t,{x:function(){return m}});var o=n(84867),r=n(45735),i=n(80322),a=n(60278),s=n(84920),l=n(39265),u=n(67223),c=n(41513),d=n(93177);function p(e){return e.reduce((function(e,t){return e+r.oQ+t.split("").join(r.oQ)}),r.fy)}function f(e){var t=i.useRef(),n=e.keytipProps?(0,o.__assign)({disabled:e.disabled},e.keytipProps):void 0,f=(0,a.d)(c._.getInstance()),m=(0,s.Z)(e);(0,l.E)((function(){t.current&&n&&((null===m||void 0===m?void 0:m.keytipProps)!==e.keytipProps||(null===m||void 0===m?void 0:m.disabled)!==e.disabled)&&f.update(n,t.current)})),(0,l.E)((function(){return n&&(t.current=f.register(n)),function(){n&&f.unregister(n,t.current)}}),[]);var h={ariaDescribedBy:void 0,keytipId:void 0};return n&&(h=function(e,t,n){var i=e.addParentOverflow(t),a=(0,u._)(n,function(e){var t=" "+r.Cm;return e.length?t+" "+p(e):t}(i.keySequences)),s=(0,o.__spreadArray)([],i.keySequences,!0);i.overflowSetSequence&&(s=function(e,t){var n=t.length,r=(0,o.__spreadArray)([],t,!0).pop(),i=(0,o.__spreadArray)([],e,!0);return(0,d.Ty)(i,n-1,r)}(s,i.overflowSetSequence));var l=p(s);return{ariaDescribedBy:a,keytipId:l}}(f,n,e.ariaDescribedBy)),h}var m=function(e){var t,n=e.children,i=f((0,o.__rest)(e,["children"])),a=i.keytipId,s=i.ariaDescribedBy;return n(((t={})[r.aR]=a,t[r.er]=a,t["aria-describedby"]=s,t))}},42682:function(e,t,n){n.d(t,{J:function(){return c}});var o=n(75425),r=n(84867),i=n(80322),a=n(33347),s=(0,n(26858).Z)({cacheSize:100}),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,o=e.children,l=e.className,u=e.disabled,c=e.styles,d=e.required,p=e.theme,f=s(c,{className:l,disabled:u,required:d,theme:p});return i.createElement(n,(0,r.__assign)({},(0,a.G1)(this.props,a.JM),{className:f.root}),o)},t}(i.Component),u=n(7354),c=(0,o.I)(l,(function(e){var t,n=e.theme,o=e.className,i=e.disabled,a=e.required,s=n.semanticColors,l=u.BO.semibold,c=s.bodyText,d=s.disabledBodyText,p=s.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:l,color:c,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},i&&{color:d,selectors:(t={},t[u.up]=(0,r.__assign)({color:"GrayText"},(0,u.Qg)()),t)},a&&{selectors:{"::after":{content:"' *'",color:p,paddingRight:12}}},o]}}),void 0,{scope:"Label"})},22068:function(e,t,n){n.d(t,{W:function(){return V}});var o=n(75425),r=n(84867),i=n(80322),a=i.createContext(void 0),s=function(){return function(){}};a.Provider;var l=n(94786),u=n(26858),c=n(65808),d=n(16758),p=n(33347),f=n(55924),m=n(39409),h=n(77933);function g(e,t){void 0===e&&(e={});var n=b(t)?t:function(e){return function(t){return e?(0,r.__assign)((0,r.__assign)({},t),e):t}}(t);return n(e)}function v(e,t){return void 0===e&&(e={}),(b(t)?t:function(e){void 0===e&&(e={});return function(t){var n=(0,r.__assign)({},t);for(var o in e)e.hasOwnProperty(o)&&(n[o]=(0,r.__assign)((0,r.__assign)({},t[o]),e[o]));return n}}(t))(e)}function b(e){return"function"===typeof e}var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){m.X.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){m.X.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return i.createElement(h.z.Consumer,null,(function(n){var o=function(e,t){var n=(t||{}).customizations,o=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:g(o.settings,e.settings),scopedSettings:v(o.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(o=t(o)),i.createElement(h.z.Provider,{value:o},e.props.children)}))},t}(i.Component),_=n(16114),C=n(6939),k=n(51667),S=(0,u.Z)(),E=(0,c.J9)((function(e,t){return(0,C.a)((0,r.__assign)((0,r.__assign)({},e),{rtl:t}))})),M=i.forwardRef((function(e,t){var n=e.className,o=e.theme,a=e.applyTheme,s=e.applyThemeToBody,l=e.styles,u=S(l,{theme:o,applyTheme:a,className:n}),c=i.useRef(null);return function(e,t,n){var o=t.bodyThemed;i.useEffect((function(){if(e){var t=(0,_.Y)(n.current);if(t)return t.body.classList.add(o),function(){t.body.classList.remove(o)}}}),[o,e,n])}(s,u,c),i.createElement(i.Fragment,null,function(e,t,n,o){var a=t.root,s=e.as,l=void 0===s?"div":s,u=e.dir,c=e.theme,m=(0,p.G1)(e,p.JM,["dir"]),h=function(e){var t=e.theme,n=e.dir,o=(0,d.jI)(t)?"rtl":"ltr",r=(0,d.jI)()?"rtl":"ltr",i=n||o;return{rootDir:i!==o||i!==r?i:n,needsTheme:i!==o}}(e),g=h.rootDir,v=h.needsTheme,b=i.createElement(f.N,{providerRef:n},i.createElement(l,(0,r.__assign)({dir:g},m,{className:a,ref:(0,k.a)(n,o)})));v&&(b=i.createElement(y,{settings:{theme:E(c,"rtl"===u)}},b));return b}(e,u,c,t))}));M.displayName="FabricBase";var x=n(7354),I={fontFamily:"inherit"},T={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},D=(0,o.I)(M,(function(e){var t=e.applyTheme,n=e.className,o=e.preventBlanketFontInheritance,r=e.theme;return{root:[(0,x.Km)(T,r).root,r.fonts.medium,{color:r.palette.neutralPrimary},!o&&{"& button":I,"& input":I,"& textarea":I},t&&{color:r.semanticColors.bodyText,backgroundColor:r.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:r.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),F=n(40950),w=n(13578),P=n(28251);var L=n(16711),R={},B={},A="fluent-default-layer-host",N="#".concat(A);var O,H=n(39265),W=(0,u.Z)(),K=i.forwardRef((function(e,t){var n=function(){var e;return null!==(e=i.useContext(a))&&void 0!==e?e:s}(),o=i.useRef(null),u=(0,k.a)(o,t),c=i.useRef(),d=i.useRef(null),p=i.useContext(w.dM),m=i.useState(!1),h=m[0],g=m[1],v=i.useCallback((function(e){var t,n=!!(null===(t=null===p||void 0===p?void 0:p.providerRef)||void 0===t?void 0:t.current)&&t.current.classList.contains(F.Y2);e&&n&&e.classList.add(F.Y2)}),[p]),b=e.children,y=e.className,C=e.eventBubblingEnabled,S=e.fabricProps,E=e.hostId,M=e.insertFirst,x=e.onLayerDidMount,I=void 0===x?function(){}:x,T=e.onLayerMounted,K=void 0===T?function(){}:T,z=e.onLayerWillUnmount,V=e.styles,G=e.theme,Y=(0,k.a)(d,null===S||void 0===S?void 0:S.ref,v),q=W(V,{theme:G,className:y,isNotHost:!E}),j=function(e){var t,n;if(E){var o=function(e){var t=B[e];return t&&t[0]||void 0}(E);return o?null!==(t=o.rootRef.current)&&void 0!==t?t:null:null!==(n=e.getElementById(E))&&void 0!==n?n:null}var r=N,i=r?e.querySelector(r):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",A),t.style.cssText="position:fixed;z-index:1000000",null===e||void 0===e||e.body.appendChild(t),t}(e)),i},Z=function(){null===z||void 0===z||z();var e=c.current;c.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},J=function(){var e,t=(0,_.Y)(o.current);if(t){var n=j(t);if(n){Z();var r=(null!==(e=n.ownerDocument)&&void 0!==e?e:t).createElement("div");r.className=q.root,(0,P.V)(r),function(e,t){var n=e,o=t;n._virtual||(n._virtual={children:[]});var r=n._virtual.parent;if(r&&r!==t){var i=r._virtual.children.indexOf(n);i>-1&&r._virtual.children.splice(i,1)}n._virtual.parent=o||void 0,o&&(o._virtual||(o._virtual={children:[]}),o._virtual.children.push(n))}(r,o.current),M?n.insertBefore(r,n.firstChild):n.appendChild(r),c.current=r,g(!0)}}};return(0,H.E)((function(){J(),E&&function(e,t){R[e]||(R[e]=[]),R[e].push(t);var n=B[e];if(n)for(var o=0,r=n;o<r.length;o++)r[o].notifyLayersChanged()}(E,J);var e=c.current?n(c.current):void 0;return function(){e&&e(),Z(),E&&function(e,t){var n=R[e];if(n){var o=n.indexOf(t);o>=0&&(n.splice(o,1),0===n.length&&delete R[e])}var r=B[e];if(r)for(var i=0,a=r;i<a.length;i++)a[i].notifyLayersChanged()}(E,J)}}),[E]),i.useEffect((function(){c.current&&h&&(null===K||void 0===K||K(),null===I||void 0===I||I(),g(!1))}),[h,K,I]),i.createElement("span",{className:"ms-layer",ref:u},c.current&&l.createPortal(i.createElement(f.N,{layerRoot:!0,providerRef:Y},i.createElement(D,(0,r.__assign)({},!C&&function(){O||(O={},["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 O[e]=U})));return O}(),S,{className:(0,L.A)(q.content,null===S||void 0===S?void 0:S.className),ref:Y}),b)),c.current))}));K.displayName="LayerBase";var U=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var z={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},V=(0,o.I)(K,(function(e){var t=e.className,n=e.isNotHost,o=e.theme,r=(0,x.Km)(z,o);return{root:[r.root,o.fonts.medium,n&&[r.rootNoHost,{position:"fixed",zIndex:x.nA.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]})},65086:function(e,t,n){n.d(t,{a:function(){return W}});var o=n(75425),r=n(84867),i=n(80322),a=n(26858),s=n(48038),l=n(76929),u=n(11499),c=n(54121),d=n(89896),p=n(16711),f=n(28483),m=n(7354),h=m.cs.durationValue2,g={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},v=n(68301),b=n(22068),y=n(67275),_=n(89233),C=n(25418),k=n(20852),S=n(12300),E=(0,n(65808).J9)((function(e,t){return{root:(0,m.Zq)(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),M=n(64710),x={start:"touchstart",move:"touchmove",stop:"touchend"},I={start:"mousedown",move:"mousemove",stop:"mouseup"},T=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=I,n._events=[],n._onMouseDown=function(e){var t=i.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=I,n._onDragStart(e)},n._onMouseUp=function(e){var t=i.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=I,n._onDragStop(e)},n._onTouchStart=function(e){var t=i.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=x,n._onDragStart(e)},n._onTouchEnd=function(e){var t=i.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=x,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 o=n._createDragDataFromPosition(t);n.props.onStart&&n.props.onStart(e,o),n.setState({isDragging:!0,lastPosition:t}),n._events=[(0,M.on)(document.body,n._currentEventType.move,n._onDrag,!0),(0,M.on)(document.body,n._currentEventType.stop,n._onDragStop,!0)]}}},n._onDrag=function(e){"touchmove"===e.type&&e.preventDefault();var t=n._getControlPosition(e);if(t){var o=n._createUpdatedDragData(n._createDragDataFromPosition(t)),r=o.position;n.props.onDragChange&&n.props.onDragChange(e,o),n.setState({position:r,lastPosition:t})}},n._onDragStop=function(e){if(n.state.isDragging){var t=n._getControlPosition(e);if(t){var o=n._createDragDataFromPosition(t);n.setState({isDragging:!1,lastPosition:void 0}),n.props.onStop&&n.props.onStop(e,o),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,r.__extends)(t,e),t.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach((function(e){return e()}))},t.prototype.render=function(){var e=i.Children.only(this.props.children),t=e.props,n=this.props.position,o=this.state,a=o.position,s=o.isDragging,l=a.x,u=a.y;return n&&!s&&(l=n.x,u=n.y),i.cloneElement(e,{style:(0,r.__assign)((0,r.__assign)({},t.style),{transform:"translate(".concat(l,"px, ").concat(u,"px)")}),className:E(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){if(!e||e===document.body)return!1;var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!n&&(n.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]},t.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},t.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},t}(i.Component),D=n(20403),F=n(51667),w=n(66848),P=n(52922),L=n(90801),R=n(60278),B=n(51221),A={x:0,y:0},N={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},O=(0,a.Z)(),H=i.forwardRef((function(e,t){var n,o,a,m,g,E=(0,s.N)(N,e),M=E.allowTouchBodyScroll,x=E.className,I=E.children,H=E.containerClassName,W=E.scrollableContentClassName,K=E.elementToFocusOnDismiss,U=E.firstFocusableSelector,z=E.focusTrapZoneProps,V=E.forceFocusInsideTrap,G=E.disableRestoreFocus,Y=void 0===G?E.ignoreExternalFocusing:G,q=E.isBlocking,j=E.isAlert,Z=E.isClickableOutsideFocusTrap,J=E.isDarkOverlay,Q=E.onDismiss,X=E.layerProps,$=E.overlay,ee=E.isOpen,te=E.titleAriaId,ne=E.styles,oe=E.subtitleAriaId,re=E.theme,ie=E.topOffsetFixed,ae=E.responsiveMode,se=E.onLayerDidMount,le=E.isModeless,ue=E.dragOptions,ce=E.onDismissed,de=E.enableAriaHiddenSiblings,pe=E.popupProps,fe=i.useRef(null),me=i.useRef(null),he=(0,F.a)(me,null===z||void 0===z?void 0:z.componentRef),ge=i.useRef(null),ve=(0,F.a)(fe,t),be=(0,_.z)(ve),ye=(0,w.B)("ModalFocusTrapZone",null===z||void 0===z?void 0:z.id),_e=(0,D.ox)(),Ce=(0,P.j)(),ke=Ce.setTimeout,Se=Ce.clearTimeout,Ee=i.useState(ee),Me=Ee[0],xe=Ee[1],Ie=i.useState(ee),Te=Ie[0],De=Ie[1],Fe=i.useState(A),we=Fe[0],Pe=Fe[1],Le=i.useState(),Re=Le[0],Be=Le[1],Ae=(0,L.C)(!1),Ne=Ae[0],Oe=Ae[1],He=Oe.toggle,We=Oe.setFalse,Ke=(0,R.d)((function(){return{onModalCloseTimer:0,allowTouchBodyScroll:M,scrollableContent:null,lastSetCoordinates:A,events:new l.g({})}})),Ue=(ue||{}).keepInBounds,ze=null!==j&&void 0!==j?j:q&&!le,Ve=void 0===X?"":X.className,Ge=O(ne,{theme:re,className:x,containerClassName:H,scrollableContentClassName:W,isOpen:ee,isVisible:Te,hasBeenOpened:Ke.hasBeenOpened,modalRectangleTop:Re,topOffsetFixed:ie,isModeless:le,layerClassName:Ve,windowInnerHeight:null===_e||void 0===_e?void 0:_e.innerHeight,isDefaultDragHandle:ue&&!ue.dragHandleSelector}),Ye=(0,r.__assign)((0,r.__assign)({eventBubblingEnabled:!1},X),{onLayerDidMount:X&&X.onLayerDidMount?X.onLayerDidMount:se,insertFirst:(null===X||void 0===X?void 0:X.insertFirst)||le,className:Ge.layer}),qe=i.useCallback((function(e){e?Ke.allowTouchBodyScroll?(0,u.K0)(e,Ke.events):(0,u.c8)(e,Ke.events):Ke.events.off(Ke.scrollableContent),Ke.scrollableContent=e}),[Ke]),je=function(){var e=ge.current,t=null===e||void 0===e?void 0:e.getBoundingClientRect();t&&(ie&&Be(t.top),Ue&&(Ke.minPosition={x:-t.left,y:-t.top},Ke.maxPosition={x:t.left,y:t.top}))},Ze=i.useCallback((function(e,t){var n=Ke.minPosition,o=Ke.maxPosition;return Ue&&n&&o&&(t=Math.max(n[e],t),t=Math.min(o[e],t)),t}),[Ue,Ke]),Je=function(){var e;Ke.lastSetCoordinates=A,We(),Ke.isInKeyboardMoveMode=!1,xe(!1),Pe(A),null===(e=Ke.disposeOnKeyUp)||void 0===e||e.call(Ke),null===ce||void 0===ce||ce()},Qe=i.useCallback((function(){We(),Ke.isInKeyboardMoveMode=!1}),[Ke,We]),Xe=i.useCallback((function(e,t){Pe((function(e){return{x:Ze("x",e.x+t.delta.x),y:Ze("y",e.y+t.delta.y)}}))}),[Ze]),$e=i.useCallback((function(){me.current&&me.current.focus()}),[]);i.useEffect((function(){Se(Ke.onModalCloseTimer),ee&&(requestAnimationFrame((function(){return ke(je,0)})),xe(!0),ue&&function(){var e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===c.c.space&&(0,d.s)(Ke.scrollableContent,e.target)&&(He(),e.preventDefault(),e.stopPropagation())};Ke.disposeOnKeyUp||(Ke.events.on(_e,"keyup",e,!0),Ke.disposeOnKeyUp=function(){Ke.events.off(_e,"keyup",e,!0),Ke.disposeOnKeyUp=void 0})}(),Ke.hasBeenOpened=!0,De(!0)),!ee&&Me&&(Ke.onModalCloseTimer=ke(Je,1e3*parseFloat(h)),De(!1))}),[Me,ee]),(0,B.i)((function(){Ke.events.dispose()})),function(e,t){i.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])}(E,me);var et=i.createElement(f.Y,(0,r.__assign)({},z,{id:ye,ref:ge,componentRef:he,className:(0,p.A)(Ge.main,null===z||void 0===z?void 0:z.className),elementToFocusOnDismiss:null!==(n=null===z||void 0===z?void 0:z.elementToFocusOnDismiss)&&void 0!==n?n:K,isClickableOutsideFocusTrap:null!==(o=null===z||void 0===z?void 0:z.isClickableOutsideFocusTrap)&&void 0!==o?o:le||Z||!q,disableRestoreFocus:null!==(a=null===z||void 0===z?void 0:z.disableRestoreFocus)&&void 0!==a?a:Y,forceFocusInsideTrap:(null!==(m=null===z||void 0===z?void 0:z.forceFocusInsideTrap)&&void 0!==m?m:V)&&!le,firstFocusableSelector:(null===z||void 0===z?void 0:z.firstFocusableSelector)||U,focusPreviouslyFocusedInnerElement:null===(g=null===z||void 0===z?void 0:z.focusPreviouslyFocusedInnerElement)||void 0===g||g,onBlur:Ke.isInKeyboardMoveMode?function(e){var t,n;null===(t=null===z||void 0===z?void 0:z.onBlur)||void 0===t||t.call(z,e),Ke.lastSetCoordinates=A,Ke.isInKeyboardMoveMode=!1,null===(n=Ke.disposeOnKeyDown)||void 0===n||n.call(Ke)}:void 0}),ue&&Ke.isInKeyboardMoveMode&&i.createElement("div",{className:Ge.keyboardMoveIconContainer},ue.keyboardMoveIconProps?i.createElement(S.I,(0,r.__assign)({},ue.keyboardMoveIconProps)):i.createElement(S.I,{iconName:"move",className:Ge.keyboardMoveIcon})),i.createElement("div",{ref:qe,className:Ge.scrollableContent,"data-is-scrollable":!0},ue&&Ne&&i.createElement(ue.menu,{items:[{key:"move",text:ue.moveMenuItemText,onClick:function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===c.c.space)return e.preventDefault(),void e.stopPropagation();var t=e.altKey||e.keyCode===c.c.escape;if(Ne&&t&&We(),!Ke.isInKeyboardMoveMode||e.keyCode!==c.c.escape&&e.keyCode!==c.c.enter||(Ke.isInKeyboardMoveMode=!1,e.preventDefault(),e.stopPropagation()),Ke.isInKeyboardMoveMode){var n=!0,o=function(e){var t=10;return e.shiftKey?e.ctrlKey||(t=50):e.ctrlKey&&(t=1),t}(e);switch(e.keyCode){case c.c.escape:Pe(Ke.lastSetCoordinates);case c.c.enter:Ke.lastSetCoordinates=A;break;case c.c.up:Pe((function(e){return{x:e.x,y:Ze("y",e.y-o)}}));break;case c.c.down:Pe((function(e){return{x:e.x,y:Ze("y",e.y+o)}}));break;case c.c.left:Pe((function(e){return{x:Ze("x",e.x-o),y:e.y}}));break;case c.c.right:Pe((function(e){return{x:Ze("x",e.x+o),y:e.y}}));break;default:n=!1}n&&(e.preventDefault(),e.stopPropagation())}};Ke.lastSetCoordinates=we,We(),Ke.isInKeyboardMoveMode=!0,Ke.events.on(_e,"keydown",e,!0),Ke.disposeOnKeyDown=function(){Ke.events.off(_e,"keydown",e,!0),Ke.disposeOnKeyDown=void 0}}},{key:"close",text:ue.closeMenuItemText,onClick:Je}],onDismiss:We,alignTargetEdge:!0,coverTarget:!0,directionalHint:k.A.topLeftEdge,directionalHintFixed:!0,shouldFocusOnMount:!0,target:Ke.scrollableContent}),I));return Me&&be>=(ae||C.AR.small)&&i.createElement(b.W,(0,r.__assign)({ref:ve},Ye),i.createElement(y.z,(0,r.__assign)({role:ze?"alertdialog":"dialog",ariaLabelledBy:te,ariaDescribedBy:oe,onDismiss:Q,shouldRestoreFocus:!Y,enableAriaHiddenSiblings:de,"aria-modal":!le},pe),i.createElement("div",{className:Ge.root,role:le?void 0:"document"},!le&&i.createElement(v.h,(0,r.__assign)({"aria-hidden":!0,isDarkThemed:J,onClick:q?void 0:Q,allowTouchBodyScroll:M},$)),ue?i.createElement(T,{handleSelector:ue.dragHandleSelector||"#".concat(ye),preventDragSelector:"button",onStart:Qe,onDragChange:Xe,onStop:$e,position:we},et):et)))||null}));H.displayName="Modal";var W=(0,o.I)(H,(function(e){var t,n=e.className,o=e.containerClassName,r=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,u=e.theme,c=e.topOffsetFixed,d=e.isModeless,p=e.layerClassName,f=e.isDefaultDragHandle,v=e.windowInnerHeight,b=u.palette,y=u.effects,_=u.fonts,C=(0,m.Km)(g,u);return{root:[C.root,_.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity ".concat(h)},c&&"number"===typeof l&&s&&{alignItems:"flex-start"},i&&C.isOpen,a&&{opacity:1},a&&!d&&{pointerEvents:"auto"},n],main:[C.main,{boxShadow:y.elevation64,borderRadius:y.roundedCorner2,backgroundColor:b.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?m.nA.Layer:void 0},d&&{pointerEvents:"auto"},c&&"number"===typeof l&&s&&{top:l},f&&{cursor:"move"},o],scrollableContent:[C.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:v},t)},r],layer:d&&[p,C.layer,{pointerEvents:"none"}],keyboardMoveIconContainer:{position:"absolute",display:"flex",justifyContent:"center",width:"100%",padding:"3px 0px"},keyboardMoveIcon:{fontSize:_.xLargePlus.fontSize,width:"24px"}}}),void 0,{scope:"Modal",fields:["theme","styles","enableAriaHiddenSiblings"]});W.displayName="Modal"},68301:function(e,t,n){n.d(t,{h:function(){return m}});var o=n(75425),r=n(84867),i=n(80322),a=n(26858),s=n(81708),l=n(11499),u=n(33347),c=(0,a.Z)(),d=function(e){function t(t){var n=e.call(this,t)||this;(0,s.f)(n);var o=n.props.allowTouchBodyScroll,r=void 0!==o&&o;return n._allowTouchBodyScroll=r,n}return(0,r.__extends)(t,e),t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&(0,l.mh)()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&(0,l.fY)()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,o=e.theme,a=e.styles,s=(0,u.G1)(this.props,u.JM),l=c(a,{theme:o,className:n,isDark:t});return i.createElement("div",(0,r.__assign)({},s,{className:l.root}))},t}(i.Component),p=n(7354),f={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},m=(0,o.I)(d,(function(e){var t,n=e.className,o=e.theme,r=e.isNone,i=e.isDark,a=o.palette,s=(0,p.Km)(f,o);return{root:[s.root,o.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[p.up]={border:"1px solid WindowText",opacity:0},t)},r&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"})},67275:function(e,t,n){n.d(t,{z:function(){return v}});var o=n(84867),r=n(80322),i=n(50963),a=n(16114),s=n(67471),l=n(65311),u=n(48038),c=n(54121),d=n(33347),p=n(59413),f=n(62950),m=n(51667),h=n(20403);function g(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==(0,i.z)()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}var v=r.forwardRef((function(e,t){var n=(0,u.N)({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),i=r.useRef(),v=(0,m.a)(i,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;r.useEffect((function(){if(n&&t.current)return(0,l.q)(t.current)}),[t,n])}(n,i),function(e,t){var n=e.onRestoreFocus,o=void 0===n?g:n,i=r.useRef(),l=r.useRef(!1);r.useEffect((function(){return i.current=(0,a.Y)().activeElement,(0,s.SE)(t.current)&&(l.current=!0),function(){var e;null===o||void 0===o||o({originalElement:i.current,containsFocus:l.current,documentContainsFocus:(null===(e=(0,a.Y)())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),(0,f.x)(t,"focus",r.useCallback((function(){l.current=!0}),[]),!0),(0,f.x)(t,"blur",r.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(l.current=!1)}),[]),!0)}(n,i);var b=n.role,y=n.className,_=n.ariaLabel,C=n.ariaLabelledBy,k=n.ariaDescribedBy,S=n.style,E=n.children,M=n.onDismiss,x=function(e,t){var n=(0,p.Y)(),o=r.useState(!1),i=o[0],a=o[1];return r.useEffect((function(){return n.requestAnimationFrame((function(){var n;if(!e.style||!e.style.overflowY){var o=!1;if(t&&t.current&&(null===(n=t.current)||void 0===n?void 0:n.firstElementChild)){var r=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;r>0&&s>r&&(o=s-r>1)}i!==o&&a(o)}})),function(){return n.dispose()}})),i}(n,i),I=r.useCallback((function(e){if(e.which===c.c.escape)M&&(M(e),e.preventDefault(),e.stopPropagation())}),[M]),T=(0,h.ox)();return(0,f.x)(T,"keydown",I),r.createElement("div",(0,o.__assign)({ref:v},(0,d.G1)(n,d.JM),{className:y,role:b,"aria-label":_,"aria-labelledby":C,"aria-describedby":k,onKeyDown:I,style:(0,o.__assign)({overflowY:x?"scroll":void 0,outline:"none"},S)}),E)}));v.displayName="Popup"},25418:function(e,t,n){n.d(t,{AR:function(){return o},YF:function(){return s},kA:function(){return u}});var o;n(80322);!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"}(o||(o={}));var r,i,a=[479,639,1023,1365,1919,99999999];function s(){var e;return null!==(e=null!==r&&void 0!==r?r:i)&&void 0!==e?e:o.large}function l(e){try{return e.document.documentElement.clientWidth}catch(t){return e.innerWidth}}function u(e){var t=o.small;if(e){try{for(;l(e)>a[t];)t++}catch(n){t=s()}i=t}else{if(void 0===r)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=r}return t}},89233:function(e,t,n){n.d(t,{z:function(){return l}});var o=n(80322),r=n(50963),i=n(62950),a=n(25418),s=n(20403),l=function(e,t){var n=o.useState((0,a.YF)()),l=n[0],u=n[1],c=o.useCallback((function(){var t=(0,a.kA)((0,r.z)(e.current));l!==t&&u(t)}),[e,l]),d=(0,s.ox)();return(0,i.x)(d,"resize",c),o.useEffect((function(){void 0===t&&c()}),[t]),null!==t&&void 0!==t?t:l}},45735:function(e,t,n){n.d(t,{Cm:function(){return l},aR:function(){return a},er:function(){return s},fy:function(){return r},oQ:function(){return i},uA:function(){return o}});var o,r="ktp",i="-",a="data-ktp-target",s="data-ktp-execute-target",l="ktp-layer-id";!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(o||(o={}))},41513:function(e,t,n){n.d(t,{_:function(){return s}});var o=n(84867),r=n(76929),i=n(50453),a=n(45735),s=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var o=this._getUniqueKtp(n);if(t?this.persistedKeytips[o.uniqueID]=o:this.keytips[o.uniqueID]=o,this.inKeytipMode||!this.delayUpdatingKeytipChange){var i=t?a.uA.PERSISTED_KEYTIP_ADDED:a.uA.KEYTIP_ADDED;r.g.raise(this,i,{keytip:n,uniqueID:o.uniqueID})}return o.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),o=this._getUniqueKtp(n,t),i=this.keytips[t];i&&(o.keytip.visible=i.keytip.visible,this.keytips[t]=o,delete this.sequenceMapping[i.keytip.keySequences.toString()],this.sequenceMapping[o.keytip.keySequences.toString()]=o.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||r.g.raise(this,a.uA.KEYTIP_UPDATED,{keytip:o.keytip,uniqueID:o.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var o=n?a.uA.PERSISTED_KEYTIP_REMOVED:a.uA.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||r.g.raise(this,o,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){r.g.raise(this,a.uA.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){r.g.raise(this,a.uA.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=(0,o.__spreadArray)([],e.keySequences,!0);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return(0,o.__assign)((0,o.__assign)({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){r.g.raise(this,a.uA.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=(0,i.O)()),{keytip:(0,o.__assign)({},e),uniqueID:t}},e._instance=new e,e}()},59772:function(e,t,n){var o,r;n.d(t,{x:function(){return o}}),function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(o||(o={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(r||(r={}))},84218:function(e,t,n){n.d(t,{R:function(){return R}});var o,r=n(84867),i=n(80322),a=n(90973),s=n(23993),l=n(67471),u=n(26974),c=n(54121),d=n(16758),p=n(81708),f=n(50453),m=n(89896),h=n(33347),g=n(16711),v=n(11499),b=n(19452),y=n(16114),_=n(72495),C=n(7354),k="data-is-focusable",S="data-focuszone-id",E="tabindex",M="data-no-vertical-wrap",x="data-no-horizontal-wrap",I=999999999,T=-999999999;function D(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 F={},w=new Set,P=["text","number","password","email","tel","url","search","textarea"],L=!1,R=function(e){function t(n){var o,r,m,h,g=this;(g=e.call(this,n)||this)._root=i.createRef(),g._mergedRef=(0,s.K)(),g._onFocus=function(e){if(!g._portalContainsElement(e.target)){var t,n=g.props,o=n.onActiveElementChanged,r=n.doNotAllowFocusEventToPropagate,i=n.stopFocusPropagation,a=n.onFocusNotification,s=n.onFocus,c=n.shouldFocusInnerElementWhenReceivedFocus,d=n.defaultTabbableElement,p=g._isImmediateDescendantOfZone(e.target);if(p)t=e.target;else for(var f=e.target;f&&f!==g._root.current;){if((0,l.S0)(f)&&g._isImmediateDescendantOfZone(f)){t=f;break}f=(0,u.P)(f,L)}if(c&&e.target===g._root.current){var m=d&&"function"===typeof d&&g._root.current&&d(g._root.current);m&&(0,l.S0)(m)?(t=m,m.focus()):(g.focus(!0),g._activeElement&&(t=null))}var h=!g._activeElement;t&&t!==g._activeElement&&((p||h)&&g._setFocusAlignment(t,!0,!0),g._activeElement=t,h&&g._updateTabIndexes()),o&&o(g._activeElement,e),(i||r)&&e.stopPropagation(),s?s(e):a&&a()}},g._onBlur=function(){g._setParkedFocus(!1)},g._onMouseDown=function(e){if(!g._portalContainsElement(e.target)&&!g.props.disabled){for(var t=e.target,n=[];t&&t!==g._root.current;)n.push(t),t=(0,u.P)(t,L);for(;n.length&&((t=n.pop())&&(0,l.S0)(t)&&g._setActiveElement(t,!0),!(0,l.HC)(t)););}},g._onKeyDown=function(e,t){if(!g._portalContainsElement(e.target)){var n=g.props,o=n.direction,r=n.disabled,i=n.isInnerZoneKeystroke,s=n.pagingSupportDisabled,u=n.shouldEnterInnerZone;if(!r&&(g.props.onKeyDown&&g.props.onKeyDown(e),!e.isDefaultPrevented()&&(g._getDocument().activeElement!==g._root.current||!g._isInnerZone))){if((u&&u(e)||i&&i(e))&&g._isImmediateDescendantOfZone(e.target)){var p=g._getFirstInnerZone();if(p){if(!p.focus(!0))return}else{if(!(0,l.Z5)(e.target))return;if(!g.focusElement((0,l.eX)(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case c.c.space:if(g._shouldRaiseClicksOnSpace&&g._tryInvokeClickForFocusable(e.target,e))break;return;case c.c.left:if(o!==a.E.vertical&&(g._preventDefaultWhenHandled(e),g._moveFocusLeft(t)))break;return;case c.c.right:if(o!==a.E.vertical&&(g._preventDefaultWhenHandled(e),g._moveFocusRight(t)))break;return;case c.c.up:if(o!==a.E.horizontal&&(g._preventDefaultWhenHandled(e),g._moveFocusUp()))break;return;case c.c.down:if(o!==a.E.horizontal&&(g._preventDefaultWhenHandled(e),g._moveFocusDown()))break;return;case c.c.pageDown:if(!s&&g._moveFocusPaging(!0))break;return;case c.c.pageUp:if(!s&&g._moveFocusPaging(!1))break;return;case c.c.tab:if(g.props.allowTabKey||g.props.handleTabKey===a.l.all||g.props.handleTabKey===a.l.inputOnly&&g._isElementInput(e.target)){var f=!1;if(g._processingTabKey=!0,o!==a.E.vertical&&g._shouldWrapFocus(g._activeElement,x))f=((0,d.jI)(t)?!e.shiftKey:e.shiftKey)?g._moveFocusLeft(t):g._moveFocusRight(t);else f=e.shiftKey?g._moveFocusUp():g._moveFocusDown();if(g._processingTabKey=!1,f)break;g.props.shouldResetActiveElementWhenTabFromZone&&(g._activeElement=null)}return;case c.c.home:if(g._isContentEditableElement(e.target)||g._isElementInput(e.target)&&!g._shouldInputLoseFocus(e.target,!1))return!1;var m=g._root.current&&g._root.current.firstChild;if(g._root.current&&m&&g.focusElement((0,l.eX)(g._root.current,m,!0)))break;return;case c.c.end:if(g._isContentEditableElement(e.target)||g._isElementInput(e.target)&&!g._shouldInputLoseFocus(e.target,!0))return!1;var h=g._root.current&&g._root.current.lastChild;if(g._root.current&&g.focusElement((0,l.yv)(g._root.current,h,!0,!0,!0)))break;return;case c.c.enter:if(g._shouldRaiseClicksOnEnter&&g._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},g._getHorizontalDistanceFromCenter=function(e,t,n){var o=g._focusAlignment.left||g._focusAlignment.x||0,r=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),s=Math.floor(t.top);return e&&r>i||!e&&a<s?o>=n.left&&o<=n.left+n.width?0:Math.abs(n.left+n.width/2-o):g._shouldWrapFocus(g._activeElement,M)?I:T},(0,p.f)(g),g._id=(0,f.O)("FocusZone"),g._focusAlignment={left:0,top:0},g._processingTabKey=!1;var v=null===(r=null!==(o=n.shouldRaiseClicks)&&void 0!==o?o:t.defaultProps.shouldRaiseClicks)||void 0===r||r;return g._shouldRaiseClicksOnEnter=null!==(m=n.shouldRaiseClicksOnEnter)&&void 0!==m?m:v,g._shouldRaiseClicksOnSpace=null!==(h=n.shouldRaiseClicksOnSpace)&&void 0!==h?h:v,g}return(0,r.__extends)(t,e),t.getOuterZones=function(){return w.size},t._onKeyDownCapture=function(e){e.which===c.c.tab&&w.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(F[this._id]=this,e){for(var n=(0,u.P)(e,L);n&&n!==this._getDocument().body&&1===n.nodeType;){if((0,l.HC)(n)){this._isInnerZone=!0;break}n=(0,u.P)(n,L)}this._isInnerZone||(w.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"===typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!(0,m.s)(this._root.current,this._activeElement,L)||this._defaultFocusElement&&!(0,m.s)(this._root.current,this._defaultFocusElement,L))&&(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=(0,l.nA)(e,this._lastIndexPath);n?(this._setActiveElement(n,!0),n.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete F[this._id],this._isInnerZone||(w.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,n=t.as,a=t.elementType,s=t.rootProps,l=t.ariaDescribedBy,u=t.ariaLabelledBy,c=t.className,d=(0,h.G1)(this.props,h.vt),p=n||a||"div";this._evaluateFocusBeforeRender();var f=(0,C.O4)();return i.createElement(p,(0,r.__assign)({"aria-labelledby":u,"aria-describedby":l},d,s,{className:(0,g.A)((o||(o=(0,_.Z)({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),o),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,f)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(k)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var o=F[n.getAttribute(S)];return!!o&&o.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&(0,m.s)(this._root.current,this._activeElement)&&(0,l.S0)(this._activeElement)&&(!t||(0,l.F2)(this._activeElement)))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement((0,l.eX)(this._root.current,r,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement((0,l.yv)(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n=this.props,o=n.onBeforeFocus,r=n.shouldReceiveFocus;return!(r&&!r(e)||o&&!o(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var o=(0,m.s)(e,n,!1);this._lastIndexPath=o?(0,l.Ep)(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&((0,l.HC)(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(k)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return D(n,t),!0;n=(0,u.P)(n,L)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if((0,l.HC)(e))return F[e.getAttribute(S)];for(var t=e.firstElementChild;t;){if((0,l.HC)(t))return F[t.getAttribute(S)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,o){void 0===o&&(o=!0);var r=this._activeElement,i=-1,s=void 0,u=!1,c=this.props.direction===a.E.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,e))return!1;var d=c?r.getBoundingClientRect():null;do{if(r=e?(0,l.eX)(this._root.current,r):(0,l.yv)(this._root.current,r),!c){s=r;break}if(r){var p=t(d,r.getBoundingClientRect());if(-1===p&&-1===i){s=r;break}if(p>-1&&(-1===i||p<i)&&(i=p,s=r),i>=0&&p<0)break}}while(r);if(s&&s!==this._activeElement)u=!0,this.focusElement(s);else if(this.props.isCircularNavigation&&o)return e?this.focusElement((0,l.eX)(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement((0,l.yv)(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return u},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(o,r){var i=-1,a=Math.floor(r.top),s=Math.floor(o.bottom);return a<s?e._shouldWrapFocus(e._activeElement,M)?I:T:((-1===t&&a>=s||a===t)&&(t=a,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(o,r){var i=-1,a=Math.floor(r.bottom),s=Math.floor(r.top),l=Math.floor(o.top);return a>l?e._shouldWrapFocus(e._activeElement,M)?I:T:((-1===t&&a<=l||s===t)&&(t=s,i=n>=r.left&&n<=r.left+r.width?0:Math.abs(r.left+r.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,x);return!!this._moveFocus((0,d.jI)(e),(function(o,r){var i=-1;return((0,d.jI)(e)?parseFloat(r.top.toFixed(3))<parseFloat(o.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)))&&r.right<=o.right&&t.props.direction!==a.E.vertical?i=o.right-r.right:n||(i=T),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,x);return!!this._moveFocus(!(0,d.jI)(e),(function(o,r){var i=-1;return((0,d.jI)(e)?parseFloat(r.bottom.toFixed(3))>parseFloat(o.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(o.bottom.toFixed(3)))&&r.left>=o.left&&t.props.direction!==a.E.vertical?i=r.left-o.left:n||(i=T),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var o=(0,v.Hc)(n);if(!o)return!1;var r=-1,i=void 0,a=-1,s=-1,u=o.clientHeight,c=n.getBoundingClientRect();do{if(n=e?(0,l.eX)(this._root.current,n):(0,l.yv)(this._root.current,n)){var d=n.getBoundingClientRect(),p=Math.floor(d.top),f=Math.floor(c.bottom),m=Math.floor(d.bottom),h=Math.floor(c.top),g=this._getHorizontalDistanceFromCenter(e,c,d);if(e&&p>f+u||!e&&m<h-u)break;g>-1&&(e&&p>a?(a=p,r=g,i=n):!e&&m<s?(s=m,r=g,i=n):(-1===r||g<=r)&&(r=g,i=n))}}while(n);var b=!1;if(i&&i!==this._activeElement)b=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement((0,l.eX)(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement((0,l.yv)(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return b},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===a.E.bidirectional&&(!this._focusAlignment||t||n)){var o=e.getBoundingClientRect(),r=o.left+o.width/2,i=o.top+o.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:i}),t&&(this._focusAlignment.left=r),n&&(this._focusAlignment.top=i)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=(0,u.P)(e,L);t&&t!==this._root.current&&t!==this._getDocument().body;){if((0,l.HC)(t))return t;t=(0,u.P)(t,L)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"===typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!(0,m.s)(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!(0,l.S0)(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var o=t[n];(0,l.HC)(o)?"true"===o.getAttribute(k)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==o?"-1"!==o.getAttribute(E)&&o.setAttribute(E,"-1"):(this._defaultFocusElement=o,"0"!==o.getAttribute(E)&&o.setAttribute(E,"0"))):(o.getAttribute&&"false"===o.getAttribute(k)&&o.setAttribute(E,"-1"),(0,l.S0)(o)?this.props.disabled?o.setAttribute(E,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==o?"-1"!==o.getAttribute(E)&&o.setAttribute(E,"-1"):(this._defaultFocusElement=o,"0"!==o.getAttribute(E)&&o.setAttribute(E,"0")):"svg"===o.tagName&&"false"!==o.getAttribute("focusable")&&o.setAttribute("focusable","false")),this._updateTabIndexes(o)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&P.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,o=n!==e.selectionEnd,r=e.value,i=e.readOnly;if(o||n>0&&!t&&!i||n!==r.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||(0,l._l)(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&(0,b.s)(e,this._root.current)},t.prototype._getDocument=function(){return(0,y.Y)(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:a.E.bidirectional,shouldRaiseClicks:!0},t}(i.Component)},90973:function(e,t,n){n.d(t,{E:function(){return o},l:function(){return r}});var o,r={none:0,all:1,inputOnly:2};!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(o||(o={}))},3676:function(e,t,n){n.d(t,{j:function(){return r}});var o=n(50963),r=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,o=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),o=setTimeout((function(){try{n._timeoutIds&&delete n._timeoutIds[o],e.apply(n._parent)}catch(t){n._logError(t)}}),t),this._timeoutIds[o]=!0),o},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,i=(0,o.z)(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=i.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(t){n._logError(t)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=(0,o.z)(t);this._immediateIds&&this._immediateIds[e]&&(n.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var n=this,o=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),o=setInterval((function(){try{e.apply(n._parent)}catch(t){n._logError(t)}}),t),this._intervalIds[o]=!0),o},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var o=this;if(this._isDisposed)return this._noop;var r,i,a=t||0,s=!0,l=!0,u=0,c=null;n&&"boolean"===typeof n.leading&&(s=n.leading),n&&"boolean"===typeof n.trailing&&(l=n.trailing);var d=function t(n){var d=Date.now(),p=d-u,f=s?a-p:a;return p>=a&&(!n||s)?(u=d,c&&(o.clearTimeout(c),c=null),r=e.apply(o._parent,i)):null===c&&l&&(c=o.setTimeout(t,f)),r};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 o=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var i,a,s=t||0,l=!1,u=!0,c=null,d=0,p=Date.now(),f=null;n&&"boolean"===typeof n.leading&&(l=n.leading),n&&"boolean"===typeof n.trailing&&(u=n.trailing),n&&"number"===typeof n.maxWait&&!isNaN(n.maxWait)&&(c=n.maxWait);var m=function(e){f&&(o.clearTimeout(f),f=null),p=e},h=function(t){m(t),i=e.apply(o._parent,a)},g=function e(t){var n=Date.now(),r=!1;t&&(l&&n-d>=s&&(r=!0),d=n);var a=n-d,m=s-a,g=n-p,v=!1;return null!==c&&(g>=c&&f?v=!0:m=Math.min(m,c-g)),a>=s||v||r?h(n):null!==f&&t||!u||(f=o.setTimeout(e,m)),i},v=function(){return!!f},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,g(!0)};return b.cancel=function(){v()&&m(Date.now())},b.flush=function(){return v()&&h(Date.now()),i},b.pending=v,b},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,i=(0,o.z)(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var a=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(t){n._logError(t)}};r=i.requestAnimationFrame?i.requestAnimationFrame(a):i.setTimeout(a,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=(0,o.z)(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}()},28620:function(e,t,n){n.d(t,{K:function(){return d}});var o=n(84867),r=n(80322),i=n(3676),a=n(76929),s=n(63269),l=n(90288),u=n(10990);!function(e){function t(n,o){var r=e.call(this,n,o)||this;return function(e,t,n){for(var o=0,r=n.length;o<r;o++)c(e,t,n[o])}(r,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),r}(0,o.__extends)(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new i.j(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new a.g(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){(0,u.A)(this.className,this.props,e)},t.prototype._warnMutuallyExclusive=function(e){(0,l.Y)(this.className,this.props,e)},t.prototype._warnConditionallyRequiredProps=function(e,t,n){(0,s.J)(this.className,this.props,e,t,n)},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"===typeof e&&e(t),"object"===typeof e&&(e.current=t))}}(r.Component);function c(e,t,n){var o=e[n],r=t[n];(o||r)&&(e[n]=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return r&&(e=r.apply(this,t)),o!==r&&(e=o.apply(this,t)),e})}function d(){return null}},47770:function(e,t,n){n.d(t,{P:function(){return a}});var o=n(84867),r=n(80322),i=n(50963),a=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:void 0===(0,i.z)()},n}return(0,o.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?r.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(r.Component)},76929:function(e,t,n){n.d(t,{g:function(){return r}});var o=n(5141),r=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,i){var a;if(e._isElement(t)){if("undefined"!==typeof document&&document.createEvent){var s=document.createEvent("HTMLEvents");s.initEvent(n,i||!1,!0),(0,o.kp)(s,r),a=t.dispatchEvent(s)}else if("undefined"!==typeof document&&document.createEventObject){var l=document.createEventObject(r);t.fireEvent("on"+n,l)}}else for(;t&&!1!==a;){var u=t.__events__,c=u?u[n]:null;if(c)for(var d in c)if(c.hasOwnProperty(d))for(var p=c[d],f=0;!1!==a&&f<p.length;f++){var m=p[f];m.objectCallback&&(a=m.objectCallback.call(m.parent,r))}t=i?t.parent:null}return a},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 o in t)t.hasOwnProperty(o)&&this.on(e,o,t[o],n)},e.prototype.on=function(t,n,o,r){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],o,r);else{var l=this._parent,u={target:t,eventName:n,parent:l,callback:o,options:r};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(u),a[n].count++,e._isElement(t)){var c=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=o.apply(l,e))&&e[0]){var r=e[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return n}};u.elementCallback=c,t.addEventListener?t.addEventListener(n,c,r):t.attachEvent&&t.attachEvent("on"+n,c)}else{u.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return o.apply(l,e)}}this._eventRecords.push(u)}},e.prototype.off=function(e,t,n,o){for(var r=0;r<this._eventRecords.length;r++){var i=this._eventRecords[r];if((!e||e===i.target)&&(!t||t===i.eventName)&&(!n||n===i.callback)&&("boolean"!==typeof o||o===i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(r--,1)}}},e.prototype.raise=function(t,n,o){return e.raise(this._parent,t,n,o)},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}()},67223:function(e,t,n){function o(){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}n.d(t,{_:function(){return o}})},93177:function(e,t,n){function o(e,t,n){void 0===n&&(n=0);for(var o=-1,r=n;e&&r<e.length;r++)if(t(e[r],r)){o=r;break}return o}function r(e,t){var n=o(e,t);if(!(n<0))return e[n]}function i(e,t,n){var o=e.slice();return o.splice(t,0,n),o}function a(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}n.d(t,{I6:function(){return r},SL:function(){return o},Ty:function(){return i},r1:function(){return a}})},26858:function(e,t,n){n.d(t,{Z:function(){return c}});var o=n(41441),r=n(12281),i=n(16758),a=n(50963),s=0,l=o.n.getInstance();l&&l.onReset&&l.onReset((function(){return s++}));var u="__retval__";function c(e){void 0===e&&(e={});var t=new Map,n=0,o=0,l=s;return function(c,d){var f;if(void 0===d&&(d={}),e.useStaticStyles&&"function"===typeof c&&c.__noStyleOverride__)return c(d);o++;var m=t,h=d.theme,g=h&&void 0!==h.rtl?h.rtl:(0,i.jI)(),v=e.disableCaching;if(l!==s&&(l=s,t=new Map,n=0),e.disableCaching||(m=p(t,c),m=p(m,d)),!v&&m[u]||(m[u]=void 0===c?{}:(0,r.L)(["function"===typeof c?c(d):c],{rtl:!!g,specificityMultiplier:e.useStaticStyles?5:void 0}),v||n++),n>(e.cacheSize||50)){var b=(0,a.z)();(null===(f=null===b||void 0===b?void 0:b.FabricConfig)||void 0===f?void 0:f.enableClassNameCacheFullWarning)&&(console.warn("Styles are being recalculated too frequently. Cache miss rate is ".concat(n,"/").concat(o,".")),console.trace()),t.clear(),n=0,e.disableCaching=!0}return m[u]}}function d(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 p(e,t){if("function"===typeof t)if(t.__cachedInputs__)for(var n=0,o=t.__cachedInputs__;n<o.length;n++){e=d(e,o[n])}else e=d(e,t);else if("object"===typeof t)for(var r in t)t.hasOwnProperty(r)&&(e=d(e,t[r]));return e}},21005:function(e,t,n){n.d(t,{C:function(){return s}});var o=n(84867),r=n(80322),i=n(65808);var a=(0,i.J5)((function(e){var t=e;return(0,i.J5)((function(n){if(e===n)throw new Error("Attempted to compose a component with itself.");var a=n,s=(0,i.J5)((function(e){return function(t){return r.createElement(a,(0,o.__assign)({},t,{defaultRender:e}))}}));return function(e){var n=e.defaultRender;return r.createElement(t,(0,o.__assign)({},e,{defaultRender:n?s(n):a}))}}))}));function s(e,t){return a(e)(t)}},23993:function(e,t,n){n.d(t,{K:function(){return i}});var o=n(93177),r=function(e){return function(t){for(var n=0,o=e.refs;n<o.length;n++){var r=o[n];"function"===typeof r?r(t):r&&(r.current=t)}}},i=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&(0,o.r1)(t.refs,e)||(t.resolver=r(t)),t.refs=e,t.resolver}}},8492:function(e,t,n){n.d(t,{T:function(){return l}});var o=n(84867),r=n(80322),i=n(39409);var a=n(77933),s=n(38561);function l(e,t,n){return function(l){var u,c=((u=function(u){function c(e){var t=u.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return(0,o.__extends)(c,u),c.prototype.componentDidMount=function(){i.X.observe(this._onSettingChanged)},c.prototype.componentWillUnmount=function(){i.X.unobserve(this._onSettingChanged)},c.prototype.render=function(){var u=this;return r.createElement(a.z.Consumer,null,(function(a){var c=i.X.getSettings(t,e,a.customizations),d=u.props;if(c.styles&&"function"===typeof c.styles&&(c.styles=c.styles((0,o.__assign)((0,o.__assign)({},c),d))),n&&c.styles){if(u._styleCache.default!==c.styles||u._styleCache.component!==d.styles){var p=(0,s.T)(c.styles,d.styles);u._styleCache.default=c.styles,u._styleCache.component=d.styles,u._styleCache.merged=p}return r.createElement(l,(0,o.__assign)({},c,d,{styles:u._styleCache.merged}))}return r.createElement(l,(0,o.__assign)({},c,d))}))},c.prototype._onSettingChanged=function(){this.forceUpdate()},c}(r.Component)).displayName="Customized"+e,u);return function(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}(l,c)}}},64710:function(e,t,n){function o(e,t,n,o){return e.addEventListener(t,n,o),function(){return e.removeEventListener(t,n,o)}}n.d(t,{on:function(){return o}})},46823:function(e,t,n){function o(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=[],o=0;o<arguments.length;o++)n[o]=arguments[o];t.forEach((function(t){return t&&t.apply(e,n)}))}}function r(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=o(e,e[n],t[n]))}n.d(t,{i:function(){return r}})},67471:function(e,t,n){n.d(t,{SE:function(){return _},lo:function(){return S},vO:function(){return p},Ep:function(){return M},j5:function(){return l},oR:function(){return c},nA:function(){return E},dm:function(){return u},Cm:function(){return d},eX:function(){return m},yv:function(){return f},Z5:function(){return y},HC:function(){return b},S0:function(){return v},F2:function(){return g},_l:function(){return C}});var o=n(43822);var r=n(89896),i=n(26974),a=n(50963),s=n(16114);function l(e,t,n){return m(e,t,!0,!1,!1,n)}function u(e,t,n){return f(e,t,!0,!1,!0,n)}function c(e,t,n,o){return void 0===o&&(o=!0),m(e,t,o,!1,!1,n,!1,!0)}function d(e,t,n,o){return void 0===o&&(o=!0),f(e,t,o,!1,!0,n,!1,!0)}function p(e,t){var n=m(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!n&&(S(n),!0)}function f(e,t,n,o,r,i,a,s){if(!t||!a&&t===e)return null;var l=h(t);if(r&&l&&(i||!b(t)&&!y(t))){var u=f(e,t.lastElementChild,!0,!0,!0,i,a,s);if(u){if(s&&v(u,!0)||!s)return u;var c=f(e,u.previousElementSibling,!0,!0,!0,i,a,s);if(c)return c;for(var d=u.parentElement;d&&d!==t;){var p=f(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(p)return p;d=d.parentElement}}}if(n&&l&&v(t,s))return t;var m=f(e,t.previousElementSibling,!0,!0,!0,i,a,s);return m||(o?null:f(e,t.parentElement,!0,!1,!1,i,a,s))}function m(e,t,n,o,r,i,a,s,l){if(!t||t===e&&r&&!a)return null;var u=(l?g:h)(t);if(n&&u&&v(t,s))return t;if(!r&&u&&(i||!b(t)&&!y(t))){var c=m(e,t.firstElementChild,!0,!0,!1,i,a,s,l);if(c)return c}if(t===e)return null;var d=m(e,t.nextElementSibling,!0,!0,!1,i,a,s,l);return d||(o?null:m(e,t.parentElement,!1,!1,!0,i,a,s,l))}function h(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 g(e){return!!e&&h(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function v(e,t){if(!e||e.disabled)return!1;var n=0,o=null;e&&e.getAttribute&&(o=e.getAttribute("tabIndex"))&&(n=parseInt(o,10));var r=e.getAttribute?e.getAttribute("data-is-focusable"):null,i=null!==o&&n>=0,a=!!e&&"false"!==r&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===r||i);return t?-1!==n&&a:a}function b(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function y(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function _(e){var t=(0,s.Y)(e),n=t&&t.activeElement;return!(!n||!(0,r.s)(e,n))}function C(e,t){return"true"!==function(e,t){var n=(0,o.w)(e,(function(e){return e.hasAttribute(t)}));return n&&n.getAttribute(t)}(e,t)}var k=void 0;function S(e){if(e){var t=(0,a.z)(e);t&&(void 0!==k&&t.cancelAnimationFrame(k),k=t.requestAnimationFrame((function(){e&&e.focus(),k=void 0})))}}function E(e,t){for(var n=e,o=0,r=t;o<r.length;o++){var i=r[o],a=n.children[Math.min(i,n.children.length-1)];if(!a)break;n=a}return n=v(n)&&h(n)?n:m(e,n,!0)||f(e,n)}function M(e,t){for(var n=[];t&&e&&t!==e;){var o=(0,i.P)(t,!0);if(null===o)return[];n.unshift(Array.prototype.indexOf.call(o.children,t)),t=o}return n}},81708:function(e,t,n){n.d(t,{f:function(){return r}});var o=n(46823);function r(e){(0,o.i)(e,{componentDidMount:i,componentDidUpdate:a,componentWillUnmount:s})}function i(){l(this.props.componentRef,this)}function a(e){e.componentRef!==this.props.componentRef&&(l(e.componentRef,null),l(this.props.componentRef,this))}function s(){l(this.props.componentRef,null)}function l(e,t){e&&("object"===typeof e?e.current=t:"function"===typeof e&&e(t))}},60478:function(e,t,n){n.d(t,{u:function(){return o}});var o=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)}},65311:function(e,t,n){n.d(t,{q:function(){return i}});var o=n(16114),r=["TEMPLATE","STYLE","SCRIPT"];function i(e){var t=(0,o.Y)(e);if(!t)return function(){};for(var n=[];e!==t.body&&e.parentElement;){for(var i=0,a=e.parentElement.children;i<a.length;i++){var s=a[i],l=s.getAttribute("aria-hidden");s!==e&&"true"!==(null===l||void 0===l?void 0:l.toLowerCase())&&-1===r.indexOf(s.tagName)&&n.push([s,l])}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=[]}}},84022:function(e,t,n){n.d(t,{c:function(){return i}});var o,r=n(50963);function i(e){var t;if("undefined"===typeof o||e){var n=(0,r.z)(),i=null===(t=null===n||void 0===n?void 0:n.navigator)||void 0===t?void 0:t.userAgent;o=!!i&&-1!==i.indexOf("Macintosh")}return!!o}},32133:function(e,t,n){n.d(t,{j:function(){return i}});var o=n(65808);var r=(0,o.J5)((function(e){return(0,o.J5)((function(t){var n=(0,o.J5)((function(e){return function(n){return t(n,e)}}));return function(o,r){return e(o,r?n(r):t)}}))}));function i(e,t){return r(e)(t)}},11499:function(e,t,n){n.d(t,{Hc:function(){return g},K0:function(){return d},XJ:function(){return h},c8:function(){return c},fY:function(){return m},mh:function(){return f}});var o,r=n(16114),i=n(72495),a=n(50963),s=0,l=(0,i.Z)({overflow:"hidden !important"}),u="data-is-scrollable",c=function(e,t){if(e){var n=0,o=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(),o)){var t=e.targetTouches[0].clientY-n,r=g(e.target);r&&(o=r),0===o.scrollTop&&t>0&&e.preventDefault(),o.scrollHeight-Math.ceil(o.scrollTop)<=o.clientHeight&&t<0&&e.preventDefault()}}),{passive:!1}),o=e}},d=function(e,t){if(e){t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})}},p=function(e){e.preventDefault()};function f(){var e=(0,r.Y)();e&&e.body&&!s&&(e.body.classList.add(l),e.body.addEventListener("touchmove",p,{passive:!1,capture:!1})),s++}function m(){if(s>0){var e=(0,r.Y)();e&&e.body&&1===s&&(e.body.classList.remove(l),e.body.removeEventListener("touchmove",p)),s--}}function h(){if(void 0===o){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),o=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return o}function g(e){for(var t=e,n=(0,r.Y)(e);t&&t!==n.body;){if("true"===t.getAttribute(u))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(u)){var o=getComputedStyle(t),i=o?o.getPropertyValue("overflow-y"):"";if(i&&("scroll"===i||"auto"===i))return t}t=t.parentElement}return t&&t!==n.body||(t=(0,a.z)(e)),t}},75425:function(e,t,n){n.d(t,{I:function(){return l}});var o=n(84867),r=n(80322),i=n(70983),a=n(87022),s=["theme","styles"];function l(e,t,n,l,u){var c=(l=l||{scope:"",fields:void 0}).scope,d=l.fields,p=void 0===d?s:d,f=r.forwardRef((function(s,l){var u=r.useRef(),d=(0,a.m)(p,c),f=d.styles,m=(d.dir,(0,o.__rest)(d,["styles","dir"])),h=n?n(s):void 0,g=u.current&&u.current.__cachedInputs__||[],v=s.styles;if(!u.current||f!==g[1]||v!==g[2]){var b=function(e){return(0,i.p)(e,t,f,v)};b.__cachedInputs__=[t,f,v],b.__noStyleOverride__=!f&&!v,u.current=b}return r.createElement(e,(0,o.__assign)({ref:l},m,h,s,{styles:u.current}))}));f.displayName="Styled".concat(e.displayName||e.name);var m=u?r.memo(f):f;return f.displayName&&(m.displayName=f.displayName),m}},39265:function(e,t,n){n.d(t,{E:function(){return r}});var o=n(80322),r=(0,n(22388).S)()?o.useLayoutEffect:o.useEffect},63269:function(e,t,n){function o(e,t,n,o,r){}n.d(t,{J:function(){return o}})},10990:function(e,t,n){function o(e,t,n){}n.d(t,{A:function(){return o}})},90288:function(e,t,n){function o(e,t,n){}n.d(t,{Y:function(){return o}})}}]);
//# sourceMappingURL=6314.94e95bac.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[6360],{50779:function(e,r,t){t.d(r,{Dz:function(){return ce},jw:function(){return C},Sy:function(){return M},J9:function(){return W},DP:function(){return se}});var a=t(84867),n=t(84077),o=t(41182),l=t(5817),u=t(16758),i=t(94431),c=t(85875),d=t(10286),s=t(80322),g=t.n(s),h=t(7354),m=t(8820),f=t(28207),k={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",neutralPrimary:"#323130",neutralDark:"#201f1e",neutralMed:"#fafafa",neutralHigh:"#ffffff",transparent:"transparent",black:"#000000",white:"#f2f2f2",redDark:"#a4262c",redLight:"#feece5",highlighter:"#f8d22a"},A={bodyBackground:k.white,navBackground:k.white,navItemBackgroundHovered:k.neutralLighter,navItemBackgroundPressed:k.neutralLight,severeWarning:"#fed9cc",errorBlockIcon:"#a80000",messageLink:k.themeDarkAlt,messageWebSuccess:"#107c10",warningIcon:"#901619",severeWarningIcon:"#790C0E",buttonBackground:k.neutralHigh,cautionYellow:"#9D5D00"},y=(0,h.sQ)((0,m.Z)()||navigator.language),D={small:{font:"Segoe UI Variable Small, ".concat(y.medium.fontFamily)},medium:{font:"Segoe UI Variable Text, ".concat(y.medium.fontFamily)},large:{font:"Segoe UI Variable Display, ".concat(y.medium.fontFamily)}},B={fontFamily:D.medium.font},L={palette:k,semanticColors:A},C={palette:k,semanticColors:(0,a.__assign)((0,a.__assign)({},f.Rz),A)},F={palette:{themePrimary:"#a80000",neutralLight:"#f4cfc2",neutralDark:"#323130",neutralSecondary:"#323130",neutralTertiaryAlt:"#e9c4b7",themeDarkAlt:"#901619",themeDark:"#790C0E"},semanticColors:A,fonts:D},_=["themePrimary","themeLighterAlt","themeLighter","themeLight","themeTertiary","themeSecondary","themeDarkAlt","themeDark","themeDarker","neutralLighterAlt","neutralLighter","neutralLight","neutralQuaternaryAlt","neutralTertiary","neutralTertiaryAlt","neutralSecondary","neutralPrimary","neutralDark","neutralMed","neutralHigh","transparent","black","white","redDark","redLight","highlighter"],v=((0,a.__spreadArray)([],_,!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",neutralPrimary:"#323130",neutralDark:"#201f1e",neutralMed:"#fafafa",neutralHigh:"#ffffff",transparent:"transparent",black:"#000000",white:"#f2f2f2",redDark:"#a4262c",redLight:"#feece5",highlighter:"#f8d22a"}),p={bodyBackground:v.white,navBackground:v.white,navItemBackgroundHovered:v.neutralLighter,navItemBackgroundPressed:v.neutralLight,severeWarning:"#fed9cc",errorBlockIcon:"#a80000",messageLink:v.themeDarkAlt,messageWebSuccess:"#107c10",warningIcon:"#901619",severeWarningIcon:"#790C0E",cautionYellow:"#9D5D00"},b={palette:v,semanticColors:p},S=((0,a.__assign)((0,a.__assign)({},f.Rz),p),(0,a.__spreadArray)([],_,!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",neutralPrimary:"#323130",neutralDark:"#201f1e",neutralMed:"#fafafa",neutralHigh:"#ffffff",transparent:"transparent",black:"#000000",white:"#c5e9e5",redDark:"#a4262c",redLight:"#feece5",highlighter:"#f8d22a"}),w={palette:S,semanticColors:{bodyBackground:S.white,navBackground:S.white,navItemBackgroundHovered:S.neutralLighter,navItemBackgroundPressed:S.neutralLight,severeWarning:"#fed9cc",errorBlockIcon:"#a8000",messageLink:v.themeDarkAlt,messageWebSuccess:"#107c10",cautionYellow:"#9D5D00"}},E={palette:(0,a.__assign)((0,a.__assign)({},b.palette),{neutralMed:v.themeLighterAlt,white:"#ffffff"}),semanticColors:(0,a.__assign)((0,a.__assign)({},p),{bodyBackground:v.themeLighterAlt})},T={palette:{themePrimary:"#107c10",themeDark:"#054B16",themeDarker:"#054B16",themeDarkAlt:"#054B16",neutralTertiary:k.neutralTertiary,transparent:"transparent"},semanticColors:A},N={palette:{themePrimary:"#9D5D00",neutralLight:"#f4cfc2",neutralDark:"#323130",neutralSecondary:"#323130",neutralTertiaryAlt:"#e9c4b7",themeDarkAlt:"#704200",themeDark:"#472A00"},semanticColors:A,fonts:D},P=t(82239),I=t(76826),W={themePrimary:I.L.colorBrandBackground,themeLighterAlt:I.L.colorBrandBackground2,themeLighter:I.L.colorBrandBackground2Hover,themeLight:I.L.colorBrandStroke2,themeTertiary:I.L.colorBrandStroke2Hover,themeSecondary:I.L.colorBrandForegroundInverted,themeDarkAlt:I.L.colorBrandBackgroundHover,themeDark:I.L.colorBrandBackgroundSelected,themeDarker:I.L.colorBrandBackgroundPressed,neutralLighterAlt:I.L.colorNeutralBackground4,neutralLighter:I.L.colorNeutralBackground1Selected,neutralLight:I.L.colorNeutralBackground1Pressed,neutralQuaternaryAlt:I.L.colorNeutralBackground3Pressed,neutralTertiary:I.L.colorNeutralForeground4,neutralTertiaryAlt:I.L.colorNeutralForegroundDisabled,neutralSecondary:I.L.colorNeutralForeground3,neutralPrimary:I.L.colorNeutralForeground2,neutralDark:I.L.colorNeutralForeground1,neutralMed:I.L.colorNeutralBackground2,neutralHigh:I.L.colorNeutralBackground1,transparent:"transparent",black:I.L.colorStrokeFocus2,white:I.L.colorNeutralBackground3,redDark:I.L.colorStatusDangerBackground3,redLight:I.L.colorStatusDangerBackground1,highlighter:"#fde300"},M=function(e){return(0,a.__assign)((0,a.__assign)({},P.o),function(e){var r,t,a,n,o,l,u,i,c;return{colorNeutralForeground1:null!==(r=e.palette.neutralPrimary)&&void 0!==r?r:P.o.colorNeutralForeground1,colorNeutralForeground2:null!==(t=e.palette.neutralPrimary)&&void 0!==t?t:P.o.colorNeutralForeground2,colorNeutralForeground3:null!==(a=e.palette.neutralSecondary)&&void 0!==a?a:P.o.colorNeutralForeground3,colorNeutralForeground4:null!==(n=e.palette.neutralTertiary)&&void 0!==n?n:P.o.colorNeutralForeground4,colorBrandForeground1:null!==(o=e.palette.themePrimary)&&void 0!==o?o:P.o.colorBrandForeground1,colorBrandForeground2:null!==(l=e.palette.themeDarkAlt)&&void 0!==l?l:P.o.colorBrandForeground2,colorStatusSuccessForeground3:null!==(u=e.semanticColors.messageWebSuccess)&&void 0!==u?u:P.o.colorStatusSuccessForeground3,colorStatusWarningForeground1:null!==(i=e.semanticColors.cautionYellow)&&void 0!==i?i:P.o.colorStatusWarningForeground1,colorStatusDangerForeground1:null!==(c=e.palette.redDark)&&void 0!==c?c:P.o.colorStatusDangerForeground1}}(e))},H={AMC:L,"AMC-on-red":F,Family:b,FamilyInsights:w,"Family-On-NeutralLighterAlt":E,XboxTheme:T,"AMC-on-caution-yellow":N},x=t(86314),Q=t(807),U={10:"#050300",20:"#211606",30:"#36220B",40:"#482C0C",50:"#59360C",60:"#6C410A",70:"#7F4C07",80:"#9D5D00",90:"#A36412",100:"#AE732E",110:"#BA8347",120:"#C5935E",130:"#CFA376",140:"#D9B48F",150:"#E3C4A7",160:"#ECD5C1"},V=(0,a.__assign)({},(0,x.a)(U)),Y=(0,a.__assign)({},(0,Q.W)(U)),z={10:"#070100",20:"#2A0F01",30:"#471303",40:"#5F1303",50:"#791103",60:"#930A01",70:"#AB0F04",80:"#A80000",90:"#C0482E",100:"#CA5C42",110:"#D37056",120:"#DB836B",130:"#E39680",140:"#EAA896",150:"#F0BBAC",160:"#F5CEC3"},R=(0,a.__assign)({},(0,x.a)(z)),X=(0,a.__assign)({},(0,Q.W)(z)),j=t(57389),K=P.o,O=j.C,q={10:"#010403",20:"#0E1C19",30:"#122F2A",40:"#123C36",50:"#124A42",60:"#0F594F",70:"#07685C",80:"#027063",90:"#398377",100:"#509085",110:"#669D93",120:"#7CABA1",130:"#91B8B0",140:"#A6C6BF",150:"#BBD3CE",160:"#D0E1DD"},J=(0,a.__assign)({},(0,x.a)(q)),Z=(0,a.__assign)({},(0,Q.W)(q)),G={10:"#010403",20:"#0F1C19",30:"#122F2A",40:"#143C36",50:"#134A42",60:"#12594F",70:"#0D685C",80:"#047769",90:"#308477",100:"#4A9184",110:"#629E93",120:"#78ABA1",130:"#8EB9B0",140:"#A3C6BF",150:"#B9D4CE",160:"#CFE1DD"},$=(0,a.__assign)({},(0,x.a)(G)),ee=(0,a.__assign)({},(0,Q.W)(G)),re={10:"#010403",20:"#0F1C19",30:"#122F2A",40:"#143C36",50:"#134A42",60:"#12594F",70:"#0D685C",80:"#047769",90:"#308477",100:"#4A9184",110:"#629E93",120:"#78ABA1",130:"#8EB9B0",140:"#A3C6BF",150:"#B9D4CE",160:"#CFE1DD"},te=(0,a.__assign)({},(0,x.a)(re)),ae=(0,a.__assign)({},(0,Q.W)(re)),ne={10:"#020401",20:"#101C0A",30:"#142F10",40:"#163D11",50:"#174C12",60:"#175A12",70:"#156A12",80:"#107C10",90:"#308728",100:"#4B9440",110:"#62A156",120:"#79AE6D",130:"#8EBB84",140:"#A4C89A",150:"#BAD5B2",160:"#CFE2C9"},oe=(0,a.__assign)({},(0,x.a)(ne)),le=(0,a.__assign)({},(0,Q.W)(ne)),ue=function(e,r){switch(e){case"AMC":return function(e){switch(e){case"light":default:return K;case"dark":return O}}(r);case"AMC-on-red":return function(e){switch(e){case"light":default:return R;case"dark":return X}}(r);case"AMC-on-caution-yellow":return function(e){switch(e){case"light":default:return V;case"dark":return Y}}(r);case"XboxTheme":return function(e){switch(e){case"light":default:return oe;case"dark":return le}}(r);case"Family":return function(e){switch(e){case"light":default:return te;case"dark":return ae}}(r);case"FamilyInsights":return function(e){switch(e){case"light":default:return J;case"dark":return Z}}(r);case"Family-On-NeutralLighterAlt":return function(e){switch(e){case"light":default:return $;case"dark":return ee}}(r)}},ie="TwoUIV9Text",ce=function(e){var r=e.variant,t=e.noRootElement,i=e.id,s=e.idPrefix,h=e.mode,m=void 0===h?"light":h,f=e.children,k=t?de:void 0,A=(0,a.__assign)((0,a.__assign)({},H[r]),{defaultFontStyle:B,fonts:D,variant:r}),y=(0,n.useTwoUIFlights)(),L=g().createElement(l.N,{id:i,theme:A,as:k},f),C=g().useMemo((function(){if(null===y||void 0===y?void 0:y.includes(ie))return"AMC"===r||(null===y||void 0===y?void 0:y.includes("TwoUIV9CustomThemes"))?ue(r,m):M(A)}),[r,A,m]);if(null===y||void 0===y?void 0:y.includes(ie)){var F=(0,u.jI)();return g().createElement(l.N,{theme:o.K,as:k},g().createElement(c.LX,{value:s},g().createElement(d.q,{style:{display:"contents"},theme:C,dir:F?"rtl":"ltr"},L)))}return(null===y||void 0===y?void 0:y.includes("Fluentv9Theming"))?g().createElement(l.N,{theme:o.K,as:k},L):L},de=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(r,e),r.prototype.render=function(){return this.props.children},r}(g().Component),se=function(){return(0,i.D)()}}}]);
//# sourceMappingURL=6360.8d6df2f5.chunk.js.map
/*! For license information please see 663.34081d54.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[663],{84502:function(e,r,t){"use strict";var n=t(55791),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},u={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},i={};function c(e){return n.isMemo(e)?a:i[e.$$typeof]||o}i[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[n.Memo]=a;var f=Object.defineProperty,s=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,y=Object.prototype;e.exports=function e(r,t,n){if("string"!==typeof t){if(y){var o=d(t);o&&o!==y&&e(r,o,n)}var a=s(t);p&&(a=a.concat(p(t)));for(var i=c(r),v=c(t),m=0;m<a.length;++m){var b=a[m];if(!u[b]&&(!n||!n[b])&&(!v||!v[b])&&(!i||!i[b])){var h=l(t,b);try{f(r,b,h)}catch(w){}}}}return r}},68074:function(e,r,t){"use strict";var n=t(20441);function o(){}function u(){}u.resetWarningCache=o,e.exports=function(){function e(e,r,t,o,u,a){if(a!==n){var i=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 i.name="Invariant Violation",i}}function r(){return e}e.isRequired=e;var t={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:r,element:e,elementType:e,instanceOf:r,node:e,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:u,resetWarningCache:o};return t.PropTypes=t,t}},15360:function(e,r,t){e.exports=t(68074)()},20441:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},39963:function(e,r){"use strict";var t="function"===typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,u=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,i=t?Symbol.for("react.profiler"):60114,c=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,s=t?Symbol.for("react.async_mode"):60111,p=t?Symbol.for("react.concurrent_mode"):60111,l=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,y=t?Symbol.for("react.suspense_list"):60120,v=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,h=t?Symbol.for("react.fundamental"):60117,w=t?Symbol.for("react.responder"):60118,g=t?Symbol.for("react.scope"):60119;function P(e){if("object"===typeof e&&null!==e){var r=e.$$typeof;switch(r){case n:switch(e=e.type){case s:case p:case u:case i:case a:case d:return e;default:switch(e=e&&e.$$typeof){case f:case l:case m:case v:case c:return e;default:return r}}case o:return r}}}function O(e){return P(e)===p}r.AsyncMode=s,r.ConcurrentMode=p,r.ContextConsumer=f,r.ContextProvider=c,r.Element=n,r.ForwardRef=l,r.Fragment=u,r.Lazy=m,r.Memo=v,r.Portal=o,r.Profiler=i,r.StrictMode=a,r.Suspense=d,r.isAsyncMode=function(e){return O(e)||P(e)===s},r.isConcurrentMode=O,r.isContextConsumer=function(e){return P(e)===f},r.isContextProvider=function(e){return P(e)===c},r.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===n},r.isForwardRef=function(e){return P(e)===l},r.isFragment=function(e){return P(e)===u},r.isLazy=function(e){return P(e)===m},r.isMemo=function(e){return P(e)===v},r.isPortal=function(e){return P(e)===o},r.isProfiler=function(e){return P(e)===i},r.isStrictMode=function(e){return P(e)===a},r.isSuspense=function(e){return P(e)===d},r.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===u||e===p||e===i||e===a||e===d||e===y||"object"===typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===v||e.$$typeof===c||e.$$typeof===f||e.$$typeof===l||e.$$typeof===h||e.$$typeof===w||e.$$typeof===g||e.$$typeof===b)},r.typeOf=P},55791:function(e,r,t){"use strict";e.exports=t(39963)},46548:function(e,r,t){"use strict";t.d(r,{Kq:function(){return p},Ng:function(){return H}});var n=t(80322),o=t.n(n),u=(t(15360),o().createContext(null));var a=function(e){e()},i=function(){return a};var c={notify:function(){},get:function(){return[]}};function f(e,r){var t,n=c;function o(){a.onStateChange&&a.onStateChange()}function u(){t||(t=r?r.addNestedSub(o):e.subscribe(o),n=function(){var e=i(),r=null,t=null;return{clear:function(){r=null,t=null},notify:function(){e((function(){for(var e=r;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=r;t;)e.push(t),t=t.next;return e},subscribe:function(e){var n=!0,o=t={callback:e,next:null,prev:t};return o.prev?o.prev.next=o:r=o,function(){n&&null!==r&&(n=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:r=o.next)}}}}())}var a={addNestedSub:function(e){return u(),n.subscribe(e)},notifyNestedSubs:function(){n.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(t)},trySubscribe:u,tryUnsubscribe:function(){t&&(t(),t=void 0,n.clear(),n=c)},getListeners:function(){return n}};return a}var s="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?n.useLayoutEffect:n.useEffect;var p=function(e){var r=e.store,t=e.context,a=e.children,i=(0,n.useMemo)((function(){var e=f(r);return{store:r,subscription:e}}),[r]),c=(0,n.useMemo)((function(){return r.getState()}),[r]);s((function(){var e=i.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==r.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[i,c]);var p=t||u;return o().createElement(p.Provider,{value:i},a)};function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(this,arguments)}function d(e,r){if(null==e)return{};var t,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)t=u[n],r.indexOf(t)>=0||(o[t]=e[t]);return o}var y=t(84502),v=t.n(y),m=t(82069),b=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],h=["reactReduxForwardedRef"],w=[],g=[null,null];function P(e,r){var t=e[1];return[r.payload,t+1]}function O(e,r,t){s((function(){return e.apply(void 0,r)}),t)}function S(e,r,t,n,o,u,a){e.current=n,r.current=o,t.current=!1,u.current&&(u.current=null,a())}function E(e,r,t,n,o,u,a,i,c,f){if(e){var s=!1,p=null,l=function(){if(!s){var e,t,l=r.getState();try{e=n(l,o.current)}catch(d){t=d,p=d}t||(p=null),e===u.current?a.current||c():(u.current=e,i.current=e,a.current=!0,f({type:"STORE_UPDATED",payload:{error:t}}))}};t.onStateChange=l,t.trySubscribe(),l();return function(){if(s=!0,t.tryUnsubscribe(),t.onStateChange=null,p)throw p}}}var C=function(){return[null,0]};function x(e,r){void 0===r&&(r={});var t=r,a=t.getDisplayName,i=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,c=t.methodName,s=void 0===c?"connectAdvanced":c,p=t.renderCountProp,y=void 0===p?void 0:p,x=t.shouldHandleStateChanges,N=void 0===x||x,T=t.storeKey,M=void 0===T?"store":T,$=(t.withRef,t.forwardRef),_=void 0!==$&&$,j=t.context,R=void 0===j?u:j,k=d(t,b),q=R;return function(r){var t=r.displayName||r.name||"Component",u=i(t),a=l({},k,{getDisplayName:i,methodName:s,renderCountProp:y,shouldHandleStateChanges:N,storeKey:M,displayName:u,wrappedComponentName:t,WrappedComponent:r}),c=k.pure;var p=c?n.useMemo:function(e){return e()};function b(t){var u=(0,n.useMemo)((function(){var e=t.reactReduxForwardedRef,r=d(t,h);return[t.context,e,r]}),[t]),i=u[0],c=u[1],s=u[2],y=(0,n.useMemo)((function(){return i&&i.Consumer&&(0,m.isContextConsumer)(o().createElement(i.Consumer,null))?i:q}),[i,q]),v=(0,n.useContext)(y),b=Boolean(t.store)&&Boolean(t.store.getState)&&Boolean(t.store.dispatch);Boolean(v)&&Boolean(v.store);var x=b?t.store:v.store,T=(0,n.useMemo)((function(){return function(r){return e(r.dispatch,a)}(x)}),[x]),M=(0,n.useMemo)((function(){if(!N)return g;var e=f(x,b?null:v.subscription),r=e.notifyNestedSubs.bind(e);return[e,r]}),[x,b,v]),$=M[0],_=M[1],j=(0,n.useMemo)((function(){return b?v:l({},v,{subscription:$})}),[b,v,$]),R=(0,n.useReducer)(P,w,C),k=R[0][0],D=R[1];if(k&&k.error)throw k.error;var I=(0,n.useRef)(),F=(0,n.useRef)(s),A=(0,n.useRef)(),B=(0,n.useRef)(!1),U=p((function(){return A.current&&s===F.current?A.current:T(x.getState(),s)}),[x,k,s]);O(S,[F,I,B,s,U,A,_]),O(E,[N,x,$,T,F,I,B,A,_,D],[x,$,T]);var W=(0,n.useMemo)((function(){return o().createElement(r,l({},U,{ref:c}))}),[c,r,U]);return(0,n.useMemo)((function(){return N?o().createElement(y.Provider,{value:j},W):W}),[y,W,j])}var x=c?o().memo(b):b;if(x.WrappedComponent=r,x.displayName=b.displayName=u,_){var T=o().forwardRef((function(e,r){return o().createElement(x,l({},e,{reactReduxForwardedRef:r}))}));return T.displayName=u,T.WrappedComponent=r,v()(T,r)}return v()(x,r)}}function N(e,r){return e===r?0!==e||0!==r||1/e===1/r:e!==e&&r!==r}function T(e,r){if(N(e,r))return!0;if("object"!==typeof e||null===e||"object"!==typeof r||null===r)return!1;var t=Object.keys(e),n=Object.keys(r);if(t.length!==n.length)return!1;for(var o=0;o<t.length;o++)if(!Object.prototype.hasOwnProperty.call(r,t[o])||!N(e[t[o]],r[t[o]]))return!1;return!0}function M(e){return function(r,t){var n=e(r,t);function o(){return n}return o.dependsOnOwnProps=!1,o}}function $(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function _(e,r){return function(r,t){t.displayName;var n=function(e,r){return n.dependsOnOwnProps?n.mapToProps(e,r):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(r,t){n.mapToProps=e,n.dependsOnOwnProps=$(e);var o=n(r,t);return"function"===typeof o&&(n.mapToProps=o,n.dependsOnOwnProps=$(o),o=n(r,t)),o},n}}var j=[function(e){return"function"===typeof e?_(e):void 0},function(e){return e?void 0:M((function(e){return{dispatch:e}}))},function(e){return e&&"object"===typeof e?M((function(r){return function(e,r){var t={},n=function(n){var o=e[n];"function"===typeof o&&(t[n]=function(){return r(o.apply(void 0,arguments))})};for(var o in e)n(o);return t}(e,r)})):void 0}];var R=[function(e){return"function"===typeof e?_(e):void 0},function(e){return e?void 0:M((function(){return{}}))}];function k(e,r,t){return l({},t,e,r)}var q=[function(e){return"function"===typeof e?function(e){return function(r,t){t.displayName;var n,o=t.pure,u=t.areMergedPropsEqual,a=!1;return function(r,t,i){var c=e(r,t,i);return a?o&&u(c,n)||(n=c):(a=!0,n=c),n}}}(e):void 0},function(e){return e?void 0:function(){return k}}],D=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function I(e,r,t,n){return function(o,u){return t(e(o,u),r(n,u),u)}}function F(e,r,t,n,o){var u,a,i,c,f,s=o.areStatesEqual,p=o.areOwnPropsEqual,l=o.areStatePropsEqual,d=!1;function y(o,d){var y=!p(d,a),v=!s(o,u);return u=o,a=d,y&&v?(i=e(u,a),r.dependsOnOwnProps&&(c=r(n,a)),f=t(i,c,a)):y?(e.dependsOnOwnProps&&(i=e(u,a)),r.dependsOnOwnProps&&(c=r(n,a)),f=t(i,c,a)):v?function(){var r=e(u,a),n=!l(r,i);return i=r,n&&(f=t(i,c,a)),f}():f}return function(o,s){return d?y(o,s):(i=e(u=o,a=s),c=r(n,a),f=t(i,c,a),d=!0,f)}}function A(e,r){var t=r.initMapStateToProps,n=r.initMapDispatchToProps,o=r.initMergeProps,u=d(r,D),a=t(e,u),i=n(e,u),c=o(e,u);return(u.pure?F:I)(a,i,c,e,u)}var B=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function U(e,r,t){for(var n=r.length-1;n>=0;n--){var o=r[n](e);if(o)return o}return function(r,n){throw new Error("Invalid value of type "+typeof e+" for "+t+" argument when connecting component "+n.wrappedComponentName+".")}}function W(e,r){return e===r}function L(e){var r=void 0===e?{}:e,t=r.connectHOC,n=void 0===t?x:t,o=r.mapStateToPropsFactories,u=void 0===o?R:o,a=r.mapDispatchToPropsFactories,i=void 0===a?j:a,c=r.mergePropsFactories,f=void 0===c?q:c,s=r.selectorFactory,p=void 0===s?A:s;return function(e,r,t,o){void 0===o&&(o={});var a=o,c=a.pure,s=void 0===c||c,y=a.areStatesEqual,v=void 0===y?W:y,m=a.areOwnPropsEqual,b=void 0===m?T:m,h=a.areStatePropsEqual,w=void 0===h?T:h,g=a.areMergedPropsEqual,P=void 0===g?T:g,O=d(a,B),S=U(e,u,"mapStateToProps"),E=U(r,i,"mapDispatchToProps"),C=U(t,f,"mergeProps");return n(p,l({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:S,initMapDispatchToProps:E,initMergeProps:C,pure:s,areStatesEqual:v,areOwnPropsEqual:b,areStatePropsEqual:w,areMergedPropsEqual:P},O))}}var H=L();var K,z=t(94786);K=z.unstable_batchedUpdates,a=K},13049:function(e,r){"use strict";var t=60103,n=60106,o=60107,u=60108,a=60114,i=60109,c=60110,f=60112,s=60113,p=60120,l=60115,d=60116,y=60121,v=60122,m=60117,b=60129,h=60131;if("function"===typeof Symbol&&Symbol.for){var w=Symbol.for;t=w("react.element"),n=w("react.portal"),o=w("react.fragment"),u=w("react.strict_mode"),a=w("react.profiler"),i=w("react.provider"),c=w("react.context"),f=w("react.forward_ref"),s=w("react.suspense"),p=w("react.suspense_list"),l=w("react.memo"),d=w("react.lazy"),y=w("react.block"),v=w("react.server.block"),m=w("react.fundamental"),b=w("react.debug_trace_mode"),h=w("react.legacy_hidden")}function g(e){if("object"===typeof e&&null!==e){var r=e.$$typeof;switch(r){case t:switch(e=e.type){case o:case a:case u:case s:case p:return e;default:switch(e=e&&e.$$typeof){case c:case f:case d:case l:case i:return e;default:return r}}case n:return r}}}r.isContextConsumer=function(e){return g(e)===c}},82069:function(e,r,t){"use strict";e.exports=t(13049)},97012:function(e,r,t){"use strict";function n(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. "}t.d(r,{HY:function(){return f},Zz:function(){return s},y$:function(){return c}});var o="function"===typeof Symbol&&Symbol.observable||"@@observable",u=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function i(e){if("object"!==typeof e||null===e)return!1;for(var r=e;null!==Object.getPrototypeOf(r);)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r}function c(e,r,t){var u;if("function"===typeof r&&"function"===typeof t||"function"===typeof t&&"function"===typeof arguments[3])throw new Error(n(0));if("function"===typeof r&&"undefined"===typeof t&&(t=r,r=void 0),"undefined"!==typeof t){if("function"!==typeof t)throw new Error(n(1));return t(c)(e,r)}if("function"!==typeof e)throw new Error(n(2));var f=e,s=r,p=[],l=p,d=!1;function y(){l===p&&(l=p.slice())}function v(){if(d)throw new Error(n(3));return s}function m(e){if("function"!==typeof e)throw new Error(n(4));if(d)throw new Error(n(5));var r=!0;return y(),l.push(e),function(){if(r){if(d)throw new Error(n(6));r=!1,y();var t=l.indexOf(e);l.splice(t,1),p=null}}}function b(e){if(!i(e))throw new Error(n(7));if("undefined"===typeof e.type)throw new Error(n(8));if(d)throw new Error(n(9));try{d=!0,s=f(s,e)}finally{d=!1}for(var r=p=l,t=0;t<r.length;t++){(0,r[t])()}return e}function h(e){if("function"!==typeof e)throw new Error(n(10));f=e,b({type:a.REPLACE})}function w(){var e,r=m;return(e={subscribe:function(e){if("object"!==typeof e||null===e)throw new Error(n(11));function t(){e.next&&e.next(v())}return t(),{unsubscribe:r(t)}}})[o]=function(){return this},e}return b({type:a.INIT}),(u={dispatch:b,subscribe:m,getState:v,replaceReducer:h})[o]=w,u}function f(e){for(var r=Object.keys(e),t={},o=0;o<r.length;o++){var u=r[o];0,"function"===typeof e[u]&&(t[u]=e[u])}var i,c=Object.keys(t);try{!function(e){Object.keys(e).forEach((function(r){var t=e[r];if("undefined"===typeof t(void 0,{type:a.INIT}))throw new Error(n(12));if("undefined"===typeof t(void 0,{type:a.PROBE_UNKNOWN_ACTION()}))throw new Error(n(13))}))}(t)}catch(f){i=f}return function(e,r){if(void 0===e&&(e={}),i)throw i;for(var o=!1,u={},a=0;a<c.length;a++){var f=c[a],s=t[f],p=e[f],l=s(p,r);if("undefined"===typeof l){r&&r.type;throw new Error(n(14))}u[f]=l,o=o||l!==p}return(o=o||c.length!==Object.keys(e).length)?u:e}}function s(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return 0===r.length?function(e){return e}:1===r.length?r[0]:r.reduce((function(e,r){return function(){return e(r.apply(void 0,arguments))}}))}}}]);
//# sourceMappingURL=663.34081d54.chunk.js.map
/*! For license information please see 6848.3b7c54b3.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[6848],{46848: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,i){"use strict";var o=[],a=Object.getPrototypeOf,s=o.slice,u=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},l=o.push,c=o.indexOf,f={},p=f.toString,d=f.hasOwnProperty,h=d.toString,g=h.call(Object),v={},y=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},m=function(e){return null!=e&&e===e.window},x=r.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||x).createElement("script");if(o.text=e,t)for(r in b)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function T(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?f[p.call(e)]||"object":typeof e}var C="3.6.3",S=function e(t,n){return new e.fn.init(t,n)};function E(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!y(e)&&!m(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}S.fn=S.prototype={jquery:C,constructor:S,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=S.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return S.each(this,e)},map:function(e){return this.pushStack(S.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(S.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(S.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:o.sort,splice:o.splice},S.extend=S.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"===typeof a&&(l=a,a=arguments[s]||{},s++),"object"===typeof a||y(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(S.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||S.isPlainObject(n)?n:{},i=!1,a[t]=S.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},S.extend({expando:"jQuery"+(C+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=d.call(t,"constructor")&&t.constructor)&&h.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(E(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&&(E(Object(e))?S.merge(n,"string"===typeof e?[e]:e):l.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(E(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return u(a)},guid:1,support:v}),"function"===typeof Symbol&&(S.fn[Symbol.iterator]=o[Symbol.iterator]),S.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){f["[object "+t+"]"]=t.toLowerCase()}));var k=function(e){var t,n,r,i,o,a,s,u,l,c,f,p,d,h,g,v,y,m,x,b="sizzle"+1*new Date,w=e.document,T=0,C=0,S=ue(),E=ue(),k=ue(),A=ue(),N=function(e,t){return e===t&&(f=!0),0},j={}.hasOwnProperty,D=[],q=D.pop,L=D.push,H=D.push,O=D.slice,P=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},R="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",I="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",W="\\[[\\x20\\t\\r\\n\\f]*("+I+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+I+"))|)"+M+"*\\]",F=":("+I+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",$=new RegExp(M+"+","g"),B=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),_=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),z=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),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("^(?:"+R+")$","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")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\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,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){p()},ae=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{H.apply(D=O.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(Ee){H={apply:D.length?function(e,t){L.apply(e,O.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,i){var o,s,l,c,f,h,y,m=t&&t.ownerDocument,w=t?t.nodeType:9;if(r=r||[],"string"!==typeof e||!e||1!==w&&9!==w&&11!==w)return r;if(!i&&(p(t),t=t||d,g)){if(11!==w&&(f=Z.exec(e)))if(o=f[1]){if(9===w){if(!(l=t.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(m&&(l=m.getElementById(o))&&x(t,l)&&l.id===o)return r.push(l),r}else{if(f[2])return H.apply(r,t.getElementsByTagName(e)),r;if((o=f[3])&&n.getElementsByClassName&&t.getElementsByClassName)return H.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!A[e+" "]&&(!v||!v.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(y=e,m=t,1===w&&(U.test(e)||z.test(e))){for((m=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((c=t.getAttribute("id"))?c=c.replace(re,ie):t.setAttribute("id",c=b)),s=(h=a(e)).length;s--;)h[s]=(c?"#"+c:":scope")+" "+xe(h[s]);y=h.join(",")}try{if(n.cssSupportsSelector&&!CSS.supports("selector(:is("+y+"))"))throw new Error;return H.apply(r,m.querySelectorAll(y)),r}catch(T){A(e,!0)}finally{c===b&&t.removeAttribute("id")}}}return u(e.replace(B,"$1"),t,r,i)}function ue(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function le(e){return e[b]=!0,e}function ce(e){var t=d.createElement("fieldset");try{return!!e(t)}catch(Ee){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=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 de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(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 ve(e){return le((function(t){return t=+t,le((function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))}))}))}function ye(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}for(t in n=se.support={},o=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},p=se.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:w;return a!=d&&9===a.nodeType&&a.documentElement?(h=(d=a).documentElement,g=!o(d),w!=d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",oe,!1):i.attachEvent&&i.attachEvent("onunload",oe)),n.scope=ce((function(e){return h.appendChild(e).appendChild(d.createElement("div")),"undefined"!==typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.cssSupportsSelector=ce((function(){return CSS.supports("selector(*)")&&d.querySelectorAll(":is(:jqfake)")&&!CSS.supports("selector(:is(*,:jqfake))")})),n.attributes=ce((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ce((function(e){return e.appendChild(d.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=K.test(d.getElementsByClassName),n.getById=ce((function(e){return h.appendChild(e).id=b,!d.getElementsByName||!d.getElementsByName(b).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&&g){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&&g){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}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=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if("undefined"!==typeof t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],v=[],(n.qsa=K.test(d.querySelectorAll))&&(ce((function(e){var t;h.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+R+")"),e.querySelectorAll("[id~="+b+"-]").length||v.push("~="),(t=d.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")})),ce((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=d.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")}))),(n.matchesSelector=K.test(m=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ce((function(e){n.disconnectedMatch=m.call(e,"*"),m.call(e,"[s!='']:x"),y.push("!=",F)})),n.cssSupportsSelector||v.push(":has"),v=v.length&&new RegExp(v.join("|")),y=y.length&&new RegExp(y.join("|")),t=K.test(h.compareDocumentPosition),x=t||K.test(h.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},N=t?function(e,t){if(e===t)return f=!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==d||e.ownerDocument==w&&x(w,e)?-1:t==d||t.ownerDocument==w&&x(w,t)?1:c?P(c,e)-P(c,t):0:4&r?-1:1)}:function(e,t){if(e===t)return f=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==d?-1:t==d?1:i?-1:o?1:c?P(c,e)-P(c,t):0;if(i===o)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]==w?-1:s[r]==w?1:0},d):d},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(p(e),n.matchesSelector&&g&&!A[t+" "]&&(!y||!y.test(t))&&(!v||!v.test(t)))try{var r=m.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(Ee){A(t,!0)}return se(t,d,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=d&&p(e),x(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=d&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&j.call(r.attrHandle,t.toLowerCase())?i(e,t,!g):void 0;return void 0!==o?o:n.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},se.escape=function(e){return(e+"").replace(re,ie)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(N),f){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return c=null,e},i=se.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"===typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},r=se.selectors={cacheLength:50,createPseudo:le,match:G,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 G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.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=S[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+M+"|$)"))&&S(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 i=se.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace($," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,u){var l,c,f,p,d,h,g=o!==a?"nextSibling":"previousSibling",v=t.parentNode,y=s&&t.nodeName.toLowerCase(),m=!u&&!s,x=!1;if(v){if(o){for(;g;){for(p=t;p=p[g];)if(s?p.nodeName.toLowerCase()===y:1===p.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?v.firstChild:v.lastChild],a&&m){for(x=(d=(l=(c=(f=(p=v)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1])&&l[2],p=d&&v.childNodes[d];p=++d&&p&&p[g]||(x=d=0)||h.pop();)if(1===p.nodeType&&++x&&p===t){c[e]=[T,d,x];break}}else if(m&&(x=d=(l=(c=(f=(p=t)[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]||[])[0]===T&&l[1]),!1===x)for(;(p=++d&&p&&p[g]||(x=d=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==y:1!==p.nodeType)||!++x||(m&&((c=(f=p[b]||(p[b]={}))[p.uniqueID]||(f[p.uniqueID]={}))[e]=[T,x]),p!==t)););return(x-=i)===r||x%r===0&&x/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return i[b]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?le((function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=P(e,o[a])]=!(n[r]=o[a])})):function(e){return i(e,0,n)}):i}},pseudos:{not:le((function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[b]?le((function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,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||i(t)).indexOf(e)>-1}})),lang:le((function(e){return V.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?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===h},focus:function(e){return e===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!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 J.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ve((function(){return[0]})),last:ve((function(e,t){return[t-1]})),eq:ve((function(e,t,n){return[n<0?n+t:n]})),even:ve((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:ve((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:ve((function(e,t,n){for(var r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:ve((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]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=he(t);function me(){}function xe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function be(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=C++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,u){var l,c,f,p=[T,s];if(u){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,u))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(c=(f=t[b]||(t[b]={}))[t.uniqueID]||(f[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((l=c[o])&&l[0]===T&&l[1]===s)return p[2]=l[2];if(c[o]=p,p[2]=e(t,n,u))return!0}return!1}}function we(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function Te(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function Ce(e,t,n,r,i,o){return r&&!r[b]&&(r=Ce(r)),i&&!i[b]&&(i=Ce(i,o)),le((function(o,a,s,u){var l,c,f,p=[],d=[],h=a.length,g=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)se(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),v=!e||!o&&t?g:Te(g,p,e,s,u),y=n?i||(o?e:h||r)?[]:a:v;if(n&&n(v,y,s,u),r)for(l=Te(y,d),r(l,[],s,u),c=l.length;c--;)(f=l[c])&&(y[d[c]]=!(v[d[c]]=f));if(o){if(i||e){if(i){for(l=[],c=y.length;c--;)(f=y[c])&&l.push(v[c]=f);i(null,y=[],l,u)}for(c=y.length;c--;)(f=y[c])&&(l=i?P(o,f):p[c])>-1&&(o[l]=!(a[l]=f))}}else y=Te(y===a?y.splice(h,y.length):y),i?i(null,a,y,u):H.apply(a,y)}))}function Se(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],u=a?1:0,c=be((function(e){return e===t}),s,!0),f=be((function(e){return P(t,e)>-1}),s,!0),p=[function(e,n,r){var i=!a&&(r||n!==l)||((t=n).nodeType?c(e,n,r):f(e,n,r));return t=null,i}];u<o;u++)if(n=r.relative[e[u].type])p=[be(we(p),n)];else{if((n=r.filter[e[u].type].apply(null,e[u].matches))[b]){for(i=++u;i<o&&!r.relative[e[i].type];i++);return Ce(u>1&&we(p),u>1&&xe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(B,"$1"),n,u<i&&Se(e.slice(u,i)),i<o&&Se(e=e.slice(i)),i<o&&xe(e))}p.push(n)}return we(p)}return me.prototype=r.filters=r.pseudos,r.setFilters=new me,a=se.tokenize=function(e,t){var n,i,o,a,s,u,l,c=E[e+" "];if(c)return t?0:c.slice(0);for(s=e,u=[],l=r.preFilter;s;){for(a in n&&!(i=_.exec(s))||(i&&(s=s.slice(i[0].length)||s),u.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length)),r.filter)!(i=G[a].exec(s))||l[a]&&!(i=l[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):E(e,u).slice(0)},s=se.compile=function(e,t){var n,i=[],o=[],s=k[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Se(t[n]))[b]?i.push(s):o.push(s);s=k(e,function(e,t){var n=t.length>0,i=e.length>0,o=function(o,a,s,u,c){var f,h,v,y=0,m="0",x=o&&[],b=[],w=l,C=o||i&&r.find.TAG("*",c),S=T+=null==w?1:Math.random()||.1,E=C.length;for(c&&(l=a==d||a||c);m!==E&&null!=(f=C[m]);m++){if(i&&f){for(h=0,a||f.ownerDocument==d||(p(f),s=!g);v=e[h++];)if(v(f,a||d,s)){u.push(f);break}c&&(T=S)}n&&((f=!v&&f)&&y--,o&&x.push(f))}if(y+=m,n&&m!==y){for(h=0;v=t[h++];)v(x,b,a,s);if(o){if(y>0)for(;m--;)x[m]||b[m]||(b[m]=q.call(u));b=Te(b)}H.apply(u,b),c&&!o&&b.length>0&&y+t.length>1&&se.uniqueSort(u)}return c&&(T=S,l=w),x};return n?le(o):o}(o,i)),s.selector=e}return s},u=se.select=function(e,t,n,i){var o,u,l,c,f,p="function"===typeof e&&e,d=!i&&a(e=p.selector||e);if(n=n||[],1===d.length){if((u=d[0]=d[0].slice(0)).length>2&&"ID"===(l=u[0]).type&&9===t.nodeType&&g&&r.relative[u[1].type]){if(!(t=(r.find.ID(l.matches[0].replace(te,ne),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(u.shift().value.length)}for(o=G.needsContext.test(e)?0:u.length;o--&&(l=u[o],!r.relative[c=l.type]);)if((f=r.find[c])&&(i=f(l.matches[0].replace(te,ne),ee.test(u[0].type)&&ye(t.parentNode)||t))){if(u.splice(o,1),!(e=i.length&&xe(u)))return H.apply(n,i),n;break}}return(p||s(e,d))(i,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=b.split("").sort(N).join("")===b,n.detectDuplicates=!!f,p(),n.sortDetached=ce((function(e){return 1&e.compareDocumentPosition(d.createElement("fieldset"))})),ce((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||fe("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ce((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||fe("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ce((function(e){return null==e.getAttribute("disabled")}))||fe(R,(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);S.find=k,(S.expr=k.selectors)[":"]=S.expr.pseudos,S.uniqueSort=S.unique=k.uniqueSort,S.text=k.getText,S.isXMLDoc=k.isXML,S.contains=k.contains,S.escapeSelector=k.escape;var A=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&S(e).is(n))break;r.push(e)}return r},N=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},j=S.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var q=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function L(e,t,n){return y(t)?S.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?S.grep(e,(function(e){return e===t!==n})):"string"!==typeof t?S.grep(e,(function(e){return c.call(t,e)>-1!==n})):S.filter(t,e,n)}S.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?S.find.matchesSelector(r,e)?[r]:[]:S.find.matches(e,S.grep(t,(function(e){return 1===e.nodeType})))},S.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!==typeof e)return this.pushStack(S(e).filter((function(){for(t=0;t<r;t++)if(S.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)S.find(e,i[t],n);return r>1?S.uniqueSort(n):n},filter:function(e){return this.pushStack(L(this,e||[],!1))},not:function(e){return this.pushStack(L(this,e||[],!0))},is:function(e){return!!L(this,"string"===typeof e&&j.test(e)?S(e):e||[],!1).length}});var H,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||H,"string"===typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:O.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 S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:x,!0)),q.test(r[1])&&S.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=x.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,H=S(x);var P=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(S.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!==typeof e&&S(e);if(!j.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&S.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?S.uniqueSort(o):o)},index:function(e){return e?"string"===typeof e?c.call(S(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(S.uniqueSort(S.merge(this.get(),S(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),S.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return M(e,"nextSibling")},prev:function(e){return M(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return N((e.parentNode||{}).firstChild,e)},children:function(e){return N(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),S.merge([],e.childNodes))}},(function(e,t){S.fn[e]=function(n,r){var i=S.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(i=S.filter(r,i)),this.length>1&&(R[e]||S.uniqueSort(i),P.test(e)&&i.reverse()),this.pushStack(i)}}));var I=/[^\x20\t\r\n\f]+/g;function W(e){return e}function F(e){throw e}function $(e,t,n,r){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(n):e&&y(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}S.Callbacks=function(e){e="string"===typeof e?function(e){var t={};return S.each(e.match(I)||[],(function(e,n){t[n]=!0})),t}(e):S.extend({},e);var t,n,r,i,o=[],a=[],s=-1,u=function(){for(i=i||e.once,r=t=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},l={add:function(){return o&&(n&&!t&&(s=o.length-1,a.push(n)),function t(n){S.each(n,(function(n,r){y(r)?e.unique&&l.has(r)||o.push(r):r&&r.length&&"string"!==T(r)&&t(r)}))}(arguments),n&&!t&&u()),this},remove:function(){return S.each(arguments,(function(e,t){for(var n;(n=S.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--})),this},has:function(e){return e?S.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},S.extend({Deferred:function(e){var t=[["notify","progress",S.Callbacks("memory"),S.Callbacks("memory"),2],["resolve","done",S.Callbacks("once memory"),S.Callbacks("once memory"),0,"resolved"],["reject","fail",S.Callbacks("once memory"),S.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return S.Deferred((function(n){S.each(t,(function(t,r){var i=y(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function a(e,t,n,i){return function(){var s=this,u=arguments,l=function(){var r,l;if(!(e<o)){if((r=n.apply(s,u))===t.promise())throw new TypeError("Thenable self-resolution");l=r&&("object"===typeof r||"function"===typeof r)&&r.then,y(l)?i?l.call(r,a(o,t,W,i),a(o,t,F,i)):(o++,l.call(r,a(o,t,W,i),a(o,t,F,i),a(o,t,W,t.notifyWith))):(n!==W&&(s=void 0,u=[r]),(i||t.resolveWith)(s,u))}},c=i?l:function(){try{l()}catch(r){S.Deferred.exceptionHook&&S.Deferred.exceptionHook(r,c.stackTrace),e+1>=o&&(n!==F&&(s=void 0,u=[r]),t.rejectWith(s,u))}};e?c():(S.Deferred.getStackHook&&(c.stackTrace=S.Deferred.getStackHook()),r.setTimeout(c))}}return S.Deferred((function(r){t[0][3].add(a(0,r,y(i)?i:W,r.notifyWith)),t[1][3].add(a(0,r,y(e)?e:W)),t[2][3].add(a(0,r,y(n)?n:F))})).promise()},promise:function(e){return null!=e?S.extend(e,i):i}},o={};return S.each(t,(function(e,r){var a=r[2],s=r[5];i[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),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=a.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=s.call(arguments),o=S.Deferred(),a=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&($(e,o.done(a(n)).resolve,o.reject,!t),"pending"===o.state()||y(i[n]&&i[n].then)))return o.then();for(;n--;)$(i[n],a(n),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;S.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&B.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},S.readyException=function(e){r.setTimeout((function(){throw e}))};var _=S.Deferred();function z(){x.removeEventListener("DOMContentLoaded",z),r.removeEventListener("load",z),S.ready()}S.fn.ready=function(e){return _.then(e).catch((function(e){S.readyException(e)})),this},S.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--S.readyWait:S.isReady)||(S.isReady=!0,!0!==e&&--S.readyWait>0||_.resolveWith(x,[S]))}}),S.ready.then=_.then,"complete"===x.readyState||"loading"!==x.readyState&&!x.documentElement.doScroll?r.setTimeout(S.ready):(x.addEventListener("DOMContentLoaded",z),r.addEventListener("load",z));var U=function e(t,n,r,i,o,a,s){var u=0,l=t.length,c=null==r;if("object"===T(r))for(u in o=!0,r)e(t,n,u,r[u],!0,a,s);else if(void 0!==i&&(o=!0,y(i)||(s=!0),c&&(s?(n.call(t,i),n=null):(c=n,n=function(e,t,n){return c.call(S(e),n)})),n))for(;u<l;u++)n(t[u],r,s?i:i.call(t[u],u,n(t[u],r)));return o?t:c?n.call(t):l?n(t[0],r):a},X=/^-ms-/,V=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function Y(e){return e.replace(X,"ms-").replace(V,G)}var Q=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function J(){this.expando=S.expando+J.uid++}J.uid=1,J.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Q(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"===typeof t)i[Y(t)]=n;else for(r in t)i[Y(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][Y(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(Y):(t=Y(t))in r?[t]:t.match(I)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||S.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&&!S.isEmptyObject(t)}};var K=new J,Z=new J,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(i){}Z.set(e,t,n)}else n=void 0;return n}S.extend({hasData:function(e){return Z.hasData(e)||K.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return K.access(e,t,n)},_removeData:function(e,t){K.remove(e,t)}}),S.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Z.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=Y(r.slice(5)),ne(o,r,i[r]));K.set(o,"hasDataAttrs",!0)}return i}return"object"===typeof e?this.each((function(){Z.set(this,e)})):U(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=Z.get(o,e))||void 0!==(n=ne(o,e))?n:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),S.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=K.get(e,t),n&&(!r||Array.isArray(n)?r=K.access(e,t,S.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){var n=S.queue(e,t=t||"fx"),r=n.length,i=n.shift(),o=S._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){S.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return K.get(e,n)||K.access(e,n,{empty:S.Callbacks("once memory").add((function(){K.remove(e,[t+"queue",n])}))})}}),S.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?S.queue(this[0],e):void 0===t?this:this.each((function(){var n=S.queue(this,e,t);S._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&S.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){S.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=S.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!==typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=K.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var re=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ie=new RegExp("^(?:([+-])=|)("+re+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],ae=x.documentElement,se=function(e){return S.contains(e.ownerDocument,e)},ue={composed:!0};ae.getRootNode&&(se=function(e){return S.contains(e.ownerDocument,e)||e.getRootNode(ue)===e.ownerDocument});var le=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===S.css(e,"display")};function ce(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return S.css(e,t,"")},u=s(),l=n&&n[3]||(S.cssNumber[t]?"":"px"),c=e.nodeType&&(S.cssNumber[t]||"px"!==l&&+u)&&ie.exec(S.css(e,t));if(c&&c[3]!==l){for(u/=2,l=l||c[3],c=+u||1;a--;)S.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;S.style(e,t,(c*=2)+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var fe={};function pe(e){var t,n=e.ownerDocument,r=e.nodeName,i=fe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=S.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),fe[r]=i,i)}function de(e,t){for(var n,r,i=[],o=0,a=e.length;o<a;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=K.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&le(r)&&(i[o]=pe(r))):"none"!==n&&(i[o]="none",K.set(r,"display",n)));for(o=0;o<a;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}S.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each((function(){le(this)?S(this).show():S(this).hide()}))}});var he=/^(?:checkbox|radio)$/i,ge=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,ve=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=x.createDocumentFragment().appendChild(x.createElement("div")),t=x.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),v.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",v.option=!!e.lastChild}();var ye={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 me(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?S.merge([e],n):n}function xe(e,t){for(var n=0,r=e.length;n<r;n++)K.set(e[n],"globalEval",!t||K.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,v.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var be=/<|&#?\w+;/;function we(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===T(o))S.merge(p,o.nodeType?[o]:o);else if(be.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(ge.exec(o)||["",""])[1].toLowerCase(),u=ye[s]||ye._default,a.innerHTML=u[1]+S.htmlPrefilter(o)+u[2],c=u[0];c--;)a=a.lastChild;S.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));for(f.textContent="",d=0;o=p[d++];)if(r&&S.inArray(o,r)>-1)i&&i.push(o);else if(l=se(o),a=me(f.appendChild(o),"script"),l&&xe(a),n)for(c=0;o=a[c++];)ve.test(o.type||"")&&n.push(o);return f}var Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Se(){return!1}function Ee(e,t){return e===function(){try{return x.activeElement}catch(e){}}()===("focus"===t)}function ke(e,t,n,r,i,o){var a,s;if("object"===typeof t){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)ke(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"===typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=Se;else if(!i)return e;return 1===o&&(a=i,i=function(e){return S().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=S.guid++)),e.each((function(){S.event.add(this,t,i,r,n)}))}function Ae(e,t,n){n?(K.set(e,t,!1),S.event.add(e,t,{namespace:!1,handler:function(e){var r,i,o=K.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(S.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=s.call(arguments),K.set(this,t,o),r=n(this,t),this[t](),o!==(i=K.get(this,t))||r?K.set(this,t,!1):i={},o!==i)return e.stopImmediatePropagation(),e.preventDefault(),i&&i.value}else o.length&&(K.set(this,t,{value:S.event.trigger(S.extend(o[0],S.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===K.get(e,t)&&S.event.add(e,t,Ce)}S.event={global:{},add:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=K.get(e);if(Q(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&S.find.matchesSelector(ae,i),n.guid||(n.guid=S.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(t){return S.event.triggered!==t.type?S.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(I)||[""]).length;l--;)d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=S.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=S.event.special[d]||{},c=S.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&S.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(d,a)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),S.event.global[d]=!0)},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=K.hasData(e)&&K.get(e);if(v&&(u=v.events)){for(l=(t=(t||"").match(I)||[""]).length;l--;)if(d=g=(s=Te.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){for(f=S.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||S.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)S.event.remove(e,d+t[l],n,r,!0);S.isEmptyObject(u)&&K.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=S.event.fix(e),l=(K.get(this,"events")||Object.create(null))[u.type]||[],c=S.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){for(a=S.event.handlers.call(this,u,l),t=0;(i=a[t++])&&!u.isPropagationStopped();)for(u.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!u.isImmediatePropagationStopped();)u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((S.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&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(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?S(i,this).index(l)>-1:S.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(e,t){Object.defineProperty(S.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(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[S.expando]?e:new S.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return he.test(t.type)&&t.click&&D(t,"input")&&Ae(t,"click",Ce),!1},trigger:function(e){var t=this||e;return he.test(t.type)&&t.click&&D(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return he.test(t.type)&&t.click&&D(t,"input")&&K.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},S.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},(S.Event=function(e,t){if(!(this instanceof S.Event))return new S.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Se,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&&S.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[S.expando]=!0}).prototype={constructor:S.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},S.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},S.event.addProp),S.each({focus:"focusin",blur:"focusout"},(function(e,t){S.event.special[e]={setup:function(){return Ae(this,e,Ee),!1},trigger:function(){return Ae(this,e),!0},_default:function(t){return K.get(t.target,e)},delegateType:t}})),S.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){S.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,o=e.handleObj;return i&&(i===r||S.contains(r,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),S.fn.extend({on:function(e,t,n,r){return ke(this,e,t,n,r)},one:function(e,t,n,r){return ke(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,S(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Se),this.each((function(){S.event.remove(this,e,n,t)}))}});var Ne=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function qe(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(K.hasData(e)&&(s=K.get(e).events))for(i in K.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)S.event.add(t,i,s[i][n]);Z.hasData(e)&&(o=Z.access(e),a=S.extend({},o),Z.set(t,a))}}function Pe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&he.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Re(e,t,n,r){t=u(t);var i,o,a,s,l,c,f=0,p=e.length,d=p-1,h=t[0],g=y(h);if(g||p>1&&"string"===typeof h&&!v.checkClone&&je.test(h))return e.each((function(i){var o=e.eq(i);g&&(t[0]=h.call(this,i,o.html())),Re(o,t,n,r)}));if(p&&(o=(i=we(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=S.map(me(i,"script"),Le)).length;f<p;f++)l=i,f!==d&&(l=S.clone(l,!0,!0),s&&S.merge(a,me(l,"script"))),n.call(e[f],l,f);if(s)for(c=a[a.length-1].ownerDocument,S.map(a,He),f=0;f<s;f++)l=a[f],ve.test(l.type||"")&&!K.access(l,"globalEval")&&S.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?S._evalUrl&&!l.noModule&&S._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):w(l.textContent.replace(De,""),l,c))}return e}function Me(e,t,n){for(var r,i=t?S.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||S.cleanData(me(r)),r.parentNode&&(n&&se(r)&&xe(me(r,"script")),r.parentNode.removeChild(r));return e}S.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s=e.cloneNode(!0),u=se(e);if(!v.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!S.isXMLDoc(e))for(a=me(s),r=0,i=(o=me(e)).length;r<i;r++)Pe(o[r],a[r]);if(t)if(n)for(o=o||me(e),a=a||me(s),r=0,i=o.length;r<i;r++)Oe(o[r],a[r]);else Oe(e,s);return(a=me(s,"script")).length>0&&xe(a,!u&&me(e,"script")),s},cleanData:function(e){for(var t,n,r,i=S.event.special,o=0;void 0!==(n=e[o]);o++)if(Q(n)){if(t=n[K.expando]){if(t.events)for(r in t.events)i[r]?S.event.remove(n,r):S.removeEvent(n,r,t.handle);n[K.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),S.fn.extend({detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return U(this,(function(e){return void 0===e?S.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 Re(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)}))},prepend:function(){return Re(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Re(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Re(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&&(S.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return S.clone(this,e,t)}))},html:function(e){return U(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&&!Ne.test(e)&&!ye[(ge.exec(e)||["",""])[1].toLowerCase()]){e=S.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(S.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,(function(t){var n=this.parentNode;S.inArray(this,e)<0&&(S.cleanData(me(this)),n&&n.replaceChild(t,this))}),e)}}),S.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){S.fn[e]=function(e){for(var n,r=[],i=S(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),S(i[a])[t](n),l.apply(r,n.get());return this.pushStack(r)}}));var Ie=new RegExp("^("+re+")(?!px)[a-z%]+$","i"),We=/^--/,Fe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},$e=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Be=new RegExp(oe.join("|"),"i"),_e=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g");function ze(e,t,n){var r,i,o,a,s=We.test(t),u=e.style;return(n=n||Fe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(_e,"$1")||void 0),""!==a||se(e)||(a=S.style(e,t)),!v.pixelBoxStyles()&&Ie.test(a)&&Be.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ue(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){l.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.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(c);var e=r.getComputedStyle(c);n="1%"!==e.top,u=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),ae.removeChild(l),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,a,s,u,l=x.createElement("div"),c=x.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,S.extend(v,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),u},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==s&&(e=x.createElement("table"),t=x.createElement("tr"),n=x.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),i=r.getComputedStyle(t),s=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,ae.removeChild(e)),s}}))}();var Xe=["Webkit","Moz","ms"],Ve=x.createElement("div").style,Ge={};function Ye(e){var t=S.cssProps[e]||Ge[e];return t||(e in Ve?e:Ge[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Xe.length;n--;)if((e=Xe[n]+t)in Ve)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,Je={position:"absolute",visibility:"hidden",display:"block"},Ke={letterSpacing:"0",fontWeight:"400"};function Ze(e,t,n){var r=ie.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function et(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(u+=S.css(e,n+oe[a],!0,i)),r?("content"===n&&(u-=S.css(e,"padding"+oe[a],!0,i)),"margin"!==n&&(u-=S.css(e,"border"+oe[a]+"Width",!0,i))):(u+=S.css(e,"padding"+oe[a],!0,i),"padding"!==n?u+=S.css(e,"border"+oe[a]+"Width",!0,i):s+=S.css(e,"border"+oe[a]+"Width",!0,i));return!r&&o>=0&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u}function tt(e,t,n){var r=Fe(e),i=(!v.boxSizingReliable()||n)&&"border-box"===S.css(e,"boxSizing",!1,r),o=i,a=ze(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ie.test(a)){if(!n)return a;a="auto"}return(!v.boxSizingReliable()&&i||!v.reliableTrDimensions()&&D(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===S.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===S.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+et(e,t,n||(i?"border":"content"),o,r,a)+"px"}function nt(e,t,n,r,i){return new nt.prototype.init(e,t,n,r,i)}S.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=ze(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 i,o,a,s=Y(t),u=We.test(t),l=e.style;if(u||(t=Ye(s)),a=S.cssHooks[t]||S.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=ie.exec(n))&&i[1]&&(n=ce(e,t,i),o="number"),null!=n&&n===n&&("number"!==o||u||(n+=i&&i[3]||(S.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=Y(t);return We.test(t)||(t=Ye(s)),(a=S.cssHooks[t]||S.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=ze(e,t,r)),"normal"===i&&t in Ke&&(i=Ke[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),S.each(["height","width"],(function(e,t){S.cssHooks[t]={get:function(e,n,r){if(n)return!Qe.test(S.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?tt(e,t,r):$e(e,Je,(function(){return tt(e,t,r)}))},set:function(e,n,r){var i,o=Fe(e),a=!v.scrollboxSize()&&"absolute"===o.position,s=(a||r)&&"border-box"===S.css(e,"boxSizing",!1,o),u=r?et(e,t,r,s,o):0;return s&&a&&(u-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-et(e,t,"border",!1,o)-.5)),u&&(i=ie.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=S.css(e,t)),Ze(0,n,u)}}})),S.cssHooks.marginLeft=Ue(v.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(ze(e,"marginLeft"))||e.getBoundingClientRect().left-$e(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),S.each({margin:"",padding:"",border:"Width"},(function(e,t){S.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"===typeof n?n.split(" "):[n];r<4;r++)i[e+oe[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(S.cssHooks[e+t].set=Ze)})),S.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Fe(e),i=t.length;a<i;a++)o[t[a]]=S.css(e,t[a],!1,r);return o}return void 0!==n?S.style(e,t,n):S.css(e,t)}),e,t,arguments.length>1)}}),S.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||S.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(S.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=S.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=S.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){S.fx.step[e.prop]?S.fx.step[e.prop](e):1!==e.elem.nodeType||!S.cssHooks[e.prop]&&null==e.elem.style[Ye(e.prop)]?e.elem[e.prop]=e.now:S.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)}},S.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},(S.fx=nt.prototype.init).step={};var rt,it,ot=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function st(){it&&(!1===x.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(st):r.setTimeout(st,S.fx.interval),S.fx.tick())}function ut(){return r.setTimeout((function(){rt=void 0})),rt=Date.now()}function lt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=oe[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function ct(e,t,n){for(var r,i=(ft.tweeners[t]||[]).concat(ft.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function ft(e,t,n){var r,i,o=0,a=ft.prefilters.length,s=S.Deferred().always((function(){delete u.elem})),u=function(){if(i)return!1;for(var t=rt||ut(),n=Math.max(0,l.startTime+l.duration-t),r=1-(n/l.duration||0),o=0,a=l.tweens.length;o<a;o++)l.tweens[o].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:S.extend({},t),opts:S.extend(!0,{specialEasing:{},easing:S.easing._default},n),originalProperties:t,originalOptions:n,startTime:rt||ut(),duration:n.duration,tweens:[],createTween:function(t,n){var r=S.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(i)return this;for(i=!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}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=Y(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=S.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);o<a;o++)if(r=ft.prefilters[o].call(l,e,c,l.opts))return y(r.stop)&&(S._queueHooks(l.elem,l.opts.queue).stop=r.stop.bind(r)),r;return S.map(c,ct,l),y(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),S.fx.timer(S.extend(u,{elem:e,anim:l,queue:l.opts.queue})),l}S.Animation=S.extend(ft,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ce(n.elem,e,ie.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(I);for(var n,r=0,i=e.length;r<i;r++)n=e[r],ft.tweeners[n]=ft.tweeners[n]||[],ft.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&le(e),v=K.get(e,"fxshow");for(r in n.queue||(null==(a=S._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--,S.queue(e,"fx").length||a.empty.fire()}))}))),t)if(i=t[r],ot.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||S.style(e,r)}if((u=!S.isEmptyObject(t))||!S.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=K.get(e,"display")),"none"===(c=S.css(e,"display"))&&(l?c=l:(de([e],!0),l=e.style.display||l,c=S.css(e,"display"),de([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===S.css(e,"float")&&(u||(p.done((function(){h.display=l})),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=K.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&de([e],!0),p.done((function(){for(r in g||de([e]),K.remove(e,"fxshow"),d)S.style(e,r,d[r])}))),u=ct(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ft.prefilters.unshift(e):ft.prefilters.push(e)}}),S.speed=function(e,t,n){var r=e&&"object"===typeof e?S.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return S.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in S.fx.speeds?r.duration=S.fx.speeds[r.duration]:r.duration=S.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&S.dequeue(this,r.queue)},r},S.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 i=S.isEmptyObject(e),o=S.speed(t,n,r),a=function(){var t=ft(this,S.extend({},e),o);(i||K.get(this,"finish"))&&t.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.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,i=null!=e&&e+"queueHooks",o=S.timers,a=K.get(this);if(i)a[i]&&a[i].stop&&r(a[i]);else for(i in a)a[i]&&a[i].stop&&at.test(i)&&r(a[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||S.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=K.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=S.timers,a=r?r.length:0;for(n.finish=!0,S.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<a;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),S.each(["toggle","show","hide"],(function(e,t){var n=S.fn[t];S.fn[t]=function(e,r,i){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(lt(t,!0),e,r,i)}})),S.each({slideDown:lt("show"),slideUp:lt("hide"),slideToggle:lt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){S.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),S.timers=[],S.fx.tick=function(){var e,t=0,n=S.timers;for(rt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||S.fx.stop(),rt=void 0},S.fx.timer=function(e){S.timers.push(e),S.fx.start()},S.fx.interval=13,S.fx.start=function(){it||(it=!0,st())},S.fx.stop=function(){it=null},S.fx.speeds={slow:600,fast:200,_default:400},S.fn.delay=function(e,t){return e=S.fx&&S.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=x.createElement("input"),t=x.createElement("select").appendChild(x.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=x.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var pt,dt=S.expr.attrHandle;S.fn.extend({attr:function(e,t){return U(this,S.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){S.removeAttr(this,e)}))}}),S.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof e.getAttribute?S.prop(e,t,n):(1===o&&S.isXMLDoc(e)||(i=S.attrHooks[t.toLowerCase()]||(S.expr.match.bool.test(t)?pt:void 0)),void 0!==n?null===n?void S.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=S.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&D(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(I);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),pt={set:function(e,t,n){return!1===t?S.removeAttr(e,n):e.setAttribute(n,n),n}},S.each(S.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=dt[t]||S.find.attr;dt[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=dt[a],dt[a]=i,i=null!=n(e,t,r)?a:null,dt[a]=o),i}}));var ht=/^(?:input|select|textarea|button)$/i,gt=/^(?:a|area)$/i;function vt(e){return(e.match(I)||[]).join(" ")}function yt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(I)||[]}S.fn.extend({prop:function(e,t){return U(this,S.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[S.propFix[e]||e]}))}}),S.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&S.isXMLDoc(e)||(t=S.propFix[t]||t,i=S.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=S.find.attr(e,"tabindex");return t?parseInt(t,10):ht.test(e.nodeName)||gt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(S.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)}}),S.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){S.propFix[this.toLowerCase()]=this})),S.fn.extend({addClass:function(e){var t,n,r,i,o,a;return y(e)?this.each((function(t){S(this).addClass(e.call(this,t,yt(this)))})):(t=mt(e)).length?this.each((function(){if(r=yt(this),n=1===this.nodeType&&" "+vt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=vt(n),r!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,r,i,o,a;return y(e)?this.each((function(t){S(this).removeClass(e.call(this,t,yt(this)))})):arguments.length?(t=mt(e)).length?this.each((function(){if(r=yt(this),n=1===this.nodeType&&" "+vt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");a=vt(n),r!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,a=typeof e,s="string"===a||Array.isArray(e);return y(e)?this.each((function(n){S(this).toggleClass(e.call(this,n,yt(this),t),t)})):"boolean"===typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=mt(e),this.each((function(){if(s)for(o=S(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==a||((r=yt(this))&&K.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":K.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+vt(yt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;S.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=y(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,S(this).val()):e)?i="":"number"===typeof i?i+="":Array.isArray(i)&&(i=S.map(i,(function(e){return null==e?"":e+""}))),(t=S.valHooks[this.type]||S.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=S.valHooks[i.type]||S.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"===typeof(n=i.value)?n.replace(xt,""):null==n?"":n:void 0}}),S.extend({valHooks:{option:{get:function(e){var t=S.find.attr(e,"value");return null!=t?t:vt(S.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!D(n.parentNode,"optgroup"))){if(t=S(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=S.makeArray(t),a=i.length;a--;)((r=i[a]).selected=S.inArray(S.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),S.each(["radio","checkbox"],(function(){S.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=S.inArray(S(e).val(),t)>-1}},v.checkOn||(S.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),v.focusin="onfocusin"in r;var bt=/^(?:focusinfocus|focusoutblur)$/,wt=function(e){e.stopPropagation()};S.extend(S.event,{trigger:function(e,t,n,i){var o,a,s,u,l,c,f,p,h=[n||x],g=d.call(e,"type")?e.type:e,v=d.call(e,"namespace")?e.namespace.split("."):[];if(a=p=s=n=n||x,3!==n.nodeType&&8!==n.nodeType&&!bt.test(g+S.event.triggered)&&(g.indexOf(".")>-1&&(v=g.split("."),g=v.shift(),v.sort()),l=g.indexOf(":")<0&&"on"+g,(e=e[S.expando]?e:new S.Event(g,"object"===typeof e&&e)).isTrigger=i?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:S.makeArray(t,[e]),f=S.event.special[g]||{},i||!f.trigger||!1!==f.trigger.apply(n,t))){if(!i&&!f.noBubble&&!m(n)){for(u=f.delegateType||g,bt.test(u+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(n.ownerDocument||x)&&h.push(s.defaultView||s.parentWindow||r)}for(o=0;(a=h[o++])&&!e.isPropagationStopped();)p=a,e.type=o>1?u:f.bindType||g,(c=(K.get(a,"events")||Object.create(null))[e.type]&&K.get(a,"handle"))&&c.apply(a,t),(c=l&&a[l])&&c.apply&&Q(a)&&(e.result=c.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),t)||!Q(n)||l&&y(n[g])&&!m(n)&&((s=n[l])&&(n[l]=null),S.event.triggered=g,e.isPropagationStopped()&&p.addEventListener(g,wt),n[g](),e.isPropagationStopped()&&p.removeEventListener(g,wt),S.event.triggered=void 0,s&&(n[l]=s)),e.result}},simulate:function(e,t,n){var r=S.extend(new S.Event,n,{type:e,isSimulated:!0});S.event.trigger(r,null,t)}}),S.fn.extend({trigger:function(e,t){return this.each((function(){S.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return S.event.trigger(e,t,n,!0)}}),v.focusin||S.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){S.event.simulate(t,e.target,S.event.fix(e))};S.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t);i||r.addEventListener(e,n,!0),K.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=K.access(r,t)-1;i?K.access(r,t,i):(r.removeEventListener(e,n,!0),K.remove(r,t))}}}));var Tt=r.location,Ct={guid:Date.now()},St=/\?/;S.parseXML=function(e){var t,n;if(!e||"string"!==typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(i){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||S.error("Invalid XML: "+(n?S.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Et=/\[\]$/,kt=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Nt=/^(?:input|select|textarea|keygen)/i;function jt(e,t,n,r){var i;if(Array.isArray(t))S.each(t,(function(t,i){n||Et.test(e)?r(e,i):jt(e+"["+("object"===typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==T(t))r(e,t);else for(i in t)jt(e+"["+i+"]",t[i],n,r)}S.param=function(e,t){var n,r=[],i=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!S.isPlainObject(e))S.each(e,(function(){i(this.name,this.value)}));else for(n in e)jt(n,e[n],t,i);return r.join("&")},S.fn.extend({serialize:function(){return S.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=S.prop(this,"elements");return e?S.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!S(this).is(":disabled")&&Nt.test(this.nodeName)&&!At.test(e)&&(this.checked||!he.test(e))})).map((function(e,t){var n=S(this).val();return null==n?null:Array.isArray(n)?S.map(n,(function(e){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:n.replace(kt,"\r\n")}})).get()}});var Dt=/%20/g,qt=/#.*$/,Lt=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Pt=/^\/\//,Rt={},Mt={},It="*/".concat("*"),Wt=x.createElement("a");function Ft(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(I)||[];if(y(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function $t(e,t,n,r){var i={},o=e===Mt;function a(s){var u;return i[s]=!0,S.each(e[s]||[],(function(e,s){var l=s(t,n,r);return"string"!==typeof l||o||i[l]?o?!(u=l):void 0:(t.dataTypes.unshift(l),a(l),!1)})),u}return a(t.dataTypes[0])||!i["*"]&&a("*")}function Bt(e,t){var n,r,i=S.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&S.extend(!0,e,r),e}Wt.href=Tt.href,S.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Tt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Tt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,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":S.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,S.ajaxSettings),t):Bt(S.ajaxSettings,e)},ajaxPrefilter:Ft(Rt),ajaxTransport:Ft(Mt),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0);var n,i,o,a,s,u,l,c,f,p,d=S.ajaxSetup({},t=t||{}),h=d.context||d,g=d.context&&(h.nodeType||h.jquery)?S(h):S.event,v=S.Deferred(),y=S.Callbacks("once memory"),m=d.statusCode||{},b={},w={},T="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(l){if(!a)for(a={};t=Ht.exec(o);)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?o:null},setRequestHeader:function(e,t){return null==l&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==l&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(l)C.always(e[C.status]);else for(t in e)m[t]=[m[t],e[t]];return this},abort:function(e){var t=e||T;return n&&n.abort(t),E(0,t),this}};if(v.promise(C),d.url=((e||d.url||Tt.href)+"").replace(Pt,Tt.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(I)||[""],null==d.crossDomain){u=x.createElement("a");try{u.href=d.url,u.href=u.href,d.crossDomain=Wt.protocol+"//"+Wt.host!==u.protocol+"//"+u.host}catch(k){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!==typeof d.data&&(d.data=S.param(d.data,d.traditional)),$t(Rt,d,t,C),l)return C;for(f in(c=S.event&&d.global)&&0===S.active++&&S.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Ot.test(d.type),i=d.url.replace(qt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Dt,"+")):(p=d.url.slice(i.length),d.data&&(d.processData||"string"===typeof d.data)&&(i+=(St.test(i)?"&":"?")+d.data,delete d.data),!1===d.cache&&(i=i.replace(Lt,"$1"),p=(St.test(i)?"&":"?")+"_="+Ct.guid+++p),d.url=i+p),d.ifModified&&(S.lastModified[i]&&C.setRequestHeader("If-Modified-Since",S.lastModified[i]),S.etag[i]&&C.setRequestHeader("If-None-Match",S.etag[i])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+It+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(f,d.headers[f]);if(d.beforeSend&&(!1===d.beforeSend.call(h,C,d)||l))return C.abort();if(T="abort",y.add(d.complete),C.done(d.success),C.fail(d.error),n=$t(Mt,d,t,C)){if(C.readyState=1,c&&g.trigger("ajaxSend",[C,d]),l)return C;d.async&&d.timeout>0&&(s=r.setTimeout((function(){C.abort("timeout")}),d.timeout));try{l=!1,n.send(b,E)}catch(k){if(l)throw k;E(-1,k)}}else E(-1,"No Transport");function E(e,t,a,u){var f,p,x,b,w,T=t;l||(l=!0,s&&r.clearTimeout(s),n=void 0,o=u||"",C.readyState=e>0?4:0,f=e>=200&&e<300||304===e,a&&(b=function(e,t,n){for(var r,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(d,C,a)),!f&&S.inArray("script",d.dataTypes)>-1&&S.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),b=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(k){return{state:"parsererror",error:a?k:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(d,b,C,f),f?(d.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(S.lastModified[i]=w),(w=C.getResponseHeader("etag"))&&(S.etag[i]=w)),204===e||"HEAD"===d.type?T="nocontent":304===e?T="notmodified":(T=b.state,p=b.data,f=!(x=b.error))):(x=T,!e&&T||(T="error",e<0&&(e=0))),C.status=e,C.statusText=(t||T)+"",f?v.resolveWith(h,[p,T,C]):v.rejectWith(h,[C,T,x]),C.statusCode(m),m=void 0,c&&g.trigger(f?"ajaxSuccess":"ajaxError",[C,d,f?p:x]),y.fireWith(h,[C,T]),c&&(g.trigger("ajaxComplete",[C,d]),--S.active||S.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return S.get(e,t,n,"json")},getScript:function(e,t){return S.get(e,void 0,t,"script")}}),S.each(["get","post"],(function(e,t){S[t]=function(e,n,r,i){return y(n)&&(i=i||r,r=n,n=void 0),S.ajax(S.extend({url:e,type:t,dataType:i,data:n,success:r},S.isPlainObject(e)&&e))}})),S.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),S._evalUrl=function(e,t,n){return S.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){S.globalEval(e,t,n)}})},S.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=S(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 y(e)?this.each((function(t){S(this).wrapInner(e.call(this,t))})):this.each((function(){var t=S(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){S(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){S(this).replaceWith(this.childNodes)})),this}}),S.expr.pseudos.hidden=function(e){return!S.expr.pseudos.visible(e)},S.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},S.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var _t={0:200,1223:204},zt=S.ajaxSettings.xhr();v.cors=!!zt&&"withCredentials"in zt,v.ajax=zt=!!zt,S.ajaxTransport((function(e){var t,n;if(v.cors||zt&&!e.crossDomain)return{send:function(i,o){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||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[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?o(0,"error"):o(s.status,s.statusText):o(_t[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(u){if(t)throw u}},abort:function(){t&&t()}}})),S.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),S.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 S.globalEval(e),e}}}),S.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),S.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=S("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),x.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ut=[],Xt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,a,s=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Xt,"$1"+i):!1!==e.jsonp&&(e.url+=(St.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return a||S.error(i+" was not called"),a[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){a=arguments},n.always((function(){void 0===o?S(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Ut.push(i)),a&&y(o)&&o(a[0]),a=o=void 0})),"script"})),v.createHTMLDocument=function(){var e=x.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),S.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((r=(t=x.implementation.createHTMLDocument("")).createElement("base")).href=x.location.href,t.head.appendChild(r)):t=x),o=!n&&[],(i=q.exec(e))?[t.createElement(i[1])]:(i=we([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return s>-1&&(r=vt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"===typeof t&&(i="POST"),a.length>0&&S.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,a.html(r?S("<div>").append(S.parseHTML(e)).find(r):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},S.expr.pseudos.animated=function(e){return S.grep(S.timers,(function(t){return e===t.elem})).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&(o+u).indexOf("auto")>-1?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),y(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},S.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){S.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],i={top:0,left:0};if("fixed"===S.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"===S.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===S.css(e,"position");)e=e.offsetParent;return e||ae}))}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;S.fn[e]=function(r){return U(this,(function(e,r,i){var o;if(m(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),S.each(["top","left"],(function(e,t){S.cssHooks[t]=Ue(v.pixelPosition,(function(e,n){if(n)return n=ze(e,t),Ie.test(n)?S(e).position()[t]+"px":n}))})),S.each({Height:"height",Width:"width"},(function(e,t){S.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){S.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!==typeof i),s=n||(!0===i||!0===o?"margin":"border");return U(this,(function(t,n,i){var o;return m(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?S.css(t,n,s):S.style(t,n,i,s)}),t,a?i:void 0,a)}}))})),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){S.fn[t]=function(e){return this.on(t,e)}})),S.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)}}),S.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){S.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Vt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;S.proxy=function(e,t){var n,r,i;if("string"===typeof t&&(n=e[t],t=e,e=n),y(e))return r=s.call(arguments,2),i=function(){return e.apply(t||this,r.concat(s.call(arguments)))},i.guid=e.guid=e.guid||S.guid++,i},S.holdReady=function(e){e?S.readyWait++:S.ready(!0)},S.isArray=Array.isArray,S.parseJSON=JSON.parse,S.nodeName=D,S.isFunction=y,S.isWindow=m,S.camelCase=Y,S.type=T,S.now=Date.now,S.isNumeric=function(e){var t=S.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},S.trim=function(e){return null==e?"":(e+"").replace(Vt,"$1")},void 0===(n=function(){return S}.apply(t,[]))||(e.exports=n);var Gt=r.jQuery,Yt=r.$;return S.noConflict=function(e){return r.$===S&&(r.$=Yt),e&&r.jQuery===S&&(r.jQuery=Gt),S},"undefined"===typeof i&&(r.jQuery=r.$=S),S}))}}]);
//# sourceMappingURL=6848.3b7c54b3.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,2486,4515,4867,5343,6896,7248],{44515:function(t,n,e){e.r(n),e.d(n,{memoizeFunctionProperties:function(){return u}});var r=e(84867),o=e(9766),i=Object.keys;function u(t){var n,e,u={};try{for(var a=(0,r.__values)(i(t)),c=a.next();!c.done;c=a.next()){var f=c.value,l=t[f];if("function"===typeof l){var s=l;u[f]=(0,o.memoizeFunction)(s.bind(u))}else u[f]=l}}catch(p){n={error:p}}finally{try{c&&!c.done&&(e=a.return)&&e.call(a)}finally{if(n)throw n.error}}return u}},84867:function(t,n,e){e.r(n),e.d(n,{__assign:function(){return i},__asyncDelegator:function(){return O},__asyncGenerator:function(){return m},__asyncValues:function(){return g},__await:function(){return w},__awaiter:function(){return l},__classPrivateFieldGet:function(){return E},__classPrivateFieldIn:function(){return k},__classPrivateFieldSet:function(){return T},__createBinding:function(){return p},__decorate:function(){return a},__exportStar:function(){return y},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return x},__importStar:function(){return S},__makeTemplateObject:function(){return j},__metadata:function(){return f},__param:function(){return c},__read:function(){return v},__rest:function(){return u},__spread:function(){return _},__spreadArray:function(){return d},__spreadArrays:function(){return b},__values:function(){return h}});var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(t,n)};function o(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var i=function(){return i=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},i.apply(this,arguments)};function u(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function a(t,n,e,r){var o,i=arguments.length,u=i<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)u=Reflect.decorate(t,n,e,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(u=(i<3?o(u):i>3?o(n,e,u):o(n,e))||u);return i>3&&u&&Object.defineProperty(n,e,u),u}function c(t,n){return function(e,r){n(e,r,t)}}function f(t,n){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,n)}function l(t,n,e,r){return new(e||(e=Promise))((function(o,i){function u(t){try{c(r.next(t))}catch(n){i(n)}}function a(t){try{c(r.throw(t))}catch(n){i(n)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(u,a)}c((r=r.apply(t,n||[])).next())}))}function s(t,n){var e,r,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:a(0),throw:a(1),return:a(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function a(i){return function(a){return function(i){if(e)throw new TypeError("Generator is already executing.");for(;u;)try{if(e=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 u.label++,{value:i[1],done:!1};case 5:u.label++,r=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=n.call(t,u)}catch(a){i=[6,a],r=0}finally{e=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,a])}}}var p=Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]};function y(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||p(n,t,e)}function h(t){var n="function"===typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(t,n){var e="function"===typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,i=e.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(r=i.next()).done;)u.push(r.value)}catch(a){o={error:a}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(o)throw o.error}}return u}function _(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(v(arguments[n]));return t}function b(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var i=arguments[n],u=0,a=i.length;u<a;u++,o++)r[o]=i[u];return r}function d(t,n,e){if(e||2===arguments.length)for(var r,o=0,i=n.length;o<i;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function m(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),i=[];return r={},u("next"),u("throw"),u("return"),r[Symbol.asyncIterator]=function(){return this},r;function u(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){i.push([t,n,e,r])>1||a(t,n)}))})}function a(t,n){try{(e=o[t](n)).value instanceof w?Promise.resolve(e.value.v).then(c,f):l(i[0][2],e)}catch(r){l(i[0][3],r)}var e}function c(t){a("next",t)}function f(t){a("throw",t)}function l(t,n){t(n),i.shift(),i.length&&a(i[0][0],i[0][1])}}function O(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:w(t[r](n)),done:"return"===r}:o?o(n):n}:o}}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=h(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function j(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}var P=Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n};function S(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&p(n,t,e);return P(n,t),n}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,n,e,r){if("a"===e&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof n?t!==n||!r:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(t):r?r.value:n.get(t)}function T(t,n,e,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 n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,e):o?o.value=e:n.set(t,e),e}function k(t,n){if(null===n||"object"!==typeof n&&"function"!==typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?n===t:t.has(n)}}}]);
//# sourceMappingURL=6896.e588b50c.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,2486,4867,5343,7248],{84867:function(t,n,e){e.r(n),e.d(n,{__assign:function(){return u},__asyncDelegator:function(){return O},__asyncGenerator:function(){return m},__asyncValues:function(){return g},__await:function(){return w},__awaiter:function(){return l},__classPrivateFieldGet:function(){return E},__classPrivateFieldIn:function(){return k},__classPrivateFieldSet:function(){return T},__createBinding:function(){return p},__decorate:function(){return i},__exportStar:function(){return y},__extends:function(){return o},__generator:function(){return s},__importDefault:function(){return x},__importStar:function(){return S},__makeTemplateObject:function(){return j},__metadata:function(){return f},__param:function(){return c},__read:function(){return _},__rest:function(){return a},__spread:function(){return b},__spreadArray:function(){return v},__spreadArrays:function(){return d},__values:function(){return h}});var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])},r(t,n)};function o(t,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function e(){this.constructor=t}r(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var u=function(){return u=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},u.apply(this,arguments)};function a(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}function i(t,n,e,r){var o,u=arguments.length,a=u<3?n:null===r?r=Object.getOwnPropertyDescriptor(n,e):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,n,e,r);else for(var i=t.length-1;i>=0;i--)(o=t[i])&&(a=(u<3?o(a):u>3?o(n,e,a):o(n,e))||a);return u>3&&a&&Object.defineProperty(n,e,a),a}function c(t,n){return function(e,r){n(e,r,t)}}function f(t,n){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(t,n)}function l(t,n,e,r){return new(e||(e=Promise))((function(o,u){function a(t){try{c(r.next(t))}catch(n){u(n)}}function i(t){try{c(r.throw(t))}catch(n){u(n)}}function c(t){var n;t.done?o(t.value):(n=t.value,n instanceof e?n:new e((function(t){t(n)}))).then(a,i)}c((r=r.apply(t,n||[])).next())}))}function s(t,n){var e,r,o,u,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:i(0),throw:i(1),return:i(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function i(u){return function(i){return function(u){if(e)throw new TypeError("Generator is already executing.");for(;a;)try{if(e=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=n.call(t,a)}catch(i){u=[6,i],r=0}finally{e=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,i])}}}var p=Object.create?function(t,n,e,r){void 0===r&&(r=e);var o=Object.getOwnPropertyDescriptor(n,e);o&&!("get"in o?!n.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return n[e]}}),Object.defineProperty(t,r,o)}:function(t,n,e,r){void 0===r&&(r=e),t[r]=n[e]};function y(t,n){for(var e in t)"default"===e||Object.prototype.hasOwnProperty.call(n,e)||p(n,t,e)}function h(t){var n="function"===typeof Symbol&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(t,n){var e="function"===typeof Symbol&&t[Symbol.iterator];if(!e)return t;var r,o,u=e.call(t),a=[];try{for(;(void 0===n||n-- >0)&&!(r=u.next()).done;)a.push(r.value)}catch(i){o={error:i}}finally{try{r&&!r.done&&(e=u.return)&&e.call(u)}finally{if(o)throw o.error}}return a}function b(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(_(arguments[n]));return t}function d(){for(var t=0,n=0,e=arguments.length;n<e;n++)t+=arguments[n].length;var r=Array(t),o=0;for(n=0;n<e;n++)for(var u=arguments[n],a=0,i=u.length;a<i;a++,o++)r[o]=u[a];return r}function v(t,n,e){if(e||2===arguments.length)for(var r,o=0,u=n.length;o<u;o++)!r&&o in n||(r||(r=Array.prototype.slice.call(n,0,o)),r[o]=n[o]);return t.concat(r||Array.prototype.slice.call(n))}function w(t){return this instanceof w?(this.v=t,this):new w(t)}function m(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=e.apply(t,n||[]),u=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(t){o[t]&&(r[t]=function(n){return new Promise((function(e,r){u.push([t,n,e,r])>1||i(t,n)}))})}function i(t,n){try{(e=o[t](n)).value instanceof w?Promise.resolve(e.value.v).then(c,f):l(u[0][2],e)}catch(r){l(u[0][3],r)}var e}function c(t){i("next",t)}function f(t){i("throw",t)}function l(t,n){t(n),u.shift(),u.length&&i(u[0][0],u[0][1])}}function O(t){var n,e;return n={},r("next"),r("throw",(function(t){throw t})),r("return"),n[Symbol.iterator]=function(){return this},n;function r(r,o){n[r]=t[r]?function(n){return(e=!e)?{value:w(t[r](n)),done:"return"===r}:o?o(n):n}:o}}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=h(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(e){n[e]=t[e]&&function(n){return new Promise((function(r,o){(function(t,n,e,r){Promise.resolve(r).then((function(n){t({value:n,done:e})}),n)})(r,o,(n=t[e](n)).done,n.value)}))}}}function j(t,n){return Object.defineProperty?Object.defineProperty(t,"raw",{value:n}):t.raw=n,t}var P=Object.create?function(t,n){Object.defineProperty(t,"default",{enumerable:!0,value:n})}:function(t,n){t.default=n};function S(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var e in t)"default"!==e&&Object.prototype.hasOwnProperty.call(t,e)&&p(n,t,e);return P(n,t),n}function x(t){return t&&t.__esModule?t:{default:t}}function E(t,n,e,r){if("a"===e&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"===typeof n?t!==n||!r:!n.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===e?r:"a"===e?r.call(t):r?r.value:n.get(t)}function T(t,n,e,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 n?t!==n||!o:!n.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?o.call(t,e):o?o.value=e:n.set(t,e),e}function k(t,n){if(null===n||"object"!==typeof n&&"function"!==typeof n)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof t?n===t:t.has(n)}}}]);
//# sourceMappingURL=7248.c2ff99a8.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[105,2486,4867,5343,7248,7354],{16639:function(e,t,n){function r(e){a!==e&&(a=e)}function o(){return void 0===a&&(a="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),a}var a;function i(){return{rtl:o()}}n.d(t,{DU:function(){return r},Iy:function(){return i}}),a=o()},41441:function(e,t,n){n.d(t,{n:function(){return l}});var r,o=n(84867),a=0,i=1,u=2,c="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),s={};try{s=window||{}}catch(f){}var l=function(){function e(e,t){var n,r,u,c,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,o.__assign)({injectionMode:"undefined"===typeof document?a:i,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null===t||void 0===t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null===t||void 0===t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(c=null!==(u=this._config.classNameCache)&&void 0!==u?u:null===t||void 0===t?void 0:t.keyToClassName)&&void 0!==c?c:this._keyToClassName,this._preservedRules=null!==(s=null===t||void 0===t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null===t||void 0===t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(r=s.__stylesheet__)||r._lastStyleElement&&r._lastStyleElement.ownerDocument!==document){var t=(null===s||void 0===s?void 0:s.FabricConfig)||{},n=new e(t.mergeStyles,t.serializedStylesheet);r=n,s.__stylesheet__=n}return r},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=(0,o.__assign)((0,o.__assign)({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var n=this._config.injectionMode,r=n!==a?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),r)switch(n){case i:var o=r.sheet;try{o.insertRule(e,o.cssRules.length)}catch(c){}break;case u:r.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),c||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),n=null;t.setAttribute("data-merge-styles","true");var r=this._config.cspSettings;if(r&&r.nonce&&t.setAttribute("nonce",r.nonce),this._lastStyleElement)n=this._lastStyleElement.nextElementSibling;else{var o=this._findPlaceholderStyleTag();n=o?o.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(n)?n:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}()},38561:function(e,t,n){n.d(t,{T:function(){return o}});var r=n(84867);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var n={},a={},i=0,u=e;i<u.length;i++){var c=u[i];if(c)for(var s in c)if(c.hasOwnProperty(s)){if("subComponentStyles"===s&&void 0!==c.subComponentStyles){var l=c.subComponentStyles;for(var f in l)l.hasOwnProperty(f)&&(a.hasOwnProperty(f)?a[f].push(l[f]):a[f]=[l[f]]);continue}var d=n[s],p=c[s];n[s]=void 0===d?p:(0,r.__spreadArray)((0,r.__spreadArray)([],Array.isArray(d)?d:[d],!0),Array.isArray(p)?p:[p],!0)}}if(Object.keys(a).length>0){n.subComponentStyles={};var v=n.subComponentStyles,g=function(e){if(a.hasOwnProperty(e)){var t=a[e];v[e]=function(e){return o.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var f in a)g(f)}return n}},70983:function(e,t,n){n.d(t,{p:function(){return o}});var r=n(38561);function o(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=[],a=0,i=t;a<i.length;a++){var u=i[a];u&&o.push("function"===typeof u?u(e):u)}return 1===o.length?o[0]:o.length?r.T.apply(void 0,o):{}}},94321:function(e,t,n){n.d(t,{h:function(){return o}});var r=n(41441);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=[],o=[],a=r.n.getInstance();function i(e){for(var t=0,r=e;t<r.length;t++){var u=r[t];if(u)if("string"===typeof u)if(u.indexOf(" ")>=0)i(u.split(" "));else{var c=a.argsFromClassName(u);c?i(c):-1===n.indexOf(u)&&n.push(u)}else Array.isArray(u)?i(u):"object"===typeof u&&o.push(u)}}return i(e),{classes:n,objects:o}}},32945:function(e,t,n){n.d(t,{n:function(){return i}});var r=n(16639),o=n(41441),a=n(85580);function i(e){var t=o.n.getInstance(),n=(0,a.bz)((0,r.Iy)(),e);if(!t.classNameFromKey(n)){var i=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(i,n,[],["font-face",n])}}},88516:function(e,t,n){n.d(t,{i:function(){return i}});var r=n(16639),o=n(41441),a=n(85580);function i(e){var t=o.n.getInstance(),n=[];for(var i in e)e.hasOwnProperty(i)&&n.push(i,"{",(0,a.bz)((0,r.Iy)(),e[i]),"}");var u=n.join(""),c=t.classNameFromKey(u);if(c)return c;var s=t.getClassName();return t.insertRule("@keyframes ".concat(s,"{").concat(u,"}"),!0),t.cacheClassName(s,u,[],["keyframes",u]),s}},12281:function(e,t,n){n.d(t,{L:function(){return c},l:function(){return u}});var r=n(38561),o=n(94321),a=n(16639),i=n(85580);function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return c(e,(0,a.Iy)())}function c(e,t){var n={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var a=r.T.apply(void 0,e),u=[];for(var c in a)if(a.hasOwnProperty(c)){if("subComponentStyles"===c){n.subComponentStyles=a.subComponentStyles||{};continue}var s=a[c],l=(0,o.h)(s),f=l.classes,d=l.objects;if(null===d||void 0===d?void 0:d.length)(g=(0,i.GJ)(t||{},{displayName:c},d))&&(u.push(g),n[c]=f.concat([g.className]).join(" "));else n[c]=f.join(" ")}for(var p=0,v=u;p<v.length;p++){var g;(g=v[p])&&(0,i.Ae)(g,null===t||void 0===t?void 0:t.specificityMultiplier)}return n}},72495:function(e,t,n){n.d(t,{Z:function(){return i},e:function(){return u}});var r=n(94321),o=n(16639),a=n(85580);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u(e,(0,o.Iy)())}function u(e,t){var n=e instanceof Array?e:[e],o=(0,r.h)(n),i=o.classes,u=o.objects;return u.length&&i.push((0,a.kG)(t||{},u)),i.join(" ")}},85580:function(e,t,n){n.d(t,{Ae:function(){return I},bz:function(){return E},kG:function(){return T},GJ:function(){return O}});var r,o=n(84867),a=n(41441),i={};function u(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=i[n]=i[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var c={"user-select":1};function s(e,t){var n=function(){var e;if(!r){var t="undefined"!==typeof document?document:void 0,n="undefined"!==typeof navigator?navigator:void 0,o=null===(e=null===n||void 0===n?void 0:n.userAgent)||void 0===e?void 0:e.toLowerCase();r=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(o&&o.indexOf("firefox")>-1),isOpera:!!(o&&o.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 r}(),o=e[t];if(c[o]){var a=e[t+1];c[o]&&(n.isWebkit&&e.push("-webkit-"+o,a),n.isMoz&&e.push("-moz-"+o,a),n.isMs&&e.push("-ms-"+o,a),n.isOpera&&e.push("-o-"+o,a))}}var l,f=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function d(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=f.indexOf(n)>-1,a=n.indexOf("--")>-1,i=o||a?"":"px";e[t+1]="".concat(r).concat(i)}}var p="left",v="right",g=((l={}).left=v,l.right=p,l),h={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function m(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(p)>=0)t[n]=r.replace(p,v);else if(r.indexOf(v)>=0)t[n]=r.replace(v,p);else if(String(o).indexOf(p)>=0)t[n+1]=o.replace(p,v);else if(String(o).indexOf(v)>=0)t[n+1]=o.replace(v,p);else if(g[r])t[n]=g[r];else if(h[o])t[n+1]=h[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 y(e){var t=e&&e["&"];return t?t.displayName:void 0}var b=/\:global\((.+?)\)/g;function _(e,t){return e.indexOf(":global(")>=0?e.replace(b,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function w(e,t,n,r){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?x([r],t,n=n+"{"+e):n.indexOf(",")>-1?function(e){if(!b.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 x([r],t,_(n,e))})):x([r],t,_(n,e))}function x(e,t,n){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var r=a.n.getInstance(),o=t[n];o||(o={},t[n]=o,t.__order.push(n));for(var i=0,u=e;i<u.length;i++){var c=u[i];if("string"===typeof c){var s=r.argsFromClassName(c);s&&x(s,t,n)}else if(Array.isArray(c))x(c,t,n);else for(var l in c)if(c.hasOwnProperty(l)){var f=c[l];if("selectors"===l){var d=c.selectors;for(var p in d)d.hasOwnProperty(p)&&w(n,t,p,d[p])}else"object"===typeof f?null!==f&&w(n,t,l,f):void 0!==f&&("margin"===l||"padding"===l?S(o,l,f):o[l]=f)}}return t}function S(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 k(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,a=t.__order;o<a.length;o++){var i=a[o];n.push(i);var u=t[i];for(var c in u)u.hasOwnProperty(c)&&void 0!==u[c]&&(r=!0,n.push(c,u[c]))}return r?n.join(""):void 0}function C(e,t){return t<=0?"":1===t?e:e+C(e,t-1)}function E(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)u(n,o),d(n,o),m(e,n,o),s(n,o);for(o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function O(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=x(t),o=k(e,r);if(o){var i=a.n.getInstance(),u={className:i.classNameFromKey(o),key:o,args:t};if(!u.className){u.className=i.getClassName(y(r));for(var c=[],s=0,l=r.__order;s<l.length;s++){var f=l[s];c.push(f,E(e,r[f]))}u.rulesToInsert=c}return u}}function I(e,t){void 0===t&&(t=1);var n=a.n.getInstance(),r=e.className,o=e.key,i=e.args,u=e.rulesToInsert;if(u){for(var c=0;c<u.length;c+=2){var s=u[c+1];if(s){var l=u[c];l=l.replace(/&/g,C(".".concat(e.className),t));var f="".concat(l,"{").concat(s,"}").concat(0===l.indexOf("@")?"}":"");n.insertRule(f)}}n.cacheClassName(r,o,i,u)}}function T(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=O.apply(void 0,(0,o.__spreadArray)([e],t,!1));return r?(I(r,e.specificityMultiplier),r.className):""}},97441:function(e,t,n){n.d(t,{v:function(){return a}});var r={},o=void 0;try{o=window}catch(i){}function a(e,t){if("undefined"!==typeof o){var n=o.__packages__=o.__packages__||{};if(!n[e]||!r[e])r[e]=t,(n[e]=n[e]||[]).push(t)}}a("@fluentui/set-version","6.0.0")},7354:function(e,t,n){n.d(t,{lw:function(){return te},Dm:function(){return G},cs:function(){return M},pD:function(){return vt},s:function(){return q},BO:function(){return $},up:function(){return ie},hT:function(){return ue},fF:function(){return ee},mm:function(){return pe},iD:function(){return de},mu:function(){return se},O7:function(){return ce},c3:function(){return ve},af:function(){return le},Ke:function(){return fe},nA:function(){return me},TW:function(){return ft.T},pB:function(){return dt.p},sQ:function(){return ae},QN:function(){return we},gm:function(){return be},Km:function(){return Ee},Qg:function(){return he},sW:function(){return ut},Sq:function(){return xe},CX:function(){return qe},L6:function(){return ge},O4:function(){return Je},dX:function(){return Se},i7:function(){return o.i},EQ:function(){return Qe},l8:function(){return pt.l},Zq:function(){return r.Z},oA:function(){return Ye},S8:function(){return Xe},aH:function(){return it},K1:function(){return ot},hJ:function(){return at}});var r=n(72495);var o=n(88516),a="cubic-bezier(.1,.9,.2,1)",i="cubic-bezier(.1,.25,.75,.9)",u="0.167s",c="0.267s",s="0.367s",l="0.467s",f=(0,o.i)({from:{opacity:0},to:{opacity:1}}),d=(0,o.i)({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),p=K(-10),v=K(-20),g=K(-40),h=K(-400),m=K(10),y=K(20),b=K(40),_=K(400),w=Z(10),x=Z(20),S=Z(-10),k=Z(-20),C=J(10),E=J(20),O=J(40),I=J(400),T=J(-10),B=J(-20),A=J(-40),P=J(-400),F=Q(-10),N=Q(-20),L=Q(10),j=Q(20),R=(0,o.i)({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),D=(0,o.i)({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),z=(0,o.i)({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),H=(0,o.i)({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),W=(0,o.i)({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),U=(0,o.i)({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),M={easeFunction1:a,easeFunction2:i,durationValue1:u,durationValue2:c,durationValue3:s,durationValue4:l},G={slideRightIn10:V("".concat(f,",").concat(p),s,a),slideRightIn20:V("".concat(f,",").concat(v),s,a),slideRightIn40:V("".concat(f,",").concat(g),s,a),slideRightIn400:V("".concat(f,",").concat(h),s,a),slideLeftIn10:V("".concat(f,",").concat(m),s,a),slideLeftIn20:V("".concat(f,",").concat(y),s,a),slideLeftIn40:V("".concat(f,",").concat(b),s,a),slideLeftIn400:V("".concat(f,",").concat(_),s,a),slideUpIn10:V("".concat(f,",").concat(w),s,a),slideUpIn20:V("".concat(f,",").concat(x),s,a),slideDownIn10:V("".concat(f,",").concat(S),s,a),slideDownIn20:V("".concat(f,",").concat(k),s,a),slideRightOut10:V("".concat(d,",").concat(C),s,a),slideRightOut20:V("".concat(d,",").concat(E),s,a),slideRightOut40:V("".concat(d,",").concat(O),s,a),slideRightOut400:V("".concat(d,",").concat(I),s,a),slideLeftOut10:V("".concat(d,",").concat(T),s,a),slideLeftOut20:V("".concat(d,",").concat(B),s,a),slideLeftOut40:V("".concat(d,",").concat(A),s,a),slideLeftOut400:V("".concat(d,",").concat(P),s,a),slideUpOut10:V("".concat(d,",").concat(F),s,a),slideUpOut20:V("".concat(d,",").concat(N),s,a),slideDownOut10:V("".concat(d,",").concat(L),s,a),slideDownOut20:V("".concat(d,",").concat(j),s,a),scaleUpIn100:V("".concat(f,",").concat(R),s,a),scaleDownIn100:V("".concat(f,",").concat(z),s,a),scaleUpOut103:V("".concat(d,",").concat(H),u,i),scaleDownOut98:V("".concat(d,",").concat(D),u,i),fadeIn100:V(f,u,i),fadeIn200:V(f,c,i),fadeIn400:V(f,s,i),fadeIn500:V(f,l,i),fadeOut100:V(d,u,i),fadeOut200:V(d,c,i),fadeOut400:V(d,s,i),fadeOut500:V(d,l,i),rotate90deg:V(W,"0.1s",i),rotateN90deg:V(U,"0.1s",i)};function V(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function K(e){return(0,o.i)({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Z(e){return(0,o.i)({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function J(e){return(0,o.i)({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function Q(e){return(0,o.i)({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}var X,Y,q,$,ee,te=function(e){var t={},n=function(n){var o;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===o&&(o=(0,r.Z)(e[n]).toString()),o},enumerable:!0,configurable:!0})};for(var o in e)n(o);return t}(G);!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)"}(X||(X={})),function(e){e.Arabic="'".concat(X.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(X.Cyrillic,"'"),e.EastEuropean="'".concat(X.EastEuropean,"'"),e.Greek="'".concat(X.Greek,"'"),e.Hebrew="'".concat(X.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(X.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(X.Vietnamese,"'"),e.WestEuropean="'".concat(X.WestEuropean,"'"),e.Armenian="'".concat(X.Armenian,"'"),e.Georgian="'".concat(X.Georgian,"'")}(Y||(Y={})),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"}(q||(q={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}($||($={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(ee||(ee={}));var ne="'Segoe UI', '".concat(X.WestEuropean,"'"),re={ar:Y.Arabic,bg:Y.Cyrillic,cs:Y.EastEuropean,el:Y.Greek,et:Y.EastEuropean,he:Y.Hebrew,hi:Y.Hindi,hr:Y.EastEuropean,hu:Y.EastEuropean,ja:Y.Japanese,kk:Y.EastEuropean,ko:Y.Korean,lt:Y.EastEuropean,lv:Y.EastEuropean,pl:Y.EastEuropean,ru:Y.Cyrillic,sk:Y.EastEuropean,"sr-latn":Y.EastEuropean,th:Y.Thai,tr:Y.EastEuropean,uk:Y.Cyrillic,vi:Y.Vietnamese,"zh-hans":Y.ChineseSimplified,"zh-hant":Y.ChineseTraditional,hy:Y.Armenian,ka:Y.Georgian};function oe(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}function ae(e){var t=function(e){for(var t in re)if(re.hasOwnProperty(t)&&e&&0===t.indexOf(e))return re[t];return ne}(e),n="".concat(t,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:oe(q.mini,$.regular,n),xSmall:oe(q.xSmall,$.regular,n),small:oe(q.small,$.regular,n),smallPlus:oe(q.smallPlus,$.regular,n),medium:oe(q.medium,$.regular,n),mediumPlus:oe(q.mediumPlus,$.regular,n),large:oe(q.large,$.regular,n),xLarge:oe(q.xLarge,$.semibold,n),xLargePlus:oe(q.xLargePlus,$.semibold,n),xxLarge:oe(q.xxLarge,$.semibold,n),xxLargePlus:oe(q.xxLargePlus,$.semibold,n),superLarge:oe(q.superLarge,$.semibold,n),mega:oe(q.mega,$.semibold,n)}}var ie="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",ue="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",ce=480,se=640,le=1024,fe=1366,de=ce-1,pe=se-1,ve=768;function ge(e,t){var n="number"===typeof e?" and (min-width: ".concat(e,"px)"):"",r="number"===typeof t?" and (max-width: ".concat(t,"px)"):"";return"@media only screen".concat(n).concat(r)}function he(){return{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}}var me,ye=n(40950);function be(e,t,n,r,o,a,i,u){return _e(e,"number"!==typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:a,isFocusedOnly:i,borderRadius:u})}function _e(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,a=t.inset,i=void 0===a?0:a,u=t.width,c=void 0===u?1:u,s=t.position,l=void 0===s?"relative":s,f=t.highContrastStyle,d=t.borderColor,p=void 0===d?e.palette.white:d,v=t.outlineColor,g=void 0===v?e.palette.neutralSecondary:v,h=t.isFocusedOnly,m=void 0===h||h,y=t.pointerEvents;return{outline:"transparent",position:l,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(ye.Y2," &").concat(m?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:i+1,top:i+1,bottom:i+1,right:i+1,border:"".concat(c,"px solid ").concat(p),outline:"".concat(c,"px solid ").concat(g),zIndex:me.FocusStyle,borderRadius:o,selectors:(r={},r[ie]=f,r)},n)}}function we(){return{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(me||(me={}));var xe=function(e,t,n,r){var o,a,i;void 0===n&&(n="border"),void 0===r&&(r=-1);var u="borderBottom"===n;return{borderColor:e,selectors:{":after":(o={pointerEvents:"none",content:"''",position:"absolute",left:u?0:r,top:r,bottom:r,right:u?0:r},o[n]="2px solid ".concat(e),o.borderRadius=t,o.width="borderBottom"===n?"100%":void 0,o.selectors=(a={},a[ie]=(i={},i["border"===n?"borderColor":"borderBottomColor"]="Highlight",i),a),o)}}},Se={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},ke=n(41441),Ce=(0,n(65808).J9)((function(e,t){var n=ke.n.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function Ee(e,t,n){return Ce(e,void 0!==n?n:t.disableGlobalClassNames)}var Oe,Ie=n(84867),Te=n(50963),Be=n(39409),Ae=n(28480),Pe={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)"}(Oe||(Oe={}));var Fe={elevation4:Oe.depth4,elevation8:Oe.depth8,elevation16:Oe.depth16,elevation64:Oe.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},Ne=n(32945),Le=n(8820),je=ae((0,Le.Z)());function Re(e,t,n,r){e="'".concat(e,"'");var o=void 0!==r?"local('".concat(r,"'),"):"";(0,Ne.n)({fontFamily:e,src:o+"url('".concat(t,".woff2') format('woff2'),")+"url('".concat(t,".woff') format('woff')"),fontWeight:n,fontStyle:"normal",fontDisplay:"swap"})}function De(e,t,n,r,o){void 0===r&&(r="segoeui");var a="".concat(e,"/").concat(n,"/").concat(r);Re(t,a+"-light",$.light,o&&o+" Light"),Re(t,a+"-semilight",$.semilight,o&&o+" SemiLight"),Re(t,a+"-regular",$.regular,o),Re(t,a+"-semibold",$.semibold,o&&o+" SemiBold"),Re(t,a+"-bold",$.bold,o&&o+" Bold")}!function(e){if(e){var t="".concat(e,"/fonts");De(t,X.Thai,"leelawadeeui-thai","leelawadeeui"),De(t,X.Arabic,"segoeui-arabic"),De(t,X.Cyrillic,"segoeui-cyrillic"),De(t,X.EastEuropean,"segoeui-easteuropean"),De(t,X.Greek,"segoeui-greek"),De(t,X.Hebrew,"segoeui-hebrew"),De(t,X.Vietnamese,"segoeui-vietnamese"),De(t,X.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),De(t,Y.Selawik,"selawik","selawik"),De(t,X.Armenian,"segoeui-armenian"),De(t,X.Georgian,"segoeui-georgian"),Re("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),$.light),Re("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),$.semibold)}}(function(){var e,t,n=null===(e=(0,Te.z)())||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 ze=n(84892);function He(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(We(e,t,(0,Ie.__assign)({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function We(e,t,n,r,o){void 0===o&&(o=!1);var a={},i=e||{},u=i.white,c=i.black,s=i.themePrimary,l=i.themeDark,f=i.themeDarker,d=i.themeDarkAlt,p=i.themeLighter,v=i.neutralLight,g=i.neutralLighter,h=i.neutralDark,m=i.neutralQuaternary,y=i.neutralQuaternaryAlt,b=i.neutralPrimary,_=i.neutralSecondary,w=i.neutralSecondaryAlt,x=i.neutralTertiary,S=i.neutralTertiaryAlt,k=i.neutralLighterAlt,C=i.accent;return u&&(a.bodyBackground=u,a.bodyFrameBackground=u,a.accentButtonText=u,a.buttonBackground=u,a.primaryButtonText=u,a.primaryButtonTextHovered=u,a.primaryButtonTextPressed=u,a.inputBackground=u,a.inputForegroundChecked=u,a.listBackground=u,a.menuBackground=u,a.cardStandoutBackground=u),c&&(a.bodyTextChecked=c,a.buttonTextCheckedHovered=c),s&&(a.link=s,a.primaryButtonBackground=s,a.inputBackgroundChecked=s,a.inputIcon=s,a.inputFocusBorderAlt=s,a.menuIcon=s,a.menuHeader=s,a.accentButtonBackground=s),l&&(a.primaryButtonBackgroundPressed=l,a.inputBackgroundCheckedHovered=l,a.inputIconHovered=l),f&&(a.linkHovered=f),d&&(a.primaryButtonBackgroundHovered=d),p&&(a.inputPlaceholderBackgroundChecked=p),v&&(a.bodyBackgroundChecked=v,a.bodyFrameDivider=v,a.bodyDivider=v,a.variantBorder=v,a.buttonBackgroundCheckedHovered=v,a.buttonBackgroundPressed=v,a.listItemBackgroundChecked=v,a.listHeaderBackgroundPressed=v,a.menuItemBackgroundPressed=v,a.menuItemBackgroundChecked=v),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),m&&(a.primaryButtonTextDisabled=m,a.disabledSubtext=m),y&&(a.listItemBackgroundCheckedHovered=y),x&&(a.disabledBodyText=x,a.variantBorderHovered=(null===n||void 0===n?void 0:n.variantBorderHovered)||x,a.buttonTextDisabled=x,a.inputIconDisabled=x,a.disabledText=x),b&&(a.bodyText=b,a.actionLink=b,a.buttonText=b,a.inputBorderHovered=b,a.inputText=b,a.listText=b,a.menuItemText=b),k&&(a.bodyStandoutBackground=k,a.defaultStateBackground=k),h&&(a.actionLinkHovered=h,a.buttonTextHovered=h,a.buttonTextChecked=h,a.buttonTextPressed=h,a.inputTextHovered=h,a.menuItemTextHovered=h),_&&(a.bodySubtext=_,a.focusBorder=_,a.inputBorder=_,a.smallInputBorder=_,a.inputPlaceholderText=_),w&&(a.buttonBorder=w),S&&(a.disabledBodySubtext=S,a.disabledBorder=S,a.buttonBackgroundChecked=S,a.menuDivider=S),C&&(a.accentButtonBackground=C),(null===t||void 0===t?void 0:t.elevation4)&&(a.cardShadow=t.elevation4),!r&&(null===t||void 0===t?void 0:t.elevation8)?a.cardShadowHovered=t.elevation8:a.variantBorderHovered&&(a.cardShadowHovered="0 0 1px "+a.variantBorderHovered),a=(0,Ie.__assign)((0,Ie.__assign)({},a),n)}var Ue={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"};function Me(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 a=(0,ze.h)({},e,t,{semanticColors:We(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)&&(a.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var i=0,u=Object.keys(a.fonts);i<u.length;i++){var c=u[i];a.fonts[c]=(0,ze.h)(a.fonts[c],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[c])}return a}({palette:Pe,effects:Fe,fonts:je,spacing:Ue,isInverted:n,disableGlobalClassNames:!1,semanticColors:He(Pe,Fe,void 0,n,t),rtl:void 0},e)}var Ge=Me({}),Ve=[],Ke="theme";function Ze(){var e,t,n,r=(0,Te.z)();(null===(t=null===r||void 0===r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?Qe(r.FabricConfig.legacyTheme):Be.X.getSettings([Ke]).theme||((null===(n=null===r||void 0===r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(Ge=Me(r.FabricConfig.theme)),Be.X.applySettings(((e={}).theme=Ge,e)))}function Je(e){return void 0===e&&(e=!1),!0===e&&(Ge=Me({},e)),Ge}function Qe(e,t){var n;return void 0===t&&(t=!1),Ge=Me(e,t),(0,Ae.EQ)((0,Ie.__assign)((0,Ie.__assign)((0,Ie.__assign)((0,Ie.__assign)({},Ge.palette),Ge.semanticColors),Ge.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],a=e.fonts[o],i=0,u=Object.keys(a);i<u.length;i++){var c=u[i],s=o+c.charAt(0).toUpperCase()+c.slice(1),l=a[c];"fontSize"===c&&"number"===typeof l&&(l+="px"),t[s]=l}return t}(Ge))),Be.X.applySettings(((n={}).theme=Ge,n)),Ve.forEach((function(e){try{e(Ge)}catch(t){}})),Ge}Ze();var Xe={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},Ye={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function qe(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}var $e=n(78456),et=n(56205),tt=$e.h.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),nt=ke.n.getInstance();nt&&nt.onReset&&nt.onReset((function(){for(var e in tt)tt.hasOwnProperty(e)&&tt[e].subset&&(tt[e].subset.className=void 0)}));var rt=function(e){return e.toLowerCase()};function ot(e,t){var n=(0,Ie.__assign)((0,Ie.__assign)({},e),{isRegistered:!1,className:void 0}),r=e.icons;for(var o in t=t?(0,Ie.__assign)((0,Ie.__assign)({},tt.__options),t):tt.__options,r)if(r.hasOwnProperty(o)){var a=r[o],i=rt(o);tt[i]?lt(o):tt[i]={code:a,subset:n}}}function at(e){for(var t=tt.__options,n=function(e){var n=rt(e);tt[n]?delete tt[n]:t.disableWarnings||(0,et.R)('The icon "'.concat(e,'" tried to unregister but was not registered.')),tt.__remapped[n]&&delete tt.__remapped[n],Object.keys(tt.__remapped).forEach((function(e){tt.__remapped[e]===n&&delete tt.__remapped[e]}))},r=0,o=e;r<o.length;r++){n(o[r])}}function it(e,t){tt.__remapped[rt(e)]=rt(t)}function ut(e){var t=void 0,n=tt.__options;if(e=e?rt(e):"",e=tt.__remapped[e]||e)if(t=tt[e]){var o=t.subset;o&&o.fontFace&&(o.isRegistered||((0,Ne.n)(o.fontFace),o.isRegistered=!0),o.className||(o.className=(0,r.Z)(o.style,{fontFamily:o.fontFace.fontFamily,fontWeight:o.fontFace.fontWeight||"normal",fontStyle:o.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&(0,et.R)('The icon "'.concat(e,'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.'));return t}var ct=[],st=void 0;function lt(e){var t=tt.__options;t.disableWarnings||(ct.push(e),void 0===st&&(st=setTimeout((function(){(0,et.R)("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"+ct.slice(0,10).join(", ")+(ct.length>10?" (+ ".concat(ct.length-10," more)"):"")),st=void 0,ct=[]}),2e3)))}var ft=n(38561),dt=n(70983),pt=n(12281),vt="https://res.cdn.office.net/files/fabric-cdn-prod_20230815.002";(0,n(97441).v)("@fluentui/style-utilities","8.9.18"),Ze()},78456:function(e,t,n){n.d(t,{h:function(){return a}});var r=n(50963),o=0,a=function(){function e(){}return e.getValue=function(e,t){var n=i();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=i(),r=n.__callbacks__,o=n[e];if(t!==o){n[e]=t;var a={oldValue:o,value:t,key:e};for(var u in r)r.hasOwnProperty(u)&&r[u](a)}return t},e.addChangeListener=function(e){var t=e.__id__,n=u();t||(t=e.__id__=String(o++)),n[t]=e},e.removeChangeListener=function(e){delete u()[e.__id__]},e}();function i(){var e,t=(0,r.z)()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function u(){return i().__callbacks__}},39409:function(e,t,n){n.d(t,{X:function(){return c}});var r=n(84867),o=n(78456),a={settings:{},scopedSettings:{},inCustomizerContext:!1},i=o.h.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),u=[],c=function(){function e(){}return e.reset=function(){i.settings={},i.scopedSettings={}},e.applySettings=function(t){i.settings=(0,r.__assign)((0,r.__assign)({},i.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){i.scopedSettings[t]=(0,r.__assign)((0,r.__assign)({},i.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=a);for(var r={},o=t&&n.scopedSettings[t]||{},u=t&&i.scopedSettings[t]||{},c=0,s=e;c<s.length;c++){var l=s[c];r[l]=o[l]||n.settings[l]||u[l]||i.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(r){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){u.push(e)},e.unobserve=function(e){u=u.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||u.forEach((function(e){return e()}))},e}()},22388:function(e,t,n){function r(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}n.d(t,{S:function(){return r}})},16114:function(e,t,n){n.d(t,{Y:function(){return o}});var r=n(22388);function o(e){if((0,r.S)()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}},50963:function(e,t,n){n.d(t,{z:function(){return a}});var r=n(22388),o=void 0;try{o=window}catch(i){}function a(e){if((0,r.S)()&&"undefined"!==typeof o){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:o}}},8820:function(e,t,n){n.d(t,{Z:function(){return c}});var r=n(16114),o=n(50963);var a,i=n(30059),u="language";function c(e){if(void 0===e&&(e="sessionStorage"),void 0===a){var t=(0,r.Y)(),n="localStorage"===e?function(e){var t=null;try{var n=(0,o.z)();t=n?n.localStorage.getItem(e):null}catch(r){}return t}(u):"sessionStorage"===e?i.G(u):void 0;n&&(a=n),void 0===a&&t&&(a=t.documentElement.getAttribute("lang")),void 0===a&&(a="en")}return a}},65808:function(e,t,n){n.d(t,{J5:function(){return f},J9:function(){return l}});var r=n(41441),o=!1,a=0,i={empty:!0},u={},c="undefined"===typeof WeakMap?null:WeakMap;function s(){a++}function l(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!c)return e;if(!o){var i=r.n.getInstance();i&&i.onReset&&r.n.getInstance().onReset(s),o=!0}var u,l=0,f=a;return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=u;(void 0===u||f!==a||t>0&&l>t)&&(u=p(),l=0,f=a),i=u;for(var c=0;c<r.length;c++){var s=d(r[c]);i.map.has(s)||i.map.set(s,p()),i=i.map.get(s)}return i.hasOwnProperty("value")||(i.value=e.apply(void 0,r),l++),!n||null!==i.value&&void 0!==i.value||(i.value=e.apply(void 0,r)),i.value}}function f(e){if(!c)return e;var t=new c;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 d(e){return e?"object"===typeof e||"function"===typeof e?e:(u[e]||(u[e]={val:e}),u[e]):i}function p(){return{map:c?new c:null}}},84892:function(e,t,n){function r(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,a=t;r<a.length;r++){var i=a[r];o(e||{},i)}return e}function o(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 a=t[r];if("object"!==typeof a||null===a||Array.isArray(a))e[r]=a;else{var i=n.indexOf(a)>-1;e[r]=i?a:o(e[r]||{},a,n)}}return n.pop(),e}n.d(t,{h:function(){return r}})},30059:function(e,t,n){n.d(t,{G:function(){return o},S:function(){return a}});var r=n(50963);function o(e){var t=null;try{var n=(0,r.z)();t=n?n.sessionStorage.getItem(e):null}catch(o){}return t}function a(e,t){var n;try{null===(n=(0,r.z)())||void 0===n||n.sessionStorage.setItem(e,t)}catch(o){}}},40950:function(e,t,n){n.d(t,{Fy:function(){return u},Y2:function(){return o}});var r=n(50963),o="ms-Fabric--isFocusVisible",a="ms-Fabric--isFocusHidden";function i(e,t){e&&(e.classList.add(t?o:a),e.classList.remove(t?a:o))}function u(e,t,n){var o;n?n.forEach((function(t){return i(t.current,e)})):i(null===(o=(0,r.z)(t))||void 0===o?void 0:o.document.body,e)}},56205:function(e,t,n){n.d(t,{R:function(){return r}});function r(e){console&&console.warn&&console.warn(e)}},28480:function(e,t,n){n.d(t,{EQ:function(){return d},hN:function(){return l}});var r=function(){return r=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},r.apply(this,arguments)},o="undefined"===typeof window?n.g:window,a=o&&o.CSPSettings&&o.CSPSettings.nonce,i=function(){var e=o.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=r(r({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=r(r({},e),{registeredThemableStyles:[]}));return o.__themeState__=e,e}(),u=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,c=function(){return"undefined"!==typeof performance&&performance.now?performance.now():Date.now()};function s(e){var t=c();e();var n=c();i.perf.duration+=n-t}function l(e,t){void 0===t&&(t=!1),s((function(){var n=Array.isArray(e)?e:g(e),r=i.runState,o=r.mode,a=r.buffer,u=r.flushTimer;t||1===o?(a.push(n),u||(i.runState.flushTimer=setTimeout((function(){i.runState.flushTimer=0,s((function(){var e=i.runState.buffer.slice();i.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&f(t)}))}),0))):f(n)}))}function f(e,t){i.loadStyles?i.loadStyles(v(e).styleString,e):function(e){if("undefined"===typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=v(e),o=r.styleString,u=r.themable;n.setAttribute("data-load-themed-styles","true"),a&&n.setAttribute("nonce",a);n.appendChild(document.createTextNode(o)),i.perf.count++,t.appendChild(n);var c=document.createEvent("HTMLEvents");c.initEvent("styleinsert",!0,!1),c.args={newStyle:n},document.dispatchEvent(c);var s={styleElement:n,themableStyle:e};u?i.registeredThemableStyles.push(s):i.registeredStyles.push(s)}(e)}function d(e){i.theme=e,function(){if(i.theme){for(var e=[],t=0,n=i.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||(p(i.registeredStyles),i.registeredStyles=[]);3!==e&&1!==e||(p(i.registeredThemableStyles),i.registeredThemableStyles=[])}(1),f([].concat.apply([],e)))}}()}function p(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function v(e){var t=i.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,a=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 "'+a+'".'),o||a}return e.rawString})).join(""),themable:n}}function g(e){var t=[];if(e){for(var n=0,r=void 0;r=u.exec(e);){var o=r.index;o>n&&t.push({rawString:e.substring(n,o)}),t.push({theme:r[1],defaultValue:r[2]}),n=u.lastIndex}t.push({rawString:e.substring(n)})}return t}},84867:function(e,t,n){n.r(t),n.d(t,{__assign:function(){return a},__asyncDelegator:function(){return w},__asyncGenerator:function(){return _},__asyncValues:function(){return x},__await:function(){return b},__awaiter:function(){return l},__classPrivateFieldGet:function(){return O},__classPrivateFieldIn:function(){return T},__classPrivateFieldSet:function(){return I},__createBinding:function(){return d},__decorate:function(){return u},__exportStar:function(){return p},__extends:function(){return o},__generator:function(){return f},__importDefault:function(){return E},__importStar:function(){return C},__makeTemplateObject:function(){return S},__metadata:function(){return s},__param:function(){return c},__read:function(){return g},__rest:function(){return i},__spread:function(){return h},__spreadArray:function(){return y},__spreadArrays:function(){return m},__values:function(){return v}});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 a=function(){return a=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},a.apply(this,arguments)};function i(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 u(e,t,n,r){var o,a=arguments.length,i=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)i=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(i=(a<3?o(i):a>3?o(t,n,i):o(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i}function c(e,t){return function(n,r){t(n,r,e)}}function s(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(t){a(t)}}function u(e){try{c(r.throw(e))}catch(t){a(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(i,u)}c((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(o=2&a[0]?r.return:a[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;switch(r=0,o&&(a=[2&a[0],o.value]),a[0]){case 0:case 1:o=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,r=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(6===a[0]&&i.label<o[1]){i.label=o[1],o=a;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(a);break}o[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(u){a=[6,u],r=0}finally{n=o=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}var d=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 p(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||d(t,e,n)}function v(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 g(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,a=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)i.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function h(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function m(){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 a=arguments[t],i=0,u=a.length;i<u;i++,o++)r[o]=a[i];return r}function y(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;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||[]),a=[];return r={},i("next"),i("throw"),i("return"),r[Symbol.asyncIterator]=function(){return this},r;function i(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||u(e,t)}))})}function u(e,t){try{(n=o[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,s):l(a[0][2],n)}catch(r){l(a[0][3],r)}var n}function c(e){u("next",e)}function s(e){u("throw",e)}function l(e,t){e(t),a.shift(),a.length&&u(a[0][0],a[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=v(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 S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function C(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)&&d(t,e,n);return k(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function O(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 T(e,t){if(null===t||"object"!==typeof t&&"function"!==typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"===typeof e?t===e:e.has(t)}}}]);
//# sourceMappingURL=7354.b700e918.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[7387],{87387:function(e,t,n){function p(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 p}})}}]);
//# sourceMappingURL=7387.d4b6bf72.chunk.js.map
/*! For license information please see 8022.5ac488a5.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[8022],{48022:function(e,t,n){n.r(t),n.d(t,{Button:function(){return U},ButtonGroup:function(){return V},Callout:function(){return B},Captcha:function(){return se},Checkbox:function(){return F},Dropdown:function(){return z},Error:function(){return G},FilePicker:function(){return ce},FluentUIElementFactory:function(){return Jc},Group:function(){return X},Hyperlink:function(){return Y},Image:function(){return oe},Label:function(){return J},Modal:function(){return Q},Overlay:function(){return $},Panel:function(){return Z},Radio:function(){return ee},SecurePropertyLabel:function(){return le},Separator:function(){return ae},Spinner:function(){return te},Text:function(){return ie},TextBox:function(){return re},oneDSService:function(){return Xc}});var i=n(80322),r=n.n(i),o=n(77557),a=n(47751),s=n(29178),c=n(7354),l=n(93258),u=n(58793),d=n(6589),p=n(43639),f=n(92256),g=n(12300),h=n(12318),m=n(87841),v=n(42682),y=n(65086),C=n(51416),b=n(21441),E=n(68301),x=n(66298),I=n(47495),T=n(82180),_=n(23256),w=n(35566),S=n(98660),N=n(79211),A=n(14452),P=n(26858),k=n(16542),O=n(79989),D=function(e,t){return D=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])},D(e,t)};function L(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}D(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var R=function(){return R=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},R.apply(this,arguments)};Object.create;function M(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var U=function(e){function t(t){var n=e.call(this,t)||this;return n.renderIcon=function(e){var t={iconName:""};return e&&(e.indexOf("add-icon")>=0?t.iconName="Add":e.indexOf("edit-icon")>=0?t.iconName="PageEdit":e.indexOf("close-icon")>=0&&(t.iconName="ChromeClose")),t},n}return L(t,e),t.prototype.render=function(){if(null!=this.props.styleHints)return this.renderWithStyleHints();var e=this.props,t=e.id,n=e.displayContent,r=e.onClick,u=e.additionalClassName,d=e.disabled,p=e.ariaLabel,f=e.primary,g=e.tabIndex,h=e.propertyElementRef,m=(e.styleHints,{});return u&&(m.root={},u.indexOf("margin-left")>=0&&(m.root.marginLeft="16px"),u.indexOf("button-blue")>=0&&(m.root.color="#006FC9"),u.indexOf("full-width")>=0&&(m.root.width="100%"),u.indexOf("negative-margin")>=0&&(m.root.margin="-4px"),u.indexOf("no-padding")>=0&&(m.root.padding="0px")),u&&u.indexOf("action-trigger")>=0?i.createElement(o.r,{id:t,onClick:r,className:u,disabled:d,ariaLabel:p,primary:f,iconProps:this.renderIcon(u),componentRef:h,styles:m},n):u&&u.indexOf("close-icon")>=0?i.createElement(a.K,{id:t,onClick:r,className:u,disabled:d,ariaLabel:"Close",primary:f,title:"Close",iconProps:this.renderIcon(u),componentRef:h}):f?i.createElement(s.j,{id:t,onClick:r,className:u,disabled:d,ariaLabel:p,primary:f,tabIndex:g?Number(g):void 0,componentRef:h,styles:(0,c.l8)(m,this.getPrimaryButtonStyles(this.props))},n):i.createElement(l.Y,{id:t,onClick:r,className:u,disabled:d,ariaLabel:p,primary:f,tabIndex:g?Number(g):void 0,componentRef:h,styles:(0,c.l8)(m,this.getButtonStyles(this.props))},n)},t.prototype.renderWithStyleHints=function(){var e=this.props,t=e.id,n=e.displayContent,r=e.onClick,a=e.additionalClassName,u=e.disabled,d=e.ariaLabel,p=e.primary,f=e.tabIndex,g=e.propertyElementRef,h=e.styleHints,m={id:t,onClick:r,className:a,disabled:u,ariaLabel:d,primary:p,tabIndex:f?Number(f):void 0,componentRef:g,styles:this.getStylesFromHints(h)},v=p?"primary":"default";switch(v=(null===a||void 0===a?void 0:a.includes("action-trigger"))?"action":v){case"primary":return m.styles=(0,c.l8)(m.styles,this.getPrimaryButtonStyles(this.props)),i.createElement(s.j,R({},m),n);case"action":return m.iconProps=this.getIconProps(h),i.createElement(o.r,R({},m),n);default:return m.styles=(0,c.l8)(m.styles,this.getButtonStyles(this.props)),i.createElement(l.Y,R({},m),n)}},t.prototype.getIconProps=function(e){if(e){var t=e.includes("icon-addTo")?"addTo":void 0;if(t)return{iconName:t}}},t.prototype.getPrimaryButtonStyles=function(e){var t,n;if((null===(t=e.theme)||void 0===t?void 0:t.button)||(null===(n=e.theme)||void 0===n?void 0:n.primaryButton)){var i=e.theme,r=i.button,o=i.primaryButton;return{root:o||r,rootHovered:(null===o||void 0===o?void 0:o.hover)||(null===r||void 0===r?void 0:r.hover),rootFocused:(null===o||void 0===o?void 0:o.focus)||(null===r||void 0===r?void 0:r.focus)}}},t.prototype.getButtonStyles=function(e){var t;if(null===(t=e.theme)||void 0===t?void 0:t.button){var n=e.theme.button;return{root:n,rootHovered:n.hover,rootFocused:n.focus}}},t.prototype.getStylesFromHints=function(e){if(e){for(var t={},n=0,i=e;n<i.length;n++){switch(i[n].toLowerCase()){case"text-accent":t=(0,c.l8)(t,{root:{color:"#0078D4"}});break;case"width-fill":t=(0,c.l8)(t,{root:{width:"100%"}});break;case"width-fill-large":t=(0,c.l8)(t,{root:{width:"100%",maxWidth:"200px"}});break;case"padding-none":t=(0,c.l8)(t,{root:{padding:0}});break;case"padding-small":t=(0,c.l8)(t,{root:{padding:"0.75rem",height:"unset"}});break;case"padding-medium":t=(0,c.l8)(t,{root:{padding:"1.2rem",height:"unset"}});break;case"margin-none":t=e.some((function(e){return e.startsWith("icon-")}))?(0,c.l8)(t,{root:{margin:0},icon:{margin:0}}):(0,c.l8)(t,{root:{margin:0},label:{margin:0}});break;case"margin-top-small":t=(0,c.l8)(t,{root:{marginTop:"0.75rem"}});break;case"content-align-start":t=(0,c.l8)(t,{flexContainer:{justifyContent:"flex-start"}});break;case"display-hyperlink":t=(0,c.l8)(t,{root:{boxSizing:"unset",fontWeight:"inherit",fontSize:"inherit",border:"none",padding:"0px",borderRadius:"unset",minWidth:"unset",height:"unset",margin:"0px",background:"none",color:"rgb(0, 120, 212)",textDecoration:"underline"},rootHovered:{backgroundColor:"transparent",color:"rgb(0, 69, 120)"},label:{margin:0,fontWeight:"inherit"}})}}return t}},t}(i.Component),V=function(e){function t(t){return e.call(this,t)||this}return L(t,e),t.prototype.render=function(){var e=this.props,t=(e.additionalClassName,e.id),n=(e.displayId,e.options),r=void 0===n?[]:n,o=(e.optionsDirection,e.styleHints),a={id:t,tokens:this.getTokensFromStyleHints(o)},s={grow:1};return i.createElement(u.B,R({},a),r&&r.map((function(e,t){return i.createElement(u.B.Item,R({},s,{key:t}),e&&i.cloneElement(e,{key:t}))})))},t.prototype.getTokensFromStyleHints=function(e){if(e){for(var t,n=0,i=e;n<i.length;n++){switch(i[n].toLowerCase()){case"gap-none":t=R(R({},t),{childrenGap:0});break;case"gap-small":t=R(R({},t),{childrenGap:"0.5rem"});break;case"gap-medium":t=R(R({},t),{childrenGap:"1rem"})}}return t}},t}(i.Component),F=function(e){var t=e.additionalClassName,n=e.ariaLabel,r=e.checked,o=e.disabled,a=e.displayContent,s=e.elementId,c=e.onChange,l=(e.tabIndex,e.propertyElementRef);return i.createElement(d.S,{ariaLabel:n,className:t,defaultChecked:r,checked:r,disabled:o,id:s,label:a,onChange:function(e,t){c&&c(t||e&&e.currentTarget&&e.currentTarget.checked)},componentRef:l,styles:function(e){var t;if(!(null===(t=e.theme)||void 0===t?void 0:t.checkbox))return;var n=e.theme.checkbox;return{root:n,label:n.label}}(e)})},B=function(e){function t(t){var n=e.call(this,t)||this;return n.toggle=function(){return n.setState({visible:!n.state.visible})},n.state={visible:!1},n.escapeHandler=n.escapeHandler.bind(n),n}return L(t,e),t.prototype.escapeHandler=function(e){27===e.keyCode&&this.state.visible&&(this.setState({visible:!1}),e.stopPropagation())},t.prototype.componentDidMount=function(){document.addEventListener("keydown",this.escapeHandler,!1)},t.prototype.componentWillUnmount=function(){document.removeEventListener("keydown",this.escapeHandler,!1)},t.prototype.render=function(){var e=this.props,t=e.id,n=e.children,r=e.linkAdditionalClassName,o=e.linkText,s=e.linkAriaLabel,c=e.tabIndex,l=this.state.visible;return i.createElement(i.Fragment,null,i.createElement(a.K,{key:"".concat(t,"-toggle"),id:t,className:r,iconProps:{iconName:"Info"},title:o,ariaLabel:s,onClick:this.toggle,styles:{root:{marginBottom:-3}},tabIndex:c?Number(c)+1:void 0,"aria-expanded":l}),l&&i.createElement(p.P,{key:"".concat(t,"-dialog"),target:"#".concat(t),setInitialFocus:!0,onDismiss:this.toggle,ariaDescribedBy:"".concat(t,"-container"),role:"alert",style:{padding:"20px"}},i.createElement("div",{id:"".concat(t,"-container"),style:{maxHeight:"75vh"}},n&&n.map((function(e,t){return e&&i.cloneElement(e,{key:t})})))))},t}(i.Component),H="__placeholder__",z=function(e){function t(t){var n=e.call(this,t)||this;return n.dropdownOption=function(e){return n.optionsElements&&n.optionsElements[e.key.toString()]?i.createElement(i.Fragment,null,n.optionsElements[e.key.toString()]):i.createElement("div",{style:{display:"flex"}},e.data&&e.data.imageUrl&&i.createElement(f._,{src:e.data.imageUrl,"aria-hidden":"true",height:"2em"}),i.createElement("span",null,e.text))},n.dropdownTitle=function(e){return n.dropdownOption(e[0])},n.downCaret=function(e){return i.createElement(g.I,{iconName:"ChevronDown"})},n}return L(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.onChange,r=e.value,o=e.inlineError,a=e.isInValidationErrorGroup,s=e.additionalClassName,l=e.hidden,u=e.disabled,d=e.required,p=e.dropdownOptions,f=e.optionsElements,g=e.placeholder,m=e.ariaLabelId,v=e.onFocus,y=e.onBlur,C=e.showDisplayName,b=e.displayName,E=e.tabIndex,x=e.propertyElementRef,I=C?b:null,T=a&&!u;this.dropdownOptions=M([],p,!0),this.optionsElements=R({},f),g&&(this.dropdownOptions.unshift({key:H,text:g}),this.optionsElements&&(this.optionsElements.__placeholder__=i.createElement("span",null,g)));var _=null;u&&(_={label:{color:"rgb(118,118,118)"}});var w=(0,c.l8)(_,this.getStylesFromHints(this.props.styleHints),this.getStyles(this.props));return i.createElement(h.m,{id:t,options:this.dropdownOptions,onChange:function(e,t,i){var r=t&&t.key&&t.key.toString();n&&n(r===H?"":r)},selectedKey:!g||void 0!==r&&""!==r?r:H,errorMessage:o||(T?" ":void 0),className:s,hidden:l,disabled:u,required:d,label:I,placeholder:g,"aria-labelledby":m,onFocus:function(e){var t=e&&e.currentTarget&&e.currentTarget.value;v&&v(t===H?"":t)},onBlur:function(e){var t=e&&e.currentTarget&&e.currentTarget.value;y&&y(t===H?"":t)},onRenderOption:this.dropdownOption,onRenderTitle:this.dropdownTitle,styles:w,tabIndex:u?-1:E?Number(E):0,componentRef:x})},t.prototype.getStyles=function(e){var t;if(null===(t=e.theme)||void 0===t?void 0:t.dropdown){var n=e.theme.dropdown;return{title:n,dropdown:{":focus::after":n.focus},dropdownItems:n.options,dropdownItemSelected:n.optionSelected,subComponentStyles:{label:{root:n.label}}}}},t.prototype.getStylesFromHints=function(e){if(e){for(var t={},n=0,i=e;n<i.length;n++){switch(i[n].toLowerCase()){case"padding-horizontal-medium":var r={paddingLeft:o="1.2rem",paddingRight:o};t=(0,c.l8)(t,{title:r,dropdownItem:r,dropdownItemSelected:r,caretDownWrapper:{padding:"0 "+o,right:0}});break;case"padding-vertical-small":var o;r={paddingTop:o="0.75rem",paddingBottom:o,lineHeight:"unset",height:"unset"};t=(0,c.l8)(t,{title:r,dropdownItem:r,dropdownItemSelected:r,caretDownWrapper:{display:"flex",alignItems:"center",height:"100%"}})}}return t}},t}(i.Component),G=function(e){var t=e.errorMessage;if(!t)return null;var n=(0,c.O4)(),r=n.semanticColors,o={errorMessage:["pidl-office-fabric-error-message",c.lw.slideDownIn20,n.fonts.small,{color:r.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}]},a=(0,P.Z)()(o,{hasErrorMessage:!0});return i.createElement("div",{role:"alert"},i.createElement("p",{className:a.errorMessage},i.createElement("span",null,t)))};"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;var W,q,j=(W=function(e){!function(){var t={}.hasOwnProperty;function n(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,i(n)))}return e}function i(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return n.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var i="";for(var o in e)t.call(e,o)&&e[o]&&(i=r(i,o));return i}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(n.default=n,e.exports=n):window.classNames=n}()},W(q={exports:{}},q.exports),q.exports),K=k.pidlReactClassPrefix+"fluent-ui.",X=function(e){function t(t){return e.call(this,t)||this}return L(t,e),t.prototype.render=function(){var e;if(null!=this.props.styleHints)return this.renderWithStyleHints();var t=this.props,n=t.childNodes,r=void 0===n?[]:n,o=t.layoutOrientation,a=t.errorNode,s=t.labelNode,c=t.displaySettings,l=t.elementId,d=(t.styleHints,this.props.groupClassName),p=d.filter((function(e){return(0,k.startsWith)(e,K)})),f=(null===(e=null===c||void 0===c?void 0:c.submitButtonBlock)||void 0===e?void 0:e.id)&&l.endsWith(c.submitButtonBlock.id)&&!c.submitButtonBlock.show?{display:"none"}:void 0,g=(d=d.filter((function(e){return!(0,k.startsWith)(e,k.pidlReactClassPrefix)}))).includes("pidlddc-full-width"),h=g?{grow:1}:void 0;if(d.includes("pidlddc-absolute-bottom")){f=R(R({},f),{position:"absolute",bottom:"10px"}),g&&(f.width="100%")}var m={id:l,className:j(d),horizontal:"inline"===o,style:f},v=[];return d.includes("pidlddc-space-between")&&(m.horizontalAlign="space-between"),p.forEach((function(e){var t=(e=e.substring(K.length)).split(".");if("columnGap"===t[0]&&(m=R(R({},m),{gap:"0 ".concat(t[1])})),"width"===t[0]){var n={width:"".concat(t[1])};f=R(R({},f),n),m.style=f}"innerStackFlex"===t[0]&&(v={root:{flex:t[1]}})})),i.createElement(u.B,R({},m),s,r&&r.map((function(e,t){return i.createElement(u.B.Item,R({},h,{align:"auto",key:t,styles:R({},v)}),e&&i.cloneElement(e,{key:t}))})),a)},t.prototype.renderWithStyleHints=function(){var e=this,t=this.props,n=t.childNodes,r=void 0===n?[]:n,o=t.errorNode,a=t.labelNode,s=this.getStackProps(this.props);return i.createElement(u.B,R({},s),a,r&&r.map((function(t,n){var r=e.getStackItemProps(t,s.horizontal);return i.createElement(u.B.Item,R({},r,{key:n}),t&&i.cloneElement(t,{key:n}))})),o)},t.prototype.getStackStyle=function(e,t){var n;return(null===(n=null===e||void 0===e?void 0:e.submitButtonBlock)||void 0===n?void 0:n.id)&&(null===t||void 0===t?void 0:t.endsWith(e.submitButtonBlock.id))&&!e.submitButtonBlock.show?{display:"none"}:void 0},t.prototype.getStackStylesFromHints=function(e){if(e){for(var t={},n=0,i=e;n<i.length;n++){switch(i[n].toLowerCase()){case"align-vertical-center":t=(0,c.l8)(t,{root:{alignItems:"center"}});break;case"padding-top-small":t=(0,c.l8)(t,{root:{paddingTop:"0.5rem"}});break;case"padding-vertical-medium":t=(0,c.l8)(t,{root:{paddingTop:"1.2rem",paddingBottom:"1.2rem"}});break;case"padding-medium":t=(0,c.l8)(t,{root:{padding:"1.5rem"}});break;case"anchor-bottom":case"dock-bottom":t=(0,c.l8)(t,{root:{position:"absolute",bottom:0,width:"100%"}});break;case"dock-horizontal":t=(0,c.l8)(t,{root:{position:"absolute",left:0,right:0,width:"100%"}});break;case"width-fill":t=(0,c.l8)(t,{root:{width:"100%"}});break;case"background-opaque":t=(0,c.l8)(t,{root:{backgroundColor:"white"}});break;case"margin-top-small":t=(0,c.l8)(t,{root:{"margin-top":"0.5rem"}})}}return t}},t.prototype.getStackTokensFromHints=function(e){if(e){for(var t={},n=0,i=e;n<i.length;n++){switch(i[n].toLowerCase()){case"gap-none":t=R(R({},t),{childrenGap:0});break;case"gap-small":t=R(R({},t),{childrenGap:"0.5rem"});break;case"gap-medium":t=R(R({},t),{childrenGap:"1rem"})}}return t}},t.prototype.getGrowPropFromStyleHints=function(e,t){return void 0===t&&(t=!1),t?e.includes("width-fill")?1:void 0:e.includes("height-fill")?1:void 0},t.prototype.getStackProps=function(e){var t=e.groupClassName,n=e.layoutOrientation,i=e.displaySettings,r=e.elementId,o=e.styleHints,a="inline"===n||o.includes("direction-horizontal");return{id:r,className:j(t),horizontal:a,styles:this.getStackStylesFromHints(o),style:this.getStackStyle(i,r),tokens:this.getStackTokensFromHints(o),grow:this.getGrowPropFromStyleHints(o)}},t.prototype.getStackItemProps=function(e,t){var n=this.getReactNodeStyleHints(e)||[];return{grow:this.getGrowPropFromStyleHints(n,t),align:"auto"}},t.prototype.getReactNodeStyleHints=function(e){var t,n,i,r,o=null===e||void 0===e?void 0:e.props,a=null===(t=null===o||void 0===o?void 0:o.element)||void 0===t?void 0:t.styleHints;if(o&&!a){var s=o.children&&"function"==typeof o.children?o.children:void 0;a=null===(r=null===(i=null===(n=null===s||void 0===s?void 0:s(0))||void 0===n?void 0:n.props)||void 0===i?void 0:i.element)||void 0===r?void 0:r.styleHints}return a},t}(i.Component),Y=function(e){var t=e.id,n=e.displayContent,r=e.href,o=e.additionalClassName,a=e.ariaLabel,s=e.onClick,c=e.tabIndex;return i.createElement(m.N,{id:t,href:r,className:o,"aria-label":a,onClick:function(e){e&&e.preventDefault&&e.preventDefault(),s&&s(e)},tabIndex:c?Number(c):void 0,styles:R(R({},function(e){var t;if(!(null===(t=e.theme)||void 0===t?void 0:t.link))return;var n=e.theme.link;return{root:n,selectors:{":hover":n.hover,":focus":n.focus,":visited:":n.visited}}}(e)),{root:{textDecoration:"underline"}})},n)},J=function(e){var t=e.elementId,n=e.required,r=e.disabled,o=e.displayContent;return i.createElement(v.J,{id:t,disabled:r,required:n},o)},Q=function(e){function t(t){return e.call(this,t)||this}return L(t,e),t.prototype.render=function(){var e=this.props,t=e.childNodes,n=(e.layoutOrientation,e.elementId),r=e.groupClassName,o=(e.displayId,e.type,e.displaySettings,e.open);return i.createElement(y.a,{key:n,containerClassName:j(r),isOpen:o},t)},t}(i.Component),Z=function(e){function t(t){return e.call(this,t)||this}return L(t,e),t.prototype.render=function(){var e=this.props,t=e.elementId,n=e.children,r=e.additionalClassName,o=e.size,a=e.customWidth,s=e.hasCloseButton,c=e.isLightDismiss,l=e.closeButtonAriaLabel,u=e.onDismissed,d=void 0;switch(o){case"small":case"smallFixedFar":d=C.H.smallFixedFar;break;case"smallFixedNear":d=C.H.smallFixedNear;break;case"smallFluid":d=C.H.smallFluid;break;case"medium":d=C.H.medium;break;case"large":d=C.H.large;break;case"largeFixed":d=C.H.largeFixed;break;case"extraLarge":d=C.H.extraLarge;break;case"custom":d=C.H.custom;break;case"customNear":d=C.H.customNear}return i.createElement(b.Z,{key:"".concat(t,"-Panel"),className:r,onDismissed:u,type:d,customWidth:a,hasCloseButton:s,isLightDismiss:c,closeButtonAriaLabel:l,isOpen:!0},n)},t}(i.Component),$=function(e){function t(t){return e.call(this,t)||this}return L(t,e),t.prototype.render=function(){var e=this.props,t=e.elementId,n=e.children,r=e.additionalClassName,o=e.isDarkThemed,a=e.onClick;return i.createElement(E.h,{key:"".concat(t,"-modal"),className:r,isDarkThemed:o,onClick:a},n)},t}(i.Component),ee=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e,t){n.props.onSelect&&n.props.onSelect(t.key)},n}return L(t,e),t.prototype.getAriaLabel=function(e,t){var n,i,r,o,a,s,c,l,u,d,p,f,g,h,m,v=null===e||void 0===e?void 0:e.displayText;if(v)return v;if(t){var y=t.props,C=null===(n=null===y||void 0===y?void 0:y.element)||void 0===n?void 0:n.tags;if(null===C||void 0===C?void 0:C["pi-container"]){var b=null===(r=null===(i=null===y||void 0===y?void 0:y.childNodes)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,(function(t){var n,i;return(null===(i=null===(n=t.props)||void 0===n?void 0:n.element)||void 0===i?void 0:i.id)==="optionDisplayGroup_".concat(e.value)})),E=null===(s=null===(a=null===(o=null===b||void 0===b?void 0:b.props)||void 0===o?void 0:o.childNodes)||void 0===a?void 0:a.find)||void 0===s?void 0:s.call(a,(function(t){var n,i;return(null===(i=null===(n=t.props)||void 0===n?void 0:n.element)||void 0===i?void 0:i.id)==="optionTextGroup_".concat(e.value)})),x=null===(p=null===(d=null===(u=null===(l=null===(c=null===E||void 0===E?void 0:E.props)||void 0===c?void 0:c.childNodes)||void 0===l?void 0:l.map)||void 0===u?void 0:u.call(l,(function(e){var t,n;return null===(n=null===(t=e.props)||void 0===t?void 0:t.element)||void 0===n?void 0:n.displayContent})))||void 0===d?void 0:d.join)||void 0===p?void 0:p.call(d," ");return x}if(null===C||void 0===C?void 0:C["address-container"]){x=null===(m=null===(h=null===(g=null===(f=null===y||void 0===y?void 0:y.childNodes)||void 0===f?void 0:f.map)||void 0===g?void 0:g.call(f,(function(e){var t,n;return null===(n=null===(t=e.props)||void 0===t?void 0:t.element)||void 0===n?void 0:n.displayContent})))||void 0===h?void 0:h.join)||void 0===m?void 0:m.call(h," ");return x}}return null},t.prototype.fixLogoAlt=function(e,t){var n,i,r,o,a,s,c,l,u,d,p,f,g,h,m,v;if(t){var y=t.props,C=null===(n=null===y||void 0===y?void 0:y.element)||void 0===n?void 0:n.tags;if(null===C||void 0===C?void 0:C["pi-container"]){var b=null===(r=null===(i=y.childNodes)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,(function(t){return t.key==="optionLogo_".concat(e)}));if((null===(o=null===b||void 0===b?void 0:b.props)||void 0===o?void 0:o.element)&&!b.props.element.accessibilityName){var E=null===(v=null===(m=null===(h=null===(g=null===(f=null===(p=null===(d=null===(u=null===(l=null===(c=null===(s=null===(a=t._owner)||void 0===a?void 0:a.stateNode)||void 0===s?void 0:s.state)||void 0===c?void 0:c.properties)||void 0===l?void 0:l.id)||void 0===u?void 0:u.possibleOptions)||void 0===d?void 0:d[e])||void 0===p?void 0:p.pidlAction)||void 0===f?void 0:f.context)||void 0===g?void 0:g.instance)||void 0===h?void 0:h.paymentMethod)||void 0===m?void 0:m.display)||void 0===v?void 0:v.name;b.props.element.accessibilityName=E}}}},t.prototype.isRadioRequired=function(e,t){var n;if(t){var i=t.props,r=null===(n=null===i||void 0===i?void 0:i.element)||void 0===n?void 0:n.tags;if(null===r||void 0===r?void 0:r["address-container"])return!1}return e},t.prototype.render=function(){var e=this,t=this.props,n=t.elementId,r=t.options,o=t.showDisplayName,a=t.displayName,s=t.additionalClassName,l=t.disabled,u=t.required,d=t.selectedValue,p=t.optionsElements,f=(t.propertyName,t.propertyElementRef),g=(0,c.Zq)({display:"flex",alignItems:"center"});this.optionsElements=p;var h=[],m=u;return r.forEach((function(t){var n,r={};s&&s.indexOf("gray-option")>=0&&(r.root={backgroundColor:"#e1dfdd"});var o={key:t.value,text:t.displayText,disabled:t.isDisabled,styles:R(R({},r),e.getStyles(e.props))},a=null===(n=e.optionsElements)||void 0===n?void 0:n[o.key];o.ariaLabel=e.getAriaLabel(t,a),m=e.isRadioRequired(u,a),e.fixLogoAlt(o.key,a),a&&(o.onRenderField=function(e,t){return i.createElement("div",{className:g},t(e),a)}),h.push(o)})),i.createElement(x.n,{id:n,className:j(s),defaultSelectedKey:d,options:h,onChange:this.onChange,label:o?a:"",required:m,disabled:l,componentRef:f})},t.prototype.getStyles=function(e){var t;if(null===(t=e.theme)||void 0===t?void 0:t.radio){var n=e.theme.radio;return{root:n,subComponentStyles:{label:{root:n.label}}}}},t}(i.Component),te=function(e){var t=e.elementId,n=e.additionalClassName,r=e.ariaLabel,o=e.ariaLive,a=e.label,s=e.labelPosition,c=e.size;return i.createElement(I.y,{id:t,className:n,ariaLabel:r,ariaLive:"assertive"===o?"assertive":"off"===o?"off":"polite",label:a,labelPosition:"left"===s?"left":"top"===s?"top":"right"===s?"right":"bottom",size:"xSmall"===c?0:"small"===c?1:"medium"===c?2:3})},ne=function(e){var t=(0,c.l8)(function(e){if(!e)return;for(var t={},n=0,i=e;n<i.length;n++){switch(i[n].toLowerCase()){case"text-alert":t=(0,c.l8)(t,{root:{color:"rgb(199, 33, 39)"}});break;case"content-align-start":t=(0,c.l8)(t,{root:{display:"block",textAlign:"start"}});break;case"text-bold":t=(0,c.l8)(t,{root:{fontWeight:600}});break;case"padding-top-medium":t=(0,c.l8)(t,{root:{paddingTop:"1.2rem"}});break;case"padding-bottom-small":t=(0,c.l8)(t,{root:{paddingBottom:"0.75rem"}});break;case"padding-end-x-small":t=(0,c.l8)(t,{root:{paddingRight:"0.5rem"}});break;case"alignment-horizontal-center":t=(0,c.l8)(t,{root:{display:"block",textAlign:"center"}});break;case"add-sign-style":t=(0,c.l8)(t,{root:{fontFamily:"Segoe MDL2 Assets"}});break;case"text-accent":t=(0,c.l8)(t,{root:{color:"#0078D4"}})}}return t}(e.styleHints),function(e){var t;if(!(null===(t=e.theme)||void 0===t?void 0:t.text))return;return{root:e.theme.text}}(e));return e.hidden?null:e.variant&&"xLarge"==e.variant?i.createElement(T.E,{id:e.id,className:e.additionalClassName,block:!e.inline,variant:e.variant,style:e.style,styles:t,as:"h2"},e.displayContent):i.createElement(T.E,{id:e.id,className:e.additionalClassName,block:!e.inline,variant:e.variant,style:e.style,styles:t},e.displayContent)},ie=function(e){var t,n,r=(0,c.Zq)({"margin-top":"4px","padding-right":"5px",color:"#C72127"}),o=R({},e);return(null===(t=e.additionalClassName)||void 0===t?void 0:t.includes("pidlddc-single-pi-display-pidl-text"))&&(o.style=R({paddingLeft:"10px",paddingTop:"1.0em",fontWeight:"bold"},e.style),(null===(n=e.additionalClassName)||void 0===n?void 0:n.includes("pidlddc-single-pi-display-pidl-text-expired"))&&(o.style=R({color:"red"},o.style))),e.additionalClassName&&e.additionalClassName.indexOf("pidlddc-warning-icon")>=0?i.createElement(u.B,{horizontal:!0,horizontalAlign:"space-between"},i.createElement(_.a,null,i.createElement(w.l8,{iconName:"Error",className:r})),i.createElement(_.a,null,ne(o))):ne(o)},re=function(e){function t(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=n.props.onChange;t&&e.target&&t(e.target.value)},n.onGetErrorStyle=function(e){return!n.props.inlineError?{}:{fieldGroup:{borderColor:(0,c.O4)().semanticColors.errorText}}},n.onRenderLabel=function(){var e=n.props,t=e.showDisplayName,r=e.id,o=e.displayName,a=e.inlineHelpLink,s=e.required,c=r+"_label",l=t?i.createElement(v.J,{required:s,htmlFor:r,id:c},o):null;return a?i.createElement(u.B,{horizontal:!0,verticalAlign:"center"},l,a):l},n}return L(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.value,r=e.additionalClassName,o=e.inlineError,a=e.isInValidationErrorGroup,s=e.hidden,l=e.disabled,u=e.required,d=e.placeholder,p=(e.ariaLabelId,e.maskInput),f=e.maxLength,g=e.onFocus,h=e.onBlur,m=e.inlineLogo,v=e.displayName,y=e.showDisplayName,C=e.inlineHelpLink,b=e.tabIndex,E=e.propertyElementRef,x=e.styleHints,I={src:m,shouldFadeIn:!0,width:"1.5rem",height:"1.5rem"},T=m?{iconType:S.A.image,imageProps:I}:null,_=a&&!l,w=R({id:t,iconProps:T,value:n,onBlur:function(e){h&&e.currentTarget&&h(e.currentTarget.value)},onChange:this.onChange,onFocus:function(e){g&&e.currentTarget&&g(e.currentTarget.value)},errorMessage:o||(_?" ":void 0),className:r,hidden:s,disabled:l,label:v,required:u,placeholder:d,maxLength:f,styles:(0,c.l8)(this.onGetErrorStyle,this.getStylesFromHints(x),this.getStyles(this.props)),tabIndex:b?Number(b):void 0,componentRef:E},this.getPropsFromStyles(this.props.theme));return y||(w["aria-labelledby"]=null,w.label=null,w.ariaLabel=v),C&&(w["aria-labelledby"]=t,w.onRenderLabel=this.onRenderLabel),p&&(w.type="password"),i.createElement(N.A,R({},w))},t.prototype.getStyles=function(e){var t;if(null===(t=e.theme)||void 0===t?void 0:t.textbox){var n=e.theme.textbox;return{field:R(R({},n),{":focus":n.focus}),fieldGroup:{border:n.border},subComponentStyles:{label:{root:n.label}}}}},t.prototype.getPropsFromStyles=function(e){var t;return{borderless:"none"===(null===(t=null===e||void 0===e?void 0:e.textbox)||void 0===t?void 0:t.border)}},t.prototype.getStylesFromHints=function(e){if(e){for(var t={},n=0,i=e;n<i.length;n++){switch(i[n].toLowerCase()){case"gap-bottom-small":t=(0,c.l8)(t,{root:{marginBottom:"0.5rem"}});break;case"width-small":t=(0,c.l8)(t,{fieldGroup:{width:"5.5rem"}});break;case"width-fill":t=(0,c.l8)(t,{root:{width:"100%"}});break;case"width-half":t=(0,c.l8)(t,{root:{width:"50%"}});break;case"width-quarter":t=(0,c.l8)(t,{root:{width:"25%"}});break;case"width-third":t=(0,c.l8)(t,{root:{width:"33%"}})}}return t}},t}(i.Component),oe=function(e){function t(t){return e.call(this,t)||this}return L(t,e),t.prototype.render=function(){if(null!=this.props.styleHints)return this.renderWithStyleHints();var e=this.props,t=e.additionalClassName,n=e.ariaLabel,r=e.elementId,o=e.sourceUrl,a={src:o,width:48,height:48,alt:n||r};return t&&t.indexOf("image-icon")>=0?i.createElement(f._,R({},a)):i.createElement("img",{id:r,src:o,alt:n||r,"aria-label":n||r,className:t})},t.prototype.renderWithStyleHints=function(){var e=this.props,t=e.additionalClassName,n=e.ariaLabel,r=e.elementId,o=e.sourceUrl,a=e.styleHints;return i.createElement("img",{id:r,src:o,alt:n||r,"aria-label":n||r,className:t,style:this.getHtmlStyleFromStyleHints(a)})},t.prototype.getHtmlStyleFromStyleHints=function(e){if(e){for(var t={},n=0,i=e;n<i.length;n++){switch(i[n].toLowerCase()){case"image-extra-small":t=R(R({},t),{width:"24px"});break;case"image-small":t=R(R({},t),{width:"32px"});break;case"image-medium":t=R(R({},t),{width:"72px"});break;case"image-extra-medium":t=R(R({},t),{width:"120px"});break;case"image-large":t=R(R({},t),{width:"230px"});break;case"image-height-small":t=R(R({},t),{height:"18px"});break;case"alignment-horizontal-center":t=R(R({},t),{display:"block",marginInline:"auto"})}}return t}},t}(i.Component),ae=function(e){var t=e.id,n=e.additionalClassName;return i.createElement(A.w,{id:t,className:n})},se=function(e){function t(t){return e.call(this,t)||this}return L(t,e),t.prototype.render=function(){var e=this.props,t=e.audioChildNodes,n=void 0===t?[]:t,r=e.imageChildNodes,o=void 0===r?[]:r,a=e.elementId,s=(e.displayId,e.type,e.showImageCaptcha),c=e.displayName,l=e.showDisplayName,d=e.required,p=this.props.captchaClassName;p=p.filter((function(e){return!(0,k.startsWith)(e,k.pidlReactClassPrefix)}));var f=l?i.createElement(v.J,{required:d,htmlFor:a,id:a+"_label"},c):null,g={id:a,className:j(p)};return i.createElement(u.B,R({},g),f,i.createElement(u.B,{style:{paddingBottom:"10px",gap:"5px"}},s&&o&&o.map((function(e,t){return e&&i.cloneElement(e,{key:t})})),!s&&n&&n.map((function(e,t){return e&&i.cloneElement(e,{key:t})}))))},t}(i.Component),ce=function(e){function t(t){return e.call(this,t)||this}return L(t,e),t.prototype.render=function(){var e=this.props,t=e.id,n=e.additionalClassName,r=e.ariaLabel,o=e.displayName,a=e.displayContent,c=e.showDisplayName,l=e.disabled,d=e.inlineHelpLink,p=e.onChange,f=e.onButtonClick,g=e.required,h=e.errorNode,m=e.selectedFile,y=e.inputFileRef,C=c?i.createElement(v.J,{disabled:l,required:g,htmlFor:t,id:t+"_label"},o):null;return i.createElement("div",{id:t,className:j(n)},i.createElement(u.B,{horizontal:!0,verticalAlign:"center"},C,d),i.createElement("input",{type:"file",name:"file",ref:y,onChange:function(e){return p(e)},style:{display:"none"}}),i.createElement(s.j,{id:t+"_button","aria-label":r,disabled:l,onClick:f},a)," ",i.createElement(T.E,{id:t+"_label"}," ",m," "),h)},t}(i.Component),le=function(e){var t=e.elementId,n=e.required,r=e.disabled,o=e.displayContent,a=e.inlineHelpLink;return i.createElement(u.B,{horizontal:!0,verticalAlign:"center"},i.createElement(v.J,{id:t,disabled:r,required:n},o),a)},ue="undefined";var de=function(e,t){return de=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},de(e,t)};var pe,fe,ge,he=(typeof globalThis!==ue&&globalThis?globalThis:typeof self!==ue&&self?self:typeof window!==ue&&window?window:typeof n.g!==ue&&n.g?n.g:null)||{};fe=function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},ge=function(e,t){function n(){this.constructor=e}de(e,t),e.prototype=null===t?function(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if("object"!==n&&"function"!==n)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}(t):(n.prototype=t.prototype,new n)},(pe=he).__assign||(pe.__assign=Object.assign||fe),pe.__extends||(pe.__extends=ge),__assign||(__assign=he.__assign),__extends||(__extends=he.__extends);var me="function",ve="object",ye="undefined";function Ce(){return typeof globalThis!==ye&&globalThis?globalThis:typeof self!==ye&&self?self:typeof window!==ye&&window?window:typeof n.g!==ye&&n.g?n.g:null}function be(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==ve&&n!==me)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}var Ee=function(e,t){return Ee=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Ee(e,t)};var xe=Ce()||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(xe,(function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}),(function(e,t){function n(){this.constructor=e}Ee(e,t),e.prototype=null===t?be(t):(n.prototype=t.prototype,new n)})),__assign||(__assign=xe.__assign),__extends||(__extends=xe.__extends);var Ie=0,Te=1,_e=2,we=4,Se=5,Ne=ve,Ae="window",Pe="JSON",ke=Ce;function Oe(e){var t=ke();return t&&t[e]?t[e]:e===Ae&&De()?window:null}function De(){return Boolean(typeof window===Ne&&window)}function Le(){return De()?window:Oe(Ae)}function Re(){return Boolean(typeof document===Ne&&document)?document:Oe("document")}function Me(){return Boolean(typeof navigator===Ne&&navigator)}function Ue(){return Me()?navigator:Oe("navigator")}function Ve(){return typeof location===Ne&&location?location:Oe("location")}function Fe(){return Oe("performance")}function Be(){return Boolean(typeof JSON===Ne&&JSON||null!==Oe(Pe))}var He=4294967296,ze=4294967295,Ge=null,We=!1,qe=123456789,je=987654321;function Ke(e){e<0&&(e>>>=0),qe=123456789+e&ze,je=987654321-e&ze,We=!0}function Xe(){Ke(Math.random()*He^(new Date).getTime())}function Ye(e,t){return typeof e===t}function Je(e){return Ye(e,ye)||void 0===e}function Qe(e){return Je(e)||null===e}function Ze(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function $e(e){return Ye(e,ve)}function et(e){return Ye(e,me)}function tt(e,t,n,i){void 0===i&&(i=!1);var r=!1;if(!Qe(e))try{Qe(e.addEventListener)?Qe(e.attachEvent)||(e.attachEvent("on"+t,n),r=!0):(e.addEventListener(t,n,i),r=!0)}catch(o){}return r}function nt(e,t,n,i){if(void 0===i&&(i=!1),!Qe(e))try{Qe(e.removeEventListener)?Qe(e.detachEvent)||e.detachEvent("on"+t,n):e.removeEventListener(t,n,i)}catch(r){}}function it(e,t,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(e,t,o),!0}catch(a){}return!1}function rt(e,t){if(e&&$e(e))for(var n in e)Ze(e,n)&&t.call(e,n,e[n])}var ot,at=function(){function e(){}return e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},e.isString=function(e){return Ye(e,"string")},e.isNumber=function(e){return Ye(e,"number")},e.isBoolean=function(e){return Ye(e,"boolean")},e.disableCookies=function(){e._canUseCookies=!1},e.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(st,(function(t){var n=0|e.randomValue(15);return("x"===t?n:3&n|8).toString(16)}))},e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},e.arrForEach=function(e,t,n){for(var i=e.length,r=0;r<i;r++)r in e&&t.call(n||e,e[r],r,e)},e.arrIndexOf=function(e,t,n){for(var i=e.length,r=n||0,o=Math.max(r>=0?r:i-Math.abs(r),0);o<i;o++)if(o in e&&e[o]===t)return o;return-1},e.arrMap=function(e,t,n){for(var i=e.length,r=n||e,o=new Array(i),a=0;a<i;a++)a in e&&(o[a]=t.call(r,e[a],e));return o},e.arrReduce=function(e,t,n){var i,r=e.length,o=0;if(arguments.length>=3)i=arguments[2];else{for(;o<r&&!(o in e);)o++;i=e[o++]}for(;o<r;)o in e&&(i=t(i,e[o],o,e)),o++;return i},e.strTrim=function(t){return e.isString(t)?t.replace(/^\s+|\s+$/g,""):t},e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!et(e)&&(!$e(e)||null===e))throw new TypeError("objKeys called on non-object");var n=[];for(var i in e)Ze(e,i)&&n.push(i);if(t)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,a=0;a<o;a++)Ze(e,r[a])&&n.push(r[a]);return n},e.addEventHandler=function(e,t){var n=!1,i=Le();i&&(n=tt(i,e,t),n=tt(i.body,e,t)||n);var r=Re();return r&&(n=ct.Attach(r,e,t)||n),n},e.dateNow=function(){var e=Date;return e.now?e.now():(new e).getTime()},e.perfNow=function(){var t=Fe();return t&&t.now?t.now():e.dateNow()},e.newId=function(t){void 0===t&&(t=22);for(var n=e.random32()>>>0,i=0,r="";r.length<t;)i++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===i&&(n=(e.random32()<<2&4294967295|3&n)>>>0,i=0);return r},e.isIE=function(){if(null===Ge){var e=((Ue()||{}).userAgent||"").toLowerCase();Ge=-1!==e.indexOf("msie")||-1!==e.indexOf("trident/")}return Ge},e.randomValue=function(t){return t>0?Math.floor(e.random32()/ze*(t+1))>>>0:0},e.random32=function(t){var n,i=Oe("crypto")||Oe("msCrypto");return i&&i.getRandomValues?n=i.getRandomValues(new Uint32Array(1))[0]&ze:e.isIE()?(We||Xe(),n=e.mwcRandom32()&ze):n=Math.floor(He*Math.random()|0),t||(n>>>=0),n},e.mwcRandomSeed=function(e){e?Ke(e):Xe()},e.mwcRandom32=function(e){var t=((je=36969*(65535&je)+(je>>16)&ze)<<16)+(65535&(qe=18e3*(65535&qe)+(qe>>16)&ze))>>>0&ze|0;return e||(t>>>=0),t},e.generateW3CId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",r=0;r<4;r++)i+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var o=n[8+(3&e.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+o+i.substr(16,3)+i.substr(19,12)},e.isTypeof=Ye,e.isUndefined=Je,e.isNullOrUndefined=Qe,e.hasOwnProperty=Ze,e.isFunction=et,e.isObject=$e,e.objCreate=be,e.objDefineAccessors=it,e}(),st=/[xy]/g,ct=function(){function e(){}return e.Attach=tt,e.AttachEvent=tt,e.Detach=nt,e.DetachEvent=nt,e}();!function(e){e[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING"}(ot||(ot={}));var lt,ut={BrowserDoesNotSupportLocalStorage:0,BrowserCannotReadLocalStorage:1,BrowserCannotReadSessionStorage:2,BrowserCannotWriteLocalStorage:3,BrowserCannotWriteSessionStorage:4,BrowserFailedRemovalFromLocalStorage:5,BrowserFailedRemovalFromSessionStorage:6,CannotSendEmptyTelemetry:7,ClientPerformanceMathError:8,ErrorParsingAISessionCookie:9,ErrorPVCalc:10,ExceptionWhileLoggingError:11,FailedAddingTelemetryToBuffer:12,FailedMonitorAjaxAbort:13,FailedMonitorAjaxDur:14,FailedMonitorAjaxOpen:15,FailedMonitorAjaxRSC:16,FailedMonitorAjaxSend:17,FailedMonitorAjaxGetCorrelationHeader:18,FailedToAddHandlerForOnBeforeUnload:19,FailedToSendQueuedTelemetry:20,FailedToReportDataLoss:21,FlushFailed:22,MessageLimitPerPVExceeded:23,MissingRequiredFieldSpecification:24,NavigationTimingNotSupported:25,OnError:26,SessionRenewalDateIsZero:27,SenderNotInitialized:28,StartTrackEventFailed:29,StopTrackEventFailed:30,StartTrackFailed:31,StopTrackFailed:32,TelemetrySampledAndNotSent:33,TrackEventFailed:34,TrackExceptionFailed:35,TrackMetricFailed:36,TrackPVFailed:37,TrackPVFailedCalc:38,TrackTraceFailed:39,TransmissionFailed:40,FailedToSetStorageBuffer:41,FailedToRestoreStorageBuffer:42,InvalidBackendResponse:43,FailedToFixDepricatedValues:44,InvalidDurationValue:45,TelemetryEnvelopeInvalid:46,CreateEnvelopeError:47,CannotSerializeObject:48,CannotSerializeObjectNonSerializable:49,CircularReferenceDetected:50,ClearAuthContextFailed:51,ExceptionTruncated:52,IllegalCharsInName:53,ItemNotInArray:54,MaxAjaxPerPVExceeded:55,MessageTruncated:56,NameTooLong:57,SampleRateOutOfRange:58,SetAuthContextFailed:59,SetAuthContextFailedAccountName:60,StringValueTooLong:61,StartCalledMoreThanOnce:62,StopCalledWithoutStart:63,TelemetryInitializerFailed:64,TrackArgumentsNotSpecified:65,UrlTooLong:66,SessionStorageBufferFull:67,CannotAccessCookie:68,IdTooLong:69,InvalidEvent:70,FailedMonitorAjaxSetRequestHeader:71,SendBrowserInfoOnUserInit:72,PluginException:73,NotificationException:74,SnippetScriptLoadFailure:99,InvalidInstrumentationKey:100,CannotParseAiBlobValue:101,InvalidContentBlob:102,TrackPageActionEventFailed:103},dt="undefined",pt="constructor",ft="prototype",gt="function",ht="_dynClass",mt="_unknown_",vt="__proto__",yt="_dyn__proto__",Ct=Object,bt=Ct.getPrototypeOf,Et=Ct.getOwnPropertyNames;var xt=function(){var e;return typeof globalThis!==dt&&(e=globalThis),e||typeof self===dt||(e=self),e||typeof window===dt||(e=window),e||typeof n.g===dt||(e=n.g),e||{}}(),It=xt.__dynProto$Gbl||(xt.__dynProto$Gbl={o:(lt={},lt.setInstFuncs=!0,lt.useBaseInst=!0,lt),n:1e3});function Tt(e,t){return e&&Ct.prototype.hasOwnProperty.call(e,t)}function _t(e){return e&&(e===Ct.prototype||e===Array.prototype)}function wt(e){return _t(e)||e===Function.prototype}function St(e){var t;if(e){if(bt)return bt(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,Tt(e,yt)||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n)}return t}function Nt(e,t){var n=[];if(Et)n=Et(e);else for(var i in e)"string"===typeof i&&Tt(e,i)&&n.push(i);if(n&&n.length>0)for(var r=0;r<n.length;r++)t(n[r])}function At(e,t,n){return t!==pt&&typeof e[t]===gt&&(n||Tt(e,t))&&t!==vt&&t!==ft}function Pt(e){throw new TypeError("DynamicProto: "+e)}function kt(){return Object.create?function(e){var t=Object.create;return t?t(e):{}}(null):{}}function Ot(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function Dt(e,t,n,i){var r=null;if(e&&Tt(n,ht)){var o=e._dynInstFuncs||kt();if((r=(o[n._dynClass]||kt())[t])||Pt("Missing ["+t+"] "+gt),!r._dynInstChk&&!1!==o._dynInstChk){for(var a=!Tt(e,t),s=St(e),c=[];a&&s&&!wt(s)&&!Ot(c,s);){var l=s[t];if(l){a=l===i;break}c.push(s),s=St(s)}try{a&&(e[t]=r),r._dynInstChk=1}catch(u){o._dynInstChk=!1}}}return r}function Lt(e,t,n){var i=t[e];return i===n&&(i=St(t)[e]),typeof i!==gt&&Pt("["+e+"] is not a "+gt),i}function Rt(e,t,n,i,r){if(!_t(e)){var o=n._dynInstFuncs=n._dynInstFuncs||kt();if(!_t(o)){var a=o[t]=o[t]||kt();!1!==o._dynInstChk&&(o._dynInstChk=!!r),_t(a)||Nt(n,(function(t){At(n,t,!1)&&n[t]!==i[t]&&(a[t]=n[t],delete n[t],(!Tt(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function n(){return(Dt(this,t,e,n)||Lt(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}}function Mt(e,t){return Tt(e,ft)?e.name||t||mt:((e||{}).constructor||{}).name||t||mt}function Ut(e,t,n,i){Tt(e,ft)||Pt("theClass is an invalid class definition.");var r=e.prototype;(function(e,t){if(bt){for(var n=[],i=St(t);i&&!wt(i)&&!Ot(n,i);){if(i===e)return!0;n.push(i),i=St(i)}return!1}return!0})(r,t)||Pt("["+Mt(e)+"] not in hierarchy of ["+Mt(t)+"]");var o=null;Tt(r,ht)?o=r._dynClass:(o="_dynCls$"+Mt(e,"_")+"$"+It.n,It.n++,r._dynClass=o);var a=Ut._dfOpts,s=!!a.useBaseInst;s&&i&&void 0!==i.useBaseInst&&(s=!!i.useBaseInst);var c=function(e){var t=kt();return Nt(e,(function(n){!t[n]&&At(e,n,!1)&&(t[n]=e[n])})),t}(t),l=function(e,t,n,i){function r(e,t,n){var r=t[n];if(r._isDynProxy&&i){var o=e._dynInstFuncs||{};!1!==o._dynInstChk&&(r=(o[t._dynClass]||{})[n]||r)}return function(){return r.apply(e,arguments)}}var o=kt();Nt(n,(function(e){o[e]=r(t,n,e)}));for(var a=St(e),s=[];a&&!wt(a)&&!Ot(s,a);)Nt(a,(function(e){!o[e]&&At(a,e,!bt)&&(o[e]=r(t,a,e))})),s.push(a),a=St(a);return o}(r,t,c,s);n(t,l);var u=!!bt&&!!a.setInstFuncs;u&&i&&(u=!!i.setInstFuncs),Rt(r,o,t,c,!1!==u)}Ut._dfOpts=It.o;function Vt(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Ft=function(){function e(e,t,n,i){void 0===n&&(n=!1);var r=this;r.messageId=e,r.message=(n?"AI: ":"AI (Internal): ")+e;var o="";Be()&&(o=(Be()?JSON||Oe(Pe):null).stringify(i));var a=(t?" message:"+Vt(t):"")+(i?" props:"+Vt(o):"");r.message+=a}return e.dataType="MessageData",e}(),Bt=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,i={};Ut(e,this,(function(e){var r=at.isNullOrUndefined,o=at.isUndefined,a=at.isFunction;function s(e,n){var i=t[e];return r(i)?n:i}r(t)&&(t={}),e.consoleLoggingLevel=function(){return s("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return s("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return s("maxMessageLimit",25)},e.enableDebugExceptions=function(){return s("enableDebugExceptions",!1)},e.throwInternal=function(t,n,r,a,s){void 0===s&&(s=!1);var c=new Ft(n,r,s,a);if(e.enableDebugExceptions())throw c;if(!o(c)&&c&&!o(c.message)){if(s){var l=+c.messageId;!i[l]&&e.consoleLoggingLevel()>=ot.WARNING&&(e.warnToConsole(c.message),i[l]=!0)}else e.consoleLoggingLevel()>=ot.WARNING&&e.warnToConsole(c.message);e.logInternalMessage(t,c)}},e.warnToConsole=function(e){var t="undefined"!==typeof console?console:Oe("console");if(t){var n="log";t.warn&&(n="warn"),a(t[n])&&t[n](e)}},e.resetInternalMessageCount=function(){n=0,i={}},e.logInternalMessage=function(t,r){if(!(n>=e.maxInternalMessageLimit())){var o=!0,a="AITR_"+r.messageId;if(i[a]?o=!1:i[a]=!0,o&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(r),n++),n===e.maxInternalMessageLimit())){var s="Internal events throttle limit per PageView reached for this app.",c=new Ft(ut.MessageLimitPerPVExceeded,s,!1);e.queue.push(c),e.warnToConsole(s)}}}}))}return e.prototype.enableDebugExceptions=function(){return!1},e.prototype.consoleLoggingLevel=function(){return 0},e.prototype.telemetryLoggingLevel=function(){return 1},e.prototype.maxInternalMessageLimit=function(){return 25},e.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1)},e.prototype.warnToConsole=function(e){},e.prototype.resetInternalMessageCount=function(){},e.prototype.logInternalMessage=function(e,t){},e}(),Ht=function(){function e(t,n,i){var r,o=this,a=!1;(o.start=at.dateNow(),o.name=t,o.isAsync=i,o.isChildEvt=function(){return!1},at.isFunction(n))&&(a=at.objDefineAccessors(o,"payload",(function(){return!r&&at.isFunction(n)&&(r=n(),n=null),r})));o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o.ctx||{})[t]:null},o.setCtx=function(t,n){if(t)if(t===e.ParentContextKey)o[t]||(o.isChildEvt=function(){return!0}),o[t]=n;else if(t===e.ChildrenContextKey)o[t]=n;else{(o.ctx=o.ctx||{})[t]=n}},o.complete=function(){var t=0,i=o.getCtx(e.ChildrenContextKey);if(at.isArray(i))for(var r=0;r<i.length;r++){var s=i[r];s&&(t+=s.time)}o.time=at.dateNow()-o.start,o.exTime=o.time-t,o.complete=function(){},!a&&at.isFunction(n)&&(o.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),zt=function(){function e(t){this.ctx={},Ut(e,this,(function(e){e.create=function(e,t,n){return new Ht(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e.getCtx=function(t){return(e.ctx||{})[t]}}))}return e.prototype.create=function(e,t,n){return null},e.prototype.fire=function(e){},e.prototype.setCtx=function(e,t){},e.prototype.getCtx=function(e){},e}(),Gt="CoreUtils.doPerf";function Wt(e,t,n,i,r){if(e){var o=e;if(o&&at.isFunction(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a=void 0,s=o.getCtx(Gt);try{if(a=o.create(t(),i,r)){if(s&&a.setCtx&&(a.setCtx(Ht.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(Ht.ChildrenContextKey);c||(c=[],s.setCtx(Ht.ChildrenContextKey,c)),c.push(a)}return o.setCtx(Gt,a),n(a)}}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&o.fire(a),o.setCtx(Gt,s)}}}return n()}var qt=at.isFunction,jt=function(e,t){var n=this,i=null,r=qt(e.processTelemetry),o=qt(e.setNextPlugin);n._hasRun=!1,n.getPlugin=function(){return e},n.getNext=function(){return i},n.setNext=function(e){i=e},n.processTelemetry=function(a,s){s||(s=t);var c=e?e.identifier:"TelemetryPluginChain";Wt(s?s.core():null,(function(){return c+":processTelemetry"}),(function(){if(e&&r){n._hasRun=!0;try{s.setNext(i),o&&e.setNextPlugin(i),i&&(i._hasRun=!1),e.processTelemetry(a,s)}catch(c){var t=i&&i._hasRun;i&&t||s.diagLog().throwInternal(ot.CRITICAL,ut.PluginException,"Plugin ["+e.identifier+"] failed during processTelemetry - "+c),i&&!t&&i.processTelemetry(a,s)}}else i&&(n._hasRun=!0,i.processTelemetry(a,s))}),(function(){return{item:a}}),!a.sync)}},Kt=at.isNullOrUndefined;function Xt(e,t){var n=[];if(e&&e.length>0)for(var i=null,r=0;r<e.length;r++){var o=e[r];if(o&&at.isFunction(o.processTelemetry)){var a=new jt(o,t);n.push(a),i&&i.setNext(a),i=a}}return n.length>0?n[0]:null}var Yt=function e(t,n,i,r){var o=this,a=null;null!==r&&(t&&at.isFunction(t.getPlugin)?a=function(e,t,n){var i=[],r=!n;if(e)for(;e;){var o=e.getPlugin();(r||o===n)&&(r=!0,i.push(o)),e=e.getNext()}return r||i.push(n),Xt(i,t)}(t,o,r||t.getPlugin()):r?a=function(e,t,n){var i=e,r=!1;return n&&e&&(i=[],at.arrForEach(e,(function(e){(r||e===n)&&(r=!0,i.push(e))}))),n&&!r&&(i||(i=[]),i.push(n)),Xt(i,t)}(t,o,r):at.isUndefined(r)&&(a=Xt(t,o))),o.core=function(){return i},o.diagLog=function(){var e=(i||{}).logger;return e||(e=new Bt(n||{})),e},o.getCfg=function(){return n},o.getExtCfg=function(e,t){var i;if(void 0===t&&(t={}),n){var r=n.extensionConfig;r&&e&&(i=r[e])}return i||t},o.getConfig=function(e,t,i){var r;void 0===i&&(i=!1);var a=o.getExtCfg(e,null);return a&&!Kt(a[t])?r=a[t]:n&&!Kt(n[t])&&(r=n[t]),Kt(r)?i:r},o.hasNext=function(){return null!=a},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processNext=function(e){var t=a;t&&(a=t.getNext(),t.processTelemetry(e,o))},o.createNew=function(t,r){return void 0===t&&(t=null),new e(t||a,n,i,r)}},Jt=at.isFunction,Qt=function(){function e(){var e=this,t=!1,n=null,i=null;e.core=null,e.diagLog=function(t){return e._getTelCtx(t).diagLog()},e.isInitialized=function(){return t},e.setInitialized=function(e){t=e},e.setNextPlugin=function(e){i=e},e.processNext=function(e,t){t?t.processNext(e):i&&Jt(i.processTelemetry)&&i.processTelemetry(e,null)},e._getTelCtx=function(t){void 0===t&&(t=null);var r=t;if(!r){var o=n||new Yt(null,{},e.core);r=i&&i.getPlugin?o.createNew(null,i.getPlugin):o.createNew(null,i)}return r},e._baseTelInit=function(r,o,a,s){r&&(r.extensionConfig=r.extensionConfig||[]),!s&&o&&(s=o.getProcessTelContext().getNext());var c=i;i&&i.getPlugin&&(c=i.getPlugin()),e.core=o,n=new Yt(s,r,o,c),t=!0}}return e.prototype.initialize=function(e,t,n,i){this._baseTelInit(e,t,n,i)},e}(),Zt=at.isFunction;function $t(e,t){for(var n=[],i=null,r=e.getNext();r;){var o=r.getPlugin();o&&(i&&Zt(i.setNextPlugin)&&Zt(o.processTelemetry)&&i.setNextPlugin(o),Zt(o.isInitialized)&&o.isInitialized()||n.push(o),i=o,r=r.getNext())}at.arrForEach(n,(function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function en(e){return e.sort((function(e,t){var n=0,i=Zt(t.processTelemetry);return Zt(e.processTelemetry)?n=i?e.priority-t.priority:1:i&&(n=-1),n}))}var tn=500,nn=at.objDefineAccessors,rn=function(e){function t(){var n=e.call(this)||this;n.identifier="ChannelControllerPlugin",n.priority=500;var i,r=at.arrForEach;function o(e){e&&e.length>0&&(function(e){r(e,(function(e){if(e.priority<tn)throw Error("Channel has invalid priority"+e.identifier)}))}(e=e.sort((function(e,t){return e.priority-t.priority}))),i.push(e))}return Ut(t,n,(function(e,t){e.setNextPlugin=function(e){},e.processTelemetry=function(e,t){i&&r(i,(function(i){i.length>0&&n._getTelCtx(t).createNew(i).processNext(e)}))},e.getChannelControls=function(){return i},e.initialize=function(n,a,s){e.isInitialized()||(t.initialize(n,a,s),n.isCookieUseDisabled&&at.disableCookies(),function(e,t){i=[],e&&r(e,(function(e){return o(e)}));if(t){var n=[];r(t,(function(e){e.priority>tn&&n.push(e)})),o(n)}}((n||{}).channels,s),r(i,(function(e){return $t(new Yt(e,n,a),s)})))}})),n}return __extends(t,e),t.prototype.processTelemetry=function(e,t){},t.prototype.getChannelControls=function(){return null},t.prototype.initialize=function(e,t,n){},t._staticInit=(nn(t.prototype,"ChannelControls",t.prototype.getChannelControls),void nn(t.prototype,"channelQueue",t.prototype.getChannelControls)),t}(Qt),on=at.arrForEach,an=at.isNullOrUndefined,sn=function(){function e(){var t,n,i,r,o=!1;Ut(e,this,(function(e){e._extensions=new Array,n=new rn,e.logger=at.objCreate({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),t=[],e.isInitialized=function(){return o},e.initialize=function(t,r,a,s){if(e.isInitialized())throw Error("Core should not be initialized more than once");if(!t||an(t.instrumentationKey))throw Error("Please provide instrumentation key");i=s,e._notificationManager=s,e.config=t||{},t.extensions=an(t.extensions)?[]:t.extensions,(t.extensionConfig=an(t.extensionConfig)?{}:t.extensionConfig).NotificationManager=s,a&&(e.logger=a);var c=[];c.push.apply(c,r.concat(t.extensions)),c=en(c);var l=[],u=[],d={};if(on(c,(function(e){if(an(e)||an(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,i=e.identifier;e&&t&&(an(d[t])?d[t]=i:a.warnToConsole("Two extensions have same priority #"+t+" - "+d[t]+", "+i)),!t||t<n.priority?l.push(e):u.push(e)})),c.push(n),l.push(n),c=en(c),e._extensions=c,$t(new Yt([n],t,e),c),$t(new Yt(l,t,e),c),e._extensions=l,0===e.getTransmissionControls().length)throw new Error("No channels available");o=!0,e.releaseQueue()},e.getTransmissionControls=function(){return n.getChannelControls()},e.track=function(n){n.iKey||(n.iKey=e.config.instrumentationKey),n.time||(n.time=at.toISOString(new Date)),an(n.ver)&&(n.ver="4.0"),e.isInitialized()?e.getProcessTelContext().processNext(n):t.push(n)},e.getProcessTelContext=function(){var t=e._extensions,i=t;return t&&0!==t.length||(i=[n]),new Yt(i,e.config,e)},e.getNotifyMgr=function(){return i||(i=at.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),e._notificationManager=i),i},e.getPerfMgr=function(){return r||e.config&&e.config.enablePerfMgr&&(r=new zt(e.getNotifyMgr())),r},e.setPerfMgr=function(e){r=e},e.eventCnt=function(){return t.length},e.releaseQueue=function(){t.length>0&&(on(t,(function(t){e.getProcessTelContext().processNext(t)})),t=[])}}))}return e.prototype.initialize=function(e,t,n,i){},e.prototype.getTransmissionControls=function(){return null},e.prototype.track=function(e){},e.prototype.getProcessTelContext=function(){return null},e.prototype.getNotifyMgr=function(){return null},e.prototype.getPerfMgr=function(){return null},e.prototype.setPerfMgr=function(e){},e.prototype.eventCnt=function(){return 0},e.prototype.releaseQueue=function(){},e}(),cn=function(){function e(t){this.listeners=[];var n=at.arrForEach,i=!!(t||{}).perfEvtsSendAll;Ut(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=at.arrIndexOf(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=at.arrIndexOf(e.listeners,t)},e.eventsSent=function(t){n(e.listeners,(function(e){e&&e.eventsSent&&setTimeout((function(){return e.eventsSent(t)}),0)}))},e.eventsDiscarded=function(t,i){n(e.listeners,(function(e){e&&e.eventsDiscarded&&setTimeout((function(){return e.eventsDiscarded(t,i)}),0)}))},e.eventsSendRequest=function(t,i){n(e.listeners,(function(e){if(e&&e.eventsSendRequest)if(i)setTimeout((function(){return e.eventsSendRequest(t,i)}),0);else try{e.eventsSendRequest(t,i)}catch(n){}}))},e.perfEvent=function(t){t&&(!i&&t.isChildEvt()||n(e.listeners,(function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout((function(){return e.perfEvent(t)}),0);else try{e.perfEvent(t)}catch(n){}})))}}))}return e.prototype.addNotificationListener=function(e){},e.prototype.removeNotificationListener=function(e){},e.prototype.eventsSent=function(e){},e.prototype.eventsDiscarded=function(e,t){},e.prototype.eventsSendRequest=function(e,t){},e}(),ln=function(e){function t(){var n=e.call(this)||this;return Ut(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],_e)}e.initialize=function(e,n,i,r){t.initialize(e,n,i||new Bt(e),r||new cn(e))},e.track=function(i){Wt(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){if(null===i)throw n(i),Error("Invalid telemetry item");!function(e){if(at.isNullOrUndefined(e.name))throw n(e),Error("telemetry name required")}(i),t.track(i)}),(function(){return{item:i}}),!i.sync)},e.addNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.addNotificationListener(t)},e.removeNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.removeNotificationListener(t)},e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;return n&&n>0||(n=1e4),setInterval((function(){var n=e.logger?e.logger.queue:[];at.arrForEach(n,(function(n){var i={name:t||"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:at.toISOString(new Date),baseType:Ft.dataType,baseData:{message:n.message}};e.track(i)})),n.length=0}),n)}})),n}return __extends(t,e),t.prototype.initialize=function(e,t,n,i){},t.prototype.track=function(e){},t.prototype.addNotificationListener=function(e){},t.prototype.removeNotificationListener=function(e){},t.prototype.pollInternalLogs=function(e){return 0},t}(sn);Object.getPrototypeOf;var un,dn=0,pn=13,fn=32,gn=1,hn=2,mn=3,vn=0,yn=1,Cn=6,bn=7,En=__assign(__assign({},ut),{AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519}),xn="1DS-Web-JS-3.0.2",In="undefined",Tn=((un={})[0]=vn,un[2]=Cn,un[1]=yn,un[3]=bn,un[4098]=Cn,un[4097]=yn,un[4099]=bn,un),_n=null,wn=at.isUndefined,Sn=at.isNullOrUndefined;var Nn,An=at.hasOwnProperty,Pn=null,kn=at.arrForEach,On=(at.arrIndexOf,at.arrMap,at.arrReduce,at.objKeys),Dn=(at.toISOString,function(){var e=Ue();return!(!e||!e.product)&&"ReactNative"===e.product}),Ln=at.isString,Rn=at.isNumber,Mn=at.isBoolean,Un=at.isFunction,Vn=at.isArray,Fn=at.isObject,Bn=at.strTrim,Hn=Boolean(Re()),zn=Boolean(Le());function Gn(e){return!(Sn(e)||""===e)}function Wn(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return""}function qn(){return null===Pn&&(Pn=Me()&&Boolean(Ue().sendBeacon)),Pn}function jn(e){return!!(e&&Rn(e)&&e>=1&&e<=3)}function Kn(e,t,n){if(!Ln(e)||Sn(t)||""===t)return null;if(Ln(t)||Rn(t)||Mn(t)||Vn(t))t={value:t};else if("object"!==typeof t||t.hasOwnProperty("value")){if(Sn(t.value)||""===t.value||!Ln(t.value)&&!Rn(t.value)&&!Mn(t.value)&&!Vn(t.value))return null}else t={value:n?JSON.stringify(t):t};if(Vn(t.value)&&!oi(t.value))return null;if(!Sn(t.kind)){if(Vn(t.value)||!ri(t.kind))return null;t.value=t.value.toString()}return t}function Xn(){if(void 0!==typeof XMLHttpRequest){var e=Oe("XMLHttpRequest");if(e){var t=new e;return Boolean(wn(t.withCredentials)&&void 0!==typeof XDomainRequest)}}}function Yn(e,t,n){var i=-1;if(!wn(e))if(t>0&&(32===t?i=8192:t<=13&&(i=t<<5)),function(e){if(Rn(e)&&e>=0&&e<=9)return!0;return!1}(n))-1===i&&(i=0),i|=n;else{var r=Tn[ui(e)]||-1;-1!==i&&-1!==r?i|=r:r===Cn&&(i=r)}return i}function Jn(){if(void 0===Nn){Nn=!1;try{var e=Re(),t=Ue();e&&!wn(e.cookie)&&t&&t.cookieEnabled&&(Nn=!0)}catch(n){}}return Nn}function Qn(e){return!!Ln(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||(-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||(!(-1===e.indexOf("Macintosh; Intel Mac OS X 10_14")||!di(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||(-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||(-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11")))))))}function Zn(e,t,n){if(Jn()){var i="",r=Ve();r&&"https:"===r.protocol&&(i=";secure",null===_n&&(_n=Qn((Ue()||{}).userAgent)),_n||(t+=";SameSite=None"));var o=new Date;o.setTime(o.getTime()+24*n*60*60*1e3);var a="; expires="+o.toUTCString();Re().cookie=e+"="+t+a+"; path=/"+i}}function $n(e){Zn(e,"",-1)}function ei(e){if(Jn()){e+="=";for(var t=decodeURIComponent((Re()||{}).cookie||"").split(";"),n=0;n<t.length;n++){for(var i=t[n],r=0;" "===i.charAt(r);)r++;if(0===(i=i.substring(r)).indexOf(e))return i.substring(e.length,i.length)}}return""}function ti(e){void 0===e&&(e="D");var t=at.newGuid();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,"")),t}function ni(e,t,n,i,r){var o={},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++){rt(e=u[s],(function(e,t){a&&t&&Fn(t)?o[e]=ni(!0,o[e],t):o[e]=t}))}return o}var ii=at.perfNow;function ri(e){return!(!Rn(e)||!(e>=dn&&e<=pn||e===fn))}function oi(e){return e.length>0}var ai=at.objDefineAccessors;function si(e){var t=li("beforeunload",e);return t=li("unload",e)||t,t=li("pagehide",e)||t}function ci(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=ii()}var li=at.addEventHandler;function ui(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===ve&&(t=4,Vn(e)?(t=4096,e.length>0&&(t|=ui(e[0]))):An(e,"value")&&(t=8192|ui(e.value)))}return t}function di(e,t){return void 0!==e&&void 0!==t&&-1!==e.indexOf(t,e.length-t.length)}var pi=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],n.pluginVersionString="",Ut(t,n,(function(e,t){e.initialize=function(n,i,r,o){Wt(e,(function(){return"AppInsightsCore.initialize"}),(function(){if(n){n.endpointUrl||(n.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/");var a=n.propertyStorageOverride;if(a&&(!a.getProperty||!a.setProperty))throw new Error("Invalid property storage override passed.");n.channels&&kn(n.channels,(function(t){t&&kn(t,(function(t){if(t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}}))}))}e.getWParam=function(){return"undefined"!==typeof document?0:-1},i&&kn(i,(function(t){if(t&&t.identifier&&t.version){var n=t.identifier+"="+t.version;e.pluginVersionStringArr.push(n)}})),e.pluginVersionString=e.pluginVersionStringArr.join(";");try{t.initialize(n,i,r,o)}catch(s){e.logger.throwInternal(ot.CRITICAL,En.ErrorProvidedChannels,"Channels must be provided through config.channels only")}e.pollInternalLogs("InternalLog")}),(function(){return{config:n,extensions:i,logger:r,notificationManager:o}}))},e.track=function(n){Wt(e,(function(){return"AppInsightsCore.track"}),(function(){var i=n;if(i){i.timings=i.timings||{},i.timings.trackStart=ii(),jn(i.latency)||(i.latency=gn);var r=i.ext=i.ext||{};r.sdk=r.sdk||{},r.sdk.ver=xn;var o=i.baseData=i.baseData||{};o.properties||(o.properties={});var a=o.properties;a.version||(a.version=""),""!==e.pluginVersionString&&(a.version=e.pluginVersionString)}t.track(i)}),(function(){return{item:n}}),!n.sync)}})),n}return __extends(t,e),t.prototype.initialize=function(e,t,n,i){},t.prototype.track=function(e){},t}(ln),fi=(function(e){function t(){var n=e.call(this)||this;return Ut(t,n,(function(e,t){e.initialize=function(n,i,r,o){n&&(n.endpointUrl||(n.endpointUrl="https://browser.events.data.microsoft.com/OneCollector/1.0/")),e.getWParam=function(){return Hn?0:-1};try{t.initialize(n,i,r,o)}catch(a){e.logger.throwInternal(ot.CRITICAL,En.ErrorProvidedChannels,"Channels must be provided through config.channels only")}},e.track=function(e){var n=e;if(n){var i=n.ext=n.ext||{};i.sdk=i.sdk||{},i.sdk.ver=xn}t.track(n)}})),n}__extends(t,e),t.prototype.initialize=function(e,t,n,i){},t.prototype.track=function(e){}}(sn),Un);function gi(e,t,n){return function(i){e[t]=i,n()}}var hi=function(){function e(t){var n=0,i=null,r=[];function o(){if(r.length>0){var e=r.slice();r=[],setTimeout((function(){for(var t=0,n=e.length;t<n;++t)try{e[t]()}catch(i){}}),0)}}function a(e){0===n&&(i=e,n=1,o())}function s(e){0===n&&(i=e,n=2,o())}Ut(e,this,(function(t){t.then=function(t,a){return new e((function(s,c){!function(t,a,s,c){r.push((function(){var r;try{(r=1===n?fi(t)?t(i):i:fi(a)?a(i):i)instanceof e?r.then(s,c):2!==n||fi(a)?s(r):c(r)}catch(o){return void c(o)}})),0!==n&&o()}(t,a,s,c)}))},t.catch=function(e){return t.then(null,e)}})),function(){if(!fi(t))throw new TypeError("ESPromise: resolvedFunc argument is not a Function");try{t(a,s)}catch(e){s(e)}}()}return e.resolve=function(t){return t instanceof e?t:t&&fi(t.then)?new e((function(e,n){try{t.then(e,n)}catch(i){n(i)}})):new e((function(e){e(t)}))},e.reject=function(t){return new e((function(e,n){n(t)}))},e.all=function(t){if(t&&t.length)return new e((function(e,n){try{for(var i=[],r=0,o=0;o<t.length;o++){var a=t[o];a&&fi(a.then)?(r++,a.then(gi(i,o,(function(){0===--r&&e(i)})),n)):i[o]=a}0===r&&setTimeout((function(){e(i)}),0)}catch(s){n(s)}}))},e.race=function(t){return new e((function(e,n){if(t&&t.length)try{for(var i=function(i){var r=t[i];r&&fi(r.then)?r.then(e,n):setTimeout((function(){e(r)}),0)},r=0;r<t.length;r++)i(r)}catch(o){n(o)}}))},e.prototype.then=function(e,t){},e.prototype.catch=function(e){},e}(),mi=0,vi=[],yi=[],Ci=[];function bi(){return(new Date).getTime()}!function(){function e(t,n){var i=0,r=(t||"<unnamed>")+"."+mi;function o(e){var t=ke();t&&t.QUnit&&console&&console.log("ESPromiseScheduler["+r+"] "+e)}function a(e){n&&n.warnToConsole("ESPromiseScheduler["+r+"] "+e)}mi++,Ut(e,this,(function(e){var t=null,n=0;function s(e,t){for(var n=0;n<e.length;n++)if(e[n].id===t)return e.splice(n,1)[0];return null}e.scheduleEvent=function(e,c,l){var u=r+"."+n;n++,c&&(u+="-("+c+")");var d=u+"{"+i+"}";i++;var p={evt:null,tm:bi(),id:d,isRunning:!1,isAborted:!1};return p.evt=t?function(e,t){var n=new hi((function(n,i){var r=bi()-t.tm,a=t.id;o("["+u+"] is waiting for ["+a+":"+r+" ms] to complete before starting -- ["+yi.length+"] waiting and ["+vi.length+"] running"),e.abort=function(t){e.abort=null,s(yi,u),e.isAborted=!0,i(new Error(t))},t.evt.then((function(t){s(yi,u),y(e).then(n,i)}),(function(t){s(yi,u),y(e).then(n,i)}))}));return yi.push(e),n}(p,t):y(p),(t=p).evt._schId=d,p.evt;function f(e){for(var t=bi(),n=t-6e5,i=e.length,r=0;r<i;){var o=e[r];if(o&&o.tm<n){var s=null;o.abort?(s="Aborting ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",o.abort(s)):s="Removing ["+o.id+"] due to Excessive runtime ("+(t-o.tm)+" ms)",a(s),e.splice(r,1),i--}else r++}}function g(e,n){var i=!1,r=s(vi,e);if(r||(r=s(Ci,e),i=!0),r){r.to&&(clearTimeout(r.to),r.to=null);var c=bi()-r.tm;n?i?a("Timed out event ["+e+"] finally complete -- "+c+" ms"):o("Promise ["+e+"] Complete -- "+c+" ms"):(Ci.push(r),a("Event ["+e+"] Timed out and removed -- "+c+" ms"))}else o("Failed to remove ["+e+"] from running queue");t&&t.id===e&&(t=null),f(vi),f(yi),f(Ci)}function h(e,t){return function(n){return g(e,!0),t&&t(n),n}}function m(e,t,n,i){t.then((function(t){return t instanceof hi?(o("Event ["+e+"] returned a promise -- waiting"),m(e,t,n,i),t):h(e,n)(t)}),h(e,i))}function v(e,t){var n=e.id;return new hi((function(i,r){o("Event ["+n+"] Starting -- waited for "+(e.wTm||"--")+" ms"),e.isRunning=!0,e.abort=function(t){e.abort=null,e.isAborted=!0,g(n,!1),r(new Error(t))};var a=t(n);a instanceof hi?(l&&(e.to=setTimeout((function(){g(n,!1),r(new Error("Timed out after ["+l+"] ms"))}),l)),m(n,a,(function(t){o("Event ["+n+"] Resolving after "+(bi()-e.tm)+" ms"),i(t)}),r)):(o("Promise ["+n+"] Auto completed as the start action did not return a promise"),i())}))}function y(t){var n=bi();return t.wTm=n-t.tm,t.tm=n,t.isAborted?hi.reject(new Error("["+u+"] was aborted")):(vi.push(t),v(t,e))}}}))}e.incomplete=function(){return vi},e.waitingToStart=function(){return yi},e.prototype.scheduleEvent=function(e,t,n){}}();var Ei=at.isNullOrUndefined,xi=(function(){function e(e){var t=this,n={},i=[],r=[];function o(e,t){var o,a=n[e];if(a&&(o=a[t]),!o&&null!==o){if(Ln(e)&&Ln(t))if(r.length>0){for(var s=0;s<r.length;s++)if(r[s].handleField(e,t)){o={canHandle:!0,fieldHandler:r[s]};break}}else 0===i.length&&(o={canHandle:!0});if(!o&&null!==o){o=null;for(s=0;s<i.length;s++)if(i[s].handleField(e,t)){o={canHandle:!0,handler:i[s],fieldHandler:null};break}}a||(a=n[e]={}),a[t]=o}return o}function a(e,t,n,i,r,o){if(e.handler)return e.handler.property(t,n,r,o);if(!Ei(r.kind)){if(4096===(4096&i)||!ri(r.kind))return null;r.value=r.value.toString()}return c(e.fieldHandler,t,n,i,r)}function s(e,t,n){return Gn(n)?{value:n}:null}function c(e,n,i,r,o){if(o&&e){var a=e.getSanitizer(n,i,r,o.kind,o.propertyType);if(a)if(4===r){var l={};rt(o.value,(function(t,r){var o=n+"."+i;if(Gn(r)){var a=s(0,0,r);(a=c(e,o,t,ui(r),a))&&(l[t]=a.value)}})),o.value=l}else{var u={path:n,name:i,type:r,prop:o,sanitizer:t};o=a.call(t,u)}}return o}e&&r.push(e),t.addSanitizer=function(e){e&&(i.push(e),n={})},t.addFieldSanitizer=function(e){e&&(r.push(e),n={})},t.handleField=function(e,t){var n=o(e,t);return!!n&&n.canHandle},t.value=function(e,t,n,i){var r=o(e,t);if(r&&r.canHandle){if(!r||!r.canHandle)return null;if(r.handler)return r.handler.value(e,t,n,i);if(!Ln(t)||Ei(n)||""===n)return null;var c=null,l=ui(n);if(8192===(8192&l)){var u=-8193&l;if(!Gn((c=n).value)||1!==u&&2!==u&&3!==u&&4096!==(4096&u))return null}else 1===l||2===l||3===l||4096===(4096&l)?c=s(e,t,n):4===l&&(c=s(e,t,i?JSON.stringify(n):n));if(c)return a(r,e,t,l,c,i)}return null},t.property=function(e,t,n,i){var r=o(e,t);if(!r||!r.canHandle)return null;if(!Ln(t)||Ei(n)||!Gn(n.value))return null;var s=ui(n.value);return 0===s?null:a(r,e,t,s,n,i)}}e.getFieldType=ui}(),"undefined");var Ii=function(e,t){return Ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Ii(e,t)};var Ti=(typeof globalThis!==xi&&globalThis?globalThis:typeof self!==xi&&self?self:typeof window!==xi&&window?window:typeof n.g!==xi&&n.g?n.g:null)||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(Ti,(function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}),(function(e,t){function n(){this.constructor=e}Ii(e,t),e.prototype=null===t?function(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if("object"!==n&&"function"!==n)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}(t):(n.prototype=t.prototype,new n)})),__assign||(__assign=Ti.__assign),__extends||(__extends=Ti.__extends);var _i=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function wi(e,t){void 0===t&&(t=_i);var n=null;if(e)for(var i=e.split(","),r=0;r<i.length;r++)Si(i[r],t)&&(n?n+=","+i[r]:n=i[r]);return n}function Si(e,t){if(void 0===t&&(t=_i),!e||e.length<4)return!1;for(var n=!1,i=e.substring(0,3).toString().toUpperCase(),r=0;r<t.length;r++)if(t[r]+":"===i&&e.length<=256){n=!0;break}return n}var Ni,Ai,Pi=function(){function e(e){this.appExpId=null,this.flightIdNameSpaces=_i.slice(0),this.expIdCookieName="Treatments",this._propertiesConfig=e;var t=Re();if(t){var n=t.documentElement;t&&(this.locale=n.lang)}this.env=e.env?e.env:this._getMetaDataFromDOM("awa-").env}return e.prototype.getExpId=function(){return this._propertiesConfig.expId?this._readExpIdFromCoreData(this._propertiesConfig.expId):this._readExpIdFromCookie()},e.prototype._getMetaDataFromDOM=function(e){var t,n={},i=Re();if(i){t=i&&i.querySelectorAll("meta");for(var r=0;r<t.length;r++){var o=t[r];if(o.name)if(0===o.name.toLowerCase().indexOf(e))n[o.name.replace(e,"")]=o.content}}return n},e.prototype._setAppExpId=function(e){e!==this.appExpId&&(this.appExpId=wi(e,this.flightIdNameSpaces))},e.prototype._getAppExpId=function(){return this.appExpId},e.prototype._readExpIdFromCookie=function(){return this._setAppExpId(ei(this.expIdCookieName)),this._getAppExpId()},e.prototype._readExpIdFromCoreData=function(e){return this._setAppExpId(e),this._getAppExpId()},e.validateAppExpId=wi,e._staticInit=void ai(e.prototype,"expId",e.prototype.getExpId),e}(),ki=function(){},Oi=null;function Di(e,t,n,i){var r="",o="",a=Re();if(a){i&&(r=";domain="+i);var s=Ve();s&&"https:"===s.protocol&&(o=";secure",null===Oi&&(Oi=Qn((Ue()||{}).userAgent)),Oi||(n+=";SameSite=None")),Jn()&&(a.cookie=t+"="+n+r+";path=/"+o)}}function Li(){return void 0===Ni&&(Ni=!!Mi(Ai.LocalStorage)),Ni}function Ri(){return Li()?Mi(Ai.LocalStorage):null}function Mi(e){var t,n,i=null;try{var r=ke();if(!r)return null;n=new Date,(i=e===Ai.LocalStorage?r.localStorage:r.sessionStorage)&&Un(i.setItem)&&(i.setItem(n,n),t=i.getItem(n)!==n,i.removeItem(n),t&&(i=null))}catch(o){i=null}return i}!function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(Ai||(Ai={}));at.isDate;var Ui=at.toISOString,Vi=function(){function e(t,n,i){if(this._logger=i,!t.disableCookiesUsage&&Jn()){var r=ei("MUID");if(r&&this.setLocalId("t:"+r),n.enableApplicationInsightsUser){var o=ei(e.userCookieName);if(o){var a=o.split(e.cookieSeparator);a.length>0&&(this.id=a[0])}if(!this.id){this.id=at.newId(t&&!at.isUndefined(t.idLength)?t.idLength:22);var s=new Date,c=Ui(s);this.accountAcquisitionDate=c,s.setTime(s.getTime()+31536e6);var l=[this.id,c],u=n.cookieDomain?n.cookieDomain:void 0;Di(this._logger,e.userCookieName,l.join(e.cookieSeparator)+";expires="+s.toUTCString(),u)}}}if("undefined"!==typeof navigator){var d=navigator;this.locale=d.userLanguage||d.language}}return e.prototype.getLocalId=function(){if(this._customLocalId)return this._customLocalId;var e=ei("MUID");e&&this.setLocalId("t:"+e)},e.prototype.setLocalId=function(e){this._customLocalId=e},e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=void ai(e.prototype,"localId",e.prototype.getLocalId,e.prototype.setLocalId),e}(),Fi="MSIE",Bi="Chrome",Hi="Firefox",zi="Safari",Gi="Edge",Wi="Electron",qi="SkypeShell",ji="PhantomJS",Ki="Opera",Xi="([\\d,.]+)",Yi="Unknown",Ji=function(){function e(e){this._propertiesConfig=e;var t=Ve();if(t){var n=t.hostname;n&&(this.domain="file:"===t.protocol?"local":n)}var i="undefined"!==typeof navigator?navigator.userAgent:"";if(e.userAgent&&(i=e.userAgent),e.populateBrowserInfo){if(i){var r=this._getBrowserName(i);this.browser=r,this.browserVer=this._getBrowserVersion(i,r)}var o=this._getScreenResolution();this.screenRes=o.w+"X"+o.h}}return e.prototype.getUserConsent=function(){return this._propertiesConfig.userConsented||!!ei(this._propertiesConfig.userConsentCookieName||"MSCC")},e.prototype.getUserConsentDetails=function(){try{if(this._propertiesConfig.callback&&this._propertiesConfig.callback.userConsentDetails){var e=this._propertiesConfig.callback.userConsentDetails();if(e)return JSON.stringify({Required:!!e.Required&&e.Required,Analytics:!!e.Analytics&&e.Analytics,SocialMedia:!!e.SocialMedia&&e.SocialMedia,Advertising:!!e.Advertising&&e.Advertising})}}catch(t){}return null},e.prototype._getBrowserName=function(e){return this._userAgentContainsString("OPR/",e)?Ki:this._userAgentContainsString(ji,e)?ji:this._userAgentContainsString(Gi,e)?Gi:this._userAgentContainsString(Wi,e)?Wi:this._userAgentContainsString(Bi,e)?Bi:this._userAgentContainsString("Trident",e)?Fi:this._userAgentContainsString(Hi,e)?Hi:this._userAgentContainsString(zi,e)?zi:this._userAgentContainsString(qi,e)?qi:Yi},e.prototype._userAgentContainsString=function(e,t){return t.indexOf(e)>-1},e.prototype._getBrowserVersion=function(e,t){return t===Fi?this._getIeVersion(e):this._getOtherVersion(t,e)},e.prototype._getIeVersion=function(e){var t=e.match(new RegExp(Fi+" "+Xi));if(t)return t[1];var n=e.match(new RegExp("rv:([\\d,.]+)"));return n?n[1]:void 0},e.prototype._getOtherVersion=function(e,t){e===zi&&(e="Version");var n=t.match(new RegExp(e+"/"+Xi));return n?n[1]:Yi},e.prototype._getScreenResolution=function(){var e={h:0,w:0},t=Le();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e},e._staticInit=void ai(e.prototype,"userConsent",e.prototype.getUserConsent),e}(),Qi="Windows",Zi="Mac OS X",$i="Android",er=/(windows|win32)/i,tr=/ arm;/i,nr=/windows\sphone\s\d+\.\d+/i,ir=/(macintosh|mac os x)/i,rr=/(ipad|iphone|ipod)(?=.*like mac os x)/i,or=/(linux|joli|[kxln]?ubuntu|debian|[open]*suse|gentoo|arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk)/i,ar=/android/i,sr=/CrOS/i,cr={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},lr="Unknown",ur=function(){function e(e){var t="undefined"!==typeof navigator?navigator.userAgent:"";if(e.userAgent&&(t=e.userAgent),t&&e.populateOperatingSystemInfo){var n=this._getOsName(t.toLowerCase());this.name=n,this.ver=this._getOsVersion(t,n)}}return e.prototype._getOsName=function(e){return e.match(nr)?"Windows Phone":e.match(tr)?"Windows RT":e.match(er)?Qi:e.match(rr)?"iOS":e.match(ar)?$i:e.match(or)?"Linux":-1!==e.indexOf("x11")?"Unix":-1!==e.indexOf("blackberry")?"BlackBerry":-1!==e.indexOf("symbian")?"Symbian":-1!==e.indexOf("nokia")?"Nokia":e.match(ir)?Zi:e.match(sr)?"Chrome OS":lr},e.prototype._getOsVersion=function(e,t){return t===Qi?this._getGenericOsVersion(e,"Windows NT"):t===$i?this._getGenericOsVersion(e,t):t===Zi?this._getMacOsxVersion(e):lr},e.prototype._getGenericOsVersion=function(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?cr[n[1]]?cr[n[1]]:n[1]:lr},e.prototype._getMacOsxVersion=function(e){var t=e.match(new RegExp(Zi+" ([\\d,_,.]+)"));if(t){var n=t[1].replace(/_/g,".");if(n){var i=this._getDelimiter(n);return i?n.split(i)[0]:n}}return lr},e.prototype._getDelimiter=function(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null},e}(),dr=function(){function e(e){e.serviceName&&(this.serviceName=e.serviceName)}return e.prototype.getMsfpc=function(){return ei("MSFPC")},e.prototype.getAnid=function(){return ei("ANON").slice(0,34)},e._staticInit=(ai(e.prototype,"msfpc",e.prototype.getMsfpc),void ai(e.prototype,"anid",e.prototype.getAnid)),e}(),pr=function(e){this.popSample=100,this.eventFlags=0,e.hashIdentifiers&&(this.eventFlags=1048576|this.eventFlags),e.dropIdentifiers&&(this.eventFlags=2097152|this.eventFlags)},fr=function(){var e=(new Date).getTimezoneOffset(),t=e%60,n=(e-t)/60,i="+";n>0&&(i="-"),n=Math.abs(n),t=Math.abs(t),this.tz=i+(n<10?"0"+n:n.toString())+":"+(t<10?"0"+t:t.toString())},gr=function(){},hr=function(){function e(){}return e.prototype.setId=function(e){this.customId=e},e.prototype.getId=function(){return Ln(this.customId)?this.customId:this.automaticId},e._staticInit=void ai(e.prototype,"id",e.prototype.getId,e.prototype.setId),e}(),mr=function(e,t,n,i){if(e.enableApplicationInsightsTrace){this.traceId=t||at.generateW3CId(),this.parentId=n,this.name=i;var r=Ve();r&&r.pathname&&(this.name=r.pathname)}},vr=function(){function e(){}return e.id="id",e.ver="ver",e.appName="name",e.locale="locale",e.expId="expId",e.env="env",e}(),yr=function(){function e(){}return e.domain="domain",e.browser="browser",e.browserVer="browserVer",e.screenRes="screenRes",e.userConsent="userConsent",e.consentDetails="consentDetails",e}(),Cr=function(){function e(){}return e.locale="locale",e.localId="localId",e.id="id",e}(),br=function(){function e(){}return e.osName="name",e.ver="ver",e}(),Er=function(){function e(){}return e.ver="ver",e.seq="seq",e.installId="installId",e.epoch="epoch",e}(),xr=function(){function e(){}return e.msfpc="msfpc",e.anid="anid",e.serviceName="serviceName",e}(),Ir=function(){function e(){}return e.popSample="popSample",e.eventFlags="eventFlags",e}(),Tr=function(){function e(){}return e.tz="tz",e}(),_r=function(){function e(){}return e.sessionId="sesId",e}(),wr=function(){function e(){}return e.localId="localId",e.deviceClass="deviceClass",e.make="make",e.model="model",e}(),Sr=function(){function e(){}return e.role="role",e.roleInstance="roleInstance",e.roleVer="roleVer",e}(),Nr=function(){function e(){}return e.traceId="traceID",e.traceName="name",e.parentId="parentID",e}(),Ar=function(){function e(){}return e.UserExt="user",e.DeviceExt="device",e.TraceExt="trace",e.WebExt="web",e.AppExt="app",e.OSExt="os",e.SdkExt="sdk",e.IntWebExt="intweb",e.UtcExt="utc",e.LocExt="loc",e.CloudExt="cloud",e}(),Pr="MicrosoftApplicationsTelemetryDeviceId",kr=function(){function e(e){if(this._sequenceId=0,this._propertyStorage=e.propertyStorageOverride,this.seq=this._sequenceId,this.epoch=(new Date).getTime().toString(),!e.disableCookiesUsage&&Jn()||this._propertyStorage){var t=this._getData(Pr);t||(t=at.newGuid()),this._saveData(Pr,t),this.installId=t}else $n(Pr)}return e.prototype.getSequenceId=function(){return++this._sequenceId},e.prototype._saveData=function(e,t){var n=this._propertyStorage;n?n.setProperty(e,t):Zn(e,t,365)},e.prototype._getData=function(e){return this._propertyStorage?this._propertyStorage.getProperty(e)||"":ei(e)},e}(),Or=function(){function e(t,n){var i,r,o;Ut(e,this,(function(a){var s,c={sessionRenewalMs:(s=t).sessionRenewalMs&&function(){return s.sessionRenewalMs},sessionExpirationMs:s.sessionExpirationMs&&function(){return s.sessionExpirationMs},cookieDomain:s.cookieDomain&&function(){return s.cookieDomain},namePrefix:s.namePrefix&&function(){return s.namePrefix},sessionAsGuid:function(){return s.sessionAsGuid},idLength:function(){return s.idLength?s.idLength:22}};function l(e){var t=a.automaticSession,n=e.split("|");n.length>0&&t.setId(n[0]);try{if(n.length>1){var i=+n[1];t.acquisitionDate=+new Date(i),t.acquisitionDate=t.acquisitionDate>0?t.acquisitionDate:0}if(n.length>2){var o=+n[2];t.renewalDate=+new Date(o),t.renewalDate=t.renewalDate>0?t.renewalDate:0}}catch(s){r.throwInternal(ot.CRITICAL,En.ErrorParsingAISessionCookie,"Error parsing ai_session cookie, session will be reset: "+s)}0===t.renewalDate&&r.throwInternal(ot.WARNING,En.SessionRenewalDateIsZero,"AI session renewal date is 0, session will be reset.")}function u(){var e=a.automaticSession,t=(new Date).getTime(),n=a.config.sessionAsGuid();!at.isUndefined(n)&&n?at.isBoolean(n)?e.setId(ti()):e.setId(ti(n)):e.setId(at.newId(c&&c.idLength?c.idLength():22)),e.acquisitionDate=t,e.renewalDate=t,d(e.getId(),e.acquisitionDate,e.renewalDate),Li()||r.throwInternal(ot.WARNING,En.BrowserDoesNotSupportLocalStorage,"Browser does not support local storage. Session durations will be inaccurate.")}function d(e,t,n){var r=t+a.config.sessionExpirationMs(),s=n+a.config.sessionRenewalMs(),c=new Date,l=[e,t,n];r<s?c.setTime(r):c.setTime(s);var u=a.config.cookieDomain?a.config.cookieDomain():null;Di(0,o(),l.join("|")+";expires="+c.toUTCString(),u),i=(new Date).getTime()}r=at.isNullOrUndefined(n)?new Bt:n,at.isFunction(t.sessionExpirationMs)||(c.sessionExpirationMs=function(){return e.acquisitionSpan}),at.isFunction(t.sessionRenewalMs)||(c.sessionRenewalMs=function(){return e.renewalSpan}),a.config=c,o=function(){return a.config.namePrefix&&a.config.namePrefix()?e.cookieNameConst+a.config.namePrefix():e.cookieNameConst},a.automaticSession=new hr,a.update=function(){a.automaticSession.getId()||function(){var e=ei(o());if(e&&at.isFunction(e.split))l(e);else{var t=function(e,t){var n=Ri();if(null!==n)try{return n.getItem(t)}catch(i){Ni=!1,e.throwInternal(ot.CRITICAL,En.BrowserCannotReadLocalStorage,"Browser failed read of local storage. "+i)}return null}(r,o());t&&l(t)}a.automaticSession.getId()||u()}();var t=a.automaticSession,n=a.config,s=(new Date).getTime(),c=s-t.acquisitionDate>n.sessionExpirationMs(),p=s-t.renewalDate>n.sessionRenewalMs();if(c||p)u();else{(!i||s-i>e.cookieUpdateInterval)&&(t.renewalDate=s,d(t.getId(),t.acquisitionDate,t.renewalDate))}},a.backup=function(){var e,t,n,i=a.automaticSession;e=i.getId(),t=i.acquisitionDate,n=i.renewalDate,function(e,t,n){var i=Ri();if(null!==i)try{i.setItem(t,n)}catch(r){Ni=!1,e.throwInternal(ot.CRITICAL,En.BrowserCannotWriteLocalStorage,"Browser failed write to local storage. "+r)}}(r,o(),[e,t,n].join("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e.cookieNameConst="ai_session",e}(),Dr=Ln,Lr=function(){function e(e,t,n){this.app=new Pi(t),this.cloud=new ki,this.user=new Vi(e,t,n&&n.logger),this.os=new ur(t),this.web=new Ji(t),this.sdk=new kr(e),this.intWeb=new dr(t),this.utc=new pr(t),this.loc=new fr,this.device=new gr,this.telemetryTrace=new mr(t),this.sessionManager=new Or(t,n&&n.logger),this.session=new hr}return e.prototype.getSessionId=function(){var e=this.session;if(e&&Dr(e.customId))return e.customId;var t=this.sessionManager;t.update();var n=t.automaticSession;if(n){var i=n.getId();i&&Dr(i)&&(e.automaticId=i)}return e.automaticId},e.prototype.applyApplicationContext=function(e){var t=this.app;Dr(t.id)&&(e.ext[Ar.AppExt][vr.id]=t.id),Dr(t.ver)&&(e.ext[Ar.AppExt][vr.ver]=t.ver),Dr(t.name)&&(e.ext[Ar.AppExt][vr.appName]=t.name),Dr(t.locale)&&(e.ext[Ar.AppExt][vr.locale]=t.locale);var n=t.getExpId();Dr(n)&&(e.ext[Ar.AppExt][vr.expId]=n),Dr(t.env)&&(e.ext[Ar.AppExt][vr.env]=t.env)},e.prototype.applyUserContext=function(e){var t=this.user,n=t.getLocalId();Dr(n)&&(e.ext[Ar.UserExt][Cr.localId]=n),Dr(t.locale)&&(e.ext[Ar.UserExt][Cr.locale]=t.locale),Dr(t.id)&&(e.ext[Ar.UserExt][Cr.id]=t.id)},e.prototype.applyWebContext=function(e){var t=this.web;Dr(t.domain)&&(e.ext[Ar.WebExt][yr.domain]=t.domain),Dr(t.browser)&&(e.ext[Ar.WebExt][yr.browser]=t.browser),Dr(t.browserVer)&&(e.ext[Ar.WebExt][yr.browserVer]=t.browserVer),Dr(t.screenRes)&&(e.ext[Ar.WebExt][yr.screenRes]=t.screenRes),e.ext[Ar.WebExt][yr.userConsent]=t.getUserConsent(),e.ext[Ar.WebExt][yr.consentDetails]=t.getUserConsentDetails()},e.prototype.applyOsContext=function(e){var t=this.os;Dr(t.name)&&(e.ext[Ar.OSExt][br.osName]=t.name),Dr(t.ver)&&(e.ext[Ar.OSExt][br.ver]=t.ver)},e.prototype.applySdkContext=function(e){var t=this.sdk;e.ext[Ar.SdkExt][Er.seq]=t.getSequenceId(),e.ext[Ar.SdkExt][Er.epoch]=t.epoch,Dr(t.installId)&&(e.ext[Ar.SdkExt][Er.installId]=t.installId)},e.prototype.applyIntWebContext=function(e){var t=this.intWeb,n=t.getMsfpc();Dr(n)&&(e.ext[Ar.IntWebExt][xr.msfpc]=n);var i=t.getAnid();Dr(i)&&(e.ext[Ar.IntWebExt][xr.anid]=i),Dr(t.serviceName)&&(e.ext[Ar.IntWebExt][xr.serviceName]=t.serviceName)},e.prototype.applyUtcContext=function(e){var t=this.utc;e.ext[Ar.UtcExt][Ir.popSample]=t.popSample,t.eventFlags>0&&(e.ext[Ar.UtcExt][Ir.eventFlags]=t.eventFlags)},e.prototype.applyLocContext=function(e){e.ext[Ar.LocExt][Tr.tz]=this.loc.tz},e.prototype.applySessionContext=function(e){e.ext[Ar.AppExt][_r.sessionId]=this.getSessionId()},e.prototype.applyDeviceContext=function(e){var t=this.device;Dr(t.localId)&&(e.ext[Ar.DeviceExt][wr.localId]=t.localId),Dr(t.make)&&(e.ext[Ar.DeviceExt][wr.make]=t.make),Dr(t.model)&&(e.ext[Ar.DeviceExt][wr.model]=t.model),Dr(t.deviceClass)&&(e.ext[Ar.DeviceExt][wr.deviceClass]=t.deviceClass)},e.prototype.applyCloudContext=function(e){var t=this.cloud;Dr(t.role)&&(e.ext[Ar.CloudExt][Sr.role]=t.role),Dr(t.roleInstance)&&(e.ext[Ar.CloudExt][Sr.roleInstance]=t.roleInstance),Dr(t.roleVer)&&(e.ext[Ar.CloudExt][Sr.roleVer]=t.roleVer)},e.prototype.applyAITraceContext=function(e){var t=this.telemetryTrace;Dr(t.traceId)&&(e.ext[Ar.TraceExt][Nr.traceId]=t.traceId),Dr(t.name)&&(e.ext[Ar.TraceExt][Nr.traceName]=t.name),Dr(t.parentId)&&(e.ext[Ar.TraceExt][Nr.parentId]=t.parentId)},e}(),Rr=function(e){function t(){var n,i=e.call(this)||this;i.identifier="SystemPropertiesCollector",i.priority=3,i.version="3.0.2";var r={};return Ut(t,i,(function(t,o){t.initialize=function(r,o,a){e.prototype.initialize.call(i,r,o,a),n=new Lr(r,t._getTelCtx().getExtCfg(t.identifier),o)},t.processTelemetry=function(e,i){ci(e,t.identifier),i=t._getTelCtx(i);var o,a,s=e.ext=e.ext?e.ext:{};e.data=e.data?e.data:{},s[Ar.AppExt]=s[Ar.AppExt]||{},s[Ar.UserExt]=s[Ar.UserExt]||{},s[Ar.WebExt]=s[Ar.WebExt]||{},s[Ar.OSExt]=s[Ar.OSExt]||{},s[Ar.SdkExt]=s[Ar.SdkExt]||{},s[Ar.IntWebExt]=s[Ar.IntWebExt]||{},s[Ar.UtcExt]=s[Ar.UtcExt]||{},s[Ar.LocExt]=s[Ar.LocExt]||{},s[Ar.DeviceExt]=s[Ar.DeviceExt]||{},s[Ar.TraceExt]=s[Ar.TraceExt]||{},s[Ar.CloudExt]=s[Ar.CloudExt]||{},n.applyApplicationContext(e),n.applyUserContext(e),n.applyWebContext(e),n.applyOsContext(e),n.applySdkContext(e),n.applyIntWebContext(e),n.applyUtcContext(e),n.applyLocContext(e),n.applySessionContext(e),n.applyDeviceContext(e),n.applyAITraceContext(e),n.applyCloudContext(e),kn(On(s),(function(e){0===On(s[e]).length&&delete s[e]})),o=r,a=e.data,o&&rt(o,(function(e,t){a[e]||(a[e]=t)})),t.processNext(e,i)},t.getPropertiesContext=function(){return n},t.setProperty=function(e,t){r[e]=t}})),i}return __extends(t,e),t}(Qt),Mr="undefined";var Ur=function(e,t){return Ur=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Ur(e,t)};var Vr=(typeof globalThis!==Mr&&globalThis?globalThis:typeof self!==Mr&&self?self:typeof window!==Mr&&window?window:typeof n.g!==Mr&&n.g?n.g:null)||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(Vr,(function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}),(function(e,t){function n(){this.constructor=e}Ur(e,t),e.prototype=null===t?function(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if("object"!==n&&"function"!==n)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}(t):(n.prototype=t.prototype,new n)})),__assign||(__assign=Vr.__assign),__extends||(__extends=Vr.__extends);var Fr="REAL_TIME",Br=function(){function e(t,n){var i=n?[].concat(n):[],r=at.isNullOrUndefined,o=this;o.iKey=function(){return t},o.count=function(){return i.length},o.events=function(){return i},o.addEvents=function(e,t){return void 0===t&&(t=!0),e&&e.length>0?(i=t?i.concat(e):e.concat(i),e.length):0},o.split=function(n,o){var a=new e(t);if(n<i.length){var s=i.length-n;r(o)||(s=o<s?o:s),a.addEvents(i.splice(n,s),!0)}return a}}return e.create=function(t,n){return new e(t,n)},e}(),Hr=2e6,zr=Math.min(Hr,65e3),Gr=/\./,Wr=function e(t,n,i,r){var o="data",a="baseData",s=!!r,c=n,l={};Ut(e,this,(function(e){function n(e,t,r,o,a,u){rt(e,(function(e,d){var p=null;if(Gn(d)){var f=r,g=e,h=a,m=t;if(s&&!o&&Gr.test(e)){var v=e.split("."),y=v.length;if(y>1){h&&(h=h.slice());for(var C=0;C<y-1;C++){var b=v[C];m=m[b]=m[b]||{},f+="."+b,h&&h.push(b)}g=v[y-1]}}var E=o&&function(e,t){var n=l[e];return void 0===n&&(n=!1,(0===e.indexOf("ext.metadata")||0===e.indexOf("ext.web"))&&(n=!0),l[e]=n),n}(f);if(p=!E&&c&&c.handleField(f,g)?c.value(f,g,d,i):Kn(g,d,i)){var x=p.value;if(m[g]=x,u&&u(h,g,p),Fn(x)&&!Vn(x)){var I=h;I&&(I=I.slice()).push(g),n(d,x,f+"."+g,o,I,u)}}}}))}e.createPayload=function(e,t,n,i){return{apiKeys:[],payloadBlob:"",overflow:null,sizeExceed:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:i}},e.appendPayload=function(n,i,r){var o=n&&i&&!n.overflow;return o&&Wt(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=i.events(),o=n.payloadBlob,a=n.numEvents,s=!1,c=[],l=n.isBeacon,u=l?65e3:3984588,d=l?zr:Hr,p=0,f=0;p<t.length;){var g=t[p];if(g){if(a>=r){n.overflow=i.split(p);break}var h=e.getEventBlob(g);if(h.length<=d){var m=h.length;if(o.length+m>u){n.overflow=i.split(p);break}o&&(o+="\n"),o+=h,++f>20&&(o.substr(0,1),f=0),s=!0,a++}else c.push(g),t.splice(p,1),p--}p++}if(c&&c.length>0&&n.sizeExceed.push(Br.create(i.iKey(),c)),s){n.batches.push(i),n.payloadBlob=o,n.numEvents=a;var v=i.iKey();-1===at.arrIndexOf(n.apiKeys,v)&&n.apiKeys.push(v)}}),(function(){return{payload:n,theBatch:{iKey:i.iKey(),evts:i.events()},max:r}})),o},e.getEventBlob=function(e){return Wt(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={name:e.name,time:e.time,ver:e.ver,iKey:"o:"+Wn(e.iKey)},i={},r=e.ext;r&&(t.ext=i,rt(r,(function(e,t){n(t,i[e]={},"ext."+e,!0,null,null)})));var s=t.data={baseType:e.baseType},c=s.baseData={};return n(e.baseData,c,a,!1,[a],(function(e,t,n){qr(i,e,t,n)})),n(e.data,s,o,!1,[],(function(e,t,n){qr(i,e,t,n)})),JSON.stringify(t)}),(function(){return{item:e}}))}}))};function qr(e,t,n,i){if(i&&e){var r=Yn(i.value,i.kind,i.propertyType);if(r>-1){var o=e.metadata;o||(o=e.metadata={f:{}});var a=o.f;a||(a=o.f={}),kn(t,(function(e){a[e]||(a[e]={f:{}});var t=a[e].f;t||(t=a[e].f={}),a=t})),a=a[n]={},Vn(i.value)?a.a={t:r}:a.t=r}}}var jr,Kr=function(){function e(){}return e.shouldRetryForStatus=function(e){return!(e>=300&&e<500&&408!==e&&429!==e||501===e||505===e)},e.getMillisToBackoffForRetry=function(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)},e}(),Xr=function e(){var t={};Ut(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var i=function(e){var t=[];return e&&kn(e,(function(e){t.push(Bn(e))})),t}(e.split(","));if("this-request-only"===n)return i;for(var r=1e3*parseInt(n,10),o=0;o<i.length;++o)t[i[o]]=at.dateNow()+r}catch(a){return[]}return[]},e.isTenantKilled=function(e){var n=t,i=Bn(e);return void 0!==n[i]&&n[i]>at.dateNow()||(delete n[i],!1)}}))},Yr=function e(){var t=!0,n=!0,i=!0,r="use-collector-delta",o=!1;Ut(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){i&&(i=!1,o||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return r},e.setClockSkew=function(e){o||(e?(r=e,n=!0,o=!0):n=!1,t=!0)}}))},Jr="POST",Qr="Microsoft_ApplicationInsights_BypassAjaxInstrumentation",Zr="drop",$r="send",eo="requeue",to="rspFail",no="kill-duration",io="time-delta-millis",ro=((jr={})[1]=eo,jr[100]=eo,jr[200]="sent",jr[8004]=Zr,jr[8003]=Zr,jr);function oo(e){try{return e.responseText}catch(t){}return""}var ao=function e(t,n,i,r){this._responseHandlers=[];var o,a,s,c="?cors=true&content-type=application/x-json-stream&client-id=NO_AUTH&client-version=1DS-Web-JS-3.0.2",l=new Xr,u=!1,d=new Yr,p=!1,f=0,g=!0,h=[],m={},v=[],y=null,C=!1;Ut(e,this,(function(e){var b=!0;function E(e,t){var n=new XDomainRequest;n.open(Jr,e.urlString),n.onload=function(){var e=oo(n);T(t,200,{},e),M(e)},n.onerror=function(){T(t,400,{})},n.ontimeout=function(){T(t,500,{})},n.send(e.data)}function x(e,t){var n;fetch(e.urlString,(n={body:e.data,method:Jr,credentials:"include"},n[Qr]=!0,n.headers=e.headers,n)).then((function(e){var n={},i="";e.headers&&e.headers.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){i=e})),T(t,e.status,n,i),M(i)})).catch((function(e){T(t,0,{})}))}function I(e,t,n){function i(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var i=t.getResponseHeader(n);i&&(e[n]=Bn(i))}return e}function r(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if(Ln(e)){var n=Bn(e).split(/[\r\n]+/);kn(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var i=Bn(e.substring(0,n)).toLowerCase(),r=Bn(e.substring(n+1));t[i]=r}else t[Bn(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=i(t,e,io),t=i(t,e,no),t=i(t,e,"kill-duration-seconds")),t}function o(e,n){T(t,e.status,r(e),n)}var a=new XMLHttpRequest;try{a[Qr]=!0}catch(s){}b&&(a.withCredentials=!0),a.open(Jr,e.urlString,!n),kn(On(e.headers),(function(t){a.setRequestHeader(t,e.headers[t])})),a.onload=function(){var e=oo(a);o(a,e),M(e)},a.onerror=function(){o(a)},a.ontimeout=function(){o(a)},a.send(e.data)}function T(e,t,n,i){try{e(t,n,i)}catch(r){o.diagLog().throwInternal(ot.WARNING,En.SendPostOnCompleteFailure,r)}}function _(){return!u&&f<n}function w(){var e=v;return v=[],e}function S(e,t,n){var i=!1;return e&&e.length>0&&!u&&a&&y&&(i=t||_()&&(n>0||d.allowRequestSending())),i}function N(e){var t={};return e&&kn(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function A(e,n,i,r,o,a){if(e&&0!==e.length)if(u)U(e,1,r);else{var c=e;Wt(s,(function(){return"HttpManager:_sendBatches"}),(function(s){s&&(e=e.slice(0));for(var c=[],u=null,d=ii();S(e,r,n);){var p=e.shift();p&&p.count()>0&&(l.isTenantKilled(p.iKey())?c.push(p):(u=u||y.createPayload(n,i,r,a&&k()),y.appendPayload(u,p,t)?null!==u.overflow&&(e=[u.overflow].concat(e),u.overflow=null,D(u,d,ii(),o),d=ii(),u=null):(D(u,d,ii(),o),d=ii(),e=[p].concat(e),u=null)))}u&&D(u,d,ii(),o),e.length>0&&(v=e.concat(v)),U(c,8004,r)}),(function(){return{batches:N(c),retryCount:n,isTeardown:i,isSynchronous:r,sendReason:o,useSendBeacon:a}}),!r)}}function P(e){var t=c,n="";kn(e.apiKeys,(function(e){n.length>0&&(n+=","),n+=e})),n.length>0&&(t+="&apikey="+n),t+="&upload-time="+at.dateNow().toString();var i=function(e){for(var t=0;t<e.batches.length;t++)for(var n=e.batches[t].events(),i=0;i<n.length;i++){var r=(n[i].ext||{}).intweb||{};if(Gn(r.msfpc))return encodeURIComponent(r.msfpc)}return""}(e);if(Gn(i)&&(t=t+"&ext.intweb.msfpc="+i),d.shouldAddClockSkewHeaders()&&(t+="&time-delta-to-apply-millis="+d.getClockSkewHeaderValue()),s.getWParam){var r=s.getWParam();r>=0&&(t+="&w="+r)}for(var o=0;o<h.length;o++)t+="&"+h[o].name+"="+h[o].value;return t}function k(){return!g&&p&&qn()}function O(e,t,n){e[t]=e[t]||{},e[t][o.identifier]=n}function D(t,n,r,c){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var u=P(t),p=ii();Wt(s,(function(){return"HttpManager:_doPayloadSend"}),(function(){kn(t.batches,(function(e){kn(e.events(),(function(e){if(C){var t=e.timings=e.timings||{};O(t,"sendEventStart",p),O(t,"serializationStart",n),O(t,"serializationCompleted",r)}e.sendAttempt>0?e.sendAttempt++:e.sendAttempt=1}))})),U(t.batches,1e3+(c||0),t.isSync,!0);var g={data:t.payloadBlob,urlString:u,headers:m},h=null,v=!!e.sendHook;k()&&t.isBeacon?(v=!1,h=function(n){!function(e,t,n){try{if(qn()){var i=Ue();if(i.sendBeacon(e.urlString,e.data))return void L(t,200,n,!1);var r=null;kn(t.batches,(function(t){if(r&&t&&t.count()>0){for(var n=t.events(),o=0;o<n.length;o++)if(!i.sendBeacon(e.urlString,y.getEventBlob(n[o]))){r.push(t.split(o));break}}else r.push(t.split(0))})),L(t,200,n,!1),U(r,8003,t.isSync,!0)}}catch(a){o.diagLog().warnToConsole("Failed to send telemetry using sendBeacon API. Ex:"+a)}}(n,t,c),e.sendListener&&e.sendListener(g,n,t.isSync||t.isTeardown,!0)}):a&&(h=function(n){d.firstRequestSent();var r=function(e,n){!function(e,t,n,r){var o=9e3,a=null,s=!1,c=!1;try{var u=!0;if(typeof e!==In){if(t){d.setClockSkew(t[io]);var p=t["kill-duration"]||t["kill-duration-seconds"];kn(l.setKillSwitchTenants(t["kill-tokens"],p),(function(e){kn(n.batches,(function(t){if(t.iKey()===e){a=a||[];var i=t.split(0);n.numEvents-=i.count(),a.push(i)}}))}))}if(200===e)return void(o=200);(!Kr.shouldRetryForStatus(e)||n.numEvents<=0)&&(u=!1),o=9e3+e%1e3}if(u){o=100;var g=n.retryCnt;n.isSync||(g<i?(s=!0,R((function(){n.isSync||f--,A(n.batches,g+1,n.isTeardown,n.isSync,5,n.isBeacon)}),!0,Kr.getMillisToBackoffForRetry(g))):c=!0)}}finally{s||(d.setClockSkew(),L(n,o,r,c)),U(a,8004,n.isSync)}}(e,n,t,c)};try{a.sendPOST(n,r,t.isTeardown||t.isSync),e.sendListener&&e.sendListener(g,n,t.isSync||t.isTeardown,!1)}catch(o){T(r,0,{})}}),Wt(s,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(h)if(t.isSync||f++,v){var n={data:g.data,urlString:g.urlString,headers:g.headers},i=!1;Wt(s,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){i=!0,h(e)}),t.isSync||t.isTeardown)}catch(r){i||h(g)}}))}else h(g)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:r,sendReason:c}}),t.isSync)}U(t.sizeExceed,8003,t.isSync)}function L(t,n,i,r){try{r&&o._backOffTransmission(),200===n&&(r||t.isSync||o._clearBackOff(),function(e){if(C){var t=ii();kn(e,(function(e){var n,i;e&&e.count()>0&&(n=e.events(),i=t,C&&kn(n,(function(e){O(e.timings=e.timings||{},"sendEventCompleted",i)})))}))}}(t.batches)),U(t.batches,n,t.isSync,!0)}finally{t.isSync||(f--,5!==i&&e.sendQueuedRequests(i,!t.isSync,t.isBeacon))}}function R(e,t,n){t?e():o._setTimeoutOverride(e,n)}function M(t){var n=e._responseHandlers;try{for(var i=0;i<n.length;i++)try{n[i](t)}catch(a){o.diagLog().throwInternal(ot.CRITICAL,En.PostResponseHandler,"Response handler failed: "+a)}if(t){var r=JSON.parse(t);Gn(r.webResult)&&Gn(r.webResult.msfpc)&&Zn("MSFPC",r.webResult.msfpc,365)}}catch(s){}}function U(e,t,n,i){if(e&&e.length>0&&r){var a=r[function(e){var t=ro[e];return Gn(t)||(t="oth",e>=9e3&&e<=9999?t=to:e>=8e3&&e<=8999?t=Zr:e>=1e3&&e<=1999&&(t=$r)),t}(t)];a&&Wt(s,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){R((function(){try{a.call(r,e,t,n)}catch(i){o.diagLog().throwInternal(ot.CRITICAL,En.NotificationException,"send request notification failed: "+i)}}),i||n,0)}),(function(){return{batches:N(e),reason:t,isSync:n,sendSync:i}}),!n)}}e.initialize=function(e,t,n,i,r){r||(r={}),c=e+c,C=!(s=t).config.disableEventTimings;var l=!!s.config.enableCompoundKey;o=n;var u=r.valueSanitizer,d=r.stringifyObjects;if(at.isUndefined(r.enableCompoundKey)||(l=!!r.enableCompoundKey),y=new Wr(s,u,d,l),!(a=i)){g=!1,p=!Dn();var f=Ve();f&&f.protocol&&"file:"===f.protocol.toLowerCase()&&(b=!1);var h=null;Xn()?h=E:Dn()?h=x:"undefined"!==typeof XMLHttpRequest&&(h=I),a={sendPOST:h}}},e._getDbgPlgTargets=function(){return[a,l,y]},e.addQueryStringParameter=function(e,t){for(var n=0;n<h.length;n++)if(h[n].name===e)return void(h[n].value=t);h.push({name:e,value:t})},e.addHeader=function(e,t){m[e]=t},e.canSendRequest=function(){return _()&&d.allowRequestSending()},e.sendQueuedRequests=function(e,t,n){var i=!at.isNullOrUndefined(t)&&!t;S(v,i,0)&&A(w(),0,!1,i,e||0,!!n)},e.isCompletelyIdle=function(){return!u&&0===f&&0===v.length},e.addBatch=function(e){if(e&&e.count()>0){if(l.isTenantKilled(e.iKey()))return!1;v.push(e)}return!0},e.teardown=function(){v.length>0&&A(w(),0,!0,!0,2,!0)},e.pause=function(){u=!0},e.resume=function(){u=!1,e.sendQueuedRequests(4,!1)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&A([e],0,!1,!0,t||0,!!n)}}))},so=zn?window:void 0,co="eventsDiscarded",lo=function(e){function t(){var n,i=e.call(this)||this;i.identifier="PostChannel",i.priority=1011,i.version="3.0.2";var r,o,a,s,c,l=!1,u=[],d=null,p=!1,f=0,g=1e4,h={},m=Fr,v=null,y=0,C=0,b={},E=-1;return Ut(t,i,(function(e,t){function i(e,t){if(e.sendAttempt||(e.sendAttempt=0),e.latency||(e.latency=gn),e.ext&&e.ext.trace&&delete e.ext.trace,e.ext&&e.ext.user&&e.ext.user.id&&delete e.ext.user.id,e.sync)if(y||p)e.latency=mn,e.sync=!1;else if(o)return void o.sendSynchronousBatch(Br.create(e.iKey,[e]),3);var n=!1;f<g?n=!P(e,t):(n=!0,function(e,t){var n=gn;for(;n<=t;){var i=N(e,t,!0);if(i&&i.count()>0){var r=i.split(0,20);if(r.count()>0)return U(co,[r],Se),!0}n++}return!1}(e.iKey,e.latency)&&(n=!P(e,t))),n&&M(co,[e],Se)}function x(e,t,n,i){var r=k(e,t,n);return o.sendQueuedRequests(t,n,i),r}function I(){return f>0}function T(){E>=0&&k(E,c,!0)&&o.sendQueuedRequests(c,!0,!1);var e=h[m][1];!v&&!d&&e>=0&&!p&&(I()?v=_((function(){v=null,x(0===C?mn:gn,1,!0),C++,C%=2,T()}),e):C=0)}function _(t,n){0===n&&y&&(n=1);var i=1e3;return y&&(i=Kr.getMillisToBackoffForRetry(y-1)),e._setTimeoutOverride(t,n*i)}function w(){null!==v&&(e._clearTimeoutOverride(v),v=null,C=0)}function S(t,n){w(),d&&(e._clearTimeoutOverride(d),d=null),p||x(gn,t,n,!0)}function N(e,t,n){var i=b[t];i||(i=b[t=gn]);var r=i.iKeyMap[e];return!r&&n&&(r=Br.create(e),i.batches.push(r),i.iKeyMap[e]=r),r}function A(t,n){o.canSendRequest()&&!y&&(a>0&&f>a&&(n=!0),n&&null==d&&e.flush(t,null,20))}function P(e,t){var n=N(e.iKey,e.latency,!0);return!!n.addEvents([e],t)&&(f++,t&&0===e.sendAttempt&&A(!e.sync,s>0&&n.count()>=s),!0)}function k(t,n,i){var r=!1;return!i||o.canSendRequest()?Wt(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=mn;n>=t;){var i=b[n];i&&i.batches&&(kn(i.batches,(function(t){o.addBatch(t)?r=r||t&&t.count()>0:e=e.concat(t.events()),f-=t.count()})),i.batches=[],i.iKeyMap={}),n--}e.length>0&&M(co,e,we),r&&E>=t&&(E=-1,c=0)}),(function(){return{latency:t,sendReason:n}}),i):(E=E>=0?Math.min(E,t):t,c=Math.max(c,n)),r}function O(e,t){x(gn,t,!0),D((function(){e&&e(),u.length>0?d=_((function(){return O(u.shift(),t)}),0):(d=null,I()&&T())}))}function D(e){o.isCompletelyIdle()?e():d=_((function(){D(e)}),.25)}function L(){(h={}).REAL_TIME=[2,1],h.NEAR_REAL_TIME=[6,3],h.BEST_EFFORT=[18,9]}function R(t,n){var i=e._notificationManager||{},r=i[t];if(r)try{r.apply(i,n)}catch(o){e.diagLog().throwInternal(ot.CRITICAL,En.NotificationException,t+" notification failed: "+o)}}function M(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t&&t.length>0&&R(e,[t].concat(n))}function U(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];t&&t.length>0&&kn(t,(function(t){t&&t.count()>0&&R(e,[t.events()].concat(n))}))}function V(){s=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,g/6)}L(),b[mn]={batches:[],iKeyMap:{}},b[hn]={batches:[],iKeyMap:{}},b[gn]={batches:[],iKeyMap:{}},V(),o=new ao(500,2,1,{requeue:function(t,n){var r=[];kn(t,(function(t){t&&t.count()>0&&kn(t.events(),(function(t){t&&(t.sync&&(t.latency=mn,t.sync=!1),t.sendAttempt<6?(ci(t,e.identifier),i(t,!1)):r.push(t))}))})),r.length>0&&M(co,r,Te)},send:function(e,t,n){e&&e.length>0&&R("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])},sent:function(e,t){U("eventsSent",e,t),T()},drop:function(e,t){U(co,e,t>=8e3&&t<=8999?t-8e3:Ie)},rspFail:function(e){U(co,e,Te),T()},oth:function(e,t){U(co,e,Ie),T()}}),e._getDbgPlgTargets=function(){return[o]},e.initialize=function(i,s,c){Wt(s,(function(){return"PostChannel:initialize"}),(function(){var l=s;t.initialize(i,s,c),e.setInitialized(!1);var u=e._getTelCtx();i.extensionConfig[e.identifier]=i.extensionConfig[e.identifier]||{},n=u.getExtCfg(e.identifier),e._setTimeoutOverride=n.setTimeoutOverride?n.setTimeoutOverride:setTimeout.bind(so),e._clearTimeoutOverride=n.clearTimeoutOverride?n.clearTimeoutOverride:clearTimeout.bind(so);var d=l.getWParam;l.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|d()},n.eventsLimitInMem>0&&(g=n.eventsLimitInMem),n.autoFlushEventsLimit>0&&(a=n.autoFlushEventsLimit),V(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(r=n.httpXHROverride),Gn(i.anonCookieName)&&o.addQueryStringParameter("anoncknm",i.anonCookieName),o.sendHook=n.payloadPreprocessor,o.sendListener=n.payloadListener;var p=n.overrideEndpointUrl?n.overrideEndpointUrl:i.endpointUrl;e._notificationManager=i.extensionConfig.NotificationManager,o.initialize(p,e.core,e,r,n),si((function(){S(2,!1)})),e.setInitialized(!0)}),(function(){return{coreConfig:i,core:s,extensions:c}}))},e.processTelemetry=function(t,r){ci(t,e.identifier);var o=(r=e._getTelCtx(r)).getExtCfg(e.identifier),a=!!n.disableTelemetry;o&&(a=a||!!o.disableTelemetry);var s=t;a||l||(n.overrideInstrumentationKey&&(s.iKey=n.overrideInstrumentationKey),o&&o.overrideInstrumentationKey&&(s.iKey=o.overrideInstrumentationKey),i(s,!0),T()),e.processNext(s,r)},e.setEventQueueLimits=function(e,t){g=e>0?e:1e4,a=t>0?t:0,V();var n=f>e;if(!n&&s>0)for(var i=gn;!n&&i<=mn;i++){var r=b[i];r&&r.batches&&kn(r.batches,(function(e){e&&e.count()>=s&&(n=!0)}))}A(!0,n)},e.teardown=function(){S(2,!1),l=!0,o.teardown()},e.pause=function(){w(),p=!0,o.pause()},e.resume=function(){p=!1,o.resume(),T()},e.addResponseHandler=function(e){o._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){w(),L(),m=Fr,T(),rt(e,(function(e,t){if(t.length>=2){if(t.splice(0,t.length-2),t[1]<0&&(t[0]=-1),t[1]>0&&t[0]>0){var n=t[0]/t[1];t[0]=Math.ceil(n)*t[1]}h[e]=t}}))},e.flush=function(e,t,n){void 0===e&&(e=!0),p||(w(),n=n||1,e?(k(gn,n,e),null==d?d=_((function(){O(t,n)}),0):u.push(t)):(x(gn,n,!1),null!==t&&void 0!==t&&t()))},e.setMsaAuthTicket=function(e){o.addHeader("AuthMsaDeviceTicket",e)},e.hasEvents=I,e._setTransmitProfile=function(e){m!==e&&void 0!==h[e]&&(w(),m=e,T())},e._backOffTransmission=function(){y<4&&(y++,w(),T())},e._clearBackOff=function(){y&&(y=0,w(),T())}})),i}return __extends(t,e),t}(Qt),uo="function",po="object",fo="undefined";function go(){return typeof globalThis!==fo&&globalThis?globalThis:typeof self!==fo&&self?self:typeof window!==fo&&window?window:typeof n.g!==fo&&n.g?n.g:null}function ho(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if(n!==po&&n!==uo)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}var mo=function(e,t){return mo=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},mo(e,t)};var vo,yo,Co,bo=go()||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(bo,(function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}),(function(e,t){function n(){this.constructor=e}mo(e,t),e.prototype=null===t?ho(t):(n.prototype=t.prototype,new n)})),__assign||(__assign=bo.__assign),__extends||(__extends=bo.__extends),function(e){e[e.LocalStorage=0]="LocalStorage",e[e.SessionStorage=1]="SessionStorage"}(vo||(vo={})),function(e){e[e.Default=0]="Default",e[e.Required=1]="Required",e[e.Array=2]="Array",e[e.Hidden=4]="Hidden"}(yo||(yo={})),function(e){e[e.AI=0]="AI",e[e.AI_AND_W3C=1]="AI_AND_W3C",e[e.W3C=2]="W3C"}(Co||(Co={}));var Eo=2,xo=po,Io="window",To="JSON",_o=go;function wo(e){var t=_o();return t&&t[e]?t[e]:e===Io&&So()?window:null}function So(){return Boolean(typeof window===xo&&window)}function No(){return So()?window:wo(Io)}function Ao(){return Boolean(typeof document===xo&&document)?document:wo("document")}function Po(){return Boolean(typeof navigator===xo&&navigator)?navigator:wo("navigator")}function ko(){return Boolean(typeof history===xo&&history)?history:wo("history")}function Oo(){return typeof location===xo&&location?location:wo("location")}function Do(){return wo("performance")}function Lo(){return Boolean(typeof JSON===xo&&JSON||null!==wo(To))}function Ro(){return Lo()?JSON||wo(To):null}var Mo=4294967296,Uo=4294967295,Vo=null,Fo=!1,Bo=123456789,Ho=987654321;function zo(e){e<0&&(e>>>=0),Bo=123456789+e&Uo,Ho=987654321-e&Uo,Fo=!0}function Go(){zo(Math.random()*Mo^(new Date).getTime())}function Wo(e,t){return typeof e===t}function qo(e){return Wo(e,fo)||void 0===e}function jo(e){return qo(e)||null===e}function Ko(e,t){return e&&Object.prototype.hasOwnProperty.call(e,t)}function Xo(e){return Wo(e,po)}function Yo(e){return Wo(e,uo)}function Jo(e,t,n,i){void 0===i&&(i=!1);var r=!1;if(!jo(e))try{jo(e.addEventListener)?jo(e.attachEvent)||(e.attachEvent("on"+t,n),r=!0):(e.addEventListener(t,n,i),r=!0)}catch(o){}return r}function Qo(e,t,n,i){if(void 0===i&&(i=!1),!jo(e))try{jo(e.removeEventListener)?jo(e.detachEvent)||e.detachEvent("on"+t,n):e.removeEventListener(t,n,i)}catch(r){}}function Zo(e,t,n,i){var r=Object.defineProperty;if(r)try{var o={enumerable:!0,configurable:!0};return n&&(o.get=n),i&&(o.set=i),r(e,t,o),!0}catch(a){}return!1}function $o(e,t){if(e&&Xo(e))for(var n in e)Ko(e,n)&&t.call(e,n,e[n])}var ea,ta=function(){function e(){}return e.isDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)},e.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.isError=function(e){return"[object Error]"===Object.prototype.toString.call(e)},e.isString=function(e){return Wo(e,"string")},e.isNumber=function(e){return Wo(e,"number")},e.isBoolean=function(e){return Wo(e,"boolean")},e.disableCookies=function(){e._canUseCookies=!1},e.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(na,(function(t){var n=0|e.randomValue(15);return("x"===t?n:3&n|8).toString(16)}))},e.toISOString=function(t){if(e.isDate(t)){var n=function(e){var t=String(e);return 1===t.length&&(t="0"+t),t};return t.getUTCFullYear()+"-"+n(t.getUTCMonth()+1)+"-"+n(t.getUTCDate())+"T"+n(t.getUTCHours())+":"+n(t.getUTCMinutes())+":"+n(t.getUTCSeconds())+"."+String((t.getUTCMilliseconds()/1e3).toFixed(3)).slice(2,5)+"Z"}},e.arrForEach=function(e,t,n){for(var i=e.length,r=0;r<i;r++)r in e&&t.call(n||e,e[r],r,e)},e.arrIndexOf=function(e,t,n){for(var i=e.length,r=n||0,o=Math.max(r>=0?r:i-Math.abs(r),0);o<i;o++)if(o in e&&e[o]===t)return o;return-1},e.arrMap=function(e,t,n){for(var i=e.length,r=n||e,o=new Array(i),a=0;a<i;a++)a in e&&(o[a]=t.call(r,e[a],e));return o},e.arrReduce=function(e,t,n){var i,r=e.length,o=0;if(arguments.length>=3)i=arguments[2];else{for(;o<r&&!(o in e);)o++;i=e[o++]}for(;o<r;)o in e&&(i=t(i,e[o],o,e)),o++;return i},e.strTrim=function(t){return e.isString(t)?t.replace(/^\s+|\s+$/g,""):t},e.objKeys=function(e){var t=!{toString:null}.propertyIsEnumerable("toString");if(!Yo(e)&&(!Xo(e)||null===e))throw new TypeError("objKeys called on non-object");var n=[];for(var i in e)Ko(e,i)&&n.push(i);if(t)for(var r=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],o=r.length,a=0;a<o;a++)Ko(e,r[a])&&n.push(r[a]);return n},e.addEventHandler=function(e,t){var n=!1,i=No();i&&(n=Jo(i,e,t),n=Jo(i.body,e,t)||n);var r=Ao();return r&&(n=ia.Attach(r,e,t)||n),n},e.dateNow=function(){var e=Date;return e.now?e.now():(new e).getTime()},e.perfNow=function(){var t=Do();return t&&t.now?t.now():e.dateNow()},e.newId=function(t){void 0===t&&(t=22);for(var n=e.random32()>>>0,i=0,r="";r.length<t;)i++,r+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&n),n>>>=6,5===i&&(n=(e.random32()<<2&4294967295|3&n)>>>0,i=0);return r},e.isIE=function(){if(null===Vo){var e=((Po()||{}).userAgent||"").toLowerCase();Vo=-1!==e.indexOf("msie")||-1!==e.indexOf("trident/")}return Vo},e.randomValue=function(t){return t>0?Math.floor(e.random32()/Uo*(t+1))>>>0:0},e.random32=function(t){var n,i=wo("crypto")||wo("msCrypto");return i&&i.getRandomValues?n=i.getRandomValues(new Uint32Array(1))[0]&Uo:e.isIE()?(Fo||Go(),n=e.mwcRandom32()&Uo):n=Math.floor(Mo*Math.random()|0),t||(n>>>=0),n},e.mwcRandomSeed=function(e){e?zo(e):Go()},e.mwcRandom32=function(e){var t=((Ho=36969*(65535&Ho)+(Ho>>16)&Uo)<<16)+(65535&(Bo=18e3*(65535&Bo)+(Bo>>16)&Uo))>>>0&Uo|0;return e||(t>>>=0),t},e.generateW3CId=function(){for(var t,n=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],i="",r=0;r<4;r++)i+=n[15&(t=e.random32())]+n[t>>4&15]+n[t>>8&15]+n[t>>12&15]+n[t>>16&15]+n[t>>20&15]+n[t>>24&15]+n[t>>28&15];var o=n[8+(3&e.random32())|0];return i.substr(0,8)+i.substr(9,4)+"4"+i.substr(13,3)+o+i.substr(16,3)+i.substr(19,12)},e.isTypeof=Wo,e.isUndefined=qo,e.isNullOrUndefined=jo,e.hasOwnProperty=Ko,e.isFunction=Yo,e.isObject=Xo,e.objCreate=ho,e.objDefineAccessors=Zo,e}(),na=/[xy]/g,ia=function(){function e(){}return e.Attach=Jo,e.AttachEvent=Jo,e.Detach=Qo,e.DetachEvent=Qo,e}();!function(e){e[e.CRITICAL=1]="CRITICAL",e[e.WARNING=2]="WARNING"}(ea||(ea={}));var ra=1,oa=2,aa=3,sa=4,ca=5,la=6,ua=8,da=10,pa=11,fa=23,ga=25,ha=29,ma=30,va=31,ya=32,Ca=35,ba=36,Ea=37,xa=38,Ia=39,Ta=45,_a=49,wa=52,Sa=56,Na=57,Aa=61,Pa=62,ka=63,Oa=64,Da=66,La=68,Ra=69,Ma=73;function Ua(e){return e?'"'+e.replace(/\"/g,"")+'"':""}var Va=function(){function e(e,t,n,i){void 0===n&&(n=!1);var r=this;r.messageId=e,r.message=(n?"AI: ":"AI (Internal): ")+e;var o="";Lo()&&(o=Ro().stringify(i));var a=(t?" message:"+Ua(t):"")+(i?" props:"+Ua(o):"");r.message+=a}return e.dataType="MessageData",e}(),Fa=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n=0,i={};Ut(e,this,(function(e){var r=ta.isNullOrUndefined,o=ta.isUndefined,a=ta.isFunction;function s(e,n){var i=t[e];return r(i)?n:i}r(t)&&(t={}),e.consoleLoggingLevel=function(){return s("loggingLevelConsole",0)},e.telemetryLoggingLevel=function(){return s("loggingLevelTelemetry",1)},e.maxInternalMessageLimit=function(){return s("maxMessageLimit",25)},e.enableDebugExceptions=function(){return s("enableDebugExceptions",!1)},e.throwInternal=function(t,n,r,a,s){void 0===s&&(s=!1);var c=new Va(n,r,s,a);if(e.enableDebugExceptions())throw c;if(!o(c)&&c&&!o(c.message)){if(s){var l=+c.messageId;!i[l]&&e.consoleLoggingLevel()>=ea.WARNING&&(e.warnToConsole(c.message),i[l]=!0)}else e.consoleLoggingLevel()>=ea.WARNING&&e.warnToConsole(c.message);e.logInternalMessage(t,c)}},e.warnToConsole=function(e){var t="undefined"!==typeof console?console:wo("console");if(t){var n="log";t.warn&&(n="warn"),a(t[n])&&t[n](e)}},e.resetInternalMessageCount=function(){n=0,i={}},e.logInternalMessage=function(t,r){if(!(n>=e.maxInternalMessageLimit())){var o=!0,a="AITR_"+r.messageId;if(i[a]?o=!1:i[a]=!0,o&&(t<=e.telemetryLoggingLevel()&&(e.queue.push(r),n++),n===e.maxInternalMessageLimit())){var s="Internal events throttle limit per PageView reached for this app.",c=new Va(fa,s,!1);e.queue.push(c),e.warnToConsole(s)}}}}))}return e.prototype.enableDebugExceptions=function(){return!1},e.prototype.consoleLoggingLevel=function(){return 0},e.prototype.telemetryLoggingLevel=function(){return 1},e.prototype.maxInternalMessageLimit=function(){return 25},e.prototype.throwInternal=function(e,t,n,i,r){void 0===r&&(r=!1)},e.prototype.warnToConsole=function(e){},e.prototype.resetInternalMessageCount=function(){},e.prototype.logInternalMessage=function(e,t){},e}(),Ba=function(){function e(t,n,i){var r,o=this,a=!1;(o.start=ta.dateNow(),o.name=t,o.isAsync=i,o.isChildEvt=function(){return!1},ta.isFunction(n))&&(a=ta.objDefineAccessors(o,"payload",(function(){return!r&&ta.isFunction(n)&&(r=n(),n=null),r})));o.getCtx=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?o[t]:(o.ctx||{})[t]:null},o.setCtx=function(t,n){if(t)if(t===e.ParentContextKey)o[t]||(o.isChildEvt=function(){return!0}),o[t]=n;else if(t===e.ChildrenContextKey)o[t]=n;else{(o.ctx=o.ctx||{})[t]=n}},o.complete=function(){var t=0,i=o.getCtx(e.ChildrenContextKey);if(ta.isArray(i))for(var r=0;r<i.length;r++){var s=i[r];s&&(t+=s.time)}o.time=ta.dateNow()-o.start,o.exTime=o.time-t,o.complete=function(){},!a&&ta.isFunction(n)&&(o.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),Ha=function(){function e(t){this.ctx={},Ut(e,this,(function(e){e.create=function(e,t,n){return new Ba(e,t,n)},e.fire=function(e){e&&(e.complete(),t&&t.perfEvent(e))},e.setCtx=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e.getCtx=function(t){return(e.ctx||{})[t]}}))}return e.prototype.create=function(e,t,n){return null},e.prototype.fire=function(e){},e.prototype.setCtx=function(e,t){},e.prototype.getCtx=function(e){},e}(),za="CoreUtils.doPerf";function Ga(e,t,n,i,r){if(e){var o=e;if(o&&ta.isFunction(o.getPerfMgr)&&(o=o.getPerfMgr()),o){var a=void 0,s=o.getCtx(za);try{if(a=o.create(t(),i,r)){if(s&&a.setCtx&&(a.setCtx(Ba.ParentContextKey,s),s.getCtx&&s.setCtx)){var c=s.getCtx(Ba.ChildrenContextKey);c||(c=[],s.setCtx(Ba.ChildrenContextKey,c)),c.push(a)}return o.setCtx(za,a),n(a)}}catch(l){a&&a.setCtx&&a.setCtx("exception",l)}finally{a&&o.fire(a),o.setCtx(za,s)}}}return n()}var Wa=ta.isFunction,qa=function(e,t){var n=this,i=null,r=Wa(e.processTelemetry),o=Wa(e.setNextPlugin);n._hasRun=!1,n.getPlugin=function(){return e},n.getNext=function(){return i},n.setNext=function(e){i=e},n.processTelemetry=function(a,s){s||(s=t);var c=e?e.identifier:"TelemetryPluginChain";Ga(s?s.core():null,(function(){return c+":processTelemetry"}),(function(){if(e&&r){n._hasRun=!0;try{s.setNext(i),o&&e.setNextPlugin(i),i&&(i._hasRun=!1),e.processTelemetry(a,s)}catch(c){var t=i&&i._hasRun;i&&t||s.diagLog().throwInternal(ea.CRITICAL,Ma,"Plugin ["+e.identifier+"] failed during processTelemetry - "+c),i&&!t&&i.processTelemetry(a,s)}}else i&&(n._hasRun=!0,i.processTelemetry(a,s))}),(function(){return{item:a}}),!a.sync)}},ja=ta.isNullOrUndefined;function Ka(e,t){var n=[];if(e&&e.length>0)for(var i=null,r=0;r<e.length;r++){var o=e[r];if(o&&ta.isFunction(o.processTelemetry)){var a=new qa(o,t);n.push(a),i&&i.setNext(a),i=a}}return n.length>0?n[0]:null}var Xa=function e(t,n,i,r){var o=this,a=null;null!==r&&(t&&ta.isFunction(t.getPlugin)?a=function(e,t,n){var i=[],r=!n;if(e)for(;e;){var o=e.getPlugin();(r||o===n)&&(r=!0,i.push(o)),e=e.getNext()}return r||i.push(n),Ka(i,t)}(t,o,r||t.getPlugin()):r?a=function(e,t,n){var i=e,r=!1;return n&&e&&(i=[],ta.arrForEach(e,(function(e){(r||e===n)&&(r=!0,i.push(e))}))),n&&!r&&(i||(i=[]),i.push(n)),Ka(i,t)}(t,o,r):ta.isUndefined(r)&&(a=Ka(t,o))),o.core=function(){return i},o.diagLog=function(){var e=(i||{}).logger;return e||(e=new Fa(n||{})),e},o.getCfg=function(){return n},o.getExtCfg=function(e,t){var i;if(void 0===t&&(t={}),n){var r=n.extensionConfig;r&&e&&(i=r[e])}return i||t},o.getConfig=function(e,t,i){var r;void 0===i&&(i=!1);var a=o.getExtCfg(e,null);return a&&!ja(a[t])?r=a[t]:n&&!ja(n[t])&&(r=n[t]),ja(r)?i:r},o.hasNext=function(){return null!=a},o.getNext=function(){return a},o.setNext=function(e){a=e},o.processNext=function(e){var t=a;t&&(a=t.getNext(),t.processTelemetry(e,o))},o.createNew=function(t,r){return void 0===t&&(t=null),new e(t||a,n,i,r)}},Ya=ta.isFunction,Ja=function(){function e(){var e=this,t=!1,n=null,i=null;e.core=null,e.diagLog=function(t){return e._getTelCtx(t).diagLog()},e.isInitialized=function(){return t},e.setInitialized=function(e){t=e},e.setNextPlugin=function(e){i=e},e.processNext=function(e,t){t?t.processNext(e):i&&Ya(i.processTelemetry)&&i.processTelemetry(e,null)},e._getTelCtx=function(t){void 0===t&&(t=null);var r=t;if(!r){var o=n||new Xa(null,{},e.core);r=i&&i.getPlugin?o.createNew(null,i.getPlugin):o.createNew(null,i)}return r},e._baseTelInit=function(r,o,a,s){r&&(r.extensionConfig=r.extensionConfig||[]),!s&&o&&(s=o.getProcessTelContext().getNext());var c=i;i&&i.getPlugin&&(c=i.getPlugin()),e.core=o,n=new Xa(s,r,o,c),t=!0}}return e.prototype.initialize=function(e,t,n,i){this._baseTelInit(e,t,n,i)},e}(),Qa=ta.isFunction;function Za(e,t){for(var n=[],i=null,r=e.getNext();r;){var o=r.getPlugin();o&&(i&&Qa(i.setNextPlugin)&&Qa(o.processTelemetry)&&i.setNextPlugin(o),Qa(o.isInitialized)&&o.isInitialized()||n.push(o),i=o,r=r.getNext())}ta.arrForEach(n,(function(n){n.initialize(e.getCfg(),e.core(),t,e.getNext())}))}function $a(e){return e.sort((function(e,t){var n=0,i=Qa(t.processTelemetry);return Qa(e.processTelemetry)?n=i?e.priority-t.priority:1:i&&(n=-1),n}))}var es=500,ts=ta.objDefineAccessors,ns=function(e){function t(){var n=e.call(this)||this;n.identifier="ChannelControllerPlugin",n.priority=500;var i,r=ta.arrForEach;function o(e){e&&e.length>0&&(function(e){r(e,(function(e){if(e.priority<es)throw Error("Channel has invalid priority"+e.identifier)}))}(e=e.sort((function(e,t){return e.priority-t.priority}))),i.push(e))}return Ut(t,n,(function(e,t){e.setNextPlugin=function(e){},e.processTelemetry=function(e,t){i&&r(i,(function(i){i.length>0&&n._getTelCtx(t).createNew(i).processNext(e)}))},e.getChannelControls=function(){return i},e.initialize=function(n,a,s){e.isInitialized()||(t.initialize(n,a,s),n.isCookieUseDisabled&&ta.disableCookies(),function(e,t){i=[],e&&r(e,(function(e){return o(e)}));if(t){var n=[];r(t,(function(e){e.priority>es&&n.push(e)})),o(n)}}((n||{}).channels,s),r(i,(function(e){return Za(new Xa(e,n,a),s)})))}})),n}return __extends(t,e),t.prototype.processTelemetry=function(e,t){},t.prototype.getChannelControls=function(){return null},t.prototype.initialize=function(e,t,n){},t._staticInit=(ts(t.prototype,"ChannelControls",t.prototype.getChannelControls),void ts(t.prototype,"channelQueue",t.prototype.getChannelControls)),t}(Ja),is=ta.arrForEach,rs=ta.isNullOrUndefined,os=function(){function e(){var t,n,i,r,o=!1;Ut(e,this,(function(e){e._extensions=new Array,n=new ns,e.logger=ta.objCreate({throwInternal:function(e,t,n,i,r){void 0===r&&(r=!1)},warnToConsole:function(e){},resetInternalMessageCount:function(){}}),t=[],e.isInitialized=function(){return o},e.initialize=function(t,r,a,s){if(e.isInitialized())throw Error("Core should not be initialized more than once");if(!t||rs(t.instrumentationKey))throw Error("Please provide instrumentation key");i=s,e._notificationManager=s,e.config=t||{},t.extensions=rs(t.extensions)?[]:t.extensions,(t.extensionConfig=rs(t.extensionConfig)?{}:t.extensionConfig).NotificationManager=s,a&&(e.logger=a);var c=[];c.push.apply(c,r.concat(t.extensions)),c=$a(c);var l=[],u=[],d={};if(is(c,(function(e){if(rs(e)||rs(e.initialize))throw Error("Extensions must provide callback to initialize");var t=e.priority,i=e.identifier;e&&t&&(rs(d[t])?d[t]=i:a.warnToConsole("Two extensions have same priority #"+t+" - "+d[t]+", "+i)),!t||t<n.priority?l.push(e):u.push(e)})),c.push(n),l.push(n),c=$a(c),e._extensions=c,Za(new Xa([n],t,e),c),Za(new Xa(l,t,e),c),e._extensions=l,0===e.getTransmissionControls().length)throw new Error("No channels available");o=!0,e.releaseQueue()},e.getTransmissionControls=function(){return n.getChannelControls()},e.track=function(n){n.iKey||(n.iKey=e.config.instrumentationKey),n.time||(n.time=ta.toISOString(new Date)),rs(n.ver)&&(n.ver="4.0"),e.isInitialized()?e.getProcessTelContext().processNext(n):t.push(n)},e.getProcessTelContext=function(){var t=e._extensions,i=t;return t&&0!==t.length||(i=[n]),new Xa(i,e.config,e)},e.getNotifyMgr=function(){return i||(i=ta.objCreate({addNotificationListener:function(e){},removeNotificationListener:function(e){},eventsSent:function(e){},eventsDiscarded:function(e,t){},eventsSendRequest:function(e,t){}}),e._notificationManager=i),i},e.getPerfMgr=function(){return r||e.config&&e.config.enablePerfMgr&&(r=new Ha(e.getNotifyMgr())),r},e.setPerfMgr=function(e){r=e},e.eventCnt=function(){return t.length},e.releaseQueue=function(){t.length>0&&(is(t,(function(t){e.getProcessTelContext().processNext(t)})),t=[])}}))}return e.prototype.initialize=function(e,t,n,i){},e.prototype.getTransmissionControls=function(){return null},e.prototype.track=function(e){},e.prototype.getProcessTelContext=function(){return null},e.prototype.getNotifyMgr=function(){return null},e.prototype.getPerfMgr=function(){return null},e.prototype.setPerfMgr=function(e){},e.prototype.eventCnt=function(){return 0},e.prototype.releaseQueue=function(){},e}(),as=function(){function e(t){this.listeners=[];var n=ta.arrForEach,i=!!(t||{}).perfEvtsSendAll;Ut(e,this,(function(e){e.addNotificationListener=function(t){e.listeners.push(t)},e.removeNotificationListener=function(t){for(var n=ta.arrIndexOf(e.listeners,t);n>-1;)e.listeners.splice(n,1),n=ta.arrIndexOf(e.listeners,t)},e.eventsSent=function(t){n(e.listeners,(function(e){e&&e.eventsSent&&setTimeout((function(){return e.eventsSent(t)}),0)}))},e.eventsDiscarded=function(t,i){n(e.listeners,(function(e){e&&e.eventsDiscarded&&setTimeout((function(){return e.eventsDiscarded(t,i)}),0)}))},e.eventsSendRequest=function(t,i){n(e.listeners,(function(e){if(e&&e.eventsSendRequest)if(i)setTimeout((function(){return e.eventsSendRequest(t,i)}),0);else try{e.eventsSendRequest(t,i)}catch(n){}}))},e.perfEvent=function(t){t&&(!i&&t.isChildEvt()||n(e.listeners,(function(e){if(e&&e.perfEvent)if(t.isAsync)setTimeout((function(){return e.perfEvent(t)}),0);else try{e.perfEvent(t)}catch(n){}})))}}))}return e.prototype.addNotificationListener=function(e){},e.prototype.removeNotificationListener=function(e){},e.prototype.eventsSent=function(e){},e.prototype.eventsDiscarded=function(e,t){},e.prototype.eventsSendRequest=function(e,t){},e}();!function(e){function t(){var n=e.call(this)||this;return Ut(t,n,(function(e,t){function n(t){var n=e.getNotifyMgr();n&&n.eventsDiscarded([t],Eo)}e.initialize=function(e,n,i,r){t.initialize(e,n,i||new Fa(e),r||new as(e))},e.track=function(i){Ga(e.getPerfMgr(),(function(){return"AppInsightsCore:track"}),(function(){if(null===i)throw n(i),Error("Invalid telemetry item");!function(e){if(ta.isNullOrUndefined(e.name))throw n(e),Error("telemetry name required")}(i),t.track(i)}),(function(){return{item:i}}),!i.sync)},e.addNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.addNotificationListener(t)},e.removeNotificationListener=function(t){var n=e.getNotifyMgr();n&&n.removeNotificationListener(t)},e.pollInternalLogs=function(t){var n=e.config.diagnosticLogInterval;return n&&n>0||(n=1e4),setInterval((function(){var n=e.logger?e.logger.queue:[];ta.arrForEach(n,(function(n){var i={name:t||"InternalMessageId: "+n.messageId,iKey:e.config.instrumentationKey,time:ta.toISOString(new Date),baseType:Va.dataType,baseData:{message:n.message}};e.track(i)})),n.length=0}),n)}})),n}__extends(t,e),t.prototype.initialize=function(e,t,n,i){},t.prototype.track=function(e){},t.prototype.addNotificationListener=function(e){},t.prototype.removeNotificationListener=function(e){},t.prototype.pollInternalLogs=function(e){return 0}}(os);Object.getPrototypeOf;var ss=function(){function e(){}return e.requestContextHeader="Request-Context",e.requestContextTargetKey="appId",e.requestContextAppIdFormat="appId=cid-v1:",e.requestIdHeader="Request-Id",e.traceParentHeader="traceparent",e.sdkContextHeader="Sdk-Context",e.sdkContextHeaderAppIdRequest="appId",e.requestContextHeaderLowerCase="request-context",e}(),cs=function(){function e(){}return e.sanitizeKeyAndAddUniqueness=function(t,n,i){var r=n.length,o=e.sanitizeKey(t,n);if(o.length!==r){for(var a=0,s=o;void 0!==i[s];)a++,s=o.substring(0,e.MAX_NAME_LENGTH-3)+e.padNumber(a);o=s}return o},e.sanitizeKey=function(t,n){var i;return n&&(n=e.trim(n.toString())).length>e.MAX_NAME_LENGTH&&(i=n.substring(0,e.MAX_NAME_LENGTH),t.throwInternal(ea.WARNING,Na,"name is too long.  It has been truncated to "+e.MAX_NAME_LENGTH+" characters.",{name:n},!0)),i||n},e.sanitizeString=function(t,n,i){var r;return void 0===i&&(i=e.MAX_STRING_LENGTH),n&&(i=i||e.MAX_STRING_LENGTH,(n=e.trim(n)).toString().length>i&&(r=n.toString().substring(0,i),t.throwInternal(ea.WARNING,Aa,"string value is too long. It has been truncated to "+i+" characters.",{value:n},!0))),r||n},e.sanitizeUrl=function(t,n){return e.sanitizeInput(t,n,e.MAX_URL_LENGTH,Da)},e.sanitizeMessage=function(t,n){var i;return n&&n.length>e.MAX_MESSAGE_LENGTH&&(i=n.substring(0,e.MAX_MESSAGE_LENGTH),t.throwInternal(ea.WARNING,Sa,"message is too long, it has been truncated to "+e.MAX_MESSAGE_LENGTH+" characters.",{message:n},!0)),i||n},e.sanitizeException=function(t,n){var i;return n&&n.length>e.MAX_EXCEPTION_LENGTH&&(i=n.substring(0,e.MAX_EXCEPTION_LENGTH),t.throwInternal(ea.WARNING,wa,"exception is too long, it has been truncated to "+e.MAX_EXCEPTION_LENGTH+" characters.",{exception:n},!0)),i||n},e.sanitizeProperties=function(t,n){if(n){var i={};$o(n,(function(n,r){if(ta.isObject(r)&&Lo())try{r=Ro().stringify(r)}catch(o){t.throwInternal(ea.WARNING,_a,"custom property is not valid",{exception:o},!0)}r=e.sanitizeString(t,r,e.MAX_PROPERTY_LENGTH),n=e.sanitizeKeyAndAddUniqueness(t,n,i),i[n]=r})),n=i}return n},e.sanitizeMeasurements=function(t,n){if(n){var i={};$o(n,(function(n,r){n=e.sanitizeKeyAndAddUniqueness(t,n,i),i[n]=r})),n=i}return n},e.sanitizeId=function(t,n){return n?e.sanitizeInput(t,n,e.MAX_ID_LENGTH,Ra).toString():n},e.sanitizeInput=function(t,n,i,r){var o;return n&&(n=e.trim(n)).length>i&&(o=n.substring(0,i),t.throwInternal(ea.WARNING,r,"input is too long, it has been truncated to "+i+" characters.",{data:n},!0)),o||n},e.padNumber=function(e){var t="00"+e;return t.substr(t.length-3)},e.trim=function(e){return ta.isString(e)?e.replace(/^\s+|\s+$/g,""):e},e.MAX_NAME_LENGTH=150,e.MAX_ID_LENGTH=128,e.MAX_PROPERTY_LENGTH=8192,e.MAX_STRING_LENGTH=1024,e.MAX_URL_LENGTH=2048,e.MAX_MESSAGE_LENGTH=32768,e.MAX_EXCEPTION_LENGTH=32768,e}(),ls=Po(),us=ta.isString,ds=null;var ps=function(){function e(){}return e.createDomEvent=function(e){var t=null;if(ta.isFunction(Event))t=new Event(e);else{var n=Ao();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t},e.disableStorage=function(){e._canUseLocalStorage=!1,e._canUseSessionStorage=!1},e._getLocalStorageObject=function(){return e.canUseLocalStorage()?e._getVerifiedStorageObject(vo.LocalStorage):null},e._getVerifiedStorageObject=function(e){var t,n,i=null;try{if(ta.isNullOrUndefined(_o()))return null;n=new Date,(i=e===vo.LocalStorage?wo("localStorage"):wo("sessionStorage")).setItem(n.toString(),n.toString()),t=i.getItem(n.toString())!==n.toString(),i.removeItem(n.toString()),t&&(i=null)}catch(r){i=null}return i},e.isInternalApplicationInsightsEndpoint=function(t){return-1!==e._internalEndpoints.indexOf(t.toLowerCase())},e.canUseLocalStorage=function(){return void 0===e._canUseLocalStorage&&(e._canUseLocalStorage=!!e._getVerifiedStorageObject(vo.LocalStorage)),e._canUseLocalStorage},e.getStorage=function(t,n){var i=e._getLocalStorageObject();if(null!==i)try{return i.getItem(n)}catch(r){e._canUseLocalStorage=!1,t.throwInternal(ea.WARNING,ra,"Browser failed read of local storage. "+e.getExceptionName(r),{exception:e.dump(r)})}return null},e.setStorage=function(t,n,i){var r=e._getLocalStorageObject();if(null!==r)try{return r.setItem(n,i),!0}catch(o){e._canUseLocalStorage=!1,t.throwInternal(ea.WARNING,aa,"Browser failed write to local storage. "+e.getExceptionName(o),{exception:e.dump(o)})}return!1},e.removeStorage=function(t,n){var i=e._getLocalStorageObject();if(null!==i)try{return i.removeItem(n),!0}catch(r){e._canUseLocalStorage=!1,t.throwInternal(ea.WARNING,ca,"Browser failed removal of local storage item. "+e.getExceptionName(r),{exception:e.dump(r)})}return!1},e._getSessionStorageObject=function(){return e.canUseSessionStorage()?e._getVerifiedStorageObject(vo.SessionStorage):null},e.canUseSessionStorage=function(){return void 0===e._canUseSessionStorage&&(e._canUseSessionStorage=!!e._getVerifiedStorageObject(vo.SessionStorage)),e._canUseSessionStorage},e.getSessionStorageKeys=function(){var t=[];return e.canUseSessionStorage()&&$o(wo("sessionStorage"),(function(e){t.push(e)})),t},e.getSessionStorage=function(t,n){var i=e._getSessionStorageObject();if(null!==i)try{return i.getItem(n)}catch(r){e._canUseSessionStorage=!1,t.throwInternal(ea.WARNING,oa,"Browser failed read of session storage. "+e.getExceptionName(r),{exception:e.dump(r)})}return null},e.setSessionStorage=function(t,n,i){var r=e._getSessionStorageObject();if(null!==r)try{return r.setItem(n,i),!0}catch(o){e._canUseSessionStorage=!1,t.throwInternal(ea.WARNING,sa,"Browser failed write to session storage. "+e.getExceptionName(o),{exception:e.dump(o)})}return!1},e.removeSessionStorage=function(t,n){var i=e._getSessionStorageObject();if(null!==i)try{return i.removeItem(n),!0}catch(r){e._canUseSessionStorage=!1,t.throwInternal(ea.WARNING,la,"Browser failed removal of session storage item. "+e.getExceptionName(r),{exception:e.dump(r)})}return!1},e.disableCookies=function(){ta.disableCookies()},e.canUseCookies=function(t){if(void 0===ta._canUseCookies){ta._canUseCookies=!1;try{ta._canUseCookies=void 0!==e.document.cookie}catch(n){t.throwInternal(ea.WARNING,La,"Cannot access document.cookie - "+e.getExceptionName(n),{exception:e.dump(n)})}}return ta._canUseCookies},e.disallowsSameSiteNone=function(e){return!!us(e)&&(-1!==e.indexOf("CPU iPhone OS 12")||-1!==e.indexOf("iPad; CPU OS 12")||(-1!==e.indexOf("Macintosh; Intel Mac OS X 10_14")&&-1!==e.indexOf("Version/")&&-1!==e.indexOf("Safari")||(!(-1===e.indexOf("Macintosh; Intel Mac OS X 10_14")||!function(e,t){var n=e.length,i=n-t.length;return e.substring(i>=0?i:0,n)===t}(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(-1!==e.indexOf("Chrome/5")||-1!==e.indexOf("Chrome/6")||(-1!==e.indexOf("UnrealEngine")&&-1===e.indexOf("Chrome")||(-1!==e.indexOf("UCBrowser/12")||-1!==e.indexOf("UCBrowser/11")))))))},e.setCookie=function(t,n,i,r){if(e.canUseCookies(t)){var o="",a="";r&&(o=";domain="+r);var s=Oo();s&&"https:"===s.protocol&&(a=";secure",null===ds&&(ds=e.disallowsSameSiteNone((Po()||{}).userAgent)),ds||(i+=";SameSite=None")),e.document.cookie=n+"="+i+o+";path=/"+a}},e.stringToBoolOrDefault=function(e,t){return void 0===t&&(t=!1),void 0===e||null===e?t:"true"===e.toString().toLowerCase()},e.getCookie=function(t,n){if(e.canUseCookies(t)){var i="";if(n&&n.length)for(var r=n+"=",o=e.document.cookie.split(";"),a=0;a<o.length;a++){var s=o[a];if((s=e.trim(s))&&0===s.indexOf(r)){i=s.substring(r.length,o[a].length);break}}return i}},e.deleteCookie=function(t,n){e.canUseCookies(t)&&(e.document.cookie=n+"=;path=/;expires=Thu, 01 Jan 1970 00:00:01 GMT;")},e.random32=function(){return ta.random32(!0)},e.getIEVersion=function(e){void 0===e&&(e=null);var t=e?e.toLowerCase():ls?(ls.userAgent||"").toLowerCase():"";if(-1!==t.indexOf("msie"))return parseInt(t.split("msie")[1]);if(t.indexOf("trident/")){var n=parseInt(t.split("trident/")[1]);if(n)return n+4}return null},e.msToTimeSpan=function(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,i=""+Math.floor(e/6e4)%60,r=""+Math.floor(e/36e5)%24,o=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,i=i.length<2?"0"+i:i,(o>0?o+".":"")+(r=r.length<2?"0"+r:r)+":"+i+":"+n+"."+t},e.isCrossOriginError=function(e,t,n,i,r){return("Script error."===e||"Script error"===e)&&!r},e.dump=function(e){var t=Object.prototype.toString.call(e),n="";return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e.name+"'":Lo()&&(n=Ro().stringify(e)),t+n},e.getExceptionName=function(e){return"[object Error]"===Object.prototype.toString.call(e)?e.name:""},e.addEventHandler=function(e,t){return ia.Attach(No(),e,t)},e.IsBeaconApiSupported=function(){return"sendBeacon"in ls&&ls.sendBeacon},e.getExtension=function(e,t){for(var n=null,i=0;!n&&i<e.length;)e[i]&&e[i].identifier===t&&(n=e[i]),i++;return n},e.document=Ao()||{},e._canUseLocalStorage=void 0,e._canUseSessionStorage=void 0,e._internalEndpoints=["https://dc.services.visualstudio.com/v2/track","https://breeze.aimon.applicationinsights.io/v2/track","https://dc-int.services.visualstudio.com/v2/track"],e.NotSpecified="not_specified",e.trim=ta.strTrim,e.newId=ta.newId,e.generateW3CId=ta.generateW3CId,e.isArray=ta.isArray,e.isError=ta.isError,e.isDate=ta.isDate,e.toISOStringForIE8=ta.toISOString,e}(),fs=function(){function e(){}return e.parseUrl=function(t){var n=e._htmlAnchorIdx,i=e._htmlAnchorElement,r=i[n];return e.document.createElement?i[n]||(r=i[n]=e.document.createElement("a")):r={host:e.parseHost(t,!0)},r.href=t,++n>=i.length&&(n=0),e._htmlAnchorIdx=n,r},e.getAbsoluteUrl=function(t){var n,i=e.parseUrl(t);return i&&(n=i.href),n},e.getPathName=function(t){var n,i=e.parseUrl(t);return i&&(n=i.pathname),n},e.getCompleteUrl=function(e,t){return e?e.toUpperCase()+" "+t:t},e.parseHost=function(t,n){var i=e.parseFullHost(t,n);if(i){var r=i.match(/(www[0-9]?\.)?(.[^/:]+)(\:[\d]+)?/i);if(null!=r&&r.length>3&&us(r[2])&&r[2].length>0)return r[2]+(r[3]||"")}return i},e.parseFullHost=function(e,t){var n=null;if(e){var i=e.match(/(\w*):\/\/(.[^/:]+)(\:[\d]+)?/i);if(null!=i&&i.length>2&&us(i[2])&&i[2].length>0&&(n=i[2]||"",t&&i.length>2)){var r=(i[1]||"").toLowerCase(),o=i[3]||"";("http"===r&&":80"===o||"https"===r&&":443"===o)&&(o=""),n+=o}}return n},e.document=Ao()||{},e._htmlAnchorIdx=0,e._htmlAnchorElement=[null,null,null,null,null],e}(),gs=(function(){function e(){}e.canIncludeCorrelationHeader=function(e,t,n){if(!t||e&&e.disableCorrelationHeaders)return!1;if(e&&e.correlationHeaderExcludePatterns)for(var i=0;i<e.correlationHeaderExcludePatterns.length;i++)if(e.correlationHeaderExcludePatterns[i].test(t))return!1;var r=fs.parseUrl(t).host.toLowerCase();if(!r||-1===r.indexOf(":443")&&-1===r.indexOf(":80")||(r=(fs.parseFullHost(t,!0)||"").toLowerCase()),(!e||!e.enableCorsCorrelation)&&r!==n)return!1;var o,a=e&&e.correlationHeaderDomains;if(a&&(ta.arrForEach(a,(function(e){var t=new RegExp(e.toLowerCase().replace(/\./g,".").replace(/\*/g,".*"));o=o||t.test(r)})),!o))return!1;var s=e&&e.correlationHeaderExcludedDomains;if(!s||0===s.length)return!0;for(i=0;i<s.length;i++){if(new RegExp(s[i].toLowerCase().replace(/\./g,".").replace(/\*/g,".*")).test(r))return!1}return r&&r.length>0},e.getCorrelationContext=function(t){if(t){var n=e.getCorrelationContextValue(t,ss.requestContextTargetKey);if(n&&n!==e.correlationIdPrefix)return n}},e.getCorrelationContextValue=function(e,t){if(e)for(var n=e.split(","),i=0;i<n.length;++i){var r=n[i].split("=");if(2===r.length&&r[0]===t)return r[1]}},e.correlationIdPrefix="cid-v1:"}(),function(){function e(){}return e.ParseDependencyPath=function(e,t,n,i){var r,o=i,a=i;if(t&&t.length>0){var s=fs.parseUrl(t);if(r=s.host,!o)if(null!=s.pathname){var c=0===s.pathname.length?"/":s.pathname;"/"!==c.charAt(0)&&(c="/"+c),a=s.pathname,o=cs.sanitizeString(e,n?n+" "+c:c)}else o=cs.sanitizeString(e,t)}else r=i,o=i;return{target:r,name:o,data:a}},e}()),hs=function(){function e(){}return e.Now=function(){var e=Do();if(e&&e.now&&e.timing){var t=e.now()+e.timing.navigationStart;if(t>0)return t}return(new Date).getTime()},e.GetDuration=function(e,t){var n=null;return 0===e||0===t||ta.isNullOrUndefined(e)||ta.isNullOrUndefined(t)||(n=t-e),n},e}(),ms=(function(){function e(){}e.parse=function(t){if(!t)return{};var n=t.split(e._FIELDS_SEPARATOR),i=ta.arrReduce(n,(function(t,n){var i=n.split(e._FIELD_KEY_VALUE_SEPARATOR);if(2===i.length){var r=i[0].toLowerCase(),o=i[1];t[r]=o}return t}),{});if(ta.objKeys(i).length>0){if(i.endpointsuffix){var r=i.location?i.location+".":"";i.ingestionendpoint=i.ingestionendpoint||"https://"+r+"dc."+i.endpointsuffix}i.ingestionendpoint=i.ingestionendpoint||"https://dc.services.visualstudio.com"}return i},e._FIELDS_SEPARATOR=";",e._FIELD_KEY_VALUE_SEPARATOR="="}(),function(e){function t(){return e.call(this)||this}return __extends(t,e),t}((function(){}))),vs=(function(e){function t(t,n,i){var r=e.call(this)||this;return r.name=cs.sanitizeString(t,i)||ps.NotSpecified,r.data=n,r.time=ta.toISOString(new Date),r.aiDataContract={time:yo.Required,iKey:yo.Required,name:yo.Required,sampleRate:function(){return 100===r.sampleRate?yo.Hidden:yo.Required},tags:yo.Required,data:yo.Required},r}__extends(t,e)}((function(){this.ver=1,this.sampleRate=100,this.tags={}})),function(){}),ys=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(vs),Cs=function(e){function t(t,n,i,r){var o=e.call(this)||this;return o.aiDataContract={ver:yo.Required,name:yo.Required,properties:yo.Default,measurements:yo.Default},o.name=cs.sanitizeString(t,n)||ps.NotSpecified,o.properties=cs.sanitizeProperties(t,i),o.measurements=cs.sanitizeMeasurements(t,r),o}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Event",t.dataType="EventData",t}(ys),bs=function(){},Es=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.exceptions=[],t.properties={},t.measurements={},t}return __extends(t,e),t}(vs),xs=function(){this.hasFullStack=!0,this.parsedStack=[]};var Is,Ts=function(e){function t(t,n,i,r,o,a){var s,c=e.call(this)||this;return c.aiDataContract={ver:yo.Required,exceptions:yo.Required,severityLevel:yo.Default,properties:yo.Default,measurements:yo.Default},"ver"in(s=n)&&"exceptions"in s&&"properties"in s?(c.exceptions=n.exceptions,c.properties=n.properties,c.measurements=n.measurements,n.severityLevel&&(c.severityLevel=n.severityLevel),n.id&&(c.id=n.id),n.problemGroup&&(c.problemGroup=n.problemGroup),c.ver=2,ta.isNullOrUndefined(n.isManual)||(c.isManual=n.isManual)):(c.exceptions=[new _s(t,n)],c.properties=cs.sanitizeProperties(t,i)||{},c.measurements=cs.sanitizeMeasurements(t,r),o&&(c.severityLevel=o),a&&(c.id=a)),c}return __extends(t,e),t.CreateFromInterface=function(e,n,i,r){var o=n.exceptions&&ta.arrMap(n.exceptions,(function(t){return _s.CreateFromInterface(e,t)}));return new t(e,__assign({},n,{exceptions:o}),i,r)},t.prototype.toInterface=function(){var e=this,t=e.exceptions,n=e.properties,i=e.measurements,r=e.severityLevel,o=(e.ver,e.problemGroup),a=e.id,s=e.isManual;return{ver:"4.0",exceptions:t instanceof Array&&ta.arrMap(t,(function(e){return e.toInterface()}))||void 0,severityLevel:r,properties:n,measurements:i,problemGroup:o,id:a,isManual:s}},t.CreateSimpleException=function(e,t,n,i,r,o){return{exceptions:[{hasFullStack:!0,message:e,stack:r,typeName:t}]}},t.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",t.dataType="ExceptionData",t}(Es),_s=function(e){function t(n,i){var r,o=e.call(this)||this;if(o.aiDataContract={id:yo.Default,outerId:yo.Default,typeName:yo.Required,message:yo.Required,hasFullStack:yo.Default,stack:yo.Default,parsedStack:yo.Array},"hasFullStack"in(r=i)&&"typeName"in r)o.typeName=i.typeName,o.message=i.message,o.stack=i.stack,o.parsedStack=i.parsedStack,o.hasFullStack=i.hasFullStack;else{var a=i;ps.isError(a)||(a=a.error||a.evt||a),o.typeName=cs.sanitizeString(n,function(e){var t="";if(e&&!(t=e.typeName||e.name||""))try{var n=/function (.{1,})\(/.exec(e.constructor.toString());t=n&&n.length>1?n[1]:""}catch(i){}return t}(a))||ps.NotSpecified,o.message=cs.sanitizeMessage(n,i.message)||ps.NotSpecified;var s=i.stack;o.parsedStack=t.parseStack(s),o.stack=cs.sanitizeException(n,s),o.hasFullStack=ps.isArray(o.parsedStack)&&o.parsedStack.length>0}return o}return __extends(t,e),t.prototype.toInterface=function(){var e=this.parsedStack instanceof Array&&ta.arrMap(this.parsedStack,(function(e){return e.toInterface()}));return{id:this.id,outerId:this.outerId,typeName:this.typeName,message:this.message,hasFullStack:this.hasFullStack,stack:this.stack,parsedStack:e||void 0}},t.CreateFromInterface=function(e,n){var i=n.parsedStack instanceof Array&&ta.arrMap(n.parsedStack,(function(e){return ws.CreateFromInterface(e)}))||n.parsedStack;return new t(e,__assign({},n,{parsedStack:i}))},t.parseStack=function(e){var t;if(ta.isString(e)){var n=e.split("\n");t=[];for(var i=0,r=0,o=0;o<=n.length;o++){var a=n[o];if(ws.regex.test(a)){var s=new ws(n[o],i++);r+=s.sizeInBytes,t.push(s)}}if(r>32768)for(var c=0,l=t.length-1,u=0,d=c,p=l;c<l;){if((u+=t[c].sizeInBytes+t[l].sizeInBytes)>32768){var f=p-d+1;t.splice(d,f);break}d=c,p=l,c++,l--}}return t},t}(xs),ws=function(e){function t(n,i){var r=e.call(this)||this;if(r.sizeInBytes=0,r.aiDataContract={level:yo.Required,method:yo.Required,assembly:yo.Default,fileName:yo.Default,line:yo.Default},"string"===typeof n){var o=n;r.level=i,r.method="<no_method>",r.assembly=ps.trim(o),r.fileName="",r.line=0;var a=o.match(t.regex);a&&a.length>=5&&(r.method=ps.trim(a[2])||r.method,r.fileName=ps.trim(a[4]),r.line=parseInt(a[5])||0)}else r.level=n.level,r.method=n.method,r.assembly=n.assembly,r.fileName=n.fileName,r.line=n.line,r.sizeInBytes=0;return r.sizeInBytes+=r.method.length,r.sizeInBytes+=r.fileName.length,r.sizeInBytes+=r.assembly.length,r.sizeInBytes+=t.baseSize,r.sizeInBytes+=r.level.toString().length,r.sizeInBytes+=r.line.toString().length,r}return __extends(t,e),t.CreateFromInterface=function(e){return new t(e,null)},t.prototype.toInterface=function(){return{level:this.level,method:this.method,assembly:this.assembly,fileName:this.fileName,line:this.line}},t.regex=/^([\s]+at)?(.*?)(\@|\s\(|\s)([^\(\@\n]+):([0-9]+):([0-9]+)(\)?)$/,t.baseSize=58,t}(bs),Ss=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.metrics=[],t.properties={},t.measurements={},t}return __extends(t,e),t}(vs);!function(e){e[e.Measurement=0]="Measurement",e[e.Aggregation=1]="Aggregation"}(Is||(Is={}));var Ns,As=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.aiDataContract={name:yo.Required,kind:yo.Default,value:yo.Required,count:yo.Default,min:yo.Default,max:yo.Default,stdDev:yo.Default},t}return __extends(t,e),t}((function(){this.kind=Is.Measurement})),Ps=function(e){function t(t,n,i,r,o,a,s,c){var l=e.call(this)||this;l.aiDataContract={ver:yo.Required,metrics:yo.Required,properties:yo.Default};var u=new As;return u.count=r>0?r:void 0,u.max=isNaN(a)||null===a?void 0:a,u.min=isNaN(o)||null===o?void 0:o,u.name=cs.sanitizeString(t,n)||ps.NotSpecified,u.value=i,l.metrics=[u],l.properties=cs.sanitizeProperties(t,s),l.measurements=cs.sanitizeMeasurements(t,c),l}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",t.dataType="MetricData",t}(Ss),ks=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(ys),Os=function(e){function t(t,n,i,r,o,a,s){var c=e.call(this)||this;return c.aiDataContract={ver:yo.Required,name:yo.Default,url:yo.Default,duration:yo.Default,properties:yo.Default,measurements:yo.Default,id:yo.Default},c.id=cs.sanitizeId(t,s),c.url=cs.sanitizeUrl(t,i),c.name=cs.sanitizeString(t,n)||ps.NotSpecified,isNaN(r)||(c.duration=ps.msToTimeSpan(r)),c.properties=cs.sanitizeProperties(t,o),c.measurements=cs.sanitizeMeasurements(t,a),c}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",t.dataType="PageviewData",t}(ks),Ds=function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.success=!0,t.properties={},t.measurements={},t}return __extends(t,e),t}(vs),Ls=function(e){function t(t,n,i,r,o,a,s,c,l,u,d,p){void 0===l&&(l="Ajax");var f=e.call(this)||this;f.aiDataContract={id:yo.Required,ver:yo.Required,name:yo.Default,resultCode:yo.Default,duration:yo.Default,success:yo.Default,data:yo.Default,target:yo.Default,type:yo.Default,properties:yo.Default,measurements:yo.Default,kind:yo.Default,value:yo.Default,count:yo.Default,min:yo.Default,max:yo.Default,stdDev:yo.Default,dependencyKind:yo.Default,dependencySource:yo.Default,commandName:yo.Default,dependencyTypeName:yo.Default},f.id=n,f.duration=ps.msToTimeSpan(o),f.success=a,f.resultCode=s+"",f.type=cs.sanitizeString(t,l);var g=gs.ParseDependencyPath(t,i,c,r);return f.data=cs.sanitizeUrl(t,r)||g.data,f.target=cs.sanitizeString(t,g.target),u&&(f.target=f.target+" | "+u),f.name=cs.sanitizeString(t,g.name),f.properties=cs.sanitizeProperties(t,d),f.measurements=cs.sanitizeMeasurements(t,p),f}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",t.dataType="RemoteDependencyData",t}(Ds),Rs=function(e){function t(t,n,i,r,o){var a=e.call(this)||this;return a.aiDataContract={ver:yo.Required,message:yo.Required,severityLevel:yo.Default,properties:yo.Default},n=n||ps.NotSpecified,a.message=cs.sanitizeMessage(t,n),a.properties=cs.sanitizeProperties(t,r),a.measurements=cs.sanitizeMeasurements(t,o),i&&(a.severityLevel=i),a}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.Message",t.dataType="MessageData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(vs)),Ms=function(e){function t(t,n,i,r,o,a,s){var c=e.call(this)||this;return c.aiDataContract={ver:yo.Required,name:yo.Default,url:yo.Default,duration:yo.Default,perfTotal:yo.Default,networkConnect:yo.Default,sentRequest:yo.Default,receivedResponse:yo.Default,domProcessing:yo.Default,properties:yo.Default,measurements:yo.Default},c.url=cs.sanitizeUrl(t,i),c.name=cs.sanitizeString(t,n)||ps.NotSpecified,c.properties=cs.sanitizeProperties(t,o),c.measurements=cs.sanitizeMeasurements(t,a),s&&(c.domProcessing=s.domProcessing,c.duration=s.duration,c.networkConnect=s.networkConnect,c.perfTotal=s.perfTotal,c.receivedResponse=s.receivedResponse,c.sentRequest=s.sentRequest),c}return __extends(t,e),t.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",t.dataType="PageviewPerformanceData",t}(function(e){function t(){var t=e.call(this)||this;return t.ver=2,t.properties={},t.measurements={},t}return __extends(t,e),t}(ks));!function(e){function t(t,n){var i=e.call(this)||this;return i.aiDataContract={baseType:yo.Required,baseData:yo.Required},i.baseType=t,i.baseData=n,i}__extends(t,e)}(ms);!function(e){e[e.Verbose=0]="Verbose",e[e.Information=1]="Information",e[e.Warning=2]="Warning",e[e.Error=3]="Error",e[e.Critical=4]="Critical"}(Ns||(Ns={}));!function(){function e(){}e.getConfig=function(e,t,n,i){var r;return void 0===i&&(i=!1),r=n&&e.extensionConfig&&e.extensionConfig[n]&&!ta.isNullOrUndefined(e.extensionConfig[n][t])?e.extensionConfig[n][t]:e[t],ta.isNullOrUndefined(r)?i:r}}();var Us=function(){this.applicationVersion="ai.application.ver",this.applicationBuild="ai.application.build",this.applicationTypeId="ai.application.typeId",this.applicationId="ai.application.applicationId",this.applicationLayer="ai.application.layer",this.deviceId="ai.device.id",this.deviceIp="ai.device.ip",this.deviceLanguage="ai.device.language",this.deviceLocale="ai.device.locale",this.deviceModel="ai.device.model",this.deviceFriendlyName="ai.device.friendlyName",this.deviceNetwork="ai.device.network",this.deviceNetworkName="ai.device.networkName",this.deviceOEMName="ai.device.oemName",this.deviceOS="ai.device.os",this.deviceOSVersion="ai.device.osVersion",this.deviceRoleInstance="ai.device.roleInstance",this.deviceRoleName="ai.device.roleName",this.deviceScreenResolution="ai.device.screenResolution",this.deviceType="ai.device.type",this.deviceMachineName="ai.device.machineName",this.deviceVMName="ai.device.vmName",this.deviceBrowser="ai.device.browser",this.deviceBrowserVersion="ai.device.browserVersion",this.locationIp="ai.location.ip",this.locationCountry="ai.location.country",this.locationProvince="ai.location.province",this.locationCity="ai.location.city",this.operationId="ai.operation.id",this.operationName="ai.operation.name",this.operationParentId="ai.operation.parentId",this.operationRootId="ai.operation.rootId",this.operationSyntheticSource="ai.operation.syntheticSource",this.operationCorrelationVector="ai.operation.correlationVector",this.sessionId="ai.session.id",this.sessionIsFirst="ai.session.isFirst",this.sessionIsNew="ai.session.isNew",this.userAccountAcquisitionDate="ai.user.accountAcquisitionDate",this.userAccountId="ai.user.accountId",this.userAgent="ai.user.userAgent",this.userId="ai.user.id",this.userStoreRegion="ai.user.storeRegion",this.userAuthUserId="ai.user.authUserId",this.userAnonymousUserAcquisitionDate="ai.user.anonUserAcquisitionDate",this.userAuthenticatedUserAcquisitionDate="ai.user.authUserAcquisitionDate",this.cloudName="ai.cloud.name",this.cloudRole="ai.cloud.role",this.cloudRoleVer="ai.cloud.roleVer",this.cloudRoleInstance="ai.cloud.roleInstance",this.cloudEnvironment="ai.cloud.environment",this.cloudLocation="ai.cloud.location",this.cloudDeploymentUnit="ai.cloud.deploymentUnit",this.internalNodeName="ai.internal.nodeName",this.internalSdkVersion="ai.internal.sdkVersion",this.internalAgentVersion="ai.internal.agentVersion",this.internalSnippet="ai.internal.snippet",this.internalSdkSrc="ai.internal.sdkSrc"},Vs=function(){function e(){}return e.create=function(e,t,n,i,r,o){if(n=cs.sanitizeString(i,n)||ps.NotSpecified,ta.isNullOrUndefined(e)||ta.isNullOrUndefined(t)||ta.isNullOrUndefined(n))throw Error("Input doesn't contain all required fields");var a={name:n,time:ta.toISOString(new Date),iKey:"",ext:o||{},tags:[],data:{},baseType:t,baseData:e};return ta.isNullOrUndefined(r)||$o(r,(function(e,t){a.data[e]=t})),a},e}(),Fs=(function(){function e(){}e.UserExt="user",e.DeviceExt="device",e.TraceExt="trace",e.WebExt="web",e.AppExt="app",e.OSExt="os",e.SessionExt="ses",e.SDKExt="sdk"}(),new Us,function e(t,n,i,r){Ut(e,this,(function(e){var o,a=ta.arrForEach,s=ta.isNullOrUndefined,c=null,l=[],u=!1;function d(){i&&a(i.getTransmissionControls(),(function(e){a(e,(function(e){return e.flush(!0)}))}))}i&&(o=i.logger),e.trackPageView=function(e,i){var p=e.name;if(s(p)||"string"!==typeof p){var f=Ao();p=e.name=f&&f.title||""}var g=e.uri;if(s(g)||"string"!==typeof g){var h=Oo();g=e.uri=h&&h.href||""}if(!r.isPerformanceTimingSupported())return t.sendPageViewInternal(e,i),d(),void o.throwInternal(ea.WARNING,ga,"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 m,v,y,C=!1,b=r.getPerformanceTiming().navigationStart;b>0&&(m=hs.GetDuration(b,+new Date),r.shouldCollectDuration(m)||(m=void 0)),s(i)||s(i.duration)||(v=i.duration),!n&&isNaN(v)||(isNaN(v)&&(i||(i={}),i.duration=m),t.sendPageViewInternal(e,i),d(),C=!0),i||(i={}),y=function(){var n=!1;try{if(r.isPerformanceTimingDataReady()){n=!0;var a={name:p,uri:g};r.populatePageViewPerformanceEvent(a),a.isValid||C?(C||(i.duration=a.durationMs,t.sendPageViewInternal(e,i)),u||(t.sendPageViewPerformanceInternal(a,i),u=!0)):(i.duration=m,t.sendPageViewInternal(e,i))}else b>0&&hs.GetDuration(b,+new Date)>6e4&&(n=!0,C||(i.duration=6e4,t.sendPageViewInternal(e,i)))}catch(s){o.throwInternal(ea.CRITICAL,xa,"trackPageView failed on page load calculation: "+ps.getExceptionName(s),{exception:ps.dump(s)})}return n},l.push(y),c||(c=setInterval((function(){var e=l.slice(0),t=!1;l=[],a(e,(function(e){e()?t=!0:l.push(e)})),0===l.length&&(clearInterval(c),c=null),t&&d()}),100))}}))}),Bs=function(){function e(e,t){this.prevPageVisitDataKeyName="prevPageVisitData",this.pageVisitTimeTrackingHandler=t,this._logger=e}return e.prototype.trackPreviousPageVisit=function(e,t){try{var n=this.restartPageVisitTimer(e,t);n&&this.pageVisitTimeTrackingHandler(n.pageName,n.pageUrl,n.pageVisitTime)}catch(i){this._logger.warnToConsole("Auto track page visit time failed, metric will not be collected: "+ps.dump(i))}},e.prototype.restartPageVisitTimer=function(e,t){try{var n=this.stopPageVisitTimer();return this.startPageVisitTimer(e,t),n}catch(i){return this._logger.warnToConsole("Call to restart failed: "+ps.dump(i)),null}},e.prototype.startPageVisitTimer=function(e,t){try{if(ps.canUseSessionStorage()){if(null!=ps.getSessionStorage(this._logger,this.prevPageVisitDataKeyName))throw new Error("Cannot call startPageVisit consecutively without first calling stopPageVisit");var n=new Hs(e,t),i=Ro().stringify(n);ps.setSessionStorage(this._logger,this.prevPageVisitDataKeyName,i)}}catch(r){this._logger.warnToConsole("Call to start failed: "+ps.dump(r))}},e.prototype.stopPageVisitTimer=function(){try{if(ps.canUseSessionStorage()){var e=ta.dateNow(),t=ps.getSessionStorage(this._logger,this.prevPageVisitDataKeyName);if(t&&Lo()){var n=Ro().parse(t);return n.pageVisitTime=e-n.pageVisitStartTime,ps.removeSessionStorage(this._logger,this.prevPageVisitDataKeyName),n}return null}return null}catch(i){return this._logger.warnToConsole("Stop page visit timer failed: "+ps.dump(i)),null}},e}(),Hs=function(e,t){this.pageVisitStartTime=ta.dateNow(),this.pageName=e,this.pageUrl=t},zs=function(){function e(e){this.MAX_DURATION_ALLOWED=36e5,e&&(this._logger=e.logger)}return e.prototype.populatePageViewPerformanceEvent=function(e){e.isValid=!1;var t=this.getPerformanceNavigationTiming(),n=this.getPerformanceTiming();if(t||n){if(t)var i=t.duration,r=hs.GetDuration(t.startTime,t.connectEnd),o=hs.GetDuration(t.requestStart,t.responseStart),a=hs.GetDuration(t.responseStart,t.responseEnd),s=hs.GetDuration(t.responseEnd,t.loadEventEnd);else i=hs.GetDuration(n.navigationStart,n.loadEventEnd),r=hs.GetDuration(n.navigationStart,n.connectEnd),o=hs.GetDuration(n.requestStart,n.responseStart),a=hs.GetDuration(n.responseStart,n.responseEnd),s=hs.GetDuration(n.responseEnd,n.loadEventEnd);0===i?this._logger.throwInternal(ea.WARNING,da,"error calculating page view performance.",{total:i,network:r,request:o,response:a,dom:s}):this.shouldCollectDuration(i,r,o,a,s)?i<Math.floor(r)+Math.floor(o)+Math.floor(a)+Math.floor(s)?this._logger.throwInternal(ea.WARNING,ua,"client performance math error.",{total:i,network:r,request:o,response:a,dom:s}):(e.durationMs=i,e.perfTotal=e.duration=ps.msToTimeSpan(i),e.networkConnect=ps.msToTimeSpan(r),e.sentRequest=ps.msToTimeSpan(o),e.receivedResponse=ps.msToTimeSpan(a),e.domProcessing=ps.msToTimeSpan(s),e.isValid=!0):this._logger.throwInternal(ea.WARNING,Ta,"Invalid page load duration value. Browser perf data won't be sent.",{total:i,network:r,request:o,response:a,dom:s})}},e.prototype.getPerformanceTiming=function(){return this.isPerformanceTimingSupported()?Do().timing:null},e.prototype.getPerformanceNavigationTiming=function(){return this.isPerformanceNavigationTimingSupported()?Do().getEntriesByType("navigation")[0]:null},e.prototype.isPerformanceNavigationTimingSupported=function(){var e=Do();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0},e.prototype.isPerformanceTimingSupported=function(){var e=Do();return e&&e.timing},e.prototype.isPerformanceTimingDataReady=function(){var e=Do(),t=e?e.timing:0;return t&&t.domainLookupStart>0&&t.navigationStart>0&&t.responseStart>0&&t.requestStart>0&&t.loadEventEnd>0&&t.responseEnd>0&&t.connectEnd>0&&t.domLoading>0},e.prototype.shouldCollectDuration=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Po()||{},i=["googlebot","adsbot-google","apis-google","mediapartners-google"],r=n.userAgent,o=!1;if(r)for(var a=0;a<i.length;a++)o=o||-1!==r.toLowerCase().indexOf(i[a]);if(o)return!1;for(a=0;a<e.length;a++)if(e[a]<0||e[a]>=this.MAX_DURATION_ALLOWED)return!1;return!0},e}();function Gs(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}var Ws=function(e){function t(){var t=e.call(this)||this;t.identifier="ApplicationInsightsAnalytics",t.priority=180,t.autoRoutePVDelay=500,t._trackAjaxAttempts=0;var n=Oo();return t._prevUri=n&&n.href||"",t}return __extends(t,e),t.getDefaultConfig=function(e){return e||(e={}),e.sessionRenewalMs=18e5,e.sessionExpirationMs=864e5,e.disableExceptionTracking=ps.stringToBoolOrDefault(e.disableExceptionTracking),e.autoTrackPageVisitTime=ps.stringToBoolOrDefault(e.autoTrackPageVisitTime),e.overridePageViewDuration=ps.stringToBoolOrDefault(e.overridePageViewDuration),e.enableUnhandledPromiseRejectionTracking=ps.stringToBoolOrDefault(e.enableUnhandledPromiseRejectionTracking),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isCookieUseDisabled=ps.stringToBoolOrDefault(e.isCookieUseDisabled),e.isStorageUseDisabled=ps.stringToBoolOrDefault(e.isStorageUseDisabled),e.isBrowserLinkTrackingEnabled=ps.stringToBoolOrDefault(e.isBrowserLinkTrackingEnabled),e.enableAutoRouteTracking=ps.stringToBoolOrDefault(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e},t.prototype.processTelemetry=function(e,t){var n=this;Ga(this.core,(function(){return n.identifier+":processTelemetry"}),(function(){var i=!1,r=n._telemetryInitializers.length;t=n._getTelCtx(t);for(var o=0;o<r;++o){var a=n._telemetryInitializers[o];if(a)try{if(!1===a.apply(null,[e])){i=!0;break}}catch(s){t.diagLog().throwInternal(ea.CRITICAL,Oa,"One of telemetry initializers failed, telemetry item will not be sent: "+ps.getExceptionName(s),{exception:ps.dump(s)},!0)}}i||n.processNext(e,t)}),(function(){return{item:e}}),!e.sync)},t.prototype.trackEvent=function(e,t){try{var n=Vs.create(e,Cs.dataType,Cs.envelopeType,this.diagLog(),t);this.core.track(n)}catch(i){this.diagLog().throwInternal(ea.WARNING,Ia,"trackTrace failed, trace will not be collected: "+ps.getExceptionName(i),{exception:ps.dump(i)})}},t.prototype.startTrackEvent=function(e){try{this._eventTracking.start(e)}catch(t){this.diagLog().throwInternal(ea.CRITICAL,ha,"startTrackEvent failed, event will not be collected: "+ps.getExceptionName(t),{exception:ps.dump(t)})}},t.prototype.stopTrackEvent=function(e,t,n){try{this._eventTracking.stop(e,void 0,t)}catch(i){this.diagLog().throwInternal(ea.CRITICAL,ma,"stopTrackEvent failed, event will not be collected: "+ps.getExceptionName(i),{exception:ps.dump(i)})}},t.prototype.trackTrace=function(e,t){try{var n=Vs.create(e,Rs.dataType,Rs.envelopeType,this.diagLog(),t);this.core.track(n)}catch(i){this.diagLog().throwInternal(ea.WARNING,Ia,"trackTrace failed, trace will not be collected: "+ps.getExceptionName(i),{exception:ps.dump(i)})}},t.prototype.trackMetric=function(e,t){try{var n=Vs.create(e,Ps.dataType,Ps.envelopeType,this.diagLog(),t);this.core.track(n)}catch(i){this.diagLog().throwInternal(ea.CRITICAL,ba,"trackMetric failed, metric will not be collected: "+ps.getExceptionName(i),{exception:ps.dump(i)})}},t.prototype.trackPageView=function(e,t){try{var n=e||{};this._pageViewManager.trackPageView(n,__assign({},n.properties,n.measurements,t)),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(n.name,n.uri)}catch(i){this.diagLog().throwInternal(ea.CRITICAL,Ea,"trackPageView failed, page view will not be collected: "+ps.getExceptionName(i),{exception:ps.dump(i)})}},t.prototype.sendPageViewInternal=function(e,t,n){var i=Ao();i&&(e.refUri=void 0===e.refUri?i.referrer:e.refUri);var r=Vs.create(e,Os.dataType,Os.envelopeType,this.diagLog(),t,n);this.core.track(r),this._trackAjaxAttempts=0},t.prototype.sendPageViewPerformanceInternal=function(e,t,n){var i=Vs.create(e,Ms.dataType,Ms.envelopeType,this.diagLog(),t,n);this.core.track(i)},t.prototype.trackPageViewPerformance=function(e,t){try{this._pageViewPerformanceManager.populatePageViewPerformanceEvent(e),this.sendPageViewPerformanceInternal(e,t)}catch(n){this.diagLog().throwInternal(ea.CRITICAL,Ea,"trackPageViewPerformance failed, page view will not be collected: "+ps.getExceptionName(n),{exception:ps.dump(n)})}},t.prototype.startTrackPage=function(e){try{if("string"!==typeof e){var t=Ao();e=t&&t.title||""}this._pageTracking.start(e)}catch(n){this.diagLog().throwInternal(ea.CRITICAL,va,"startTrackPage failed, page view may not be collected: "+ps.getExceptionName(n),{exception:ps.dump(n)})}},t.prototype.stopTrackPage=function(e,t,n,i){try{if("string"!==typeof e){var r=Ao();e=r&&r.title||""}if("string"!==typeof t){var o=Oo();t=o&&o.href||""}this._pageTracking.stop(e,t,n,i),this.config.autoTrackPageVisitTime&&this._pageVisitTimeManager.trackPreviousPageVisit(e,t)}catch(a){this.diagLog().throwInternal(ea.CRITICAL,ya,"stopTrackPage failed, page view will not be collected: "+ps.getExceptionName(a),{exception:ps.dump(a)})}},t.prototype.sendExceptionInternal=function(e,t,n){var i=new Ts(this.diagLog(),e.exception||new Error(ps.NotSpecified),e.properties,e.measurements,e.severityLevel,e.id).toInterface(),r=Vs.create(i,Ts.dataType,Ts.envelopeType,this.diagLog(),t,n);this.core.track(r)},t.prototype.trackException=function(e,t){try{this.sendExceptionInternal(e,t)}catch(n){this.diagLog().throwInternal(ea.CRITICAL,Ca,"trackException failed, exception will not be collected: "+ps.getExceptionName(n),{exception:ps.dump(n)})}},t.prototype._onerror=function(e){try{var t={url:e&&e.url||(Ao()||{}).URL,lineNumber:e.lineNumber,columnNumber:e.columnNumber,message:e.message};if(ps.isCrossOriginError(e.message,e.url,e.lineNumber,e.columnNumber,e.error))this._sendCORSException(t.url);else{if(!ps.isError(e.error)){var n="window.onerror@"+t.url+":"+e.lineNumber+":"+(e.columnNumber||0);e.error=new Error(e.message),e.error.stack=n}this.trackException({exception:e.error,severityLevel:Ns.Error},t)}}catch(r){var i=e.error?e.error.name+", "+e.error.message:"null";this.diagLog().throwInternal(ea.CRITICAL,pa,"_onError threw exception while logging error, error will not be collected: "+ps.getExceptionName(r),{exception:ps.dump(r),errorString:i})}},t.prototype.addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},t.prototype.initialize=function(n,i,r,o){var a=this;if(!this.isInitialized()){if(ta.isNullOrUndefined(i))throw Error("Error initializing");e.prototype.initialize.call(this,n,i,r,o),this.setInitialized(!1);var s=this._getTelCtx(),c=this.identifier;this._globalconfig={instrumentationKey:n.instrumentationKey,endpointUrl:n.endpointUrl||"https://dc.services.visualstudio.com/v2/track"},this.config=s.getExtCfg(c);var l=t.getDefaultConfig();void 0!==l&&($o(l,(function(e,t){a.config[e]=s.getConfig(c,e,t)})),this._globalconfig&&$o(l,(function(e,t){void 0===a._globalconfig[e]&&(a._globalconfig[e]=t)}))),this.config.isCookieUseDisabled&&ps.disableCookies(),this.config.isStorageUseDisabled&&ps.disableStorage();var u={instrumentationKey:function(){return n.instrumentationKey},accountId:function(){return a.config.accountId||n.accountId},sessionRenewalMs:function(){return a.config.sessionRenewalMs||n.sessionRenewalMs},sessionExpirationMs:function(){return a.config.sessionExpirationMs||n.sessionExpirationMs},sampleRate:function(){return a.config.samplingPercentage||n.samplingPercentage},cookieDomain:function(){return a.config.cookieDomain||n.cookieDomain},sdkExtension:function(){return a.config.sdkExtension||n.sdkExtension},isBrowserLinkTrackingEnabled:function(){return a.config.isBrowserLinkTrackingEnabled||n.isBrowserLinkTrackingEnabled},appId:function(){return a.config.appId||n.appId}};this._pageViewPerformanceManager=new zs(this.core),this._pageViewManager=new Fs(this,this.config.overridePageViewDuration,this.core,this._pageViewPerformanceManager),this._pageVisitTimeManager=new Bs(this.diagLog(),(function(e,t,n){return a.trackPageVisitTime(e,t,n)})),this._telemetryInitializers=this._telemetryInitializers||[],this._addDefaultTelemetryInitializers(u),this._eventTracking=new qs(this.diagLog(),"trackEvent"),this._eventTracking.action=function(e,t,n,i){i||(i={}),i.duration=n.toString(),a.trackEvent({name:e,properties:i})},this._pageTracking=new qs(this.diagLog(),"trackPageView"),this._pageTracking.action=function(e,t,n,i,r){ta.isNullOrUndefined(i)&&(i={}),i.duration=n.toString();var o={name:e,uri:t,properties:i,measurements:r};a.sendPageViewInternal(o,i)};var d=No(),p=ko(),f=Oo(),g=this;if(!1===this.config.disableExceptionTracking&&!this.config.autoExceptionInstrumented&&d){var h=d.onerror;d.onerror=function(e,t,n,i,r){var o=h&&h(e,t,n,i,r);return!0!==o&&g._onerror({message:e,url:t,lineNumber:n,columnNumber:i,error:r}),o},this.config.autoExceptionInstrumented=!0}if(!1===this.config.disableExceptionTracking&&!0===this.config.enableUnhandledPromiseRejectionTracking&&!this.config.autoUnhandledPromiseInstrumented&&d){var m=d.onunhandledrejection;d.onunhandledrejection=function(e){var t=m&&m.call(d,e);return!0!==t&&g._onerror({message:e.reason.toString(),error:e.reason instanceof Error?e.reason:new Error(e.reason.toString()),url:f?f.href:"",lineNumber:0,columnNumber:0}),t},this.config.autoUnhandledPromiseInstrumented=!0}if(!0===this.config.enableAutoRouteTracking&&p&&ta.isFunction(p.pushState)&&ta.isFunction(p.replaceState)&&d&&"undefined"!==typeof Event){var v=this;ta.arrForEach(r,(function(e){"AppInsightsPropertiesPlugin"===e.identifier&&(a._properties=e)})),p.pushState=function(e){return function(){var t=e.apply(this,arguments);return Gs(d,ps.createDomEvent(v.config.namePrefix+"pushState")),Gs(d,ps.createDomEvent(v.config.namePrefix+"locationchange")),t}}(p.pushState),p.replaceState=function(e){return function(){var t=e.apply(this,arguments);return Gs(d,ps.createDomEvent(v.config.namePrefix+"replaceState")),Gs(d,ps.createDomEvent(v.config.namePrefix+"locationchange")),t}}(p.replaceState),d.addEventListener&&(d.addEventListener(v.config.namePrefix+"popstate",(function(){Gs(d,ps.createDomEvent(v.config.namePrefix+"locationchange"))})),d.addEventListener(v.config.namePrefix+"locationchange",(function(){v._properties&&v._properties.context&&v._properties.context.telemetryTrace&&(v._properties.context.telemetryTrace.traceID=ps.generateW3CId(),v._properties.context.telemetryTrace.name=f&&f.pathname||"_unknown_"),a._currUri?(a._prevUri=a._currUri,a._currUri=f&&f.href||""):a._currUri=f&&f.href||"",setTimeout(function(e){v.trackPageView({refUri:e,properties:{duration:0}})}.bind(a,a._prevUri),v.autoRoutePVDelay)})))}this.setInitialized(!0)}},t.prototype.trackPageVisitTime=function(e,t,n){var i={PageName:e,PageUrl:t};this.trackMetric({name:"PageVisitTime",average:n,max:n,min:n,sampleCount:1},i)},t.prototype._addDefaultTelemetryInitializers=function(e){if(!e.isBrowserLinkTrackingEnabled()){var t=["/browserLinkSignalR/","/__browserLink/"];this._addTelemetryInitializer((function(e){if(e.baseType===Ls.dataType){var n=e.baseData;if(n)for(var i=0;i<t.length;i++)if(n.target&&n.target.indexOf(t[i])>=0)return!1}return!0}))}},t.prototype._addTelemetryInitializer=function(e){this._telemetryInitializers.push(e)},t.prototype._sendCORSException=function(e){var t={message:"Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",url:e,lineNumber:0,columnNumber:0,error:void 0},n=Vs.create(t,Ts.dataType,Ts.envelopeType,this.diagLog(),{url:e});this.core.track(n)},t.Version="2.5.11",t}(Ja),qs=function(){function e(e,t){this._name=t,this._events={},this._logger=e}return e.prototype.start=function(e){"undefined"!==typeof this._events[e]&&this._logger.throwInternal(ea.WARNING,Pa,"start was called more than once for this event without calling stop.",{name:this._name,key:e},!0),this._events[e]=+new Date},e.prototype.stop=function(e,t,n,i){var r=this._events[e];if(isNaN(r))this._logger.throwInternal(ea.WARNING,ka,"stop was called without a corresponding start.",{name:this._name,key:e},!0);else{var o=+new Date,a=hs.GetDuration(r,o);this.action(e,t,a,n,i)}delete this._events[e],this._events[e]=void 0},e}();function js(e){rt(e,(function(t,n){(!Gn(n)||"{}"===JSON.stringify(n)&&"callback"!==t)&&delete e[t]}))}function Ks(e){return Xs(e,Ys)}function Xs(e,t,n){var i=e;if(i){for(i=i;!t(i,n);)if(!(i=i=i.parentNode)||!i.getAttribute)return null;return i}}function Ys(e){return"A"===e.nodeName}function Js(e,t){return function(e,t){var n=e.left,i=e.top,r=e.right,o=e.bottom,a=t.left,s=t.top,c=t.right,l=t.bottom;return Math.max(0,Math.min(r,c)-Math.max(n,a))*Math.max(0,Math.min(o,l)-Math.max(i,s))}((e=e).getBoundingClientRect(),t)>0}function Qs(e,t){return!!Gn(Zs(e,t))}function Zs(e,t){return Xs(e,$s,t)}function $s(e,t){var n=e.getAttribute(t);return Gn(n)||""===n}function ec(e){return"["+e+"]"}function tc(e,t,n,i){var r;return function(){var o=arguments,a=function(){r=0,t&&t.apply(i,o)},s=!r;clearTimeout(r),r=setTimeout(a,n),s&&e&&e.apply(i,o)}}function nc(){var e={h:0,v:0},t=Le(),n=Re();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 ic(){var e={h:0,w:0},t=Le(),n=Re();if(t&&n&&t.screen){var i=n.body||{},r=n.documentElement||{};e.h=t.innerHeight||i.clientHeight||r.clientHeight,e.w=t.innerWidth||i.clientWidth||r.clientWidth}return e}var rc,oc="CL",ac="CR",sc="CM",cc="S",lc="R",uc="KE",dc="KS";!function(e){e[e.PAGE_ACTION=0]="PAGE_ACTION",e[e.CONTENT_UPDATE=1]="CONTENT_UPDATE"}(rc||(rc={}));var pc={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function fc(e){if(e){var t=Ks(e);if(1===t.length){if(t[0].href)return t[0].href;if(t[0].src)return t[0].src}}return""}function gc(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");return!!Gn(t)&&"pii"===t.toLowerCase()}catch(n){return!1}}function hc(e,t){return e.coreData&&e.coreData.requestUri&&""!==e.coreData.requestUri?e.coreData.requestUri:mc(e,t)}function mc(e,t){if(!t)return null;var n=t.protocol+"//"+(t.hostname||t.host)+(Gn(t.port)?":"+t.port:"")+t.pathname;if(e.urlCollectHash&&(n+=t.hash||""),e.urlCollectQuery){var i=t.search;if(!i){var r=t.hash||"",o=r.indexOf("?");-1!==o&&(i=r.slice(o))}return n+i}return n}function vc(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=(Ve()||{}).pathname||"",i=n.split("/");return n=i&&""!==i[i.length-1]?i[i.length-1]:"Undefined"}function yc(e){return e.callback&&"function"===typeof e.callback.signedinStatus?e.callback.signedinStatus():e.isLoggedIn}function Cc(e,t){var n,i="",r={},o=[],a=e.cookiesToCollect;!1===e.shareAuthStatus?o=a:kn(a,(function(e){"ANON"!==e&&o.push(e)}));try{try{zn&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(o=o.concat(window.varCustomerCookies))}catch(s){t.throwInternal(ot.CRITICAL,En.FailedToGetCookies,"Failed to get cookies ")}kn(o,(function(e){r.hasOwnProperty(e)||(r[e]="",Hn&&""!==(n=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")))&&(i+=e+"="+n+";"))}))}catch(s){t.throwInternal(ot.CRITICAL,En.FailedToGetCookies,"Failed to get cookies ")}return i}function bc(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=fc(e);break;case"INPUT":var n=e.type;if(n&&pc[n.toUpperCase()]){var i=Ve()||{};t=e.form?e.form.action||i.pathname||"":i.pathname||""}}return t}function Ec(e){xc((function(){if(Hn&&"complete"===document.readyState)e();else{var t=Le();t&&(t.addEventListener?t.addEventListener("load",(function(){e()})):t.attachEvent&&t.attachEvent("onload",(function(){e()})))}}))}function xc(e){var t=Re()||{};/in/.test(t.readyState)?setTimeout((function(){xc(e)}),100):e.call()}var Ic,Tc={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"}},_c={parentId:"parentId",parentName:"parentName"},wc={parentId:"pI",parentName:"pN"},Sc=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?Tc.shortNames:Tc.longNames}return e.prototype.getMetadata=function(){var e={},t={};return Hn&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),ni(!0,t,e)},e.prototype.getVisibleContent=function(){var e,t=ic(),n={top:0,bottom:(e=t).h,left:0,right:e.w},i=null;Hn&&(i=document.querySelectorAll(ec(this._contentBlobFieldNames.areaName)+","+ec(this._contentBlobFieldNames.slotNumber)+","+ec(this._config.biBlobAttributeTag)));var r=[];if(i)for(var o=0;o<i.length;o++){var a=i[o];if(!Qs(a,"data-bi-dnt")&&Js(a,n)){var s=this.getElementContent(a,rc.CONTENT_UPDATE);s&&r.push(s)}}return r},e.prototype.getElementContent=function(e,t){if(!e)return{};var n,i,r,o={};if(this._isTracked(e))if(this._isTrackedWithDataM(e)){i=(n=e).getAttribute(this._config.biBlobAttributeTag);try{o=JSON.parse(i)}catch(a){this._traceLogger.throwInternal(ot.CRITICAL,En.CannotParseBiBlobValue,"Can not parse "+i)}}else this._isTrackedWithDataBi(e)&&(r=e,o=ni(o,this._populateElementContentwithDataBi(r,e)));else if((n=Zs(e,this._config.biBlobAttributeTag))&&(i=n.getAttribute(this._config.biBlobAttributeTag)),i)try{o=JSON.parse(i)}catch(a){this._traceLogger.throwInternal(ot.CRITICAL,En.CannotParseBiBlobValue,"Can not parse "+i)}else r=Xs(e,this._isTrackedWithDataBi),o=ni(o,this._populateElementContentwithDataBi(r,e));return js(o),this._config.autoCapture.lineage&&t===rc.PAGE_ACTION&&(o=ni(o,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(o=ni(o,this._getParentDetails(n||r,o))),o},e.prototype.getLineageDetails=function(e){for(var t,n,i,r=[],o=[],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){this._traceLogger.throwInternal(ot.CRITICAL,En.CannotParseDataAttribute,"Can not parse "+c)}u&&(n=u.cN||u.cT,i=u.id||void 0,(n||i)&&(r.push(n),l&&(t=n),o.push(i)))}else n=e.getAttribute(this._contentBlobFieldNames.contentName)||e.getAttribute(this._contentBlobFieldNames.contentType),i=e.getAttribute(this._contentBlobFieldNames.id)||void 0,(n||i)&&(r.push(n),l&&(t=n),o.push(i));e=e.parentElement}return{lineage:r.join(">"),lineageById:o.join(">"),lineageContainerName:t}},e.prototype._populateElementContentwithDataBi=function(e,t){var n={};if(!e){if(!this._config.useDefaultContentName)return n;e=t}var i=Zs(e,this._contentBlobFieldNames.areaName),r=ni({},this._getAreaContent(i)),o=this._config.callback.contentName?this._config.callback.contentName(e,this._config.useDefaultContentName):"",a=this._getDefaultContentName(e,this._config.useDefaultContentName);(n={id:e.getAttribute(this._contentBlobFieldNames.id)||e.id||"",aN:r.areaName,sN:e.getAttribute(this._contentBlobFieldNames.slotNumber),cN:o||e.getAttribute(this._contentBlobFieldNames.contentName)||a||e.getAttribute("alt")||"",cS:e.getAttribute(this._contentBlobFieldNames.contentSource)||r.contentSource,tN:r.templateName,pid:e.getAttribute(this._contentBlobFieldNames.productId),cT:e.getAttribute(this._contentBlobFieldNames.contentType)||r.type,pI:e.getAttribute(this._contentBlobFieldNames.parentId),pN:e.getAttribute(this._contentBlobFieldNames.parentName)}).id&&n.aN&&n.sN&&n.cN||this._traceLogger.throwInternal(ot.WARNING,En.InvalidContentBlob,"Invalid content blob.  Missing required attributes (id, aN/area, sN/slot), cN/contentName.  Content information will still be collected!"),this._contentBlobFieldNames.isShortNames||(n={contentId:n.id,areaName:n.aN,slotNumber:n.sN,contentName:n.cN,contentSource:n.cS,templateName:n.tN,productId:n.pid,contentType:n.cT,parentId:n.pI,parentName:n.pN});for(var s,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,i={};if(Hn){n=document.querySelectorAll("meta");for(var r=0;r<n.length;r++){var o=n[r];if(o.name)if(0===o.name.toLowerCase().indexOf(e))i[t?o.name.replace(e,""):o.name]=o.content}}return i},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||gc(e)||!e.tagName)return"";var n,i=Re()||{};switch(e.tagName){case"A":n=i.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?wc.parentId:_c.parentId,i=this._contentBlobFieldNames.isShortNames?wc.parentName:_c.parentName,r=t[n],o=t[i];return r||o||!e?{}:this._populateParentInfo(e,n,i)},e.prototype._isTrackedWithDataM=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-m")>=0)return!0;return!1},e.prototype._isTrackedWithDataBi=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._isTracked=function(e){for(var t=e.attributes,n=0;n<t.length;n++)if(t[n].name.indexOf("data-m")>=0||t[n].name.indexOf("data-bi-")>=0)return!0;return!1},e.prototype._populateParentInfo=function(e,t,n){var i,r,o={},a=this._config.biBlobAttributeTag,s=Xs(e.parentElement,this._isTracked);if(s){var c=s.getAttribute(a)||e[a];if(c){try{var l=JSON.parse(c)}catch(u){this._traceLogger.throwInternal(ot.CRITICAL,En.CannotParseDataAttribute,"Can not parse "+c)}l&&(i=l.id,r=l.cN)}else i=s.getAttribute(this._contentBlobFieldNames.id),r=s.getAttribute(this._contentBlobFieldNames.contentName);i&&(o[t]=i),r&&(o[n]=r)}return o},e}(),Nc={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},Ac=function(){function e(e,t){this._analyticsPlugin=e,this._traceLogger=t}return e.prototype.pageView=function(){this._analyticsPlugin.capturePageView({isAuto:!0})},e.prototype.onLoad=function(){var e=this;Ec((function(){e._analyticsPlugin.capturePageViewPerformance({isAuto:!0}),e._analyticsPlugin.captureContentUpdate({isAuto:!0,isDomComplete:!0})}))},e.prototype.click=function(){var e=this,t=Le(),n=Re();if(t&&t.addEventListener){var i=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";t.addEventListener(i,(function(t){e._processClick(t)}),!1),t.addEventListener("keyup",(function(t){e._processClick(t)}),!1)}else n&&n.attachEvent&&(n.attachEvent("onclick",(function(t){e._processClick(t)})),n.attachEvent("keyup",(function(t){e._processClick(t)})))},e.prototype.scroll=function(e){var t=this,n=tc(null,(function(){t._analyticsPlugin.captureContentUpdate({isAuto:!0,actionType:cc})}),e.scroll,this),i=Le();i&&(i.addEventListener?i.addEventListener("scroll",n):window.attachEvent&&window.attachEvent("onscroll",n))},e.prototype.maxScroll=function(e){var t=function(){var t=nc();e.v=e.v>t.v?e.v:t.v},n=Le();n&&(n.addEventListener?n.addEventListener("scroll",t):n.attachEvent&&n.attachEvent("onscroll",t))},e.prototype.resize=function(e){var t=this,n=tc((function(){t._analyticsPlugin.captureContentUpdate({isAuto:!0,actionType:lc})}),null,e.resize,this),i=Le();i&&(i.addEventListener?i.addEventListener("resize",n):i.attachEvent&&i.attachEvent("onresize",n))},e.prototype.onUnload=function(){var e=this;si((function(){e._analyticsPlugin.capturePageUnload({isAuto:!0})}))},e.prototype._processClick=function(e){var t,n={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},i=Le(),r=(e=e||i.event).srcElement||e.target,o={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},a="which"in(t=e)?3===t.which:"button"in t?2===t.button:void 0;if(a)o.actionType=ac;else if(function(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}(e))o.actionType=oc;else if(function(e){if("keyCode"in e)return 13===e.keyCode}(e))o.actionType=uc;else if(function(e){if("keyCode"in e)return 32===e.keyCode}(e))o.actionType=dc;else{if(!function(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}(e))return;o.actionType=sc}for(;r&&r.tagName;){if(r.control&&n[r.control.tagName.toUpperCase()]&&(r=r.control),n[r.tagName.toUpperCase()]){("INPUT"!==r.tagName.toUpperCase()||Nc[r.type.toUpperCase()])&&this._analyticsPlugin.capturePageAction(r,o,{},a);break}r=r.parentElement||r.parentNode}},e}();function Pc(e,t,n){var i="";return t&&t[n]?i=t[n]:e&&(i=e[n]),i}!function(e){e[e.UNDEFINED=0]="UNDEFINED",e[e.NAVIGATIONBACK=1]="NAVIGATIONBACK",e[e.NAVIGATION=2]="NAVIGATION",e[e.NAVIGATIONFORWARD=3]="NAVIGATIONFORWARD",e[e.APPLY=4]="APPLY",e[e.REMOVE=5]="REMOVE",e[e.SORT=6]="SORT",e[e.EXPAND=7]="EXPAND",e[e.REDUCE=8]="REDUCE",e[e.CONTEXTMENU=9]="CONTEXTMENU",e[e.TAB=10]="TAB",e[e.COPY=11]="COPY",e[e.EXPERIMENTATION=12]="EXPERIMENTATION",e[e.PRINT=13]="PRINT",e[e.SHOW=14]="SHOW",e[e.HIDE=15]="HIDE",e[e.MAXIMIZE=16]="MAXIMIZE",e[e.MINIMIZE=17]="MINIMIZE",e[e.BACKBUTTON=18]="BACKBUTTON",e[e.STARTPROCESS=20]="STARTPROCESS",e[e.PROCESSCHECKPOINT=21]="PROCESSCHECKPOINT",e[e.COMPLETEPROCESS=22]="COMPLETEPROCESS",e[e.SCENARIOCANCEL=23]="SCENARIOCANCEL",e[e.DOWNLOADCOMMIT=40]="DOWNLOADCOMMIT",e[e.DOWNLOAD=41]="DOWNLOAD",e[e.SEARCHAUTOCOMPLETE=60]="SEARCHAUTOCOMPLETE",e[e.SEARCH=61]="SEARCH",e[e.SEARCHINITIATE=62]="SEARCHINITIATE",e[e.TEXTBOXINPUT=63]="TEXTBOXINPUT",e[e.PURCHASE=80]="PURCHASE",e[e.ADDTOCART=81]="ADDTOCART",e[e.VIEWCART=82]="VIEWCART",e[e.ADDWISHLIST=83]="ADDWISHLIST",e[e.FINDSTORE=84]="FINDSTORE",e[e.CHECKOUT=85]="CHECKOUT",e[e.REMOVEFROMCART=86]="REMOVEFROMCART",e[e.PURCHASECOMPLETE=87]="PURCHASECOMPLETE",e[e.VIEWCHECKOUTPAGE=88]="VIEWCHECKOUTPAGE",e[e.VIEWCARTPAGE=89]="VIEWCARTPAGE",e[e.VIEWPDP=90]="VIEWPDP",e[e.UPDATEITEMQUANTITY=91]="UPDATEITEMQUANTITY",e[e.INTENTTOBUY=92]="INTENTTOBUY",e[e.PUSHTOINSTALL=93]="PUSHTOINSTALL",e[e.SIGNIN=100]="SIGNIN",e[e.SIGNOUT=101]="SIGNOUT",e[e.SOCIALSHARE=120]="SOCIALSHARE",e[e.SOCIALLIKE=121]="SOCIALLIKE",e[e.SOCIALREPLY=122]="SOCIALREPLY",e[e.CALL=123]="CALL",e[e.EMAIL=124]="EMAIL",e[e.COMMUNITY=125]="COMMUNITY",e[e.SOCIALFOLLOW=126]="SOCIALFOLLOW",e[e.VOTE=140]="VOTE",e[e.SURVEYINITIATE=141]="SURVEYINITIATE",e[e.SURVEYCOMPLETE=142]="SURVEYCOMPLETE",e[e.REPORTAPPLICATION=143]="REPORTAPPLICATION",e[e.REPORTREVIEW=144]="REPORTREVIEW",e[e.SURVEYCHECKPOINT=145]="SURVEYCHECKPOINT",e[e.CONTACT=160]="CONTACT",e[e.REGISTRATIONINITIATE=161]="REGISTRATIONINITIATE",e[e.REGISTRATIONCOMPLETE=162]="REGISTRATIONCOMPLETE",e[e.CANCELSUBSCRIPTION=163]="CANCELSUBSCRIPTION",e[e.RENEWSUBSCRIPTION=164]="RENEWSUBSCRIPTION",e[e.CHANGESUBSCRIPTION=165]="CHANGESUBSCRIPTION",e[e.REGISTRATIONCHECKPOINT=166]="REGISTRATIONCHECKPOINT",e[e.CHATINITIATE=180]="CHATINITIATE",e[e.CHATEND=181]="CHATEND",e[e.TRIALSIGNUP=200]="TRIALSIGNUP",e[e.TRIALINITIATE=201]="TRIALINITIATE",e[e.SIGNUP=210]="SIGNUP",e[e.FREESIGNUP=211]="FREESIGNUP",e[e.PARTNERREFERRAL=220]="PARTNERREFERRAL",e[e.LEARNLOWFUNNEL=230]="LEARNLOWFUNNEL",e[e.LEARNHIGHFUNNEL=231]="LEARNHIGHFUNNEL",e[e.SHOPPINGINTENT=232]="SHOPPINGINTENT",e[e.VIDEOSTART=240]="VIDEOSTART",e[e.VIDEOPAUSE=241]="VIDEOPAUSE",e[e.VIDEOCONTINUE=242]="VIDEOCONTINUE",e[e.VIDEOCHECKPOINT=243]="VIDEOCHECKPOINT",e[e.VIDEOJUMP=244]="VIDEOJUMP",e[e.VIDEOCOMPLETE=245]="VIDEOCOMPLETE",e[e.VIDEOBUFFERING=246]="VIDEOBUFFERING",e[e.VIDEOERROR=247]="VIDEOERROR",e[e.VIDEOMUTE=248]="VIDEOMUTE",e[e.VIDEOUNMUTE=249]="VIDEOUNMUTE",e[e.VIDEOFULLSCREEN=250]="VIDEOFULLSCREEN",e[e.VIDEOUNFULLSCREEN=251]="VIDEOUNFULLSCREEN",e[e.VIDEOREPLAY=252]="VIDEOREPLAY",e[e.VIDEOPLAYERLOAD=253]="VIDEOPLAYERLOAD",e[e.VIDEOPLAYERCLICK=254]="VIDEOPLAYERCLICK",e[e.VIDEOVOLUMECONTROL=255]="VIDEOVOLUMECONTROL",e[e.VIDEOAUDIOTRACKCONTROL=256]="VIDEOAUDIOTRACKCONTROL",e[e.VIDEOCLOSEDCAPTIONCONTROL=257]="VIDEOCLOSEDCAPTIONCONTROL",e[e.VIDEOCLOSEDCAPTIONSTYLE=258]="VIDEOCLOSEDCAPTIONSTYLE",e[e.VIDEORESOLUTIONCONTROL=259]="VIDEORESOLUTIONCONTROL",e[e.VIRTUALEVENTJOIN=260]="VIRTUALEVENTJOIN",e[e.VIRTUALEVENTEND=261]="VIRTUALEVENTEND",e[e.IMPRESSION=280]="IMPRESSION",e[e.CLICK=281]="CLICK",e[e.RICHMEDIACOMPLETE=282]="RICHMEDIACOMPLETE",e[e.ADBUFFERING=283]="ADBUFFERING",e[e.ADERROR=284]="ADERROR",e[e.ADSTART=285]="ADSTART",e[e.ADCOMPLETE=286]="ADCOMPLETE",e[e.ADSKIP=287]="ADSKIP",e[e.ADTIMEOUT=288]="ADTIMEOUT",e[e.OTHER=300]="OTHER"}(Ic||(Ic={}));var kc=function(){function e(e,t,n,i,r,o,a){this._webAnalyticsPlugin=e,this._config=t,this._contentHandler=n,this._id=i,this._pageTagsCallback=r,this._metaTags=o,this._traceLogger=a,this._pageTags={}}return e.prototype._setBasicProperties=function(e,t){e.ver="1.0",e.id=this._id.getLastPageViewId(),Gn(e.name)||(e.name=vc(this._config,t)),!Gn(e.uri)&&zn&&(e.uri=hc(this._config,Ve()))},e.prototype._setCommonProperties=function(e,t,n){var i=this;i._setBasicProperties(e,n),i._setPageTags(e,n),i._pageTypeMetaTag=Pc(i._metaTags,i._config.coreData,"pageType"),i._marketMetaTag=Pc(i._metaTags,i._config.coreData,"market"),i._behaviorMetaTag=Pc(i._metaTags,i._config.coreData,"behavior"),Gn(n.pageType)&&(e.pageType=n.pageType),Gn(i._pageTypeMetaTag)&&!Gn(e.pageType)&&(e.pageType=i._pageTypeMetaTag),Gn(i._marketMetaTag)&&(e.market=i._marketMetaTag),e.isLoggedIn=yc(i._config),t.cookieEnabled=Jn()},e.prototype._setPageTags=function(e,t){var n=this;n._config.coreData&&n._config.coreData.pageTags&&(n._pageTags=ni(!0,n._pageTags,n._config.coreData.pageTags)),n._pageTagsCallback&&(n._pageTags=ni(!0,n._pageTags,n._pageTagsCallback())),Gn(t.pageTags)&&(n._pageTags=ni(!0,n._pageTags,t.pageTags)),n._metaTags&&(n._pageTags.metaTags={},rt(n._metaTags,(function(e,t){"behavior"!==e&&"market"!==e&&"pageType"!==e&&(n._pageTags.metaTags[e]=t)}))),e.properties=e.properties||{},e.properties.pageTags=n._pageTags},e.prototype._getBehavior=function(e){var t;return e&&Gn(e.behavior)?t=e.behavior:Gn(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if(Gn(e)){var t=void 0,n=parseInt(e);if((t=isNaN(n)?Ic[e]:n)in Ic)return t}return 0},e}(),Oc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.capturePageView=function(e,t){e=Gn(e)?e:{};var n={},i=Gn(t)?t:{};this._setCommonProperties(n,i,e),n.refUri=Gn(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,n.isManual=!e.isAuto;var r=Cc(this._config,this._traceLogger);r&&(i.cookies=r),i.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(n,i)},t}(kc),Dc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.trackPageAction=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var i={name:"Ms.Web.PageAction",baseType:"PageActionData",ext:n,data:{},baseData:{},latency:gn};i.baseData.name=e.name,i.baseData.uri=e.uri,i.baseData.market=e.market,i.baseData.pageType=e.pageType,i.baseData.isLoggedIn=e.isLoggedIn,i.baseData.id=e.id,i.baseData.properties=e.properties,i.baseData.ver=e.ver,i.baseData.actionType=e.actionType,i.baseData.behavior=e.behavior,i.baseData.clickCoordinates=e.clickCoordinates,i.baseData.content=e.content,i.baseData.contentVer=e.contentVer,i.baseData.targetUri=e.targetUri,rt(t,(function(e,t){i.data[e]||(i.data[e]=t)})),this._webAnalyticsPlugin.core.track(i)},t.prototype.capturePageAction=function(e,t,n,i){t=Gn(t)?t:{};var r={},o=Gn(n)?n:{};this._setCommonProperties(r,o,t),r.isManual=!t.isAuto,r.behavior=this._getBehavior(t);var a={};if(e=e,i&&(r.behavior=9),e&&(r.targetUri=bc(e),(a=ni(a=this._contentHandler.getElementContent(e,rc.PAGE_ACTION),this._getCustomTags(e)))&&a.bhvr&&!Gn(t.behavior))){var s=function(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}(a,"bhvr");r.behavior=this._getValidBehavior(s)}Gn(t.actionType)&&(r.actionType=t.actionType),Gn(t.clickCoordinateX)&&Gn(t.clickCoordinateY)&&(r.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),r.contentVer="2.0";var c=this._config.callback.pageActionContentTags;r.content=ec(JSON.stringify(ni(t.content||a,"function"===typeof c?c(e):{},t&&t.contentTags?t.contentTags:{}))),o.timeToAction=this._getTimeToClick(),o.refUri=Gn(t.refUri)?t.refUri:this._config.coreData.referrerUri;var l=Cc(this._config,this._traceLogger);l&&(o.cookies=l),this.trackPageAction(r,o)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!gc(e))for(var n in e.attributes)if(n&&e.attributes[n]){var i=e.attributes[n].name;i&&0===i.toLowerCase().indexOf("ms.")&&(t[i]=e.attributes[n].value)}e=e.parentElement||e.parentNode}return t},t.prototype._getTimeToClick=function(){var e=Fe();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},t}(kc),Lc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.trackContentUpdate=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var i={name:"Ms.Web.ContentUpdate",baseType:"ContentUpdateData",ext:n,data:{},baseData:{},latency:3};kn(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],(function(t){i.baseData[t]=e[t]})),rt(t,(function(e,t){i.data[e]||(i.data[e]=t)})),this._webAnalyticsPlugin.core.track(i)},t.prototype.captureContentUpdate=function(e,t){e=Gn(e)?e:{};var n={},i=Gn(t)?t:{};this._setCommonProperties(n,i,e),n.behavior=this._getBehavior(e),Gn(e.actionType)&&(n.actionType=e.actionType);var r=ic(),o=nc();n.pageHeight=Hn?document.body.scrollHeight:null,n.vpHeight=r.h,n.vpWidth=r.w,n.vScrollOffset=o.v,n.hScrollOffset=o.h,n.contentVer="2.0",n.isManual=!e.isAuto;var a=this._getContentFormatted(e.content)||JSON.stringify(this._contentHandler.getVisibleContent());a&&(n.content=a),Gn(e.isDomComplete)?i.isDomComplete=e.isDomComplete:i.isDomComplete=!1,this.trackContentUpdate(n,i)},t.prototype._getContentFormatted=function(e){if(Gn(e))return"[object Array]"===Object.prototype.toString.call(e)?JSON.stringify(e):ec(JSON.stringify(e))},t}(kc),Rc=function(e){function t(t,n,i,r,o,a){var s=e.call(this,t,n,null,i,{},{},r)||this;return s._webAnalyticsPlugin=t,s._config=n,s._id=i,s._traceLogger=r,s._timestamp=o,s._maxScroll=a,s}return __extends(t,e),t.prototype.trackPageUnload=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var i={name:"Ms.Web.PageUnload",baseType:"PageUnloadData",ext:n,data:{},baseData:{},latency:mn};i.baseData.name=e.name,i.baseData.uri=e.uri,i.baseData.id=e.id,i.baseData.properties=e.properties,i.baseData.ver=e.ver,i.baseData.market=e.market,i.baseData.pageType=e.pageType,i.baseData.isLoggedIn=e.isLoggedIn,rt(t,(function(e,t){i.data[e]||(i.data[e]=t)})),this._webAnalyticsPlugin.core.track(i)},t.prototype.capturePageUnload=function(e,t){e=Gn(e)?e:{};var n={},i=Gn(t)?t:{},r=Hn?document.body.scrollHeight:0;if(this._setBasicProperties(n,e),n.isManual=!e.isAuto,i.dwellTime=this._timestamp._recordTimeSpan("dwellTime",!0),i.scrollDepth=e.scrollDepth||this._maxScroll.v.toString()+"/"+r.toString(),i.vpHeight=ic().h,i.vScrollOffset=e.vScrollOffset||this._maxScroll.v,zn){var o=Fe(),a=o?o.timing:null;a&&a.loadEventStart&&a.navigationStart&&a.loadEventStart>0&&(i.pageLoadTime=a.loadEventStart-a.navigationStart)}this.trackPageUnload(n,i)},t}(kc),Mc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=Gn(e)?e:{};var n={},i=Gn(t)?t:{};this._setBasicProperties(n,e),this._setPageTags(n,e),n.isManual=!e.isAuto,i.behavior=this._getBehavior(e),i.vpHeight=e.vpHeight,i.vpWidth=e.vpWidth,i.framework=e.framework,i.systemTiming=e.systemTiming,i.customTiming=e.customTiming,this._webAnalyticsPlugin._populatePageViewPerformance(n),this._webAnalyticsPlugin.trackPageViewPerformance(n,i)},t}(kc),Uc=function(){function e(){this.appUserId=null,this.firstPageView=!1,this.lastPageViewId=ti(),this.traceId=this.createTraceId()}return e.visitorId=function(){return ei("MUID")},e.prototype.createTraceId=function(){return ti().replace(/-/g,"")},e.prototype.getTraceId=function(){return this.traceId},e.prototype.getLastPageViewId=function(){return this.lastPageViewId},e.prototype.initializeIds=function(){this.firstPageView?(this.traceId=this.createTraceId(),this.lastPageViewId=ti()):this.firstPageView=!0},e.prototype.getMuidUserId=function(){var e=ei("MUID");return e&&e.length?"t:"+e:e},e.prototype.setAppUserId=function(t){if(this.appUserId=null,t){for(var n=0;n<e.userIdPrefixes.length;n++)if(e.userIdPrefixes[n]===t.substring(0,2)){this.appUserId=t;break}this.appUserId}},e.prototype.setDeviceClass=function(e){e&&(this.deviceClass=e)},e.prototype.getDeviceClass=function(){return this.deviceClass},e.prototype.getAppUserId=function(){return this.appUserId},e.prototype.syncMuid=function(e){var t=Ve();if(t){var n=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",i=Re();if(i){var r=i.createElement("IMG");r.style.display="none",r.src=n,r.hidden="",r["aria-hidden"]="true",r.role="presentation"}}},e.prototype.getMuidHost=function(e){return{"microsoft.com":"c1.microsoft.com","xbox.com":"c.xbox.com","live.com":"c.live.com","microsoftstore.com":"c.microsoftstore.com","msn.com":"c.msn.com","windows.com":"c.windows.com","office.com":"c.office.com"}[e]},e.userIdPrefixes=["c:","i:","w:"],e}(),Vc=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}(),Fc=function(e){function t(){var n,i,r,o,a,s,c,l=e.call(this)||this;l.identifier="WebAnalyticsPlugin",l.version="3.0.2";var u,d,p,f={h:0,v:0},g=!1;return Ut(t,l,(function(e,t){function h(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:Hn?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}},autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com"},n=[];if(rt(t,(function(e,t){at.isObject(t)&&n.push(e)})),e)return function(e,t){js(e),kn(t,(function(t,n){at.isObject(e[t])?js(e[t]):delete e[t]}))}(e,n),ni(!0,t,e)}function m(e){var t={};return void 0!==e.isManual&&(t.web={},t.web.isManual=void 0===e.isManual||e.isManual,delete e.isManual),t}e._telemetryInitializers=e._telemetryInitializers||[],e.updateCoreDataConfig=function(e){c.coreData=ni(!0,c.coreData,e)},e.initialize=function(g,m,v){var y=m;g.extensionConfig=g.extensionConfig||[],g.extensionConfig[e.identifier]=g.extensionConfig[e.identifier]||{},e._config=c=h(g.extensionConfig[e.identifier]);var C=c.autoCapture,b=y.getWParam;if(y.getWParam=function(){var e=0;return c.mscomCookies&&(e|=1),e|b()},g.extensionConfig[e.identifier].disableExceptionTracking=!C.jsError,t.initialize(g,m,v),d=d||new Sc(c,e.diagLog()),p=p||new Ac(e,e.diagLog()),c.manageCv){for(var E=0;E<v.length;E++)if("CorrelationVectorPlugin"===v[E].identifier){c.manageCv=!0,s=v[E];break}s||(e.diagLog().throwInternal(ot.WARNING,En.CVPluginNotAvailable,'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 Uc,u=new Vc;var x=d.getMetadata();n=new Oc(l,c,d,e.id,c.callback.pageViewPageTags,x,e.diagLog()),i=new Dc(l,c,d,e.id,c.callback.pageActionPageTags,x,e.diagLog()),r=new Lc(l,c,d,e.id,c.callback.contentUpdatePageTags,x,e.diagLog()),o=new Rc(l,c,e.id,e.diagLog(),u,f),a=new Mc(l,c,d,e.id,c.callback.pageViewPageTags,x,e.diagLog()),c.syncMuid&&Ec((function(){var t=e.id.getMuidHost(c.muidDomain);e.id.syncMuid(t)})),C.pageView&&p.pageView(),C.onLoad&&p.onLoad(),C.click&&p.click(),C.scroll&&p.scroll(c.debounceMs),C.resize&&p.resize(c.debounceMs),(C.onUnload||c.manualPageUnload)&&p.maxScroll(f),C.onUnload&&p.onUnload()},e.processTelemetry=function(t,n){ci(t,e.identifier);var i=t;"PageviewData"===i.baseType?(i.name="Ms.Web.PageView",i.latency=mn):"ExceptionData"===i.baseType?(i.name="Ms.Web.ClientError",i.latency=gn,delete i.baseData.aiDataContract):"PageviewPerformanceData"===i.baseType&&(i.name="Ms.Web.PageViewPerformance",i.latency=gn,delete i.baseData.isValid,delete i.baseData.durationMs);var r=null;"PageviewData"!==i.baseType?c.manageCv&&(r=s.getCv())&&r.increment():c.manageCv&&((r=s.getCv())?r.seed():r=s.getCv());for(var o=!1,a=e._telemetryInitializers.length,l=0;l<a;++l){var u=e._telemetryInitializers[l];if(u&&!1===u.apply(null,[i])){o=!0;break}}o||e.processNext(i,n)},e.addTelemetryInitializer=function(t){e._telemetryInitializers.push(t)},e.trackEvent=function(t,n){t.latency=t.latency||gn,t.baseData=t.baseData||{},t.data=t.data||{},Gn(n)&&rt(n,(function(e,n){t.data[e]=n})),e.core.track(t)},e.trackPageView=function(n,i){u._recordTimeSpan("dwellTime",!1),f.v=0,g=!1,e.id.initializeIds(),n.id=e.id.getLastPageViewId(),t.sendPageViewInternal(n,i,m(n))},e.capturePageView=function(e,t){n.capturePageView(e,t)},e.trackPageViewPerformance=function(e,n){t.sendPageViewPerformanceInternal(e,n,m(e))},e.capturePageViewPerformance=function(e,t){a.capturePageViewPerformance(e,t)},e.trackException=function(e,n){e.id=e.id||ti(),t.sendExceptionInternal(e,n,m(e))},e.trackPageAction=function(e,t){i.trackPageAction(e,t)},e.capturePageAction=function(e,t,n,r){Qs(e,"data-bi-dnt")||i.capturePageAction(e,t,n,r)},e.trackContentUpdate=function(e,t){r.trackContentUpdate(e,t)},e.captureContentUpdate=function(e,t){r.captureContentUpdate(e,t)},e.trackPageUnload=function(e,t){g||(g=!0,o.trackPageUnload(e,t))},e.capturePageUnload=function(e,t){g||(g=!0,o.capturePageUnload(e,t))},e._populatePageViewPerformance=function(t){e._pageViewPerformanceManager.populatePageViewPerformanceEvent(t)},e.setContentHandler=function(e){d=e},e.setAutoCaptureHandler=function(e){p=e}})),l}return __extends(t,e),t.prototype.updateCoreDataConfig=function(e){},t.prototype.initialize=function(e,t,n){},t.prototype.processTelemetry=function(e,t){},t.prototype.addTelemetryInitializer=function(e){},t.prototype.trackEvent=function(e,t){},t.prototype.trackPageView=function(e,t){},t.prototype.capturePageView=function(e,t){},t.prototype.trackPageViewPerformance=function(e,t){},t.prototype.capturePageViewPerformance=function(e,t){},t.prototype.trackException=function(e,t){},t.prototype.trackPageAction=function(e,t){},t.prototype.capturePageAction=function(e,t,n,i){},t.prototype.trackContentUpdate=function(e,t){},t.prototype.captureContentUpdate=function(e,t){},t.prototype.trackPageUnload=function(e,t){},t.prototype.capturePageUnload=function(e,t){},t.prototype._populatePageViewPerformance=function(e){},t.prototype.setContentHandler=function(e){},t.prototype.setAutoCaptureHandler=function(e){},t}(Ws),Bc=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],Hc=function(e){function t(){var t=e.call(this)||this;return t._postChannel=new lo,t._propertyManager=new Rr,t._webAnalytics=new Fc,t}return __extends(t,e),t.prototype.initialize=function(t,n){var i=this,r=this;Wt(r,(function(){return"ApplicationInsights:initialize"}),(function(){var o=[r._propertyManager,r._webAnalytics];if(n&&(o=o.concat(n)),t.channels&&t.channels.length>0){for(var a=!1,s=0;s<t.channels[0].length;s++)if(t.channels[0][s].identifier===r._postChannel.identifier){a=!0;break}a||t.channels[0].push(r._postChannel)}else t.channels=[[r._postChannel]];var c=t.extensionConfig=t.extensionConfig||[];c[r._postChannel.identifier]=t?t.channelConfiguration:{},c[r._propertyManager.identifier]=t?t.propertyConfiguration:{},c[r._webAnalytics.identifier]=t?t.webAnalyticsConfiguration:{};try{e.prototype.initialize.call(i,t,o)}catch(l){r.logger.throwInternal(ot.CRITICAL,En.FailedToInitializeSDK,"Failed to initialize SDK."+l)}}),(function(){return{config:t,extensions:n}}))},t.prototype.getPropertyManager=function(){return this._propertyManager},t.prototype.getPostChannel=function(){return this._postChannel},t.prototype.getWebAnalyticsExtension=function(){return this._webAnalytics},t.prototype.addTelemetryInitializer=function(e){this._webAnalytics.addTelemetryInitializer(e)},t.prototype.trackEvent=function(e,t){this._webAnalytics.trackEvent(e,t)},t.prototype.trackPageView=function(e,t){this._webAnalytics.trackPageView(e,t)},t.prototype.trackPageAction=function(e,t){this._webAnalytics.trackPageAction(e,t)},t.prototype.trackContentUpdate=function(e,t){this._webAnalytics.trackContentUpdate(e,t)},t.prototype.trackPageUnload=function(e,t){this._webAnalytics.trackPageUnload(e,t)},t.prototype.trackException=function(e,t){this._webAnalytics.trackException(e,t)},t.prototype.trackPageViewPerformance=function(e,t){this._webAnalytics.trackPageViewPerformance(e,t)},t.prototype.capturePageView=function(e,t){this._webAnalytics.capturePageView(e,t)},t.prototype.capturePageViewPerformance=function(e,t){this._webAnalytics.capturePageViewPerformance(e,t)},t.prototype.capturePageAction=function(e,t,n,i){this._webAnalytics.capturePageAction(e,t,n,i)},t.prototype.captureContentUpdate=function(e,t){this._webAnalytics.captureContentUpdate(e,t)},t.prototype.capturePageUnload=function(e,t){this._webAnalytics.capturePageUnload(e,t)},t.prototype._onerror=function(e){this._webAnalytics._onerror(e)},t.prototype.emptySnippetQueue=function(e){var t=this;try{if(e&&(at.isNullOrUndefined(t._snippetVersion)||t._snippetVersion,rt(t,(function(t,n){at.isString(t)&&!at.isFunction(n)&&t&&"_"!==t[0]&&-1===Bc.indexOf(t)&&(e[t]=n)}))),Vn(e.queue)){for(var n=e.queue.length,i=0;i<n;i++){(0,e.queue[i])()}e.queue=void 0,delete e.queue}}catch(r){r&&Un(r.toString)&&r.toString()}},t.prototype.updateSnippetDefinitions=function(e){this.snippet=e,this._snippetVersion=""+(e.sv||e.version||""),function(e,t,n){if(e&&t&&e!==t&&$e(e)&&$e(t)){var i=function(i){if(at.isString(i)){var r=t[i];et(r)?n&&!n(i,!0,t,e)||(e[i]=(o=i,function(){var e=arguments;return t[o].apply(t,e)})):n&&!n(i,!1,t,e)||(Ze(e,i)&&delete e[i],it(e,i,(function(){return t[i]}),(function(e){t[i]=e}))||(e[i]=r))}var o};for(var r in t)i(r)}}(e,this,(function(e){return e&&-1===Bc.indexOf(e)}))},t}(pi);!function(){try{var e,t=ke();if(t&&"undefined"!==typeof JSON&&void 0!==t[e=t.onedsSDK||"oneDSWeb"]){var n=t[e],i=new Hc;i.updateSnippetDefinitions(n),i.initialize(n.config,n.extensions),t[e]=i,i.emptySnippetQueue(n)}}catch(r){console&&console.warn("Failed to initialize AppInsights JS SDK for instance "+e+r.message)}}();var zc="undefined";var Gc=function(e,t){return Gc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},Gc(e,t)};var Wc=(typeof globalThis!==zc&&globalThis?globalThis:typeof self!==zc&&self?self:typeof window!==zc&&window?window:typeof n.g!==zc&&n.g?n.g:null)||{};!function(e,t,n){e.__assign||(e.__assign=Object.assign||t),e.__extends||(e.__extends=n)}(Wc,(function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}),(function(e,t){function n(){this.constructor=e}Gc(e,t),e.prototype=null===t?function(e){var t=Object.create;if(t)return t(e);if(null==e)return{};var n=typeof e;if("object"!==n&&"function"!==n)throw new TypeError("Object prototype may only be an Object:"+e);function i(){}return i.prototype=e,new i}(t):(n.prototype=t.prototype,new n)})),__assign||(__assign=Wc.__assign),__extends||(__extends=Wc.__extends);var qc=function(){},jc=function(){function e(e,t){this._base="",this._currentElement=0,this._base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._cv1Constants=new qc,this._cv2Constants=new qc,this._cvVersionAtLatestValidityCheck=2,this._traceLogger=t?t.logger:new Bt,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 i="",r=0;r<n;r++)i+=t[r],r<n-1&&(i+=".");var o=t[0].length===this._cv2Constants.baseLength?this._cv2Constants.maxCorrelationVectorLength:this._cv1Constants.maxCorrelationVectorLength;if(i.length<=o)return i}},e.prototype.canExtend=function(){var e=this.storedCv();return!!this.isValid(e)&&this._isLeqThanMaxCorrelationVectorLength(e.length+2)},e.prototype.canIncrement=function(){return!!this.isValid(this.storedCv())&&this._isLeqThanMaxCorrelationVectorLength(this._base.length+1+(this._currentElement+1+"").length)},e.prototype.setValue=function(e){if(this.isValid(e)){var t=e.lastIndexOf(".");return t>1?(this._base=e.substr(0,t),this._currentElement=parseInt(e.substr(t+1),10)):(this._base=e,this._currentElement=0),!0}return this._traceLogger.throwInternal(ot.WARNING,En.InvalidCorrelationValue,"Cannot set invalid correlation vector value"),!1},e.prototype.setValueLegacy=function(e){return this.setValue(e),this.getValue()},e.prototype.seed=function(){for(var e="",t=0;t<this._currentCvConstants.baseLength;t++)e+=this._base64CharSet.charAt(Math.floor(Math.random()*this._base64CharSet.length));return e},e.prototype.extend=function(){if(this.canExtend())return this._base=this._base.concat(".",this._currentElement.toString()),this._currentElement=0,this.storedCv()},e.prototype.increment=function(){if(this.canIncrement())return this._currentElement=this._currentElement+1,this.storedCv()},e.prototype.validateWithCv1=function(e){if(this._cv1Constants.validationPattern.test(e)&&e.length<=this._cv1Constants.maxCorrelationVectorLength)return!0},e.prototype.validateWithCv2=function(e){if(this._cv2Constants.validationPattern.test(e)&&e.length<=this._cv2Constants.maxCorrelationVectorLength)return!0},e.prototype.useCv1=function(){this._currentCvConstants=this._cv1Constants},e.prototype.useCv2=function(){this._currentCvConstants=this._cv2Constants},e.prototype.isValid=function(e){if(e){var t=e.split(".")[0];if(t){if(16===t.length)return this._cvVersionAtLatestValidityCheck=1,this.validateWithCv1(e);if(22===t.length)return this._cvVersionAtLatestValidityCheck=2,this.validateWithCv2(e)}}},e.prototype.init=function(e){return e?this.setValue(e):(this._base=this.seed(),this._currentElement=0),this.getValue()},e.prototype.initLegacy=function(e){return this.init(e)},e.prototype._isLeqThanMaxCorrelationVectorLength=function(e){return 1===this._cvVersionAtLatestValidityCheck?e<=this._cv1Constants.maxCorrelationVectorLength:e<=this._cv2Constants.maxCorrelationVectorLength},e}(),Kc=function(e){function t(t){var n=e.call(this)||this;return n.identifier="CorrelationVectorPlugin",n.priority=159,n.version="3.0.2",n._cvInitialValue=t,n._cv=n._cvInitialValue?new jc(n._cvInitialValue):new jc,n}return __extends(t,e),t.prototype.initialize=function(t,n,i){e.prototype.initialize.call(this,t,n,i)},t.prototype.processTelemetry=function(e,t){ci(e,this.identifier),e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},e.ext.mscv.cV||this._cv&&this._cv.isInit()&&(e.ext.mscv.cV=this._cv.getValue()),this.processNext(e,t)},t.prototype.getCv=function(){return this._cv||this.diagLog().throwInternal(ot.WARNING,En.FailedToInitializeCorrelationVector,"Correlation Vector has not been initialized."),this._cv},t}(Qt),Xc=function(){function e(){}return e.prototype.getApplicationInsights=function(){return new Hc},e.prototype.getCorrelationVectorPlugin=function(e){return new Kc(e)},e}(),Yc={textFieldStyles:{"font-family":'"Segoe UI", "Segoe UI Web (West European)", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", sans-serif',"-webkit-font-smoothing":"antialiased","font-size":"14px","font-weight":"400","box-shadow":"none",margin:"0px",padding:"0px 8px","box-sizing":"border-box","border-radius":"0px",border:"none",background:"none transparent",color:"rgb(50, 49, 48)",width:"100%","min-width":"0px","text-overflow":"ellipsis",outline:"0px"},fieldGroupNormalStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"1px solid rgb(96, 94, 92)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},fieldGroupFocusStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"2px solid rgb(0, 120, 212)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},fieldGroupErrorStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"1px solid rgb(164, 38, 44)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},fieldGroupFocusErrorStyles:{"box-shadow":"none",margin:"0px",padding:"0px","box-sizing":"border-box",border:"2px solid rgb(164, 38, 44)","border-radius":"2px",background:"rgb(255, 255, 255)",cursor:"text",height:"32px",display:"flex","flex-direction":"row","align-items":"stretch",position:"relative"},secureIframeDimensions:{width:"100%",height:"32px"}},Jc=function(){this.canCreate=function(e,t,n){return e===k.ElementType.dropdown?R(R({},n),{inlineError:!0,customDropdownOptions:!1,label:!0}):e===k.ElementType.textBox?R(R({},n),{inlineError:!0,customDropdownOptions:!1,label:!0,inlineHelpLink:!0}):e===k.ElementType.buttonGroup?{inlineError:!1,customDropdownOptions:!1,label:!1,inlineHelpLink:!1}:e===k.ElementType.secureProperty?{inlineError:!1,securePropertyHardCodedStyles:Yc,inlineHelpLink:!1}:e===k.ElementType.button||e===k.ElementType.checkbox||e===k.ElementType.error||e===k.ElementType.group||e===k.ElementType.heading||e===k.ElementType.helpDialog||e===k.ElementType.hyperlink||e===k.ElementType.label||e===k.ElementType.securePropertyLabel||e===k.ElementType.radio||e===k.ElementType.subheading||e===k.ElementType.text||e===k.ElementType.image||e===k.ElementType.separator||e===k.ElementType.captcha||e===k.ElementType.filePicker?R(R({},n),{inlineError:!1}):null},this.create=function(e,t){switch((0,O.v)(),e){case k.ElementType.button:return r().createElement(U,R({},t));case k.ElementType.buttonGroup:return r().createElement(V,R({},t));case k.ElementType.checkbox:return r().createElement(F,R({},t));case k.ElementType.dropdown:return r().createElement(z,R({},t));case k.ElementType.error:return r().createElement(G,R({},t));case k.ElementType.group:return r().createElement(X,R({},t));case k.ElementType.heading:return r().createElement(ie,R({},t,{variant:"xLarge"}));case k.ElementType.helpDialog:return r().createElement(B,R({},t));case k.ElementType.hyperlink:return r().createElement(Y,R({},t));case k.ElementType.label:return r().createElement(J,R({},t));case k.ElementType.securePropertyLabel:return r().createElement(le,R({},t));case k.ElementType.radio:return r().createElement(ee,R({},t));case k.ElementType.subheading:return r().createElement(ie,R({},t,{variant:"large"}));case k.ElementType.text:return r().createElement(ie,R({},t));case k.ElementType.textBox:return r().createElement(re,R({},t));case k.ElementType.modal:return r().createElement(Q,R({},t));case k.ElementType.panel:return r().createElement(Z,R({},t));case k.ElementType.spinner:return r().createElement(te,R({},t));case k.ElementType.overlay:return r().createElement($,R({},t));case k.ElementType.image:return r().createElement(oe,R({},t));case k.ElementType.separator:return r().createElement(ae,R({},t));case k.ElementType.captcha:return r().createElement(se,R({},t));case k.ElementType.filePicker:return r().createElement(ce,R({},t));default:return null}},this.getOneDSService=function(){return new Xc}}}}]);
//# sourceMappingURL=8022.5ac488a5.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[8109],{68109:function(t,n,r){r.r(n),r.d(n,{Format:function(){return A},FormatWithProvider:function(){return C},Localization:function(){return z},LocalizationAsync:function(){return H},Localized:function(){return G},getString:function(){return K},getStringWithPlaceholders:function(){return Q},useString:function(){return $},useStringProvider:function(){return E},useStringWithPlaceholders:function(){return tt},useStrings:function(){return Y},useStringsWithPlaceholders:function(){return Z},withDefaultLocalization:function(){return M},withStringProvider:function(){return J}});var e=r(80322),o=r(44063),u=r(74387),i=r(94459),c=r(97259),a=r(27101),l=r(89330),f=r(14488),s=r(96777),p=r(71605),v=r(89913),g=s.A?s.A.isConcatSpreadable:void 0;var y=function(t){return(0,v.A)(t)||(0,p.A)(t)||!!(g&&t&&t[g])};var h=function t(n,r,e,o,u){var i=-1,c=n.length;for(e||(e=y),u||(u=[]);++i<c;){var a=n[i];r>0&&e(a)?r>1?t(a,r-1,e,o,u):(0,f.A)(u,a):o||(u[u.length]=a)}return u};var d=function(t){return(null==t?0:t.length)?h(t,1):[]},b=function(t,n,r){if(r||2===arguments.length)for(var e,o=0,u=n.length;o<u;o++)!e&&o in n||(e||(e=Array.prototype.slice.call(n,0,o)),e[o]=n[o]);return t.concat(e||Array.prototype.slice.call(n))};function O(t,n,r,e){var o=function(t,n,r){var e=i.makeObject.apply(void 0,b([m],r,!1));return t(n,e)}(t,n,(0,u.keys)(r));return j(o,e)(r)}var S=/(.*?)<<<(.*?)>>>/g,m=function(t){return"<<<".concat(t,">>>")},j=(0,a.memoizeFunction)((function(t,n){var r=(0,l.getPluralizedString)(t,n),u=(0,c.matchAll)(r,S);if(!u.length)return function(){return[r].filter(Boolean)};var i=u[u.length-1],a=r.substr(i.index+i[0].length),f=d(u.map((function(t,n){t[0];var r=t[1],o=t[2];return[function(){return r||null},function(t){var r=t[o];return r?"string"===typeof r?r:e.cloneElement(r,{key:n}):null}]}))).concat((function(){return a||null}));return function(t){return(0,o.filterOutNull)(f.map((function(n){return n(t)})))}}));function P(t){var n=O(t.resolveString,t.text,t.placeholders,t.count);return e.createElement(e.Fragment,null,n.map((function(n,r){return t.wrapper?t.wrapper(n,r):n})))}var w=function(){return w=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},w.apply(this,arguments)};function A(t){return e.createElement(P,w({resolveString:function(t,n){return t(n)}},t))}var k=r(50200),_=(0,r(17749).createSharedReactContext)({lookupString:function(t){return function(){return t}}},"LocalizationComponentsStringProvider"),L=_.Provider;function E(){return e.useContext(_)}var x=function(){return x=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},x.apply(this,arguments)};function C(t){var n=E().lookupString;return e.createElement(P,x({resolveString:function(t,r){return(0,k.isDevLocalization)()?t(r):n(t.key)(r)}},t))}function z(t){var n=t.lookupString,r=t.children,o=E(),u=e.useMemo((function(){return{lookupString:(t=n,r=o.lookupString,function(n){return function(e){var o=t(n)(e);if(o!==n)return o;var u=r(n)(e);return u!==n?u:n}})};var t,r}),[n,o]);return e.createElement(L,{value:u},r)}var D=function(){var t=function(n,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},t(n,r)};return function(n,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}}(),F=function(){return F=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},F.apply(this,arguments)};function M(){return function(t){return function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return D(r,n),r.prototype.render=function(){var n=(0,k.lookupStringInStringProvider)((0,k.getDefaultStringProvider)());return e.createElement(z,{lookupString:n},e.createElement(t,F({},this.props)))},r}(e.Component)}}var T=function(t,n,r,e){return new(r||(r=Promise))((function(o,u){function i(t){try{a(e.next(t))}catch(n){u(n)}}function c(t){try{a(e.throw(t))}catch(n){u(n)}}function a(t){var n;t.done?o(t.value):(n=t.value,n instanceof r?n:new r((function(t){t(n)}))).then(i,c)}a((e=e.apply(t,n||[])).next())}))},W=function(t,n){var r,e,o,u,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(a){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,c[0]&&(i=0)),i;)try{if(r=1,e&&(o=2&c[0]?e.return:c[0]?e.throw||((o=e.return)&&o.call(e),0):e.next)&&!(o=o.call(e,c[1])).done)return o;switch(e=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,e=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===c[0]||2===c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=n.call(t,i)}catch(a){c=[6,a],e=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,a])}}};var I=function(){return function(){return""}};function H(t){var n=t.children,r=t.stringMapLoader,o=t.errorHandler,u=t.locale,i=e.useState(!1),c=i[0],a=i[1],l=e.useRef(!1);(0,k.disablePseudoLocalization)(),e.useEffect((function(){return l.current=!0,function(t,n,r){return T(this,void 0,void 0,(function(){return W(this,(function(e){switch(e.label){case 0:return(0,k.setLocalizationErrorHandlerForDefaultStringProvider)(r),(0,k.addStringMapLoaderForDefaultStringProvider)(n),[4,(0,k.getCurrentLocaleForDefaultStringProvider)()];case 1:return e.sent()===t?[3,3]:[4,(0,k.setCurrentLocaleForDefaultStringProvider)(t)];case 2:e.sent(),e.label=3;case 3:return[2,{stringProviderContainsStrings:Object.keys((0,k.getDefaultStringProvider)().strings).length>0}]}}))}))}(u,r,o).then((function(t){var n=t.stringProviderContainsStrings;if(l.current&&(a(n),!n)){var r=new Error("Finished loading strings, but the current string map is empty");o(r)}})).catch((function(t){o(t)})),function(){l.current=!1}}),[u,r,o]);var f=c?(0,k.lookupStringInStringProvider)((0,k.getDefaultStringProvider)()):I;return e.createElement(z,{lookupString:f},n)}var N=function(){var t=function(n,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},t(n,r)};return function(n,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function e(){this.constructor=n}t(n,r),n.prototype=null===r?Object.create(r):(e.prototype=r.prototype,new e)}}(),R=function(){return R=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},R.apply(this,arguments)},U=function(t,n){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)n.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(r[e[o]]=t[e[o]])}return r};var B,G=(B=e.Fragment,function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.state={locale:null},n.onLocaleLoaded=function(t){n.setState({locale:t})},n}return N(n,t),n.prototype.componentWillUnmount=function(){this.onLocaleLoaded=function(){}},n.prototype.render=function(){var t=this,n=this.props,r=n.locale,o=U(n,["locale"]);return r!==this.state.locale&&(0,k.setCurrentLocaleForDefaultStringProvider)(r).then((function(){return t.onLocaleLoaded(r)})),null===this.state.locale?null:e.createElement(B,R({},o))},n}(e.Component)),q=function(){return q=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},q.apply(this,arguments)};function J(t){return function(n){var r=E(),o=q(q({},n),{stringProvider:r});return e.createElement(t,q({},o))}}function K(t,n){return(0,k.isDevLocalization)()?n():t.lookupString(n.key)()}function Q(t,n,r){return(0,k.isDevLocalization)()?n(r):t.lookupString(n.key)(r)}var V=function(){return V=Object.assign||function(t){for(var n,r=1,e=arguments.length;r<e;r++)for(var o in n=arguments[r])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},V.apply(this,arguments)},X=function(t,n,r){if(r||2===arguments.length)for(var e,o=0,u=n.length;o<u;o++)!e&&o in n||(e||(e=Array.prototype.slice.call(n,0,o)),e[o]=n[o]);return t.concat(e||Array.prototype.slice.call(n))};function Y(t){var n=E(),r=Object.keys(t),o=r.map((function(n){return t[n]}));return(0,e.useMemo)((function(){return r.reduce((function(r,e){var o;return V(V({},r),((o={})[e]=function(){return K(n,t[e])},o))}),{})}),X(X([n],r,!0),o,!0))}function Z(t){var n=E(),r=Object.keys(t),o=r.map((function(n){return t[n]}));return(0,e.useMemo)((function(){return r.reduce((function(r,e){var o;return V(V({},r),((o={})[e]=function(r){return Q(n,t[e],r)},o))}),{})}),X(X([n],r,!0),o,!0))}function $(t){return K(E(),t)}function tt(t,n){return Q(E(),t,n)}},96777:function(t,n,r){var e=r(75298).A.Symbol;n.A=e},14488:function(t,n){n.A=function(t,n){for(var r=-1,e=n.length,o=t.length;++r<e;)t[o+r]=n[r];return t}},25431:function(t,n,r){r.d(n,{A:function(){return p}});var e=r(96777),o=Object.prototype,u=o.hasOwnProperty,i=o.toString,c=e.A?e.A.toStringTag:void 0;var a=function(t){var n=u.call(t,c),r=t[c];try{t[c]=void 0;var e=!0}catch(a){}var o=i.call(t);return e&&(n?t[c]=r:delete t[c]),o},l=Object.prototype.toString;var f=function(t){return l.call(t)},s=e.A?e.A.toStringTag:void 0;var p=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":s&&s in Object(t)?a(t):f(t)}},24048:function(t,n){var r="object"==typeof global&&global&&global.Object===Object&&global;n.A=r},75298:function(t,n,r){var e=r(24048),o="object"==typeof self&&self&&self.Object===Object&&self,u=e.A||o||Function("return this")();n.A=u},71605:function(t,n,r){r.d(n,{A:function(){return f}});var e=r(25431),o=r(34018);var u=function(t){return(0,o.A)(t)&&"[object Arguments]"==(0,e.A)(t)},i=Object.prototype,c=i.hasOwnProperty,a=i.propertyIsEnumerable,l=u(function(){return arguments}())?u:function(t){return(0,o.A)(t)&&c.call(t,"callee")&&!a.call(t,"callee")},f=l},89913:function(t,n){var r=Array.isArray;n.A=r},34018:function(t,n){n.A=function(t){return null!=t&&"object"==typeof t}}}]);
//# sourceMappingURL=8109.f155b333.chunk.js.map
/*! For license information please see 8408.996478dd.chunk.js.LICENSE.txt */
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[8408],{68408:function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});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 i(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 a=function(){return a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};function o(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{c(r.next(e))}catch(t){a(t)}}function u(e){try{c(r.throw(e))}catch(t){a(t)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,u)}c((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},o=Object.create(("function"===typeof Iterator?Iterator:Object).prototype);return o.next=u(0),o.throw=u(1),o.return=u(2),"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){a.label=u[1];break}if(6===u[0]&&a.label<i[1]){a.label=i[1],i=u;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(u);break}i[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(c){u=[6,c],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}Object.create;function c(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var s,l,f,d,p,g,v,m;!function(e){e.EWallet="ewallet"}(s||(s={})),function(e){e.ApplePay="applepay",e.GooglePay="googlepay"}(l||(l={})),function(e){e.ApplePay="ewallet.applepay",e.GooglePay="ewallet.googlepay"}(f||(f={})),function(e){e.Supports3DS="supports3DS",e.SupportsCredit="supportsCredit",e.SupportsDebit="supportsDebit",e.SupportsEMV="supportsEMV"}(d||(d={})),t.SetupContext=void 0,(p=t.SetupContext||(t.SetupContext={})).SingleDomain="singleDomain",p.TopDomain="topDomain",p.IframeDomain="iframeDomain",function(e){e.PostProviderSession="POST PaymentAgentProviderSession",e.PostToken="POST PaymentAgentToken",e.GetConfig="GET PaymentAgentConfig"}(g||(g={})),function(e){e.chrome="chrome",e.edge="edge",e.safari="safari"}(v||(v={})),function(e){e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute"}(m||(m={}));var h,y={PIDLConfig:{"SelectResource.PaymentInstrument":{actions:{"ewallet.applepay.default":["PaymentInstrumentHandler.ClientSupported"],"ewallet.googlepay.default":["PaymentInstrumentHandler.ClientSupported"]}},HandlePaymentChallenge:{actions:{"ewallet.applepay.default":["PaymentInstrumentHandler.CollectPaymentToken"],"ewallet.googlepay.default":["PaymentInstrumentHandler.CollectPaymentToken"]}}},PaymentInstrumentHandlers:[{allowedAuthMethods:["PAN_ONLY"],protocolVersion:"ECv2",publicKey:"BBMH2x40787Ayspaqg2My43ZkLb4QvHPuDfE/VhQeGKzHy6JIcKPMyHifOe9Rav4bHWJG4W+aJpi0eKQbRlWY5M=",merchantName:"Microsoft",merchantId:"BCR2DN4TZ244PH2A",apiMajorVersion:"2",apiMinorVersion:"0",assuranceDetailsRequired:!0,publicKeyVersion:"1",enableGPayIframeForAllBrowsers:!1,enableBillingAddress:!0,paymentMethodFamily:"ewallet",paymentMethodType:"googlepay",piid:"cdc85313-9b57-4052-81fb-dea336132cbf",integrationType:"DIRECT",allowedAuthMethodsPerCountry:{us:["AMEX","DISCOVER","MASTERCARD","VISA"],ca:["AMEX","DISCOVER","MASTERCARD","VISA"]},clientSupported:{supportedBrowsers:{chrome:"100",edge:"100"},supportedOS:{ios:"16.0",android:"16.0",windows:"16.0"},additionalAPIsCheck:["canMakePayment"]}},{merchantCapabilities:[d.Supports3DS,d.SupportsEMV],displayName:"Microsoft",initiative:"Web",initiativeContext:"mystore.example.com",merchantIdentifier:"merchant.com.microsoft.paymicrosoft.prod",enableBillingAddress:!0,applePayVersion:"3",paymentMethodFamily:"ewallet",paymentMethodType:"applepay",piid:"be4de87d-7e38-4b2d-8836-9237eb32848e",integrationType:"DIRECT",allowedAuthMethodsPerCountry:{us:["AMEX","DISCOVER","MASTERCARD","VISA"],ca:["AMEX","DISCOVER","MASTERCARD","VISA"]},clientSupported:{supportedBrowsers:{safari:"16.1"},supportedOS:{ios:"15.0"},additionalAPIsCheck:["canMakePaymentWithActiveCard"],paymentProxyRequired:{safari:"16.5"}}}]};!function(e){e.error="error",e.click="click",e.apiCalled="apiCalled",e.fetchCallCompleted="fetchCallCompleted",e.paymentAgentInitialized="paymentAgentInitialized",e.paymentAgentSetupComplete="paymentAgentSetupComplete",e.paymentAgentDeviceCheck="paymentAgentDeviceCheck",e.fallBackToDefaultPaymentConfiguration="fallBackToDefaultPaymentConfiguration",e.paymentSheetClosed="paymentSheetClosed",e.paymentSheetTokenReceived="paymentSheetTokenReceived",e.paymentAgentConfigLoadModeSetLocal="paymentAgentConfigLoadModeSetLocal",e.setupIframeCompleted="setupIframeCompleted",e.checkIFrameForEligibility="checkIFrameForEligibility",e.getDeviceSupportStatus="getDeviceSupportStatus",e.deviceCheckPaymentRequestExistingCheck="deviceCheck",e.deviceCheckCanMakePaymentCheckCompleted="deviceCheckCanMakePaymentCheckCompleted",e.deviceCheckShouldCheckIframeFallBackCompleted="deviceCheckShouldCheckIframeFallBackCompleted"}(h||(h={}));var C,I,T={getType:function(e){return Object.prototype.toString.call(e)},isObject:function(e){return e&&"[object Object]"===T.getType(e)},isFunction:function(e){return e&&"[object Function]"===T.getType(e)}},P="gPayFrame",E={loadPaymentData:"gpay.loadPaymentData",channelSetup:"gpay.channelSetup",readyToPay:"readyToPay",isReadyToPay:"gpay.isReadyToPay",tokenReference:"tokenReference",error:"error",renderExpressCheckoutButtons:"expressCheckout.renderButtons"},b={recurringTransaction:"RecurringTransaction"},S={chinaUnionPay:"chinaUnionPay"},A=8e3,D=8e3,w=8e3,N=function(e,t,n,r,i,c){return void 0===i&&(i={method:"GET"}),void 0===c&&(c=3),o(void 0,void 0,void 0,(function(){var n,o,s,l;return u(this,(function(f){switch(f.label){case 0:n=c,o=Date.now(),s=function(){var s,l,f,d,p,g;return u(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),s=new AbortController,l=setTimeout((function(){return s.abort()}),A),[4,fetch(r,a(a({},i),{signal:s.signal}))];case 1:if(f=u.sent(),clearTimeout(l),d={isSuccess:f.ok,timeTaken:Date.now()-o,statusCode:f.status,headers:f.headers},p=k(r,c,n,i,f,e),!f.ok)throw 1===n&&t.logEvent(h.error,{httpRequestTelemetryData:_(p,d)}),new Error("Failed to fetch: ".concat(f.status," ").concat(f.statusText));return t.logEvent(h.fetchCallCompleted,{httpRequestTelemetryData:_(p,d)}),[2,{value:f.json()}];case 2:if(g=u.sent(),!(--n>0))throw t.logEvent(h.error,{message:"fetch failure",debugMessage:JSON.stringify(g),error:g,operationName:e,url:r}),g;return console.warn("Fetch failed, retrying..."),[3,3];case 3:return[2]}}))},f.label=1;case 1:return n>0?[5,s()]:[3,3];case 2:return"object"===typeof(l=f.sent())?[2,l.value]:[3,1];case 3:return[2]}}))}))},k=function(e,t,n,r,i,a){return{url:e,type:r.method,retryCount:t-n,headers:i.headers,payload:"",dataType:"",contentType:"application/json",currentOperationName:"PaymentAgent Fetch",operationName:a,operationVersion:"1.0.0",serviceName:"paymentAgent",includeCredentials:!1,retryOnServerError:!1,serverErrorCount:0,getRequest:function(){throw new Error("Function not implemented.")}}},_=function(e,t){var n=e.url,r=e.type,i=e.contentType,a=e.currentOperationName,o=e.operationName,u=e.operationVersion,c=e.serviceName,s=e.retryCount,l=t.isSuccess,f=t.statusCode,d=t.headers,p=t.failureResponseText,g=t.timeTaken,v=t.serviceErrorCode,m=t.statusText,h=f?f.toString():"0",y=l||"200"===h?"":p||m,C=0;try{C=parseInt(t.headers.get("Content-Length"),10)}catch(I){}return{targetUri:n,requestMethod:r,responseContentType:i,operationName:a,dependencyOperationName:o,dependencyOperationVersion:u,serviceName:c,retryCount:s,succeeded:l,protocolStatusCode:h,failureResponse:y,contentLength:isNaN(C)?0:C,latencyMs:g,serviceErrorCode:v,headers:d}},M={baseUrl:{prod:"https://paymentinstruments.mp.microsoft.com",ppe:"https://paymentinstruments-int.mp.microsoft.com",feature:"https://st-pifd-prod-wcus.azurewebsites.net",int:"https://pifd.cp.microsoft-int.com"},tokenizationUrl:{prod:"https://tokenization.cp.microsoft.com/tokens/{type}/getToken",ppe:"https://tokenization.cp.microsoft.com/tokens/{type}/getToken",feature:"https://tokenization.cp.microsoft.com/tokens/{type}/getToken",int:"https://tokenization.cp.microsoft-int.com/tokens/{type}/getToken"},staticResources:{prod:"https://pmservices.cp.microsoft.com",feature:"https://pmservices.cp.microsoft.com",ppe:"https://pmservices.cp.microsoft-int.com",int:"https://pmservices.cp.microsoft-int.com"},endpoints:{loadConfig:"v7.0/getWalletConfig",setupProviderSession:"v7.0/setupWalletProviderSession"}},x=function(){return(null===navigator||void 0===navigator?void 0:navigator.userAgent)?navigator.userAgent:""},O=function(){var e=x();return L(e)},R=function(e){return((null===e||void 0===e?void 0:e.includes("Chrome/"))||(null===e||void 0===e?void 0:e.includes("CriOS/")))&&!(null===e||void 0===e?void 0:e.includes("Version/"))&&!O()},L=function(e){return(null===e||void 0===e?void 0:e.includes("Edg/"))||(null===e||void 0===e?void 0:e.includes("EdgiOS/"))||(null===e||void 0===e?void 0:e.includes("EdgA/"))},U=function(e){return(null===e||void 0===e?void 0:e.includes("Safari/"))&&(null===e||void 0===e?void 0:e.includes("Version/"))&&!O()},V=function(e,t){var n=this;this.getUserAgent=function(){return(null===navigator||void 0===navigator?void 0:navigator.userAgent)?navigator.userAgent:""},this.getDeviceSupportStatus=function(e,t,r){var i=!0,a=n.getPiHandlerConfig(e,t,r);n.containsValidDeviceSupportedConfig(a)&&(i=a.deviceSupportStatus.result);var o,u=(o=x(),L(o)?v.edge:R(o)?v.chrome:U(o)?v.safari:"NA");return n.telemetryLogger.logEvent(h.getDeviceSupportStatus,{paymentMethodFamily:t,paymentMethodType:r,result:i,maxTouchPoints:(null===navigator||void 0===navigator?void 0:navigator.maxTouchPoints)?navigator.maxTouchPoints:0,browser:u},n.telemetryOptions),i},this.getPiHandlerConfig=function(e,t,n){var r;return null===(r=null===e||void 0===e?void 0:e.PaymentInstrumentHandlers)||void 0===r?void 0:r.find((function(e){return e.paymentMethodFamily===t&&e.paymentMethodType===n}))},this.containsValidDeviceSupportedConfig=function(e){var t=null===e||void 0===e?void 0:e.deviceSupportStatus;return t&&(!0===t.result||!1===t.result)},this.telemetryLogger=e,this.telemetryOptions=t},F=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.iframeLoaded=!1,r.fallbackToGPayIframe=!1,r.useFallback=!1,r.setupPaymentIframe=function(e){return new Promise((function(t,n){if(!document.getElementById(P)){var i=setTimeout((function(){r.telemetryLogger.logEvent(h.error,{message:"Payment Iframe failed to load"}),document.body.removeChild(o),t(!1)}),D),a=new MessageChannel,o=document.createElement("iframe"),u="prod"===e?"prod":"int";o.id=P,o.style.display="none",o.src="".concat(M.staticResources[e],"/staticresourceservice/resources/gpay/").concat(u,"/googlepay.html"),o.allow="payment https://pmservices.cp.microsoft-int.com https://pmservices.cp.microsoft.com",o.onload=function(){var n;r.iframeLoaded||(clearTimeout(i),r.iframeLoaded=!0,null===(n=o.contentWindow)||void 0===n||n.postMessage(E.channelSetup,M.staticResources[e],[a.port2]),t(!0))},document.body.appendChild(o),r.iframeMessageChannel=a}}))},r.collectPaymentToken=function(e,t,n,i){return o(r,void 0,void 0,(function(){return u(this,(function(r){switch(r.label){case 0:return e.enableGPayIframeForAllBrowsers||this.fallbackToGPayIframe?(this.telemetryLogger.logEvent(h.deviceCheckPaymentRequestExistingCheck,{collectTokenWithGPay:!0}),[4,this.collectTokenWithGPay(e,t,n,i)]):[3,2];case 1:case 3:return[2,r.sent()];case 2:return this.telemetryLogger.logEvent(h.deviceCheckPaymentRequestExistingCheck,{collectTokenWithPaymentRequest:!0}),[4,this.collectTokenWithPaymentRequest(e,t,n,i)]}}))}))},r.collectTokenWithGPay=function(e,t,n,i){return o(r,void 0,void 0,(function(){var r=this;return u(this,(function(a){return[2,new Promise((function(a,o){var u,c,s=document.getElementById(P);s&&(r.iframeMessageChannel.port1.onmessage=function(e){e.data.messageType===E.tokenReference?a(e.data):e.data.messageType===E.error&&o(e.data.error)},null===(u=s.contentWindow)||void 0===u||u.postMessage("process_payment",{targetOrigin:M.staticResources[i],delegate:"payment"}),null===(c=s.contentWindow)||void 0===c||c.postMessage({messageType:"gpay.loadPaymentData",paymentSessionData:t,handlerConfig:e,env:i,useTestEnv:n},M.staticResources[i]))}))]}))}))},r.collectTokenWithPaymentRequest=function(e,t,n,i){return o(r,void 0,void 0,(function(){var r,i,a,o;return u(this,(function(u){return r=this.buildSupportedPaymentMethodData(e,n,t),i=this.buildPaymentDetails(t),a={},e.enableEmail&&(a.requestPayerEmail=!0,a.requestPayerName=!0),o=PaymentRequest,[2,new o(r,i,a).show().then((function(e){e.complete("success");var t=e.toJSON();return t.details.email=e.payerEmail,Promise.resolve({paymentData:t.details})})).catch((function(e){return Promise.reject(e)}))]}))}))},r.getPANConfigurationValues=function(e){return["PAN_ONLY"]},r.compileGPayParameters=function(e,t){var n,i,a=e.allowedAuthMethodsPerCountry,o=e.assuranceDetailsRequired,u=e.enableBillingAddress,c=a[(null===(i=(n=t.country).toLowerCase)||void 0===i?void 0:i.call(n))||t.country],s=!(t.hasPreOrder||t.challengeScenario===b.recurringTransaction),l={allowedAuthMethods:r.getPANConfigurationValues(t),allowedCardNetworks:c,assuranceDetailsRequired:o,allowPrepaidCards:s};return u&&(l.billingAddressRequired=!0,l.billingAddressParameters={format:"FULL"}),l},r.buildSupportedPaymentMethodData=function(e,t,n){var i,a,o=e.protocolVersion,u=e.publicKey,c=e.integrationType,s=e.merchantName,l=e.merchantId,f=e.apiMajorVersion,d=e.apiMinorVersion,p=n.amount,g=n.country,v=n.currency,m=r.compileGPayParameters(e,n);return[{supportedMethods:"https://google.com/pay",data:{environment:t?"TEST":"PRODUCTION",apiVersion:Number(f),apiVersionMinor:Number(d),merchantInfo:{merchantName:s,merchantId:l||"BCR2DN4TZ244PH2A"},allowedPaymentMethods:[{type:"CARD",parameters:m,tokenizationSpecification:{type:(null===(i=null===c||void 0===c?void 0:c.toUpperCase)||void 0===i?void 0:i.call(c))||"DIRECT",parameters:{protocolVersion:o,publicKey:u}}}],transactionInfo:{currencyCode:v,countryCode:g,totalPriceStatus:"FINAL",totalPrice:(null===(a=p.toString)||void 0===a?void 0:a.call(p))||p,checkoutOption:"COMPLETE_IMMEDIATE_PURCHASE"}}}]},r.buildPaymentDetails=function(e){var t,n;return{total:{amount:{currency:e.currency,value:null===(n=null===(t=e.amount)||void 0===t?void 0:t.toString)||void 0===n?void 0:n.call(t)},label:"Pay Microsoft"}}},r.getActionMap=function(){return{collectPaymentToken:r.collectPaymentToken}},r.getDeviceCheckPaymentMethodData=function(){return[{supportedMethods:"https://google.com/pay",data:{environment:"TEST",apiVersion:2,apiVersionMinor:0,merchantInfo:{merchantName:"Microsoft"},allowedPaymentMethods:[{type:"CARD",parameters:{allowedAuthMethods:["PAN_ONLY"],allowedCardNetworks:["AMEX","DISCOVER","MASTERCARD","VISA"]}}]}}]},r.getDeviceCheckTransactionDetail=function(){return{id:"deviceCheck",total:{label:"total",amount:{currency:"USD",value:"1"}}}},r.deviceCheck=function(e,t){return new Promise((function(t,n){var i=r.getDeviceSupportStatus(e,s.EWallet,l.GooglePay);if(i){var a=l.GooglePay,o=r.getPiHandlerConfig(e,s.EWallet,l.GooglePay);if(r.containsValidIFrameSupportedConfig(o))r.deviceCheckWithIframeFallbackConfig(t,o.iframeFallbackSupported);else if(function(){var e=x();return U(e)}())r.checkIFrameForEligibility(t,i);else if(window.PaymentRequest){r.telemetryLogger.logEvent(h.deviceCheckPaymentRequestExistingCheck,{pmType:a,paymentRequestExisting:!0});var u=r.getDeviceCheckPaymentMethodData(),c=r.getDeviceCheckTransactionDetail();new window.PaymentRequest(u,c).canMakePayment().then((function(e){r.telemetryLogger.logEvent(h.deviceCheckCanMakePaymentCheckCompleted,{pmType:a,paymentRequestAllowed:e});var n=r.shouldCheckIFrameForEligibility(e);r.telemetryLogger.logEvent(h.deviceCheckShouldCheckIframeFallBackCompleted,{pmType:a,shouldCheckIFrameForEligibility:n}),n?r.checkIFrameForEligibility(t,i):t(i=i&&e)})).catch((function(e){var n=JSON.stringify(e);r.telemetryLogger.logEvent(h.error,{message:"Device check failed",error:n}),t(!1)}))}else r.telemetryLogger.logEvent(h.deviceCheckPaymentRequestExistingCheck,{pmType:a,paymentRequestExisting:!1}),t(!1)}else t(i)}))},r.deviceCheckWithIframeFallbackConfig=function(e,t){var n=!!window.PaymentRequest,i=l.GooglePay,a=t&&r.iframeLoaded;if(n){var o=r.getDeviceCheckPaymentMethodData(),u=r.getDeviceCheckTransactionDetail();new window.PaymentRequest(o,u).canMakePayment().then((function(t){r.telemetryLogger.logEvent(h.deviceCheckPaymentRequestExistingCheck,{pmType:i,paymentRequestAllowed:t});var n=!t&&a;n?r.checkIFrameForEligibility(e,!0):e(t),r.telemetryLogger.logEvent(h.deviceCheckPaymentRequestExistingCheck,{pmType:i,shouldCheckIFrameForEligibility:n})})).catch((function(t){var n=JSON.stringify(t);r.telemetryLogger.logEvent(h.error,{message:"Device check failed",error:n}),e(!1)}))}else t?(r.checkIFrameForEligibility(e,!0),r.telemetryLogger.logEvent(h.deviceCheckPaymentRequestExistingCheck,{pmType:i,shouldCheckIFrameForEligibility:a})):e(!1);r.telemetryLogger.logEvent(h.deviceCheckPaymentRequestExistingCheck,{pmType:i,paymentRequestExisting:n})},r.shouldCheckIFrameForEligibility=function(e){var t=O()||function(){var e=x();return R(e)}();return!e&&r.iframeLoaded&&t},r.checkIFrameForEligibility=function(e,t){var n=setTimeout((function(){r.telemetryLogger.logEvent(h.error,{message:"Payment Iframe eligibility check timed out"}),e(!1)}),w);r.iframeLoaded?(r.useFallback=!0,r.iframeMessageChannel.port1.onmessage=function(i){var a;if((null===(a=i.data)||void 0===a?void 0:a.messageType)===E.readyToPay){clearTimeout(n);var o=!1;i.data.result?(o=i.data.result&&t,e(o),r.fallbackToGPayIframe=!0):e(o),r.telemetryLogger.logEvent(h.checkIFrameForEligibility,{fallbackToGPayIframe:r.fallbackToGPayIframe,iframeEligible:o})}},r.iframeMessageChannel.port1.postMessage(E.isReadyToPay)):e(!1)},r.useFallbackCheck=function(){return r.useFallback},r.containsValidIFrameSupportedConfig=function(e){var t=null===e||void 0===e?void 0:e.iframeFallbackSupported;return!0===t||!1===t},r}return i(t,e),t}(V),H=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.collectPaymentToken=function(e,t,n,i){return o(r,void 0,void 0,(function(){var n=this;return u(this,(function(r){return window.ApplePaySession?[2,new Promise((function(r,a){n.createSession(e,t,r,a,i).begin()}))]:[2,Promise.reject()]}))}))},r.createSession=function(e,t,n,i,a){var c,s,l=window.ApplePaySession,f=(null===(c=null===e||void 0===e?void 0:e.clientSupported)||void 0===c?void 0:c.applePayVersion)||"1";try{(s=new l(Number(f),r.createPaymentRequest(e,t))).onvalidatemerchant=function(n){return o(r,void 0,void 0,(function(){var n;return u(this,(function(r){switch(r.label){case 0:return[4,this.getServerSession(e,a,t)];case 1:return n=r.sent(),s.completeMerchantValidation(n),[2]}}))}))},s.onpaymentauthorized=function(e){var t=e.payment;n({paymentData:t}),s.completePayment(s.STATUS_SUCCESS)},s.oncancel=function(e){i(e)}}catch(d){i(d)}return s},r.getServerSession=function(e,t,n){return o(r,void 0,void 0,(function(){var r,i,a,o;return u(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,N(g.PostProviderSession,this.telemetryLogger,this.telemetryOptions,"".concat(M.baseUrl[t],"/").concat(M.endpoints.setupProviderSession),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({piFamily:"ewallet",piType:"applepay",walletSessionData:{merchantIdentifier:e.merchantIdentifier,displayName:"Microsoft",initiative:"web",initiativeContext:null!==(o=n.initiativeContext)&&void 0!==o?o:this.formatOrigin(window.origin)}})})];case 1:return r=u.sent(),[2,(i=JSON.parse(r)).sessionData||i];case 2:throw a=u.sent(),new Error(a);case 3:return[2]}}))}))},r.formatOrigin=function(e){var t=null===e||void 0===e?void 0:e.split("://");return t[1]||t[0]},r.addRecurringPaymentDetails=function(e,t){var n=e,r=t.recurringPaymentDetails,i={label:"Microsoft",amount:0,paymentTiming:"recurring",recurringPaymentIntervalUnit:m.month,recurringPaymentIntervalCount:1};return r.label&&(i.label=r.label),r.amount&&(i.amount=r.amount),r.frequencyUnit&&(i.recurringPaymentIntervalUnit=r.frequencyUnit),r.frequency&&(i.recurringPaymentIntervalCount=r.frequency),r.startTime&&(i.recurringPaymentStartDate=r.startTime),n.recurringPaymentRequest={paymentDescription:"Microsoft",regularBilling:i,managementURL:"https://account.microsoft.com"},n},r.createMultiTokenPaymentRequest=function(e,t,n){var i=e,a=t.authorizationGroups;return i.multiTokenContexts=null===a||void 0===a?void 0:a.map((function(e){return{merchantIdentifier:n.merchantIdentifier,externalIdentifier:n.merchantIdentifier,merchantName:r.createGroupMessage(e),amount:e.totalAmount}})),i},r.createBasePaymentRequest=function(e,t){var n=e.merchantCapabilities,r=e.allowedAuthMethodsPerCountry,i=e.enableBillingAddress,a=e.enableEmail,o=t.amount,u=t.country,c=t.currency,s=r[null===u||void 0===u?void 0:u.toLowerCase()]||[],l=[d.Supports3DS];if(0===s.length)throw new Error("No supported payment methods");(null===s||void 0===s?void 0:s.includes(S.chinaUnionPay))&&(l=n),(t.hasPreOrder||t.challengeScenario===b.recurringTransaction)&&(l.push(d.SupportsCredit),l.push(d.SupportsDebit));var f={countryCode:u,currencyCode:c,merchantCapabilities:l,supportedNetworks:s,total:{label:"Microsoft",type:"final",amount:o}};return a&&(f.requiredShippingContactFields=["email"]),i&&(f.requiredBillingContactFields=["postalAddress"]),f},r.createPaymentRequest=function(e,t){var n=r.createBasePaymentRequest(e,t);return t.authorizationGroups&&t.authorizationGroups.length>1?n=r.createMultiTokenPaymentRequest(n,t,e):t.challengeScenario===b.recurringTransaction&&(n=r.addRecurringPaymentDetails(n,t)),n},r.deviceCheck=function(e,t){if(window.ApplePaySession){var n=window.ApplePaySession.canMakePayments(),i=l.ApplePay;return r.telemetryLogger.logEvent(h.deviceCheckCanMakePaymentCheckCompleted,{pmType:i,canMakePayment:n}),n&&(n=r.getDeviceSupportStatus(e,s.EWallet,l.ApplePay)),Promise.resolve(n)}return Promise.resolve(!1)},r}return i(t,e),t.prototype.createGroupMessage=function(e){var t=e.itemTitles;if(t&&t.length>1){var n=t[0],r=n&&n.length>45?"".concat(n.substring(0,45),"..."):n;return"".concat(r||"Microsoft"," (+").concat(t.length-1,")")}return t&&1===t.length&&t[0]||"Microsoft"},t}(V);!function(e){e.Config="config",e.Token="token",e.HandleChallenge="handleChallenge",e.Error="Error"}(C||(C={})),function(e){e.Local="local",e.Remote="remote"}(I||(I={}));var B=function(){function e(e,t,n,r){var i=this;this.initializing=!1,this.initialized=!1,this.setupComplete=!1,this.configLoadMode=I.Local,this.isCrossOrigin=!1,this.handlerFactory=function(e){switch(e){case l.ApplePay:return i.applePayHandler;case l.GooglePay:return i.googlePayHandler;default:return null}},this.buildLoadConfigQueryParams=function(e,t){var n={isCrossOrigin:t};return new URLSearchParams({partner:e,client:JSON.stringify(n)}).toString()},this.paymentAgentDeviceCheckDetail=function(e,t,n){return{paymentMethodFamily:s.EWallet,type:e,result:t,usedFallback:n}},this.paymentDeviceEligibilityCheck=function(e,t){return"ewallet"===e&&"applepay"===t?i.getApplePayEligible():"ewallet"!==e||"googlepay"!==t||i.getGooglePayEligible()},this.tokenizeData=function(e,t,n,r){return o(i,void 0,void 0,(function(){var r,i;return u(this,(function(a){switch(a.label){case 0:r={data:JSON.stringify(e)},t===l.GooglePay&&(r.publicKeyVersion=n),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,N(g.PostToken,this.telemetryLogger,this.telemetryOptions,"".concat(M.tokenizationUrl[this.environment].replace("{type}",this.mapType(t))),{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({data:JSON.stringify(r)})})];case 2:return[2,a.sent()];case 3:throw i=a.sent(),new Error(i);case 4:return[2]}}))}))},this.sanitizeTokenData=function(e,t,n){var r,i,a,o=e;return n.paymentMethodType===l.GooglePay&&(null===(i=null===(r=null===o||void 0===o?void 0:o.paymentData)||void 0===r?void 0:r.paymentMethodData)||void 0===i?void 0:i.tokenizationData)?o.paymentData.paymentMethodData.tokenizationData.token=t.data:n.paymentMethodType===l.ApplePay&&(null===(a=null===o||void 0===o?void 0:o.paymentData)||void 0===a?void 0:a.token)&&(o.paymentData.token.token=t.data,delete o.paymentData.token.paymentData),o},this.mapType=function(e){switch(e){case"applepay":return"apay";case"googlepay":return"gpay";default:return e}},this.getHandlerConfig=function(e,t){return e?e.PaymentInstrumentHandlers.find((function(e){return e.piid===t.piid||e.paymentMethodFamily===t.paymentMethodFamily&&e.paymentMethodType===t.paymentMethodType})):null},this.handleChallenge=function(e,t){return o(i,void 0,void 0,(function(){var n=this;return u(this,(function(r){switch(r.label){case 0:return[4,new Promise((function(r,i){var a=n.getConfiguration();if(a){var c=n.getHandlerConfig(a,e),s=n.handlerFactory(null===c||void 0===c?void 0:c.paymentMethodType);if(s&&c){var l="".concat(c.paymentMethodFamily,".").concat(c.paymentMethodType,".default"),f=a.PIDLConfig.HandlePaymentChallenge.actions[l],d={paymentMethodFamily:null===c||void 0===c?void 0:c.paymentMethodFamily,paymentMethodType:null===c||void 0===c?void 0:c.paymentMethodType};if(f.length&&"PaymentInstrumentHandler.CollectPaymentToken"===f[0]){var p=null===t||void 0===t?void 0:t.includes("px-use-google-apple-pay-test-env");s.collectPaymentToken(c,e,p,n.environment).then((function(e){return o(n,void 0,void 0,(function(){var t,n;return u(this,(function(i){switch(i.label){case 0:return this.telemetryLogger.logEvent(h.paymentSheetTokenReceived,{paymentSheetLogDetails:d}),e.tokenReference?(t=e.tokenReference,[3,3]):[3,1];case 1:return[4,this.tokenizeData(e.paymentData,c.paymentMethodType,c.publicKeyVersion,this.telemetryLogger)];case 2:t=i.sent(),i.label=3;case 3:return e=this.sanitizeTokenData(e,t,c),n={tokenReference:t.data,integrationType:c.integrationType,family:c.paymentMethodFamily,type:c.paymentMethodType,paymentData:JSON.stringify(e.paymentData)},this.telemetryLogger.logEvent(h.paymentSheetClosed,{paymentSheetLogDetails:d,success:!0}),r(n),[2]}}))}))})).catch((function(e){n.telemetryLogger.logEvent(h.paymentSheetClosed,{paymentSheetLogDetails:d,success:!1,error:JSON.stringify(e)}),i(e)}))}}else i("setup error")}else i("setup error")}))];case 1:return[2,r.sent()]}}))}))},this.isPaymentAgentSupportedPI=function(e){var t=e.piid.startsWith("cw_gpay")||e.piid.startsWith("cw_apay");return"cdc85313-9b57-4052-81fb-dea336132cbf"===e.piid||"be4de87d-7e38-4b2d-8836-9237eb32848e"===e.piid||t},this.clientSupported=function(e){var t=e,n=i.getApplePayEligible();return i.getGooglePayEligible()||(t=t.filter((function(e){return e!==f.GooglePay}))),n||(t=t.filter((function(e){return e!==f.ApplePay}))),t},this.getConfiguration=function(){return i.config},this.getProvisionResponseData=function(){return i.provisionResponseData},this.getPartner=function(){return i.partner},this.getPaymentAgentTelemetryLogger=function(){return i.telemetryLogger},this.isReadyToPay=function(){return i.configLoadMode===I.Remote?i.initialized:i.initialized&&i.setupComplete},this.isPaymentAgentInitialized=function(){return i.initialized},this.isPaymentAgentInitializing=function(){return i.initializing},this.getInitPromise=function(){return i.initPromise},this.getConfigLoadMode=function(){return i.configLoadMode};var a=new MessageChannel;this.hostPort=a.port1,this.messageChannel=a,this.applePayEligible=!1,this.googlePayEligible=!1,this.config=y,this.partner=e;var c=(null===r||void 0===r?void 0:r.toLowerCase())||"prod";this.environment=!c||"prod"!==c&&"ppe"!==c&&"int"!==c&&"feature"!==c?"prod":c,n&&(this.telemetryLogger=n),t&&(this.telemetryOptions=t)}return e.prototype.init=function(){var e;return o(this,void 0,void 0,(function(){var t=this;return u(this,(function(n){switch(n.label){case 0:return this.initializing||this.initialized?[3,3]:(this.initializing=!0,(null===(e=this.messageChannel)||void 0===e?void 0:e.port1)&&(this.messageChannel.port1.onmessage=function(e){return t.onHostMessage(e)}),this.initializePaymentHandlers(),[4,this.setupPayIframe()]);case 1:return n.sent(),[4,this.deviceCheck()];case 2:n.sent(),this.initialized=!0,this.initializing=!1,n.label=3;case 3:return[2,Promise.resolve()]}}))}))},e.prototype.initAsync=function(){var e;return o(this,void 0,void 0,(function(){var t,n,r,i=this;return u(this,(function(a){return this.initPromise=Promise.resolve(),this.configLoadMode=I.Remote,this.initializing||this.initialized||(this.initializing=!0,(null===(e=this.messageChannel)||void 0===e?void 0:e.port1)&&(this.messageChannel.port1.onmessage=function(e){return i.onHostMessage(e)}),this.initializePaymentHandlers(),this.isCrossOrigin=function(){var e=!1;try{window.parent.location.href}catch(t){e=!0}return e}(),t=this.loadConfig(),n=this.setupPayIframe(),r=Promise.all([t,n]).then((function(e){return i.deviceCheckAsync()})).then((function(){i.initialized=!0,i.initializing=!1})).catch((function(e){i.telemetryLogger.logEvent(h.error,{message:"Payment Agent failed to initialize.",error:JSON.stringify(e)}),i.initializing=!1})),this.initPromise=r),[2,this.initPromise]}))}))},e.prototype.deviceCheckAsync=function(){var e=this,t=this.applePayHandler.deviceCheck(this.config,this.partner),n=this.googlePayHandler.deviceCheck(this.config,this.partner);return Promise.all([t,n]).then((function(t){e.applePayEligible=t[0],e.googlePayEligible=t[1],e.telemetryLogger.logEvent(h.paymentAgentDeviceCheck,a({},e.paymentAgentDeviceCheckDetail(l.ApplePay,e.applePayEligible))),e.telemetryLogger.logEvent(h.paymentAgentDeviceCheck,a({},e.paymentAgentDeviceCheckDetail(l.GooglePay,e.googlePayEligible,e.googlePayHandler.useFallbackCheck())))}))},e.prototype.initializePaymentHandlers=function(){this.googlePayHandler=new F(this.telemetryLogger,this.telemetryOptions),this.applePayHandler=new H(this.telemetryLogger,this.telemetryOptions)},e.prototype.setupPayIframe=function(){var e,t;return o(this,void 0,void 0,(function(){var n,r,i;return u(this,(function(a){switch(a.label){case 0:return n=Date.now(),[4,null===(t=(e=this.googlePayHandler).setupPaymentIframe)||void 0===t?void 0:t.call(e,this.environment)];case 1:return r=a.sent(),i=Date.now()-n,this.telemetryLogger.logEvent(h.setupIframeCompleted,{message:"setupPayIframe completed",timeTaken:i}),[2,r]}}))}))},e.prototype.setupTopDomain=function(e,n){var r,i;if(!this.setupComplete){var a=null===(r=null===document||void 0===document?void 0:document.getElementsByName(e))||void 0===r?void 0:r[0];this.setupContext=t.SetupContext.TopDomain,this.messageChannel&&this.hostPort&&a&&(null===(i=a.contentWindow)||void 0===i||i.postMessage("paymentAgent.setup",n,[this.messageChannel.port2]),this.setupComplete=!0)}return Promise.resolve()},e.prototype.setupIframeDomain=function(e){return o(this,void 0,void 0,(function(){var n=this;return u(this,(function(r){switch(r.label){case 0:return this.setupComplete?[3,2]:(this.setupContext=t.SetupContext.IframeDomain,this.iframePort=e.ports[0],this.iframePort.onmessage=function(e){return n.onIFrameMessage(e)},[4,this.loadConfig()]);case 1:r.sent(),this.iframePort.postMessage({type:C.Config,data:this.config}),this.setupComplete=!0,r.label=2;case 2:return[2,Promise.resolve()]}}))}))},e.prototype.setupSingleDomain=function(){return o(this,void 0,void 0,(function(){return u(this,(function(e){switch(e.label){case 0:return this.setupComplete?[3,2]:(this.setupContext=t.SetupContext.SingleDomain,[4,this.loadConfig()]);case 1:e.sent(),this.setupComplete=!0,e.label=2;case 2:return[2,Promise.resolve()]}}))}))},e.prototype.onHostMessage=function(e){var t=e.data;t&&this.parsePostMessage(t)},e.prototype.onIFrameMessage=function(e){var t=e.data;t&&this.parsePostMessage(t)},e.prototype.parsePostMessage=function(e){switch(e.type){case C.Config:this.config=e.data;break;case C.Token:var t=e.data;this.provisionResponseData=t;break;default:this.telemetryLogger.logEvent(h.error,{message:"undefined message type"})}},e.prototype.loadConfig=function(){return o(this,void 0,void 0,(function(){var e,t,n;return u(this,(function(r){switch(r.label){case 0:e=this.buildLoadConfigQueryParams(this.partner,this.isCrossOrigin),r.label=1;case 1:return r.trys.push([1,3,,4]),t=this,[4,N(g.GetConfig,this.telemetryLogger,this.telemetryOptions,"".concat(M.baseUrl[this.environment],"/").concat(M.endpoints.loadConfig,"?").concat(e))];case 2:return t.config=r.sent(),[3,4];case 3:return n=r.sent(),this.config=y,this.telemetryLogger.logEvent(h.fallBackToDefaultPaymentConfiguration,{message:"Failed to fetch payment config from server",debugMessage:JSON.stringify(n),error:n}),[3,4];case 4:return[2]}}))}))},e.prototype.deviceCheck=function(){return o(this,void 0,void 0,(function(){var e,t;return u(this,(function(n){switch(n.label){case 0:return e=this,[4,this.applePayHandler.deviceCheck(this.config)];case 1:return e.applePayEligible=n.sent(),t=this,[4,this.googlePayHandler.deviceCheck(this.config)];case 2:return t.googlePayEligible=n.sent(),this.telemetryLogger.logEvent(h.paymentAgentDeviceCheck,a({},this.paymentAgentDeviceCheckDetail(l.ApplePay,this.applePayEligible))),this.telemetryLogger.logEvent(h.paymentAgentDeviceCheck,a({},this.paymentAgentDeviceCheckDetail(l.GooglePay,this.googlePayEligible,this.googlePayHandler.useFallbackCheck()))),[2]}}))}))},e.prototype.getApplePayEligible=function(){return this.applePayEligible},e.prototype.getGooglePayEligible=function(){return this.googlePayEligible},e.prototype.getMessageChannel=function(){return this.messageChannel},e.prototype.getIframePort=function(){return this.iframePort},e.prototype.getHostPort=function(){return this.hostPort},e}(),z=function(){this.getApplicationInsights=function(){try{var e=n(13200);if(null===e||void 0===e?void 0:e.ApplicationInsights)return new e.ApplicationInsights}catch(t){return{initialize:function(){},trackEvent:function(){}}}},this.getCorrelationVectorPlugin=function(e){try{var t=n(99187);if(null===t||void 0===t?void 0:t.CorrelationVectorPlugin)return new t.CorrelationVectorPlugin(e)}catch(r){return{getCv:function(){return{count:0,increment:function(){return this.count=this.count+1,this.getValue()},getValue:function(){return"cv__"+this.count},isInit:function(){return!0}}}}}}},G=function(){var e=this;this.applicationInsightsInstance=null,this.cvPlugin=null,this.cvInstance=null,this.cvInitialValue=null,this.initOneDsObjects=function(){if(!e.applicationInsightsInstance)try{e.cvPlugin||e.initCVPlugin(),e.oneDSService&&(e.applicationInsightsInstance=e.oneDSService.getApplicationInsights());var t={instrumentationKey:"4127950a47f84a01a75e9a7d49d79f14-b56cc96f-0faa-4455-912a-6b8df93eeac5-6769",extensions:[e.cvPlugin],extensionConfig:[]};e.applicationInsightsInstance&&T.isFunction(e.applicationInsightsInstance.initialize)&&e.applicationInsightsInstance.initialize(t,[])}catch(n){console.error("1DS Error : Error when attempting to initialize 1DS.",n)}},this.initCVPlugin=function(){if(!e.cvPlugin){var t=void 0;e.oneDSService&&(e.cvPlugin=e.oneDSService.getCorrelationVectorPlugin(e.cvInitialValue)),e.cvPlugin&&T.isFunction(e.cvPlugin.getCv)&&(t=e.cvPlugin.getCv()),t&&T.isFunction(t.isInit)&&t.isInit()?e.cvInstance=t:e.cvPlugin&&T.isFunction(e.cvPlugin.getCv)&&(e.cvInstance=e.cvPlugin&&e.cvPlugin.getCv())}},this.getCVInstance=function(){return e.cvInstance||e.initCVPlugin(),e.cvInstance},this.reset=function(){e.cvPlugin=null,e.cvInstance=null,e.applicationInsightsInstance=null},this.getApplicationInsights=function(){return e.applicationInsightsInstance||e.initOneDsObjects(),e.applicationInsightsInstance},this.writeEvent=function(t,n,r){try{var i=e.getApplicationInsights();i&&T.isFunction(i.trackEvent)?i.trackEvent({name:t,baseData:n},r):console.error("1DS Error : ApplicationInsights is not correctly initialized")}catch(a){console.error("1DS Error : Error when attempting to track event with 1DS.",a)}},this.getIncrementedCV=function(){try{var t=e.getCVInstance();return t&&T.isFunction(t.increment)&&t.increment()}catch(n){console.error("1DS Error : There was an issue with incrementing the correlation vector",n)}},this.getCVValue=function(){try{var t=e.getCVInstance();return t&&T.isFunction(t.getValue)&&t.getValue()}catch(n){console.error("1DS Error : There is an issue with correlation vector getValue function",n)}},this.initCV=function(t){try{t&&(e.cvInitialValue=t,e.reset())}catch(n){console.error("1DS Error : There is an issue with Initializing CV",n)}},this.testHookReset=function(){e.applicationInsightsInstance=null,e.cvInstance=null},this.oneDSService||(this.oneDSService=new z)},K=new G,q=function(){function e(){}return e.prototype.logEvent=function(e,t,n){"fetchCallCompleted"===t?this.logOSREvent(e,n&&n.httpRequestTelemetryData):this.logGenericEvent(e,t,n)},e.prototype.logGenericEvent=function(e,t,n){var r,i,a,o,u;try{if(T.isObject(e)){var c=((window||{}).location||{}).href||"",s={name:"Microsoft.Commerce.Payments.PidlSdk.PageEvent",partB:{pageName:(document||{}).title||"",uri:c,destUri:c,customSessionGuid:e.sessionId,impressionGuid:e.operationId,contentJsonVer:1,content:JSON.stringify({eventName:t})},partC:{sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(r=e.partnerContext)||void 0===r?void 0:r.partnerName,partnerContext:JSON.stringify(e.partnerContext),partnerContextMap:e.partnerContext,parentOperationId:(null===(i=e.partnerContext)||void 0===i?void 0:i.parentOperationId)||e.operationId,partnerFlowId:null===(a=e.partnerContext)||void 0===a?void 0:a.flowId,partnerSessionId:null===(o=e.partnerContext)||void 0===o?void 0:o.sessionId,partnerScenarioId:null===(u=e.partnerContext)||void 0===u?void 0:u.scenarioId,operationId:e.operationId,operationType:e.operationType,eventName:t,eventParameters:JSON.stringify(n),eventParametersMap:n,baseType:"Ms.Content.PageAction"}};T.isObject(e.telemetryResource)&&(s.partC.resourceType=e.telemetryResource.resourceType,s.partC.resourceParameters=JSON.stringify(e.telemetryResource.parameters),s.partC.resourceParametersMap=e.telemetryResource.parameters),K.writeEvent(s.name,s.partB,s.partC)}}catch(l){console.error("TelemetryError",l)}},e.prototype.logOSREvent=function(e,t){var n,r,i,a,o;try{if(T.isObject(e)){var u={partner:((e.telemetryResource||{}).parameters||{}).partner,telemetryContext:e,responseHeaders:t.headers},c={name:"Ms.Webi.OutgoingRequest",partB:{operationName:t.operationName,targetUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.succeeded||!t.serviceErrorCode||isNaN(t.serviceErrorCode)?-1:t.serviceErrorCode,succeeded:t.succeeded,requestMethod:t.requestMethod,responseContentType:t.responseContentType,protocolStatusCode:t.protocolStatusCode,dependencyOperationName:t.dependencyOperationName,dependencyOperationVersion:t.dependencyOperationVersion&&t.dependencyOperationVersion.toString(),dependencyName:t.serviceName,dependencyType:"webservice",responseSizeBytes:t.contentLength},partC:{customSessionGuid:e.sessionId,impressionGuid:e.operationId,message:t.failureResponse,retryCount:t.retryCount,customData:JSON.stringify(u),sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(n=e.partnerContext)||void 0===n?void 0:n.partnerName,partnerContext:JSON.stringify(e.partnerContext),operationId:e.operationId,parentOperationId:(null===(r=e.partnerContext)||void 0===r?void 0:r.parentOperationId)||e.operationId,partnerFlowId:null===(i=e.partnerContext)||void 0===i?void 0:i.flowId,partnerSessionId:null===(a=e.partnerContext)||void 0===a?void 0:a.sessionId,partnerScenarioId:null===(o=e.partnerContext)||void 0===o?void 0:o.scenarioId,partnerContextMap:e.partnerContext,operationType:e.operationType,baseType:"Ms.Qos.OutgoingServiceRequest"}};K.writeEvent(c.name,c.partB,c.partC)}}catch(s){console.error("TelemetryError",s)}},e}(),W=function(){function e(e,t,n){this.partner=e,this.sdkVersion=t,this.telemetryInjectionService||(this.telemetryInjectionService=new q),n&&K.initCV(n)}return e.prototype.logEvent=function(e,t,n){var r,i=n||{};void 0===(null===i||void 0===i?void 0:i.sdkVersion)&&(i.sdkVersion=this.sdkVersion),void 0===(null===(r=null===i||void 0===i?void 0:i.partnerContext)||void 0===r?void 0:r.partnerName)&&(i.partnerContext?i.partnerContext.partnerName=this.partner:i.partnerContext={partnerName:this.partner}),this.telemetryInjectionService.logEvent(i,e,t)},e.prototype.getCorrelationId=function(){return K.getCVValue()},e.prototype.getHttpRequestCorrelationHeader=function(){var e=K.getIncrementedCV();if(e)return{name:"ms-cv",value:e}},e}(),J="2.9.0",j=J,X={init:function(e,t,n,r){var i,a=null===t||void 0===t?void 0:t.contextData,o=null===(i=null===t||void 0===t?void 0:t.contextData)||void 0===i?void 0:i.cvInitValue,u=n;return u||(u=new W(e,j,o)),new Promise((function(n,i){var o,c,s,l;u.logEvent(h.apiCalled,{message:"PaymentAgent.init"},a);var f=null===window||void 0===window?void 0:window.paymentAgent;!window||f||(null===(o=null===f||void 0===f?void 0:f.isPaymentAgentInitializing)||void 0===o?void 0:o.call(f))||(null===(c=null===f||void 0===f?void 0:f.isPaymentAgentInitialized)||void 0===c?void 0:c.call(f))?(null===(l=null===(s=window.paymentAgent)||void 0===s?void 0:s.isPaymentAgentInitialized)||void 0===l?void 0:l.call(s))?(u.logEvent(h.paymentAgentInitialized,{message:"Payment Agent object already exists "},a),n(!0)):(u.logEvent(h.error,{message:"Payment Agent failed to initialize."},a),i(!1)):(window.paymentAgent=new B(e,t,u,r),window.paymentAgent.init().then((function(){u.logEvent(h.paymentAgentInitialized,{},a),n(!0)})).catch((function(e){var t=JSON.stringify(e);u.logEvent(h.error,{message:"Payment Agent failed to initialize.",error:t},a),i(!1)})))}))},setup:function(e,n,r,i,a){var o,u,c,s=null===i||void 0===i?void 0:i.contextData,l=null===window||void 0===window?void 0:window.paymentAgent,f=null===(o=null===i||void 0===i?void 0:i.contextData)||void 0===o?void 0:o.cvInitValue;if(l){null===(c=null===(u=l.getPaymentAgentTelemetryLogger)||void 0===u?void 0:u.call(l))||void 0===c||c.logEvent(h.apiCalled,{message:"PaymentAgent.setup",setupContext:n},s);var d=null;if(n===t.SetupContext.SingleDomain)d=l.setupSingleDomain();else if(n===t.SetupContext.TopDomain&&(null===r||void 0===r?void 0:r.iframeElementName)&&(null===r||void 0===r?void 0:r.iframeDomain))d=l.setupTopDomain(r.iframeElementName,r.iframeDomain);else{if(n!==t.SetupContext.IframeDomain||!(null===r||void 0===r?void 0:r.ports)){var p="Invalid properties passed to setup";return l.logEvent(h.error,{message:p},s),Promise.reject(p)}d=l.setupIframeDomain(r)}return d.then((function(){var e,t;return null===(t=null===(e=l.getPaymentAgentTelemetryLogger)||void 0===e?void 0:e.call(l))||void 0===t||t.logEvent(h.paymentAgentSetupComplete,{setupContext:n},s),!0})).catch((function(e){var t,n;return null===(n=null===(t=l.getPaymentAgentTelemetryLogger)||void 0===t?void 0:t.call(l))||void 0===n||n.logEvent(h.error,{message:e},s),!1}))}var g=new W(e,j,f);return(null!==a&&void 0!==a?a:g).logEvent(h.error,{message:"Payment Agent failed to setup."},s),Promise.reject("setup called before initialize")},isPaymentDeviceEligible:function(e,t,n,r,i){var a,o,u,c=null===r||void 0===r?void 0:r.contextData,s=null===window||void 0===window?void 0:window.paymentAgent,l=null===(a=null===r||void 0===r?void 0:r.contextData)||void 0===a?void 0:a.cvInitValue;if(s){var f=s.paymentDeviceEligibilityCheck(t,n);return null===(u=null===(o=s.getPaymentAgentTelemetryLogger)||void 0===o?void 0:o.call(s))||void 0===u||u.logEvent(h.apiCalled,{message:"PaymentAgent.isPaymentDeviceEligible",family:t,type:n,result:f},c),f}var d=new W(e,j,l);return(null!==i&&void 0!==i?i:d).logEvent(h.error,{message:"isPaymentDeviceEligible called before initialize",family:t,type:n},c),!1},initAsync:function(e,t,n,r){var i,a,o,u,c,s=Date.now(),l=null===t||void 0===t?void 0:t.contextData,f=null===(i=null===t||void 0===t?void 0:t.contextData)||void 0===i?void 0:i.cvInitValue,d=n;d||(d=new W(e,j,f)),d.logEvent(h.apiCalled,{message:"PaymentAgent.initAsync"},l);var p=Promise.resolve(!0),g=null===window||void 0===window?void 0:window.paymentAgent;if(!window||g||(null===(a=null===g||void 0===g?void 0:g.isPaymentAgentInitializing)||void 0===a?void 0:a.call(g))||(null===(o=null===g||void 0===g?void 0:g.isPaymentAgentInitialized)||void 0===o?void 0:o.call(g)))if(null===(c=null===(u=window.paymentAgent)||void 0===u?void 0:u.isPaymentAgentInitialized)||void 0===c?void 0:c.call(u)){var v=Date.now()-s;d.logEvent(h.paymentAgentInitialized,{message:"PaymentAgent.initAsync: Payment Agent object already exists",timeTaken:v},l)}else{v=Date.now()-s;d.logEvent(h.error,{message:"PaymentAgent.initAsync: Payment Agent failed to initialize.",timeTaken:v},l),p=Promise.resolve(!1)}else window.paymentAgent=new B(e,t,d,r),p=window.paymentAgent.initAsync(e).then((function(){var e=Date.now()-s;return d.logEvent(h.paymentAgentInitialized,{message:"PaymentAgent.initAsync succeeded",timeTaken:e},l),!0})).catch((function(e){var t=JSON.stringify(e),n=Date.now()-s;return d.logEvent(h.error,{message:"PaymentAgent.initAsync: Payment Agent failed to initialize.",error:t,timeTaken:n},l),!1}));return p},isPaymentDeviceEligibleAsync:function(e,t,n,r,i){return o(void 0,void 0,void 0,(function(){var a,o,c,s,l,f,d;return u(this,(function(u){return a=Date.now(),o=null===r||void 0===r?void 0:r.contextData,c=null===window||void 0===window?void 0:window.paymentAgent,s=null===o||void 0===o?void 0:o.cvInitValue,c&&c.getInitPromise()?[2,c.getInitPromise().then((function(){var e,r,i=c.paymentDeviceEligibilityCheck(t,n),u=Date.now()-a;return null===(r=null===(e=c.getPaymentAgentTelemetryLogger)||void 0===e?void 0:e.call(c))||void 0===r||r.logEvent(h.apiCalled,{message:"isPaymentDeviceEligibleAsync: PaymentAgent.isPaymentDeviceEligibleAsync succeeded",family:t,type:n,result:i,timeTaken:u},o),Promise.resolve(i)})).catch((function(e){var t,n,r=JSON.stringify(e),i=Date.now()-a;return null===(n=null===(t=c.getPaymentAgentTelemetryLogger)||void 0===t?void 0:t.call(c))||void 0===n||n.logEvent(h.error,{message:"isPaymentDeviceEligibleAsync: Failed - Payment Agent failed to initialize.",error:r,timeTaken:i},o),Promise.resolve(!1)}))]:(l=new W(e,j,s),f=null!==i&&void 0!==i?i:l,d=Date.now()-a,f.logEvent(h.error,{message:"isPaymentDeviceEligibleAsync: it should be called after initAsync",timeTaken:d},o),[2,Promise.resolve(!1)])}))}))}},$=function(){function e(e){this.pidlHooksCount=0,this.pidlHooks={},this.eventHandler=e}return e.prototype.reset=function(){this.pidlHooksCount=0,this.pidlHooks={}},e.prototype.unregisterPidlHook=function(e){delete this.pidlHooks[e]},e.prototype.registerPidlHook=function(e){var t=this;this.pidlHooks[this.pidlHooksCount]=e,e.model.setOrchestratorId(this.pidlHooksCount);var n;return e.addPublicEventHandler((n=this.pidlHooksCount,function(e,r){if(t.eventHandler)return t.eventHandler(e,r,n)})),this.pidlHooksCount++},e.prototype.broadcastPropertyValueUpdate=function(e,t,n,r,i){if(e<this.pidlHooksCount&&t&&t.broadcastTo){for(var a=[],o=0;o<this.pidlHooksCount;o++)if(o!==e){var u=this.pidlHooks[o];if(u&&u.model&&u.model.updatePropertyValue&&u.model.getPropertyModelElement){var c=u.model.getPropertyModelElement(t.broadcastTo);c&&a.push(u.model.updatePropertyValue(c,n,r,i,!1))}}return Promise.all(a).then((function(){}))}return Promise.resolve()},e.prototype.getGlobalPropertyValue=function(e,t){if(e<this.pidlHooksCount)for(var n=0;n<e;n++){var r=this.pidlHooks[n];if(r&&r.model&&r.model.getPropertyValue){var i=r.model.getPropertyValue(t);if(void 0!==i)return i}}},e}(),Y={initializeOrchestrator:function(e){try{window.pidlOrchestrator=new $(e)}catch(t){}},reset:function(){if(window.pidlOrchestrator)return window.pidlOrchestrator.reset()},unregisterPidlHook:function(e){window.pidlOrchestrator&&window.pidlOrchestrator.unregisterPidlHook(e)},registerPidlHook:function(e){return window.pidlOrchestrator?window.pidlOrchestrator.registerPidlHook(e):null},broadcastPropertyValueUpdate:function(e,t,n,r,i){if(window.pidlOrchestrator)return window.pidlOrchestrator.broadcastPropertyValueUpdate(e,t,n,r,i)},getGlobalPropertyValue:function(e,t){if(window.pidlOrchestrator)return window.pidlOrchestrator.getGlobalPropertyValue(e,t)}},Z={"ANDAMAN AND NICOBAR ISLAND":"AN","ANDHRA PRADESH":"AP","ARUNACHAL PRADESH":"AR",ASSAM:"AS",BIHAR:"BR",CHANDIGARH:"CH",CHHATTISGARH:"CT","DADRA AND NAGAR HAVELI":"DN","DAMAN AND DIU":"DD",DELHI:"DL",GOA:"GA",GUJARAT:"GJ",HARYANA:"HR","HIMACHAL PRADESH":"HP","JAMMU AND KASHMIR":"JK",JHARKHAND:"JH",KARNATAKA:"KA",KERALA:"KL",LAKSHADWEEP:"LD","MADHYA PRADESH":"MP",MAHARASHTRA:"MH",MANIPUR:"MN",MEGHALAYA:"ML",MIZORAM:"MZ",NAGALAND:"NL",ORISSA:"OR",PUDUCHERRY:"PY",PUNJAB:"PB",RAJASTHAN:"RJ",SIKKIM:"SK","TAMIL NADU":"TN",TELANGANA:"TG",TRIPURA:"TR","UTTAR PRADESH":"UP",UTTARAKHAND:"UT","WEST BENGAL":"WB",AN:"AN",AP:"AP",AR:"AR",AS:"AS",BR:"BR",CH:"CH",CT:"CT",DN:"DN",DD:"DD",DL:"DL",GA:"GA",GJ:"GJ",HR:"HR",HP:"HP",JK:"JK",JH:"JH",KA:"KA",KL:"KL",LD:"LD",MP:"MP",MH:"MH",MN:"MN",ML:"ML",MZ:"MZ",NL:"NL",OR:"OR",PY:"PY",PB:"PB",RJ:"RJ",SK:"SK",TN:"TN",TG:"TG",TR:"TR",UP:"UP",UT:"UT",WB:"WB"},Q={country:"pidlDocInfo.parameters.allowedCountries"};function ee(e){return Object.prototype.toString.call(e)}function te(e){return e&&"[object Array]"===ee(e)}function ne(e){return e&&"[object Object]"===ee(e)}function re(e,t,n){if(void 0===n&&(n=!1),ne(e)&&te(t)){var r=Object.keys(e),i={};n?(t=t.map((function(e){return e.toLowerCase()})),r=r.map((function(e){var t=e.toLowerCase();return i[t]=e,t}))):r.forEach((function(e){return i[e]=e}));var a={};return r.forEach((function(n){t.indexOf(n)>=0&&(a[i[n]]=e[i[n]])})),a}}function ie(e){var t=null;return e&&e.partnerData&&e.partnerData.inputParameters&&e.partnerData.inputParameters.pidlDocInfo&&e.partnerData.inputParameters.pidlDocInfo.parameters&&(t=e.partnerData.inputParameters.pidlDocInfo.parameters.allowedPaymentMethods),t&&t.length&&(t=t.map((function(e){return e.toUpperCase()}))),t}function ae(e,t,n){var r=t(e);return!!r&&n(r)}function oe(e){var t,n;return"credit_card"===(null===(t=null===e||void 0===e?void 0:e.paymentMethod)||void 0===t?void 0:t.paymentMethodFamily)&&(null===(n=null===e||void 0===e?void 0:e.details)||void 0===n?void 0:n.isNotSaved)}function ue(e){var t;return e&&e.paymentMethod&&"credit_card"===e.paymentMethod.paymentMethodFamily&&!(null===(t=null===e||void 0===e?void 0:e.details)||void 0===t?void 0:t.isNotSaved)}function ce(e,t,n){return e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily===t&&e.paymentMethod.paymentMethodType===n}function se(e){return ce(e,"offline_bank_transfer","check")}function le(e){return ce(e,"credit_card","visa")}function fe(e){return ce(e,"credit_card","mc")}function de(e){return ce(e,"credit_card","amex")}function pe(e){return ce(e,"credit_card","discover")}function ge(e){return ce(e,"credit_card","jcb")}function ve(e){return ce(e,"credit_card","hipercard")}function me(e){return ce(e,"credit_card","elo")}function he(e){return ce(e,"credit_card","unionpay_creditcard")}function ye(e){return ce(e,"credit_card","unionpay_debitcard")}function Ce(e){return ce(e,"ewallet","paypal")}function Ie(e){return Ee(e)&&!Pe(e)&&!!e.details.email}function Te(e){var t,n;return Ee&&!Pe(e)&&!(null===(t=e.details)||void 0===t?void 0:t.email)&&!!(null===(n=e.details)||void 0===n?void 0:n.userName)}function Pe(e){return ce(e,"ewallet","stored_value")}function Ee(e){return function(e,t){return e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily===t}(e,"ewallet")}function be(e){return ce(e,"direct_debit","ach")}function Se(e){return ce(e,"direct_debit","sepa")}function Ae(e){return e&&e.paymentMethod&&"mobile_billing_non_sim"===e.paymentMethod.paymentMethodFamily}function De(e){return ce(e,"mobile_billing_non_sim","spt-us-nonsim")}function we(e){return ce(e,"mobile_billing_non_sim","vzw-us-nonsim")}function Ne(e){return ce(e,"virtual","alipay")}function ke(e){return ce(e,"virtual","unionpay")}function _e(e){return ce(e,"virtual","invoice_basic")}function Me(e){return ce(e,"virtual","invoice_check")}function xe(e){return!Re(e)}function Oe(e){return e&&e.paymentMethod&&"add_new_payment_method"===e.paymentMethod.paymentMethodFamily}function Re(e){if(e&&e.details&&ue(e)){var t=e.details,n=t.expiryMonth,r=t.expiryYear,i=void 0,a=void 0;try{i=Number(n),a=Number(r)}catch(s){return!1}var o=new Date,u=o.getMonth()+1,c=o.getFullYear();return c>a||u>i&&c>=a}return!1}function Le(e){return e&&e.contextData}function Ue(e){if(e&&e.arguments&&e.arguments[0]&&e.dataSources&&e.dataSources.paymentInstruments&&te(e.dataSources.paymentInstruments))for(var t=e.arguments[0],n=e.dataSources.paymentInstruments,r=0;r<n.length;r++)if(n[r].id===t)return n[r]}function Ve(e){return e&&e.contextData&&e.contextData.primaryPaymentInstrument}function Fe(e){return e&&e.contextData&&e.contextData.backupPaymentInstrument}function He(e){return e&&e.partnerData&&e.partnerData.prefillData}function Be(e){var t=[],n=null,r=ie(e);if(e&&e.partnerData&&e.partnerData.inputParameters&&e.partnerData.inputParameters.pidlDocInfo&&e.partnerData.inputParameters.pidlDocInfo.parameters&&e.partnerData.inputParameters.pidlDocInfo.parameters.filters&&(n=e.partnerData.inputParameters.pidlDocInfo.parameters.filters.allowedCurrencies),n&&n.length&&(n=n.map((function(e){return e.toUpperCase()}))),e&&e.contextData&&e.contextData.length)for(var i=e.contextData,a=0;a<i.length;a++){var o=i[a],u=o.currency&&o.currency.toUpperCase();if(!(n&&n.length&&n.indexOf(u)<0)){if(r&&r.length){var c=null,s=null,l=null,f=null,d=o.primaryPaymentInstrument&&o.primaryPaymentInstrument.paymentMethod;d&&(c=(d.paymentMethodFamily+"."+d.paymentMethodType).toUpperCase(),s=d.paymentMethodFamily.toUpperCase());var p=o.backupPaymentInstrument&&o.backupPaymentInstrument.paymentMethod;if(p&&(l=(p.paymentMethodFamily+"."+p.paymentMethodType).toUpperCase(),f=p.paymentMethodFamily.toUpperCase()),r.indexOf(c)<0&&r.indexOf(s)<0)continue;if(p&&r.indexOf(l)<0&&r.indexOf(f)<0)continue}t.push(o)}}return t}function ze(e){return function(e){return"boolean"===typeof e}(e)?e:function(e){return"string"===typeof e}(e)?"true"===e.trim().toLowerCase():!!function(e){return"number"===typeof e}(e)&&0!==e}function Ge(e,t){return t[Ke(e.toLowerCase())]||""}function Ke(e){var t=e.toLowerCase();switch(t){case"mastercard":return"mc";case"americanexpress":case"american express":return"amex";default:return t||""}}function qe(e,t){for(var n,r=0,i=0;i<e.length;i++)"credit_card"===(null===(n=e[i].paymentMethod)||void 0===n?void 0:n.paymentMethodFamily)&&(r=i);if(r>0)for(i=0;i<t.length;i++)e.splice(r+1,0,t[i]);else e=t.concat(e);return e}var We={filterBillingGroups:Be,filterPaymentInstruments:function(e){var t=[],n=ie(e),r=!1,i=e&&e.partnerData&&e.partnerData.inputParameters&&e.partnerData.inputParameters.pidlDocInfo;if(i&&i.parameters&&i.parameters.filters&&(r=i.parameters.filters.filterExpiredPayment),e&&e.contextData&&e.contextData.length){var a=e.contextData;if(e.partnerData&&e.partnerData.prefillData){var o=e.partnerData.prefillData.paymentInstruments;o&&a.push.apply(a,o)}for(var u=0;u<a.length;u++){var c=a[u];if(n&&n.length&&c.paymentMethod){var s=(c.paymentMethod.paymentMethodFamily+"."+c.paymentMethod.paymentMethodType).toUpperCase(),l=c.paymentMethod.paymentMethodFamily.toUpperCase();if(n.indexOf(s)<0&&n.indexOf(l)<0)continue}r&&Re(c)||t.push(c)}}return t},filterOptions:function(e){var t=e.contextData;if(!t)return t;var n=t.propertyName,r=t.possible_values,i=t.possibleValues,a=t.possibleOptions;if(!n)return t;var o=function(e,t){if(e&&e.partnerData&&e.partnerData.inputParameters&&t){var n=Q[t];if(n){var r=e.partnerData.inputParameters;return n.split(".").forEach((function(e){r=ne(r)?r[e]:void 0})),r}}}(e,n);return o?(r&&(r=re(r,o,!0)),i&&(i=re(i,o,!0)),a&&(a=re(a,o,!0)),{propertyName:n,possible_values:r,possibleValues:i,possibleOptions:a}):t},getBalanceInLocalCurrency:function(e){var t=e||{},n=t.contextData,r=void 0===n?{}:n,i=t.partnerData,a=void 0===i?{}:i,o=r.currency,u=r.balanceAmount;if(void 0!==u&&null!==u){var c=a&&a.inputParameters&&a.inputParameters.pidlDocInfo&&a.inputParameters.pidlDocInfo.parameters&&a.inputParameters.pidlDocInfo.parameters.language;if(o&&c){var s={style:"currency",currency:o};try{return u.toLocaleString(c,s)}catch(l){}}return u.toString&&u.toString()}return u},getIndiaPANID:function(e){var t=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if(r.type&&"INDIAPANID"===r.type.toUpperCase())return r.taxId}return null},getNationalIdentificationNumber:function(e){var t=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if(r.type&&"NATIONALIDENTIFICATIONNUMBER"===r.type.toUpperCase())return r.taxId}return null},getVatId:function(e){var t=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(t&&t.length)for(var n=0;n<t.length;n++){var r=t[n];if(r.type&&"VATID"===r.type.toUpperCase())return r.taxId}return null},getIndiaGSTID:function(e){var t=function(e){if(!e)return null;var t=e.dataSources,n=e.partnerData;if(!t)return null;var r=t.profileResource,i=t.addressResource;return r&&r.address&&r.address.region?r.address.region:r&&r.default_address&&r.default_address.region?r.default_address.region:i&&i.serviceUsageAddress&&i.serviceUsageAddress.state?i.serviceUsageAddress.state:n&&n.prefillData&&(n.prefillData.state||n.prefillData.region)?n.prefillData.region?n.prefillData.region:n.prefillData.state:null}(e),n=t&&Z[t.toUpperCase()],r=e&&e.dataSources&&e.dataSources.taxResource&&e.dataSources.taxResource.value;if(n&&r&&r.length)for(var i=0;i<r.length;i++){var a=r[i];if(a.state&&a.state.toUpperCase()===n&&a.type&&"GSTINID"===a.type.toUpperCase())return a.taxId}return null},hasBGBackupPI:function(e){return ae(e,Fe,(function(e){return!!e}))},isBGBackupPICheck:function(e){return ae(e,Fe,se)},isBGBackupPICreditCard:function(e){return ae(e,Fe,ue)},isBGBackupPINonCCNonCheck:function(e){return!ae(e,Fe,ue)&&!ae(e,Fe,se)},isBGBackupPINonCreditCard:function(e){return!ae(e,Fe,ue)},isBGPrimaryPICheck:function(e){return ae(e,Ve,se)},isBGPrimaryPICreditCard:function(e){return ae(e,Ve,ue)},isBGPrimaryPINonCCNonCheck:function(e){return!ae(e,Ve,ue)&&!ae(e,Ve,se)},isBGPrimaryPINonCreditCard:function(e){return!ae(e,Ve,ue)},isSelectedCreditCardExpired:function(e){return ae(e,Ue,Re)},isSelectedCreditCardAmex:function(e){return ae(e,Ue,de)},isCreditCardExpired:function(e){return ae(e,Le,Re)},isCreditCardNotExpired:function(e){return ae(e,Le,xe)},isUserPICheck:function(e){return ae(e,Le,se)},isUserWalletPICard:function(e){return ae(e,Le,oe)},isUserPICreditCard:function(e){return ae(e,Le,ue)},isUserPIValidCreditCard:function(e){return ae(e,Le,ue)&&ae(e,Le,xe)},isUserPINonCCNonCheck:function(e){return!ae(e,Le,ue)&&!ae(e,Le,se)&&!ae(e,Le,Oe)&&!ae(e,Le,oe)},isUserPINonCCNonCheckNonPayPal:function(e){return!ae(e,Le,ue)&&!ae(e,Le,se)&&!ae(e,Le,Ce)&&!ae(e,Le,Oe)&&!ae(e,Le,oe)},isUserPINonCCNonCheckNonUserEwallet:function(e){return!ae(e,Le,ue)&&!ae(e,Le,se)&&!ae(e,Le,Ie)&&!ae(e,Le,Te)&&!ae(e,Le,Oe)&&!ae(e,Le,oe)},isUserPINonCCNonCheckNonPayPalNonStoredValue:function(e){return!ae(e,Le,ue)&&!ae(e,Le,se)&&!ae(e,Le,Ce)&&!ae(e,Le,Pe)&&!ae(e,Le,Oe)&&!ae(e,Le,oe)},isUserPINonCreditCard:function(e){return!ae(e,Le,ue)},isUserPIVisa:function(e){return ae(e,Le,le)},isUserPIMastercard:function(e){return ae(e,Le,fe)},isUserPIAmex:function(e){return ae(e,Le,de)},isUserPIDiscover:function(e){return ae(e,Le,pe)},isUserPIJCB:function(e){return ae(e,Le,ge)},isUserPIHipercard:function(e){return ae(e,Le,ve)},isUserPIElo:function(e){return ae(e,Le,me)},isUserPIUnionPayCreditCard:function(e){return ae(e,Le,he)},isUserPIUnionPayDebitCard:function(e){return ae(e,Le,ye)},isUserEwalletWithEmail:function(e){return ae(e,Le,Ie)},isUserEwalletWithUserName:function(e){return ae(e,Le,Te)},IsEwalletPayPal:function(e){return ae(e,Le,Ce)},IsEwalletStoredValue:function(e){return ae(e,Le,Pe)},IsEwallet:function(e){return ae(e,Le,Ee)},IsEwalletNonStoredValue:function(e){return ae(e,Le,Ee)&&!ae(e,Le,Pe)},isUserPIEWalletPayPal:function(e){return ae(e,Le,Ce)},isUserPIEWalletStoredValue:function(e){return ae(e,Le,Pe)},isUserPIDirectDebitAch:function(e){return ae(e,Le,be)},isUserPIDirectDebitSepa:function(e){return ae(e,Le,Se)},isUserPISptNSM:function(e){return ae(e,Le,De)},isUserPIVzwNSM:function(e){return ae(e,Le,we)},isUserPINonSimMobi:function(e){return ae(e,Le,Ae)},isUserPIVirtualAlipay:function(e){return ae(e,Le,Ne)},isUserPIVirtualUnionpay:function(e){return ae(e,Le,ke)},isUserPIVirtualInvoiceBasic:function(e){return ae(e,Le,_e)},isUserPIVirtualInvoiceCheck:function(e){return ae(e,Le,Me)},showAddBGLink:function(e){return ae(e,He,(function(e){return e.showAddBillingGroupLink}))},showEditBGLink:function(e){e&&e.dataSources&&e.dataSources.billingGroups&&e.dataSources.billingGroups.value&&(e.contextData=e.dataSources.billingGroups.value);var t=Be(e);return t&&t.length>0},showAddPILink:function(e){var t=ie(e),n=e&&e.dataSources&&e.dataSources.paymentMethods;if(n&&n.length)for(var r=0;r<n.length;r++){var i=n[r];if(i.properties&&i.properties.userManaged){var a=(i.paymentMethodFamily+"."+i.paymentMethodType).toUpperCase(),o=i.paymentMethodFamily.toUpperCase();if(null==t||t.indexOf(a)>-1||t.indexOf(o)>-1)return!0}}return!1},showLEEditLink:function(e){return ae(e,He,(function(e){return e.showEditLink}))},ordersExists:function(e){return e&&e.contextData&&e.contextData.orders&&e.contextData.orders.length>0},subscriptionsExists:function(e){return e&&e.contextData&&e.contextData.subs&&e.contextData.subs.length>0},isUserCSVFilled:function(e){return e&&e.contextData&&e.contextData.details&&e.contextData.details.balance>0},isUserCSVEmpty:function(e){return e&&e.contextData&&e.contextData.details&&e.contextData.details.balance<=0},isAddNewPaymentMethodOption:function(e){return ae(e,Le,Oe)},not:function(e){return!!(e&&e.arguments&&e.arguments[0])&&!ze(e.arguments[0])},or:function(e){return e&&e.arguments&&(ze(e.arguments[0])||ze(e.arguments[1]))},ternary:function(e){if(e&&e.arguments&&3===e.arguments.length)return ze(e.arguments[0])?e.arguments[1]:e.arguments[2]},stringEquals:function(e){return e&&e.arguments&&e.arguments[0]&&e.arguments[1]&&e.arguments[0]===e.arguments[1]},stringEqualsIgnoreCase:function(e){return e&&e.arguments&&e.arguments[0]&&e.arguments[1]&&e.arguments[0].toLowerCase&&e.arguments[1].toLowerCase&&e.arguments[0].toLowerCase()===e.arguments[1].toLowerCase()},mergeLocalCards:function(e){var t,n,r,i;if(3==(null===e||void 0===e?void 0:e.arguments.length)){for(var o=e.arguments[0]||[],u=e.arguments[1]||{},c=e.arguments[2]||[],s=c,l=[],f=function(e){var s=o[e],f=null===(t=s.details)||void 0===t?void 0:t.paymentMethodType,d={id:"Card-".concat(e),details:a(a({},s.details),{lastFourDigits:null===(r=null===(n=s.details)||void 0===n?void 0:n.accountToken)||void 0===r?void 0:r.slice(-4),isNotSaved:!0,expiryMonth:Number(null===(i=s.details)||void 0===i?void 0:i.expiryMonth)}),paymentMethod:{display:{name:f,logo:Ge(f,u)},groupDisplayName:"Credit or debit card",paymentMethodFamily:"credit_card",paymentMethodType:Ke(f),paymentMethodGroup:"credit_or_debit_card"},status:"pending"};c.find((function(e){var t;return(null===(t=e.details)||void 0===t?void 0:t.lastFourDigits)===d.details.lastFourDigits}))||l.push(d)},d=0;d<o.length;d++)f(d);return s=qe(s,l)}return[]},mergeAndFillLocalCards:function(e){var t,n,r,i,o,u;if(2==(null===e||void 0===e?void 0:e.arguments.length)){for(var c=e.arguments[0]||[],s=e.arguments[1]||[],l=null===(n=null===(t=e.model)||void 0===t?void 0:t.pidlDocManager)||void 0===n?void 0:n.getLogosFromDataDescription(),f=c,d=[],p=function(e){var t=s[e],n=null===(r=t.details)||void 0===r?void 0:r.paymentMethodType,f={id:"Card-".concat(e),details:a(a({},t.details),{lastFourDigits:null===(o=null===(i=t.details)||void 0===i?void 0:i.accountToken)||void 0===o?void 0:o.slice(-4),isNotSaved:!0,expiryMonth:Number(null===(u=t.details)||void 0===u?void 0:u.expiryMonth)}),paymentMethod:{display:{name:n,logo:Ge(n,l)},groupDisplayName:"Credit or debit card",paymentMethodFamily:"credit_card",paymentMethodType:Ke(n),paymentMethodGroup:"credit_or_debit_card"},status:"pending"};c.find((function(e){var t;return(null===(t=e.details)||void 0===t?void 0:t.lastFourDigits)===f.details.lastFourDigits}))||d.push(f)},g=0;g<s.length;g++)p(g);return f=qe(f,d)}return[]},mergeLocalData:function(e){if(2==(null===e||void 0===e?void 0:e.arguments.length)){var t=e.arguments[0]||[],n=e.arguments[1]||[];return c(c([],t,!0),n,!0)}return[]},singleDigitMonth:function(e){var t;return Number(null===(t=null===e||void 0===e?void 0:e.arguments)||void 0===t?void 0:t[0])<10},doubleDigitMonth:function(e){var t;return Number(null===(t=null===e||void 0===e?void 0:e.arguments)||void 0===t?void 0:t[0])>=10},filterPaymentInstrumentsByCountry:function(e){var t=[];if(2==(null===e||void 0===e?void 0:e.arguments.length)){for(var n=e.arguments[0]||[],r=(e.arguments[1]||{}).allowedCountries||[],i=0;i<r.length;i++)r[i]=r[i].toLowerCase();n.forEach((function(e){var n,i,a,o,u;(null===(i=null===(n=e.details)||void 0===n?void 0:n.address)||void 0===i?void 0:i.country)&&!r.includes(null===(u=null===(o=null===(a=e.details)||void 0===a?void 0:a.address)||void 0===o?void 0:o.country)||void 0===u?void 0:u.toLowerCase())||t.push(e)}))}return t},getDataSourceCount:function(e){var t;if(2===(null===(t=null===e||void 0===e?void 0:e.arguments)||void 0===t?void 0:t.length)){var n=e.arguments[0],r=e.arguments[1];if("paymentInstruments"===n){var i=null===r||void 0===r?void 0:r.reduce((function(e,t){var n,r=(null===(n=null===t||void 0===t?void 0:t.paymentMethod)||void 0===n?void 0:n.paymentMethodFamily)||"unknown";if("credit_card"===r){var i=null===t||void 0===t?void 0:t.details;(null===i||void 0===i?void 0:i.isNotSaved)&&(r="wallet_card")}return e[r]?e[r]++:e[r]=1,e}),{});return i||{}}return{}}return{}},add:function(e){return e&&e.arguments&&Number((Number(e.arguments[0])+Number(e.arguments[1])).toFixed(2))},minus:function(e){return e&&e.arguments&&Number(e.arguments[0])-Number(e.arguments[1])},multiply:function(e){return e&&e.arguments&&Number(e.arguments[0])*Number(e.arguments[1])},divide:function(e){return e&&e.arguments&&Number(e.arguments[0])/Number(e.arguments[1])},negate:function(e){return e&&e.arguments&&-1*Number(e.arguments[0])},numberEquals:function(e){return e&&e.arguments&&Number(e.arguments[0])===Number(e.arguments[1])}};function Je(e,t){return We.hasOwnProperty(e)?We[e].apply(null,[t]):null}function je(){try{window.pidlResourceHelpers={whitelistedFunctionMappings:We,executeExtensionFunc:Je}}catch(e){}}je(),Y.initializeOrchestrator(),t.PaymentAgent=X,t.PidlOrchestrator=Y,t.executeExtensionFunc=Je,t.initializeResources=je,t.whitelistedFunctionMappings=We},13200:function(e,t,n){n.r(t),n.d(t,{ActionType:function(){return un},AppInsightsCore:function(){return K},ApplicationInsights:function(){return Pi},AutoCaptureHandler:function(){return pi},BE_PROFILE:function(){return j},Behavior:function(){return rn},CoreUtils:function(){return z.jS},DiagnosticLogger:function(){return I.wq},EventLatency:function(){return f},EventPersistence:function(){return d},EventsDiscardedReason:function(){return C},MinChannelPriorty:function(){return i},NRT_PROFILE:function(){return J},NotificationManager:function(){return y},PostChannel:function(){return ze},PropertiesPlugin:function(){return on},RT_PROFILE:function(){return W},TraceLevel:function(){return p},Utils:function(){return z.Aq},ValueKind:function(){return l},WebAnalytics:function(){return Ci}});var r,i=100,a=n(73951),o=n(82757);function u(e){var t={};return(0,o.z)(e,(function(e,n){t[e]=n,t[n]=e})),(0,o.ol)(t)}function c(e){var t={};return(0,o.z)(e,(function(e,n){t[e]=n[1],t[n[0]]=n[1]})),(0,o.ol)(t)}u({CRITICAL:1,WARNING:2});var s=u(((r={}).BrowserDoesNotSupportLocalStorage=0,r.BrowserCannotReadLocalStorage=1,r.BrowserCannotReadSessionStorage=2,r.BrowserCannotWriteLocalStorage=3,r.BrowserCannotWriteSessionStorage=4,r.BrowserFailedRemovalFromLocalStorage=5,r.BrowserFailedRemovalFromSessionStorage=6,r.CannotSendEmptyTelemetry=7,r.ClientPerformanceMathError=8,r.ErrorParsingAISessionCookie=9,r.ErrorPVCalc=10,r.ExceptionWhileLoggingError=11,r.FailedAddingTelemetryToBuffer=12,r.FailedMonitorAjaxAbort=13,r.FailedMonitorAjaxDur=14,r.FailedMonitorAjaxOpen=15,r.FailedMonitorAjaxRSC=16,r.FailedMonitorAjaxSend=17,r.FailedMonitorAjaxGetCorrelationHeader=18,r.FailedToAddHandlerForOnBeforeUnload=19,r.FailedToSendQueuedTelemetry=20,r.FailedToReportDataLoss=21,r.FlushFailed=22,r.MessageLimitPerPVExceeded=23,r.MissingRequiredFieldSpecification=24,r.NavigationTimingNotSupported=25,r.OnError=26,r.SessionRenewalDateIsZero=27,r.SenderNotInitialized=28,r.StartTrackEventFailed=29,r.StopTrackEventFailed=30,r.StartTrackFailed=31,r.StopTrackFailed=32,r.TelemetrySampledAndNotSent=33,r.TrackEventFailed=34,r.TrackExceptionFailed=35,r.TrackMetricFailed=36,r.TrackPVFailed=37,r.TrackPVFailedCalc=38,r.TrackTraceFailed=39,r.TransmissionFailed=40,r.FailedToSetStorageBuffer=41,r.FailedToRestoreStorageBuffer=42,r.InvalidBackendResponse=43,r.FailedToFixDepricatedValues=44,r.InvalidDurationValue=45,r.TelemetryEnvelopeInvalid=46,r.CreateEnvelopeError=47,r.CannotSerializeObject=48,r.CannotSerializeObjectNonSerializable=49,r.CircularReferenceDetected=50,r.ClearAuthContextFailed=51,r.ExceptionTruncated=52,r.IllegalCharsInName=53,r.ItemNotInArray=54,r.MaxAjaxPerPVExceeded=55,r.MessageTruncated=56,r.NameTooLong=57,r.SampleRateOutOfRange=58,r.SetAuthContextFailed=59,r.SetAuthContextFailedAccountName=60,r.StringValueTooLong=61,r.StartCalledMoreThanOnce=62,r.StopCalledWithoutStart=63,r.TelemetryInitializerFailed=64,r.TrackArgumentsNotSpecified=65,r.UrlTooLong=66,r.SessionStorageBufferFull=67,r.CannotAccessCookie=68,r.IdTooLong=69,r.InvalidEvent=70,r.FailedMonitorAjaxSetRequestHeader=71,r.SendBrowserInfoOnUserInit=72,r.PluginException=73,r.NotificationException=74,r.SnippetScriptLoadFailure=99,r.InvalidInstrumentationKey=100,r.CannotParseAiBlobValue=101,r.InvalidContentBlob=102,r.TrackPageActionEventFailed=103,r.FailedAddingCustomDefinedRequestContext=104,r.InMemoryStorageBufferFull=105,r.InstrumentationKeyDeprecation=106,r)),l=u({NotSet:0,Pii_DistinguishedName:1,Pii_GenericData:2,Pii_IPV4Address:3,Pii_IPv6Address:4,Pii_MailSubject:5,Pii_PhoneNumber:6,Pii_QueryString:7,Pii_SipAddress:8,Pii_SmtpAddress:9,Pii_Identity:10,Pii_Uri:11,Pii_Fqdn:12,Pii_IPV4AddressLegacy:13,Pii_IPv6ScrubLastHextets:14,Pii_DropValue:15,CustomerContent_GenericContent:32}),f=u({Normal:1,CostDeferred:2,RealTime:3,Immediate:4}),d=(u({Unspecified:0,String:1,Int32:2,UInt32:3,Int64:4,UInt64:5,Double:6,Bool:7,Guid:8,DateTime:9}),u({Normal:1,Critical:2})),p=u({NONE:0,ERROR:1,WARNING:2,INFORMATION:3}),g=((0,o.N6)((0,a.Im)((0,a.Im)({},s),u({AuthHandShakeError:501,AuthRedirectFail:502,BrowserCannotReadLocalStorage:503,BrowserCannotWriteLocalStorage:504,BrowserDoesNotSupportLocalStorage:505,CannotParseBiBlobValue:506,CannotParseDataAttribute:507,CVPluginNotAvailable:508,DroppedEvent:509,ErrorParsingAISessionCookie:510,ErrorProvidedChannels:511,FailedToGetCookies:512,FailedToInitializeCorrelationVector:513,FailedToInitializeSDK:514,InvalidContentBlob:515,InvalidCorrelationValue:516,SessionRenewalDateIsZero:517,SendPostOnCompleteFailure:518,PostResponseHandler:519,SDKNotInitialized:520}))),n(96837)),v=n(58170),m=n(31192);function h(e,t,n,r){(0,o.Iu)(e,(function(e){if(e&&e[t])if(n)setTimeout((function(){return r(e)}),0);else try{r(e)}catch(i){}}))}var y=function(){function e(t){this.listeners=[];var n=!!(t||{}).perfEvtsSendAll;(0,g.A)(e,this,(function(e){e[v.vR]=function(t){e.listeners[v.y5](t)},e[v.TP]=function(t){for(var n=(0,o.rD)(e[v.lJ],t);n>-1;)e.listeners[v.Ic](n,1),n=(0,o.rD)(e[v.lJ],t)},e[m.fc]=function(t){h(e[v.lJ],m.fc,!0,(function(e){e[m.fc](t)}))},e[m.Yp]=function(t,n){h(e[v.lJ],m.Yp,!0,(function(e){e[m.Yp](t,n)}))},e[m.dI]=function(t,n){h(e[v.lJ],m.dI,n,(function(e){e[m.dI](t,n)}))},e[m.l0]=function(t){t&&(!n&&t[v.Zu]()||h(e[v.lJ],m.l0,!1,(function(e){t[v.tI]?setTimeout((function(){return e[m.l0](t)}),0):e[m.l0](t)})))}}))}return e.__ieDyn=1,e}(),C=u({Unknown:0,NonRetryableStatus:1,InvalidEvent:2,SizeLimitExceeded:3,KillSwitch:4,QueueFull:5}),I=n(99235),T=n(9096),P=n(4208),E=n(21336),b=n(63753),S=n(25904),A=500;function D(e,t,n){t&&(0,o.cy)(t)&&t[v.oI]>0&&(t=t.sort((function(e,t){return e[m.Vo]-t[m.Vo]})),(0,o.Iu)(t,(function(e){e[m.Vo]<A&&(0,o.$8)("Channel has invalid priority - "+e[v.Ju])})),e[v.y5]({queue:(0,o.N6)(t),chain:(0,b.PV)(t,n[v.GA],n)}))}var w=n(45806),N=n(16768),k=n(83151),_=n(85229),M=function(e){function t(){var n,r,i=e.call(this)||this;function a(){n=0,r=[]}return i.identifier="TelemetryInitializerPlugin",i.priority=199,a(),(0,g.A)(t,i,(function(e,t){e.addTelemetryInitializer=function(e){var t={id:n++,fn:e};return r[v.y5](t),{remove:function(){(0,o.Iu)(r,(function(e,n){if(e.id===t.id)return r[v.Ic](n,1),-1}))}}},e[m.qT]=function(t,n){for(var i=!1,a=r[v.oI],u=0;u<a;++u){var c=r[u];if(c)try{if(!1===c.fn[v.y9](null,[t])){i=!0;break}}catch(s){(0,I.ZP)(n[v.e4](),1,64,"One of telemetry initializers failed, telemetry item will not be sent: "+(0,o.lL)(s),{exception:(0,P.mm)(s)},!0)}}i||e[v.$5](t,n)},e[v.tn]=function(){a()}})),i}return(0,a.qU)(t,e),t.__ieDyn=1,t}(_.s),x=n(10792),O="Plugins must provide initialize method",R="SDK is still unloading...",L={loggingLevelConsole:1};function U(e,t){return new T.NS(t)}function V(e,t){var n=!1;return(0,o.Iu)(t,(function(t){if(t===e)return n=!0,-1})),n}var F=function(){function e(){var t,n,r,i,u,c,s,l,f,d,p,h,y,C,P,_,F,H,B,z,G=0,K=!1;(0,g.A)(e,this,(function(e){function g(n){if(!G&&!K&&(n||e[v.Uw]&&e[v.Uw].queue[v.oI]>0)){var r=(0,o.SA)(t.diagnosticLogInterval);r&&r>0||(r=1e4),G=setInterval((function(){clearInterval(G),G=0,Y()}),r)}return G}function q(){n=!1,t=(0,o.CP)(!0,{},L),e[v.GA]=t,e[v.Uw]=new I.wq(t),e[v.H7]=[],P=new M,r=[],i=null,u=null,c=null,s=null,l=null,d=null,f=[],p=null,h=null,y=null,C=!1,_=null,F=(0,N.Z)("AIBaseCore",!0),H=(0,x.P)(),z=null}function W(){var n=(0,b.i8)(X(),t,e);return n[v.by](g),n}function J(n){var r=function(e,t,n){var r,i=[],a={};return(0,o.Iu)(n,(function(n){((0,o.hX)(n)||(0,o.hX)(n[v.mE]))&&(0,o.$8)(O);var r=n[m.Vo],u=n[v.Ju];n&&r&&((0,o.hX)(a[r])?a[r]=u:(0,I.OG)(e,"Two extensions have same priority #"+r+" - "+a[r]+", "+u)),(!r||r<t)&&i[v.y5](n)})),(r={all:n})[m.eT]=i,r}(e[v.Uw],A,f);d=r[m.eT],l=null;var i=r.all;if(y=(0,o.N6)(function(e,t,n){var r=[];if(e&&(0,o.Iu)(e,(function(e){return D(r,e,n)})),t){var i=[];(0,o.Iu)(t,(function(e){e[m.Vo]>A&&i[v.y5](e)})),D(r,i,n)}return r}(h,i,e)),p){var a=(0,o.rD)(i,p);-1!==a&&i[v.Ic](a,1),-1!==(a=(0,o.rD)(d,p))&&d[v.Ic](a,1),p._setQueue(y)}else p=function(e,t){function n(){return(0,b.i8)(null,t[v.GA],t,null)}function r(e,t,n,r){var i=e?e[v.oI]+1:1;function a(){0===--i&&(r&&r(),r=null)}i>0&&(0,o.Iu)(e,(function(e){if(e&&e.queue[v.oI]>0){var r=e.chain,o=t[v.$o](r);o[v.by](a),n(o)}else i--})),a()}var i=!1,a={identifier:"ChannelControllerPlugin",priority:A,initialize:function(t,n,r,a){i=!0,(0,o.Iu)(e,(function(e){e&&e.queue[v.oI]>0&&(0,S.pI)((0,b.i8)(e.chain,t,n),r)}))},isInitialized:function(){return i},processTelemetry:function(t,i){r(e,i||n(),(function(e){e[v.$5](t)}),(function(){i[v.$5](t)}))},update:function(t,n){var i=n||{reason:0};return r(e,t,(function(e){e[v.$5](i)}),(function(){t[v.$5](i)})),!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 a=n||{reason:0,isAsync:!1};return r(e,t,(function(e){e[v.$5](a)}),(function(){t[v.$5](a),i=!1})),!0},getChannel:function(t){var n=null;return e&&e[v.oI]>0&&(0,o.Iu)(e,(function(e){if(e&&e.queue[v.oI]>0&&((0,o.Iu)(e.queue,(function(e){if(e[v.Ju]===t)return n=e,-1})),n))return-1})),n},flush:function(t,i,a,o){var u=1,c=!1,s=null;function l(){u--,c&&0===u&&(s&&(clearTimeout(s),s=null),i&&i(c),i=null)}return o=o||5e3,r(e,n(),(function(e){e.iterate((function(e){if(e[v.EX]){u++;var n=!1;e[v.EX](t,(function(){n=!0,l()}),a)||n||(t&&null==s?s=setTimeout((function(){s=null,l()}),o):l())}}))}),(function(){c=!0,l()})),!0},_setQueue:function(t){e=t}};return a}(y,e);i[v.y5](p),d[v.y5](p),e[v.H7]=(0,S.Xc)(i),p[v.mE](t,e,i);var u=W();(0,S.pI)(u,i),e[v.H7]=(0,o.N6)((0,S.Xc)(d||[])).slice(),n&&function(t){var n=(0,b.nU)(X(),e);n[v.by](g),e._updateHook&&!0===e._updateHook(n,t)||n[v.$5](t)}(n)}function j(t){var n,r=null,i=null;return(0,o.Iu)(e[v.H7],(function(e){if(e[v.Ju]===t&&e!==p&&e!==P)return i=e,-1})),!i&&p&&(i=p.getChannel(t)),i&&((n={plugin:i})[v.kt]=function(e){(0,S.Cr)(i)[m.Hr]=!e},n.isEnabled=function(){var e=(0,S.Cr)(i);return!e[v.Ik]&&!e[m.Hr]},n.remove=function(e,t){var n;void 0===e&&(e=!0);var r=[i],a=((n={reason:1})[v.tI]=e,n);$(r,a,(function(e){e&&J({reason:32,removed:r}),t&&t(e)}))},r=n),r}function X(){if(!l){var n=(d||[]).slice();-1===(0,o.rD)(n,P)&&n[v.y5](P),l=(0,b.PV)((0,S.Xc)(n),t,e)}return l}function $(n,r,i){if(n&&n[v.oI]>0){var a=(0,b.PV)(n,t,e),u=(0,b.tS)(a,e);u[v.by]((function(){var e=!1,t=[];(0,o.Iu)(f,(function(r,i){V(r,n)?e=!0:t[v.y5](r)})),f=t;var r=[];h&&((0,o.Iu)(h,(function(t,i){var a=[];(0,o.Iu)(t,(function(t){V(t,n)?e=!0:a[v.y5](t)})),r[v.y5](a)})),h=r),i&&i(e),g()})),u[v.$5](r)}else i(!1)}function Y(){if(e[v.Uw]&&e[v.Uw].queue){var n=e[v.Uw].queue.slice(0);e[v.Uw].queue[v.oI]=0,(0,o.Iu)(n,(function(n){var r,i=((r={})[v.RS]=_||"InternalMessageId: "+n[v.JR],r.iKey=(0,o.SA)(t[v.sl]),r.time=(0,o._u)(new Date),r.baseType=I.WD.dataType,r.baseData={message:n[v.pM]},r);e.track(i)}))}}function Z(e,t,n,r){return p?p[v.EX](e,t,n||6,r):(t&&t(!1),!0)}function Q(t){var n=e[v.Uw];n?((0,I.ZP)(n,2,73,t),g()):(0,o.$8)(t)}q(),e[v.tZ]=function(){return n},e[v.mE]=function(r,u,s,l){C&&(0,o.$8)(R),e[v.tZ]()&&(0,o.$8)("Core should not be initialized more than once"),t=r||{},e[v.GA]=t,(0,o.hX)(r[v.sl])&&(0,o.$8)("Please provide instrumentation key"),i=l,e._notificationManager=l,function(){var e=(0,o.SA)(t.disableDbgExt);!0===e&&B&&(i[v.TP](B),B=null);i&&!B&&!0!==e&&(B=(0,k.M)(t),i[v.vR](B))}(),function(){var e=(0,o.SA)(t.enablePerfMgr);!e&&c&&(c=null);e&&(0,o.c2)(t,m.Yd,U)}(),(0,o.c2)(t,m.Bw,{}).NotificationManager=i,s&&(e[v.Uw]=s);var d=(0,o.c2)(t,m.jy,[]);(f=[])[v.y5].apply(f,(0,a.vz)((0,a.vz)([],u,!1),d,!1)),h=(0,o.c2)(t,m.LZ,[]),J(null),y&&0!==y[v.oI]||(0,o.$8)("No "+m.LZ+" available"),n=!0,e.releaseQueue()},e.getTransmissionControls=function(){var e=[];return y&&(0,o.Iu)(y,(function(t){e[v.y5](t.queue)})),(0,o.N6)(e)},e.track=function(n){n.iKey=n.iKey||t[v.sl],n[v.fA]=n[v.fA]||(0,o._u)(new Date),n.ver=n.ver||"4.0",!C&&e[v.tZ]()?W()[v.$5](n):r[v.y5](n)},e[v.ps]=W,e[v.RF]=function(){return i||(i=function(){var e;return(0,E.AQ)(((e={})[v.vR]=function(e){},e[v.TP]=function(e){},e[m.fc]=function(e){},e[m.Yp]=function(e,t){},e[m.dI]=function(e,t){},e))}(),e._notificationManager=i),i},e[v.vR]=function(e){i&&i[v.vR](e)},e[v.TP]=function(e){i&&i[v.TP](e)},e.getCookieMgr=function(){return s||(s=(0,w.xN)(t,e[v.Uw])),s},e.setCookieMgr=function(e){s=e},e[m.kI]=function(){if(!u&&!c&&(0,o.SA)(t.enablePerfMgr)){var n=(0,o.SA)(t[m.Yd]);(0,o.Tn)(n)&&(c=n(e,e[v.RF]()))}return u||c||(0,T.Z4)()},e.setPerfMgr=function(e){u=e},e.eventCnt=function(){return r[v.oI]},e.releaseQueue=function(){if(n&&r[v.oI]>0){var e=r;r=[],(0,o.Iu)(e,(function(e){W()[v.$5](e)}))}},e.pollInternalLogs=function(e){return _=e||null,K=!1,G&&(clearInterval(G),G=null),g(!0)},e[v.Di]=function(){K=!0,G&&(clearInterval(G),G=0,Y())},(0,o.o$)(e,(function(){return P}),["addTelemetryInitializer"]),e.unload=function(t,r,i){var a;void 0===t&&(t=!0),n||(0,o.$8)("SDK is not initialized"),C&&(0,o.$8)(R);var u=((a={reason:50})[v.tI]=t,a.flushComplete=!1,a),c=(0,b.tS)(X(),e);function s(t){u.flushComplete=t,C=!0,H.run(c,u),e[v.Di](),c[v.$5](u)}c[v.by]((function(){q(),r&&r(u)}),e),Y(),Z(t,s,6,i)||s(!1)},e[v.AP]=j,e.addPlugin=function(e,t,n,r){if(!e)return r&&r(!1),void Q(O);var i=j(e[v.Ju]);if(i&&!t)return r&&r(!1),void Q("Plugin ["+e[v.Ju]+"] is already loaded!");var a={reason:16};function o(t){f[v.y5](e),a.added=[e],J(a),r&&r(!0)}if(i){var u=[i.plugin];$(u,{reason:2,isAsync:!!n},(function(e){e?(a.removed=u,a.reason|=32,o()):r&&r(!1)}))}else o()},e.evtNamespace=function(){return F},e[v.EX]=Z,e.getTraceCtx=function(e){return z||(z=(0,S.u7)()),z},e.setTraceCtx=function(e){z=e||null},(0,o.RF)(e,"addUnloadCb",(function(){return H}),"add")}))}return e.__ieDyn=1,e}(),H=function(e){function t(){var n=e.call(this)||this;return(0,g.A)(t,n,(function(e,t){function n(t){var n=e[v.RF]();n&&n[m.Yp]([t],2)}e[v.mE]=function(e,n,r,i){t[v.mE](e,n,r||new I.wq(e),i||new y(e))},e.track=function(r){(0,T.r2)(e[m.kI](),(function(){return"AppInsightsCore:track"}),(function(){null===r&&(n(r),(0,o.$8)("Invalid telemetry item")),function(e){(0,o.hX)(e[v.RS])&&(n(e),(0,o.$8)("telemetry name required"))}(r),t.track(r)}),(function(){return{item:r}}),!r.sync)}})),n}return(0,a.qU)(t,e),t.__ieDyn=1,t}(F),B=n(48156),z=n(23207),G=function(e){function t(){var n=e.call(this)||this;return n.pluginVersionStringArr=[],(0,g.A)(t,n,(function(e,t){e.logger&&e.logger.queue||(e.logger=new I.wq({loggingLevelConsole:1})),e.initialize=function(n,r,i,a){(0,T.r2)(e,(function(){return"AppInsightsCore.initialize"}),(function(){var u=e.pluginVersionStringArr;if(n){n.endpointUrl||(n.endpointUrl=B.S);var c=n.propertyStorageOverride;!c||c.getProperty&&c.setProperty||(0,o.$8)("Invalid property storage override passed."),n.channels&&(0,o.Iu)(n.channels,(function(e){e&&(0,o.Iu)(e,(function(e){if(e.identifier&&e.version){var t=e.identifier+"="+e.version;u.push(t)}}))}))}e.getWParam=function(){return"undefined"!==typeof document||n.enableWParam?0:-1},r&&(0,o.Iu)(r,(function(e){if(e&&e.identifier&&e.version){var t=e.identifier+"="+e.version;u.push(t)}})),e.pluginVersionString=u.join(";"),e.pluginVersionStringArr=u;try{t.initialize(n,r,i,a),e.pollInternalLogs("InternalLog")}catch(f){var s=e.logger,l=(0,P.mm)(f);-1!==l.indexOf("channels")&&(l+="\n - Channels must be provided through config.channels only!"),(0,I.ZP)(s,1,514,"SDK Initialization Failed - no telemetry will be sent: "+l)}}),(function(){return{config:n,extensions:r,logger:i,notificationManager:a}}))},e.track=function(n){(0,T.r2)(e,(function(){return"AppInsightsCore.track"}),(function(){var r=n;if(r){r.timings=r.timings||{},r.timings.trackStart=(0,z.WB)(),(0,z.Hh)(r.latency)||(r.latency=1);var i=r.ext=r.ext||{};i.sdk=i.sdk||{},i.sdk.ver=z.xE;var a=r.baseData=r.baseData||{};a[B._0]=a[B._0]||{};var o=a[B._0];o[B.hj]=o[B.hj]||e.pluginVersionString||B.m5}t.track(r)}),(function(){return{item:n}}),!n.sync)}})),n}return(0,a.qU)(t,e),t.__ieDyn=1,t}(H),K=G,q=n(32393),W="REAL_TIME",J="NEAR_REAL_TIME",j="BEST_EFFORT",X="",$="POST",Y="drop",Z="send",Q="requeue",ee="rspFail",te="application/x-json-stream",ne="cache-control",re="content-type",ie="kill-duration",ae="time-delta-millis",oe="client-version",ue="client-id",ce="time-delta-to-apply-millis",se="upload-time",le="apikey",fe="AuthMsaDeviceTicket",de="AuthXToken";function pe(e){var t=(e.ext||{}).intweb;return t&&(0,z.yD)(t.msfpc)?t.msfpc:null}function ge(e){for(var t=null,n=0;null===t&&n<e.length;n++)t=pe(e[n]);return t}var ve=function(){function e(t,n){var r=n?[].concat(n):[],i=this,a=ge(r);i.iKey=function(){return t},i.Msfpc=function(){return a||X},i.count=function(){return r.length},i.events=function(){return r},i.addEvent=function(e){return!!e&&(r.push(e),a||(a=pe(e)),!0)},i.split=function(n,i){var u;if(n<r.length){var c=r.length-n;(0,o.hX)(i)||(c=i<c?i:c),u=r.splice(n,c),a=ge(r)}return new e(t,u)}}return e.create=function(t,n){return new e(t,n)},e}(),me=function(){function e(){var t=!0,n=!0,r=!0,i="use-collector-delta",a=!1;(0,g.A)(e,this,(function(e){e.allowRequestSending=function(){return t},e.firstRequestSent=function(){r&&(r=!1,a||(t=!1))},e.shouldAddClockSkewHeaders=function(){return n},e.getClockSkewHeaderValue=function(){return i},e.setClockSkew=function(e){a||(e?(i=e,n=!0,a=!0):n=!1,t=!0)}}))}return e.__ieDyn=1,e}(),he=function(){function e(){var t={};(0,g.A)(e,this,(function(e){e.setKillSwitchTenants=function(e,n){if(e&&n)try{var r=function(e){var t=[];return e&&(0,o.Iu)(e,(function(e){t.push((0,o.EH)(e))})),t}(e.split(","));if("this-request-only"===n)return r;for(var i=1e3*parseInt(n,10),a=0;a<r.length;++a)t[r[a]]=(0,o.x3)()+i}catch(u){return[]}return[]},e.isTenantKilled=function(e){var n=t,r=(0,o.EH)(e);return void 0!==n[r]&&n[r]>(0,o.x3)()||(delete n[r],!1)}}))}return e.__ieDyn=1,e}(),ye=n(50068);function Ce(e){var t,n=Math.floor(1200*Math.random())+2400;return t=Math.pow(2,e)*n,Math.min(t,6e5)}var Ie,Te=2e6,Pe=Math.min(Te,65e3),Ee=/\./,be=function(){function e(t,n,r,i){var a="data",u="baseData",c=!!i,s=n,l={};(0,g.A)(e,this,(function(e){function n(e,t,i,a,u,f,d){(0,o.z)(e,(function(e,p){var g=null;if(p||(0,z.yD)(p)){var v=i,m=e,h=u,y=t;if(c&&!a&&Ee.test(e)){var C=e.split("."),I=C.length;if(I>1){h&&(h=h.slice());for(var T=0;T<I-1;T++){var P=C[T];y=y[P]=y[P]||{},v+="."+P,h&&h.push(P)}m=C[I-1]}}var E=a&&function(e,t){var n=l[e];return void 0===n&&(e.length>=7&&(n=(0,o.tG)(e,"ext.metadata")||(0,o.tG)(e,"ext.web")),l[e]=n),n}(v);if(g=!E&&s&&s.handleField(v,m)?s.value(v,m,p,r):(0,z.TC)(m,p,r)){var b=g.value;if(y[m]=b,f&&f(h,m,g),d&&"object"===typeof b&&!(0,o.cy)(b)){var S=h;S&&(S=S.slice()).push(m),n(p,b,v+"."+m,a,S,f,d)}}}}))}e.createPayload=function(e,t,n,r,i,a){return{apiKeys:[],payloadBlob:X,overflow:null,sizeExceed:[],failedEvts:[],batches:[],numEvents:0,retryCnt:e,isTeardown:t,isSync:n,isBeacon:r,sendType:a,sendReason:i}},e.appendPayload=function(n,r,i){var a=n&&r&&!n.overflow;return a&&(0,T.r2)(t,(function(){return"Serializer:appendPayload"}),(function(){for(var t=r.events(),a=n.payloadBlob,u=n.numEvents,c=!1,s=[],l=[],f=n.isBeacon,d=f?65e3:3984588,p=f?Pe:Te,g=0,v=0;g<t.length;){var m=t[g];if(m){if(u>=i){n.overflow=r.split(g);break}var h=e.getEventBlob(m);if(h&&h.length<=p){var y=h.length;if(a.length+y>d){n.overflow=r.split(g);break}a&&(a+="\n"),a+=h,++v>20&&(a.substr(0,1),v=0),c=!0,u++}else h?s.push(m):l.push(m),t.splice(g,1),g--}g++}if(s&&s.length>0&&n.sizeExceed.push(ve.create(r.iKey(),s)),l&&l.length>0&&n.failedEvts.push(ve.create(r.iKey(),l)),c){n.batches.push(r),n.payloadBlob=a,n.numEvents=u;var C=r.iKey();-1===(0,o.rD)(n.apiKeys,C)&&n.apiKeys.push(C)}}),(function(){return{payload:n,theBatch:{iKey:r.iKey(),evts:r.events()},max:i}})),a},e.getEventBlob=function(e){try{return(0,T.r2)(t,(function(){return"Serializer.getEventBlob"}),(function(){var t={};t.name=e.name,t.time=e.time,t.ver=e.ver,t.iKey="o:"+(0,z.EO)(e.iKey);var r={},i=e.ext;i&&(t.ext=r,(0,o.z)(i,(function(e,t){n(t,r[e]={},"ext."+e,!0,null,null,!0)})));var c=t.data={};c.baseType=e.baseType;var s=c.baseData={};return n(e.baseData,s,u,!1,[u],(function(e,t,n){Se(r,e,t,n)}),true),n(e.data,c,a,!1,[],(function(e,t,n){Se(r,e,t,n)}),true),JSON.stringify(t)}),(function(){return{item:e}}))}catch(r){return null}}}))}return e.__ieDyn=1,e}();function Se(e,t,n,r){if(r&&e){var i=(0,z.Go)(r.value,r.kind,r.propertyType);if(i>-1){var a=e.metadata;a||(a=e.metadata={f:{}});var u=a.f;if(u||(u=a.f={}),t)for(var c=0;c<t.length;c++){var s=t[c];u[s]||(u[s]={f:{}});var l=u[s].f;l||(l=u[s].f={}),u=l}u=u[n]={},(0,o.cy)(r.value)?u.a={t:i}:u.t=i}}}var Ae="&NoResponseBody=true",De=((Ie={})[1]=Q,Ie[100]=Q,Ie[200]="sent",Ie[8004]=Y,Ie[8003]=Y,Ie),we={},Ne={};function ke(e,t,n){we[e]=t,!1!==n&&(Ne[t]=e)}function _e(e){try{return e.responseText}catch(t){}return X}function Me(e,t){var n=!1;if(e&&t){var r=(0,o.cG)(e);if(r&&r.length>0)for(var i=t.toLowerCase(),a=0;a<r.length;a++){var u=r[a];if(u&&(0,o.mQ)(t,u)&&u.toLowerCase()===i){n=!0;break}}}return n}function xe(e,t,n,r){t&&n&&n.length>0&&(r&&we[t]?(e.hdrs[we[t]]=n,e.useHdrs=!0):e.url+="&"+t+"="+n)}function Oe(e,t){return t&&((0,o.Et)(t)?e=[t].concat(e):(0,o.cy)(t)&&(e=t.concat(e))),e}ke(fe,fe,!1),ke(oe,oe),ke(ue,"Client-Id"),ke(le,le),ke(ce,ce),ke(se,se),ke(de,de);var Re=function(){function e(t,n,r,i,a){this._responseHandlers=[];var u,c,s,l,f,d,p,v,m,h,y="?cors=true&"+re.toLowerCase()+"="+te,C=new he,E=!1,b=new me,S=!1,A=0,D=!0,w=[],N={},k=[],_=null,M=!1,x=!1,O=!1;(0,g.A)(e,this,(function(e){var g=!0;function R(e,t){for(var n=0,r=null,i=0;null==r&&i<e.length;)1===(n=e[i])?(0,P.PV)()?r=L:(0,P.xk)()&&(r=V):2===n&&(0,P.R7)(t)&&(!t||t&&!v)?r=U:S&&3===n&&(0,P.Uf)()&&(r=H),i++;return r?{_transport:n,_isSync:t,sendPOST:r}:null}function L(e,t,n){var r=new XDomainRequest;r.open($,e.urlString),e.timeout&&(r.timeout=e.timeout),r.onload=function(){var e=_e(r);F(t,200,{},e),ge(e)},r.onerror=function(){F(t,400,{})},r.ontimeout=function(){F(t,500,{})},r.onprogress=function(){},n?r.send(e.data):a.set((function(){r.send(e.data)}),0)}function U(e,t,n){var r,i=e.urlString,u=!1,c=!1,s=((r={body:e.data,method:$}).Microsoft_ApplicationInsights_BypassAjaxInstrumentation=!0,r);n&&(s.keepalive=!0,2===e._sendReason&&(u=!0,h&&(i+=Ae))),g&&(s.credentials="include"),e.headers&&(0,o.cG)(e.headers).length>0&&(s.headers=e.headers),fetch(i,s).then((function(e){var n={},r=X,i=e.headers;i&&i.forEach((function(e,t){n[t]=e})),e.body&&e.text().then((function(e){r=e})),c||(c=!0,F(t,e.status,n,r),ge(r))})).catch((function(e){c||(c=!0,F(t,0,{}))})),u&&!c&&(c=!0,F(t,200,{})),!c&&e.timeout>0&&a.set((function(){c||(c=!0,F(t,500,{}))}),e.timeout)}function V(e,t,n){var r=e.urlString;function i(e,t,n){if(!e[n]&&t&&t.getResponseHeader){var r=t.getResponseHeader(n);r&&(e[n]=(0,o.EH)(r))}return e}function a(e){var t={};return e.getAllResponseHeaders?t=function(e){var t={};if((0,o.Kg)(e)){var n=(0,o.EH)(e).split(/[\r\n]+/);(0,o.Iu)(n,(function(e){if(e){var n=e.indexOf(": ");if(-1!==n){var r=(0,o.EH)(e.substring(0,n)).toLowerCase(),i=(0,o.EH)(e.substring(n+1));t[r]=i}else t[(0,o.EH)(e)]=1}}))}return t}(e.getAllResponseHeaders()):(t=i(t,e,ae),t=i(t,e,ie),t=i(t,e,"kill-duration-seconds")),t}function u(e,n){F(t,e.status,a(e),n)}n&&e.disableXhrSync&&(n=!1);var c=(0,z.H$)($,r,g,!0,n,e.timeout);(0,o.z)(e.headers,(function(e,t){c.setRequestHeader(e,t)})),c.onload=function(){var e=_e(c);u(c,e),ge(e)},c.onerror=function(){u(c)},c.ontimeout=function(){u(c)},c.send(e.data)}function F(e,t,n,r){try{e(t,n,r)}catch(i){(0,I.ZP)(c,2,518,(0,P.mm)(i))}}function H(e,t,n){var r=200,i=e._thePayload,a=e.urlString+(h?Ae:X);try{var u=(0,P.w3)();if(!u.sendBeacon(a,e.data))if(i){var s=[];(0,o.Iu)(i.batches,(function(e){if(s&&e&&e.count()>0){for(var t=e.events(),n=0;n<t.length;n++)if(!u.sendBeacon(a,_.getEventBlob(t[n]))){s.push(e.split(n));break}}else s.push(e.split(0))})),ve(s,8003,i.sendType,!0)}else r=0}catch(l){(0,I.OG)(c,"Failed to send telemetry using sendBeacon API. Ex:"+(0,P.mm)(l)),r=0}finally{F(t,r,{},X)}}function B(e){return 2===e||3===e}function G(e){return x&&B(e)&&(e=2),e}function K(){return!E&&A<n}function q(){var e=k;return k=[],e}function W(e,t,n){var r=!1;return e&&e.length>0&&!E&&s[t]&&_&&(r=0!==t||K()&&(n>0||b.allowRequestSending())),r}function J(e){var t={};return e&&(0,o.Iu)(e,(function(e,n){t[n]={iKey:e.iKey(),evts:e.events()}})),t}function j(e,n,r,i,a){if(e&&0!==e.length)if(E)ve(e,1,i);else{i=G(i);try{var o=e,u=0!==i;(0,T.r2)(l,(function(){return"HttpManager:_sendBatches"}),(function(o){o&&(e=e.slice(0));for(var c=[],l=null,f=(0,z.WB)(),d=s[i]||(u?s[1]:s[0]),p=d&&d._transport,g=m&&(x||B(i)||3===p||d._isSync&&2===p);W(e,i,n);){var v=e.shift();v&&v.count()>0&&(C.isTenantKilled(v.iKey())?c.push(v):(l=l||_.createPayload(n,r,u,g,a,i),_.appendPayload(l,v,t)?null!==l.overflow&&(e=[l.overflow].concat(e),l.overflow=null,de(l,f,(0,z.WB)(),a),f=(0,z.WB)(),l=null):(de(l,f,(0,z.WB)(),a),f=(0,z.WB)(),e=[v].concat(e),l=null)))}l&&de(l,f,(0,z.WB)(),a),e.length>0&&(k=e.concat(k)),ve(c,8004,i)}),(function(){return{batches:J(o),retryCount:n,isTeardown:r,isSynchronous:u,sendReason:a,useSendBeacon:B(i),sendType:i}}),!u)}catch(f){(0,I.ZP)(c,2,48,"Unexpected Exception sending batch: "+(0,P.mm)(f))}}}function Q(e,t){var n={url:y,hdrs:{},useHdrs:!1};t?(n.hdrs=(0,z.X$)(n.hdrs,N),n.useHdrs=(0,o.cG)(n.hdrs).length>0):(0,o.z)(N,(function(e,t){Ne[e]?xe(n,Ne[e],t,!1):(n.hdrs[e]=t,n.useHdrs=!0)})),xe(n,ue,"NO_AUTH",t),xe(n,oe,z.xE,t);var r=X;(0,o.Iu)(e.apiKeys,(function(e){r.length>0&&(r+=","),r+=e})),xe(n,le,r,t),xe(n,se,(0,o.x3)().toString(),t);var i=function(e){for(var t=0;t<e.batches.length;t++){var n=e.batches[t].Msfpc();if(n)return encodeURIComponent(n)}return X}(e);if((0,z.yD)(i)&&(n.url+="&ext.intweb.msfpc="+i),b.shouldAddClockSkewHeaders()&&xe(n,ce,b.getClockSkewHeaderValue(),t),l.getWParam){var a=l.getWParam();a>=0&&(n.url+="&w="+a)}for(var u=0;u<w.length;u++)n.url+="&"+w[u].name+"="+w[u].value;return n}function fe(e,t,n){e[t]=e[t]||{},e[t][u.identifier]=n}function de(t,n,i,a){if(t&&t.payloadBlob&&t.payloadBlob.length>0){var f=!!e.sendHook,g=s[t.sendType];!B(t.sendType)&&t.isBeacon&&2===t.sendReason&&(g=s[2]||s[3]||g);var m=O;(t.isBeacon||3===g._transport)&&(m=!1);var h=Q(t,m);m=m||h.useHdrs;var y=(0,z.WB)();(0,T.r2)(l,(function(){return"HttpManager:_doPayloadSend"}),(function(){for(var s=0;s<t.batches.length;s++)for(var E=t.batches[s].events(),S=0;S<E.length;S++){var w=E[S];if(M){var N=w.timings=w.timings||{};fe(N,"sendEventStart",y),fe(N,"serializationStart",n),fe(N,"serializationCompleted",i)}w.sendAttempt>0?w.sendAttempt++:w.sendAttempt=1}ve(t.batches,1e3+(a||0),t.sendType,!0);var k={data:t.payloadBlob,urlString:h.url,headers:h.hdrs,_thePayload:t,_sendReason:a,timeout:d,disableXhrSync:p,disableFetchKeepAlive:v};m&&(Me(k.headers,ne)||(k.headers["cache-control"]="no-cache, no-store"),Me(k.headers,re)||(k.headers["content-type"]=te));var _=null;g&&(_=function(n){b.firstRequestSent();var i=function(n,i){!function(t,n,i,a){var c=9e3,s=null,l=!1,f=!1;try{var d=!0;if(typeof t!==ye.bA){if(n){b.setClockSkew(n["time-delta-millis"]);var p=n["kill-duration"]||n["kill-duration-seconds"];(0,o.Iu)(C.setKillSwitchTenants(n["kill-tokens"],p),(function(e){(0,o.Iu)(i.batches,(function(t){if(t.iKey()===e){s=s||[];var n=t.split(0);i.numEvents-=n.count(),s.push(n)}}))}))}if(200==t||204==t)return void(c=200);((v=t)>=300&&v<500&&408!=v&&429!=v||501==v||505==v||i.numEvents<=0)&&(d=!1),c=9e3+t%1e3}if(d){c=100;var g=i.retryCnt;0===i.sendType&&(g<r?(l=!0,pe((function(){0===i.sendType&&A--,j(i.batches,g+1,i.isTeardown,x?2:i.sendType,5)}),x,Ce(g))):(f=!0,x&&(c=8001)))}}finally{l||(b.setClockSkew(),function(t,n,r,i){try{i&&u._backOffTransmission(),200===n&&(i||t.isSync||u._clearBackOff(),function(e){if(M){var t=(0,z.WB)();(0,o.Iu)(e,(function(e){e&&e.count()>0&&function(e,t){M&&(0,o.Iu)(e,(function(e){fe(e.timings=e.timings||{},"sendEventCompleted",t)}))}(e.events(),t)}))}}(t.batches)),ve(t.batches,n,t.sendType,!0)}finally{0===t.sendType&&(A--,5!==r&&e.sendQueuedRequests(t.sendType,r))}}(i,c,a,f)),ve(s,8004,i.sendType)}var v}(n,i,t,a)},s=t.isTeardown||t.isSync;try{g.sendPOST(n,i,s),e.sendListener&&e.sendListener(k,n,s,t.isBeacon)}catch(l){(0,I.OG)(c,"Unexpected exception sending payload. Ex:"+(0,P.mm)(l)),F(i,0,{})}}),(0,T.r2)(l,(function(){return"HttpManager:_doPayloadSend.sender"}),(function(){if(_)if(0===t.sendType&&A++,f&&!t.isBeacon&&3!==g._transport){var n={data:k.data,urlString:k.urlString,headers:(0,z.X$)({},k.headers),timeout:k.timeout,disableXhrSync:k.disableXhrSync,disableFetchKeepAlive:k.disableFetchKeepAlive},r=!1;(0,T.r2)(l,(function(){return"HttpManager:_doPayloadSend.sendHook"}),(function(){try{e.sendHook(n,(function(e){r=!0,D||e._thePayload||(e._thePayload=e._thePayload||k._thePayload,e._sendReason=e._sendReason||k._sendReason),_(e)}),t.isSync||t.isTeardown)}catch(i){r||_(k)}}))}else _(k)}))}),(function(){return{thePayload:t,serializationStart:n,serializationCompleted:i,sendReason:a}}),t.isSync)}t.sizeExceed&&t.sizeExceed.length>0&&ve(t.sizeExceed,8003,t.sendType),t.failedEvts&&t.failedEvts.length>0&&ve(t.failedEvts,8002,t.sendType)}function pe(e,t,n){t?e():a.set(e,n)}function ge(t){var n=e._responseHandlers;try{for(var r=0;r<n.length;r++)try{n[r](t)}catch(a){(0,I.ZP)(c,1,519,"Response handler failed: "+a)}if(t){var i=JSON.parse(t);(0,z.yD)(i.webResult)&&(0,z.yD)(i.webResult.msfpc)&&f.set("MSFPC",i.webResult.msfpc,31536e3)}}catch(o){}}function ve(e,t,n,r){if(e&&e.length>0&&i){var a=i[function(e){var t=De[e];(0,z.yD)(t)||(t="oth",e>=9e3&&e<=9999?t=ee:e>=8e3&&e<=8999?t=Y:e>=1e3&&e<=1999&&(t=Z));return t}(t)];if(a){var o=0!==n;(0,T.r2)(l,(function(){return"HttpManager:_sendBatchesNotification"}),(function(){pe((function(){try{a.call(i,e,t,o,n)}catch(r){(0,I.ZP)(c,1,74,"send request notification failed: "+r)}}),r||o,0)}),(function(){return{batches:J(e),reason:t,isSync:o,sendSync:r,sendType:n}}),!o)}}}e.initialize=function(e,t,n,r,i){var a;i||(i={}),y=e+y,O=!!(0,o.b0)(i.avoidOptions)||!i.avoidOptions,l=t,f=t.getCookieMgr(),M=!l.config.disableEventTimings;var C=!!l.config.enableCompoundKey;c=(u=n).diagLog();var T=i.valueSanitizer,E=i.stringifyObjects;(0,o.b0)(i.enableCompoundKey)||(C=!!i.enableCompoundKey),d=i.xhrTimeout,p=!!i.disableXhrSync,v=!!i.disableFetchKeepAlive,h=!1!==i.addNoResponse,S=!(0,P.lV)(),_=new be(l,T,E,C),(0,o.hX)(i.useSendBeacon)||(S=!!i.useSendBeacon);var b=r,A=i.alwaysUseXhrOverride?r:null,w=i.alwaysUseXhrOverride?r:null,N=[3,2];if(!r){D=!1;var k=(0,P.g$)();k&&k.protocol&&"file:"===k.protocol.toLowerCase()&&(g=!1);var x=[];(0,P.lV)()?(x=[2,1],N=[2,1,3]):x=[1,2,3],(r=R(x=Oe(x,i.transports),!1))||(0,I.OG)(c,"No available transport to send events"),b=R(x,!0)}A||(A=R(N=Oe(N,i.unloadTransports),!0)),m=!D&&(S&&(0,P.Uf)()||!v&&(0,P.R7)(!0)),(a={})[0]=r,a[1]=b||R([1,2,3],!0),a[2]=A||b||R([1],!0),a[3]=w||R([2,3],!0)||b||R([1],!0),s=a},e._getDbgPlgTargets=function(){return[s[0],C,_,s]},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){N[e]=t},e.canSendRequest=function(){return K()&&b.allowRequestSending()},e.sendQueuedRequests=function(e,t){(0,o.b0)(e)&&(e=0),x&&(e=G(e),t=2),W(k,e,0)&&j(q(),0,!1,e,t||0)},e.isCompletelyIdle=function(){return!E&&0===A&&0===k.length},e.setUnloading=function(e){x=e},e.addBatch=function(e){if(e&&e.count()>0){if(C.isTenantKilled(e.iKey()))return!1;k.push(e)}return!0},e.teardown=function(){k.length>0&&j(q(),0,!0,2,2)},e.pause=function(){E=!0},e.resume=function(){E=!1,e.sendQueuedRequests(0,4)},e.sendSynchronousBatch=function(e,t,n){e&&e.count()>0&&((0,o.hX)(t)&&(t=1),x&&(t=G(t),n=2),j([e],0,!1,t,n||0))}}))}return e.__ieDyn=1,e}();function Le(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return setTimeout(e,t,n)}function Ue(e){clearTimeout(e)}function Ve(e,t){return{set:e||Le,clear:t||Ue}}var Fe,He="eventsDiscarded",Be=function(e){function t(){var n,r=e.call(this)||this;r.identifier="PostChannel",r.priority=1011,r.version="3.2.18";var i,a,u,c,s,l,f,d=!1,p=[],v=null,m=!1,h=0,y=500,E=0,b=1e4,S={},A=W,D=null,w=null,k=0,_=0,M={},x=-1,O=!0,R=!1,L=6,U=2;return(0,g.A)(t,r,(function(e,t){function r(e){"beforeunload"!==(e||(0,P.zk)().event).type&&(R=!0,a.setUnloading(R)),$(2,2)}function g(e){R=!1,a.setUnloading(R)}function V(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,O&&(z.u9,e.ext=(0,o.hW)(e.ext),e.baseData&&(e.baseData=(0,o.hW)(e.baseData)),e.data&&(e.data=(0,o.hW)(e.data))),e.sync)if(k||m)e.latency=3,e.sync=!1;else if(a)return O&&(e=(0,o.hW)(e)),void a.sendSynchronousBatch(ve.create(e.iKey,[e]),!0===e.sync?1:e.sync,3);var n=e.latency,r=E,i=b;4===n&&(r=h,i=y);var u=!1;if(r<i)u=!Q(e,t);else{var c=1,s=20;4===n&&(c=4,s=1),u=!0,function(e,t,n,r){for(;n<=t;){var i=Y(e,t,!0);if(i&&i.count()>0){var a=i.split(0,r),o=a.count();if(o>0)return 4===n?h-=o:E-=o,ce(He,[a],C.QueueFull),!0}n++}return ee(),!1}(e.iKey,e.latency,c,s)&&(u=!Q(e,t))}u&&ue(He,[e],C.QueueFull)}function F(e,t,n){var r=te(e,t,n);return a.sendQueuedRequests(t,n),r}function H(){return E>0}function B(){if(x>=0&&te(x,0,s)&&a.sendQueuedRequests(0,s),h>0&&!w&&!m){var e=S[A][2];e>=0&&(w=K((function(){w=null,F(4,0,1),B()}),e))}var t=S[A][1];!D&&!v&&t>=0&&!m&&(H()?D=K((function(){D=null,F(0===_?3:1,0,1),_++,_%=2,B()}),t):_=0)}function G(){n=null,d=!1,p=[],v=null,m=!1,h=0,y=500,E=0,b=1e4,S={},A=W,D=null,w=null,k=0,_=0,i=null,M={},u=void 0,c=0,x=-1,s=null,O=!0,R=!1,L=6,U=2,l=null,f=Ve(),a=new Re(500,2,1,{requeue:ae,send:se,sent:le,drop:de,rspFail:pe,oth:ge},f),ie(),M[4]={batches:[],iKeyMap:{}},M[3]={batches:[],iKeyMap:{}},M[2]={batches:[],iKeyMap:{}},M[1]={batches:[],iKeyMap:{}},me()}function K(e,t){0===t&&k&&(t=1);var n=1e3;return k&&(n=Ce(k-1)),f.set(e,t*n)}function X(){return null!==D&&(f.clear(D),D=null,_=0,!0)}function $(e,t){X(),v&&(f.clear(v),v=null),m||F(1,e,t)}function Y(e,t,n){var r=M[t];r||(r=M[t=1]);var i=r.iKeyMap[e];return!i&&n&&(i=ve.create(e),r.batches.push(i),r.iKeyMap[e]=i),i}function Z(t,n){a.canSendRequest()&&!k&&(u>0&&E>u&&(n=!0),n&&null==v&&e.flush(t,null,20))}function Q(e,t){O&&(e=(0,o.hW)(e));var n=e.latency,r=Y(e.iKey,n,!0);return!!r.addEvent(e)&&(4!==n?(E++,t&&0===e.sendAttempt&&Z(!e.sync,c>0&&r.count()>=c)):h++,!0)}function ee(){for(var e=0,t=0,n=function(n){var r=M[n];r&&r.batches&&(0,o.Iu)(r.batches,(function(r){4===n?e+=r.count():t+=r.count()}))},r=1;r<=4;r++)n(r);E=t,h=e}function te(t,n,r){var i=!1,u=0===n;return!u||a.canSendRequest()?(0,T.r2)(e.core,(function(){return"PostChannel._queueBatches"}),(function(){for(var e=[],n=4;n>=t;){var r=M[n];r&&r.batches&&r.batches.length>0&&((0,o.Iu)(r.batches,(function(t){a.addBatch(t)?i=i||t&&t.count()>0:e=e.concat(t.events()),4===n?h-=t.count():E-=t.count()})),r.batches=[],r.iKeyMap={}),n--}e.length>0&&ue(He,e,C.KillSwitch),i&&x>=t&&(x=-1,s=0)}),(function(){return{latency:t,sendType:n,sendReason:r}}),!u):(x=x>=0?Math.min(x,t):t,s=Math.max(s,r)),i}function ne(e,t){F(1,0,t),ee(),re((function(){e&&e(),p.length>0?v=K((function(){v=null,ne(p.shift(),t)}),0):(v=null,B())}))}function re(e){a.isCompletelyIdle()?e():v=K((function(){v=null,re(e)}),.25)}function ie(){(S={})[W]=[2,1,0],S[J]=[6,3,0],S[j]=[18,9,0]}function ae(t,n){var r=[],i=L;R&&(i=U),(0,o.Iu)(t,(function(t){t&&t.count()>0&&(0,o.Iu)(t.events(),(function(t){t&&(t.sync&&(t.latency=4,t.sync=!1),t.sendAttempt<i?((0,z.u9)(t,e.identifier),V(t,!1)):r.push(t))}))})),r.length>0&&ue(He,r,C.NonRetryableStatus),R&&$(2,2)}function oe(t,n){var r=e._notificationManager||{},i=r[t];if(i)try{i.apply(r,n)}catch(a){(0,I.ZP)(e.diagLog(),1,74,t+" notification failed: "+a)}}function ue(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&oe(e,[t].concat(n))}function ce(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];t&&t.length>0&&(0,o.Iu)(t,(function(t){t&&t.count()>0&&oe(e,[t.events()].concat(n))}))}function se(e,t,n){e&&e.length>0&&oe("eventsSendRequest",[t>=1e3&&t<=1999?t-1e3:0,!0!==n])}function le(e,t){ce("eventsSent",e,t),B()}function de(e,t){ce(He,e,t>=8e3&&t<=8999?t-8e3:C.Unknown)}function pe(e){ce(He,e,C.NonRetryableStatus),B()}function ge(e,t){ce(He,e,C.Unknown),B()}function me(){c=n&&n.disableAutoBatchFlushLimit?0:Math.max(1500,b/6)}G(),e._getDbgPlgTargets=function(){return[a]},e.initialize=function(c,s,d){(0,T.r2)(s,(function(){return"PostChannel:initialize"}),(function(){var p=s;t.initialize(c,s,d);try{s.addUnloadCb;l=(0,q.Hm)((0,N.Z)(e.identifier),s.evtNamespace&&s.evtNamespace());var v=e._getTelCtx();c.extensionConfig[e.identifier]=c.extensionConfig[e.identifier]||{},n=v.getExtCfg(e.identifier),f=Ve(n.setTimeoutOverride,n.clearTimeoutOverride),O=!n.disableOptimizeObj&&(0,z.F2)(),function(e){var t=e.getWParam;e.getWParam=function(){var e=0;return n.ignoreMc1Ms0CookieProcessing&&(e|=2),e|t()}}(p),n.eventsLimitInMem>0&&(b=n.eventsLimitInMem),n.immediateEventLimit>0&&(y=n.immediateEventLimit),n.autoFlushEventsLimit>0&&(u=n.autoFlushEventsLimit),(0,o.Et)(n.maxEventRetryAttempts)&&(L=n.maxEventRetryAttempts),(0,o.Et)(n.maxUnloadEventRetryAttempts)&&(U=n.maxUnloadEventRetryAttempts),me(),n.httpXHROverride&&n.httpXHROverride.sendPOST&&(i=n.httpXHROverride),(0,z.yD)(c.anonCookieName)&&a.addQueryStringParameter("anoncknm",c.anonCookieName),a.sendHook=n.payloadPreprocessor,a.sendListener=n.payloadListener;var m=n.overrideEndpointUrl?n.overrideEndpointUrl:c.endpointUrl;e._notificationManager=s.getNotifyMgr(),a.initialize(m,e.core,e,i,n);var h=c.disablePageUnloadEvents||[];(0,q.ee)(r,h,l),(0,q.Fc)(r,h,l),(0,q.oS)(g,c.disablePageShowEvents,l)}catch(C){throw e.setInitialized(!1),C}}),(function(){return{coreConfig:c,core:s,extensions:d}}))},e.processTelemetry=function(t,r){(0,z.u9)(t,e.identifier);var i=(r=e._getTelCtx(r)).getExtCfg(e.identifier),a=!!n.disableTelemetry;i&&(a=a||!!i.disableTelemetry);var o=t;a||d||(n.overrideInstrumentationKey&&(o.iKey=n.overrideInstrumentationKey),i&&i.overrideInstrumentationKey&&(o.iKey=i.overrideInstrumentationKey),V(o,!0),R?$(2,2):B()),e.processNext(o,r)},e._doTeardown=function(e,t){$(2,2),d=!0,a.teardown(),(0,q.Ds)(null,l),(0,q.sq)(null,l),(0,q.vF)(null,l),G()},e.setEventQueueLimits=function(e,t){b=e>0?e:1e4,u=t>0?t:0,me();var n=E>e;if(!n&&c>0)for(var r=1;!n&&r<=3;r++){var i=M[r];i&&i.batches&&(0,o.Iu)(i.batches,(function(e){e&&e.count()>=c&&(n=!0)}))}Z(!0,n)},e.pause=function(){X(),m=!0,a.pause()},e.resume=function(){m=!1,a.resume(),B()},e.addResponseHandler=function(e){a._responseHandlers.push(e)},e._loadTransmitProfiles=function(e){X(),ie(),A=W,B(),(0,o.z)(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 i=t[0]/t[1];t[0]=Math.ceil(i)*t[1]}r>=0&&t[1]>=0&&r>t[1]&&(r=t[1]),t.push(r),S[e]=t}}))},e.flush=function(e,t,n){if(void 0===e&&(e=!0),!m)if(n=n||1,e)null==v?(X(),te(1,0,n),v=K((function(){v=null,ne(t,n)}),0)):p.push(t);else{var r=X();F(1,1,n),null!==t&&void 0!==t&&t(),r&&B()}},e.setMsaAuthTicket=function(e){a.addHeader(fe,e)},e.hasEvents=H,e._setTransmitProfile=function(e){A!==e&&void 0!==S[e]&&(X(),A=e,B())},e._backOffTransmission=function(){k<4&&(k++,X(),B())},e._clearBackOff=function(){k&&(k=0,X(),B())},(0,o.r)(e,"_setTimeoutOverride",(function(){return f.set}),(function(e){f=Ve(e,f.clear)})),(0,o.r)(e,"_clearTimeoutOverride",(function(){return f.clear}),(function(e){f=Ve(f.set,e)}))})),r}return(0,a.qU)(t,e),t.__ieDyn=1,t}(_.s),ze=Be,Ge="locale",Ke="ver",qe="name",We=c({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"]}),Je=c({id:[0,"id"],ver:[1,Ke],appName:[2,qe],locale:[3,Ge],expId:[4,"expId"],env:[5,"env"]}),je=c({domain:[0,"domain"],browser:[1,"browser"],browserVer:[2,"browserVer"],screenRes:[3,"screenRes"],userConsent:[4,"userConsent"],consentDetails:[5,"consentDetails"]}),Xe=c({locale:[0,Ge],localId:[1,"localId"],id:[2,"id"]}),$e=c({osName:[0,qe],ver:[1,Ke]}),Ye=c({ver:[0,Ke],seq:[1,"seq"],installId:[2,"installId"],epoch:[3,"epoch"]}),Ze=c({msfpc:[0,"msfpc"],anid:[1,"anid"],serviceName:[2,"serviceName"]}),Qe=c({popSample:[0,"popSample"],eventFlags:[1,"eventFlags"]}),et=c({tz:[0,"tz"]}),tt=c({sessionId:[0,"sesId"]}),nt=c({localId:[0,"localId"],deviceClass:[1,"deviceClass"],make:[2,"make"],model:[3,"model"]}),rt=c({role:[0,"role"],roleInstance:[1,"roleInstance"],roleVer:[2,"roleVer"]}),it=c({traceId:[0,"traceID"],traceName:[1,qe],parentId:[2,"parentID"]}),at=c({traceId:[0,"traceId"],spanId:[1,"spanId"],traceFlags:[2,"traceFlags"]}),ot=n(35356),ut=n(52691);function ct(){return void 0===Fe&&(Fe=!!lt(0)),Fe}function st(){return ct()?lt(0):null}function lt(e){var t,n,r=null;try{var i=(0,E.mS)();if(!i)return null;n=new Date,(r=0===e?i.localStorage:i.sessionStorage)&&(0,o.Tn)(r.setItem)&&(r.setItem(n,n),t=r.getItem(n)!==n,r.removeItem(n),t&&(r=null))}catch(a){r=null}return r}function ft(){return this.getId()}function dt(e){this.setId(e)}var pt=function(){function e(){(0,g.A)(e,this,(function(e){e.setId=function(t){e.customId=t},e.getId=function(){return(0,o.Kg)(e.customId)?e.customId:e.automaticId}}))}return e._staticInit=void(0,o.r)(e.prototype,"id",ft,dt),e}(),gt="ai_session",vt=function(){function e(t,n){var r,i,a=(0,I.y0)(t),u=(0,w.um)(t);(0,g.A)(e,this,(function(t){var c,s={sessionRenewalMs:(c=n).sessionRenewalMs&&function(){return c.sessionRenewalMs},sessionExpirationMs:c.sessionExpirationMs&&function(){return c.sessionExpirationMs},cookieDomain:c.cookieDomain&&function(){return c.cookieDomain},namePrefix:c.namePrefix&&function(){return c.namePrefix},sessionAsGuid:function(){return c.sessionAsGuid},idLength:function(){return c.idLength?c.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 i=+r[1];n.acquisitionDate=+new Date(i),n.acquisitionDate=n.acquisitionDate>0?n.acquisitionDate:0}if(r.length>2){var o=+r[2];n.renewalDate=+new Date(o),n.renewalDate=n.renewalDate>0?n.renewalDate:0}}catch(u){(0,I.ZP)(a,1,510,"Error parsing ai_session cookie, session will be reset: "+u)}0===n.renewalDate&&(0,I.ZP)(a,2,517,"AI session renewal date is 0, session will be reset.")}function f(){var e=t.automaticSession,n=(new Date).getTime(),r=t.config.sessionAsGuid();!(0,o.b0)(r)&&r?(0,o.Lm)(r)?e.setId((0,z.gj)()):e.setId((0,z.gj)(r)):e.setId((0,ut.Si)(s&&s.idLength?s.idLength():22)),e.acquisitionDate=n,e.renewalDate=n,d(e.getId(),e.acquisitionDate,e.renewalDate),ct()||(0,I.ZP)(a,2,505,"Browser does not support local storage. Session durations will be inaccurate.")}function d(e,n,a){var o=n+t.config.sessionExpirationMs(),c=a+t.config.sessionRenewalMs(),s=new Date,l=[e,n,a];o<c?s.setTime(o):s.setTime(c);var f=t.config.cookieDomain?t.config.cookieDomain():null;u.set(i(),l.join("|")+";expires="+s.toUTCString(),null,f),r=(new Date).getTime()}(0,o.Tn)(n.sessionExpirationMs)||(s.sessionExpirationMs=function(){return e.acquisitionSpan}),(0,o.Tn)(n.sessionRenewalMs)||(s.sessionRenewalMs=function(){return e.renewalSpan}),t.config=s,i=function(){return t.config.namePrefix&&t.config.namePrefix()?gt+t.config.namePrefix():gt},t.automaticSession=new pt,t.update=function(){t.automaticSession.getId()||function(){var e=u.get(i());if(e&&(0,o.Tn)(e.split))l(e);else{var n=function(e,t){var n=st();if(null!==n)try{return n.getItem(t)}catch(r){Fe=!1,(0,I.ZP)(e,1,503,"Browser failed read of local storage. "+r)}return null}(a,i());n&&l(n)}t.automaticSession.getId()||f()}();var n=t.automaticSession,c=t.config,s=(new Date).getTime(),p=s-n.acquisitionDate>c.sessionExpirationMs(),g=s-n.renewalDate>c.sessionRenewalMs();if(p||g)f();else{(!r||s-r>e.cookieUpdateInterval)&&(n.renewalDate=s,d(n.getId(),n.acquisitionDate,n.renewalDate))}},t.backup=function(){var e,n,r,o=t.automaticSession;e=o.getId(),n=o.acquisitionDate,r=o.renewalDate,function(e,t,n){var r=st();if(null!==r)try{r.setItem(t,n)}catch(i){Fe=!1,(0,I.ZP)(e,1,504,"Browser failed write to local storage. "+i)}}(a,i(),[e,n,r].join("|"))}}))}return e.acquisitionSpan=864e5,e.renewalSpan=18e5,e.cookieUpdateInterval=6e4,e}(),mt=["AX","EX","SF","CS","CF","CT","CU","DC","DF","H5","HL","WS","WP"];function ht(e,t){void 0===t&&(t=mt);var n=null;if(e)for(var r=e.split(","),i=0;i<r.length;i++)yt(r[i],t)&&(n?n+=","+r[i]:n=r[i]);return n}function yt(e,t){if(void 0===t&&(t=mt),!e||e.length<4)return!1;for(var n=!1,r=e.substring(0,3).toString().toUpperCase(),i=0;i<t.length;i++)if(t[i]+":"===r&&e.length<=256){n=!0;break}return n}function Ct(){return this.getExpId()}var It=function(){function e(t,n){var r=null,i=mt.slice(0),a="Treatments",o=(0,w.um)(n),u=t;(0,g.A)(e,this,(function(e){if((0,P.Wt)()){var n=(0,P.YE)().documentElement;n&&(e.locale=n.lang)}function c(e){e!==r&&(r=ht(e,i))}e.env=t.env?t.env:function(e){var t,n={},r=(0,P.YE)();if(r){t=r&&r.querySelectorAll("meta");for(var i=0;i<t.length;i++){var a=t[i];if(a.name)if(0===a.name.toLowerCase().indexOf(e)){var o=a.name.replace(e,"");n[o]=a.content}}}return n}("awa-").env,e.getExpId=function(){return u.expId?(c(u.expId),r):(c((0,z.UM)(o,a)),r)}}))}return e.validateAppExpId=ht,e._staticInit=void(0,o.r)(e.prototype,"expId",Ct),e}(),Tt=function(){},Pt=function(){};function Et(){return this.getMsfpc()}function bt(){return this.getAnid()}var St=function(){function e(t,n){var r=(0,w.um)(n);(0,g.A)(e,this,(function(e){t.serviceName&&(e.serviceName=t.serviceName),e.getMsfpc=function(){return(0,z.UM)(r,"MSFPC")},e.getAnid=function(){return(0,z.UM)(r,"ANON").slice(0,34)}}))}return e._staticInit=function(){var t=e.prototype;(0,o.r)(t,"msfpc",Et),(0,o.r)(t,"anid",bt)}(),e}(),At=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())},Dt={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},wt={5.1:"XP","6.0":"Vista",6.1:"7",6.2:"8",6.3:"8.1","10.0":"10"},Nt="Unknown",kt=[{r:Dt.WINPHONE,os:"Windows Phone"},{r:Dt.WINRT,os:"Windows RT"},{r:Dt.WIN,os:"Windows"},{r:Dt.IOS,os:"iOS"},{r:Dt.ANDROID,os:"Android"},{r:Dt.LINUX,os:"Linux"},{r:Dt.CROS,os:"Chrome OS"},{s:"x11",os:"Unix"},{s:"blackberry",os:"BlackBerry"},{s:"symbian",os:"Symbian"},{s:"nokia",os:"Nokia"},{r:Dt.OSX,os:"Mac OS X"}];function _t(e,t){return"Windows"===t?Mt(e,"Windows NT"):"Android"===t?Mt(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=xt(n);return r?n.split(r)[0]:n}}return Nt}(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=xt(n);return r?n.split(r)[0]:n}}return Nt}(e):Nt}function Mt(e,t){var n=e.match(new RegExp(t+" ([\\d,.]+)"));return n?wt[n[1]]?wt[n[1]]:n[1]:Nt}function xt(e){return e.indexOf(".")>-1?".":e.indexOf("_")>-1?"_":null}var Ot=function(e){if(e.populateOperatingSystemInfo){var t=this,n=(0,P.w3)()||{},r=e.userAgent||n.userAgent||"",i=e.userAgentData||n.userAgentData||{};if(r){var a=function(e){for(var t=0;t<kt.length;t++){var n=kt[t];if(n.r&&e.match(n.r))return n.os;if(n.s&&-1!==e.indexOf(n.s))return n.os}return Nt}(r.toLowerCase());t.name=a,t.ver=_t(r,a)}t.name&&t.name!==Nt||!(0,o.Kg)(i.platform)||(t.name=i.platform)}},Rt=n(97454),Lt="MicrosoftApplicationsTelemetryDeviceId";var Ut=function(){function e(t,n){var r=0;(0,g.A)(e,this,(function(e){var i=t.propertyStorageOverride;e.seq=r,e.epoch=(0,ut.VN)(!1).toString();var a=(0,w.um)(n,t);if(a.isEnabled()||i){var o=function(e,t,n){return t?t.getProperty(n)||"":(0,z.UM)(e,n)}(a,i,Lt);o||(o=(0,Rt.aq)()),function(e,t,n,r){t?t.setProperty(n,r):e.set(n,r,31536e3)}(a,i,Lt,o),e.installId=o}else a.purge(Lt);e.getSequenceId=function(){return++r}}))}return e.__ieDyn=1,e}(),Vt=function(e,t,n,r){var i=this;if(i.traceId=t||(0,Rt.cL)(),e.enableDistributedTracing&&!n&&(n=(0,Rt.cL)().substring(0,16)),i.parentId=n,e.enableApplicationInsightsTrace){i.name=r;var a=(0,P.g$)();a&&a.pathname&&(i.name=a.pathname)}};function Ft(){return this.getLocalId()}function Ht(e){this.setLocalId(e)}var Bt=function(){function e(t,n,r){var i,a=n,u=(0,w.um)(r,t);(0,g.A)(e,this,(function(n){if(u&&u.isEnabled()&&(p(),a.enableApplicationInsightsUser)){var r=(0,z.UM)(u,e.userCookieName);if(r){var c=r.split(e.cookieSeparator);c.length>0&&(n.id=c[0])}if(!n.id){n.id=(0,ut.Si)(t&&!(0,o.b0)(t.idLength)?t.idLength:22);var s=(0,o._u)(new Date);n.accountAcquisitionDate=s;var l=[n.id,s],f=a.cookieDomain?a.cookieDomain:void 0;u.set(e.userCookieName,l.join(e.cookieSeparator),31536e3,f)}}if("undefined"!==typeof navigator){var d=navigator;n.locale=d.userLanguage||d.language}function p(){if(!a.hashIdentifiers&&!a.dropIdentifiers){var e=(0,z.UM)(u,"MUID");e&&(i="t:"+e)}return i}n.getLocalId=function(){return i||p()},n.setLocalId=function(e){i=e}}))}return e.cookieSeparator="|",e.userCookieName="ai_user",e._staticInit=void(0,o.r)(e.prototype,"localId",Ft,Ht),e}(),zt=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)},Gt=["Required","Analytics","SocialMedia","Advertising"],Kt="([\\d,.]+)",qt="Unknown",Wt="Edg/",Jt=[{ua:"OPR/",b:"Opera"},{ua:"PhantomJS",b:"PhantomJS"},{ua:"Edge",b:"Edge"},{ua:Wt,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"}],jt=[{br:"Microsoft Edge",b:"Edge"},{br:"Google Chrome",b:"Chrome"},{br:"Opera",b:"Opera"}];function Xt(e,t){return t.indexOf(e)>-1}function $t(e,t){for(var n=0;n<t.length;n++)if(e==t[n].brand)return t[n].version;return null}function Yt(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&&Xt(Wt,t)&&(e="Edg");var n=t.match(new RegExp(e+"/"+Kt));if(n)return n[1];if("Opera"===e&&(n=t.match(new RegExp("OPR/([\\d,.]+)"))))return n[1];return qt}(t,e)}function Zt(){return this.getUserConsent()}var Qt=function(){function e(t,n){var r=(0,w.um)(n),i=t||{};(0,g.A)(e,this,(function(e){var t=(0,P.g$)();if(t){var n=t.hostname;n&&(e.domain="file:"===t.protocol?"local":n)}if(i.populateBrowserInfo){var a=i.userAgent,u=(i.userAgentData||{}).brands,c=(0,P.w3)();c&&(a=a||c.userAgent||"",u=u||(c.userAgentData||{}).brands),function(t,n){if((0,o.cy)(n))try{for(var r=0;r<jt.length;r++){var i=$t(jt[r].br,n);if(i)return e.browser=jt[r].b,void(e.browserVer=i)}}catch(u){}if(t){var a=function(e){if(e)for(var t=0;t<Jt.length;t++)if(Xt(Jt[t].ua,e))return Jt[t].b;return qt}(t);e.browser=a,e.browserVer=Yt(t,a)}}(a,u);var s=function(){var e={h:0,w:0},t=(0,P.zk)();return t&&t.screen&&(e.h=screen.height,e.w=screen.width),e}();e.screenRes=s.w+"X"+s.h}(0,o.b0)(i.gpcDataSharingOptIn)?e.gpcDataSharingOptIn=null:e.gpcDataSharingOptIn=i.gpcDataSharingOptIn,e.getUserConsent=function(){return i.userConsented||!!(0,z.UM)(r,i.userConsentCookieName||"MSCC")},e.getUserConsentDetails=function(){var t=null;try{var n=i.callback;if(n&&n.userConsentDetails){var r=n.userConsentDetails();if(r){t=i.disableConsentDetailsSanitize?r:{};for(var a=0;a<Gt.length;a++){var o=Gt[a];t[o]=r[o]||!1}}}var u=e.gpcDataSharingOptIn;return null!==u&&((t=t||{}).GPC_DataSharingOptIn=!!u),t?JSON.stringify(t):null}catch(c){}},(0,o.r)(e,"userConsent",e.getUserConsent)}))}return e._staticInit=void(0,o.r)(e.prototype,"userConsent",Zt),e}();function en(e,t,n,r,i){var a=t.ext[We[e]];if(a)try{(0,o.z)(r,(function(e,t){if((0,o.Kg)(t)||(0,o.Et)(t)||(0,o.Lm)(t)){var r=a[n[e]];!i&&(r||(0,o.Kg)(r)||(0,o.Et)(r)||(0,o.Lm)(r))&&(t=r),a[n[e]]=t}}))}catch(u){}return a}var tn=function(){function e(t,n,r){(0,g.A)(e,this,(function(e){e.app=new It(n,r),e.cloud=new Tt,e.user=new Bt(t,n,r),e.os=new Ot(n),e.web=new Qt(n,r);var i=new Ut(t,r),a=new St(n,r),u=new zt(n);e.loc=new At,e.device=new Pt;var c=new vt(r,n);e.session=new pt;var s=function(e,t){var n=e||{};return{getName:function(){return n.name},setName:function(e){t&&t.setName(e),n.name=e},getTraceId:function(){return n.traceId},setTraceId:function(e){t&&t.setTraceId(e),(0,ot.hX)(e)&&(n.traceId=e)},getSpanId:function(){return n.parentId},setSpanId:function(e){t&&t.setSpanId(e),(0,ot.wN)(e)&&(n.parentId=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}(new Vt(n),d()),l=!(n||{}).eventContainExtFields;function f(){var t=e.session;if(t&&(0,o.Kg)(t.customId))return t.customId;c.update();var n=c.automaticSession;if(n){var r=n.getId();r&&(0,o.Kg)(r)&&(t.automaticId=r)}return t.automaticId}function d(){var e=s;return r&&r.getTraceCtx&&(e=r.getTraceCtx(!1)||s),e}e.getTraceCtx=function(){return s},e.getSessionId=f,e.applyApplicationContext=function(t){var n,r=e.app;en(4,t,Je,((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;en(0,t,Xe,((n={})[1]=r.getLocalId(),n[0]=r.locale,n[2]=r.id,n),l)},e.applyWebContext=function(t){var n,r=e.web;en(3,t,je,((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;en(5,t,$e,((n={})[0]=r.name,n[1]=r.ver,n),l)},e.applySdkContext=function(e){var t;en(6,e,Ye,((t={})[2]=i.installId,t[1]=i.getSequenceId(),t[3]=i.epoch,t),l)},e.applyIntWebContext=function(e){var t;en(7,e,Ze,((t={})[0]=a.getMsfpc(),t[1]=a.getAnid(),t[2]=a.serviceName,t),l)},e.applyUtcContext=function(e){var t,n=((t={})[0]=u.popSample,t);u.eventFlags>0&&(n[1]=u.eventFlags),en(8,e,Qe,n,l)},e.applyLocContext=function(t){var n;en(9,t,et,((n={})[0]=e.loc.tz,n),l)},e.applySessionContext=function(e){var t;en(4,e,tt,((t={})[0]=f(),t),l)},e.applyDeviceContext=function(t){var n,r=e.device;en(1,t,nt,((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;en(10,t,rt,((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&&en(2,e,it,((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),i=n.getTraceFlags();(0,o.hX)(i)||(r[2]=i),en(11,e,at,r,!1)}}}))}return e.__ieDyn=1,e}();var nn,rn,an=[We[4],We[0],We[3],We[5],We[6],We[7],We[8],We[9],We[1],We[2],We[11],We[10]],on=function(e){function t(){var n,r,i,a=e.call(this)||this;return a.identifier="SystemPropertiesCollector",a.priority=3,a.version="3.2.18",(0,g.A)(t,a,(function(e,t){function a(){n=null,r={}}a(),e.initialize=function(r,a,o){t.initialize(r,a,o),i=e._getTelCtx().getExtCfg(e.identifier),n=new tn(r,i,a),a&&a.setTraceCtx&&a.setTraceCtx(n.getTraceCtx())},e.processTelemetry=function(t,a){(0,z.u9)(t,e.identifier),a=e._getTelCtx(a);var u,c,s=t.ext=t.ext?t.ext:{};t.data=t.data?t.data:{},(0,o.Iu)(an,(function(e){s[e]=s[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),i.enableApplicationInsightsTrace&&n.applyAITraceContext(t),i.enableDistributedTracing&&n.applyDistributedTraceContext(t),n.applyCloudContext(t)),(0,o.Iu)((0,o.cG)(s),(function(e){0===(0,o.cG)(s[e]).length&&delete s[e]})),u=r,c=t.data,u&&(0,o.z)(u,(function(e,t){c[e]||(c[e]=t)})),e.processNext(t,a)},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 i=r.getTraceCtx(!1);i&&i===n.getTraceCtx()&&r.setTraceCtx(null)}a()}})),a}return(0,a.qU)(t,e),t.__ieDyn=1,t}(_.s),un={CLICKLEFT:"CL",CLICKRIGHT:"CR",CLICKMIDDLE:"CM",SCROLL:"S",ZOOM:"Z",RESIZE:"R",KEYBOARDENTER:"KE",KEYBOARDSPACE:"KS",OTHER:"O"};!function(e){e[e.PAGE_ACTION=0]="PAGE_ACTION",e[e.CONTENT_UPDATE=1]="CONTENT_UPDATE"}(nn||(nn={})),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"}(rn||(rn={}));var cn=["c:","i:","w:"],sn={"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"},ln=function(){function e(t){this.core=t;var n,r=(0,z.gj)(),i=(0,Rt.cL)(),a=null,o=!1,u=(0,w.um)(t);(0,g.A)(e,this,(function(e){e.getTraceId=function(){return t&&t.getTraceCtx&&t.getTraceCtx().getTraceId()||i},e.getLastPageViewId=function(){return r},e.initializeIds=function(){o?r=(0,z.gj)():o=!0},e.getMuidUserId=function(){var e=(0,z.UM)(u,"MUID");return e&&e.length?"t:"+e:e},e.setAppUserId=function(e){if(a=null,e)for(var t=0;t<cn.length;t++)if(cn[t]===e.substring(0,2)){a=e;break}},e.setDeviceClass=function(e){e&&(n=e)},e.getDeviceClass=function(){return n},e.getAppUserId=function(){return a},e.syncMuid=function(e){var t=(0,P.g$)();if(t&&e){var n=(t.protocol||"http:")+"//"+e+"/c.gif?DI=4050&did=1&t=",r=(0,P.YE)();if(r){var i=r.createElement("IMG");i.style.display="none",i.src=n,i.hidden="",i["aria-hidden"]="true",i.role="presentation"}return!0}return!1},e.getMuidHost=function(e){return sn[e]}}))}return e.visitorId=function(){return(0,z.UM)((0,w.um)(null),"MUID")},e}(),fn=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}();function dn(e,t){return void 0===t&&(t=!1),void 0===e||null===e?t:"true"===e.toString().toLowerCase()}function pn(e){(isNaN(e)||e<0)&&(e=0);var t=""+(e=Math.round(e))%1e3,n=""+Math.floor(e/1e3)%60,r=""+Math.floor(e/6e4)%60,i=""+Math.floor(e/36e5)%24,a=Math.floor(e/864e5);return t=1===t.length?"00"+t:2===t.length?"0"+t:t,n=n.length<2?"0"+n:n,r=r.length<2?"0"+r:r,(a>0?a+".":"")+(i=i.length<2?"0"+i:i)+":"+r+":"+n+"."+t}function gn(e,t,n,r,i){return!i&&(0,o.Kg)(e)&&("Script error."===e||"Script error"===e)}var vn=u({LocalStorage:0,SessionStorage:1}),mn=(u({AI:0,AI_AND_W3C:1,W3C:2}),void 0),hn=void 0,yn="";function Cn(e){try{if((0,o.hX)((0,E.mS)()))return null;var t=(new Date).toString(),n=(0,P.EH)(e===vn.LocalStorage?"localStorage":"sessionStorage"),r=yn+t;n.setItem(r,t);var i=n.getItem(r)!==t;if(n.removeItem(r),!i)return n}catch(a){}return null}function In(){return En()?Cn(vn.SessionStorage):null}function Tn(){mn=!1,hn=!1}function Pn(e){return(e||void 0===mn)&&(mn=!!Cn(vn.LocalStorage)),mn}function En(e){return(e||void 0===hn)&&(hn=!!Cn(vn.SessionStorage)),hn}function bn(e,t){var n=In();if(null!==n)try{return n.getItem(t)}catch(r){hn=!1,(0,I.ZP)(e,2,2,"Browser failed read of session storage. "+(0,o.lL)(r),{exception:(0,P.mm)(r)})}return null}function Sn(e,t,n){var r=In();if(null!==r)try{return r.setItem(t,n),!0}catch(i){hn=!1,(0,I.ZP)(e,2,4,"Browser failed write to session storage. "+(0,o.lL)(i),{exception:(0,P.mm)(i)})}return!1}function An(e,t){var n=In();if(null!==n)try{return n.removeItem(t),!0}catch(r){hn=!1,(0,I.ZP)(e,2,6,"Browser failed removal of session storage item. "+(0,o.lL)(r),{exception:(0,P.mm)(r)})}return!1}var Dn,wn="AppInsightsPropertiesPlugin",Nn="not_specified";function kn(e,t,n){var r=t.length,i=_n(e,t);if(i.length!==r){for(var a=0,o=i;void 0!==n[o];)a++,o=i.substring(0,147)+Hn(a);i=o}return i}function _n(e,t){var n;return t&&(t=(0,o.EH)(t.toString())).length>150&&(n=t.substring(0,150),(0,I.ZP)(e,2,57,"name is too long.  It has been truncated to 150 characters.",{name:t},!0)),n||t}function Mn(e,t,n){var r;return void 0===n&&(n=1024),t&&(n=n||1024,(t=(0,o.EH)(t)).toString().length>n&&(r=t.toString().substring(0,n),(0,I.ZP)(e,2,61,"string value is too long. It has been truncated to "+n+" characters.",{value:t},!0))),r||t}function xn(e,t){return Fn(e,t,2048,66)}function On(e,t){var n;return t&&t.length>32768&&(n=t.substring(0,32768),(0,I.ZP)(e,2,56,"message is too long, it has been truncated to 32768 characters.",{message:t},!0)),n||t}function Rn(e,t){var n;if(t){var r=""+t;r.length>32768&&(n=r.substring(0,32768),(0,I.ZP)(e,2,52,"exception is too long, it has been truncated to 32768 characters.",{exception:t},!0))}return n||t}function Ln(e,t){if(t){var n={};(0,o.z)(t,(function(t,r){if((0,o.Gv)(r)&&(0,P.Z)())try{r=(0,P.hm)().stringify(r)}catch(i){(0,I.ZP)(e,2,49,"custom property is not valid",{exception:i},!0)}r=Mn(e,r,8192),t=kn(e,t,n),n[t]=r})),t=n}return t}function Un(e,t){if(t){var n={};(0,o.z)(t,(function(t,r){t=kn(e,t,n),n[t]=r})),t=n}return t}function Vn(e,t){return t?Fn(e,t,128,69).toString():t}function Fn(e,t,n,r){var i;return t&&(t=(0,o.EH)(t)).length>n&&(i=t.substring(0,n),(0,I.ZP)(e,2,r,"input is too long, it has been truncated to "+n+" characters.",{data:t},!0)),i||t}function Hn(e){var t="00"+e;return t.substr(t.length-3)}(Dn={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=kn,Dn.sanitizeKey=_n,Dn.sanitizeString=Mn,Dn.sanitizeUrl=xn,Dn.sanitizeMessage=On,Dn.sanitizeException=Rn,Dn.sanitizeProperties=Ln,Dn.sanitizeMeasurements=Un,Dn.sanitizeId=Vn,Dn.sanitizeInput=Fn,Dn.padNumber=Hn,Dn.trim=o.EH;function Bn(e,t,n,r,i,a){var u;n=Mn(r,n)||Nn,((0,o.hX)(e)||(0,o.hX)(t)||(0,o.hX)(n))&&(0,o.$8)("Input doesn't contain all required fields");var c="";e.iKey&&(c=e.iKey,delete e.iKey);var s=((u={}).name=n,u.time=(0,o._u)(new Date),u.iKey=c,u.ext=a||{},u.tags=[],u.data={},u.baseType=t,u.baseData=e,u);return(0,o.hX)(i)||(0,o.z)(i,(function(e,t){s.data[e]=t})),s}!function(){function e(){}e.create=Bn}();var zn=function(){function e(e,t,n,r){this.aiDataContract={ver:1,name:1,properties:0,measurements:0};var i=this;i.ver=2,i.name=Mn(e,t)||Nn,i.properties=Ln(e,n),i.measurements=Un(e,r)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Event",e.dataType="EventData",e}(),Gn=function(){function e(e,t,n,r,i){this.aiDataContract={ver:1,message:1,severityLevel:0,properties:0};var a=this;a.ver=2,t=t||Nn,a.message=On(e,t),a.properties=Ln(e,r),a.measurements=Un(e,i),n&&(a.severityLevel=n)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Message",e.dataType="MessageData",e}(),Kn=function(){this.aiDataContract={name:1,kind:0,value:1,count:0,min:0,max:0,stdDev:0},this.kind=0},qn=function(){function e(e,t,n,r,i,a,o,u,c){this.aiDataContract={ver:1,metrics:1,properties:0};var s=this;s.ver=2;var l=new Kn;l.count=r>0?r:void 0,l.max=isNaN(a)||null===a?void 0:a,l.min=isNaN(i)||null===i?void 0:i,l.name=Mn(e,t)||Nn,l.value=n,l.stdDev=isNaN(o)||null===o?void 0:o,s.metrics=[l],s.properties=Ln(e,u),s.measurements=Un(e,c)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Metric",e.dataType="MetricData",e}(),Wn=function(){function e(e,t,n,r,i,a,o){this.aiDataContract={ver:1,name:0,url:0,duration:0,properties:0,measurements:0,id:0};var u=this;u.ver=2,u.id=Vn(e,o),u.url=xn(e,n),u.name=Mn(e,t)||Nn,isNaN(r)||(u.duration=pn(r)),u.properties=Ln(e,i),u.measurements=Un(e,a)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.Pageview",e.dataType="PageviewData",e}(),Jn=function(){function e(e,t,n,r,i,a,o){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 u=this;u.ver=2,u.url=xn(e,n),u.name=Mn(e,t)||Nn,u.properties=Ln(e,i),u.measurements=Un(e,a),o&&(u.domProcessing=o.domProcessing,u.duration=o.duration,u.networkConnect=o.networkConnect,u.perfTotal=o.perfTotal,u.receivedResponse=o.receivedResponse,u.sentRequest=o.sentRequest)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.PageviewPerformance",e.dataType="PageviewPerformanceData",e}();function jn(e,t){var n=e;return n&&!(0,o.Kg)(n)&&(JSON&&JSON.stringify?(n=JSON.stringify(e),!t||n&&"{}"!==n||(n=(0,o.Tn)(e.toString)?e.toString():""+e)):n=e+" - (Missing JSON.stringify)"),n||""}function Xn(e,t){var n=e;return e&&(n&&!(0,o.Kg)(n)&&(n=e.message||e.description||n),n&&!(0,o.Kg)(n)&&(n=jn(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 $n(e){return e&&e.src&&(0,o.Kg)(e.src)&&e.obj&&(0,o.cy)(e.obj)}function Yn(e){var t=e||"";(0,o.Kg)(t)||(t=(0,o.Kg)(t.stack)?t.stack:""+t);var n=t.split("\n");return{src:t,obj:n}}function Zn(e){var t=null;if(e)try{if(e.stack)t=Yn(e.stack);else if(e.error&&e.error.stack)t=Yn(e.error.stack);else if(e.exception&&e.exception.stack)t=Yn(e.exception.stack);else if($n(e))t=e;else if($n(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 i=n[r];n[r+1]&&(i+="@"+n[r+1],r++),t.push(i)}return{src:e,obj:t}}(e.message);else if(e.reason&&e.reason.stack)t=Yn(e.reason.stack);else if((0,o.Kg)(e))t=Yn(e);else{var n=e.message||e.description||"";(0,o.Kg)(e.errorSrc)&&(n&&(n+="\n"),n+=" from "+e.errorSrc),n&&(t=Yn(n))}}catch(r){t=Yn(r)}return t||{src:"",obj:null}}function Qn(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 er(e){if(e)try{if(!(0,o.Kg)(e)){var t=Qn(e),n=jn(e,!1);return n&&"{}"!==n||(e.error&&(t=Qn(e=e.error)),n=jn(e,!0)),0!==n.indexOf(t)&&"String"!==t?t+":"+n:n}}catch(r){}return""+(e||"")}var tr=function(){function e(e,t,n,r,i,a){this.aiDataContract={ver:1,exceptions:1,severityLevel:0,properties:0,measurements:0};var u=this;u.ver=2,!function(e){try{if((0,o.Gv)(e))return"ver"in e&&"exceptions"in e&&"properties"in e}catch(t){}return!1}(t)?(n||(n={}),u.exceptions=[new nr(e,t,n)],u.properties=Ln(e,n),u.measurements=Un(e,r),i&&(u.severityLevel=i),a&&(u.id=a)):(u.exceptions=t.exceptions||[],u.properties=t.properties,u.measurements=t.measurements,t.severityLevel&&(u.severityLevel=t.severityLevel),t.id&&(u.id=t.id),t.problemGroup&&(u.problemGroup=t.problemGroup),(0,o.hX)(t.isManual)||(u.isManual=t.isManual))}return e.CreateAutoException=function(e,t,n,r,i,a,o,u){var c,s=Qn(i||a||e);return(c={}).message=Xn(e,s),c.url=t,c.lineNumber=n,c.columnNumber=r,c.error=er(i||a||e),c.evt=er(a||e),c.typeName=s,c.stackDetails=Zn(o||i||a),c.errorSrc=u,c},e.CreateFromInterface=function(t,n,r,i){var u=n.exceptions&&(0,o.W$)(n.exceptions,(function(e){return nr.CreateFromInterface(t,e)}));return new e(t,(0,a.Im)((0,a.Im)({},n),{exceptions:u}),r,i)},e.prototype.toInterface=function(){var e,t=this,n=t.exceptions,r=t.properties,i=t.measurements,a=t.severityLevel,u=t.problemGroup,c=t.id,s=t.isManual,l=n instanceof Array&&(0,o.W$)(n,(function(e){return e.toInterface()}))||void 0;return(e={ver:"4.0"}).exceptions=l,e.severityLevel=a,e.properties=r,e.measurements=i,e.problemGroup=u,e.id=c,e.isManual=s,e},e.CreateSimpleException=function(e,t,n,r,i,a){var o;return{exceptions:[(o={},o.hasFullStack=!0,o.message=e,o.stack=i,o.typeName=t,o)]}},e.envelopeType="Microsoft.ApplicationInsights.{0}.Exception",e.dataType="ExceptionData",e.formatError=er,e}(),nr=function(){function e(e,t,n){this.aiDataContract={id:0,outerId:0,typeName:1,message:1,hasFullStack:0,stack:0,parsedStack:2};var r=this;if(function(e){try{if((0,o.Gv)(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 i=t,a=i&&i.evt;(0,o.bJ)(i)||(i=i.error||a||i),r.typeName=Mn(e,Qn(i))||Nn,r.message=On(e,Xn(t||i,r.typeName))||Nn;var u=t.stackDetails||Zn(t);r.parsedStack=function(e){var t,n=e.obj;if(n&&n.length>0){t=[];var r=0,i=0;if((0,o.Iu)(n,(function(e){var n=e.toString();if(rr.regex.test(n)){var a=new rr(n,r++);i+=a.sizeInBytes,t.push(a)}})),i>32768)for(var a=0,u=t.length-1,c=0,s=a,l=u;a<u;){if((c+=t[a].sizeInBytes+t[u].sizeInBytes)>32768){var f=l-s+1;t.splice(s,f);break}s=a,l=u,a++,u--}}return t}(u),(0,o.cy)(r.parsedStack)&&(0,o.W$)(r.parsedStack,(function(t){t.assembly=Mn(e,t.assembly),t.fileName=Mn(e,t.fileName)})),r.stack=Rn(e,function(e){var t="";return e&&(e.obj?(0,o.Iu)(e.obj,(function(e){t+=e+"\n"})):t=e.src||""),t}(u)),r.hasFullStack=(0,o.cy)(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&&(0,o.W$)(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&&(0,o.W$)(n.parsedStack,(function(e){return rr.CreateFromInterface(e)}))||n.parsedStack;return new e(t,(0,a.Im)((0,a.Im)({},n),{parsedStack:r}))},e}(),rr=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 i=t;r.level=n,r.method="<no_method>",r.assembly=(0,o.EH)(i),r.fileName="",r.line=0;var a=i.match(e.regex);a&&a.length>=5&&(r.method=(0,o.EH)(a[2])||r.method,r.fileName=(0,o.EH)(a[4]),r.line=parseInt(a[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 ir(e){var t=null;if((0,o.Tn)(Event))t=new Event(e);else{var n=(0,P.YE)();n&&n.createEvent&&(t=n.createEvent("Event")).initEvent(e,!0,!0)}return t}c({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"]});var ar=(0,P.YE)()||{},or=0,ur=[null,null,null,null,null];function cr(e){var t=or,n=ur,r=n[t];return ar.createElement?n[t]||(r=n[t]=ar.createElement("a")):r={host:sr(e,!0)},r.href=e,++t>=n.length&&(t=0),or=t,r}function sr(e,t){var n=lr(e,t)||"";if(n){var r=n.match(/(www\d{0,5}\.)?([^\/:]{1,256})(:\d{1,20})?/i);if(null!=r&&r.length>3&&(0,o.Kg)(r[2])&&r[2].length>0)return r[2]+(r[3]||"")}return n}function lr(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&&(0,o.Kg)(r[2])&&r[2].length>0&&(n=r[2]||"",t&&r.length>2)){var i=(r[1]||"").toLowerCase(),a=r[3]||"";("http"===i&&":80"===a||"https"===i&&":443"===a)&&(a=""),n+=a}}return n}Rt.WD,Rt.ht,w.It,Rt.TV,Rt.Ri,Rt.Yj,o.EH,ut.Si,Rt.cL,o.cy,o.bJ,o.$P,o._u,P.L0,P.mm,o.lL,q.Q3,P.Uf;function fr(e,t){var n=null;return 0===e||0===t||(0,o.hX)(e)||(0,o.hX)(t)||(n=t-e),n}var dr=function(){function e(e,t,n,r,i,a,o,u,c,s,l,f){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 d=this;d.ver=2,d.id=t,d.duration=pn(i),d.success=a,d.resultCode=o+"",d.type=Mn(e,c);var p=function(e,t,n,r){var i,a=r,o=r;if(t&&t.length>0){var u=cr(t);if(i=u.host,!a)if(null!=u.pathname){var c=0===u.pathname.length?"/":u.pathname;"/"!==c.charAt(0)&&(c="/"+c),o=u.pathname,a=Mn(e,n?n+" "+c:c)}else a=Mn(e,t)}else i=r,a=r;return{target:i,name:a,data:o}}(e,n,u,r);d.data=xn(e,r)||p.data,d.target=Mn(e,p.target),s&&(d.target="".concat(d.target," | ").concat(s)),d.name=Mn(e,p.name),d.properties=Ln(e,l),d.measurements=Un(e,f)}return e.envelopeType="Microsoft.ApplicationInsights.{0}.RemoteDependency",e.dataType="RemoteDependencyData",e}(),pr=["req","rsp","hkErr","fnErr"];function gr(e,t){if(e)for(var n=0;n<e[v.oI]&&!t(e[n],n);n++);}function vr(e,t,n,r,i){i>=0&&i<=2&&gr(e,(function(e,a){var o=e.cbks,u=o[pr[i]];if(u){t.ctx=function(){return r[a]=r[a]||{}};try{u[v.y9](t.inst,n)}catch(l){var c=t.err;try{var s=o[pr[2]];s&&(t.err=l,s[v.y9](t.inst,n))}catch(f){}finally{t.err=c}}}}))}function mr(e,t,n,r){var i=null;return e&&((0,o.mQ)(e,t)?i=e:n&&(i=mr((0,o.fw)(e),t,r,!1))),i}function hr(e,t,n,r){var i=n&&n._aiHooks;if(!i){var a=function(e){return function(){var t,n=this,r=arguments,i=e.h,a=((t={})[v.RS]=e.n,t.inst=n,t.ctx=null,t.set=s,t),o=[],u=c([a],r);function c(e,t){return gr(t,(function(t){e[v.y5](t)})),e}function s(e,t){(r=c([],r))[e]=t,u=c([a],r)}a.evt=(0,P.EH)("event"),vr(i,a,u,o,0);var l=e.f;if(l)try{a.rslt=l[v.y9](n,r)}catch(f){throw a.err=f,vr(i,a,u,o,3),f}return vr(i,a,u,o,1),a.rslt}}(i={i:0,n:t,f:n,h:[]});a._aiHooks=i,e[t]=a}var o={id:i.i,cbks:r,rm:function(){var e=this.id;gr(i.h,(function(t,n){if(t.id===e)return i.h[v.Ic](n,1),1}))}};return i.i++,i.h[v.y5](o),o}function yr(e,t,n,r,i){if(e&&t&&n){var a=mr(e,t,r,i)||e;if(a)return hr(a,t,a[t],n)}return null}var Cr="enableUnhandledPromiseRejectionTracking",Ir="isBrowserLinkTrackingEnabled",Tr="sendPageViewPerformanceInternal",Pr="populatePageViewPerformanceEvent",Er=null;var br=function(){function e(t,n,r,i){(0,g.A)(e,this,(function(e){var a,u=null,c=[],s=!1;function l(e){r&&r.flush(e)}function f(){u||(u=setTimeout((function(){u=null;var e=c.slice(0),t=!1;c=[],(0,o.Iu)(e,(function(e){e()?t=!0:c.push(e)})),c.length>0&&f(),t&&l(!0)}),100))}function d(e){c.push(e),f()}r&&(a=r.logger),e.trackPageView=function(e,r){var u=e.name;if((0,o.hX)(u)||"string"!==typeof u){var c=(0,P.YE)();u=e.name=c&&c.title||""}var f=e.uri;if((0,o.hX)(f)||"string"!==typeof f){var p=(0,P.g$)();f=e.uri=p&&p.href||""}if(!i.isPerformanceTimingSupported())return t.sendPageViewInternal(e,r),l(!0),void(function(){if(null==Er)try{Er=!!(self&&self instanceof WorkerGlobalScope)}catch(e){Er=!1}return Er}()||(0,I.ZP)(a,2,25,"trackPageView: navigation timing API used for calculation of page duration is not supported in this browser. This page view will be collected without duration and timing info."));var g,v,m=!1,h=i.getPerformanceTiming().navigationStart;h>0&&(g=fr(h,+new Date),i.shouldCollectDuration(g)||(g=void 0)),(0,o.hX)(r)||(0,o.hX)(r.duration)||(v=r.duration),!n&&isNaN(v)||(isNaN(v)&&(r||(r={}),r.duration=g),t.sendPageViewInternal(e,r),l(!0),m=!0);r||(r={}),d((function(){var n=!1;try{if(i.isPerformanceTimingDataReady()){n=!0;var c={name:u,uri:f};i[Pr](c),c.isValid||m?(m||(r.duration=c.durationMs,t.sendPageViewInternal(e,r)),s||(t[Tr](c,r),s=!0)):(r.duration=g,t.sendPageViewInternal(e,r))}else h>0&&fr(h,+new Date)>6e4&&(n=!0,m||(r.duration=6e4,t.sendPageViewInternal(e,r)))}catch(l){(0,I.ZP)(a,1,38,"trackPageView failed on page load calculation: "+(0,o.lL)(l),{exception:(0,P.mm)(l)})}return n}))},e.teardown=function(e,t){if(u){clearTimeout(u),u=null;var n=c.slice(0);c=[],(0,o.Iu)(n,(function(e){e()&&!0}))}}}))}return e.__ieDyn=1,e}(),Sr=36e5,Ar=["googlebot","adsbot-google","apis-google","mediapartners-google"];function Dr(){var e=(0,P.FJ)();return e&&!!e.timing}function wr(){var e=(0,P.FJ)(),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 Nr(){return Dr()?(0,P.FJ)().timing:null}function kr(){return function(){var e=(0,P.FJ)();return e&&e.getEntriesByType&&e.getEntriesByType("navigation").length>0}()?(0,P.FJ)().getEntriesByType("navigation")[0]:null}function _r(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,P.w3)()||{},r=n.userAgent,i=!1;if(r)for(var a=0;a<Ar.length;a++)i=i||-1!==r.toLowerCase().indexOf(Ar[a]);if(i)return!1;for(a=0;a<e.length;a++)if(e[a]<0||e[a]>=Sr)return!1;return!0}var Mr=function(){function e(t){var n=(0,I.y0)(t);(0,g.A)(e,this,(function(e){e[Pr]=function(t){t.isValid=!1;var r=kr(),i=Nr(),a=0,o=0,u=0,c=0,s=0;(r||i)&&(r?(a=r.duration,o=0===r.startTime?r.connectEnd:fr(r.startTime,r.connectEnd),u=fr(r.requestStart,r.responseStart),c=fr(r.responseStart,r.responseEnd),s=fr(r.responseEnd,r.loadEventEnd)):(a=fr(i.navigationStart,i.loadEventEnd),o=fr(i.navigationStart,i.connectEnd),u=fr(i.requestStart,i.responseStart),c=fr(i.responseStart,i.responseEnd),s=fr(i.responseEnd,i.loadEventEnd)),0===a?(0,I.ZP)(n,2,10,"error calculating page view performance.",{total:a,network:o,request:u,response:c,dom:s}):e.shouldCollectDuration(a,o,u,c,s)?a<Math.floor(o)+Math.floor(u)+Math.floor(c)+Math.floor(s)?(0,I.ZP)(n,2,8,"client performance math error.",{total:a,network:o,request:u,response:c,dom:s}):(t.durationMs=a,t.perfTotal=t.duration=pn(a),t.networkConnect=pn(o),t.sentRequest=pn(u),t.receivedResponse=pn(c),t.domProcessing=pn(s),t.isValid=!0):(0,I.ZP)(n,2,45,"Invalid page load duration value. Browser perf data won't be sent.",{total:a,network:o,request:u,response:c,dom:s}))},e.getPerformanceTiming=Nr,e.isPerformanceTimingSupported=Dr,e.isPerformanceTimingDataReady=wr,e.shouldCollectDuration=_r}))}return e.__ieDyn=1,e}(),xr=function(){function e(t,n){var r="prevPageVisitData";(0,g.A)(e,this,(function(e){e.trackPreviousPageVisit=function(e,i){try{var a=function(e,n){var i=null;try{i=function(){var e=null;try{if(En()){var n=(0,o.x3)(),i=bn(t,r);i&&(0,P.Z)()&&((e=(0,P.hm)().parse(i)).pageVisitTime=n-e.pageVisitStartTime,An(t,r))}}catch(a){(0,I.OG)(t,"Stop page visit timer failed: "+(0,P.mm)(a)),e=null}return e}(),function(e,n){try{if(En()){null!=bn(t,r)&&(0,o.$8)("Cannot call startPageVisit consecutively without first calling stopPageVisit");var i=new Or(e,n),a=(0,P.hm)().stringify(i);Sn(t,r,a)}}catch(u){(0,I.OG)(t,"Call to start failed: "+(0,P.mm)(u))}}(e,n)}catch(a){(0,I.OG)(t,"Call to restart failed: "+(0,P.mm)(a)),i=null}return i}(e,i);a&&n(a.pageName,a.pageUrl,a.pageVisitTime)}catch(u){(0,I.OG)(t,"Auto track page visit time failed, metric will not be collected: "+(0,P.mm)(u))}},(0,o.r)(e,"_logger",(function(){return t})),(0,o.r)(e,"pageVisitTimeTrackingHandler",(function(){return n}))}))}return e.__ieDyn=1,e}(),Or=function(e,t){this.pageVisitStartTime=(0,o.x3)(),this.pageName=e,this.pageUrl=t},Rr=function(e,t){var n=this,r={};n.start=function(t){"undefined"!==typeof r[t]&&(0,I.ZP)(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,i,a,o){var u=r[t];if(isNaN(u))(0,I.ZP)(e,2,63,"stop was called without a corresponding start.",{name:t,key:t},!0);else{var c=fr(u,+new Date);n.action(t,i,c,a,o)}delete r[t],r[t]=void 0}};function Lr(e,t){e&&e.dispatchEvent&&t&&e.dispatchEvent(t)}function Ur(e,t){return(e=e||t)<6e4&&(e=6e4),e}function Vr(e){return e||(e={}),e.sessionRenewalMs=Ur(e.sessionRenewalMs,18e5),e.sessionExpirationMs=Ur(e.sessionExpirationMs,864e5),e.disableExceptionTracking=dn(e.disableExceptionTracking),e.autoTrackPageVisitTime=dn(e.autoTrackPageVisitTime),e.overridePageViewDuration=dn(e.overridePageViewDuration),e[Cr]=dn(e[Cr]),(isNaN(e.samplingPercentage)||e.samplingPercentage<=0||e.samplingPercentage>=100)&&(e.samplingPercentage=100),e.isStorageUseDisabled=dn(e.isStorageUseDisabled),e[Ir]=dn(e[Ir]),e.enableAutoRouteTracking=dn(e.enableAutoRouteTracking),e.namePrefix=e.namePrefix||"",e.enableDebug=dn(e.enableDebug),e.disableFlushOnBeforeUnload=dn(e.disableFlushOnBeforeUnload),e.disableFlushOnUnload=dn(e.disableFlushOnUnload,e.disableFlushOnBeforeUnload),e}function Fr(e){(0,o.b0)(e.isStorageUseDisabled)||(e.isStorageUseDisabled?Tn():(mn=Pn(!0),hn=En(!0)))}var Hr=function(e){function t(){var n,r,i,u,c,s,l,f,d,p,v,m,h,y,C=e.call(this)||this;C.identifier="ApplicationInsightsAnalytics",C.priority=180,C.autoRoutePVDelay=500;var I,T,E;return(0,g.A)(t,C,(function(e,t){var g=t._addHook;function C(t,n,r,i,a){e.diagLog().throwInternal(t,n,r,i,a)}function S(){n=null,r=null,i=null,u=null,c=null,s=null,l=!1,f=!1,d=!1,p=!1,v=!1,m=!1,h=!1,y=!1,0;var e=(0,P.g$)(!0);I=e&&e.href||"",T=null,E=null}S(),e.getCookieMgr=function(){return(0,w.um)(e.core)},e.processTelemetry=function(t,n){e.processNext(t,n)},e.trackEvent=function(t,n){try{var r=Bn(t,zn.dataType,zn.envelopeType,e.diagLog(),n);e.core.track(r)}catch(i){C(2,39,"trackTrace failed, trace will not be collected: "+(0,o.lL)(i),{exception:(0,P.mm)(i)})}},e.startTrackEvent=function(e){try{n.start(e)}catch(t){C(1,29,"startTrackEvent failed, event will not be collected: "+(0,o.lL)(t),{exception:(0,P.mm)(t)})}},e.stopTrackEvent=function(e,t,r){try{n.stop(e,void 0,t,r)}catch(i){C(1,30,"stopTrackEvent failed, event will not be collected: "+(0,o.lL)(i),{exception:(0,P.mm)(i)})}},e.trackTrace=function(t,n){try{var r=Bn(t,Gn.dataType,Gn.envelopeType,e.diagLog(),n);e.core.track(r)}catch(i){C(2,39,"trackTrace failed, trace will not be collected: "+(0,o.lL)(i),{exception:(0,P.mm)(i)})}},e.trackMetric=function(t,n){try{var r=Bn(t,qn.dataType,qn.envelopeType,e.diagLog(),n);e.core.track(r)}catch(i){C(1,36,"trackMetric failed, metric will not be collected: "+(0,o.lL)(i),{exception:(0,P.mm)(i)})}},e.trackPageView=function(t,n){try{var r=t||{};i.trackPageView(r,(0,a.Im)((0,a.Im)((0,a.Im)({},r.properties),r.measurements),n)),e.config.autoTrackPageVisitTime&&c.trackPreviousPageVisit(r.name,r.uri)}catch(u){C(1,37,"trackPageView failed, page view will not be collected: "+(0,o.lL)(u),{exception:(0,P.mm)(u)})}},e.sendPageViewInternal=function(t,n,r){var i=(0,P.YE)();i&&(t.refUri=void 0===t.refUri?i.referrer:t.refUri);var a=Bn(t,Wn.dataType,Wn.envelopeType,e.diagLog(),n,r);e.core.track(a),0},e[Tr]=function(t,n,r){var i=Bn(t,Jn.dataType,Jn.envelopeType,e.diagLog(),n,r);e.core.track(i)},e.trackPageViewPerformance=function(t,n){var r=t||{};try{u[Pr](r),e[Tr](r,n)}catch(i){C(1,37,"trackPageViewPerformance failed, page view will not be collected: "+(0,o.lL)(i),{exception:(0,P.mm)(i)})}},e.startTrackPage=function(e){try{if("string"!==typeof e){var t=(0,P.YE)();e=t&&t.title||""}r.start(e)}catch(n){C(1,31,"startTrackPage failed, page view may not be collected: "+(0,o.lL)(n),{exception:(0,P.mm)(n)})}},e.stopTrackPage=function(t,n,i,a){try{if("string"!==typeof t){var u=(0,P.YE)();t=u&&u.title||""}if("string"!==typeof n){var s=(0,P.g$)();n=s&&s.href||""}r.stop(t,n,i,a),e.config.autoTrackPageVisitTime&&c.trackPreviousPageVisit(t,n)}catch(l){C(1,32,"stopTrackPage failed, page view will not be collected: "+(0,o.lL)(l),{exception:(0,P.mm)(l)})}},e.sendExceptionInternal=function(t,n,r){var i=t&&(t.exception||t.error)||(0,o.bJ)(t)&&t||{name:t&&typeof t,message:t||Nn};t=t||{};var a=Bn(new tr(e.diagLog(),i,t.properties||n,t.measurements,t.severityLevel,t.id).toInterface(),tr.dataType,tr.envelopeType,e.diagLog(),n,r);e.core.track(a)},e.trackException=function(t,n){t&&!t.exception&&t.error&&(t.exception=t.error);try{e.sendExceptionInternal(t,n)}catch(r){C(1,35,"trackException failed, exception will not be collected: "+(0,o.lL)(r),{exception:(0,P.mm)(r)})}},e._onerror=function(t){var n=t&&t.error,r=t&&t.evt;try{if(!r){var i=(0,P.zk)();i&&(r=i.event)}var a=t&&t.url||((0,P.YE)()||{}).URL,u=t.errorSrc||"window.onerror@"+a+":"+(t.lineNumber||0)+":"+(t.columnNumber||0),c={errorSrc:u,url:a,lineNumber:t.lineNumber||0,columnNumber:t.columnNumber||0,message:t.message};gn(t.message,t.url,t.lineNumber,t.columnNumber,t.error)?function(t,n){var r=Bn(t,tr.dataType,tr.envelopeType,e.diagLog(),n);e.core.track(r)}(tr.CreateAutoException("Script error: The browser's same-origin policy prevents us from getting the details of this exception. Consider using the 'crossorigin' attribute.",a,t.lineNumber||0,t.columnNumber||0,n,r,null,u),c):(t.errorSrc||(t.errorSrc=u),e.trackException({exception:t,severityLevel:3},c))}catch(l){var s=n?n.name+", "+n.message:"null";C(1,11,"_onError threw exception while logging error, error will not be collected: "+(0,o.lL)(l),{exception:(0,P.mm)(l),errorString:s})}},e.addTelemetryInitializer=function(t){if(e.core)return e.core.addTelemetryInitializer(t);s||(s=[]),s.push(t)},e.initialize=function(a,C,S,A){if(!e.isInitialized()){var D;(0,o.hX)(C)&&(0,o.$8)("Error initializing"),t.initialize(a,C,S,A),a.storagePrefix&&(D=a.storagePrefix,yn=D||"");try{E=(0,q.Hm)((0,N.Z)(e.identifier),C.evtNamespace&&C.evtNamespace()),s&&((0,o.Iu)(s,(function(e){C.addTelemetryInitializer(e)})),s=null);var w=function(t){var n=(0,b.i8)(null,t,e.core),r=e.identifier,i=Vr(t),a=e.config=n.getExtCfg(r);void 0!==i&&(0,o.z)(i,(function(e,t){a[e]=n.getConfig(r,e,t),void 0===a[e]&&(a=t)}));return a}(a);Fr(w),u=new Mr(e.core),i=new br(e,w.overridePageViewDuration,e.core,u),c=new xr(e.diagLog(),(function(t,n,r){return function(t,n,r){var i={PageName:t,PageUrl:n};e.trackMetric({name:"PageVisitTime",average:r,max:r,min:r,sampleCount:1},i)}(t,n,r)})),function(t,n){l=t[Ir]||n[Ir],function(){if(!f&&l){var t=["/browserLinkSignalR/","/__browserLink/"],n=function(e){if(l&&e.baseType===dr.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),f=!0}}()}(w,a),(n=new Rr(e.diagLog(),"trackEvent")).action=function(t,n,r,i,a){i||(i={}),a||(a={}),i.duration=r.toString(),e.trackEvent({name:t,properties:i,measurements:a})},(r=new Rr(e.diagLog(),"trackPageView")).action=function(t,n,r,i,a){(0,o.hX)(i)&&(i={}),i.duration=r.toString();var u={name:t,uri:n,properties:i,measurements:a};e.sendPageViewInternal(u,i)},(0,P.Vd)()&&(function(t){var n=(0,P.zk)(),r=(0,P.g$)(!0);(v=t.disableExceptionTracking)||m||t.autoExceptionInstrumented||(g(yr(n,"onerror",{ns:E,rsp:function(t,n,r,i,a,o){v||!0===t.rslt||e._onerror(tr.CreateAutoException(n,r,i,a,o,t.evt))}},!1)),m=!0);!function(t,n,r){(h=!0===t[Cr])&&!y&&(g(yr(n,"onunhandledrejection",{ns:E,rsp:function(t,n){h&&!0!==t.rslt&&e._onerror(tr.CreateAutoException(function(e){if(e&&e.reason){var t=e.reason;return!(0,o.Kg)(t)&&(0,o.Tn)(t.toString)?t.toString():(0,P.mm)(t)}return e||""}(n),r?r.href:"",0,0,n,t.evt))}},!1)),y=!0,t.autoUnhandledPromiseInstrumented=y)}(t,n,r)}(w),function(t){var n=(0,P.zk)(),r=(0,P.g$)(!0);if(d=!0===t.enableAutoRouteTracking,n&&d&&(0,P.tw)()){var i=(0,P.JK)();(0,o.Tn)(i.pushState)&&(0,o.Tn)(i.replaceState)&&typeof Event!==ye.bA&&function(t,n,r,i){var a=t.namePrefix||"";function o(){d&&Lr(n,ir(a+"locationchange"))}function u(){if(T?(I=T,T=i&&i.href||""):T=i&&i.href||"",d){var t=function(){var t=null;e.core&&e.core.getTraceCtx&&(t=e.core.getTraceCtx(!1));if(!t){var n=e.core.getPlugin(wn);if(n){var r=n.plugin.context;r&&(t=function(e,t){var n=e||{};return{getName:function(){return n.name},setName:function(e){t&&t.setName(e),n.name=e},getTraceId:function(){return n.traceID},setTraceId:function(e){t&&t.setTraceId(e),(0,ot.hX)(e)&&(n.traceID=e)},getSpanId:function(){return n.parentID},setSpanId:function(e){t&&t.setSpanId(e),(0,ot.wN)(e)&&(n.parentID=e)},getTraceFlags:function(){return n.traceFlags},setTraceFlags:function(e){t&&t.setTraceFlags(e),n.traceFlags=e}}}(r.telemetryTrace))}}return t}();if(t){t.setTraceId((0,Rt.cL)());var n="_unknown_";i&&i.pathname&&(n=i.pathname+(i.hash||"")),t.setName(Mn(e.diagLog(),n))}setTimeout(function(t){e.trackPageView({refUri:t,properties:{duration:0}})}.bind(e,I),e.autoRoutePVDelay)}}p||(g(yr(r,"pushState",{ns:E,rsp:function(){d&&(Lr(n,ir(a+"pushState")),Lr(n,ir(a+"locationchange")))}},!0)),g(yr(r,"replaceState",{ns:E,rsp:function(){d&&(Lr(n,ir(a+"replaceState")),Lr(n,ir(a+"locationchange")))}},!0)),(0,q.mB)(n,a+"popstate",o,E),(0,q.mB)(n,a+"locationchange",u,E),p=!0)}(t,n,i,r)}}(w))}catch(k){throw e.setInitialized(!1),k}}},e._doTeardown=function(e,t){i&&i.teardown(e,t),(0,q.ML)(window,null,null,E),S()},(0,o.r)(e,"_pageViewManager",(function(){return i})),(0,o.r)(e,"_pageViewPerformanceManager",(function(){return u})),(0,o.r)(e,"_pageVisitTimeManager",(function(){return c})),(0,o.r)(e,"_evtNamespace",(function(){return"."+E}))})),C}return(0,a.qU)(t,e),t.Version="2.8.18",t.getDefaultConfig=Vr,t}(_.s);function Br(e){(0,o.z)(e,(function(t,n){(!(0,z.yD)(n)||"{}"===JSON.stringify(n)&&"callback"!==t)&&delete e[t]}))}function zr(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 Gr(e){return"A"===e.nodeName}function Kr(e,t){return function(e,t){var n=e.left,r=e.top,i=e.right,a=e.bottom,o=t.left,u=t.top,c=t.right,s=t.bottom;return Math.max(0,Math.min(i,c)-Math.max(n,o))*Math.max(0,Math.min(a,s)-Math.max(r,u))}((e=e).getBoundingClientRect(),t)>0}function qr(e,t){var n=Wr(e,"data-bi-dnt");return!!(0,z.yD)(n)}function Wr(e,t){return zr(e,Jr,t)}function Jr(e,t){var n=e.getAttribute(t);return(0,z.yD)(n)||""===n}function jr(e){return"["+e+"]"}function Xr(e,t,n,r){var i;return function(){var a=arguments,o=function(){i=0,t&&t.apply(r,a)},u=!i;clearTimeout(i),i=setTimeout(o,n),u&&e&&e.apply(r,a)}}function $r(){var e={h:0,v:0},t=(0,P.zk)(),n=(0,P.YE)();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 Yr(){var e={h:0,w:0},t=(0,P.zk)(),n=(0,P.YE)();if(t&&n&&t.screen){var r=n.body||{},i=n.documentElement||{};e.h=t.innerHeight||r.clientHeight||i.clientHeight,e.w=t.innerWidth||r.clientWidth||i.clientWidth}return e}var Zr={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0};function Qr(e){if(e){var t=function(e){return zr(e,Gr)}(e);if(t&&1===t.length){if(t[0].href)return t[0].href;if(t[0].src)return t[0].src}}return""}function ei(e){if(!e||!e.attributes)return!1;try{var t=e.getAttribute("data-dc");return!!(0,z.yD)(t)&&"pii"===t.toLowerCase()}catch(n){return!1}}function ti(e,t){return e.coreData&&e.coreData.requestUri&&""!==e.coreData.requestUri?e.coreData.requestUri:function(e,t){if(!t)return null;var n=t.protocol+"//"+(t.hostname||t.host)+((0,z.yD)(t.port)?":"+t.port:"")+t.pathname;if(e.urlCollectQuery){var r=t.search;if(!r){var i=t.hash||"",a=i.indexOf("?");-1!==a&&(r=i.slice(a))}n+=r}e.urlCollectHash&&(n+=t.hash||"");return n}(e,t)}function ni(e,t){var n,r="",i={},a=[],u=e.cookiesToCollect;!1===e.shareAuthStatus?a=u:(0,o.Iu)(u,(function(e){"ANON"!==e&&a.push(e)}));try{try{z.P$&&window.varCustomerCookies&&window.varCustomerCookies.length>0&&(a=a.concat(window.varCustomerCookies))}catch(c){(0,I.ZP)(t,1,512,"Failed to get cookies ")}(0,o.Iu)(a,(function(e){i.hasOwnProperty(e)||(i[e]="",z.g8&&""!==(n=decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1")))&&(r+=e+"="+n+";"))}))}catch(c){(0,I.ZP)(t,1,512,"Failed to get cookies ")}return r}function ri(e,t){var n=(0,q.Hm)((0,N.Z)("onDomLoaded"),t);ii((function(){if(z.g8&&"complete"===document.readyState)e();else{var t=(0,P.zk)();t&&(0,q.mB)(t,"load",(function(){e&&e(),e=null,(0,q.ML)(t,null,null,n)}),n)}}))}function ii(e){var t=(0,P.YE)()||{};/in/.test(t.readyState)?setTimeout((function(){ii(e)}),100):e.call()}function ai(e,t,n){var r="";return t&&t[n]?r=t[n]:e&&(r=e[n]),r}var oi=function(){function e(e,t,n,r,i,a,o){this._webAnalyticsPlugin=e,this._config=t,this._contentHandler=n,this._id=r,this._pageTagsCallback=i,this.metaTags=a,this._traceLogger=o,this._pageTags={}}return e.prototype._setBasicProperties=function(e,t){e.ver="1.0",e.id=this._id.getLastPageViewId(),(0,z.yD)(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=((0,P.g$)()||{}).pathname||"",r=n.replace(/(^\/+|\/+$)/g,"").split("/");return r&&r[r.length-1]?r[r.length-1]:"Home"}(this._config,t)),!(0,z.yD)(e.uri)&&z.P$&&(e.uri=ti(this._config,(0,P.g$)()))},e.prototype._setCommonProperties=function(e,t,n){var r,i=this;i._setBasicProperties(e,n),i._setPageTags(e,n),i._pageTypeMetaTag=ai(i.metaTags,i._config.coreData,"pageType"),i._marketMetaTag=ai(i.metaTags,i._config.coreData,"market"),i._behaviorMetaTag=ai(i.metaTags,i._config.coreData,"behavior"),(0,z.yD)(n.pageType)&&(e.pageType=n.pageType),(0,z.yD)(i._pageTypeMetaTag)&&!(0,z.yD)(e.pageType)&&(e.pageType=i._pageTypeMetaTag),(0,z.yD)(i._marketMetaTag)&&(e.market=i._marketMetaTag),e.isLoggedIn=(r=i._config).callback&&"function"===typeof r.callback.signedinStatus?r.callback.signedinStatus():r.isLoggedIn,t.cookieEnabled=(0,w.gi)()},e.prototype._setPageTags=function(e,t){var n=this;n._pageTags={},n.metaTags&&(n._pageTags.metaTags=n._pageTags.metaTags||{},(0,o.z)(n.metaTags,(function(e,t){"behavior"!==e&&"market"!==e&&"pageType"!==e&&(n._pageTags.metaTags[e]=t)}))),n._config.coreData&&n._config.coreData.pageTags&&(n._pageTags=(0,z.X$)(!0,n._pageTags,n._config.coreData.pageTags)),n._pageTagsCallback&&(n._pageTags=(0,z.X$)(!0,n._pageTags,n._pageTagsCallback())),(0,z.yD)(t.pageTags)&&(n._pageTags=(0,z.X$)(!0,n._pageTags,t.pageTags)),e.properties=e.properties||{},e.properties.pageTags=n._pageTags},e.prototype._getBehavior=function(e){var t;return e&&(0,z.yD)(e.behavior)?t=e.behavior:(0,z.yD)(this._behaviorMetaTag)&&(t=this._behaviorMetaTag),this._getValidBehavior(t)},e.prototype._getValidBehavior=function(e){if((0,z.yD)(e)){var t=void 0,n=parseInt(e);if((t=isNaN(n)?rn[e]:n)in rn)return t}return 0},e.prototype._getContentFormatted=function(e){if((0,z.yD)(e))return(0,o.cy)(e)?JSON.stringify(e):jr(JSON.stringify(e))},e}(),ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.qU)(t,e),t.prototype.trackContentUpdate=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.ContentUpdate",baseType:"ContentUpdateData",ext:n,data:{},baseData:{},latency:3};(0,o.Iu)(["name","uri","market","pageType","isLoggedIn","id","properties","ver","actionType","behavior","pageHeight","content","contentVer","vpHeight","vpWidth","vScrollOffset","hScrollOffset"],(function(t){r.baseData[t]=e[t]})),(0,o.z)(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.captureContentUpdate=function(e,t){e=(0,z.yD)(e)?e:{};var n={},r=(0,z.yD)(t)?t:{};this._setCommonProperties(n,r,e),n.behavior=this._getBehavior(e),(0,z.yD)(e.actionType)&&(n.actionType=e.actionType);var i=Yr(),a=$r();n.pageHeight=z.g8?document.body.scrollHeight:null,n.vpHeight=i.h,n.vpWidth=i.w,n.vScrollOffset=a.v,n.hScrollOffset=a.h,n.contentVer="2.0",n.isManual=!e.isAuto;var o=this._getContentFormatted(e.content)||JSON.stringify(this._contentHandler.getVisibleContent());o&&(n.content=o),(0,z.yD)(e.isDomComplete)?r.isDomComplete=e.isDomComplete:r.isDomComplete=!1,this.trackContentUpdate(n,r)},t}(oi),ci=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.qU)(t,e),t.prototype.trackPageAction=function(e,t){var n={web:{}};n.web.isManual=e.isManual;var r={name:"Ms.Web.PageAction",baseType:"PageActionData",ext:n,data:{},baseData:{},latency:1};(0,o.b0)(e.sync)||(r.sync=e.sync),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.actionType=e.actionType,r.baseData.behavior=e.behavior,r.baseData.clickCoordinates=e.clickCoordinates,r.baseData.content=e.content,r.baseData.contentVer=e.contentVer,r.baseData.targetUri=e.targetUri,(0,o.z)(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageAction=function(e,t,n,r){t=(0,z.yD)(t)?t:{};var i={},a=(0,z.yD)(n)?n:{};this._setCommonProperties(i,a,t),i.isManual=!t.isAuto,i.behavior=this._getBehavior(t);var u={};if(e=e,r)i.behavior=9;else{var c=this._config||{};if((e&&(0,o.b0)(c.syncPageActionNavClick)||c.syncPageActionNavClick)&&(t.actionType===un.CLICKLEFT||t.actionType===un.KEYBOARDENTER)&&"a"===e.tagName.toLowerCase()){var s=(e.getAttribute("href")||"").toLowerCase();s&&((0,o.tG)(s,"https:")||(0,o.tG)(s,"http:")||(0,o.tG)(s,".")||(0,o.tG)(s,"/"))&&(i.sync=3)}}if(e&&(i.targetUri=function(e){var t="";switch(e.tagName){case"A":case"AREA":t=e.href||"";break;case"IMG":t=Qr(e);break;case"INPUT":var n=e.type;if(n&&Zr[n.toUpperCase()]){var r=(0,P.g$)()||{};t=e.form?e.form.action||r.pathname||"":r.pathname||""}}return t}(e),u=this._contentHandler.getElementContent(e,nn.PAGE_ACTION),(u=(0,z.X$)(u,this._getCustomTags(e)))&&u.bhvr&&!(0,z.yD)(t.behavior))){var l=function(e,t){var n;return e&&e[t]&&(n=e[t],delete e[t]),n}(u,"bhvr");i.behavior=this._getValidBehavior(l)}(0,z.yD)(t.actionType)&&(i.actionType=t.actionType),(0,z.yD)(t.clickCoordinateX)&&(0,z.yD)(t.clickCoordinateY)&&(i.clickCoordinates=t.clickCoordinateX+"X"+t.clickCoordinateY),(0,z.yD)(t.targetUri)&&(i.targetUri=t.targetUri),i.contentVer="2.0";var f=t.content||u;if(!(0,o.cy)(f)){var d=this._config.callback.pageActionContentTags;f=(0,z.X$)(f,"function"===typeof d?d(e):{},t&&t.contentTags?t.contentTags:{})}i.content=this._getContentFormatted(f),a.timeToAction=this._getTimeToClick(),a.refUri=(0,z.yD)(t.refUri)?t.refUri:this._config.coreData.referrerUri;var p=ni(this._config,this._traceLogger);p&&(a.cookies=p),this.trackPageAction(i,a)},t.prototype._getCustomTags=function(e){for(var t={};e;){if(!ei(e))for(var n in e.attributes)if(n&&e.attributes[n]){var r=e.attributes[n].name;r&&0===r.toLowerCase().indexOf("ms.")&&(t[r]=e.attributes[n].value)}e=e.parentElement||e.parentNode}return t},t.prototype._getTimeToClick=function(){var e=(0,P.FJ)();if(e&&e.timing){var t=e.timing.navigationStart;if(t&&0!==t)return(new Date).getTime()-t}return-1},t}(oi),si=function(e){function t(t,n,r,i,a,o){var u=e.call(this,t,n,null,r,{},{},i)||this;return u._webAnalyticsPlugin=t,u._config=n,u._id=r,u._traceLogger=i,u._timestamp=a,u._maxScroll=o,u}return(0,a.qU)(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},i=this._config||{};((0,o.b0)(i.syncUnloadAction)||i.syncUnloadAction)&&(r.sync=3),r.baseData.name=e.name,r.baseData.uri=e.uri,r.baseData.id=e.id,r.baseData.properties=e.properties,r.baseData.ver=e.ver,r.baseData.market=e.market,r.baseData.pageType=e.pageType,r.baseData.isLoggedIn=e.isLoggedIn,(0,o.z)(t,(function(e,t){r.data[e]||(r.data[e]=t)})),this._webAnalyticsPlugin.core.track(r)},t.prototype.capturePageUnload=function(e,t){e=(0,z.yD)(e)?e:{};var n={},r=(0,z.yD)(t)?t:{},i=z.g8?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()+"/"+i.toString(),r.vpHeight=Yr().h,r.vScrollOffset=e.vScrollOffset||this._maxScroll.v,z.P$){var a=(0,P.FJ)(),o=a?a.timing:null;o&&o.loadEventStart&&o.navigationStart&&o.loadEventStart>0&&(r.pageLoadTime=o.loadEventStart-o.navigationStart)}this.trackPageUnload(n,r)},t}(oi),li=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.qU)(t,e),t.prototype.capturePageView=function(e,t){e=(0,z.yD)(e)?e:{};var n={},r=(0,z.yD)(t)?t:{};this._setCommonProperties(n,r,e),n.refUri=(0,z.yD)(e.referrerUri)?e.referrerUri:this._config.coreData.referrerUri,n.isManual=!e.isAuto;var i=ni(this._config,this._traceLogger);i&&(r.cookies=i),r.behavior=this._getBehavior(e),this._webAnalyticsPlugin.trackPageView(n,r)},t}(oi),fi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.qU)(t,e),t.prototype.capturePageViewPerformance=function(e,t){e=(0,z.yD)(e)?e:{};var n={},r=(0,z.yD)(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}(oi),di={BUTTON:!0,CHECKBOX:!0,RADIO:!0,RESET:!0,SUBMIT:!0},pi=function(){function e(t,n){var r,i,a,o,u,c,s,l,f,d=this;(0,g.A)(e,this,(function(e){function p(e){var t,n={A:!0,BUTTON:!0,AREA:!0,INPUT:!0},i=(0,P.zk)(),a=(e=e||i.event).srcElement||e.target,o={isAuto:!0,clickCoordinateX:e.pageX,clickCoordinateY:e.pageY},u="which"in(t=e)?3===t.which:"button"in t?2===t.button:void 0;if(u)o.actionType=un.CLICKRIGHT;else if(function(e){return"which"in e?1===e.which:"button"in e?1===e.button:void 0}(e))o.actionType=un.CLICKLEFT;else if(function(e){if("keyCode"in e)return 13===e.keyCode}(e))o.actionType=un.KEYBOARDENTER;else if(function(e){if("keyCode"in e)return 32===e.keyCode}(e))o.actionType=un.KEYBOARDSPACE;else{if(!function(e){return"which"in e?2===e.which:"button"in e?4===e.button:void 0}(e))return;o.actionType=un.CLICKMIDDLE}for(;a&&a.tagName;){if(a.control&&n[a.control.tagName.toUpperCase()]&&(a=a.control),n[a.tagName.toUpperCase()]){("INPUT"!==a.tagName.toUpperCase()||di[a.type.toUpperCase()])&&r&&r.capturePageAction(a,o,{},u);break}a=a.parentElement||a.parentNode}}function g(){e._analyticsPlugin=null,e._traceLogger=null,r=null,i=null,a=null,u=!1,c=!1,s=!1,l=!1,f=!1}g(),r=t,i=n,a=(0,q.Hm)((0,N.Z)("AutoCaptureHandler"),r._evtNamespace),e._analyticsPlugin=r,e._traceLogger=i,e.pageView=function(){r&&r.capturePageView({isAuto:!0})},e.onLoad=function(){r&&!f&&(ri((function(){r&&r.capturePageViewPerformance({isAuto:!0}),r&&r.captureContentUpdate({isAuto:!0,isDomComplete:!0})}),a),f=!0)},e.click=function(){if(!o){var e=(0,P.zk)(),t=(0,P.YE)();if(e&&e.addEventListener){var n=-1!==navigator.appVersion.indexOf("MSIE")?"click":"mousedown";(0,q.mB)(e,n,p,a),(0,q.mB)(e,"keyup",p,a)}else t&&t.attachEvent&&((0,q.mB)(t,"click",p,a),(0,q.mB)(t,"keyup",p,a));o=!0}},e.scroll=function(e){if(!u){var t=Xr(null,(function(){r&&r.captureContentUpdate({isAuto:!0,actionType:un.SCROLL})}),e.scroll,d);(0,q.mB)((0,P.zk)(),"scroll",t,a),u=!0}},e.maxScroll=function(e){if(!c){(0,q.mB)((0,P.zk)(),"scroll",(function(){var t=$r();e.v=e.v>t.v?e.v:t.v}),a),c=!0}},e.resize=function(e){if(!s){var t=Xr((function(){r&&r.captureContentUpdate({isAuto:!0,actionType:un.RESIZE})}),null,e.resize,d);(0,q.mB)((0,P.zk)(),"resize",t,a),s=!0}},e.onUnload=function(){function e(){r&&r.capturePageUnload({isAuto:!0})}if(!l){var t=((r||{}).core||{}).config.disablePageUnloadEvents;(0,q.ee)(e,t,a),(0,q.Fc)(e,t,a),l=!0}},e.teardown=function(e,t){(0,q.ML)((0,P.zk)(),null,null,a),(0,q.ML)((0,P.YE)(),null,null,a),(0,q.Ds)(null,a),(0,q.sq)(null,a),g()},e._processClick=p}))}return e.__ieDyn=1,e}(),gi={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"}},vi={parentId:"parentId",parentName:"parentName"},mi={parentId:"pI",parentName:"pN"},hi=function(){function e(e,t){this._config=e,this._traceLogger=t,this._contentBlobFieldNames=null,this._contentBlobFieldNames=!0===this._config.useShortNameForContentBlob?gi.shortNames:gi.longNames}return e.prototype.getMetadata=function(){var e={},t={};return z.g8&&(t=this._getMetaDataFromDOM("awa-",!0),this._config.autoCapture&&this._config.autoCapture.msTags&&(e=this._getMetaDataFromDOM("ms.",!1))),(0,z.X$)(!0,t,e)},e.prototype.getVisibleContent=function(){var e,t=Yr(),n={top:0,bottom:(e=t).h,left:0,right:e.w},r=null;z.g8&&(r=document.querySelectorAll(jr(this._contentBlobFieldNames.areaName)+","+jr(this._contentBlobFieldNames.slotNumber)+","+jr(this._config.biBlobAttributeTag)));var i=[];if(r)for(var a=0;a<r.length;a++){var o=r[a];if(!qr(o)&&Kr(o,n)){var u=this.getElementContent(o,nn.CONTENT_UPDATE);u&&i.push(u)}}return i},e.prototype.getElementContent=function(e,t){if(!e)return{};var n,r,i,a={};if(this._isTracked(e))if(this._isTrackedWithDataM(e)){r=(n=e).getAttribute(this._config.biBlobAttributeTag);try{a=JSON.parse(r)}catch(o){(0,I.ZP)(this._traceLogger,1,506,"Can not parse "+r)}}else this._isTrackedWithDataBi(e)&&(i=e,a=(0,z.X$)(a,this._populateElementContentwithDataBi(i,e)));else if((n=Wr(e,this._config.biBlobAttributeTag))&&(r=n.getAttribute(this._config.biBlobAttributeTag)),r)try{a=JSON.parse(r)}catch(o){(0,I.ZP)(this._traceLogger,1,506,"Can not parse "+r)}else i=zr(e,this._isTrackedWithDataBi),a=(0,z.X$)(a,this._populateElementContentwithDataBi(i,e));return Br(a),this._config.autoCapture.lineage&&t===nn.PAGE_ACTION&&(a=(0,z.X$)(a,this.getLineageDetails(e))),this._config.autoPopulateParentIdAndParentName&&(a=(0,z.X$)(a,this._getParentDetails(n||i,a))),a},e.prototype.getLineageDetails=function(e){for(var t,n,r,i=[],a=[],o=this._config.biBlobAttributeTag,u="data-module-id";e;){var c=e.getAttribute(o)||e[o],s=e.getAttribute(u)||e["data-module-id"];if(c){try{var l=JSON.parse(c)}catch(f){(0,I.ZP)(this._traceLogger,1,507,"Can not parse "+c)}l&&(n=l.cN||l.cT,r=l.id||void 0,(n||r)&&(i.push(n),s&&(t=n),a.push(r)))}else n=e.getAttribute(this._contentBlobFieldNames.contentName)||e.getAttribute(this._contentBlobFieldNames.contentType),r=e.getAttribute(this._contentBlobFieldNames.id)||void 0,(n||r)&&(i.push(n),s&&(t=n),a.push(r));e=e.parentElement}return{lineage:i.join(">"),lineageById:a.join(">"),lineageContainerName:t}},e.prototype._populateElementContentwithDataBi=function(e,t){var n={};if(!e){if(!this._config.useDefaultContentName)return n;e=t}var r=Wr(e,this._contentBlobFieldNames.areaName),i=(0,z.X$)({},this._getAreaContent(r)),a=this._config.callback.contentName?this._config.callback.contentName(e,this._config.useDefaultContentName):"",o=this._getDefaultContentName(t,this._config.useDefaultContentName);(n={id:e.getAttribute(this._contentBlobFieldNames.id)||e.id||"",aN:i.areaName,sN:e.getAttribute(this._contentBlobFieldNames.slotNumber),cN:a||e.getAttribute(this._contentBlobFieldNames.contentName)||o||e.getAttribute("alt")||"",cS:e.getAttribute(this._contentBlobFieldNames.contentSource)||i.contentSource,tN:i.templateName,pid:e.getAttribute(this._contentBlobFieldNames.productId),cT:e.getAttribute(this._contentBlobFieldNames.contentType)||i.type,pI:e.getAttribute(this._contentBlobFieldNames.parentId),pN:e.getAttribute(this._contentBlobFieldNames.parentName)}).id&&n.aN&&n.sN&&n.cN||(0,I.ZP)(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 u,c=0;c<e.attributes.length;c++){if((u=e.attributes[c]).name!==this._contentBlobFieldNames.id&&u.name!==this._contentBlobFieldNames.areaName&&u.name!==this._contentBlobFieldNames.slotNumber&&u.name!==this._contentBlobFieldNames.contentName&&u.name!==this._contentBlobFieldNames.contentSource&&u.name!==this._contentBlobFieldNames.templateName&&u.name!==this._contentBlobFieldNames.productId&&u.name!==this._contentBlobFieldNames.contentType&&u.name!==this._contentBlobFieldNames.parentId&&u.name!==this._contentBlobFieldNames.parentName&&-1!==u.name.indexOf("data-bi-"))n[u.name.replace("data-bi-","")]=u.value}return n},e.prototype._getMetaDataFromDOM=function(e,t){var n,r={};if(z.g8){n=document.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},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||ei(e)||!e.tagName)return"";var n,r=(0,P.YE)()||{};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?mi.parentId:vi.parentId,r=this._contentBlobFieldNames.isShortNames?mi.parentName:vi.parentName,i=t[n],a=t[r];return i||a||!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,i,a={},o=this._config.biBlobAttributeTag,u=zr(e.parentElement,this._isTracked);if(u){var c=u.getAttribute(o)||e[o];if(c){try{var s=JSON.parse(c)}catch(l){(0,I.ZP)(this._traceLogger,1,507,"Can not parse "+c)}s&&(r=s.id,i=s.cN)}else r=u.getAttribute(this._contentBlobFieldNames.id),i=u.getAttribute(this._contentBlobFieldNames.contentName);r&&(a[t]=r),i&&(a[n]=i)}return a},e}();function yi(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:z.g8?document.referrer:"",requestUri:"",pageName:"",pageType:"",product:"",market:"",pageTags:{}},autoPopulateParentIdAndParentName:!1,syncMuid:!1,muidDomain:"microsoft.com"},n=[];return(0,o.z)(t,(function(e,t){(0,o.Gv)(t)&&n.push(e)})),function(e,t){Br(e),(0,o.Iu)(t,(function(t,n){(0,o.Gv)(e[t])?Br(e[t]):delete e[t]}))}(e,n),(0,z.X$)(!0,t,e)}var Ci=function(e){function t(){var n,r,i,a,u,c,s,l,f=e.call(this)||this;f.identifier="WebAnalyticsPlugin",f.version="3.2.18";var d,p,v,m,h=!1;return(0,g.A)(t,f,(function(e,t){function g(){n=null,r=null,i=null,a=null,u=null,c=null,s=null,l={h:0,v:0},h=!1,d=null,p=null,v=null,m=null}function y(e){v&&(e&&(m.pageView&&v.pageView(),m.onLoad&&v.onLoad()),m.click&&v.click(),m.scroll&&v.scroll(s.debounceMs),m.resize&&v.resize(s.debounceMs),(m.onUnload||s.manualPageUnload)&&v.maxScroll(l),m.onUnload&&v.onUnload())}function C(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){s.coreData=(0,z.X$)(!0,s.coreData,e)},e.refreshMetadata=function(){var e=p.getMetadata();n.metaTags=e,i.metaTags=e,r.metaTags=e,u.metaTags=e},e.initialize=function(o,g,h){var C=g;o.extensionConfig=o.extensionConfig||[],o.extensionConfig[e.identifier]=o.extensionConfig[e.identifier]||{},e._config=s=yi(o.extensionConfig[e.identifier]),m=s.autoCapture;var T=C.getWParam;if(C.getWParam=function(){var e=0;return s.mscomCookies&&(e|=1),e|T()},o.extensionConfig[e.identifier].disableExceptionTracking=!m.jsError,t.initialize(o,g,h),p=p||new hi(s,e.diagLog()),v=v||new pi(e,e.diagLog()),s.manageCv){for(var P=0;P<h.length;P++)if("CorrelationVectorPlugin"===h[P].identifier){s.manageCv=!0,c=h[P];break}c||((0,I.ZP)(e.diagLog(),2,508,'Automatic Cv management is set to "true" in config.  However, cv plugin is not available. Disabling automatic Cv management'),s.manageCv=!1)}e.id=new ln(g),d=new fn;var E=p.getMetadata();n=new li(f,s,p,e.id,s.callback.pageViewPageTags,E,e.diagLog()),r=new ci(f,s,p,e.id,s.callback.pageActionPageTags,E,e.diagLog()),i=new ui(f,s,p,e.id,s.callback.contentUpdatePageTags,E,e.diagLog()),a=new si(f,s,e.id,e.diagLog(),d,l),u=new fi(f,s,p,e.id,s.callback.pageViewPageTags,E,e.diagLog()),s.syncMuid&&ri((function(){var t=e.id.getMuidHost(s.muidDomain);e.id.syncMuid(t)}),e._evtNamespace),y(!0)},e.processTelemetry=function(n,r){(0,z.u9)(n,e.identifier);var i=n;"PageviewData"===i.baseType?(i.name="Ms.Web.PageView",i.latency=3):"ExceptionData"===i.baseType?(i.name="Ms.Web.ClientError",i.latency=1,delete i.baseData.aiDataContract):"PageviewPerformanceData"===i.baseType&&(i.name="Ms.Web.PageViewPerformance",i.latency=1,delete i.baseData.isValid,delete i.baseData.durationMs);var a=null;"PageviewData"!==i.baseType?s.manageCv&&(a=c.getCv())&&a.increment():s.manageCv&&((a=c.getCv())?a.seed():a=c.getCv()),t.processTelemetry(i,r)},e.trackEvent=function(t,n){t.latency=t.latency||1,t.baseData=t.baseData||{},t.data=t.data||{},(0,z.yD)(n)&&(0,o.z)(n,(function(e,n){t.data[e]=n})),e.core.track(t)},e.trackPageView=function(n,r){d._recordTimeSpan("dwellTime",!1),l.v=0,h=!1,e.id.initializeIds(),n.id=e.id.getLastPageViewId(),t.sendPageViewInternal(n,r,C(n))},e.capturePageView=function(e,t){n.capturePageView(e,t)},e.trackPageViewPerformance=function(e,n){t.sendPageViewPerformanceInternal(e,n,C(e))},e.capturePageViewPerformance=function(e,t){u.capturePageViewPerformance(e,t)},e.trackException=function(e,n){e.id=e.id||(0,z.gj)(),t.sendExceptionInternal(e,n,C(e))},e.trackPageAction=function(e,t){r.trackPageAction(e,t)},e.capturePageAction=function(e,t,n,i){(function(e,t){return!(t&&t.isAuto&&(0,z.yD)(Wr(e,"data-bi-mto")))&&!qr(e)})(e,t)&&r.capturePageAction(e,t,n,i)},e.trackContentUpdate=function(e,t){i.trackContentUpdate(e,t)},e.captureContentUpdate=function(e,t){i.captureContentUpdate(e,t)},e.trackPageUnload=function(e,t){h||(h=!0,a.trackPageUnload(e,t))},e.capturePageUnload=function(e,t){h||(h=!0,a.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){v!==e&&(v&&v.teardown(),v=e,y(!1))},e._doTeardown=function(e,n){v&&v.teardown(e,n),t._doTeardown(e,n),g()}})),f}return(0,a.qU)(t,e),t.__ieDyn=1,t}(Hr),Ii=["snippet","_webAnalytics","_postChannel","_propertyManager","_extensions"],Ti=["queue","extensions","version","sv"],Pi=function(e){function t(){var n,r,i,a,u=e.call(this)||this;function c(){i=new ze,a=new on,r=new Ci}return(0,g.A)(t,u,(function(e,t){c(),e.initialize=function(n,u){(0,T.r2)(e,(function(){return"ApplicationInsights:initialize"}),(function(){var c=[a,r];if(u&&(c=c.concat(u)),n||(0,o.$8)("You must provide a config object!"),n.channels&&n.channels.length>0){for(var s=!1,l=0;l<n.channels[0].length;l++)if(n.channels[0][l].identifier===i.identifier){s=!0;break}s||n.channels[0].push(i)}else n.channels=[[i]];var f=n.extensionConfig=n.extensionConfig||[];f[i.identifier]=f[i.identifier]||n&&n.channelConfiguration||{},f[a.identifier]=f[a.identifier]||n&&n.propertyConfiguration||{},f[r.identifier]=f[r.identifier]||n&&n.webAnalyticsConfiguration||{};try{t.initialize(n,c)}catch(d){(0,I.ZP)(e.logger,1,514,"Failed to initialize SDK."+(0,P.mm)(d))}}),(function(){return{config:n,extensions:u}}))},e._getDbgPlgTargets=function(){return[u.config]},e.getPropertyManager=function(){return a},e.getPostChannel=function(){return i},e.getWebAnalyticsExtension=function(){return r},(0,o.o$)(e,(function(){return r}),["trackEvent","trackPageView","trackPageAction","trackContentUpdate","trackPageUnload","trackException","trackPageViewPerformance","capturePageView","capturePageViewPerformance","capturePageAction","captureContentUpdate","capturePageUnload","_onerror"]),e.emptySnippetQueue=function(t){try{if(t&&((0,o.hX)(n),(0,o.z)(e,(function(n,r){if((0,o.Kg)(n)&&!(0,o.Tn)(r)&&n&&"_"!==n[0]&&-1===(0,o.rD)(Ii,n))try{t[n]=r}catch(i){(0,I.ZP)(e.logger,2,514,"Failed to set ["+n+"] during initialization."+(0,P.mm)(i))}}))),(0,o.cy)(t.queue)){for(var r=t.queue.length,i=0;i<r;i++){(0,t.queue[i])()}t.queue=void 0,delete t.queue}}catch(a){a&&(0,o.Tn)(a.toString)&&a.toString()}},e.updateSnippetDefinitions=function(e){var t=u;t.snippet=e,n=""+(e.sv||e.version||""),t.config?t.config=(0,z.X$)(!0,e.config,t.config||{}):t.config=e.config,(0,o.qz)(e,t,(function(e){return e&&-1===(0,o.rD)(Ii,e)&&-1===(0,o.rD)(Ti,e)}))},e.unload=function(e,n,r){void 0===e&&(e=!0),t.unload(e,(function(e){c(),n&&n(e)}),r)}})),u}return(0,a.qU)(t,e),t.__ieDyn=1,t}(K);function Ei(e,t){var n="undefined"!==typeof console?console:null;if(n){var r="warn";n[r]||(r="log"),n[r]("Failed to initialize AppInsights JS SDK for instance "+(e||"<unknown>")+" - "+t)}}!function(){try{var e="oneDSWeb",t=(0,E.mS)();if(t)if("undefined"!==typeof JSON){if(void 0!==t[e=t.onedsSDK||e]){var n=t[e],r=new Pi;r.updateSnippetDefinitions(n),r.initialize(n.config,n.extensions),t[e]=r,r.emptySnippetQueue(n)}}else Ei(e,"Missing JSON - you must supply a JSON polyfill!");else Ei(e,"Missing global/window")}catch(i){Ei(e,"Unexpected Error: "+(0,P.mm)(i))}}()},48156:function(e,t,n){n.d(t,{S:function(){return i},_0:function(){return o},hj:function(){return a},m5:function(){return r}});var r="",i="https://browser.events.data.microsoft.com/OneCollector/1.0/",a="version",o="properties"},23207:function(e,t,n){n.d(t,{Aq:function(){return x},EO:function(){return T},F2:function(){return R},Go:function(){return b},H$:function(){return L},Hh:function(){return P},P$:function(){return C},TC:function(){return E},UM:function(){return S},WB:function(){return w},X$:function(){return D},g8:function(){return y},gj:function(){return A},jS:function(){return O},u9:function(){return _},xE:function(){return g},yD:function(){return I}});var r,i=n(4208),a=n(82757),o=n(45806),u=n(97454),c=n(50068),s=n(32393),l=n(52691),f=n(21336),d=n(48156),p="3.2.18",g="1DS-Web-JS-3.2.18",v="withCredentials",m=((r={})[0]=0,r[2]=6,r[1]=1,r[3]=7,r[4098]=6,r[4097]=1,r[4099]=7,r),h=null,y=Boolean((0,i.YE)()),C=Boolean((0,i.zk)());function I(e){return!(e===d.m5||(0,a.hX)(e))}function T(e){if(e){var t=e.indexOf("-");if(t>-1)return e.substring(0,t)}return d.m5}function P(e){return!!(e&&(0,a.Et)(e)&&e>=1&&e<=4)}function E(e,t,n){if(!t&&!I(t)||"string"!==typeof e)return null;var r=typeof t;if("string"===r||"number"===r||"boolean"===r||(0,a.cy)(t))t={value:t};else if("object"!==r||c.J$.call(t,"value")){if((0,a.hX)(t.value)||t.value===d.m5||!(0,a.Kg)(t.value)&&!(0,a.Et)(t.value)&&!(0,a.Lm)(t.value)&&!(0,a.cy)(t.value))return null}else t={value:n?JSON.stringify(t):t};if((0,a.cy)(t.value)&&!k(t.value))return null;if(!(0,a.hX)(t.kind)){if((0,a.cy)(t.value)||!N(t.kind))return null;t.value=t.value.toString()}return t}function b(e,t,n){var r=-1;if(!(0,a.b0)(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 i=m[M(e)]||-1;-1!==r&&-1!==i?r|=i:6===i&&(r=i)}return r}function S(e,t,n){var r;return void 0===n&&(n=!0),e&&(r=e.get(t),n&&r&&decodeURIComponent&&(r=decodeURIComponent(r))),r||d.m5}function A(e){void 0===e&&(e="D");var t=(0,u.aq)();return"B"===e?t="{"+t+"}":"P"===e?t="("+t+")":"N"===e&&(t=t.replace(/-/g,d.m5)),t}function D(e,t,n,r,i){var o={},u=!1,s=0,l=arguments.length,f=Object[c.vR],d=arguments;for("[object Boolean]"===f.toString.call(d[0])&&(u=d[0],s++);s<l;s++){e=d[s];(0,a.z)(e,(function(e,t){u&&t&&(0,a.Gv)(t)?(0,a.cy)(t)?(o[e]=o[e]||[],(0,a.Iu)(t,(function(t,n){t&&(0,a.Gv)(t)?o[e][n]=D(!0,o[e][n],t):o[e][n]=t}))):o[e]=D(!0,o[e],t):o[e]=t}))}return o}var w=u.UU;function N(e){return 0===e||e>0&&e<=13||32===e}function k(e){return e.length>0}function _(e,t){var n=e;n.timings=n.timings||{},n.timings.processTelemetryStart=n.timings.processTelemetryStart||{},n.timings.processTelemetryStart[t]=w()}function M(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===c._1&&(t=4,(0,a.cy)(e)?(t=4096,e.length>0&&(t|=M(e[0]))):c.J$.call(e,"value")&&(t=8192|M(e.value)))}return t}var x={Version:p,FullVersionString:g,strUndefined:c.bA,strObject:c._1,Undefined:c.bA,arrForEach:a.Iu,arrIndexOf:a.rD,arrMap:a.W$,arrReduce:a.KT,objKeys:a.cG,toISOString:a._u,isReactNative:i.lV,isString:a.Kg,isNumber:a.Et,isBoolean:a.Lm,isFunction:a.Tn,isArray:a.cy,isObject:a.Gv,strTrim:a.EH,isDocumentObjectAvailable:y,isWindowObjectAvailable:C,isValueAssigned:I,getTenantId:T,isBeaconsSupported:i.Uf,isUint8ArrayAvailable:function(){return null===h&&(h=!(0,a.b0)(Uint8Array)&&!function(){var e=(0,i.w3)();if(!(0,a.b0)(e)&&e.userAgent){var t=e.userAgent.toLowerCase();if((t.indexOf("safari")>=0||t.indexOf("firefox")>=0)&&t.indexOf("chrome")<0)return!0}return!1}()&&!(0,i.lV)()),h},isLatency:P,sanitizeProperty:E,getISOString:a._u,useXDomainRequest:i.PV,getCommonSchemaMetaData:b,cookieAvailable:o.gi,disallowsSameSiteNone:o.It,setCookie:function(e,t,n){(0,o.gi)(null)&&(0,o.um)(null).set(e,t,86400*n,null,"/")},deleteCookie:function(e){(0,o.gi)(null)&&(0,o.um)(null).del(e)},getCookie:function(e){return(0,o.gi)(null)?S((0,o.um)(null),e):d.m5},createGuid:A,extend:D,getTime:w,isValueKind:N,isArrayValid:k,objDefineAccessors:a.r,addPageUnloadEventListener:s.ee,setProcessTelemetryTimings:_,addEventHandler:s.So,getFieldValueType:M,strEndsWith:a.Cv,objForEachKey:a.z},O={_canUseCookies:void 0,isTypeof:a.Ed,isUndefined:a.b0,isNullOrUndefined:a.hX,hasOwnProperty:a.mQ,isFunction:a.Tn,isObject:a.Gv,isDate:a.$P,isArray:a.cy,isError:a.bJ,isString:a.Kg,isNumber:a.Et,isBoolean:a.Lm,toISOString:a._u,arrForEach:a.Iu,arrIndexOf:a.rD,arrMap:a.W$,arrReduce:a.KT,strTrim:a.EH,objCreate:f.AQ,objKeys:a.cG,objDefineAccessors:a.r,addEventHandler:s.So,dateNow:a.x3,isIE:i.lT,disableCookies:function(){(0,o.um)(null).setEnabled(!1)},newGuid:u.aq,perfNow:u.UU,newId:l.Si,randomValue:l.Z1,random32:l.VN,mwcRandomSeed:l.yc,mwcRandom32:l.k5,generateW3CId:u.cL};function R(){return!!(0,i.EH)("chrome")}function L(e,t,n,r,i,a){function o(e,t,n){try{e[t]=n}catch(r){}}void 0===r&&(r=!1),void 0===i&&(i=!1);var u=new XMLHttpRequest;return r&&o(u,"Microsoft_ApplicationInsights_BypassAjaxInstrumentation",r),n&&o(u,v,n),u.open(e,t,!i),n&&o(u,v,n),!i&&a&&o(u,"timeout",a),u}},99187:function(e,t,n){n.r(t),n.d(t,{CorrelationVectorPlugin:function(){return c},Cv:function(){return a}});var r=n(99235),i=function(){},a=function(){function e(e,t){this._base="",this._currentElement=0,this._base64CharSet="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",this._cv1Constants=new i,this._cv2Constants=new i,this._cvVersionAtLatestValidityCheck=2,this._traceLogger=(0,r.y0)(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="",i=0;i<n;i++)r+=t[i],i<n-1&&(r+=".");var a=t[0].length===this._cv2Constants.baseLength?this._cv2Constants.maxCorrelationVectorLength:this._cv1Constants.maxCorrelationVectorLength;if(r.length<=a)return r}},e.prototype.canExtend=function(){var e=this.storedCv();return!!this.isValid(e)&&this._isLeqThanMaxCorrelationVectorLength(e.length+2)},e.prototype.canIncrement=function(){return!!this.isValid(this.storedCv())&&this._isLeqThanMaxCorrelationVectorLength(this._base.length+1+(this._currentElement+1+"").length)},e.prototype.setValue=function(e){if(this.isValid(e)){var t=e.lastIndexOf(".");return t>1?(this._base=e.substr(0,t),this._currentElement=parseInt(e.substr(t+1),10)):(this._base=e,this._currentElement=0),!0}return(0,r.ZP)(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}(),o=n(73951),u=n(23207),c=function(e){function t(t){var n=e.call(this)||this;return n.identifier="CorrelationVectorPlugin",n.priority=159,n.version="3.2.18",n._cvInitialValue=t,n._cv=n._cvInitialValue?new a(n._cvInitialValue):new a,n}return(0,o.qU)(t,e),t.prototype.initialize=function(t,n,r){e.prototype.initialize.call(this,t,n,r)},t.prototype.processTelemetry=function(e,t){(0,u.u9)(e,this.identifier),e.ext=e.ext||{},e.ext.mscv=e.ext.mscv||{},e.ext.mscv.cV||this._cv&&this._cv.isInit()&&(e.ext.mscv.cV=this._cv.getValue()),this.processNext(e,t)},t.prototype.getCv=function(){return this._cv||(0,r.ZP)(this.diagLog(),2,513,"Correlation Vector has not been initialized."),this._cv},t}(n(85229).s)},85229:function(e,t,n){n.d(t,{s:function(){return s}});var r=n(96837),i=n(58170),a=n(82757),o=n(31192),u=n(63753),c=n(10792),s=function(){function e(){var t,n,s,l,f,d=this;function p(e){void 0===e&&(e=null);var t=e;if(!t){var r=n||(0,u.i8)(null,{},d[o.eT]);t=s&&s.getPlugin?r[i.$o](null,s.getPlugin):r[i.$o](null,s)}return t}function g(e,t,r){e&&(0,a.KY)(e,o.Bw,[],null,a.hX),!r&&t&&(r=t[i.ps]()[i.uR]());var c=s;s&&s.getPlugin&&(c=s.getPlugin()),d[o.eT]=t,n=(0,u.i8)(r,e,t,c)}function v(){t=!1,d[o.eT]=null,n=null,s=null,f=[],l=(0,c.P)()}v(),(0,r.A)(e,d,(function(e){e[i.mE]=function(e,n,r,i){g(e,n,i),t=!0},e[i.Ik]=function(t,n){var r,c=e[o.eT];if(c&&(!t||c===t[o.eT]())){var d,p=!1,g=t||(0,u.tS)(null,c,s&&s.getPlugin?s.getPlugin():s),m=n||((r={reason:0})[i.tI]=!1,r);return e[i.tn]&&!0===e[i.tn](g,m,h)?d=!0:h(),d}function h(){if(!p){p=!0,l.run(g,n);var e=f;f=[],(0,a.Iu)(e,(function(e){e.rm()})),!0===d&&g[i.$5](m),v()}}},e[i.HC]=function(t,n){var r=e[o.eT];if(r&&(!t||r===t[o.eT]())){var a,c=!1,l=t||(0,u.nU)(null,r,s&&s.getPlugin?s.getPlugin():s),f=n||{reason:0};return e._doUpdate&&!0===e._doUpdate(l,f,d)?a=!0:d(),a}function d(){c||(c=!0,g(l.getCfg(),l.core(),l[i.uR]()))}},e._addHook=function(e){e&&((0,a.cy)(e)?f=f.concat(e):f[i.y5](e))},(0,a.RF)(e,"_addUnloadCb",(function(){return l}),"add")})),d[i.e4]=function(e){return p(e)[i.e4]()},d[i.tZ]=function(){return t},d.setInitialized=function(e){t=e},d[i.YH]=function(e){s=e},d[i.$5]=function(e,t){t?t[i.$5](e):s&&(0,a.Tn)(s[o.qT])&&s[o.qT](e,null)},d._getTelCtx=p}return e.__ieDyn=1,e}()},45806:function(e,t,n){n.d(t,{It:function(){return w},d5:function(){return h},gi:function(){return P},um:function(){return I},xN:function(){return T}});var r=n(58170),i=n(99235),a=n(4208),o=n(82757),u=n(31192),c="toGMTString",s="toUTCString",l="expires",f=null,d=null,p=null,g=(0,a.YE)(),v={},m={};function h(e,t){var n=T._ckMgr||m._ckMgr;return n||(n=T._ckMgr=T(e,t),m._ckMgr=n),n}function y(e){return!e||e.isEnabled()}function C(e,t){return!!(t&&e&&(0,o.cy)(e.ignoreCookies))&&-1!==e.ignoreCookies[r.Sj](t)}function I(e,t){var n;if(e)n=e.getCookieMgr();else if(t){var i=t[r.lK];n=i._ckMgr?i._ckMgr:T(t)}return n||(n=h(t,(e||{})[r.Uw])),n}function T(e,t){var n,i=function(e){var t=e[r.lK]=e[r.lK]||{};if((0,o.KY)(t,"domain",e.cookieDomain,o.Gh,o.hX),(0,o.KY)(t,"path",e.cookiePath||"/",null,o.hX),(0,o.hX)(t.enabled)){var n=void 0;(0,o.b0)(e.isCookieUseDisabled)||(n=!e.isCookieUseDisabled),(0,o.b0)(e.disableCookiesUsage)||(n=!e.disableCookiesUsage),t.enabled=n}return t}(e||m),f=i.path||"/",p=i.domain,g=!1!==i.enabled,v=((n={isEnabled:function(){var e=g&&P(t),n=m._ckMgr;return e&&n&&v!==n&&(e=y(n)),e}})[r.kt]=function(e){g=!1!==e},n.set=function(e,t,n,g,m){var h=!1;if(y(v)&&!function(e,t){return!!(t&&e&&(0,o.cy)(e.blockedCookies)&&-1!==e.blockedCookies[r.Sj](t))||C(e,t)}(i,e)){var I={},T=(0,o.EH)(t||u.m5),P=T[r.Sj](";");if(-1!==P&&(T=(0,o.EH)(t[r.Re](0,P)),I=E(t[r.Re](P+1))),(0,o.KY)(I,"domain",g||p,o.zz,o.b0),!(0,o.hX)(n)){var A=(0,a.lT)();if((0,o.b0)(I.expires)){var N=(0,o.x3)()+1e3*n;if(N>0){var k=new Date;k.setTime(N),(0,o.KY)(I,l,b(k,A?c:s)||b(k,A?c:s)||u.m5,o.zz)}}A||(0,o.KY)(I,"max-age",u.m5+n,null,o.b0)}var _=(0,a.g$)();_&&"https:"===_.protocol&&((0,o.KY)(I,"secure",null,null,o.b0),null===d&&(d=!w(((0,a.w3)()||{})[r.tX])),d&&(0,o.KY)(I,"SameSite","None",null,o.b0)),(0,o.KY)(I,"path",m||f,null,o.b0),(i.setCookie||D)(e,S(T,I)),h=!0}return h},n.get=function(e){var t=u.m5;return y(v)&&!C(i,e)&&(t=(i.getCookie||A)(e)),t},n.del=function(e,t){var n=!1;return y(v)&&(n=v.purge(e,t)),n},n.purge=function(e,n){var r,o=!1;if(P(t)){var c=((r={}).path=n||"/",r.expires="Thu, 01 Jan 1970 00:00:01 GMT",r);(0,a.lT)()||(c["max-age"]="0"),(i.delCookie||D)(e,S(u.m5,c)),o=!0}return o},n);return v._ckMgr=v,v}function P(e){if(null===f){f=!1;try{f=void 0!==(g||{}).cookie}catch(t){(0,i.ZP)(e,2,68,"Cannot access document.cookie - "+(0,o.lL)(t),{exception:(0,a.mm)(t)})}}return f}function E(e){var t={};if(e&&e[r.oI]){var n=(0,o.EH)(e)[r.sY](";");(0,o.Iu)(n,(function(e){if(e=(0,o.EH)(e||u.m5)){var n=e[r.Sj]("=");-1===n?t[e]=null:t[(0,o.EH)(e[r.Re](0,n))]=(0,o.EH)(e[r.Re](n+1))}}))}return t}function b(e,t){return(0,o.Tn)(e[t])?e[t]():null}function S(e,t){var n=e||u.m5;return(0,o.z)(t,(function(e,t){n+="; "+e+((0,o.hX)(t)?u.m5:"="+t)})),n}function A(e){var t=u.m5;if(g){var n=g.cookie||u.m5;p!==n&&(v=E(n),p=n),t=(0,o.EH)(v[e]||u.m5)}return t}function D(e,t){g&&(g.cookie=e+"="+t)}function w(e){return!!(0,o.Kg)(e)&&(!(!(0,o.Ju)(e,"CPU iPhone OS 12")&&!(0,o.Ju)(e,"iPad; CPU OS 12"))||(!!((0,o.Ju)(e,"Macintosh; Intel Mac OS X 10_14")&&(0,o.Ju)(e,"Version/")&&(0,o.Ju)(e,"Safari"))||(!(!(0,o.Ju)(e,"Macintosh; Intel Mac OS X 10_14")||!(0,o.Cv)(e,"AppleWebKit/605.1.15 (KHTML, like Gecko)"))||(!(!(0,o.Ju)(e,"Chrome/5")&&!(0,o.Ju)(e,"Chrome/6"))||(!(!(0,o.Ju)(e,"UnrealEngine")||(0,o.Ju)(e,"Chrome"))||!(!(0,o.Ju)(e,"UCBrowser/12")&&!(0,o.Ju)(e,"UCBrowser/11")))))))}},97454:function(e,t,n){n.d(t,{Ri:function(){return I},TV:function(){return T},UU:function(){return g},WD:function(){return y},Yj:function(){return P},aq:function(){return p},cL:function(){return v},ht:function(){return C}});var r,i=n(21336),a=n(58170),o=n(45806),u=n(4208),c=n(32393),s=n(82757),l=n(31192),f=n(52691),d=null;function p(){var e=v();return e[a.Re](0,8)+"-"+e[a.Re](8,12)+"-"+e[a.Re](12,16)+"-"+e[a.Re](16,20)+"-"+e[a.Re](20)}function g(){var e=(0,u.FJ)();return e&&e.now?e.now():(0,s.x3)()}function v(){for(var e,t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"],n=l.m5,r=0;r<4;r++)n+=t[15&(e=(0,f.VN)())]+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 i=t[8+(3&(0,f.VN)())|0];return n[a.$4](0,8)+n[a.$4](9,4)+"4"+n[a.$4](13,3)+i+n[a.$4](16,3)+n[a.$4](19,12)}var m={_canUseCookies:void 0,isTypeof:s.Ed,isUndefined:s.b0,isNullOrUndefined:s.hX,hasOwnProperty:s.mQ,isFunction:s.Tn,isObject:s.Gv,isDate:s.$P,isArray:s.cy,isError:s.bJ,isString:s.Kg,isNumber:s.Et,isBoolean:s.Lm,toISOString:s._u,arrForEach:s.Iu,arrIndexOf:s.rD,arrMap:s.W$,arrReduce:s.KT,strTrim:s.EH,objCreate:i.AQ,objKeys:s.cG,objDefineAccessors:s.r,addEventHandler:c.So,dateNow:s.x3,isIE:u.lT,disableCookies:y,newGuid:p,perfNow:g,newId:f.Si,randomValue:f.Z1,random32:f.VN,mwcRandomSeed:f.yc,mwcRandom32:f.k5,generateW3CId:v};c.Q3,c.Q3,c.Ym,c.Ym;function h(e,t){var n=(0,o.d5)(e,t),i=m._canUseCookies;return null===d&&(d=[],r=i,(0,s.r)(m,"_canUseCookies",(function(){return r}),(function(e){r=e,(0,s.Iu)(d,(function(t){t[a.kt](e)}))}))),-1===(0,s.rD)(d,n)&&d[a.y5](n),(0,s.Lm)(i)&&n[a.kt](i),(0,s.Lm)(r)&&n[a.kt](r),n}function y(){h()[a.kt](!1)}function C(e){return h(null,e).isEnabled()}function I(e,t){return h(null,e).get(t)}function T(e,t,n,r){h(null,e).set(t,n,null,r)}function P(e,t){return h(null,e).del(t)}},16768:function(e,t,n){n.d(t,{T:function(){return v},Z:function(){return g}});var r=n(50068),i=n(58170),a=n(82757),o=n(31192),u=n(52691),c=r.KU,s="2.8.18",l="."+(0,u.Si)(6),f=0;function d(e){return 1===e[i.re]||9===e[i.re]||!+e[i.re]}function p(e,t){var n=t[e.id];if(!n){n={};try{d(t)&&(function(e,t,n){if(c)try{return c(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 g(e,t){return void 0===t&&(t=!1),(0,a.cH)(e+f+++(t?".2.8.18":o.m5)+l)}function v(e){var t={id:g("_aiData-"+(e||o.m5)+"."+s),accept:function(e){return d(e)},get:function(e,n,r,i){var o=e[t.id];return o?o[(0,a.cH)(n)]:(i&&((o=p(t,e))[(0,a.cH)(n)]=r),r)},kill:function(e,t){if(e&&e[t])try{delete e[t]}catch(n){}}};return t}},83151:function(e,t,n){n.d(t,{$:function(){return s},M:function(){return l}});var r,i=n(58170),a=n(4208),o=["eventsSent","eventsDiscarded","eventsSendRequest","perfEvent"],u=null;function c(e,t){return function(){var n=arguments,r=s(t);if(r){var a=r.listener;a&&a[e]&&a[e][i.y9](a,n)}}}function s(e){var t=u;return t||!0===e.disableDbgExt||(t=u||function(){var e=(0,a.EH)("Microsoft");return e&&(u=e.ApplicationInsights),u}()),t?t.ChromeDbgExt:null}function l(e){if(!r){r={};for(var t=0;t<o[i.oI];t++)r[o[t]]=c(o[t],e)}return r}},99235:function(e,t,n){n.d(t,{OG:function(){return m},WD:function(){return f},ZP:function(){return v},wq:function(){return p},y0:function(){return d}});var r=n(96837),i=n(58170),a=n(83151),o=n(4208),u=n(82757),c=n(31192);function s(e){return e?'"'+e[i.W7](/\"/g,c.m5)+'"':c.m5}function l(e,t){var n=(0,o.U5)();if(n){var r="log";n[e]&&(r=e),(0,u.Tn)(n[r])&&n[r](t)}}var f=function(){function e(e,t,n,r){void 0===n&&(n=!1);var a=this;a[i.JR]=e,a[i.pM]=(n?"AI: ":"AI (Internal): ")+e;var u=c.m5;(0,o.Z)()&&(u=(0,o.hm)().stringify(r));var l=(t?" message:"+s(t):c.m5)+(r?" props:"+s(u):c.m5);a[i.pM]+=l}return e.dataType="MessageData",e}();function d(e,t){return(e||{})[i.Uw]||new p(t)}var p=function(){function e(t){this.identifier="DiagnosticLogger",this.queue=[];var n,s,d,p,g=0,v={};(0,r.A)(e,this,(function(e){function r(t,n){if(!(g>=d)){var r=!0,a="AITR_"+n[i.JR];if(v[a]?r=!1:v[a]=!0,r&&(t<=s&&(e.queue[i.y5](n),g++,m(1===t?"error":"warn",n)),g===d)){var o="Internal events throttle limit per PageView reached for this app.",u=new f(23,o,!1);e.queue[i.y5](u),1===t?e[c.Zi](o):e[c.Tj](o)}}}function m(e,n){var r=(0,a.$)(t||{});r&&r[i.e4]&&r[i.e4](e,n)}!function(e){n=(0,u.SA)(e.loggingLevelConsole,0),s=(0,u.SA)(e.loggingLevelTelemetry,1),d=(0,u.SA)(e.maxMessageLimit,25),p=(0,u.SA)(e.enableDebug,(0,u.SA)(e[i.a$],!1))}(t||{}),e.consoleLoggingLevel=function(){return n},e.telemetryLoggingLevel=function(){return s},e.maxInternalMessageLimit=function(){return d},e[i.a$]=function(){return p},e.throwInternal=function(t,a,s,l,d){void 0===d&&(d=!1);var g=new f(a,s,d,l);if(p)throw(0,o.mm)(g);var h=1===t?c.Zi:c.Tj;if((0,u.b0)(g[i.pM]))m("throw"+(1===t?"Critical":"Warning"),g);else{if(d){var y=+g[i.JR];!v[y]&&n>=t&&(e[h](g[i.pM]),v[y]=!0)}else n>=t&&e[h](g[i.pM]);r(t,g)}},e[c.Tj]=function(e){l("warn",e),m("warning",e)},e[c.Zi]=function(e){l("error",e),m("error",e)},e.resetInternalMessageCount=function(){g=0,v={}},e[i.sx]=r}))}return e.__ieDyn=1,e}();function g(e){return e||new p}function v(e,t,n,r,i,a){void 0===a&&(a=!1),g(e).throwInternal(t,n,r,i,a)}function m(e,t){g(e)[c.Tj](t)}},4208:function(e,t,n){n.d(t,{EH:function(){return C},FJ:function(){return k},JK:function(){return D},L0:function(){return U},MY:function(){return x},PV:function(){return B},R7:function(){return H},U5:function(){return N},Uf:function(){return F},Vd:function(){return I},Wt:function(){return P},YE:function(){return E},Z:function(){return _},g$:function(){return w},hm:function(){return M},iN:function(){return O},lT:function(){return L},lV:function(){return R},mm:function(){return V},tw:function(){return A},w3:function(){return S},xk:function(){return z},zk:function(){return T}});var r=n(50068),i=n(21336),a=n(58170),o=n(82757),u=n(31192),c="window",s="JSON",l="msie",f="trident/",d="XMLHttpRequest",p=null,g=null,v=!1,m=null,h=null;function y(e,t){var n=!1;if(e){try{if(!(n=t in e)){var i=e[r.vR];i&&(n=t in i)}}catch(u){}if(!n)try{var a=new e;n=!(0,o.b0)(a[t])}catch(u){}}return n}function C(e){var t=(0,i.mS)();return t&&t[e]?t[e]:e===c&&I()?window:null}function I(){return Boolean(typeof window===r._1&&window)}function T(){return I()?window:C(c)}function P(){return Boolean(typeof document===r._1&&document)}function E(){return P()?document:C("document")}function b(){return Boolean(typeof navigator===r._1&&navigator)}function S(){return b()?navigator:C("navigator")}function A(){return Boolean(typeof history===r._1&&history)}function D(){return A()?history:C("history")}function w(e){if(e&&v){var t=C("__mockLocation");if(t)return t}return typeof location===r._1&&location?location:C("location")}function N(){return typeof console!==r.bA?console:C("console")}function k(){return C("performance")}function _(){return Boolean(typeof JSON===r._1&&JSON||null!==C(s))}function M(){return _()?JSON||C(s):null}function x(){return C("crypto")}function O(){return C("msCrypto")}function R(){var e=S();return!(!e||!e.product)&&"ReactNative"===e.product}function L(){var e=S();if(e&&(e[a.tX]!==g||null===p)){var t=((g=e[a.tX])||u.m5)[a.OL]();p=(0,o.Ju)(t,l)||(0,o.Ju)(t,f)}return p}function U(e){if(void 0===e&&(e=null),!e){var t=S()||{};e=t?(t[a.tX]||u.m5)[a.OL]():u.m5}var n=(e||u.m5)[a.OL]();if((0,o.Ju)(n,l)){var r=E()||{};return Math.max(parseInt(n[a.sY](l)[1]),r.documentMode||0)}if((0,o.Ju)(n,f)){var i=parseInt(n[a.sY](f)[1]);if(i)return i+4}return null}function V(e){var t=Object[r.vR].toString[a.Ek](e),n=u.m5;return"[object Error]"===t?n="{ stack: '"+e.stack+"', message: '"+e.message+"', name: '"+e[a.RS]+"'":_()&&(n=M().stringify(e)),t+n}function F(){return null===h&&(h=b()&&Boolean(S().sendBeacon)),h}function H(e){var t=!1;try{t=!!C("fetch");var n=C("Request");t&&e&&n&&(t=y(n,"keepalive"))}catch(r){}return t}function B(){return null===m&&(m=typeof XDomainRequest!==r.bA)&&z()&&(m=m&&!y(C(d),"withCredentials")),m}function z(){var e=!1;try{e=!!C(d)}catch(t){}return e}},32393:function(e,t,n){n.d(t,{Ds:function(){return R},Fc:function(){return L},Hm:function(){return A},ML:function(){return w},Q3:function(){return N},So:function(){return _},Ym:function(){return k},ee:function(){return O},mB:function(){return D},oS:function(){return V},sq:function(){return U},vF:function(){return F}});var r=n(58170),i=n(16768),a=n(4208),o=n(82757),u=n(31192),c="events",s="visibilitychange",l="pagehide",f="pageshow",d="unload",p="beforeunload",g=(0,i.Z)("aiEvtPageHide"),v=(0,i.Z)("aiEvtPageShow"),m=/\.[\.]+/g,h=/[\.]+$/,y=1,C=(0,i.T)("events"),I=/^([^.]*)(?:\.(.+)|)/;function T(e){return e&&e[r.W7]?e[r.W7](/^[\s\.]+|(?=[\s\.])[\.\s]+$/g,u.m5):e}function P(e,t){var n;if(t){var i=u.m5;(0,o.cy)(t)?(i=u.m5,(0,o.Iu)(t,(function(e){(e=T(e))&&("."!==e[0]&&(e="."+e),i+=e)}))):i=T(t),i&&("."!==i[0]&&(i="."+i),e=(e||u.m5)+i)}var a=I.exec(e||u.m5)||[];return(n={})[r.QM]=a[1],n.ns=(a[2]||u.m5).replace(m,".").replace(h,u.m5)[r.sY](".").sort().join("."),n}function E(e,t,n){void 0===n&&(n=!0);var r=C.get(e,c,{},n),i=r[t];return i||(i=r[t]=[]),i}function b(e,t,n,i){e&&t&&t[r.QM]&&(e.removeEventListener?e.removeEventListener(t[r.QM],n,i):e.detachEvent&&e.detachEvent("on"+t[r.QM],n))}function S(e,t,n,i){for(var a=t[r.oI];a--;){var o=t[a];o&&(n.ns&&n.ns!==o.evtName.ns||i&&!i(o)||(b(e,o.evtName,o[r.Yo],o.capture),t[r.Ic](a,1)))}}function A(e,t){return t?P("xx",(0,o.cy)(t)?[e].concat(t):[e,t]).ns[r.sY]("."):e}function D(e,t,n,i,a){var o;void 0===a&&(a=!1);var u=!1;if(e)try{var c=P(t,i);if(u=function(e,t,n,i){var a=!1;return e&&t&&t[r.QM]&&n&&(e.addEventListener?(e.addEventListener(t[r.QM],n,i),a=!0):e.attachEvent&&(e.attachEvent("on"+t[r.QM],n),a=!0)),a}(e,c,n,a),u&&C.accept(e)){var s=((o={guid:y++,evtName:c})[r.Yo]=n,o.capture=a,o);E(e,c.type)[r.y5](s)}}catch(l){}return u}function w(e,t,n,i,a){if(void 0===a&&(a=!1),e)try{var u=P(t,i),s=!1;!function(e,t,n){if(t[r.QM])S(e,E(e,t[r.QM]),t,n);else{var i=C.get(e,c,{});(0,o.z)(i,(function(r,i){S(e,i,t,n)})),0===(0,o.cG)(i)[r.oI]&&C.kill(e,c)}}(e,u,(function(e){return!((!u.ns||n)&&e[r.Yo]!==n)&&(s=!0,!0)})),s||b(e,u,n,a)}catch(l){}}function N(e,t,n,r){return void 0===r&&(r=!1),D(e,t,n,null,r)}function k(e,t,n,r){void 0===r&&(r=!1),w(e,t,n,null,r)}function _(e,t,n){var r=!1,i=(0,a.zk)();i&&(r=D(i,e,t,n),r=D(i.body,e,t,n)||r);var o=(0,a.YE)();return o&&(r=D(o,e,t,n)||r),r}function M(e,t,n,i){var a=!1;return t&&e&&e[r.oI]>0&&(0,o.Iu)(e,(function(e){e&&(n&&-1!==(0,o.rD)(n,e)||(a=_(e,t,i)||a))})),a}function x(e,t,n){e&&(0,o.cy)(e)&&(0,o.Iu)(e,(function(e){e&&function(e,t,n){var r=(0,a.zk)();r&&(w(r,e,t,n),w(r.body,e,t,n));var i=(0,a.YE)();i&&w(i,e,t,n)}(e,t,n)}))}function O(e,t,n){return function(e,t,n,i){var a=!1;return t&&e&&(0,o.cy)(e)&&!(a=M(e,t,n,i))&&n&&n[r.oI]>0&&(a=M(e,t,null,i)),a}([p,d,l],e,t,n)}function R(e,t){x([p,d,l],e,t)}function L(e,t,n){var r=A(g,n),i=M([l],e,t,r);return t&&-1!==(0,o.rD)(t,s)||(i=M([s],(function(t){var n=(0,a.YE)();e&&n&&"hidden"===n.visibilityState&&e(t)}),t,r)||i),!i&&t&&(i=L(e,null,n)),i}function U(e,t){var n=A(g,t);x([l],e,n),x([s],null,n)}function V(e,t,n){var r=A(v,n),i=M([f],e,t,r);return!(i=M([s],(function(t){var n=(0,a.YE)();e&&n&&"visible"===n.visibilityState&&e(t)}),t,r)||i)&&t&&(i=V(e,null,n)),i}function F(e,t){var n=A(v,t);x([f],e,n),x([s],null,n)}},82757:function(e,t,n){n.d(t,{$8:function(){return se},$P:function(){return U},CP:function(){return ve},Cv:function(){return O},EH:function(){return X},Ed:function(){return S},Et:function(){return B},Gh:function(){return w},Gv:function(){return k},Iu:function(){return q},Ju:function(){return L},KT:function(){return j},KY:function(){return ae},Kg:function(){return H},Lm:function(){return z},N6:function(){return ne},RF:function(){return de},SA:function(){return ue},Tn:function(){return _},W$:function(){return J},_u:function(){return K},b0:function(){return A},bJ:function(){return F},c2:function(){return oe},cG:function(){return Z},cH:function(){return M},cy:function(){return V},fw:function(){return b},hW:function(){return ge},hX:function(){return D},lL:function(){return ie},mQ:function(){return N},o$:function(){return pe},ol:function(){return te},qz:function(){return fe},r:function(){return Q},rD:function(){return W},tG:function(){return R},x3:function(){return re},z:function(){return x},zz:function(){return ce}});var r=n(50068),i=n(21336),a=n(58170),o=n(31192),u="constructor",c=r.KU,s=r.s6.freeze,l=(r.s6.seal,r.s6.keys),f=String[r.vR],d=f.trim,p=f.endsWith,g=f.startsWith,v=Date[r.vR].toISOString,m=Array.isArray,h=r.Wy.toString,y=r.J$.toString,C=y[a.Ek](r.s6),I=/-([a-z])/g,T=/([^\w\d_$])/g,P=/^(\d+[\w\d_$])/,E=Object.getPrototypeOf;function b(e){if(e){if(E)return E(e);var t=e.__proto__||e[r.vR]||e.constructor;if(t)return t}return null}function S(e,t){return typeof e===t}function A(e){return void 0===e||typeof e===r.bA}function D(e){return null===e||A(e)}function w(e){return!D(e)}function N(e,t){return!(!e||!r.J$[a.Ek](e,t))}function k(e){return!(!e||typeof e!==r._1)}function _(e){return!(!e||typeof e!==r.hW)}function M(e){var t=e;return t&&H(t)&&(t=(t=(t=t[a.W7](I,(function(e,t){return t.toUpperCase()})))[a.W7](T,"_"))[a.W7](P,(function(e,t){return"_"+t}))),t}function x(e,t){if(e)for(var n in e)r.J$[a.Ek](e,n)&&t[a.Ek](e,n,e[n])}function O(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=p?e.endsWith(t):function(e,t){var n=!1,r=t?t[a.oI]:0,i=e?e[a.oI]:0;if(r&&i&&i>=r&&!(n=e===t)){for(var o=i-1,u=r-1;u>=0;u--){if(e[o]!=t[u])return!1;o--}n=!0}return n}(e,t)),n}function R(e,t){var n=!1;return e&&t&&!(n=e===t)&&(n=g?e.startsWith(t):function(e,t){var n=!1,r=t?t[a.oI]:0;if(e&&r&&e[a.oI]>=r&&!(n=e===t)){for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;n=!0}return n}(e,t)),n}function L(e,t){return!(!e||!t)&&-1!==e[a.Sj](t)}function U(e){return!(!e||"[object Date]"!==h[a.Ek](e))}var V=m||function(e){return!(!e||"[object Array]"!==h[a.Ek](e))};function F(e){return!(!e||"[object Error]"!==h[a.Ek](e))}function H(e){return"string"===typeof e}function B(e){return"number"===typeof e}function z(e){return"boolean"===typeof e}function G(e){var t=!1;if(e&&"object"===typeof e){var n=E?E(e):b(e);n?(n.constructor&&r.J$[a.Ek](n,u)&&(n=n.constructor),t=typeof n===r.hW&&y[a.Ek](n)===C):t=!0}return t}function K(e){if(e)return v?e.toISOString():function(e){if(e&&e.getUTCFullYear){var t=function(e){var t=String(e);return 1===t[a.oI]&&(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 q(e,t,n){var r=e[a.oI];try{for(var i=0;i<r&&(!(i in e)||-1!==t[a.Ek](n||e,e[i],i,e));i++);}catch(o){}}function W(e,t,n){if(e){if(e.indexOf)return e.indexOf(t,n);var r=e[a.oI],i=n||0;try{for(var o=Math.max(i>=0?i:r-Math.abs(i),0);o<r;o++)if(o in e&&e[o]===t)return o}catch(u){}}return-1}function J(e,t,n){var r;if(e){if(e.map)return e.map(t,n);var i=e[a.oI],o=n||e;r=new Array(i);try{for(var u=0;u<i;u++)u in e&&(r[u]=t[a.Ek](o,e[u],e))}catch(c){}}return r}function j(e,t,n){var r;if(e){if(e.reduce)return e.reduce(t,n);var i=e[a.oI],o=0;if(arguments[a.oI]>=3)r=arguments[2];else{for(;o<i&&!(o in e);)o++;r=e[o++]}for(;o<i;)o in e&&(r=t(r,e[o],o,e)),o++}return r}function X(e){return e&&(e=d&&e.trim?e.trim():e[a.W7]?e[a.W7](/^\s+|(?=\s)\s+$/g,o.m5):e),e}var $=!{toString:null}.propertyIsEnumerable("toString"),Y=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"];function Z(e){var t=typeof e;if(t===r.hW||t===r._1&&null!==e||(0,i.zk)("objKeys called on non-object"),!$&&l)return l(e);var n=[];for(var o in e)e&&r.J$[a.Ek](e,o)&&n[a.y5](o);if($)for(var u=Y[a.oI],c=0;c<u;c++)e&&r.J$[a.Ek](e,Y[c])&&n[a.y5](Y[c]);return n}function Q(e,t,n,r){if(c)try{var i={enumerable:!0,configurable:!0};return n&&(i.get=n),r&&(i.set=r),c(e,t,i),!0}catch(a){}return!1}function ee(e){return e}function te(e){return s&&x(e,(function(e,t){(V(t)||k(t))&&s(t)})),ne(e)}var ne=s||ee;function re(){var e=Date;return e.now?e.now():(new e).getTime()}function ie(e){return F(e)?e[a.RS]:o.m5}function ae(e,t,n,r,i){var a=n;return e&&((a=e[t])===n||i&&!i(a)||r&&!r(n)||(a=n,e[t]=a)),a}function oe(e,t,n){var r;return e?!(r=e[t])&&D(r)&&(r=A(n)?{}:n,e[t]=r):r=A(n)?{}:n,r}function ue(e,t){return D(e)?t:e}function ce(e){return!!e}function se(e){throw new Error(e)}function le(e,t){var n=null,r=null;return _(e)?n=e:r=e,function(){var e=arguments;if(n&&(r=n()),r)return r[t][a.y9](r,e)}}function fe(e,t,n){if(e&&t&&k(e)&&k(t)){var r=function(r){if(H(r)){var i=t[r];_(i)?n&&!n(r,!0,t,e)||(e[r]=le(t,r)):n&&!n(r,!1,t,e)||(N(e,r)&&delete e[r],Q(e,r,(function(){return t[r]}),(function(e){t[r]=e}))||(e[r]=i))}};for(var i in t)r(i)}return e}function de(e,t,n,r,i){e&&t&&n&&(!1!==i||A(e[t]))&&(e[t]=le(n,r))}function pe(e,t,n,r){return e&&t&&k(e)&&V(n)&&q(n,(function(n){H(n)&&de(e,n,t,n,r)})),e}function ge(e){return e&&r.zi&&(e=(0,r.s6)((0,r.zi)({},e))),e}function ve(e,t,n,i,o,u){var c=arguments,s=c[0]||{},l=c[a.oI],f=!1,d=1;for(l>0&&z(s)&&(f=s,s=c[d]||{},d++),k(s)||(s={});d<l;d++){var p=c[d],g=V(p),v=k(p);for(var m in p){var h=g&&m in p||v&&r.J$[a.Ek](p,m);if(h){var y=p[m],C=void 0;if(f&&y&&((C=V(y))||G(y))){var I=s[m];C?V(I)||(I=[]):G(I)||(I={}),y=ve(f,I,y)}void 0!==y&&(s[m]=y)}}}return s}},31192:function(e,t,n){n.d(t,{Bw:function(){return c},Hr:function(){return u},LZ:function(){return i},Tj:function(){return h},Vo:function(){return f},Yd:function(){return o},Yp:function(){return p},Zi:function(){return m},dI:function(){return g},eT:function(){return a},fc:function(){return d},jy:function(){return s},kI:function(){return y},l0:function(){return v},m5:function(){return r},qT:function(){return l}});var r="",i="channels",a="core",o="createPerfMgr",u="disabled",c="extensionConfig",s="extensions",l="processTelemetry",f="priority",d="eventsSent",p="eventsDiscarded",g="eventsSendRequest",v="perfEvent",m="errorToConsole",h="warnToConsole",y="getPerfMgr"},9096:function(e,t,n){n.d(t,{NS:function(){return s},Z4:function(){return d},r2:function(){return f}});var r=n(96837),i=n(58170),a=n(82757),o=n(31192),u=null,c=function(){function e(t,n,r){var o,u=this,c=!1;(u.start=(0,a.x3)(),u[i.RS]=t,u[i.tI]=r,u[i.Zu]=function(){return!1},(0,a.Tn)(n))&&(c=(0,a.r)(u,"payload",(function(){return!o&&(0,a.Tn)(n)&&(o=n(),n=null),o})));u[i.O_]=function(t){return t?t===e.ParentContextKey||t===e.ChildrenContextKey?u[t]:(u.ctx||{})[t]:null},u[i.e_]=function(t,n){if(t)if(t===e.ParentContextKey)u[t]||(u[i.Zu]=function(){return!0}),u[t]=n;else if(t===e.ChildrenContextKey)u[t]=n;else{(u.ctx=u.ctx||{})[t]=n}},u[i.Ru]=function(){var t=0,r=u[i.O_](e.ChildrenContextKey);if((0,a.cy)(r))for(var o=0;o<r[i.oI];o++){var s=r[o];s&&(t+=s[i.fA])}u[i.fA]=(0,a.x3)()-u.start,u.exTime=u[i.fA]-t,u[i.Ru]=function(){},!c&&(0,a.Tn)(n)&&(u.payload=n())}}return e.ParentContextKey="parent",e.ChildrenContextKey="childEvts",e}(),s=function(){function e(t){this.ctx={},(0,r.A)(e,this,(function(e){e.create=function(e,t,n){return new c(e,t,n)},e.fire=function(e){e&&(e[i.Ru](),t&&(0,a.Tn)(t[o.l0])&&t[o.l0](e))},e[i.e_]=function(t,n){t&&((e.ctx=e.ctx||{})[t]=n)},e[i.O_]=function(t){return(e.ctx||{})[t]}}))}return e.__ieDyn=1,e}(),l="CoreUtils.doPerf";function f(e,t,n,r,a){if(e){var u=e;if(u[o.kI]&&(u=u[o.kI]()),u){var s=void 0,f=u[i.O_](l);try{if(s=u.create(t(),r,a)){if(f&&s[i.e_]&&(s[i.e_](c.ParentContextKey,f),f[i.O_]&&f[i.e_])){var d=f[i.O_](c.ChildrenContextKey);d||(d=[],f[i.e_](c.ChildrenContextKey,d)),d[i.y5](s)}return u[i.e_](l,s),n(s)}}catch(p){s&&s[i.e_]&&s[i.e_]("exception",p)}finally{s&&u.fire(s),u[i.e_](l,f)}}}return n()}function d(){return u}},63753:function(e,t,n){n.d(t,{PV:function(){return m},i8:function(){return p},nU:function(){return v},tS:function(){return g}});var r=n(58170),i=n(99235),a=n(4208),o=n(82757),u=n(31192),c=n(9096),s=n(25904),l="TelemetryPluginChain",f=0;function d(e,t,n,c){var s=null,l=[];null!==c&&(s=c?function(e,t,n){for(;e;){if(e[r.AP]()===n)return e;e=e[r.uR]()}return m([n],t[r.GA]||{},t)}(e,n,c):e);var f={_next:function(){var e=s;if(s=e?e[r.uR]():null,!e){var t=l;t&&t[r.oI]>0&&((0,o.Iu)(t,(function(e){try{e.func[r.Ek](e.self,e.args)}catch(t){(0,i.ZP)(n[r.Uw],2,73,"Unexpected Exception during onComplete - "+(0,a.mm)(t))}})),l=[])}return e},ctx:{core:function(){return n},diagLog:function(){return(0,i.y0)(n,t)},getCfg:function(){return t},getExtCfg:d,getConfig:function(e,n,r){void 0===r&&(r=!1);var i,a=d(e,null);a&&!(0,o.hX)(a[n])?i=a[n]:t&&!(0,o.hX)(t[n])&&(i=t[n]);return(0,o.hX)(i)?r:i},hasNext:function(){return!!s},getNext:function(){return s},setNext:function(e){s=e},iterate:function(e){var t;for(;t=f._next();){var n=t[r.AP]();n&&e(n)}},onComplete:function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];e&&l[r.y5]({func:e,self:(0,o.b0)(t)?f.ctx:t,args:n})}}};function d(e,n,r){var i;if(void 0===n&&(n={}),void 0===r&&(r=0),t){var a=t[u.Bw];a&&e&&(i=a[e])}if(i){if((0,o.Gv)(n)&&0!==r){var c=(0,o.CP)(!0,n,i);t&&2===r&&(0,o.z)(n,(function(e){if((0,o.hX)(c[e])){var n=t[e];(0,o.hX)(n)||(c[e]=n)}})),i=c}}else i=n;return i}return f}function p(e,t,n,i){var a=d(e,t,n,i),c=a.ctx;return c[r.$5]=function(e){var t=a._next();return t&&t[u.qT](e,c),!t},c[r.$o]=function(e,i){return void 0===e&&(e=null),(0,o.cy)(e)&&(e=m(e,t,n,i)),p(e||c[r.uR](),t,n,i)},c}function g(e,t,n){var i=t[r.GA]||{},a=d(e,i,t,n),u=a.ctx;return u[r.$5]=function(e){var t=a._next();return t&&t.unload(u,e),!t},u[r.$o]=function(e,n){return void 0===e&&(e=null),(0,o.cy)(e)&&(e=m(e,i,t,n)),g(e||u[r.uR](),t,n)},u}function v(e,t,n){var i=t[r.GA]||{},a=d(e,i,t,n).ctx;return a[r.$5]=function(e){return a.iterate((function(t){(0,o.Tn)(t[r.HC])&&t[r.HC](a,e)}))},a[r.$o]=function(e,n){return void 0===e&&(e=null),(0,o.cy)(e)&&(e=m(e,i,t,n)),v(e||a[r.uR](),t,n)},a}function m(e,t,n,d){var g=null,v=!d;if((0,o.cy)(e)&&e[r.oI]>0){var h=null;(0,o.Iu)(e,(function(e){if(v||d!==e||(v=!0),v&&e&&(0,o.Tn)(e[u.qT])){var m=function(e,t,n){var d,g=null,v=(0,o.Tn)(e[u.qT]),m=(0,o.Tn)(e[r.YH]);d=e?e[r.Ju]+"-"+e[u.Vo]+"-"+f++:"Unknown-0-"+f++;var h={getPlugin:function(){return e},getNext:function(){return g},processTelemetry:I,unload:T,update:P,_id:d,_setNext:function(e){g=e}};function y(){var r;return e&&(0,o.Tn)(e._getTelCtx)&&(r=e._getTelCtx()),r||(r=p(h,t,n)),r}function C(t,n,o,s,f){var p=!1,v=e?e[r.Ju]:l,m=t._hasRun;return m||(m=t._hasRun={}),t.setNext(g),e&&(0,c.r2)(t[u.eT](),(function(){return v+":"+o}),(function(){m[d]=!0;try{var e=g?g._id:u.m5;e&&(m[e]=!1),p=n(t)}catch(s){var c=!g||m[g._id];c&&(p=!0),g&&c||(0,i.ZP)(t[r.e4](),1,73,"Plugin ["+v+"] failed during "+o+" - "+(0,a.mm)(s)+", run flags: "+(0,a.mm)(m))}}),s,f),p}function I(t,n){function i(n){if(!e||!v)return!1;var i=(0,s.Cr)(e);return!i[r.Ik]&&!i[u.Hr]&&(m&&e[r.YH](g),e[u.qT](t,n),!0)}C(n=n||y(),i,"processTelemetry",(function(){return{item:t}}),!t.sync)||n[r.$5](t)}function T(t,n){function i(){var i=!1;if(e){var a=(0,s.Cr)(e),o=e[u.eT]||a[u.eT];!e||o&&o!==t.core()||a[r.Ik]||(a[u.eT]=null,a[r.Ik]=!0,a[r.tZ]=!1,e[r.Ik]&&!0===e[r.Ik](t,n)&&(i=!0))}return i}C(t,i,"unload",(function(){}),n[r.tI])||t[r.$5](n)}function P(t,n){function i(){var i=!1;if(e){var a=(0,s.Cr)(e),o=e[u.eT]||a[u.eT];!e||o&&o!==t.core()||a[r.Ik]||e[r.HC]&&!0===e[r.HC](t,n)&&(i=!0)}return i}C(t,i,"update",(function(){}),!1)||t[r.$5](n)}return(0,o.N6)(h)}(e,t,n);g||(g=m),h&&h._setNext(m),h=m}}))}return d&&!g?m([d],t,n):g}},52691:function(e,t,n){n.d(t,{Si:function(){return y},VN:function(){return v},Z1:function(){return g},k5:function(){return h},yc:function(){return m}});var r=n(58170),i=n(4208),a=n(82757),o=n(31192),u=4294967296,c=4294967295,s=!1,l=123456789,f=987654321;function d(e){e<0&&(e>>>=0),l=123456789+e&c,f=987654321-e&c,s=!0}function p(){try{var e=2147483647&(0,a.x3)();d((Math.random()*u^e)+e)}catch(t){}}function g(e){return e>0?Math.floor(v()/c*(e+1))>>>0:0}function v(e){var t=0,n=(0,i.MY)()||(0,i.iN)();return n&&n.getRandomValues&&(t=n.getRandomValues(new Uint32Array(1))[0]&c),0===t&&(0,i.lT)()&&(s||p(),t=h()&c),0===t&&(t=Math.floor(u*Math.random()|0)),e||(t>>>=0),t}function m(e){e?d(e):p()}function h(e){var t=((f=36969*(65535&f)+(f>>16)&c)<<16)+(65535&(l=18e3*(65535&l)+(l>>16)&c))>>>0&c|0;return e||(t>>>=0),t}function y(e){void 0===e&&(e=22);for(var t=v()>>>0,n=0,i=o.m5;i[r.oI]<e;)n++,i+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(63&t),t>>>=6,5===n&&(t=(v()<<2&4294967295|3&t)>>>0,n=0);return i}},25904:function(e,t,n){n.d(t,{Cr:function(){return s},Xc:function(){return f},pI:function(){return l},u7:function(){return d}});var r=n(58170),i=n(16768),a=n(82757),o=n(31192),u=n(35356),c=(0,i.T)("plugin");function s(e){return c.get(e,"state",{},!0)}function l(e,t){for(var n,i=[],u=null,c=e[r.uR]();c;){var l=c[r.AP]();if(l){u&&(0,a.Tn)(u[r.YH])&&(0,a.Tn)(l[o.qT])&&u[r.YH](l);((0,a.Tn)(l[r.tZ])?l[r.tZ]():(n=s(l))[r.tZ])||i[r.y5](l),u=l,c=c[r.uR]()}}(0,a.Iu)(i,(function(i){var a=e[o.eT]();i[r.mE](e.getCfg(),a,t,e[r.uR]()),n=s(i),i[o.eT]||n[o.eT]||(n[o.eT]=a),n[r.tZ]=!0,delete n[r.Ik]}))}function f(e){return e.sort((function(e,t){var n=0;if(t){var r=(0,a.Tn)(t[o.qT]);(0,a.Tn)(e[o.qT])?n=r?e[o.Vo]-t[o.Vo]:1:r&&(n=-1)}else n=e?1:-1;return n}))}function d(e){var t={};return{getName:function(){return t[r.RS]},setName:function(n){e&&e.setName(n),t[r.RS]=n},getTraceId:function(){return t[r.P5]},setTraceId:function(n){e&&e.setTraceId(n),(0,u.hX)(n)&&(t[r.P5]=n)},getSpanId:function(){return t[r.wi]},setSpanId:function(n){e&&e.setSpanId(n),(0,u.wN)(n)&&(t[r.wi]=n)},getTraceFlags:function(){return t[r.Rr]},setTraceFlags:function(n){e&&e.setTraceFlags(n),t[r.Rr]=n}}}},10792:function(e,t,n){n.d(t,{P:function(){return u}});var r=n(58170),i=n(99235),a=n(4208),o=n(82757);function u(){var e=[];return{add:function(t){t&&e[r.y5](t)},run:function(t,n){(0,o.Iu)(e,(function(e){try{e(t,n)}catch(o){(0,i.ZP)(t[r.e4](),2,73,"Unexpected error calling unload handler - "+(0,a.mm)(o))}})),e=[]}}}},35356:function(e,t,n){n.d(t,{hX:function(){return u},wN:function(){return c}});var r=n(58170),i="00000000000000000000000000000000",a="0000000000000000";function o(e,t,n){return!(!e||e[r.oI]!==t||e===n)&&!!e.match(/^[\da-f]*$/i)}function u(e){return o(e,32,i)}function c(e){return o(e,16,a)}},58170:function(e,t,n){n.d(t,{$4:function(){return H},$5:function(){return g},$o:function(){return x},AP:function(){return I},Di:function(){return y},EX:function(){return T},Ek:function(){return J},GA:function(){return s},H7:function(){return P},HC:function(){return N},Ic:function(){return E},Ik:function(){return b},JR:function(){return S},Ju:function(){return o},OL:function(){return W},O_:function(){return Z},P5:function(){return te},QM:function(){return j},RF:function(){return a},RS:function(){return i},Re:function(){return L},Rr:function(){return re},Ru:function(){return ee},Sj:function(){return R},TP:function(){return h},Uw:function(){return f},W7:function(){return G},YH:function(){return M},Yo:function(){return X},Zu:function(){return Y},a$:function(){return K},by:function(){return C},e4:function(){return _},e_:function(){return Q},fA:function(){return p},kt:function(){return F},lJ:function(){return $},lK:function(){return O},mE:function(){return r},oI:function(){return d},pM:function(){return A},ps:function(){return v},re:function(){return B},sY:function(){return V},sl:function(){return l},sx:function(){return q},tI:function(){return D},tX:function(){return U},tZ:function(){return c},tn:function(){return w},uR:function(){return k},vR:function(){return m},wi:function(){return ne},y5:function(){return u},y9:function(){return z}});var r="initialize",i="name",a="getNotifyMgr",o="identifier",u="push",c="isInitialized",s="config",l="instrumentationKey",f="logger",d="length",p="time",g="processNext",v="getProcessTelContext",m="addNotificationListener",h="removeNotificationListener",y="stopPollingInternalLogs",C="onComplete",I="getPlugin",T="flush",P="_extensions",E="splice",b="teardown",S="messageId",A="message",D="isAsync",w="_doTeardown",N="update",k="getNext",_="diagLog",M="setNextPlugin",x="createNew",O="cookieCfg",R="indexOf",L="substring",U="userAgent",V="split",F="setEnabled",H="substr",B="nodeType",z="apply",G="replace",K="enableDebugExceptions",q="logInternalMessage",W="toLowerCase",J="call",j="type",X="handler",$="listeners",Y="isChildEvt",Z="getCtx",Q="setCtx",ee="complete",te="traceId",ne="spanId",re="traceFlags"},96837:function(e,t,n){var r;n.d(t,{A:function(){return k}});var i="undefined",a="constructor",o="prototype",u="function",c="_dynClass",s="_unknown_",l="__proto__",f="_dyn__proto__",d=Object,p=d.getPrototypeOf,g=d.getOwnPropertyNames;var v=function(){var e;return typeof globalThis!==i&&(e=globalThis),e||typeof self===i||(e=self),e||typeof window===i||(e=window),e||typeof n.g===i||(e=n.g),e||{}}(),m=v.__dynProto$Gbl||(v.__dynProto$Gbl={o:(r={},r.setInstFuncs=!0,r.useBaseInst=!0,r),n:1e3});function h(e,t){return e&&d.prototype.hasOwnProperty.call(e,t)}function y(e){return e&&(e===d.prototype||e===Array.prototype)}function C(e){return y(e)||e===Function.prototype}function I(e){var t;if(e){if(p)return p(e);var n=e.__proto__||e.prototype||(e.constructor?e.constructor.prototype:null);t=e._dyn__proto__||n,h(e,f)||(delete e._dynInstProto,t=e._dyn__proto__=e._dynInstProto||e._dyn__proto__,e._dynInstProto=n)}return t}function T(e,t){var n=[];if(g)n=g(e);else for(var r in e)"string"===typeof r&&h(e,r)&&n.push(r);if(n&&n.length>0)for(var i=0;i<n.length;i++)t(n[i])}function P(e,t,n){return t!==a&&typeof e[t]===u&&(n||h(e,t))&&t!==l&&t!==o}function E(e){throw new TypeError("DynamicProto: "+e)}function b(){return Object.create?function(e){var t=Object.create;return t?t(e):{}}(null):{}}function S(e,t){for(var n=e.length-1;n>=0;n--)if(e[n]===t)return!0;return!1}function A(e,t,n,r){var i=null;if(e&&h(n,c)){var a=e._dynInstFuncs||b();if((i=(a[n._dynClass]||b())[t])||E("Missing ["+t+"] "+u),!i._dynInstChk&&!1!==a._dynInstChk){for(var o=!h(e,t),s=I(e),l=[];o&&s&&!C(s)&&!S(l,s);){var f=s[t];if(f){o=f===r;break}l.push(s),s=I(s)}try{o&&(e[t]=i),i._dynInstChk=1}catch(d){a._dynInstChk=!1}}}return i}function D(e,t,n){var r=t[e];return r===n&&(r=I(t)[e]),typeof r!==u&&E("["+e+"] is not a "+u),r}function w(e,t,n,r,i){if(!y(e)){var a=n._dynInstFuncs=n._dynInstFuncs||b();if(!y(a)){var o=a[t]=a[t]||b();!1!==a._dynInstChk&&(a._dynInstChk=!!i),y(o)||T(n,(function(t){P(n,t,!1)&&n[t]!==r[t]&&(o[t]=n[t],delete n[t],(!h(e,t)||e[t]&&!e[t]._isDynProxy)&&(e[t]=function(e,t){var n=function n(){return(A(this,t,e,n)||D(t,e,n)).apply(this,arguments)};return n._isDynProxy=1,n}(e,t)))}))}}}function N(e,t){return h(e,o)?e.name||t||s:((e||{}).constructor||{}).name||t||s}function k(e,t,n,r){h(e,o)||E("theClass is an invalid class definition.");var i=e.prototype;(function(e,t){if(p){for(var n=[],r=I(t);r&&!C(r)&&!S(n,r);){if(r===e)return!0;n.push(r),r=I(r)}return!1}return!0})(i,t)||E("["+N(e)+"] not in hierarchy of ["+N(t)+"]");var a=null;h(i,c)?a=i._dynClass:(a="_dynCls$"+N(e,"_")+"$"+m.n,m.n++,i._dynClass=a);var u=k._dfOpts,s=!!u.useBaseInst;s&&r&&void 0!==r.useBaseInst&&(s=!!r.useBaseInst);var l=function(e){var t=b();return T(e,(function(n){!t[n]&&P(e,n,!1)&&(t[n]=e[n])})),t}(t),f=function(e,t,n,r){function i(e,t,n){var i=t[n];if(i._isDynProxy&&r){var a=e._dynInstFuncs||{};!1!==a._dynInstChk&&(i=(a[t._dynClass]||{})[n]||i)}return function(){return i.apply(e,arguments)}}var a=b();T(n,(function(e){a[e]=i(t,n,e)}));for(var o=I(e),u=[];o&&!C(o)&&!S(u,o);)T(o,(function(e){!a[e]&&P(o,e,!p)&&(a[e]=i(t,o,e))})),u.push(o),o=I(o);return a}(i,t,l,s);n(t,f);var d=!!p&&!!u.setInstFuncs;d&&r&&(d=!!r.setInstFuncs),w(i,a,t,l,!1!==d)}k._dfOpts=m.o}}]);
//# sourceMappingURL=8408.996478dd.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[8492],{77933:function(t,e,n){n.d(e,{z:function(){return o}});var s=n(80322),o=s.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}})},8492:function(t,e,n){n.d(e,{T:function(){return c}});var s=n(84867),o=n(80322),r=n(39409);var i=n(77933),a=n(38561);function c(t,e,n){return function(c){var u,l=((u=function(u){function l(t){var e=u.call(this,t)||this;return e._styleCache={},e._onSettingChanged=e._onSettingChanged.bind(e),e}return(0,s.__extends)(l,u),l.prototype.componentDidMount=function(){r.X.observe(this._onSettingChanged)},l.prototype.componentWillUnmount=function(){r.X.unobserve(this._onSettingChanged)},l.prototype.render=function(){var u=this;return o.createElement(i.z.Consumer,null,(function(i){var l=r.X.getSettings(e,t,i.customizations),p=u.props;if(l.styles&&"function"===typeof l.styles&&(l.styles=l.styles((0,s.__assign)((0,s.__assign)({},l),p))),n&&l.styles){if(u._styleCache.default!==l.styles||u._styleCache.component!==p.styles){var y=(0,a.T)(l.styles,p.styles);u._styleCache.default=l.styles,u._styleCache.component=p.styles,u._styleCache.merged=y}return o.createElement(c,(0,s.__assign)({},l,p,{styles:u._styleCache.merged}))}return o.createElement(c,(0,s.__assign)({},l,p))}))},l.prototype._onSettingChanged=function(){this.forceUpdate()},l}(o.Component)).displayName="Customized"+t,u);return function(t,e){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(c,l)}}}}]);
//# sourceMappingURL=8492.bde33f40.chunk.js.map
/*! For license information please see 8562.60e1974e.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[8562],{23038:function(e,t,o){"use strict";o.d(t,{$xS:function(){return r},uf9:function(){return i},xyI:function(){return n}});var n="Enter",r=" ",i="Escape"},30447:function(e,t,o){"use strict";o.d(t,{l:function(){return g}});var n=o(80322),r=o(33517),i=o(11277),a=o(22489),s=o(61249),l=o(64306);var c=function(e){return 2*e+1},u=function(e){return 2*e+2},d=function(e){return Math.floor((e-1)/2)},f=o(4537),p={clip:"rect(0px, 0px, 0px, 0px)",height:"1px",margin:"-1px",width:"1px",position:"absolute",overflow:"hidden",textWrap:"nowrap"},h=function(){var e=(0,i.Y)().targetDocument,t=n.useRef(void 0),o=(0,l.Z)(),r=(0,s.A)(o,2),h=r[0],m=r[1],g=(0,f.v)(),v=n.useRef(null),b=n.useRef(0),_=n.useRef([]),y=n.useState((function(){return function(e){var t=[],o=0,n=function(e,o){var n=t[e];t[e]=t[o],t[o]=n},r=function r(i){var a=i,s=c(i),l=u(i);s<o&&e(t[s],t[a])<0&&(a=s),l<o&&e(t[l],t[a])<0&&(a=l),a!==i&&(n(a,i),r(a))};return{all:function(){return t.slice(0,o)},clear:function(){o=0},contains:function(e){var n=t.indexOf(e);return n>=0&&n<o},dequeue:function(){if(0===o)throw new Error("Priority queue empty");var e=t[0];return t[0]=t[--o],r(0),e},enqueue:function(r){t[o++]=r;for(var i=o-1,a=d(i);i>0&&e(t[a],t[i])>0;)n(a,i),a=d(i=a)},peek:function(){return 0===o?null:t[0]},remove:function(e){var n=t.indexOf(e);-1===n||n>=o||(t[n]=t[--o],r(n))},size:function(){return o}}}((function(e,t){return e.priority!==t.priority?t.priority-e.priority:e.createdAt-t.createdAt}))})),x=(0,s.A)(y,1)[0],k=n.useCallback((function(){if(!t.current&&v.current){!function o(){if(v.current)if(e&&x.peek()){var n=e.createElement("span");n.innerText=x.all().filter((function(e){return e.message.trim().length>0})).reduce((function(e,t){return e+t.message+". "}),""),v.current.innerText="",v.current.appendChild(n),x.clear(),_.current=[],t.current=h((function(){o()}),500)}else v.current.textContent="",m(),t.current=void 0}()}}),[m,x,h,e]),w=n.useCallback((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=(t.alert,t.priority),n=void 0===o?0:o,r=t.batchId,i={message:e,createdAt:b.current++,priority:n,batchId:r};if(r){var s=_.current.find((function(e){return e.batchId===r}));s?(x.remove(s.message),s.message=i):_.current=[].concat((0,a.A)(_.current),[{batchId:r,message:i}])}x.enqueue(i),k()}),[x,k]);return n.useEffect((function(){if(e){var o=e.createElement("div");return o.setAttribute("aria-live","assertive"),Object.entries(g).forEach((function(e){var t=(0,s.A)(e,2),n=t[0],r=t[1];o.setAttribute(n,r)})),Object.assign(o.style,p),e.body.append(o),v.current=o,function(){o.remove(),v.current=null,m(),t.current=void 0}}}),[m,g,e]),w},m=function(e){var t=(0,i.Y)().targetDocument,o=h(),r=function(){var e=(0,i.Y)().targetDocument,t=n.useCallback((function(t){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n,r=o.alert,i=void 0!==r&&r,a=o.polite,s=o.batchId,l=a?0:i?2:1,c=null!==(n=o.priority)&&void 0!==n?n:l,u={notificationID:s,priority:c>1?"important":"none",interrupt:s?c>0?"all":"pending":"none"};e.ariaNotify(t,u)}}),[e]);return t}();return{announce:n.useMemo((function(){return"function"===typeof(null===t||void 0===t?void 0:t.ariaNotify)?r:o}),[t,r,o]),children:e.children}};var g=function(e){var t=m(e),o=function(e){var t=e.announce;return n.useMemo((function(){return{announce:{announce:t}}}),[t])}(t);return function(e,t){return n.createElement(r.Z,{value:t.announce},e.children)}(t,o)};g.displayName="AriaLiveAnnouncer"},18402:function(e,t,o){"use strict";o.d(t,{E:function(){return v}});var n=o(80322),r=o(9234),i=o(15403),a=o(25027),s=o(59921),l=o(76826),c="fui-Badge",u="fui-Badge__icon",d=(l.L.spacingHorizontalXXS,(0,i.y)("r1l7mb74","rntuq2r",[".r1l7mb74{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.r1l7mb74::after{content:"";position:absolute;top:0;left:0;bottom:0;right:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}',".rntuq2r{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;position:relative;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase200);height:20px;width:20px;min-width:max-content;padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));border-radius:var(--borderRadiusCircular);border-color:var(--colorTransparentStroke);}",'.rntuq2r::after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;border-style:solid;border-color:inherit;border-width:var(--strokeWidthThin);border-radius:inherit;}'])),f=(0,a.X)({fontSmallToTiny:{Bahqtrf:"fk6fouc",Be2twd7:"f13mqy1h",Bhrd7zp:"fl43uef",Bg96gwp:"fcpl73t"},tiny:{a9b677:"f16dn6v3",Bqenvij:"f3mu39s",Be2twd7:"f130uwy9",Bg96gwp:"fod1mrr",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},"extra-small":{a9b677:"fpd43o0",Bqenvij:"f30q22z",Be2twd7:"f1tccstq",Bg96gwp:"f1y3arg5",Bf4jedk:"f18p0k4z",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f19jm9xf"},small:{a9b677:"fjw5fx7",Bqenvij:"fd461yt",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fupdldz"},medium:{},large:{a9b677:"fq4mcun",Bqenvij:"frvgh55",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1996nqw"},"extra-large":{a9b677:"f1szoe96",Bqenvij:"f1d2rq10",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"fty64o7"},square:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},roundedSmallToTiny:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91"},circular:{},borderGhost:{ap17g6:"f10ludwy"},filled:{},"filled-brand":{De3pzq:"ffp7eso",sj55zd:"f1phragk"},"filled-danger":{De3pzq:"fdl5y0r",sj55zd:"f1phragk"},"filled-important":{De3pzq:"f1c73kur",sj55zd:"fr0bkrk"},"filled-informative":{De3pzq:"f3vzo32",sj55zd:"f11d4kpn"},"filled-severe":{De3pzq:"f1s438gw",sj55zd:"f1phragk"},"filled-subtle":{De3pzq:"fxugw4r",sj55zd:"f19n0e5"},"filled-success":{De3pzq:"flxk52p",sj55zd:"f1phragk"},"filled-warning":{De3pzq:"ffq97bm",sj55zd:"ff5vbop"},ghost:{},"ghost-brand":{sj55zd:"f16muhyy"},"ghost-danger":{sj55zd:"f1whyuy6"},"ghost-important":{sj55zd:"f19n0e5"},"ghost-informative":{sj55zd:"f11d4kpn"},"ghost-severe":{sj55zd:"f1l8vj45"},"ghost-subtle":{sj55zd:"fonrgv7"},"ghost-success":{sj55zd:"f1m7fhi8"},"ghost-warning":{sj55zd:"fpti2h4"},outline:{g2u3we:"f23ftbb",h3c5rm:["f1gkuv52","f1p1bl80"],B9xav0g:"fioka3i",zhjwy3:["f1p1bl80","f1gkuv52"]},"outline-brand":{sj55zd:"f16muhyy"},"outline-danger":{sj55zd:"f1whyuy6",g2u3we:"fyqpifd",h3c5rm:["f3ukxca","f1k7dugc"],B9xav0g:"f1njxb2b",zhjwy3:["f1k7dugc","f3ukxca"]},"outline-important":{sj55zd:"f11d4kpn",g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"]},"outline-informative":{sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"outline-severe":{sj55zd:"f1l8vj45"},"outline-subtle":{sj55zd:"fonrgv7"},"outline-success":{sj55zd:"f1m7fhi8",g2u3we:"f1mmhl11",h3c5rm:["f1tjpp2f","f1ocn5n7"],B9xav0g:"f1gjv25d",zhjwy3:["f1ocn5n7","f1tjpp2f"]},"outline-warning":{sj55zd:"fpti2h4"},tint:{},"tint-brand":{De3pzq:"f16xkysk",sj55zd:"faj9fo0",g2u3we:"f161y7kd",h3c5rm:["f1c8dzaj","f1sl6hi9"],B9xav0g:"f1619yhw",zhjwy3:["f1sl6hi9","f1c8dzaj"]},"tint-danger":{De3pzq:"ff0poqj",sj55zd:"f1hcrxcs",g2u3we:"f1oqjm8o",h3c5rm:["fkgrb8g","frb5wm0"],B9xav0g:"f1iai1ph",zhjwy3:["frb5wm0","fkgrb8g"]},"tint-important":{De3pzq:"f945g0u",sj55zd:"fr0bkrk",g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"tint-informative":{De3pzq:"f1ctqxl6",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-severe":{De3pzq:"f1xzsg4",sj55zd:"f1k5f75o",g2u3we:"fxy9dsj",h3c5rm:["f54u6j2","fcm23ze"],B9xav0g:"f4vf0uq",zhjwy3:["fcm23ze","f54u6j2"]},"tint-subtle":{De3pzq:"fxugw4r",sj55zd:"f11d4kpn",g2u3we:"f68mrw8",h3c5rm:["f7pw515","fw35ms5"],B9xav0g:"frpde29",zhjwy3:["fw35ms5","f7pw515"]},"tint-success":{De3pzq:"f2vsrz6",sj55zd:"ffmvakt",g2u3we:"fdmic9h",h3c5rm:["f196y6m","fetptd8"],B9xav0g:"f1pev5xq",zhjwy3:["fetptd8","f196y6m"]},"tint-warning":{De3pzq:"f10s6hli",sj55zd:"f42v8de",g2u3we:"fn9i3n",h3c5rm:["f1aw8cx4","f51if14"],B9xav0g:"fvq8iai",zhjwy3:["f51if14","f1aw8cx4"]}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".f16dn6v3{width:6px;}",".f3mu39s{height:6px;}",".f130uwy9{font-size:4px;}",".fod1mrr{line-height:4px;}",".f18p0k4z{min-width:unset;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fpd43o0{width:10px;}",".f30q22z{height:10px;}",".f1tccstq{font-size:6px;}",".f1y3arg5{line-height:6px;}",[".f19jm9xf{padding:unset;}",{p:-1}],".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",[".fupdldz{padding:0 calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",{p:-1}],".fq4mcun{width:24px;}",".frvgh55{height:24px;}",[".f1996nqw{padding:0 calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",{p:-1}],".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",[".fty64o7{padding:0 calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],".f10ludwy::after{display:none;}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1c73kur{background-color:var(--colorNeutralForeground1);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f3vzo32{background-color:var(--colorNeutralBackground5);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}",".ffq97bm{background-color:var(--colorPaletteYellowBackground3);}",".ff5vbop{color:var(--colorNeutralForeground1Static);}",".f16muhyy{color:var(--colorBrandForeground1);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".f1l8vj45{color:var(--colorPaletteDarkOrangeForeground3);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1m7fhi8{color:var(--colorPaletteGreenForeground3);}",".fpti2h4{color:var(--colorPaletteYellowForeground2);}",".f23ftbb{border-top-color:currentColor;}",".f1gkuv52{border-right-color:currentColor;}",".f1p1bl80{border-left-color:currentColor;}",".fioka3i{border-bottom-color:currentColor;}",".fyqpifd{border-top-color:var(--colorPaletteRedBorder2);}",".f3ukxca{border-right-color:var(--colorPaletteRedBorder2);}",".f1k7dugc{border-left-color:var(--colorPaletteRedBorder2);}",".f1njxb2b{border-bottom-color:var(--colorPaletteRedBorder2);}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f68mrw8{border-top-color:var(--colorNeutralStroke2);}",".f7pw515{border-right-color:var(--colorNeutralStroke2);}",".fw35ms5{border-left-color:var(--colorNeutralStroke2);}",".frpde29{border-bottom-color:var(--colorNeutralStroke2);}",".f1mmhl11{border-top-color:var(--colorPaletteGreenBorder2);}",".f1tjpp2f{border-right-color:var(--colorPaletteGreenBorder2);}",".f1ocn5n7{border-left-color:var(--colorPaletteGreenBorder2);}",".f1gjv25d{border-bottom-color:var(--colorPaletteGreenBorder2);}",".f16xkysk{background-color:var(--colorBrandBackground2);}",".faj9fo0{color:var(--colorBrandForeground2);}",".f161y7kd{border-top-color:var(--colorBrandStroke2);}",".f1c8dzaj{border-right-color:var(--colorBrandStroke2);}",".f1sl6hi9{border-left-color:var(--colorBrandStroke2);}",".f1619yhw{border-bottom-color:var(--colorBrandStroke2);}",".ff0poqj{background-color:var(--colorPaletteRedBackground1);}",".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1oqjm8o{border-top-color:var(--colorPaletteRedBorder1);}",".fkgrb8g{border-right-color:var(--colorPaletteRedBorder1);}",".frb5wm0{border-left-color:var(--colorPaletteRedBorder1);}",".f1iai1ph{border-bottom-color:var(--colorPaletteRedBorder1);}",".f945g0u{background-color:var(--colorNeutralForeground3);}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f1ctqxl6{background-color:var(--colorNeutralBackground4);}",".f1xzsg4{background-color:var(--colorPaletteDarkOrangeBackground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".fxy9dsj{border-top-color:var(--colorPaletteDarkOrangeBorder1);}",".f54u6j2{border-right-color:var(--colorPaletteDarkOrangeBorder1);}",".fcm23ze{border-left-color:var(--colorPaletteDarkOrangeBorder1);}",".f4vf0uq{border-bottom-color:var(--colorPaletteDarkOrangeBorder1);}",".f2vsrz6{background-color:var(--colorPaletteGreenBackground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}",".fdmic9h{border-top-color:var(--colorPaletteGreenBorder1);}",".f196y6m{border-right-color:var(--colorPaletteGreenBorder1);}",".fetptd8{border-left-color:var(--colorPaletteGreenBorder1);}",".f1pev5xq{border-bottom-color:var(--colorPaletteGreenBorder1);}",".f10s6hli{background-color:var(--colorPaletteYellowBackground1);}",".f42v8de{color:var(--colorPaletteYellowForeground1);}",".fn9i3n{border-top-color:var(--colorPaletteYellowBorder1);}",".f1aw8cx4{border-right-color:var(--colorPaletteYellowBorder1);}",".f51if14{border-left-color:var(--colorPaletteYellowBorder1);}",".fvq8iai{border-bottom-color:var(--colorPaletteYellowBorder1);}"]}),p=(0,i.y)("rttl5z0",null,[".rttl5z0{display:flex;line-height:1;margin:0 calc(-1 * var(--spacingHorizontalXXS));font-size:12px;}"]),h=(0,a.X)({beforeText:{t21cq0:["f1t8l4o1","f11juvx6"]},afterText:{Frg6f3:["f11juvx6","f1t8l4o1"]},beforeTextXL:{t21cq0:["f1rs9grm","f1kwmkpi"]},afterTextXL:{Frg6f3:["f1kwmkpi","f1rs9grm"]},tiny:{Be2twd7:"f1tccstq"},"extra-small":{Be2twd7:"fnmn6fi"},small:{Be2twd7:"f1ugzwwg"},medium:{},large:{Be2twd7:"f4ybsrx"},"extra-large":{Be2twd7:"fe5j1ua"}},{d:[".f1t8l4o1{margin-right:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f11juvx6{margin-left:calc(var(--spacingHorizontalXXS) + var(--spacingHorizontalXXS));}",".f1rs9grm{margin-right:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1kwmkpi{margin-left:calc(var(--spacingHorizontalXS) + var(--spacingHorizontalXXS));}",".f1tccstq{font-size:6px;}",".fnmn6fi{font-size:10px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}"]}),m=o(11577),g=o(62569),v=n.forwardRef((function(e,t){var o=(0,r.c)(e,t);return function(e){var t=d(),o=f(),n="small"===e.size||"extra-small"===e.size||"tiny"===e.size;e.root.className=(0,s.z)(c,t,n&&o.fontSmallToTiny,o[e.size],o[e.shape],"rounded"===e.shape&&n&&o.roundedSmallToTiny,"ghost"===e.appearance&&o.borderGhost,o[e.appearance],o["".concat(e.appearance,"-").concat(e.color)],e.root.className);var r,i=p(),a=h();e.icon&&(e.root.children&&(r="extra-large"===e.size?"after"===e.iconPosition?a.afterTextXL:a.beforeTextXL:"after"===e.iconPosition?a.afterText:a.beforeText),e.icon.className=(0,s.z)(u,i,r,a[e.size],e.icon.className))}(o),(0,m.$e)("useBadgeStyles_unstable")(o),(0,g.r)(o)}));v.displayName="Badge"},62569:function(e,t,o){"use strict";o.d(t,{r:function(){return i}});var n=o(70979),r=o(634),i=function(e){return(0,r.C)(e),(0,n.FD)(e.root,{children:["before"===e.iconPosition&&e.icon&&(0,n.Y)(e.icon,{}),e.root.children,"after"===e.iconPosition&&e.icon&&(0,n.Y)(e.icon,{})]})}},9234:function(e,t,o){"use strict";o.d(t,{c:function(){return a}});var n=o(18188),r=(o(80322),o(48021)),i=o(94396),a=function(e,t){var o=e.shape,a=void 0===o?"circular":o,s=e.size,l=void 0===s?"medium":s,c=e.iconPosition,u=void 0===c?"before":c,d=e.appearance,f=void 0===d?"filled":d,p=e.color;return{shape:a,size:l,iconPosition:u,appearance:f,color:void 0===p?"brand":p,components:{root:"div",icon:"span"},root:r.Gk((0,i.g)("div",(0,n.A)({ref:t},e)),{elementType:"div"}),icon:r.lq(e.icon,{elementType:"span"})}}},45525:function(e,t,o){"use strict";o.d(t,{w:function(){return h}});var n=o(80322),r=o(18188),i=o(48021),a=o(94396),s=o(70979),l=o(634),c=o(25027),u=o(59921),d="fui-CardFooter",f="fui-CardFooter__action",p=(0,c.X)({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",i8kkvl:0,Belr9w4:0,rmohyg:"fsbu5mz"},action:{Frg6f3:["fcgxt0o","f1ujusj6"],B7frvx2:"f1ndzpm5",B06c7xf:["f1fkeggc","f1u45u6i"],B8uq84v:"f16eyofs",snkdo8:["f1u45u6i","f1fkeggc"],Bpf22ct:"f1wkmkig",apjfyd:"f18alut9"}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",[".fsbu5mz{gap:12px;}",{p:-1}],".fcgxt0o{margin-left:auto;}",".f1ujusj6{margin-right:auto;}"],m:[["@media (forced-colors: active){.f1ndzpm5 .fui-Button,.f1ndzpm5 .fui-Link{border-top-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1fkeggc .fui-Button,.f1fkeggc .fui-Link{border-right-color:currentColor;}.f1u45u6i .fui-Button,.f1u45u6i .fui-Link{border-left-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eyofs .fui-Button,.f16eyofs .fui-Link{border-bottom-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wkmkig .fui-Button,.f1wkmkig .fui-Link{color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18alut9 .fui-Button,.f18alut9 .fui-Link{outline-color:currentColor;}}",{m:"(forced-colors: active)"}]]}),h=n.forwardRef((function(e,t){var o=function(e,t){var o=e.action;return{components:{root:"div",action:"div"},root:i.Gk((0,a.g)("div",(0,r.A)({ref:t},e)),{elementType:"div"}),action:i.lq(o,{elementType:"div"})}}(e,t);return function(e){var t=p();e.root.className=(0,u.z)(d,t.root,e.root.className),e.action&&(e.action.className=(0,u.z)(f,t.action,e.action.className))}(o),function(e){return(0,l.C)(e),(0,s.FD)(e.root,{children:[e.root.children,e.action&&(0,s.Y)(e.action,{})]})}(o)}));h.displayName="CardFooter"},47403:function(e,t,o){"use strict";o.d(t,{a:function(){return b}});var n=o(80322),r=o(18188),i=o(85875),a=o(48021),s=o(94396),l=o(79057),c=o(25027),u=o(59921),d={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},f=(0,c.X)({root:{Bkc6ea2:"fkufhic",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"]},header:{mc9l5x:"f22iagw"},description:{mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],B7frvx2:"f1ndzpm5",B06c7xf:["f1fkeggc","f1u45u6i"],B8uq84v:"f16eyofs",snkdo8:["f1u45u6i","f1fkeggc"],Bpf22ct:"f1wkmkig",apjfyd:"f18alut9"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".f22iagw{display:flex;}"],m:[["@media (forced-colors: active){.f1ndzpm5 .fui-Button,.f1ndzpm5 .fui-Link{border-top-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1fkeggc .fui-Button,.f1fkeggc .fui-Link{border-right-color:currentColor;}.f1u45u6i .fui-Button,.f1u45u6i .fui-Link{border-left-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16eyofs .fui-Button,.f16eyofs .fui-Link{border-bottom-color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wkmkig .fui-Button,.f1wkmkig .fui-Link{color:currentColor;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18alut9 .fui-Button,.f18alut9 .fui-Link{outline-color:currentColor;}}",{m:"(forced-colors: active)"}]]}),p=(0,c.X)({root:{mc9l5x:"f13qh94s",t4k1zu:"f8a668j"},image:{Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf"},action:{Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),h=(0,c.X)({root:{mc9l5x:"f22iagw"},header:{Bh6795r:"fqerorx"},image:{},description:{},action:{}},{d:[".f22iagw{display:flex;}",".fqerorx{flex-grow:1;}"]});var m=function(e,t){var o=e.image,c=e.header,u=e.description,f=e.action,p=(0,l.a3)().selectableA11yProps,h=p.referenceId,m=p.setReferenceId,g=n.useRef(null),v=n.useRef(!1),b=(0,i.Bi)(d.header,h),_=a.lq(c,{renderByDefault:!0,defaultProps:{ref:g,id:v.current?void 0:h},elementType:"div"});return n.useEffect((function(){var e,t=v.current||null===(e=g.current)||void 0===e?void 0:e.id,o=function(e){return n.Children.toArray(e).find((function(e){return n.isValidElement(e)&&Boolean(e.props.id)}))}(null===_||void 0===_?void 0:_.children);v.current=Boolean(o),m(function(e,t,o){return e||((null===t||void 0===t?void 0:t.props.id)?t.props.id:o)}(t,o,b))}),[b,c,_,m]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:a.Gk((0,s.g)("div",(0,r.A)({ref:t},e)),{elementType:"div"}),image:a.lq(o,{elementType:"div"}),header:_,description:a.lq(u,{elementType:"div"}),action:a.lq(f,{elementType:"div"})}},g=o(70979),v=o(634),b=n.forwardRef((function(e,t){var o=m(e,t);return function(e){var t=f(),o=p(),n=h(),r=e.description?o:n,i=function(o){var n;return(0,u.z)(d[o],t[o],r[o],null===(n=e[o])||void 0===n?void 0:n.className)};e.root.className=i("root"),e.image&&(e.image.className=i("image")),e.header&&(e.header.className=i("header")),e.description&&(e.description.className=i("description")),e.action&&(e.action.className=i("action"))}(o),function(e){return(0,v.C)(e),(0,g.FD)(e.root,{children:[e.image&&(0,g.Y)(e.image,{}),e.header&&(0,g.Y)(e.header,{}),e.description&&(0,g.Y)(e.description,{}),e.action&&(0,g.Y)(e.action,{})]})}(o)}));b.displayName="CardHeader"},36224:function(e,t,o){"use strict";o.d(t,{Z:function(){return M}});var n=o(80322),r=o(61249),i=o(18188),a=o(49839),s=o(56104),l=o(48021),c=o(94396),u=o(16598),d=o(11277),f=o(66297),p=o(69639);function h(e,t){var o=(0,f.SQ)(t);o.subscribe((function(t){t||m(e)}));var n=function(t){o.isNavigatingWithKeyboard()&&g(t.target)&&e.setAttribute(p.BV,"")},r=function(t){(!t.relatedTarget||g(t.relatedTarget)&&!e.contains(t.relatedTarget))&&m(e)};return e.addEventListener(f.Oy,n),e.addEventListener("focusout",r),function(){e.removeEventListener(f.Oy,n),e.removeEventListener("focusout",r),(0,f.bd)(o)}}function m(e){e.removeAttribute(p.BV)}function g(e){return!!e&&Boolean(e&&"object"===typeof e&&"classList"in e&&"contains"in e)}var v=o(79792),b=o(58238),_=o(23038),y=o(5574),x=function(e,t,o){var a=t.referenceLabel,s=t.referenceId,c=e.checkbox,u=void 0===c?{}:c,f=e.onSelectionChange,p=e.floatingAction,h=e.onClick,m=e.onKeyDown,g=function(){var e=(0,y.p)(),t=(0,d.Y)().targetDocument,o=n.useCallback((function(t,o){return(null===e||void 0===e?void 0:e.focusable.findAll({container:t,acceptCondition:o}))||[]}),[e]),r=n.useCallback((function(t){return null===e||void 0===e?void 0:e.focusable.findFirst({container:t})}),[e]),i=n.useCallback((function(t){return null===e||void 0===e?void 0:e.focusable.findLast({container:t})}),[e]),a=n.useCallback((function(o){if(!e||!t)return null;var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).container,r=void 0===n?t.body:n;return e.focusable.findNext({currentElement:o,container:r})}),[e,t]),s=n.useCallback((function(o){if(!e||!t)return null;var n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).container,r=void 0===n?t.body:n;return e.focusable.findPrev({currentElement:o,container:r})}),[e,t]);return{findAllFocusable:o,findFirstFocusable:r,findLastFocusable:i,findNextFocusable:a,findPrevFocusable:s}}(),x=g.findAllFocusable,k=n.useRef(null),w=(0,v.i)({state:e.selected,defaultState:e.defaultSelected,initialState:!1}),C=(0,r.A)(w,2),S=C[0],B=C[1],I=[e.selected,e.defaultSelected,f].some((function(e){return"undefined"!==typeof e})),E=n.useState(!1),z=(0,r.A)(E,2),T=z[0],A=z[1],P=n.useCallback((function(e){if(!o.current)return!1;var t=x(o.current),n=e.target,r=t.some((function(e){return e.contains(n)})),i=(null===k||void 0===k?void 0:k.current)===n;return r&&!i}),[o,x]),R=n.useCallback((function(e){if(!P(e)){var t=!S;B(t),f&&f(e,{selected:t})}}),[f,S,B,P]),D=n.useCallback((function(e){[_.xyI].includes(e.key)&&(e.preventDefault(),R(e))}),[R]),N=n.useMemo((function(){if(I&&!p){var e={};return s?e["aria-labelledby"]=s:a&&(e["aria-label"]=a),l.lq(u,{defaultProps:(0,i.A)({ref:k,type:"checkbox",checked:S,onChange:function(e){return R(e)},onFocus:function(){return A(!0)},onBlur:function(){return A(!1)}},e),elementType:"input"})}}),[u,p,S,I,R,s,a]),F=n.useMemo((function(){if(p)return l.lq(p,{defaultProps:{ref:k},elementType:"div"})}),[p]),M=n.useMemo((function(){return I?{onClick:(0,b.p)(h,R),onKeyDown:(0,b.p)(m,D)}:null}),[I,R,h,m,D]);return{selected:S,selectable:I,selectFocused:T,selectableCardProps:M,checkboxSlot:N,floatingActionSlot:F}},k=o(79057),w=["focusMode"],C={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},S=function(e,t){var o=e.appearance,f=void 0===o?"filled":o,p=e.orientation,m=void 0===p?"vertical":p,g=e.size,v=void 0===g?"medium":g,b=n.useState(k.yi.selectableA11yProps.referenceId),_=(0,r.A)(b,2),y=_[0],S=_[1],B=n.useState(k.yi.selectableA11yProps.referenceId),I=(0,r.A)(B,2),E=I[0],z=I[1],T=function(){var e=(0,d.Y)().targetDocument,t=n.useRef(null);return n.useEffect((function(){if((null===e||void 0===e?void 0:e.defaultView)&&t.current)return h(t.current,e.defaultView)}),[t,e]),t}(),A=x(e,{referenceId:y,referenceLabel:E},T),P=A.selectable,R=A.selected,D=A.selectableCardProps,N=A.selectFocused,F=A.checkboxSlot,M=A.floatingActionSlot,j=(0,s.a)(T,t),O=function(e){var t=e.focusMode,o=(0,a.A)(e,w),n=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some((function(e){return o[e]})),r=null!==t&&void 0!==t?t:n?"no-tab":"off",s=(0,u.V)({tabBehavior:C[r]}),l=(0,i.A)((0,i.A)({},s),{},{tabIndex:0});return{interactive:n,focusAttributes:"off"===r?null:l}}(e),H=O.interactive,L=O.focusAttributes;return{appearance:f,orientation:m,size:v,interactive:H,selectable:P,selectFocused:N,selected:R,selectableA11yProps:{setReferenceId:S,referenceId:y,referenceLabel:E,setReferenceLabel:z},components:{root:"div",floatingAction:"div",checkbox:"input"},root:l.Gk((0,c.g)("div",(0,i.A)((0,i.A)((0,i.A)({ref:j,role:"group"},P?null:L),e),D)),{elementType:"div"}),floatingAction:M,checkbox:F}},B=o(70979),I=o(634),E=o(15403),z=o(25027),T=o(59921),A=o(76826),P="fui-Card",R="fui-Card__floatingAction",D="fui-Card__checkbox",N=("var(".concat("--fui-Card--border-radius",")"),A.L.strokeWidthThick,(0,E.y)("rfxo2k2","rgle7w9",[".rfxo2k2{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}",'.rfxo2k2::after{position:absolute;top:0;left:0;right:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}',".rfxo2k2>.fui-CardHeader,.rfxo2k2>.fui-CardFooter{flex-shrink:0;}",".rgle7w9{overflow:hidden;border-radius:var(--fui-Card--border-radius);padding:var(--fui-Card--size);gap:var(--fui-Card--size);display:flex;position:relative;box-sizing:border-box;color:var(--colorNeutralForeground1);}",'.rgle7w9::after{position:absolute;top:0;right:0;left:0;bottom:0;content:"";pointer-events:none;border-top-style:solid;border-left-style:solid;border-bottom-style:solid;border-right-style:solid;border-top-width:var(--strokeWidthThin);border-left-width:var(--strokeWidthThin);border-bottom-width:var(--strokeWidthThin);border-right-width:var(--strokeWidthThin);border-radius:var(--fui-Card--border-radius);}',".rgle7w9>.fui-CardHeader,.rgle7w9>.fui-CardFooter{flex-shrink:0;}"])),F=(0,z.X)({focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bb7d1vk:"f226i61",zhwhgb:["f13kzufm","fsx75g8"],dhy2o1:"flujwa2",Gfyso:["fsx75g8","f13kzufm"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",f6g5ot:0,Boxcth7:0,Bhdgwq3:0,hgwjuy:0,Bshpdp8:0,Bsom6fd:0,Blkhhs4:0,Bonggc9:0,Ddfuxk:0,i03rao:0,kclons:0,clg4pj:0,Bpqj9nj:0,B6dhp37:0,Bf4ptjt:0,Bqtpl0w:0,i4rwgc:"fpqizxz",Dah5zi:0,B1tsrr9:0,qqdqy8:0,Bkh64rk:0,e3fwne:"fnd8nzh",J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],Bm3wd5j:"f1k55ka9",Bbrhkcr:["fgclinu","f16pcs8n"],f1oku:"fycbxed",aywvf2:["f16pcs8n","fgclinu"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",Byrf0fs:0,Bsiemmq:0,Bwckmig:0,skfxo0:0,Iidy0u:0,B98u21t:0,Bvwlmkc:0,jo1ztg:0,Ba1iezr:0,Blmvk6g:0,B24cy0v:0,Bil7v7r:0,Br3gin4:0,nr063g:0,ghq09:0,Bbgo44z:0,Bseh09z:"f1i978nd",az1dzo:0,Ba3ybja:0,B6352mv:0,vppk2z:0,Biaj6j7:"f1nh8hsq",B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Binpb3b:"ftrw7vg",qrt8p2:"f18opajm",k6ws3r:["f13002it","fqo182t"],Btcwela:["f18yna97","f1kd6wh7"],Fer9m8:"f4i4759"},orientationVertical:{Beiy3e4:"f1vx9l62",B5nvv7i:["f14k419y","f1fgo9fz"],Baxg94k:["f1fgo9fz","f14k419y"],tn21ii:"fvqmfsm",B0ud6bj:"f3am6yf",Bgdo4j:"f1r5wgso"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},interactive:{rhjd8f:"f1epqm3e"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"feu1g3u",Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"fnwyq0v",Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"f1luvkty",Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Bi91k9c:"feu1g3u",Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Bi91k9c:"feu1g3u",Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Bi91k9c:"fx9teim",Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],d:[".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",[".fpqizxz[data-fui-focus-visible]::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".fnd8nzh[data-fui-focus-visible]::after{border-radius:var(--fui-Card--border-radius);}",{p:-1}],".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",[".f1i978nd[data-fui-focus-within]:focus-within::after{border:var(--strokeWidthThick) solid var(--colorStrokeFocus2);}",{p:-2}],[".f1nh8hsq[data-fui-focus-within]:focus-within::after{border-radius:var(--fui-Card--border-radius);}",{p:-1}],".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".ftrw7vg>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".f18opajm>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.f13002it>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.fqo182t>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f18yna97>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1kd6wh7>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f4i4759>.fui-CardHeader:last-of-type,.f4i4759>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".f14k419y>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".f1fgo9fz>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.fvqmfsm>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".f3am6yf>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.f1r5wgso>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".f1epqm3e .fui-Text{color:currentColor;}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],m:[["@media (forced-colors: active){.f226i61[data-fui-focus-visible]::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f13kzufm[data-fui-focus-visible]::after{border-right-color:Highlight;}.fsx75g8[data-fui-focus-visible]::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.flujwa2[data-fui-focus-visible]::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1k55ka9[data-fui-focus-within]:focus-within::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f16pcs8n[data-fui-focus-within]:focus-within::after{border-left-color:Highlight;}.fgclinu[data-fui-focus-within]:focus-within::after{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fycbxed[data-fui-focus-within]:focus-within::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]],h:[".feu1g3u:hover{color:var(--colorNeutralForeground1Hover);}",".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".fx9teim:hover{color:var(--colorNeutralForeground1Selected);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".f1luvkty:hover{color:var(--colorNeutralForeground2Selected);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"]});var M=n.forwardRef((function(e,t){var o=S(e,t),r={selectableA11yProps:o.selectableA11yProps};return function(e){var t=N(),o=F(),r={horizontal:o.orientationHorizontal,vertical:o.orientationVertical},i={small:o.sizeSmall,medium:o.sizeMedium,large:o.sizeLarge},a={filled:o.filled,"filled-alternative":o.filledAlternative,outline:o.outline,subtle:o.subtle},s={filled:o.filledInteractiveSelected,"filled-alternative":o.filledAlternativeInteractiveSelected,outline:o.outlineInteractiveSelected,subtle:o.subtleInteractiveSelected},l={filled:o.filledInteractive,"filled-alternative":o.filledAlternativeInteractive,outline:o.outlineInteractive,subtle:o.subtleInteractive},c=e.interactive||e.selectable,u=n.useMemo((function(){return e.selectable?e.selectFocused?o.selectableFocused:"":o.focused}),[e.selectFocused,e.selectable,o.focused,o.selectableFocused]);e.root.className=(0,T.z)(P,t,r[e.orientation],i[e.size],a[e.appearance],c&&o.interactive,c&&l[e.appearance],e.selected&&s[e.appearance],u,c&&o.highContrastInteractive,e.selected&&o.highContrastSelected,e.root.className),e.floatingAction&&(e.floatingAction.className=(0,T.z)(R,o.select,e.floatingAction.className)),e.checkbox&&(e.checkbox.className=(0,T.z)(D,o.hiddenCheckbox,e.checkbox.className))}(o),function(e,t){return(0,I.C)(e),(0,B.Y)(e.root,{children:(0,B.FD)(k.uz,{value:t,children:[e.checkbox?(0,B.Y)(e.checkbox,{}):null,e.floatingAction?(0,B.Y)(e.floatingAction,{}):null,e.root.children]})})}(o,r)}));M.displayName="Card"},79057:function(e,t,o){"use strict";o.d(t,{a3:function(){return s},uz:function(){return a},yi:function(){return i}});var n=o(80322),r=n.createContext(void 0),i={selectableA11yProps:{referenceId:void 0,setReferenceId:function(){},referenceLabel:void 0,setReferenceLabel:function(){}}},a=r.Provider,s=function(){var e;return null!==(e=n.useContext(r))&&void 0!==e?e:i}},13737:function(e,t,o){"use strict";o.d(t,{c:function(){return b}});var n=o(80322),r=o(70979),i=o(634),a=o(18188),s=o(85875),l=o(48021),c=o(94396),u=o(25027),d=o(59921),f="fui-Divider",p="fui-Divider__wrapper",h=(0,u.X)({base:{Bt984gj:"f122n59",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",Bh6795r:"fqerorx",qhf8xq:"f10pi13n",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",fsow6f:"f17mccla",Bcvre1j:"fyl8oag",Br0sdwz:"f16vkdww",Bn78ew0:"fhsnbul",li1rpt:"f1gw3sf2",ap17g6:"f1ly5f7u",B771hl4:"f1s3tz6t"},childless:{susq4k:"f1kyqvp9",Bicfajf:["fzynn9s","f1z0ukd1"],jwcpgy:["fekrn8e","ftdg338"],B4rk6o:"fesgyo"},start:{Bsft5z2:"f13zj6fq"},center:{Ftih45:"f1wl9k8s",Bsft5z2:"f13zj6fq"},end:{Ftih45:"f1wl9k8s"},brand:{sj55zd:"f16muhyy",Bq4z7u6:"fcbuu2a",Bk5zm6e:["f1wdw2dr","f1ttio3w"],Bqjgrrk:"f1582fpk",Bm6vgfq:["f1ttio3w","f1wdw2dr"],B0n5ga8:"f1ahrvm8",s924m2:["f1cd3wbc","f17hbk9y"],B1q35kw:"fvrapl0",Gp14am:["f17hbk9y","f1cd3wbc"]},default:{sj55zd:"fkfq4zb",Bq4z7u6:"f1vccso1",Bk5zm6e:["f1geml7w","fjml6kk"],Bqjgrrk:"f1r7kh1m",Bm6vgfq:["fjml6kk","f1geml7w"],B0n5ga8:"f16j7guv",s924m2:["fx01ahm","fj1a37q"],B1q35kw:"fl8d8yv",Gp14am:["fj1a37q","fx01ahm"]},subtle:{sj55zd:"f11d4kpn",Bq4z7u6:"f5g06un",Bk5zm6e:["f13sxdku","f1n015lb"],Bqjgrrk:"f1x6bl8t",Bm6vgfq:["f1n015lb","f13sxdku"],B0n5ga8:"fvod1wy",s924m2:["fwslg65","flk0e17"],B1q35kw:"f103fvts",Gp14am:["flk0e17","fwslg65"]},strong:{sj55zd:"f19n0e5",Bq4z7u6:"f10tv6oz",Bk5zm6e:["f16xp3sf","f1seuxxq"],Bqjgrrk:"fwrmqbx",Bm6vgfq:["f1seuxxq","f16xp3sf"],B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]}},{d:[".f122n59{align-items:center;}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".fqerorx{flex-grow:1;}",".f10pi13n{position:relative;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f17mccla{text-align:center;}",".fyl8oag::before{box-sizing:border-box;}",".f16vkdww::before{display:flex;}",".fhsnbul::before{flex-grow:1;}",".f1gw3sf2::after{box-sizing:border-box;}",".f1ly5f7u::after{display:flex;}",".f1s3tz6t::after{flex-grow:1;}",".f1kyqvp9::before{margin-bottom:0;}",".fzynn9s::before{margin-right:0;}",".f1z0ukd1::before{margin-left:0;}",".fekrn8e::after{margin-left:0;}",".ftdg338::after{margin-right:0;}",".fesgyo::after{margin-top:0;}",'.f13zj6fq::after{content:"";}','.f1wl9k8s::before{content:"";}',".f16muhyy{color:var(--colorBrandForeground1);}",".fcbuu2a::before{border-top-color:var(--colorBrandStroke1);}",".f1wdw2dr::before{border-right-color:var(--colorBrandStroke1);}",".f1ttio3w::before{border-left-color:var(--colorBrandStroke1);}",".f1582fpk::before{border-bottom-color:var(--colorBrandStroke1);}",".f1ahrvm8::after{border-top-color:var(--colorBrandStroke1);}",".f1cd3wbc::after{border-right-color:var(--colorBrandStroke1);}",".f17hbk9y::after{border-left-color:var(--colorBrandStroke1);}",".fvrapl0::after{border-bottom-color:var(--colorBrandStroke1);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f1vccso1::before{border-top-color:var(--colorNeutralStroke2);}",".f1geml7w::before{border-right-color:var(--colorNeutralStroke2);}",".fjml6kk::before{border-left-color:var(--colorNeutralStroke2);}",".f1r7kh1m::before{border-bottom-color:var(--colorNeutralStroke2);}",".f16j7guv::after{border-top-color:var(--colorNeutralStroke2);}",".fx01ahm::after{border-right-color:var(--colorNeutralStroke2);}",".fj1a37q::after{border-left-color:var(--colorNeutralStroke2);}",".fl8d8yv::after{border-bottom-color:var(--colorNeutralStroke2);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".f5g06un::before{border-top-color:var(--colorNeutralStroke3);}",".f13sxdku::before{border-right-color:var(--colorNeutralStroke3);}",".f1n015lb::before{border-left-color:var(--colorNeutralStroke3);}",".f1x6bl8t::before{border-bottom-color:var(--colorNeutralStroke3);}",".fvod1wy::after{border-top-color:var(--colorNeutralStroke3);}",".fwslg65::after{border-right-color:var(--colorNeutralStroke3);}",".flk0e17::after{border-left-color:var(--colorNeutralStroke3);}",".f103fvts::after{border-bottom-color:var(--colorNeutralStroke3);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}",".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}",".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}",".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}"]}),m=(0,u.X)({base:{a9b677:"fly5x3f",Bdkvgpv:"f163fonl",B0qfbqy:"f51yk4v",pbipgd:"f13rof3u",Bm2nyyq:"f8rth92",xrcqlc:"f6czdpx",i5u598:"f1iyka9k"},inset:{uwmqm3:["fjlbh76","f11qrl6u"],z189sj:["f11qrl6u","fjlbh76"]},start:{Ftih45:"f1wl9k8s",Bicfajf:["f1ojjlep","fk1kexq"],Bxwl2t9:"f1he2m4d",jwcpgy:["f12w1bnb","f1558wlj"]},center:{Bicfajf:["f1ojjlep","fk1kexq"],jwcpgy:["f12w1bnb","f1558wlj"]},end:{Bicfajf:["f1ojjlep","fk1kexq"],Bsft5z2:"f13zj6fq",jwcpgy:["f12w1bnb","f1558wlj"],Iy66sp:"f1ayce8x"}},{d:[".fly5x3f{width:100%;}",".f163fonl::before{border-top-style:solid;}",".f51yk4v::before{border-top-width:var(--strokeWidthThin);}",".f13rof3u::before{min-width:8px;}",".f8rth92::after{border-top-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f1iyka9k::after{min-width:8px;}",".fjlbh76{padding-left:12px;}",".f11qrl6u{padding-right:12px;}",'.f1wl9k8s::before{content:"";}',".f1ojjlep::before{margin-right:12px;}",".fk1kexq::before{margin-left:12px;}",".f1he2m4d::before{max-width:8px;}",".f12w1bnb::after{margin-left:12px;}",".f1558wlj::after{margin-right:12px;}",'.f13zj6fq::after{content:"";}',".f1ayce8x::after{max-width:8px;}"]}),g=(0,u.X)({base:{Beiy3e4:"f1vx9l62",sshi5w:"f16gbxbe",m598lv:["f1yq6w5o","f1jpmc5p"],B4f6apu:["f9sc749","f1x8pvcy"],zkzzav:"fhkwbjy",Barhvk9:["flthirb","ftkbnf5"],Ihftqj:["f13hvwk3","f1en4csx"],Bde111x:"f19onpk6"},inset:{B6of3ja:"f1xdg43u",jrapky:"f1jlhsmd"},withChildren:{sshi5w:"f1tjaq3g"},start:{Ftih45:"f1wl9k8s",susq4k:"fg2pwug",Bbdr6tz:"fkjtzyi",B4rk6o:"f8vk40g"},center:{susq4k:"fg2pwug",B4rk6o:"f8vk40g"},end:{susq4k:"fg2pwug",Bsft5z2:"f13zj6fq",B4rk6o:"f8vk40g",gn64ia:"fqg5mu5"}},{d:[".f1vx9l62{flex-direction:column;}",".f16gbxbe{min-height:20px;}",".f1yq6w5o::before{border-right-style:solid;}",".f1jpmc5p::before{border-left-style:solid;}",".f9sc749::before{border-right-width:var(--strokeWidthThin);}",".f1x8pvcy::before{border-left-width:var(--strokeWidthThin);}",".fhkwbjy::before{min-height:8px;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f19onpk6::after{min-height:8px;}",".f1xdg43u{margin-top:12px;}",".f1jlhsmd{margin-bottom:12px;}",".f1tjaq3g{min-height:84px;}",'.f1wl9k8s::before{content:"";}',".fg2pwug::before{margin-bottom:12px;}",".fkjtzyi::before{max-height:8px;}",".f8vk40g::after{margin-top:12px;}",'.f13zj6fq::after{content:"";}',".fqg5mu5::after{max-height:8px;}"]}),v=o(11577),b=n.forwardRef((function(e,t){var o=function(e,t){var o=e.alignContent,n=void 0===o?"center":o,r=e.appearance,i=void 0===r?"default":r,u=e.inset,d=void 0!==u&&u,f=e.vertical,p=void 0!==f&&f,h=e.wrapper,m=(0,s.Bi)("divider-");return{alignContent:n,appearance:i,inset:d,vertical:p,components:{root:"div",wrapper:"div"},root:l.Gk((0,c.g)("div",(0,a.A)((0,a.A)({role:"separator","aria-orientation":p?"vertical":"horizontal","aria-labelledby":e.children?m:void 0},e),{},{ref:t})),{elementType:"div"}),wrapper:l.Gk(h,{defaultProps:{id:m,children:e.children},elementType:"div"})}}(e,t);return function(e){var t=h(),o=m(),n=g(),r=e.alignContent,i=e.appearance,a=e.inset,s=e.vertical;e.root.className=(0,d.z)(f,t.base,t[r],i&&t[i],!s&&o.base,!s&&a&&o.inset,!s&&o[r],s&&n.base,s&&a&&n.inset,s&&n[r],s&&void 0!==e.root.children&&n.withChildren,void 0===e.root.children&&t.childless,e.root.className),e.wrapper&&(e.wrapper.className=(0,d.z)(p,e.wrapper.className))}(o),(0,v.$e)("useDividerStyles_unstable")(o),function(e){return(0,i.C)(e),(0,r.Y)(e.root,{children:void 0!==e.root.children&&(0,r.Y)(e.wrapper,{children:e.root.children})})}(o)}));b.displayName="Divider"},80719:function(e,t,o){"use strict";o.d(t,{D:function(){return P}});var n=o(80322),r=o(70979),i=o(634),a=o(28148),s=o(57584),l=o(18188),c=o(92729),u=(0,c.U)("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),d=o(70056),f=(0,c.U)("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),p=o(56422),h=o(85875),m=o(48021),g=o(94396),v={error:n.createElement(u,null),warning:n.createElement(d.Co_,null),success:n.createElement(f,null),none:void 0},b=o(25027),_=o(15403),y=o(59921),x="fui-Field",k="fui-Field__label",w="fui-Field__validationMessage",C="fui-Field__validationMessageIcon",S="fui-Field__hint",B=(0,b.X)({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),I=(0,b.X)({vertical:{z8tnut:"fclwglc",Byoj8tv:"fywfov9",jrapky:"fyacil5"},verticalLarge:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm",jrapky:"f8l5zjj"},horizontal:{z8tnut:"fp2oml8",Byoj8tv:"f1tdddsa",t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"},horizontalSmall:{z8tnut:"f1ywm7hm",Byoj8tv:"f14wxoun"},horizontalLarge:{z8tnut:"f1hqyr95",Byoj8tv:"fm4hlj0"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}",".f1ywm7hm{padding-top:var(--spacingVerticalXS);}",".f14wxoun{padding-bottom:var(--spacingVerticalXS);}",".f1hqyr95{padding-top:9px;}",".fm4hlj0{padding-bottom:9px;}"]}),E=(0,_.y)("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),z=(0,b.X)({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),T=(0,_.y)("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),A=(0,b.X)({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),P=n.forwardRef((function(e,t){var o=function(e,t){var o=e.children,n=e.orientation,r=void 0===n?"vertical":n,i=e.required,a=void 0!==i&&i,s=e.validationState,c=void 0===s?e.validationMessage?"error":"none":s,u=e.size,d=void 0===u?"medium":u,f=(0,h.Bi)("field-"),b=f+"__control",_=m.Gk((0,g.g)("div",(0,l.A)((0,l.A)({},e),{},{ref:t}),["children"]),{elementType:"div"}),y=m.lq(e.label,{defaultProps:{htmlFor:b,id:f+"__label",required:a,size:d},elementType:p.J}),x=m.lq(e.validationMessage,{defaultProps:{id:f+"__validationMessage",role:"error"===c||"warning"===c?"alert":void 0},elementType:"div"}),k=m.lq(e.hint,{defaultProps:{id:f+"__hint"},elementType:"div"}),w=v[c],C=m.lq(e.validationMessageIcon,{renderByDefault:!!w,defaultProps:{children:w},elementType:"span"});return{children:o,generatedControlId:b,orientation:r,required:a,size:d,validationState:c,components:{root:"div",label:p.J,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:_,label:y,validationMessageIcon:C,validationMessage:x,hint:k}}(e,t);!function(e){var t=e.validationState,o=e.size,n="horizontal"===e.orientation,r=B();e.root.className=(0,y.z)(x,r.base,n&&r.horizontal,n&&!e.label&&r.horizontalNoLabel,e.root.className);var i=I();e.label&&(e.label.className=(0,y.z)(k,n&&i.horizontal,n&&"small"===o&&i.horizontalSmall,n&&"large"===o&&i.horizontalLarge,!n&&i.vertical,!n&&"large"===o&&i.verticalLarge,e.label.className));var a=T(),s=A();e.validationMessageIcon&&(e.validationMessageIcon.className=(0,y.z)(C,a,"none"!==t&&s[t],e.validationMessageIcon.className));var l=E(),c=z();e.validationMessage&&(e.validationMessage.className=(0,y.z)(w,l,"error"===t&&c.error,!!e.validationMessageIcon&&c.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=(0,y.z)(S,l,e.hint.className))}(o);var c=function(e){var t,o,r,i,a=e.generatedControlId,s=e.orientation,l=e.required,c=e.size,u=e.validationState,d=null===(t=e.label)||void 0===t?void 0:t.htmlFor,f=null===(o=e.label)||void 0===o?void 0:o.id,p=null===(r=e.validationMessage)||void 0===r?void 0:r.id,h=null===(i=e.hint)||void 0===i?void 0:i.id;return{field:n.useMemo((function(){return{generatedControlId:a,hintId:h,labelFor:d,labelId:f,orientation:s,required:l,size:c,validationMessageId:p,validationState:u}}),[a,h,d,f,s,l,c,p,u])}}(o);return function(e,t){(0,i.C)(e);var o=e.children;return"function"===typeof o&&(o=o((0,a.m)(t.field)||{})),(0,r.Y)(s.Z,{value:null===t||void 0===t?void 0:t.field,children:(0,r.FD)(e.root,{children:[e.label&&(0,r.Y)(e.label,{}),o,e.validationMessage&&(0,r.FD)(e.validationMessage,{children:[e.validationMessageIcon&&(0,r.Y)(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&(0,r.Y)(e.hint,{})]})})}(o,c)}));P.displayName="Field"},57584:function(e,t,o){"use strict";o.d(t,{Z:function(){return i},o:function(){return a}});var n=o(80322),r=n.createContext(void 0),i=r.Provider,a=function(){return n.useContext(r)}},28148:function(e,t,o){"use strict";o.d(t,{c:function(){return i},m:function(){return a}});var n=o(18188),r=o(57584);function i(e,t){return a((0,r.o)(),e,t)}function a(e,t,o){if(!e)return t;t=(0,n.A)({},t);var r,i,a,s,l,c,u,d,f,p,h,m,g=e.generatedControlId,v=e.hintId,b=e.labelFor,_=e.labelId,y=e.required,x=e.validationMessageId,k=e.validationState;g&&(null!==(i=(r=t).id)&&void 0!==i||(r.id=g));!_||(null===o||void 0===o?void 0:o.supportsLabelFor)&&b===t.id||(null!==(s=(a=t)["aria-labelledby"])&&void 0!==s||(a["aria-labelledby"]=_));((x||v)&&(t["aria-describedby"]=[x,v,null===t||void 0===t?void 0:t["aria-describedby"]].filter(Boolean).join(" ")),"error"===k)&&(null!==(c=(l=t)["aria-invalid"])&&void 0!==c||(l["aria-invalid"]=!0));y&&((null===o||void 0===o?void 0:o.supportsRequired)?null!==(d=(u=t).required)&&void 0!==d||(u.required=!0):null!==(p=(f=t)["aria-required"])&&void 0!==p||(f["aria-required"]=!0));(null===o||void 0===o?void 0:o.supportsSize)&&(null!==(m=(h=t).size)&&void 0!==m||(h.size=e.size));return t}},41434:function(e,t,o){"use strict";o.d(t,{BEt:function(){return r},EEC:function(){return i}});var n=o(92729),r=(0,n.U)("DismissRegular","1em",["m4.09 4.22.06-.07a.5.5 0 0 1 .63-.06l.07.06L10 9.29l5.15-5.14a.5.5 0 0 1 .63-.06l.07.06c.18.17.2.44.06.63l-.06.07L10.71 10l5.14 5.15c.18.17.2.44.06.63l-.06.07a.5.5 0 0 1-.63.06l-.07-.06L10 10.71l-5.15 5.14a.5.5 0 0 1-.63.06l-.07-.06a.5.5 0 0 1-.06-.63l.06-.07L9.29 10 4.15 4.85a.5.5 0 0 1-.06-.63l.06-.07-.06.07Z"]),i=(0,n.U)("DocumentErrorRegular","1em",["M6 2a2 2 0 0 0-2 2v5.2c.32-.08.66-.15 1-.18V4a1 1 0 0 1 1-1h4v3.5c0 .83.67 1.5 1.5 1.5H15v8a1 1 0 0 1-1 1h-3.6c-.18.36-.4.7-.66 1H14a2 2 0 0 0 2-2V7.41c0-.4-.16-.78-.44-1.06l-3.91-3.91A1.5 1.5 0 0 0 10.59 2H6Zm8.8 5h-3.3a.5.5 0 0 1-.5-.5V3.2L14.8 7ZM10 14.5a4.5 4.5 0 1 1-9 0 4.5 4.5 0 0 1 9 0ZM5.5 12a.5.5 0 0 0-.5.5v2a.5.5 0 0 0 1 0v-2a.5.5 0 0 0-.5-.5Zm0 5.13a.62.62 0 1 0 0-1.25.62.62 0 0 0 0 1.24Z"])},21008:function(e,t,o){"use strict";o.d(t,{aUx:function(){return r},vMY:function(){return i}});var n=o(92729),r=(0,n.U)("PersonRegular","1em",["M10 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM7 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0 0 10 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0 0 17 13a2 2 0 0 0-2-2H5Zm-1 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0 1 10 17a8.16 8.16 0 0 1-4.33-1.05A3.36 3.36 0 0 1 4 13Z"]),i=(0,n.U)("SearchRegular","1em",["M8.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"])},90671:function(e,t,o){"use strict";o.d(t,{_:function(){return h}});var n=o(80322),r=o(70979),i=o(634),a=o(18188),s=o(48021),l=o(94396),c=o(25027),u=o(59921),d="fui-Image",f=(0,c.X)({base:{g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1aperda",zhjwy3:["f1lxtadh","f1akhkt"],Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1fabniw",B7ck84d:"f1ewtqcl",mc9l5x:"f14t3ns0"},bordered:{icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"]},circular:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f44lkw9"},rounded:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},square:{},shadow:{E5pizo:"f1whvlc6"},center:{st4lth:"f1plgu50",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},contain:{st4lth:"f1kle4es",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},default:{},cover:{st4lth:"f1ps3kmd",Ermj5k:"f14xojzb",Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},none:{st4lth:"f1plgu50",Ermj5k:["f13uwng7","fjmyj0p"],Bqenvij:"f1l02sjl",a9b677:"fly5x3f"},block:{a9b677:"fly5x3f"}},{d:[".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1aperda{border-bottom-color:var(--colorNeutralStroke1);}",[".f1fabniw{border-radius:var(--borderRadiusNone);}",{p:-1}],".f1ewtqcl{box-sizing:border-box;}",".f14t3ns0{display:inline-block;}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",[".f44lkw9{border-radius:var(--borderRadiusCircular);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f1whvlc6{box-shadow:var(--shadow4);}",".f1plgu50{object-fit:none;}",".f14xojzb{object-position:center;}",".f1l02sjl{height:100%;}",".fly5x3f{width:100%;}",".f1kle4es{object-fit:contain;}",".f1ps3kmd{object-fit:cover;}",".f13uwng7{object-position:left top;}",".fjmyj0p{object-position:right top;}"]}),p=o(11577),h=n.forwardRef((function(e,t){var o=function(e,t){var o=e.bordered,n=void 0!==o&&o,r=e.fit,i=void 0===r?"default":r,c=e.block,u=void 0!==c&&c,d=e.shape,f=void 0===d?"square":d,p=e.shadow;return{bordered:n,fit:i,block:u,shape:f,shadow:void 0!==p&&p,components:{root:"img"},root:s.Gk((0,l.g)("img",(0,a.A)({ref:t},e)),{elementType:"img"})}}(e,t);return function(e){var t=f();e.root.className=(0,u.z)(d,t.base,e.block&&t.block,e.bordered&&t.bordered,e.shadow&&t.shadow,t[e.fit],t[e.shape],e.root.className)}(o),(0,p.$e)("useImageStyles_unstable")(o),function(e){return(0,i.C)(e),(0,r.Y)(e.root,{})}(o)}));h.displayName="Image"},116:function(e,t,o){"use strict";o.d(t,{p:function(){return c}});var n=o(80322),r=o(99843),i=o(70979),a=o(634),s=o(30893),l=o(11577),c=n.forwardRef((function(e,t){var o=(0,r.n)(e,t);return(0,s.d)(o),(0,l.$e)("useInputStyles_unstable")(o),function(e){return(0,a.C)(e),(0,i.FD)(e.root,{children:[e.contentBefore&&(0,i.Y)(e.contentBefore,{}),(0,i.Y)(e.input,{}),e.contentAfter&&(0,i.Y)(e.contentAfter,{})]})}(o)}));c.displayName="Input"},99843:function(e,t,o){"use strict";o.d(t,{n:function(){return d}});var n=o(18188),r=o(61249),i=(o(80322),o(28148)),a=o(79792),s=o(41874),l=o(48021),c=o(62427),u=o(3587),d=function(e,t){e=(0,i.c)(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});var o,d=(0,u.Pv)(),f=e,p=f.size,h=void 0===p?"medium":p,m=f.appearance,g=void 0===m?null!==(o=d.inputDefaultAppearance)&&void 0!==o?o:"outline":m,v=f.onChange;var b=(0,a.i)({state:e.value,defaultState:e.defaultValue,initialState:""}),_=(0,r.A)(b,2),y=_[0],x=_[1],k=(0,s.n)({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),w={size:h,appearance:g,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:l.Gk(e.input,{defaultProps:(0,n.A)({type:"text",ref:t},k.primary),elementType:"input"}),contentAfter:l.lq(e.contentAfter,{elementType:"span"}),contentBefore:l.lq(e.contentBefore,{elementType:"span"}),root:l.Gk(e.root,{defaultProps:k.root,elementType:"span"})};return w.input.value=y,w.input.onChange=(0,c.D)((function(e){var t=e.target.value;null===v||void 0===v||v(e,{value:t}),x(t)})),w}},30893:function(e,t,o){"use strict";o.d(t,{d:function(){return h}});var n=o(76826),r=o(15403),i=o(25027),a=o(59921),s={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},l=(n.L.spacingHorizontalSNudge,n.L.spacingHorizontalMNudge,n.L.spacingHorizontalM,n.L.spacingHorizontalXXS,n.L.spacingHorizontalXXS,n.L.spacingHorizontalSNudge,n.L.spacingHorizontalS,n.L.spacingHorizontalM,"calc(".concat(n.L.spacingHorizontalM," + ").concat(n.L.spacingHorizontalSNudge,")"),(0,r.y)("r1oeeo9n","r9sxh5",{r:[".r1oeeo9n{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1oeeo9n::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1oeeo9n:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1oeeo9n:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1oeeo9n:focus-within{outline:2px solid transparent;}",".r9sxh5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;vertical-align:middle;min-height:32px;font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r9sxh5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r9sxh5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r9sxh5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r9sxh5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1oeeo9n:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r9sxh5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]})),c=(0,i.X)({small:{sshi5w:"f1pha7fy",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:0,Belr9w4:0,rmohyg:"f1eyhf9v"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fokr779",icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",d9w3h3:0,B3778ie:0,B4j8arr:0,Bl18szs:0,Blrzh8d:"f2ale1x"},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"},smallWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},smallWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},mediumWithContentBefore:{uwmqm3:["f1ng84yb","f11gcy0p"]},mediumWithContentAfter:{z189sj:["f11gcy0p","f1ng84yb"]},largeWithContentBefore:{uwmqm3:["f1uw59to","fw5db7e"]},largeWithContentAfter:{z189sj:["fw5db7e","f1uw59to"]}},{d:[".f1pha7fy{min-height:24px;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",[".f1eyhf9v{gap:var(--spacingHorizontalSNudge);}",{p:-1}],".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".fokr779{border-radius:0;}",{p:-1}],".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",[".f2ale1x::after{border-radius:0;}",{p:-1}],".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),u=(0,r.y)("r12stul0",null,[".r12stul0{align-self:stretch;box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalM);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".r12stul0::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".r12stul0::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),d=(0,i.X)({small:{uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},medium:{},large:{uwmqm3:["fnphzt9","flt1dlf"],z189sj:["flt1dlf","fnphzt9"]},smallWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},smallWithContentAfter:{z189sj:["ffczdla","fgiv446"]},mediumWithContentBefore:{uwmqm3:["fgiv446","ffczdla"]},mediumWithContentAfter:{z189sj:["ffczdla","fgiv446"]},largeWithContentBefore:{uwmqm3:["fk8j09s","fdw0yi8"]},largeWithContentAfter:{z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".fgiv446{padding-left:var(--spacingHorizontalXXS);}",".ffczdla{padding-right:var(--spacingHorizontalXXS);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),f=(0,r.y)("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),p=(0,i.X)({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),h=function(e){var t=e.size,o=e.appearance,n=e.input.disabled,r="true"==="".concat(e.input["aria-invalid"]),i=o.startsWith("filled"),h=c(),m=d(),g=p();e.root.className=(0,a.z)(s.root,l(),h[t],e.contentBefore&&h["".concat(t,"WithContentBefore")],e.contentAfter&&h["".concat(t,"WithContentAfter")],h[o],!n&&"outline"===o&&h.outlineInteractive,!n&&"underline"===o&&h.underlineInteractive,!n&&i&&h.filledInteractive,i&&h.filled,!n&&r&&h.invalid,n&&h.disabled,e.root.className),e.input.className=(0,a.z)(s.input,u(),m[t],e.contentBefore&&m["".concat(t,"WithContentBefore")],e.contentAfter&&m["".concat(t,"WithContentAfter")],n&&m.disabled,e.input.className);var v=[f(),n&&g.disabled,g[t]];return e.contentBefore&&(e.contentBefore.className=a.z.apply(void 0,[s.contentBefore].concat(v,[e.contentBefore.className]))),e.contentAfter&&(e.contentAfter.className=a.z.apply(void 0,[s.contentAfter].concat(v,[e.contentAfter.className]))),e}},56422:function(e,t,o){"use strict";o.d(t,{J:function(){return m}});var n=o(80322),r=o(18188),i=o(48021),a=o(94396),s=o(70979),l=o(634),c=o(25027),u=o(59921),d="fui-Label",f="fui-Label__required",p=(0,c.X)({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"},required:{sj55zd:"f1whyuy6",uwmqm3:["fruq291","f7x41pl"]},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),h=o(11577),m=n.forwardRef((function(e,t){var o=function(e,t){var o=e.disabled,n=void 0!==o&&o,s=e.required,l=void 0!==s&&s,c=e.weight,u=void 0===c?"regular":c,d=e.size,f=void 0===d?"medium":d;return{disabled:n,required:i.lq(!0===l?"*":l||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:u,size:f,components:{root:"label",required:"span"},root:i.Gk((0,a.g)("label",(0,r.A)({ref:t},e)),{elementType:"label"})}}(e,t);return function(e){var t=p();e.root.className=(0,u.z)(d,t.root,e.disabled&&t.disabled,t[e.size],"semibold"===e.weight&&t.semibold,e.root.className),e.required&&(e.required.className=(0,u.z)(f,t.required,e.disabled&&t.disabled,e.required.className))}(o),(0,h.$e)("useLabelStyles_unstable")(o),function(e){return(0,l.C)(e),(0,s.FD)(e.root,{children:[e.root.children,e.required&&(0,s.Y)(e.required,{})]})}(o)}));m.displayName="Label"},12264:function(e,t,o){"use strict";o.d(t,{N:function(){return b}});var n=o(80322),r=o(18188),i=o(48021),a=o(94396),s=n.createContext(void 0);s.Provider;var l=o(23038),c=n.createContext(void 0),u={inline:!1},d=(c.Provider,function(e,t){var o=n.useContext(s),d=function(){var e;return null!==(e=n.useContext(c))&&void 0!==e?e:u}().inline,f=e.appearance,p=void 0===f?"default":f,h=e.disabled,m=void 0!==h&&h,g=e.disabledFocusable,v=void 0!==g&&g,b=e.inline,_=void 0!==b&&b,y=e.as||(e.href?"a":"button"),x=(0,r.A)((0,r.A)({role:"span"===y?"button":void 0,type:"button"===y?"button":void 0},e),{},{as:y}),k={appearance:p,disabled:m,disabledFocusable:v,inline:null!==_&&void 0!==_?_:!!d,components:{root:y},root:i.Gk((0,a.g)(y,(0,r.A)({ref:t},x)),{elementType:y}),backgroundAppearance:o};return function(e){var t=e.disabled,o=e.disabledFocusable,n=e.root,r=n.onClick,i=n.onKeyDown,a=n.role,s=n.tabIndex;"a"===e.root.as&&(e.root.href=t?void 0:e.root.href,(t||o)&&(e.root.role=a||"link")),"a"!==e.root.as&&"span"!==e.root.as||(e.root.tabIndex=null!==s&&void 0!==s?s:t&&!o?void 0:0),e.root.onClick=function(e){t||o?e.preventDefault():null===r||void 0===r||r(e)},e.root.onKeyDown=function(n){var r=n.key===l.xyI||n.key===l.$xS;(t||o)&&r?(n.preventDefault(),n.stopPropagation()):(null===i||void 0===i||i(n),"span"===e.root.as&&e.root.onClick&&!i&&r&&(n.preventDefault(),n.currentTarget.click()))},e.disabled=t||o,e.root["aria-disabled"]=t||o||void 0,"button"===e.root.as&&(e.root.disabled=t&&!o)}(k),k}),f=o(25027),p=o(59921),h="fui-Link",m=(0,f.X)({focusIndicator:{Bttzg6e:"fhgqx19",B3uz8dt:"f1olyrje",B6ihwck:"f1p93eir",g9k6zt:"f1nev41a"},root:{B486eqv:"f2hkw1w",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"fyind8e",Bceei9c:"f1k6fduh",mc9l5x:"f1w7gpdv",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1mk8lai",B68tc82:0,Bmxbyg5:0,Bpg54ce:"fnbmjn9",fsow6f:["f1o700av","fes3tcz"],w71qe1:"f1iuv45f",Bkioxbp:"f1cmlufx",ygn44y:"f9n3di6",famaaq:"f1ids18y",Bde5pd6:"f1tx3yz7",Bi91k9c:"f1deo86v",i089h6:"f1eh06m1",lj723h:"f1iescvh"},button:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"]},href:{Be2twd7:"fjoy568"},subtle:{sj55zd:"fkfq4zb",Bde5pd6:"f1tx3yz7",Bi91k9c:"fnwyq0v",i089h6:"f1eh06m1",lj723h:"flvvhsy"},inline:{w71qe1:"f13mvf36"},disabled:{w71qe1:"f1iuv45f",sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bde5pd6:"fbnuktb",Bi91k9c:"fvgxktp",i089h6:"fljg2da",lj723h:"f19wldhg"},inverted:{sj55zd:"f1qz2gb0",Bi91k9c:"f1mlt8il",lj723h:"f1hsd4st"}},{d:[".fhgqx19[data-fui-focus-visible]{text-decoration-color:var(--colorStrokeFocus2);}",".f1olyrje[data-fui-focus-visible]{text-decoration-line:underline;}",".f1p93eir[data-fui-focus-visible]{text-decoration-style:double;}",".f1nev41a[data-fui-focus-visible]{outline-style:none;}",".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".fyind8e{color:var(--colorBrandForegroundLink);}",".f1k6fduh{cursor:pointer;}",".f1w7gpdv{display:inline;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",[".f1s184ao{margin:0;}",{p:-1}],[".f1mk8lai{padding:0;}",{p:-1}],[".fnbmjn9{overflow:inherit;}",{p:-1}],".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".f1iuv45f{text-decoration-line:none;}",".f1cmlufx{text-decoration-thickness:var(--strokeWidthThin);}",".f9n3di6{text-overflow:inherit;}",".f1ids18y{-webkit-user-select:text;-moz-user-select:text;user-select:text;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",".fjoy568{font-size:inherit;}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f13mvf36{text-decoration-line:underline;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f1qz2gb0{color:var(--colorBrandForegroundInverted);}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1tx3yz7:hover{text-decoration-line:underline;}",".f1deo86v:hover{color:var(--colorBrandForegroundLinkHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".fbnuktb:hover{text-decoration-line:none;}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".f1mlt8il:hover{color:var(--colorBrandForegroundInvertedHover);}"],a:[".f1eh06m1:active{text-decoration-line:underline;}",".f1iescvh:active{color:var(--colorBrandForegroundLinkPressed);}",".flvvhsy:active{color:var(--colorNeutralForeground2Pressed);}",".fljg2da:active{text-decoration-line:none;}",".f19wldhg:active{color:var(--colorNeutralForegroundDisabled);}",".f1hsd4st:active{color:var(--colorBrandForegroundInvertedPressed);}"]}),g=o(70979),v=o(634),b=n.forwardRef((function(e,t){var o=d(e,t);return function(e){var t=m(),o=e.appearance,n=e.disabled,r=e.inline,i=e.root,a=e.backgroundAppearance;e.root.className=(0,p.z)(h,t.root,t.focusIndicator,"a"===i.as&&i.href&&t.href,"button"===i.as&&t.button,"subtle"===o&&t.subtle,"inverted"===a&&t.inverted,r&&t.inline,n&&t.disabled,e.root.className)}(o),function(e){return(0,v.C)(e),(0,g.Y)(e.root,{})}(o)}));b.displayName="Link"},47873:function(e,t,o){"use strict";o.d(t,{F:function(){return Ce}});var n=o(80322),r=o(70979),i=o(634),a=o(18188),s=o(61249),l=o(85875),c=o(48021),u=o(94396),d=o(58238),f=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,p=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,h=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,m=/\s+/g,g=/[\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 v(e,t,o){return e?(e=function(e){return(e=(e=(e=e.replace(f,"")).replace(p,"")).replace(m," ")).trim()}(e),g.test(e)||!(null===o||void 0===o?void 0:o.allowPhoneInitials)&&h.test(e)?"":function(e,t,o){var n="",r=e.split(" ");return 0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),o||(2===r.length?n+=r[1].charAt(0).toUpperCase():3===r.length&&(n+=r[2].charAt(0).toUpperCase())),t&&n.length>1?n.charAt(1)+n.charAt(0):n}(e,t,null===o||void 0===o?void 0:o.firstInitialOnly)):""}var b=o(21008),_=o(2203),y=(_.TTi,_.TTi,_.fGI,_.Ndk,_.qSk,_.qSk,{tiny:_.jcT,"extra-small":_.jcT,small:_.NUA,medium:_.B2S,large:_.grK,"extra-large":_.grK}),x={tiny:_.qXC,"extra-small":_.qXC,small:_.uO1,medium:_.gNt,large:_.HkI,"extra-large":_.HkI},k={tiny:_.qvE,"extra-small":_.qvE,small:_._E3,medium:_.yQ7,large:_.Vo$,"extra-large":_.Vo$},w={tiny:_.DWd,"extra-small":_.DWd,small:_.Z4e,medium:_.TNE,large:_.mx_,"extra-large":_.mx_},C={tiny:_.U$D,"extra-small":_.U$D,small:_.gC_,medium:_.ORW,large:_.vsS,"extra-large":_.vsS},S={tiny:_.F$H,"extra-small":_.F$H,small:_.hmO,medium:_.fPq,large:_.MxQ,"extra-large":_.MxQ},B={tiny:_.xmy,"extra-small":_.xmy,small:_.X8c,medium:_.dR_,large:_.KCz,"extra-large":_.KCz},I={tiny:_.PM$,"extra-small":_.PM$,small:_.nPn,medium:_.lYg,large:_.omG,"extra-large":_.omG},E={tiny:_.y3Y,"extra-small":_.y3Y,small:_.gNc,medium:_.uOK,large:_.X0b,"extra-large":_.X0b},z={tiny:_.xo$,"extra-small":_.xo$,small:_.$Oq,medium:_.b8q,large:_.ADj,"extra-large":_.ADj},T=o(9234),A={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},P=function(e,t){var o=e.size,r=void 0===o?"medium":o,i=e.status,s=void 0===i?"available":i,l=e.outOfOffice,u=void 0!==l&&l,d=A[s],f=e.outOfOffice&&"out-of-office"!==e.status?" ".concat(A["out-of-office"]):"",p=function(e,t,o){switch(e){case"available":return t?x[o]:k[o];case"away":return t?I[o]:y[o];case"blocked":return w[o];case"busy":return t?z[o]:C[o];case"do-not-disturb":return t?B[o]:S[o];case"offline":return t?I[o]:E[o];case"out-of-office":return I[o];case"unknown":return z[o]}}(s,u,r);return(0,a.A)((0,a.A)({},(0,T.c)((0,a.A)((0,a.A)({"aria-label":d+f,role:"img"},e),{},{size:r,icon:c.lq(e.icon,{defaultProps:{children:p?n.createElement(p,null):null},renderByDefault:!0,elementType:"span"})}),t)),{},{status:s,outOfOffice:u})},R=o(15403),D=o(25027),N=o(59921),F="fui-PresenceBadge",M="fui-PresenceBadge__icon",j=(0,R.y)("r832ydo",null,[".r832ydo{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border-radius:var(--borderRadiusCircular);background-color:var(--colorNeutralBackground1);padding:1px;background-clip:content-box;}"]),O=(0,R.y)("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),H=(0,D.X)({statusBusy:{sj55zd:"fvi85wt"},statusAway:{sj55zd:"f14k8a89"},statusAvailable:{sj55zd:"fqa5hgp"},statusOffline:{sj55zd:"f11d4kpn"},statusOutOfOffice:{sj55zd:"fdce8r3"},statusUnknown:{sj55zd:"f11d4kpn"},outOfOffice:{sj55zd:"fr0bkrk"},outOfOfficeAvailable:{sj55zd:"fqa5hgp"},outOfOfficeBusy:{sj55zd:"fvi85wt"},outOfOfficeUnknown:{sj55zd:"f11d4kpn"},tiny:{Bubjx69:"f9ikmtg",a9b677:"f16dn6v3",B2eet1l:"f1w2irj7",B5pe6w7:"fab5kbq",p4uzdd:"f1ms1d91"},large:{Bubjx69:"f9ikmtg",a9b677:"f64fuq3",B5pe6w7:"f1vfi1yj",p4uzdd:"f15s34gz"},extraLarge:{Bubjx69:"f9ikmtg",a9b677:"f1w9dchk",B5pe6w7:"f14efy9b",p4uzdd:"fhipgdu"}},{d:[".fvi85wt{color:var(--colorPaletteRedBackground3);}",".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}",".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fdce8r3{color:var(--colorPaletteBerryForeground3);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f9ikmtg{aspect-ratio:1;}",".f16dn6v3{width:6px;}",".f1w2irj7{background-clip:unset;}",".fab5kbq svg{width:6px!important;}",".f1ms1d91 svg{height:6px!important;}",".f64fuq3{width:20px;}",".f1vfi1yj svg{width:20px!important;}",".f15s34gz svg{height:20px!important;}",".f1w9dchk{width:28px;}",".f14efy9b svg{width:28px!important;}",".fhipgdu svg{height:28px!important;}"]}),L=o(11577),q=o(62569),W=n.forwardRef((function(e,t){var o=P(e,t);return function(e){var t,o=j(),n=O(),r=H(),i="busy"===(t=e.status)||"do-not-disturb"===t||"blocked"===t;e.root.className=(0,N.z)(F,o,i&&r.statusBusy,"away"===e.status&&r.statusAway,"available"===e.status&&r.statusAvailable,"offline"===e.status&&r.statusOffline,"out-of-office"===e.status&&r.statusOutOfOffice,"unknown"===e.status&&r.statusUnknown,e.outOfOffice&&r.outOfOffice,e.outOfOffice&&"available"===e.status&&r.outOfOfficeAvailable,e.outOfOffice&&i&&r.outOfOfficeBusy,e.outOfOffice&&("out-of-office"===e.status||"away"===e.status||"offline"===e.status)&&r.statusOutOfOffice,e.outOfOffice&&"unknown"===e.status&&r.outOfOfficeUnknown,"tiny"===e.size&&r.tiny,"large"===e.size&&r.large,"extra-large"===e.size&&r.extraLarge,e.root.className),e.icon&&(e.icon.className=(0,N.z)(M,n,e.icon.className))}(o),(0,L.$e)("usePresenceBadgeStyles_unstable")(o),(0,q.r)(o)}));W.displayName="PresenceBadge";var V=o(11277),G=n.createContext(void 0),K={},U=(G.Provider,{active:"active",inactive:"inactive"}),X=function(e,t){var o,r=(0,V.Y)().dir,i=function(){var e;return null!==(e=n.useContext(G))&&void 0!==e?e:K}(),f=i.shape,p=i.size,h=e.name,m=e.size,g=void 0===m?null!==p&&void 0!==p?p:32:m,_=e.shape,y=void 0===_?null!==f&&void 0!==f?f:"circular":_,x=e.active,k=void 0===x?"unset":x,w=e.activeAppearance,C=void 0===w?"ring":w,S=e.idForColor,B=e.color,I=void 0===B?"neutral":B;"colorful"===I&&(I=Z[Q(null!==(o=null!==S&&void 0!==S?S:h)&&void 0!==o?o:"")%Z.length]);var E=(0,l.Bi)("avatar-"),z=c.Gk((0,u.g)("span",(0,a.A)((0,a.A)({role:"img",id:E},e),{},{ref:t}),["name"]),{elementType:"span"}),T=n.useState(void 0),A=(0,s.A)(T,2),P=A[0],R=A[1],D=c.lq(e.image,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:P},elementType:"img"});(null===D||void 0===D?void 0:D.src)||(D=void 0),D&&(D.onError=(0,d.p)(D.onError,(function(){return R(!0)})),D.onLoad=(0,d.p)(D.onLoad,(function(){return R(void 0)})));var N=c.lq(e.initials,{renderByDefault:!0,defaultProps:{children:v(h,"rtl"===r,{firstInitialOnly:g<=16}),id:E+"__initials"},elementType:"span"});(null===N||void 0===N?void 0:N.children)||(N=void 0);var F=void 0;N||D&&!P||(F=c.lq(e.icon,{renderByDefault:!0,defaultProps:{children:n.createElement(b.aUx,null),"aria-hidden":!0},elementType:"span"}));var M,j=c.lq(e.badge,{defaultProps:{size:Y(g),id:E+"__badge"},elementType:W});if(!z["aria-label"]&&!z["aria-labelledby"]&&(h?(z["aria-label"]=h,j&&(z["aria-labelledby"]=z.id+" "+j.id)):N&&(z["aria-labelledby"]=N.id+(j?" "+j.id:"")),"active"===k||"inactive"===k)){var O=U[k];if(z["aria-labelledby"]){var H=E+"__active";z["aria-labelledby"]+=" "+H,M=n.createElement("span",{hidden:!0,id:H},O)}else z["aria-label"]&&(z["aria-label"]+=" "+O)}return{size:g,shape:y,active:k,activeAppearance:C,activeAriaLabelElement:M,color:I,components:{root:"span",initials:"span",icon:"span",image:"img",badge:W},root:z,initials:N,icon:F,image:D,badge:j}},Y=function(e){return e>=96?"extra-large":e>=64?"large":e>=56?"medium":e>=40?"small":e>=28?"extra-small":"tiny"},Z=["dark-red","cranberry","red","pumpkin","peach","marigold","gold","brass","brown","forest","seafoam","dark-green","light-teal","teal","steel","blue","royal-blue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],Q=function(e){for(var t=0,o=e.length-1;o>=0;o--){var n=e.charCodeAt(o),r=o%8;t^=(n<<r)+(n>>8-r)}return t},$={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},J=(0,R.y)("r81b29z","r1aatmv",{r:[".r81b29z{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r81b29z::before,.r81b29z::after{position:absolute;top:0;left:0;bottom:0;right:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r81b29z::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}",".r1aatmv{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r1aatmv::before,.r1aatmv::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r1aatmv::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}"],s:["@media screen and (prefers-reduced-motion: reduce){.r81b29z::before,.r81b29z::after{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1aatmv::before,.r1aatmv::after{transition-duration:0.01ms;}}"]}),ee=(0,R.y)("r136dc0n","rjly0nl",[".r136dc0n{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}",".rjly0nl{position:absolute;top:0;right:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}"]),te=(0,R.y)("rip04v","r31uzil",[".rip04v{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:inherit;}",".r31uzil{position:absolute;box-sizing:border-box;top:0;right:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;border-radius:inherit;}"]),oe=(0,D.X)({textCaption2Strong:{Be2twd7:"f13mqy1h"},textCaption1Strong:{Be2twd7:"fy9rknc"},textSubtitle2:{Be2twd7:"fod5ikn"},textSubtitle1:{Be2twd7:"f1pp30po"},textTitle3:{Be2twd7:"f1x0m3f5"},squareSmall:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"fq9zq91"},squareMedium:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5"},squareLarge:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1o0qvyv"},squareXLarge:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f1kijzfu"},activeOrInactive:{Bz10aip:"ftfx35i",Bmy1vo4:"fv0atk9",B3o57yi:"f1iry5bo",Bkqvd7p:"f15n41j8",Hwfdqs:"f1onx1g3"},ring:{Ftih45:"f1wl9k8s"},ringBadgeCutout:{f4a502:"fp2gujx"},ringThick:{of393c:"fq1w1vq"},ringThicker:{of393c:"fzg6ace"},ringThickest:{of393c:"f1nu8p71"},shadow:{Bsft5z2:"f13zj6fq"},shadow4:{Be6vj1x:"fcjn15l"},shadow8:{Be6vj1x:"f1tm8t9f"},shadow16:{Be6vj1x:"f1a1aohj"},shadow28:{Be6vj1x:"fond6v5"},inactive:{abs64n:"fp25eh",Bz10aip:"f1clczzi",Bkqvd7p:"f1l3s34x",Bfgortx:0,Bnvr3x9:0,b2tv09:0,Bucmhp4:0,iayac2:"flkahu5",b6ubon:"fw457kn",Bqinb2h:"f1wmllxl"},badge:{qhf8xq:"f1euv43f",B5kzvoi:"f1yab3r1",j35jbq:["f1e31b4d","f1vgc2s3"]},badgeCutout:{btxmck:"f1eugkqs"},badgeAlign:{Dnlfbu:["f1tlnv9o","f1y9kyih"]},tiny:{Bdjeniz:"f1uwoubl",niu6jh:"fid048z"},"extra-small":{Bdjeniz:"f13ar0e0",niu6jh:"fid048z"},small:{Bdjeniz:"fwwuruf",niu6jh:"fid048z"},medium:{Bdjeniz:"f1af27q5",niu6jh:"fid048z"},large:{Bdjeniz:"f18yy57a",niu6jh:"f924bxt"},"extra-large":{Bdjeniz:"f2jg042",niu6jh:"f924bxt"},icon12:{Be2twd7:"f1ugzwwg"},icon16:{Be2twd7:"f4ybsrx"},icon20:{Be2twd7:"fe5j1ua"},icon24:{Be2twd7:"f1rt2boy"},icon28:{Be2twd7:"f24l1pt"},icon32:{Be2twd7:"ffl51b"},icon48:{Be2twd7:"f18m8u13"}},{d:[".f13mqy1h{font-size:var(--fontSizeBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",[".fq9zq91{border-radius:var(--borderRadiusSmall);}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f1o0qvyv{border-radius:var(--borderRadiusLarge);}",{p:-1}],[".f1kijzfu{border-radius:var(--borderRadiusXLarge);}",{p:-1}],".ftfx35i{transform:perspective(1px);}",".fv0atk9{transition-property:transform,opacity;}",".f1iry5bo{transition-duration:var(--durationUltraSlow),var(--durationFaster);}",".f15n41j8{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}",'.f1wl9k8s::before{content:"";}',".fp2gujx::before{-webkit-mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".fq1w1vq{--fui-Avatar-ringWidth:var(--strokeWidthThick);}",".fzg6ace{--fui-Avatar-ringWidth:var(--strokeWidthThicker);}",".f1nu8p71{--fui-Avatar-ringWidth:var(--strokeWidthThickest);}",'.f13zj6fq::after{content:"";}',".fcjn15l::after{box-shadow:var(--shadow4);}",".f1tm8t9f::after{box-shadow:var(--shadow8);}",".f1a1aohj::after{box-shadow:var(--shadow16);}",".fond6v5::after{box-shadow:var(--shadow28);}",".fp25eh{opacity:0.8;}",".f1clczzi{transform:scale(0.875);}",".f1l3s34x{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",[".flkahu5::before,.flkahu5::after{margin:0;}",{p:-1}],".fw457kn::before,.fw457kn::after{opacity:0;}",".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1euv43f{position:absolute;}",".f1yab3r1{bottom:0;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",".f1y9kyih{--fui-Avatar-badgeAlign:left;}",".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",".fwwuruf{--fui-Avatar-badgeRadius:6px;}",".f1af27q5{--fui-Avatar-badgeRadius:8px;}",".f18yy57a{--fui-Avatar-badgeRadius:10px;}",".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",".f2jg042{--fui-Avatar-badgeRadius:14px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f24l1pt{font-size:28px;}",".ffl51b{font-size:32px;}",".f18m8u13{font-size:48px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1onx1g3{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),ne=(0,D.X)({16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),re=(0,D.X)({neutral:{sj55zd:"f11d4kpn",De3pzq:"f18f03hv"},brand:{sj55zd:"fonrgv7",De3pzq:"f1blnnmj"},"dark-red":{sj55zd:"fqjd1y1",De3pzq:"f1vq2oo4"},cranberry:{sj55zd:"fg9gses",De3pzq:"f1lwxszt"},red:{sj55zd:"f23f7i0",De3pzq:"f1q9qhfq"},pumpkin:{sj55zd:"fjnan08",De3pzq:"fz91bi3"},peach:{sj55zd:"fknu15p",De3pzq:"f1b9nr51"},marigold:{sj55zd:"f9603vw",De3pzq:"f3z4w6d"},gold:{sj55zd:"fmq0uwp",De3pzq:"fg50kya"},brass:{sj55zd:"f28g5vo",De3pzq:"f4w2gd0"},brown:{sj55zd:"ftl572b",De3pzq:"f14wu1f4"},forest:{sj55zd:"f1gymlvd",De3pzq:"f19ut4y6"},seafoam:{sj55zd:"fnnb6wn",De3pzq:"f1n057jc"},"dark-green":{sj55zd:"ff58qw8",De3pzq:"f11t05wk"},"light-teal":{sj55zd:"f1up9qbj",De3pzq:"f42feg1"},teal:{sj55zd:"f135dsb4",De3pzq:"f6hvv1p"},steel:{sj55zd:"f151dlcp",De3pzq:"f1lnp8zf"},blue:{sj55zd:"f1rjv50u",De3pzq:"f1ggcpy6"},"royal-blue":{sj55zd:"f1emykk5",De3pzq:"f12rj61f"},cornflower:{sj55zd:"fqsigj7",De3pzq:"f8k7hur"},navy:{sj55zd:"f1nj97xi",De3pzq:"f19gw0ux"},lavender:{sj55zd:"fwctg0i",De3pzq:"ff379vm"},purple:{sj55zd:"fjrsgpu",De3pzq:"f1mzf1e1"},grape:{sj55zd:"f1fiiydq",De3pzq:"f1o4k8oy"},lilac:{sj55zd:"f1res9jt",De3pzq:"f1x6mz1o"},pink:{sj55zd:"fv3fbbi",De3pzq:"fydlv6t"},magenta:{sj55zd:"f1f1fwnz",De3pzq:"f4xb6j5"},plum:{sj55zd:"f8ptl6j",De3pzq:"fqo8e26"},beige:{sj55zd:"f1ntv3ld",De3pzq:"f101elhj"},mink:{sj55zd:"f1fscmp",De3pzq:"f13g8o5c"},platinum:{sj55zd:"f1dr00v2",De3pzq:"fkh7blw"},anchor:{sj55zd:"f1f3ti53",De3pzq:"fu4yj0j"}},{d:[".f11d4kpn{color:var(--colorNeutralForeground3);}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1blnnmj{background-color:var(--colorBrandBackgroundStatic);}",".fqjd1y1{color:var(--colorPaletteDarkRedForeground2);}",".f1vq2oo4{background-color:var(--colorPaletteDarkRedBackground2);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1lwxszt{background-color:var(--colorPaletteCranberryBackground2);}",".f23f7i0{color:var(--colorPaletteRedForeground2);}",".f1q9qhfq{background-color:var(--colorPaletteRedBackground2);}",".fjnan08{color:var(--colorPalettePumpkinForeground2);}",".fz91bi3{background-color:var(--colorPalettePumpkinBackground2);}",".fknu15p{color:var(--colorPalettePeachForeground2);}",".f1b9nr51{background-color:var(--colorPalettePeachBackground2);}",".f9603vw{color:var(--colorPaletteMarigoldForeground2);}",".f3z4w6d{background-color:var(--colorPaletteMarigoldBackground2);}",".fmq0uwp{color:var(--colorPaletteGoldForeground2);}",".fg50kya{background-color:var(--colorPaletteGoldBackground2);}",".f28g5vo{color:var(--colorPaletteBrassForeground2);}",".f4w2gd0{background-color:var(--colorPaletteBrassBackground2);}",".ftl572b{color:var(--colorPaletteBrownForeground2);}",".f14wu1f4{background-color:var(--colorPaletteBrownBackground2);}",".f1gymlvd{color:var(--colorPaletteForestForeground2);}",".f19ut4y6{background-color:var(--colorPaletteForestBackground2);}",".fnnb6wn{color:var(--colorPaletteSeafoamForeground2);}",".f1n057jc{background-color:var(--colorPaletteSeafoamBackground2);}",".ff58qw8{color:var(--colorPaletteDarkGreenForeground2);}",".f11t05wk{background-color:var(--colorPaletteDarkGreenBackground2);}",".f1up9qbj{color:var(--colorPaletteLightTealForeground2);}",".f42feg1{background-color:var(--colorPaletteLightTealBackground2);}",".f135dsb4{color:var(--colorPaletteTealForeground2);}",".f6hvv1p{background-color:var(--colorPaletteTealBackground2);}",".f151dlcp{color:var(--colorPaletteSteelForeground2);}",".f1lnp8zf{background-color:var(--colorPaletteSteelBackground2);}",".f1rjv50u{color:var(--colorPaletteBlueForeground2);}",".f1ggcpy6{background-color:var(--colorPaletteBlueBackground2);}",".f1emykk5{color:var(--colorPaletteRoyalBlueForeground2);}",".f12rj61f{background-color:var(--colorPaletteRoyalBlueBackground2);}",".fqsigj7{color:var(--colorPaletteCornflowerForeground2);}",".f8k7hur{background-color:var(--colorPaletteCornflowerBackground2);}",".f1nj97xi{color:var(--colorPaletteNavyForeground2);}",".f19gw0ux{background-color:var(--colorPaletteNavyBackground2);}",".fwctg0i{color:var(--colorPaletteLavenderForeground2);}",".ff379vm{background-color:var(--colorPaletteLavenderBackground2);}",".fjrsgpu{color:var(--colorPalettePurpleForeground2);}",".f1mzf1e1{background-color:var(--colorPalettePurpleBackground2);}",".f1fiiydq{color:var(--colorPaletteGrapeForeground2);}",".f1o4k8oy{background-color:var(--colorPaletteGrapeBackground2);}",".f1res9jt{color:var(--colorPaletteLilacForeground2);}",".f1x6mz1o{background-color:var(--colorPaletteLilacBackground2);}",".fv3fbbi{color:var(--colorPalettePinkForeground2);}",".fydlv6t{background-color:var(--colorPalettePinkBackground2);}",".f1f1fwnz{color:var(--colorPaletteMagentaForeground2);}",".f4xb6j5{background-color:var(--colorPaletteMagentaBackground2);}",".f8ptl6j{color:var(--colorPalettePlumForeground2);}",".fqo8e26{background-color:var(--colorPalettePlumBackground2);}",".f1ntv3ld{color:var(--colorPaletteBeigeForeground2);}",".f101elhj{background-color:var(--colorPaletteBeigeBackground2);}",".f1fscmp{color:var(--colorPaletteMinkForeground2);}",".f13g8o5c{background-color:var(--colorPaletteMinkBackground2);}",".f1dr00v2{color:var(--colorPalettePlatinumForeground2);}",".fkh7blw{background-color:var(--colorPalettePlatinumBackground2);}",".f1f3ti53{color:var(--colorPaletteAnchorForeground2);}",".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}"]}),ie=(0,D.X)({neutral:{Bic5iru:"f1uuiafn"},brand:{Bic5iru:"f1uuiafn"},"dark-red":{Bic5iru:"f1t2x9on"},cranberry:{Bic5iru:"f1pvshc9"},red:{Bic5iru:"f1ectbk9"},pumpkin:{Bic5iru:"fvzpl0b"},peach:{Bic5iru:"fwj2kd7"},marigold:{Bic5iru:"fr120vy"},gold:{Bic5iru:"f8xmmar"},brass:{Bic5iru:"f1hbety2"},brown:{Bic5iru:"f1vg3s4g"},forest:{Bic5iru:"f1m3olm5"},seafoam:{Bic5iru:"f17xiqtr"},"dark-green":{Bic5iru:"fx32vyh"},"light-teal":{Bic5iru:"f1mkihwv"},teal:{Bic5iru:"fecnooh"},steel:{Bic5iru:"f15hfgzm"},blue:{Bic5iru:"fqproka"},"royal-blue":{Bic5iru:"f17v2w59"},cornflower:{Bic5iru:"fp0q1mo"},navy:{Bic5iru:"f1nlym55"},lavender:{Bic5iru:"f62vk8h"},purple:{Bic5iru:"f15zl69q"},grape:{Bic5iru:"f53w4j7"},lilac:{Bic5iru:"fu2771t"},pink:{Bic5iru:"fzflscs"},magenta:{Bic5iru:"fb6rmqc"},plum:{Bic5iru:"f1a4gm5b"},beige:{Bic5iru:"f1qpf9z1"},mink:{Bic5iru:"f1l7or83"},platinum:{Bic5iru:"fzrj0iu"},anchor:{Bic5iru:"f8oz6wf"}},{d:[".f1uuiafn::before{color:var(--colorBrandStroke1);}",".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}",".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}",".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}",".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}",".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}",".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}",".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}",".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}",".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}",".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}",".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}",".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}",".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}",".fecnooh::before{color:var(--colorPaletteTealBorderActive);}",".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}",".fqproka::before{color:var(--colorPaletteBlueBorderActive);}",".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}",".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}",".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}",".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}",".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}",".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}",".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}",".fzflscs::before{color:var(--colorPalettePinkBorderActive);}",".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}",".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}",".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}",".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}",".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}",".f8oz6wf::before{color:var(--colorPaletteAnchorBorderActive);}"]}),ae=n.forwardRef((function(e,t){var o=X(e,t);return function(e){var t,o=e.size,n=e.shape,r=e.active,i=e.activeAppearance,a=e.color,s=J(),l=ee(),c=te(),u=oe(),d=ne(),f=re(),p=ie(),h=[s,32!==o&&d[o]];e.badge&&h.push(u.badgeAlign,u[e.badge.size||"medium"]),o<=24?h.push(u.textCaption2Strong):o<=28?h.push(u.textCaption1Strong):o<=40||(o<=56?h.push(u.textSubtitle2):o<=96?h.push(u.textSubtitle1):h.push(u.textTitle3)),"square"===n&&(o<=24?h.push(u.squareSmall):o<=48?h.push(u.squareMedium):o<=72?h.push(u.squareLarge):h.push(u.squareXLarge)),"active"!==r&&"inactive"!==r||(h.push(u.activeOrInactive),"ring"!==i&&"ring-shadow"!==i||(h.push(u.ring,p[a]),e.badge&&h.push(u.ringBadgeCutout),o<=48?h.push(u.ringThick):o<=64?h.push(u.ringThicker):h.push(u.ringThickest)),"shadow"!==i&&"ring-shadow"!==i||(h.push(u.shadow),o<=28?h.push(u.shadow4):o<=48?h.push(u.shadow8):o<=64?h.push(u.shadow16):h.push(u.shadow28)),"inactive"===r&&h.push(u.inactive)),e.root.className=N.z.apply(void 0,[$.root].concat(h,[e.root.className])),e.badge&&(e.badge.className=(0,N.z)($.badge,u.badge,e.badge.className)),e.image&&(e.image.className=(0,N.z)($.image,l,f[a],e.badge&&u.badgeCutout,e.image.className)),e.initials&&(e.initials.className=(0,N.z)($.initials,c,f[a],e.badge&&u.badgeCutout,e.initials.className)),e.icon&&(t=o<=16?u.icon12:o<=24?u.icon16:o<=40?u.icon20:o<=48?u.icon24:o<=56?u.icon28:o<=72?u.icon32:u.icon48,e.icon.className=(0,N.z)($.icon,c,t,f[a],e.badge&&u.badgeCutout,e.icon.className))}(o),(0,L.$e)("useAvatarStyles_unstable")(o),function(e){return(0,i.C)(e),(0,r.FD)(e.root,{children:[e.initials&&(0,r.Y)(e.initials,{}),e.icon&&(0,r.Y)(e.icon,{}),e.image&&(0,r.Y)(e.image,{}),e.badge&&(0,r.Y)(e.badge,{}),e.activeAriaLabelElement]})}(o)}));ae.displayName="Avatar";var se={"extra-small":"tiny",small:"extra-small",medium:"small",large:"medium","extra-large":"large",huge:"large"},le={"extra-small":20,small:28,medium:32,large:36,"extra-large":40,huge:56},ce="fui-Persona",ue="fui-Persona__avatar",de="fui-Persona__presence",fe="fui-Persona__primaryText",pe="fui-Persona__secondaryText",he="fui-Persona__tertiaryText",me="fui-Persona__quaternaryText",ge=(0,R.y)("rlroi9i",null,[".rlroi9i{display:inline-grid;grid-auto-rows:max-content;grid-auto-flow:column;justify-items:start;grid-template-columns:max-content [middle] auto;}"]),ve=(0,D.X)({beforeAfterCenter:{wkccdc:"f1iantul"},after:{},before:{B7hvi0a:"f1tll2w5",Budl1dq:"ffvkwdr"},below:{Bxotwcr:"f1nkeedh",B7hvi0a:"f1oiokrs",Budl1dq:"f1emgwh2"},media:{Ijaq50:"f1hek2iy"},mediaBeforeAfterCenter:{Ijaq50:"fa4dipu"},start:{qb2dma:"f9h729m"},center:{qb2dma:"f7nlbp4"},afterAlignToPrimary:{qb2dma:"f7nlbp4",Ijaq50:"f1rnkkuc",Bw0ie65:"f1warjpf"},beforeAlignToPrimary:{qb2dma:"f7nlbp4",Ijaq50:"f1rnkkuc",Br312pm:"fwu52yu"},secondLineSpacing:{B6of3ja:"f1ryq6si"},primary:{Ijaq50:"f1q3ipgb"},secondary:{Ijaq50:"f3drtdk"},tertiary:{Ijaq50:"fa1o6s1"},quaternary:{Ijaq50:"f1tuwaia"}},{d:[".f1iantul{grid-template-rows:1fr [primary] max-content [secondary] max-content [tertiary] max-content [quaternary] max-content 1fr;}",".f1tll2w5{justify-items:end;}",".ffvkwdr{grid-template-columns:auto [middle] max-content;}",".f1nkeedh{grid-auto-flow:unset;}",".f1oiokrs{justify-items:center;}",".f1emgwh2{grid-template-columns:unset;}",".f1hek2iy{grid-row-start:span 5;}",".fa4dipu{grid-row-start:span 6;}",".f9h729m{align-self:start;}",".f7nlbp4{align-self:center;}",".f1rnkkuc{grid-row-start:unset;}",".f1warjpf{grid-column-end:middle;}",".fwu52yu{grid-column-start:middle;}",".f1ryq6si{margin-top:-2px;}",".f1q3ipgb{grid-row-start:primary;}",".f3drtdk{grid-row-start:secondary;}",".fa1o6s1{grid-row-start:tertiary;}",".f1tuwaia{grid-row-start:quaternary;}"]}),be=(0,D.X)({"extra-small":{Bs1gm4r:"f1e48tse"},small:{Bs1gm4r:"f18q9vkd"},medium:{Bs1gm4r:"f18q9vkd"},large:{Bs1gm4r:"fx34bi6"},"extra-large":{Bs1gm4r:"fx34bi6"},huge:{Bs1gm4r:"f1o96qtm"},after:{t21cq0:["f103ycu4","f1tao51"]},below:{jrapky:"fbo7acy"},before:{Frg6f3:["f1tao51","f103ycu4"]}},{d:[".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}",".f18q9vkd{--fui-Persona__avatar--spacing:var(--spacingHorizontalS);}",".fx34bi6{--fui-Persona__avatar--spacing:var(--spacingHorizontalMNudge);}",".f1o96qtm{--fui-Persona__avatar--spacing:var(--spacingHorizontalM);}",".f103ycu4{margin-right:var(--fui-Persona__avatar--spacing);}",".f1tao51{margin-left:var(--fui-Persona__avatar--spacing);}",".fbo7acy{margin-bottom:var(--fui-Persona__avatar--spacing);}"]}),_e=(0,D.X)({small:{Bs1gm4r:"f1e48tse"}},{d:[".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}"]}),ye=(0,R.y)("rvj41k9",null,[".rvj41k9{display:block;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"]),xe=(0,R.y)("rp1pf9e",null,[".rp1pf9e{display:block;color:var(--colorNeutralForeground2);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),ke=(0,D.X)({beforeAlignToPrimary:{Bw0ie65:"f1warjpf"},afterAlignToPrimary:{Br312pm:"fwu52yu"},body1:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},caption1:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},subtitle2:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".f1warjpf{grid-column-end:middle;}",".fwu52yu{grid-column-start:middle;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),we=function(e,t){var o,n,r=e.presenceOnly,i=e.size,a=e.textPosition,s=ye(),l=xe(),c=ke();return r?("extra-small"===i?o=e.numTextLines<=1&&c.caption1:"extra-large"!==i&&"huge"!==i||(o=c.subtitle2),t&&("before"===a?n=c.beforeAlignToPrimary:"after"===a&&(n=c.afterAlignToPrimary))):("huge"===i||"extra-large"===i)&&(o=c.subtitle2),{primaryTextClassName:(0,N.z)(s,o,n),optionalTextClassName:(0,N.z)(l,!r&&"huge"===i&&c.body1,n)}},Ce=n.forwardRef((function(e,t){var o=function(e,t){var o=e.name,n=e.presenceOnly,r=void 0!==n&&n,i=e.size,s=void 0===i?"medium":i,l=e.textAlignment,d=void 0===l?"start":l,f=e.textPosition,p=void 0===f?"after":f,h=c.lq(e.primaryText,{renderByDefault:!0,defaultProps:{children:o},elementType:"span"}),m=c.lq(e.secondaryText,{elementType:"span"}),g=c.lq(e.tertiaryText,{elementType:"span"}),v=c.lq(e.quaternaryText,{elementType:"span"});return{numTextLines:[h,m,g,v].filter(Boolean).length,presenceOnly:r,size:s,textAlignment:d,textPosition:p,components:{root:"div",avatar:ae,presence:W,primaryText:"span",secondaryText:"span",tertiaryText:"span",quaternaryText:"span"},root:c.Gk((0,u.g)("div",(0,a.A)((0,a.A)({},e),{},{ref:t}),["name"]),{elementType:"div"}),avatar:r?void 0:c.lq(e.avatar,{renderByDefault:!0,defaultProps:{name:o,badge:e.presence,size:le[s]},elementType:ae}),presence:r?c.lq(e.presence,{defaultProps:{size:se[s]},elementType:W}):void 0,primaryText:h,secondaryText:m,tertiaryText:g,quaternaryText:v}}(e,t);return function(e){var t=e.presenceOnly,o=e.size,n=e.textAlignment,r=e.textPosition,i=t&&"start"===n&&"extra-large"!==o&&"huge"!==o,s="below"!==r&&"center"===n,l=we(e,i),c=l.primaryTextClassName,u=l.optionalTextClassName,d=ge(),f=ve(),p=be(),h=(0,a.A)((0,a.A)({},p),_e());e.root.className=(0,N.z)(ce,d,s&&f.beforeAfterCenter,f[r],e.root.className),e.avatar&&(e.avatar.className=(0,N.z)(ue,"below"!==r&&f.media,s&&f.mediaBeforeAfterCenter,f[n],p[o],p[r],e.avatar.className)),e.presence&&(e.presence.className=(0,N.z)(de,"below"!==r&&f.media,s&&f.mediaBeforeAfterCenter,f[n],h[o],h[r],"after"===r&&i&&f.afterAlignToPrimary,"before"===r&&i&&f.beforeAlignToPrimary,e.presence.className)),e.primaryText&&(e.primaryText.className=(0,N.z)(fe,s&&f.primary,c,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=(0,N.z)(pe,s&&f.secondary,u,f.secondLineSpacing,e.secondaryText.className)),e.tertiaryText&&(e.tertiaryText.className=(0,N.z)(he,s&&f.tertiary,u,e.tertiaryText.className)),e.quaternaryText&&(e.quaternaryText.className=(0,N.z)(me,s&&f.quaternary,u,e.quaternaryText.className))}(o),(0,L.$e)("usePersonaStyles_unstable")(o),function(e){var t=e.presenceOnly,o=e.textPosition;(0,i.C)(e);var n=t?e.presence&&(0,r.Y)(e.presence,{}):e.avatar&&(0,r.Y)(e.avatar,{});return(0,r.FD)(e.root,{children:[("after"===o||"below"===o)&&n,e.primaryText&&(0,r.Y)(e.primaryText,{}),e.secondaryText&&(0,r.Y)(e.secondaryText,{}),e.tertiaryText&&(0,r.Y)(e.tertiaryText,{}),e.quaternaryText&&(0,r.Y)(e.quaternaryText,{}),"before"===o&&n]})}(o)}));Ce.displayName="Persona"},67875:function(e,t,o){"use strict";o.d(t,{G:function(){return R}});var n=o(80322),r=o(18188),i=o(61249),a=o(49839),s=o(79792),l=o(48021),c=o(62427);var u=o(56104),d=o(58238),f=o(99843),p=o(21008),h=o(41434),m=["size","disabled","root","contentBefore","dismiss","contentAfter","value","defaultValue"],g=function(e,t){var o=e.size,g=void 0===o?"medium":o,v=e.disabled,b=void 0!==v&&v,_=e.root,y=e.contentBefore,x=e.dismiss,k=e.contentAfter,w=e.value,C=e.defaultValue,S=(0,a.A)(e,m),B=n.useRef(null),I=n.useRef(null),E=(0,s.i)({state:w,defaultState:C,initialState:""}),z=(0,i.A)(E,2),T=z[0],A=z[1],P=n.useState(!1),R=(0,i.A)(P,2),D=R[0],N=R[1],F=n.useCallback((function(){N(!0)}),[N]),M=n.useCallback((function(e){var t;N(!!(null===(t=B.current)||void 0===t?void 0:t.contains(e.relatedTarget)))}),[N]),j=l.Gf(_),O=(0,c.D)((function(t){var o,r,i,a;null===(a=x)||"object"!==typeof a||Array.isArray(a)||n.isValidElement(a)||(null===(i=x.onClick)||void 0===i||i.call(x,t));A(""),null===(o=e.onChange)||void 0===o||o.call(e,t,{value:""}),null===(r=I.current)||void 0===r||r.focus()})),H=(0,f.n)((0,r.A)((0,r.A)({type:"search",disabled:b,size:g,value:T,root:l.Gk((0,r.A)((0,r.A)({},j),{},{ref:(0,u.a)(null===j||void 0===j?void 0:j.ref,B),onFocus:(0,d.p)(null===j||void 0===j?void 0:j.onFocus,F),onBlur:(0,d.p)(null===j||void 0===j?void 0:j.onBlur,M)}),{elementType:"span"}),contentBefore:l.lq(y,{renderByDefault:!0,defaultProps:{children:n.createElement(p.vMY,null)},elementType:"span"}),contentAfter:l.lq(k,{renderByDefault:!0,elementType:"span"})},S),{},{onChange:(0,c.D)((function(t){var o,n=t.target.value;null===(o=e.onChange)||void 0===o||o.call(e,t,{value:n}),A(n)}))}),(0,u.a)(I,t)),L=(0,r.A)((0,r.A)({},H),{},{components:(0,r.A)((0,r.A)({},H.components),{},{dismiss:"span"}),dismiss:l.lq(x,{defaultProps:{children:n.createElement(h.BEt,null),role:"button","aria-label":"clear",tabIndex:-1},renderByDefault:!0,elementType:"span"}),disabled:b,focused:D,size:g});return L.dismiss&&(L.dismiss.onClick=O),L},v=o(70979),b=o(634),_=o(25027),y=o(15403),x=o(59921),k=o(30893),w="fui-SearchBox",C="fui-SearchBox__dismiss",S="fui-SearchBox__contentAfter",B="fui-SearchBox__contentBefore",I="fui-SearchBox__input",E=(0,_.X)({small:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},medium:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1f5gg8d","f1vdfbxk"],z189sj:["f1vdfbxk","f1f5gg8d"]},large:{i8kkvl:"fjuset5",B2u0y6b:"f1xzfw5u",uwmqm3:["f1ng84yb","f11gcy0p"],z189sj:["f11gcy0p","f1ng84yb"]},input:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fhxju0i","f1cnd47f"],Boqhc8c:"f18izjht",B8uat0v:"fcoa6sg"},unfocusedNoContentAfter:{z189sj:["fhxju0i","f1cnd47f"]}},{d:[".fjuset5{column-gap:0;}",".f1xzfw5u{max-width:468px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f18izjht::-webkit-search-decoration{display:none;}",".fcoa6sg::-webkit-search-cancel-button{display:none;}"]}),z=(0,_.X)({small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f1vdfbxk","f1f5gg8d"]},large:{z189sj:["f11gcy0p","f1ng84yb"]}},{d:[".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}"]}),T=(0,_.X)({contentAfter:{uwmqm3:["f1uw59to","fw5db7e"],i8kkvl:"f1ufnopg"},rest:{Bqenvij:"fniina8",a9b677:"f3tsq5r",uwmqm3:["f1cnd47f","fhxju0i"],B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"}},{d:[".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".fniina8{height:0;}",".f3tsq5r{width:0;}",".f1cnd47f{padding-left:0;}",".fhxju0i{padding-right:0;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}]]}),A=(0,y.y)("r1pvzcuu",null,[".r1pvzcuu{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;cursor:pointer;}",".r1pvzcuu>svg{font-size:20px;}"]),P=(0,_.X)({disabled:{sj55zd:"f1s2aq7o"},small:{Duoase:"f3qv9w"},medium:{},large:{Duoase:"f16u2scb"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3qv9w>svg{font-size:16px;}",".f16u2scb>svg{font-size:24px;}"]}),R=n.forwardRef((function(e,t){var o=g(e,t);return function(e){var t=e.disabled,o=e.focused,n=e.size,r=E(),i=z(),a=T(),s=A(),l=P();e.root.className=(0,x.z)(w,r[n],!o&&r.unfocusedNoContentAfter,e.root.className),e.input.className=(0,x.z)(I,r.input,!o&&i[n],e.input.className),e.dismiss&&(e.dismiss.className=(0,x.z)(C,s,t&&l.disabled,l[n],e.dismiss.className)),e.contentBefore&&(e.contentBefore.className=(0,x.z)(B,e.contentBefore.className)),e.contentAfter?e.contentAfter.className=(0,x.z)(S,a.contentAfter,!o&&a.rest,e.contentAfter.className):e.dismiss&&(e.dismiss.className=(0,x.z)(e.dismiss.className,a.contentAfter)),(0,k.d)(e)}(o),function(e){return(0,b.C)(e),(0,v.FD)(e.root,{children:[e.contentBefore&&(0,v.Y)(e.contentBefore,{}),(0,v.Y)(e.input,{}),e.contentAfter&&(0,v.FD)(e.contentAfter,{children:[e.contentAfter.children,e.dismiss&&(0,v.Y)(e.dismiss,{})]})]})}(o)}));R.displayName="SearchBox"},33517:function(e,t,o){"use strict";o.d(t,{X:function(){return a},Z:function(){return i}});var n=o(80322),r=n.createContext(void 0),i=r.Provider;function a(){var e;return null!==(e=n.useContext(r))&&void 0!==e?e:{announce:function(){}}}},60776:function(e,t,o){"use strict";o.d(t,{H:function(){return v}});var n=o(80322),r=o(18188),i=o(48021),a=o(94396),s=o(58892),l=o(70979),c=o(634),u=o(25027),d=o(59921),f="fui-SkeletonItem",p=(0,u.X)({root:{qhf8xq:"f10pi13n",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp",Bsft5z2:"f13zj6fq",ap17g6:"f2gz7yw",E3zdtr:"f1mdlcz9",By385i5:0,Eqx8gd:0,B1piin3:0,bn5sak:0,B58onuk:"f1nt53hs",s9ouvv:"f18xs7ez",xr36ep:"ffm3629",Bitv4sc:"f1f9zsvm",Jx5sug:"f1ub80pn",Hzyzrh:"f1e7twep"},wave:{De3pzq:"f1gjxg63",Br128sd:["f3fo419","f6m9r4"],h62rwi:["ftnv2js","f12jzhyt"],b1kco5:["fig1c6l","f1rv5y9h"],oi31me:"f103n15n"},pulse:{Br128sd:"f171zwvm",xr36ep:"fs3pcyf",Bjyk6c5:"f1yu5riq"},translucent:{De3pzq:"f162mh4z",h62rwi:["flvf4r0","f1uek97b"]},translucentPulse:{De3pzq:"flu3bqm",Bjyk6c5:"fxucc0w"}},{d:[".f10pi13n{position:relative;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],'.f13zj6fq::after{content:"";}',".f2gz7yw::after{display:block;}",".f1mdlcz9::after{position:absolute;}",[".f1nt53hs::after{inset:0;}",{p:-1}],".f18xs7ez::after{animation-iteration-count:infinite;}",".ffm3629::after{animation-duration:3s;}",".f1f9zsvm::after{animation-timing-function:ease-in-out;}",".f1gjxg63{background-color:var(--colorNeutralStencil1);}",".f3fo419::after{animation-name:f1efwx7q;}",".f6m9r4::after{animation-name:f1kkgpz1;}",".ftnv2js::after{background-image:linear-gradient(\n        to right,\n        var(--colorNeutralStencil1) 0%,\n        var(--colorNeutralStencil2) 50%,\n        var(--colorNeutralStencil1) 100%);}",".f12jzhyt::after{background-image:linear-gradient(\n        to left,\n        var(--colorNeutralStencil1) 0%,\n        var(--colorNeutralStencil2) 50%,\n        var(--colorNeutralStencil1) 100%);}",".fig1c6l::after{transform:translate(-100%);}",".f1rv5y9h::after{transform:translate(100%);}",".f171zwvm::after{animation-name:f12o7gg6;}",".fs3pcyf::after{animation-duration:1s;}",".f1yu5riq::after{background-color:var(--colorNeutralStencil1);}",".f162mh4z{background-color:var(--colorNeutralStencil1Alpha);}",".flvf4r0::after{background-image:linear-gradient(\n      to right,\n      transparent 0%,\n      var(--colorNeutralStencil1Alpha) 50%,\n      transparent 100%);}",".f1uek97b::after{background-image:linear-gradient(\n      to left,\n      transparent 0%,\n      var(--colorNeutralStencil1Alpha) 50%,\n      transparent 100%);}",".flu3bqm{background-color:none;}",".fxucc0w::after{background-color:var(--colorNeutralStencil1Alpha);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1ub80pn::after{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1e7twep::after{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f103n15n::after{background-color:WindowText;}}",{m:"screen and (forced-colors: active)"}]],k:["@keyframes f1efwx7q{to{transform:translate(100%);}}","@keyframes f1kkgpz1{to{transform:translate(-100%);}}","@keyframes f12o7gg6{0%{opacity:1;}50%{opacity:0.4;}100%{opacity:1;}}"]}),h=(0,u.X)({8:{Bqenvij:"f1x82gua"},12:{Bqenvij:"fvblgha"},16:{Bqenvij:"fd461yt"},20:{Bqenvij:"fjamq6b"},24:{Bqenvij:"frvgh55"},28:{Bqenvij:"fxldao9"},32:{Bqenvij:"f1d2rq10"},36:{Bqenvij:"f8ljn23"},40:{Bqenvij:"fbhnoac"},48:{Bqenvij:"ff2sm71"},56:{Bqenvij:"fzki0ko"},64:{Bqenvij:"f16k9i2m"},72:{Bqenvij:"f1shusfg"},96:{Bqenvij:"fypu0ge"},120:{Bqenvij:"fjr5b71"},128:{Bqenvij:"fele2au"},root:{a9b677:"fly5x3f",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ff3glw6"}},{d:[".f1x82gua{height:8px;}",".fvblgha{height:12px;}",".fd461yt{height:16px;}",".fjamq6b{height:20px;}",".frvgh55{height:24px;}",".fxldao9{height:28px;}",".f1d2rq10{height:32px;}",".f8ljn23{height:36px;}",".fbhnoac{height:40px;}",".ff2sm71{height:48px;}",".fzki0ko{height:56px;}",".f16k9i2m{height:64px;}",".f1shusfg{height:72px;}",".fypu0ge{height:96px;}",".fjr5b71{height:120px;}",".fele2au{height:128px;}",".fly5x3f{width:100%;}",[".ff3glw6{border-radius:4px;}",{p:-1}]]}),m=(0,u.X)({8:{a9b677:"f1o3cbw4",Bqenvij:"f1x82gua"},12:{a9b677:"frx94fk",Bqenvij:"fvblgha"},16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".f1o3cbw4{width:8px;}",".f1x82gua{height:8px;}",".frx94fk{width:12px;}",".fvblgha{height:12px;}",".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),g=(0,u.X)({root:{Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"f5q2cvs"}},{d:[[".f5q2cvs{border-radius:50%;}",{p:-1}]]}),v=n.forwardRef((function(e,t){var o=function(e,t){var o=(0,s.O)(),n=o.animation,l=o.appearance,c=e.animation,u=void 0===c?null!==n&&void 0!==n?n:"wave":c,d=e.appearance,f=void 0===d?null!==l&&void 0!==l?l:"opaque":d,p=e.size,h=void 0===p?16:p,m=e.shape;return{appearance:f,animation:u,size:h,shape:void 0===m?"rectangle":m,components:{root:"div"},root:i.Gk((0,a.g)("div",(0,r.A)({ref:t},e)),{elementType:"div"})}}(e,t);return function(e){var t=e.animation,o=e.appearance,n=e.size,r=e.shape,i=p(),a=h(),s=m(),l=g();e.root.className=(0,d.z)(f,i.root,"wave"===t&&i.wave,"pulse"===t&&i.pulse,"translucent"===o&&i.translucent,"pulse"===t&&"translucent"===o&&i.translucentPulse,"rectangle"===r&&a.root,"rectangle"===r&&a[n],"square"===r&&s[n],"circle"===r&&l.root,"circle"===r&&s[n],e.root.className)}(o),function(e){return(0,c.C)(e),(0,l.Y)(e.root,{})}(o)}));v.displayName="SkeletonItem"},22855:function(e,t,o){"use strict";o.d(t,{E:function(){return f}});var n=o(80322),r=o(18188),i=o(48021),a=o(94396),s=o(58892),l=o(70979),c=o(634),u=o(59921),d="fui-Skeleton",f=n.forwardRef((function(e,t){var o=function(e,t){var o=(0,s.O)(),n=o.animation,l=o.appearance,c=e.animation,u=void 0===c?null!==n&&void 0!==n?n:"wave":c,d=e.appearance;return{animation:u,appearance:void 0===d?null!==l&&void 0!==l?l:"opaque":d,components:{root:"div"},root:i.Gk((0,a.g)("div",(0,r.A)({ref:t,role:"progressbar","aria-busy":!0},e)),{elementType:"div"})}}(e,t),f=function(e){var t=e.animation,o=e.appearance;return{skeletonGroup:n.useMemo((function(){return{animation:t,appearance:o}}),[t,o])}}(o);return function(e){e.root.className=(0,u.z)(d,e.root.className)}(o),function(e,t){return(0,c.C)(e),(0,l.Y)(s.Q,{value:t.skeletonGroup,children:(0,l.Y)(e.root,{})})}(o,f)}));f.displayName="Skeleton"},58892:function(e,t,o){"use strict";o.d(t,{O:function(){return s},Q:function(){return a}});var n=o(80322),r=n.createContext(void 0),i={},a=r.Provider,s=function(){var e;return null!==(e=n.useContext(r))&&void 0!==e?e:i}},47234:function(e,t,o){"use strict";o.d(t,{y:function(){return R}});var n=o(80322),r=o(61249),i=o(18188),a=o(49839),s=o(85875),l=o(48021),c=o(94396),u=o(64306),d=o(56422),f=n.createContext(void 0),p={},h=(f.Provider,["role"]),m=function(e,t){var o=function(){var e;return null!==(e=n.useContext(f))&&void 0!==e?e:p}().size,m=e.appearance,g=void 0===m?"primary":m,v=e.labelPosition,b=void 0===v?"after":v,_=e.size,y=void 0===_?null!==o&&void 0!==o?o:"medium":_,x=e.delay,k=void 0===x?0:x,w=(0,s.Bi)("spinner"),C=e.role,S=void 0===C?"progressbar":C,B=(0,a.A)(e,h),I=l.Gk((0,c.g)("div",(0,i.A)({ref:t,role:S},B),["size"]),{elementType:"div"}),E=n.useState(!1),z=(0,r.A)(E,2),T=z[0],A=z[1],P=(0,u.Z)(),R=(0,r.A)(P,2),D=R[0],N=R[1];n.useEffect((function(){if(!(k<=0))return D((function(){A(!0)}),k),function(){N()}}),[D,N,k]);var F=l.lq(e.label,{defaultProps:{id:w},renderByDefault:!1,elementType:d.J}),M=l.lq(e.spinner,{renderByDefault:!0,elementType:"span"});return F&&I&&!I["aria-labelledby"]&&(I["aria-labelledby"]=F.id),{appearance:g,delay:k,labelPosition:b,size:y,shouldRenderSpinner:!k||T,components:{root:"div",spinner:"span",spinnerTail:"span",label:d.J},root:I,spinner:M,spinnerTail:l.Gk(e.spinnerTail,{elementType:"span"}),label:F}},g=o(70979),v=o(634),b=o(11277),_=o(15403),y=o(25027),x=o(59921),k="fui-Spinner",w="fui-Spinner__spinner",C="fui-Spinner__spinnerTail",S="fui-Spinner__label",B=(0,_.y)("r82apo5",null,[".r82apo5{display:flex;align-items:center;justify-content:center;line-height:0;gap:8px;overflow:hidden;}"]),I=(0,y.X)({vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f1vx9l62{flex-direction:column;}"]}),E=(0,_.y)("rvgcg50","r15nd2jo",{r:[".rvgcg50{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:rb7n1on;}","@keyframes rb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}",".r15nd2jo{position:relative;flex-shrink:0;-webkit-mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);mask-image:radial-gradient(closest-side, transparent calc(100% - var(--fui-Spinner--strokeWidth) - 1px), white calc(100% - var(--fui-Spinner--strokeWidth)) calc(100% - 1px), transparent 100%);background-color:var(--colorBrandStroke2Contrast);color:var(--colorBrandStroke1);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:linear;animation-name:r1gx3jof;}","@keyframes r1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],s:["@media screen and (forced-colors: active){.rvgcg50{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.rvgcg50{animation-duration:1.8s;}}","@media screen and (forced-colors: active){.r15nd2jo{background-color:HighlightText;color:Highlight;forced-color-adjust:none;}}","@media screen and (prefers-reduced-motion: reduce){.r15nd2jo{animation-duration:1.8s;}}"]}),z=(0,_.y)("rxov3xa","r1o544mv",{r:[".rxov3xa{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r15mim6k;}",'.rxov3xa::before,.rxov3xa::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r15mim6k{0%{transform:rotate(-135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(225deg);}}",".rxov3xa::before{animation-name:r18vhmn8;}","@keyframes r18vhmn8{0%{transform:rotate(0deg);}50%{transform:rotate(105deg);}100%{transform:rotate(0deg);}}",".rxov3xa::after{animation-name:rkgrvoi;}","@keyframes rkgrvoi{0%{transform:rotate(0deg);}50%{transform:rotate(225deg);}100%{transform:rotate(0deg);}}",".r1o544mv{position:absolute;display:block;width:100%;height:100%;-webkit-mask-image:conic-gradient(transparent 105deg, white 105deg);mask-image:conic-gradient(transparent 105deg, white 105deg);animation-duration:1.5s;animation-iteration-count:infinite;animation-timing-function:var(--curveEasyEase);animation-name:r109gmi5;}",'.r1o544mv::before,.r1o544mv::after{content:"";position:absolute;display:block;width:100%;height:100%;animation:inherit;background-image:conic-gradient(currentcolor 135deg, transparent 135deg);}',"@keyframes r109gmi5{0%{transform:rotate(135deg);}50%{transform:rotate(0deg);}100%{transform:rotate(-225deg);}}",".r1o544mv::before{animation-name:r17whflh;}","@keyframes r17whflh{0%{transform:rotate(0deg);}50%{transform:rotate(-105deg);}100%{transform:rotate(0deg);}}",".r1o544mv::after{animation-name:re4odhl;}","@keyframes re4odhl{0%{transform:rotate(0deg);}50%{transform:rotate(-225deg);}100%{transform:rotate(0deg);}}"],s:["@media screen and (prefers-reduced-motion: reduce){.rxov3xa{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.rxov3xa::before,.rxov3xa::after{content:none;}}","@media screen and (prefers-reduced-motion: reduce){.r1o544mv{animation-iteration-count:0;background-image:conic-gradient(transparent 120deg, currentcolor 360deg);}.r1o544mv::before,.r1o544mv::after{content:none;}}"]}),T=(0,y.X)({inverted:{De3pzq:"fr407j0",sj55zd:"f1f7voed"},rtlTail:{btxmck:"f179dep3",gb5jj2:"fbz9ihp",Br2kee7:"f1wkkxo7"},"extra-tiny":{Bqenvij:"fd461yt",a9b677:"fjw5fx7",qmp6fs:"f1v3ph3m"},tiny:{Bqenvij:"fjamq6b",a9b677:"f64fuq3",qmp6fs:"f1v3ph3m"},"extra-small":{Bqenvij:"frvgh55",a9b677:"fq4mcun",qmp6fs:"f1v3ph3m"},small:{Bqenvij:"fxldao9",a9b677:"f1w9dchk",qmp6fs:"f1v3ph3m"},medium:{Bqenvij:"f1d2rq10",a9b677:"f1szoe96",qmp6fs:"fb52u90"},large:{Bqenvij:"f8ljn23",a9b677:"fpdz1er",qmp6fs:"fb52u90"},"extra-large":{Bqenvij:"fbhnoac",a9b677:"feqmc2u",qmp6fs:"fb52u90"},huge:{Bqenvij:"f1ft4266",a9b677:"fksc0bp",qmp6fs:"fa3u9ii"}},{d:[".fr407j0{background-color:var(--colorNeutralStrokeAlpha2);}",".f1f7voed{color:var(--colorNeutralStrokeOnBrand2);}",".f179dep3{-webkit-mask-image:conic-gradient(white 255deg, transparent 255deg);mask-image:conic-gradient(white 255deg, transparent 255deg);}",".fbz9ihp::before,.fbz9ihp::after{background-image:conic-gradient(transparent 225deg, currentcolor 225deg);}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".f1v3ph3m{--fui-Spinner--strokeWidth:var(--strokeWidthThick);}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".fxldao9{height:28px;}",".f1w9dchk{width:28px;}",".f1d2rq10{height:32px;}",".f1szoe96{width:32px;}",".fb52u90{--fui-Spinner--strokeWidth:var(--strokeWidthThicker);}",".f8ljn23{height:36px;}",".fpdz1er{width:36px;}",".fbhnoac{height:40px;}",".feqmc2u{width:40px;}",".f1ft4266{height:44px;}",".fksc0bp{width:44px;}",".fa3u9ii{--fui-Spinner--strokeWidth:var(--strokeWidthThickest);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1wkkxo7{background-image:conic-gradient(currentcolor 0deg, transparent 240deg);}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),A=(0,y.X)({inverted:{sj55zd:"fonrgv7"},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),P=o(11577),R=n.forwardRef((function(e,t){var o=m(e,t);return function(e){var t=e.labelPosition,o=e.size,n=e.appearance,r=(0,b.Y)().dir,i=B(),a=I(),s=E(),l=T(),c=z(),u=A();e.root.className=(0,x.z)(k,i,("above"===t||"below"===t)&&a.vertical,e.root.className),e.spinner&&(e.spinner.className=(0,x.z)(w,s,l[o],"inverted"===n&&l.inverted,e.spinner.className)),e.spinnerTail&&(e.spinnerTail.className=(0,x.z)(C,c,"rtl"===r&&l.rtlTail,e.spinnerTail.className)),e.label&&(e.label.className=(0,x.z)(S,u[o],"inverted"===n&&u.inverted,e.label.className))}(o),(0,P.$e)("useSpinnerStyles_unstable")(o),function(e){(0,v.C)(e);var t=e.labelPosition,o=e.shouldRenderSpinner;return(0,g.FD)(e.root,{children:[e.label&&o&&("above"===t||"before"===t)&&(0,g.Y)(e.label,{}),e.spinner&&o&&(0,g.Y)(e.spinner,{children:e.spinnerTail&&(0,g.Y)(e.spinnerTail,{})}),e.label&&o&&("below"===t||"after"===t)&&(0,g.Y)(e.label,{})]})}(o)}));R.displayName="Spinner"},16598:function(e,t,o){"use strict";o.d(t,{V:function(){return a}});var n=o(18150),r=o(24087),i=o(5574),a=function(e){var t=(0,i.p)();return t&&(0,n.$d)(t),(0,r.g)({groupper:{tabbability:s(null===e||void 0===e?void 0:e.tabBehavior)},focusable:{ignoreKeydown:null===e||void 0===e?void 0:e.ignoreDefaultKeydown}})},s=function(e){switch(e){case"unlimited":return n.K9.Unlimited;case"limited":return n.K9.Limited;case"limited-trap-focus":return n.K9.LimitedTrapFocus;default:return}}},4537:function(e,t,o){"use strict";o.d(t,{v:function(){return d},y:function(){return p}});var n=o(18188),r=o(8778),i=o(85875),a=o(24087),s=o(18150),l=o(5574),c="data-tabster-never-hide",u=(0,r.A)({},c,"");function d(){return u}var f=function(e){return e.hasAttribute(c)},p=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.trapFocus,o=e.alwaysFocusable,r=e.legacyTrapFocus,c=(0,l.p)();c&&((0,s.Az)(c,void 0,f),(0,s.mz)(c));var u=(0,i.Bi)("modal-",e.id),d=(0,a.g)((0,n.A)({restorer:{type:s.CP.Source}},t&&{modalizer:{id:u,isOthersAccessible:!t,isAlwaysAccessible:o,isTrapped:r&&t}})),p=(0,a.g)({restorer:{type:s.CP.Target}});return{modalAttributes:d,triggerAttributes:p}}},5574:function(e,t,o){"use strict";o.d(t,{p:function(){return c}});var n=o(80322),r=o(11277),i=o(18150);function a(e){return(t=e)&&t._virtual&&e._virtual.parent||null;var t}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return null;if(!t.skipVirtual){var o=a(e);if(o)return o}var n=e.parentNode;return n&&n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?n.host:n}var l=o(79924),c=function(){var e=(0,r.Y)().targetDocument,t=(null===e||void 0===e?void 0:e.defaultView)||void 0,o=null===t||void 0===t?void 0:t.__tabsterShadowDOMAPI,a=n.useMemo((function(){return t?(0,i._A)(t,{autoRoot:{},controlTab:!1,getParent:s,checkUncontrolledTrappingFocus:function(e){var t;return!!(null===(t=e.firstElementChild)||void 0===t?void 0:t.hasAttribute("data-is-focus-trap-zone-bumper"))},DOMAPI:o}):null}),[t,o]);return(0,l.E)((function(){return function(){a&&(0,i.hC)(a)}}),[a]),a}},24087:function(e,t,o){"use strict";o.d(t,{g:function(){return s}});var n=o(8778),r=o(18150),i=o(5574),a=o(80322),s=function(e){(0,i.p)();var t=(0,r.U6)(e,!0);return a.useMemo((function(){return(0,n.A)({},r.h7,t)}),[t])}},25647:function(e,t,o){"use strict";o.d(t,{E:function(){return h}});var n=o(80322),r=o(18188),i=o(48021),a=o(94396),s=o(70979),l=o(634),c=o(25027),u=o(59921),d="fui-Text",f=(0,c.X)({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1gl81tg",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:0,Bmxbyg5:0,Bpg54ce:"f1a3p1vp"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",[".f1gl81tg{overflow:visible;}",{p:-1}],".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",[".f1a3p1vp{overflow:hidden;}",{p:-1}],".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),p=o(11577),h=n.forwardRef((function(e,t){var o=function(e,t){var o=e.wrap,n=e.truncate,s=e.block,l=e.italic,c=e.underline,u=e.strikethrough,d=e.size,f=e.font,p=e.weight,h=e.align;return{align:null!==h&&void 0!==h?h:"start",block:null!==s&&void 0!==s&&s,font:null!==f&&void 0!==f?f:"base",italic:null!==l&&void 0!==l&&l,size:null!==d&&void 0!==d?d:300,strikethrough:null!==u&&void 0!==u&&u,truncate:null!==n&&void 0!==n&&n,underline:null!==c&&void 0!==c&&c,weight:null!==p&&void 0!==p?p:"regular",wrap:null===o||void 0===o||o,components:{root:"span"},root:i.Gk((0,a.g)("span",(0,r.A)({ref:t},e)),{elementType:"span"})}}(e,t);return function(e){var t=f();e.root.className=(0,u.z)(d,t.root,!1===e.wrap&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,100===e.size&&t.base100,200===e.size&&t.base200,400===e.size&&t.base400,500===e.size&&t.base500,600===e.size&&t.base600,700===e.size&&t.hero700,800===e.size&&t.hero800,900===e.size&&t.hero900,1e3===e.size&&t.hero1000,"monospace"===e.font&&t.monospace,"numeric"===e.font&&t.numeric,"medium"===e.weight&&t.weightMedium,"semibold"===e.weight&&t.weightSemibold,"bold"===e.weight&&t.weightBold,"center"===e.align&&t.alignCenter,"end"===e.align&&t.alignEnd,"justify"===e.align&&t.alignJustify,e.root.className)}(o),(0,p.$e)("useTextStyles_unstable")(o),function(e){return(0,l.C)(e),(0,s.Y)(e.root,{})}(o)}));h.displayName="Text"},19484:function(e,t,o){"use strict";o.d(t,{T:function(){return k}});var n=o(80322),r=o(70979),i=o(634),a=o(18188),s=o(61249),l=o(28148),c=o(79792),u=o(41874),d=o(48021),f=o(62427),p=o(3587),h=o(25027),m=o(59921),g="fui-Textarea",v="fui-Textarea__textarea",b=(0,h.X)({base:{mc9l5x:"ftuwxu6",B7ck84d:"f1ewtqcl",qhf8xq:"f10pi13n",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1yiegib",jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",ha4doy:"f12kltsn"},disabled:{De3pzq:"f1c21dwh",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"ff3nzm7",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"]},interactive:{li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"ffyw7fx",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],B1q35kw:0,Bw17bha:0,Bcgy8vk:0,Bjuhk93:"f1mnjydx",Gjdm7m:"fj2g8qd",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51",Bbr2w1p:"f1vnc8sk",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7"},filled:{Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f88035w",q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1gmd7mu",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f1gmd7mu",E5pizo:"fyed02w"},outline:{De3pzq:"fxugw4r",Bgfg5da:0,B9xav0g:"f1c1zstj",oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"fhz96rm"},outlineInteractive:{kzujx5:0,oetu4i:"f1l4zc64",gvrnp0:0,xv9156:0,jek2p4:0,gg5e9n:0,Beu9t3s:0,dt87k2:0,Bt1vbvt:0,Bwzppfd:0,Bop6t4b:0,B2zwrfe:0,Bwp2tzp:0,Bgoe8wy:0,Bf40cpq:0,ckks6v:0,Baalond:"f9mts5e",v2iqwr:0,wmxk5l:"f1z0osm6",Bj33j0h:0,Bs0cc2w:0,qwjtx1:0,B50zh58:0,f7epvg:0,e1hlit:0,B7mkhst:0,ak43y8:0,Bbcopvn:0,Bvecx4l:0,lwioe0:0,B6oc9vd:0,e2sjt0:0,uqwnxt:0,asj8p9:"f1acnei2",Br8fjdy:0,zoxjo1:"f1so894s",Bt3ojkv:0,B7pmvfx:0,Bfht2n1:0,an54nd:0,t1ykpo:0,Belqbek:0,bbt1vd:0,Brahy3i:0,r7b1zc:0,rexu52:0,ovtnii:0,Bvq3b66:0,Bawrxx6:0,Bbs6y8j:0,B2qpgjt:"fds4ob8"},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]}},{d:[".ftuwxu6{display:inline-flex;}",".f1ewtqcl{box-sizing:border-box;}",".f10pi13n{position:relative;}",[".f1yiegib{padding:0 0 var(--strokeWidthThick) 0;}",{p:-1}],[".f1s184ao{margin:0;}",{p:-1}],[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],".f12kltsn{vertical-align:top;}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",[".ff3nzm7{border:var(--strokeWidthThin) solid var(--colorNeutralStrokeDisabled);}",{p:-2}],".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".ffyw7fx::after{height:max(var(--strokeWidthThick), var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",[".f1mnjydx::after{border-bottom:var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);}",{p:-1}],".fj2g8qd::after{clip-path:inset(calc(100% - var(--strokeWidthThick)) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",[".f88035w{border:var(--strokeWidthThin) solid var(--colorTransparentStroke);}",{p:-2}],".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],".fyed02w{box-shadow:var(--shadow2);}",[".f1gmd7mu{border:var(--strokeWidthThin) solid var(--colorTransparentStrokeInteractive);}",{p:-2}],[".fhz96rm{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],w:[".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".f1vnc8sk:focus-within{outline-width:var(--strokeWidthThick);}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",[".fds4ob8:focus-within{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);}",{p:-2}],".f1so894s:focus-within{border-bottom-color:var(--colorCompoundBrandStroke);}"],h:[".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}",[".f9mts5e:hover{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Hover);}",{p:-2}],".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}"],a:[[".f1acnei2:active{border:var(--strokeWidthThin) solid var(--colorNeutralStroke1Pressed);}",{p:-2}],".f1z0osm6:active{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"]}),_=(0,h.X)({base:{icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],oivjwe:"f1h8hb77",wvpqe5:["f1deefiw","f1n71otn"],jrapky:0,Frg6f3:0,t21cq0:0,B6of3ja:0,B74szlk:"f1s184ao",De3pzq:"f3rmtva",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",Bh6795r:"fqerorx",Bahqtrf:"fk6fouc",Bqenvij:"f1l02sjl",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih",B4brmom:"f1vw9udw",Brrnbx2:"fbb3kq8",oeaueh:"f1s6fcnf"},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"},small:{sshi5w:"f1w5jphr",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1pnffij",Bxyxcbc:"f192z54u",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{sshi5w:"fvmd9f",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1ww82xo",Bxyxcbc:"f1if7ixc",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},large:{sshi5w:"f1kfson",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f15hvtkj",Bxyxcbc:"f3kip1f",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k"}},{d:[".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1h8hb77{border-bottom-style:none;}",[".f1s184ao{margin:0;}",{p:-1}],".f3rmtva{background-color:transparent;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fqerorx{flex-grow:1;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".f1l02sjl{height:100%;}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f1vw9udw::selection{color:var(--colorNeutralForegroundInverted);}",".fbb3kq8::selection{background-color:var(--colorNeutralBackgroundInverted);}",".f1s6fcnf{outline-style:none;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}",".f1w5jphr{min-height:40px;}",[".f1pnffij{padding:var(--spacingVerticalXS) calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f192z54u{max-height:200px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fvmd9f{min-height:52px;}",[".f1ww82xo{padding:var(--spacingVerticalSNudge) calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",{p:-1}],".f1if7ixc{max-height:260px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1kfson{min-height:64px;}",[".f15hvtkj{padding:var(--spacingVerticalS) calc(var(--spacingHorizontalM) + var(--spacingHorizontalXXS));}",{p:-1}],".f3kip1f{max-height:320px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),y=(0,h.X)({none:{B3rzk8w:"f1o1s39h"},both:{B3rzk8w:"f1pxm0xe"},horizontal:{B3rzk8w:"fq6nmtn"},vertical:{B3rzk8w:"f1f5ktr4"}},{d:[".f1o1s39h{resize:none;}",".f1pxm0xe{resize:both;}",".fq6nmtn{resize:horizontal;}",".f1f5ktr4{resize:vertical;}"]}),x=o(11577),k=n.forwardRef((function(e,t){var o=function(e,t){e=(0,l.c)(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});var o,n=(0,p.Pv)(),r=e,i=r.size,h=void 0===i?"medium":i,m=r.appearance,g=void 0===m?null!==(o=n.inputDefaultAppearance)&&void 0!==o?o:"outline":m,v=r.resize,b=void 0===v?"none":v,_=r.onChange,y=(0,c.i)({state:e.value,defaultState:e.defaultValue,initialState:void 0}),x=(0,s.A)(y,2),k=x[0],w=x[1],C=(0,u.n)({props:e,primarySlotTagName:"textarea",excludedPropNames:["onChange","value","defaultValue"]}),S={size:h,appearance:g,resize:b,components:{root:"span",textarea:"textarea"},textarea:d.Gk(e.textarea,{defaultProps:(0,a.A)({ref:t},C.primary),elementType:"textarea"}),root:d.Gk(e.root,{defaultProps:C.root,elementType:"span"})};return S.textarea.value=k,S.textarea.onChange=(0,f.D)((function(e){var t=e.target.value;null===_||void 0===_||_(e,{value:t}),w(t)})),S}(e,t);return function(e){var t=e.size,o=e.appearance,n=e.resize,r=e.textarea.disabled,i="true"==="".concat(e.textarea["aria-invalid"]),a=o.startsWith("filled"),s=b();e.root.className=(0,m.z)(g,s.base,r&&s.disabled,!r&&a&&s.filled,!r&&s[o],!r&&s.interactive,!r&&"outline"===o&&s.outlineInteractive,!r&&i&&s.invalid,e.root.className);var l=_(),c=y();e.textarea.className=(0,m.z)(v,l.base,l[t],c[n],r&&l.disabled,e.textarea.className)}(o),(0,x.$e)("useTextareaStyles_unstable")(o),function(e){return(0,i.C)(e),(0,r.Y)(e.root,{children:(0,r.Y)(e.textarea,{})})}(o)}));k.displayName="Textarea"},49307:function(e,t,o){"use strict";o.d(t,{m:function(){return Yt}});var n=o(80322),r=o(18188),i=o(61249),a={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function s(e){return void 0===e||null===e?{}:"string"===typeof e?a[e]:e}var l=function(e,t){return"number"===typeof e?{mainAxis:e+t}:(0,r.A)((0,r.A)({},e),{},{mainAxis:(null!==(o=e.mainAxis)&&void 0!==o?o:0)+t});var o},c=o(31802),u=o(22489),d=o(42732),f=o.n(d),p=["top","right","bottom","left"],h=Math.min,m=Math.max,g=(Math.round,Math.floor,{left:"right",right:"left",bottom:"top",top:"bottom"}),v={start:"end",end:"start"};function b(e,t,o){return m(e,h(t,o))}function _(e,t){return"function"===typeof e?e(t):e}function y(e){return e.split("-")[0]}function x(e){return e.split("-")[1]}function k(e){return"x"===e?"y":"x"}function w(e){return"y"===e?"height":"width"}function C(e){return["top","bottom"].includes(y(e))?"y":"x"}function S(e){return k(C(e))}function B(e,t,o){void 0===o&&(o=!1);var n=x(e),r=S(e),i=w(r),a="x"===r?n===(o?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=T(a)),[a,T(a)]}function I(e){var t=T(e);return[E(e),t,E(t)]}function E(e){return e.replace(/start|end/g,(function(e){return v[e]}))}function z(e,t,o,n){var r=x(e),i=function(e,t,o){var n=["left","right"],r=["right","left"];switch(e){case"top":case"bottom":return o?t?r:n:t?n:r;case"left":case"right":return t?["top","bottom"]:["bottom","top"];default:return[]}}(y(e),"start"===o,n);return r&&(i=i.map((function(e){return e+"-"+r})),t&&(i=i.concat(i.map(E)))),i}function T(e){return e.replace(/left|right|bottom|top/g,(function(e){return g[e]}))}function A(e){return"number"!==typeof e?function(e){return(0,r.A)({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function P(e){var t=e.x,o=e.y,n=e.width,r=e.height;return{width:n,height:r,top:o,left:t,right:t+n,bottom:o+r,x:t,y:o}}var R=o(49839),D=o(8778),N=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],F=["strategy"],M=["mainAxis","crossAxis","limiter"],j=["apply"];function O(e,t,o){var n,r=e.reference,i=e.floating,a=C(t),s=S(t),l=w(s),c=y(t),u="y"===a,d=r.x+r.width/2-i.width/2,f=r.y+r.height/2-i.height/2,p=r[l]/2-i[l]/2;switch(c){case"top":n={x:d,y:r.y-i.height};break;case"bottom":n={x:d,y:r.y+r.height};break;case"right":n={x:r.x+r.width,y:f};break;case"left":n={x:r.x-i.width,y:f};break;default:n={x:r.x,y:r.y}}switch(x(t)){case"start":n[s]-=p*(o&&u?-1:1);break;case"end":n[s]+=p*(o&&u?-1:1)}return n}var H=function(){var e=(0,c.A)(d.mark((function e(t,o,n){var i,a,s,l,c,u,f,p,h,m,g,v,b,_,y,x,k,w,C,S,B,I,E,z,T,A;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.placement,a=void 0===i?"bottom":i,s=n.strategy,l=void 0===s?"absolute":s,c=n.middleware,u=void 0===c?[]:c,f=n.platform,p=u.filter(Boolean),e.next=4,null==f.isRTL?void 0:f.isRTL(o);case 4:return h=e.sent,e.next=7,f.getElementRects({reference:t,floating:o,strategy:l});case 7:m=e.sent,g=O(m,a,h),v=g.x,b=g.y,_=a,y={},x=0,k=0;case 13:if(!(k<p.length)){e.next=45;break}return w=p[k],C=w.name,S=w.fn,e.next=17,S({x:v,y:b,initialPlacement:a,placement:_,strategy:l,middlewareData:y,rects:m,platform:f,elements:{reference:t,floating:o}});case 17:if(B=e.sent,I=B.x,E=B.y,z=B.data,T=B.reset,v=null!=I?I:v,b=null!=E?E:b,y=(0,r.A)((0,r.A)({},y),{},(0,D.A)({},C,(0,r.A)((0,r.A)({},y[C]),z))),!(T&&x<=50)){e.next=42;break}if(x++,"object"!==typeof T){e.next=41;break}if(T.placement&&(_=T.placement),!T.rects){e.next=38;break}if(!0!==T.rects){e.next=36;break}return e.next=33,f.getElementRects({reference:t,floating:o,strategy:l});case 33:e.t0=e.sent,e.next=37;break;case 36:e.t0=T.rects;case 37:m=e.t0;case 38:A=O(m,_,h),v=A.x,b=A.y;case 41:k=-1;case 42:k++,e.next=13;break;case 45:return e.abrupt("return",{x:v,y:b,placement:_,strategy:l,middlewareData:y});case 46:case"end":return e.stop()}}),e)})));return function(t,o,n){return e.apply(this,arguments)}}();function L(e,t){return q.apply(this,arguments)}function q(){return q=(0,c.A)(d.mark((function e(t,o){var n,r,i,a,s,l,c,u,f,p,h,m,g,v,b,y,x,k,w,C,S,B,I,E,z;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return void 0===o&&(o={}),r=t.x,i=t.y,a=t.platform,s=t.rects,l=t.elements,c=t.strategy,u=_(o,t),f=u.boundary,p=void 0===f?"clippingAncestors":f,h=u.rootBoundary,m=void 0===h?"viewport":h,g=u.elementContext,v=void 0===g?"floating":g,b=u.altBoundary,y=void 0!==b&&b,x=u.padding,k=A(void 0===x?0:x),w="floating"===v?"reference":"floating",C=l[y?w:v],e.t0=P,e.t1=a,e.next=10,null==a.isElement?void 0:a.isElement(C);case 10:if(e.t2=n=e.sent,null==e.t2){e.next=15;break}e.t3=n,e.next=16;break;case 15:e.t3=!0;case 16:if(!e.t3){e.next=20;break}e.t4=C,e.next=26;break;case 20:if(e.t5=C.contextElement,e.t5){e.next=25;break}return e.next=24,null==a.getDocumentElement?void 0:a.getDocumentElement(l.floating);case 24:e.t5=e.sent;case 25:e.t4=e.t5;case 26:return e.t6=e.t4,e.t7=p,e.t8=m,e.t9=c,e.t10={element:e.t6,boundary:e.t7,rootBoundary:e.t8,strategy:e.t9},e.next=33,e.t1.getClippingRect.call(e.t1,e.t10);case 33:return e.t11=e.sent,S=(0,e.t0)(e.t11),B="floating"===v?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,e.next=38,null==a.getOffsetParent?void 0:a.getOffsetParent(l.floating);case 38:return I=e.sent,e.next=41,null==a.isElement?void 0:a.isElement(I);case 41:if(!e.sent){e.next=50;break}return e.next=44,null==a.getScale?void 0:a.getScale(I);case 44:if(e.t13=e.sent,e.t13){e.next=47;break}e.t13={x:1,y:1};case 47:e.t12=e.t13,e.next=51;break;case 50:e.t12={x:1,y:1};case 51:if(E=e.t12,e.t14=P,!a.convertOffsetParentRelativeRectToViewportRelativeRect){e.next=59;break}return e.next=56,a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:B,offsetParent:I,strategy:c});case 56:e.t15=e.sent,e.next=60;break;case 59:e.t15=B;case 60:return e.t16=e.t15,z=(0,e.t14)(e.t16),e.abrupt("return",{top:(S.top-z.top+k.top)/E.y,bottom:(z.bottom-S.bottom+k.bottom)/E.y,left:(S.left-z.left+k.left)/E.x,right:(z.right-S.right+k.right)/E.x});case 63:case"end":return e.stop()}}),e)}))),q.apply(this,arguments)}function W(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function V(e){return p.some((function(t){return e[t]>=0}))}function G(e,t){return K.apply(this,arguments)}function K(){return K=(0,c.A)(d.mark((function e(t,o){var n,r,i,a,s,l,c,u,f,p,h,m,g,v;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.placement,r=t.platform,i=t.elements,e.next=3,null==r.isRTL?void 0:r.isRTL(i.floating);case 3:return a=e.sent,s=y(n),l=x(n),c="y"===C(n),u=["left","top"].includes(s)?-1:1,f=a&&c?-1:1,p=_(o,t),h="number"===typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis},m=h.mainAxis,g=h.crossAxis,v=h.alignmentAxis,l&&"number"===typeof v&&(g="end"===l?-1*v:v),e.abrupt("return",c?{x:g*f,y:m*u}:{x:m*u,y:g*f});case 13:case"end":return e.stop()}}),e)}))),K.apply(this,arguments)}var U=Math.min,X=Math.max,Y=Math.round,Z=(Math.floor,function(e){return{x:e,y:e}});function Q(){return"undefined"!==typeof window}function $(e){return te(e)?(e.nodeName||"").toLowerCase():"#document"}function J(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function ee(e){var t;return null==(t=(te(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function te(e){return!!Q()&&(e instanceof Node||e instanceof J(e).Node)}function oe(e){return!!Q()&&(e instanceof Element||e instanceof J(e).Element)}function ne(e){return!!Q()&&(e instanceof HTMLElement||e instanceof J(e).HTMLElement)}function re(e){return!(!Q()||"undefined"===typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof J(e).ShadowRoot)}function ie(e){var t=de(e),o=t.overflow,n=t.overflowX,r=t.overflowY,i=t.display;return/auto|scroll|overlay|hidden|clip/.test(o+r+n)&&!["inline","contents"].includes(i)}function ae(e){return["table","td","th"].includes($(e))}function se(e){return[":popover-open",":modal"].some((function(t){try{return e.matches(t)}catch(o){return!1}}))}function le(e){var t=ce(),o=oe(e)?de(e):e;return["transform","translate","scale","rotate","perspective"].some((function(e){return!!o[e]&&"none"!==o[e]}))||!!o.containerType&&"normal"!==o.containerType||!t&&!!o.backdropFilter&&"none"!==o.backdropFilter||!t&&!!o.filter&&"none"!==o.filter||["transform","translate","scale","rotate","perspective","filter"].some((function(e){return(o.willChange||"").includes(e)}))||["paint","layout","strict","content"].some((function(e){return(o.contain||"").includes(e)}))}function ce(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function ue(e){return["html","body","#document"].includes($(e))}function de(e){return J(e).getComputedStyle(e)}function fe(e){return oe(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pe(e){if("html"===$(e))return e;var t=e.assignedSlot||e.parentNode||re(e)&&e.host||ee(e);return re(t)?t.host:t}function he(e){var t=pe(e);return ue(t)?e.ownerDocument?e.ownerDocument.body:e.body:ne(t)&&ie(t)?t:he(t)}function me(e,t,o){var n;void 0===t&&(t=[]),void 0===o&&(o=!0);var r=he(e),i=r===(null==(n=e.ownerDocument)?void 0:n.body),a=J(r);if(i){var s=ge(a);return t.concat(a,a.visualViewport||[],ie(r)?r:[],s&&o?me(s):[])}return t.concat(r,me(r,[],o))}function ge(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ve(e){var t=de(e),o=parseFloat(t.width)||0,n=parseFloat(t.height)||0,r=ne(e),i=r?e.offsetWidth:o,a=r?e.offsetHeight:n,s=Y(o)!==i||Y(n)!==a;return s&&(o=i,n=a),{width:o,height:n,$:s}}function be(e){return oe(e)?e:e.contextElement}function _e(e){var t=be(e);if(!ne(t))return Z(1);var o=t.getBoundingClientRect(),n=ve(t),r=n.width,i=n.height,a=n.$,s=(a?Y(o.width):o.width)/r,l=(a?Y(o.height):o.height)/i;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}var ye=Z(0);function xe(e){var t=J(e);return ce()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ye}function ke(e,t,o,n){void 0===t&&(t=!1),void 0===o&&(o=!1);var r=e.getBoundingClientRect(),i=be(e),a=Z(1);t&&(n?oe(n)&&(a=_e(n)):a=_e(e));var s=function(e,t,o){return void 0===t&&(t=!1),!(!o||t&&o!==J(e))&&t}(i,o,n)?xe(i):Z(0),l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,u=r.width/a.x,d=r.height/a.y;if(i)for(var f=J(i),p=n&&oe(n)?J(n):n,h=f,m=ge(h);m&&n&&p!==h;){var g=_e(m),v=m.getBoundingClientRect(),b=de(m),_=v.left+(m.clientLeft+parseFloat(b.paddingLeft))*g.x,y=v.top+(m.clientTop+parseFloat(b.paddingTop))*g.y;l*=g.x,c*=g.y,u*=g.x,d*=g.y,l+=_,c+=y,m=ge(h=J(m))}return P({width:u,height:d,x:l,y:c})}function we(e,t){var o=fe(e).scrollLeft;return t?t.left+o:ke(ee(e)).left+o}function Ce(e,t,o){void 0===o&&(o=!1);var n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(o?0:we(e,n)),y:n.top+t.scrollTop}}function Se(e,t,o){var n;if("viewport"===t)n=function(e,t){var o=J(e),n=ee(e),r=o.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(r){i=r.width,a=r.height;var c=ce();(!c||c&&"fixed"===t)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,o);else if("document"===t)n=function(e){var t=ee(e),o=fe(e),n=e.ownerDocument.body,r=X(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=X(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),a=-o.scrollLeft+we(e),s=-o.scrollTop;return"rtl"===de(n).direction&&(a+=X(t.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:s}}(ee(e));else if(oe(t))n=function(e,t){var o=ke(e,!0,"fixed"===t),n=o.top+e.clientTop,r=o.left+e.clientLeft,i=ne(e)?_e(e):Z(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:r*i.x,y:n*i.y}}(t,o);else{var r=xe(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return P(n)}function Be(e,t){var o=pe(e);return!(o===t||!oe(o)||ue(o))&&("fixed"===de(o).position||Be(o,t))}function Ie(e,t,o){var n=ne(t),r=ee(t),i="fixed"===o,a=ke(e,!0,i,t),s={scrollLeft:0,scrollTop:0},l=Z(0);if(n||!n&&!i)if(("body"!==$(t)||ie(r))&&(s=fe(t)),n){var c=ke(t,!0,i,t);l.x=c.x+t.clientLeft,l.y=c.y+t.clientTop}else r&&(l.x=we(r));var u=!r||n||i?Z(0):Ce(r,s);return{x:a.left+s.scrollLeft-l.x-u.x,y:a.top+s.scrollTop-l.y-u.y,width:a.width,height:a.height}}function Ee(e){return"static"===de(e).position}function ze(e,t){if(!ne(e)||"fixed"===de(e).position)return null;if(t)return t(e);var o=e.offsetParent;return ee(e)===o&&(o=o.ownerDocument.body),o}function Te(e,t){var o=J(e);if(se(e))return o;if(!ne(e)){for(var n=pe(e);n&&!ue(n);){if(oe(n)&&!Ee(n))return n;n=pe(n)}return o}for(var r=ze(e,t);r&&ae(r)&&Ee(r);)r=ze(r,t);return r&&ue(r)&&Ee(r)&&!le(r)?o:r||function(e){for(var t=pe(e);ne(t)&&!ue(t);){if(le(t))return t;if(se(t))return null;t=pe(t)}return null}(e)||o}var Ae=function(){var e=(0,c.A)(d.mark((function e(t){var o,n,r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=this.getOffsetParent||Te,n=this.getDimensions,e.next=4,n(t.floating);case 4:return r=e.sent,e.t0=Ie,e.t1=t.reference,e.next=9,o(t.floating);case 9:return e.t2=e.sent,e.t3=t.strategy,e.t4=(0,e.t0)(e.t1,e.t2,e.t3),e.t5={x:0,y:0,width:r.width,height:r.height},e.abrupt("return",{reference:e.t4,floating:e.t5});case 14:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}();var Pe={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){var t=e.elements,o=e.rect,n=e.offsetParent,r="fixed"===e.strategy,i=ee(n),a=!!t&&se(t.floating);if(n===i||a&&r)return o;var s={scrollLeft:0,scrollTop:0},l=Z(1),c=Z(0),u=ne(n);if((u||!u&&!r)&&(("body"!==$(n)||ie(i))&&(s=fe(n)),ne(n))){var d=ke(n);l=_e(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}var f=!i||u||r?Z(0):Ce(i,s,!0);return{width:o.width*l.x,height:o.height*l.y,x:o.x*l.x-s.scrollLeft*l.x+c.x+f.x,y:o.y*l.y-s.scrollTop*l.y+c.y+f.y}},getDocumentElement:ee,getClippingRect:function(e){var t=e.element,o=e.boundary,n=e.rootBoundary,r=e.strategy,i="clippingAncestors"===o?se(t)?[]:function(e,t){var o=t.get(e);if(o)return o;for(var n=me(e,[],!1).filter((function(e){return oe(e)&&"body"!==$(e)})),r=null,i="fixed"===de(e).position,a=i?pe(e):e;oe(a)&&!ue(a);){var s=de(a),l=le(a);l||"fixed"!==s.position||(r=null),(i?!l&&!r:!l&&"static"===s.position&&r&&["absolute","fixed"].includes(r.position)||ie(a)&&!l&&Be(e,a))?n=n.filter((function(e){return e!==a})):r=s,a=pe(a)}return t.set(e,n),n}(t,this._c):[].concat(o),a=[].concat((0,u.A)(i),[n]),s=a[0],l=a.reduce((function(e,o){var n=Se(t,o,r);return e.top=X(n.top,e.top),e.right=U(n.right,e.right),e.bottom=U(n.bottom,e.bottom),e.left=X(n.left,e.left),e}),Se(t,s,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:Te,getElementRects:Ae,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){var t=ve(e);return{width:t.width,height:t.height}},getScale:_e,isElement:oe,isRTL:function(e){return"rtl"===de(e).direction}};var Re=L,De=function(e){return void 0===e&&(e=0),{name:"offset",options:e,fn:function(t){return(0,c.A)(d.mark((function o(){var n,i,a,s,l,c,u;return d.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=t.x,s=t.y,l=t.placement,c=t.middlewareData,o.next=3,G(t,e);case 3:if(u=o.sent,l!==(null==(n=c.offset)?void 0:n.placement)||null==(i=c.arrow)||!i.alignmentOffset){o.next=6;break}return o.abrupt("return",{});case 6:return o.abrupt("return",{x:a+u.x,y:s+u.y,data:(0,r.A)((0,r.A)({},u),{},{placement:l})});case 7:case"end":return o.stop()}}),o)})))()}}},Ne=function(e){return void 0===e&&(e={}),{name:"shift",options:e,fn:function(t){return(0,c.A)(d.mark((function o(){var n,i,a,s,l,c,u,f,p,h,m,g,v,x,w,S,B,I,E,z,T,A,P,N,F,j;return d.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=t.x,s=t.y,l=t.placement,c=_(e,t),u=c.mainAxis,f=void 0===u||u,p=c.crossAxis,h=void 0!==p&&p,m=c.limiter,g=void 0===m?{fn:function(e){return{x:e.x,y:e.y}}}:m,v=(0,R.A)(c,M),x={x:a,y:s},o.next=5,L(t,v);case 5:return w=o.sent,S=C(y(l)),B=k(S),I=x[B],E=x[S],f&&(z="y"===B?"bottom":"right",T=I+w["y"===B?"top":"left"],A=I-w[z],I=b(T,I,A)),h&&(P="y"===S?"bottom":"right",N=E+w["y"===S?"top":"left"],F=E-w[P],E=b(N,E,F)),j=g.fn((0,r.A)((0,r.A)({},t),{},(n={},(0,D.A)(n,B,I),(0,D.A)(n,S,E),n))),o.abrupt("return",(0,r.A)((0,r.A)({},j),{},{data:{x:j.x-a,y:j.y-s,enabled:(i={},(0,D.A)(i,B,f),(0,D.A)(i,S,h),i)}}));case 14:case"end":return o.stop()}}),o)})))()}}},Fe=function(e){return void 0===e&&(e={}),{name:"flip",options:e,fn:function(t){return(0,c.A)(d.mark((function o(){var n,r,i,a,s,l,c,f,p,h,m,g,v,b,x,k,w,S,E,A,P,D,F,M,j,O,H,q,W,V,G,K,U,X,Y,Z,Q,$,J;return d.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(i=t.placement,a=t.middlewareData,s=t.rects,l=t.initialPlacement,c=t.platform,f=t.elements,p=_(e,t),h=p.mainAxis,m=void 0===h||h,g=p.crossAxis,v=void 0===g||g,b=p.fallbackPlacements,x=p.fallbackStrategy,k=void 0===x?"bestFit":x,w=p.fallbackAxisSideDirection,S=void 0===w?"none":w,E=p.flipAlignment,A=void 0===E||E,P=(0,R.A)(p,N),null==(n=a.arrow)||!n.alignmentOffset){o.next=4;break}return o.abrupt("return",{});case 4:return D=y(i),F=C(l),M=y(l)===l,o.next=9,null==c.isRTL?void 0:c.isRTL(f.floating);case 9:return j=o.sent,O=b||(M||!A?[T(l)]:I(l)),H="none"!==S,!b&&H&&O.push.apply(O,(0,u.A)(z(l,A,S,j))),q=[l].concat((0,u.A)(O)),o.next=16,L(t,P);case 16:if(W=o.sent,V=[],G=(null==(r=a.flip)?void 0:r.overflows)||[],m&&V.push(W[D]),v&&(K=B(i,s,j),V.push(W[K[0]],W[K[1]])),G=[].concat((0,u.A)(G),[{placement:i,overflows:V}]),V.every((function(e){return e<=0}))){o.next=39;break}if(Y=((null==(U=a.flip)?void 0:U.index)||0)+1,!(Z=q[Y])){o.next=27;break}return o.abrupt("return",{data:{index:Y,overflows:G},reset:{placement:Z}});case 27:if(Q=null==(X=G.filter((function(e){return e.overflows[0]<=0})).sort((function(e,t){return e.overflows[1]-t.overflows[1]}))[0])?void 0:X.placement){o.next=37;break}o.t0=k,o.next="bestFit"===o.t0?32:"initialPlacement"===o.t0?35:37;break;case 32:return J=null==($=G.filter((function(e){if(H){var t=C(e.placement);return t===F||"y"===t}return!0})).map((function(e){return[e.placement,e.overflows.filter((function(e){return e>0})).reduce((function(e,t){return e+t}),0)]})).sort((function(e,t){return e[1]-t[1]}))[0])?void 0:$[0],J&&(Q=J),o.abrupt("break",37);case 35:return Q=l,o.abrupt("break",37);case 37:if(i===Q){o.next=39;break}return o.abrupt("return",{reset:{placement:Q}});case 39:return o.abrupt("return",{});case 40:case"end":return o.stop()}}),o)})))()}}},Me=function(e){return void 0===e&&(e={}),{name:"size",options:e,fn:function(t){return(0,c.A)(d.mark((function o(){var n,i,a,s,l,c,u,f,p,g,v,b,k,w,S,B,I,E,z,T,A,P,D,N,F,M,O,H,q,W,V;return d.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return a=t.placement,s=t.rects,l=t.platform,c=t.elements,u=_(e,t),f=u.apply,p=void 0===f?function(){}:f,g=(0,R.A)(u,j),o.next=4,L(t,g);case 4:if(v=o.sent,b=y(a),k=x(a),w="y"===C(a),S=s.floating,B=S.width,I=S.height,"top"!==b&&"bottom"!==b){o.next=28;break}return E=b,o.t0=k,o.next=14,null==l.isRTL?void 0:l.isRTL(c.floating);case 14:if(!o.sent){o.next=18;break}o.t1="start",o.next=19;break;case 18:o.t1="end";case 19:if(o.t2=o.t1,o.t0!==o.t2){o.next=24;break}o.t3="left",o.next=25;break;case 24:o.t3="right";case 25:z=o.t3,o.next=30;break;case 28:z=b,E="end"===k?"top":"bottom";case 30:return T=I-v.top-v.bottom,A=B-v.left-v.right,P=h(I-v[E],T),D=h(B-v[z],A),N=!t.middlewareData.shift,F=P,M=D,null!=(n=t.middlewareData.shift)&&n.enabled.x&&(M=A),null!=(i=t.middlewareData.shift)&&i.enabled.y&&(F=T),N&&!k&&(O=m(v.left,0),H=m(v.right,0),q=m(v.top,0),W=m(v.bottom,0),w?M=B-2*(0!==O||0!==H?O+H:m(v.left,v.right)):F=I-2*(0!==q||0!==W?q+W:m(v.top,v.bottom))),o.next=42,p((0,r.A)((0,r.A)({},t),{},{availableWidth:M,availableHeight:F}));case 42:return o.next=44,l.getDimensions(c.floating);case 44:if(V=o.sent,B===V.width&&I===V.height){o.next=47;break}return o.abrupt("return",{reset:{rects:!0}});case 47:return o.abrupt("return",{});case 48:case"end":return o.stop()}}),o)})))()}}},je=function(e){return void 0===e&&(e={}),{name:"hide",options:e,fn:function(t){return(0,c.A)(d.mark((function o(){var n,i,a,s,l,c,u,f,p;return d.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=t.rects,i=_(e,t),a=i.strategy,s=void 0===a?"referenceHidden":a,l=(0,R.A)(i,F),o.t0=s,o.next="referenceHidden"===o.t0?5:"escaped"===o.t0?10:15;break;case 5:return o.next=7,L(t,(0,r.A)((0,r.A)({},l),{},{elementContext:"reference"}));case 7:return c=o.sent,u=W(c,n.reference),o.abrupt("return",{data:{referenceHiddenOffsets:u,referenceHidden:V(u)}});case 10:return o.next=12,L(t,(0,r.A)((0,r.A)({},l),{},{altBoundary:!0}));case 12:return f=o.sent,p=W(f,n.floating),o.abrupt("return",{data:{escapedOffsets:p,escaped:V(p)}});case 15:return o.abrupt("return",{});case 16:case"end":return o.stop()}}),o)})))()}}},Oe=function(e){return{name:"arrow",options:e,fn:function(t){return(0,c.A)(d.mark((function o(){var n,i,a,s,l,c,u,f,p,m,g,v,y,k,C,B,I,E,z,T,P,R,N,F,M,j,O,H,L,q,W,V,G,K,U,X;return d.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=t.x,s=t.y,l=t.placement,c=t.rects,u=t.platform,f=t.elements,p=t.middlewareData,m=_(e,t)||{},g=m.element,v=m.padding,y=void 0===v?0:v,null!=g){o.next=4;break}return o.abrupt("return",{});case 4:return k=A(y),C={x:a,y:s},B=S(l),I=w(B),o.next=10,u.getDimensions(g);case 10:return E=o.sent,T=(z="y"===B)?"top":"left",P=z?"bottom":"right",R=z?"clientHeight":"clientWidth",N=c.reference[I]+c.reference[B]-C[B]-c.floating[I],F=C[B]-c.reference[B],o.next=19,null==u.getOffsetParent?void 0:u.getOffsetParent(g);case 19:if(M=o.sent,j=M?M[R]:0,o.t0=!j,o.t0){o.next=26;break}return o.next=25,null==u.isElement?void 0:u.isElement(M);case 25:o.t0=!o.sent;case 26:if(!o.t0){o.next=28;break}j=f.floating[R]||c.floating[I];case 28:return O=N/2-F/2,H=j/2-E[I]/2-1,L=h(k[T],H),q=h(k[P],H),W=L,V=j-E[I]-q,G=j/2-E[I]/2+O,K=b(W,G,V),U=!p.arrow&&null!=x(l)&&G!==K&&c.reference[I]/2-(G<W?L:q)-E[I]/2<0,X=U?G<W?G-W:G-V:0,o.abrupt("return",(i={},(0,D.A)(i,B,C[B]+X),(0,D.A)(i,"data",(0,r.A)((n={},(0,D.A)(n,B,K),(0,D.A)(n,"centerOffset",G-K-X),n),U&&{alignmentOffset:X})),(0,D.A)(i,"reset",U),i));case 39:case"end":return o.stop()}}),o)})))()}}},He=function(e){return void 0===e&&(e={}),{options:e,fn:function(t){var o,n=t.x,i=t.y,a=t.placement,s=t.rects,l=t.middlewareData,c=_(e,t),u=c.offset,d=void 0===u?0:u,f=c.mainAxis,p=void 0===f||f,h=c.crossAxis,m=void 0===h||h,g={x:n,y:i},v=C(a),b=k(v),x=g[b],w=g[v],S=_(d,t),B="number"===typeof S?{mainAxis:S,crossAxis:0}:(0,r.A)({mainAxis:0,crossAxis:0},S);if(p){var I="y"===b?"height":"width",E=s.reference[b]-s.floating[I]+B.mainAxis,z=s.reference[b]+s.reference[I]-B.mainAxis;x<E?x=E:x>z&&(x=z)}if(m){var T,A,P="y"===b?"width":"height",R=["top","left"].includes(y(a)),N=s.reference[v]-s.floating[P]+(R&&(null==(T=l.offset)?void 0:T[v])||0)+(R?0:B.crossAxis),F=s.reference[v]+s.reference[P]+(R?0:(null==(A=l.offset)?void 0:A[v])||0)-(R?B.crossAxis:0);w<N?w=N:w>F&&(w=F)}return o={},(0,D.A)(o,b,x),(0,D.A)(o,v,w),o}}},Le=o(11277),qe=o(74674),We=o(62427),Ve=o(79924);function Ge(e,t,o){var r=n.useRef(!0),a=n.useState((function(){return{value:e,callback:t,facade:{get current(){return s.value},set current(e){var t=s.value;if(t!==e){if(s.value=e,o&&r.current)return;s.callback(e,t)}}}}})),s=(0,i.A)(a,1)[0];return(0,Ve.E)((function(){r.current=!1}),[]),s.callback=t,s.facade}var Ke=function e(t){var o=t&&function(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}(t);if(!o)return document.body;switch(o.nodeName){case"HTML":case"BODY":return o.ownerDocument.body;case"#document":return o.body}var n=function(e){var t;return 1!==e.nodeType?{}:(null===(t=e.ownerDocument)||void 0===t?void 0:t.defaultView).getComputedStyle(e,null)}(o),r=n.overflow,i=n.overflowX,a=n.overflowY;return/(auto|scroll|overlay)/.test(r+a+i)?o:e(o)},Ue=function(e,t,o){var n=function(e,t){var o="above"===e||"below"===e,n="top"===t||"bottom"===t;return o&&n||!o&&!n}(t,e)?"center":e,r=t&&function(e){return{above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}}(o)[t],i=n&&{start:"start",end:"end",top:"start",bottom:"end",center:void 0}[n];return r&&i?"".concat(r,"-").concat(i):r};function Xe(e,t){if("window"===t)return null===e||void 0===e?void 0:e.ownerDocument.documentElement;if("clippingParents"===t)return"clippingAncestors";if("scrollParent"===t){var o=Ke(e);return"BODY"===o.nodeName&&(o=null===e||void 0===e?void 0:e.ownerDocument.documentElement),o}return t}var Ye=["start","end"];function Ze(e,t){if("number"===typeof e)return e;e.start,e.end;var o=(0,R.A)(e,Ye),n=t?"end":"start",r=t?"start":"end";return e[n]&&(o.left=e[n]),e[r]&&(o.right=e[r]),o}var Qe=function(e){return{name:"resetMaxSize",fn:function(t){var o,n=t.middlewareData,r=t.elements;if(null===(o=n.resetMaxSize)||void 0===o?void 0:o.maxSizeAlreadyReset)return{};var i=e.applyMaxWidth,a=e.applyMaxHeight;return i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),a&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}}};function $e(e,t){var o=t.container,n=t.overflowBoundary,i=t.overflowBoundaryPadding,a=t.isRtl;return Me((0,r.A)((0,r.A)((0,r.A)({},i&&{padding:Ze(i,a)}),n&&{altBoundary:!0,boundary:Xe(o,n)}),{},{apply:function(t){var o=t.availableHeight,n=t.availableWidth,r=t.elements,i=t.rects,a=function(e,t,o){if(e&&(r.floating.style.setProperty("box-sizing","border-box"),r.floating.style.setProperty("max-".concat(t),"".concat(o,"px")),i.floating[t]>o)){r.floating.style.setProperty(t,"".concat(o,"px"));var n="width"===t?"x":"y";r.floating.style.getPropertyValue("overflow-".concat(n))||r.floating.style.setProperty("overflow-".concat(n),"auto")}},s=e.applyMaxWidth,l=e.applyMaxHeight;a(s,"width",n),a(l,"height",o)}}))}var Je="--fui-match-target-size";function et(){return{name:"matchTargetSize",fn:function(){var e=(0,c.A)(f().mark((function e(t){var o,n,r,i,a,s,l,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.rects,n=o.reference,r=o.floating,i=t.elements.floating,a=t.middlewareData.matchTargetSize,s=(a=void 0===a?{}:a).matchTargetSizeAttempt,l=void 0!==s&&s,n.width!==r.width&&!l){e.next=5;break}return e.abrupt("return",{});case 5:return c=n.width,i.style.setProperty(Je,"".concat(c,"px")),i.style.width||(i.style.width="var(".concat(Je,")")),e.abrupt("return",{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}});case 9:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}function tt(e){var t=e.split("-");return{side:t[0],alignment:t[1]}}function ot(e){return e?"number"===typeof e||"object"===typeof e?e:function(t){var o=t.rects,n=o.floating,r=o.reference,i=function(e){var t=tt(e),o=t.side,n=t.alignment,r={top:"above",bottom:"below",right:"after",left:"before"}[o],i=n&&function(e){return"above"===e||"below"===e?{start:"start",end:"end"}:{start:"top",end:"bottom"}}(r)[n];return{position:r,alignment:i}}(t.placement),a=i.position,s=i.alignment;return e({positionedRect:n,targetRect:r,position:a,alignment:s})}:e}function nt(e){var t=ot(e);return De(t)}function rt(){return{name:"coverTarget",fn:function(e){var t=e.placement,o=e.rects,n={x:e.x,y:e.y};switch(tt(t).side){case"bottom":n.y-=o.reference.height;break;case"top":n.y+=o.reference.height;break;case"left":n.x+=o.reference.width;break;case"right":n.x-=o.reference.width}return n}}}function it(e){var t=e.hasScrollableElement,o=e.flipBoundary,n=e.container,i=e.fallbackPositions,a=void 0===i?[]:i,l=e.isRtl,c=a.reduce((function(e,t){var o=s(t),n=o.position,r=o.align,i=Ue(r,n,l);return i&&e.push(i),e}),[]);return Fe((0,r.A)((0,r.A)((0,r.A)({},t&&{boundary:"clippingAncestors"}),o&&{altBoundary:!0,boundary:Xe(n,o)}),{},{fallbackStrategy:"bestFit"},c.length&&{fallbackPlacements:c}))}function at(e){var t=e.hasScrollableElement,o=e.shiftToCoverTarget,n=e.disableTether,i=e.overflowBoundary,a=e.container,s=e.overflowBoundaryPadding,l=e.isRtl;return Ne((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},t&&{boundary:"clippingAncestors"}),o&&{crossAxis:!0,limiter:He({crossAxis:!0,mainAxis:!1})}),n&&{crossAxis:"all"===n,limiter:He({crossAxis:"all"!==n,mainAxis:!1})}),s&&{padding:Ze(s,l)}),i&&{altBoundary:!0,boundary:Xe(a,i)}))}function st(){return{name:"intersectionObserver",fn:function(){var e=(0,c.A)(f().mark((function e(t){var o,n,r,i,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.rects.floating,e.next=3,Re(t,{altBoundary:!0});case 3:return n=e.sent,r=n.top<o.height&&n.top>0,i=n.bottom<o.height&&n.bottom>0,a=r||i,e.abrupt("return",{data:{intersecting:a}});case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}}var lt=o(93651);var ct="data-popper-is-intersecting",ut="data-popper-escaped",dt="data-popper-reference-hidden",ft="fui-positioningend";function pt(e){for(var t=[],o=e;o;){var n=Ke(o);if(e.ownerDocument.body===n){t.push(n);break}if("BODY"===n.nodeName&&n!==e.ownerDocument.body){0;break}t.push(n),o=n}return t}function ht(e){var t=!1,o=e.container,n=e.target,i=e.arrow,a=e.strategy,s=e.middleware,l=e.placement,c=e.useTransform,u=void 0===c||c,d=e.disableUpdateOnResize,f=void 0!==d&&d,p=o.ownerDocument.defaultView;if(!n||!o||!p)return{updatePosition:function(){},dispose:function(){}};var h=f?null:function(e,t){return new e.ResizeObserver(t)}(p,(function(e){e.every((function(e){return e.contentRect.width>0&&e.contentRect.height>0}))&&b()})),m=!0,g=new Set;Object.assign(o.style,{position:"fixed",left:0,top:0,margin:0});var v=function(){t||(m&&(pt(o).forEach((function(e){return g.add(e)})),(0,lt.s)(n)&&pt(n).forEach((function(e){return g.add(e)})),g.forEach((function(e){e.addEventListener("scroll",b,{passive:!0})})),null===h||void 0===h||h.observe(o),(0,lt.s)(n)&&(null===h||void 0===h||h.observe(n)),m=!1),Object.assign(o.style,{position:a}),function(e,t,o){var n=new Map,i=(0,r.A)({platform:Pe},o),a=(0,r.A)((0,r.A)({},i.platform),{},{_c:n});return H(e,t,(0,r.A)((0,r.A)({},i),{},{platform:a}))}(n,o,{placement:l,middleware:s,strategy:a}).then((function(e){var n=e.x,r=e.y,s=e.middlewareData,l=e.placement;t||(!function(e){var t=e.arrow,o=e.middlewareData;if(o.arrow&&t){var n=o.arrow,r=n.x,i=n.y;Object.assign(t.style,{left:null!==r&&void 0!==r?"".concat(r,"px"):"",top:null!==i&&void 0!==i?"".concat(i,"px"):""})}}({arrow:i,middlewareData:s}),function(e){var t,o,n,r=e.container,i=e.placement,a=e.middlewareData,s=e.strategy,l=e.lowPPI,c=e.coordinates,u=e.useTransform,d=void 0===u||u;if(r){r.setAttribute("data-popper-placement",i),r.removeAttribute(ct),a.intersectionObserver.intersecting&&r.setAttribute(ct,""),r.removeAttribute(ut),(null===(t=a.hide)||void 0===t?void 0:t.escaped)&&r.setAttribute(ut,""),r.removeAttribute(dt),(null===(o=a.hide)||void 0===o?void 0:o.referenceHidden)&&r.setAttribute(dt,"");var f=(null===(n=r.ownerDocument.defaultView)||void 0===n?void 0:n.devicePixelRatio)||1,p=Math.round(c.x*f)/f,h=Math.round(c.y*f)/f;Object.assign(r.style,{position:s}),d?Object.assign(r.style,{transform:l?"translate(".concat(p,"px, ").concat(h,"px)"):"translate3d(".concat(p,"px, ").concat(h,"px, 0)")}):Object.assign(r.style,{left:"".concat(p,"px"),top:"".concat(h,"px")})}}({container:o,middlewareData:s,placement:l,coordinates:{x:n,y:r},lowPPI:((null===p||void 0===p?void 0:p.devicePixelRatio)||1)<=1,strategy:a,useTransform:u}),o.dispatchEvent(new CustomEvent(ft)))})).catch((function(e){0})))},b=function(e){var t;return function(){return t||(t=new Promise((function(o){Promise.resolve().then((function(){t=void 0,o(e())}))}))),t}}((function(){return v()}));return p&&(p.addEventListener("scroll",b,{passive:!0}),p.addEventListener("resize",b)),b(),{updatePosition:b,dispose:function(){t=!0,p&&(p.removeEventListener("scroll",b),p.removeEventListener("resize",b)),g.forEach((function(e){e.removeEventListener("scroll",b)})),g.clear(),null===h||void 0===h||h.disconnect()}}}function mt(e){var t=n.useRef(null),o=n.useRef(null),i=n.useRef(null),a=n.useRef(null),s=n.useRef(null),l=e.enabled,c=void 0===l||l,u=function(e){var t=e.align,o=e.arrowPadding,r=e.autoSize,i=e.coverTarget,a=e.flipBoundary,s=e.offset,l=e.overflowBoundary,c=e.pinned,u=e.position,d=e.unstable_disableTether,f=e.positionFixed,p=e.strategy,h=e.overflowBoundaryPadding,m=e.fallbackPositions,g=e.useTransform,v=e.matchTargetSize,b=e.disableUpdateOnResize,_=void 0!==b&&b,y=e.shiftToCoverTarget,x=(0,Le.Y)(),k=x.dir,w=x.targetDocument,C="rtl"===k,S=(null!==p&&void 0!==p?p:f)?"fixed":"absolute",B=function(e){switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}}(r);return n.useCallback((function(e,n){var r=function(e){var t,o=Ke(e);return!!o&&o!==(null===(t=o.ownerDocument)||void 0===t?void 0:t.body)}(e),f=[B&&Qe(B),v&&et(),s&&nt(s),i&&rt(),!c&&it({container:e,flipBoundary:a,hasScrollableElement:r,isRtl:C,fallbackPositions:m}),at({container:e,hasScrollableElement:r,overflowBoundary:l,disableTether:d,overflowBoundaryPadding:h,isRtl:C,shiftToCoverTarget:y}),B&&$e(B,{container:e,overflowBoundary:l,overflowBoundaryPadding:h,isRtl:C}),st(),n&&Oe({element:n,padding:o}),je({strategy:"referenceHidden"}),je({strategy:"escaped"}),!1].filter(Boolean);return{placement:Ue(t,u,C),middleware:f,strategy:S,useTransform:g,disableUpdateOnResize:_}}),[t,o,B,i,d,a,C,s,l,c,u,S,h,m,g,v,w,_])}(e),d=n.useCallback((function(){var e;t.current&&t.current.dispose(),t.current=null;var n=null!==(e=i.current)&&void 0!==e?e:o.current;c&&(0,qe.S)()&&n&&a.current&&(t.current=ht((0,r.A)({container:a.current,target:n,arrow:s.current},u(a.current,s.current))))}),[c,u]),f=(0,We.D)((function(e){i.current=e,d()}));n.useImperativeHandle(e.positioningRef,(function(){return{updatePosition:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.updatePosition()},setTarget:function(t){e.target,f(t)}}}),[e.target,f]),(0,Ve.E)((function(){var t;f(null!==(t=e.target)&&void 0!==t?t:null)}),[e.target,f]),(0,Ve.E)((function(){d()}),[d]);var p=Ge(null,(function(e){o.current!==e&&(o.current=e,d())})),h=(0,We.D)((function(){var t;return null===(t=e.onPositioningEnd)||void 0===t?void 0:t.call(e)})),m=Ge(null,(function(e){var t;a.current!==e&&(null===(t=a.current)||void 0===t||t.removeEventListener(ft,h),null===e||void 0===e||e.addEventListener(ft,h),a.current=e,d())})),g=Ge(null,(function(e){s.current!==e&&(s.current=e,d())}));return{targetRef:p,containerRef:m,arrowRef:g}}var gt=o(76235),vt=o(66297);function bt(){var e=function(){var e=(0,Le.Y)().targetDocument,t=n.useRef(null);return n.useEffect((function(){if(e){var o=(0,vt.SQ)(e.defaultView);return t.current=o,function(){(0,vt.bd)(o),t.current=null}}}),[e]),t}();return n.useCallback((function(){var t,o;return null!==(o=null===(t=e.current)||void 0===t?void 0:t.isNavigatingWithKeyboard())&&void 0!==o&&o}),[e])}var _t=o(54098),yt=o(64306),xt=o(79792),kt=o(48021),wt=o(85875),Ct=o(56104),St=o(58238);function Bt(e){return Boolean(e.type.isFluentTriggerComponent)}function It(e){return n.isValidElement(e)?Bt(e)?It(e.props.children):e:null}function Et(e,t){return"function"===typeof e?e(t):e?zt(e,t):e||null}function zt(e,t){if(!n.isValidElement(e)||e.type===n.Fragment)throw new Error("A trigger element must be a single element for this component. Please ensure that you're not using React Fragments.");if(Bt(e)){var o=zt(e.props.children,t);return n.cloneElement(e,void 0,o)}return n.cloneElement(e,t)}var Tt=o(23038),At=function(e){var t,o,a,c,u,d,f=(0,gt.n)(),p=(0,_t.wR)(),h=(0,Le.Y)().targetDocument,m=(0,yt.Z)(),g=(0,i.A)(m,2),v=g[0],b=g[1],_=e.appearance,y=void 0===_?"normal":_,x=e.children,k=e.content,w=e.withArrow,C=void 0!==w&&w,S=e.positioning,B=void 0===S?"above":S,I=e.onVisibleChange,E=e.relationship,z=e.showDelay,T=void 0===z?250:z,A=e.hideDelay,P=void 0===A?250:A,R=e.mountNode,D=(0,xt.i)({state:e.visible,initialState:!1}),N=(0,i.A)(D,2),F=N[0],M=N[1],j=n.useCallback((function(e,t){b(),M((function(o){return t.visible!==o&&(null===I||void 0===I||I(e,t)),t.visible}))}),[b,M,I]),O={withArrow:C,positioning:B,showDelay:T,hideDelay:P,relationship:E,visible:F,shouldRenderTooltip:F,appearance:y,mountNode:R,components:{content:"div"},content:kt.Gk(k,{defaultProps:{role:"tooltip"},elementType:"div"})};O.content.id=(0,wt.Bi)("tooltip-",O.content.id);var H=(0,r.A)({enabled:O.visible,arrowPadding:8,position:"above",align:"center",offset:4},s(O.positioning));O.withArrow&&(H.offset=function(e,t){return"number"===typeof e||"object"===typeof e&&null!==e?l(e,t):"function"===typeof e?function(o){var n=e(o);return l(n,t)}:{mainAxis:t}}(H.offset,6));var L=mt(H),q=L.targetRef,W=L.containerRef,V=L.arrowRef;O.content.ref=(0,Ct.a)(O.content.ref,W),O.arrowRef=V,(0,Ve.E)((function(){if(F){var e,t={hide:function(e){return j(void 0,{visible:!1,documentKeyboardEvent:e})}};null===(e=f.visibleTooltip)||void 0===e||e.hide(),f.visibleTooltip=t;var o=function(e){e.key!==Tt.uf9||e.defaultPrevented||(t.hide(e),e.preventDefault())};return null===h||void 0===h||h.addEventListener("keydown",o,{capture:!0}),function(){f.visibleTooltip===t&&(f.visibleTooltip=void 0),null===h||void 0===h||h.removeEventListener("keydown",o,{capture:!0})}}}),[f,h,F,j]);var G=n.useRef(!1),K=n.useCallback((function(e){if("focus"===e.type&&G.current)G.current=!1;else{var t=f.visibleTooltip?0:O.showDelay;v((function(){j(e,{visible:!0})}),t),e.persist()}}),[v,j,O.showDelay,f]),U=bt(),X=n.useState((function(){var e=function(e){var t;(null===(t=e.detail)||void 0===t?void 0:t.isFocusedProgrammatically)&&!U()&&(G.current=!0)},t=null;return function(o){null===t||void 0===t||t.removeEventListener(vt.Oy,e),null===o||void 0===o||o.addEventListener(vt.Oy,e),t=o}})),Y=(0,i.A)(X,1)[0],Z=n.useCallback((function(e){var t=O.hideDelay;"blur"===e.type&&(t=0,G.current=(null===h||void 0===h?void 0:h.activeElement)===e.target),v((function(){j(e,{visible:!1})}),t),e.persist()}),[v,j,O.hideDelay,h]);O.content.onPointerEnter=(0,St.p)(O.content.onPointerEnter,b),O.content.onPointerLeave=(0,St.p)(O.content.onPointerLeave,Z),O.content.onFocus=(0,St.p)(O.content.onFocus,b),O.content.onBlur=(0,St.p)(O.content.onBlur,Z);var Q=It(x),$={},J="menu"===(null===Q||void 0===Q||null===(t=Q.props)||void 0===t?void 0:t["aria-haspopup"])&&(null===Q||void 0===Q||null===(o=Q.props)||void 0===o?void 0:o["aria-expanded"]);return"label"===E?"string"===typeof O.content.children?$["aria-label"]=O.content.children:($["aria-labelledby"]=O.content.id,O.shouldRenderTooltip=!0):"description"===E&&($["aria-describedby"]=O.content.id,O.shouldRenderTooltip=!0),(p||J)&&(O.shouldRenderTooltip=!1),O.children=Et(x,(0,r.A)((0,r.A)((0,r.A)({},$),null===Q||void 0===Q?void 0:Q.props),{},{ref:(0,Ct.a)(null===Q||void 0===Q?void 0:Q.ref,Y,void 0===H.target?q:void 0),onPointerEnter:(0,We.D)((0,St.p)(null===Q||void 0===Q||null===(a=Q.props)||void 0===a?void 0:a.onPointerEnter,K)),onPointerLeave:(0,We.D)((0,St.p)(null===Q||void 0===Q||null===(c=Q.props)||void 0===c?void 0:c.onPointerLeave,Z)),onFocus:(0,We.D)((0,St.p)(null===Q||void 0===Q||null===(u=Q.props)||void 0===u?void 0:u.onFocus,K)),onBlur:(0,We.D)((0,St.p)(null===Q||void 0===Q||null===(d=Q.props)||void 0===d?void 0:d.onBlur,Z))})),O},Pt=o(70979);function Rt(e,t){if(e){var o=e;o._virtual||(o._virtual={}),o._virtual.parent=t}}var Dt=n.createContext(void 0);Dt.Provider;var Nt=o(92393),Ft=o(59921),Mt=o(63759);var jt=o(25027),Ot=(0,jt.X)({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),Ht=n.useInsertionEffect,Lt=function(e){var t=(0,Le.Y)(),o=t.targetDocument,r=t.dir,a=n.useContext(Dt),s=(0,Mt.Y)(),l=Ot(),c=(0,Nt.q)(),d=(0,Ft.z)(c,l.root,e.className),f=null!==a&&void 0!==a?a:null===o||void 0===o?void 0:o.body,p=function(e,t){var o,r=n.useMemo,a=n.useEffect,s=null!=(o=r((function(){return e()}),t))?o:[null,function(){return null}],l=(0,i.A)(s,2),c=l[0],u=l[1];return a((function(){return u}),t),c}((function(){if(void 0===f||e.disabled)return[null,function(){return null}];var t=f.ownerDocument.createElement("div");return f.appendChild(t),[t,function(){return t.remove()}]}),[f]);return Ht?Ht((function(){var e;if(p){var t=d.split(" ").filter(Boolean);return(e=p.classList).add.apply(e,(0,u.A)(t)),p.setAttribute("dir",r),p.setAttribute("data-portal-node","true"),s.current=p,function(){var e;(e=p.classList).remove.apply(e,(0,u.A)(t)),p.removeAttribute("dir")}}}),[d,r,p,s]):n.useMemo((function(){p&&(p.className=d,p.setAttribute("dir",r),p.setAttribute("data-portal-node","true"),s.current=p)}),[d,r,p,s]),p},qt=function(e){var t=function(e){return(0,lt.s)(e)?{element:e}:"object"===typeof e?null===e?{element:null}:e:{}}(e.mountNode),o=t.element,r=t.className,i=n.useRef(null),a=Lt({disabled:!!o,className:r}),s=null!==o&&void 0!==o?o:a,l={children:e.children,mountNode:s,virtualParentRootRef:i};return n.useEffect((function(){if(s){var e=i.current,t=s.contains(e);return e&&!t?(Rt(s,e),function(){Rt(s,void 0)}):void 0}}),[i,s]),l},Wt=o(94786),Vt=function(e){return function(e){return n.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&Wt.createPortal(e.children,e.mountNode))}(qt(e))};Vt.displayName="Portal";var Gt=o(634),Kt=o(11577),Ut="fui-Tooltip__content",Xt=(0,jt.X)({root:{mc9l5x:"fjseox",B7ck84d:"f1ewtqcl",B2u0y6b:"f132xexn",Bceei9c:"f158kwzp",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm",Btd35i7:"fokg9q4",Beyfa6y:0,Bbmb7ep:0,Btl43ni:0,B7oj6ja:0,Dimara:"ft85np5",Bgfg5da:0,B9xav0g:0,oivjwe:0,Bn0qgzm:0,B4g9neb:0,zhjwy3:0,wvpqe5:0,ibv6hh:0,u1mtju:0,h3c5rm:0,vrafjx:0,Bekrc4i:0,i8vvqc:0,g2u3we:0,icvyot:0,B4j52fo:0,irswps:"f9ggezi",Byoj8tv:0,uwmqm3:0,z189sj:0,z8tnut:0,B0ocmuz:"f1bzqsji",De3pzq:"fxugw4r",sj55zd:"f19n0e5",Bhu2qc9:"fxeb0a7"},visible:{mc9l5x:"ftgm304"},inverted:{De3pzq:"fg3r6xk",sj55zd:"fonrgv7"},arrow:{B7ck84d:"f1ewtqcl",qhf8xq:"f1euv43f",Bj3rh1h:"f1bsuimh",rhnwrx:"f1s3jn22",Bdy53xb:"fv40uqz",De3pzq:"f1u2r49w",B2eet1l:"fqhgnl",Beyfa6y:"f17bz04i",Bz10aip:"f36o3x3",Bqenvij:"fzofk8q",a9b677:"f1wbx1ie",Ftih45:"f1wl9k8s",Br0sdwz:"f1aocrix",cmx5o7:"f1ljr5q2",susq4k:0,Biibvgv:0,Bicfajf:0,qehafq:0,Brs5u8j:"f155f1qt",Ccq8qp:"f9mhzq7",Baz25je:"fr6rhvx",Bcgcnre:0,Bqjgrrk:0,qa3bma:0,y0oebl:0,Biqmznv:0,Bm6vgfq:0,Bbv0w2i:0,uvfttm:0,eqrjj:0,Bk5zm6e:0,m598lv:0,B4f6apu:0,ydt019:0,Bq4z7u6:0,Bdkvgpv:0,B0qfbqy:0,kj8mxx:"f1kc0wz4",r59vdv:"fgq90dz",Bkw5xw4:"fq0y47f",hl6cv3:"f1pwrbz6",aea9ga:"f1hxxcvm",yayu3t:"fw8rgyo",Bhsv975:"f1wnzycx",rhl9o9:"f1730wal",B7gxrvb:"f1fy4ixr",B6q6orb:"fobkauc",B0lu1f8:"f16bqv1l"}},{d:[".fjseox{display:none;}",".f1ewtqcl{box-sizing:border-box;}",".f132xexn{max-width:240px;}",".f158kwzp{cursor:default;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fokg9q4{overflow-wrap:break-word;}",[".ft85np5{border-radius:var(--borderRadiusMedium);}",{p:-1}],[".f9ggezi{border:1px solid var(--colorTransparentStroke);}",{p:-2}],[".f1bzqsji{padding:4px 11px 6px 11px;}",{p:-1}],".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fxeb0a7{filter:drop-shadow(0 0 2px var(--colorNeutralShadowAmbient)) drop-shadow(0 4px 8px var(--colorNeutralShadowKey));}",".ftgm304{display:block;}",".fg3r6xk{background-color:var(--colorNeutralBackgroundStatic);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1euv43f{position:absolute;}",".f1bsuimh{z-index:-1;}",".f1s3jn22{--fui-positioning-arrow-height:8.484px;}",".fv40uqz{--fui-positioning-arrow-offset:-4.242px;}",".f1u2r49w{background-color:inherit;}",".fqhgnl{background-clip:content-box;}",".f17bz04i{border-bottom-left-radius:var(--borderRadiusSmall);}",".f36o3x3{transform:rotate(var(--fui-positioning-arrow-angle));}",".fzofk8q{height:var(--fui-positioning-arrow-height);}",".f1wbx1ie{width:var(--fui-positioning-arrow-height);}",'.f1wl9k8s::before{content:"";}',".f1aocrix::before{display:block;}",".f1ljr5q2::before{background-color:inherit;}",[".f155f1qt::before{margin:-1px;}",{p:-1}],".f9mhzq7::before{width:100%;}",".fr6rhvx::before{height:100%;}",[".f1kc0wz4::before{border:1px solid var(--colorTransparentStroke);}",{p:-2}],".fgq90dz::before{border-bottom-left-radius:var(--borderRadiusSmall);}",".fq0y47f::before{clip-path:polygon(0% 0%, 100% 100%, 0% 100%);}",'[data-popper-placement^="top"] .f1pwrbz6{bottom:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="top"] .f1hxxcvm{--fui-positioning-arrow-angle:-45deg;}','[data-popper-placement^="right"] .fw8rgyo{left:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="right"] .f1wnzycx{--fui-positioning-arrow-angle:45deg;}','[data-popper-placement^="bottom"] .f1730wal{top:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="bottom"] .f1fy4ixr{--fui-positioning-arrow-angle:135deg;}','[data-popper-placement^="left"] .fobkauc{right:var(--fui-positioning-arrow-offset);}','[data-popper-placement^="left"] .f16bqv1l{--fui-positioning-arrow-angle:225deg;}']}),Yt=function(e){var t=At(e);return function(e){var t=Xt();e.content.className=(0,Ft.z)(Ut,t.root,"inverted"===e.appearance&&t.inverted,e.visible&&t.visible,e.content.className),e.arrowClassName=t.arrow}(t),(0,Kt.$e)("useTooltipStyles_unstable")(t),function(e){return(0,Gt.C)(e),(0,Pt.FD)(n.Fragment,{children:[e.children,e.shouldRenderTooltip&&(0,Pt.Y)(Vt,{mountNode:e.mountNode,children:(0,Pt.FD)(e.content,{children:[e.withArrow&&(0,Pt.Y)("div",{ref:e.arrowRef,className:e.arrowClassName}),e.content.children]})})]})}(t)};Yt.displayName="Tooltip",Yt.isFluentTriggerComponent=!0},79792:function(e,t,o){"use strict";o.d(t,{i:function(){return i}});var n=o(61249),r=o(80322);var i=function(e){var t=r.useState((function(){return void 0===e.defaultState?e.initialState:"function"===typeof e.defaultState?e.defaultState():e.defaultState})),o=(0,n.A)(t,2),i=o[0],s=o[1],l=r.useRef(e.state);r.useEffect((function(){l.current=e.state}),[e.state]);var c=r.useCallback((function(e){(function(e){return"function"===typeof e})(e)&&e(l.current)}),[]);return a(e.state)?[e.state,c]:[i,s]};var a=function(e){var t=r.useState((function(){return void 0!==e}));return(0,n.A)(t,1)[0]}},62427:function(e,t,o){"use strict";o.d(t,{D:function(){return i}});var n=o(80322),r=o(79924),i=function(e){var t=n.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return(0,r.E)((function(){t.current=e}),[e]),n.useCallback((function(){var e=t.current;return e.apply(void 0,arguments)}),[t])}},64306:function(e,t,o){"use strict";o.d(t,{Z:function(){return s}});var n=o(80322);var r=o(11277),i=function(e){return-1},a=function(e){};function s(){var e=(0,r.Y)().targetDocument,t=null===e||void 0===e?void 0:e.defaultView;return function(e,t){var o=n.useRef(void 0),r=n.useCallback((function(n,r){return void 0!==o.current&&t(o.current),o.current=e(n,r),o.current}),[t,e]),i=n.useCallback((function(){void 0!==o.current&&(t(o.current),o.current=void 0)}),[t]);return n.useEffect((function(){return i}),[i]),[r,i]}(t?t.setTimeout:i,t?t.clearTimeout:a)}},58238:function(e,t,o){"use strict";function n(e,t){return function(){null===e||void 0===e||e.apply(void 0,arguments),null===t||void 0===t||t.apply(void 0,arguments)}}o.d(t,{p:function(){return n}})},18725:function(e,t,o){"use strict";o.d(t,{e:function(){return f}});var n=o(75425),r=o(84867),i=o(80322),a=o(26858),s=o(33347),l=o(47770),c=(0,a.Z)(),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.message,o=e.styles,n=e.as,a=void 0===n?"div":n,u=e.className,d=c(o,{className:u});return i.createElement(a,(0,r.__assign)({role:"status",className:d.root},(0,s.G1)(this.props,s.JM,["className"])),i.createElement(l.P,null,i.createElement("div",{className:d.screenReaderText},t)))},t.defaultProps={"aria-live":"polite"},t}(i.Component),d=o(7354),f=(0,n.I)(u,(function(e){return{root:e.className,screenReaderText:d.dX}}))},51225:function(e,t,o){"use strict";o.d(t,{r:function(){return p}});var n=o(84867),r=o(80322),i=o(61652),a=o(54121),s=o(81708),l=o(3676),c=o(16114),u=o(33347),d=o(20403),f="backward",p=function(e){function t(t){var o=e.call(this,t)||this;return o._inputElement=r.createRef(),o._autoFillEnabled=!0,o._onCompositionStart=function(e){o.setState({isComposing:!0}),o._autoFillEnabled=!1},o._onCompositionUpdate=function(){(0,i.l)()&&o._updateValue(o._getCurrentInputValue(),!0)},o._onCompositionEnd=function(e){var t=o._getCurrentInputValue();o._tryEnableAutofill(t,o.value,!1,!0),o.setState({isComposing:!1}),o._async.setTimeout((function(){o._updateValue(o._getCurrentInputValue(),!1)}),0)},o._onClick=function(){o.value&&""!==o.value&&o._autoFillEnabled&&(o._autoFillEnabled=!1)},o._onKeyDown=function(e){if(o.props.onKeyDown&&o.props.onKeyDown(e),!e.nativeEvent.isComposing)switch(e.which){case a.c.backspace:o._autoFillEnabled=!1;break;case a.c.left:case a.c.right:o._autoFillEnabled&&(o.setState((function(e){return{inputValue:o.props.suggestedDisplayValue||e.inputValue}})),o._autoFillEnabled=!1);break;default:o._autoFillEnabled||-1!==o.props.enableAutofillOnKeyPress.indexOf(e.which)&&(o._autoFillEnabled=!0)}},o._onInputChanged=function(e){var t=o._getCurrentInputValue(e);if(o.state.isComposing||o._tryEnableAutofill(t,o.value,e.nativeEvent.isComposing),!(0,i.l)()||!o.state.isComposing){var n=e.nativeEvent.isComposing,r=void 0===n?o.state.isComposing:n;o._updateValue(t,r)}},o._onChanged=function(){},o._updateValue=function(e,t){if(e||e!==o.value){var n=o.props,r=n.onInputChange,i=n.onInputValueChange;r&&(e=(null===r||void 0===r?void 0:r(e,t))||""),o.setState({inputValue:e},(function(){return null===i||void 0===i?void 0:i(e,t)}))}},(0,s.f)(o),o._async=new l.j(o),o.state={inputValue:t.defaultVisibleValue||"",isComposing:!1},o}return(0,n.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){if(e.updateValueInWillReceiveProps){var o=e.updateValueInWillReceiveProps();if(null!==o&&o!==t.inputValue&&!t.isComposing)return(0,n.__assign)((0,n.__assign)({},t),{inputValue:o})}return null},Object.defineProperty(t.prototype,"cursorLocation",{get:function(){if(this._inputElement.current){var e=this._inputElement.current;return"forward"!==e.selectionDirection?e.selectionEnd:e.selectionStart}return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueSelected",{get:function(){return Boolean(this.inputElement&&this.inputElement.selectionStart!==this.inputElement.selectionEnd)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._getControlledValue()||this.state.inputValue||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._inputElement.current?this._inputElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._inputElement.current?this._inputElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputElement",{get:function(){return this._inputElement.current},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t,o){var n,r=this.props,i=r.suggestedDisplayValue,a=r.shouldSelectFullInputValueInComponentDidUpdate,s=0;if(!r.preventValueSelection){var l=(null===(n=this.context)||void 0===n?void 0:n.window.document)||(0,c.Y)(this._inputElement.current);if(this._inputElement.current&&this._inputElement.current===(null===l||void 0===l?void 0:l.activeElement)&&this._autoFillEnabled&&this.value&&i&&h(i,this.value)){var u=!1;if(a&&(u=a()),u)this._inputElement.current.setSelectionRange(0,i.length,f);else{for(;s<this.value.length&&this.value[s].toLocaleLowerCase()===i[s].toLocaleLowerCase();)s++;s>0&&this._inputElement.current.setSelectionRange(s,i.length,f)}}else this._inputElement.current&&(null===o||this._autoFillEnabled||this.state.isComposing||this._inputElement.current.setSelectionRange(o.start,o.end,o.dir))}},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=(0,u.G1)(this.props,u.QQ),t=(0,n.__assign)((0,n.__assign)({},this.props.style),{fontFamily:"inherit"});return r.createElement("input",(0,n.__assign)({autoCapitalize:"off",autoComplete:"off","aria-autocomplete":"both"},e,{style:t,ref:this._inputElement,value:this._getDisplayValue(),onCompositionStart:this._onCompositionStart,onCompositionUpdate:this._onCompositionUpdate,onCompositionEnd:this._onCompositionEnd,onChange:this._onChanged,onInput:this._onInputChanged,onKeyDown:this._onKeyDown,onClick:this.props.onClick?this.props.onClick:this._onClick,"data-lpignore":!0}))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.clear=function(){this._autoFillEnabled=!0,this._updateValue("",!1),this._inputElement.current&&this._inputElement.current.setSelectionRange(0,0)},t.prototype.getSnapshotBeforeUpdate=function(){var e,t,o=this._inputElement.current;return o&&o.selectionStart!==this.value.length?{start:null!==(e=o.selectionStart)&&void 0!==e?e:o.value.length,end:null!==(t=o.selectionEnd)&&void 0!==t?t:o.value.length,dir:o.selectionDirection||"backward"}:null},t.prototype._getCurrentInputValue=function(e){return e&&e.target&&e.target.value?e.target.value:this.inputElement&&this.inputElement.value?this.inputElement.value:""},t.prototype._tryEnableAutofill=function(e,t,o,n){!o&&e&&this._inputElement.current&&this._inputElement.current.selectionStart===e.length&&!this._autoFillEnabled&&(e.length>t.length||n)&&(this._autoFillEnabled=!0)},t.prototype._getDisplayValue=function(){return this._autoFillEnabled?function(e,t){var o=e;t&&e&&h(t,o)&&(o=t);return o}(this.value,this.props.suggestedDisplayValue):this.value},t.prototype._getControlledValue=function(){var e=this.props.value;return void 0===e||"string"===typeof e?e:(console.warn("props.value of Autofill should be a string, but it is ".concat(e," with type of ").concat(typeof e)),e.toString())},t.defaultProps={enableAutofillOnKeyPress:[a.c.down,a.c.up]},t.contextType=d._0,t}(r.Component);function h(e,t){return!(!e||!t)&&0===e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())}},57839:function(e,t,o){"use strict";o.d(t,{Q:function(){return A}});var n=o(75425),r=o(84867),i=o(80322),a=o(26858),s=o(16758),l=o(33347),c=o(81708),u=o(84218),d=o(90973),f=o(87841),p=o(12300),h=o(47751),m=o(20852),g=o(29589),v=o(84496),b=o(33042),_=o(32133),y=(0,a.Z)(),x=function(){return null},k={styles:function(e){return{root:{selectors:{"&.is-disabled":{color:e.theme.semanticColors.bodyText}}}}}},w=function(e){function t(t){var o=e.call(this,t)||this;return o._focusZone=i.createRef(),o._onReduceData=function(e){var t=e.renderedItems,o=e.renderedOverflowItems,n=e.props.overflowIndex,i=t[n];if(i)return(t=(0,r.__spreadArray)([],t,!0)).splice(n,1),o=(0,r.__spreadArray)((0,r.__spreadArray)([],o,!0),[i],!1),(0,r.__assign)((0,r.__assign)({},e),{renderedItems:t,renderedOverflowItems:o})},o._onGrowData=function(e){var t=e.renderedItems,o=e.renderedOverflowItems,n=e.props,i=n.overflowIndex,a=n.maxDisplayedItems,s=(o=(0,r.__spreadArray)([],o,!0)).pop();if(s&&!(t.length>=a))return(t=(0,r.__spreadArray)([],t,!0)).splice(i,0,s),(0,r.__assign)((0,r.__assign)({},e),{renderedItems:t,renderedOverflowItems:o})},o._onRenderBreadcrumb=function(e){var t=e.props,n=t.ariaLabel,a=t.dividerAs,c=void 0===a?p.I:a,f=t.onRenderItem,g=t.overflowAriaLabel,v=t.overflowIndex,b=t.onRenderOverflowIcon,y=t.overflowButtonAs,w=e.renderedOverflowItems,C=e.renderedItems,S=w.map((function(e){var t=!(!e.onClick&&!e.href);return{text:e.text,name:e.text,key:e.key,onClick:e.onClick?o._onBreadcrumbClicked.bind(o,e):null,href:e.href,disabled:!t,itemProps:t?void 0:k}})),B=C.length-1,I=w&&0!==w.length,E=C.map((function(e,t){var n=o._onRenderItem;return e.onRender&&(n=(0,_.j)(e.onRender,n)),f&&(n=(0,_.j)(f,n)),i.createElement("li",{className:o._classNames.listItem,key:e.key||String(t)},n(e),(t!==B||I&&t===v-1)&&i.createElement(c,{className:o._classNames.chevron,iconName:(0,s.jI)(o.props.theme)?"ChevronLeft":"ChevronRight",item:e}))}));if(I){var z=b?{}:{iconName:"More"},T=b||x,A=y||h.K;E.splice(v,0,i.createElement("li",{className:o._classNames.overflow,key:"overflow"},i.createElement(A,{className:o._classNames.overflowButton,iconProps:z,role:"button","aria-haspopup":"true",ariaLabel:g,onRenderMenuIcon:T,menuProps:{items:S,directionalHint:m.A.bottomLeftEdge}}),v!==B+1&&i.createElement(c,{className:o._classNames.chevron,iconName:(0,s.jI)(o.props.theme)?"ChevronLeft":"ChevronRight",item:w[w.length-1]})))}var P=(0,l.G1)(o.props,l.vt,["className"]);return i.createElement("div",(0,r.__assign)({className:o._classNames.root,role:"navigation","aria-label":n},P),i.createElement(u.R,(0,r.__assign)({componentRef:o._focusZone,direction:d.E.horizontal},o.props.focusZoneProps),i.createElement("ol",{className:o._classNames.list},E)))},o._onRenderItem=function(e){if(!e)return null;var t=e.as,n=e.href,a=e.onClick,s=e.isCurrentItem,l=e.text,c=e.onRenderContent,u=(0,r.__rest)(e,["as","href","onClick","isCurrentItem","text","onRenderContent"]),d=C;if(c&&(d=(0,_.j)(c,d)),o.props.onRenderItemContent&&(d=(0,_.j)(o.props.onRenderItemContent,d)),a||n)return i.createElement(f.N,(0,r.__assign)({},u,{as:t,className:o._classNames.itemLink,href:n,"aria-current":s?"page":void 0,onClick:o._onBreadcrumbClicked.bind(o,e)}),i.createElement(v.S,(0,r.__assign)({content:l,overflowMode:b.$.Parent},o.props.tooltipHostProps),d(e)));var p=t||"span";return i.createElement(p,(0,r.__assign)({},u,{className:o._classNames.item}),i.createElement(v.S,(0,r.__assign)({content:l,overflowMode:b.$.Parent},o.props.tooltipHostProps),d(e)))},o._onBreadcrumbClicked=function(e,t){e.onClick&&e.onClick(t,e)},(0,c.f)(o),o._validateProps(t),o}return(0,r.__extends)(t,e),t.prototype.focus=function(){this._focusZone.current&&this._focusZone.current.focus()},t.prototype.render=function(){this._validateProps(this.props);var e=this.props,t=e.onReduceData,o=void 0===t?this._onReduceData:t,n=e.onGrowData,a=void 0===n?this._onGrowData:n,s=e.overflowIndex,l=e.maxDisplayedItems,c=e.items,u=e.className,d=e.theme,f=e.styles,p=(0,r.__spreadArray)([],c,!0),h=p.splice(s,p.length-l),m={props:this.props,renderedItems:p,renderedOverflowItems:h};return this._classNames=y(f,{className:u,theme:d}),i.createElement(g.A,{onRenderData:this._onRenderBreadcrumb,onReduceData:o,onGrowData:a,data:m})},t.prototype._validateProps=function(e){var t=e.maxDisplayedItems,o=e.overflowIndex,n=e.items;if(o<0||t>1&&o>t-1||n.length>0&&o>n.length-1)throw new Error("Breadcrumb: overflowIndex out of range")},t.defaultProps={items:[],maxDisplayedItems:999,overflowIndex:0},t}(i.Component);function C(e){return e?i.createElement(i.Fragment,null,e.text):null}var S=o(7354),B=o(40950),I={root:"ms-Breadcrumb",list:"ms-Breadcrumb-list",listItem:"ms-Breadcrumb-listItem",chevron:"ms-Breadcrumb-chevron",overflow:"ms-Breadcrumb-overflow",overflowButton:"ms-Breadcrumb-overflowButton",itemLink:"ms-Breadcrumb-itemLink",item:"ms-Breadcrumb-item"},E={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},z=(0,S.L6)(0,S.iD),T=(0,S.L6)(S.O7,S.mm),A=(0,n.I)(w,(function(e){var t,o,n,i,a,s=e.className,l=e.theme,c=l.palette,u=l.semanticColors,d=l.fonts,f=(0,S.Km)(I,l),p=u.menuItemBackgroundHovered,h=u.menuItemBackgroundPressed,m=c.neutralSecondary,g=S.BO.regular,v=c.neutralPrimary,b=c.neutralPrimary,_=S.BO.semibold,y=c.neutralSecondary,x=c.neutralSecondary,k={fontWeight:_,color:b},w={":hover":{color:v,backgroundColor:p,cursor:"pointer",selectors:(t={},t[S.up]={color:"Highlight",backgroundColor:"transparent"},t)},":active":{backgroundColor:h,color:v},"&:active:hover":{color:v,backgroundColor:h},"&:active, &:hover, &:active:hover":{textDecoration:"none"}},C={color:m,padding:"0 8px",lineHeight:36,fontSize:18,fontWeight:g};return{root:[f.root,d.medium,{margin:"11px 0 1px"},s],list:[f.list,{whiteSpace:"nowrap",padding:0,margin:0,display:"flex",alignItems:"stretch"}],listItem:[f.listItem,{listStyleType:"none",margin:"0",padding:"0",display:"flex",position:"relative",alignItems:"center",selectors:{"&:last-child .ms-Breadcrumb-itemLink":(0,r.__assign)((0,r.__assign)({},k),(o={},o[S.up]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},o)),"&:last-child .ms-Breadcrumb-item":k}}],chevron:[f.chevron,{color:y,fontSize:d.small.fontSize,selectors:(n={},n[S.up]=(0,r.__assign)({color:"WindowText"},(0,S.Qg)()),n[T]={fontSize:8},n[z]={fontSize:8},n)}],overflow:[f.overflow,{position:"relative",display:"flex",alignItems:"center"}],overflowButton:[f.overflowButton,(0,S.gm)(l,{highContrastStyle:{left:1,right:1,top:1,bottom:1}}),E,{fontSize:16,color:x,height:"100%",cursor:"pointer",selectors:(0,r.__assign)((0,r.__assign)({},w),(i={},i[z]={padding:"4px 6px"},i[T]={fontSize:d.mediumPlus.fontSize},i))}],itemLink:[f.itemLink,(0,S.gm)(l),E,(0,r.__assign)((0,r.__assign)({},C),{selectors:(0,r.__assign)((a={":focus":{color:c.neutralDark}},a[".".concat(B.Y2," &:focus")]={outline:"none"},a),w)})],item:[f.item,(0,r.__assign)((0,r.__assign)({},C),{selectors:{":hover":{cursor:"default"}}})]}}),void 0,{scope:"Breadcrumb"})},78754:function(e,t,o){"use strict";o.d(t,{$:function(){return x}});var n,r,i=o(84867),a=o(80322),s=o(56205);!function(e){e[e.button=0]="button",e[e.anchor=1]="anchor"}(n||(n={})),function(e){e[e.normal=0]="normal",e[e.primary=1]="primary",e[e.hero=2]="hero",e[e.compound=3]="compound",e[e.command=4]="command",e[e.icon=5]="icon",e[e.default=6]="default"}(r||(r={}));var l=o(93258),c=o(77557),u=o(8174),d=o(8492),f=o(7354),p=o(65808),h=o(33530),m=o(97440),g=o(43867),v=(0,p.J9)((function(e,t,o){var n,r,a,s,l,c=e.fonts,u=e.palette,d=(0,h.$)(e),p=(0,m.$)(e),v={root:{maxWidth:"280px",minHeight:"72px",height:"auto",padding:"16px 12px"},flexContainer:{flexDirection:"row",alignItems:"flex-start",minWidth:"100%",margin:""},textContainer:{textAlign:"left"},icon:{fontSize:"2em",lineHeight:"1em",height:"1em",margin:"0px 8px 0px 0px",flexBasis:"1em",flexShrink:"0"},label:{margin:"0 0 5px",lineHeight:"100%",fontWeight:f.BO.semibold},description:[c.small,{lineHeight:"100%"}]},b={description:{color:u.neutralSecondary},descriptionHovered:{color:u.neutralDark},descriptionPressed:{color:"inherit"},descriptionChecked:{color:"inherit"},descriptionDisabled:{color:"inherit"}},_={description:{color:u.white,selectors:(n={},n[f.up]=(0,i.__assign)({backgroundColor:"WindowText",color:"Window"},(0,f.Qg)()),n)},descriptionHovered:{color:u.white,selectors:(r={},r[f.up]={backgroundColor:"Highlight",color:"Window"},r)},descriptionPressed:{color:"inherit",selectors:(a={},a[f.up]=(0,i.__assign)({color:"Window",backgroundColor:"WindowText"},(0,f.Qg)()),a)},descriptionChecked:{color:"inherit",selectors:(s={},s[f.up]=(0,i.__assign)({color:"Window",backgroundColor:"WindowText"},(0,f.Qg)()),s)},descriptionDisabled:{color:"inherit",selectors:(l={},l[f.up]={color:"inherit"},l)}};return(0,f.TW)(d,v,o?(0,g.p)(e):(0,g.y)(e),o?_:b,p,t)})),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,o=void 0!==t&&t,n=e.styles,r=e.theme;return a.createElement(u.S,(0,i.__assign)({},this.props,{variantClassName:o?"ms-Button--compoundPrimary":"ms-Button--compound",styles:v(r,n,o)}))},t=(0,i.__decorate)([(0,d.T)("CompoundButton",["theme","styles"],!0)],t)}(a.Component),_=o(47751),y=o(29178),x=function(e){function t(t){var o=e.call(this,t)||this;return(0,s.R)("The Button component has been deprecated. Use specific variants instead. (PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"),o}return(0,i.__extends)(t,e),t.prototype.render=function(){var e=this.props;switch(e.buttonType){case r.command:return a.createElement(c.r,(0,i.__assign)({},e));case r.compound:return a.createElement(b,(0,i.__assign)({},e));case r.icon:return a.createElement(_.K,(0,i.__assign)({},e));case r.primary:return a.createElement(y.j,(0,i.__assign)({},e));default:return a.createElement(l.Y,(0,i.__assign)({},e))}},t}(a.Component)},95167:function(e,t,o){"use strict";o.d(t,{J:function(){return u}});var n=o(75425),r=o(80322),i=o(35566),a=o(12300),s=(0,o(26858).Z)(),l=r.forwardRef((function(e,t){var o=e.checked,n=void 0!==o&&o,l=e.className,c=e.theme,u=e.styles,d=e.useFastIcons,f=void 0===d||d,p=s(u,{theme:c,className:l,checked:n}),h=f?i.l8:a.I;return r.createElement("div",{className:p.root,ref:t},r.createElement(h,{iconName:"CircleRing",className:p.circle}),r.createElement(h,{iconName:"StatusCircleCheckmark",className:p.check}))}));l.displayName="CheckBase";var c=o(59575),u=(0,n.I)(l,c.$,void 0,{scope:"Check"},!0)},59575:function(e,t,o){"use strict";o.d(t,{$:function(){return s},Y:function(){return a}});var n=o(84867),r=o(7354),i=o(16758),a={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},s=function(e){var t,o,s,l,c,u=e.height,d=void 0===u?e.checkBoxHeight||"18px":u,f=e.checked,p=e.className,h=e.theme,m=h.palette,g=h.semanticColors,v=h.fonts,b=(0,i.jI)(h),_=(0,r.Km)(a,h),y={fontSize:d,position:"absolute",left:0,top:0,width:d,height:d,textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"};return{root:[_.root,v.medium,{lineHeight:"1",width:d,height:d,verticalAlign:"top",position:"relative",userSelect:"none",selectors:(t={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:g.bodyBackground}},t[".".concat(_.checkHost,":hover &, .").concat(_.checkHost,":focus &, &:hover, &:focus")]={opacity:1},t)},f&&["is-checked",{selectors:{":before":{background:m.themePrimary,opacity:1,selectors:(o={},o[r.up]={background:"Window"},o)}}}],p],circle:[_.circle,y,{color:m.neutralSecondary,selectors:(s={},s[r.up]={color:"WindowText"},s)},f&&{color:m.white}],check:[_.check,y,{opacity:0,color:m.neutralSecondary,fontSize:r.fF.medium,left:b?"-0.5px":".5px",top:"-1px",selectors:(l={":hover":{opacity:1}},l[r.up]=(0,n.__assign)({},(0,r.Qg)()),l)},f&&{opacity:1,color:m.white,fontWeight:900,selectors:(c={},c[r.up]={border:"none",color:"WindowText"},c)}],checkHost:_.checkHost}}},33566:function(e,t,o){"use strict";o.d(t,{F:function(){return ce}});var n,r,i,a,s=o(84867),l=o(80322),c=o(51225),u=o(5141),d=o(48038),f=o(67471),p=o(67223),h=o(43822),m=o(16711),g=o(54121),v=o(84022),b=o(60478),_=o(81708),y=o(3676),x=o(76929),k=o(90288),w=o(50453),C=o(33347),S=o(8492),B=o(93177),I=o(43639),E=o(20852),z=o(6589),T=o(7354),A=o(65808),P=(0,A.J9)((function(e){var t,o=e.semanticColors;return{backgroundColor:o.disabledBackground,color:o.disabledText,cursor:"default",selectors:(t={":after":{borderColor:o.disabledBackground}},t[T.up]={color:"GrayText",selectors:{":after":{borderColor:"GrayText"}}},t)}})),R={selectors:(n={},n[T.up]=(0,s.__assign)({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},(0,T.Qg)()),n)},D={selectors:(r={},r[T.up]=(0,s.__assign)({color:"WindowText",backgroundColor:"Window"},(0,T.Qg)()),r)},N=(0,A.J9)((function(e,t,o,n,r,i){var a,l=e.palette,c=e.semanticColors,u={textHoveredColor:c.menuItemTextHovered,textSelectedColor:l.neutralDark,textDisabledColor:c.disabledText,backgroundHoveredColor:c.menuItemBackgroundHovered,backgroundPressedColor:c.menuItemBackgroundPressed},d={root:[e.fonts.medium,{backgroundColor:n?u.backgroundHoveredColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:r?"none":"block",width:"100%",height:"auto",minHeight:36,lineHeight:"20px",padding:"0 8px",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",selectors:(0,s.__assign)((0,s.__assign)((a={},a[T.up]={border:"none",borderColor:"Background"},a),!r&&{"&.ms-Checkbox":{display:"flex",alignItems:"center"}}),{"&.ms-Button--command:hover:active":{backgroundColor:u.backgroundPressedColor},".ms-Checkbox-label":{width:"100%"}})},i?[{backgroundColor:"transparent",color:u.textSelectedColor,selectors:{":hover":[{backgroundColor:u.backgroundHoveredColor},R]}},(0,T.gm)(e,{inset:-1,isFocusedOnly:!1}),R]:[]],rootHovered:{backgroundColor:u.backgroundHoveredColor,color:u.textHoveredColor},rootFocused:{backgroundColor:u.backgroundHoveredColor},rootDisabled:{color:u.textDisabledColor,cursor:"default"},optionText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:"0px",maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",display:"inline-block"},optionTextWrapper:{maxWidth:"100%",display:"flex",alignItems:"center"}};return(0,T.TW)(d,t,o)})),F=(0,A.J9)((function(e,t){var o,n,r=e.semanticColors,i=e.fonts,a={buttonTextColor:r.bodySubtext,buttonTextHoveredCheckedColor:r.buttonTextChecked,buttonBackgroundHoveredColor:r.listItemBackgroundHovered,buttonBackgroundCheckedColor:r.listItemBackgroundChecked,buttonBackgroundCheckedHoveredColor:r.listItemBackgroundCheckedHovered},l={selectors:(o={},o[T.up]=(0,s.__assign)({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},(0,T.Qg)()),o)},c={root:{color:a.buttonTextColor,fontSize:i.small.fontSize,position:"absolute",top:0,height:"100%",lineHeight:30,width:32,textAlign:"center",cursor:"default",selectors:(n={},n[T.up]=(0,s.__assign)({backgroundColor:"ButtonFace",borderColor:"ButtonText",color:"ButtonText"},(0,T.Qg)()),n)},icon:{fontSize:i.small.fontSize},rootHovered:[{backgroundColor:a.buttonBackgroundHoveredColor,color:a.buttonTextHoveredCheckedColor,cursor:"pointer"},l],rootPressed:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},l],rootChecked:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},l],rootCheckedHovered:[{backgroundColor:a.buttonBackgroundCheckedHoveredColor,color:a.buttonTextHoveredCheckedColor},l],rootDisabled:[P(e),{position:"absolute"}]};return(0,T.TW)(c,t)})),M=(0,A.J9)((function(e,t,o){var n,r,i,a,l,c,u=e.semanticColors,d=e.fonts,f=e.effects,p={textColor:u.inputText,borderColor:u.inputBorder,borderHoveredColor:u.inputBorderHovered,borderPressedColor:u.inputFocusBorderAlt,borderFocusedColor:u.inputFocusBorderAlt,backgroundColor:u.inputBackground,erroredColor:u.errorText},h={headerTextColor:u.menuHeader,dividerBorderColor:u.bodyDivider},m={selectors:(n={},n[T.up]={color:"GrayText"},n)},g=[{color:u.inputPlaceholderText},m],v=[{color:u.inputTextHovered},m],b=[{color:u.disabledText},m],_=(0,s.__assign)((0,s.__assign)({color:"HighlightText",backgroundColor:"Window"},(0,T.Qg)()),{selectors:{":after":{borderColor:"Highlight"}}}),y=(0,T.Sq)(p.borderPressedColor,f.roundedCorner2,"border",0),x={container:{},label:{},labelDisabled:{},root:[e.fonts.medium,{boxShadow:"none",marginLeft:"0",paddingRight:32,paddingLeft:9,color:p.textColor,position:"relative",outline:"0",userSelect:"none",backgroundColor:p.backgroundColor,cursor:"text",display:"block",height:32,whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",selectors:{".ms-Label":{display:"inline-block",marginBottom:"8px"},"&.is-open":{selectors:(r={},r[T.up]=_,r)},":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:p.borderColor,borderRadius:f.roundedCorner2}}}],rootHovered:{selectors:(i={":after":{borderColor:p.borderHoveredColor},".ms-ComboBox-Input":[{color:u.inputTextHovered},(0,T.CX)(v),D]},i[T.up]=(0,s.__assign)((0,s.__assign)({color:"HighlightText",backgroundColor:"Window"},(0,T.Qg)()),{selectors:{":after":{borderColor:"Highlight"}}}),i)},rootPressed:[{position:"relative",selectors:(a={},a[T.up]=_,a)}],rootFocused:[{selectors:(l={".ms-ComboBox-Input":[{color:u.inputTextHovered},D]},l[T.up]=_,l)},y],rootDisabled:P(e),rootError:{selectors:{":after":{borderColor:p.erroredColor},":hover:after":{borderColor:u.inputBorderHovered}}},rootDisallowFreeForm:{},input:[(0,T.CX)(g),{backgroundColor:p.backgroundColor,color:p.textColor,boxSizing:"border-box",width:"100%",height:"100%",borderStyle:"none",outline:"none",font:"inherit",textOverflow:"ellipsis",padding:"0",selectors:{"::-ms-clear":{display:"none"}}},D],inputDisabled:[P(e),(0,T.CX)(b)],errorMessage:[e.fonts.small,{color:p.erroredColor,marginTop:"5px"}],callout:{boxShadow:f.elevation8},optionsContainerWrapper:{width:o},optionsContainer:{display:"block"},screenReaderText:T.dX,header:[d.medium,{fontWeight:T.BO.semibold,color:h.headerTextColor,backgroundColor:"none",borderStyle:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(c={},c[T.up]=(0,s.__assign)({color:"GrayText"},(0,T.Qg)()),c)}],divider:{height:1,backgroundColor:h.dividerBorderColor}};return(0,T.TW)(x,t)})),j=(0,A.J9)((function(e,t,o,n,r,i,a,s){return{container:(0,T.Zq)("ms-ComboBox-container",t,e.container),label:(0,T.Zq)(e.label,n&&e.labelDisabled),root:(0,T.Zq)("ms-ComboBox",s?e.rootError:o&&"is-open",r&&"is-required",e.root,!a&&e.rootDisallowFreeForm,s&&!i?e.rootError:!n&&i&&e.rootFocused,!n&&{selectors:{":hover":s?e.rootError:!o&&!i&&e.rootHovered,":active":s?e.rootError:e.rootPressed,":focus":s?e.rootError:e.rootFocused}},n&&["is-disabled",e.rootDisabled]),input:(0,T.Zq)("ms-ComboBox-Input",e.input,n&&e.inputDisabled),errorMessage:(0,T.Zq)(e.errorMessage),callout:(0,T.Zq)("ms-ComboBox-callout",e.callout),optionsContainerWrapper:(0,T.Zq)("ms-ComboBox-optionsContainerWrapper",e.optionsContainerWrapper),optionsContainer:(0,T.Zq)("ms-ComboBox-optionsContainer",e.optionsContainer),header:(0,T.Zq)("ms-ComboBox-header",e.header),divider:(0,T.Zq)("ms-ComboBox-divider",e.divider),screenReaderText:(0,T.Zq)(e.screenReaderText)}})),O=(0,A.J9)((function(e){return{optionText:(0,T.Zq)("ms-ComboBox-optionText",e.optionText),root:(0,T.Zq)("ms-ComboBox-option",e.root,{selectors:{":hover":e.rootHovered,":focus":e.rootFocused,":active":e.rootPressed}}),optionTextWrapper:(0,T.Zq)(e.optionTextWrapper)}})),H=o(42682),L=o(3564),q=o(91083),W=o(47751),V=o(27630),G=o(51667),K=o(7080);!function(e){e[e.backward=-1]="backward",e[e.none=0]="none",e[e.forward=1]="forward"}(i||(i={})),function(e){e[e.clearAll=-2]="clearAll",e[e.default=-1]="default"}(a||(a={}));var U=l.memo((function(e){return(0,e.render)()}),(function(e,t){e.render;var o=(0,s.__rest)(e,["render"]),n=(t.render,(0,s.__rest)(t,["render"]));return(0,u.ab)(o,n)})),X="ComboBox",Y={options:[],allowFreeform:!1,autoComplete:"on",buttonIconProps:{iconName:"ChevronDown"}};function Z(e){var t=e.options,o=e.defaultSelectedKey,n=e.selectedKey,r=l.useState((function(){return ee(t,function(e,t){var o=te(e);if(o.length)return o;return te(t)}(o,n))})),i=r[0],a=r[1],s=l.useState(t),c=s[0],u=s[1],d=l.useState(),f=d[0],p=d[1];return l.useEffect((function(){if(void 0!==n){var e=te(n),o=ee(t,e);a(o)}u(t)}),[t,n]),l.useEffect((function(){null===n&&p(void 0)}),[n]),[i,a,c,u,f,p]}var Q=l.forwardRef((function(e,t){var o=(0,d.N)(Y,e),n=(o.ref,(0,s.__rest)(o,["ref"])),r=l.useRef(null),i=(0,G.a)(r,t),a=Z(n),c=a[0],u=a[1],f=a[2],p=a[3],h=a[4],m=a[5];return l.createElement(J,(0,s.__assign)({},n,{hoisted:{mergedRootRef:i,rootRef:r,selectedIndices:c,setSelectedIndices:u,currentOptions:f,setCurrentOptions:p,suggestedDisplayValue:h,setSuggestedDisplayValue:m}}))}));function $(e,t){for(var o=function(e,t){void 0===t&&(t=!0);var o=[];if(e){for(var n=0;n<e.children.length;n++)o.push(e.children.item(n));t&&(0,K.q)(e)&&o.push.apply(o,e._virtual.children)}return o}(e),n=0;n<o.length;n++){var r=o[n];if(t(r))return r;var i=$(r,t);if(i)return i}return null}Q.displayName=X;var J=function(e){function t(t){var o=e.call(this,t)||this;return o._autofill=l.createRef(),o._comboBoxWrapper=l.createRef(),o._comboBoxMenu=l.createRef(),o._selectedElement=l.createRef(),o._overrideScrollDismiss=!1,o.focus=function(e,t){o.props.disabled||(o._autofill.current&&(t?(0,f.lo)(o._autofill.current):o._autofill.current.focus(),e&&o.setState({isOpen:!0})),o._hasFocus()||o.setState({focusState:"focused"}))},o.dismissMenu=function(){o.state.isOpen&&o.setState({isOpen:!1})},o._onUpdateValueInAutofillWillReceiveProps=function(){var e=o._autofill.current;return e?null===e.value||void 0===e.value?null:oe(o._currentVisibleValue):null},o._renderComboBoxWrapper=function(e,t){var n=o.props,r=n.label,i=n.disabled,a=n.ariaLabel,u=n.ariaDescribedBy,d=void 0===u?o.props["aria-describedby"]:u,f=n.required,h=n.errorMessage,m=n.buttonIconProps,g=n.isButtonAriaHidden,v=n.title,b=n.placeholder,_=n.tabIndex,y=n.autofill,x=n.iconButtonProps,k=n.hoisted.suggestedDisplayValue,w=o.state,C=w.ariaActiveDescendantValue,S=w.isOpen,B=o._hasFocus()&&o.props.multiSelect&&e?e:b,I=[o.props["aria-labelledby"],r&&o._id+"-label"].join(" ").trim(),E={"aria-labelledby":I||void 0,"aria-label":a&&!r?a:void 0};return l.createElement("div",{"data-ktp-target":!0,ref:o._comboBoxWrapper,id:o._id+"wrapper",className:o._classNames.root,"aria-owns":S?o._id+"-list":void 0},l.createElement(c.r,(0,s.__assign)({"data-ktp-execute-target":!0,"data-is-interactable":!i,componentRef:o._autofill,id:o._id+"-input",className:o._classNames.input,type:"text",onFocus:o._onFocus,onBlur:o._onBlur,onKeyDown:o._onInputKeyDown,onKeyUp:o._onInputKeyUp,onClick:o._onAutofillClick,onTouchStart:o._onTouchStart,onInputValueChange:o._onInputChange,"aria-expanded":S,"aria-autocomplete":o._getAriaAutoCompleteValue(),role:"combobox",readOnly:i},E,{"aria-describedby":void 0!==h?(0,p._)(d,t):d,"aria-activedescendant":C,"aria-required":f,"aria-disabled":i,"aria-controls":S?o._id+"-list":void 0,spellCheck:!1,defaultVisibleValue:o._currentVisibleValue,suggestedDisplayValue:k,updateValueInWillReceiveProps:o._onUpdateValueInAutofillWillReceiveProps,shouldSelectFullInputValueInComponentDidUpdate:o._onShouldSelectFullInputValueInAutofillComponentDidUpdate,title:v,preventValueSelection:!o._hasFocus(),placeholder:B,tabIndex:i?-1:_},y)),l.createElement(W.K,(0,s.__assign)({className:"ms-ComboBox-CaretDown-button",styles:o._getCaretButtonStyles(),role:g?"presentation":void 0,"aria-hidden":g},g?void 0:E,{"data-is-focusable":!1,tabIndex:-1,onClick:o._onComboBoxClick,onBlur:o._onBlur,iconProps:m,disabled:i,checked:S},x)))},o._onShouldSelectFullInputValueInAutofillComponentDidUpdate=function(){return o._currentVisibleValue===o.props.hoisted.suggestedDisplayValue},o._getVisibleValue=function(){var e=o.props,t=e.text,n=e.allowFreeform,r=e.allowFreeInput,i=e.autoComplete,a=e.hoisted,s=a.suggestedDisplayValue,l=a.selectedIndices,c=a.currentOptions,u=o.state,d=u.currentPendingValueValidIndex,f=u.currentPendingValue,p=u.isOpen,h=ne(c,d);if((!p||!h)&&(t||""===t)&&(null===f||void 0===f))return t;if(o.props.multiSelect){if(o._hasFocus()){var m=-1;return"on"===i&&h&&(m=d),o._getPendingString(f,c,m)}return o._getMultiselectDisplayString(l,c,s)}m=o._getFirstSelectedIndex();return n||r?("on"===i&&h&&(m=d),o._getPendingString(f,c,m)):h&&"on"===i?(m=d,oe(f)):!o.state.isOpen&&f?ne(c,m)?f:oe(s):ne(c,m)?ae(c[m]):oe(s)},o._onInputChange=function(e){o.props.disabled?o._handleInputWhenDisabled(null):(o.props.onInputValueChange&&o.props.onInputValueChange(e),o.props.allowFreeform||o.props.allowFreeInput?o._processInputChangeWithFreeform(e):o._processInputChangeWithoutFreeform(e))},o._onFocus=function(){var e,t;null===(t=null===(e=o._autofill.current)||void 0===e?void 0:e.inputElement)||void 0===t||t.select(),o._hasFocus()||o.setState({focusState:"focusing"})},o._onResolveOptions=function(){if(o.props.onResolveOptions){var e=o.props.onResolveOptions((0,s.__spreadArray)([],o.props.hoisted.currentOptions,!0));Array.isArray(e)?o.props.hoisted.setCurrentOptions(e):e&&e.then&&(o._currentPromise=e,e.then((function(t){e===o._currentPromise&&o.props.hoisted.setCurrentOptions(t)})))}},o._onBlur=function(e){var t,n,r=e.relatedTarget;if(null===e.relatedTarget&&(r=document.activeElement),r){var i=null===(t=o.props.hoisted.rootRef.current)||void 0===t?void 0:t.contains(r),a=null===(n=o._comboBoxMenu.current)||void 0===n?void 0:n.contains(r),s=o._comboBoxMenu.current&&(0,h.w)(o._comboBoxMenu.current,(function(e){return e===r}));if(i||a||s)return s&&o._hasFocus()&&(!o.props.multiSelect||o.props.allowFreeform)&&o._submitPendingValue(e),e.preventDefault(),void e.stopPropagation()}o._hasFocus()&&(o.setState({focusState:"none"}),o.props.multiSelect&&!o.props.allowFreeform||o._submitPendingValue(e))},o._onRenderContainer=function(e,t){var n=e.onRenderList,r=e.calloutProps,i=e.dropdownWidth,a=e.dropdownMaxWidth,c=e.onRenderUpperContent,u=void 0===c?o._onRenderUpperContent:c,d=e.onRenderLowerContent,f=void 0===d?o._onRenderLowerContent:d,p=e.useComboBoxAsMenuWidth,h=e.persistMenu,g=e.shouldRestoreFocus,v=void 0===g||g,b=o.state.isOpen,_=o._id,y=p&&o._comboBoxWrapper.current?o._comboBoxWrapper.current.clientWidth+2:void 0;return l.createElement(I.P,(0,s.__assign)({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHint:E.A.bottomLeftEdge,directionalHintFixed:!1},r,{onLayerMounted:o._onLayerMounted,className:(0,m.A)(o._classNames.callout,null===r||void 0===r?void 0:r.className),target:o._comboBoxWrapper.current,onDismiss:o._onDismiss,onMouseDown:o._onCalloutMouseDown,onScroll:o._onScroll,setInitialFocus:!1,calloutWidth:p&&o._comboBoxWrapper.current?y&&y:i,calloutMaxWidth:a||y,hidden:h?!b:void 0,shouldRestoreFocus:v,preventDismissOnEvent:function(e){return o._preventDismissOnScrollOrResize(e)}}),u(o.props,o._onRenderUpperContent),l.createElement("div",{className:o._classNames.optionsContainerWrapper,ref:o._comboBoxMenu},null===n||void 0===n?void 0:n((0,s.__assign)((0,s.__assign)({},e),{id:_}),o._onRenderList)),f(o.props,o._onRenderLowerContent))},o._onLayerMounted=function(){o._onCalloutLayerMounted(),o._async.setTimeout((function(){o._scrollIntoView()}),0),o.props.calloutProps&&o.props.calloutProps.onLayerMounted&&o.props.calloutProps.onLayerMounted()},o._onRenderLabel=function(e){var t=e.props,n=t.label,r=t.disabled,i=t.required;return n?l.createElement(H.J,{id:o._id+"-label",disabled:r,required:i,className:o._classNames.label},n,e.multiselectAccessibleText&&l.createElement("span",{className:o._classNames.screenReaderText},e.multiselectAccessibleText)):null},o._onRenderList=function(e){var t=e.onRenderItem,n=void 0===t?o._onRenderItem:t,r=e.label,i=e.ariaLabel,a=e.multiSelect,c={items:[]},u=[],d=function(){var e=c.id?[l.createElement("div",{role:"group",key:c.id,"aria-labelledby":c.id},c.items)]:c.items;u=(0,s.__spreadArray)((0,s.__spreadArray)([],u,!0),e,!0),c={items:[]}};e.options.forEach((function(e,t){!function(e,t){switch(e.itemType){case L.W.Header:c.items.length>0&&d();var r=o._id+e.key;c.items.push(n((0,s.__assign)((0,s.__assign)({id:r},e),{index:t}),o._onRenderItem)),c.id=r;break;case L.W.Divider:t>0&&c.items.push(n((0,s.__assign)((0,s.__assign)({},e),{index:t}),o._onRenderItem)),c.items.length>0&&d();break;default:c.items.push(n((0,s.__assign)((0,s.__assign)({},e),{index:t}),o._onRenderItem))}}(e,t)})),c.items.length>0&&d();var f=o._id;return l.createElement("div",{id:f+"-list",className:o._classNames.optionsContainer,"aria-labelledby":r&&f+"-label","aria-label":i&&!r?i:void 0,"aria-multiselectable":a?"true":void 0,role:"listbox"},u)},o._onRenderItem=function(e){switch(e.itemType){case L.W.Divider:return o._renderSeparator(e);case L.W.Header:return o._renderHeader(e);default:return o._renderOption(e)}},o._onRenderLowerContent=function(){return null},o._onRenderUpperContent=function(){return null},o._renderOption=function(e){var t,n=o.props.onRenderOption,r=void 0===n?o._onRenderOptionContent:n,i=null!==(t=e.id)&&void 0!==t?t:o._id+"-list"+e.index,a=o._isOptionSelected(e.index),c=o._isOptionChecked(e.index),u=o._isOptionIndeterminate(e.index),d=o._getCurrentOptionStyles(e),f=O(o._getCurrentOptionStyles(e)),p=e.title;return l.createElement(U,{key:e.key,index:e.index,disabled:e.disabled,isSelected:a,isChecked:c,isIndeterminate:u,text:e.text,render:function(){return o.props.multiSelect?l.createElement(z.S,{id:i,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:i+"-label",key:e.key,styles:d,className:"ms-ComboBox-option",onChange:o._onItemClick(e),label:e.text,checked:c,indeterminate:u,title:p,disabled:e.disabled,onRenderLabel:o._renderCheckboxLabel.bind(o,(0,s.__assign)((0,s.__assign)({},e),{id:i+"-label"})),inputProps:(0,s.__assign)({"aria-selected":c?"true":"false",role:"option"},{"data-index":e.index,"data-is-focusable":!0})}):l.createElement(V.c,{id:i,key:e.key,"data-index":e.index,styles:d,checked:a,className:"ms-ComboBox-option",onClick:o._onItemClick(e),onMouseEnter:o._onOptionMouseEnter.bind(o,e.index),onMouseMove:o._onOptionMouseMove.bind(o,e.index),onMouseLeave:o._onOptionMouseLeave,role:"option","aria-selected":a?"true":"false",ariaLabel:e.ariaLabel,disabled:e.disabled,title:p},l.createElement("span",{className:f.optionTextWrapper,ref:a?o._selectedElement:void 0},r(e,o._onRenderOptionContent)))},data:e.data})},o._onCalloutMouseDown=function(e){e.preventDefault()},o._onScroll=function(){var e;o._isScrollIdle||void 0===o._scrollIdleTimeoutId?o._isScrollIdle=!1:(o._async.clearTimeout(o._scrollIdleTimeoutId),o._scrollIdleTimeoutId=void 0),(null===(e=o.props.calloutProps)||void 0===e?void 0:e.onScroll)&&o.props.calloutProps.onScroll(),o._scrollIdleTimeoutId=o._async.setTimeout((function(){o._isScrollIdle=!0}),250)},o._onRenderOptionContent=function(e){var t=O(o._getCurrentOptionStyles(e));return l.createElement("span",{className:t.optionText},e.text)},o._onRenderMultiselectOptionContent=function(e){var t=O(o._getCurrentOptionStyles(e));return l.createElement("span",{id:e.id,"aria-hidden":"true",className:t.optionText},e.text)},o._onDismiss=function(){var e=o.props.onMenuDismiss;e&&e(),o.props.persistMenu&&o._onCalloutLayerMounted(),o._setOpenStateAndFocusOnClose(!1,!1),o._resetSelectedIndex()},o._onAfterClearPendingInfo=function(){o._processingClearPendingInfo=!1},o._onInputKeyDown=function(e){var t=o.props,n=t.disabled,r=t.allowFreeform,s=t.allowFreeInput,l=t.autoComplete,c=t.hoisted.currentOptions,u=o.state,d=u.isOpen,f=u.currentPendingValueValidIndexOnHover;if(o._lastKeyDownWasAltOrMeta=se(e),n)o._handleInputWhenDisabled(e);else{var p=o._getPendingSelectedIndex(!1);switch(e.which){case g.c.enter:o._autofill.current&&o._autofill.current.inputElement&&o._autofill.current.inputElement.select(),o._submitPendingValue(e),o.props.multiSelect&&d?o.setState({currentPendingValueValidIndex:p}):(d||(!r||void 0===o.state.currentPendingValue||null===o.state.currentPendingValue||o.state.currentPendingValue.length<=0)&&o.state.currentPendingValueValidIndex<0)&&o.setState({isOpen:!d});break;case g.c.tab:return o.props.multiSelect||o._submitPendingValue(e),void(d&&o._setOpenStateAndFocusOnClose(!d,!1));case g.c.escape:if(o._resetSelectedIndex(),!d)return;o.setState({isOpen:!1});break;case g.c.up:if(f===a.clearAll&&(p=o.props.hoisted.currentOptions.length),e.altKey||e.metaKey){if(d){o._setOpenStateAndFocusOnClose(!d,!0);break}return}e.preventDefault(),o._setPendingInfoFromIndexAndDirection(p,i.backward);break;case g.c.down:e.altKey||e.metaKey?o._setOpenStateAndFocusOnClose(!0,!0):(f===a.clearAll&&(p=-1),e.preventDefault(),o._setPendingInfoFromIndexAndDirection(p,i.forward));break;case g.c.home:case g.c.end:if(r||s)return;p=-1;var h=i.forward;e.which===g.c.end&&(p=c.length,h=i.backward),o._setPendingInfoFromIndexAndDirection(p,h);break;case g.c.space:if(!r&&!s&&"off"===l)break;default:if(e.which>=112&&e.which<=123)return;if(e.keyCode===g.c.alt||"Meta"===e.key)return;if(!r&&!s&&"on"===l){o._onInputChange(e.key);break}return}e.stopPropagation(),e.preventDefault()}},o._onInputKeyUp=function(e){var t=o.props,n=t.disabled,r=t.allowFreeform,i=t.allowFreeInput,a=t.autoComplete,s=o.state.isOpen,l=o._lastKeyDownWasAltOrMeta&&se(e);o._lastKeyDownWasAltOrMeta=!1;var c=l&&!((0,v.c)()||(0,b.u)());n?o._handleInputWhenDisabled(e):e.which!==g.c.space?c&&s?o._setOpenStateAndFocusOnClose(!s,!0):("focusing"===o.state.focusState&&o.props.openOnKeyboardFocus&&o.setState({isOpen:!0}),"focused"!==o.state.focusState&&o.setState({focusState:"focused"})):r||i||"off"!==a||o._setOpenStateAndFocusOnClose(!s,!!s)},o._onOptionMouseLeave=function(){o._shouldIgnoreMouseEvent()||o.props.persistMenu&&!o.state.isOpen||o.setState({currentPendingValueValidIndexOnHover:a.clearAll})},o._onComboBoxClick=function(){var e=o.props.disabled,t=o.state.isOpen;e||(o._setOpenStateAndFocusOnClose(!t,!1),o.setState({focusState:"focused"}))},o._onAutofillClick=function(){var e=o.props,t=e.disabled;e.allowFreeform&&!t?o.focus(o.state.isOpen||o._processingTouch):o._onComboBoxClick()},o._onTouchStart=function(){o._comboBoxWrapper.current&&!("onpointerdown"in o._comboBoxWrapper)&&o._handleTouchAndPointerEvent()},o._onPointerDown=function(e){"touch"===e.pointerType&&(o._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},(0,_.f)(o),o._async=new y.j(o),o._events=new x.g(o),(0,k.Y)(X,t,{defaultSelectedKey:"selectedKey",text:"defaultSelectedKey",selectedKey:"value",dropdownWidth:"useComboBoxAsMenuWidth",ariaLabel:"label"}),o._id=t.id||(0,w.O)("ComboBox"),o._isScrollIdle=!0,o._processingTouch=!1,o._gotMouseMove=!1,o._processingClearPendingInfo=!1,o.state={isOpen:!1,focusState:"none",currentPendingValueValidIndex:-1,currentPendingValue:void 0,currentPendingValueValidIndexOnHover:a.default},o}return(0,s.__extends)(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props.hoisted,t=e.currentOptions,o=e.selectedIndices;return(0,q.D)(t,o)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._comboBoxWrapper.current&&!this.props.disabled&&(this._events.on(this._comboBoxWrapper.current,"focus",this._onResolveOptions,!0),"onpointerdown"in this._comboBoxWrapper.current&&this._events.on(this._comboBoxWrapper.current,"pointerdown",this._onPointerDown,!0))},t.prototype.componentDidUpdate=function(e,t){var o,n,r,i=this,a=this.props,l=a.allowFreeform,c=a.allowFreeInput,d=a.text,f=a.onMenuOpen,p=a.onMenuDismissed,h=a.hoisted,m=h.currentOptions,g=h.selectedIndices,v=this.state,b=v.currentPendingValue,_=v.currentPendingValueValidIndex,y=v.isOpen;!y||t.isOpen&&t.currentPendingValueValidIndex===_||this._async.setTimeout((function(){return i._scrollIntoView()}),0),this._hasFocus()&&(y||t.isOpen&&!y&&this._focusInputAfterClose&&this._autofill.current&&document.activeElement!==this._autofill.current.inputElement)&&this.focus(void 0,!0),this._focusInputAfterClose&&(t.isOpen&&!y||this._hasFocus()&&(!y&&!this.props.multiSelect&&e.hoisted.selectedIndices&&g&&e.hoisted.selectedIndices[0]!==g[0]||!l&&!c||d!==e.text))&&this._onFocus(),this._notifyPendingValueChanged(t),y&&!t.isOpen&&(this._overrideScrollDismiss=!0,this._async.clearTimeout(this._overrideScrollDimissTimeout),this._overrideScrollDimissTimeout=this._async.setTimeout((function(){i._overrideScrollDismiss=!1}),100),null===f||void 0===f||f()),!y&&t.isOpen&&p&&p();var x=_,k=m.map((function(e,t){return(0,s.__assign)((0,s.__assign)({},e),{index:t})}));!(0,u.ab)(e.hoisted.currentOptions,m)&&b&&(x=this.props.allowFreeform||this.props.allowFreeInput?this._processInputChangeWithFreeform(b):this._updateAutocompleteIndexWithoutFreeform(b));var w=void 0;y&&this._hasFocus()&&-1!==x?w=null!==(o=k[x].id)&&void 0!==o?o:this._id+"-list"+x:y&&g.length&&(w=null!==(r=null===(n=k[g[0]])||void 0===n?void 0:n.id)&&void 0!==r?r:this._id+"-list"+g[0]),w!==this.state.ariaActiveDescendantValue&&this.setState({ariaActiveDescendantValue:w})},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this._id+"-error",t=this.props,o=t.className,n=t.disabled,r=t.required,i=t.errorMessage,a=t.onRenderContainer,c=void 0===a?this._onRenderContainer:a,u=t.onRenderLabel,d=void 0===u?this._onRenderLabel:u,f=t.onRenderList,p=void 0===f?this._onRenderList:f,h=t.onRenderItem,m=void 0===h?this._onRenderItem:h,g=t.onRenderOption,v=void 0===g?this._onRenderOptionContent:g,b=t.allowFreeform,_=t.styles,y=t.theme,x=t.persistMenu,k=t.multiSelect,w=t.hoisted,S=w.suggestedDisplayValue,B=w.selectedIndices,I=w.currentOptions,E=this.state.isOpen;this._currentVisibleValue=this._getVisibleValue();var z=k?this._getMultiselectDisplayString(B,I,S):void 0,T=(0,C.G1)(this.props,C.JM,["onChange","value","aria-describedby","aria-labelledby"]),A=!!(i&&i.length>0);this._classNames=this.props.getClassNames?this.props.getClassNames(y,!!E,!!n,!!r,!!this._hasFocus(),!!b,!!A,o):j(M(y,_),o,!!E,!!n,!!r,!!this._hasFocus(),!!b,!!A);var P=this._renderComboBoxWrapper(z,e);return l.createElement("div",(0,s.__assign)({},T,{ref:this.props.hoisted.mergedRootRef,className:this._classNames.container}),d({props:this.props,multiselectAccessibleText:z},this._onRenderLabel),P,(x||E)&&c((0,s.__assign)((0,s.__assign)({},this.props),{onRenderList:p,onRenderItem:m,onRenderOption:v,options:I.map((function(e,t){return(0,s.__assign)((0,s.__assign)({},e),{index:t})})),onDismiss:this._onDismiss}),this._onRenderContainer),A&&l.createElement("div",{role:"alert",id:e,className:this._classNames.errorMessage},i))},t.prototype._getPendingString=function(e,t,o){return null!==e&&void 0!==e?e:ne(t,o)?ae(t[o]):""},t.prototype._getMultiselectDisplayString=function(e,t,o){for(var n=[],r=0;e&&r<e.length;r++){var i=e[r];t[i].itemType!==L.W.SelectAll&&n.push(ne(t,i)?t[i].text:oe(o))}var a=this.props.multiSelectDelimiter,s=void 0===a?", ":a;return n.join(s)},t.prototype._preventDismissOnScrollOrResize=function(e){return!(!this._overrideScrollDismiss||"scroll"!==e.type&&"resize"!==e.type)},t.prototype._processInputChangeWithFreeform=function(e){var t=this.props.hoisted.currentOptions,o=-1;if(""===e)return 1===(r=t.map((function(e,t){return(0,s.__assign)((0,s.__assign)({},e),{index:t})})).filter((function(t){return re(t)&&!t.disabled&&ae(t)===e}))).length&&(o=r[0].index),this._setPendingInfo(e,o,e),o;var n=e;e=e.toLocaleLowerCase();var r,i="";if("on"===this.props.autoComplete){if((r=t.map((function(e,t){return(0,s.__assign)((0,s.__assign)({},e),{index:t})})).filter((function(t){return re(t)&&!t.disabled&&0===ae(t).toLocaleLowerCase().indexOf(e)}))).length>0){var a=ae(r[0]);i=a.toLocaleLowerCase()!==e?a:"",o=r[0].index}}else 1===(r=t.map((function(e,t){return(0,s.__assign)((0,s.__assign)({},e),{index:t})})).filter((function(t){return re(t)&&!t.disabled&&ae(t).toLocaleLowerCase()===e}))).length&&(o=r[0].index);return this._setPendingInfo(n,o,i),o},t.prototype._processInputChangeWithoutFreeform=function(e){var t=this,o=this.state,n=o.currentPendingValue,r=o.currentPendingValueValidIndex;if("on"===this.props.autoComplete&&""!==e){this._autoCompleteTimeout&&(this._async.clearTimeout(this._autoCompleteTimeout),this._autoCompleteTimeout=void 0,e=oe(n)+e);var i=this._updateAutocompleteIndexWithoutFreeform(e);return this._autoCompleteTimeout=this._async.setTimeout((function(){t._autoCompleteTimeout=void 0}),1e3),i}var a=r>=0?r:this._getFirstSelectedIndex();return this._setPendingInfoFromIndex(a),a},t.prototype._updateAutocompleteIndexWithoutFreeform=function(e){var t=this.props.hoisted.currentOptions,o=e;e=e.toLocaleLowerCase();var n=t.map((function(e,t){return(0,s.__assign)((0,s.__assign)({},e),{index:t})})).filter((function(t){return re(t)&&!t.disabled&&0===t.text.toLocaleLowerCase().indexOf(e)}));return n.length>0?(this._setPendingInfo(o,n[0].index,ae(n[0])),n[0].index):-1},t.prototype._getFirstSelectedIndex=function(){var e=this.props.hoisted.selectedIndices;return(null===e||void 0===e?void 0:e.length)?e[0]:-1},t.prototype._getNextSelectableIndex=function(e,t){var o=this.props.hoisted.currentOptions,n=e+t;if(!ne(o,n=Math.max(0,Math.min(o.length-1,n))))return-1;var r=o[n];if(!ie(r)||!0===r.hidden){if(t===i.none||!(n>0&&t<i.none||n>=0&&n<o.length&&t>i.none))return e;n=this._getNextSelectableIndex(n,t)}return n},t.prototype._setSelectedIndex=function(e,t,o){void 0===o&&(o=i.none);var n=this.props,r=n.onChange,a=n.onPendingValueChanged,l=n.hoisted,c=l.selectedIndices,u=l.currentOptions,d=c?c.slice():[],f=u.slice();if(ne(u,e=this._getNextSelectableIndex(e,o))){if(this.props.multiSelect||d.length<1||1===d.length&&d[0]!==e){var p=(0,s.__assign)({},u[e]);if(!p||p.disabled)return;if(this.props.multiSelect)if(p.selected=void 0!==p.selected?!p.selected:d.indexOf(e)<0,p.itemType===L.W.SelectAll)d=[],p.selected?u.forEach((function(e,t){!e.disabled&&ie(e)&&(d.push(t),f[t]=(0,s.__assign)((0,s.__assign)({},e),{selected:!0}))})):f=u.map((function(e){return(0,s.__assign)((0,s.__assign)({},e),{selected:!1})}));else{p.selected&&d.indexOf(e)<0?d.push(e):!p.selected&&d.indexOf(e)>=0&&(d=d.filter((function(t){return t!==e}))),f[e]=p;var h=f.filter((function(e){return e.itemType===L.W.SelectAll}))[0];if(h){var m=this._isSelectAllChecked(d),g=f.indexOf(h);m?(d.push(g),f[g]=(0,s.__assign)((0,s.__assign)({},h),{selected:!0})):(d=d.filter((function(e){return e!==g})),f[g]=(0,s.__assign)((0,s.__assign)({},h),{selected:!1}))}}else d[0]=e;t.persist(),this.props.selectedKey||null===this.props.selectedKey||(this.props.hoisted.setSelectedIndices(d),this.props.hoisted.setCurrentOptions(f)),this._hasPendingValue&&a&&(a(),this._hasPendingValue=!1),r&&r(t,p,e,ae(p))}this.props.multiSelect&&this.state.isOpen||this._clearPendingInfo()}},t.prototype._submitPendingValue=function(e){var t,o=this.props,n=o.onChange,r=o.allowFreeform,i=o.autoComplete,a=o.multiSelect,s=o.hoisted,l=s.currentOptions,c=this.state,u=c.currentPendingValue,d=c.currentPendingValueValidIndex,f=c.currentPendingValueValidIndexOnHover,p=this.props.hoisted.selectedIndices;if(!this._processingClearPendingInfo){if(r){if(null===u||void 0===u)return void(f>=0&&(this._setSelectedIndex(f,e),this._clearPendingInfo()));if(ne(l,d)){var h=ae(l[d]).toLocaleLowerCase(),m=this._autofill.current;if(u.toLocaleLowerCase()===h||i&&0===h.indexOf(u.toLocaleLowerCase())&&(null===m||void 0===m?void 0:m.isValueSelected)&&u.length+(m.selectionEnd-m.selectionStart)===h.length||(null===(t=null===m||void 0===m?void 0:m.inputElement)||void 0===t?void 0:t.value.toLocaleLowerCase())===h){if(this._setSelectedIndex(d,e),a&&this.state.isOpen)return;return void this._clearPendingInfo()}}if(n)n&&n(e,void 0,void 0,u);else{var g={key:u||(0,w.O)(),text:oe(u)};a&&(g.selected=!0);var v=l.concat([g]);p&&(a||(p=[]),p.push(v.length-1)),s.setCurrentOptions(v),s.setSelectedIndices(p)}}else d>=0?this._setSelectedIndex(d,e):f>=0&&this._setSelectedIndex(f,e);this._clearPendingInfo()}},t.prototype._onCalloutLayerMounted=function(){this._gotMouseMove=!1},t.prototype._renderSeparator=function(e){var t=e.index,o=e.key;return t&&t>0?l.createElement("div",{role:"presentation",key:o,className:this._classNames.divider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,o=void 0===t?this._onRenderOptionContent:t;return l.createElement("div",{id:e.id,key:e.key,className:this._classNames.header},o(e,this._onRenderOptionContent))},t.prototype._renderCheckboxLabel=function(e){var t=this.props.onRenderOption;return(void 0===t?this._onRenderMultiselectOptionContent:t)(e,this._onRenderMultiselectOptionContent)},t.prototype._isOptionHighlighted=function(e){var t=this.state.currentPendingValueValidIndexOnHover;return t!==a.clearAll&&(t>=0?t===e:this._isOptionSelected(e))},t.prototype._isOptionSelected=function(e){return this._getPendingSelectedIndex(!0)===e},t.prototype._isOptionChecked=function(e){if(this.props.multiSelect&&void 0!==e&&this.props.hoisted.selectedIndices){return this.props.hoisted.selectedIndices.indexOf(e)>=0}return!1},t.prototype._isOptionIndeterminate=function(e){var t=this.props,o=t.multiSelect,n=t.hoisted;if(o&&void 0!==e&&n.selectedIndices&&n.currentOptions){var r=n.currentOptions[e];if(r&&r.itemType===L.W.SelectAll)return n.selectedIndices.length>0&&!this._isSelectAllChecked()}return!1},t.prototype._isSelectAllChecked=function(e){var t=this.props,o=t.multiSelect,n=t.hoisted,r=n.currentOptions.find((function(e){return e.itemType===L.W.SelectAll})),i=e||n.selectedIndices;if(!o||!i||!r)return!1;var a=n.currentOptions.indexOf(r),s=i.filter((function(e){return e!==a})),l=n.currentOptions.filter((function(e){return!e.disabled&&e.itemType!==L.W.SelectAll&&ie(e)}));return s.length===l.length},t.prototype._getPendingSelectedIndex=function(e){var t=this.state,o=t.currentPendingValueValidIndex,n=t.currentPendingValue;return o>=0||e&&null!==n&&void 0!==n?o:this.props.multiSelect?-1:this._getFirstSelectedIndex()},t.prototype._scrollIntoView=function(){var e=this.props,t=e.onScrollToItem,o=e.scrollSelectedToTop,n=this._getPendingSelectedIndex(!0);if(t)t(n>=0?n:this._getFirstSelectedIndex());else{var r=this._selectedElement.current;if(this.props.multiSelect&&this._comboBoxMenu.current&&(r=$(this._comboBoxMenu.current,(function(e){var t;return(null===(t=e.dataset)||void 0===t?void 0:t.index)===n.toString()}))),r&&r.offsetParent){var i=!0;if(this._comboBoxMenu.current&&this._comboBoxMenu.current.offsetParent){var a=this._comboBoxMenu.current.offsetParent,s=r.offsetParent,l=s.offsetHeight,c=s.offsetTop,u=a,d=u.offsetHeight,f=u.scrollTop,p=c+l>f+d;c<f||o?(i=!1,a.scrollTo(0,c)):p&&a.scrollTo(0,c-d+l)}else r.offsetParent.scrollIntoView(i)}}},t.prototype._onItemClick=function(e){var t=this,o=this.props.onItemClick,n=e.index;return function(r){t.props.multiSelect||(t._autofill.current&&t._autofill.current.focus(),t.setState({isOpen:!1})),o&&o(r,e,n),t._setSelectedIndex(n,r)}},t.prototype._resetSelectedIndex=function(){var e=this.props.hoisted.currentOptions;this._clearPendingInfo();var t=this._getFirstSelectedIndex();t>0&&t<e.length?this.props.hoisted.setSuggestedDisplayValue(e[t].text):this.props.text&&this.props.hoisted.setSuggestedDisplayValue(this.props.text)},t.prototype._clearPendingInfo=function(){this._processingClearPendingInfo=!0,this.props.hoisted.setSuggestedDisplayValue(void 0),this.setState({currentPendingValue:void 0,currentPendingValueValidIndex:-1,currentPendingValueValidIndexOnHover:a.default},this._onAfterClearPendingInfo)},t.prototype._setPendingInfo=function(e,t,o){void 0===t&&(t=-1),this._processingClearPendingInfo||(this.props.hoisted.setSuggestedDisplayValue(o),this.setState({currentPendingValue:oe(e),currentPendingValueValidIndex:t,currentPendingValueValidIndexOnHover:a.default}))},t.prototype._setPendingInfoFromIndex=function(e){var t=this.props.hoisted.currentOptions;if(e>=0&&e<t.length){var o=t[e];this._setPendingInfo(ae(o),e,ae(o))}else this._clearPendingInfo()},t.prototype._setPendingInfoFromIndexAndDirection=function(e,t){var o=this.props.hoisted.currentOptions;t===i.forward&&e>=o.length-1?e=-1:t===i.backward&&e<=0&&(e=o.length);var n=this._getNextSelectableIndex(e,t);e===n?t===i.forward?e=this._getNextSelectableIndex(-1,t):t===i.backward&&(e=this._getNextSelectableIndex(o.length,t)):e=n,ne(o,e)&&this._setPendingInfoFromIndex(e)},t.prototype._notifyPendingValueChanged=function(e){var t=this.props.onPendingValueChanged;if(t){var o=this.props.hoisted.currentOptions,n=this.state,r=n.currentPendingValue,i=n.currentPendingValueValidIndex,a=n.currentPendingValueValidIndexOnHover,s=void 0,l=void 0;a!==e.currentPendingValueValidIndexOnHover&&ne(o,a)?s=a:i!==e.currentPendingValueValidIndex&&ne(o,i)?s=i:r!==e.currentPendingValue&&(l=r),(void 0!==s||void 0!==l||this._hasPendingValue)&&(t(void 0!==s?o[s]:void 0,s,l),this._hasPendingValue=void 0!==s||void 0!==l)}},t.prototype._setOpenStateAndFocusOnClose=function(e,t){this._focusInputAfterClose=t,this.setState({isOpen:e})},t.prototype._onOptionMouseEnter=function(e){this._shouldIgnoreMouseEvent()||this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._onOptionMouseMove=function(e){this._gotMouseMove=!0,this._isScrollIdle&&this.state.currentPendingValueValidIndexOnHover!==e&&this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._handleInputWhenDisabled=function(e){this.props.disabled&&(this.state.isOpen&&this.setState({isOpen:!1}),null!==e&&e.which!==g.c.tab&&e.which!==g.c.escape&&(e.which<112||e.which>123)&&(e.stopPropagation(),e.preventDefault()))},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0}),500)},t.prototype._getCaretButtonStyles=function(){var e=this.props.caretDownButtonStyles;return F(this.props.theme,e)},t.prototype._getCurrentOptionStyles=function(e){var t=this.props.comboBoxOptionStyles,o=e.styles;return N(this.props.theme,t,o,this._isPendingOption(e),e.hidden,this._isOptionHighlighted(e.index))},t.prototype._getAriaAutoCompleteValue=function(){return!this.props.disabled&&"on"===this.props.autoComplete?this.props.allowFreeform?"inline":"both":"list"},t.prototype._isPendingOption=function(e){return e&&e.index===this.state.currentPendingValueValidIndex},t.prototype._hasFocus=function(){return"none"!==this.state.focusState},t=(0,s.__decorate)([(0,S.T)("ComboBox",["theme","styles"],!0)],t)}(l.Component);function ee(e,t){if(!e||!t)return[];var o={};e.forEach((function(e,t){e.selected&&(o[t]=!0)}));for(var n=function(t){var n=(0,B.SL)(e,(function(e){return e.key===t}));n>-1&&(o[n]=!0)},r=0,i=t;r<i.length;r++){n(i[r])}return Object.keys(o).map(Number).sort()}function te(e){return void 0===e?[]:e instanceof Array?e:[e]}function oe(e){return e||""}function ne(e,t){return!!e&&t>=0&&t<e.length}function re(e){return e.itemType!==L.W.Header&&e.itemType!==L.W.Divider&&e.itemType!==L.W.SelectAll}function ie(e){return e.itemType!==L.W.Header&&e.itemType!==L.W.Divider}function ae(e){return e.useAriaLabelAsText&&e.ariaLabel?e.ariaLabel:e.text}function se(e){return e.which===g.c.alt||"Meta"===e.key}var le=o(45818),ce=function(e){function t(t){var o=e.call(this,t)||this;return o._comboBox=l.createRef(),o._list=l.createRef(),o._onRenderList=function(e){var t=e.id,n=e.onRenderItem;return l.createElement(le.B,{componentRef:o._list,role:"listbox",id:"".concat(t,"-list"),"aria-labelledby":"".concat(t,"-label"),items:e.options,onRenderCell:n?function(e){return n(e)}:function(){return null}})},o._onScrollToItem=function(e){o._list.current&&o._list.current.scrollToIndex(e)},(0,_.f)(o),o}return(0,s.__extends)(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return this._comboBox.current?this._comboBox.current.selectedOptions:[]},enumerable:!1,configurable:!0}),t.prototype.dismissMenu=function(){if(this._comboBox.current)return this._comboBox.current.dismissMenu()},t.prototype.focus=function(e,t){return!!this._comboBox.current&&(this._comboBox.current.focus(e,t),!0)},t.prototype.render=function(){return l.createElement(Q,(0,s.__assign)({},this.props,{componentRef:this._comboBox,onRenderList:this._onRenderList,onScrollToItem:this._onScrollToItem}))},t}(l.Component)},27798:function(e,t,o){"use strict";o.d(t,{e:function(){return g}});var n=o(84867),r=o(80322),i=o(35566),a=o(12300),s=o(26858),l=o(81708),c=o(3676),u=o(76929),d=o(32133),f=o(75708),p=o(70451),h=(0,s.Z)(),m=function(e){return function(t){return t?t.column.isIconOnly?r.createElement("span",{className:e.accessibleLabel},t.column.name):r.createElement(r.Fragment,null,t.column.name):null}},g=function(e){function t(t){var o=e.call(this,t)||this;return o._root=r.createRef(),o._tooltipRef=r.createRef(),o._onRenderFilterIcon=function(e){return function(e){var t=e.columnProps,o=(0,n.__rest)(e,["columnProps"]),s=(null===t||void 0===t?void 0:t.useFastIcons)?i.l8:a.I;return r.createElement(s,(0,n.__assign)({},o))}},o._onRenderColumnHeaderTooltip=function(e){return r.createElement("span",{className:e.hostClassName},e.children)},o._onColumnClick=function(e){var t=o.props,n=t.onColumnClick,r=t.column;r.columnActionsMode!==f.vn.disabled&&(r.onColumnClick&&r.onColumnClick(e,r),n&&n(e,r))},o._onColumnBlur=function(){o._tooltipRef.current&&o._tooltipRef.current.dismiss()},o._onColumnFocus=function(){o._tooltipRef.current&&o._tooltipRef.current.show()},o._onDragStart=function(e,t,n,r){var i=o._classNames;t&&(o._updateHeaderDragInfo(t),o._root.current.classList.add(i.borderWhileDragging),o._async.setTimeout((function(){o._root.current&&o._root.current.classList.add(i.noBorderWhileDragging)}),20))},o._onDragEnd=function(e,t){var n=o._classNames;t&&o._updateHeaderDragInfo(-1,t),o._root.current.classList.remove(n.borderWhileDragging),o._root.current.classList.remove(n.noBorderWhileDragging)},o._updateHeaderDragInfo=function(e,t){o.props.setDraggedItemIndex&&o.props.setDraggedItemIndex(e),o.props.updateDragInfo&&o.props.updateDragInfo({itemIndex:e},t)},o._onColumnContextMenu=function(e){var t=o.props,n=t.onColumnContextMenu,r=t.column;r.onColumnContextMenu&&(r.onColumnContextMenu(r,e),e.preventDefault()),n&&(n(r,e),e.preventDefault())},o._onRootMouseDown=function(e){o.props.isDraggable&&0===e.button&&e.stopPropagation()},(0,l.f)(o),o._async=new c.j(o),o._events=new u.g(o),o}return(0,n.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.column,o=e.parentId,s=e.isDraggable,l=e.styles,c=e.theme,u=e.cellStyleProps,g=void 0===u?p.AB:u,v=e.useFastIcons,b=void 0===v||v,_=this.props.onRenderColumnHeaderTooltip,y=void 0===_?this._onRenderColumnHeaderTooltip:_;this._classNames=h(l,{theme:c,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==f.vn.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:g,transitionDurationDrag:200,transitionDurationDrop:1500});var x=this._classNames,k=b?i.l8:a.I,w=t.onRenderFilterIcon?(0,d.j)(t.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),C=t.onRenderHeader?(0,d.j)(t.onRenderHeader,m(this._classNames)):m(this._classNames),S=t.columnActionsMode!==f.vn.disabled&&(void 0!==t.onColumnClick||void 0!==this.props.onColumnClick),B=this.props.onRenderColumnHeaderTooltip?!t.ariaLabel:this._hasAccessibleDescription(),I={"aria-label":t.ariaLabel?t.ariaLabel:t.isIconOnly?t.name:void 0,"aria-labelledby":t.ariaLabel||t.isIconOnly?void 0:"".concat(o,"-").concat(t.key,"-name"),"aria-describedby":B?"".concat(o,"-").concat(t.key,"-tooltip"):void 0};return r.createElement(r.Fragment,null,r.createElement("div",(0,n.__assign)({key:t.key,ref:this._root,role:"columnheader"},!S&&I,{"aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","data-is-focusable":S||t.columnActionsMode===f.vn.disabled?void 0:"true",className:x.root,"data-is-draggable":s,draggable:s,style:{width:t.calculatedWidth+g.cellLeftPadding+g.cellRightPadding+(t.isPadded?g.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key,onBlur:this._onColumnBlur,onFocus:this._onColumnFocus}),s&&r.createElement(k,{iconName:"GripperBarVertical",className:x.gripperBarVerticalStyle}),y({hostClassName:x.cellTooltip,id:"".concat(o,"-").concat(t.key,"-tooltip"),setAriaDescribedBy:!1,column:t,componentRef:this._tooltipRef,content:t.columnActionsMode!==f.vn.disabled?t.ariaLabel:"",children:r.createElement("span",(0,n.__assign)({id:"".concat(o,"-").concat(t.key),className:x.cellTitle,"data-is-focusable":S&&t.columnActionsMode!==f.vn.disabled?"true":void 0,role:S?"button":void 0},S&&I,{onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,"aria-haspopup":t.columnActionsMode===f.vn.hasDropdown?"menu":void 0,"aria-expanded":t.columnActionsMode===f.vn.hasDropdown?!!t.isMenuOpen:void 0}),r.createElement("span",{id:"".concat(o,"-").concat(t.key,"-name"),className:x.cellName},(t.iconName||t.iconClassName)&&r.createElement(k,{className:x.iconClassName,iconName:t.iconName}),C(this.props)),t.isFiltered&&r.createElement(k,{className:x.nearIcon,iconName:"Filter"}),(t.isSorted||t.showSortIconWhenUnsorted)&&r.createElement(k,{className:x.sortIcon,iconName:t.isSorted?t.isSortedDescending?"SortDown":"SortUp":"Sort"}),t.isGrouped&&r.createElement(k,{className:x.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===f.vn.hasDropdown&&!t.isIconOnly&&w({"aria-hidden":!0,columnProps:this.props,className:x.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleDescription())},t.prototype.componentDidMount=function(){var e=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout((function(){e._root.current&&e._root.current.classList.add(t.noBorderAfterDropping)}),20)),this._async.setTimeout((function(){e._root.current&&(e._root.current.classList.remove(t.borderAfterDropping),e._root.current.classList.remove(t.noBorderAfterDropping))}),1520))},t.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},t.prototype._getColumnDragDropOptions=function(){var e=this,t=this.props.columnIndex;return{selectionIndex:t,context:{data:t,index:t},canDrag:function(){return e.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd}},t.prototype._hasAccessibleDescription=function(){var e=this.props.column;return!!(e.filterAriaLabel||e.sortAscendingAriaLabel||e.sortDescendingAriaLabel||e.groupAriaLabel||e.sortableAriaLabel)},t.prototype._renderAccessibleDescription=function(){var e=this.props,t=e.column,o=e.parentId,n=this._classNames;return this._hasAccessibleDescription()&&!this.props.onRenderColumnHeaderTooltip?r.createElement("label",{key:"".concat(t.key,"_label"),id:"".concat(o,"-").concat(t.key,"-tooltip"),className:n.accessibleLabel,hidden:!0},t.isFiltered&&t.filterAriaLabel||null,(t.isSorted||t.showSortIconWhenUnsorted)&&(t.isSorted?t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel:t.sortableAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},t.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},t}(r.Component)},33460:function(e,t,o){"use strict";o.d(t,{v:function(){return u}});var n=o(75425),r=o(27798),i=o(84867),a=o(7354),s=o(70451),l=o(46348),c={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"},u=(0,n.I)(r.e,(function(e){var t,o=e.theme,n=e.headerClassName,r=e.iconClassName,u=e.isActionable,d=e.isEmpty,f=e.isIconVisible,p=e.isPadded,h=e.isIconOnly,m=e.cellStyleProps,g=void 0===m?s.AB:m,v=e.transitionDurationDrag,b=e.transitionDurationDrop,_=o.semanticColors,y=o.palette,x=o.fonts,k=(0,a.Km)(c,o),w={iconForegroundColor:_.bodySubtext,headerForegroundColor:_.bodyText,headerBackgroundColor:_.bodyBackground,dropdownChevronForegroundColor:y.neutralSecondary,resizerColor:y.neutralTertiaryAlt},C={color:w.iconForegroundColor,opacity:1,paddingLeft:8},S={outline:"1px solid ".concat(y.themePrimary)},B={outlineColor:"transparent"};return{root:[(0,l.PL)(e),x.small,u&&[k.isActionable,{selectors:{":hover":{color:_.bodyText,background:_.listHeaderBackgroundHovered},":active":{background:_.listHeaderBackgroundPressed}}}],d&&[k.isEmpty,{textOverflow:"clip"}],f&&k.isIconVisible,p&&{paddingRight:g.cellExtraRightPadding+g.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},n],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:y.neutralTertiary,left:1},nearIcon:[k.nearIcon,C],sortIcon:[C,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:w.iconForegroundColor,opacity:1},r],filterChevron:[k.filterChevron,{color:w.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:x.small.fontSize}],cellTitle:[k.cellTitle,(0,a.gm)(o),(0,i.__assign)({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 ".concat(g.cellRightPadding,"px 0 ").concat(g.cellLeftPadding,"px")},h?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[k.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:a.BO.semibold,fontSize:x.medium.fontSize},h&&{selectors:(t={},t[".".concat(k.nearIcon)]={paddingLeft:0},t)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:a.dX,borderWhileDragging:S,noBorderWhileDragging:[B,{transition:"outline ".concat(v,"ms ease")}],borderAfterDropping:S,noBorderAfterDropping:[B,{transition:"outline  ".concat(b,"ms ease")}]}}),void 0,{scope:"DetailsColumn"})},46348:function(e,t,o){"use strict";o.d(t,{PL:function(){return d},Up:function(){return f},uF:function(){return u}});var n=o(84867),r=o(7354),i=o(40950),a=o(16758),s=o(70451),l=o(9970),c={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"},u=42,d=function(e){var t=e.theme,o=e.cellStyleProps,n=void 0===o?s.AB:o,i=t.semanticColors;return[(0,r.Km)(c,t).cell,(0,r.gm)(t),{color:i.bodyText,position:"relative",display:"inline-block",boxSizing:"border-box",padding:"0 ".concat(n.cellRightPadding,"px 0 ").concat(n.cellLeftPadding,"px"),lineHeight:"inherit",margin:"0",height:u,verticalAlign:"top",whiteSpace:"nowrap",textOverflow:"ellipsis",textAlign:"left"}]},f=function(e){var t,o,f,p,h=e.theme,m=e.className,g=e.isAllSelected,v=e.isResizingColumn,b=e.isSizing,_=e.isAllCollapsed,y=e.cellStyleProps,x=void 0===y?s.AB:y,k=h.semanticColors,w=h.palette,C=h.fonts,S=(0,r.Km)(c,h),B={iconForegroundColor:k.bodySubtext,headerForegroundColor:k.bodyText,headerBackgroundColor:k.bodyBackground,resizerColor:w.neutralTertiaryAlt},I={opacity:1,transition:"opacity 0.3s linear"},E=d(e);return{root:[S.root,C.small,{display:"inline-block",background:B.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:u,lineHeight:u,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid ".concat(k.bodyDivider),cursor:"default",userSelect:"none",selectors:(t={},t["&:hover .".concat(S.check)]={opacity:1},t["& .".concat(S.tooltipHost," .").concat(S.checkTooltip)]={display:"block"},t)},g&&S.isAllSelected,v&&S.isResizingColumn,m],check:[S.check,{height:u},{selectors:(o={},o[".".concat(i.Y2," &:focus")]={opacity:1},o)}],cellWrapperPadded:{paddingRight:x.cellExtraRightPadding+x.cellRightPadding},cellIsCheck:[E,S.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},g&&{opacity:1}],cellIsGroupExpander:[E,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:C.small.fontSize,padding:0,border:"none",width:l.k,color:w.neutralSecondary,selectors:{":hover":{backgroundColor:w.neutralLighter},":active":{backgroundColor:w.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:k.bodyText,background:k.listHeaderBackgroundHovered},":active":{background:k.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[S.cellSizer,(0,r.QN)(),{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:(f={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:B.resizerColor,opacity:0,left:"50%"},":focus:after":I,":hover:after":I},f["&.".concat(S.isResizing,":after")]=[I,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],f)}],cellIsResizing:S.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[S.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},_?[S.isCollapsed,{transform:"rotate(0deg)"}]:{transform:(0,a.jI)(h)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:S.checkTooltip,sizingOverlay:b&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:(p={},p[r.up]=(0,n.__assign)({background:"transparent"},(0,r.Qg)()),p)},accessibleLabel:r.dX,dropHintCircleStyle:[S.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(w.themePrimary),background:w.white}],dropHintCaretStyle:[S.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:C.medium.fontSize,color:w.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[S.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:w.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}}},91274:function(e,t,o){"use strict";o.d(t,{R:function(){return Be}});var n,r=o(75425),i=o(84867),a=o(80322),s=o(26858),l=o(65808),c=o(16758),u=o(54121),d=o(16711),f=o(13578),p=o(81708),h=o(3676),m=o(90288),g=o(89896),v=o(75708),b=o(76929),_=o(50453),y=o(84218),x=o(90973),k=o(35566),w=o(12300),C=o(22068),S=o(9970);!function(e){e[e.hidden=0]="hidden",e[e.visible=1]="visible"}(n||(n={}));var B=o(32133),I=o(35141),E=o(95167),z=o(48939),T=o(21424),A=(0,s.Z)(),P=a.memo((function(e){return a.createElement(E.J,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}));function R(e){return a.createElement(E.J,{checked:e.checked})}function D(e){return a.createElement(P,{theme:e.theme,checked:e.checked})}var N,F=(0,r.I)((function(e){var t=e.isVisible,o=void 0!==t&&t,n=e.canSelect,r=void 0!==n&&n,s=e.anySelected,l=void 0!==s&&s,c=e.selected,u=void 0!==c&&c,f=e.selectionMode,p=e.isHeader,h=void 0!==p&&p,m=e.className,g=(e.checkClassName,e.styles),v=e.theme,b=e.compact,_=e.onRenderDetailsCheckbox,y=e.useFastIcons,x=void 0===y||y,k=(0,i.__rest)(e,["isVisible","canSelect","anySelected","selected","selectionMode","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),w=x?D:R,C=_?(0,B.j)(_,w):w,S=A(g,{theme:v,canSelect:r,selected:u,anySelected:l,className:m,isHeader:h,isVisible:o,compact:b}),E={checked:u,theme:v},z=(0,I._)("div",k,["aria-label","aria-labelledby","aria-describedby"]),P=f===T.Qc.single?"radio":"checkbox";return r?a.createElement("div",(0,i.__assign)({},k,{role:P,className:(0,d.A)(S.root,S.check),"aria-checked":u,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),C(E)):a.createElement("div",(0,i.__assign)({},z,{className:(0,d.A)(S.root,S.check)}))}),z.d,void 0,{scope:"DetailsRowCheck"},!0),M=o(16114),j=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,o){var n=this;if(!this._initialized){this._events=new b.g(this);var r=(0,M.Y)();r&&(this._events.on(r.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(r,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var i,a,s,l,c,u,d,f,p,h,m=o.key,g=void 0===m?"".concat(++this._lastId):m,v=[];if(o&&e){var _=o.eventMap,y=o.context,x=o.updateDropState,k={root:e,options:o,key:g};if(f=this._isDraggable(k),p=this._isDroppable(k),(f||p)&&_)for(var w=0,C=_;w<C.length;w++){var S=C[w],B={callback:S.callback.bind(null,y),eventName:S.eventName};v.push(B),this._events.on(e,B.eventName,B.callback)}p&&(a=function(e){e.isHandled||(e.isHandled=!0,n._dragEnterCounts[g]--,0===n._dragEnterCounts[g]&&x(!1,e))},s=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,n._dragEnterCounts[g]++,1===n._dragEnterCounts[g]&&x(!0,e))},l=function(e){n._dragEnterCounts[g]=0,x(!1,e)},c=function(e){n._dragEnterCounts[g]=0,x(!1,e),o.onDrop&&o.onDrop(o.context.data,e)},u=function(e){e.preventDefault(),o.onDragOver&&o.onDragOver(o.context.data,e)},this._dragEnterCounts[g]=0,t.on(e,"dragenter",s),t.on(e,"dragleave",a),t.on(e,"dragend",l),t.on(e,"drop",c),t.on(e,"dragover",u)),f&&(d=this._onMouseDown.bind(this,k),l=this._onDragEnd.bind(this,k),i=function(t){var r=o;r&&r.onDragStart&&r.onDragStart(r.context.data,r.context.index,n._selection.getSelection(),t),n._isDragging=!0,t.dataTransfer&&t.dataTransfer.setData("id",e.id)},t.on(e,"dragstart",i),t.on(e,"mousedown",d),t.on(e,"dragend",l)),h={target:k,dispose:function(){if(n._activeTargets[g]===h&&delete n._activeTargets[g],e){for(var o=0,r=v;o<r.length;o++){var m=r[o];n._events.off(e,m.eventName,m.callback)}p&&(t.off(e,"dragenter",s),t.off(e,"dragleave",a),t.off(e,"dragend",l),t.off(e,"dragover",u),t.off(e,"drop",c)),f&&(t.off(e,"dragstart",i),t.off(e,"mousedown",d),t.off(e,"dragend",l))}}},this._activeTargets[g]=h}return{key:g,dispose:function(){h&&h.dispose()}}},e.prototype.unsubscribe=function(e,t){var o=this._activeTargets[t];o&&o.dispose()},e.prototype._onDragEnd=function(e,t){var o=e.options;o.onDragEnd&&o.onDragEnd(o.context.data,t)},e.prototype._onMouseUp=function(e){if(this._isDragging=!1,this._dragData){for(var t=0,o=Object.keys(this._activeTargets);t<o.length;t++){var n=o[t],r=this._activeTargets[n];r.target.root&&(this._events.off(r.target.root,"mousemove"),this._events.off(r.target.root,"mouseleave"))}this._dragData.dropTarget&&(b.g.raise(this._dragData.dropTarget.root,"dragleave"),b.g.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},e.prototype._onDocumentMouseUp=function(e){var t=(0,M.Y)();t&&e.target===t.documentElement&&this._onMouseUp(e)},e.prototype._onMouseMove=function(e,t){var o=t.buttons,n=void 0===o?1:o;if(this._dragData&&1!==n)this._onMouseUp(t);else{var r=e.root,i=e.key;this._isDragging&&this._isDroppable(e)&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key!==i&&!this._isChild(r,this._dragData.dropTarget.root)&&this._dragEnterCounts[this._dragData.dropTarget.key]>0&&(b.g.raise(this._dragData.dropTarget.root,"dragleave"),b.g.raise(r,"dragenter"),this._dragData.dropTarget=e)}},e.prototype._onMouseLeave=function(e,t){this._isDragging&&this._dragData&&this._dragData.dropTarget&&this._dragData.dropTarget.key===e.key&&(b.g.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 o=0,n=Object.keys(this._activeTargets);o<n.length;o++){var r=n[o],i=this._activeTargets[r];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,o=this._dragData&&this._dragData.dragTarget?this._dragData.dragTarget.options.context:void 0;return!(!t.canDrop||!t.canDrop(t.context,o))},e}(),O=o(33460);!function(e){e[e.none=0]="none",e[e.hidden=1]="hidden",e[e.visible=2]="visible"}(N||(N={}));var H=(0,s.Z)(),L=[],q=function(e){function t(t){var o=e.call(this,t)||this;return o._rootElement=a.createRef(),o._rootComponent=a.createRef(),o._draggedColumnIndex=-1,o._dropHintDetails={},o._updateDroppingState=function(e,t){o._draggedColumnIndex>=0&&"drop"!==t.type&&!e&&o._resetDropHints()},o._onDragOver=function(e,t){o._draggedColumnIndex>=0&&(t.stopPropagation(),o._computeDropHintToBeShown(t.clientX))},o._onDrop=function(e,t){var n=o._getColumnReorderProps();if(o._draggedColumnIndex>=0&&t){var r=o._draggedColumnIndex>o._currentDropHintIndex?o._currentDropHintIndex:o._currentDropHintIndex-1,i=o._isValidCurrentDropHintIndex();if(t.stopPropagation(),i)if(o._onDropIndexInfo.sourceIndex=o._draggedColumnIndex,o._onDropIndexInfo.targetIndex=r,n.onColumnDrop){var a={draggedIndex:o._draggedColumnIndex,targetIndex:r};n.onColumnDrop(a)}else n.handleColumnReorder&&n.handleColumnReorder(o._draggedColumnIndex,r)}o._resetDropHints(),o._dropHintDetails={},o._draggedColumnIndex=-1},o._computeColumnIndexOffset=function(e){var t=1;return e&&(t+=1),o.props.groupNestingDepth&&o.props.groupNestingDepth>0&&(t+=1),t},o._updateDragInfo=function(e,t){var n=o._getColumnReorderProps(),r=e.itemIndex;if(r>=0)o._draggedColumnIndex=r-o._computeColumnIndexOffset(!o._isCheckboxColumnHidden()),o._getDropHintPositions(),n.onColumnDragStart&&n.onColumnDragStart(!0);else if(t&&o._draggedColumnIndex>=0&&(o._resetDropHints(),o._draggedColumnIndex=-1,o._dropHintDetails={},n.onColumnDragEnd)){var i=o._isEventOnHeader(t);n.onColumnDragEnd({dropLocation:i},t)}},o._getDropHintPositions=function(){for(var e,t=o.props.columns,n=void 0===t?L:t,r=o._getColumnReorderProps(),i=0,a=0,s=r.frozenColumnCountFromStart||0,l=r.frozenColumnCountFromEnd||0,c=s;c<n.length-l+1;c++)if(o._rootElement.current){var u=o._rootElement.current.querySelectorAll("#columnDropHint_"+c)[0];if(u)if(c===s)i=u.offsetLeft,a=u.offsetLeft,e=u;else{var d=(u.offsetLeft+i)/2;o._dropHintDetails[c-1]={originX:i,startX:a,endX:d,dropHintElementRef:e},a=d,e=u,i=u.offsetLeft,c===n.length-l&&(o._dropHintDetails[c]={originX:i,startX:a,endX:u.offsetLeft,dropHintElementRef:e})}}},o._computeDropHintToBeShown=function(e){var t=(0,c.jI)(o.props.theme);if(o._rootElement.current){var n=e-o._rootElement.current.getBoundingClientRect().left,r=o._currentDropHintIndex;if(o._isValidCurrentDropHintIndex()&&W(t,n,o._dropHintDetails[r].startX,o._dropHintDetails[r].endX))return;var i=o.props.columns,a=void 0===i?L:i,s=o._getColumnReorderProps(),l=s.frozenColumnCountFromStart||0,u=s.frozenColumnCountFromEnd||0,d=l,f=a.length-u,p=-1;if(V(t,n,o._dropHintDetails[d].endX)?p=d:G(t,n,o._dropHintDetails[f].startX)?p=f:o._isValidCurrentDropHintIndex()&&(o._dropHintDetails[r+1]&&W(t,n,o._dropHintDetails[r+1].startX,o._dropHintDetails[r+1].endX)?p=r+1:o._dropHintDetails[r-1]&&W(t,n,o._dropHintDetails[r-1].startX,o._dropHintDetails[r-1].endX)&&(p=r-1)),-1===p)for(var h=l,m=f;h<m;){var g=Math.ceil((m+h)/2);if(W(t,n,o._dropHintDetails[g].startX,o._dropHintDetails[g].endX)){p=g;break}V(t,n,o._dropHintDetails[g].originX)?m=g:G(t,n,o._dropHintDetails[g].originX)&&(h=g)}p===o._draggedColumnIndex||p===o._draggedColumnIndex+1?o._isValidCurrentDropHintIndex()&&o._resetDropHints():r!==p&&p>=0&&(o._resetDropHints(),o._updateDropHintElement(o._dropHintDetails[p].dropHintElementRef,"inline-block"),o._currentDropHintIndex=p)}},o._renderColumnSizer=function(e){var t,n=e.columnIndex,r=o.props.columns,i=void 0===r?L:r,s=i[n],l=o.state.columnResizeDetails,c=o._classNames;return s.isResizable?a.createElement("div",{key:"".concat(s.key,"_sizer"),"aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:K,"data-sizer-index":n,onBlur:o._onSizerBlur,className:(0,d.A)(c.cellSizer,n<i.length-1?c.cellSizerStart:c.cellSizerEnd,(t={},t[c.cellIsResizing]=l&&l.columnIndex===n,t)),onDoubleClick:o._onSizerDoubleClick.bind(o,n)}):null},o._onRenderColumnHeaderTooltip=function(e){return a.createElement("span",{className:e.hostClassName},e.children)},o._onSelectAllClicked=function(){var e=o.props.selection;e&&e.toggleAllSelected()},o._onRootMouseDown=function(e){var t=e.target.getAttribute("data-sizer-index"),n=Number(t),r=o.props.columns,i=void 0===r?L:r;null!==t&&0===e.button&&(o.setState({columnResizeDetails:{columnIndex:n,columnMinWidth:i[n].calculatedWidth,originX:e.clientX}}),e.preventDefault(),e.stopPropagation())},o._onRootMouseMove=function(e){var t=o.state,n=t.columnResizeDetails,r=t.isSizing;n&&!r&&e.clientX!==n.originX&&o.setState({isSizing:!0})},o._onRootKeyDown=function(e){var t=o.state,n=t.columnResizeDetails,r=t.isSizing,a=o.props,s=a.columns,l=void 0===s?L:s,d=a.onColumnResized,f=e.target.getAttribute("data-sizer-index");if(f&&!r){var p=Number(f);if(n){var h=void 0;e.which===u.c.enter?(o.setState({columnResizeDetails:void 0}),e.preventDefault(),e.stopPropagation()):e.which===u.c.left?h=(0,c.jI)(o.props.theme)?1:-1:e.which===u.c.right&&(h=(0,c.jI)(o.props.theme)?-1:1),h&&(e.shiftKey||(h*=10),o.setState({columnResizeDetails:(0,i.__assign)((0,i.__assign)({},n),{columnMinWidth:n.columnMinWidth+h})}),d&&d(l[p],n.columnMinWidth+h,p),e.preventDefault(),e.stopPropagation())}else e.which===u.c.enter&&(o.setState({columnResizeDetails:{columnIndex:p,columnMinWidth:l[p].calculatedWidth}}),e.preventDefault(),e.stopPropagation())}},o._onSizerMouseMove=function(e){var t=e.buttons,n=o.props,r=n.onColumnIsSizingChanged,i=n.onColumnResized,a=n.columns,s=void 0===a?L:a,l=o.state.columnResizeDetails;if(void 0===t||1===t){if(e.clientX!==l.originX&&r&&r(s[l.columnIndex],!0),i){var u=e.clientX-l.originX;(0,c.jI)(o.props.theme)&&(u=-u),i(s[l.columnIndex],l.columnMinWidth+u,l.columnIndex)}}else o._onSizerMouseUp(e)},o._onSizerBlur=function(e){o.state.columnResizeDetails&&o.setState({columnResizeDetails:void 0,isSizing:!1})},o._onSizerMouseUp=function(e){var t=o.props,n=t.columns,r=void 0===n?L:n,i=t.onColumnIsSizingChanged,a=o.state.columnResizeDetails;o.setState({columnResizeDetails:void 0,isSizing:!1}),i&&i(r[a.columnIndex],!1)},o._onToggleCollapseAll=function(){var e=o.props.onToggleCollapseAll,t=!o.state.isAllCollapsed;o.setState({isAllCollapsed:t}),e&&e(t)},(0,p.f)(o),o._events=new b.g(o),o.state={columnResizeDetails:void 0,isAllCollapsed:o.props.isAllCollapsed,isAllSelected:!!o.props.selection&&o.props.selection.isAllSelected()},o._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},o._id=(0,_.O)("header"),o._currentDropHintIndex=-1,o._dragDropHelper=new j({selection:{getSelection:function(){}},minimumPixelsForDrag:o.props.minimumPixelsForDrag}),o}return(0,i.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props.selection;this._events.on(e,T.ij,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},t.prototype.componentDidUpdate=function(e){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==e&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=e.columns,o=void 0===t?L:t,n=this.props.columns,r=void 0===n?L:n;o[this._onDropIndexInfo.sourceIndex].key===r[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==e.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},t.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,o=t.columns,r=void 0===o?L:o,i=t.ariaLabel,s=t.ariaLabelForToggleAllGroupsButton,l=t.ariaLabelForSelectAllCheckbox,u=t.selectAllVisibility,d=t.ariaLabelForSelectionColumn,f=t.indentWidth,p=t.onColumnClick,h=t.onColumnContextMenu,m=t.onRenderColumnHeaderTooltip,g=void 0===m?this._onRenderColumnHeaderTooltip:m,b=t.styles,_=t.selectionMode,B=t.theme,I=t.onRenderDetailsCheckbox,E=t.groupNestingDepth,z=t.useFastIcons,A=t.checkboxVisibility,P=t.className,R=this.state,D=R.isAllSelected,M=R.columnResizeDetails,j=R.isSizing,q=R.isAllCollapsed,W=u!==N.none,V=u===N.hidden,G=A===v.GY.always,K=this._getColumnReorderProps(),U=K&&K.frozenColumnCountFromStart?K.frozenColumnCountFromStart:0,X=K&&K.frozenColumnCountFromEnd?K.frozenColumnCountFromEnd:0;this._classNames=H(b,{theme:B,isAllSelected:D,isSelectAllHidden:u===N.hidden,isResizingColumn:!!M&&j,isSizing:j,isAllCollapsed:q,isCheckboxHidden:V,className:P});var Y=this._classNames,Z=z?k.l8:w.I,Q=E>0,$=Q&&this.props.collapseAllVisibility===n.visible,J=this._computeColumnIndexOffset(W),ee=(0,c.jI)(B);return a.createElement(y.R,{role:"row","aria-label":i,className:Y.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:x.E.horizontal},W?[a.createElement("div",{key:"__checkbox",className:Y.cellIsCheck,"aria-labelledby":"".concat(this._id,"-checkTooltip"),onClick:V?void 0:this._onSelectAllClicked,role:"columnheader"},g({hostClassName:Y.checkTooltip,id:"".concat(this._id,"-checkTooltip"),setAriaDescribedBy:!1,content:l,children:a.createElement(F,{id:"".concat(this._id,"-check"),"aria-label":_===T.Qc.multiple?l:d,"data-is-focusable":!V||void 0,isHeader:!0,selected:D,anySelected:!1,canSelect:!V,className:Y.check,onRenderDetailsCheckbox:I,useFastIcons:z,isVisible:G})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:l&&!V?a.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:Y.accessibleLabel,"aria-hidden":!0},l):d&&V?a.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:Y.accessibleLabel,"aria-hidden":!0},d):null]:null,$?a.createElement("div",{className:Y.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":s,"aria-expanded":!q,role:"columnheader"},a.createElement(Z,{className:Y.collapseButton,iconName:ee?"ChevronLeftMed":"ChevronRightMed"}),a.createElement("span",{className:Y.accessibleLabel},s)):Q?a.createElement("div",{className:Y.cellIsGroupExpander,"data-is-focusable":!1,role:"columnheader"}):null,a.createElement(S.A,{indentWidth:f,role:"gridcell",count:E-1}),r.map((function(t,o){var n=!!K&&(o>=U&&o<r.length-X);return[K&&(n||o===r.length-X)&&e._renderDropHint(o),a.createElement(O.v,{column:t,styles:t.styles,key:t.key,columnIndex:J+o,parentId:e._id,isDraggable:n,updateDragInfo:e._updateDragInfo,dragDropHelper:e._dragDropHelper,onColumnClick:p,onColumnContextMenu:h,onRenderColumnHeaderTooltip:e.props.onRenderColumnHeaderTooltip,isDropped:e._onDropIndexInfo.targetIndex===o,cellStyleProps:e.props.cellStyleProps,useFastIcons:z}),e._renderColumnDivider(o)]})),K&&0===X&&this._renderDropHint(r.length),j&&a.createElement(C.W,null,a.createElement("div",{className:Y.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},t.prototype.focus=function(){var e;return!!(null===(e=this._rootComponent.current)||void 0===e?void 0:e.focus())},t.prototype._getColumnReorderProps=function(){var e=this.props,t=e.columnReorderOptions;return e.columnReorderProps||t&&(0,i.__assign)((0,i.__assign)({},t),{onColumnDragEnd:void 0})},t.prototype._getHeaderDragDropOptions=function(){return{selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver}},t.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},t.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,o=e.checkboxVisibility;return t===T.Qc.none||o===v.GY.hidden},t.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},t.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},t.prototype._isEventOnHeader=function(e){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(e.clientX>t.left&&e.clientX<t.right&&e.clientY>t.top&&e.clientY<t.bottom)return v.Fk.header}},t.prototype._renderColumnDivider=function(e){var t=this.props.columns,o=(void 0===t?L:t)[e],n=o.onRenderDivider;return n?n({column:o,columnIndex:e},this._renderColumnSizer):this._renderColumnSizer({column:o,columnIndex:e})},t.prototype._renderDropHint=function(e){var t=this._classNames,o=this.props.useFastIcons?k.l8:w.I;return a.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_".concat(e)},a.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},a.createElement(o,{iconName:"CircleShapeSolid"})),a.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":e,className:t.dropHintLineStyle}))},t.prototype._onSizerDoubleClick=function(e,t){var o=this.props,n=o.onColumnAutoResized,r=o.columns;n&&n((void 0===r?L:r)[e],e)},t.prototype._onSelectionChanged=function(){var e=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==e&&this.setState({isAllSelected:e})},t.defaultProps={selectAllVisibility:N.visible,collapseAllVisibility:n.visible,useFastIcons:!0},t}(a.Component);function W(e,t,o,n){return e?t<=o&&t>=n:t>=o&&t<=n}function V(e,t,o){return e?t>=o:t<=o}function G(e,t,o){return e?t<=o:t>=o}function K(e){e.stopPropagation()}var U=o(46348),X=(0,r.I)(q,U.Up,void 0,{scope:"DetailsHeader"}),Y=o(5141),Z=o(21005),Q=o(33347),$=o(70451),J=function(e){var t=e.columns,o=e.rowClassNames,n=e.cellStyleProps,r=void 0===n?$.AB:n,i=e.item,s=e.itemIndex,l=e.isSelected,c=e.onRenderItemColumn,u=e.getCellValueKey,f=e.onRenderField,p=e.cellsByColumn,h=e.enableUpdateAnimations,m=e.rowHeaderId,g=a.useRef(),v=g.current||(g.current={}),b=a.useCallback((function(e){var t=e.column,n=e.cellValueKey,i=e.className,s=e.onRender,l=e.item,c=e.itemIndex,u="undefined"===typeof t.calculatedWidth?"auto":t.calculatedWidth+r.cellLeftPadding+r.cellRightPadding+(t.isPadded?r.cellExtraRightPadding:0),f="".concat(t.key).concat(void 0!==n?"-".concat(n):"");return a.createElement("div",{key:f,id:t.isRowHeader?m:void 0,role:t.isRowHeader?"rowheader":"gridcell",className:(0,d.A)(t.className,t.isMultiline&&o.isMultiline,t.isRowHeader&&o.isRowHeader,o.cell,t.isPadded?o.cellPadded:o.cellUnpadded,i),style:{width:u},"data-automationid":"DetailsRowCell","data-automation-key":t.key},s(l,c,t))}),[o,r,m]);return a.createElement("div",{className:o.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map((function(e){var t=e.getValueKey,n=void 0===t?u:t,r=p&&e.key in p&&function(){return p[e.key]}||e.onRender||c||ee,a=b;e.onRenderField&&(a=(0,B.j)(e.onRenderField,a)),f&&(a=(0,B.j)(f,a));var d=v[e.key],m=h&&n?n(i,s,e):void 0,g=!1;return void 0!==m&&void 0!==d&&m!==d&&(g=!0),v[e.key]=m,a({item:i,itemIndex:s,isSelected:l,column:e,cellValueKey:m,className:g?o.cellAnimation:void 0,onRender:r})})))};function ee(e,t,o){return e&&o?function(e,t){var o=e&&t&&t.fieldName?e[t.fieldName]:"";return null!==o&&void 0!==o||(o=""),"boolean"===typeof o?o.toString():o}(e,o):null}var te=(0,s.Z)(),oe=[],ne=function(e){function t(t){var o=e.call(this,t)||this;return o._root=a.createRef(),o._cellMeasurer=a.createRef(),o._focusZone=a.createRef(),o._onSelectionChanged=function(){var e=re(o.props);(0,Y.ab)(e,o.state.selectionState)||o.setState({selectionState:e})},o._updateDroppingState=function(e,t){var n=o.state.isDropping,r=o.props,i=r.dragDropEvents,a=r.item;e?i.onDragEnter&&(o._droppingClassNames=i.onDragEnter(a,t)):i.onDragLeave&&i.onDragLeave(a,t),n!==e&&o.setState({isDropping:e})},(0,p.f)(o),o._events=new b.g(o),o.state={selectionState:re(t),columnMeasureInfo:void 0,isDropping:!1},o._droppingClassNames="",o}return(0,i.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){return(0,i.__assign)((0,i.__assign)({},t),{selectionState:re(e)})},t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,o=e.selection,n=e.item,r=e.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),o&&this._events.on(o,T.ij,this._onSelectionChanged),r&&n&&(this._onDidMountCalled=!0,r(this))},t.prototype.componentDidUpdate=function(e){var t=this.state,o=this.props,n=o.item,r=o.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})}n&&r&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,r(this))},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,o=e.onWillUnmount;o&&t&&o(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},t.prototype.shouldComponentUpdate=function(e,t){if(this.props.useReducedRowRenderer){var o=re(e);return this.state.selectionState.isSelected!==o.isSelected||!(0,Y.ab)(this.props,e)}return!0},t.prototype.render=function(){var e,t=this.props,o=t.className,n=t.columns,r=void 0===n?oe:n,s=t.dragDropEvents,l=t.item,c=t.itemIndex,u=t.id,f=t.flatIndexOffset,p=void 0===f?2:f,h=t.onRenderCheck,m=void 0===h?this._onRenderCheck:h,g=t.onRenderDetailsCheckbox,b=t.onRenderItemColumn,k=t.onRenderField,w=t.getCellValueKey,C=t.selectionMode,B=t.checkboxVisibility,I=t.getRowAriaLabel,E=t.getRowAriaDescription,z=t.getRowAriaDescribedBy,A=t.isGridRow,P=t.checkButtonAriaLabel,R=t.checkboxCellClassName,D=t.rowFieldsAs,N=t.selection,F=t.indentWidth,M=t.enableUpdateAnimations,j=t.compact,O=t.theme,H=t.styles,L=t.cellsByColumn,q=t.groupNestingDepth,W=t.useFastIcons,V=void 0===W||W,G=t.cellStyleProps,K=t.group,U=t.focusZoneProps,X=t.disabled,$=void 0!==X&&X,ee=this.state,ne=ee.columnMeasureInfo,re=ee.isDropping,ie=this.state.selectionState,ae=ie.isSelected,se=void 0!==ae&&ae,le=ie.isSelectionModal,ce=void 0!==le&&le,ue=s?!(!s.canDrag||!s.canDrag(l)):void 0,de=re?this._droppingClassNames||"is-dropping":"",fe=I?I(l):void 0,pe=E?E(l):void 0,he=z?z(l):void 0,me=!!N&&N.canSelectItem(l,c)&&!$,ge=C===T.Qc.multiple,ve=C!==T.Qc.none&&B!==v.GY.hidden,be=C===T.Qc.none?void 0:se,_e=K?c-K.startIndex+1:void 0,ye=K?K.count:void 0,xe=U?U.direction:x.E.horizontal;this._classNames=(0,i.__assign)((0,i.__assign)({},this._classNames),te(H,{theme:O,isSelected:se,canSelect:!ge,anySelected:ce,checkboxCellClassName:R,droppingClassName:de,className:o,compact:j,enableUpdateAnimations:M,cellStyleProps:G,disabled:$}));var ke={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};(0,Y.ab)(this._rowClassNames||{},ke)||(this._rowClassNames=ke);var we=D?(0,Z.C)(D,J):J,Ce=a.createElement(we,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(u,"-header"),cellsByColumn:L,columns:r,item:l,itemIndex:c,isSelected:se,columnStartIndex:(ve?1:0)+(q?1:0),onRenderItemColumn:b,onRenderField:k,getCellValueKey:w,enableUpdateAnimations:M,cellStyleProps:G}),Se=this.props.role?this.props.role:"row";this._ariaRowDescriptionId=(0,_.O)("DetailsRow-description");var Be=r.some((function(e){return!!e.isRowHeader})),Ie="".concat(u,"-checkbox")+(Be?" ".concat(u,"-header"):""),Ee=A?{}:{"aria-level":q&&q+1||void 0,"aria-posinset":_e,"aria-setsize":ye};return a.createElement(y.R,(0,i.__assign)({"data-is-focusable":!0},(0,Q.G1)(this.props,Q.JM),"boolean"===typeof ue?{"data-is-draggable":ue,draggable:ue}:{},U,Ee,{direction:xe,elementRef:this._root,componentRef:this._focusZone,role:Se,"aria-label":fe,"aria-disabled":$||void 0,"aria-describedby":pe?this._ariaRowDescriptionId:he,className:this._classNames.root,"data-selection-index":c,"data-selection-touch-invoke":!0,"data-selection-disabled":null!==(e=this.props["data-selection-disabled"])&&void 0!==e?e:$||void 0,"data-item-index":c,"aria-rowindex":void 0===_e?c+p:void 0,"data-automationid":"DetailsRow","aria-selected":be,allowFocusRoot:!0}),pe?a.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},pe):null,ve&&a.createElement("div",{role:"gridcell","data-selection-toggle":!0,className:this._classNames.checkCell},m({id:u?"".concat(u,"-checkbox"):void 0,selected:se,selectionMode:C,anySelected:ce,"aria-label":P,"aria-labelledby":u?Ie:void 0,canSelect:me,compact:j,className:this._classNames.check,theme:O,isVisible:B===v.GY.always,onRenderDetailsCheckbox:g,useFastIcons:V})),a.createElement(S.A,{indentWidth:F,role:"gridcell",count:0===q?-1:q}),l&&Ce,ne&&a.createElement("span",{role:"presentation",className:(0,d.A)(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},a.createElement(we,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(u,"-header"),columns:[ne.column],item:l,itemIndex:c,columnStartIndex:(ve?1:0)+(q?1:0)+r.length,onRenderItemColumn:b,getCellValueKey:w})))},t.prototype.measureCell=function(e,t){var o=this.props.columns,n=void 0===o?oe:o,r=(0,i.__assign)({},n[e]);r.minWidth=0,r.maxWidth=999999,delete r.calculatedWidth,this.setState({columnMeasureInfo:{index:e,column:r,onMeasureDone:t}})},t.prototype.focus=function(e){var t;return void 0===e&&(e=!1),!!(null===(t=this._focusZone.current)||void 0===t?void 0:t.focus(e))},t.prototype._onRenderCheck=function(e){return a.createElement(F,(0,i.__assign)({},e))},t.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,o=e.itemIndex,n=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:o,context:{data:t,index:o},canDrag:n.canDrag,canDrop:n.canDrop,onDragStart:n.onDragStart,updateDropState:this._updateDroppingState,onDrop:n.onDrop,onDragEnd:n.onDragEnd,onDragOver:n.onDragOver}},t}(a.Component);function re(e){var t,o=e.itemIndex,n=e.selection;return{isSelected:!!(null===n||void 0===n?void 0:n.isIndexSelected(o)),isSelectionModal:!!(null===(t=null===n||void 0===n?void 0:n.isModal)||void 0===t?void 0:t.call(n))}}var ie=(0,r.I)(ne,$.Rp,void 0,{scope:"DetailsRow"}),ae=o(57717),se=o(20135),le=o(48856),ce=o(45818),ue=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];var de=function(e){function t(t){var o=e.call(this,t)||this;return o._updateComposedComponentRef=o._updateComposedComponentRef.bind(o),o}return(0,i.__extends)(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,o){void 0===o&&(o=ue);var n=[],r=function(r){"function"!==typeof t[r]||void 0!==e[r]||o&&-1!==o.indexOf(r)||(n.push(r),e[r]=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];t[r].apply(t,e)})};for(var i in t)r(i);return n}(this,e):this._hoisted&&(t=this,this._hoisted.forEach((function(e){return delete t[e]})))},t}(a.Component),fe=o(50963),pe=o(11499);function he(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 me(e){return function(t){function o(e){var o=t.call(this,e)||this;return o._root=a.createRef(),o._registerResizeObserver=function(){var e=(0,fe.z)(o._root.current);o._viewportResizeObserver=new e.ResizeObserver(o._onAsyncResize),o._viewportResizeObserver.observe(o._root.current)},o._unregisterResizeObserver=function(){o._viewportResizeObserver&&(o._viewportResizeObserver.disconnect(),delete o._viewportResizeObserver)},o._updateViewport=function(e){var t=o.state.viewport,n=o._root.current,r=he((0,pe.Hc)(n)),i=he(n);((i&&i.width)!==t.width||(r&&r.height)!==t.height)&&o._resizeAttempts<3&&i&&r?(o._resizeAttempts++,o.setState({viewport:{width:i.width,height:r.height}},(function(){o._updateViewport(e)}))):(o._resizeAttempts=0,e&&o._composedComponentInstance&&o._composedComponentInstance.forceUpdate())},o._async=new h.j(o),o._events=new b.g(o),o._resizeAttempts=0,o.state={viewport:{width:0,height:0}},o}return(0,i.__extends)(o,t),o.prototype.componentDidMount=function(){var e=this,t=this.props,o=t.delayFirstMeasure,n=t.disableResizeObserver,r=t.skipViewportMeasures,i=(0,fe.z)(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,500,{leading:!1}),r||(!n&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),o?this._async.setTimeout((function(){e._updateViewport()}),500):this._updateViewport())},o.prototype.componentDidUpdate=function(e){var t=e.skipViewportMeasures,o=this.props,n=o.disableResizeObserver,r=o.skipViewportMeasures,i=(0,fe.z)(this._root.current);r!==t&&(r?(this._unregisterResizeObserver(),this._events.off(i,"resize",this._onAsyncResize)):(!n&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),this._updateViewport()))},o.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},o.prototype.render=function(){var t=this.state.viewport,o=t.width>0&&t.height>0?t:void 0;return a.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},a.createElement(e,(0,i.__assign)({ref:this._updateComposedComponentRef,viewport:o},this.props)))},o.prototype.forceUpdate=function(){this._updateViewport(!0)},o.prototype._onAsyncResize=function(){this._updateViewport()},o.prototype._isResizeObserverAvailable=function(){var e=(0,fe.z)(this._root.current);return e&&e.ResizeObserver},o}(de)}var ge=o(60278),ve=(0,s.Z)(),be=100,_e={tabIndex:0},ye={},xe=function(e){var t=e.selection,o=e.ariaLabelForListHeader,n=e.ariaLabelForSelectAllCheckbox,r=e.ariaLabelForSelectionColumn,s=e.className,p=e.checkboxVisibility,h=e.compact,m=e.constrainMode,g=e.dragDropEvents,b=e.groups,k=e.groupProps,w=e.indentWidth,C=e.items,S=e.isPlaceholderData,I=e.isHeaderVisible,E=e.layoutMode,z=e.onItemInvoked,A=e.onItemContextMenu,P=e.onColumnHeaderClick,R=e.onColumnHeaderContextMenu,D=e.selectionMode,F=void 0===D?t.mode:D,M=e.selectionPreservedOnEmptyClick,j=e.selectionZoneProps,O=e.ariaLabel,H=e.ariaLabelForGrid,L=e.rowElementEventMap,q=e.shouldApplyApplicationRole,W=void 0!==q&&q,V=e.getKey,G=e.listProps,K=e.usePageCache,U=e.onShouldVirtualize,Y=e.viewport,Q=e.minimumPixelsForDrag,J=e.getGroupHeight,ee=e.styles,te=e.theme,oe=e.cellStyleProps,ne=void 0===oe?$.AB:oe,re=e.onRenderCheckbox,ie=e.useFastIcons,se=e.dragDropHelper,ue=e.adjustedColumns,de=e.isCollapsed,fe=e.isSizing,pe=e.isSomeGroupExpanded,he=e.version,me=e.rootRef,be=e.listRef,xe=e.focusZoneRef,ke=e.columnReorderOptions,we=e.groupedListRef,Ce=e.headerRef,Se=e.onGroupExpandStateChanged,Be=e.onColumnIsSizingChanged,Ie=e.onRowDidMount,Ee=e.onRowWillUnmount,ze=e.disableSelectionZone,Te=e.isSelectedOnFocus,Ae=void 0===Te||Te,Pe=e.onColumnResized,Re=e.onColumnAutoResized,De=e.onToggleCollapse,Ne=e.onActiveRowChanged,Fe=e.onBlur,Me=e.rowElementEventMap,je=e.onRenderMissingItem,Oe=e.onRenderItemColumn,He=e.onRenderField,Le=e.getCellValueKey,qe=e.getRowAriaLabel,We=e.getRowAriaDescribedBy,Ve=e.checkButtonAriaLabel,Ge=e.checkButtonGroupAriaLabel,Ke=e.checkboxCellClassName,Ue=e.useReducedRowRenderer,Xe=e.enableUpdateAnimations,Ye=e.enterModalSelectionOnTouch,Ze=e.onRenderDefaultRow,Qe=e.selectionZoneRef,$e=e.focusZoneProps,Je="grid",et=e.role?e.role:Je,tt=(0,_.O)("row"),ot=function(e){var t=0,o=e;for(;o&&o.length>0;)t++,o=o[0].children;return t}(b),nt=function(e){return a.useMemo((function(){var t={};if(e)for(var o=1,n=1,r=0,i=e;r<i.length;r++){var a=i[r];t[a.key]={numOfGroupHeadersBeforeItem:n,totalRowCount:o},n++,o+=a.count+1}return t}),[e])}(b),rt=a.useMemo((function(){return(0,i.__assign)({renderedWindowsAhead:fe?0:2,renderedWindowsBehind:fe?0:2,getKey:V,version:he},G)}),[fe,V,he,G]),it=N.none;if(F===T.Qc.single&&(it=N.hidden),F===T.Qc.multiple){var at=k&&k.headerProps&&k.headerProps.isCollapsedGroupSelectVisible;void 0===at&&(at=!0),it=at||!b||pe?N.visible:N.hidden}p===v.GY.hidden&&(it=N.none);var st=a.useCallback((function(e){return a.createElement(X,(0,i.__assign)({},e))}),[]),lt=a.useCallback((function(){return null}),[]),ct=e.onRenderDetailsHeader,ut=a.useMemo((function(){return ct?(0,B.j)(ct,st):st}),[ct,st]),dt=e.onRenderDetailsFooter,ft=a.useMemo((function(){return dt?(0,B.j)(dt,lt):lt}),[dt,lt]),pt=a.useMemo((function(){return{columns:ue,groupNestingDepth:ot,selection:t,selectionMode:F,viewport:Y,checkboxVisibility:p,indentWidth:w,cellStyleProps:ne}}),[ue,ot,t,F,Y,p,w,ne]),ht=ke&&ke.onDragEnd,mt=a.useCallback((function(e,t){var o=e.dropLocation,n=v.Fk.outside;if(ht){if(o&&o!==v.Fk.header)n=o;else if(me.current){var r=me.current.getBoundingClientRect();t.clientX>r.left&&t.clientX<r.right&&t.clientY>r.top&&t.clientY<r.bottom&&(n=v.Fk.surface)}ht(n)}}),[ht,me]),gt=a.useMemo((function(){if(ke)return(0,i.__assign)((0,i.__assign)({},ke),{onColumnDragEnd:mt})}),[ke,mt]),vt=(I?1:0)+(e.onRenderDetailsFooter?1:0)+function(e){var t=0;if(e)for(var o=(0,i.__spreadArray)([],e,!0),n=void 0;o&&o.length>0;)++t,(n=o.pop())&&n.children&&o.push.apply(o,n.children);return t}(b)+(C?C.length:0),bt=(it!==N.none?1:0)+(ue?ue.length:0)+(b?1:0),_t=a.useMemo((function(){return ve(ee,{theme:te,compact:h,isFixed:E===v.ch.fixedColumns,isHorizontalConstrained:m===v.PF.horizontalConstrained,className:s})}),[ee,te,h,E,m,s]),yt=k&&k.onRenderFooter,xt=a.useMemo((function(){return yt?function(e,o){return yt((0,i.__assign)((0,i.__assign)({},e),{columns:ue,groupNestingDepth:ot,indentWidth:w,selection:t,selectionMode:F,viewport:Y,checkboxVisibility:p,cellStyleProps:ne}),o)}:void 0}),[yt,ue,ot,w,t,F,Y,p,ne]),kt=k&&k.onRenderHeader,wt=a.useMemo((function(){return kt?function(e,o){var n,r,a=e.groupIndex,s=void 0!==a?null===(r=null===(n=e.groups)||void 0===n?void 0:n[a])||void 0===r?void 0:r.key:void 0,l=void 0!==s&&nt[s]?nt[s].totalRowCount:0;return kt((0,i.__assign)((0,i.__assign)({},e),{columns:ue,groupNestingDepth:ot,indentWidth:w,selection:t,selectionMode:p!==v.GY.hidden?F:T.Qc.none,viewport:Y,checkboxVisibility:p,cellStyleProps:ne,ariaColSpan:ue.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==a?l+(I?1:0):void 0}),o)}:function(e,t){var o,n,r=e.groupIndex,a=void 0!==r?null===(n=null===(o=e.groups)||void 0===o?void 0:o[r])||void 0===n?void 0:n.key:void 0,s=void 0!==a&&nt[a]?nt[a].totalRowCount:0;return t((0,i.__assign)((0,i.__assign)({},e),{ariaColSpan:ue.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==r?s+(I?1:0):void 0}))}}),[kt,ue,ot,w,I,t,F,Y,p,ne,nt]),Ct=a.useMemo((function(){var e;return(0,i.__assign)((0,i.__assign)({},k),{role:et===Je?"rowgroup":"presentation",onRenderFooter:xt,onRenderHeader:wt,headerProps:(0,i.__assign)((0,i.__assign)({},null===k||void 0===k?void 0:k.headerProps),{selectAllButtonProps:(0,i.__assign)({"aria-label":Ge},null===(e=null===k||void 0===k?void 0:k.headerProps)||void 0===e?void 0:e.selectAllButtonProps)})})}),[k,xt,wt,Ge,et]),St=(0,ge.d)((function(){return(0,l.J9)((function(e){var t=0;return e.forEach((function(e){return t+=e.calculatedWidth||e.minWidth})),t}))})),Bt=k&&k.collapseAllVisibility,It=a.useMemo((function(){return St(ue)}),[ue,St]),Et=a.useCallback((function(o,n,r,i){var a=e.onRenderRow?(0,B.j)(e.onRenderRow,Ze):Ze,s=i?i.key:void 0,l=s&&nt[s]?nt[s].numOfGroupHeadersBeforeItem:0,c=et===Je?void 0:"presentation",u=I||r>0?ye:_e,d={item:n,itemIndex:r,flatIndexOffset:(I?2:1)+l,compact:h,columns:ue,groupNestingDepth:o,id:"".concat(tt,"-").concat(r),selectionMode:F,selection:t,onDidMount:Ie,onWillUnmount:Ee,onRenderItemColumn:Oe,onRenderField:He,getCellValueKey:Le,eventsToRegister:Me,dragDropEvents:g,dragDropHelper:se,viewport:Y,checkboxVisibility:p,collapseAllVisibility:Bt,getRowAriaLabel:qe,getRowAriaDescribedBy:We,checkButtonAriaLabel:Ve,checkboxCellClassName:Ke,useReducedRowRenderer:Ue,indentWidth:w,cellStyleProps:ne,onRenderDetailsCheckbox:re,enableUpdateAnimations:Xe,rowWidth:It,useFastIcons:ie,role:c,isGridRow:!0,focusZoneProps:u};return n?a(d):je?je(r,d):null}),[h,ue,F,t,tt,Ie,Ee,Oe,He,Le,Me,g,se,Y,p,Bt,qe,We,I,Ve,Ke,Ue,w,ne,re,Xe,ie,Ze,je,e.onRenderRow,It,et,nt]),zt=a.useCallback((function(e){return function(t,o){return Et(e,t,o)}}),[Et]),Tt=a.useCallback((function(e){return e.which===(0,c.SM)(u.c.right,te)}),[te]),At=(0,i.__assign)((0,i.__assign)({},$e),{componentRef:$e&&$e.componentRef?$e.componentRef:xe,className:$e&&$e.className?(0,d.A)(_t.focusZone,$e.className):_t.focusZone,direction:$e?$e.direction:x.E.vertical,shouldEnterInnerZone:$e&&$e.shouldEnterInnerZone?$e.shouldEnterInnerZone:Tt,onActiveElementChanged:$e&&$e.onActiveElementChanged?$e.onActiveElementChanged:Ne,shouldRaiseClicksOnEnter:!1,onBlur:$e&&$e.onBlur?$e.onBlur:Fe}),Pt=b&&(null===k||void 0===k?void 0:k.groupedListAs)?(0,Z.C)(k.groupedListAs,le.D):le.D,Rt=b?a.createElement(Pt,{focusZoneProps:At,componentRef:we,groups:b,groupProps:Ct,items:C,onRenderCell:Et,role:"presentation",selection:t,selectionMode:p!==v.GY.hidden?F:T.Qc.none,dragDropEvents:g,dragDropHelper:se,eventsToRegister:L,listProps:rt,onGroupExpandStateChanged:Se,usePageCache:K,onShouldVirtualize:U,getGroupHeight:J,compact:h}):a.createElement(y.R,(0,i.__assign)({},At),a.createElement(ce.B,(0,i.__assign)({ref:be,role:"presentation",items:C,onRenderCell:zt(0),usePageCache:K,onShouldVirtualize:U},rt))),Dt=a.useCallback((function(e){e.which===u.c.down&&xe.current&&xe.current.focus()&&(Ae&&0===t.getSelectedIndices().length&&t.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())}),[t,xe,Ae]),Nt=a.useCallback((function(e){e.which!==u.c.up||e.altKey||Ce.current&&Ce.current.focus()&&(e.preventDefault(),e.stopPropagation())}),[Ce]);return a.createElement("div",(0,i.__assign)({ref:me,className:_t.root,"data-automationid":"DetailsList","data-is-scrollable":"false"},W?{role:"application"}:{}),a.createElement(f.MO,null),a.createElement("div",{role:et,"aria-label":H||O,"aria-rowcount":S?0:vt,"aria-colcount":bt,"aria-busy":S},a.createElement("div",{onKeyDown:Dt,role:"presentation",className:_t.headerWrapper},I&&ut({componentRef:Ce,selectionMode:F,layoutMode:E,selection:t,columns:ue,onColumnClick:P,onColumnContextMenu:R,onColumnResized:Pe,onColumnIsSizingChanged:Be,onColumnAutoResized:Re,groupNestingDepth:ot,isAllCollapsed:de,onToggleCollapseAll:De,ariaLabel:o,ariaLabelForSelectAllCheckbox:n,ariaLabelForSelectionColumn:r,selectAllVisibility:it,collapseAllVisibility:k&&k.collapseAllVisibility,viewport:Y,columnReorderProps:gt,minimumPixelsForDrag:Q,cellStyleProps:ne,checkboxVisibility:p,indentWidth:w,onRenderDetailsCheckbox:re,rowWidth:St(ue),useFastIcons:ie},ut)),a.createElement("div",{onKeyDown:Nt,role:"presentation",className:_t.contentWrapper},ze?Rt:a.createElement(ae.Z,(0,i.__assign)({ref:Qe,selection:t,selectionPreservedOnEmptyClick:M,selectionMode:F,isSelectedOnFocus:Ae,selectionClearedOnEscapePress:Ae,toggleWithoutModifierPressed:!Ae,onItemInvoked:z,onItemContextMenu:A,enterModalOnTouch:Ye},j||{}),Rt)),ft((0,i.__assign)({},pt))))},ke=function(e){function t(t){var o=e.call(this,t)||this;return o._root=a.createRef(),o._header=a.createRef(),o._groupedList=a.createRef(),o._list=a.createRef(),o._focusZone=a.createRef(),o._selectionZone=a.createRef(),o._onRenderRow=function(e,t){return a.createElement(ie,(0,i.__assign)({},e))},o._getDerivedStateFromProps=function(e,t){var n=o.props,r=n.checkboxVisibility,a=n.items,s=n.setKey,l=n.selectionMode,c=void 0===l?o._selection.mode:l,u=n.columns,d=n.viewport,f=n.compact,p=n.dragDropEvents,h=(o.props.groupProps||{}).isAllGroupsCollapsed,m=void 0===h?void 0:h,g=e.viewport&&e.viewport.width||0,v=d&&d.width||0,b=e.setKey!==s||void 0===e.setKey,_=!1;e.layoutMode!==o.props.layoutMode&&(_=!0);var y=t;return b&&(o._initialFocusedIndex=e.initialFocusedIndex,y=(0,i.__assign)((0,i.__assign)({},y),{focusedItemIndex:void 0!==o._initialFocusedIndex?o._initialFocusedIndex:-1})),o.props.disableSelectionZone||e.items===a||o._selection.setItems(e.items,b),e.checkboxVisibility===r&&e.columns===u&&g===v&&e.compact===f||(_=!0),y=(0,i.__assign)((0,i.__assign)({},y),o._adjustColumns(e,y,!0)),e.selectionMode!==c&&(_=!0),void 0===m&&e.groupProps&&void 0!==e.groupProps.isAllGroupsCollapsed&&(y=(0,i.__assign)((0,i.__assign)({},y),{isCollapsed:e.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!e.groupProps.isAllGroupsCollapsed})),e.dragDropEvents!==p&&(o._dragDropHelper&&o._dragDropHelper.dispose(),o._dragDropHelper=e.dragDropEvents?new j({selection:o._selection,minimumPixelsForDrag:e.minimumPixelsForDrag}):void 0,_=!0),_&&(y=(0,i.__assign)((0,i.__assign)({},y),{version:{}})),y},o._onGroupExpandStateChanged=function(e){o.setState({isSomeGroupExpanded:e})},o._onColumnIsSizingChanged=function(e,t){o.setState({isSizing:t})},o._onRowDidMount=function(e){var t=e.props,n=t.item,r=t.itemIndex,i=o._getItemKey(n,r);o._activeRows[i]=e,o._setFocusToRowIfPending(e);var a=o.props.onRowDidMount;a&&a(n,r)},o._onRowWillUnmount=function(e){var t=o.props.onRowWillUnmount,n=e.props,r=n.item,i=n.itemIndex,a=o._getItemKey(r,i);delete o._activeRows[a],t&&t(r,i)},o._onToggleCollapse=function(e){o.setState({isCollapsed:e}),o._groupedList.current&&o._groupedList.current.toggleCollapseAll(e)},o._onColumnResized=function(e,t,n){var r=Math.max(e.minWidth||be,t);o.props.onColumnResize&&o.props.onColumnResize(e,r,n),o._rememberCalculatedWidth(e,r),o.setState((0,i.__assign)((0,i.__assign)({},o._adjustColumns(o.props,o.state,!0,n)),{version:{}}))},o._onColumnAutoResized=function(e,t){var n=0,r=0,i=Object.keys(o._activeRows).length;for(var a in o._activeRows){if(o._activeRows.hasOwnProperty(a))o._activeRows[a].measureCell(t,(function(a){n=Math.max(n,a),++r===i&&o._onColumnResized(e,n,t)}))}},o._onActiveRowChanged=function(e,t){var n=o.props,r=n.items,i=n.onActiveItemChanged;if(e&&e.getAttribute("data-item-index")){var a=Number(e.getAttribute("data-item-index"));a>=0&&(i&&i(r[a],a,t),o.setState({focusedItemIndex:a}))}},o._onBlur=function(e){o.setState({focusedItemIndex:-1})},(0,p.f)(o),o._async=new h.j(o),o._activeRows={},o._columnOverrides={},o.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:o._getAdjustedColumns(t,void 0),isSizing:!1,isCollapsed:t.groupProps&&t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:t.groupProps&&!t.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:o._getDerivedStateFromProps},(0,m.Y)("DetailsList",t,{selection:"getKey"}),o._selection=t.selection||new se.L({onSelectionChanged:void 0,getKey:t.getKey,selectionMode:t.selectionMode}),o.props.disableSelectionZone||o._selection.setItems(t.items,!1),o._dragDropHelper=t.dragDropEvents?new j({selection:o._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,o._initialFocusedIndex=t.initialFocusedIndex,o}return(0,i.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},t.prototype.scrollToIndex=function(e,t,o){this._list.current&&this._list.current.scrollToIndex(e,t,o),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,o)},t.prototype.focusIndex=function(e,t,o,n){void 0===t&&(t=!1);var r=this.props.items[e];if(r){this.scrollToIndex(e,o,n);var i=this._getItemKey(r,e),a=this._activeRows[i];a&&this._setFocusToRow(a,t)}},t.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},t.prototype.updateColumn=function(e,t){var o,n,r=this.props,i=r.columns,a=void 0===i?[]:i,s=r.selectionMode,l=r.checkboxVisibility,c=r.columnReorderOptions,u=t.width,d=t.newColumnIndex,f=a.findIndex((function(t){return t.key===e.key}));if(u&&this._onColumnResized(e,u,f),void 0!==d&&c){var p=s===T.Qc.none||l===v.GY.hidden,h=(l!==v.GY.hidden?2:1)+f,m=p?h-1:h-2,g=p?d-1:d-2,b=null!==(o=c.frozenColumnCountFromStart)&&void 0!==o?o:0,_=null!==(n=c.frozenColumnCountFromEnd)&&void 0!==n?n:0;if(g>=b&&g<a.length-_)if(c.onColumnDrop){var y={draggedIndex:m,targetIndex:g};c.onColumnDrop(y)}else c.handleColumnReorder&&c.handleColumnReorder(m,g)}},t.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},t.prototype.componentDidUpdate=function(e,t){if((this._notifyColumnsResized(),void 0!==this._initialFocusedIndex)&&(i=this.props.items[this._initialFocusedIndex])){var o=this._getItemKey(i,this._initialFocusedIndex);(n=this._activeRows[o])&&this._setFocusToRowIfPending(n)}if(this.props.items!==e.items&&this.props.items.length>0&&-1!==this.state.focusedItemIndex&&!(0,g.s)(this._root.current,document.activeElement,!1)){var n,r=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,i=this.props.items[r];o=this._getItemKey(i,this.state.focusedItemIndex);(n=this._activeRows[o])?this._setFocusToRow(n):this._initialFocusedIndex=r}this.props.onDidUpdate&&this.props.onDidUpdate(this)},t.prototype.render=function(){return a.createElement(xe,(0,i.__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}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.props.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},t.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout((function(){e.focus(t)}),0)},t.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},t.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach((function(e){e.onColumnResize&&e.onColumnResize(e.currentWidth)}))},t.prototype._adjustColumns=function(e,t,o,n){var r=this._getAdjustedColumns(e,t,o,n),a=this.props.viewport,s=a&&a.width?a.width:0;return(0,i.__assign)((0,i.__assign)({},t),{adjustedColumns:r,lastWidth:s})},t.prototype._getAdjustedColumns=function(e,t,o,n){var r,i=this,a=e.items,s=e.layoutMode,l=e.selectionMode,c=e.viewport,u=c&&c.width?c.width:0,d=e.columns,f=this.props?this.props.columns:[],p=t?t.lastWidth:-1,h=t?t.lastSelectionMode:void 0;return o||p!==u||h!==l||f&&d!==f?(d=d||function(e,t,o,n,r,i,a,s){var l=[];if(e&&e.length){var c=e[0];for(var u in c)c.hasOwnProperty(u)&&l.push({key:u,name:u,fieldName:u,minWidth:be,maxWidth:300,isCollapsible:!!l.length,isMultiline:void 0!==a&&a,isSorted:n===u,isSortedDescending:!!r,isRowHeader:!1,columnActionsMode:null!==s&&void 0!==s?s:v.vn.clickable,isResizable:t,onColumnClick:o,isGrouped:i===u})}return l}(a,!0),s===v.ch.fixedColumns?(r=this._getFixedColumns(d,u,e)).forEach((function(e){i._rememberCalculatedWidth(e,e.calculatedWidth)})):(r=this._getJustifiedColumns(d,u,e)).forEach((function(e){i._getColumnOverride(e.key).currentWidth=e.calculatedWidth})),r):d||[]},t.prototype._getFixedColumns=function(e,t,o){var n=this,r=this.props,a=r.selectionMode,s=void 0===a?this._selection.mode:a,l=r.checkboxVisibility,c=r.flexMargin,u=r.skipViewportMeasures,d=t-(c||0),f=0;e.forEach((function(e){u||!e.flexGrow?d-=e.maxWidth||e.minWidth||be:(d-=e.minWidth||be,f+=e.flexGrow),d-=we(e,o,!0)}));var p=s!==T.Qc.none&&l!==v.GY.hidden?z.f:0,h=this._getGroupNestingDepth()*S.k,m=(d-=p+h)/f;return u||e.forEach((function(e){var t=(0,i.__assign)((0,i.__assign)({},e),n._columnOverrides[e.key]);if(t.flexGrow&&t.maxWidth){var o=t.flexGrow*m+t.minWidth,r=o-t.maxWidth;r>0&&(d+=r,f-=r/(o-t.minWidth)*t.flexGrow)}})),m=d>0?d/f:0,e.map((function(e){var t=(0,i.__assign)((0,i.__assign)({},e),n._columnOverrides[e.key]);return!u&&t.flexGrow&&d<=0||t.calculatedWidth||(!u&&t.flexGrow?(t.calculatedWidth=t.minWidth+t.flexGrow*m,t.calculatedWidth=Math.min(t.calculatedWidth,t.maxWidth||Number.MAX_VALUE)):t.calculatedWidth=t.maxWidth||t.minWidth||be),t}))},t.prototype._getJustifiedColumns=function(e,t,o){var n=this,r=o.selectionMode,a=void 0===r?this._selection.mode:r,s=o.checkboxVisibility,l=o.skipViewportMeasures,c=a!==T.Qc.none&&s!==v.GY.hidden?z.f:0,u=this._getGroupNestingDepth()*S.k,d=0,f=0,p=t-(c+u),h=e.map((function(e,t){var r=(0,i.__assign)((0,i.__assign)({},e),{calculatedWidth:e.minWidth||be}),a=(0,i.__assign)((0,i.__assign)({},r),n._columnOverrides[e.key]);return r.isCollapsible||r.isCollapsable||(f+=we(r,o)),d+=we(a,o),a}));if(l)return h;for(var m=h.length-1;m>=0&&d>p;){var g=(x=h[m]).minWidth||be,b=d-p;if(x.calculatedWidth-g>=b||!x.isCollapsible&&!x.isCollapsable){var _=x.calculatedWidth;f<p&&(x.calculatedWidth=Math.max(x.calculatedWidth-b,g)),d-=_-x.calculatedWidth}else d-=we(x,o),h.splice(m,1);m--}for(var y=0;y<h.length&&d<p;y++){var x=h[y],k=y===h.length-1,w=this._columnOverrides[x.key];if(!w||!w.calculatedWidth||k){var C=p-d,B=void 0;if(k)B=C;else{var I=x.maxWidth;g=x.minWidth||I||be;B=I?Math.min(C,I-g):C}x.calculatedWidth=x.calculatedWidth+B,d+=B}}return h},t.prototype._rememberCalculatedWidth=function(e,t){var o=this._getColumnOverride(e.key);o.calculatedWidth=t,o.currentWidth=t},t.prototype._getColumnOverride=function(e){return this._columnOverrides[e]=this._columnOverrides[e]||{}},t.prototype._getItemKey=function(e,t){var o=this.props.getKey,n=void 0;return e&&(n=e.key),o&&(n=o(e,t)),n||(n=t),n},t.defaultProps={layoutMode:v.ch.justified,selectionMode:T.Qc.multiple,constrainMode:v.PF.horizontalConstrained,checkboxVisibility:v.GY.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},t=(0,i.__decorate)([me],t)}(a.Component);function we(e,t,o){var n=t.cellStyleProps,r=void 0===n?$.AB:n;return(o?0:e.calculatedWidth)+r.cellLeftPadding+r.cellRightPadding+(e.isPadded?r.cellExtraRightPadding:0)}var Ce=o(7354),Se={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"},Be=(0,r.I)(ke,(function(e){var t,o,n=e.theme,r=e.className,i=e.isHorizontalConstrained,a=e.compact,s=e.isFixed,l=n.semanticColors,c=(0,Ce.Km)(Se,n);return{root:[c.root,n.fonts.small,{position:"relative",color:l.listText,selectors:(t={},t["& .".concat(c.listCell)]={minHeight:38,wordBreak:"break-word"},t)},s&&c.isFixed,a&&[c.compact,{selectors:(o={},o[".".concat(c.listCell)]={minHeight:32},o)}],i&&[c.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],r],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:c.headerWrapper,contentWrapper:c.contentWrapper}}),void 0,{scope:"DetailsList"})},75708:function(e,t,o){"use strict";var n,r,i,a,s;o.d(t,{Fk:function(){return i},GY:function(){return s},PF:function(){return r},ch:function(){return a},vn:function(){return n}}),function(e){e[e.disabled=0]="disabled",e[e.clickable=1]="clickable",e[e.hasDropdown=2]="hasDropdown"}(n||(n={})),function(e){e[e.unconstrained=0]="unconstrained",e[e.horizontalConstrained=1]="horizontalConstrained"}(r||(r={})),function(e){e[e.outside=0]="outside",e[e.surface=1]="surface",e[e.header=2]="header"}(i||(i={})),function(e){e[e.fixedColumns=0]="fixedColumns",e[e.justified=1]="justified"}(a||(a={})),function(e){e[e.onHover=0]="onHover",e[e.always=1]="always",e[e.hidden=2]="hidden"}(s||(s={}))},70451:function(e,t,o){"use strict";o.d(t,{AB:function(){return l},Rp:function(){return d},s:function(){return c}});var n=o(84867),r=o(7354),i=o(40950),a=o(54733),s={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"},l={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},c={rowHeight:42,compactRowHeight:32},u=(0,n.__assign)((0,n.__assign)({},c),{rowVerticalPadding:11,compactRowVerticalPadding:6}),d=function(e){var t,o,c,d,f,p,h,m,g,v,b,_,y,x,k=e.theme,w=e.isSelected,C=e.canSelect,S=e.droppingClassName,B=e.isCheckVisible,I=e.checkboxCellClassName,E=e.compact,z=e.className,T=e.cellStyleProps,A=void 0===T?l:T,P=e.enableUpdateAnimations,R=e.disabled,D=k.palette,N=k.fonts,F=D.neutralPrimary,M=D.white,j=D.neutralSecondary,O=D.neutralLighter,H=D.neutralLight,L=D.neutralDark,q=D.neutralQuaternaryAlt,W=k.semanticColors,V=W.focusBorder,G=W.linkHovered,K=(0,r.Km)(s,k),U={defaultHeaderText:F,defaultMetaText:j,defaultBackground:M,defaultHoverHeaderText:L,defaultHoverMetaText:F,defaultHoverBackground:O,selectedHeaderText:L,selectedMetaText:F,selectedBackground:H,selectedHoverHeaderText:L,selectedHoverMetaText:F,selectedHoverBackground:q,focusHeaderText:L,focusMetaText:F,focusBackground:H,focusHoverBackground:q},X=[(0,r.gm)(k,{inset:-1,borderColor:V,outlineColor:M,highContrastStyle:{top:2,right:2,bottom:2,left:2},pointerEvents:"none"}),K.isSelected,{color:U.selectedMetaText,background:U.selectedBackground,borderBottom:"1px solid ".concat(M),selectors:(t={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid ".concat(M)}},t[".".concat(K.cell," > .").concat(a.e.root)]={color:G,selectors:(o={},o[r.up]={color:"HighlightText"},o)},t["&:hover"]={background:U.selectedHoverBackground,color:U.selectedHoverMetaText,selectors:(c={},c[r.up]={background:"Highlight",selectors:(d={},d[".".concat(K.cell)]={color:"HighlightText"},d[".".concat(K.cell," > .").concat(a.e.root)]={forcedColorAdjust:"none",color:"HighlightText"},d)},c[".".concat(K.isRowHeader)]={color:U.selectedHoverHeaderText,selectors:(f={},f[r.up]={color:"HighlightText"},f)},c)},t["&:focus"]={background:U.focusBackground,selectors:(p={},p[".".concat(K.cell)]={color:U.focusMetaText,selectors:(h={},h[r.up]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},h)},p[".".concat(K.isRowHeader)]={color:U.focusHeaderText,selectors:(m={},m[r.up]={color:"HighlightText"},m)},p[r.up]={background:"Highlight"},p)},t[r.up]=(0,n.__assign)((0,n.__assign)({background:"Highlight",color:"HighlightText"},(0,r.Qg)()),{selectors:{a:{color:"HighlightText"}}}),t["&:focus:hover"]={background:U.focusHoverBackground},t)}],Y=[K.isContentUnselectable,{userSelect:"none",cursor:"default"}],Z={minHeight:u.compactRowHeight,border:0},Q={minHeight:u.compactRowHeight,paddingTop:u.compactRowVerticalPadding,paddingBottom:u.compactRowVerticalPadding,paddingLeft:"".concat(A.cellLeftPadding,"px")},$=[(0,r.gm)(k,{inset:-1}),K.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:u.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:u.rowVerticalPadding,paddingBottom:u.rowVerticalPadding,paddingLeft:"".concat(A.cellLeftPadding,"px"),selectors:(g={"& > button":{maxWidth:"100%"}},g["[data-is-focusable='true']"]=(0,r.gm)(k,{inset:-1,borderColor:j,outlineColor:M}),g)},w&&{selectors:(v={},v[r.up]=(0,n.__assign)({background:"Highlight",color:"HighlightText"},(0,r.Qg)()),v)},E&&Q,R&&{opacity:.5}];return{root:[K.root,r.lw.fadeIn400,S,k.fonts.small,B&&K.isCheckVisible,(0,r.gm)(k,{borderColor:V,outlineColor:M}),{borderBottom:"1px solid ".concat(O),background:U.defaultBackground,color:U.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:u.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(b={},b[".".concat(K.listCellFirstChild," &:before")]={display:"none"},b["&:hover"]={background:U.defaultHoverBackground,color:U.defaultHoverMetaText,selectors:(_={},_[".".concat(K.isRowHeader)]={color:U.defaultHoverHeaderText},_[".".concat(K.cell," > .").concat(a.e.root)]={color:G},_)},b["&:hover .".concat(K.check)]={opacity:1},b[".".concat(i.Y2," &:focus .").concat(K.check)]={opacity:1},b[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},b)},w&&X,!C&&Y,E&&Z,z],cellUnpadded:{paddingRight:"".concat(A.cellRightPadding,"px")},cellPadded:{paddingRight:"".concat(A.cellExtraRightPadding+A.cellRightPadding,"px"),selectors:(y={},y["&.".concat(K.cellCheck)]={paddingRight:0},y)},cell:$,cellAnimation:P&&r.Dm.slideLeftIn40,cellMeasurer:[K.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[$,K.cellCheck,I,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],fields:[K.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[K.isRowHeader,{color:U.defaultHeaderText,fontSize:N.medium.fontSize},w&&{color:U.selectedHeaderText,fontWeight:r.BO.semibold,selectors:(x={},x[r.up]={color:"HighlightText"},x)}],isMultiline:[$,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[K.check]}}},48939:function(e,t,o){"use strict";o.d(t,{d:function(){return c},f:function(){return l}});var n=o(7354),r=o(70451),i=o(46348),a=o(59575),s={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},l=48,c=function(e){var t=e.theme,o=e.className,c=e.isHeader,u=e.selected,d=e.anySelected,f=e.canSelect,p=e.compact,h=e.isVisible,m=(0,n.Km)(s,t),g=r.s.rowHeight,v=r.s.compactRowHeight,b=c?i.uF:p?v:g,_=h||u||d;return{root:[m.root,o],check:[!f&&m.isDisabled,c&&m.isHeader,(0,n.gm)(t),t.fonts.small,a.Y.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:_?1:0,height:b,width:l,padding:0,margin:0}],isDisabled:[]}}},69778:function(e,t,o){"use strict";o.d(t,{E:function(){return f}});var n=o(75425),r=o(84867),i=o(80322),a=o(26858),s=o(81708),l=(0,a.Z)(),c=function(e){function t(t){var o=e.call(this,t)||this;return(0,s.f)(o),o}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.styles,n=e.theme;return this._classNames=l(o,{theme:n,className:t}),i.createElement("div",{className:this._classNames.actions},i.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return i.Children.map(this.props.children,(function(t){return t?i.createElement("span",{className:e._classNames.action},t):null}))},t}(i.Component),u=o(7354),d={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},f=(0,n.I)(c,(function(e){var t=e.className,o=e.theme,n=(0,u.Km)(d,o);return{actions:[n.actions,{position:"relative",width:"100%",minHeight:"24px",lineHeight:"24px",margin:"16px 0 0",fontSize:"0",selectors:{".ms-Button":{lineHeight:"normal",verticalAlign:"middle"}}},t],action:[n.action,{margin:"0 4px"}],actionsRight:[n.actionsRight,{alignItems:"center",display:"flex",fontSize:"0",justifyContent:"flex-end",marginRight:"-4px"}]}}),void 0,{scope:"DialogFooter"});f.displayName="DialogFooter"},78352:function(e,t,o){"use strict";o.d(t,{g:function(){return B}});var n=o(75425),r=o(84867),i=o(80322),a=o(26858),s=o(81708),l=o(50453),c=o(33347),u=o(31244),d=o(8174),f=o(28620),p=o(8492),h=o(7354),m=o(65808),g=o(33530),v=(0,m.J9)((function(e,t,o){var n=(0,g.$)(e),i=(0,h.TW)(n,o);return(0,r.__assign)((0,r.__assign)({},i),{root:[n.root,t,e.fonts.medium,o&&o.root]})})),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.styles,n=(0,r.__rest)(e,["className","styles"]),a=v(this.props.theme,t,o);return i.createElement(d.S,(0,r.__assign)({},n,{variantClassName:"ms-Button--facepile",styles:a,onRenderDescription:f.K}))},t=(0,r.__decorate)([(0,p.T)("FacepileButton",["theme","styles"],!0)],t)}(i.Component),_=o(12300),y=o(16184),x=o(29948),k=o(55516),w=(0,a.Z)(),C=function(e){function t(t){var o=e.call(this,t)||this;return o._classNames=w(o.props.styles,{theme:o.props.theme,className:o.props.className}),o._getPersonaControl=function(e){var t=o.props,n=t.getPersonaProps,a=t.personaSize;return i.createElement(y.F,(0,r.__assign)({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:a},n?n(e):null,{styles:{details:{flex:"1 0 auto"}}}))},o._getPersonaCoinControl=function(e){var t=o.props,n=t.getPersonaProps,a=t.personaSize;return i.createElement(x.c,(0,r.__assign)({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:a},n?n(e):null))},(0,s.f)(o),o._ariaDescriptionId=(0,l.O)(),o}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,o=t.chevronButtonProps,n=t.maxDisplayablePersonas,r=t.personas,a=t.overflowPersonas,s=t.showAddButton,l=t.ariaLabel,c=t.showTooltip,u=void 0===c||c,d=this._classNames,f="number"===typeof n?Math.min(r.length,n):r.length;o&&!e&&(e=o);var p=a&&a.length>0,h=p?r:r.slice(0,f),m=(p?a:r.slice(f))||[];return i.createElement("div",{className:d.root},this.onRenderAriaDescription(),i.createElement("div",{className:d.itemContainer},s?this._getAddNewElement():null,i.createElement("ul",{className:d.members,"aria-label":l},this._onRenderVisiblePersonas(h,0===m.length&&1===r.length,u)),e?this._getOverflowElement(m):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&i.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t,o){var n=this,r=this.props,a=r.onRenderPersona,s=void 0===a?this._getPersonaControl:a,l=r.onRenderPersonaCoin,c=void 0===l?this._getPersonaCoinControl:l,u=r.onRenderPersonaWrapper;return e.map((function(e,r){var a=t?s(e,n._getPersonaControl):c(e,n._getPersonaCoinControl),l=e.onClick?function(){return n._getElementWithOnClickEvent(a,e,o,r)}:function(){return n._getElementWithoutOnClickEvent(a,e,o,r)};return i.createElement("li",{key:"".concat(t?"persona":"personaCoin","-").concat(r),className:n._classNames.member},u?u(e,l):l())}))},t.prototype._getElementWithOnClickEvent=function(e,t,o,n){var a=t.keytipProps;return i.createElement(b,(0,r.__assign)({},(0,c.G1)(t,c.uw),this._getElementProps(t,o,n),{keytipProps:a,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,o,n){return i.createElement("div",(0,r.__assign)({},(0,c.G1)(t,c.uw),this._getElementProps(t,o,n)),e)},t.prototype._getElementProps=function(e,t,o){var n=this._classNames;return{key:(e.imageUrl?"i":"")+o,"data-is-focusable":!0,className:n.itemButton,title:t?e.personaName:void 0,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case u.Z.descriptive:return this._getDescriptiveOverflowElement(e);case u.Z.downArrow:return this._getIconElement("ChevronDown");case u.Z.more:return this._getIconElement("More");default:return null}},t.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var o=e.map((function(e){return e.personaName})).join(", "),n=(0,r.__assign)({title:o},this.props.overflowButtonProps),a=Math.max(e.length,0),s=this._classNames;return i.createElement(b,(0,r.__assign)({},n,{ariaDescription:n.title,className:s.descriptiveOverflowButton}),i.createElement(x.c,{size:t,onRenderInitials:this._renderInitialsNotPictured(a),initialsColor:k.f5.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,o=t.overflowButtonProps,n=t.personaSize,a=this._classNames;return i.createElement(b,(0,r.__assign)({},o,{className:a.overflowButton}),i.createElement(x.c,{size:n,onRenderInitials:this._renderInitials(e,!0),initialsColor:k.f5.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,o=e.personaSize,n=this._classNames;return i.createElement(b,(0,r.__assign)({},t,{className:n.addButton}),i.createElement(x.c,{size:o,onRenderInitials:this._renderInitials("AddFriend")}))},t.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t.prototype._renderInitials=function(e,t){var o=this._classNames;return function(){return i.createElement(_.I,{iconName:e,className:t?o.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return i.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:k.WH.size32},t}(i.Component),S={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"},B=(0,n.I)(C,(function(e){var t,o=e.className,n=e.theme,r=e.spacingAroundItemButton,i=void 0===r?2:r,a=n.palette,s=n.fonts,l=(0,h.Km)(S,n),c={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[l.root,n.fonts.medium,{width:"auto"},o],addButton:[l.addButton,(0,h.gm)(n,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.white,backgroundColor:a.themePrimary,marginRight:2*i+"px",selectors:{"&:hover":{backgroundColor:a.themeDark},"&:focus":{backgroundColor:a.themeDark},"&:active":{backgroundColor:a.themeDarker},"&:disabled":{backgroundColor:a.neutralTertiaryAlt}}}],descriptiveOverflowButton:[l.descriptiveOverflowButton,(0,h.gm)(n,{inset:-1}),c,{fontSize:s.small.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],itemButton:[l.itemButton,c],itemContainer:[l.itemContainer,{display:"flex"}],members:[l.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-".concat(i,"px")}],member:[l.member,{display:"inline-flex",flex:"0 0 auto",margin:"".concat(i,"px")}],overflowButton:[l.overflowButton,(0,h.gm)(n,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],overflowInitialsIcon:[{color:a.neutralPrimary,selectors:(t={},t[h.up]={color:"WindowText"},t)}],screenReaderOnly:h.dX}}),void 0,{scope:"Facepile"})},31244:function(e,t,o){"use strict";var n;o.d(t,{Z:function(){return n}}),function(e){e[e.none=0]="none",e[e.descriptive=1]="descriptive",e[e.more=2]="more",e[e.downArrow=3]="downArrow"}(n||(n={}))},9970:function(e,t,o){"use strict";o.d(t,{A:function(){return i},k:function(){return r}});var n=o(80322),r=36,i=function(e){var t=e.count,o=e.indentWidth,i=void 0===o?r:o,a=e.role,s=void 0===a?"presentation":a,l=t*i;return t>0?n.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:l},role:s}):null}},48856:function(e,t,o){"use strict";o.d(t,{D:function(){return X}});var n=o(75425),r=o(7354),i={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},a="cubic-bezier(0.445, 0.050, 0.550, 0.950)",s=o(84867),l=o(80322),c=o(26858),u=o(16758),d=o(54121),f=o(81708),p=o(16711),h=o(50453),m=o(76929),g=o(21424),v=o(40950),b=o(70451),_=o(48939),y=o(9970),x={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"},k="cubic-bezier(0.075, 0.820, 0.165, 1.000)",w="cubic-bezier(0.390, 0.575, 0.565, 1.000)",C="cubic-bezier(0.600, -0.280, 0.735, 0.045)",S=o(32133),B=o(95167),I=o(12300),E=o(47495),z=(0,c.Z)(),T=function(e){function t(t){var o=e.call(this,t)||this;return o._toggleCollapse=function(){var e=o.props,t=e.group,n=e.onToggleCollapse,r=e.isGroupLoading,i=!o.state.isCollapsed,a=!i&&r&&r(t);o.setState({isCollapsed:i,isLoadingVisible:a}),n&&n(t)},o._onKeyUp=function(e){var t=o.props,n=t.group,r=t.onGroupHeaderKeyUp;if(r&&r(e,n),!e.defaultPrevented){var i=o.state.isCollapsed&&e.which===(0,u.SM)(d.c.right,o.props.theme);(!o.state.isCollapsed&&e.which===(0,u.SM)(d.c.left,o.props.theme)||i)&&(o._toggleCollapse(),e.stopPropagation(),e.preventDefault())}},o._onToggleClick=function(e){o._toggleCollapse(),e.stopPropagation(),e.preventDefault()},o._onHeaderClick=function(){var e=o.props,t=e.group,n=e.onGroupHeaderClick;n&&n(t)},o._onRenderTitle=function(e){if(!e.group)return null;var t=e.onRenderName?(0,S.j)(e.onRenderName,o._onRenderName):o._onRenderName;return l.createElement("div",{className:o._classNames.title,id:o._id,onClick:o._onHeaderClick,role:"gridcell","aria-colspan":o.props.ariaColSpan,"data-selection-invoke":!0},t(e))},o._onRenderName=function(e){var t=e.group;return t?l.createElement(l.Fragment,null,l.createElement("span",null,t.name),l.createElement("span",{className:o._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},o._id=(0,h.O)("GroupHeader"),o.state={isCollapsed:o.props.group&&o.props.group.isCollapsed,isLoadingVisible:!1},o}return(0,s.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){if(e.group){var o=e.group.isCollapsed,n=e.isGroupLoading,r=!o&&n&&n(e.group);return(0,s.__assign)((0,s.__assign)({},t),{isCollapsed:o||!1,isLoadingVisible:r||!1})}return t},t.prototype.render=function(){var e=this.props,t=e.group,o=e.groupLevel,n=void 0===o?0:o,r=e.viewport,i=e.selectionMode,a=e.loadingText,c=e.isSelected,d=void 0!==c&&c,f=e.selected,p=void 0!==f&&f,h=e.indentWidth,m=e.onRenderGroupHeaderCheckbox,v=e.isCollapsedGroupSelectVisible,b=void 0===v||v,x=e.expandButtonProps,k=e.expandButtonIcon,w=e.selectAllButtonProps,C=e.theme,B=e.styles,T=e.className,A=e.compact,P=e.ariaLevel,R=e.ariaPosInSet,D=e.ariaSetSize,N=e.ariaRowIndex,F=e.useFastIcons,M=this.props.onRenderTitle?(0,S.j)(this.props.onRenderTitle,this._onRenderTitle):this._onRenderTitle,j=F?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,O=m?(0,S.j)(m,j):j,H=this.state,L=H.isCollapsed,q=H.isLoadingVisible,W=i===g.Qc.multiple,V=W&&(b||!(t&&t.isCollapsed)),G=p||d,K=(0,u.jI)(C);return this._classNames=z(B,{theme:C,className:T,selected:G,isCollapsed:L,compact:A}),t?l.createElement("div",{className:this._classNames.root,style:r?{minWidth:r.width}:{},role:"row","aria-level":P,"aria-setsize":D,"aria-posinset":R,"aria-rowindex":N,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":W?G:void 0,"data-selection-index":t.startIndex,"data-selection-span":t.count},l.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},V?l.createElement("div",{role:"gridcell"},l.createElement("button",(0,s.__assign)({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:"".concat(this._id,"-check"),"aria-checked":G,"aria-labelledby":"".concat(this._id,"-check ").concat(this._id),"data-selection-toggle":!0},w),O({checked:G,theme:C},O))):i!==g.Qc.none&&l.createElement(y.A,{indentWidth:_.f,count:1}),l.createElement(y.A,{indentWidth:h,count:n}),l.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},l.createElement(I.I,{iconName:"Tag"})),l.createElement("div",{role:"gridcell"},l.createElement("button",(0,s.__assign)({"data-is-focusable":!1,"data-selection-disabled":!0,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},x),l.createElement(I.I,{className:this._classNames.expandIsCollapsed,iconName:k||(K?"ChevronLeftMed":"ChevronRightMed")}))),M(this.props),q&&l.createElement(E.y,{label:a}))):null},t.prototype._defaultCheckboxRender=function(e){return l.createElement(B.J,{checked:e.checked})},t.prototype._fastDefaultCheckboxRender=function(e){return l.createElement(A,{theme:e.theme,checked:e.checked})},t.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},t}(l.Component),A=l.memo((function(e){return l.createElement(B.J,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})})),P=(0,n.I)(T,(function(e){var t,o,n,i,a,s=e.theme,l=e.className,c=e.selected,d=e.isCollapsed,f=e.compact,p=b.AB.cellLeftPadding,h=f?40:48,m=s.semanticColors,g=s.palette,S=s.fonts,B=(0,r.Km)(x,s),I=[(0,r.gm)(s),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[B.root,(0,r.gm)(s),s.fonts.medium,{borderBottom:"1px solid ".concat(m.listBackground),cursor:"default",userSelect:"none",selectors:(t={":hover":{background:m.listItemBackgroundHovered,color:m.actionLinkHovered}},t["&:hover .".concat(B.check)]={opacity:1},t[".".concat(v.Y2," &:focus .").concat(B.check)]={opacity:1},t[":global(.".concat(B.group,".").concat(B.isDropping,")")]={selectors:(o={},o["& > .".concat(B.root," .").concat(B.dropIcon)]={transition:"transform ".concat(r.cs.durationValue4," ").concat(k," ")+"opacity ".concat(r.cs.durationValue1," ").concat(w),transitionDelay:r.cs.durationValue3,opacity:1,transform:"rotate(0.2deg) scale(1);"},o[".".concat(B.check)]={opacity:0},o)},t)},c&&[B.isSelected,{background:m.listItemBackgroundChecked,selectors:(n={":hover":{background:m.listItemBackgroundCheckedHovered}},n["".concat(B.check)]={opacity:1},n)}],f&&[B.compact,{border:"none"}],l],groupHeaderContainer:[{display:"flex",alignItems:"center",height:h}],headerCount:[{padding:"0px 4px"}],check:[B.check,I,{display:"flex",alignItems:"center",justifyContent:"center",paddingTop:1,marginTop:-1,opacity:0,width:_.f,height:h,selectors:(i={},i[".".concat(v.Y2," &:focus")]={opacity:1},i)}],expand:[B.expand,I,{display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",fontSize:S.small.fontSize,width:y.k,height:h,color:c?g.neutralPrimary:g.neutralSecondary,selectors:{":hover":{backgroundColor:c?g.neutralQuaternary:g.neutralLight},":active":{backgroundColor:c?g.neutralTertiaryAlt:g.neutralQuaternaryAlt}}}],expandIsCollapsed:[d?[B.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:(0,u.jI)(s)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[B.title,{paddingLeft:p,fontSize:f?S.medium.fontSize:S.mediumPlus.fontSize,fontWeight:d?r.BO.regular:r.BO.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}],dropIcon:[B.dropIcon,{position:"absolute",left:-26,fontSize:r.fF.large,color:g.neutralSecondary,transition:"transform ".concat(r.cs.durationValue2," ").concat(C,", ")+"opacity ".concat(r.cs.durationValue4," ").concat(w),opacity:0,transform:"rotate(0.2deg) scale(0.65)",transformOrigin:"10px 10px",selectors:(a={},a[":global(.".concat(B.iconTag,")")]={position:"absolute"},a)}]}}),void 0,{scope:"GroupHeader"}),R={root:"ms-GroupShowAll",link:"ms-Link"},D=o(87841),N=(0,c.Z)(),F=(0,n.I)((function(e){var t=e.group,o=e.groupLevel,n=e.showAllLinkText,r=void 0===n?"Show All":n,i=e.styles,a=e.theme,s=e.onToggleSummarize,c=N(i,{theme:a}),u=(0,l.useCallback)((function(e){s(t),e.stopPropagation(),e.preventDefault()}),[s,t]);return t?l.createElement("div",{className:c.root},l.createElement(y.A,{count:o}),l.createElement(D.N,{onClick:u},r)):null}),(function(e){var t,o=e.theme,n=o.fonts,i=(0,r.Km)(R,o);return{root:[i.root,{position:"relative",padding:"10px 84px",cursor:"pointer",selectors:(t={},t[".".concat(i.link)]={fontSize:n.small.fontSize},t)}]}}),void 0,{scope:"GroupShowAll"}),M={root:"ms-groupFooter"},j=(0,c.Z)(),O=(0,n.I)((function(e){var t=e.group,o=e.groupLevel,n=e.footerText,r=e.indentWidth,i=e.styles,a=e.theme,s=j(i,{theme:a});return t&&n?l.createElement("div",{className:s.root},l.createElement(y.A,{indentWidth:r,count:o}),n):null}),(function(e){var t=e.theme,o=e.className,n=(0,r.Km)(M,t);return{root:[t.fonts.medium,n.root,{position:"relative",padding:"5px 38px"},o]}}),void 0,{scope:"GroupFooter"}),H=o(45818),L=function(e){function t(o){var n=e.call(this,o)||this;n._root=l.createRef(),n._list=l.createRef(),n._subGroupRefs={},n._droppingClassName="",n._onRenderGroupHeader=function(e){return l.createElement(P,(0,s.__assign)({},e))},n._onRenderGroupShowAll=function(e){return l.createElement(F,(0,s.__assign)({},e))},n._onRenderGroupFooter=function(e){return l.createElement(O,(0,s.__assign)({},e))},n._renderSubGroup=function(e,o){var r=n.props,i=r.dragDropEvents,a=r.dragDropHelper,s=r.eventsToRegister,c=r.getGroupItemLimit,u=r.groupNestingDepth,d=r.groupProps,f=r.items,p=r.headerProps,h=r.showAllProps,m=r.footerProps,g=r.listProps,v=r.onRenderCell,b=r.selection,_=r.selectionMode,y=r.viewport,x=r.onRenderGroupHeader,k=r.onRenderGroupShowAll,w=r.onRenderGroupFooter,C=r.onShouldVirtualize,S=r.group,B=r.compact,I=e.level?e.level+1:u;return!e||e.count>0||d&&d.showEmptyGroups?l.createElement(t,{ref:function(e){return n._subGroupRefs["subGroup_"+o]=e},key:n._getGroupKey(e,o),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:m,getGroupItemLimit:c,group:e,groupIndex:o,groupNestingDepth:I,groupProps:d,headerProps:p,items:f,listProps:g,onRenderCell:v,selection:b,selectionMode:_,showAllProps:h,viewport:y,onRenderGroupHeader:x,onRenderGroupShowAll:k,onRenderGroupFooter:w,onShouldVirtualize:C,groups:S?S.children:[],compact:B}):null},n._getGroupDragDropOptions=function(){var e=n.props,t=e.group,o=e.groupIndex,r=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:o,isGroup:!0},updateDropState:n._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}},n._updateDroppingState=function(e,t){var o=n.state.isDropping,r=n.props,i=r.dragDropEvents,a=r.group;o!==e&&(o?i&&i.onDragLeave&&i.onDragLeave(a,t):i&&i.onDragEnter&&(n._droppingClassName=i.onDragEnter(a,t)),n.setState({isDropping:e}))};var r=o.selection,i=o.group;return(0,f.f)(n),n._id=(0,h.O)("GroupedListSection"),n.state={isDropping:!1,isSelected:!(!r||!i)&&r.isRangeSelected(i.startIndex,i.count)},n._events=new m.g(n),n}return(0,s.__extends)(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,o=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),o&&this._events.on(o,g.ij,this._onSelectionChange)},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},t.prototype.componentDidUpdate=function(e){this.props.group===e.group&&this.props.groupIndex===e.groupIndex&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},t.prototype.render=function(){var e=this.props,t=e.getGroupItemLimit,o=e.group,n=e.groupIndex,r=e.headerProps,i=e.showAllProps,a=e.footerProps,c=e.viewport,u=e.selectionMode,d=e.onRenderGroupHeader,f=void 0===d?this._onRenderGroupHeader:d,h=e.onRenderGroupShowAll,m=void 0===h?this._onRenderGroupShowAll:h,g=e.onRenderGroupFooter,v=void 0===g?this._onRenderGroupFooter:g,b=e.onShouldVirtualize,_=e.groupedListClassNames,y=e.groups,x=e.compact,k=e.listProps,w=void 0===k?{}:k,C=this.state.isSelected,S=o&&t?t(o):1/0,B=o&&!o.children&&!o.isCollapsed&&!o.isShowingAll&&(o.count>S||o.hasMoreData),I=o&&o.children&&o.children.length>0,E=w.version,z={group:o,groupIndex:n,groupLevel:o?o.level:0,isSelected:C,selected:C,viewport:c,selectionMode:u,groups:y,compact:x},T={groupedListId:this._id,ariaLevel:(null===o||void 0===o?void 0:o.level)?o.level+1:1,ariaSetSize:y?y.length:void 0,ariaPosInSet:void 0!==n?n+1:void 0},A=(0,s.__assign)((0,s.__assign)((0,s.__assign)({},r),z),T),P=(0,s.__assign)((0,s.__assign)({},i),z),R=(0,s.__assign)((0,s.__assign)({},a),z),D=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(o)&&!!this.props.dragDropEvents.canDragGroups;return l.createElement("div",(0,s.__assign)({ref:this._root},D&&{draggable:!0},{className:(0,p.A)(_&&_.group,this._getDroppingClassName()),role:"presentation"}),f(A,this._onRenderGroupHeader),o&&o.isCollapsed?null:I?l.createElement(H.B,{role:"presentation",ref:this._list,items:o?o.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:b,version:E,id:this._id}):this._onRenderGroup(S),o&&o.isCollapsed?null:B&&m(P,this._onRenderGroupShowAll),v(R,this._onRenderGroupFooter))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this.forceListUpdate()},t.prototype.forceListUpdate=function(){var e=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),e&&e.children&&e.children.length>0)for(var t=e.children.length,o=0;o<t;o++){var n;(n=this._list.current.pageRefs["subGroup_"+String(o)])&&n.forceListUpdate()}}else(n=this._subGroupRefs["subGroup_"+String(0)])&&n.forceListUpdate()},t.prototype._onSelectionChange=function(){var e=this.props,t=e.group,o=e.selection;if(o&&t){var n=o.isRangeSelected(t.startIndex,t.count);n!==this.state.isSelected&&this.setState({isSelected:n})}},t.prototype._onRenderGroupCell=function(e,t,o){return function(n,r){return e(t,n,r,o)}},t.prototype._onRenderGroup=function(e){var t=this.props,o=t.group,n=t.items,r=t.onRenderCell,i=t.listProps,a=t.groupNestingDepth,c=t.onShouldVirtualize,u=t.groupProps,d=o&&!o.isShowingAll?o.count:n.length,f=o?o.startIndex:0;return l.createElement(H.B,(0,s.__assign)({role:u&&u.role?u.role:"rowgroup","aria-label":null===o||void 0===o?void 0:o.name,items:n,onRenderCell:this._onRenderGroupCell(r,a,o),ref:this._list,renderCount:Math.min(d,e),startIndex:f,onShouldVirtualize:c,id:this._id},i))},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(e.level)+String(t))},t.prototype._getDroppingClassName=function(){var e=this.state.isDropping,t=this.props,o=t.group,n=t.groupedListClassNames;return e=!(!o||!e),(0,p.A)(e&&this._droppingClassName,e&&"is-dropping",e&&n&&n.groupIsDropping)},t}(l.Component),q=o(84218),W=o(90973),V=(0,c.Z)(),G=b.s.rowHeight,K=b.s.compactRowHeight,U=function(e){function t(t){var o=e.call(this,t)||this;o._list=l.createRef(),o._renderGroup=function(e,t){var n=o.props,r=n.dragDropEvents,i=n.dragDropHelper,a=n.eventsToRegister,c=n.groupProps,u=n.items,d=n.listProps,f=n.onRenderCell,p=n.selectionMode,h=n.selection,m=n.viewport,g=n.onShouldVirtualize,v=n.groups,b=n.compact,_={onToggleSelectGroup:o._onToggleSelectGroup,onToggleCollapse:o._onToggleCollapse,onToggleSummarize:o._onToggleSummarize},y=(0,s.__assign)((0,s.__assign)({},c.headerProps),_),x=(0,s.__assign)((0,s.__assign)({},c.showAllProps),_),k=(0,s.__assign)((0,s.__assign)({},c.footerProps),_),w=o._getGroupNestingDepth();if(!c.showEmptyGroups&&e&&0===e.count)return null;var C=(0,s.__assign)((0,s.__assign)({},d||{}),{version:o.state.version});return l.createElement(L,{key:o._getGroupKey(e,t),dragDropEvents:r,dragDropHelper:i,eventsToRegister:a,footerProps:k,getGroupItemLimit:c&&c.getGroupItemLimit,group:e,groupIndex:t,groupNestingDepth:w,groupProps:c,headerProps:y,listProps:C,items:u,onRenderCell:f,onRenderGroupHeader:c.onRenderHeader,onRenderGroupShowAll:c.onRenderShowAll,onRenderGroupFooter:c.onRenderFooter,selectionMode:p,selection:h,showAllProps:x,viewport:m,onShouldVirtualize:g,groupedListClassNames:o._classNames,groups:v,compact:b})},o._getDefaultGroupItemLimit=function(e){return e.children&&e.children.length>0?e.children.length:e.count},o._getGroupItemLimit=function(e){var t=o.props.groupProps;return(t&&t.getGroupItemLimit?t.getGroupItemLimit:o._getDefaultGroupItemLimit)(e)},o._getGroupHeight=function(e){var t=o.props.compact?K:G;return t+(e.isCollapsed?0:t*o._getGroupItemLimit(e))},o._getPageHeight=function(e){var t=o.state.groups,n=o.props.getGroupHeight,r=void 0===n?o._getGroupHeight:n,i=t&&t[e];return i?r(i,e):0},o._onToggleCollapse=function(e){var t=o.props.groupProps,n=t&&t.headerProps&&t.headerProps.onToggleCollapse;e&&(n&&n(e),e.isCollapsed=!e.isCollapsed,o._updateIsSomeGroupExpanded(),o.forceUpdate())},o._onToggleSelectGroup=function(e){var t=o.props,n=t.selection,r=t.selectionMode;e&&n&&r===g.Qc.multiple&&n.toggleRangeSelected(e.startIndex,e.count)},o._isInnerZoneKeystroke=function(e){return e.which===(0,u.SM)(d.c.right)},o._onToggleSummarize=function(e){var t=o.props.groupProps,n=t&&t.showAllProps&&t.showAllProps.onToggleSummarize;n?n(e):(e&&(e.isShowingAll=!e.isShowingAll),o.forceUpdate())},o._getPageSpecification=function(e){var t=o.state.groups,n=t&&t[e];return{key:n&&n.key}},(0,f.f)(o),o._isSomeGroupExpanded=o._computeIsSomeGroupExpanded(t.groups);var n=t.listProps,r=(void 0===n?{}:n).version,i=void 0===r?{}:r;return o.state={groups:t.groups,items:t.items,listProps:t.listProps,version:i},o}return(0,s.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){var o=e.groups,n=e.selectionMode,r=e.compact,i=e.items,a=e.listProps,l=a&&a.version,c=(0,s.__assign)((0,s.__assign)({},t),{selectionMode:n,compact:r,groups:o,listProps:a,items:i}),u=!1;return l===(t.listProps&&t.listProps.version)&&i===t.items&&o===t.groups&&n===t.selectionMode&&r===t.compact||(u=!0),u&&(c=(0,s.__assign)((0,s.__assign)({},c),{version:{}})),c},t.prototype.scrollToIndex=function(e,t,o){this._list.current&&this._list.current.scrollToIndex(e,t,o)},t.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},t.prototype.componentDidMount=function(){var e=this.props,t=e.groupProps,o=e.groups,n=void 0===o?[]:o;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(n,t.isAllGroupsCollapsed)},t.prototype.render=function(){var e=this.props,t=e.className,o=e.usePageCache,n=e.onShouldVirtualize,r=e.theme,i=e.role,a=void 0===i?"treegrid":i,c=e.styles,u=e.compact,d=e.focusZoneProps,f=void 0===d?{}:d,h=e.rootListProps,m=void 0===h?{}:h,g=this.state,v=g.groups,b=g.version;this._classNames=V(c,{theme:r,className:t,compact:u});var _=f.shouldEnterInnerZone,y=void 0===_?this._isInnerZoneKeystroke:_;return l.createElement(q.R,(0,s.__assign)({direction:W.E.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},f,{shouldEnterInnerZone:y,className:(0,p.A)(this._classNames.root,f.className)}),v?l.createElement(H.B,(0,s.__assign)({ref:this._list,role:a,items:v,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:o,onShouldVirtualize:n,version:b},m)):this._renderGroup(void 0,0))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype.toggleCollapseAll=function(e){var t=this.state.groups,o=void 0===t?[]:t,n=this.props.groupProps,r=n&&n.onToggleCollapseAll;o.length>0&&(r&&r(e),this._setGroupsCollapsedState(o,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},t.prototype._setGroupsCollapsedState=function(e,t){for(var o=0;o<e.length;o++)e[o].isCollapsed=t},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(t))},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.state.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._forceListUpdates=function(e){this.setState({version:{}})},t.prototype._computeIsSomeGroupExpanded=function(e){var t=this;return!(!e||!e.some((function(e){return e.children?t._computeIsSomeGroupExpanded(e.children):!e.isCollapsed})))},t.prototype._updateIsSomeGroupExpanded=function(){var e=this.state.groups,t=this.props.onGroupExpandStateChanged,o=this._computeIsSomeGroupExpanded(e);this._isSomeGroupExpanded!==o&&(t&&t(o),this._isSomeGroupExpanded=o)},t.defaultProps={selectionMode:g.Qc.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},t}(l.Component),X=(0,n.I)(U,(function(e){var t,o,n=e.theme,s=e.className,l=e.compact,c=n.palette,u=(0,r.Km)(i,n);return{root:[u.root,n.fonts.small,{position:"relative",selectors:(t={},t[".".concat(u.listCell)]={minHeight:38},t)},l&&[u.compact,{selectors:(o={},o[".".concat(u.listCell)]={minHeight:32},o)}],s],group:[u.group,{transition:"background-color ".concat(r.cs.durationValue2," ").concat(a)}],groupIsDropping:{backgroundColor:c.neutralLight}}}),void 0,{scope:"GroupedList"})},45818:function(e,t,o){"use strict";o.d(t,{B:function(){return I}});var n=o(84867),r=o(80322),i=o(22388),a=o(81708),s=o(3676),l=o(76929),c=o(11499),u=o(33347),d=o(16711),f=o(26974),p=o(93177),h=o(50963),m=0,g=1,v=2,b=3,_=o(32133),y=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)},x=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},k="spacer-",w={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},C=function(e){return e.getBoundingClientRect()},S=C,B=C,I=function(e){function t(t){var o=e.call(this,t)||this;return o._root=r.createRef(),o._surface=r.createRef(),o._pageRefs={},o._getDerivedStateFromProps=function(e,t){return e.items!==o.props.items||e.renderCount!==o.props.renderCount||e.startIndex!==o.props.startIndex||e.version!==o.props.version||!t.hasMounted&&o.props.renderEarly&&(0,i.S)()?(o._resetRequiredWindows(),o._requiredRect=null,o._measureVersion++,o._invalidatePageCache(),o._updatePages(e,t)):t},o._onRenderRoot=function(e){var t=e.rootRef,o=e.surfaceElement,i=e.divProps;return r.createElement("div",(0,n.__assign)({ref:t},i),o)},o._onRenderSurface=function(e){var t=e.surfaceRef,o=e.pageElements,i=e.divProps;return r.createElement("div",(0,n.__assign)({ref:t},i),o)},o._onRenderPage=function(e,t){for(var i,a=o.props,s=a.onRenderCell,l=a.onRenderCellConditional,c=a.role,u=e.page,d=u.items,f=void 0===d?[]:d,p=u.startIndex,h=(0,n.__rest)(e,["page"]),m=void 0===c?"listitem":"presentation",g=[],v=0;v<f.length;v++){var b=p+v,_=f[v],y=o.props.getKey?o.props.getKey(_,b):_&&_.key;null!==y&&void 0!==y||(y=b);var x=null!==l&&void 0!==l?l:s,k=null!==(i=null===x||void 0===x?void 0:x(_,b,o.props.ignoreScrollingState?void 0:o.state.isScrolling))&&void 0!==i?i:null;l&&!k||g.push(r.createElement("div",{role:m,className:"ms-List-cell",key:y,"data-list-index":b,"data-automationid":"ListCell"},k))}return r.createElement("div",(0,n.__assign)({},h),g)},(0,a.f)(o),o.state={pages:[],isScrolling:!1,getDerivedStateFromProps:o._getDerivedStateFromProps,hasMounted:!1},o._async=new s.j(o),o._events=new l.g(o),o._estimatedPageHeight=0,o._totalEstimates=0,o._requiredWindowsAhead=0,o._requiredWindowsBehind=0,o._measureVersion=0,o._onAsyncScroll=o._async.debounce(o._onAsyncScroll,100,{leading:!1,maxWait:500}),o._onAsyncIdle=o._async.debounce(o._onAsyncIdle,200,{leading:!1}),o._onAsyncResize=o._async.debounce(o._onAsyncResize,16,{leading:!1}),o._onScrollingDone=o._async.debounce(o._onScrollingDone,500,{leading:!1}),o._cachedPageHeights={},o._estimatedPageHeight=0,o._focusedIndex=-1,o._pageCache={},o}return(0,n.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,o){void 0===o&&(o=m);for(var n=this.props.startIndex,r=n+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=n;l<r;l+=s){var c=this._getPageSpecification(this.props,l,i),u=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var d=B(this._scrollElement),f=y(this._scrollElement),p={top:f,bottom:f+d.height},h=e-l,_=0;_<h;++_)a+=t(l+_);var k=a+t(e);switch(o){case g:return void x(this._scrollElement,a);case v:return void x(this._scrollElement,k-d.height);case b:return void x(this._scrollElement,(a+k-d.height)/2)}if(a>=p.top&&k<=p.bottom)return;a<p.top||k>p.bottom&&(a=k-d.height)}return void(this._scrollElement&&x(this._scrollElement,a))}a+=u}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,o=this.state.pages||[];t<o.length;t++){var n=o[t];if(!n.isSpacer&&(this._scrollTop||0)>=n.top&&(this._scrollTop||0)<=n.top+n.height){if(!e){var r=Math.floor(n.height/n.itemCount);return n.startIndex+Math.floor((this._scrollTop-n.top)/r)}for(var i=0,a=n.startIndex;a<n.startIndex+n.itemCount;a++){r=e(a);if(n.top+i<=this._scrollTop&&this._scrollTop<n.top+i+r)return a;i+=r}}}return 0},t.prototype.componentDidMount=function(){this._scrollElement=(0,c.Hc)(this._root.current),this._scrollTop=0,this.setState((0,n.__assign)((0,n.__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))},t.prototype.componentDidUpdate=function(e,t){var o=this.props,n=this.state;if(this.state.pagesVersion!==t.pagesVersion){if(o.getPageHeight)this._onAsyncIdle();else this._updatePageMeasurements(n.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScroll():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(o,n)))):this._onAsyncIdle();o.onPagesUpdated&&o.onPagesUpdated(n.pages)}},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var o=this.state.pages,n=t.pages,r=!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&&o.length===n.length)for(var i=0;i<o.length;i++){var a=o[i],s=n[i];if(a.key!==s.key||a.itemCount!==s.itemCount){r=!0;break}}else r=!0;return r},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,o=e.role,r=void 0===o?"list":o,i=e.onRenderSurface,a=e.onRenderRoot,s=this.state.pages,l=void 0===s?[]:s,c=[],f=(0,u.G1)(this.props,u.JM),p=0,h=l;p<h.length;p++){var m=h[p];c.push(this._renderPage(m))}var g=i?(0,_.j)(i,this._onRenderSurface):this._onRenderSurface;return(a?(0,_.j)(a,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:l,surfaceElement:g({surfaceRef:this._surface,pages:l,pageElements:c,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:(0,n.__assign)((0,n.__assign)({},f),{className:(0,d.A)("ms-List",t),role:c.length>0?r:void 0,"aria-label":c.length>0?f["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,o=this,n=this.props.usePageCache;if(n&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var r=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){o._pageRefs[e.key]=t},style:r,role:"presentation"},this._onRenderPage);return n&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return(0,n.__assign)((0,n.__assign)({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var o=t.getAttribute("data-list-index");if(o){this._focusedIndex=Number(o);break}t=(0,f.P)(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDone()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,o=e.renderedWindowsBehind,n=this._requiredWindowsAhead,r=this._requiredWindowsBehind,i=Math.min(t,n+1),a=Math.min(o,r+1);i===n&&a===r||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||o>a)&&this._onAsyncIdle()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||this.setState({isScrolling:!1})},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var o=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,o.pages,this.props),(0,n.__assign)((0,n.__assign)((0,n.__assign)({},t),o),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,o){var n=o.onPageAdded,r=o.onPageRemoved;if(n||r){for(var i={},a=0,s=e;a<s.length;a++){(u=s[a]).items&&(i[u.startIndex]=u)}for(var l=0,c=t;l<c.length;l++){var u;(u=c[l]).items&&(i[u.startIndex]?delete i[u.startIndex]:this._onPageAdded(u))}for(var d in i)i.hasOwnProperty(d)&&this._onPageRemoved(i[d])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var o=0;o<e.length;o++){var n=e[o];n.items&&(t=this._measurePage(n)||t)}return t},t.prototype._measurePage=function(e){var t=!1,o=this._pageRefs[e.key],n=this._cachedPageHeights[e.startIndex];if(o&&this._shouldVirtualize()&&(!n||n.measureVersion!==this._measureVersion)){var r={width:o.clientWidth,height:o.clientHeight};(r.height||r.width)&&(t=e.height!==r.height,e.height=r.height,this._cachedPageHeights[e.startIndex]={height:r.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+r.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var o=e.renderCount,r=e.items,i=e.startIndex,a=e.getPageHeight;o=this._getRenderCount(e);for(var s=(0,n.__assign)({},w),l=[],c=1,u=0,d=null,f=this._focusedIndex,h=i+o,m=this._shouldVirtualize(e),g=0===this._estimatedPageHeight&&!a,v=this._allowedRect,b=function(o){var n=_._getPageSpecification(e,o,v),a=n.height,b=n.data,y=n.key;c=n.itemCount;var x,w,C=u+a-1,S=(0,p.SL)(t.pages,(function(e){return!!e.items&&e.startIndex===o}))>-1,B=!v||C>=v.top&&u<=v.bottom,I=!_._requiredRect||C>=_._requiredRect.top&&u<=_._requiredRect.bottom;if(!g&&(I||B&&S)||!m||f>=o&&f<o+c||o===i){d&&(l.push(d),d=null);var E=Math.min(c,h-o),z=_._createPage(y,r.slice(o,o+E),o,void 0,void 0,b);z.top=u,z.height=a,_._visibleRect&&_._visibleRect.bottom&&(z.isVisible=C>=_._visibleRect.top&&u<=_._visibleRect.bottom),l.push(z),I&&_._allowedRect&&(x=s,w={top:u,bottom:C,height:a,left:v.left,right:v.right,width:v.width},x.top=w.top<x.top||-1===x.top?w.top:x.top,x.left=w.left<x.left||-1===x.left?w.left:x.left,x.bottom=w.bottom>x.bottom||-1===x.bottom?w.bottom:x.bottom,x.right=w.right>x.right||-1===x.right?w.right:x.right,x.width=x.right-x.left+1,x.height=x.bottom-x.top+1)}else d||(d=_._createPage(k+o,void 0,o,0,void 0,b,!0)),d.height=(d.height||0)+(C-u)+1,d.itemCount+=c;if(u+=C-u+1,g&&m)return"break"},_=this,y=i;y<h;y+=c){if("break"===b(y))break}return d&&(d.key="spacer-end",l.push(d)),this._materializedRect=s,(0,n.__assign)((0,n.__assign)({},t),{pages:l,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,o){var n=e.getPageSpecification;if(n){var r=n(t,o),i=r.itemCount,a=void 0===i?this._getItemCountForPage(t,o):i,s=r.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,o,a):s,data:r.data,key:r.key}}return{itemCount:a=this._getItemCountForPage(t,o),height:this._getPageHeight(t,o,a)}},t.prototype._getPageHeight=function(e,t,o){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,o);var n=this._cachedPageHeights[e];return n?n.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){var o=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return o||10},t.prototype._createPage=function(e,t,o,n,r,i,a){void 0===o&&(o=-1),void 0===n&&(n=t?t.length:0),void 0===r&&(r={}),e=e||"page-"+o;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:o,itemCount:n,items:t,style:r,top:0,height:0,data:i,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,o=t.items,n=t.startIndex,r=t.renderCount;return void 0===r?o?o.length-n:0:r},t.prototype._updateRenderRects=function(e,t,o){var r=e.renderedWindowsAhead,i=e.renderedWindowsBehind,a=t.pages;if(this._shouldVirtualize(e)){var s=this._surfaceRect||(0,n.__assign)({},w),l=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),c=y(this._scrollElement);this._surface.current&&(o||!a||!this._surfaceRect||!l||l!==this._scrollHeight||Math.abs(this._scrollTop-c)>this._estimatedPageHeight/3)&&(s=this._surfaceRect=S(this._surface.current),this._scrollTop=c),!o&&l&&l===this._scrollHeight||this._measureVersion++,this._scrollHeight=l||0;var u=Math.max(0,-s.top),d=(0,h.z)(this._root.current),f={top:u,left:s.left,bottom:u+d.innerHeight,right:s.right,width:s.width,height:d.innerHeight};this._requiredRect=E(f,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=E(f,i,r),this._visibleRect=f}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,o){return r.createElement(r.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t}(r.Component);function E(e,t,o){var n=e.top-t*e.height,r=e.height+(t+o)*e.height;return{top:n,bottom:n+r,height:r,left:e.left,right:e.right,width:e.width}}},65670:function(e,t,o){"use strict";o.d(t,{p:function(){return y}});var n=o(75425),r=o(84867),i=o(80322),a=o(51667),s=o(26858),l=o(67471),c=o(89896),u=o(33347),d=o(41513),f=o(84920),p=o(60278),h=function(e,t,o){for(var n=0,r=e;n<r.length;n++){var i=r[n];o[t.register(i,!0)]=i}},m=function(e,t){for(var o=0,n=Object.keys(t);o<n.length;o++){var r=n[o];e.unregister(t[r],r,!0),delete t[r]}},g=function(e){var t=d._.getInstance(),o=e.className,n=e.overflowItems,a=e.keytipSequences,s=e.itemSubMenuProvider,l=e.onRenderOverflowButton,c=(0,p.d)({}),u=i.useCallback((function(e){return s?s(e):e.subMenuProps?e.subMenuProps.items:void 0}),[s]),g=i.useMemo((function(){var e=[],o=[];return a?null===n||void 0===n||n.forEach((function(n){var i,s=n.keytipProps;if(s){var l={content:s.content,keySequences:s.keySequences,disabled:s.disabled||!(!n.disabled&&!n.isDisabled),hasDynamicChildren:s.hasDynamicChildren,hasMenu:s.hasMenu};s.hasDynamicChildren||u(n)?(l.onExecute=t.menuExecute.bind(t,a,null===(i=null===n||void 0===n?void 0:n.keytipProps)||void 0===i?void 0:i.keySequences),l.hasOverflowSubMenu=!0):l.onExecute=s.onExecute,e.push(l);var c=(0,r.__assign)((0,r.__assign)({},n),{keytipProps:(0,r.__assign)((0,r.__assign)({},s),{overflowSetSequence:a})});null===o||void 0===o||o.push(c)}else null===o||void 0===o||o.push(n)})):o=n,{modifiedOverflowItems:o,keytipsToRegister:e}}),[n,u,t,a]),v=g.modifiedOverflowItems;return function(e,t,o){var n=(0,f.Z)(e);i.useEffect((function(){n&&(m(o,n),h(t,o,e))})),i.useEffect((function(){return h(t,o,e),function(){m(o,e)}}),[])}(c,g.keytipsToRegister,t),i.createElement("div",{className:o},l(v))},v=(0,s.Z)(),b=i.forwardRef((function(e,t){var o=i.useRef(null),n=(0,a.a)(o,t);!function(e,t){i.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,o){var n=!1;return t.current&&(n=(0,l.vO)(t.current,o)),n},focusElement:function(e){var o=!1;return!!e&&(t.current&&(0,c.s)(t.current,e)&&(e.focus(),o=document.activeElement===e),o)}}}),[t])}(e,o);var s=e.items,d=e.overflowItems,f=e.className,p=e.styles,h=e.vertical,m=e.role,b=e.overflowSide,_=void 0===b?"end":b,y=e.onRenderItem,x=v(p,{className:f,vertical:h}),k=!!d&&d.length>0;return i.createElement("div",(0,r.__assign)({},(0,u.G1)(e,u.JM),{role:m||"group","aria-orientation":"menubar"===m?!0===h?"vertical":"horizontal":void 0,className:x.root,ref:n}),"start"===_&&k&&i.createElement(g,(0,r.__assign)({},e,{className:x.overflowButton})),s&&s.map((function(e,t){return i.createElement("div",{className:x.item,key:e.key,role:"none"},y(e))})),"end"===_&&k&&i.createElement(g,(0,r.__assign)({},e,{className:x.overflowButton})))}));b.displayName="OverflowSet";var _={flexShrink:0,display:"inherit"},y=(0,n.I)(b,(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",_],overflowButton:["ms-OverflowSet-overflowButton",_]}}),void 0,{scope:"OverflowSet"})},16184:function(e,t,o){"use strict";o.d(t,{F:function(){return x}});var n=o(75425),r=o(84867),i=o(80322),a=o(26858),s=o(48038),l=o(33347),c=o(84496),u=o(33042),d=o(29948),f=o(55516),p=o(51667),h=o(20852),m=(0,a.Z)(),g={size:f.WH.size48,presence:f.As.none,imageAlt:"",showOverflowTooltip:!0};var v=i.forwardRef((function(e,t){var o=(0,s.N)(g,e),n=i.useRef(null),a=(0,p.a)(t,n),v=function(){return o.text||o.primaryText||""},b=function(e,t,n){var r=t&&t(o,n);return r?i.createElement("div",{dir:"auto",className:e},r):void 0},_=function(e,t){return void 0===t&&(t=!0),e?t?function(){return i.createElement(c.S,{content:e,overflowMode:u.$.Parent,directionalHint:h.A.topLeftEdge},e)}:function(){return i.createElement(i.Fragment,null,e)}:void 0},y=_(v(),o.showOverflowTooltip),x=_(o.secondaryText,o.showOverflowTooltip),k=_(o.tertiaryText,o.showOverflowTooltip),w=_(o.optionalText,o.showOverflowTooltip),C=o.hidePersonaDetails,S=o.onRenderOptionalText,B=void 0===S?w:S,I=o.onRenderPrimaryText,E=void 0===I?y:I,z=o.onRenderSecondaryText,T=void 0===z?x:z,A=o.onRenderTertiaryText,P=void 0===A?k:A,R=o.onRenderPersonaCoin,D=void 0===R?function(e){return i.createElement(d.c,(0,r.__assign)({},e))}:R,N=o.size,F=o.allowPhoneInitials,M=o.className,j=o.coinProps,O=o.showUnknownPersonaCoin,H=o.coinSize,L=o.styles,q=o.imageAlt,W=o.imageInitials,V=o.imageShouldFadeIn,G=o.imageShouldStartVisible,K=o.imageUrl,U=o.initialsColor,X=o.initialsTextColor,Y=o.isOutOfOffice,Z=o.onPhotoLoadingStateChange,Q=o.onRenderCoin,$=o.onRenderInitials,J=o.presence,ee=o.presenceTitle,te=o.presenceColors,oe=o.showInitialsUntilImageLoads,ne=o.showSecondaryText,re=o.theme,ie=(0,r.__assign)({allowPhoneInitials:F,showUnknownPersonaCoin:O,coinSize:H,imageAlt:q,imageInitials:W,imageShouldFadeIn:V,imageShouldStartVisible:G,imageUrl:K,initialsColor:U,initialsTextColor:X,onPhotoLoadingStateChange:Z,onRenderCoin:Q,onRenderInitials:$,presence:J,presenceTitle:ee,showInitialsUntilImageLoads:oe,size:N,text:v(),isOutOfOffice:Y,presenceColors:te},j),ae=m(L,{theme:re,className:M,showSecondaryText:ne,presence:J,size:N}),se=(0,l.G1)(o,l.JM),le=i.createElement("div",{className:ae.details},b(ae.primaryText,E,y),b(ae.secondaryText,T,x),b(ae.tertiaryText,P,k),b(ae.optionalText,B,w),o.children);return i.createElement("div",(0,r.__assign)({},se,{ref:a,className:ae.root,style:H?{height:H,minWidth:H}:void 0}),D(ie,D),(!C||N===f.WH.size8||N===f.WH.size10||N===f.WH.tiny)&&le)}));v.displayName="PersonaBase";var b=o(7354),_=o(85307),y={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"},x=(0,n.I)(v,(function(e){var t=e.className,o=e.showSecondaryText,n=e.theme,r=n.semanticColors,i=n.fonts,a=(0,b.Km)(y,n),s=(0,_.qe)(e.size),l=(0,_.ay)(e.presence),c="16px",u={color:r.bodySubtext,fontWeight:b.BO.regular,fontSize:i.small.fontSize};return{root:[a.root,n.fonts.medium,b.S8,{color:r.bodyText,position:"relative",height:_.uB.size48,minWidth:_.uB.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},s.isSize8&&[a.size8,{height:_.uB.size8,minWidth:_.uB.size8}],s.isSize10&&[a.size10,{height:_.uB.size10,minWidth:_.uB.size10}],s.isSize16&&[a.size16,{height:_.uB.size16,minWidth:_.uB.size16}],s.isSize24&&[a.size24,{height:_.uB.size24,minWidth:_.uB.size24}],s.isSize24&&o&&{height:"36px"},s.isSize28&&[a.size28,{height:_.uB.size28,minWidth:_.uB.size28}],s.isSize28&&o&&{height:"32px"},s.isSize32&&[a.size32,{height:_.uB.size32,minWidth:_.uB.size32}],s.isSize40&&[a.size40,{height:_.uB.size40,minWidth:_.uB.size40}],s.isSize48&&a.size48,s.isSize56&&[a.size56,{height:_.uB.size56,minWidth:_.uB.size56}],s.isSize72&&[a.size72,{height:_.uB.size72,minWidth:_.uB.size72}],s.isSize100&&[a.size100,{height:_.uB.size100,minWidth:_.uB.size100}],s.isSize120&&[a.size120,{height:_.uB.size120,minWidth:_.uB.size120}],l.isAvailable&&a.available,l.isAway&&a.away,l.isBlocked&&a.blocked,l.isBusy&&a.busy,l.isDoNotDisturb&&a.doNotDisturb,l.isOffline&&a.offline,t],details:[a.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(s.isSize8||s.isSize10)&&{paddingLeft:17},(s.isSize24||s.isSize28||s.isSize32)&&{padding:"0 8px"},(s.isSize40||s.isSize48)&&{padding:"0 12px"}],primaryText:[a.primaryText,b.oA,{color:r.bodyText,fontWeight:b.BO.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:r.inputTextHovered}}},o&&{height:c,lineHeight:c,overflowX:"hidden"},(s.isSize8||s.isSize10)&&{fontSize:i.small.fontSize,lineHeight:_.uB.size8},s.isSize16&&{lineHeight:_.uB.size28},(s.isSize24||s.isSize28||s.isSize32||s.isSize40||s.isSize48)&&o&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.xLarge.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&o&&{height:22}],secondaryText:[a.secondaryText,b.oA,u,(s.isSize8||s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&{display:"none"},o&&{display:"block",height:c,lineHeight:c,overflowX:"hidden"},s.isSize24&&o&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.medium.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&o&&{height:18}],tertiaryText:[a.tertiaryText,b.oA,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize72||s.isSize100||s.isSize120)&&{display:"block"}],optionalText:[a.optionalText,b.oA,u,{display:"none",fontSize:i.medium.fontSize},(s.isSize100||s.isSize120)&&{display:"block"}],textContent:[a.textContent,b.oA]}}),void 0,{scope:"Persona"})},29948:function(e,t,o){"use strict";o.d(t,{c:function(){return F}});var n=o(75425),r=o(84867),i=o(80322),a=o(26858),s=o(65808),l=o(48038),c=o(33347),u=o(16758),d=o(89575),f=o(7354),p=o(12300),h=o(55516),m=o(85307),g=o(51667),v=(0,a.Z)({cacheSize:100}),b=i.forwardRef((function(e,t){var o=e.coinSize,n=e.isOutOfOffice,r=e.styles,a=e.presence,s=e.theme,l=e.presenceTitle,c=e.presenceColors,u=i.useRef(null),d=(0,g.a)(t,u),f=(0,m.qe)(e.size),b=!(f.isSize8||f.isSize10||f.isSize16||f.isSize24||f.isSize28||f.isSize32)&&(!o||o>32),y=o?o/3<40?o/3+"px":"40px":"",x=o?{fontSize:o?o/6<20?o/6+"px":"20px":"",lineHeight:y}:void 0,k=o?{width:y,height:y}:void 0,w=v(r,{theme:s,presence:a,size:e.size,isOutOfOffice:n,presenceColors:c});return a===h.As.none?null:i.createElement("div",{role:"presentation",className:w.presence,style:k,title:l,ref:d},b&&i.createElement(p.I,{className:w.presenceIcon,iconName:_(e.presence,e.isOutOfOffice),style:x}))}));function _(e,t){if(e){var o="SkypeArrow";switch(h.As[e]){case"online":return"SkypeCheck";case"away":return t?o:"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?o:""}return""}}b.displayName="PersonaPresenceBase";var y={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function x(e){return{color:e,borderColor:e}}function k(e,t){return{selectors:{":before":{border:"".concat(e," solid ").concat(t)}}}}function w(e){return{height:e,width:e}}function C(e){return{backgroundColor:e}}var S=(0,n.I)(b,(function(e){var t,o,n,i,a,s,l=e.theme,c=e.presenceColors,u=l.semanticColors,d=l.fonts,p=(0,f.Km)(y,l),h=(0,m.qe)(e.size),g=(0,m.ay)(e.presence),v=c&&c.available||"#6BB700",b=c&&c.away||"#FFAA44",_=c&&c.busy||"#C43148",S=c&&c.dnd||"#C50F1F",B=c&&c.offline||"#8A8886",I=c&&c.oof||"#B4009E",E=c&&c.background||u.bodyBackground,z=g.isOffline||e.isOutOfOffice&&(g.isAvailable||g.isBusy||g.isAway||g.isDoNotDisturb),T=h.isSize72||h.isSize100?"2px":"1px";return{presence:[p.presence,(0,r.__assign)((0,r.__assign)({position:"absolute",height:m.dL.size12,width:m.dL.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid ".concat(E),textAlign:"center",boxSizing:"content-box",backgroundClip:"border-box"},(0,f.Qg)()),{selectors:(t={},t[f.up]={borderColor:"Window",backgroundColor:"WindowText"},t)}),(h.isSize8||h.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(o={},o[f.up]={top:"9px",border:"1px solid WindowText"},o)},(h.isSize8||h.isSize10||h.isSize24||h.isSize28||h.isSize32)&&w(m.dL.size8),(h.isSize40||h.isSize48)&&w(m.dL.size12),h.isSize16&&{height:m.dL.size6,width:m.dL.size6,borderWidth:"1.5px"},h.isSize56&&w(m.dL.size16),h.isSize72&&w(m.dL.size20),h.isSize100&&w(m.dL.size28),h.isSize120&&w(m.dL.size32),g.isAvailable&&{backgroundColor:v,selectors:(n={},n[f.up]=C("Highlight"),n)},g.isAway&&C(b),g.isBlocked&&[{selectors:(i={":after":h.isSize40||h.isSize48||h.isSize72||h.isSize100?{content:'""',width:"100%",height:T,backgroundColor:_,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},i[f.up]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},i)}],g.isBusy&&C(_),g.isDoNotDisturb&&C(S),g.isOffline&&C(B),(z||g.isBlocked)&&[{backgroundColor:E,selectors:(a={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"".concat(T," solid ").concat(_),borderRadius:"50%",boxSizing:"border-box"}},a[f.up]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},a)}],z&&g.isAvailable&&k(T,v),z&&g.isBusy&&k(T,_),z&&g.isAway&&k(T,I),z&&g.isDoNotDisturb&&k(T,S),z&&g.isOffline&&k(T,B),z&&g.isOffline&&e.isOutOfOffice&&k(T,I)],presenceIcon:[p.presenceIcon,{color:E,fontSize:"6px",lineHeight:m.dL.size12,verticalAlign:"top",selectors:(s={},s[f.up]={color:"Window"},s)},h.isSize56&&{fontSize:"8px",lineHeight:m.dL.size16},h.isSize72&&{fontSize:d.small.fontSize,lineHeight:m.dL.size20},h.isSize100&&{fontSize:d.medium.fontSize,lineHeight:m.dL.size28},h.isSize120&&{fontSize:d.medium.fontSize,lineHeight:m.dL.size32},g.isAway&&{position:"relative",left:z?void 0:"1px"},z&&g.isAvailable&&x(v),z&&g.isBusy&&x(_),z&&g.isAway&&x(I),z&&g.isDoNotDisturb&&x(S),z&&g.isOffline&&x(B),z&&g.isOffline&&e.isOutOfOffice&&x(I)]}}),void 0,{scope:"PersonaPresence"}),B=o(48560),I=o(92256),E=o(51027),z=(0,a.Z)({cacheSize:100}),T=(0,s.J9)((function(e,t,o,n,r,i){return(0,f.Zq)(e,!i&&{backgroundColor:(0,E.X)({text:n,initialsColor:t,primaryText:r}),color:o})})),A={size:h.WH.size48,presence:h.As.none,imageAlt:""};var P=i.forwardRef((function(e,t){var o=(0,l.N)(A,e),n=function(e){var t=e.onPhotoLoadingStateChange,o=e.imageUrl,n=i.useState(B.P6.notLoaded),r=n[0],a=n[1];return i.useEffect((function(){a(B.P6.notLoaded)}),[o]),[r,function(e){a(e),null===t||void 0===t||t(e)}]}(o),a=n[0],s=n[1],u=R(s),d=o.className,f=o.coinProps,m=o.showUnknownPersonaCoin,g=o.coinSize,v=o.styles,b=o.imageUrl,_=o.initialsColor,y=o.initialsTextColor,x=o.isOutOfOffice,k=o.onRenderCoin,w=void 0===k?u:k,C=o.onRenderPersonaCoin,I=void 0===C?w:C,E=o.onRenderInitials,P=void 0===E?D:E,N=o.presence,F=o.presenceTitle,M=o.presenceColors,j=o.primaryText,O=o.showInitialsUntilImageLoads,H=o.text,L=o.theme,q=o.size,W=(0,c.G1)(o,c.JM),V=(0,c.G1)(f||{},c.JM),G=g?{width:g,height:g}:void 0,K=m,U={coinSize:g,isOutOfOffice:x,presence:N,presenceTitle:F,presenceColors:M,size:q,theme:L},X=z(v,{theme:L,className:f&&f.className?f.className:d,size:q,coinSize:g,showUnknownPersonaCoin:m}),Y=Boolean(a!==B.P6.loaded&&(O&&b||!b||a===B.P6.error||K));return i.createElement("div",(0,r.__assign)({role:"presentation"},W,{className:X.coin,ref:t}),q!==h.WH.size8&&q!==h.WH.size10&&q!==h.WH.tiny?i.createElement("div",(0,r.__assign)({role:"presentation"},V,{className:X.imageArea,style:G}),Y&&i.createElement("div",{className:T(X.initials,_,y,H,j,m),style:G,"aria-hidden":"true"},P(o,D)),!K&&I(o,u),i.createElement(S,(0,r.__assign)({},U))):o.presence?i.createElement(S,(0,r.__assign)({},U)):i.createElement(p.I,{iconName:"Contact",className:X.size10WithoutPresenceIcon}),o.children)}));P.displayName="PersonaCoinBase";var R=function(e){return function(t){var o=t.coinSize,n=t.styles,r=t.imageUrl,a=t.imageAlt,s=t.imageShouldFadeIn,l=t.imageShouldStartVisible,c=t.theme,u=t.showUnknownPersonaCoin,d=t.size,f=void 0===d?A.size:d;if(!r)return null;var p=z(n,{theme:c,size:f,showUnknownPersonaCoin:u}),h=o||m.kx[f];return i.createElement(I._,{className:p.image,imageFit:B.N_.cover,src:r,width:h,height:h,alt:a,shouldFadeIn:s,shouldStartVisible:l,onLoadingStateChange:e})}},D=function(e){var t=e.imageInitials,o=e.allowPhoneInitials,n=e.showUnknownPersonaCoin,r=e.text,a=e.primaryText,s=e.theme;if(n)return i.createElement(p.I,{iconName:"Help"});var l=(0,u.jI)(s);return""!==(t=t||(0,d.I)(r||a||"",l,o))?i.createElement("span",null,t):i.createElement(p.I,{iconName:"Contact"})},N={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"},F=(0,n.I)(P,(function(e){var t,o=e.className,n=e.theme,i=e.coinSize,a=n.palette,s=n.fonts,l=(0,m.qe)(e.size),c=(0,f.Km)(N,n),u=i||e.size&&m.kx[e.size]||48;return{coin:[c.coin,s.medium,l.isSize8&&c.size8,l.isSize10&&c.size10,l.isSize16&&c.size16,l.isSize24&&c.size24,l.isSize28&&c.size28,l.isSize32&&c.size32,l.isSize40&&c.size40,l.isSize48&&c.size48,l.isSize56&&c.size56,l.isSize72&&c.size72,l.isSize100&&c.size100,l.isSize120&&c.size120,o],size10WithoutPresenceIcon:{fontSize:s.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[c.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:u,width:u},u<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[c.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},u<=10&&{overflow:"visible",background:"transparent",height:0,width:0},u>10&&{height:u,width:u}],initials:[c.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?"rgb(168, 0, 0)":a.white,fontSize:s.large.fontSize,fontWeight:f.BO.semibold,lineHeight:48===u?46:u,height:u,selectors:(t={},t[f.up]=(0,r.__assign)((0,r.__assign)({border:"1px solid WindowText"},(0,f.Qg)()),{color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"}),t.i={fontWeight:f.BO.semibold},t)},e.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"})},85307:function(e,t,o){"use strict";o.d(t,{ay:function(){return c},dL:function(){return i},kx:function(){return l},qe:function(){return s},uB:function(){return r}});var n,r,i,a=o(55516);!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"}(r||(r={})),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"}(i||(i={}));var s=function(e){return{isSize8:e===a.WH.size8,isSize10:e===a.WH.size10||e===a.WH.tiny,isSize16:e===a.WH.size16,isSize24:e===a.WH.size24||e===a.WH.extraExtraSmall,isSize28:e===a.WH.size28||e===a.WH.extraSmall,isSize32:e===a.WH.size32,isSize40:e===a.WH.size40||e===a.WH.small,isSize48:e===a.WH.size48||e===a.WH.regular,isSize56:e===a.WH.size56,isSize72:e===a.WH.size72||e===a.WH.large,isSize100:e===a.WH.size100||e===a.WH.extraLarge,isSize120:e===a.WH.size120}},l=((n={})[a.WH.tiny]=10,n[a.WH.extraExtraSmall]=24,n[a.WH.extraSmall]=28,n[a.WH.small]=40,n[a.WH.regular]=48,n[a.WH.large]=72,n[a.WH.extraLarge]=100,n[a.WH.size8]=8,n[a.WH.size10]=10,n[a.WH.size16]=16,n[a.WH.size24]=24,n[a.WH.size28]=28,n[a.WH.size32]=32,n[a.WH.size40]=40,n[a.WH.size48]=48,n[a.WH.size56]=56,n[a.WH.size72]=72,n[a.WH.size100]=100,n[a.WH.size120]=120,n),c=function(e){return{isAvailable:e===a.As.online,isAway:e===a.As.away,isBlocked:e===a.As.blocked,isBusy:e===a.As.busy,isDoNotDisturb:e===a.As.dnd,isOffline:e===a.As.offline}}},41608:function(e,t,o){"use strict";o.d(t,{Z:function(){return g}});var n=o(75425),r=o(84867),i=o(80322),a=o(26858),s=o(50453),l=(0,a.Z)(),c=function(e){function t(t){var o=e.call(this,t)||this;o._onRenderProgress=function(e){var t=o.props,n=t.ariaLabel,r=t.ariaValueText,a=t.barHeight,s=t.className,c=t.description,u=t.label,d=void 0===u?o.props.title:u,f=t.styles,p=t.theme,h="number"===typeof o.props.percentComplete?Math.min(100,Math.max(0,100*o.props.percentComplete)):void 0,m=l(f,{theme:p,className:s,barHeight:a,indeterminate:void 0===h}),g={width:void 0!==h?h+"%":void 0,transition:void 0!==h&&h<.01?"none":void 0},v=void 0!==h?0:void 0,b=void 0!==h?100:void 0,_=void 0!==h?Math.floor(h):void 0;return i.createElement("div",{className:m.itemProgress},i.createElement("div",{className:m.progressTrack}),i.createElement("div",{className:m.progressBar,style:g,role:"progressbar","aria-describedby":c?o._descriptionId:void 0,"aria-label":n,"aria-labelledby":d?o._labelId:void 0,"aria-valuemin":v,"aria-valuemax":b,"aria-valuenow":_,"aria-valuetext":r}))};var n=(0,s.O)("progress-indicator");return o._labelId=n+"-label",o._descriptionId=n+"-description",o}return(0,r.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.barHeight,o=e.className,n=e.label,a=void 0===n?this.props.title:n,s=e.description,c=e.styles,u=e.theme,d=e.progressHidden,f=e.onRenderProgress,p=void 0===f?this._onRenderProgress:f,h="number"===typeof this.props.percentComplete?Math.min(100,Math.max(0,100*this.props.percentComplete)):void 0,m=l(c,{theme:u,className:o,barHeight:t,indeterminate:void 0===h});return i.createElement("div",{className:m.root},a?i.createElement("div",{id:this._labelId,className:m.itemName},a):null,d?null:p((0,r.__assign)((0,r.__assign)({},this.props),{percentComplete:h}),this._onRenderProgress),s?i.createElement("div",{id:this._descriptionId,className:m.itemDescription},s):null)},t.defaultProps={label:"",description:"",width:180},t}(i.Component),u=o(7354),d=o(65808),f=o(16758),p={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},h=(0,d.J9)((function(){return(0,u.i7)({"0%":{left:"-30%"},"100%":{left:"100%"}})})),m=(0,d.J9)((function(){return(0,u.i7)({"100%":{right:"-30%"},"0%":{right:"100%"}})})),g=(0,n.I)(c,(function(e){var t,o,n,i=(0,f.jI)(e.theme),a=e.className,s=e.indeterminate,l=e.theme,c=e.barHeight,d=void 0===c?2:c,g=l.palette,v=l.semanticColors,b=l.fonts,_=(0,u.Km)(p,l),y=g.neutralLight;return{root:[_.root,b.medium,a],itemName:[_.itemName,u.oA,{color:v.bodyText,paddingTop:4,lineHeight:20}],itemDescription:[_.itemDescription,{color:v.bodySubtext,fontSize:b.small.fontSize,lineHeight:18}],itemProgress:[_.itemProgress,{position:"relative",overflow:"hidden",height:d,padding:"".concat(8,"px 0")}],progressTrack:[_.progressTrack,{position:"absolute",width:"100%",height:d,backgroundColor:y,selectors:(t={},t[u.up]={borderBottom:"1px solid WindowText"},t)}],progressBar:[{backgroundColor:g.themePrimary,height:d,position:"absolute",transition:"width .3s ease",width:0,selectors:(o={},o[u.up]=(0,r.__assign)({backgroundColor:"highlight"},(0,u.Qg)()),o)},s?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, ".concat(y," 0%, ")+"".concat(g.themePrimary," 50%, ").concat(y," 100%)"),animation:"".concat(i?m():h()," 3s infinite"),selectors:(n={},n[u.up]={background:"highlight"},n)}:{transition:"width .15s linear"},_.progressBar]}}),void 0,{scope:"ProgressIndicator"})},92139:function(e,t,o){"use strict";o.d(t,{G:function(){return B}});var n=o(75425),r=o(7354),i={root:"ms-RatingStar-root",rootIsSmall:"ms-RatingStar-root--small",rootIsLarge:"ms-RatingStar-root--large",ratingStar:"ms-RatingStar-container",ratingStarBack:"ms-RatingStar-back",ratingStarFront:"ms-RatingStar-front",ratingButton:"ms-Rating-button",ratingStarIsSmall:"ms-Rating--small",ratingStartIsLarge:"ms-Rating--large",labelText:"ms-Rating-labelText",ratingFocusZone:"ms-Rating-focuszone"};function a(e,t){var o;return{color:e,selectors:(o={},o[r.up]={color:t},o)}}var s=o(84867),l=o(80322),c=o(26858),u=o(13578),d=o(33347),f=o(54121),p=o(16711),h=o(40463),m=o(12300),g=o(84218),v=o(90973),b=o(28564),_=o(66848),y=o(30749),x=o(51667),k=(0,c.Z)(),w=function(e){return l.createElement("div",{className:e.classNames.ratingStar},l.createElement(m.I,{className:e.classNames.ratingStarBack,iconName:0===e.fillPercentage||100===e.fillPercentage?e.icon:e.unselectedIcon}),!e.disabled&&l.createElement(m.I,{className:e.classNames.ratingStarFront,iconName:e.icon,style:{width:e.fillPercentage+"%"}}))},C=function(e,t){return"".concat(e,"-star-").concat(t-1)},S=l.forwardRef((function(e,t){var o=(0,_.B)("Rating"),n=(0,_.B)("RatingLabel"),r=e.ariaLabel,i=e.ariaLabelFormat,a=e.disabled,c=e.getAriaLabel,m=e.styles,S=e.min,B=void 0===S?e.allowZeroStars?0:1:S,I=e.max,E=void 0===I?5:I,z=e.readOnly,T=e.size,A=e.theme,P=e.icon,R=void 0===P?"FavoriteStarFill":P,D=e.unselectedIcon,N=void 0===D?"FavoriteStar":D,F=e.onRenderStar,M=Math.max(B,0),j=(0,y.k)(e.rating,e.defaultRating,e.onChange),O=j[0],H=j[1],L=function(e,t,o){return Math.min(Math.max(null!==e&&void 0!==e?e:t,t),o)}(O,M,E);!function(e,t){l.useImperativeHandle(e,(function(){return{rating:t}}),[t])}(e.componentRef,L);var q=l.useRef(null),W=(0,x.a)(q,t);(0,u.vk)(q);for(var V=(0,d.G1)(e,d.JM),G=k(m,{disabled:a,readOnly:z,theme:A}),K=null===c||void 0===c?void 0:c(L,E),U=r||K,X=[],Y=function(e){var t,r,c=function(e,t){var o=Math.ceil(t),n=100;return e===t?n=100:e===o?n=t%1*100:e>o&&(n=0),n}(e,L);X.push(l.createElement("button",(0,s.__assign)({className:(0,p.A)(G.ratingButton,T===b.l.Large?G.ratingStarIsLarge:G.ratingStarIsSmall),id:C(o,e),key:e},e===Math.ceil(L)&&{"data-is-current":!0},{onKeyDown:function(t){var o=t.which,n=e;switch(o){case f.c.right:case f.c.down:n=Math.min(E,n+1);break;case f.c.left:case f.c.up:n=Math.max(1,n-1);break;case f.c.home:case f.c.pageUp:n=1;break;case f.c.end:case f.c.pageDown:n=E}n===e||void 0!==O&&Math.ceil(O)===n||H(n,t)},onClick:function(t){void 0!==O&&Math.ceil(O)===e||H(e,t)},disabled:!(!a&&!z),role:"radio","aria-hidden":z?"true":void 0,type:"button","aria-checked":e===Math.ceil(L)}),l.createElement("span",{id:"".concat(n,"-").concat(e),className:G.labelText},(0,h.G)(i||"",e,E)),(t={fillPercentage:c,disabled:a,classNames:G,icon:c>0?R:N,starNum:e,unselectedIcon:N},(r=F)?r(t):l.createElement(w,(0,s.__assign)({},t)))))},Z=1;Z<=E;Z++)Y(Z);var Q=T===b.l.Large?G.rootIsLarge:G.rootIsSmall;return l.createElement("div",(0,s.__assign)({ref:W,className:(0,p.A)("ms-Rating-star",G.root,Q),"aria-label":z?void 0:U,id:o,role:z?void 0:"radiogroup"},V),l.createElement(g.R,(0,s.__assign)({direction:v.E.bidirectional,className:(0,p.A)(G.ratingFocusZone,Q),defaultActiveElement:"#"+C(o,Math.ceil(L))},z&&{allowFocusRoot:!0,disabled:!0,role:"textbox","aria-label":K,"aria-readonly":!0,"data-is-focusable":!0,tabIndex:0}),X))}));S.displayName="RatingBase";var B=(0,n.I)(S,(function(e){var t=e.disabled,o=e.readOnly,n=e.theme,s=n.semanticColors,l=n.palette,c=(0,r.Km)(i,n),u=l.neutralSecondary,d=l.themePrimary,f=l.themeDark,p=l.neutralPrimary,h=s.disabledBodySubtext;return{root:[c.root,n.fonts.medium,!t&&!o&&{selectors:{"&:hover":{selectors:{".ms-RatingStar-back":a(p,"Highlight")}}}}],rootIsSmall:[c.rootIsSmall,{height:"32px"}],rootIsLarge:[c.rootIsLarge,{height:"36px"}],ratingStar:[c.ratingStar,{display:"inline-block",position:"relative",height:"inherit"}],ratingStarBack:[c.ratingStarBack,{color:u,width:"100%"},t&&a(h,"GrayText")],ratingStarFront:[c.ratingStarFront,{position:"absolute",height:"100 %",left:"0",top:"0",textAlign:"center",verticalAlign:"middle",overflow:"hidden"},a(p,"Highlight")],ratingButton:[(0,r.gm)(n),c.ratingButton,{backgroundColor:"transparent",padding:"".concat(8,"px ").concat(2,"px"),boxSizing:"content-box",margin:"0px",border:"none",cursor:"pointer",selectors:{"&:disabled":{cursor:"default"},"&[disabled]":{cursor:"default"}}},!t&&!o&&{selectors:{"&:hover ~ .ms-Rating-button":{selectors:{".ms-RatingStar-back":a(u,"WindowText"),".ms-RatingStar-front":a(u,"WindowText")}},"&:hover":{selectors:{".ms-RatingStar-back":{color:d},".ms-RatingStar-front":{color:f}}}}},t&&{cursor:"default"}],ratingStarIsSmall:[c.ratingStarIsSmall,{fontSize:"16px",lineHeight:"16px",height:"16px"}],ratingStarIsLarge:[c.ratingStartIsLarge,{fontSize:"20px",lineHeight:"20px",height:"20px"}],labelText:[c.labelText,r.dX],ratingFocusZone:[(0,r.gm)(n),c.ratingFocusZone,{display:"inline-block"}]}}),void 0,{scope:"Rating"})},28564:function(e,t,o){"use strict";var n;o.d(t,{l:function(){return n}}),function(e){e[e.Small=0]="Small",e[e.Large=1]="Large"}(n||(n={}))},29589:function(e,t,o){"use strict";o.d(t,{A:function(){return y}});var n,r=o(84867),i=o(80322),a=o(33347);!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(n||(n={}));var s=o(60278),l=o(59413),c=o(62950),u=o(51667),d=o(20403),f=function(e){void 0===e&&(e=function(){var e={};return{getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,o){t.cacheKey&&(e[t.cacheKey]=o)}}}());var t,o=e;function n(e,t){var n=o.getCachedMeasurement(e);if(void 0!==n)return n;var r=t();return o.addMeasurementToCache(e,r),r}function i(e,r,i){for(var a=e,s=n(e,i);s>t;){var l=r(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=o.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,a,s,l){if(void 0!==l||void 0!==a.dataToMeasure){if(l){if(t&&a.renderedData&&!a.dataToMeasure)return(0,r.__assign)((0,r.__assign)({},a),function(e,o,n,i){var a;return a=e>t?i?{resizeDirection:"grow",dataToMeasure:i(n)}:{resizeDirection:"shrink",dataToMeasure:o}:{resizeDirection:"shrink",dataToMeasure:n},t=e,(0,r.__assign)((0,r.__assign)({},a),{measureContainer:!1})}(l,e.data,a.renderedData,e.onGrowData));t=l}var c=(0,r.__assign)((0,r.__assign)({},a),{measureContainer:!1});return a.dataToMeasure&&(c="grow"===a.resizeDirection&&e.onGrowData?(0,r.__assign)((0,r.__assign)({},c),function(e,a,s,l){for(var c=e,u=n(e,s);u<t;){var d=a(c);if(void 0===d)return{renderedData:c,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(u=o.getCachedMeasurement(d)))return{dataToMeasure:d};c=d}return(0,r.__assign)({resizeDirection:"shrink"},i(c,l,s))}(a.dataToMeasure,e.onGrowData,s,e.onReduceData)):(0,r.__assign)((0,r.__assign)({},c),i(a.dataToMeasure,e.onReduceData,s))),c}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==o.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:(0,r.__assign)({},e),resizeDirection:"grow",measureContainer:!0}}}},p=i.createContext({isMeasured:!1}),h={position:"fixed",visibility:"hidden"},m={position:"relative"};function g(e,t){var o;switch(t.type){case"resizeData":return(0,r.__assign)({},t.value);case"dataToMeasure":return(0,r.__assign)((0,r.__assign)({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return(0,r.__assign)((0,r.__assign)({},e),((o={})[t.type]=t.value,o))}}function v(e,t){var o=(0,s.d)(f),a=i.useRef(null),u=i.useRef(null),p=i.useRef(!1),h=(0,l.Y)(),m=function(e,t,o){var n=(0,s.d)((function(){return t.getInitialResizeGroupState(e.data)})),a=i.useReducer(g,n),l=a[0],c=a[1];i.useEffect((function(){c({type:"dataToMeasure",value:e.data})}),[e.data]);var u=i.useRef(n);return u.current=(0,r.__assign)({},l),[u,i.useCallback((function(e){e&&c({type:"resizeData",value:e})}),[]),i.useCallback((function(){o.current&&c({type:"measureContainer",value:!0})}),[o])]}(e,o,t),v=m[0],b=m[1],_=m[2];i.useEffect((function(){var t;v.current.renderedData&&(p.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,v.current.renderedData))})),i.useEffect((function(){h.requestAnimationFrame((function(){var r=void 0;if(v.current.measureContainer&&t.current){var i=t.current.getBoundingClientRect();r=e.direction===n.vertical?i.height:i.width}var s=o.getNextState(e,v.current,(function(){var t=p.current?u:a;if(!t.current)return 0;var o=t.current.getBoundingClientRect();return e.direction===n.vertical?o.height:o.width}),r);b(s)}),t.current)}));var y=(0,d.ox)();(0,c.x)(y,"resize",h.debounce(_,16,{leading:!0}));var x=o.shouldRenderDataForMeasurement(v.current.dataToMeasure),k=!p.current&&x;return[v.current.dataToMeasure,v.current.renderedData,_,a,u,x,k]}var b={isMeasured:!0},_=i.forwardRef((function(e,t){var o=i.useRef(null),n=(0,u.a)(o,t),s=v(e,o),l=s[0],c=s[1],d=s[2],f=s[3],g=s[4],_=s[5],y=s[6];i.useImperativeHandle(e.componentRef,(function(){return{remeasure:d}}),[d]);var x=e.className,k=e.onRenderData,w=(0,a.G1)(e,a.JM,["data"]);return i.createElement("div",(0,r.__assign)({},w,{className:x,ref:n}),i.createElement("div",{style:m},_&&!y&&i.createElement("div",{style:h,ref:g},i.createElement(p.Provider,{value:b},k(l))),i.createElement("div",{ref:f,style:y?h:void 0,"data-automation-id":"visibleContent"},y?k(l):c&&k(c))))}));_.displayName="ResizeGroupBase";var y=_},29668:function(e,t,o){"use strict";o.d(t,{G:function(){return w}});var n=o(75425),r=o(84867),i=o(80322),a=o(26858),s=o(33347),l=o(54121),c=o(30749),u=o(51667),d=o(66848),f=o(47751),p=o(12300),h="SearchBox",m={root:{height:"auto"},icon:{fontSize:"12px"}},g={iconName:"Clear"},v={ariaLabel:"Clear text"},b=(0,a.Z)(),_=i.forwardRef((function(e,t){var o=e.ariaLabel,n=e.className,a=e.defaultValue,_=void 0===a?"":a,y=e.disabled,x=e.underlined,k=e.styles,w=e.labelText,C=e.placeholder,S=void 0===C?w:C,B=e.theme,I=e.clearButtonProps,E=void 0===I?v:I,z=e.disableAnimation,T=void 0!==z&&z,A=e.showIcon,P=void 0!==A&&A,R=e.onClear,D=e.onBlur,N=e.onEscape,F=e.onSearch,M=e.onKeyDown,j=e.iconProps,O=e.role,H=e.onChange,L=e.onChanged,q=i.useState(!1),W=q[0],V=q[1],G=i.useRef(),K=(0,c.k)(e.value,_,(function(e,t){e&&e.timeStamp===G.current||(G.current=null===e||void 0===e?void 0:e.timeStamp,null===H||void 0===H||H(e,t),null===L||void 0===L||L(t))})),U=K[0],X=K[1],Y=String(U),Z=i.useRef(null),Q=i.useRef(null),$=(0,u.a)(Z,t),J=(0,d.B)(h,e.id),ee=E.onClick,te=b(k,{theme:B,className:n,underlined:x,hasFocus:W,disabled:y,hasInput:Y.length>0,disableAnimation:T,showIcon:P}),oe=(0,s.G1)(e,s.QQ,["className","placeholder","onFocus","onBlur","value","role"]),ne=i.useCallback((function(e){var t;null===R||void 0===R||R(e),e.defaultPrevented||(X(""),null===(t=Q.current)||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())}),[R,X]),re=i.useCallback((function(e){null===ee||void 0===ee||ee(e),e.defaultPrevented||ne(e)}),[ee,ne]),ie=i.useCallback((function(e){V(!1),null===D||void 0===D||D(e)}),[D]),ae=function(e){X(e.target.value,e)};return function(e,t,o){i.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 o}}}),[t,o])}(e.componentRef,Q,W),i.createElement("div",{role:O,ref:$,className:te.root,onFocusCapture:function(t){var o;V(!0),null===(o=e.onFocus)||void 0===o||o.call(e,t)}},i.createElement("div",{className:te.iconContainer,onClick:function(){Q.current&&(Q.current.focus(),Q.current.selectionStart=Q.current.selectionEnd=0)},"aria-hidden":!0},i.createElement(p.I,(0,r.__assign)({iconName:"Search"},j,{className:te.icon}))),i.createElement("input",(0,r.__assign)({},oe,{id:J,className:te.field,placeholder:S,onChange:ae,onInput:ae,onBlur:ie,onKeyDown:function(e){switch(e.which){case l.c.escape:null===N||void 0===N||N(e),Y&&!e.defaultPrevented&&ne(e);break;case l.c.enter:F&&(F(Y),e.preventDefault(),e.stopPropagation());break;default:null===M||void 0===M||M(e),e.defaultPrevented&&e.stopPropagation()}},value:Y,disabled:y,role:"searchbox","aria-label":o,ref:Q})),Y.length>0&&i.createElement("div",{className:te.clearButton},i.createElement(f.K,(0,r.__assign)({onBlur:ie,styles:m,iconProps:g},E,{onClick:re}))))}));_.displayName=h;var y=o(7354),x=o(16758),k={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};var w=(0,n.I)(_,(function(e){var t,o,n,r,i,a=e.theme,s=e.underlined,l=e.disabled,c=e.hasFocus,u=e.className,d=e.hasInput,f=e.disableAnimation,p=e.showIcon,h=a.palette,m=a.fonts,g=a.semanticColors,v=a.effects,b=(0,y.Km)(k,a),_={color:g.inputPlaceholderText,opacity:1},w=h.neutralSecondary,C=h.neutralPrimary,S=h.neutralLighter,B=h.neutralLighter,I=h.neutralLighter;return{root:[b.root,m.medium,y.S8,{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[y.up]={borderColor:"WindowText"},t[":hover"]={borderColor:g.inputBorderHovered,selectors:(o={},o[y.up]={borderColor:"Highlight"},o)},t[":hover .".concat(b.iconContainer)]={color:g.inputIconHovered},t)},!c&&d&&{selectors:(n={},n[":hover .".concat(b.iconContainer)]={width:4},n[":hover .".concat(b.icon)]={opacity:0,pointerEvents:"none"},n)},c&&["is-active",{position:"relative"},(0,y.Sq)(g.inputFocusBorderAlt,s?0:v.roundedCorner2,s?"borderBottom":"border")],p&&[{selectors:(r={},r[":hover .".concat(b.iconContainer)]={width:32},r[":hover .".concat(b.icon)]={opacity:1},r)}],l&&["is-disabled",{borderColor:S,backgroundColor:I,pointerEvents:"none",cursor:"default",selectors:(i={},i[y.up]={borderColor:"GrayText"},i)}],s&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],s&&l&&{backgroundColor:"transparent"},d&&"can-clear",u],iconContainer:[b.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:g.inputIcon,cursor:"text"},c&&{width:4},l&&{color:g.inputIconDisabled},!f&&{transition:"width ".concat(y.cs.durationValue1)},p&&c&&{width:32}],icon:[b.icon,{opacity:1},c&&{opacity:0,pointerEvents:"none"},!f&&{transition:"opacity ".concat(y.cs.durationValue1," 0s")},p&&c&&{opacity:1}],clearButton:[b.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:B},"&:hover .ms-Button-icon":{color:C},".ms-Button":{borderRadius:(0,x.jI)(a)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:w}}}],field:[b.field,y.S8,(0,y.CX)(_),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:g.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},l&&{color:g.disabledText}]}}),void 0,{scope:"SearchBox"})},78536:function(e,t,o){"use strict";o.d(t,{W:function(){return D}});var n=o(75425),r=o(84867),i=o(7354),a=o(65808),s=o(16758),l={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},c="100%",u=(0,a.J9)((function(){return(0,i.i7)({"0%":{transform:"translateX(-".concat(c,")")},"100%":{transform:"translateX(".concat(c,")")}})})),d=(0,a.J9)((function(){return(0,i.i7)({"100%":{transform:"translateX(-".concat(c,")")},"0%":{transform:"translateX(".concat(c,")")}})}));var f=o(80322),p=o(26858),h=o(33347),m=o(47770),g=o(55884),v=(0,p.Z)(),b={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};var _=(0,n.I)((function(e){var t=e.height,o=e.styles,n=e.width,r=void 0===n?"100%":n,i=e.borderStyle,a=e.theme,s=v(o,{theme:a,height:t,borderStyle:i});return f.createElement("div",{style:{width:r,minWidth:"number"===typeof r?"".concat(r,"px"):"auto"},className:s.root},f.createElement("svg",{width:"2",height:"2",className:s.topLeftCorner},f.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),f.createElement("svg",{width:"2",height:"2",className:s.topRightCorner},f.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),f.createElement("svg",{width:"2",height:"2",className:s.bottomRightCorner},f.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),f.createElement("svg",{width:"2",height:"2",className:s.bottomLeftCorner},f.createElement("path",{d:"M2 2 A 2 2, 0, 0, 1, 0 0 L 0 2 Z"})))}),(function(e){var t,o=e.height,n=e.borderStyle,r=e.theme,a=r.semanticColors,s=(0,i.Km)(b,r),l=n||{},c={position:"absolute",fill:a.bodyBackground};return{root:[s.root,r.fonts.medium,{height:"".concat(o,"px"),boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,borderWidth:0,selectors:(t={},t[i.up]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},l],topLeftCorner:[s.topLeftCorner,{top:"0",left:"0"},c],topRightCorner:[s.topRightCorner,{top:"0",right:"0"},c],bottomRightCorner:[s.bottomRightCorner,{bottom:"0",right:"0"},c],bottomLeftCorner:[s.bottomLeftCorner,{bottom:"0",left:"0"},c]}}),void 0,{scope:"ShimmerLine"}),y=(0,p.Z)(),x={root:"ms-ShimmerGap-root"};var k=(0,n.I)((function(e){var t=e.height,o=e.styles,n=e.width,r=void 0===n?"10px":n,i=e.borderStyle,a=e.theme,s=y(o,{theme:a,height:t,borderStyle:i});return f.createElement("div",{style:{width:r,minWidth:"number"===typeof r?"".concat(r,"px"):"auto"},className:s.root})}),(function(e){var t,o=e.height,n=e.borderStyle,r=e.theme,a=r.semanticColors,s=n||{};return{root:[(0,i.Km)(x,r).root,r.fonts.medium,{backgroundColor:a.bodyBackground,height:"".concat(o,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,selectors:(t={},t[i.up]={backgroundColor:"Window",borderColor:"Window"},t)},s]}}),void 0,{scope:"ShimmerGap"}),w={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};var C=(0,p.Z)(),S=(0,n.I)((function(e){var t=e.height,o=e.styles,n=e.borderStyle,r=e.theme,i=C(o,{theme:r,height:t,borderStyle:n});return f.createElement("div",{className:i.root},f.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:i.svg},f.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,o,n=e.height,r=e.borderStyle,a=e.theme,s=a.semanticColors,l=(0,i.Km)(w,a),c=r||{};return{root:[l.root,a.fonts.medium,{width:"".concat(n,"px"),height:"".concat(n,"px"),minWidth:"".concat(n,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:s.bodyBackground,selectors:(t={},t[i.up]={borderColor:"Window"},t)},c],svg:[l.svg,{display:"block",fill:s.bodyBackground,selectors:(o={},o[i.up]={fill:"Window"},o)}]}}),void 0,{scope:"ShimmerCircle"}),B=(0,p.Z)();var I=(0,a.J9)((function(e,t,o,n,i){var a,s=i&&o?i-o:0;if(e&&"center"!==e?e&&"top"===e?a={borderBottomWidth:"".concat(s,"px"),borderTopWidth:"0px"}:e&&"bottom"===e&&(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")},n)switch(t){case g.w.circle:return{root:(0,r.__assign)((0,r.__assign)({},a),{borderColor:n}),svg:{fill:n}};case g.w.gap:return{root:(0,r.__assign)((0,r.__assign)({},a),{borderColor:n,backgroundColor:n})};case g.w.line:return{root:(0,r.__assign)((0,r.__assign)({},a),{borderColor:n}),topLeftCorner:{fill:n},topRightCorner:{fill:n},bottomLeftCorner:{fill:n},bottomRightCorner:{fill:n}}}return{root:a}}));var E={root:"ms-ShimmerElementsGroup-root"};var z=(0,n.I)((function(e){var t=e.styles,o=e.width,n=void 0===o?"auto":o,i=e.shimmerElements,a=e.rowHeight,s=void 0===a?function(e){return e.map((function(e){switch(e.type){case g.w.circle:e.height||(e.height=g.A.circle);break;case g.w.line:e.height||(e.height=g.A.line);break;case g.w.gap:e.height||(e.height=g.A.gap)}return e})).reduce((function(e,t){return t.height&&t.height>e?t.height:e}),0)}(i||[]):a,l=e.flexWrap,c=void 0!==l&&l,u=e.theme,d=e.backgroundColor,p=B(t,{theme:u,flexWrap:c});return f.createElement("div",{style:{width:n},className:p.root},function(e,t,o){var n=e?e.map((function(e,n){var i=e.type,a=(0,r.__rest)(e,["type"]),s=a.verticalAlign,l=a.height,c=I(s,i,l,t,o);switch(e.type){case g.w.circle:return f.createElement(S,(0,r.__assign)({key:n},a,{styles:c}));case g.w.gap:return f.createElement(k,(0,r.__assign)({key:n},a,{styles:c}));case g.w.line:return f.createElement(_,(0,r.__assign)({key:n},a,{styles:c}))}})):f.createElement(_,{height:g.A.line});return n}(i,d,s))}),(function(e){var t=e.flexWrap,o=e.theme;return{root:[(0,i.Km)(E,o).root,o.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}}),void 0,{scope:"ShimmerElementsGroup"}),T=o(60278),A=o(52922),P=(0,p.Z)(),R=f.forwardRef((function(e,t){var o=e.styles,n=e.shimmerElements,i=e.children,a=e.width,s=e.className,l=e.customElementsGroup,c=e.theme,u=e.ariaLabel,d=e.shimmerColors,p=e.isDataLoaded,g=void 0!==p&&p,v=e.improveCSSPerformance,b=(0,h.G1)(e,h.JM),_=P(o,{theme:c,isDataLoaded:g,className:s,transitionAnimationInterval:200,shimmerColor:d&&d.shimmer,shimmerWaveColor:d&&d.shimmerWave,improveCSSPerformance:v||!l}),y=(0,T.d)({lastTimeoutId:0}),x=(0,A.j)(),k=x.setTimeout,w=x.clearTimeout,C=f.useState(g),S=C[0],B=C[1],I={width:a||"100%"};return f.useEffect((function(){if(g!==S){if(g)return y.lastTimeoutId=k((function(){B(!0)}),200),function(){return w(y.lastTimeoutId)};B(!1)}}),[g]),f.createElement("div",(0,r.__assign)({},b,{className:_.root,ref:t}),!S&&f.createElement("div",{style:I,className:_.shimmerWrapper},f.createElement("div",{className:_.shimmerGradient}),l||f.createElement(z,{shimmerElements:n,backgroundColor:d&&d.background})),i&&f.createElement("div",{className:_.dataWrapper},i),u&&!g&&f.createElement("div",{role:"status","aria-live":"polite"},f.createElement(m.P,null,f.createElement("div",{className:_.screenReaderText},u))))}));R.displayName="Shimmer";var D=(0,n.I)(R,(function(e){var t,o=e.isDataLoaded,n=e.className,a=e.theme,f=e.transitionAnimationInterval,p=e.shimmerColor,h=e.shimmerWaveColor,m=e.improveCSSPerformance,g=a.semanticColors,v=(0,i.Km)(l,a),b=(0,s.jI)(a);return{root:[v.root,a.fonts.medium,{position:"relative",height:"auto"},n],shimmerWrapper:[v.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:p||g.disabledBackground,transition:"opacity ".concat(f,"ms"),selectors:(t={},t[i.up]=(0,r.__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"},(0,i.Qg)()),t)},o&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"},m?{selectors:{"> div:last-child":{transform:"translateZ(0)"}}}:{selectors:{"> *":{transform:"translateZ(0)"}}}],shimmerGradient:[v.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"".concat(p||g.disabledBackground,"\n                      linear-gradient(\n                        to right,\n                        ").concat(p||g.disabledBackground," 0%,\n                        ").concat(h||g.bodyDivider," 50%,\n                        ").concat(p||g.disabledBackground," 100%)\n                      0 0 / 90% 100%\n                      no-repeat"),transform:"translateX(-".concat(c,")"),animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:b?d():u()}],dataWrapper:[v.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity ".concat(f,"ms")},o&&{opacity:"1",position:"static"}],screenReaderText:i.dX}}),void 0,{scope:"Shimmer"})},55884:function(e,t,o){"use strict";var n,r;o.d(t,{A:function(){return r},w:function(){return n}}),function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(n||(n={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(r||(r={}))},52e3:function(e,t,o){"use strict";o.d(t,{i:function(){return c}});var n=o(84867),r=o(80322),i=o(81708),a=o(7354),s=r.createContext({scrollablePane:void 0}),l=o(26700),c=function(e){function t(t){var o=e.call(this,t)||this;return o._root=r.createRef(),o._stickyContentTop=r.createRef(),o._stickyContentBottom=r.createRef(),o._nonStickyContent=r.createRef(),o._placeHolder=r.createRef(),o.syncScroll=function(e){var t=o.nonStickyContent;t&&o.props.isScrollSynced&&(t.scrollLeft=e.scrollLeft)},o._getContext=function(){return o.context},o._onScrollEvent=function(e,t){if(o.root&&o.nonStickyContent){var n=o._getNonStickyDistanceFromTop(e),r=!1,i=!1;if(o.canStickyTop)r=n-o._getStickyDistanceFromTop()<e.scrollTop;o.canStickyBottom&&e.clientHeight-t.offsetHeight<=n&&(i=n-Math.floor(e.scrollTop)>=o._getStickyDistanceFromTopForFooter(e,t)),document.activeElement&&o.nonStickyContent.contains(document.activeElement)&&(o.state.isStickyTop!==r||o.state.isStickyBottom!==i)?o._activeElement=document.activeElement:o._activeElement=void 0,o.setState({isStickyTop:o.canStickyTop&&r,isStickyBottom:i,distanceFromTop:n})}},o._getStickyDistanceFromTop=function(){var e=0;return o.stickyContentTop&&(e=o.stickyContentTop.offsetTop),e},o._getStickyDistanceFromTopForFooter=function(e,t){var n=0;return o.stickyContentBottom&&(n=e.clientHeight-t.offsetHeight+o.stickyContentBottom.offsetTop),n},o._getNonStickyDistanceFromTop=function(e){var t=0,n=o.root;if(n){for(;n&&n.offsetParent!==e;)t+=n.offsetTop,n=n.offsetParent;n&&n.offsetParent===e&&(t+=n.offsetTop)}return t},(0,i.f)(o),o.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},o._activeElement=void 0,o}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===l.P.Both||this.props.stickyPosition===l.P.Header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===l.P.Both||this.props.stickyPosition===l.P.Footer},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this._getContext().scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},t.prototype.componentWillUnmount=function(){var e=this._getContext().scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},t.prototype.componentDidUpdate=function(e,t){var o=this._getContext().scrollablePane;if(o){var n=this.state,r=n.isStickyBottom,i=n.isStickyTop,a=n.distanceFromTop,s=!1;t.distanceFromTop!==a&&(o.sortSticky(this,!0),s=!0),t.isStickyTop===i&&t.isStickyBottom===r||(this._activeElement&&this._activeElement.focus(),o.updateStickyRefHeights(),s=!0),s&&o.syncScrollSticky(this)}},t.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var o=this.state,n=o.isStickyTop,r=o.isStickyBottom,i=o.distanceFromTop;return n!==t.isStickyTop||r!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||i!==t.distanceFromTop||u(this._nonStickyContent,this._stickyContentTop)||u(this._nonStickyContent,this._stickyContentBottom)||u(this._nonStickyContent,this._placeHolder)},t.prototype.render=function(){var e=this.state,t=e.isStickyTop,o=e.isStickyBottom,n=this.props,i=n.stickyClassName,s=n.children;return this.context.scrollablePane?r.createElement("div",{ref:this._root},this.canStickyTop&&r.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},r.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&r.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:o?"auto":"none"}},r.createElement("div",{style:this._getStickyPlaceholderHeight(o)})),r.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||o)&&r.createElement("span",{style:a.dX},s),r.createElement("div",{ref:this._nonStickyContent,className:t||o?i:void 0,style:this._getContentStyles(t||o)},s))):r.createElement("div",null,this.props.children)},t.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},t.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},t.prototype.setDistanceFromTop=function(e){var t=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:t})},t.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},t.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},t.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,o=e.isStickyBottom;if(t||o){var n=0,r=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(n=this.nonStickyContent.offsetHeight,r=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:n,width:r}}return{}},t.prototype._getBackground=function(){if(this.root){for(var e=this.root;"rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||"transparent"===window.getComputedStyle(e).getPropertyValue("background-color");){if("HTML"===e.tagName)return;e.parentElement&&(e=e.parentElement)}return window.getComputedStyle(e).getPropertyValue("background-color")}},t.defaultProps={stickyPosition:l.P.Both,isScrollSynced:!0},t.contextType=s,t}(r.Component);function u(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}},26700:function(e,t,o){"use strict";var n;o.d(t,{P:function(){return n}}),function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(n||(n={}))},92634:function(e,t,o){"use strict";o.d(t,{l:function(){return v}});var n=o(75425),r=o(84867),i=o(80322),a=o(30749),s=o(66848),l=o(26858),c=o(33347),u=o(13578),d=o(42682),f=(0,l.Z)(),p="Toggle",h=i.forwardRef((function(e,t){var o=e.as,n=void 0===o?"div":o,l=e.ariaLabel,h=e.checked,g=e.className,v=e.defaultChecked,b=void 0!==v&&v,_=e.disabled,y=e.inlineLabel,x=e.label,k=e.offAriaLabel,w=e.offText,C=e.onAriaLabel,S=e.onChange,B=e.onChanged,I=e.onClick,E=e.onText,z=e.role,T=e.styles,A=e.theme,P=(0,a.k)(h,b,i.useCallback((function(e,t){null===S||void 0===S||S(e,t),null===B||void 0===B||B(t)}),[S,B])),R=P[0],D=P[1],N=f(T,{theme:A,className:g,disabled:_,checked:R,inlineLabel:y,onOffMissing:!E&&!w}),F=R?C:k,M=(0,s.B)(p,e.id),j="".concat(M,"-label"),O="".concat(M,"-stateText"),H=R?E:w,L=(0,c.G1)(e,c.QQ,["defaultChecked"]),q=void 0;l||F||(x&&(q=j),H&&!q&&(q=O));var W=i.useRef(null);(0,u.vk)(W),m(e,R,W);var V={root:{className:N.root,hidden:L.hidden},label:{children:x,className:N.label,htmlFor:M,id:j},container:{className:N.container},pill:(0,r.__assign)((0,r.__assign)({},L),{"aria-disabled":_,"aria-checked":R,"aria-label":l||F,"aria-labelledby":q,className:N.pill,"data-is-focusable":!0,"data-ktp-target":!0,disabled:_,id:M,onClick:function(e){_||(D(!R,e),I&&I(e))},ref:W,role:z||"switch",type:"button"}),thumb:{className:N.thumb},stateText:{children:H,className:N.text,htmlFor:M,id:O}};return i.createElement(n,(0,r.__assign)({ref:t},V.root),x&&i.createElement(d.J,(0,r.__assign)({},V.label)),i.createElement("div",(0,r.__assign)({},V.container),i.createElement("button",(0,r.__assign)({},V.pill),i.createElement("span",(0,r.__assign)({},V.thumb))),(R&&E||w)&&i.createElement(d.J,(0,r.__assign)({},V.stateText))))}));h.displayName="ToggleBase";var m=function(e,t,o){i.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},focus:function(){o.current&&o.current.focus()}}}),[t,o])},g=o(7354),v=(0,n.I)(h,(function(e){var t,o,n,i,a,s,l,c=e.theme,u=e.className,d=e.disabled,f=e.checked,p=e.inlineLabel,h=e.onOffMissing,m=c.semanticColors,v=c.palette,b=m.bodyBackground,_=m.inputBackgroundChecked,y=m.inputBackgroundCheckedHovered,x=v.neutralDark,k=m.disabledBodySubtext,w=m.smallInputBorder,C=m.inputForegroundChecked,S=m.disabledBodySubtext,B=m.disabledBackground,I=m.smallInputBorder,E=m.inputBorderHovered,z=m.disabledBodySubtext,T=m.disabledText;return{root:["ms-Toggle",f&&"is-checked",!d&&"is-enabled",d&&"is-disabled",c.fonts.medium,{marginBottom:"8px"},p&&{display:"flex",alignItems:"center"},u],label:["ms-Toggle-label",{display:"inline-block"},d&&{color:T,selectors:(t={},t[g.up]={color:"GrayText"},t)},p&&!h&&{marginRight:16},h&&p&&{order:1,marginLeft:16},p&&{wordBreak:"break-word"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",(0,g.gm)(c,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid ".concat(I),background:b,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px",overflow:"visible"},!d&&[!f&&{selectors:{":hover":[{borderColor:E}],":hover .ms-Toggle-thumb":[{backgroundColor:x,selectors:(o={},o[g.up]={borderColor:"Highlight"},o)}]}},f&&[{background:_,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(n={":hover":[{backgroundColor:y,borderColor:"transparent",selectors:(i={},i[g.up]={backgroundColor:"Highlight"},i)}]},n[g.up]=(0,r.__assign)({backgroundColor:"Highlight"},(0,g.Qg)()),n)}]],d&&[{cursor:"default"},!f&&[{borderColor:z}],f&&[{backgroundColor:k,borderColor:"transparent",justifyContent:"flex-end"}]],!d&&{selectors:{"&:hover":{selectors:(a={},a[g.up]={borderColor:"Highlight"},a)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:w,borderColor:"transparent",borderWidth:6,borderStyle:"solid",boxSizing:"border-box"},!d&&f&&[{backgroundColor:C,selectors:(s={},s[g.up]={backgroundColor:"Window",borderColor:"Window"},s)}],d&&[!f&&[{backgroundColor:S}],f&&[{backgroundColor:B}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:g.BO.regular}}},d&&{selectors:{"&&":{color:T,selectors:(l={},l[g.up]={color:"GrayText"},l)}}}]}}),void 0,{scope:"Toggle"})},68878:function(e,t,o){"use strict";var n;o.d(t,{v:function(){return n}}),function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(n||(n={}))},44101:function(e,t,o){"use strict";o.d(t,{fw:function(){return Te}});var n={};o.r(n),o.d(n,{actionButton:function(){return D},buttonSelected:function(){return N},closeButton:function(){return A},itemButton:function(){return R},root:function(){return z},suggestionsAvailable:function(){return H},suggestionsContainer:function(){return M},suggestionsItem:function(){return T},suggestionsItemIsSuggested:function(){return P},suggestionsNone:function(){return j},suggestionsSpinner:function(){return O},suggestionsTitle:function(){return F}});var r={};o.r(r),o.d(r,{inputDisabled:function(){return ie},inputFocused:function(){return re},picker:function(){return oe},pickerInput:function(){return ae},pickerItems:function(){return se},pickerText:function(){return ne},screenReaderOnly:function(){return le}});var i,a=o(84867),s=o(80322),l=o(89575),c=o(16758),u=o(75425),d=o(26858),f=o(54121),p=o(89896),h=o(81708),m=o(3676),g=o(50453),v=o(16711),b=o(40463),_=o(43639),y=o(20135),x=o(57717),k=o(21424),w=o(20852),C=o(27630),S=o(47495),B=o(18725);!function(e){e[e.none=0]="none",e[e.forceResolve=1]="forceResolve",e[e.searchMore=2]="searchMore"}(i||(i={}));var I=o(47751),E=o(28480);(0,E.hN)([{rawString:".root_8c91000a{min-width:260px}.suggestionsItem_8c91000a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_8c91000a:hover{background:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:"}.suggestionsItem_8c91000a:hover .closeButton_8c91000a{display:block}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .itemButton_8c91000a{color:HighlightText}}.suggestionsItem_8c91000a .closeButton_8c91000a{display:none;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.suggestionsItem_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.actionButton_8c91000a{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_8c91000a{padding-left:8px}[dir=rtl] .actionButton_8c91000a{padding-right:8px}html[dir=ltr] .actionButton_8c91000a{text-align:left}html[dir=rtl] .actionButton_8c91000a{text-align:right}.actionButton_8c91000a:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";cursor:pointer}.actionButton_8c91000a:active,.actionButton_8c91000a:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_8c91000a .ms-Button-icon{font-size:16px;width:25px}.actionButton_8c91000a .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_8c91000a .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_8c91000a{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.suggestionsTitle_8c91000a{padding:0 12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";font-size:12px;line-height:40px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsContainer_8c91000a{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsNone_8c91000a{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_8c91000a{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_8c91000a{padding-left:14px}html[dir=rtl] .suggestionsSpinner_8c91000a{padding-right:14px}html[dir=ltr] .suggestionsSpinner_8c91000a{text-align:left}html[dir=rtl] .suggestionsSpinner_8c91000a{text-align:right}.suggestionsSpinner_8c91000a .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_8c91000a .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_8c91000a .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_8c91000a.itemButton_8c91000a{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_8c91000a.itemButton_8c91000a{color:WindowText}}.itemButton_8c91000a.itemButton_8c91000a:hover{color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.closeButton_8c91000a.closeButton_8c91000a{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.closeButton_8c91000a.closeButton_8c91000a{color:WindowText}}.closeButton_8c91000a.closeButton_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:";color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.suggestionsAvailable_8c91000a{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var z="root_8c91000a",T="suggestionsItem_8c91000a",A="closeButton_8c91000a",P="suggestionsItemIsSuggested_8c91000a",R="itemButton_8c91000a",D="actionButton_8c91000a",N="buttonSelected_8c91000a",F="suggestionsTitle_8c91000a",M="suggestionsContainer_8c91000a",j="suggestionsNone_8c91000a",O="suggestionsSpinner_8c91000a",H="suggestionsAvailable_8c91000a",L=n,q=(0,d.Z)(),W=function(e){function t(t){var o=e.call(this,t)||this;return(0,h.f)(o),o}return(0,a.__extends)(t,e),t.prototype.render=function(){var e,t=this.props,o=t.suggestionModel,n=t.RenderSuggestion,r=t.onClick,i=t.className,a=t.id,l=t.onRemoveItem,c=t.isSelectedOverride,u=t.removeButtonAriaLabel,d=t.styles,f=t.theme,p=t.removeButtonIconProps,h=d?q(d,{theme:f,className:i,suggested:o.selected||c}):{root:(0,v.A)("ms-Suggestions-item",L.suggestionsItem,(e={},e["is-suggested "+L.suggestionsItemIsSuggested]=o.selected||c,e),i),itemButton:(0,v.A)("ms-Suggestions-itemButton",L.itemButton),closeButton:(0,v.A)("ms-Suggestions-closeButton",L.closeButton)};return s.createElement("div",{className:h.root,role:"presentation"},s.createElement(C.c,{onClick:r,className:h.itemButton,id:a,"aria-selected":o.selected,role:"option","aria-label":o.ariaLabel},n(o.item,this.props)),this.props.showRemoveButton?s.createElement(I.K,{iconProps:null!==p&&void 0!==p?p:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},title:u,ariaLabel:u,onClick:l,className:h.closeButton}):null)},t}(s.Component),V=o(7354),G=o(40950),K={root:"ms-Suggestions-item",itemButton:"ms-Suggestions-itemButton",closeButton:"ms-Suggestions-closeButton",isSuggested:"is-suggested"};var U=n,X=(0,d.Z)(),Y=(0,u.I)(W,(function(e){var t,o,n,r,i,s,l=e.className,c=e.theme,u=e.suggested,d=c.palette,f=c.semanticColors,p=(0,V.Km)(K,c);return{root:[p.root,{display:"flex",alignItems:"stretch",boxSizing:"border-box",width:"100%",position:"relative",selectors:{"&:hover":{background:f.menuItemBackgroundHovered},"&:hover .ms-Suggestions-closeButton":{display:"block"}}},u&&{selectors:(t={},t[".".concat(G.Y2," &")]={selectors:(o={},o[".".concat(p.closeButton)]={display:"block",background:f.menuItemBackgroundPressed},o)},t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid ".concat(c.semanticColors.focusBorder)},t)},l],itemButton:[p.itemButton,{width:"100%",padding:0,border:"none",height:"100%",minWidth:0,overflow:"hidden",selectors:(n={},n[V.up]={color:"WindowText",selectors:{":hover":(0,a.__assign)({background:"Highlight",color:"HighlightText"},(0,V.Qg)())}},n[":hover"]={color:f.menuItemTextHovered},n)},u&&[p.isSuggested,{background:f.menuItemBackgroundPressed,selectors:(r={":hover":{background:f.menuDivider}},r[V.up]=(0,a.__assign)({background:"Highlight",color:"HighlightText"},(0,V.Qg)()),r)}]],closeButton:[p.closeButton,{display:"none",color:d.neutralSecondary,padding:"0 4px",height:"auto",width:32,selectors:(i={":hover, :active":{background:d.neutralTertiaryAlt,color:d.neutralDark}},i[V.up]={color:"WindowText"},i)},u&&(s={},s[".".concat(G.Y2," &")]={selectors:{":hover, :active":{background:d.neutralTertiary}}},s.selectors={":hover, :active":{background:d.neutralTertiary,color:d.neutralPrimary}},s)]}}),void 0,{scope:"SuggestionItem"}),Z=function(e){function t(t){var o=e.call(this,t)||this;return o._forceResolveButton=s.createRef(),o._searchForMoreButton=s.createRef(),o._selectedElement=s.createRef(),o._scrollContainer=s.createRef(),o.tryHandleKeyDown=function(e,t){var n=!1,r=null,a=o.state.selectedActionType,s=o.props.suggestions.length;if(e===f.c.down)switch(a){case i.forceResolve:s>0?(o._refocusOnSuggestions(e),r=i.none):r=o._searchForMoreButton.current?i.searchMore:i.forceResolve;break;case i.searchMore:o._forceResolveButton.current?r=i.forceResolve:s>0?(o._refocusOnSuggestions(e),r=i.none):r=i.searchMore;break;case i.none:-1===t&&o._forceResolveButton.current&&(r=i.forceResolve)}else if(e===f.c.up)switch(a){case i.forceResolve:o._searchForMoreButton.current?r=i.searchMore:s>0&&(o._refocusOnSuggestions(e),r=i.none);break;case i.searchMore:s>0?(o._refocusOnSuggestions(e),r=i.none):o._forceResolveButton.current&&(r=i.forceResolve);break;case i.none:-1===t&&o._searchForMoreButton.current&&(r=i.searchMore)}return null!==r&&(o.setState({selectedActionType:r}),n=!0),n},o._getAlertText=function(){var e=o.props,t=e.isLoading,n=e.isSearching,r=e.suggestions,i=e.suggestionsAvailableAlertText,a=e.noResultsFoundText,s=e.isExtendedLoading,l=e.loadingText;if(t||n){if(t&&s)return l||""}else{if(r.length>0)return i||"";if(a)return a}return""},o._getMoreResults=function(){o.props.onGetMoreResults&&(o.props.onGetMoreResults(),o.setState({selectedActionType:i.none}))},o._forceResolve=function(){o.props.createGenericItem&&o.props.createGenericItem()},o._shouldShowForceResolve=function(){return!!o.props.showForceResolve&&o.props.showForceResolve()},o._onClickTypedSuggestionsItem=function(e,t){return function(n){o.props.onSuggestionClick(n,e,t)}},o._refocusOnSuggestions=function(e){"function"===typeof o.props.refocusSuggestions&&o.props.refocusSuggestions(e)},o._onRemoveTypedSuggestionsItem=function(e,t){return function(n){(0,o.props.onSuggestionRemove)(n,e,t),n.stopPropagation()}},(0,h.f)(o),o.state={selectedActionType:i.none},o}return(0,a.__extends)(t,e),t.prototype.componentDidMount=function(){this.scrollSelected(),this.activeSelectedElement=this._selectedElement?this._selectedElement.current:null},t.prototype.componentDidUpdate=function(){this._selectedElement.current&&this.activeSelectedElement!==this._selectedElement.current&&(this.scrollSelected(),this.activeSelectedElement=this._selectedElement.current)},t.prototype.render=function(){var e,t,o=this,n=this.props,r=n.forceResolveText,l=n.mostRecentlyUsedHeaderText,c=n.searchForMoreIcon,u=n.searchForMoreText,d=n.className,f=n.moreSuggestionsAvailable,p=n.noResultsFoundText,h=n.suggestions,m=n.isLoading,g=n.isSearching,b=n.loadingText,_=n.onRenderNoResultFound,y=n.searchingText,x=n.isMostRecentlyUsedVisible,k=n.resultsMaximumNumber,w=n.resultsFooterFull,I=n.resultsFooter,E=n.isResultsFooterVisible,z=void 0===E||E,T=n.suggestionsHeaderText,A=n.suggestionsClassName,P=n.theme,R=n.styles,D=n.suggestionsListId,N=n.suggestionsContainerAriaLabel;this._classNames=R?X(R,{theme:P,className:d,suggestionsClassName:A,forceResolveButtonSelected:this.state.selectedActionType===i.forceResolve,searchForMoreButtonSelected:this.state.selectedActionType===i.searchMore}):{root:(0,v.A)("ms-Suggestions",d,U.root),title:(0,v.A)("ms-Suggestions-title",U.suggestionsTitle),searchForMoreButton:(0,v.A)("ms-SearchMore-button",U.actionButton,(e={},e["is-selected "+U.buttonSelected]=this.state.selectedActionType===i.searchMore,e)),forceResolveButton:(0,v.A)("ms-forceResolve-button",U.actionButton,(t={},t["is-selected "+U.buttonSelected]=this.state.selectedActionType===i.forceResolve,t)),suggestionsAvailable:(0,v.A)("ms-Suggestions-suggestionsAvailable",U.suggestionsAvailable),suggestionsContainer:(0,v.A)("ms-Suggestions-container",U.suggestionsContainer,A),noSuggestions:(0,v.A)("ms-Suggestions-none",U.suggestionsNone)};var F=this._classNames.subComponentStyles?this._classNames.subComponentStyles.spinner:void 0,M=R?{styles:F}:{className:(0,v.A)("ms-Suggestions-spinner",U.suggestionsSpinner)},j=T;x&&l&&(j=l);var O=void 0;z&&(O=h.length>=k?w:I);var H=(!h||!h.length)&&!m,L=this.state.selectedActionType===i.forceResolve?"sug-selectedAction":void 0,q=this.state.selectedActionType===i.searchMore?"sug-selectedAction":void 0;return s.createElement("div",{className:this._classNames.root,"aria-label":N||j,id:D,role:"listbox"},s.createElement(B.e,{message:this._getAlertText(),"aria-live":"polite"}),j?s.createElement("div",{className:this._classNames.title},j):null,r&&this._shouldShowForceResolve()&&s.createElement(C.c,{componentRef:this._forceResolveButton,className:this._classNames.forceResolveButton,id:L,onClick:this._forceResolve,"data-automationid":"sug-forceResolve"},r),m&&s.createElement(S.y,(0,a.__assign)({},M,{ariaLabel:b,label:b})),H?function(){var e=function(){return s.createElement("div",{className:o._classNames.noSuggestions},p)};return s.createElement("div",{id:"sug-noResultsFound",role:"option"},_?_(void 0,e):e())}():this._renderSuggestions(),u&&f&&s.createElement(C.c,{componentRef:this._searchForMoreButton,className:this._classNames.searchForMoreButton,iconProps:c||{iconName:"Search"},id:q,onClick:this._getMoreResults,"data-automationid":"sug-searchForMore",role:"option"},u),g?s.createElement(S.y,(0,a.__assign)({},M,{ariaLabel:y,label:y})):null,!O||f||x||g?null:s.createElement("div",{className:this._classNames.title},O(this.props)))},t.prototype.hasSuggestedAction=function(){return!!this._searchForMoreButton.current||!!this._forceResolveButton.current},t.prototype.hasSuggestedActionSelected=function(){return this.state.selectedActionType!==i.none},t.prototype.executeSelectedAction=function(){switch(this.state.selectedActionType){case i.forceResolve:this._forceResolve();break;case i.searchMore:this._getMoreResults()}},t.prototype.focusAboveSuggestions=function(){this._forceResolveButton.current?this.setState({selectedActionType:i.forceResolve}):this._searchForMoreButton.current&&this.setState({selectedActionType:i.searchMore})},t.prototype.focusBelowSuggestions=function(){this._searchForMoreButton.current?this.setState({selectedActionType:i.searchMore}):this._forceResolveButton.current&&this.setState({selectedActionType:i.forceResolve})},t.prototype.focusSearchForMoreButton=function(){this._searchForMoreButton.current&&this._searchForMoreButton.current.focus()},t.prototype.scrollSelected=function(){if(this._selectedElement.current&&this._scrollContainer.current&&void 0!==this._scrollContainer.current.scrollTo){var e=this._selectedElement.current,t=e.offsetHeight,o=e.offsetTop,n=this._scrollContainer.current,r=n.offsetHeight,i=n.scrollTop,a=o+t>i+r;o<i?this._scrollContainer.current.scrollTo(0,o):a&&this._scrollContainer.current.scrollTo(0,o-r+t)}},t.prototype._renderSuggestions=function(){var e=this,t=this.props,o=t.onRenderSuggestion,n=t.removeSuggestionAriaLabel,r=t.suggestionsItemClassName,i=t.resultsMaximumNumber,a=t.showRemoveButtons,l=t.removeButtonIconProps,c=this.props.suggestions,u=Y,d=-1;return c.some((function(e,t){return!!e.selected&&(d=t,!0)})),i&&(c=d>=i?c.slice(d-i+1,d+1):c.slice(0,i)),0===c.length?null:s.createElement("div",{className:this._classNames.suggestionsContainer,ref:this._scrollContainer,role:"presentation"},c.map((function(t,i){return s.createElement("div",{ref:t.selected?e._selectedElement:void 0,key:t.item.key?t.item.key:i,role:"presentation"},s.createElement(u,{suggestionModel:t,RenderSuggestion:o,onClick:e._onClickTypedSuggestionsItem(t.item,i),className:r,showRemoveButton:a,removeButtonAriaLabel:n,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,i),id:"sug-"+i,removeButtonIconProps:l}))})))},t}(s.Component),Q={root:"ms-Suggestions",suggestionsContainer:"ms-Suggestions-container",title:"ms-Suggestions-title",forceResolveButton:"ms-forceResolve-button",searchForMoreButton:"ms-SearchMore-button",spinner:"ms-Suggestions-spinner",noSuggestions:"ms-Suggestions-none",suggestionsAvailable:"ms-Suggestions-suggestionsAvailable",isSelected:"is-selected"};function $(e){var t,o=e.className,n=e.suggestionsClassName,r=e.theme,i=e.forceResolveButtonSelected,s=e.searchForMoreButtonSelected,l=r.palette,c=r.semanticColors,u=r.fonts,d=(0,V.Km)(Q,r),f={backgroundColor:"transparent",border:0,cursor:"pointer",margin:0,paddingLeft:8,position:"relative",borderTop:"1px solid ".concat(l.neutralLight),height:40,textAlign:"left",width:"100%",fontSize:u.small.fontSize,selectors:{":hover":{backgroundColor:c.menuItemBackgroundPressed,cursor:"pointer"},":focus, :active":{backgroundColor:l.themeLight},".ms-Button-icon":{fontSize:u.mediumPlus.fontSize,width:25},".ms-Button-label":{margin:"0 4px 0 9px"}}},p={backgroundColor:l.themeLight,selectors:(t={},t[V.up]=(0,a.__assign)({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},(0,V.Qg)()),t)};return{root:[d.root,{minWidth:260},o],suggestionsContainer:[d.suggestionsContainer,{overflowY:"auto",overflowX:"hidden",maxHeight:300,transform:"translate3d(0,0,0)"},n],title:[d.title,{padding:"0 12px",fontSize:u.small.fontSize,color:l.themePrimary,lineHeight:40,borderBottom:"1px solid ".concat(c.menuItemBackgroundPressed)}],forceResolveButton:[d.forceResolveButton,f,i&&[d.isSelected,p]],searchForMoreButton:[d.searchForMoreButton,f,s&&[d.isSelected,p]],noSuggestions:[d.noSuggestions,{textAlign:"center",color:l.neutralSecondary,fontSize:u.small.fontSize,lineHeight:30}],suggestionsAvailable:[d.suggestionsAvailable,V.dX],subComponentStyles:{spinner:{root:[d.spinner,{margin:"5px 0",paddingLeft:14,textAlign:"left",whiteSpace:"nowrap",lineHeight:20,fontSize:u.small.fontSize}],circle:{display:"inline-block",verticalAlign:"middle"},label:{display:"inline-block",verticalAlign:"middle",margin:"0 10px 0 16px"}}}}}var J=function(){function e(){var e=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(t){return e._isSuggestionModel(t)?t:{item:t,selected:!1,ariaLabel:t.ariaLabel}},this.suggestions=[],this.currentIndex=-1}return e.prototype.updateSuggestions=function(e,t,o){if(e&&e.length>0){if(o&&e.length>o){var n=t&&t>o?t+1-o:0;e=e.slice(n,n+o-1)}this.suggestions=this.convertSuggestionsToSuggestionItems(e),this.currentIndex=t||0,-1===t?this.currentSuggestion=void 0:void 0!==t&&(this.suggestions[t].selected=!0,this.currentSuggestion=this.suggestions[t])}else this.suggestions=[],this.currentIndex=-1,this.currentSuggestion=void 0},e.prototype.nextSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex<this.suggestions.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.currentIndex===this.suggestions.length-1)return this.setSelectedSuggestion(0),!0}return!1},e.prototype.previousSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(0===this.currentIndex)return this.setSelectedSuggestion(this.suggestions.length-1),!0}return!1},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getCurrentItem=function(){return this.currentSuggestion},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.hasSelectedSuggestion=function(){return!!this.currentSuggestion},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.createGenericSuggestion=function(e){var t=this.convertSuggestionsToSuggestionItems([e])[0];this.currentSuggestion=t},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1)},e.prototype.setSelectedSuggestion=function(e){e>this.suggestions.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=this.suggestions[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1),this.suggestions[e].selected=!0,this.currentIndex=e,this.currentSuggestion=this.suggestions[e])},e}(),ee=o(68878),te=o(51225);(0,E.hN)([{rawString:".picker_94f06b16{position:relative}.pickerText_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;min-height:30px}.pickerText_94f06b16:hover{border-color:"},{theme:"inputBorderHovered",defaultValue:"#323130"},{rawString:"}.pickerText_94f06b16.inputFocused_94f06b16{position:relative;border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}.pickerText_94f06b16.inputFocused_94f06b16:after{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid '},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.pickerText_94f06b16.inputDisabled_94f06b16{position:relative;border-color:GrayText}.pickerText_94f06b16.inputDisabled_94f06b16:after{pointer-events:none;content:"";position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_94f06b16{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_94f06b16{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}'}]);var oe="picker_94f06b16",ne="pickerText_94f06b16",re="inputFocused_94f06b16",ie="inputDisabled_94f06b16",ae="pickerInput_94f06b16",se="pickerItems_94f06b16",le="screenReaderOnly_94f06b16",ce=r,ue=(0,d.Z)();var de=function(e){function t(t){var o,n=e.call(this,t)||this;n.root=s.createRef(),n.input=s.createRef(),n.suggestionElement=s.createRef(),n.SuggestionOfProperType=Z,n._styledSuggestions=(o=n.SuggestionOfProperType,(0,u.I)(o,$,void 0,{scope:"Suggestions"})),n._overrideScrollDismiss=!1,n.dismissSuggestions=function(e){var t=function(){var t=!0;n.props.onDismiss&&(t=n.props.onDismiss(e,n.suggestionStore.currentSuggestion?n.suggestionStore.currentSuggestion.item:void 0)),(!e||e&&!e.defaultPrevented)&&!1!==t&&n.canAddItems()&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestedDisplayValue&&n.addItemByIndex(0)};n.currentPromise?n.currentPromise.then((function(){return t()})):t(),n.setState({suggestionsVisible:!1})},n.refocusSuggestions=function(e){n.resetFocus(),n.suggestionStore.suggestions&&n.suggestionStore.suggestions.length>0&&(e===f.c.up?n.suggestionStore.setSelectedSuggestion(n.suggestionStore.suggestions.length-1):e===f.c.down&&n.suggestionStore.setSelectedSuggestion(0))},n.onInputChange=function(e){n.updateValue(e),n.setState({moreSuggestionsAvailable:!0,isMostRecentlyUsedVisible:!1})},n.onSuggestionClick=function(e,t,o){n.addItemByIndex(o)},n.onSuggestionRemove=function(e,t,o){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionStore.removeSuggestion(o)},n.onInputFocus=function(e){n.selection.setAllSelected(!1),n.state.isFocused||(n._userTriggeredSuggestions(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e))},n.onInputBlur=function(e){n.props.inputProps&&n.props.inputProps.onBlur&&n.props.inputProps.onBlur(e)},n.onBlur=function(e){if(n.state.isFocused){var t=e.relatedTarget;null===e.relatedTarget&&(t=document.activeElement),t&&!(0,p.s)(n.root.current,t)&&(n.setState({isFocused:!1}),n.props.onBlur&&n.props.onBlur(e))}},n.onWrapperClick=function(e){n.state.items.length&&!n.canAddItems()&&n.resetFocus(n.state.items.length-1)},n.onClick=function(e){void 0!==n.props.inputProps&&void 0!==n.props.inputProps.onClick&&n.props.inputProps.onClick(e),0===e.button&&n._userTriggeredSuggestions()},n.onFocus=function(){n.state.isFocused||n.setState({isFocused:!0})},n.onKeyDown=function(e){var t=e.which;switch(t){case f.c.escape:n.state.suggestionsVisible&&(n.setState({suggestionsVisible:!1}),e.preventDefault(),e.stopPropagation());break;case f.c.tab:case f.c.enter:n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedActionSelected()?n.suggestionElement.current.executeSelectedAction():!e.shiftKey&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestionsVisible?(n.completeSuggestion(),e.preventDefault(),e.stopPropagation()):n._completeGenericSuggestion();break;case f.c.backspace:n.props.disabled||n.onBackspace(e),e.stopPropagation();break;case f.c.del:n.props.disabled||(n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&-1!==n.suggestionStore.currentIndex?(n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(n.suggestionStore.currentSuggestion.item),n.suggestionStore.removeSuggestion(n.suggestionStore.currentIndex),n.forceUpdate()):n.onBackspace(e)),e.stopPropagation();break;case f.c.up:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&0===n.suggestionStore.currentIndex?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusAboveSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.previousSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()));break;case f.c.down:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&n.suggestionStore.currentIndex+1===n.suggestionStore.suggestions.length?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusBelowSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.nextSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()))}},n.onItemChange=function(e,t){var o=n.state.items;if(t>=0){var r=o;r[t]=e,n._updateSelectedItems(r)}},n.onGetMoreResults=function(){n.setState({isSearching:!0},(function(){if(n.props.onGetMoreResults&&n.input.current){var e=n.props.onGetMoreResults(n.input.current.value,n.state.items),t=e,o=e;Array.isArray(t)?(n.updateSuggestions(t),n.setState({isSearching:!1})):o.then&&o.then((function(e){n.updateSuggestions(e),n.setState({isSearching:!1})}))}else n.setState({isSearching:!1});n.input.current&&n.input.current.focus(),n.setState({moreSuggestionsAvailable:!1,isResultsFooterVisible:!0})}))},n.completeSelection=function(e){n.addItem(e),n.updateValue(""),n.input.current&&n.input.current.clear(),n.setState({suggestionsVisible:!1})},n.addItemByIndex=function(e){n.completeSelection(n.suggestionStore.getSuggestionAtIndex(e).item)},n.addItem=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null!==t){var o=t,r=t;if(r&&r.then)r.then((function(e){var t=n.state.items.concat([e]);n._updateSelectedItems(t)}));else{var i=n.state.items.concat([o]);n._updateSelectedItems(i)}n.setState({suggestedDisplayValue:"",selectionRemoved:void 0})}},n.removeItem=function(e){var t=n.state.items,o=t.indexOf(e);if(o>=0){var r=t.slice(0,o).concat(t.slice(o+1));n.setState({selectionRemoved:e}),n._updateSelectedItems(r),n._async.setTimeout((function(){n.setState({selectionRemoved:void 0})}),1e3)}},n.removeItems=function(e){var t=n.state.items.filter((function(t){return-1===e.indexOf(t)}));n._updateSelectedItems(t)},n._shouldFocusZoneEnterInnerZone=function(e){if(n.state.suggestionsVisible)switch(e.which){case f.c.up:case f.c.down:return!0}return e.which===f.c.enter},n._onResolveSuggestions=function(e){var t=n.props.onResolveSuggestions(e,n.state.items);null!==t&&n.updateSuggestionsList(t,e)},n._completeGenericSuggestion=function(){if(n.props.onValidateInput&&n.input.current&&n.props.onValidateInput(n.input.current.value)!==ee.v.invalid&&n.props.createGenericItem){var e=n.props.createGenericItem(n.input.current.value,n.props.onValidateInput(n.input.current.value));n.suggestionStore.createGenericSuggestion(e),n.completeSuggestion()}},n._userTriggeredSuggestions=function(){if(!n.state.suggestionsVisible){var e=n.input.current?n.input.current.value:"";e?0===n.suggestionStore.suggestions.length?n._onResolveSuggestions(e):n.setState({isMostRecentlyUsedVisible:!1,suggestionsVisible:!0}):n.onEmptyInputFocus()}},(0,h.f)(n),n._async=new m.j(n);var r=t.selectedItems||t.defaultSelectedItems||[];return n._id=(0,g.O)(),n._ariaMap={selectedItems:"selected-items-".concat(n._id),selectedSuggestionAlert:"selected-suggestion-alert-".concat(n._id),suggestionList:"suggestion-list-".concat(n._id),combobox:"combobox-".concat(n._id)},n.suggestionStore=new J,n.selection=new y.L({onSelectionChanged:function(){return n.onSelectionChange()}}),n.selection.setItems(r),n.state={items:r,suggestedDisplayValue:"",isMostRecentlyUsedVisible:!1,moreSuggestionsAvailable:!1,isFocused:!1,isSearching:!1,selectedIndices:[],selectionRemoved:void 0},n}return(0,a.__extends)(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items),this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(e,t){var o=this;if(this.state.items&&this.state.items!==t.items){var n=this.selection.getSelectedIndices()[0];this.selection.setItems(this.state.items),this.state.isFocused&&(this.state.items.length<t.items.length?(this.selection.setIndexSelected(n,!1,!0),this.resetFocus(n)):this.state.items.length>t.items.length&&!this.canAddItems()&&this.resetFocus(this.state.items.length-1))}this.state.suggestionsVisible&&!t.suggestionsVisible&&(this._overrideScrollDismiss=!0,this._async.clearTimeout(this._overrideScrollDimissTimeout),this._overrideScrollDimissTimeout=this._async.setTimeout((function(){o._overrideScrollDismiss=!1}),100))},t.prototype.componentWillUnmount=function(){this.currentPromise&&(this.currentPromise=void 0),this._async.dispose()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.focusInput=function(){this.input.current&&this.input.current.focus()},t.prototype.completeSuggestion=function(e){this.suggestionStore.hasSelectedSuggestion()&&this.input.current?this.completeSelection(this.suggestionStore.currentSuggestion.item):e&&this._completeGenericSuggestion()},t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,o=e.isFocused,n=e.items,r=this.props,i=r.className,l=r.inputProps,c=r.disabled,u=r.selectionAriaLabel,d=r.selectionRole,f=void 0===d?"list":d,p=r.theme,h=r.styles,m=!!this.state.suggestionsVisible,g=m?this._ariaMap.suggestionList:void 0,b=h?ue(h,{theme:p,className:i,isFocused:o,disabled:c,inputClassName:l&&l.className}):{root:(0,v.A)("ms-BasePicker",i||""),text:(0,v.A)("ms-BasePicker-text",ce.pickerText,this.state.isFocused&&ce.inputFocused),itemsWrapper:ce.pickerItems,input:(0,v.A)("ms-BasePicker-input",ce.pickerInput,l&&l.className),screenReaderText:ce.screenReaderOnly},_=this.props["aria-label"]||(null===l||void 0===l?void 0:l["aria-label"]);return s.createElement("div",{ref:this.root,className:b.root,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onWrapperClick},this.renderCustomAlert(b.screenReaderText),s.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},u||_),s.createElement(x.Z,{selection:this.selection,selectionMode:k.Qc.multiple},s.createElement("div",{className:b.text,"aria-owns":g},n.length>0&&s.createElement("span",{id:this._ariaMap.selectedItems,className:b.itemsWrapper,role:f,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems()),this.canAddItems()&&s.createElement(te.r,(0,a.__assign)({spellCheck:!1},l,{className:b.input,componentRef:this.input,id:(null===l||void 0===l?void 0:l.id)?l.id:this._ariaMap.combobox,onClick:this.onClick,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":m?this.getActiveDescendant():void 0,"aria-controls":g,"aria-describedby":n.length>0?this._ariaMap.selectedItems:void 0,"aria-expanded":m,"aria-haspopup":"listbox","aria-label":_,role:"combobox",disabled:c,onInputChange:this.props.onInputChange})))),this.renderSuggestions())},t.prototype.canAddItems=function(){var e=this.state.items,t=this.props.itemLimit;return void 0===t||e.length<t},t.prototype.renderSuggestions=function(){var e=this,t=this._styledSuggestions;return this.state.suggestionsVisible&&this.input?s.createElement(_.P,(0,a.__assign)({isBeakVisible:!1,gapSpace:5,target:this.input.current?this.input.current.inputElement:void 0,onDismiss:this.dismissSuggestions,directionalHint:w.A.bottomLeftEdge,directionalHintForRTL:w.A.bottomRightEdge,preventDismissOnEvent:function(t){return e._preventDismissOnScrollOrResize(t)}},this.props.pickerCalloutProps),s.createElement(t,(0,a.__assign)({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionElement,onGetMoreResults:this.onGetMoreResults,moreSuggestionsAvailable:this.state.moreSuggestionsAvailable,isLoading:this.state.suggestionsLoading,isExtendedLoading:this.state.suggestionsExtendedLoading,isSearching:this.state.isSearching,isMostRecentlyUsedVisible:this.state.isMostRecentlyUsedVisible,isResultsFooterVisible:this.state.isResultsFooterVisible,refocusSuggestions:this.refocusSuggestions,removeSuggestionAriaLabel:this.props.removeButtonAriaLabel,suggestionsListId:this._ariaMap.suggestionList,createGenericItem:this._completeGenericSuggestion},this.props.pickerSuggestionsProps))):null},t.prototype.renderItems=function(){var e=this,t=this.props,o=t.disabled,n=t.removeButtonAriaLabel,r=t.removeButtonIconProps,i=this.props.onRenderItem,a=this.state,s=a.items,l=a.selectedIndices;return s.map((function(t,a){return i({item:t,index:a,key:t.key?t.key:a,selected:-1!==l.indexOf(a),onRemoveItem:function(){return e.removeItem(t)},disabled:o,onItemChange:e.onItemChange,removeButtonAriaLabel:n,removeButtonIconProps:r})}))},t.prototype.resetFocus=function(e){var t=this.state.items;if(t.length){e=null!==e&&void 0!==e?e:t.length-1;var o=this.root.current&&this.root.current.querySelectorAll("[data-selection-index] > button")[Math.min(e,t.length-1)];o&&o.focus()}else this.input.current&&this.input.current.focus()},t.prototype.onSuggestionSelect=function(){if(this.suggestionStore.currentSuggestion){var e=this.input.current?this.input.current.value:"",t=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e);this.setState({suggestedDisplayValue:t})}},t.prototype.onSelectionChange=function(){this.setState({selectedIndices:this.selection.getSelectedIndices()})},t.prototype.updateSuggestions=function(e){var t,o=null===(t=this.props.pickerSuggestionsProps)||void 0===t?void 0:t.resultsMaximumNumber;this.suggestionStore.updateSuggestions(e,0,o),this.forceUpdate()},t.prototype.onEmptyInputFocus=function(){var e=this.props.onEmptyResolveSuggestions?this.props.onEmptyResolveSuggestions:this.props.onEmptyInputFocus;if(e){var t=e(this.state.items);this.updateSuggestionsList(t),this.setState({isMostRecentlyUsedVisible:!0,suggestionsVisible:!0,moreSuggestionsAvailable:!1})}},t.prototype.updateValue=function(e){this._onResolveSuggestions(e)},t.prototype.updateSuggestionsList=function(e,t){var o=this;Array.isArray(e)?this._updateAndResolveValue(t,e):e&&e.then&&(this.setState({suggestionsLoading:!0}),this._startLoadTimer(),this.suggestionStore.updateSuggestions([]),void 0!==t?this.setState({suggestionsVisible:this._getShowSuggestions()}):this.setState({suggestionsVisible:this.input.current&&this.input.current.inputElement===document.activeElement}),this.currentPromise=e,e.then((function(n){e===o.currentPromise&&o._updateAndResolveValue(t,n)})))},t.prototype.resolveNewValue=function(e,t){var o=this;this.updateSuggestions(t);var n=void 0;this.suggestionStore.currentSuggestion&&(n=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e)),this.setState({suggestedDisplayValue:n,suggestionsVisible:this._getShowSuggestions()},(function(){return o.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})}))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.onBackspace=function(e){(this.state.items.length&&!this.input.current||this.input.current&&!this.input.current.isValueSelected&&0===this.input.current.cursorLocation)&&(this.selection.getSelectedCount()>0?this.removeItems(this.selection.getSelection()):this.removeItem(this.state.items[this.state.items.length-1]))},t.prototype.getActiveDescendant=function(){var e;if(!this.state.suggestionsLoading){var t=this.suggestionStore.currentIndex;return t<0?(null===(e=this.suggestionElement.current)||void 0===e?void 0:e.hasSuggestedAction())?"sug-selectedAction":0===this.suggestionStore.suggestions.length?"sug-noResultsFound":void 0:"sug-".concat(t)}},t.prototype.getSuggestionsAlert=function(e){void 0===e&&(e=ce.screenReaderOnly);var t=this.suggestionStore.currentIndex;if(this.props.enableSelectedSuggestionAlert){var o=t>-1?this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex):void 0,n=o?o.ariaLabel:void 0;return s.createElement("div",{id:this._ariaMap.selectedSuggestionAlert,className:e},"".concat(n," "))}},t.prototype.renderCustomAlert=function(e){void 0===e&&(e=ce.screenReaderOnly);var t=this.props.suggestionRemovedText,o=void 0===t?"removed {0}":t,n="";if(this.state.selectionRemoved){var r=this._getTextFromItem(this.state.selectionRemoved,"");n=(0,b.G)(o,r)}return s.createElement("div",{className:e,id:this._ariaMap.selectedSuggestionAlert,"aria-live":"assertive"},this.getSuggestionsAlert(e),n)},t.prototype._preventDismissOnScrollOrResize=function(e){return!(!this._overrideScrollDismiss||"scroll"!==e.type&&"resize"!==e.type)},t.prototype._startLoadTimer=function(){var e=this;this._async.setTimeout((function(){e.state.suggestionsLoading&&e.setState({suggestionsExtendedLoading:!0})}),3e3)},t.prototype._updateAndResolveValue=function(e,t){var o;if(void 0!==e)this.resolveNewValue(e,t);else{var n=null===(o=this.props.pickerSuggestionsProps)||void 0===o?void 0:o.resultsMaximumNumber;this.suggestionStore.updateSuggestions(t,-1,n),this.state.suggestionsLoading&&this.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})}},t.prototype._updateSelectedItems=function(e){var t=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){t._onSelectedItemsUpdated(e)}))},t.prototype._onSelectedItemsUpdated=function(e){this.onChange(e)},t.prototype._getShowSuggestions=function(){return void 0!==this.input.current&&null!==this.input.current&&this.input.current.inputElement===document.activeElement&&""!==this.input.current.value},t.prototype._getTextFromItem=function(e,t){return this.props.getTextFromItem?this.props.getTextFromItem(e,t):""},t}(s.Component),fe=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,o=e.isFocused,n=this.props,r=n.className,i=n.inputProps,l=n.disabled,c=n.selectionAriaLabel,u=n.selectionRole,d=void 0===u?"list":u,f=n.theme,p=n.styles,h=!!this.state.suggestionsVisible,m=h?this._ariaMap.suggestionList:void 0,g=p?ue(p,{theme:f,className:r,isFocused:o,inputClassName:i&&i.className}):{root:(0,v.A)("ms-BasePicker",ce.picker,r||""),text:(0,v.A)("ms-BasePicker-text",ce.pickerText,this.state.isFocused&&ce.inputFocused,l&&ce.inputDisabled),itemsWrapper:ce.pickerItems,input:(0,v.A)("ms-BasePicker-input",ce.pickerInput,i&&i.className),screenReaderText:ce.screenReaderOnly},b=this.props["aria-label"]||(null===i||void 0===i?void 0:i["aria-label"]);return s.createElement("div",{ref:this.root,onBlur:this.onBlur,onFocus:this.onFocus},s.createElement("div",{className:g.root,onKeyDown:this.onKeyDown},this.renderCustomAlert(g.screenReaderText),s.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},c||b),s.createElement("div",{className:g.text,"aria-owns":m},s.createElement(te.r,(0,a.__assign)({},i,{className:g.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onClick:this.onClick,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":h?this.getActiveDescendant():void 0,"aria-controls":m,"aria-expanded":h,"aria-haspopup":"listbox","aria-label":b,"aria-describedby":this.state.items.length>0?this._ariaMap.selectedItems:void 0,role:"combobox",id:(null===i||void 0===i?void 0:i.id)?i.id:this._ariaMap.combobox,disabled:l,onInputChange:this.props.onInputChange})))),this.renderSuggestions(),s.createElement(x.Z,{selection:this.selection,selectionMode:k.Qc.single},s.createElement("div",{id:this._ariaMap.selectedItems,className:"ms-BasePicker-selectedItems",role:d,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems())))},t.prototype.onBackspace=function(e){},t}(de),pe=o(16184),he=o(55516),me=o(19616),ge={root:"ms-PickerPersona-container",itemContent:"ms-PickerItem-content",removeButton:"ms-PickerItem-removeButton",isSelected:"is-selected",isInvalid:"is-invalid"};var ve=(0,d.Z)(),be=(0,u.I)((function(e){var t=e.item,o=e.onRemoveItem,n=e.index,r=e.selected,i=e.removeButtonAriaLabel,l=e.styles,c=e.theme,u=e.className,d=e.disabled,f=e.removeButtonIconProps,p=s.createRef(),h=(0,g.O)(),m=ve(l,{theme:c,className:u,selected:r,disabled:d,invalid:t.ValidationState===ee.v.warning}),v=m.subComponentStyles?m.subComponentStyles.persona:void 0,b=m.subComponentStyles?m.subComponentStyles.personaCoin:void 0;return s.createElement("div",{"data-selection-index":n,className:m.root,role:"listitem",key:n,onClick:function(){var e;null===(e=p.current)||void 0===e||e.focus()}},s.createElement("div",{className:m.itemContent,id:"selectedItemPersona-"+h},s.createElement(pe.F,(0,a.__assign)({size:he.WH.size24,styles:v,coinProps:{styles:b}},t))),s.createElement(I.K,{componentRef:p,id:h,onClick:o,disabled:d,iconProps:null!==f&&void 0!==f?f:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:m.removeButton,ariaLabel:i,"aria-labelledby":"".concat(h," selectedItemPersona-").concat(h)}))}),(function(e){var t,o,n,r,i,s,l,c,u=e.className,d=e.theme,f=e.selected,p=e.invalid,h=e.disabled,m=d.palette,g=d.semanticColors,v=d.fonts,b=(0,V.Km)(ge,d),_=[f&&!p&&!h&&{color:m.white,selectors:(t={":hover":{color:m.white}},t[V.up]={color:"HighlightText"},t)},(p&&!f||p&&f&&h)&&{color:m.redDark,borderBottom:"2px dotted ".concat(m.redDark),selectors:(o={},o[".".concat(b.root,":hover &")]={color:m.redDark},o)},p&&f&&!h&&{color:m.white,borderBottom:"2px dotted ".concat(m.white)},h&&{selectors:(n={},n[V.up]={color:"GrayText"},n)}],y=[f&&!p&&!h&&{color:m.white,selectors:(r={":hover":{color:m.white}},r[V.up]={color:"HighlightText"},r)}],x=[p&&{fontSize:v.xLarge.fontSize}];return{root:[b.root,(0,V.gm)(d,{inset:-2}),{borderRadius:15,display:"inline-flex",alignItems:"center",background:m.neutralLighter,margin:"1px 2px",cursor:"default",userSelect:"none",maxWidth:300,verticalAlign:"middle",minWidth:0,selectors:(i={":hover":{background:f||h?"":m.neutralLight}},i[V.up]=[{border:"1px solid WindowText"},h&&{borderColor:"GrayText"}],i)},f&&!h&&[b.isSelected,{background:m.themePrimary,selectors:(s={},s[V.up]=(0,a.__assign)({borderColor:"HighLight",background:"Highlight"},(0,V.Qg)()),s)}],p&&[b.isInvalid],p&&f&&!h&&{background:m.redDark},u],itemContent:[b.itemContent,{flex:"0 1 auto",minWidth:0,maxWidth:"100%",overflow:"hidden"}],removeButton:[b.removeButton,{borderRadius:15,color:m.neutralPrimary,flex:"0 0 auto",width:24,height:24,selectors:{":hover":{background:m.neutralTertiaryAlt,color:m.neutralDark}}},f&&[(0,V.gm)(d,{inset:2,borderColor:"transparent",highContrastStyle:{inset:2,left:1,top:1,bottom:1,right:1,outlineColor:"ButtonText"},outlineColor:m.white,borderRadius:15}),{color:m.white,selectors:(l={":hover":{color:m.white,background:m.themeDark},":active":{color:m.white,background:m.themeDarker}},l[V.up]={color:"HighlightText"},l)},p&&{selectors:{":hover":{background:m.red},":active":{background:m.redDark}}}],h&&{selectors:(c={},c[".".concat(me._.msButtonIcon)]={color:g.buttonText},c)}],subComponentStyles:{persona:{primaryText:_,secondaryText:y},personaCoin:{initials:x}}}}),void 0,{scope:"PeoplePickerItem"}),_e={root:"ms-PeoplePicker-personaContent",personaWrapper:"ms-PeoplePicker-Persona"};var ye=(0,d.Z)(),xe=(0,u.I)((function(e){var t=e.personaProps,o=e.suggestionsProps,n=e.compact,r=e.styles,i=e.theme,l=e.className,c=ye(r,{theme:i,className:o&&o.suggestionsItemClassName||l}),u=c.subComponentStyles&&c.subComponentStyles.persona?c.subComponentStyles.persona:void 0;return s.createElement("div",{className:c.root},s.createElement(pe.F,(0,a.__assign)({size:he.WH.size24,styles:u,className:c.personaWrapper,showSecondaryText:!n,showOverflowTooltip:!1},t)))}),(function(e){var t,o,n,r=e.className,i=e.theme,a=(0,V.Km)(_e,i),s={selectors:(t={},t[".".concat(K.isSuggested," &")]={selectors:(o={},o[V.up]={color:"HighlightText"},o)},t[".".concat(a.root,":hover &")]={selectors:(n={},n[V.up]={color:"HighlightText"},n)},t)};return{root:[a.root,{width:"100%",padding:"4px 12px"},r],personaWrapper:[a.personaWrapper,{width:180}],subComponentStyles:{persona:{primaryText:s,secondaryText:s}}}}),void 0,{scope:"PeoplePickerItemSuggestion"}),ke={root:"ms-BasePicker",text:"ms-BasePicker-text",itemsWrapper:"ms-BasePicker-itemsWrapper",input:"ms-BasePicker-input"};function we(e){var t,o,n,r=e.className,i=e.theme,a=e.isFocused,s=e.inputClassName,l=e.disabled;if(!i)throw new Error("theme is undefined or null in base BasePicker getStyles function.");var c=i.semanticColors,u=i.effects,d=i.fonts,f=c.inputBorder,p=c.inputBorderHovered,h=c.inputFocusBorderAlt,m=(0,V.Km)(ke,i),g=[d.medium,{color:c.inputPlaceholderText,opacity:1,selectors:(t={},t[V.up]={color:"GrayText"},t)}],v={color:c.disabledText,selectors:(o={},o[V.up]={color:"GrayText"},o)},b="rgba(218, 218, 218, 0.29)";return{root:[m.root,r,{position:"relative"}],text:[m.text,{display:"flex",position:"relative",flexWrap:"wrap",alignItems:"center",boxSizing:"border-box",minWidth:180,minHeight:30,border:"1px solid ".concat(f),borderRadius:u.roundedCorner2},!a&&!l&&{selectors:{":hover":{borderColor:p}}},a&&!l&&(0,V.Sq)(h,u.roundedCorner2),l&&{borderColor:b,selectors:(n={":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:b}},n[V.up]={borderColor:"GrayText",selectors:{":after":{background:"none"}}},n)}],itemsWrapper:[m.itemsWrapper,{display:"flex",flexWrap:"wrap",maxWidth:"100%"}],input:[m.input,d.medium,{height:30,border:"none",flexGrow:1,outline:"none",padding:"0 6px 0",alignSelf:"flex-end",borderRadius:u.roundedCorner2,backgroundColor:"transparent",color:c.inputText,selectors:{"::-ms-clear":{display:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}},(0,V.CX)(g),l&&(0,V.CX)(v),s],screenReaderText:V.dX}}var Ce=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t}(de),Se=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t}(fe),Be=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps={onRenderItem:function(e){return s.createElement(be,(0,a.__assign)({},e))},onRenderSuggestionsItem:function(e,t){return s.createElement(xe,{personaProps:e,suggestionsProps:t})},createGenericItem:ze},t}(Ce),Ie=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps={onRenderItem:function(e){return s.createElement(be,(0,a.__assign)({},e))},onRenderSuggestionsItem:function(e,t){return s.createElement(xe,{personaProps:e,suggestionsProps:t,compact:!0})},createGenericItem:ze},t}(Ce),Ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,a.__extends)(t,e),t.defaultProps={onRenderItem:function(e){return s.createElement(be,(0,a.__assign)({},e))},onRenderSuggestionsItem:function(e,t){return s.createElement(xe,{personaProps:e,suggestionsProps:t})},createGenericItem:ze},t}(Se);function ze(e,t){var o={key:e,primaryText:e,imageInitials:"!",ValidationState:t};return t!==ee.v.warning&&(o.imageInitials=(0,l.I)(e,(0,c.jI)())),o}var Te=(0,u.I)(Be,we,void 0,{scope:"NormalPeoplePicker"});(0,u.I)(Ie,we,void 0,{scope:"CompactPeoplePicker"}),(0,u.I)(Ee,we,void 0,{scope:"ListPeoplePickerBase"})},57717:function(e,t,o){"use strict";o.d(t,{Z:function(){return k}});var n=o(84867),r=o(80322),i=o(89896),a=o(26974),s=o(54121),l=o(76929),c=o(3676),u=o(81708),d=o(50963),f=o(16711),p=o(13578),h=o(11499),m=o(16114),g=o(67471),v=o(21424),b="data-selection-index",_="data-selection-toggle",y="data-selection-invoke",x="data-selection-all-toggle",k=function(e){function t(t){var o=e.call(this,t)||this;o._root=r.createRef(),o.ignoreNextFocus=function(){o._handleNextFocus(!1)},o._onSelectionChange=function(){var e=o.props.selection,t=e.isModal&&e.isModal();o.setState({isModal:t})},o._onMouseDownCapture=function(e){var t=e.target;if(document.activeElement===t||(0,i.s)(document.activeElement,t)){if((0,i.s)(t,o._root.current))for(;t!==o._root.current;){if(o._hasAttribute(t,y)){o.ignoreNextFocus();break}t=(0,a.P)(t)}}else o.ignoreNextFocus()},o._onFocus=function(e){var t=e.target,n=o.props.selection,r=o._isCtrlPressed||o._isMetaPressed,i=o._getSelectionMode();if(o._shouldHandleFocus&&i!==v.Qc.none){var a=o._hasAttribute(t,_),s=o._findItemRoot(t);if(!a&&s){var l=o._getItemIndex(s);void 0===o._getItemSpan(s)&&(r?(n.setIndexSelected(l,n.isIndexSelected(l),!0),o.props.enterModalOnTouch&&o._isTouch&&n.setModal&&(n.setModal(!0),o._setIsTouch(!1))):o.props.isSelectedOnFocus&&o._onItemSurfaceClick("focus",l))}}o._handleNextFocus(!1)},o._onMouseDown=function(e){o._updateModifiers(e);var t=o.props.toggleWithoutModifierPressed,n=e.target,r=o._findItemRoot(n);if(!o._isSelectionDisabled(n))for(;n!==o._root.current&&!o._hasAttribute(n,x);){if(r){if(o._hasAttribute(n,_))break;if(o._hasAttribute(n,y))break;if(!(n!==r&&!o._shouldAutoSelect(n)||o._isShiftPressed||o._isCtrlPressed||o._isMetaPressed||t)){o._onInvokeMouseDown(e,o._getItemIndex(r),o._getItemSpan(r));break}if(o.props.disableAutoSelectOnInputElements&&("A"===n.tagName||"BUTTON"===n.tagName||"INPUT"===n.tagName))return}n=(0,a.P)(n)}},o._onTouchStartCapture=function(e){o._setIsTouch(!0)},o._onClick=function(e){var t=o.props.enableTouchInvocationTarget,n=void 0!==t&&t;o._updateModifiers(e);for(var r=e.target,i=o._findItemRoot(r),s=o._isSelectionDisabled(r);r!==o._root.current;){if(o._hasAttribute(r,x)){s||o._onToggleAllClick(e);break}if(i){var l=o._getItemIndex(i),c=o._getItemSpan(i);if(o._hasAttribute(r,_)){s||(o._isShiftPressed?o._onItemSurfaceClick("click",l,c):o._onToggleClick(e,l,c));break}if(o._isTouch&&n&&o._hasAttribute(r,"data-selection-touch-invoke")||o._hasAttribute(r,y)){void 0===c&&o._onInvokeClick(e,l);break}if(r===i){s||o._onItemSurfaceClick("click",l,c);break}if("A"===r.tagName||"BUTTON"===r.tagName||"INPUT"===r.tagName)return}r=(0,a.P)(r)}},o._onContextMenu=function(e){var t=e.target,n=o.props,r=n.onItemContextMenu,i=n.selection;if(r){var a=o._findItemRoot(t);if(a){var s=o._getItemIndex(a);o._onInvokeMouseDown(e,s),r(i.getItems()[s],s,e.nativeEvent)||e.preventDefault()}}},o._onDoubleClick=function(e){var t=e.target,n=o.props.onItemInvoked,r=o._findItemRoot(t);if(r&&n&&!o._isInputElement(t)){for(var i=o._getItemIndex(r);t!==o._root.current&&!o._hasAttribute(t,_)&&!o._hasAttribute(t,y);){if(t===r){o._onInvokeClick(e,i);break}t=(0,a.P)(t)}t=(0,a.P)(t)}},o._onKeyDownCapture=function(e){o._updateModifiers(e),o._handleNextFocus(!0)},o._onKeyDown=function(e){o._updateModifiers(e);var t=e.target,n=o._isSelectionDisabled(t),r=o.props,i=r.selection,l=r.selectionClearedOnEscapePress,c=e.which===s.c.a&&(o._isCtrlPressed||o._isMetaPressed),u=e.which===s.c.escape;if(!o._isInputElement(t)){var d=o._getSelectionMode();if(c&&d===v.Qc.multiple&&!i.isAllSelected())return n||i.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(l&&u&&i.getSelectedCount()>0)return n||i.setAllSelected(!1),e.stopPropagation(),void e.preventDefault();var f=o._findItemRoot(t);if(f)for(var p=o._getItemIndex(f),h=o._getItemSpan(f);t!==o._root.current&&!o._hasAttribute(t,_);){if(o._shouldAutoSelect(t)){n||void 0!==h||o._onInvokeMouseDown(e,p,h);break}if(!(e.which!==s.c.enter&&e.which!==s.c.space||"BUTTON"!==t.tagName&&"A"!==t.tagName&&"INPUT"!==t.tagName&&"SUMMARY"!==t.tagName))return!1;if(t===f){if(e.which===s.c.enter)return void(void 0===h&&(o._onInvokeClick(e,p),e.preventDefault()));if(e.which===s.c.space)return n||o._onToggleClick(e,p,h),void e.preventDefault();break}t=(0,a.P)(t)}}},o._events=new l.g(o),o._async=new c.j(o),(0,u.f)(o);var n=o.props.selection,d=n.isModal&&n.isModal();return o.state={isModal:d},o}return(0,n.__extends)(t,e),t.getDerivedStateFromProps=function(e,t){var o=e.selection.isModal&&e.selection.isModal();return(0,n.__assign)((0,n.__assign)({},t),{isModal:o})},t.prototype.componentDidMount=function(){var e=(0,d.z)(this._root.current);this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(document.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(document.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},t.prototype.render=function(){var e=this.state.isModal;return r.createElement("div",{className:(0,f.A)("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,r.createElement(p.MO,null))},t.prototype.componentDidUpdate=function(e){var t=this.props.selection;t!==e.selection&&(this._events.off(e.selection),this._events.on(t,"change",this._onSelectionChange))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===v.Qc.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=(0,a.P)(e)}return!1},t.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===v.Qc.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},t.prototype._onToggleClick=function(e,t,o){var n=this.props.selection,r=this._getSelectionMode();if(n.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&(void 0!==o?!n.isRangeSelected(t,o):!n.isIndexSelected(t))&&n.setModal&&(n.setModal(!0),this._setIsTouch(!1)),r===v.Qc.multiple)void 0!==o?n.toggleRangeSelected(t,o):n.toggleIndexSelected(t);else{if(r!==v.Qc.single)return void n.setChangeEvents(!0);if(void 0===o||1===o){var i=n.isIndexSelected(t),a=n.isModal&&n.isModal();n.setAllSelected(!1),n.setIndexSelected(t,!i,!0),a&&n.setModal&&n.setModal(!0)}}n.setChangeEvents(!0),e.stopPropagation()},t.prototype._onInvokeClick=function(e,t){var o=this.props,n=o.selection,r=o.onItemInvoked;r&&(r(n.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},t.prototype._onItemSurfaceClick=function(e,t,o){var n,r=this.props,i=r.selection,a=r.toggleWithoutModifierPressed,s=this._isCtrlPressed||this._isMetaPressed,l=this._getSelectionMode();l===v.Qc.multiple?this._isShiftPressed&&!this._isTabPressed?void 0!==o?null===(n=i.selectToRange)||void 0===n||n.call(i,t,o,!s):i.selectToIndex(t,!s):"click"===e&&(s||a)?void 0!==o?i.toggleRangeSelected(t,o):i.toggleIndexSelected(t):this._clearAndSelectIndex(t,o):l===v.Qc.single&&this._clearAndSelectIndex(t,o)},t.prototype._onInvokeMouseDown=function(e,t,o){var n=this.props.selection;if(void 0!==o){if(n.isRangeSelected(t,o))return}else if(n.isIndexSelected(t))return;this._clearAndSelectIndex(t,o)},t.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=(0,h.Hc)(this._root.current);this._events.off(document,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(t,"click",this._tryClearOnEmptyClick),(t&&e.target instanceof Node&&t.contains(e.target)||t===e.target)&&this._tryClearOnEmptyClick(e)},t.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},t.prototype._clearAndSelectIndex=function(e,t){var o,n=this.props,r=n.selection,i=n.selectionClearedOnSurfaceClick,a=void 0===i||i;if(!((void 0===t||1===t)&&1===r.getSelectedCount()&&r.isIndexSelected(e))&&a){var s=r.isModal&&r.isModal();r.setChangeEvents(!1),r.setAllSelected(!1),void 0!==t?null===(o=r.setRangeSelected)||void 0===o||o.call(r,e,t,!0,!0):r.setIndexSelected(e,!0,!0),(s||this.props.enterModalOnTouch&&this._isTouch)&&(r.setModal&&r.setModal(!0),this._isTouch&&this._setIsTouch(!1)),r.setChangeEvents(!0)}},t.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;var t=e.keyCode;this._isTabPressed=!!t&&t===s.c.tab},t.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var o=e.getAttribute(b),n=Number(o);if(null!==o&&n>=0&&n<t.getItems().length)break;e=(0,a.P)(e)}if(e!==this._root.current)return e},t.prototype._getItemIndex=function(e){var t,o=parseInt(null!==(t=e.getAttribute(b))&&void 0!==t?t:"",10);return isNaN(o)?-1:o},t.prototype._getItemSpan=function(e){var t,o=parseInt(null!==(t=e.getAttribute("data-selection-span"))&&void 0!==t?t:"",10);return isNaN(o)?void 0:o},t.prototype._shouldAutoSelect=function(e){return this._hasAttribute(e,"data-selection-select")},t.prototype._hasAttribute=function(e,t){for(var o=!1;!o&&e!==this._root.current;){var n=e.getAttribute(t);if("false"===n){o=!1;break}o="true"===n,e=(0,a.P)(e)}return o},t.prototype._isInputElement=function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")},t.prototype._isNonHandledClick=function(e){var t=(0,m.Y)();if(t&&e)for(;e&&e!==t.documentElement;){if((0,g.S0)(e)||e.hasAttribute("data-selection-index"))return!1;e=(0,a.P)(e)}return!0},t.prototype._handleNextFocus=function(e){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=e,e&&this._async.setTimeout((function(){t._shouldHandleFocus=!1}),100)},t.prototype._setIsTouch=function(e){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,e&&this._async.setTimeout((function(){t._isTouch=!1}),300)},t.prototype._getSelectionMode=function(){var e=this.props.selection,t=this.props.selectionMode;return void 0===t?e?e.mode:v.Qc.none:t},t.defaultProps={isSelectedOnFocus:!0,toggleWithoutModifierPressed:!1,selectionMode:v.Qc.multiple,selectionClearedOnEscapePress:!0},t}(r.Component)},82425:function(e,t,o){"use strict";o.d(t,{g:function(){return r}});var n=o(76826),r={body1:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase300,fontWeight:n.L.fontWeightRegular,lineHeight:n.L.lineHeightBase300},body1Strong:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase300,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightBase300},body1Stronger:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase300,fontWeight:n.L.fontWeightBold,lineHeight:n.L.lineHeightBase300},body2:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase400,fontWeight:n.L.fontWeightRegular,lineHeight:n.L.lineHeightBase400},caption1:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase200,fontWeight:n.L.fontWeightRegular,lineHeight:n.L.lineHeightBase200},caption1Strong:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase200,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightBase200},caption1Stronger:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase200,fontWeight:n.L.fontWeightBold,lineHeight:n.L.lineHeightBase200},caption2:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase100,fontWeight:n.L.fontWeightRegular,lineHeight:n.L.lineHeightBase100},caption2Strong:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase100,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightBase100},subtitle1:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase500,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightBase500},subtitle2:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase400,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightBase400},subtitle2Stronger:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase400,fontWeight:n.L.fontWeightBold,lineHeight:n.L.lineHeightBase400},title1:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeHero800,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightHero800},title2:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeHero700,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightHero700},title3:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeBase600,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightBase600},largeTitle:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeHero900,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightHero900},display:{fontFamily:n.L.fontFamilyBase,fontSize:n.L.fontSizeHero1000,fontWeight:n.L.fontWeightSemibold,lineHeight:n.L.lineHeightHero1000}}},99723:function(e,t,o){"use strict";function n(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)}o.d(t,{B:function(){return n}})},20135:function(e,t,o){"use strict";o.d(t,{L:function(){return i}});var n=o(21424),r=o(76929),i=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e[0]||{},r=o.onSelectionChanged,i=o.onItemsChanged,s=o.getKey,l=o.canSelectItem,c=void 0===l?function(){return!0}:l,u=o.items,d=o.selectionMode,f=void 0===d?n.Qc.multiple:d;this.mode=f,this._getKey=s||a,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=r,this._onItemsChanged=i,this._canSelectItem=c,this._keyToIndexMap={},this._isModal=!1,this.setItems(u||[],!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 o=this._getKey(e,t);return"number"===typeof o||o?"".concat(o):""},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 o={},i={},a=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var s=!1,l=0;l<e.length;l++){if(f=e[l])(b=this.getKey(f,l))&&(s||b in this._keyToIndexMap&&this._keyToIndexMap[b]===l||(s=!0),o[b]=l);i[l]=f&&!this.canSelectItem(f),i[l]&&this._unselectableCount++}(t||0===e.length)&&this._setAllSelected(!1,!0);var c={},u=0;for(var d in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(d)){var f,p=Number(d),h=(f=this._items[p])?this.getKey(f,Number(p)):void 0,m=h?o[h]:p;void 0===m?a=!0:(c[m]=!0,u++,a=a||m!==p)}if(this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(a=!0),!s)for(var g=0,v=Object.keys(this._keyToIndexMap);g<v.length;g++){var b;if(!((b=v[g])in o)){s=!0;break}}this._exemptedIndices=c,this._exemptedCount=u,this._keyToIndexMap=o,this._unselectableIndices=i,this._items=e,this._selectedItems=null,a&&this._updateCount(),s&&(r.g.raise(this,n.Nx),this._onItemsChanged&&this._onItemsChanged()),a&&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 o=e+t,n=e;n<o;n++)if(!this.isIndexSelected(n))return!1;return!0},e.prototype.isAllSelected=function(){var e=this._items.length-this._unselectableCount;return this.mode===n.Qc.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===n.Qc.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,o){var n=this._keyToIndexMap[e];n>=0&&this.setIndexSelected(n,t,o)},e.prototype.setIndexSelected=function(e,t,o){if(this.mode!==n.Qc.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===n.Qc.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++),o&&(this._anchoredIndex=e)),this._updateCount(),this.setChangeEvents(!0)}},e.prototype.setRangeSelected=function(e,t,o,r){if(this.mode!==n.Qc.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 i=e,a=e+t-1,s=(this._anchoredIndex||0)>=a?i:a;i<=a;i++)this.setIndexSelected(i,o,!!r&&i===s);this.setChangeEvents(!0)}},e.prototype.selectToKey=function(e,t){this.selectToIndex(this._keyToIndexMap[e],t)},e.prototype.selectToRange=function(e,t,o){if(this.mode!==n.Qc.none)if(this.mode!==n.Qc.single){var r=this._anchoredIndex||0,i=Math.min(e,r),a=Math.max(e+t-1,r);for(this.setChangeEvents(!1),o&&this._setAllSelected(!1,!0);i<=a;i++)this.setIndexSelected(i,!0,!1);this.setChangeEvents(!0)}else 1===t&&this.setIndexSelected(e,!0,!0)},e.prototype.selectToIndex=function(e,t){if(this.mode!==n.Qc.none)if(this.mode!==n.Qc.single){var o=this._anchoredIndex||0,r=Math.min(e,o),i=Math.max(e,o);for(this.setChangeEvents(!1),t&&this._setAllSelected(!1,!0);r<=i;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!==n.Qc.none){var o=this.isRangeSelected(e,t),r=e+t;if(!(this.mode===n.Qc.single&&t>1)){this.setChangeEvents(!1);for(var i=e;i<r;i++)this.setIndexSelected(i,!o,!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===n.Qc.multiple){var o=this._items?this._items.length-this._unselectableCount:0;this.setChangeEvents(!1),o>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,r.g.raise(this,n.ij),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function a(e,t){var o=(e||{}).key;return void 0===o?"".concat(t):o}},21424:function(e,t,o){"use strict";o.d(t,{Nx:function(){return a},Qc:function(){return n},ij:function(){return i}});var n,r,i="change",a="items-change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(n||(n={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(r||(r={}))},40463:function(e,t,o){"use strict";o.d(t,{G:function(){return i}});var n=/[\{\}]/g,r=/\{\d+\}/g;function i(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var i=t;function a(e){var t=i[e.replace(n,"")];return null!==t&&void 0!==t||(t=""),t}return e.replace(r,a)}},94252:function(e,t,o){"use strict";o.d(t,{Pt:function(){return I}});var n=["Top","Right","Bottom","Left"];function r(e,t){for(var o=arguments.length,r=new Array(o>2?o-2:0),i=2;i<o;i++)r[i-2]=arguments[i];for(var a=r[0],s=r[1],l=void 0===s?a:s,c=r[2],u=void 0===c?a:c,d=r[3],f=void 0===d?l:d,p=[a,l,u,f],h={},m=0;m<p.length;m+=1)if(p[m]||0===p[m]){var g=e+n[m]+t;h[g]=p[m]}return h}function i(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.apply(void 0,["border","Width"].concat(t))}function a(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.apply(void 0,["border","Style"].concat(t))}function s(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.apply(void 0,["border","Color"].concat(t))}var l=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function c(e){return l.includes(e)}var u=function(e){return"number"===typeof e&&!Number.isNaN(e)},d=function(e){return"initial"===e},f=function(e){return"auto"===e},p=function(e){return"none"===e},h=["content","fit-content","max-content","min-content"],m=function(e){return h.some((function(t){return e===t}))||function(e){return"string"===typeof e&&/(\d+(\w+|%))/.test(e)}(e)};var g=/var\(.*\)/gi;function v(e){return void 0===e||"number"===typeof e||"string"===typeof e&&!g.test(e)}var b=/^[a-zA-Z0-9\-_\\#;]+$/,_=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function y(e){return void 0!==e&&"string"===typeof e&&b.test(e)&&!_.test(e)}var x=o(61249);var k=["-moz-initial","inherit","initial","revert","unset"];function w(e){return 1===e.length&&k.includes(e[0])}function C(e){return 1===e.length&&Array.isArray(e[0])?e[0]:[e]}var S=["dashed","dotted","double","solid","wavy"];function B(e){return S.includes(e)}var I={border:function(){return c(arguments.length<=0?void 0:arguments[0])?Object.assign({},a(arguments.length<=0?void 0:arguments[0]),(arguments.length<=1?void 0:arguments[1])&&i(arguments.length<=1?void 0:arguments[1]),(arguments.length<=2?void 0:arguments[2])&&s(arguments.length<=2?void 0:arguments[2])):Object.assign({},i(arguments.length<=0?void 0:arguments[0]),(arguments.length<=1?void 0:arguments[1])&&a(arguments.length<=1?void 0:arguments[1]),(arguments.length<=2?void 0:arguments[2])&&s(arguments.length<=2?void 0:arguments[2]))},borderLeft:function(){return c(arguments.length<=0?void 0:arguments[0])?Object.assign({borderLeftStyle:arguments.length<=0?void 0:arguments[0]},(arguments.length<=1?void 0:arguments[1])&&{borderLeftWidth:arguments.length<=1?void 0:arguments[1]},(arguments.length<=2?void 0:arguments[2])&&{borderLeftColor:arguments.length<=2?void 0:arguments[2]}):Object.assign({borderLeftWidth:arguments.length<=0?void 0:arguments[0]},(arguments.length<=1?void 0:arguments[1])&&{borderLeftStyle:arguments.length<=1?void 0:arguments[1]},(arguments.length<=2?void 0:arguments[2])&&{borderLeftColor:arguments.length<=2?void 0:arguments[2]})},borderBottom:function(){return c(arguments.length<=0?void 0:arguments[0])?Object.assign({borderBottomStyle:arguments.length<=0?void 0:arguments[0]},(arguments.length<=1?void 0:arguments[1])&&{borderBottomWidth:arguments.length<=1?void 0:arguments[1]},(arguments.length<=2?void 0:arguments[2])&&{borderBottomColor:arguments.length<=2?void 0:arguments[2]}):Object.assign({borderBottomWidth:arguments.length<=0?void 0:arguments[0]},(arguments.length<=1?void 0:arguments[1])&&{borderBottomStyle:arguments.length<=1?void 0:arguments[1]},(arguments.length<=2?void 0:arguments[2])&&{borderBottomColor:arguments.length<=2?void 0:arguments[2]})},borderRight:function(){return c(arguments.length<=0?void 0:arguments[0])?Object.assign({borderRightStyle:arguments.length<=0?void 0:arguments[0]},(arguments.length<=1?void 0:arguments[1])&&{borderRightWidth:arguments.length<=1?void 0:arguments[1]},(arguments.length<=2?void 0:arguments[2])&&{borderRightColor:arguments.length<=2?void 0:arguments[2]}):Object.assign({borderRightWidth:arguments.length<=0?void 0:arguments[0]},(arguments.length<=1?void 0:arguments[1])&&{borderRightStyle:arguments.length<=1?void 0:arguments[1]},(arguments.length<=2?void 0:arguments[2])&&{borderRightColor:arguments.length<=2?void 0:arguments[2]})},borderTop:function(){return c(arguments.length<=0?void 0:arguments[0])?Object.assign({borderTopStyle:arguments.length<=0?void 0:arguments[0]},(arguments.length<=1?void 0:arguments[1])&&{borderTopWidth:arguments.length<=1?void 0:arguments[1]},(arguments.length<=2?void 0:arguments[2])&&{borderTopColor:arguments.length<=2?void 0:arguments[2]}):Object.assign({borderTopWidth:arguments.length<=0?void 0:arguments[0]},(arguments.length<=1?void 0:arguments[1])&&{borderTopStyle:arguments.length<=1?void 0:arguments[1]},(arguments.length<=2?void 0:arguments[2])&&{borderTopColor:arguments.length<=2?void 0:arguments[2]})},borderColor:s,borderStyle:a,borderRadius:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t;return{borderBottomRightRadius:o,borderBottomLeftRadius:n,borderTopRightRadius:t,borderTopLeftRadius:e}},borderWidth:i,flex:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var n=1===t.length,r=2===t.length,i=3===t.length;if(n){var a=t[0];if(d(a))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(f(a))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(p(a))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(u(a))return{flexGrow:a,flexShrink:1,flexBasis:0};if(m(a))return{flexGrow:1,flexShrink:1,flexBasis:a}}if(r){var s=t[0],l=t[1];if(u(l))return{flexGrow:s,flexShrink:l,flexBasis:0};if(m(l))return{flexGrow:s,flexShrink:1,flexBasis:l}}if(i){var c=t[0],h=t[1],g=t[2];if(u(c)&&u(h)&&(f(g)||m(g)))return{flexGrow:c,flexShrink:h,flexBasis:g}}return{}},gap:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{columnGap:e,rowGap:t}},gridArea:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(t.some((function(e){return!v(e)})))return{};var n=void 0!==t[0]?t[0]:"auto",r=void 0!==t[1]?t[1]:y(n)?n:"auto",i=void 0!==t[2]?t[2]:y(n)?n:"auto",a=void 0!==t[3]?t[3]:y(r)?r:"auto";return{gridRowStart:n,gridColumnStart:r,gridRowEnd:i,gridColumnEnd:a}},margin:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.apply(void 0,["margin",""].concat(t))},marginBlock:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{marginBlockStart:e,marginBlockEnd:t}},marginInline:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{marginInlineStart:e,marginInlineEnd:t}},padding:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];return r.apply(void 0,["padding",""].concat(t))},paddingBlock:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{paddingBlockStart:e,paddingBlockEnd:t}},paddingInline:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{paddingInlineStart:e,paddingInlineEnd:t}},overflow:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;return{overflowX:e,overflowY:t}},inset:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var n=t[0],r=t[1],i=void 0===r?n:r,a=t[2],s=void 0===a?n:a,l=t[3],c=void 0===l?i:l;return{top:n,right:i,bottom:s,left:c}},outline:function(e,t,o){return Object.assign({outlineWidth:e},t&&{outlineStyle:t},o&&{outlineColor:o})},transition:function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];if(w(t))return{transitionDelay:t[0],transitionDuration:t[0],transitionProperty:t[0],transitionTimingFunction:t[0]};var n=C(t);return n.reduce((function(e,t,o){var n=(0,x.A)(t,4),r=n[0],i=n[1],a=void 0===i?"0s":i,s=n[2],l=void 0===s?"0s":s,c=n[3],u=void 0===c?"ease":c;return 0===o?(e.transitionProperty=r,e.transitionDuration=a,e.transitionDelay=l,e.transitionTimingFunction=u):(e.transitionProperty+=", ".concat(r),e.transitionDuration+=", ".concat(a),e.transitionDelay+=", ".concat(l),e.transitionTimingFunction+=", ".concat(u)),e}),{})},textDecoration:function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];if(0===o.length)return B(e)?{textDecorationStyle:e}:{textDecorationLine:e};var r=o[0],i=o[1],a=o[2];return Object.assign({textDecorationLine:e},r&&{textDecorationStyle:r},i&&{textDecorationColor:i},a&&{textDecorationThickness:a})}}},15403:function(e,t,o){"use strict";o.d(t,{y:function(){return s}});var n=o(51812);var r=o(75158),i=o(75650),a=o(10752);function s(e,t,o){var s=function(e,t,o){var r=(arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.A)();function i(n){var i=n.dir,a=n.renderer,s="ltr"===i?e:t||e;return r(a,Array.isArray(o)?{r:o}:o),s}return i}(e,t,o,r.A);return function(){var e=(0,a.m)(),t=(0,i.J)();return s({dir:e,renderer:t})}}},25027:function(e,t,o){"use strict";o.d(t,{X:function(){return s}});var n=o(85793),r=o(75158),i=o(75650),a=o(10752);function s(e,t){var o=(0,n.X)(e,t,r.A);return function(){var e=(0,a.m)(),t=(0,i.J)();return o({dir:e,renderer:t})}}},75158:function(e,t,o){"use strict";o.d(t,{A:function(){return i}});var n=o(80322),r=n.useInsertionEffect?n.useInsertionEffect:void 0,i=function(){var e={};return function(t,o){r&&"undefined"!==typeof window&&window.document&&window.document.createElement?r((function(){t.insertCSSRules(o)}),[t,o]):void 0===e[t.id]&&(t.insertCSSRules(o),e[t.id]=!0)}}},30752:function(e,t,o){"use strict";o.d(t,{n:function(){return ct}});var n=o(61249),r=o(51812),i=o(72382),a=o(31821);function s(e){return e.reduce((function(e,t){var o=t[0],n=t[1];return e[o]=n,e[n]=o,e}),{})}function l(e){return"number"===typeof e}function c(e,t){return-1!==e.indexOf(t)}function u(e,t,o,n){return t+(r=o,0===parseFloat(r)?r:"-"===r[0]?r.slice(1):"-"+r)+n;var r}function d(e){return e.replace(/ +/g," ").split(" ").map((function(e){return e.trim()})).filter(Boolean).reduce((function(e,t){var o=e.list,n=e.state,r=(t.match(/\(/g)||[]).length,i=(t.match(/\)/g)||[]).length;return n.parensDepth>0?o[o.length-1]=o[o.length-1]+" "+t:o.push(t),n.parensDepth+=r-i,{list:o,state:n}}),{list:[],state:{parensDepth:0}}).list}function f(e){var t=d(e);if(t.length<=3||t.length>4)return e;var o=t[0],n=t[1],r=t[2];return[o,t[3],r,n].join(" ")}var p={padding:function(e){var t=e.value;return l(t)?t:f(t)},textShadow:function(e){var t=function(e){for(var t=[],o=0,n=0,r=!1;n<e.length;)r||","!==e[n]?"("===e[n]?(r=!0,n++):")"===e[n]?(r=!1,n++):n++:(t.push(e.substring(o,n).trim()),o=++n);return o!=n&&t.push(e.substring(o,n+1)),t}(e.value).map((function(e){return e.replace(/(^|\s)(-*)([.|\d]+)/,(function(e,t,o,n){return"0"===n?e:""+t+(""===o?"-":"")+n}))}));return t.join(",")},borderColor:function(e){return f(e.value)},borderRadius:function(e){var t=e.value;if(l(t))return t;if(c(t,"/")){var o=t.split("/"),n=o[0],r=o[1];return p.borderRadius({value:n.trim()})+" / "+p.borderRadius({value:r.trim()})}var i=d(t);switch(i.length){case 2:return i.reverse().join(" ");case 4:var a=i[0],s=i[1],u=i[2];return[s,a,i[3],u].join(" ");default:return t}},background:function(e){var t=e.value,o=e.valuesToConvert,n=e.isRtl,r=e.bgImgDirectionRegex,i=e.bgPosDirectionRegex;if(l(t))return t;var a=t.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return t=t.replace(a,p.backgroundPosition({value:a,valuesToConvert:o,isRtl:n,bgPosDirectionRegex:i})),p.backgroundImage({value:t,valuesToConvert:o,bgImgDirectionRegex:r})},backgroundImage:function(e){var t=e.value,o=e.valuesToConvert,n=e.bgImgDirectionRegex;return c(t,"url(")||c(t,"linear-gradient(")?t.replace(n,(function(e,t,n){return e.replace(n,o[n])})):t},backgroundPosition:function(e){var t=e.value,o=e.valuesToConvert,n=e.isRtl,r=e.bgPosDirectionRegex;return t.replace(n?/^((-|\d|\.)+%)/:null,(function(e,t){return function(e){var t=e.indexOf(".");if(-1===t)e=100-parseFloat(e)+"%";else{var o=e.length-t-2;e=(e=100-parseFloat(e)).toFixed(o)+"%"}return e}(t)})).replace(r,(function(e){return o[e]}))},backgroundPositionX:function(e){var t=e.value,o=e.valuesToConvert,n=e.isRtl,r=e.bgPosDirectionRegex;return l(t)?t:p.backgroundPosition({value:t,valuesToConvert:o,isRtl:n,bgPosDirectionRegex:r})},transition:function(e){var t=e.value,o=e.propertiesToConvert;return t.split(/,\s*/g).map((function(e){var t=e.split(" ");return t[0]=o[t[0]]||t[0],t.join(" ")})).join(", ")},transitionProperty:function(e){var t=e.value,o=e.propertiesToConvert;return t.split(/,\s*/g).map((function(e){return o[e]||e})).join(", ")},transform:function(e){var t=e.value,o="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",n="((?:-?(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|-?(?:[_a-z]|[^\\u0020-\\u007e]|"+o+")(?:[_a-z0-9-]|[^\\u0020-\\u007e]|"+o+")*)?)|(?:inherit|auto))",r=new RegExp("(translateX\\s*\\(\\s*)"+n+"(\\s*\\))","gi"),i=new RegExp("(translate\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,1}\\s*\\))","gi"),a=new RegExp("(translate3d\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,2}\\s*\\))","gi"),s=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+n+"(\\s*\\))","gi");return t.replace(r,u).replace(i,u).replace(a,u).replace(s,u)}};p.objectPosition=p.backgroundPosition,p.margin=p.padding,p.borderWidth=p.padding,p.boxShadow=p.textShadow,p.webkitBoxShadow=p.boxShadow,p.mozBoxShadow=p.boxShadow,p.WebkitBoxShadow=p.boxShadow,p.MozBoxShadow=p.boxShadow,p.borderStyle=p.borderColor,p.webkitTransform=p.transform,p.mozTransform=p.transform,p.WebkitTransform=p.transform,p.MozTransform=p.transform,p.transformOrigin=p.backgroundPosition,p.webkitTransformOrigin=p.transformOrigin,p.mozTransformOrigin=p.transformOrigin,p.WebkitTransformOrigin=p.transformOrigin,p.MozTransformOrigin=p.transformOrigin,p.webkitTransition=p.transition,p.mozTransition=p.transition,p.WebkitTransition=p.transition,p.MozTransition=p.transition,p.webkitTransitionProperty=p.transitionProperty,p.mozTransitionProperty=p.transitionProperty,p.WebkitTransitionProperty=p.transitionProperty,p.MozTransitionProperty=p.transitionProperty,p["text-shadow"]=p.textShadow,p["border-color"]=p.borderColor,p["border-radius"]=p.borderRadius,p["background-image"]=p.backgroundImage,p["background-position"]=p.backgroundPosition,p["background-position-x"]=p.backgroundPositionX,p["object-position"]=p.objectPosition,p["border-width"]=p.padding,p["box-shadow"]=p.textShadow,p["-webkit-box-shadow"]=p.textShadow,p["-moz-box-shadow"]=p.textShadow,p["border-style"]=p.borderColor,p["-webkit-transform"]=p.transform,p["-moz-transform"]=p.transform,p["transform-origin"]=p.transformOrigin,p["-webkit-transform-origin"]=p.transformOrigin,p["-moz-transform-origin"]=p.transformOrigin,p["-webkit-transition"]=p.transition,p["-moz-transition"]=p.transition,p["transition-property"]=p.transitionProperty,p["-webkit-transition-property"]=p.transitionProperty,p["-moz-transition-property"]=p.transitionProperty;var h=s([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),m=["content"],g=s([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),v=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),b=new RegExp("(left)|(right)");function _(e){return Object.keys(e).reduce((function(t,o){var n=e[o];if("string"===typeof n&&(n=n.trim()),c(m,o))return t[o]=n,t;var r=y(o,n),i=r.key,a=r.value;return t[i]=a,t}),Array.isArray(e)?[]:{})}function y(e,t){var o,n=/\/\*\s?@noflip\s?\*\//.test(t),r=n?e:h[o=e]||o,i=n?t:function(e,t){if(!function(e){return!("boolean"===typeof e)&&(t=e,!(null===t||"undefined"===typeof t));var t}(t))return t;if(o=t,o&&"object"===typeof o)return _(t);var o;var n,r=l(t),i=function(e){return"function"===typeof e}(t),a=r||i?t:t.replace(/ !important.*?$/,""),s=!r&&a.length!==t.length,c=p[e];n=c?c({value:a,valuesToConvert:g,propertiesToConvert:h,isRtl:!0,bgImgDirectionRegex:v,bgPosDirectionRegex:b}):g[a]||a;if(s)return n+" !important";return n}(r,t);return{key:r,value:i}}var x=o(60330),k=/[A-Z]/g,w=/^ms-/,C={};function S(e){return"-"+e.toLowerCase()}function B(e){if(Object.prototype.hasOwnProperty.call(C,e))return C[e];if("--"===e.substr(0,2))return e;var t=e.replace(k,S);return C[e]=w.test(t)?"-"+t:t}function I(e){return"&"===e.charAt(0)?e.slice(1):e}var E="-moz-",z="-webkit-",T="comm",A="rule",P="decl",R="@layer",D=Math.abs,N=String.fromCharCode,F=Object.assign;function M(e){return e.trim()}function j(e,t){return(e=t.exec(e))?e[0]:e}function O(e,t,o){return e.replace(t,o)}function H(e,t,o){return e.indexOf(t,o)}function L(e,t){return 0|e.charCodeAt(t)}function q(e,t,o){return e.slice(t,o)}function W(e){return e.length}function V(e){return e.length}function G(e,t){return t.push(e),e}function K(e,t){for(var o="",n=0;n<e.length;n++)o+=t(e[n],n,e,t)||"";return o}function U(e,t,o,n){switch(e.type){case R:if(e.children.length)break;case"@import":case P:return e.return=e.return||e.value;case T:return"";case"@keyframes":return e.return=e.value+"{"+K(e.children,n)+"}";case A:if(!W(e.value=e.props.join(",")))return""}return W(o=K(e.children,n))?e.return=e.value+"{"+o+"}":""}var X=1,Y=1,Z=0,Q=0,$=0,J="";function ee(e,t,o,n,r,i,a,s){return{value:e,root:t,parent:o,type:n,props:r,children:i,line:X,column:Y,length:a,return:"",siblings:s}}function te(e,t){return F(ee("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function oe(){return $=Q>0?L(J,--Q):0,Y--,10===$&&(Y=1,X--),$}function ne(){return $=Q<Z?L(J,Q++):0,Y++,10===$&&(Y=1,X++),$}function re(){return L(J,Q)}function ie(){return Q}function ae(e,t){return q(J,e,t)}function se(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function le(e){return X=Y=1,Z=W(J=e),Q=0,[]}function ce(e){return J="",e}function ue(e){return M(ae(Q-1,he(91===e?e+2:40===e?e+1:e)))}function de(e){return ce(function(e){for(;ne();)switch(se($)){case 0:G(ge(Q-1),e);break;case 2:G(ue($),e);break;default:G(N($),e)}return e}(le(e)))}function fe(e){for(;($=re())&&$<33;)ne();return se(e)>2||se($)>3?"":" "}function pe(e,t){for(;--t&&ne()&&!($<48||$>102||$>57&&$<65||$>70&&$<97););return ae(e,ie()+(t<6&&32==re()&&32==ne()))}function he(e){for(;ne();)switch($){case e:return Q;case 34:case 39:34!==e&&39!==e&&he($);break;case 40:41===e&&he(e);break;case 92:ne()}return Q}function me(e,t){for(;ne()&&e+$!==57&&(e+$!==84||47!==re()););return"/*"+ae(t,Q-1)+"*"+N(47===e?e:ne())}function ge(e){for(;!se(re());)ne();return ae(e,Q)}function ve(e){return ce(be("",null,null,null,[""],e=le(e),0,[0],e))}function be(e,t,o,n,r,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,g=1,v=1,b=0,_="",y=r,x=i,k=n,w=_;g;)switch(h=b,b=ne()){case 40:if(108!=h&&58==L(w,d-1)){-1!=H(w+=O(ue(b),"&","&\f"),"&\f",D(c?s[c-1]:0))&&(v=-1);break}case 34:case 39:case 91:w+=ue(b);break;case 9:case 10:case 13:case 32:w+=fe(h);break;case 92:w+=pe(ie()-1,7);continue;case 47:switch(re()){case 42:case 47:G(ye(me(ne(),ie()),t,o,l),l);break;default:w+="/"}break;case 123*m:s[c++]=W(w)*v;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==v&&(w=O(w,/\f/g,"")),p>0&&W(w)-d&&G(p>32?xe(w+";",n,o,d-1,l):xe(O(w," ","")+";",n,o,d-2,l),l);break;case 59:w+=";";default:if(G(k=_e(w,t,o,c,u,r,s,_,y=[],x=[],d,i),i),123===b)if(0===u)be(w,t,k,k,y,i,d,s,x);else switch(99===f&&110===L(w,3)?100:f){case 100:case 108:case 109:case 115:be(e,k,k,n&&G(_e(e,k,k,0,0,r,s,_,r,y=[],d,x),x),r,x,d,s,n?y:x);break;default:be(w,k,k,k,[""],x,0,s,x)}}c=u=p=0,m=v=1,_=w="",d=a;break;case 58:d=1+W(w),p=h;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==oe())continue;switch(w+=N(b),b*m){case 38:v=u>0?1:(w+="\f",-1);break;case 44:s[c++]=(W(w)-1)*v,v=1;break;case 64:45===re()&&(w+=ue(ne())),f=re(),u=d=W(_=w+=ge(ie())),b++;break;case 45:45===h&&2==W(w)&&(m=0)}}return i}function _e(e,t,o,n,r,i,a,s,l,c,u,d){for(var f=r-1,p=0===r?i:[""],h=V(p),m=0,g=0,v=0;m<n;++m)for(var b=0,_=q(e,f+1,f=D(g=a[m])),y=e;b<h;++b)(y=M(g>0?p[b]+" "+_:O(_,/&\f/g,p[b])))&&(l[v++]=y);return ee(e,t,o,0===r?A:s,l,c,u,d)}function ye(e,t,o,n){return ee(e,t,o,T,N($),q(e,2,-2),0,n)}function xe(e,t,o,n,r){return ee(e,t,o,P,q(e,0,n),q(e,n+1,-1),n,r)}function ke(e){var t=V(e);return function(o,n,r,i){for(var a="",s=0;s<t;s++)a+=e[s](o,n,r,i)||"";return a}}function we(e){return function(t){t.root||(t=t.return)&&e(t)}}var Ce=function(e){if(e.type===A){if("string"===typeof e.props)return void 0;e.props=e.props.map((function(e){return-1===e.indexOf(":global(")?e:de(e).reduce((function(e,t,o,n){if(""===t)return e;if(":"===t&&"global"===n[o+1]){var r=n[o+2].slice(1,-1)+" ";return e.unshift(r),n[o+1]="",n[o+2]="",e}return e.push(t),e}),[]).join("")}))}};function Se(e,t,o){switch(function(e,t){return 45^L(e,0)?(((t<<2^L(e,0))<<2^L(e,1))<<2^L(e,2))<<2^L(e,3):0}(e,t)){case 5103:return"-webkit-print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return z+e+e;case 4215:if(102===L(e,9))return z+e+e;if(116===L(e,t+1))return z+e+e;break;case 4789:return E+e+e;case 5349:case 4246:case 6968:return z+e+E+e+e;case 6187:if(!j(e,/grab/))return O(O(O(e,/(zoom-|grab)/,"-webkit-$1"),/(image-set)/,"-webkit-$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,"-webkit-$1$`$1");case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,"-webkit-$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(W(e)-1-t>6)switch(L(e,t+1)){case 102:if(108===L(e,t+3))return O(e,/(.+:)(.+)-([^]+)/,"$1-webkit-$2-$3$1-moz-"+(108==L(e,t+3)?"$3":"$2-$3"))+e;case 115:return~H(e,"stretch")?Se(O(e,"stretch","fill-available"),t)+e:e}}return e}function Be(e,t,o,n){if(e.length>-1&&!e.return)switch(e.type){case P:return void(e.return=Se(e.value,e.length));case A:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(j(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return K([te(e,{props:[O(t,/:(read-\w+)/,":-moz-$1")]})],n);case"::placeholder":return K([te(e,{props:[O(t,/:(plac\w+)/,":-webkit-input-$1")]}),te(e,{props:[O(t,/:(plac\w+)/,":-moz-$1")]})],n)}return""}))}}var Ie=function(e){(function(e){switch(e.type){case"@container":case"@media":case"@supports":case R:return!0}return!1})(e)&&Array.isArray(e.children)&&e.children.sort((function(e,t){return e.props[0]>t.props[0]?1:-1}))};function Ee(){}var ze=/,( *[^ &])/g;function Te(e,t,o){var n=t;return o.length>0&&(n=o.reduceRight((function(e,t){return"".concat((o=t,"&"+I(o.replace(ze,",&$1")))," { ").concat(e," }");var o}),t)),"".concat(e,"{").concat(n,"}")}function Ae(e,t){var o=e.className,n=e.selectors,r=e.property,i=e.rtlClassName,a=e.rtlProperty,s=e.rtlValue,l=e.value,c=t.container,u=t.layer,d=t.media,f=t.supports,p=Te(".".concat(o),Array.isArray(l)?"".concat(l.map((function(e){return"".concat(B(r),": ").concat(e)})).join(";"),";"):"".concat(B(r),": ").concat(l,";"),n);a&&i&&(p+=Te(".".concat(i),Array.isArray(s)?"".concat(s.map((function(e){return"".concat(B(a),": ").concat(e)})).join(";"),";"):"".concat(B(a),": ").concat(s,";"),n));return d&&(p="@media ".concat(d," { ").concat(p," }")),u&&(p="@layer ".concat(u," { ").concat(p," }")),f&&(p="@supports ".concat(f," { ").concat(p," }")),c&&(p="@container ".concat(c," { ").concat(p," }")),function(e,t){var o=[];return K(ve(e),ke([Ce,t?Ie:Ee,Be,U,we((function(e){return o.push(e)}))])),o}(p,!0)}function Pe(e){var t="";for(var o in e){var n=e[o];if("string"!==typeof n&&"number"!==typeof n){if(Array.isArray(n)){var r,a=(0,i.A)(n);try{for(a.s();!(r=a.n()).done;){var s=r.value;t+=B(o)+":"+s+";"}}catch(l){a.e(l)}finally{a.f()}}}else t+=B(o)+":"+n+";"}return t}function Re(e){var t="";for(var o in e)t+="".concat(o,"{").concat(Pe(e[o]),"}");return t}function De(e,t){var o="@keyframes ".concat(e," {").concat(t,"}"),n=[];return K(ve(o),ke([U,Be,we((function(e){return n.push(e)}))])),n}var Ne={animation:[-1,["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimeline","animationTimingFunction"]],animationRange:[-1,["animationRangeEnd","animationRangeStart"]],background:[-2,["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"]],backgroundPosition:[-1,["backgroundPositionX","backgroundPositionY"]],border:[-2,["borderBottom","borderBottomColor","borderBottomStyle","borderBottomWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderTop","borderTopColor","borderTopStyle","borderTopWidth"]],borderBottom:[-1,["borderBottomColor","borderBottomStyle","borderBottomWidth"]],borderImage:[-1,["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"]],borderLeft:[-1,["borderLeftColor","borderLeftStyle","borderLeftWidth"]],borderRadius:[-1,["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"]],borderRight:[-1,["borderRightColor","borderRightStyle","borderRightWidth"]],borderTop:[-1,["borderTopColor","borderTopStyle","borderTopWidth"]],caret:[-1,["caretColor","caretShape"]],columnRule:[-1,["columnRuleColor","columnRuleStyle","columnRuleWidth"]],columns:[-1,["columnCount","columnWidth"]],containIntrinsicSize:[-1,["containIntrinsicHeight","containIntrinsicWidth"]],container:[-1,["containerName","containerType"]],flex:[-1,["flexBasis","flexGrow","flexShrink"]],flexFlow:[-1,["flexDirection","flexWrap"]],font:[-1,["fontFamily","fontSize","fontStretch","fontStyle","fontVariant","fontWeight","lineHeight"]],gap:[-1,["columnGap","rowGap"]],grid:[-1,["columnGap","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumnGap","gridRowGap","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","rowGap"]],gridArea:[-1,["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"]],gridColumn:[-1,["gridColumnEnd","gridColumnStart"]],gridRow:[-1,["gridRowEnd","gridRowStart"]],gridTemplate:[-1,["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"]],inset:[-1,["bottom","left","right","top"]],insetBlock:[-1,["insetBlockEnd","insetBlockStart"]],insetInline:[-1,["insetInlineEnd","insetInlineStart"]],listStyle:[-1,["listStyleImage","listStylePosition","listStyleType"]],margin:[-1,["marginBottom","marginLeft","marginRight","marginTop"]],marginBlock:[-1,["marginBlockEnd","marginBlockStart"]],marginInline:[-1,["marginInlineEnd","marginInlineStart"]],mask:[-1,["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPosition","maskRepeat","maskSize"]],maskBorder:[-1,["maskBorderMode","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth"]],offset:[-1,["offsetAnchor","offsetDistance","offsetPath","offsetPosition","offsetRotate"]],outline:[-1,["outlineColor","outlineStyle","outlineWidth"]],overflow:[-1,["overflowX","overflowY"]],overscrollBehavior:[-1,["overscrollBehaviorX","overscrollBehaviorY"]],padding:[-1,["paddingBottom","paddingLeft","paddingRight","paddingTop"]],paddingBlock:[-1,["paddingBlockEnd","paddingBlockStart"]],paddingInline:[-1,["paddingInlineEnd","paddingInlineStart"]],placeContent:[-1,["alignContent","justifyContent"]],placeItems:[-1,["alignItems","justifyItems"]],placeSelf:[-1,["alignSelf","justifySelf"]],scrollMargin:[-1,["scrollMarginBottom","scrollMarginLeft","scrollMarginRight","scrollMarginTop"]],scrollMarginBlock:[-1,["scrollMarginBlockEnd","scrollMarginBlockStart"]],scrollMarginInline:[-1,["scrollMarginInlineEnd","scrollMarginInlineStart"]],scrollPadding:[-1,["scrollPaddingBottom","scrollPaddingLeft","scrollPaddingRight","scrollPaddingTop"]],scrollPaddingBlock:[-1,["scrollPaddingBlockEnd","scrollPaddingBlockStart"]],scrollPaddingInline:[-1,["scrollPaddingInlineEnd","scrollPaddingInlineStart"]],scrollTimeline:[-1,["scrollTimelineAxis","scrollTimelineName"]],textDecoration:[-1,["textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness"]],textEmphasis:[-1,["textEmphasisColor","textEmphasisStyle"]],transition:[-1,["transitionBehavior","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"]],viewTimeline:[-1,["viewTimelineAxis","viewTimelineName"]]};function Fe(e,t){return 0===e.length?t:"".concat(e," and ").concat(t)}function Me(e){return"@media"===e.substr(0,6)}function je(e){return"@layer"===e.substr(0,6)}var Oe=/^(:|\[|>|&)/;function He(e){return Oe.test(e)}function Le(e){return"@supports"===e.substr(0,9)}function qe(e){return"@container"===e.substring(0,10)}function We(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}var Ve={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function Ge(e,t){if(t.media)return"m";if(t.layer||t.supports)return"t";if(t.container)return"c";if(e.length>0){var o=e[0].trim();if(58===o.charCodeAt(0))return Ve[o.slice(4,8)]||Ve[o.slice(3,5)]||"d"}return"d"}function Ke(e,t){return e?t+e:e}function Ue(e){return Ke(e.container,"c")+Ke(e.media,"m")+Ke(e.layer,"l")+Ke(e.supports,"s")}function Xe(e,t,o){var n=e+Ue(o)+t,r=(0,a.A)(n),i=r.charCodeAt(0);return i>=48&&i<=57?String.fromCharCode(i+17)+r.slice(1):r}function Ye(e,t){var o=e.property,n=e.selector,r=e.salt,i=e.value;return x.aN+(0,a.A)(r+n+Ue(t)+o+i.trim())}function Ze(e){return e===x.Ut}function Qe(e){return e.replace(/>\s+/g,">")}function $e(e){return Ne[e]}function Je(e){var t;return null!==(t=null===e||void 0===e?void 0:e[0])&&void 0!==t?t:0}function et(e,t,o,n){e[t]=n?[o,n]:o}function tt(e,t){return t.length>0?[e,Object.fromEntries(t)]:e}function ot(e,t,o,n,r,i){var a,s=[];0!==i&&s.push(["p",i]),"m"===t&&r&&s.push(["m",r]),null!==(a=e[t])&&void 0!==a||(e[t]=[]),o&&e[t].push(tt(o,s)),n&&e[t].push(tt(n,s))}function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{container:"",layer:"",media:"",supports:""},s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},l=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=arguments.length>6?arguments[6]:void 0,u=function(u){if(x.qw.hasOwnProperty(u))return e[u],"continue";var d=e[u];if(null==d)return"continue";if(Ze(d)){var f=Xe(Qe(o.join("")),u,r);return et(s,f,0,void 0),"continue"}if("string"===typeof d||"number"===typeof d){var p=Qe(o.join("")),h=$e(u);if(h){var m=h[1],g=Object.fromEntries(m.map((function(e){return[e,x.Ut]})));nt(g,t,o,r,s,l)}var v=Xe(p,u,r),b=Ye({value:d.toString(),salt:t,selector:p,property:u},r),k=c&&{key:u,value:c}||y(u,d),w=k.key!==u||k.value!==d,C=w?Ye({value:k.value.toString(),property:k.key,salt:t,selector:p},r):void 0,S=w?{rtlClassName:C,rtlProperty:k.key,rtlValue:k.value}:void 0,B=Ge(o,r),E=Ae(Object.assign({className:b,selectors:o,property:u,value:d},S),r),z=(0,n.A)(E,2),T=z[0],A=z[1];et(s,v,b,C),ot(l,B,T,A,r.media,Je(h))}else if("animationName"===u){var P,R=Array.isArray(d)?d:[d],D=[],N=[],F=(0,i.A)(R);try{for(F.s();!(P=F.n()).done;){var M=P.value,j=Re(M),O=Re(_(M)),H=x.aN+(0,a.A)(j),L=void 0,q=De(H,j),W=[];j===O?L=H:W=De(L=x.aN+(0,a.A)(O),O);for(var V=0;V<q.length;V++)ot(l,"k",q[V],W[V],r.media,0);D.push(H),N.push(L)}}catch(ue){F.e(ue)}finally{F.f()}nt({animationName:D.join(", ")},t,o,r,s,l,N.join(", "))}else if(Array.isArray(d)){if(0===d.length)return"continue";var G=Qe(o.join("")),K=$e(u);if(K){var U=K[1],X=Object.fromEntries(U.map((function(e){return[e,x.Ut]})));nt(X,t,o,r,s,l)}var Y=Xe(G,u,r),Z=Ye({value:d.map((function(e){return(null!==e&&void 0!==e?e:"").toString()})).join(";"),salt:t,selector:G,property:u},r),Q=d.map((function(e){return y(u,e)}));if(!!Q.some((function(e){return e.key!==Q[0].key})))return"continue";var $=Q[0].key!==u||Q.some((function(e,t){return e.value!==d[t]})),J=$?Ye({value:Q.map((function(e){var t;return(null!==(t=null===e||void 0===e?void 0:e.value)&&void 0!==t?t:"").toString()})).join(";"),salt:t,property:Q[0].key,selector:G},r):void 0,ee=$?{rtlClassName:J,rtlProperty:Q[0].key,rtlValue:Q.map((function(e){return e.value}))}:void 0,te=Ge(o,r),oe=Ae(Object.assign({className:Z,selectors:o,property:u,value:d},ee),r),ne=(0,n.A)(oe,2),re=ne[0],ie=ne[1];et(s,Y,Z,J),ot(l,te,re,ie,r.media,Je(K))}else if(We(d))if(He(u))nt(d,t,o.concat(I(u)),r,s,l);else if(Me(u)){var ae=Fe(r.media,u.slice(6).trim());nt(d,t,o,Object.assign({},r,{media:ae}),s,l)}else if(je(u)){var se=(r.layer?"".concat(r.layer,"."):"")+u.slice(6).trim();nt(d,t,o,Object.assign({},r,{layer:se}),s,l)}else if(Le(u)){var le=Fe(r.supports,u.slice(9).trim());nt(d,t,o,Object.assign({},r,{supports:le}),s,l)}else if(qe(u)){var ce=u.slice(10).trim();nt(d,t,o,Object.assign({},r,{container:ce}),s,l)}};for(var d in e)u(d);return[s,l]}function rt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o={},r={},i=function(i){var a=nt(e[i],t),s=(0,n.A)(a,2),l=s[0],c=s[1];o[i]=l,Object.keys(c).forEach((function(e){r[e]=(r[e]||[]).concat(c[e])}))};for(var a in e)i(a);return[o,r]}var it=o(94714);var at=o(75158),st=o(75650),lt=o(10752);function ct(e){var t=function(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.A)(),o=null,i=null,a=null,s=null;function l(r){var l=r.dir,c=r.renderer;if(null===o){var u=rt(e,c.classNameHashSalt),d=(0,n.A)(u,2);o=d[0],i=d[1]}var f="ltr"===l;return f?null===a&&(a=(0,it.N)(o,l)):null===s&&(s=(0,it.N)(o,l)),t(c,i),f?a:s}return l}(e,at.A);return function(){var e=(0,lt.m)(),o=(0,st.J)();return t({dir:e,renderer:o})}}},89312:function(e,t,o){"use strict";o.d(t,{j:function(){return i},s:function(){return r}});var n=o(80322),r=(o(47802),(0,n.createContext)({}));function i(e,t,o,n){var r=null!==n&&void 0!==n?n:{},i=r.context,a=r.theme,s="";if(!e){var l,c;s=null!==(l=null===i||void 0===i||null===(c=i.onThrowOnUndefinedColor)||void 0===c?void 0:c.call(i,{desiredColor:e,desiredColorName:t,callingComponentName:o,theme:a}))&&void 0!==l?l:"";var u="M365Theme error: It looks like the app tried to reference a theme color that didn't exist.\n\n    Double check you're consuming a M365Theme (a super set of Fabric ITheme) and that it has assigned the extension slot.\n\n    There's also a chance you've loaded multiple themes into the context. Run __packages__ in your web console and if you see multiple instances of OUIFR or Fluent, that might be the case.\n    Undefined extension slot: ".concat(t,"\n\n    Calling component: ").concat(o,"\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}},54440:function(e,t,o){"use strict";o.d(t,{s:function(){return Cc}});var n=o(84867),r=o(80322);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles)return e[0];for(var o={},r={},a=0,s=e;a<s.length;a++){var l=s[a];if(l)for(var c in l)if(l.hasOwnProperty(c)){if("subComponentStyles"===c&&void 0!==l.subComponentStyles){var u=l.subComponentStyles;for(var d in u)u.hasOwnProperty(d)&&(r.hasOwnProperty(d)?r[d].push(u[d]):r[d]=[u[d]]);continue}var f=o[c],p=l[c];o[c]=void 0===f?p:(0,n.__spreadArray)((0,n.__spreadArray)([],Array.isArray(f)?f:[f]),Array.isArray(p)?p:[p])}}if(Object.keys(r).length>0){o.subComponentStyles={};var h=o.subComponentStyles,m=function(e){if(r.hasOwnProperty(e)){var t=r[e];h[e]=function(e){return i.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var d in r)m(d)}return o}function a(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];for(var n=[],r=0,a=t;r<a.length;r++){var s=a[r];s&&n.push("function"===typeof s?s(e):s)}return 1===n.length?n[0]:n.length?i.apply(void 0,n):{}}function s(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}var l=void 0;try{l=window}catch(Sc){}function c(e){if(s()&&"undefined"!==typeof l){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:l}}var u=0,d=function(){function e(){}return e.getValue=function(e,t){var o=f();return void 0===o[e]&&(o[e]="function"===typeof t?t():t),o[e]},e.setValue=function(e,t){var o=f(),n=o.__callbacks__,r=o[e];if(t!==r){o[e]=t;var i={oldValue:r,value:t,key:e};for(var a in n)n.hasOwnProperty(a)&&n[a](i)}return t},e.addChangeListener=function(e){var t=e.__id__,o=p();t||(t=e.__id__=String(u++)),o[t]=e},e.removeChangeListener=function(e){delete p()[e.__id__]},e}();function f(){var e,t=c()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function p(){return f().__callbacks__}var h={settings:{},scopedSettings:{},inCustomizerContext:!1},m=d.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),g=[],v=function(){function e(){}return e.reset=function(){m.settings={},m.scopedSettings={}},e.applySettings=function(t){m.settings=(0,n.__assign)((0,n.__assign)({},m.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,o){m.scopedSettings[t]=(0,n.__assign)((0,n.__assign)({},m.scopedSettings[t]),o),e._raiseChange()},e.getSettings=function(e,t,o){void 0===o&&(o=h);for(var n={},r=t&&o.scopedSettings[t]||{},i=t&&m.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];n[l]=r[l]||o.settings[l]||i[l]||m.settings[l]}return n},e.applyBatchedUpdates=function(t,o){e._suppressUpdates=!0;try{t()}catch(U){}e._suppressUpdates=!1,o||e._raiseChange()},e.observe=function(e){g.push(e)},e.unobserve=function(e){g=g.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||g.forEach((function(e){return e()}))},e}(),b=r.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function _(e,t){var o=function(){var e=r.useState(0)[1];return function(){return e((function(e){return++e}))}}(),n=r.useContext(b).customizations,i=n.inCustomizerContext;return r.useEffect((function(){return i||v.observe(o),function(){i||v.unobserve(o)}}),[i]),v.getSettings(e,t,n)}var y=["theme","styles"];function x(e,t,o,i,s){var l=(i=i||{scope:"",fields:void 0}).scope,c=i.fields,u=void 0===c?y:c,d=r.forwardRef((function(i,s){var c=r.useRef(),d=_(u,l),f=d.styles,p=(d.dir,(0,n.__rest)(d,["styles","dir"])),h=o?o(i):void 0,m=c.current&&c.current.__cachedInputs__||[],g=i.styles;if(!c.current||f!==m[1]||g!==m[2]){var v=function(e){return a(e,t,f,g)};v.__cachedInputs__=[t,f,g],v.__noStyleOverride__=!f&&!g,c.current=v}return r.createElement(e,(0,n.__assign)({ref:s},p,h,i,{styles:c.current}))}));d.displayName="Styled"+(e.displayName||e.name);var f=s?r.memo(d):d;return d.displayName&&(f.displayName=d.displayName),f}var k,w=o(18188),C=o(49839),S=o(31344),B=o(63598),I=o(36202),E=o(51326),z=o(12286),T=o(8778),A=0,P=1,R=2,D="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),N={};try{N=window||{}}catch(U){}var F,M=function(){function e(e,t){var o,r,i,a,s,l;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=(0,n.__assign)({injectionMode:"undefined"===typeof document?A:P,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(o=null===t||void 0===t?void 0:t.classNameToArgs)&&void 0!==o?o:this._classNameToArgs,this._counter=null!==(r=null===t||void 0===t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(a=null!==(i=this._config.classNameCache)&&void 0!==i?i:null===t||void 0===t?void 0:t.keyToClassName)&&void 0!==a?a:this._keyToClassName,this._preservedRules=null!==(s=null===t||void 0===t?void 0:t.preservedRules)&&void 0!==s?s:this._preservedRules,this._rules=null!==(l=null===t||void 0===t?void 0:t.rules)&&void 0!==l?l:this._rules}return e.getInstance=function(){if(!(k=N.__stylesheet__)||k._lastStyleElement&&k._lastStyleElement.ownerDocument!==document){var t=(null===N||void 0===N?void 0:N.FabricConfig)||{},o=new e(t.mergeStyles,t.serializedStylesheet);k=o,N.__stylesheet__=o}return k},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=(0,n.__assign)((0,n.__assign)({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace;return(t?t+"-":"")+(e||this._config.defaultPrefix)+"-"+this._counter++},e.prototype.cacheClassName=function(e,t,o,n){this._keyToClassName[t]=e,this._classNameToArgs[e]={args:o,rules:n}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[e]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t){var o=this._config.injectionMode,n=o!==A?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),n)switch(o){case P:var r=n.sheet;try{r.insertRule(e,r.cssRules.length)}catch(Sc){}break;case R:n.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(e){return e()}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._getStyleElement=function(){var e=this;return this._styleElement||"undefined"===typeof document||(this._styleElement=this._createStyleElement(),D||window.requestAnimationFrame((function(){e._styleElement=void 0}))),this._styleElement},e.prototype._createStyleElement=function(){var e=document.head,t=document.createElement("style"),o=null;t.setAttribute("data-merge-styles","true");var n=this._config.cspSettings;if(n&&n.nonce&&t.setAttribute("nonce",n.nonce),this._lastStyleElement)o=this._lastStyleElement.nextElementSibling;else{var r=this._findPlaceholderStyleTag();o=r?r.nextElementSibling:e.childNodes[0]}return e.insertBefore(t,e.contains(o)?o:null),this._lastStyleElement=t,t},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}();function j(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=[],n=[],r=M.getInstance();function i(e){for(var t=0,a=e;t<a.length;t++){var s=a[t];if(s)if("string"===typeof s)if(s.indexOf(" ")>=0)i(s.split(" "));else{var l=r.argsFromClassName(s);l?i(l):-1===o.indexOf(s)&&o.push(s)}else Array.isArray(s)?i(s):"object"===typeof s&&n.push(s)}}return i(e),{classes:o,objects:n}}function O(e){F!==e&&(F=e)}function H(){return void 0===F&&(F="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),F}function L(){return{rtl:H()}}F=H();var q,W={};function V(e,t){var o=e[t];"-"!==o.charAt(0)&&(e[t]=W[o]=W[o]||o.replace(/([A-Z])/g,"-$1").toLowerCase())}var G={"user-select":1};function K(e,t){var o=function(){var e;if(!q){var t="undefined"!==typeof document?document:void 0,o="undefined"!==typeof navigator?navigator:void 0,n=null===(e=null===o||void 0===o?void 0:o.userAgent)||void 0===e?void 0:e.toLowerCase();q=t?{isWebkit:!(!t||!("WebkitAppearance"in t.documentElement.style)),isMoz:!!(n&&n.indexOf("firefox")>-1),isOpera:!!(n&&n.indexOf("opera")>-1),isMs:!(!o||!/rv:11.0/i.test(o.userAgent)&&!/Edge\/\d./i.test(navigator.userAgent))}:{isWebkit:!0,isMoz:!0,isOpera:!0,isMs:!0}}return q}(),n=e[t];if(G[n]){var r=e[t+1];G[n]&&(o.isWebkit&&e.push("-webkit-"+n,r),o.isMoz&&e.push("-moz-"+n,r),o.isMs&&e.push("-ms-"+n,r),o.isOpera&&e.push("-o-"+n,r))}}var U,X=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function Y(e,t){var o=e[t],n=e[t+1];if("number"===typeof n){var r=X.indexOf(o)>-1,i=o.indexOf("--")>-1,a=r||i?"":"px";e[t+1]=""+n+a}}var Z="left",Q="right",$=((U={}).left=Q,U.right=Z,U),J={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function ee(e,t,o){if(e.rtl){var n=t[o];if(!n)return;var r=t[o+1];if("string"===typeof r&&r.indexOf("@noflip")>=0)t[o+1]=r.replace(/\s*(?:\/\*\s*)?\@noflip\b(?:\s*\*\/)?\s*?/g,"");else if(n.indexOf(Z)>=0)t[o]=n.replace(Z,Q);else if(n.indexOf(Q)>=0)t[o]=n.replace(Q,Z);else if(String(r).indexOf(Z)>=0)t[o+1]=r.replace(Z,Q);else if(String(r).indexOf(Q)>=0)t[o+1]=r.replace(Q,Z);else if($[n])t[o]=$[n];else if(J[r])t[o+1]=J[r];else switch(n){case"margin":case"padding":t[o+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}(r);break;case"box-shadow":t[o+1]=function(e,t){var o=e.split(" "),n=parseInt(o[t],10);return o[0]=o[0].replace(String(n),String(-1*n)),o.join(" ")}(r,0)}}}function te(e){var t=e&&e["&"];return t?t.displayName:void 0}var oe=/\:global\((.+?)\)/g;function ne(e,t){return e.indexOf(":global(")>=0?e.replace(oe,"$1"):0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function re(e,t,o,n){void 0===t&&(t={__order:[]}),0===o.indexOf("@")?ie([n],t,o=o+"{"+e):o.indexOf(",")>-1?function(e){if(!oe.test(e))return e;for(var t=[],o=/\:global\((.+?)\)/g,n=null;n=o.exec(e);)n[1].indexOf(",")>-1&&t.push([n.index,n.index+n[0].length,n[1].split(",").map((function(e){return":global("+e.trim()+")"})).join(", ")]);return t.reverse().reduce((function(e,t){var o=t[0],n=t[1],r=t[2];return e.slice(0,o)+r+e.slice(n)}),e)}(o).split(",").map((function(e){return e.trim()})).forEach((function(o){return ie([n],t,ne(o,e))})):ie([n],t,ne(o,e))}function ie(e,t,o){void 0===t&&(t={__order:[]}),void 0===o&&(o="&");var n=M.getInstance(),r=t[o];r||(r={},t[o]=r,t.__order.push(o));for(var i=0,a=e;i<a.length;i++){var s=a[i];if("string"===typeof s){var l=n.argsFromClassName(s);l&&ie(l,t,o)}else if(Array.isArray(s))ie(s,t,o);else for(var c in s)if(s.hasOwnProperty(c)){var u=s[c];if("selectors"===c){var d=s.selectors;for(var f in d)d.hasOwnProperty(f)&&re(o,t,f,d[f])}else"object"===typeof u?null!==u&&re(o,t,c,u):void 0!==u&&("margin"===c||"padding"===c?ae(r,c,u):r[c]=u)}}return t}function ae(e,t,o){var n="string"===typeof o?function(e){for(var t=[],o=0,n=0,r=0;r<e.length;r++)switch(e[r]){case"(":n++;break;case")":n&&n--;break;case"\t":case" ":n||(r>o&&t.push(e.substring(o,r)),o=r+1)}return o<e.length&&t.push(e.substring(o)),t}(o):[o];0===n.length&&n.push(o),"!important"===n[n.length-1]&&(n=n.slice(0,-1).map((function(e){return e+" !important"}))),e[t+"Top"]=n[0],e[t+"Right"]=n[1]||n[0],e[t+"Bottom"]=n[2]||n[0],e[t+"Left"]=n[3]||n[1]||n[0]}function se(e,t){for(var o=[e.rtl?"rtl":"ltr"],n=!1,r=0,i=t.__order;r<i.length;r++){var a=i[r];o.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(n=!0,o.push(l,s[l]))}return n?o.join(""):void 0}function le(e,t){return t<=0?"":1===t?e:e+le(e,t-1)}function ce(e,t){if(!t)return"";var o=[];for(var n in t)t.hasOwnProperty(n)&&"displayName"!==n&&void 0!==t[n]&&o.push(n,t[n]);for(var r=0;r<o.length;r+=2)V(o,r),Y(o,r),ee(e,o,r),K(o,r);for(r=1;r<o.length;r+=4)o.splice(r,1,":",o[r],";");return o.join("")}function ue(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var n=ie(t),r=se(e,n);if(r){var i=M.getInstance(),a={className:i.classNameFromKey(r),key:r,args:t};if(!a.className){a.className=i.getClassName(te(n));for(var s=[],l=0,c=n.__order;l<c.length;l++){var u=c[l];s.push(u,ce(e,n[u]))}a.rulesToInsert=s}return a}}function de(e,t){void 0===t&&(t=1);var o=M.getInstance(),n=e.className,r=e.key,i=e.args,a=e.rulesToInsert;if(a){for(var s=0;s<a.length;s+=2){var l=a[s+1];if(l){var c=a[s],u=(c=c.replace(/&/g,le("."+e.className,t)))+"{"+l+"}"+(0===c.indexOf("@")?"}":"");o.insertRule(u)}}o.cacheClassName(n,r,i,a)}}function fe(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return pe(e,L())}function pe(e,t){var o={subComponentStyles:{}};if(!e[0]&&e.length<=1)return{subComponentStyles:{}};var n=i.apply(void 0,e),r=[];for(var a in n)if(n.hasOwnProperty(a)){if("subComponentStyles"===a){o.subComponentStyles=n.subComponentStyles||{};continue}var s=j(n[a]),l=s.classes,c=s.objects;if(null===c||void 0===c?void 0:c.length)(f=ue(t||{},{displayName:a},c))&&(r.push(f),o[a]=l.concat([f.className]).join(" "));else o[a]=l.join(" ")}for(var u=0,d=r;u<d.length;u++){var f;(f=d[u])&&de(f,null===t||void 0===t?void 0:t.specificityMultiplier)}return o}function he(e){if(s()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}var me,ge="isRTL";function ve(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===me){var t=function(e){var t=null;try{var o=c();t=o?o.sessionStorage.getItem(e):null}catch(Sc){}return t}(ge);null!==t&&function(e,t){void 0===t&&(t=!1);var o=he();o&&o.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){var o;try{null===(o=c())||void 0===o||o.sessionStorage.setItem(e,t)}catch(Sc){}}(ge,e?"1":"0");O(me=e)}(me="1"===t);var o=he();void 0===me&&o&&O(me="rtl"===(o.body&&o.body.getAttribute("dir")||o.documentElement.getAttribute("dir")))}return!!me}var be=0,_e=M.getInstance();_e&&_e.onReset&&_e.onReset((function(){return be++}));var ye="__retval__";function xe(e){void 0===e&&(e={});var t=new Map,o=0,n=0,r=be;return function(i,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"===typeof i&&i.__noStyleOverride__)return i(a);n++;var l=t,u=a.theme,d=u&&void 0!==u.rtl?u.rtl:ve(),f=e.disableCaching;if(r!==be&&(r=be,t=new Map,o=0),e.disableCaching||(l=we(t,i),l=we(l,a)),!f&&l[ye]||(l[ye]=void 0===i?{}:pe(["function"===typeof i?i(a):i],{rtl:!!d,specificityMultiplier:e.useStaticStyles?5:void 0}),f||o++),o>(e.cacheSize||50)){var p=c();(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 "+o+"/"+n+"."),console.trace()),t.clear(),o=0,e.disableCaching=!0}return l[ye]}}function ke(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 we(e,t){if("function"===typeof t)if(t.__cachedInputs__)for(var o=0,n=t.__cachedInputs__;o<n.length;o++){e=ke(e,n[o])}else e=ke(e,t);else if("object"===typeof t)for(var r in t)t.hasOwnProperty(r)&&(e=ke(e,t[r]));return e}var Ce=c()||{};void 0===Ce.__currentId__&&(Ce.__currentId__=0);var Se=!1;function Be(e){if(!Se){var t=M.getInstance();t&&t.onReset&&t.onReset(Ie),Se=!0}return(void 0===e?"id__":e)+Ce.__currentId__++}function Ie(e){void 0===e&&(e=0),Ce.__currentId__=e}var Ee,ze=1,Te=2;function Ae(e,t){if(e.length!==t.length)return!1;for(var o=0;o<e.length;o++)if(e[o]!==t[o])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"}(Ee||(Ee={}));var Pe=function(e){return function(t){for(var o=0,n=e.refs;o<n.length;o++){var r=n[o];"function"===typeof r?r(t):r&&(r.current=t)}}},Re=function(e){var t={refs:[]};return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return t.resolver&&Ae(t.refs,e)||(t.resolver=Pe(t)),t.refs=e,t.resolver}};function De(e,t){return void 0===t&&(t=!0),e&&(t&&function(e){var t,o;return e&&(o=e)&&o._virtual&&(t=e._virtual.parent),t}(e)||e.parentNode&&e.parentNode)}function Ne(e,t){return e&&e!==document.body?t(e)?e:Ne(De(e),t):null}function Fe(e,t,o){void 0===o&&(o=!0);var n=!1;if(e&&t)if(o)if(e===t)n=!0;else for(n=!1;t;){var r=De(t);if(r===e){n=!0;break}t=r}else e.contains&&(n=e.contains(t));return n}function Me(e,t,o,n,r,i,a,s){if(!t||!a&&t===e)return null;var l=Oe(t);if(r&&l&&(i||!qe(t)&&!We(t))){var c=Me(e,t.lastElementChild,!0,!0,!0,i,a,s);if(c){if(s&&Le(c,!0)||!s)return c;var u=Me(e,c.previousElementSibling,!0,!0,!0,i,a,s);if(u)return u;for(var d=c.parentElement;d&&d!==t;){var f=Me(e,d.previousElementSibling,!0,!0,!0,i,a,s);if(f)return f;d=d.parentElement}}}if(o&&l&&Le(t,s))return t;var p=Me(e,t.previousElementSibling,!0,!0,!0,i,a,s);return p||(n?null:Me(e,t.parentElement,!0,!1,!1,i,a,s))}function je(e,t,o,n,r,i,a,s,l){if(!t||t===e&&r&&!a)return null;var c=(l?He:Oe)(t);if(o&&c&&Le(t,s))return t;if(!r&&c&&(i||!qe(t)&&!We(t))){var u=je(e,t.firstElementChild,!0,!0,!1,i,a,s,l);if(u)return u}if(t===e)return null;var d=je(e,t.nextElementSibling,!0,!0,!1,i,a,s,l);return d||(n?null:je(e,t.parentElement,!1,!1,!0,i,a,s,l))}function Oe(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 He(e){return!!e&&Oe(e)&&!e.hidden&&"hidden"!==window.getComputedStyle(e).visibility}function Le(e,t){if(!e||e.disabled)return!1;var o=0,n=null;e&&e.getAttribute&&(n=e.getAttribute("tabIndex"))&&(o=parseInt(n,10));var r=e.getAttribute?e.getAttribute("data-is-focusable"):null,i=null!==n&&o>=0,a=!!e&&"false"!==r&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===r||i);return t?-1!==o&&a:a}function qe(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function We(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function Ve(e,t){return"true"!==function(e,t){var o=Ne(e,(function(e){return e.hasAttribute(t)}));return o&&o.getAttribute(t)}(e,t)}var Ge=void 0;function Ke(e){if(e){if(Ge)return void(Ge=e);Ge=e;var t=c(e);t&&t.requestAnimationFrame((function(){Ge&&Ge.focus(),Ge=void 0}))}}var Ue=9,Xe=13,Ye=18,Ze=27,Qe=32,$e=33,Je=34,et=35,tt=36,ot=37,nt=38,rt=39,it=40;function at(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return t.length<2?t[0]:function(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];t.forEach((function(t){return t&&t.apply(e,o)}))}}function st(e){!function(e,t){for(var o in t)t.hasOwnProperty(o)&&(e[o]=at(e,e[o],t[o]))}(e,{componentDidMount:lt,componentDidUpdate:ct,componentWillUnmount:ut})}function lt(){dt(this.props.componentRef,this)}function ct(e){e.componentRef!==this.props.componentRef&&(dt(e.componentRef,null),dt(this.props.componentRef,this))}function ut(){dt(this.props.componentRef,null)}function dt(e,t){e&&("object"===typeof e?e.current=t:"function"===typeof e&&e(t))}var ft,pt=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o={},n=0,r=e;n<r.length;n++)for(var i=r[n],a=Array.isArray(i)?i:Object.keys(i),s=0,l=a;s<l.length;s++){var c=l[s];o[c]=1}return o},ht=pt(["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"]),mt=pt(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),gt=pt(mt,ht),vt=(pt(gt,["form"]),pt(gt,["height","loop","muted","preload","src","width"])),bt=(pt(vt,["poster"]),pt(gt,["start"]),pt(gt,["value"]),pt(gt,["download","href","hrefLang","media","rel","target","type"])),_t=pt(gt,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),yt=(pt(_t,["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"]),pt(_t,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),pt(_t,["form","multiple","required"]),pt(gt,["selected","value"]),pt(gt,["cellPadding","cellSpacing"]),pt(gt,["rowSpan","scope"]),pt(gt,["colSpan","headers","rowSpan","scope"]),pt(gt,["span"]),pt(gt,["span"]),pt(gt,["acceptCharset","action","encType","encType","method","noValidate","target"]),pt(gt,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),pt(gt,["alt","crossOrigin","height","src","srcSet","useMap","width"])),xt=gt;function kt(e,t,o){for(var n=Array.isArray(t),r={},i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];!(!n&&t[s]||n&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||o&&-1!==(null===o||void 0===o?void 0:o.indexOf(s))||(r[s]=e[s])}return r}function wt(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var o=[],n=0,r=e;n<r.length;n++){var i=r[n];if(i)if("string"===typeof i)o.push(i);else if(i.hasOwnProperty("toString")&&"function"===typeof i.toString)o.push(i.toString());else for(var a in i)i[a]&&o.push(a)}return o.join(" ")}function Ct(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return St(e,L())}function St(e,t){var o=j(e instanceof Array?e:[e]),r=o.classes,i=o.objects;return i.length&&r.push(function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];var r=ue.apply(void 0,(0,n.__spreadArray)([e],t));return r?(de(r,e.specificityMultiplier),r.className):""}(t||{},i)),r.join(" ")}Ct({overflow:"hidden !important"});var Bt="data-is-scrollable";function It(e){for(var t=e,o=he(e);t&&t!==o.body;){if("true"===t.getAttribute(Bt))return t;t=t.parentElement}for(t=e;t&&t!==o.body;){if("false"!==t.getAttribute(Bt)){var n=getComputedStyle(t),r=n?n.getPropertyValue("overflow-y"):"";if(r&&("scroll"===r||"auto"===r))return t}t=t.parentElement}return t&&t!==o.body||(t=c(e)),t}var Et="data-portal-element";function zt(e,t){var o=Ne(e,(function(e){return t===e||e.hasAttribute(Et)}));return null!==o&&o.hasAttribute(Et)}var Tt=o(21963),At=o(10709),Pt=o(53199);function Rt(e){var t=At.n.getInstance(),o=[];for(var n in e)e.hasOwnProperty(n)&&o.push(n,"{",(0,Pt.bz)((0,Tt.Iy)(),e[n]),"}");var r=o.join(""),i=t.classNameFromKey(r);if(i)return i;var a=t.getClassName();return t.insertRule("@keyframes "+a+"{"+r+"}",!0),t.cacheClassName(a,r,[],["keyframes",r]),a}var Dt="cubic-bezier(.1,.9,.2,1)",Nt="cubic-bezier(.1,.25,.75,.9)",Ft="0.167s",Mt="0.267s",jt="0.367s",Ot="0.467s",Ht=Rt({from:{opacity:0},to:{opacity:1}}),Lt=Rt({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),qt=xo(-10),Wt=xo(-20),Vt=xo(-40),Gt=xo(-400),Kt=xo(10),Ut=xo(20),Xt=xo(40),Yt=xo(400),Zt=ko(10),Qt=ko(20),$t=ko(-10),Jt=ko(-20),eo=wo(10),to=wo(20),oo=wo(40),no=wo(400),ro=wo(-10),io=wo(-20),ao=wo(-40),so=wo(-400),lo=Co(-10),co=Co(-20),uo=Co(10),fo=Co(20),po=Rt({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),ho=Rt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),mo=Rt({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),go=Rt({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),vo=Rt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),bo=Rt({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),_o=Dt;function yo(e,t,o){return{animationName:e,animationDuration:t,animationTimingFunction:o,animationFillMode:"both"}}function xo(e){return Rt({from:{transform:"translate3d("+e+"px,0,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function ko(e){return Rt({from:{transform:"translate3d(0,"+e+"px,0)",pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function wo(e){return Rt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d("+e+"px,0,0)"}})}function Co(e){return Rt({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,"+e+"px,0)"}})}var So=function(e){var t={},o=function(o){var n;e.hasOwnProperty(o)&&Object.defineProperty(t,o,{get:function(){return void 0===n&&(n=Ct(e[o]).toString()),n},enumerable:!0,configurable:!0})};for(var n in e)o(n);return t}({slideRightIn10:yo(Ht+","+qt,jt,Dt),slideRightIn20:yo(Ht+","+Wt,jt,Dt),slideRightIn40:yo(Ht+","+Vt,jt,Dt),slideRightIn400:yo(Ht+","+Gt,jt,Dt),slideLeftIn10:yo(Ht+","+Kt,jt,Dt),slideLeftIn20:yo(Ht+","+Ut,jt,Dt),slideLeftIn40:yo(Ht+","+Xt,jt,Dt),slideLeftIn400:yo(Ht+","+Yt,jt,Dt),slideUpIn10:yo(Ht+","+Zt,jt,Dt),slideUpIn20:yo(Ht+","+Qt,jt,Dt),slideDownIn10:yo(Ht+","+$t,jt,Dt),slideDownIn20:yo(Ht+","+Jt,jt,Dt),slideRightOut10:yo(Lt+","+eo,jt,Dt),slideRightOut20:yo(Lt+","+to,jt,Dt),slideRightOut40:yo(Lt+","+oo,jt,Dt),slideRightOut400:yo(Lt+","+no,jt,Dt),slideLeftOut10:yo(Lt+","+ro,jt,Dt),slideLeftOut20:yo(Lt+","+io,jt,Dt),slideLeftOut40:yo(Lt+","+ao,jt,Dt),slideLeftOut400:yo(Lt+","+so,jt,Dt),slideUpOut10:yo(Lt+","+lo,jt,Dt),slideUpOut20:yo(Lt+","+co,jt,Dt),slideDownOut10:yo(Lt+","+uo,jt,Dt),slideDownOut20:yo(Lt+","+fo,jt,Dt),scaleUpIn100:yo(Ht+","+po,jt,Dt),scaleDownIn100:yo(Ht+","+mo,jt,Dt),scaleUpOut103:yo(Lt+","+go,Ft,Nt),scaleDownOut98:yo(Lt+","+ho,Ft,Nt),fadeIn100:yo(Ht,Ft,Nt),fadeIn200:yo(Ht,Mt,Nt),fadeIn400:yo(Ht,jt,Nt),fadeIn500:yo(Ht,Ot,Nt),fadeOut100:yo(Lt,Ft,Nt),fadeOut200:yo(Lt,Mt,Nt),fadeOut400:yo(Lt,jt,Nt),fadeOut500:yo(Lt,Ot,Nt),rotate90deg:yo(vo,"0.1s",Nt),rotateN90deg:yo(bo,"0.1s",Nt)}),Bo=o(56956),Io="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)";function Eo(e,t){return"@media only screen"+("number"===typeof e?" and (min-width: "+e+"px)":"")+("number"===typeof t?" and (max-width: "+t+"px)":"")}var zo,To="ms-Fabric--isFocusVisible",Ao="ms-Fabric--isFocusHidden";function Po(e,t){e&&(e.classList.add(t?To:Ao),e.classList.remove(t?Ao:To))}function Ro(e,t,o){var n;o?o.forEach((function(t){return Po(t.current,e)})):Po(null===(n=c(t))||void 0===n?void 0:n.document.body,e)}function Do(e,t,o,n,r,i,a,s){return No(e,"number"!==typeof t&&t?t:{inset:t,position:o,highContrastStyle:n,borderColor:r,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function No(e,t){var o,n;void 0===t&&(t={});var r=t.borderRadius,i=t.inset,a=void 0===i?0:i,s=t.width,l=void 0===s?1:s,c=t.position,u=void 0===c?"relative":c,d=t.highContrastStyle,f=t.borderColor,p=void 0===f?e.palette.white:f,h=t.outlineColor,m=void 0===h?e.palette.neutralSecondary:h,g=t.isFocusedOnly;return{outline:"transparent",position:u,selectors:(o={"::-moz-focus-inner":{border:"0"}},o[".ms-Fabric--isFocusVisible &"+(void 0===g||g?":focus":"")+":after"]={content:'""',position:"absolute",left:a+1,top:a+1,bottom:a+1,right:a+1,border:l+"px solid "+p,outline:l+"px solid "+m,zIndex:zo.FocusStyle,borderRadius:r,selectors:(n={},n[Io]=d,n)},o)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(zo||(zo={}));var Fo={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"},Mo=!1,jo=0,Oo={empty:!0},Ho={},Lo="undefined"===typeof WeakMap?null:WeakMap;function qo(){jo++}function Wo(e,t,o){if(void 0===t&&(t=100),void 0===o&&(o=!1),!Lo)return e;if(!Mo){var n=M.getInstance();n&&n.onReset&&M.getInstance().onReset(qo),Mo=!0}var r,i=0,a=jo;return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var l=r;(void 0===r||a!==jo||t>0&&i>t)&&(r=Ko(),i=0,a=jo),l=r;for(var c=0;c<n.length;c++){var u=Go(n[c]);l.map.has(u)||l.map.set(u,Ko()),l=l.map.get(u)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,n),i++),!o||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,n)),l.value}}function Vo(e){if(!Lo)return e;var t=new Lo;return function(o){if(!o||"function"!==typeof o&&"object"!==typeof o)return e(o);if(t.has(o))return t.get(o);var n=e(o);return t.set(o,n),n}}function Go(e){return e?"object"===typeof e||"function"===typeof e?e:(Ho[e]||(Ho[e]={val:e}),Ho[e]):Oo}function Ko(){return{map:Lo?new Lo:null}}var Uo=Wo((function(e,t){var o=M.getInstance();return t?Object.keys(e).reduce((function(t,n){return t[n]=o.getClassName(e[n]),t}),{}):e}));function Xo(e,t,o){return Uo(e,void 0!==o?o:t.disableGlobalClassNames)}var Yo=o(28480),Zo=o(80198),Qo=(0,Zo.a)({}),$o=[],Jo="theme";function en(){var e,t,o,r=c();(null===(t=null===r||void 0===r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var o;void 0===t&&(t=!1);Qo=(0,Zo.a)(e,t),(0,Yo.EQ)((0,n.__assign)((0,n.__assign)((0,n.__assign)((0,n.__assign)({},Qo.palette),Qo.semanticColors),Qo.effects),function(e){for(var t={},o=0,n=Object.keys(e.fonts);o<n.length;o++)for(var r=n[o],i=e.fonts[r],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=r+l.charAt(0).toUpperCase()+l.slice(1),u=i[l];"fontSize"===l&&"number"===typeof u&&(u+="px"),t[c]=u}return t}(Qo))),v.applySettings(((o={}).theme=Qo,o)),$o.forEach((function(e){try{e(Qo)}catch(Sc){}}))}(r.FabricConfig.legacyTheme):v.getSettings([Jo]).theme||((null===(o=null===r||void 0===r?void 0:r.FabricConfig)||void 0===o?void 0:o.theme)&&(Qo=(0,Zo.a)(r.FabricConfig.theme)),v.applySettings(((e={}).theme=Qo,e)))}en();var tn=d.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),on=M.getInstance();on&&on.onReset&&on.onReset((function(){for(var e in tn)tn.hasOwnProperty(e)&&tn[e].subset&&(tn[e].subset.className=void 0)}));var nn=function(e){return e.toLowerCase()};function rn(e){var t,o=void 0,n=tn.__options;if(e=e?nn(e):"",e=tn.__remapped[e]||e)if(o=tn[e]){var r=o.subset;r&&r.fontFace&&(r.isRegistered||(!function(e){var t=M.getInstance(),o=ce(L(),e);if(!t.classNameFromKey(o)){var n=t.getClassName();t.insertRule("@font-face{"+o+"}",!0),t.cacheClassName(n,o,[],["font-face",o])}}(r.fontFace),r.isRegistered=!0),r.className||(r.className=Ct(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.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 o}var an={},sn=void 0;try{sn=window}catch(Sc){}function ln(e,t){if("undefined"!==typeof sn){var o=sn.__packages__=sn.__packages__||{};if(!o[e]||!an[e])an[e]=t,(o[e]=o[e]||[]).push(t)}}ln("@fluentui/set-version","6.0.0"),ln("@fluentui/style-utilities","8.7.12"),en();var cn,un="data-is-focusable",dn="data-focuszone-id",fn="tabindex",pn="data-no-vertical-wrap",hn="data-no-horizontal-wrap",mn=999999999,gn=-999999999;function vn(e,t){var o;"function"===typeof MouseEvent?o=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}):(o=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(o)}var bn={},_n=new Set,yn=["text","number","password","email","tel","url","search","textarea"],xn=!1,kn=function(e){function t(o){var n,i,a,s,l=e.call(this,o)||this;l._root=r.createRef(),l._mergedRef=Re(),l._onFocus=function(e){if(!l._portalContainsElement(e.target)){var t,o=l.props,n=o.onActiveElementChanged,r=o.doNotAllowFocusEventToPropagate,i=o.stopFocusPropagation,a=o.onFocusNotification,s=o.onFocus,c=o.shouldFocusInnerElementWhenReceivedFocus,u=o.defaultTabbableElement,d=l._isImmediateDescendantOfZone(e.target);if(d)t=e.target;else for(var f=e.target;f&&f!==l._root.current;){if(Le(f)&&l._isImmediateDescendantOfZone(f)){t=f;break}f=De(f,xn)}if(c&&e.target===l._root.current){var p=u&&"function"===typeof u&&l._root.current&&u(l._root.current);p&&Le(p)?(t=p,p.focus()):(l.focus(!0),l._activeElement&&(t=null))}var h=!l._activeElement;t&&t!==l._activeElement&&((d||h)&&l._setFocusAlignment(t,!0,!0),l._activeElement=t,h&&l._updateTabIndexes()),n&&n(l._activeElement,e),(i||r)&&e.stopPropagation(),s?s(e):a&&a()}},l._onBlur=function(){l._setParkedFocus(!1)},l._onMouseDown=function(e){if(!l._portalContainsElement(e.target)&&!l.props.disabled){for(var t=e.target,o=[];t&&t!==l._root.current;)o.push(t),t=De(t,xn);for(;o.length&&((t=o.pop())&&Le(t)&&l._setActiveElement(t,!0),!qe(t)););}},l._onKeyDown=function(e,t){if(!l._portalContainsElement(e.target)){var o=l.props,n=o.direction,r=o.disabled,i=o.isInnerZoneKeystroke,a=o.pagingSupportDisabled,s=o.shouldEnterInnerZone;if(!r&&(l.props.onKeyDown&&l.props.onKeyDown(e),!e.isDefaultPrevented()&&(l._getDocument().activeElement!==l._root.current||!l._isInnerZone))){if((s&&s(e)||i&&i(e))&&l._isImmediateDescendantOfZone(e.target)){var c=l._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!We(e.target))return;if(!l.focusElement(je(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case Qe:if(l._shouldRaiseClicksOnSpace&&l._tryInvokeClickForFocusable(e.target,e))break;return;case ot:if(n!==Ee.vertical&&(l._preventDefaultWhenHandled(e),l._moveFocusLeft(t)))break;return;case rt:if(n!==Ee.vertical&&(l._preventDefaultWhenHandled(e),l._moveFocusRight(t)))break;return;case nt:if(n!==Ee.horizontal&&(l._preventDefaultWhenHandled(e),l._moveFocusUp()))break;return;case it:if(n!==Ee.horizontal&&(l._preventDefaultWhenHandled(e),l._moveFocusDown()))break;return;case Je:if(!a&&l._moveFocusPaging(!0))break;return;case $e:if(!a&&l._moveFocusPaging(!1))break;return;case Ue:if(l.props.allowTabKey||l.props.handleTabKey===ze||l.props.handleTabKey===Te&&l._isElementInput(e.target)){var u=!1;if(l._processingTabKey=!0,n!==Ee.vertical&&l._shouldWrapFocus(l._activeElement,hn))u=(ve(t)?!e.shiftKey:e.shiftKey)?l._moveFocusLeft(t):l._moveFocusRight(t);else u=e.shiftKey?l._moveFocusUp():l._moveFocusDown();if(l._processingTabKey=!1,u)break;l.props.shouldResetActiveElementWhenTabFromZone&&(l._activeElement=null)}return;case tt:if(l._isContentEditableElement(e.target)||l._isElementInput(e.target)&&!l._shouldInputLoseFocus(e.target,!1))return!1;var d=l._root.current&&l._root.current.firstChild;if(l._root.current&&d&&l.focusElement(je(l._root.current,d,!0)))break;return;case et:if(l._isContentEditableElement(e.target)||l._isElementInput(e.target)&&!l._shouldInputLoseFocus(e.target,!0))return!1;var f=l._root.current&&l._root.current.lastChild;if(l._root.current&&l.focusElement(Me(l._root.current,f,!0,!0,!0)))break;return;case Xe:if(l._shouldRaiseClicksOnEnter&&l._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},l._getHorizontalDistanceFromCenter=function(e,t,o){var n=l._focusAlignment.left||l._focusAlignment.x||0,r=Math.floor(o.top),i=Math.floor(t.bottom),a=Math.floor(o.bottom),s=Math.floor(t.top);return e&&r>i||!e&&a<s?n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n):l._shouldWrapFocus(l._activeElement,pn)?mn:gn},st(l),l._id=Be("FocusZone"),l._focusAlignment={left:0,top:0},l._processingTabKey=!1;var c=null===(i=null!==(n=o.shouldRaiseClicks)&&void 0!==n?n:t.defaultProps.shouldRaiseClicks)||void 0===i||i;return l._shouldRaiseClicksOnEnter=null!==(a=o.shouldRaiseClicksOnEnter)&&void 0!==a?a:c,l._shouldRaiseClicksOnSpace=null!==(s=o.shouldRaiseClicksOnSpace)&&void 0!==s?s:c,l}return(0,n.__extends)(t,e),t.getOuterZones=function(){return _n.size},t._onKeyDownCapture=function(e){e.which===Ue&&_n.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e=this._root.current;if(bn[this._id]=this,e){for(var o=De(e,xn);o&&o!==this._getDocument().body&&1===o.nodeType;){if(qe(o)){this._isInnerZone=!0;break}o=De(o,xn)}this._isInnerZone||(_n.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"===typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e=this._root.current,t=this._getDocument();if((this._activeElement&&!Fe(this._root.current,this._activeElement,xn)||this._defaultFocusElement&&!Fe(this._root.current,this._defaultFocusElement,xn))&&(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 o=function(e,t){for(var o=e,n=0,r=t;n<r.length;n++){var i=r[n],a=o.children[Math.min(i,o.children.length-1)];if(!a)break;o=a}return Le(o)&&Oe(o)?o:je(e,o,!0)||Me(e,o)}(e,this._lastIndexPath);o?(this._setActiveElement(o,!0),o.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete bn[this._id],this._isInnerZone||(_n.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e=this,t=this.props,o=t.as,i=t.elementType,a=t.rootProps,s=t.ariaDescribedBy,l=t.ariaLabelledBy,c=t.className,u=kt(this.props,gt),d=o||i||"div";this._evaluateFocusBeforeRender();var f,p=(void 0===f&&(f=!1),!0===f&&(Qo=(0,Zo.a)({},f)),Qo);return r.createElement(d,(0,n.__assign)({"aria-labelledby":l,"aria-describedby":s},u,a,{className:wt((cn||(cn=Ct({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),cn),c),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(t){return e._onKeyDown(t,p)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(un)&&this._isInnerZone){var o=this._getOwnerZone(this._root.current);if(o!==this._root.current){var n=bn[o.getAttribute(dn)];return!!n&&n.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Fe(this._root.current,this._activeElement)&&Le(this._activeElement)&&(!t||He(this._activeElement)))return this._activeElement.focus(),!0;var r=this._root.current.firstChild;return this.focusElement(je(this._root.current,r,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(Me(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var o=this.props,n=o.onBeforeFocus,r=o.shouldReceiveFocus;return!(r&&!r(e)||n&&!n(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var o=t.activeElement;if(o!==e){var n=Fe(e,o,!1);this._lastIndexPath=n?function(e,t){for(var o=[];t&&e&&t!==e;){var n=De(t,!0);if(null===n)return[];o.unshift(Array.prototype.indexOf.call(n.children,t)),t=n}return o}(e,o):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var o=this._activeElement;this._activeElement=e,o&&(qe(o)&&this._updateTabIndexes(o),o.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var o=e;if(o===this._root.current)return!1;do{if("BUTTON"===o.tagName||"A"===o.tagName||"INPUT"===o.tagName||"TEXTAREA"===o.tagName)return!1;if(this._isImmediateDescendantOfZone(o)&&"true"===o.getAttribute(un)&&"true"!==o.getAttribute("data-disable-click-on-enter"))return vn(o,t),!0;o=De(o,xn)}while(o!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(qe(e))return bn[e.getAttribute(dn)];for(var t=e.firstElementChild;t;){if(qe(t))return bn[t.getAttribute(dn)];var o=this._getFirstInnerZone(t);if(o)return o;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,o,n){void 0===n&&(n=!0);var r=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===Ee.bidirectional;if(!r||!this._root.current)return!1;if(this._isElementInput(r)&&!this._shouldInputLoseFocus(r,e))return!1;var c=l?r.getBoundingClientRect():null;do{if(r=e?je(this._root.current,r):Me(this._root.current,r),!l){a=r;break}if(r){var u=t(c,r.getBoundingClientRect());if(-1===u&&-1===i){a=r;break}if(u>-1&&(-1===i||u<i)&&(i=u,a=r),i>=0&&u<0)break}}while(r);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&n)return e?this.focusElement(je(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Me(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(n,r){var i=-1,a=Math.floor(r.top),s=Math.floor(n.bottom);return a<s?e._shouldWrapFocus(e._activeElement,pn)?mn:gn:((-1===t&&a>=s||a===t)&&(t=a,i=o>=r.left&&o<=r.left+r.width?0:Math.abs(r.left+r.width/2-o)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,o=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(n,r){var i=-1,a=Math.floor(r.bottom),s=Math.floor(r.top),l=Math.floor(n.top);return a>l?e._shouldWrapFocus(e._activeElement,pn)?mn:gn:((-1===t&&a<=l||s===t)&&(t=s,i=o>=r.left&&o<=r.left+r.width?0:Math.abs(r.left+r.width/2-o)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,o=this._shouldWrapFocus(this._activeElement,hn);return!!this._moveFocus(ve(e),(function(n,r){var i=-1;return(ve(e)?parseFloat(r.top.toFixed(3))<parseFloat(n.bottom.toFixed(3)):parseFloat(r.bottom.toFixed(3))>parseFloat(n.top.toFixed(3)))&&r.right<=n.right&&t.props.direction!==Ee.vertical?i=n.right-r.right:o||(i=gn),i}),void 0,o)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,o=this._shouldWrapFocus(this._activeElement,hn);return!!this._moveFocus(!ve(e),(function(n,r){var i=-1;return(ve(e)?parseFloat(r.bottom.toFixed(3))>parseFloat(n.top.toFixed(3)):parseFloat(r.top.toFixed(3))<parseFloat(n.bottom.toFixed(3)))&&r.left>=n.left&&t.props.direction!==Ee.vertical?i=r.left-n.left:o||(i=gn),i}),void 0,o)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var o=this._activeElement;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var n=It(o);if(!n)return!1;var r=-1,i=void 0,a=-1,s=-1,l=n.clientHeight,c=o.getBoundingClientRect();do{if(o=e?je(this._root.current,o):Me(this._root.current,o)){var u=o.getBoundingClientRect(),d=Math.floor(u.top),f=Math.floor(c.bottom),p=Math.floor(u.bottom),h=Math.floor(c.top),m=this._getHorizontalDistanceFromCenter(e,c,u);if(e&&d>f+l||!e&&p<h-l)break;m>-1&&(e&&d>a?(a=d,r=m,i=o):!e&&p<s?(s=p,r=m,i=o):(-1===r||m<=r)&&(r=m,i=o))}}while(o);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(je(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(Me(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},t.prototype._setFocusAlignment=function(e,t,o){if(this.props.direction===Ee.bidirectional&&(!this._focusAlignment||t||o)){var n=e.getBoundingClientRect(),r=n.left+n.width/2,i=n.top+n.height/2;this._focusAlignment||(this._focusAlignment={left:r,top:i}),t&&(this._focusAlignment.left=r),o&&(this._focusAlignment.top=i)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=De(e,xn);t&&t!==this._root.current&&t!==this._getDocument().body;){if(qe(t))return t;t=De(t,xn)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"===typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!Fe(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!Le(this._activeElement)&&(this._activeElement=null);for(var t=e&&e.children,o=0;t&&o<t.length;o++){var n=t[o];qe(n)?"true"===n.getAttribute(un)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==n?"-1"!==n.getAttribute(fn)&&n.setAttribute(fn,"-1"):(this._defaultFocusElement=n,"0"!==n.getAttribute(fn)&&n.setAttribute(fn,"0"))):(n.getAttribute&&"false"===n.getAttribute(un)&&n.setAttribute(fn,"-1"),Le(n)?this.props.disabled?n.setAttribute(fn,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==n?"-1"!==n.getAttribute(fn)&&n.setAttribute(fn,"-1"):(this._defaultFocusElement=n,"0"!==n.getAttribute(fn)&&n.setAttribute(fn,"0")):"svg"===n.tagName&&"false"!==n.getAttribute("focusable")&&n.setAttribute("focusable","false")),this._updateTabIndexes(n)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&yn.indexOf(e.type.toLowerCase())>-1){var o=e.selectionStart,n=o!==e.selectionEnd,r=e.value,i=e.readOnly;if(n||o>0&&!t&&!i||o!==r.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||Ve(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&zt(e,this._root.current)},t.prototype._getDocument=function(){return he(this._root.current)},t.defaultProps={isCircularNavigation:!1,direction:Ee.bidirectional,shouldRaiseClicks:!0},t}(r.Component),wn=o(89312);o(47802);var Cn,Sn=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 o=this,n=0;return this._isDisposed||(this._timeoutIds||(this._timeoutIds={}),n=setTimeout((function(){try{o._timeoutIds&&delete o._timeoutIds[n],e.apply(o._parent)}catch(Sc){o._logError(Sc)}}),t),this._timeoutIds[n]=!0),n},e.prototype.clearTimeout=function(e){this._timeoutIds&&this._timeoutIds[e]&&(clearTimeout(e),delete this._timeoutIds[e])},e.prototype.setImmediate=function(e,t){var o=this,n=0,r=c(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});n=r.setTimeout((function(){try{o._immediateIds&&delete o._immediateIds[n],e.apply(o._parent)}catch(Sc){o._logError(Sc)}}),0),this._immediateIds[n]=!0}return n},e.prototype.clearImmediate=function(e,t){var o=c(t);this._immediateIds&&this._immediateIds[e]&&(o.clearTimeout(e),delete this._immediateIds[e])},e.prototype.setInterval=function(e,t){var o=this,n=0;return this._isDisposed||(this._intervalIds||(this._intervalIds={}),n=setInterval((function(){try{e.apply(o._parent)}catch(Sc){o._logError(Sc)}}),t),this._intervalIds[n]=!0),n},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,o){var n=this;if(this._isDisposed)return this._noop;var r,i,a=t||0,s=!0,l=!0,c=0,u=null;o&&"boolean"===typeof o.leading&&(s=o.leading),o&&"boolean"===typeof o.trailing&&(l=o.trailing);var d=function t(o){var d=Date.now(),f=d-c,p=s?a-f:a;return f>=a&&(!o||s)?(c=d,u&&(n.clearTimeout(u),u=null),r=e.apply(n._parent,i)):null===u&&l&&(u=n.setTimeout(t,p)),r};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,o){var n=this;if(this._isDisposed){var r=function(){};return r.cancel=function(){},r.flush=function(){return null},r.pending=function(){return!1},r}var i,a,s=t||0,l=!1,c=!0,u=null,d=0,f=Date.now(),p=null;o&&"boolean"===typeof o.leading&&(l=o.leading),o&&"boolean"===typeof o.trailing&&(c=o.trailing),o&&"number"===typeof o.maxWait&&!isNaN(o.maxWait)&&(u=o.maxWait);var h=function(e){p&&(n.clearTimeout(p),p=null),f=e},m=function(t){h(t),i=e.apply(n._parent,a)},g=function e(t){var o=Date.now(),r=!1;t&&(l&&o-d>=s&&(r=!0),d=o);var a=o-d,h=s-a,g=o-f,v=!1;return null!==u&&(g>=u&&p?v=!0:h=Math.min(h,u-g)),a>=s||v||r?m(o):null!==p&&t||!c||(p=n.setTimeout(e,h)),i},v=function(){return!!p},b=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return a=e,g(!0)};return b.cancel=function(){v()&&h(Date.now())},b.flush=function(){return v()&&m(Date.now()),i},b.pending=v,b},e.prototype.requestAnimationFrame=function(e,t){var o=this,n=0,r=c(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{o._animationFrameIds&&delete o._animationFrameIds[n],e.apply(o._parent)}catch(Sc){o._logError(Sc)}};n=r.requestAnimationFrame?r.requestAnimationFrame(i):r.setTimeout(i,0),this._animationFrameIds[n]=!0}return n},e.prototype.cancelAnimationFrame=function(e,t){var o=c(t);this._animationFrameIds&&this._animationFrameIds[e]&&(o.cancelAnimationFrame?o.cancelAnimationFrame(e):o.clearTimeout(e),delete this._animationFrameIds[e])},e.prototype._logError=function(e){this._onErrorHandler&&this._onErrorHandler(e)},e}();function Bn(e,t){for(var o in e)if(e.hasOwnProperty(o)&&(!t.hasOwnProperty(o)||t[o]!==e[o]))return!1;for(var o in t)if(t.hasOwnProperty(o)&&!e.hasOwnProperty(o))return!1;return!0}function In(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];return En.apply(this,[null,e].concat(t))}function En(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];t=t||{};for(var r=0,i=o;r<i.length;r++){var a=i[r];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"}(Cn||(Cn={}));var zn,Tn,An=0,Pn=1,Rn=2,Dn=3,Nn=4,Fn=5,Mn=6,jn=7,On=8,Hn=9,Ln=10,qn=11,Wn=12,Vn=13;function Gn(e,t,o,n){return e.addEventListener(t,o,n),function(){return e.removeEventListener(t,o,n)}}function Kn(e,t){for(var o=(0,n.__assign)({},t),r=0,i=Object.keys(e);r<i.length;r++){var a=i[r];void 0===o[a]&&(o[a]=e[a])}return o}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(zn||(zn={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Tn||(Tn={}));var Un,Xn=function(){function e(e,t,o,n){void 0===e&&(e=0),void 0===t&&(t=0),void 0===o&&(o=0),void 0===n&&(n=0),this.top=o,this.bottom=n,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 Yn(e,t,o){return{targetEdge:e,alignmentEdge:t,isAuto:o}}var Zn=((Un={})[An]=Yn(zn.top,zn.left),Un[Pn]=Yn(zn.top),Un[Rn]=Yn(zn.top,zn.right),Un[Dn]=Yn(zn.top,void 0,!0),Un[Nn]=Yn(zn.bottom,zn.left),Un[Fn]=Yn(zn.bottom),Un[Mn]=Yn(zn.bottom,zn.right),Un[jn]=Yn(zn.bottom,void 0,!0),Un[On]=Yn(zn.left,zn.top),Un[Hn]=Yn(zn.left),Un[Ln]=Yn(zn.left,zn.bottom),Un[qn]=Yn(zn.right,zn.top),Un[Wn]=Yn(zn.right),Un[Vn]=Yn(zn.right,zn.bottom),Un);function Qn(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function $n(e,t){var o=[];return e.top<t.top&&o.push(zn.top),e.bottom>t.bottom&&o.push(zn.bottom),e.left<t.left&&o.push(zn.left),e.right>t.right&&o.push(zn.right),o}function Jn(e,t){return e[zn[t]]}function er(e,t,o){return e[zn[t]]=o,e}function tr(e,t){var o=pr(t);return(Jn(e,o.positiveEdge)+Jn(e,o.negativeEdge))/2}function or(e,t){return e>0?t:-1*t}function nr(e,t){return or(e,Jn(t,e))}function rr(e,t,o){return or(o,Jn(e,o)-Jn(t,o))}function ir(e,t,o,n){void 0===n&&(n=!0);var r=Jn(e,t)-o,i=er(e,t,o);return n&&(i=er(e,-1*t,Jn(e,-1*t)-r)),i}function ar(e,t,o,n){return void 0===n&&(n=0),ir(e,o,Jn(t,o)+or(o,n))}function sr(e,t,o){return nr(o,e)>nr(o,t)}function lr(e,t){for(var o=0,n=0,r=$n(e,t);n<r.length;n++){var i=r[n];o+=Math.pow(rr(e,t,i),2)}return o}function cr(e,t,o,n,r,i,a){void 0===r&&(r=0);var s=n.alignmentEdge,l=n.alignTargetEdge,c={elementRectangle:e,targetEdge:n.targetEdge,alignmentEdge:s};i||a||(c=function(e,t,o,n,r){void 0===r&&(r=0);var i=[zn.left,zn.right,zn.bottom,zn.top];ve()&&(i[0]*=-1,i[1]*=-1);for(var a,s=e,l=n.targetEdge,c=n.alignmentEdge,u=l,d=c,f=0;f<4;f++){if(sr(s,o,l))return{elementRectangle:s,targetEdge:l,alignmentEdge:c};var p=lr(s,o);(!a||p<a)&&(a=p,u=l,d=c),i.splice(i.indexOf(l),1),i.length>0&&(i.indexOf(-1*l)>-1?l*=-1:(c=l,l=i.slice(-1)[0]),s=fr(e,t,{targetEdge:l,alignmentEdge:c},r))}return{elementRectangle:s=fr(e,t,{targetEdge:u,alignmentEdge:d},r),targetEdge:u,alignmentEdge:d}}(e,t,o,n,r));var u=$n(c.elementRectangle,o),d=i?-c.targetEdge:void 0;if(u.length>0)if(l)if(c.alignmentEdge&&u.indexOf(-1*c.alignmentEdge)>-1){var f=function(e,t,o,n){var r=e.alignmentEdge,i=e.targetEdge,a=-1*r;return{elementRectangle:fr(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},o,n),targetEdge:i,alignmentEdge:a}}(c,t,r,a);if(Qn(f.elementRectangle,o))return f;c=ur($n(f.elementRectangle,o),c,o,d)}else c=ur(u,c,o,d);else c=ur(u,c,o,d);return c}function ur(e,t,o,n){for(var r=0,i=e;r<i.length;r++){var a=i[r],s=void 0;if(n&&n===-1*a)s=ir(t.elementRectangle,a,Jn(o,a),!1),t.forcedInBounds=!0;else sr(s=ar(t.elementRectangle,o,a),o,-1*a)||(s=ir(s,-1*a,Jn(o,-1*a),!1),t.forcedInBounds=!0);t.elementRectangle=s}return t}function dr(e,t,o){var n=pr(t).positiveEdge;return ir(e,n,o-(tr(e,t)-Jn(e,n)))}function fr(e,t,o,n,r){void 0===n&&(n=0);var i=new Xn(e.left,e.right,e.top,e.bottom),a=o.alignmentEdge,s=o.targetEdge,l=r?s:-1*s;(i=r?ar(i,t,s,n):function(e,t,o,n){void 0===n&&(n=0);var r=or(-1*o,n);return ir(e,-1*o,Jn(t,o)+r)}(i,t,s,n),a)?i=ar(i,t,a):i=dr(i,l,tr(t,s));return i}function pr(e){return e===zn.top||e===zn.bottom?{positiveEdge:zn.left,negativeEdge:zn.right}:{positiveEdge:zn.top,negativeEdge:zn.bottom}}function hr(e,t,o){return o&&Math.abs(rr(e,o,t))>Math.abs(rr(e,o,-1*t))?-1*t:t}function mr(e,t,o,n,r,i,a,s){var l,c={},u=kr(t),d=i?o:-1*o,f=r||pr(o).positiveEdge;return a&&!function(e,t,o){return void 0!==o&&Jn(e,t)===Jn(o,t)}(e,(l=f,-1*l),n)||(f=hr(e,f,n)),c[zn[d]]=rr(e,u,d),c[zn[f]]=rr(e,u,f),s&&(c[zn[-1*d]]=rr(e,u,-1*d),c[zn[-1*f]]=rr(e,u,-1*f)),c}function gr(e){return Math.sqrt(e*e*2)}function vr(e,t,o){if(void 0===e&&(e=jn),o)return{alignmentEdge:o.alignmentEdge,isAuto:o.isAuto,targetEdge:o.targetEdge};var r=(0,n.__assign)({},Zn[e]);return ve()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?Zn[t]:r):r}function br(e,t,o){var n=tr(t,e),r=tr(o,e),i=pr(e),a=i.positiveEdge,s=i.negativeEdge;return n<=r?a:s}function _r(e,t,o,n,r,i,a){var s=fr(e,t,n,r,a);return Qn(s,o)?{elementRectangle:s,targetEdge:n.targetEdge,alignmentEdge:n.alignmentEdge}:cr(s,t,o,n,r,i,a)}function yr(e,t,o){var r=-1*e.targetEdge,i=new Xn(0,e.elementRectangle.width,0,e.elementRectangle.height),a={},s=hr(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:pr(r).positiveEdge,o),l=rr(e.elementRectangle,e.targetRectangle,r)>Math.abs(Jn(t,r));return a[zn[r]]=Jn(t,r),a[zn[s]]=rr(t,i,s),{elementPosition:(0,n.__assign)({},a),closestEdge:br(e.targetEdge,t,i),targetEdge:r,hideBeak:!l}}function xr(e,t){var o=t.targetRectangle,n=pr(t.targetEdge),r=n.positiveEdge,i=n.negativeEdge,a=tr(o,t.targetEdge),s=new Xn(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new Xn(0,e,0,e);return sr(l=dr(l=ir(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-nr(r,t.elementRectangle)),s,r)?sr(l,s,i)||(l=ar(l,s,i)):l=ar(l,s,r),l}function kr(e){var t=e.getBoundingClientRect();return new Xn(t.left,t.right,t.top,t.bottom)}function wr(e){return new Xn(e.left,e.right,e.top,e.bottom)}function Cr(e,t,o,r){var i=e.gapSpace?e.gapSpace:0,a=function(e,t){var o;if(t){if(t.preventDefault){var n=t;o=new Xn(n.clientX,n.clientX,n.clientY,n.clientY)}else if(t.getBoundingClientRect)o=kr(t);else{var r=t,i=r.left||r.x,a=r.top||r.y,s=r.right||i,l=r.bottom||a;o=new Xn(i,s,a,l)}if(!Qn(o,e))for(var c=0,u=$n(o,e);c<u.length;c++){var d=u[c];o[zn[d]]=e[zn[d]]}}else o=new Xn(0,0,0,0);return o}(o,e.target),s=function(e,t,o,n,r){return e.isAuto&&(e.alignmentEdge=br(e.targetEdge,t,o)),e.alignTargetEdge=r,e}(vr(e.directionalHint,e.directionalHintForRTL,r),a,o,e.coverTarget,e.alignTargetEdge),l=_r(kr(t),a,o,s,i,e.directionalHintFixed,e.coverTarget);return(0,n.__assign)((0,n.__assign)({},l),{targetRectangle:a})}function Sr(e,t,o,n,r){return{elementPosition:mr(e.elementRectangle,t,e.targetEdge,o,e.alignmentEdge,n,r,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function Br(e,t,o,r,i){var a=e.isBeakVisible&&e.beakWidth||0,s=gr(a)/2+(e.gapSpace?e.gapSpace:0),l=e;l.gapSpace=s;var c=e.bounds?wr(e.bounds):new Xn(0,window.innerWidth-function(){if(void 0===ft){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),ft=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ft}(),0,window.innerHeight),u=Cr(l,o,c,r),d=yr(u,xr(a,u),c);return(0,n.__assign)((0,n.__assign)({},Sr(u,t,c,e.coverTarget,i)),{beakPosition:d})}function Ir(e,t,o,n){return function(e,t,o,n){return Br(e,t,o,n,!0)}(e,t,o,n)}var Er=["TEMPLATE","STYLE","SCRIPT"];function zr(e){var t=he(e);if(!t)return function(){};for(var o=[];e!==t.body&&e.parentElement;){for(var n=0,r=e.parentElement.children;n<r.length;n++){var i=r[n],a=i.getAttribute("aria-hidden");i!==e&&"true"!==(null===a||void 0===a?void 0:a.toLowerCase())&&-1===Er.indexOf(i.tagName)&&o.push([i,a])}e=e.parentElement}return o.forEach((function(e){e[0].setAttribute("aria-hidden","true")})),function(){!function(e){e.forEach((function(e){var t=e[0],o=e[1];o?t.setAttribute("aria-hidden",o):t.removeAttribute("aria-hidden")}))}(o),o=[]}}function Tr(){var e=r.useRef();return e.current||(e.current=new Sn),r.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function Ar(e,t,o,n){var i=r.useRef(o);i.current=o,r.useEffect((function(){var o=e&&"current"in e?e.current:e;if(o)return Gn(o,t,(function(e){return i.current(e)}),n)}),[e,t,n])}function Pr(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=r.useCallback((function(t){o.current=t;for(var n=0,r=e;n<r.length;n++){var i=r[n];"function"===typeof i?i(t):i&&(i.current=t)}}),(0,n.__spreadArray)([],e));return o}var Rr=r.createContext({window:"object"===typeof window?window:void 0}),Dr=function(){return r.useContext(Rr).window},Nr=function(){var e;return null===(e=r.useContext(Rr).window)||void 0===e?void 0:e.document};function Fr(e){var t=e.originalElement,o=e.containsFocus;t&&o&&t!==c()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}function Mr(e,t){var o=e.onRestoreFocus,n=void 0===o?Fr:o,i=r.useRef(),a=r.useRef(!1);r.useEffect((function(){return i.current=he().activeElement,function(e){var t=he(e),o=t&&t.activeElement;return!(!o||!Fe(e,o))}(t.current)&&(a.current=!0),function(){var e;null===n||void 0===n||n({originalElement:i.current,containsFocus:a.current,documentContainsFocus:(null===(e=he())||void 0===e?void 0:e.hasFocus())||!1}),i.current=void 0}}),[]),Ar(t,"focus",r.useCallback((function(){a.current=!0}),[]),!0),Ar(t,"blur",r.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(a.current=!1)}),[]),!0)}var jr,Or=r.forwardRef((function(e,t){var o=Kn({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),i=r.useRef(),a=Pr(i,t);!function(e,t){var o="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;r.useEffect((function(){if(o&&t.current)return zr(t.current)}),[t,o])}(o,i),Mr(o,i);var s=o.role,l=o.className,c=o.ariaLabel,u=o.ariaLabelledBy,d=o.ariaDescribedBy,f=o.style,p=o.children,h=o.onDismiss,m=function(e,t){var o=Tr(),n=r.useState(!1),i=n[0],a=n[1];return r.useEffect((function(){return o.requestAnimationFrame((function(){var o;if(!e.style||!e.style.overflowY){var n=!1;if(t&&t.current&&(null===(o=t.current)||void 0===o?void 0:o.firstElementChild)){var r=t.current.clientHeight,s=t.current.firstElementChild.clientHeight;r>0&&s>r&&(n=s-r>1)}i!==n&&a(n)}})),function(){return o.dispose()}})),i}(o,i),g=r.useCallback((function(e){if(e.which===Ze)h&&(h(e),e.preventDefault(),e.stopPropagation())}),[h]);return Ar(Dr(),"keydown",g),r.createElement("div",(0,n.__assign)({ref:a},kt(o,xt),{className:l,role:s,"aria-label":c,"aria-labelledby":u,"aria-describedby":d,onKeyDown:g,style:(0,n.__assign)({overflowY:m?"scroll":void 0,outline:"none"},f)}),p)}));function Hr(e){var t=r.useRef();return void 0===t.current&&(t.current={value:"function"===typeof e?e():e}),t.current.value}function Lr(e,t){var o=r.useRef(),n=r.useRef(null),i=Dr();if(!e||e!==o.current||"string"===typeof e){var a=null===t||void 0===t?void 0:t.current;if(e)if("string"===typeof e){var s=he(a);n.current=s?s.querySelector(e):null}else n.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;o.current=e}return[n,i]}Or.displayName="Popup";var qr=((jr={})[zn.top]=So.slideUpIn10,jr[zn.bottom]=So.slideDownIn10,jr[zn.left]=So.slideLeftIn10,jr[zn.right]=So.slideRightIn10,jr),Wr=0,Vr=0,Gr={opacity:0,filter:"opacity(0)",pointerEvents:"none"},Kr=["role","aria-roledescription"],Ur={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:jn},Xr=xe({disableCaching:!0});function Yr(e,t,o,i,a){var s=r.useState(),l=s[0],c=s[1],u=r.useRef(0),d=r.useRef(),f=Tr(),p=e.hidden,h=e.target,m=e.finalHeight,g=e.calloutMaxHeight,v=e.onPositioned,b=e.directionalHint;return r.useEffect((function(){if(!p){var r=f.requestAnimationFrame((function(){var r,s,f,p;if(t.current&&o){var b=(0,n.__assign)((0,n.__assign)({},e),{target:i.current,bounds:a()}),_=o.cloneNode(!0);_.style.maxHeight=g?""+g:"",_.style.visibility="hidden",null===(r=o.parentElement)||void 0===r||r.appendChild(_);var y=d.current===h?l:void 0,x=m?Ir(b,t.current,_,y):function(e,t,o,n){return Br(e,t,o,n)}(b,t.current,_,y);null===(s=o.parentElement)||void 0===s||s.removeChild(_),!l&&x||l&&x&&(p=x,!Jr((f=l).elementPosition,p.elementPosition)||!Jr(f.beakPosition.elementPosition,p.beakPosition.elementPosition))&&u.current<5?(u.current++,c(x)):u.current>0&&(u.current=0,null===v||void 0===v||v(l))}}),o);return d.current=h,function(){f.cancelAnimationFrame(r),d.current=void 0}}c(void 0),u.current=0}),[p,b,f,o,g,t,i,m,a,v,l,e,h]),l}function Zr(e,t,o){var n=e.hidden,i=e.setInitialFocus,a=Tr(),s=!!t;r.useEffect((function(){if(!n&&i&&s&&o){var e=a.requestAnimationFrame((function(){return function(e,t){var o=je(e,e,!0,!1,!1,!0,void 0,void 0,t);return!!o&&(Ke(o),!0)}(o)}),o);return function(){return a.cancelAnimationFrame(e)}}}),[n,s,a,o,i])}var Qr=r.memo(r.forwardRef((function(e,t){var o=Kn(Ur,e),i=o.styles,a=o.style,s=o.ariaLabel,l=o.ariaDescribedBy,c=o.ariaLabelledBy,u=o.className,d=o.isBeakVisible,f=o.children,p=o.beakWidth,h=o.calloutWidth,m=o.calloutMaxWidth,g=o.calloutMinWidth,v=o.doNotLayer,b=o.finalHeight,_=o.hideOverflow,y=void 0===_?!!b:_,x=o.backgroundColor,k=o.calloutMaxHeight,w=o.onScroll,C=o.shouldRestoreFocus,S=void 0===C||C,B=o.target,I=o.hidden,E=o.onLayerMounted,z=o.popupProps,T=r.useRef(null),A=r.useState(null),P=A[0],R=A[1],D=r.useCallback((function(e){R(e)}),[]),N=Pr(T,t),F=Lr(o.target,{current:P}),M=F[0],j=F[1],O=function(e,t,o){var n=e.bounds,i=e.minPagePadding,a=void 0===i?Ur.minPagePadding:i,s=e.target,l=r.useState(!1),c=l[0],u=l[1],d=r.useRef(),f=r.useCallback((function(){if(!d.current||c){var e="function"===typeof n?o?n(s,o):void 0:n;!e&&o&&(e=function(e,t){return function(e,t){var o=void 0;if(t.getWindowSegments&&(o=t.getWindowSegments()),void 0===o||o.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var n=0,r=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();n=(i.left+i.right)/2,r=(i.top+i.bottom)/2}else null!==e&&(n=e.left||e.x,r=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=o;s<l.length;s++){var c=l[s];n&&c.left<=n&&c.right>=n&&r&&c.top<=r&&c.bottom>=r&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,o),e={top:e.top+a,left:e.left+a,right:e.right-a,bottom:e.bottom-a,width:e.width-2*a,height:e.height-2*a}),d.current=e,c&&u(!1)}return d.current}),[n,a,s,t,o,c]),p=Tr();return Ar(o,"resize",p.debounce((function(){u(!0)}),500,{leading:!0})),f}(o,M,j),H=Yr(o,T,P,M,O),L=function(e,t,o){var n,i=e.calloutMaxHeight,a=e.finalHeight,s=e.directionalHint,l=e.directionalHintFixed,c=e.hidden,u=r.useState(),d=u[0],f=u[1],p=null!==(n=null===o||void 0===o?void 0:o.elementPosition)&&void 0!==n?n:{},h=p.top,m=p.bottom;return r.useEffect((function(){var e,o=null!==(e=t())&&void 0!==e?e:{},n=o.top,r=o.bottom;i||c?f(i||void 0):"number"===typeof h&&r?f(r-h):"number"===typeof m&&"number"===typeof n&&r&&f(r-n-m)}),[m,i,a,s,l,t,c,o,h]),d}(o,O,H),q=function(e,t,o,n,i){var a=e.hidden,s=e.onDismiss,l=e.preventDismissOnScroll,c=e.preventDismissOnResize,u=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,f=e.shouldDismissOnWindowFocus,p=e.preventDismissOnEvent,h=r.useRef(!1),m=Tr(),g=Hr([function(){h.current=!0},function(){h.current=!1}]),v=!!t;return r.useEffect((function(){var e=function(e){v&&!l&&g(e)},t=function(e){c||p&&p(e)||null===s||void 0===s||s(e)},r=function(e){u||g(e)},g=function(e){var t=e.composedPath?e.composedPath():[],r=t.length>0?t[0]:e.target,a=o.current&&!Fe(o.current,r);if(a&&h.current)h.current=!1;else if(!n.current&&a||e.target!==i&&a&&(!n.current||"stopPropagation"in n.current||d||r!==n.current&&!Fe(n.current,r))){if(p&&p(e))return;null===s||void 0===s||s(e)}},b=function(e){f&&((!p||p(e))&&(p||u)||(null===i||void 0===i?void 0:i.document.hasFocus())||null!==e.relatedTarget||null===s||void 0===s||s(e))},_=new Promise((function(o){m.setTimeout((function(){if(!a&&i){var n=[Gn(i,"scroll",e,!0),Gn(i,"resize",t,!0),Gn(i.document.documentElement,"focus",r,!0),Gn(i.document.documentElement,"click",r,!0),Gn(i,"blur",b,!0)];o((function(){n.forEach((function(e){return e()}))}))}}),0)}));return function(){_.then((function(e){return e()}))}}),[a,m,o,n,i,s,f,d,u,c,l,v,p]),g}(o,H,T,M,j),W=q[0],V=q[1],G=(null===H||void 0===H?void 0:H.elementPosition.top)&&(null===H||void 0===H?void 0:H.elementPosition.bottom),K=(0,n.__assign)((0,n.__assign)({},null===H||void 0===H?void 0:H.elementPosition),{maxHeight:L});if(G&&(K.bottom=void 0),Zr(o,H,P),r.useEffect((function(){I||null===E||void 0===E||E()}),[I]),!j)return null;var U=y,X=d&&!!B,Y=Xr(i,{theme:o.theme,className:u,overflowYHidden:U,calloutWidth:h,positions:H,beakWidth:p,backgroundColor:x,calloutMaxWidth:m,calloutMinWidth:g,doNotLayer:v}),Z=(0,n.__assign)((0,n.__assign)({maxHeight:k||"100%"},a),U&&{overflowY:"hidden"}),Q=o.hidden?{visibility:"hidden"}:void 0;return r.createElement("div",{ref:N,className:Y.container,style:Q},r.createElement("div",(0,n.__assign)({},kt(o,xt,Kr),{className:wt(Y.root,H&&H.targetEdge&&qr[H.targetEdge]),style:H?(0,n.__assign)({},K):Gr,tabIndex:-1,ref:D}),X&&r.createElement("div",{className:Y.beak,style:$r(H)}),X&&r.createElement("div",{className:Y.beakCurtain}),r.createElement(Or,(0,n.__assign)({role:o.role,"aria-roledescription":o["aria-roledescription"],ariaDescribedBy:l,ariaLabel:s,ariaLabelledBy:c,className:Y.calloutMain,onDismiss:o.onDismiss,onMouseDown:W,onMouseUp:V,onRestoreFocus:o.onRestoreFocus,onScroll:w,shouldRestoreFocus:S,style:Z},z),f)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||Bn(e,t)}));function $r(e){var t,o,r=(0,n.__assign)((0,n.__assign)({},null===(t=null===e||void 0===e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(o=null===e||void 0===e?void 0:e.beakPosition)||void 0===o?void 0:o.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=Vr,r.top=Wr),r}function Jr(e,t){for(var o in t)if(t.hasOwnProperty(o)){var n=e[o],r=t[o];if(void 0===n||void 0===r)return!1;if(n.toFixed(2)!==r.toFixed(2))return!1}return!0}function ei(e){return{height:e,width:e}}Qr.displayName="CalloutContentBase";var ti={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},oi=x(Qr,(function(e){var t,o=e.theme,n=e.className,r=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,u=e.doNotLayer,d=Xo(ti,o),f=o.semanticColors,p=o.effects;return{container:[d.container,{position:"relative"}],root:[d.root,o.fonts.medium,{position:"absolute",display:"flex",zIndex:u?zo.Layer:void 0,boxSizing:"border-box",borderRadius:p.roundedCorner2,boxShadow:p.elevation16,selectors:(t={},t[Io]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},n,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[d.beak,{position:"absolute",backgroundColor:f.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},ei(a),s&&{backgroundColor:s}],beakCurtain:[d.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:f.menuBackground,borderRadius:p.roundedCorner2}],calloutMain:[d.calloutMain,{backgroundColor:f.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:p.roundedCorner2},r&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),ni=r.createContext((function(){return function(){}}));ni.Provider;var ri,ii=o(94786),ai=((ri={})[nt]=1,ri[it]=1,ri[ot]=1,ri[rt]=1,ri[tt]=1,ri[et]=1,ri[Ue]=1,ri[$e]=1,ri[Je]=1,ri);function si(e){return!!ai[e]}var li=new WeakMap,ci=new WeakMap;function ui(e,t){var o,n=li.get(e);return o=n?n+t:1,li.set(e,o),o}var di=r.createContext(void 0);function fi(e){var t=r.useContext(di);r.useEffect((function(){var o,n,r=c(null===e||void 0===e?void 0:e.current);if(r&&!0!==(null===(o=r.FabricConfig)||void 0===o?void 0:o.disableFocusRects)){var i,a,s,l,u=r;if(null===(n=null===t||void 0===t?void 0:t.providerRef)||void 0===n?void 0:n.current){u=t.providerRef.current;var d=function(e){var t=ci.get(e);return t||(t={onMouseDown:function(t){return hi(t,e.registeredProviders)},onPointerDown:function(t){return mi(t,e.registeredProviders)},onKeyDown:function(t){return gi(t,e.registeredProviders)},onKeyUp:function(t){return vi(t,e.registeredProviders)}},ci.set(e,t),t)}(t);i=d.onMouseDown,a=d.onPointerDown,s=d.onKeyDown,l=d.onKeyUp}else i=hi,a=mi,s=gi,l=vi;var f=ui(u,1);return f<=1&&(u.addEventListener("mousedown",i,!0),u.addEventListener("pointerdown",a,!0),u.addEventListener("keydown",s,!0),u.addEventListener("keyup",l,!0)),function(){var e;r&&!0!==(null===(e=r.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(f=ui(u,-1))&&(u.removeEventListener("mousedown",i,!0),u.removeEventListener("pointerdown",a,!0),u.removeEventListener("keydown",s,!0),u.removeEventListener("keyup",l,!0))}}}),[t,e])}var pi=function(e){return fi(e.rootRef),null};function hi(e,t){Ro(!1,e.target,t)}function mi(e,t){"mouse"!==e.pointerType&&Ro(!1,e.target,t)}function gi(e,t){si(e.which)&&Ro(!0,e.target,t)}function vi(e,t){si(e.which)&&Ro(!0,e.target,t)}var bi=function(e){var t=e.providerRef,o=e.layerRoot,n=r.useState([])[0],i=r.useContext(di),a=void 0!==i&&!o,s=r.useMemo((function(){return a?void 0:{providerRef:t,registeredProviders:n,registerProvider:function(e){n.push(e),null===i||void 0===i||i.registerProvider(e)},unregisterProvider:function(e){null===i||void 0===i||i.unregisterProvider(e);var t=n.indexOf(e);t>=0&&n.splice(t,1)}}}),[t,n,i,a]);return r.useEffect((function(){if(s)return s.registerProvider(s.providerRef),function(){return s.unregisterProvider(s.providerRef)}}),[s]),s?r.createElement(di.Provider,{value:s},e.children):r.createElement(r.Fragment,null,e.children)};function _i(e,t){void 0===e&&(e={});var o=xi(t)?t:function(e){return function(t){return e?(0,n.__assign)((0,n.__assign)({},t),e):t}}(t);return o(e)}function yi(e,t){return void 0===e&&(e={}),(xi(t)?t:function(e){void 0===e&&(e={});return function(t){var o=(0,n.__assign)({},t);for(var r in e)e.hasOwnProperty(r)&&(o[r]=(0,n.__assign)((0,n.__assign)({},t[r]),e[r]));return o}}(t))(e)}function xi(e){return"function"===typeof e}var ki=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return(0,n.__extends)(t,e),t.prototype.componentDidMount=function(){v.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){v.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return r.createElement(b.Consumer,null,(function(o){var n=function(e,t){var o=(t||{}).customizations,n=void 0===o?{settings:{},scopedSettings:{}}:o;return{customizations:{settings:_i(n.settings,e.settings),scopedSettings:yi(n.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,o);return t&&(n=t(n)),r.createElement(b.Provider,{value:n},e.props.children)}))},t}(r.Component),wi=xe(),Ci=Wo((function(e,t){return(0,Zo.a)((0,n.__assign)((0,n.__assign)({},e),{rtl:t}))})),Si=r.forwardRef((function(e,t){var o=e.className,i=e.theme,a=e.applyTheme,s=e.applyThemeToBody,l=e.styles,c=wi(l,{theme:i,applyTheme:a,className:o}),u=r.useRef(null);return function(e,t,o){var n=t.bodyThemed;r.useEffect((function(){if(e){var t=he(o.current);if(t)return t.body.classList.add(n),function(){t.body.classList.remove(n)}}}),[n,e,o])}(s,c,u),r.createElement(r.Fragment,null,function(e,t,o,i){var a=t.root,s=e.as,l=void 0===s?"div":s,c=e.dir,u=e.theme,d=kt(e,xt,["dir"]),f=function(e){var t=e.theme,o=e.dir,n=ve(t)?"rtl":"ltr",r=ve()?"rtl":"ltr",i=o||n;return{rootDir:i!==n||i!==r?i:o,needsTheme:i!==n}}(e),p=f.rootDir,h=f.needsTheme,m=r.createElement(bi,{providerRef:o},r.createElement(l,(0,n.__assign)({dir:p},d,{className:a,ref:Pr(o,i)})));h&&(m=r.createElement(ki,{settings:{theme:Ci(u,"rtl"===c)}},m));return m}(e,c,u,t))}));Si.displayName="FabricBase";var Bi={fontFamily:"inherit"},Ii={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Ei=x(Si,(function(e){var t=e.theme,o=e.className,n=e.applyTheme;return{root:[Xo(Ii,t).root,t.fonts.medium,{color:t.palette.neutralPrimary,selectors:{"& button":Bi,"& input":Bi,"& textarea":Bi}},n&&{color:t.semanticColors.bodyText,backgroundColor:t.semanticColors.bodyBackground},o],bodyThemed:[{backgroundColor:t.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"});var zi={},Ti={},Ai="fluent-default-layer-host",Pi="#"+Ai;var Ri,Di=s()?r.useLayoutEffect:r.useEffect,Ni=xe(),Fi=r.forwardRef((function(e,t){var o=r.useContext(ni),i=r.useRef(null),a=Pr(i,t),s=r.useRef(),l=r.useRef(null),c=r.useState(!1),u=c[0],d=c[1],f=e.eventBubblingEnabled,p=e.styles,h=e.theme,m=e.className,g=e.children,v=e.hostId,b=e.onLayerDidMount,_=void 0===b?function(){}:b,y=e.onLayerMounted,x=void 0===y?function(){}:y,k=e.onLayerWillUnmount,w=e.insertFirst,C=Ni(p,{theme:h,className:m,isNotHost:!v}),S=function(e){var t,o;if(v){var n=function(e){var t=Ti[e];return t&&t[0]||void 0}(v);return n?null!==(t=n.rootRef.current)&&void 0!==t?t:null:null!==(o=e.getElementById(v))&&void 0!==o?o:null}var r=Pi,i=r?e.querySelector(r):null;return i||(i=function(e){var t=e.createElement("div");return t.setAttribute("id",Ai),t.style.cssText="position:fixed;z-index:1000000",null===e||void 0===e||e.body.appendChild(t),t}(e)),i},B=function(){null===k||void 0===k||k();var e=s.current;s.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},I=function(){var e,t=he(i.current);if(t){var o=S(t);if(o){B();var n=(null!==(e=o.ownerDocument)&&void 0!==e?e:t).createElement("div");n.className=C.root,n.setAttribute(Et,"true"),function(e,t){var o=e,n=t;o._virtual||(o._virtual={children:[]});var r=o._virtual.parent;if(r&&r!==t){var i=r._virtual.children.indexOf(o);i>-1&&r._virtual.children.splice(i,1)}o._virtual.parent=n||void 0,n&&(n._virtual||(n._virtual={children:[]}),n._virtual.children.push(o))}(n,i.current),w?o.insertBefore(n,o.firstChild):o.appendChild(n),s.current=n,d(!0)}}};return Di((function(){I(),v&&function(e,t){zi[e]||(zi[e]=[]),zi[e].push(t);var o=Ti[e];if(o)for(var n=0,r=o;n<r.length;n++)r[n].notifyLayersChanged()}(v,I);var e=s.current?o(s.current):void 0;return function(){e&&e(),B(),v&&function(e,t){var o=zi[e];if(o){var n=o.indexOf(t);n>=0&&(o.splice(n,1),0===o.length&&delete zi[e])}var r=Ti[e];if(r)for(var i=0,a=r;i<a.length;i++)a[i].notifyLayersChanged()}(v,I)}}),[v]),r.useEffect((function(){s.current&&u&&(null===x||void 0===x||x(),null===_||void 0===_||_(),d(!1))}),[u,x,_]),r.createElement("span",{className:"ms-layer",ref:a},s.current&&ii.createPortal(r.createElement(bi,{layerRoot:!0,providerRef:l},r.createElement(Ei,(0,n.__assign)({},!f&&function(){Ri||(Ri={},["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 Ri[e]=Mi})));return Ri}(),{className:C.content,ref:l}),g)),s.current))}));Fi.displayName="LayerBase";var Mi=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var ji={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},Oi=x(Fi,(function(e){var t=e.className,o=e.isNotHost,n=e.theme,r=Xo(ji,n);return{root:[r.root,n.fonts.medium,o&&[r.rootNoHost,{position:"fixed",zIndex:zo.Layer,top:0,left:0,bottom:0,right:0,visibility:"hidden"}],t],content:[r.content,{visibility:"visible"}]}}),void 0,{scope:"Layer",fields:["hostId","theme","styles"]}),Hi=r.forwardRef((function(e,t){var o=e.layerProps,i=e.doNotLayer,a=(0,n.__rest)(e,["layerProps","doNotLayer"]),s=r.createElement(oi,(0,n.__assign)({},a,{doNotLayer:i,ref:t}));return i?s:r.createElement(Oi,(0,n.__assign)({},o),s)}));Hi.displayName="Callout";var Li,qi=xe(),Wi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"===typeof e.content?r.createElement("p",{className:t._classNames.subText},e.content):r.createElement("div",{className:t._classNames.subText},e.content)},t}return(0,n.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.className,o=e.calloutProps,i=e.directionalHint,a=e.directionalHintForRTL,s=e.styles,l=e.id,c=e.maxWidth,u=e.onRenderContent,d=void 0===u?this._onRenderContent:u,f=e.targetElement,p=e.theme;return this._classNames=qi(s,{theme:p,className:t||o&&o.className,beakWidth:o&&o.beakWidth,gapSpace:o&&o.gapSpace,maxWidth:c}),r.createElement(Hi,(0,n.__assign)({target:f,directionalHint:i,directionalHintForRTL:a},o,kt(this.props,xt,["id"]),{className:this._classNames.root}),r.createElement("div",{className:this._classNames.content,id:l,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},d(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:Pn,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(r.Component),Vi=x(Wi,(function(e){var t=e.className,o=e.beakWidth,n=void 0===o?16:o,r=e.gapSpace,i=void 0===r?0:r,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,u=s.effects,d=-(Math.sqrt(n*n/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,So.fadeIn200,{background:l.menuBackground,boxShadow:u.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:d,left:d,right:d,top:d,zIndex:0}}},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(Li||(Li={}));var Gi,Ki,Ui,Xi,Yi=xe(),Zi=function(e){function t(o){var n=e.call(this,o)||this;return n._tooltipHost=r.createRef(),n._defaultTooltipId=Be("tooltip"),n.show=function(){n._toggleTooltip(!0)},n.dismiss=function(){n._hideTooltip()},n._getTargetElement=function(){if(n._tooltipHost.current){var e=n.props.overflowMode;if(void 0!==e)switch(e){case Cn.Parent:return n._tooltipHost.current.parentElement;case Cn.Self:return n._tooltipHost.current}return n._tooltipHost.current}},n._onTooltipFocus=function(e){n._ignoreNextFocusEvent?n._ignoreNextFocusEvent=!1:n._onTooltipMouseEnter(e)},n._onTooltipBlur=function(e){n._ignoreNextFocusEvent=(null===document||void 0===document?void 0:document.activeElement)===e.target,n._hideTooltip()},n._onTooltipMouseEnter=function(e){var o,r=n.props,i=r.overflowMode,a=r.delay;if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==n&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=n,void 0!==i){var s=n._getTargetElement();if(s&&(!function(e){return e.clientWidth<e.scrollWidth}(o=s)&&!function(e){return e.clientHeight<e.scrollHeight}(o)))return}if(!e.target||!zt(e.target,n._getTargetElement()))if(n._clearDismissTimer(),n._clearOpenTimer(),a!==Li.zero){var l=n._getDelayTime(a);n._openTimerId=n._async.setTimeout((function(){n._toggleTooltip(!0)}),l)}else n._toggleTooltip(!0)},n._onTooltipMouseLeave=function(e){var o=n.props.closeDelay;n._clearDismissTimer(),n._clearOpenTimer(),o?n._dismissTimerId=n._async.setTimeout((function(){n._toggleTooltip(!1)}),o):n._toggleTooltip(!1),t._currentVisibleTooltip===n&&(t._currentVisibleTooltip=void 0)},n._onTooltipKeyDown=function(e){(e.which===Ze||e.ctrlKey)&&n.state.isTooltipVisible&&(n._hideTooltip(),e.stopPropagation())},n._clearDismissTimer=function(){n._async.clearTimeout(n._dismissTimerId)},n._clearOpenTimer=function(){n._async.clearTimeout(n._openTimerId)},n._hideTooltip=function(){n._clearOpenTimer(),n._clearDismissTimer(),n._toggleTooltip(!1)},n._toggleTooltip=function(e){n.state.isTooltipVisible!==e&&n.setState({isTooltipVisible:e},(function(){return n.props.onTooltipToggle&&n.props.onTooltipToggle(e)}))},n._getDelayTime=function(e){switch(e){case Li.medium:return 300;case Li.long:return 500;default:return 0}},st(n),n.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},n._async=new Sn(n),n}return(0,n.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,o=e.children,i=e.content,a=e.directionalHint,s=e.directionalHintForRTL,l=e.hostClassName,c=e.id,u=e.setAriaDescribedBy,d=void 0===u||u,f=e.tooltipProps,p=e.styles,h=e.theme;this._classNames=Yi(p,{theme:h,className:l});var m=this.state.isTooltipVisible,g=c||this._defaultTooltipId,v=(null===f||void 0===f?void 0:f.onRenderContent)?f.onRenderContent():i,b=m&&!!v,_=d&&m&&v?g:void 0;return r.createElement("div",(0,n.__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":_}),o,b&&r.createElement(Vi,(0,n.__assign)({id:g+"--tooltip",content:i,targetElement:this._getTargetElement(),directionalHint:a,directionalHintForRTL:s,calloutProps:In({},t,{onDismiss:this._hideTooltip,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},kt(this.props,xt,["id"]),f)),r.createElement("div",{hidden:!0,id:g,style:Fo},v))},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:Li.medium},t}(r.Component),Qi={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},$i=x(Zi,(function(e){var t=e.className,o=e.theme;return{root:[Xo(Qi,o).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"}(Gi||(Gi={})),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"}(Ki||(Ki={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}(Ui||(Ui={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(Xi||(Xi={}));var Ji=xe(),ea=/\.svg$/i;var ta=r.forwardRef((function(e,t){var o=r.useRef(),i=r.useRef(),a=function(e,t){var o=e.onLoadingStateChange,n=e.onLoad,i=e.onError,a=e.src,s=r.useState(Xi.notLoaded),l=s[0],c=s[1];Di((function(){c(Xi.notLoaded)}),[a]),r.useEffect((function(){l===Xi.notLoaded&&t.current&&(a&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&ea.test(a))&&c(Xi.loaded)})),r.useEffect((function(){null===o||void 0===o||o(l)}),[l]);var u=r.useCallback((function(e){null===n||void 0===n||n(e),a&&c(Xi.loaded)}),[a,n]),d=r.useCallback((function(e){null===i||void 0===i||i(e),c(Xi.error)}),[i]);return[l,u,d]}(e,i),s=a[0],l=a[1],c=a[2],u=kt(e,yt,["width","height"]),d=e.src,f=e.alt,p=e.width,h=e.height,m=e.shouldFadeIn,g=void 0===m||m,v=e.shouldStartVisible,b=e.className,_=e.imageFit,y=e.role,x=e.maximizeFrame,k=e.styles,w=e.theme,C=e.loading,S=function(e,t,o,n){var i=r.useRef(t),a=r.useRef();(void 0===a||i.current===Xi.notLoaded&&t===Xi.loaded)&&(a.current=function(e,t,o,n){var r=e.imageFit,i=e.width,a=e.height;if(void 0!==e.coverStyle)return e.coverStyle;if(t===Xi.loaded&&(r===Ki.cover||r===Ki.contain||r===Ki.centerContain||r===Ki.centerCover)&&o.current&&n.current){var s=void 0;if(s="number"===typeof i&&"number"===typeof a&&r!==Ki.centerContain&&r!==Ki.centerCover?i/a:n.current.clientWidth/n.current.clientHeight,o.current.naturalWidth/o.current.naturalHeight>s)return Ui.landscape}return Ui.portrait}(e,t,o,n));return i.current=t,a.current}(e,s,i,o),B=Ji(k,{theme:w,className:b,width:p,height:h,maximizeFrame:x,shouldFadeIn:g,shouldStartVisible:v,isLoaded:s===Xi.loaded||s===Xi.notLoaded&&e.shouldStartVisible,isLandscape:S===Ui.landscape,isCenter:_===Ki.center,isCenterContain:_===Ki.centerContain,isCenterCover:_===Ki.centerCover,isContain:_===Ki.contain,isCover:_===Ki.cover,isNone:_===Ki.none,isError:s===Xi.error,isNotImageFit:void 0===_});return r.createElement("div",{className:B.root,style:{width:p,height:h},ref:o},r.createElement("img",(0,n.__assign)({},u,{onLoad:l,onError:c,key:"fabricImage"+e.src||"",className:B.image,ref:Pr(i,t),src:d,alt:f,role:y,loading:C})))}));ta.displayName="ImageBase";var oa={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"},na=x(ta,(function(e){var t=e.className,o=e.width,n=e.height,r=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,u=e.isCenter,d=e.isContain,f=e.isCover,p=e.isCenterContain,h=e.isCenterCover,m=e.isNone,g=e.isError,v=e.isNotImageFit,b=e.theme,_=Xo(oa,b),y={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},x=c(),k=void 0!==x&&void 0===x.navigator.msMaxTouchPoints,w=d&&l||f&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[_.root,b.fonts.medium,{overflow:"hidden"},r&&[_.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&So.fadeIn400,(u||d||f||p||h)&&{position:"relative"},t],image:[_.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],u&&[_.imageCenter,y],d&&[_.imageContain,k&&{width:"100%",height:"100%",objectFit:"contain"},!k&&w,!k&&y],f&&[_.imageCover,k&&{width:"100%",height:"100%",objectFit:"cover"},!k&&w,!k&&y],p&&[_.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},y],h&&[_.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},y],m&&[_.imageNone,{width:"auto",height:"auto"}],v&&[!!o&&!n&&{height:"auto",width:"100%"},!o&&!!n&&{height:"100%",width:"auto"},!!o&&!!n&&{height:"100%",width:"100%"}],l&&_.imageLandscape,!l&&_.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",g&&"is-error"]}}),void 0,{scope:"Image"},!0);na.displayName="Image";var ra=fe({root:{display:"inline-block"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),ia="ms-Icon",aa=Wo((function(e){var t=rn(e)||{subset:{},code:void 0},o=t.code,n=t.subset;return o?{children:o,iconClassName:n.className,fontFamily:n.fontFace&&n.fontFace.fontFamily,mergeImageProps:n.mergeImageProps}:null}),void 0,!0),sa=function(e){var t=e.iconName,o=e.className,i=e.style,a=void 0===i?{}:i,s=aa(t)||{},l=s.iconClassName,c=s.children,u=s.fontFamily,d=s.mergeImageProps,f=kt(e,gt),p=e["aria-label"]||e.title,h=e["aria-label"]||e["aria-labelledby"]||e.title?{role:d?void 0:"img"}:{"aria-hidden":!0},m=c;return d&&"object"===typeof c&&"object"===typeof c.props&&p&&(m=r.cloneElement(c,{alt:p})),r.createElement("i",(0,n.__assign)({"data-icon-name":t},h,f,d?{title:void 0,"aria-label":void 0}:{},{className:wt(ia,ra.root,l,!t&&ra.placeholder,o),style:(0,n.__assign)({fontFamily:u},a)}),m)},la=(Wo((function(e,t,o){return sa({iconName:e,className:t,"aria-label":o})})),xe({cacheSize:100})),ca=function(e){function t(t){var o=e.call(this,t)||this;return o._onImageLoadingStateChange=function(e){o.props.imageProps&&o.props.imageProps.onLoadingStateChange&&o.props.imageProps.onLoadingStateChange(e),e===Xi.error&&o.setState({imageLoadError:!0})},o.state={imageLoadError:!1},o}return(0,n.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.children,o=e.className,i=e.styles,a=e.iconName,s=e.imageErrorAs,l=e.theme,c="string"===typeof a&&0===a.length,u=!!this.props.imageProps||this.props.iconType===Gi.image||this.props.iconType===Gi.Image,d=aa(a)||{},f=d.iconClassName,p=d.children,h=d.mergeImageProps,m=la(i,{theme:l,className:o,iconClassName:f,isImage:u,isPlaceholder:c}),g=u?"span":"i",v=kt(this.props,gt,["aria-label"]),b=this.state.imageLoadError,_=(0,n.__assign)((0,n.__assign)({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),y=b&&s||na,x=this.props["aria-label"]||this.props.ariaLabel,k=_.alt||x||this.props.title,w=!!(k||this.props["aria-labelledby"]||_["aria-label"]||_["aria-labelledby"])?{role:u||h?void 0:"img","aria-label":u||h?void 0:k}:{"aria-hidden":!0},C=p;return h&&p&&"object"===typeof p&&k&&(C=r.cloneElement(p,{alt:k})),r.createElement(g,(0,n.__assign)({"data-icon-name":a},w,v,h?{title:void 0,"aria-label":void 0}:{},{className:m.root}),u?r.createElement(y,(0,n.__assign)({},_)):t||C)},t}(r.Component),ua=x(ca,(function(e){var t=e.className,o=e.iconClassName,n=e.isPlaceholder,r=e.isImage,i=e.styles;return{root:[n&&ra.placeholder,ra.root,r&&ra.image,o,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0);ua.displayName="Icon";var da=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,o,n,r){var i;if(e._isElement(t)){if("undefined"!==typeof document&&document.createEvent){var a=document.createEvent("HTMLEvents");a.initEvent(o,r||!1,!0),In(a,n),i=t.dispatchEvent(a)}else if("undefined"!==typeof document&&document.createEventObject){var s=document.createEventObject(n);t.fireEvent("on"+o,s)}}else for(;t&&!1!==i;){var l=t.__events__,c=l?l[o]:null;if(c)for(var u in c)if(c.hasOwnProperty(u))for(var d=c[u],f=0;!1!==i&&f<d.length;f++){var p=d[f];p.objectCallback&&(i=p.objectCallback.call(p.parent,n))}t=r?t.parent:null}return i},e.isObserved=function(e,t){var o=e&&e.__events__;return!!o&&!!o[t]},e.isDeclared=function(e,t){var o=e&&e.__declaredEvents;return!!o&&!!o[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,o){for(var n in t)t.hasOwnProperty(n)&&this.on(e,n,t[n],o)},e.prototype.on=function(t,o,n,r){var i=this;if(o.indexOf(",")>-1)for(var a=o.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],n,r);else{var l=this._parent,c={target:t,eventName:o,parent:l,callback:n,options:r};if((a=t.__events__=t.__events__||{})[o]=a[o]||{count:0},a[o][this._id]=a[o][this._id]||[],a[o][this._id].push(c),a[o].count++,e._isElement(t)){var u=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var o;try{if(!1===(o=n.apply(l,e))&&e[0]){var r=e[0];r.preventDefault&&r.preventDefault(),r.stopPropagation&&r.stopPropagation(),r.cancelBubble=!0}}catch(r){}return o}};c.elementCallback=u,t.addEventListener?t.addEventListener(o,u,r):t.attachEvent&&t.attachEvent("on"+o,u)}else{c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return n.apply(l,e)}}this._eventRecords.push(c)}},e.prototype.off=function(e,t,o,n){for(var r=0;r<this._eventRecords.length;r++){var i=this._eventRecords[r];if((!e||e===i.target)&&(!t||t===i.eventName)&&(!o||o===i.callback)&&("boolean"!==typeof n||n===i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&o?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(r--,1)}}},e.prototype.raise=function(t,o,n){return e.raise(this._parent,t,o,n)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"===typeof e)t[e]=!0;else for(var o=0;o<e.length;o++)t[e[o]]=!0},e._uniqueId=0,e}();!function(e){function t(o,n){var r=e.call(this,o,n)||this;return function(e,t,o){for(var n=0,r=o.length;n<r;n++)fa(e,t,o[n])}(r,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),r}(0,n.__extends)(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var o=this.__disposables[e];o.dispose&&o.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new Sn(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new da(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(o){return t[e]=o}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){this.className,this.props},t.prototype._warnMutuallyExclusive=function(e){this.className,this.props},t.prototype._warnConditionallyRequiredProps=function(e,t,o){this.className,this.props},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"===typeof e&&e(t),"object"===typeof e&&(e.current=t))}}(r.Component);function fa(e,t,o){var n=e[o],r=t[o];(n||r)&&(e[o]=function(){for(var e,t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r&&(e=r.apply(this,t)),n!==r&&(e=n.apply(this,t)),e})}function pa(){return null}function ha(e,t,o){return function(a){var s,l=((s=function(s){function l(e){var t=s.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return(0,n.__extends)(l,s),l.prototype.componentDidMount=function(){v.observe(this._onSettingChanged)},l.prototype.componentWillUnmount=function(){v.unobserve(this._onSettingChanged)},l.prototype.render=function(){var s=this;return r.createElement(b.Consumer,null,(function(l){var c=v.getSettings(t,e,l.customizations),u=s.props;if(c.styles&&"function"===typeof c.styles&&(c.styles=c.styles((0,n.__assign)((0,n.__assign)({},c),u))),o&&c.styles){if(s._styleCache.default!==c.styles||s._styleCache.component!==u.styles){var d=i(c.styles,u.styles);s._styleCache.default=c.styles,s._styleCache.component=u.styles,s._styleCache.merged=d}return r.createElement(a,(0,n.__assign)({},c,u,{styles:s._styleCache.merged}))}return r.createElement(a,(0,n.__assign)({},c,u))}))},l.prototype._onSettingChanged=function(){this.forceUpdate()},l}(r.Component)).displayName="Customized"+e,s);return function(e,t){for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t}(a,l)}}function ma(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var o=e.filter((function(e){return e})).join(" ").trim();return""===o?void 0:o}var ga=function(e){var t=e.className,o=e.imageProps,i=kt(e,gt,["aria-label","aria-labelledby","title","aria-describedby"]),a=o.alt||e["aria-label"],s=a||e["aria-labelledby"]||e.title||o["aria-label"]||o["aria-labelledby"]||o.title,l={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},c=s?{}:{"aria-hidden":!0};return r.createElement("div",(0,n.__assign)({},c,i,{className:wt(ia,ra.root,ra.image,t)}),r.createElement(na,(0,n.__assign)({},l,o,{alt:s?a:""})))};var va,ba,_a=Vo((function(e){return Vo((function(t){var o=Vo((function(e){return function(o){return t(o,e)}}));return function(n,r){return e(n,r?o(r):t)}}))}));function ya(e){var t;if("undefined"===typeof ba||e){var o=c(),n=null===(t=null===o||void 0===o?void 0:o.navigator)||void 0===t?void 0:t.userAgent;ba=!!n&&-1!==n.indexOf("Macintosh")}return!!ba}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(va||(va={}));var xa=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)};function ka(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function wa(e){return!(!e.subMenuProps&&!e.items)}function Ca(e){return!(!e.isDisabled&&!e.disabled)}function Sa(e){return null!==ka(e)?"menuitemcheckbox":"menuitem"}var Ba,Ia=function(e){var t=e.item,o=e.classNames,i=t.iconProps;return r.createElement(ua,(0,n.__assign)({},i,{className:o.icon}))},Ea=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,Ia):Ia(e):null},za=function(e){var t=e.onCheckmarkClick,o=e.item,n=e.classNames,i=ka(o);if(t){return r.createElement(ua,{iconName:!1!==o.canCheck&&i?"CheckMark":"",className:n.checkmarkIcon,onClick:function(e){return t(o,e)}})}return null},Ta=function(e){var t=e.item,o=e.classNames;return t.text||t.name?r.createElement("span",{className:o.label},t.text||t.name):null},Aa=function(e){var t=e.item,o=e.classNames;return t.secondaryText?r.createElement("span",{className:o.secondaryText},t.secondaryText):null},Pa=function(e){var t=e.item,o=e.classNames,i=e.theme;return wa(t)?r.createElement(ua,(0,n.__assign)({iconName:ve(i)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:o.subMenuIcon})):null},Ra=function(e){function t(t){var o=e.call(this,t)||this;return o.openSubMenu=function(){var e=o.props,t=e.item,n=e.openSubMenu,r=e.getSubmenuTarget;if(r){var i=r();wa(t)&&n&&i&&n(t,i)}},o.dismissSubMenu=function(){var e=o.props,t=e.item,n=e.dismissSubMenu;wa(t)&&n&&n()},o.dismissMenu=function(e){var t=o.props.dismissMenu;t&&t(void 0,e)},st(o),o}return(0,n.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.item,o=e.classNames,n=t.onRenderContent||this._renderLayout;return r.createElement("div",{className:t.split?o.linkContentMenu:o.linkContent},n(this.props,{renderCheckMarkIcon:za,renderItemIcon:Ea,renderItemName:Ta,renderSecondaryText:Aa,renderSubMenuIcon:Pa}))},t.prototype._renderLayout=function(e,t){return r.createElement(r.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(r.Component),Da=Wo((function(e){return fe({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),Na=36,Fa=Eo(0,639),Ma=Wo((function(e){var t,o,r,a,s,l=e.semanticColors,c=e.fonts,u=e.palette,d=l.menuItemBackgroundHovered,f=l.menuItemTextHovered,p=l.menuItemBackgroundPressed,h=l.bodyDivider;return i({item:[c.medium,{color:l.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:h,position:"relative"},root:[Do(e),c.medium,{color:l.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:Na,lineHeight:Na,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:l.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Io]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:d,color:f,selectors:{".ms-ContextualMenu-icon":{color:u.themeDarkAlt},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootFocused:{backgroundColor:u.white},rootChecked:{selectors:{".ms-ContextualMenu-checkmarkIcon":{color:u.neutralPrimary}}},rootPressed:{backgroundColor:p,selectors:{".ms-ContextualMenu-icon":{color:u.themeDark},".ms-ContextualMenu-submenuIcon":{color:u.neutralPrimary}}},rootExpanded:{backgroundColor:p,color:l.bodyTextChecked,selectors:(o={".ms-ContextualMenu-submenuIcon":(r={},r[Io]={color:"inherit"},r)},o[Io]=(0,n.__assign)({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},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:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:Na,fontSize:Bo.fF.medium,width:Bo.fF.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(a={},a[Fa]={fontSize:Bo.fF.large,width:Bo.fF.large},a)},iconColor:{color:l.menuIcon},iconDisabled:{color:l.disabledBodyText},checkmarkIcon:{color:l.bodySubtext},subMenuIcon:{height:Na,lineHeight:Na,color:u.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Bo.fF.small,selectors:(s={":hover":{color:u.neutralPrimary},":active":{color:u.neutralPrimary}},s[Fa]={fontSize:Bo.fF.medium},s)},splitButtonFlexContainer:[Do(e),{display:"flex",height:Na,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),ja="28px",Oa=Eo(0,639),Ha=Wo((function(e){var t;return fe(Da(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[Oa]={right:32},t)},divider:{height:16,width:1}})})),La={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"},qa=Wo((function(e,t,o,n,r,i,a,s,l,c,u,d){var f,p,h,m,g=Ma(e),v=Xo(La,e);return fe({item:[v.item,g.item,a],divider:[v.divider,g.divider,s],root:[v.root,g.root,n&&[v.isChecked,g.rootChecked],r&&g.anchorLink,o&&[v.isExpanded,g.rootExpanded],t&&[v.isDisabled,g.rootDisabled],!t&&!o&&[{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)}],d],splitPrimary:[g.root,{width:"calc(100% - 28px)"},n&&["is-checked",g.rootChecked],(t||u)&&["is-disabled",g.rootDisabled],!(t||u)&&!n&&[{selectors:(p={":hover":g.rootHovered},p[":hover ~ ."+v.splitMenu]=g.rootHovered,p[":active"]=g.rootPressed,p[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,p[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},p)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:ja},o&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!o&&[{selectors:(h={":hover":g.rootHovered,":active":g.rootPressed},h[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,h[".ms-Fabric--isFocusVisible &:hover"]={background:"inherit;"},h)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,l,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,c,o&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!n&&[{selectors:(m={},m[".ms-Fabric--isFocusVisible &:focus, .ms-Fabric--isFocusVisible &:focus:hover"]=g.rootFocused,m)}]],screenReaderText:[v.screenReaderText,g.screenReaderText,Fo,{visibility:"hidden"}]})})),Wa=function(e){var t=e.theme,o=e.disabled,n=e.expanded,r=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,c=e.iconClassName,u=e.subMenuClassName,d=e.primaryDisabled,f=e.className;return qa(t,o,n,r,i,a,s,l,c,u,d,f)},Va=x(Ra,Wa,void 0,{scope:"ContextualMenuItem"}),Ga=function(e){function t(t){var o=e.call(this,t)||this;return o._onItemMouseEnter=function(e){var t=o.props,n=t.item,r=t.onItemMouseEnter;r&&r(n,e,e.currentTarget)},o._onItemClick=function(e){var t=o.props,n=t.item,r=t.onItemClickBase;r&&r(n,e,e.currentTarget)},o._onItemMouseLeave=function(e){var t=o.props,n=t.item,r=t.onItemMouseLeave;r&&r(n,e)},o._onItemKeyDown=function(e){var t=o.props,n=t.item,r=t.onItemKeyDown;r&&r(n,e)},o._onItemMouseMove=function(e){var t=o.props,n=t.item,r=t.onItemMouseMove;r&&r(n,e,e.currentTarget)},o._getSubmenuTarget=function(){},st(o),o}return(0,n.__extends)(t,e),t.prototype.shouldComponentUpdate=function(e){return!Bn(e,this.props)},t}(r.Component);function Ka(e){var t=(0,r.useRef)();return(0,r.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"}(Ba||(Ba={}));var Ua=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var o=e;t||(o=this.addParentOverflow(e),this.sequenceMapping[o.keySequences.toString()]=o);var n=this._getUniqueKtp(o);if(t?this.persistedKeytips[n.uniqueID]=n:this.keytips[n.uniqueID]=n,this.inKeytipMode||!this.delayUpdatingKeytipChange){var r=t?Ba.PERSISTED_KEYTIP_ADDED:Ba.KEYTIP_ADDED;da.raise(this,r,{keytip:o,uniqueID:n.uniqueID})}return n.uniqueID},e.prototype.update=function(e,t){var o=this.addParentOverflow(e),n=this._getUniqueKtp(o,t),r=this.keytips[t];r&&(n.keytip.visible=r.keytip.visible,this.keytips[t]=n,delete this.sequenceMapping[r.keytip.keySequences.toString()],this.sequenceMapping[n.keytip.keySequences.toString()]=n.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||da.raise(this,Ba.KEYTIP_UPDATED,{keytip:n.keytip,uniqueID:n.uniqueID}))},e.prototype.unregister=function(e,t,o){void 0===o&&(o=!1),o?delete this.persistedKeytips[t]:delete this.keytips[t],!o&&delete this.sequenceMapping[e.keySequences.toString()];var n=o?Ba.PERSISTED_KEYTIP_REMOVED:Ba.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||da.raise(this,n,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){da.raise(this,Ba.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){da.raise(this,Ba.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=(0,n.__spreadArray)([],e.keySequences);if(t.pop(),0!==t.length){var o=this.sequenceMapping[t.toString()];if(o&&o.overflowSetSequence)return(0,n.__assign)((0,n.__assign)({},e),{overflowSetSequence:o.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){da.raise(this,Ba.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=Be()),{keytip:(0,n.__assign)({},e),uniqueID:t}},e._instance=new e,e}();function Xa(e){return e.reduce((function(e,t){return e+"-"+t.split("").join("-")}),"ktp")}function Ya(e){var t=r.useRef(),o=e.keytipProps?(0,n.__assign)({disabled:e.disabled},e.keytipProps):void 0,i=Hr(Ua.getInstance()),a=Ka(e);Di((function(){t.current&&o&&((null===a||void 0===a?void 0:a.keytipProps)!==e.keytipProps||(null===a||void 0===a?void 0:a.disabled)!==e.disabled)&&i.update(o,t.current)})),Di((function(){return o&&(t.current=i.register(o)),function(){o&&i.unregister(o,t.current)}}),[]);var s={ariaDescribedBy:void 0,keytipId:void 0};return o&&(s=function(e,t,o){var r=e.addParentOverflow(t),i=ma(o,function(e){var t=" ktp-layer-id";return e.length?t+" "+Xa(e):t}(r.keySequences)),a=(0,n.__spreadArray)([],r.keySequences);r.overflowSetSequence&&(a=function(e,t){var o=t.length,r=(0,n.__spreadArray)([],t).pop();return function(e,t,o){var n=e.slice();return n.splice(t,0,o),n}((0,n.__spreadArray)([],e),o-1,r)}(a,r.overflowSetSequence));var s=Xa(a);return{ariaDescribedBy:i,keytipId:s}}(i,o,e.ariaDescribedBy)),s}var Za=function(e){var t,o=e.children,r=Ya((0,n.__rest)(e,["children"])),i=r.keytipId,a=r.ariaDescribedBy;return o(((t={})["data-ktp-target"]=i,t["data-ktp-execute-target"]=i,t["aria-describedby"]=a,t))},Qa=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=r.createRef(),t._getMemoizedMenuButtonKeytipProps=Wo((function(e){return(0,n.__assign)((0,n.__assign)({},e),{hasMenu:!0})})),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var o=t.props,n=o.item,r=o.onItemClick;r&&r(n,e)},t._renderAriaDescription=function(e,o){return e?r.createElement("span",{id:t._ariaDescriptionId,className:o},e):null},t}return(0,n.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,o=t.item,i=t.classNames,a=t.index,s=t.focusableElementIndex,l=t.totalItemCount,c=t.hasCheckmarks,u=t.hasIcons,d=t.contextualMenuItemAs,f=void 0===d?Va:d,p=t.expandedMenuItemKey,h=t.onItemClick,m=t.openSubMenu,g=t.dismissSubMenu,v=t.dismissMenu,b=o.rel;o.target&&"_blank"===o.target.toLowerCase()&&(b=b||"nofollow noopener noreferrer");var _=wa(o),y=kt(o,bt),x=Ca(o),k=o.itemProps,w=o.ariaDescription,C=o.keytipProps;C&&_&&(C=this._getMemoizedMenuButtonKeytipProps(C)),w&&(this._ariaDescriptionId=Be());var S=ma(o.ariaDescribedBy,w?this._ariaDescriptionId:void 0,y["aria-describedby"]),B={"aria-describedby":S};return r.createElement("div",null,r.createElement(Za,{keytipProps:o.keytipProps,ariaDescribedBy:S,disabled:x},(function(t){return r.createElement("a",(0,n.__assign)({},B,y,t,{ref:e._anchor,href:o.href,target:o.target,rel:b,className:i.root,role:"menuitem","aria-haspopup":_||void 0,"aria-expanded":_?o.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":Ca(o),style:o.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:_?e._onItemKeyDown:void 0}),r.createElement(f,(0,n.__assign)({componentRef:o.componentRef,item:o,classNames:i,index:a,onCheckmarkClick:c&&h?h:void 0,hasIcons:u,openSubMenu:m,dismissSubMenu:g,dismissMenu:v,getSubmenuTarget:e._getSubmenuTarget},k)),e._renderAriaDescription(w,i.screenReaderText))})))},t}(Ga),$a=xe(),Ja=r.forwardRef((function(e,t){var o=e.styles,n=e.theme,i=e.getClassNames,a=e.className,s=$a(o,{theme:n,getClassNames:i,className:a});return r.createElement("span",{className:s.wrapper,ref:t},r.createElement("span",{className:s.divider}))}));Ja.displayName="VerticalDividerBase";var es=x(Ja,(function(e){var t=e.theme,o=e.getClassNames,n=e.className;if(!t)throw new Error("Theme is undefined or null.");if(o){var r=o(t);return{wrapper:[r.wrapper],divider:[r.divider]}}return{wrapper:[{display:"inline-flex",height:"100%",alignItems:"center"},n],divider:[{width:1,height:"100%",backgroundColor:t.palette.neutralTertiaryAlt}]}}),void 0,{scope:"VerticalDivider"}),ts=function(e){function t(t){var o=e.call(this,t)||this;return o._getMemoizedMenuButtonKeytipProps=Wo((function(e){return(0,n.__assign)((0,n.__assign)({},e),{hasMenu:!0})})),o._onItemKeyDown=function(e){var t=o.props,n=t.item,r=t.onItemKeyDown;e.which===Xe?(o._executeItemClick(e),e.preventDefault(),e.stopPropagation()):r&&r(n,e)},o._getSubmenuTarget=function(){return o._splitButton},o._renderAriaDescription=function(e,t){return e?r.createElement("span",{id:o._ariaDescriptionId,className:t},e):null},o._onItemMouseEnterPrimary=function(e){var t=o.props,r=t.item,i=t.onItemMouseEnter;i&&i((0,n.__assign)((0,n.__assign)({},r),{subMenuProps:void 0,items:void 0}),e,o._splitButton)},o._onItemMouseEnterIcon=function(e){var t=o.props,n=t.item,r=t.onItemMouseEnter;r&&r(n,e,o._splitButton)},o._onItemMouseMovePrimary=function(e){var t=o.props,r=t.item,i=t.onItemMouseMove;i&&i((0,n.__assign)((0,n.__assign)({},r),{subMenuProps:void 0,items:void 0}),e,o._splitButton)},o._onItemMouseMoveIcon=function(e){var t=o.props,n=t.item,r=t.onItemMouseMove;r&&r(n,e,o._splitButton)},o._onIconItemClick=function(e){var t=o.props,n=t.item,r=t.onItemClickBase;r&&r(n,e,o._splitButton?o._splitButton:e.currentTarget)},o._executeItemClick=function(e){var t=o.props,n=t.item,r=t.executeItemClick,i=t.onItemClick;if(!n.disabled&&!n.isDisabled)return o._processingTouch&&i?i(n,e):void(r&&r(n,e))},o._onTouchStart=function(e){o._splitButton&&!("onpointerdown"in o._splitButton)&&o._handleTouchAndPointerEvent(e)},o._onPointerDown=function(e){"touch"===e.pointerType&&(o._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},o._async=new Sn(o),o._events=new da(o),o}return(0,n.__extends)(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,o=t.item,i=t.classNames,a=t.index,s=t.focusableElementIndex,l=t.totalItemCount,c=t.hasCheckmarks,u=t.hasIcons,d=t.onItemMouseLeave,f=t.expandedMenuItemKey,p=wa(o),h=o.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var m=o.ariaDescription;return m&&(this._ariaDescriptionId=Be()),r.createElement(Za,{keytipProps:h,disabled:Ca(o)},(function(t){return r.createElement("div",{"data-ktp-target":t["data-ktp-target"],ref:function(t){return e._splitButton=t},role:Sa(o),"aria-label":o.ariaLabel,className:i.splitContainer,"aria-disabled":Ca(o),"aria-expanded":p?o.key===f:void 0,"aria-haspopup":!0,"aria-describedby":ma(o.ariaDescribedBy,m?e._ariaDescriptionId:void 0,t["aria-describedby"]),"aria-checked":o.isChecked||o.checked,"aria-posinset":s+1,"aria-setsize":l,onMouseEnter:e._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(e,(0,n.__assign)((0,n.__assign)({},o),{subMenuProps:null,items:null})):void 0,onMouseMove:e._onItemMouseMovePrimary,onKeyDown:e._onItemKeyDown,onClick:e._executeItemClick,onTouchStart:e._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":o["aria-roledescription"]},e._renderSplitPrimaryButton(o,i,a,c,u),e._renderSplitDivider(o),e._renderSplitIconButton(o,i,a,t),e._renderAriaDescription(m,i.screenReaderText))}))},t.prototype._renderSplitPrimaryButton=function(e,t,o,i,a){var s=this.props,l=s.contextualMenuItemAs,c=void 0===l?Va:l,u=s.onItemClick,d={key:e.key,disabled:Ca(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},f=e.itemProps;return r.createElement("button",(0,n.__assign)({},kt(d,_t)),r.createElement(c,(0,n.__assign)({"data-is-focusable":!1,item:d,classNames:t,index:o,onCheckmarkClick:i&&u?u:void 0,hasIcons:a},f)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||Ha;return r.createElement(es,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,o,i){var a=this.props,s=a.contextualMenuItemAs,l=void 0===s?Va:s,c=a.onItemMouseLeave,u=a.onItemMouseDown,d=a.openSubMenu,f=a.dismissSubMenu,p=a.dismissMenu,h={onClick:this._onIconItemClick,disabled:Ca(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key},m=(0,n.__assign)((0,n.__assign)({},kt(h,_t)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:c?c.bind(this,e):void 0,onMouseDown:function(t){return u?u(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":i["data-ktp-execute-target"],"aria-hidden":!0}),g=e.itemProps;return r.createElement("button",(0,n.__assign)({},m),r.createElement(l,(0,n.__assign)({componentRef:e.componentRef,item:h,classNames:t,index:o,hasIcons:!1,openSubMenu:d,dismissSubMenu:f,dismissMenu:p,getSubmenuTarget:this._getSubmenuTarget},g)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,o=this.props.onTap;o&&o(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},t}(Ga),os=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=r.createRef(),t._getMemoizedMenuButtonKeytipProps=Wo((function(e){return(0,n.__assign)((0,n.__assign)({},e),{hasMenu:!0})})),t._renderAriaDescription=function(e,o){return e?r.createElement("span",{id:t._ariaDescriptionId,className:o},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return(0,n.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,o=t.item,i=t.classNames,a=t.index,s=t.focusableElementIndex,l=t.totalItemCount,c=t.hasCheckmarks,u=t.hasIcons,d=t.contextualMenuItemAs,f=void 0===d?Va:d,p=t.expandedMenuItemKey,h=t.onItemMouseDown,m=t.onItemClick,g=t.openSubMenu,v=t.dismissSubMenu,b=t.dismissMenu,_=ka(o),y=null!==_,x=Sa(o),k=wa(o),w=o.itemProps,C=o.ariaLabel,S=o.ariaDescription,B=kt(o,_t);delete B.disabled;var I=o.role||x;S&&(this._ariaDescriptionId=Be());var E=ma(o.ariaDescribedBy,S?this._ariaDescriptionId:void 0,B["aria-describedby"]),z={className:i.root,onClick:this._onItemClick,onKeyDown:k?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return h?h(o,e):void 0},onMouseMove:this._onItemMouseMove,href:o.href,title:o.title,"aria-label":C,"aria-describedby":E,"aria-haspopup":k||void 0,"aria-expanded":k?o.key===p:void 0,"aria-posinset":s+1,"aria-setsize":l,"aria-disabled":Ca(o),"aria-checked":"menuitemcheckbox"!==I&&"menuitemradio"!==I||!y?void 0:!!_,"aria-selected":"menuitem"===I&&y?!!_:void 0,role:I,style:o.style},T=o.keytipProps;return T&&k&&(T=this._getMemoizedMenuButtonKeytipProps(T)),r.createElement(Za,{keytipProps:T,ariaDescribedBy:E,disabled:Ca(o)},(function(t){return r.createElement("button",(0,n.__assign)({ref:e._btn},B,z,t),r.createElement(f,(0,n.__assign)({componentRef:o.componentRef,item:o,classNames:i,index:a,onCheckmarkClick:c&&m?m:void 0,hasIcons:u,openSubMenu:g,dismissSubMenu:v,dismissMenu:b,getSubmenuTarget:e._getSubmenuTarget},w)),e._renderAriaDescription(S,i.screenReaderText))}))},t}(Ga);function ns(e,t){var o=r.useRef(t);return o.current||(o.current=Be(e)),o.current}var rs;!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"}(rs||(rs={}));var is,as,ss=[479,639,1023,1365,1919,99999999];function ls(){var e;return null!==(e=null!==is&&void 0!==is?is:as)&&void 0!==e?e:rs.large}function cs(e){try{return e.document.documentElement.clientWidth}catch(Sc){return e.innerWidth}}function us(e){var t=rs.small;if(e){try{for(;cs(e)>ss[t];)t++}catch(Sc){t=ls()}as=t}else{if(void 0===is)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=is}return t}var ds=r.createContext({}),fs=xe(),ps=xe(),hs={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:jn,beakWidth:16};function ms(e,t){var o=null===t||void 0===t?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var i=[],a=0,s=r;a<s.length;a++){var l=s[a];if(l.preferMenuTargetAsEventTarget){var c=l.onClick,u=(0,n.__rest)(l,["onClick"]);i.push((0,n.__assign)((0,n.__assign)({},u),{onClick:Ss(c,o)}))}else i.push(l)}return i}}var gs="ContextualMenu",vs=Wo((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return a.apply(void 0,(0,n.__spreadArray)([t,Wa],e))}}));function bs(e,t){var o=e.hidden,n=e.items,i=e.theme,a=e.className,s=e.id,l=e.target,c=r.useState(),u=c[0],d=c[1],f=r.useState(),p=f[0],h=f[1],m=r.useState(),g=m[0],v=m[1],b=ns(gs,s),_=r.useCallback((function(){v(void 0),d(void 0),h(void 0)}),[]),y=r.useCallback((function(e,t,o){var n=e.key;u!==n&&(t.focus(),v(o),d(n),h(t))}),[u]);r.useEffect((function(){o&&_()}),[o,_]);var x=function(e,t){var o=r.useRef(!1);return r.useEffect((function(){return o.current=!0,function(){o.current=!1}}),[]),function(n,r){r?e(n,r):o.current&&t()}}(t,_);return[u,y,function(){var e=Cs(u,n),t=null;if(e&&(t={items:ms(e,{target:l}),target:p,onDismiss:x,isSubMenu:!0,id:b,shouldFocusOnMount:!0,shouldFocusOnContainer:g,directionalHint:ve(i)?On:qn,className:a,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&In(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var o=e.onItemClick;t.onItemClick=Ss(o,l)}return t},x]}function _s(e,t,o,n){var i=e.theme,a=e.isSubMenu,s=e.focusZoneProps,l=void 0===s?{}:s,c=l.checkForNoWrap,u=l.direction,d=void 0===u?Ee.vertical:u,f=r.useRef(),p=function(e,o,n){var r=!1;return o(e)&&(t(e,n),e.preventDefault(),e.stopPropagation(),r=!0),r},h=function(e){return e.which===Ze||function(e){var t=ve(i)?rt:ot;return!(e.which!==t||!a)&&!(d!==Ee.vertical&&(!c||Ve(e.target,"data-no-horizontal-wrap")))}(e)||e.which===nt&&(e.altKey||e.metaKey)},m=function(e){f.current=xs(e);var t=e.which===Ze&&(ya()||xa());return p(e,h,t)},g=function(e){var t=f.current&&xs(e);return f.current=!1,!!t&&!(xa()||ya())};return[m,function(e){return p(e,g,!0)},function(e){if(!m(e)&&o.current){var t,n,r=!(!e.altKey&&!e.metaKey),i=e.which===nt,a=e.which===it;if(!r&&(i||a)){var s=i?(t=o.current,n=o.current.lastChild,Me(t,n,!0,!1,!0,!0)):function(e,t,o){return je(e,t,!0,!1,!1,o)}(o.current,o.current.firstChild,!0);s&&(s.focus(),e.preventDefault(),e.stopPropagation())}}},function(e,t){var o=ve(i)?ot:rt;e.disabled||t.which!==o&&t.which!==Xe&&(t.which!==it||!t.altKey&&!t.metaKey)||(n(e,t.currentTarget),t.preventDefault())}]}var ys=r.memo(r.forwardRef((function(e,t){var o,i=Kn(hs,e),a=(i.ref,(0,n.__rest)(i,["ref"])),s=r.useRef(null),l=Tr(),u=ns(gs,a.id),d=function(e,t){var o;return null===(o=a.onDismiss)||void 0===o?void 0:o.call(a,e,t)},f=Lr(a.target,s),p=f[0],h=f[1],m=function(e,t){var o=e.hidden,i=e.onRestoreFocus,a=r.useRef([]),s=r.useCallback((function(e){var t,o;i?i(e):(null===e||void 0===e?void 0:e.documentContainsFocus)&&(null===(o=null===(t=a.current[0])||void 0===t?void 0:t.focus)||void 0===o||o.call(t))}),[i]);return Di((function(){var e;if(o)a.current.length>0&&(s({originalElement:a.current[0],containsFocus:!0,documentContainsFocus:(null===(e=he())||void 0===e?void 0:e.hasFocus())||!1}),a.current=[]);else{var r=null===t||void 0===t?void 0:t.document.activeElement,i=a.current.indexOf(r);a.current=i>-1?a.current.slice(i+1):(0,n.__spreadArray)([r],a.current)}}),[o,null===t||void 0===t?void 0:t.document.activeElement,s]),[s]}(a,h)[0],g=bs(a,d),v=g[0],b=g[1],_=g[2],y=g[3],x=function(e){var t=e.delayUpdateFocusOnHover,o=e.hidden,n=r.useRef(!t),i=r.useRef(!1);r.useEffect((function(){n.current=!t,i.current=!o&&!t&&i.current}),[t,o]);var a=r.useCallback((function(){t&&(n.current=!1)}),[t]);return[n,i,a]}(a),k=x[0],w=x[1],C=x[2],S=function(e){var t=r.useRef(!0),o=r.useRef();return[function(){t.current||void 0===o.current?t.current=!1:(e.clearTimeout(o.current),o.current=void 0),o.current=e.setTimeout((function(){t.current=!0}),250)},t]}(l),B=S[0],I=S[1],E=function(e,t){var o=e.subMenuHoverDelay,n=void 0===o?250:o,i=r.useRef(void 0),a=function(){void 0!==i.current&&(t.clearTimeout(i.current),i.current=void 0)};return[a,function(e){i.current=t.setTimeout((function(){e(),a()}),n)},i]}(a,l),z=E[0],T=E[1],A=E[2],P=function(e,t){var o=r.useState(ls()),n=o[0],i=o[1],a=r.useCallback((function(){var t=us(c(e.current));n!==t&&i(t)}),[e,n]);return Ar(Dr(),"resize",a),r.useEffect((function(){void 0===t&&a()}),[t]),null!==t&&void 0!==t?t:n}(s,a.responsiveMode);!function(e,t){var o=e.hidden,n=void 0!==o&&o,i=e.onMenuDismissed,a=e.onMenuOpened,s=Ka(n),l=r.useRef(a),c=r.useRef(i),u=r.useRef(e);l.current=a,c.current=i,u.current=e,r.useEffect((function(){var e,t;n&&!1===s?null===(e=c.current)||void 0===e||e.call(c,u.current):n||!1===s||null===(t=l.current)||void 0===t||t.call(l,u.current)}),[n,s]),r.useEffect((function(){return function(){var e;return null===(e=c.current)||void 0===e?void 0:e.call(c,u.current)}}),[])}(a);var R=_s(a,d,s,b),D=R[0],N=R[1],F=R[2],M=R[3],j=function(e,t,o,n,r,i,a,s,l,c,u,d,f){var p=e.target,h=function(){return!t.current||!i.current},m=function(e,t,o){var n=o||t.currentTarget;e.key!==a&&(c(),void 0===a&&n.focus(),wa(e)?(t.stopPropagation(),l((function(){n.focus(),u(e,n,!0)}))):l((function(){d(t),n.focus()})))},g=function(t,o,n){var r=ms(t,{target:p});if(c(),wa(t)||r&&r.length){if(t.key!==a){var i="boolean"===typeof e.shouldFocusOnContainer?e.shouldFocusOnContainer:"mouse"===o.nativeEvent.pointerType;u(t,n,i)}}else v(t,o);o.stopPropagation(),o.preventDefault()},v=function(t,o){if(!t.disabled&&!t.isDisabled){t.preferMenuTargetAsEventTarget&&Bs(o,p);var n=!1;t.onClick?n=!!t.onClick(o,t):e.onItemClick&&(n=!!e.onItemClick(o,t)),!n&&o.defaultPrevented||f(o,!0)}};return[function(e,t,o){r.current&&(i.current=!0),h()||m(e,t,o)},function(e,a,s){var l=a.currentTarget;r.current&&(i.current=!0,t.current&&void 0===o.current&&l!==(null===n||void 0===n?void 0:n.document.activeElement)&&m(e,a,s))},function(e,t){var o;if(!h()&&(c(),void 0===a))if(s.current.setActive)try{s.current.setActive()}catch(Sc){}else null===(o=s.current)||void 0===o||o.focus()},function(e,t){g(e,t,t.currentTarget)},function(e,t){v(e,t),t.stopPropagation()},v,g]}(a,I,A,h,k,w,v,s,T,z,b,y,d),O=j[0],H=j[1],L=j[2],q=j[3],W=j[4],V=j[5],G=j[6],K=function(e,t,o){var n=0,i=e.items,a=e.totalItemCount,s=e.hasCheckmarks,l=e.hasIcons;return r.createElement("ul",{className:t.list,onKeyDown:D,onKeyUp:N,role:"presentation"},i.map((function(e,o){var r=U(e,o,n,a,s,l,t);if(e.itemType!==va.Divider&&e.itemType!==va.Header){var i=e.customOnRenderListLength?e.customOnRenderListLength:1;n+=i}return r})))},U=function(e,t,o,n,i,s,l){var c,u,d=[],f=e.iconProps||{iconName:"None"},p=e.getItemClassNames,h=e.itemProps,m=h?h.styles:void 0,g=e.itemType===va.Divider?e.className:void 0,b=e.submenuIconProps?e.submenuIconProps.className:"";if(p)u=p(a.theme,Ca(e),v===e.key,!!ka(e),!!e.href,"None"!==f.iconName,e.className,g,f.className,b,e.primaryDisabled);else{var _={theme:a.theme,disabled:Ca(e),expanded:v===e.key,checked:!!ka(e),isAnchorLink:!!e.href,knownIcon:"None"!==f.iconName,itemClassName:e.className,dividerClassName:g,iconClassName:f.className,subMenuClassName:b,primaryDisabled:e.primaryDisabled};u=ps(vs(null===(c=l.subComponentStyles)||void 0===c?void 0:c.menuItem,m),_)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=va.Divider),e.itemType){case va.Divider:d.push(Z(t,u));break;case va.Header:d.push(Z(t,u));var y=$(e,u,l,t,i,s);d.push(Y(y,e.key||t,u,e.title));break;case va.Section:d.push(X(e,u,l,t,i,s));break;default:var x=function(){return Q(e,u,t,o,n,i,s)},k=a.onRenderContextualMenuItem?a.onRenderContextualMenuItem(e,x):x();d.push(Y(k,e.key||t,u,e.title))}return r.createElement(r.Fragment,{key:e.key},d)},X=function(e,t,o,i,a,s){var l=e.sectionProps;if(l){var c,d;if(l.title){var f=void 0,p="";if("string"===typeof l.title){var h=u+l.title.replace(/\s/g,"");f={key:"section-"+l.title+"-title",itemType:va.Header,text:l.title,id:h},p=h}else{var m=l.title.id||u+l.title.key.replace(/\s/g,"");f=(0,n.__assign)((0,n.__assign)({},l.title),{id:m}),p=m}f&&(d={role:"group","aria-labelledby":p},c=$(f,t,o,i,a,s))}return l.items&&l.items.length>0?r.createElement("li",{role:"presentation",key:l.key||e.key||"section-"+i},r.createElement("div",(0,n.__assign)({},d),r.createElement("ul",{className:o.list,role:"presentation"},l.topDivider&&Z(i,t,!0,!0),c&&Y(c,e.key||i,t,e.title),l.items.map((function(e,t){return U(e,t,t,l.items.length,a,s,o)})),l.bottomDivider&&Z(i,t,!1,!0)))):void 0}},Y=function(e,t,o,n){return r.createElement("li",{role:"presentation",title:n,key:t,className:o.item},e)},Z=function(e,t,o,n){return n||e>0?r.createElement("li",{role:"separator",key:"separator-"+e+(void 0===o?"":o?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},Q=function(e,t,o,i,s,l,c){if(e.onRender)return e.onRender((0,n.__assign)({"aria-posinset":i+1,"aria-setsize":s},e),d);var u={item:e,classNames:t,index:o,focusableElementIndex:i,totalItemCount:s,hasCheckmarks:l,hasIcons:c,contextualMenuItemAs:a.contextualMenuItemAs,onItemMouseEnter:O,onItemMouseLeave:L,onItemMouseMove:H,onItemMouseDown:ks,executeItemClick:V,onItemKeyDown:M,expandedMenuItemKey:v,openSubMenu:b,dismissSubMenu:y,dismissMenu:d};return e.href?r.createElement(Qa,(0,n.__assign)({},u,{onItemClick:W})):e.split&&wa(e)?r.createElement(ts,(0,n.__assign)({},u,{onItemClick:q,onItemClickBase:G,onTap:z})):r.createElement(os,(0,n.__assign)({},u,{onItemClick:q,onItemClickBase:G}))},$=function(e,t,o,i,s,l){var c=a.contextualMenuItemAs,u=void 0===c?Va:c,d=e.itemProps,f=e.id,p=d&&kt(d,xt);return r.createElement("div",(0,n.__assign)({id:f,className:o.header},p,{style:e.style}),r.createElement(u,(0,n.__assign)({item:e,classNames:t,index:i,onCheckmarkClick:s?q:void 0,hasIcons:l},d)))},J=a.isBeakVisible,ee=a.items,te=a.labelElementId,oe=a.id,ne=a.className,re=a.beakWidth,ie=a.directionalHint,ae=a.directionalHintForRTL,se=a.alignTargetEdge,le=a.gapSpace,ce=a.coverTarget,ue=a.ariaLabel,de=a.doNotLayer,fe=a.target,pe=a.bounds,me=a.useTargetWidth,ge=a.useTargetAsMinWidth,ve=a.directionalHintFixed,be=a.shouldFocusOnMount,_e=a.shouldFocusOnContainer,ye=a.title,xe=a.styles,ke=a.theme,we=a.calloutProps,Ce=a.onRenderSubMenu,Se=void 0===Ce?ws:Ce,Be=a.onRenderMenuList,Ie=void 0===Be?function(e,t){return K(e,Pe)}:Be,Te=a.focusZoneProps,Ae=a.getMenuClassNames,Pe=Ae?Ae(ke,ne):fs(xe,{theme:ke,className:ne}),Re=function e(t){for(var o=0,n=t;o<n.length;o++){var r=n[o];if(r.iconProps)return!0;if(r.itemType===va.Section&&r.sectionProps&&e(r.sectionProps.items))return!0}return!1}(ee);var De,Ne=(0,n.__assign)((0,n.__assign)({direction:Ee.vertical,handleTabKey:ze,isCircularNavigation:!0},Te),{className:wt(Pe.root,null===(o=a.focusZoneProps)||void 0===o?void 0:o.className)}),Fe=function(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}(ee),Me=v&&!0!==a.hidden?_():null;J=void 0===J?P<=rs.medium:J;var je=p.current;if((me||ge)&&je&&je.offsetWidth){var Oe=je.getBoundingClientRect().width-2;me?De={width:Oe}:ge&&(De={minWidth:Oe})}if(ee&&ee.length>0){for(var He=0,Le=0,qe=ee;Le<qe.length;Le++){var We=qe[Le];if(We.itemType!==va.Divider&&We.itemType!==va.Header){var Ve=We.customOnRenderListLength?We.customOnRenderListLength:1;He+=Ve}}var Ge=Pe.subComponentStyles?Pe.subComponentStyles.callout:void 0;return r.createElement(ds.Consumer,null,(function(e){return r.createElement(Hi,(0,n.__assign)({styles:Ge,onRestoreFocus:m},we,{target:fe||e.target,isBeakVisible:J,beakWidth:re,directionalHint:ie,directionalHintForRTL:ae,gapSpace:le,coverTarget:ce,doNotLayer:de,className:wt("ms-ContextualMenu-Callout",we&&we.className),setInitialFocus:be,onDismiss:a.onDismiss||e.onDismiss,onScroll:B,bounds:pe,directionalHintFixed:ve,alignTargetEdge:se,hidden:a.hidden||e.hidden,ref:t}),r.createElement("div",{style:De,ref:s,id:oe,className:Pe.container,tabIndex:_e?0:-1,onKeyDown:F,onKeyUp:N,onFocusCapture:C,"aria-label":ue,"aria-labelledby":te,role:"menu"},ye&&r.createElement("div",{className:Pe.title}," ",ye," "),ee&&ee.length?function(e,t){var o=a.focusZoneAs,i=void 0===o?kn:o;return r.createElement(i,(0,n.__assign)({},t),e)}(Ie({ariaLabel:ue,items:ee,totalItemCount:He,hasCheckmarks:Fe,hasIcons:Re,defaultMenuItemRenderer:function(e){return function(e,t){var o=e.index,n=e.focusableElementIndex,r=e.totalItemCount,i=e.hasCheckmarks,a=e.hasIcons;return U(e,o,n,r,i,a,t)}(e,Pe)},labelElementId:te},(function(e,t){return K(e,Pe)})),Ne):null,Me&&Se(Me,ws)),r.createElement(pi,null))}))}return null})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||Bn(e,t)}));function xs(e){return e.which===Ye||"Meta"===e.key}function ks(e,t){var o;null===(o=e.onMouseDown)||void 0===o||o.call(e,e,t)}function ws(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function Cs(e,t){for(var o=0,n=t;o<n.length;o++){var r=n[o];if(r.itemType===va.Section&&r.sectionProps){var i=Cs(e,r.sectionProps.items);if(i)return i}else if(r.key&&r.key===e)return r}}function Ss(e,t){return e?function(o,n){return Bs(o,t),e(o,n)}:e}function Bs(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}ys.displayName="ContextualMenuBase";var Is={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function Es(e){return r.createElement(zs,(0,n.__assign)({},e))}var zs=x(ys,(function(e){var t=e.className,o=e.theme,n=Xo(Is,o),r=o.fonts,i=o.semanticColors,a=o.effects;return{root:[o.fonts.medium,n.root,n.isopen,{backgroundColor:i.menuBackground,minWidth:"180px"},t],container:[n.container,{selectors:{":focus":{outline:0}}}],list:[n.list,n.isopen,{listStyleType:"none",margin:"0",padding:"0"}],header:[n.header,r.small,{fontWeight:Bo.BO.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:Na,lineHeight:Na,cursor:"default",padding:"0px 6px",userSelect:"none",textAlign:"left"}],title:[n.title,{fontSize:r.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,o=Es,_a(t)(o)):Es};var t,o}),{scope:"ContextualMenu"}),Ts=zs;Ts.displayName="ContextualMenu";var As={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"},Ps=Wo((function(e,t,o,n,r,i,a,s,l,c,u){var d,f,p=Xo(As,e||{}),h=c&&!u;return fe({root:[p.msButton,t.root,n,l&&["is-checked",t.rootChecked],h&&["is-expanded",t.rootExpanded,{selectors:(d={},d[":hover ."+p.msButtonIcon]=t.iconExpandedHovered,d[":hover ."+p.msButtonMenuIcon]=t.menuIconExpandedHovered||t.rootExpandedHovered,d[":hover"]=t.rootExpandedHovered,d)}],s&&[As.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!h&&!l&&{selectors:(f={":hover":t.rootHovered},f[":hover ."+p.msButtonLabel]=t.labelHovered,f[":hover ."+p.msButtonIcon]=t.iconHovered,f[":hover ."+p.msButtonDescription]=t.descriptionHovered,f[":hover ."+p.msButtonMenuIcon]=t.menuIconHovered,f[":focus"]=t.rootFocused,f[":active"]=t.rootPressed,f[":active ."+p.msButtonIcon]=t.iconPressed,f[":active ."+p.msButtonDescription]=t.descriptionPressed,f[":active ."+p.msButtonMenuIcon]=t.menuIconPressed,f)},a&&l&&[t.rootCheckedDisabled],!a&&l&&{selectors:{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed}},o],flexContainer:[p.msButtonFlexContainer,t.flexContainer],textContainer:[p.msButtonTextContainer,t.textContainer],icon:[p.msButtonIcon,r,t.icon,h&&t.iconExpanded,l&&t.iconChecked,a&&t.iconDisabled],label:[p.msButtonLabel,t.label,l&&t.labelChecked,a&&t.labelDisabled],menuIcon:[p.msButtonMenuIcon,i,t.menuIcon,l&&t.menuIconChecked,a&&!u&&t.menuIconDisabled,!a&&!h&&!l&&{selectors:{":hover":t.menuIconHovered,":active":t.menuIconPressed}},h&&["is-expanded",t.menuIconExpanded]],description:[p.msButtonDescription,t.description,l&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[p.msButtonScreenReaderText,t.screenReaderText]})})),Rs=Wo((function(e,t,o,n,r){return{root:Ct(e.splitButtonMenuButton,o&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],n&&!t&&[e.splitButtonMenuButtonChecked],r&&!t&&[{selectors:{":focus":e.splitButtonMenuFocused}}]),splitButtonContainer:Ct(e.splitButtonContainer,!t&&n&&[e.splitButtonContainerChecked,{selectors:{":hover":e.splitButtonContainerCheckedHovered}}],!t&&!n&&[{selectors:{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}}],t&&e.splitButtonContainerDisabled),icon:Ct(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&r&&e.splitButtonMenuIcon),flexContainer:Ct(e.splitButtonFlexContainer),divider:Ct(e.splitButtonDivider,(r||t)&&e.splitButtonDividerDisabled)}}));var Ds=Vo((function(e){var t=e;return Vo((function(o){if(e===o)throw new Error("Attempted to compose a component with itself.");var i=o,a=Vo((function(e){return function(t){return r.createElement(i,(0,n.__assign)({},t,{defaultRender:e}))}}));return function(e){var o=e.defaultRender;return r.createElement(t,(0,n.__assign)({},e,{defaultRender:o?a(o):i}))}}))}));var Ns=function(e){function t(t){var o=e.call(this,t)||this;return o._buttonElement=r.createRef(),o._splitButtonContainer=r.createRef(),o._mergedRef=Re(),o._renderedVisibleMenu=!1,o._getMemoizedMenuButtonKeytipProps=Wo((function(e){return(0,n.__assign)((0,n.__assign)({},e),{hasMenu:!0})})),o._onRenderIcon=function(e,t){var i=o.props.iconProps;if(i&&(void 0!==i.iconName||i.imageProps)){var a=i.className,s=i.imageProps,l=(0,n.__rest)(i,["className","imageProps"]);if(i.styles)return r.createElement(ua,(0,n.__assign)({className:wt(o._classNames.icon,a),imageProps:s},l));if(i.iconName)return r.createElement(sa,(0,n.__assign)({className:wt(o._classNames.icon,a)},l));if(s)return r.createElement(ga,(0,n.__assign)({className:wt(o._classNames.icon,a),imageProps:s},l))}return null},o._onRenderTextContents=function(){var e=o.props,t=e.text,n=e.children,i=e.secondaryText,a=void 0===i?o.props.description:i,s=e.onRenderText,l=void 0===s?o._onRenderText:s,c=e.onRenderDescription,u=void 0===c?o._onRenderDescription:c;return t||"string"===typeof n||a?r.createElement("span",{className:o._classNames.textContainer},l(o.props,o._onRenderText),u(o.props,o._onRenderDescription)):[l(o.props,o._onRenderText),u(o.props,o._onRenderDescription)]},o._onRenderText=function(){var e=o.props.text,t=o.props.children;return void 0===e&&"string"===typeof t&&(e=t),o._hasText()?r.createElement("span",{key:o._labelId,className:o._classNames.label,id:o._labelId},e):null},o._onRenderChildren=function(){var e=o.props.children;return"string"===typeof e?null:e},o._onRenderDescription=function(e){var t=e.secondaryText,n=void 0===t?o.props.description:t;return n?r.createElement("span",{key:o._descriptionId,className:o._classNames.description,id:o._descriptionId},n):null},o._onRenderAriaDescription=function(){var e=o.props.ariaDescription;return e?r.createElement("span",{className:o._classNames.screenReaderText,id:o._ariaDescriptionId},e):null},o._onRenderMenuIcon=function(e){var t=o.props.menuIconProps;return r.createElement(sa,(0,n.__assign)({iconName:"ChevronDown"},t,{className:o._classNames.menuIcon}))},o._onRenderMenu=function(e){var t,i,a=o.props.menuAs?(t=o.props.menuAs,i=Ts,Ds(t)(i)):Ts;return r.createElement(a,(0,n.__assign)({},e))},o._onDismissMenu=function(e){var t=o.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||o._dismissMenu()},o._dismissMenu=function(){o._menuShouldFocusOnMount=void 0,o._menuShouldFocusOnContainer=void 0,o.setState({menuHidden:!0})},o._openMenu=function(e,t){void 0===t&&(t=!0),o.props.menuProps&&(o._menuShouldFocusOnContainer=e,o._menuShouldFocusOnMount=t,o._renderedVisibleMenu=!0,o.setState({menuHidden:!1}))},o._onToggleMenu=function(e){var t=!0;o.props.menuProps&&!1===o.props.menuProps.shouldFocusOnMount&&(t=!1),o.state.menuHidden?o._openMenu(e,t):o._dismissMenu()},o._onSplitContainerFocusCapture=function(e){var t=o._splitButtonContainer.current;!t||e.target&&zt(e.target,t)||t.focus()},o._onSplitButtonPrimaryClick=function(e){o.state.menuHidden||o._dismissMenu(),!o._processingTouch&&o.props.onClick?o.props.onClick(e):o._processingTouch&&o._onMenuClick(e)},o._onKeyDown=function(e){!o.props.disabled||e.which!==Xe&&e.which!==Qe?o.props.disabled||(o.props.menuProps?o._onMenuKeyDown(e):void 0!==o.props.onKeyDown&&o.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},o._onKeyUp=function(e){o.props.disabled||void 0===o.props.onKeyUp||o.props.onKeyUp(e)},o._onKeyPress=function(e){o.props.disabled||void 0===o.props.onKeyPress||o.props.onKeyPress(e)},o._onMouseUp=function(e){o.props.disabled||void 0===o.props.onMouseUp||o.props.onMouseUp(e)},o._onMouseDown=function(e){o.props.disabled||void 0===o.props.onMouseDown||o.props.onMouseDown(e)},o._onClick=function(e){o.props.disabled||(o.props.menuProps?o._onMenuClick(e):void 0!==o.props.onClick&&o.props.onClick(e))},o._onSplitButtonContainerKeyDown=function(e){e.which===Xe||e.which===Qe?o._buttonElement.current&&(o._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):o._onMenuKeyDown(e)},o._onMenuKeyDown=function(e){if(!o.props.disabled){o.props.onKeyDown&&o.props.onKeyDown(e);var t=e.which===nt,n=e.which===it;if(!e.defaultPrevented&&o._isValidMenuOpenKey(e)){var r=o.props.onMenuClick;r&&r(e,o.props),o._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}if(e.which!==Xe&&e.which!==Qe||Ro(!0,e.target),!e.altKey&&!e.metaKey&&(t||n))if(!o.state.menuHidden&&o.props.menuProps)(void 0!==o._menuShouldFocusOnMount?o._menuShouldFocusOnMount:o.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),o._menuShouldFocusOnMount=!0,o.forceUpdate())}},o._onTouchStart=function(){o._isSplitButton&&o._splitButtonContainer.current&&!("onpointerdown"in o._splitButtonContainer.current)&&o._handleTouchAndPointerEvent()},o._onMenuClick=function(e){var t=o.props,n=t.onMenuClick,r=t.menuProps;n&&n(e,o.props);var i="boolean"===typeof(null===r||void 0===r?void 0:r.shouldFocusOnContainer)?r.shouldFocusOnContainer:"mouse"===e.nativeEvent.pointerType;e.defaultPrevented||(o._onToggleMenu(i),e.preventDefault(),e.stopPropagation())},st(o),o._async=new Sn(o),o._events=new da(o),o.props.split,o._labelId=Be(),o._descriptionId=Be(),o._ariaDescriptionId=Be(),o.state={menuHidden:!0},o}return(0,n.__extends)(t,e),Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this.props,o=t.ariaDescription,n=t.ariaLabel,r=t.ariaHidden,i=t.className,a=t.disabled,s=t.allowDisabledFocus,l=t.primaryDisabled,c=t.secondaryText,u=void 0===c?this.props.description:c,d=t.href,f=t.iconProps,p=t.menuIconProps,h=t.styles,m=t.checked,g=t.variantClassName,v=t.theme,b=t.toggle,_=t.getClassNames,y=t.role,x=this.state.menuHidden,k=a||l;this._classNames=_?_(v,i,g,f&&f.className,p&&p.className,k,m,!x,!!this.props.menuProps,this.props.split,!!s):Ps(v,h,i,g,f&&f.className,p&&p.className,k,!!this.props.menuProps,m,!x,this.props.split);var w=this,C=w._ariaDescriptionId,S=w._labelId,B=w._descriptionId,I=!k&&!!d,E=I?"a":"button",z=kt(In(I?{}:{type:"button"},this.props.rootProps,this.props),I?bt:_t,["disabled"]),T=n||z["aria-label"],A=void 0;o?A=C:u&&this.props.onRenderDescription!==pa?A=B:z["aria-describedby"]&&(A=z["aria-describedby"]);var P=void 0;z["aria-labelledby"]?P=z["aria-labelledby"]:A&&!T&&(P=this._hasText()?S:void 0);var R=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),D="menuitemcheckbox"===y||"checkbox"===y,N=D||!0===b?!!m:void 0,F=In(z,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:k&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":T,"aria-labelledby":P,"aria-describedby":A,"aria-disabled":k,"data-is-focusable":R})[D?"aria-checked":"aria-pressed"]=N,e));if(r&&(F["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(E,F);if(this.props.menuProps){var M=this.props.menuProps.id,j=void 0===M?this._labelId+"-menu":M;In(F,{"aria-expanded":!x,"aria-controls":x?null:j,"aria-haspopup":!0})}return this._onRenderContent(E,F)},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){this._isSplitButton&&this._splitButtonContainer.current?(Ro(!0),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(Ro(!0),this._buttonElement.current.focus())},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(e,t){this._openMenu(e,t)},t.prototype._onRenderContent=function(e,t){var o=this,i=this.props,a=e,s=i.menuIconProps,l=i.menuProps,c=i.onRenderIcon,u=void 0===c?this._onRenderIcon:c,d=i.onRenderAriaDescription,f=void 0===d?this._onRenderAriaDescription:d,p=i.onRenderChildren,h=void 0===p?this._onRenderChildren:p,m=i.onRenderMenu,g=void 0===m?this._onRenderMenu:m,v=i.onRenderMenuIcon,b=void 0===v?this._onRenderMenuIcon:v,_=i.disabled,y=i.keytipProps;y&&l&&(y=this._getMemoizedMenuButtonKeytipProps(y));var x=function(e){return r.createElement(a,(0,n.__assign)({},t,e),r.createElement("span",{className:o._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},u(i,o._onRenderIcon),o._onRenderTextContents(),f(i,o._onRenderAriaDescription),h(i,o._onRenderChildren),!o._isSplitButton&&(l||s||o.props.onRenderMenuIcon)&&b(o.props,o._onRenderMenuIcon),l&&!l.doNotLayer&&o._shouldRenderMenu()&&g(o._getMenuProps(l),o._onRenderMenu)))},k=y?r.createElement(Za,{keytipProps:this._isSplitButton?void 0:y,ariaDescribedBy:t["aria-describedby"],disabled:_},(function(e){return x(e)})):x();return l&&l.doNotLayer?r.createElement(r.Fragment,null,k,this._shouldRenderMenu()&&g(this._getMenuProps(l),this._onRenderMenu)):r.createElement(r.Fragment,null,k,r.createElement(pi,null))},t.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,o=t.persistMenu,n=t.renderPersistedMenuHiddenOnMount;return!e||!(!o||!this._renderedVisibleMenu&&!n)},t.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"===typeof this.props.children)},t.prototype._getMenuProps=function(e){var t=this.props.persistMenu,o=this.state.menuHidden;return e.ariaLabel||e.labelElementId||!this._hasText()||(e=(0,n.__assign)((0,n.__assign)({},e),{labelElementId:this._labelId})),(0,n.__assign)((0,n.__assign)({id:this._labelId+"-menu",directionalHint:Nn},e),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:t?o:void 0,className:wt("ms-BaseButton-menuhost",e.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},t.prototype._onRenderSplitButtonContent=function(e,t){var o=this,i=this.props,a=i.styles,s=void 0===a?{}:a,l=i.disabled,c=i.allowDisabledFocus,u=i.checked,d=i.getSplitButtonClassNames,f=i.primaryDisabled,p=i.menuProps,h=i.toggle,m=i.role,g=i.primaryActionButtonProps,v=this.props.keytipProps,b=this.state.menuHidden,_=d?d(!!l,!b,!!u,!!c):s&&Rs(s,!!l,!b,!!u,!!f);In(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),v&&p&&(v=this._getMemoizedMenuButtonKeytipProps(v));var y=kt(t,[],["disabled"]);g&&In(t,g);var x=function(i){return r.createElement("div",(0,n.__assign)({},y,{"data-ktp-target":i?i["data-ktp-target"]:void 0,role:m||"button","aria-disabled":l,"aria-haspopup":!0,"aria-expanded":!b,"aria-pressed":h?!!u:void 0,"aria-describedby":ma(t["aria-describedby"],i?i["aria-describedby"]:void 0),className:_&&_.splitButtonContainer,onKeyDown:o._onSplitButtonContainerKeyDown,onTouchStart:o._onTouchStart,ref:o._splitButtonContainer,"data-is-focusable":!0,onClick:l||f?void 0:o._onSplitButtonPrimaryClick,tabIndex:!l&&!f||c?0:void 0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:o._onSplitContainerFocusCapture}),r.createElement("span",{style:{display:"flex",width:"100%"}},o._onRenderContent(e,t),o._onRenderSplitButtonMenuButton(_,i),o._onRenderSplitButtonDivider(_)))};return v?r.createElement(Za,{keytipProps:v,disabled:l},(function(e){return x(e)})):x()},t.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return r.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}})}return null},t.prototype._onRenderSplitButtonMenuButton=function(e,o){var i=this.props,a=i.allowDisabledFocus,s=i.checked,l=i.disabled,c=i.splitButtonMenuProps,u=i.splitButtonAriaLabel,d=i.primaryDisabled,f=this.state.menuHidden,p=this.props.menuIconProps;void 0===p&&(p={iconName:"ChevronDown"});var h=(0,n.__assign)((0,n.__assign)({},c),{styles:e,checked:s,disabled:l,allowDisabledFocus:a,onClick:this._onMenuClick,menuProps:void 0,iconProps:(0,n.__assign)((0,n.__assign)({},p),{className:this._classNames.menuIcon}),ariaLabel:u,"aria-haspopup":!0,"aria-expanded":!f,"data-is-focusable":!1});return r.createElement(t,(0,n.__assign)({},h,{"data-ktp-execute-target":o?o["data-ktp-execute-target"]:o,onMouseDown:this._onMouseDown,tabIndex:d&&!a?0:-1}))},t.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.focus()}),500)},t.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&(e.which===it&&(e.altKey||e.metaKey))},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t}(r.Component),Fs={outline:0},Ms=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},js=Wo((function(e){var t,o,n=e.semanticColors,r=e.effects,i=e.fonts,a=n.buttonBorder,s=n.disabledBackground,l=n.disabledText,c={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[Do(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),e.fonts.medium,{boxSizing:"border-box",border:"1px solid "+a,userSelect:"none",display:"inline-block",textDecoration:"none",textAlign:"center",cursor:"pointer",padding:"0 16px",borderRadius:r.roundedCorner2,selectors:{":active > span":{position:"relative",left:0,top:0}}}],rootDisabled:[Do(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",selectors:{":hover":Fs,":focus":Fs}}],iconDisabled:{color:l,selectors:(t={},t[Io]={color:"GrayText"},t)},menuIconDisabled:{color:l,selectors:(o={},o[Io]={color:"GrayText"},o)},flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:Ms(i.mediumPlus.fontSize),menuIcon:Ms(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Fo}})),Os=Wo((function(e,t){var o,r,a,s,l,c,u,d,f,p,h,m,g,v=e.effects,b=e.palette,_=e.semanticColors,y={left:-2,top:-2,bottom:-2,right:-2,border:"none"},x={position:"absolute",width:1,right:31,top:8,bottom:8};return i({splitButtonContainer:[Do(e,{highContrastStyle:y,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:(o={},o[Io]=(0,n.__assign)({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},".ms-Button--primary + .ms-Button":{border:"none",selectors:(r={},r[Io]={border:"1px solid WindowText",borderLeftWidth:"0"},r)}}}],splitButtonContainerHovered:{selectors:{".ms-Button--primary":{selectors:(a={},a[Io]={color:"Window",backgroundColor:"Highlight"},a)},".ms-Button.is-disabled":{color:_.buttonTextDisabled,selectors:(s={},s[Io]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},s)}}},splitButtonContainerChecked:{selectors:{".ms-Button--primary":{selectors:(l={},l[Io]=(0,n.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}}},splitButtonContainerCheckedHovered:{selectors:{".ms-Button--primary":{selectors:(c={},c[Io]=(0,n.__assign)({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),c)}}},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(u={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:v.roundedCorner2,borderBottomRightRadius:v.roundedCorner2,border:"1px solid "+b.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},u[Io]={".ms-Button-menuIcon":{color:"WindowText"}},u),splitButtonDivider:(0,n.__assign)((0,n.__assign)({},x),{selectors:(d={},d[Io]={backgroundColor:"WindowText"},d)}),splitButtonDividerDisabled:(0,n.__assign)((0,n.__assign)({},x),{selectors:(f={},f[Io]={backgroundColor:"GrayText"},f)}),splitButtonMenuButtonDisabled:{pointerEvents:"none",border:"none",selectors:(p={":hover":{cursor:"default"},".ms-Button--primary":{selectors:(h={},h[Io]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},h)},".ms-Button-menuIcon":{selectors:(m={},m[Io]={color:"GrayText"},m)}},p[Io]={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:(g={},g[Io]=(0,n.__assign)({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),g)},splitButtonMenuFocused:(0,n.__assign)({},Do(e,{highContrastStyle:y,inset:2}))},t)}));var Hs=Wo((function(e,t,o){var r=js(e),a=Os(e);return i(r,{root:{minWidth:"80px",height:"32px"},label:{fontWeight:Bo.BO.semibold}},o?function(e){var t,o,r,i,a,s,l,c,u,d=e.palette,f=e.semanticColors;return{root:{backgroundColor:f.primaryButtonBackground,border:"1px solid "+f.primaryButtonBackground,color:f.primaryButtonText,selectors:(t={},t[Io]=(0,n.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t[".ms-Fabric--isFocusVisible &:focus"]={selectors:{":after":{border:"none",outlineColor:d.white}}},t)},rootHovered:{backgroundColor:f.primaryButtonBackgroundHovered,border:"1px solid "+f.primaryButtonBackgroundHovered,color:f.primaryButtonTextHovered,selectors:(o={},o[Io]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},o)},rootPressed:{backgroundColor:f.primaryButtonBackgroundPressed,border:"1px solid "+f.primaryButtonBackgroundPressed,color:f.primaryButtonTextPressed,selectors:(r={},r[Io]=(0,n.__assign)({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},rootExpanded:{backgroundColor:f.primaryButtonBackgroundPressed,color:f.primaryButtonTextPressed},rootChecked:{backgroundColor:f.primaryButtonBackgroundPressed,color:f.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:f.primaryButtonBackgroundPressed,color:f.primaryButtonTextPressed},rootDisabled:{color:f.primaryButtonTextDisabled,backgroundColor:f.primaryButtonBackgroundDisabled,selectors:(i={},i[Io]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},i)},splitButtonContainer:{selectors:(a={},a[Io]={border:"none"},a)},splitButtonDivider:(0,n.__assign)((0,n.__assign)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:d.white,selectors:(s={},s[Io]={backgroundColor:"Window"},s)}),splitButtonMenuButton:{backgroundColor:f.primaryButtonBackground,color:f.primaryButtonText,selectors:(l={},l[Io]={backgroundColor:"WindowText"},l[":hover"]={backgroundColor:f.primaryButtonBackgroundHovered,selectors:(c={},c[Io]={color:"Highlight"},c)},l)},splitButtonMenuButtonDisabled:{backgroundColor:f.primaryButtonBackgroundDisabled,selectors:{":hover":{backgroundColor:f.primaryButtonBackgroundDisabled}}},splitButtonMenuButtonChecked:{backgroundColor:f.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:f.primaryButtonBackgroundPressed}}},splitButtonMenuButtonExpanded:{backgroundColor:f.primaryButtonBackgroundPressed,selectors:{":hover":{backgroundColor:f.primaryButtonBackgroundPressed}}},splitButtonMenuIcon:{color:f.primaryButtonText},splitButtonMenuIconDisabled:{color:d.neutralTertiary,selectors:(u={},u[Io]={color:"GrayText"},u)}}}(e):function(e){var t,o,r,i,a,s=e.semanticColors,l=e.palette,c=s.buttonBackground,u=s.buttonBackgroundPressed,d=s.buttonBackgroundHovered,f=s.buttonBackgroundDisabled,p=s.buttonText,h=s.buttonTextHovered,m=s.buttonTextDisabled,g=s.buttonTextChecked,v=s.buttonTextCheckedHovered;return{root:{backgroundColor:c,color:p},rootHovered:{backgroundColor:d,color:h,selectors:(t={},t[Io]={borderColor:"Highlight",color:"Highlight"},t)},rootPressed:{backgroundColor:u,color:g},rootExpanded:{backgroundColor:u,color:g},rootChecked:{backgroundColor:u,color:g},rootCheckedHovered:{backgroundColor:u,color:v},rootDisabled:{color:m,backgroundColor:f,selectors:(o={},o[Io]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o)},splitButtonContainer:{selectors:(r={},r[Io]={border:"none"},r)},splitButtonMenuButton:{color:l.white,backgroundColor:"transparent",selectors:{":hover":{backgroundColor:l.neutralLight,selectors:(i={},i[Io]={color:"Highlight"},i)}}},splitButtonMenuButtonDisabled:{backgroundColor:s.buttonBackgroundDisabled,selectors:{":hover":{backgroundColor:s.buttonBackgroundDisabled}}},splitButtonDivider:(0,n.__assign)((0,n.__assign)({},{position:"absolute",width:1,right:31,top:8,bottom:8}),{backgroundColor:l.neutralTertiaryAlt,selectors:(a={},a[Io]={backgroundColor:"WindowText"},a)}),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:l.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:l.neutralQuaternaryAlt}}},splitButtonMenuButtonExpanded:{backgroundColor:l.neutralQuaternaryAlt,selectors:{":hover":{backgroundColor:l.neutralQuaternaryAlt}}},splitButtonMenuIcon:{color:s.buttonText},splitButtonMenuIconDisabled:{color:s.buttonTextDisabled}}}(e),a,t)})),Ls=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,o=void 0!==t&&t,i=e.styles,a=e.theme;return r.createElement(Ns,(0,n.__assign)({},this.props,{variantClassName:o?"ms-Button--primary":"ms-Button--default",styles:Hs(a,i,o),onRenderDescription:pa}))},t=(0,n.__decorate)([ha("DefaultButton",["theme","styles"],!0)],t)}(r.Component),qs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.render=function(){return r.createElement(Ls,(0,n.__assign)({},this.props,{primary:!0,onRenderDescription:pa}))},t=(0,n.__decorate)([ha("PrimaryButton",["theme","styles"],!0)],t)}(r.Component),Ws=Wo((function(e,t){var o,n=js(e),r=Os(e),a=e.palette;return i(n,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:{color:a.themeDarkAlt,backgroundColor:a.neutralLighter,selectors:(o={},o[Io]={borderColor:"Highlight",color:"Highlight"},o)},rootHasMenu:{width:"auto"},rootPressed:{color:a.themeDark,backgroundColor:a.neutralLight},rootExpanded:{color:a.themeDark,backgroundColor:a.neutralLight},rootChecked:{color:a.themeDark,backgroundColor:a.neutralLight},rootCheckedHovered:{color:a.themeDark,backgroundColor:a.neutralQuaternaryAlt},rootDisabled:{color:a.neutralTertiaryAlt}},r,t)})),Vs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,n.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,o=e.theme;return r.createElement(Ns,(0,n.__assign)({},this.props,{variantClassName:"ms-Button--icon",styles:Ws(o,t),onRenderText:pa,onRenderDescription:pa}))},t=(0,n.__decorate)([ha("IconButton",["theme","styles"],!0)],t)}(r.Component),Gs=n.__assign;function Ks(e,t){for(var o=[],i=2;i<arguments.length;i++)o[i-2]=arguments[i];var a=e;return a.isSlot?0===(o=r.Children.toArray(o)).length?a(t):a((0,n.__assign)((0,n.__assign)({},t),{children:o})):r.createElement.apply(r,(0,n.__spreadArray)([e,t],o))}function Us(e,t){void 0===t&&(t={});var o=t.defaultProp,i=void 0===o?"children":o;return function(t,o,a,s,l){if(r.isValidElement(o))return o;var c=function(e,t){var o,n;"string"===typeof t||"number"===typeof t||"boolean"===typeof t?((o={})[e]=t,n=o):n=t;return n}(i,o),u=function(e,t){for(var o=[],n=2;n<arguments.length;n++)o[n-2]=arguments[n];for(var r={},i=[],a=0,s=o;a<s.length;a++){var l=s[a];i.push(l&&l.className),Gs(r,l)}return r.className=St([e,i],{rtl:ve(t)}),r}(s,l,t,c);if(a){if(a.component){var d=a.component;return r.createElement(d,(0,n.__assign)({},u))}if(a.render)return a.render(u,e)}return r.createElement(e,(0,n.__assign)({},u))}}var Xs=Wo((function(e){return Us(e)}));function Ys(e,t){var o={},n=e,r=function(e){if(t.hasOwnProperty(e)){var r=function(o){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(r.length>0)throw new Error("Any module using getSlots must use withSlots. Please see withSlots javadoc for more info.");return Zs(t[e],o,n[e],n.slots&&n.slots[e],n._defaultStyles&&n._defaultStyles[e],n.theme)};r.isSlot=!0,o[e]=r}};for(var i in t)r(i);return o}function Zs(e,t,o,n,r,i){return void 0!==e.create?e.create(t,o,n,r):Xs(e)(t,o,n,r,i)}function Qs(e,t){void 0===t&&(t={});var o=t.factoryOptions,a=(void 0===o?{}:o).defaultProp,s=function(o){var a=function(e,t,o){var n=["theme","styles","tokens"];return v.getSettings(o||n,e,t.customizations)}(t.displayName,r.useContext(b),t.fields),s=t.state;s&&(o=(0,n.__assign)((0,n.__assign)({},o),s(o)));var l=o.theme||a.theme,c=$s(o,l,t.tokens,a.tokens,o.tokens),u=function(e,t,o){for(var n=[],r=3;r<arguments.length;r++)n[r-3]=arguments[r];return i.apply(void 0,n.map((function(n){return"function"===typeof n?n(e,t,o):n})))}(o,l,c,t.styles,a.styles,o.styles),d=(0,n.__assign)((0,n.__assign)({},o),{styles:u,tokens:c,_defaultStyles:u,theme:l});return e(d)};return s.displayName=t.displayName||e.name,a&&(s.create=Us(s,{defaultProp:a})),Gs(s,t.statics),s}function $s(e,t){for(var o=[],r=2;r<arguments.length;r++)o[r-2]=arguments[r];for(var i={},a=0,s=o;a<s.length;a++){var l=s[a];l&&(l="function"===typeof l?l(e,t):l,Array.isArray(l)&&(l=$s.apply(void 0,(0,n.__spreadArray)([e,t],l))),Gs(i,l))}return i}var Js=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},el=function(e){var t=parseFloat(e),o=isNaN(t)?0:t,n=isNaN(t)?"":t.toString();return{value:o,unit:e.substring(n.toString().length)||"px"}},tl=function(e,t){if(void 0===e||"number"===typeof e||""===e)return e;var o=e.split(" ");return o.length<2?Js(e,t):o.reduce((function(e,o){return Js(e,t)+" "+Js(o,t)}))},ol={start:"flex-start",end:"flex-end"},nl={root:"ms-Stack",inner:"ms-Stack-inner"},rl={root:"ms-StackItem"},il={start:"flex-start",end:"flex-end"},al=Qs((function(e){var t=e.children,o=kt(e,gt);return null==t?null:Ks(Ys(e,{root:"div"}).root,(0,n.__assign)({},o),t)}),{displayName:"StackItem",styles:function(e,t,o){var n=e.grow,r=e.shrink,i=e.disableShrink,a=e.align,s=e.verticalFill,l=e.order,c=e.className,u=e.basis,d=void 0===u?"auto":u,f=Xo(rl,t);return{root:[t.fonts.medium,f.root,{flexBasis:d,margin:o.margin,padding:o.padding,height:s?"100%":"auto",width:"auto"},n&&{flexGrow:!0===n?1:n},(i||!n&&!r)&&{flexShrink:0},r&&!i&&{flexShrink:1},a&&{alignSelf:il[a]||a},l&&{order:l},c]}}});var sl=Qs((function(e){var t=e.as,o=void 0===t?"div":t,i=e.disableShrink,a=e.wrap,s=(0,n.__rest)(e,["as","disableShrink","wrap"]),l=r.Children.toArray(e.children);1===l.length&&r.isValidElement(l[0])&&l[0].type===r.Fragment&&(l=l[0].props.children),l=r.Children.map(l,(function(e,t){if(!e)return null;if((a=e)&&"object"===typeof a&&a.type&&a.type.displayName===al.displayName){var o={shrink:!i};return r.cloneElement(e,(0,n.__assign)((0,n.__assign)({},o),e.props))}var a;return e}));var c=kt(s,gt),u=Ys(e,{root:o,inner:"div"});return Ks(u.root,(0,n.__assign)({},c),a?Ks(u.inner,null,l):l)}),{displayName:"Stack",styles:function(e,t,o){var r,i,a,s,l,c,u,d=e.verticalFill,f=e.horizontal,p=e.reversed,h=e.grow,m=e.wrap,g=e.horizontalAlign,v=e.verticalAlign,b=e.disableShrink,_=e.className,y=Xo(nl,t),x=o&&o.childrenGap?o.childrenGap:e.gap,k=o&&o.maxHeight?o.maxHeight:e.maxHeight,w=o&&o.maxWidth?o.maxWidth:e.maxWidth,C=o&&o.padding?o.padding:e.padding,S=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 o=e.split(" ");if(o.length>2)return{rowGap:{value:0,unit:"px"},columnGap:{value:0,unit:"px"}};if(2===o.length)return{rowGap:el(Js(o[0],t)),columnGap:el(Js(o[1],t))};var n=el(Js(e,t));return{rowGap:n,columnGap:n}}(x,t),B=S.rowGap,I=S.columnGap,E=""+-.5*I.value+I.unit,z=""+-.5*B.value+B.unit,T={textOverflow:"ellipsis"},A={"> *:not(.ms-StackItem)":{flexShrink:b?0:1}};return m?{root:[y.root,{flexWrap:"wrap",maxWidth:w,maxHeight:k,width:"auto",overflow:"visible",height:"100%"},g&&(r={},r[f?"justifyContent":"alignItems"]=ol[g]||g,r),v&&(i={},i[f?"alignItems":"justifyContent"]=ol[v]||v,i),_,{display:"flex"},f&&{height:d?"100%":"auto"}],inner:[y.inner,{display:"flex",flexWrap:"wrap",marginLeft:E,marginRight:E,marginTop:z,marginBottom:z,overflow:"visible",boxSizing:"border-box",padding:tl(C,t),width:0===I.value?"100%":"calc(100% + "+I.value+I.unit+")",maxWidth:"100vw",selectors:(0,n.__assign)({"> *":(0,n.__assign)({margin:""+.5*B.value+B.unit+" "+.5*I.value+I.unit},T)},A)},g&&(a={},a[f?"justifyContent":"alignItems"]=ol[g]||g,a),v&&(s={},s[f?"alignItems":"justifyContent"]=ol[v]||v,s),f&&{flexDirection:p?"row-reverse":"row",height:0===B.value?"100%":"calc(100% + "+B.value+B.unit+")",selectors:{"> *":{maxWidth:0===I.value?"100%":"calc(100% - "+I.value+I.unit+")"}}},!f&&{flexDirection:p?"column-reverse":"column",height:"calc(100% + "+B.value+B.unit+")",selectors:{"> *":{maxHeight:0===B.value?"100%":"calc(100% - "+B.value+B.unit+")"}}}]}:{root:[y.root,{display:"flex",flexDirection:f?p?"row-reverse":"row":p?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:d?"100%":"auto",maxWidth:w,maxHeight:k,padding:tl(C,t),boxSizing:"border-box",selectors:(0,n.__assign)((l={"> *":T},l[p?"> *:not(:last-child)":"> *:not(:first-child)"]=[f&&{marginLeft:""+I.value+I.unit},!f&&{marginTop:""+B.value+B.unit}],l),A)},h&&{flexGrow:!0===h?1:h},g&&(c={},c[f?"justifyContent":"alignItems"]=ol[g]||g,c),v&&(u={},u[f?"alignItems":"justifyContent"]=ol[v]||v,u),_]}},statics:{Item:al}});function ll(e){var t=r.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return Di((function(){t.current=e}),[e]),Hr((function(){return function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=t.current;return n.apply(void 0,e)}}))}var cl={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1},ul=r.forwardRef((function(e,t){var o,i=r.useRef(null),a=r.useRef(null),s=r.useRef(null),l=Pr(i,t),c=Nr(),u=null===(o=Ka(!1))||void 0===o||o,d=Kn(cl,e),f=Hr({hasFocus:!1,focusStackId:ns("ftz-",d.id)}),p=d.children,h=d.componentRef,m=d.disabled,g=d.disableFirstFocus,v=d.forceFocusInsideTrap,b=d.focusPreviouslyFocusedInnerElement,_=d.firstFocusableSelector,y=d.firstFocusableTarget,x=d.disableRestoreFocus,k=void 0===x?d.ignoreExternalFocusing:x,w=d.isClickableOutsideFocusTrap,C=d.enableAriaHiddenSiblings,S={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:m?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},B=r.useCallback((function(e){e!==a.current&&e!==s.current&&Ke(e)}),[]),I=ll((function(){if(i.current){var e=f.previouslyFocusedElementInTrapZone;if(b&&e&&Fe(i.current,e))B(e);else{var t=null;if("string"===typeof y)t=i.current.querySelector(y);else if(y)t=y(i.current);else if(_){var o="string"===typeof _?_:_();t=i.current.querySelector("."+o)}t||(t=je(i.current,i.current.firstChild,!1,!1,!1,!0)),t&&B(t)}}})),E=function(e){if(!m&&i.current){var t,o,n,r=e===f.hasFocus?(t=i.current,o=s.current,void 0===(n=!1)&&(n=!0),Me(t,o,n,!1,!0,!0,!1,!0)):function(e,t,o,n){return void 0===n&&(n=!0),je(e,t,n,!1,!1,o,!1,!0)}(i.current,a.current,!0,!1);r&&(r===a.current||r===s.current?I():r.focus())}},z=ll((function(e){if(ul.focusStack=ul.focusStack.filter((function(e){return f.focusStackId!==e})),c){var t=c.activeElement;k||"function"!==typeof(null===e||void 0===e?void 0:e.focus)||!Fe(i.current,t)&&t!==c.body||B(e)}})),T=ll((function(e){if(!m&&f.focusStackId===ul.focusStack.slice(-1)[0]){var t=e.target;t&&!Fe(i.current,t)&&(c&&c.activeElement===c.body?setTimeout((function(){c&&c.activeElement===c.body&&(I(),f.hasFocus=!0)}),0):(I(),f.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return r.useEffect((function(){var e=[];return v&&e.push(Gn(window,"focus",T,!0)),w||e.push(Gn(window,"click",T,!0)),function(){e.forEach((function(e){return e()}))}}),[v,w]),r.useEffect((function(){if(!m&&(u||v)&&i.current){ul.focusStack.push(f.focusStackId);var e=d.elementToFocusOnDismiss||c.activeElement;return g||Fe(i.current,e)||I(),function(){return z(e)}}}),[v,m]),r.useEffect((function(){if(!m&&C)return zr(i.current)}),[m,C,i]),function(e){var t=r.useRef(e);t.current=e,r.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])}((function(){delete f.previouslyFocusedElementInTrapZone})),function(e,t,o){r.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:o}}),[o,t])}(h,f.previouslyFocusedElementInTrapZone,I),r.createElement("div",(0,n.__assign)({"aria-labelledby":d.ariaLabelledBy},kt(d,xt),{ref:l,onFocusCapture:function(e){var t;null===(t=d.onFocusCapture)||void 0===t||t.call(d,e),e.target===a.current?E(!0):e.target===s.current&&E(!1),f.hasFocus=!0,e.target!==e.currentTarget&&e.target!==a.current&&e.target!==s.current&&(f.previouslyFocusedElementInTrapZone=e.target)},onBlurCapture:function(e){var t;null===(t=d.onBlurCapture)||void 0===t||t.call(d,e);var o=e.relatedTarget;null===e.relatedTarget&&(o=c.activeElement),Fe(i.current,o)||(f.hasFocus=!1)}}),r.createElement("div",(0,n.__assign)({},S,{ref:a})),p,r.createElement("div",(0,n.__assign)({},S,{ref:s})))}));ul.displayName="FocusTrapZone",ul.focusStack=[];var dl=xe(),fl=r.forwardRef((function(e,t){var o,i,a,s,l,c,u,d=r.useRef(null),f=Nr(),p=Pr(d,t),h=ns("teaching-bubble-content-"),m=ns("teaching-bubble-title-"),g=null!==(o=e.ariaDescribedBy)&&void 0!==o?o:h,v=null!==(i=e.ariaLabelledBy)&&void 0!==i?i:m,b=e.illustrationImage,_=e.primaryButtonProps,y=e.secondaryButtonProps,x=e.headline,k=e.hasCondensedHeadline,w=e.hasCloseButton,C=void 0===w?e.hasCloseIcon:w,S=e.onDismiss,B=e.closeButtonAriaLabel,I=e.hasSmallHeadline,E=e.isWide,z=e.styles,T=e.theme,A=e.footerContent,P=e.focusTrapZoneProps,R=dl(z,{theme:T,hasCondensedHeadline:k,hasSmallHeadline:I,hasCloseButton:C,hasHeadline:!!x,isWide:E,primaryButtonClassName:_?_.className:void 0,secondaryButtonClassName:y?y.className:void 0});if(Ar(f,"keydown",r.useCallback((function(e){S&&e.which===Ze&&S(e)}),[S])),b&&b.src&&(a=r.createElement("div",{className:R.imageContent},r.createElement(na,(0,n.__assign)({},b)))),x){var D="string"===typeof x?"p":"div";s=r.createElement("div",{className:R.header},r.createElement(D,{role:"heading","aria-level":3,className:R.headline,id:v},x))}if(e.children){var N="string"===typeof e.children?"p":"div";l=r.createElement("div",{className:R.body},r.createElement(N,{className:R.subText,id:g},e.children))}return(_||y||A)&&(c=r.createElement(sl,{className:R.footer,horizontal:!0,horizontalAlign:A?"space-between":"end"},r.createElement(sl.Item,{align:"center"},r.createElement("span",null,A)),r.createElement(sl.Item,null,_&&r.createElement(qs,(0,n.__assign)({},_,{className:R.primaryButton})),y&&r.createElement(Ls,(0,n.__assign)({},y,{className:R.secondaryButton}))))),C&&(u=r.createElement(Vs,{className:R.closeButton,iconProps:{iconName:"Cancel"},ariaLabel:B,onClick:S})),function(e,t){r.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,d),r.createElement("div",{className:R.content,ref:p,role:"dialog",tabIndex:-1,"aria-labelledby":v,"aria-describedby":g,"data-is-focusable":!0},a,r.createElement(ul,(0,n.__assign)({isClickableOutsideFocusTrap:!0},P),r.createElement("div",{className:R.bodyContent},s,l,c,u)))})),pl={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"},hl=Wo((function(){return function(e){var t=M.getInstance(),o=[];for(var n in e)e.hasOwnProperty(n)&&o.push(n,"{",ce(L(),e[n]),"}");var r=o.join(""),i=t.classNameFromKey(r);if(i)return i;var a=t.getClassName();return t.insertRule("@keyframes "+a+"{"+r+"}",!0),t.cacheClassName(a,r,[],["keyframes",r]),a}({"0%":{opacity:0,animationTimingFunction:_o,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})})),ml=function(e,t){var o=t||{},n=o.calloutWidth,r=o.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:n||"calc(100% + 1px)",animationName:""+hl(),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:r||456}]},gl=function(e,t,o){return t?[e.headerIsCondensed,{marginBottom:14}]:[o&&e.headerIsSmall,!o&&e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},vl=function(e){var t,o,r,i=e.hasCondensedHeadline,a=e.hasSmallHeadline,s=e.hasCloseButton,l=e.hasHeadline,c=e.isWide,u=e.primaryButtonClassName,d=e.secondaryButtonClassName,f=e.theme,p=e.calloutProps,h=void 0===p?{className:void 0,theme:f}:p,m=!i&&!a,g=f.palette,v=f.semanticColors,b=f.fonts,_=Xo(pl,f),y=Do(f,{outlineColor:"transparent",borderColor:"transparent"});return{root:[_.root,b.medium,h.className],body:[_.body,s&&!l&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[_.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[_.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:g.white,fontSize:b.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,n.__spreadArray)((0,n.__spreadArray)([_.content],ml(c)),[c&&{display:"flex"}]),footer:[_.footer,{display:"flex",flex:"auto",alignItems:"center",color:g.white,selectors:(t={},t["."+_.button+":not(:first-child)"]={marginLeft:10},t)}],header:(0,n.__spreadArray)((0,n.__spreadArray)([_.header],gl(_,i,a)),[s&&{marginRight:24},(i||a)&&[b.medium,{fontWeight:Bo.BO.semibold}]]),headline:[_.headline,{margin:0,color:g.white,fontWeight:Bo.BO.semibold,overflowWrap:"break-word"},m&&[{fontSize:b.xLarge.fontSize}]],imageContent:[_.header,_.image,c&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[_.primaryButton,u,y,{backgroundColor:g.white,borderColor:g.white,color:g.themePrimary,whiteSpace:"nowrap",selectors:(o={},o["."+_.buttonLabel]=b.medium,o[":hover"]={backgroundColor:g.themeLighter,borderColor:g.themeLighter,color:g.themeDark},o[":focus"]={backgroundColor:g.themeLighter,border:"1px solid "+g.black,color:g.themeDark,outline:"1px solid "+g.white,outlineOffset:"-2px"},o[":active"]={backgroundColor:g.white,borderColor:g.white,color:g.themePrimary},o)}],secondaryButton:[_.secondaryButton,d,y,{backgroundColor:g.themePrimary,borderColor:g.white,whiteSpace:"nowrap",selectors:(r={},r["."+_.buttonLabel]=[b.medium,{color:g.white}],r[":hover"]={backgroundColor:g.themeDarkAlt,borderColor:g.white},r[":focus"]={backgroundColor:g.themeDark,border:"1px solid "+g.black,outline:"1px solid "+g.white,outlineOffset:"-2px"},r[":active"]={backgroundColor:g.themePrimary,borderColor:g.white},r)}],subText:[_.subText,{margin:0,fontSize:b.medium.fontSize,color:g.white,fontWeight:Bo.BO.regular}],subComponentStyles:{callout:{root:(0,n.__spreadArray)((0,n.__spreadArray)([],ml(c,h)),[b.medium]),beak:[{background:g.themePrimary}],calloutMain:[{background:g.themePrimary}]}}}},bl=x(fl,vl,void 0,{scope:"TeachingBubbleContent"}),_l={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:Wn},yl=xe(),xl=r.forwardRef((function(e,t){var o=r.useRef(null),i=Pr(o,t),a=e.calloutProps,s=e.targetElement,l=e.onDismiss,c=e.hasCloseButton,u=void 0===c?e.hasCloseIcon:c,d=e.isWide,f=e.styles,p=e.theme,h=e.target,m=r.useMemo((function(){return(0,n.__assign)((0,n.__assign)((0,n.__assign)({},_l),a),{theme:p})}),[a,p]),g=yl(f,{theme:p,isWide:d,calloutProps:m,hasCloseButton:u}),v=g.subComponentStyles?g.subComponentStyles.callout:void 0;return function(e,t){r.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,o),r.createElement(Hi,(0,n.__assign)({target:h||s,onDismiss:l},m,{className:g.root,styles:v,hideOverflow:!0}),r.createElement("div",{ref:i},r.createElement(bl,(0,n.__assign)({},e))))}));xl.displayName="TeachingBubble";var kl=x(xl,vl,void 0,{scope:"TeachingBubble"}),wl=["calloutProps"],Cl=function(e){(0,E.A)(o,e);var t=(0,z.A)(o);function o(){return(0,S.A)(this,o),t.apply(this,arguments)}return(0,B.A)(o,[{key:"render",value:function(){var e=this.props,t=e.calloutProps,o=(0,C.A)(e,wl);return r.createElement(kl,(0,w.A)((0,w.A)({hasCondensedHeadline:!0,hasSmallHeadline:!0,hasCloseIcon:!0,isWide:!1},o),{},{calloutProps:(0,w.A)({beakWidth:12,directionalHint:Nn,directionalHintFixed:!0},t)}))}}]),o}(r.Component),Sl=x(Cl,(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"}),Bl=["className","title","disabled"],Il=xe(),El=x($i,{root:{display:"flex"}},void 0,{scope:"FlexTooltipHost"}),zl=function(e){(0,E.A)(o,e);var t=(0,z.A)(o);function o(e){var n;return(0,S.A)(this,o),n=t.call(this,e),(0,T.A)((0,I.A)(n),"_linkTipId",Be("linkTip")),(0,T.A)((0,I.A)(n),"_onClick",(function(e){n.props.onClick&&n.props.onClick(e,n.props.item)})),(0,T.A)((0,I.A)(n),"_setLinkRef",(function(e){n.state.linkRef!==e&&n.setState({linkRef:e})})),n.state={linkRef:null},n}return(0,B.A)(o,[{key:"render",value:function(){var e=function(e){var t=e.name,o=e.hasNestedMenu,n=e.isNested,i=e.isNavCollapsed,a=e.primaryIconName,s=e.isCollapsibleSection,l=e.onRenderSecondaryContent,c=void 0;return o&&(c="ChevronDownMed"),r.createElement(r.Fragment,null,r.createElement("div",{className:B.iconContainer,role:"presentation"},a&&!(i&&s)&&r.createElement(ua,{iconName:a,className:B.icon})),t&&r.createElement("div",{className:B.text},t),l&&r.createElement("div",{className:B.secondaryContent},l(e)),(!i||s||n)&&r.createElement(ua,{iconName:c,className:B.secondaryIcon,role:"presentation"}))},t=this.props,o=t.name,n=t.hasNestedMenu,i=t.isNested,a=t.isNavCollapsed,s=t.isExpanded,l=t.isSelected,c=t.hasSelectedNestedLink,u=t.styles,d=t.primaryIconName,f=t.href,p=t.forceAnchor,h=t.theme,m=t.showTeachingBubble,g=t.teachingBubbleProps,v=t.isParentExpanded,b=t.preserveIconSpace,_=t.tooltipProps,y=t.ariaLabel,x=t.isCollapsibleSection,k=t.onRenderNavContent,S=void 0===k?e:k,B=Il(u,{theme:h,isNavCollapsed:!!a,hasNestedMenu:!!n,isExpanded:!!s,isSelected:!!l,hasSelectedNestedLink:!!c,isNested:!!i,hasIcon:!!d,preserveIconSpace:!!b,isCollapsibleSection:!!x,colorThrowContext:this.context}),I=kt(this.props,f?bt:_t),E=I.className,z=I.title,T=I.disabled,A=(0,C.A)(I,Bl),P=S(this.props,e);p&&!f&&console.warn("If you force true without href prop the link will not work with keyboard");var R=Ct(B.root,E),D=f||p?r.createElement("a",(0,w.A)((0,w.A)({"aria-label":y},A),{},{onClick:this._onClick,className:R,ref:this._setLinkRef}),P):r.createElement("button",(0,w.A)((0,w.A)({"aria-label":y},A),{},{onClick:this._onClick,className:R,ref:this._setLinkRef}),P),N=m&&(!i||!a&&i&&v);return r.createElement(r.Fragment,null,T||void 0===z&&!a&&!_?D:r.createElement(El,(0,w.A)({id:this._linkTipId,content:null!==z&&void 0!==z?z:a&&!i&&o,directionalHint:Wn},_),D),N&&r.createElement(Sl,(0,w.A)({target:this.state.linkRef},g)))}}]),o}(r.Component);function Tl(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}function Al(e){if(Tl()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}(0,T.A)(zl,"contextType",wn.s);var Pl,Rl=void 0;try{Rl=window}catch(Sc){}function Dl(e){if(Tl()&&"undefined"!==typeof Rl){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:Rl}}function Nl(e){Pl!==e&&(Pl=e)}function Fl(){return void 0===Pl&&(Pl="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),Pl}Pl=Fl();var Ml,jl="isRTL";function Ol(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===Ml){var t=function(e){var t=null;try{var o=Dl();t=o?o.sessionStorage.getItem(e):null}catch(Sc){}return t}(jl);null!==t&&function(e,t){void 0===t&&(t=!1);var o=Al();o&&o.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&function(e,t){var o;try{null===(o=Dl())||void 0===o||o.sessionStorage.setItem(e,t)}catch(Sc){}}(jl,e?"1":"0");Nl(Ml=e)}(Ml="1"===t);var o=Al();void 0===Ml&&o&&Nl(Ml="rtl"===(o.body&&o.body.getAttribute("dir")||o.documentElement.getAttribute("dir")))}return!!Ml}var Hl=function(){return Ol()?"@noflip":""},Ll=o(72495),ql=o(41441),Wl=!1,Vl=0,Gl={empty:!0},Kl={},Ul="undefined"===typeof WeakMap?null:WeakMap;function Xl(){Vl++}function Yl(e,t,o){if(void 0===t&&(t=100),void 0===o&&(o=!1),!Ul)return e;if(!Wl){var n=ql.n.getInstance();n&&n.onReset&&ql.n.getInstance().onReset(Xl),Wl=!0}var r,i=0,a=Vl;return function(){for(var n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var l=r;(void 0===r||a!==Vl||t>0&&i>t)&&(r=Ql(),i=0,a=Vl),l=r;for(var c=0;c<n.length;c++){var u=Zl(n[c]);l.map.has(u)||l.map.set(u,Ql()),l=l.map.get(u)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,n),i++),!o||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,n)),l.value}}function Zl(e){return e?"object"===typeof e||"function"===typeof e?e:(Kl[e]||(Kl[e]={val:e}),Kl[e]):Gl}function Ql(){return{map:Ul?new Ul:null}}var $l,Jl,ec=0,tc=0,oc=[];var nc,rc,ic=Yl((function(e){var t,o;if("undefined"!==typeof window)if(null!==(t=$l)&&void 0!==t&&t.parentElement&&null!==(o=$l)&&void 0!==o&&o.sheet)void 0!==Jl&&$l.sheet.deleteRule(Jl),Jl=$l.sheet.insertRule(":root {--scrollbar-width: ".concat(e,"px;}"));else{var n,r,i,a,s,l,c;$l&&document.getElementsByTagName("head")[0].removeChild($l);var u=null!==(n=null===(r=window.FabricConfig)||void 0===r||null===(i=r.mergeStyles)||void 0===i||null===(a=i.cspSettings)||void 0===a?void 0:a.nonce)&&void 0!==n?n:null===(s=ql.n.getInstance()._config)||void 0===s||null===(l=s.cspSettings)||void 0===l?void 0:l.nonce;$l=document.createElement("style"),u&&$l.setAttribute("nonce",u),document.getElementsByTagName("head")[0].appendChild($l),Jl=null===(c=$l.sheet)||void 0===c?void 0:c.insertRule(":root {--scrollbar-width: ".concat(e,"px;}"))}}),1),ac=function e(){void 0!==nc&&cancelAnimationFrame(nc);var t=1;"undefined"!==typeof window&&(nc=requestAnimationFrame((function(){rc&&(rc.onchange=null),(rc=matchMedia("(resolution: ".concat(window.devicePixelRatio,"dppx)"))).onchange=e,nc=void 0})),t=window.devicePixelRatio),ic(function(e){if(0!==ec&&tc===e||"undefined"===typeof window)return ec;tc=e;var t=document.createElement("div");t.setAttribute("class",(0,Ll.Z)({width:100,height:100,overflow:"scroll",position:"absolute",top:-999,display:"block !important"}));var o=document.createElement("div");return o.setAttribute("class",(0,Ll.Z)({width:100,height:200})),t.appendChild(o),document.body.appendChild(t),ec=t.offsetWidth-t.clientWidth,document.body.removeChild(t),oc.forEach((function(e){e(ec)})),ec}(t))};ac();ac();var sc=Bo.s.medium,lc=40,cc=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}}},uc=Bo.s.icon,dc="NavLink",fc=x(zl,(function(e){var t=e.isNavCollapsed,o=e.isExpanded,n=e.hasNestedMenu,r=e.isSelected,i=e.hasSelectedNestedLink,a=e.isNested,s=e.theme,l=e.hasIcon,c=e.preserveIconSpace,u=e.isCollapsibleSection,d=e.colorThrowContext,f=!t&&a?"34px":"4px";return{root:[s.fonts.medium,Do(s),{minHeight:a?32:lc,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:(0,wn.j)(s.semanticColors.navItemBackgroundHovered,"navItemBackgroundHovered",dc,{context:d,theme:s})},":active":{backgroundColor:(0,wn.j)(s.semanticColors.navItemBackgroundPressed,"navItemBackgroundPressed",dc,{context:d,theme:s})}}],iconContainer:[{display:"flex",flex:"0 0 ".concat(t&&u?12:l||a||c?48:16,"px"),alignItems:"center",justifyContent:"center","::before":[(0,T.A)({content:'" "',position:"absolute",left:f,width:"4px",height:"24px",backgroundColor:s.palette.themePrimary,opacity:0,transition:"opacity 300ms"},Io,{backgroundColor:"Highlight"}),a&&{height:"18px",top:"7px"},!(u&&o)&&(!t&&!o&&i||!t&&!n&&r||t&&r)&&{opacity:1}],'*[dir="rtl"] &::before':{right:"".concat(f," ").concat(Hl())}},t&&a&&{flex:"0 0 12px"}],icon:{fontSize:uc,color:s.palette.neutralPrimary},secondaryContent:{flex:"0 0 auto"},secondaryIcon:[{flex:"0 0 ".concat(n?"48px":"16px"),fontSize:s.fonts.small.fontSize,color:s.palette.neutralPrimary,transition:"transform 200ms",textAlign:"center"},o&&{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),pc=24,hc=xe(),mc=0,gc=function(e){(0,E.A)(o,e);var t=(0,z.A)(o);function o(e){var n;return(0,S.A)(this,o),n=t.call(this,e),(0,T.A)((0,I.A)(n),"navLinkGroupRef",void 0),(0,T.A)((0,I.A)(n),"navRootRef",void 0),(0,T.A)((0,I.A)(n),"instanceNumber",void 0),(0,T.A)((0,I.A)(n),"uniqueId",void 0),(0,T.A)((0,I.A)(n),"_onLinkClicked",(function(e,t){n.setState((0,w.A)((0,w.A)({},n.props.isNavCollapsed&&{isKeyboardExpanded:!n.state.isKeyboardExpanded}),void 0===n.props.isExpanded&&{isExpanded:!n.state.isExpanded}),(function(){n.props.onCollapse&&n.props.onCollapse()})),n.props.isNavCollapsed&&n._offsetUpdated(),n.props.onExpanded&&n.props.onExpanded(!n.state.isExpanded),n.props.link.onClick&&n.props.link.onClick(e,t)})),(0,T.A)((0,I.A)(n),"_keyboardFocusSubNav",(function(e){e&&e.focus(!0)})),(0,T.A)((0,I.A)(n),"_escapeSubNavFocus",(function(e){e.which===Ze&&(n.setState({isKeyboardExpanded:!1}),n.props.focusZoneRef.current&&n.props.focusZoneRef.current.focus())})),(0,T.A)((0,I.A)(n),"_nestedNavBlur",(function(e){var t=e.relatedTarget;null===e.relatedTarget&&(t=document.activeElement),e.currentTarget.contains(t)||n.setState({isKeyboardExpanded:!1})})),(0,T.A)((0,I.A)(n),"_offsetUpdated",(function(e){if(n.navRootRef.current&&n.navLinkGroupRef.current&&n.props.navRef.current){var t=n.navRootRef.current.offsetTop-n.props.navRef.current.scrollTop;n.navLinkGroupRef.current.style.top="".concat(t,"px")}})),(0,T.A)((0,I.A)(n),"_isNestedLinkSelected",(function(e){return e&&!!e.links&&e.links.some((function(e){return!!e&&!!e.isSelected}))})),n.state={isExpanded:!!(void 0!==e.isExpanded?e.isExpanded:e.defaultIsExpanded),isKeyboardExpanded:!1},n.navLinkGroupRef=r.createRef(),n.navRootRef=r.createRef(),n.instanceNumber=mc++,n.uniqueId=e.isGroupSectionHeader?Be("Group_"):Be("L1Content_"),n}return(0,B.A)(o,[{key:"render",value:function(){var e,t=this,o=this.props,n=o.link,i=o.isNavCollapsed,a=o.styles,s=o.theme,l=o.itemTotal,c=o.itemStartIndex,u=o.isCollapsibleSection,d=o.isGroupSectionHeader,f=this.state.isKeyboardExpanded,p=void 0===this.props.isExpanded?this.state.isExpanded:this.props.isExpanded,h=null===(e=n.links)||void 0===e?void 0:e.some((function(e){return e.isSelected||t._isNestedLinkSelected(e)})),m=u&&!d,g=hc(a,{isExpanded:p,isNavCollapsed:i,isKeyboardExpanded:!!f,theme:s,isCollapsibleSection:m}),v=i&&f&&!m?kn:"ul",b="".concat(this.uniqueId,"menu_id").concat(this.instanceNumber),_="".concat(this.uniqueId,"_id").concat(this.instanceNumber);return r.createElement("div",(0,w.A)({className:g.root,role:"presentation"},i&&n.links&&{onMouseEnter:this._offsetUpdated,ref:this.navRootRef}),r.createElement(fc,(0,w.A)((0,w.A)((0,w.A)({item:n,role:"menuitem",primaryIconName:n.icon},n),{},{isNavCollapsed:i,onClick:this._onLinkClicked,"aria-controls":b,"aria-expanded":p},i&&!m&&n.links&&{"aria-haspopup":!0,"aria-expanded":f}),{},{isSelected:h,hasSelectedNestedLink:h,hasNestedMenu:!0,isCollapsibleSection:m,isExpanded:p,id:_,"aria-setsize":l,"aria-posinset":c},!p&&h&&{"aria-current":"page"})),n.links&&r.createElement("div",(0,w.A)({className:g.nestedNav,role:"presentation"},i&&{ref:this.navLinkGroupRef,"data-is-focusable":!1}),i&&!m&&r.createElement(fc,{isNavCollapsed:i,name:n.name,"data-is-focusable":!1,"aria-hidden":!0,primaryIconName:n.icon,disabled:!0,styles:{root:g.nestedNavHeaderItem,text:g.nestedNavHeaderItemText,icon:g.nestedNavHeaderItemIcon},onRenderSecondaryContent:n.onRenderSecondaryContent}),r.createElement("div",{className:g.nestedNavLinksWrapper,role:"presentation"},r.createElement(v,(0,w.A)({className:g.nestedNavLinks,"aria-labelledby":_,role:"menu",id:b},f&&i&&{componentRef:this._keyboardFocusSubNav,onKeyDown:this._escapeSubNavFocus,isCircularNavigation:!m,as:"ul",onBlur:this._nestedNavBlur}),n.links.map((function(e,o){var a=t._isNestedLinkSelected(e);return r.createElement("li",{role:"presentation",key:e.key},e.links?r.createElement(vc,(0,w.A)((0,w.A)({},e),{},{styles:e.navLinkGroupStyles,isNavCollapsed:i,link:e,hasNestedMenu:!0,hasSelectedNestedLink:a,onCollapse:t.props.onCollapse,navRef:t.props.navRef,focusZoneRef:t.props.focusZoneRef,itemStartIndex:o+1,itemTotal:n.links.length,isCollapsibleSection:u})):r.createElement(fc,(0,w.A)((0,w.A)((0,w.A)({item:e,"aria-setsize":n.links.length,"aria-posinset":o+1,role:"menuitem",primaryIconName:e.icon},e),{},{isNavCollapsed:i},e.isSelected&&{"aria-current":"page"}),{},{hasNestedMenu:!1,hasSelectedNestedLink:!1,isNested:!d,isParentExpanded:p,isCollapsibleSection:u,styles:(0,w.A)({iconContainer:[g.nestedNavLinkIconContainer]},e.styles)})))}))))))}}]),o}(r.Component),vc=x(gc,(function(e){var t=e.isNavCollapsed,o=e.isExpanded,n=e.isKeyboardExpanded,r=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:n?"flex":"none",pointerEvents:"none",selectors:{":hover":{display:"flex"}}}],nestedNavHeaderItem:{zIndex:1,backgroundColor:r.palette.neutralTertiaryAlt,cursor:"default",selectors:{":hover":{backgroundColor:"inheret"},":active":{backgroundColor:"inheret"},":focus":{backgroundColor:"inheret"}}},nestedNavHeaderItemText:{margin:"0px 12px"},nestedNavLinksWrapper:[!t&&o&&[So.fadeIn400,So.slideDownIn20],(!t&&!o||i&&!o)&&{display:"none"},t&&!i&&{overflow:"hidden",padding:"".concat(64,"px ").concat(pc,"px ").concat(pc,"px 0px"),margin:"-".concat(64,"px -").concat(pc,"px -").concat(pc,"px 0px"),selectors:{'*[dir="rtl"] &':{paddingTop:"".concat(64,"px"),paddingRight:"0px ".concat(Hl()),paddingBottom:"".concat(pc,"px"),paddingLeft:"".concat(pc,"px  ").concat(Hl()),marginTop:"-".concat(64,"px"),marginRight:"0px  ".concat(Hl()),marginBottom:"-".concat(pc,"px"),marginLeft:"-".concat(pc,"px  ").concat(Hl())}}}],nestedNavLinks:[{padding:0,listStyle:"none"},t&&!i&&{width:"".concat(230,"px"),marginTop:"-".concat(lc,"px"),paddingTop:"".concat(lc,"px"),backgroundColor:r.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&&[So.slideRightIn10,{selectors:{'[dir="rtl"] &':[So.slideLeftIn10]}}]],nestedNavLinkIconContainer:[t&&i&&o&&{flex:"0 0 24px"}]}}),void 0,{scope:"NavLinkGroup"}),bc=xe(),_c=function(e){(0,E.A)(o,e);var t=(0,z.A)(o);function o(e){var n;return(0,S.A)(this,o),n=t.call(this,e),(0,T.A)((0,I.A)(n),"_groupId",void 0),(0,T.A)((0,I.A)(n),"_setLinkRef",(function(e){n.state.linkRef!==e&&n.setState({linkRef:e})})),n.state={linkRef:null},n}return(0,B.A)(o,[{key:"componentDidMount",value:function(){this._groupId="GroupId__".concat(Be())}},{key:"render",value:function(){var e,t=this,o=this.props,n=o.groupIndex,i=o.onRenderGroupTitle,a=o.links,s=o.isNavCollapsed,l=o.onCollapse,c=o.navRef,u=o.focusZoneRef,d=o.styles,f=o.theme,p=o.showHeaderTeachingBubble,h=o.headerTeachingBubbleProps,m=o.itemStartIndex,g=o.itemTotal,v=this.props.collapsibleGroupTitleProps,b=bc(d,{isNavCollapsed:!!s,isCollapsible:!!v,theme:f}),_=function(e){return null===e||void 0===e||!e.groupName||e.isNavCollapsed&&!e.collapsibleGroupTitleProps?null:r.createElement("span",{className:b.navGroupTitle,role:"presentation",id:t._groupId},e.groupName)},y=null!==(e=null===i||void 0===i?void 0:i(this.props,_))&&void 0!==e?e:_(this.props);return r.createElement(r.Fragment,null,0!==n&&r.createElement("li",{role:"presentation",className:b.navGroupDivider}),r.createElement("div",{role:"group","aria-labelledby":this._groupId},v?r.createElement(vc,{link:(0,w.A)((0,w.A)({name:y,icon:null===v||void 0===v?void 0:v.icon,links:a},null===v||void 0===v?void 0:v.collapsibleGroupTitleAttributes),{},{tooltipProps:(0,w.A)({content:this.props.groupName},null===v||void 0===v?void 0:v.tooltipProps),key:"id_".concat(n),showTeachingBubble:p,teachingBubbleProps:h}),isNavCollapsed:s,isExpanded:null===v||void 0===v?void 0:v.isExpanded,defaultIsExpanded:null===v||void 0===v?void 0:v.defaultExpanded,navRef:c,focusZoneRef:u,itemStartIndex:m,itemTotal:g,isCollapsibleSection:!0,isGroupSectionHeader:!0,styles:d}):r.createElement(r.Fragment,null,y&&r.createElement(r.Fragment,null,r.createElement("li",(0,w.A)((0,w.A)({role:"presentation"},this.props.groupTitleAttributes),{},{ref:this._setLinkRef}),y),p&&r.createElement(Sl,(0,w.A)({target:this.state.linkRef},h))),a.map((function(e,o){var n=t._isNestedLinkSelected(e),i=m+o;return r.createElement("li",{className:b.navItem,role:"presentation",key:e.key},e.links?r.createElement(vc,(0,w.A)((0,w.A)({},e),{},{styles:e.navLinkGroupStyles,isNavCollapsed:s,link:e,hasNestedMenu:!0,hasSelectedNestedLink:n,onCollapse:l,navRef:c,focusZoneRef:u,itemStartIndex:i,itemTotal:g})):r.createElement(fc,(0,w.A)((0,w.A)((0,w.A)({item:e,primaryIconName:e.icon,role:"menuitem"},e),{},{isNavCollapsed:s},e.isSelected&&{"aria-current":"page"}),{},{hasNestedMenu:!1,isNested:!1,"aria-posinset":i,"aria-setsize":g})))})))))}},{key:"_isNestedLinkSelected",value:function(e){return e&&!!e.links&&e.links.some((function(e){return!!e&&!!e.isSelected}))}}]),o}(r.Component),yc=x(_c,(function(e){var t=e.theme,o=e.isCollapsible,n=e.isNavCollapsed;return{navGroupDivider:cc(t),navGroupTitle:[{lineHeight:lc,color:t.palette.neutralPrimary,fontWeight:Bo.BO.semibold,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex"},!n&&{selectors:{"::before":{content:'""',width:o?"0px":"16px",flex:"0 0 auto"}}}],navItem:{margin:"0px",padding:"0px"}}}),void 0,{scope:"NavGroup"}),xc=["navItemTotal","editNavIndex"],kc=xe(),wc=function(e){(0,E.A)(o,e);var t=(0,z.A)(o);function o(e){var n;return(0,S.A)(this,o),n=t.call(this,e),(0,T.A)((0,I.A)(n),"_menuRef",void 0),(0,T.A)((0,I.A)(n),"_containerRef",void 0),(0,T.A)((0,I.A)(n),"_focusRef",void 0),(0,T.A)((0,I.A)(n),"_observer",void 0),(0,T.A)((0,I.A)(n),"_createObserver",(function(){n._observer=new IntersectionObserver(n._setScrollLayout,{root:n._containerRef.current,threshold:.995}),n._menuRef.current&&n._observer.observe(n._menuRef.current)})),(0,T.A)((0,I.A)(n),"_setScrollLayout",(function(e){var t=e[0].intersectionRatio<.995;t!==n.state.shouldScroll&&n.setState({shouldScroll:t})})),(0,T.A)((0,I.A)(n),"_onNavCollapseClicked",(function(e){var t,o;n.props.onNavCollapsed&&n.props.onNavCollapsed(!n.state.isNavCollapsed),null===(t=n.props.collapseNavLinkProps)||void 0===t||null===(o=t.onClick)||void 0===o||o.call(t,e),void 0===n.props.isNavCollapsed&&n.setState({isNavCollapsed:!n.state.isNavCollapsed})})),n.props,n.state={isNavCollapsed:!!(void 0!==e.isNavCollapsed?e.isNavCollapsed:e.defaultIsNavCollapsed),shouldScroll:!1},n._menuRef=(0,r.createRef)(),n._containerRef=(0,r.createRef)(),n._focusRef=(0,r.createRef)(),n._onNavCollapseClicked=n._onNavCollapseClicked.bind((0,I.A)(n)),n._setScrollLayout=n._setScrollLayout.bind((0,I.A)(n)),n}return(0,B.A)(o,[{key:"render",value:function(){var e=this,t=this.props,o=t.groups,n=t.enableCustomization,i=t.showMore,a=t.styles,s=t.showMoreLinkProps,l=t.editLinkProps,c=t.collapseNavLinkProps,u=t.theme,d=t.hideCollapseLink,f=this.state.shouldScroll,p=Be("nav-");o.some((function(e){return e.links.some((function(e){var t;return null===(t=e.links)||void 0===t?void 0:t.some((function(e){var t;return null!==(t=e.links)&&void 0!==t&&t}))}))}))&&console.warn("It looks like you have more than 2 levels of nested INavLinks. Consider restructuring your Nav as the M365 Nav will only render up to 2 levels of nested INavLinks");var h=void 0===this.props.isNavCollapsed?this.state.isNavCollapsed:this.props.isNavCollapsed,m=kc(a,{isNavCollapsed:h,shouldScroll:f,theme:u,zoomLevel:0,colorThrowContext:this.context}),g=function(e,t,o){var n=0;return e.forEach((function(e){n+=e.collapsibleGroupTitleProps?1:e.links.length})),{navItemTotal:n+=t&&o?2:t?1:0,editNavIndex:t?n-(o?1:0):void 0,navGroupStartIndex:1}}(o,n,i),v=g.navItemTotal,b=g.editNavIndex,_=(0,C.A)(g,xc).navGroupStartIndex;return r.createElement("div",{className:m.root,role:"presentation"},r.createElement("nav",{role:"navigation",className:m.navWrapper},!d&&r.createElement(fc,(0,w.A)((0,w.A)({primaryIconName:"GlobalNavButton"},c),{},{onClick:this._onNavCollapseClicked,"aria-controls":p,"aria-expanded":!h,styles:m.subComponentStyles.collapseNavButtonStyles})),r.createElement("div",{id:p,className:m.navContainer,ref:this._containerRef},r.createElement("div",{ref:this._menuRef,role:"presentation"},r.createElement(kn,{isCircularNavigation:!0,direction:Ee.vertical,as:"ul",role:"menubar","aria-orientation":"vertical",className:m.navGroup,componentRef:this._focusRef},o.map((function(t,o,n){return _=function(e,t,o){return e+(t>0?o[t-1].collapsibleGroupTitleProps?1:o[t-1].links.length:0)}(_,o,n),r.createElement(yc,(0,w.A)((0,w.A)({},t),{},{groupIndex:o,groupName:t.name,isNavCollapsed:h,navRef:e._containerRef,focusZoneRef:e._focusRef,itemStartIndex:_,itemTotal:v,key:t.key}))})),n&&r.createElement(r.Fragment,null,r.createElement("li",{role:"presentation",className:m.navGroupDivider}),r.createElement("li",{role:"presentation"},r.createElement(fc,(0,w.A)((0,w.A)({primaryIconName:"Edit",role:"menuitem"},l),{},{"aria-setsize":v,"aria-posinset":b}))),i&&r.createElement("li",{role:"presentation"},r.createElement(fc,(0,w.A)((0,w.A)({primaryIconName:"More",role:"menuitem"},s),{},{"aria-setsize":v,"aria-posinset":v})))))))))}},{key:"componentDidMount",value:function(){this._createObserver()}},{key:"componentWillUnmount",value:function(){this._menuRef.current&&this._observer.unobserve(this._menuRef.current)}}]),o}(r.Component);(0,T.A)(wc,"contextType",wn.s);var Cc=x(wc,(function(e){var t=e.isNavCollapsed,o=e.shouldScroll,n=e.theme,r=e.colorThrowContext;return{root:{position:"relative",zIndex:zo.Nav,flex:"0 0 auto"},navWrapper:[{overflow:"hidden",height:"100%",display:"flex",flexDirection:"column"},o&&{":hover":{overflow:"unset"}}],navContainer:[{width:"calc(".concat(280,"px + var(--scrollbar-width))"),backgroundColor:(0,wn.j)(n.semanticColors.navBackground,"navBackground","Nav",{context:r,theme:n}),color:n.semanticColors.buttonText,transitionProperty:"width",transitionDuration:".2s",userSelect:"none",fontSize:sc,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:cc(n),subComponentStyles:{collapseNavButtonStyles:{root:{backgroundColor:(0,wn.j)(n.semanticColors.navBackground,"navBackground","Nav",{context:r,theme:n})}}}}}),void 0,{scope:"M365LeftNav"})},38649:function(e){var t=.1,o="function"===typeof Float32Array;function n(e,t){return 1-3*t+3*e}function r(e,t){return 3*t-6*e}function i(e){return 3*e}function a(e,t,o){return((n(t,o)*e+r(t,o))*e+i(t))*e}function s(e,t,o){return 3*n(t,o)*e*e+2*r(t,o)*e+i(t)}function l(e){return e}e.exports=function(e,n,r,i){if(!(0<=e&&e<=1&&0<=r&&r<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===n&&r===i)return l;for(var c=o?new Float32Array(11):new Array(11),u=0;u<11;++u)c[u]=a(u*t,e,r);function d(o){for(var n=0,i=1;10!==i&&c[i]<=o;++i)n+=t;--i;var l=n+(o-c[i])/(c[i+1]-c[i])*t,u=s(l,e,r);return u>=.001?function(e,t,o,n){for(var r=0;r<4;++r){var i=s(t,o,n);if(0===i)return t;t-=(a(t,o,n)-e)/i}return t}(o,l,e,r):0===u?l:function(e,t,o,n,r){var i,s,l=0;do{(i=a(s=t+(o-t)/2,n,r)-e)>0?o=s:t=s}while(Math.abs(i)>1e-7&&++l<10);return s}(o,n,n+t,e,r)}return function(e){return 0===e?0:1===e?1:a(d(e),n,i)}}},90659:function(e,t,o){"use strict";o.d(t,{y:function(){return Z}});var n,r,i,a,s,l,c=o(38649),u=o.n(c),d=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 f(){return f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},f.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"}(n||(n={})),function(e){e.px="px",e["%"]="%",e.vh="vh",e.vw="vw"}(r||(r={})),function(e){e.deg="deg",e.turn="turn",e.rad="rad"}(i||(i={})),function(e){e[""]=""}(a||(a={})),function(e){e.vertical="vertical",e.horizontal="horizontal"}(s||(s={})),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"}(l||(l={}));var p=0;var h=function(){function e(e){var t=e.el.getBoundingClientRect();if(e.view.scrollContainer){var o=e.view.scrollContainer.getBoundingClientRect();t=f({},t,{top:t.top-o.top,right:t.right-o.left,bottom:t.bottom-o.top,left:t.left-o.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,o=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+=o},e}(),m=[a[""],r.px,r["%"],r.vh,r.vw,i.deg,i.turn,i.rad];function g(e,t){void 0===t&&(t=r["%"]);var o={value:0,unit:t};if("undefined"===typeof e)return o;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),o.value=parseFloat(e),o.unit=e.match(/[\d.\-+]*\s*(.*)/)[1]||t,!m.includes(o.unit))throw new Error("Invalid unit provided.");return o}var v={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 b(e){if(Array.isArray(e))return u()(e[0],e[1],e[2],e[3]);if("string"===typeof e&&"undefined"!==typeof v[e]){var t=v[e];return u()(t[0],t[1],t[2],t[3])}}var _=Object.values(n),y={speed:"px",translateX:"%",translateY:"%",rotate:"deg",rotateX:"deg",rotateY:"deg",rotateZ:"deg",scale:"",scaleX:"",scaleY:"",scaleZ:"",opacity:""};function x(e,t){var o={};return _.forEach((function(n){var r=y[n];if("number"===typeof(null==e?void 0:e[n])){var i=null==e?void 0:e[n],a=-10*(i||0)+"px",l=g(10*(i||0)+"px"),c=g(a),u={start:l.value,end:c.value,unit:l.unit};t===s.vertical&&(o.translateY=u),t===s.horizontal&&(o.translateX=u)}if(Array.isArray(null==e?void 0:e[n])){var d=null==e?void 0:e[n];if("undefined"!==typeof d[0]&&"undefined"!==typeof d[1]){var f=g(null==d?void 0:d[0],r),p=g(null==d?void 0:d[1],r),h=b(null==d?void 0:d[2]);if(o[n]={start:f.value,end:p.value,unit:f.unit,easing:h},f.unit!==p.unit)throw new Error("Must provide matching units for the min and max offset values of each axis.")}}})),o}function k(e,t,o,n){var r=(o-e)/t;return n&&(r=n(r)),r}function w(e,t){return{value:function(e,t,o,n,r){return(o-t)*(e-n)/(r-n)+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 C=Object.values(n).filter((function(e){return"opacity"!==e}));function S(e,t,o){if(o){var n=function(e,t){return C.reduce((function(o,n){var r=e[n]&&w(e[n],t);return"undefined"===typeof r||"undefined"===typeof r.value||"undefined"===typeof r.unit?o:o+(n+"("+r.value+r.unit+")")}),"")}(e,t),r=function(e,t){var o=e.opacity&&w(e.opacity,t);if("undefined"===typeof o||"undefined"===typeof o.value||"undefined"===typeof o.unit)return"";return""+o.value}(e,t);o.style.transform=n,o.style.opacity=r}}function B(e){var t=e.el;t&&(t.style.transform="",t.style.opacity="")}function I(e,t,o){var n=t>e,r=o+(Math.abs(e)+Math.abs(t))*(n?-1:1);return Math.max(o/r,1)}function E(e,t){var o=e.start,n=e.end,r=e.unit;if("%"===r){var i=t/100;o*=i,n*=i}if("vw"===r){var a=o/100,s=n/100;o=window.innerWidth*a,n=window.innerWidth*s}if("vh"===r){var l=o/100,c=n/100;o=window.innerHeight*l,n=window.innerHeight*c}return{start:o,end:n}}var z={start:0,end:0,unit:""};var T=function(e,t,o){return Math.min(Math.max(e,t),o)},A=function(){function e(e){this.el=e.el,this.props=e.props,this.scrollAxis=e.scrollAxis,this.id=++p,this.effects=x(this.props,this.scrollAxis),this.isInView=null,this.progress=0,this._setElementEasing(e.props.easing),function(e,t){var o="transform"+(Object.keys(t).includes("opacity")?",opacity":"");e.style.willChange=o}(e.el,this.effects)}var t=e.prototype;return t.updateProps=function(e){return this.props=f({},this.props,e),this.effects=x(e,this.scrollAxis),this._setElementEasing(e.easing),this},t.setCachedAttributes=function(e,t){B(this),this.rect=new h({el:this.props.targetElement||this.el,rootMargin:this.props.rootMargin,view:e});var o,n,r,i=(o=this.props,n=this.effects,r=this.scrollAxis,!(o.rootMargin||o.targetElement||o.shouldDisableScalingTranslations)&&!!(n.translateX&&r===s.horizontal||n.translateY&&r===s.vertical));return"number"===typeof this.props.startScroll&&"number"===typeof this.props.endScroll?(this.limits=new d({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,o,n,r,i){var a=o.translateX||z,l=o.translateY||z,c=E(a,e.width),u=c.start,f=c.end,p=E(l,e.height),h=p.start,m=p.end,g=e.top-t.height,v=e.left-t.width,b=e.bottom,_=e.right,y=1,x=1;r===s.vertical&&(x=y=I(h,m,t.height+e.height));var k=1,w=1;if(r===s.horizontal&&(w=k=I(u,f,t.width+e.width)),h<0&&(g+=h*y),m>0&&(b+=m*x),u<0&&(v+=u*k),f>0&&(_+=f*w),v+=n.x,_+=n.x,g+=n.y,b+=n.y,i){var C=n.y+e.top<t.height,S=n.x+e.left<t.width,B=n.y+e.bottom>t.scrollHeight-t.height,T=n.x+e.right>t.scrollWidth-t.height;C&&B&&(y=1,x=1,g=0,b=t.scrollHeight-t.height),S&&T&&(k=1,w=1,v=0,_=t.scrollWidth-t.width),!C&&B&&(g=e.top-t.height+n.y,y=I(h,m,(b=t.scrollHeight-t.height)-g),x=1,h<0&&(g+=h*y)),!S&&T&&(v=e.left-t.width+n.x,k=I(u,f,(_=t.scrollWidth-t.width)-v),w=1,u<0&&(v+=u*k)),C&&!B&&(g=0,y=1,x=I(h,m,(b=e.bottom+n.y)-g),m>0&&(b+=m*x)),S&&!T&&(v=0,k=1,w=I(u,f,(_=e.right+n.x)-v),f>0&&(_+=f*w))}return new d({startX:v,startY:g,endX:_,endY:b,startMultiplierX:k,endMultiplierX:w,startMultiplierY:y,endMultiplierY:x})}(this.rect,e,this.effects,t,this.scrollAxis,this.props.shouldAlwaysCompleteAnimation),this.scaledEffects=function(e,t){var o=f({},e);return o.translateX&&(o.translateX=f({},e.translateX,{start:o.translateX.start*t.startMultiplierX,end:o.translateX.end*t.endMultiplierX})),o.translateY&&(o.translateY=f({},e.translateY,{start:o.translateY.start*t.startMultiplierY,end:o.translateY.end*t.endMultiplierY})),o}(this.effects,this.limits)):this.limits=function(e,t,o,n){var r=e.top-t.height,i=e.left-t.width,a=e.bottom,s=e.right;return i+=o.x,s+=o.x,r+=o.y,a+=o.y,n&&(o.y+e.top<t.height&&(r=0),o.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 d({startX:i,startY:r,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=T(Math.round(this.progress),0,1);this._updateElementProgress(e)},t._setElementStyles=function(){this.props.disabled||S(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=b(e)},t.updatePosition=function(e){if(!this.limits)return this;var t=this.scrollAxis===s.vertical,o=null===this.isInView,n=t?this.limits.startY:this.limits.startX,r=t?this.limits.endY:this.limits.endX,i=t?this.limits.totalY:this.limits.totalX,a=t?e.y:e.x,l=function(e,t,o){return o>=e&&o<=t}(n,r,a);if(this._updateElementIsInView(l),l){var c=k(n,i,a,this.easing);this._updateElementProgress(c),this._setElementStyles()}else o&&(this.progress=T(Math.round(k(n,i,a,this.easing)),0,1),this._setElementStyles());return this},e}(),P=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}(),R=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 D=function(){function e(e){var t=e.scrollAxis,o=void 0===t?s.vertical:t,n=e.scrollContainer;this.scrollAxis=o,this.elements=[],this._hasScrollContainer=!!n,this.viewEl=null!=n?n:window;var r=this._getScrollPosition(),i=r[0],a=r[1];this.scroll=new R(i,a),this.view=new P({width:0,height:0,scrollWidth:0,scrollHeight:0,scrollContainer:this._hasScrollContainer?n: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(o){}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(o){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],o=e[1];this.scroll.setScroll(t,o),!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,o=(void 0===e?{}:e).updateCache;this.elements&&this.elements.forEach((function(e){o&&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,o=this.viewEl.scrollHeight,n=this.viewEl.scrollWidth;return this.view.setSize({width:e,height:t,scrollHeight:o,scrollWidth:n})}var r=document.documentElement;return{width:window.innerWidth||r.clientWidth,height:window.innerHeight||r.clientHeight,scrollHeight:r.scrollHeight,scrollWidth:r.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 A(f({},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(o){return o.id===e?o.updateProps(t):o}))),this.update()},t.resetElementStyles=function(e){B(e)},t.update=function(){var e=this._getScrollPosition(),t=e[0],o=e[1];this.scroll.setScroll(t,o),this._setViewSize(),this._updateAllElements({updateCache:!0})},t.updateScrollContainer=function(e){this._removeListeners(this.viewEl),this.viewEl=e,this._hasScrollContainer=!!e,this.view=new P({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 B(e)})),this.elements=void 0},e}(),N=o(80322),F=o.n(N);function M(){return M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n])}return e},M.apply(this,arguments)}function j(e,t){return j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},j(e,t)}function O(e,t){if(null==e)return{};var o,n,r={},i=Object.keys(e);for(n=0;n<i.length;n++)o=i[n],t.indexOf(o)>=0||(r[o]=e[o]);return r}var H=["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 L(e){var t,o=e.disabled,n=e.easing,r=e.endScroll,i=e.onChange,a=e.onEnter,s=e.onExit,l=e.onProgressChange,c=e.opacity,u=e.rootMargin,d=e.rotate,f=e.rotateX,p=e.rotateY,h=e.rotateZ,m=e.scale,g=e.scaleX,v=e.scaleY,b=e.scaleZ,_=e.shouldAlwaysCompleteAnimation,y=e.shouldDisableScalingTranslations,x=e.speed,k=e.startScroll,w=e.targetElement,C=e.translateX,S=e.translateY,B=O(e,H);return{parallaxProps:(t={disabled:o,easing:n,endScroll:r,onChange:i,onEnter:a,onExit:s,onProgressChange:l,opacity:c,rootMargin:u,rotate:d,rotateX:f,rotateY:p,rotateZ:h,scale:m,scaleX:g,scaleY:v,scaleZ:b,shouldAlwaysCompleteAnimation:_,shouldDisableScalingTranslations:y,speed:x,startScroll:k,targetElement:w,translateX:C,translateY:S},Object.keys(t).forEach((function(e){return void 0===t[e]?delete t[e]:{}})),t),rest:B}}var q=F().createContext(null);function W(e){var t=function(){var e=(0,N.useContext)(q);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}(),o=(0,N.useRef)(null),n=L(e).parallaxProps;!function(e){(0,N.useEffect)((function(){if("undefined"!==typeof window&&!e&&!(e instanceof D))throw new Error("Must wrap your application's <Parallax /> components in a <ParallaxProvider />.")}),[e])}(t);var r=(0,N.useState)(),i=r[0],a=r[1];return(0,N.useEffect)((function(){var e;if(!(o.current instanceof HTMLElement))throw new Error("You must assign the ref returned by the useParallax() hook to an HTML Element.");var r={el:o.current,props:n};return e=null==t?void 0:t.createElement(r),a(e),function(){e&&(null==t||t.removeElementById(e.id))}}),[]),(0,N.useEffect)((function(){i&&(e.disabled?(null==t||t.resetElementStyles(i),null==t||t.updateElementPropsById(i.id,n)):null==t||t.updateElementPropsById(i.id,n))}),[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:o,controller:t,element:i}}var V={height:0};var G=["children","disabled","style","expanded","image","testId"],K={position:"absolute",top:0,left:0,right:0,bottom:0},U=function(e){var t,o=L(e),n=o.parallaxProps,r=o.rest,i=r.style,a=r.expanded,s=void 0===a||a,l=r.testId,c=O(r,G),u=(t=e).image?{backgroundImage:"url("+t.image+")",backgroundPosition:"center",backgroundSize:"cover"}:{},d=s?function(e){if(Array.isArray(e.translateY)){var t=g(e.translateY[0]),o=g(e.translateY[1]);if("px"===t.unit&&"px"===o.unit)return{top:-1*Math.abs(o.value)+"px",bottom:-1*Math.abs(t.value)+"px"};if("%"===t.unit&&"%"===o.unit){var n,r=(null==(n=e.targetElement)?void 0:n.getBoundingClientRect())||V;return{top:-1*Math.abs(.01*r.height*o.value)+"px",bottom:-1*Math.abs(.01*r.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):{},f=W(M({targetElement:e.targetElement,shouldDisableScalingTranslations:!0},n));return F().createElement("div",Object.assign({"data-testid":l,ref:f.ref,style:M({},u,K,d,i)},c),r.children)},X=["disabled","style","layers"],Y={position:"relative",overflow:"hidden",width:"100%"},Z=function(e){var t=(0,N.useState)(null),o=t[0],n=t[1],r=(0,N.useRef)(null);(0,N.useEffect)((function(){n(r.current)}),[]);var i=e.style,a=e.layers,s=void 0===a?[]:a,l=O(e,X);return F().createElement("div",Object.assign({ref:r,style:M({},Y,i)},l),o&&s&&s.length>0?s.map((function(e,t){return F().createElement(U,Object.assign({},e,{targetElement:o,key:"layer-"+t,testId:"layer-"+t}))})):null,o?F().Children.map(e.children,(function(e){var t=e;return t.type===U?F().cloneElement(t,{targetElement:o}):e})):null)};(function(e){var t,o;function n(t){var o,n;return(o=e.call(this,t)||this).controller=(n={scrollAxis:t.scrollAxis,scrollContainer:t.scrollContainer},"undefined"===typeof window?null:D.init(n)),o}o=e,(t=n).prototype=Object.create(o.prototype),t.prototype.constructor=t,j(t,o);var r=n.prototype;return r.componentDidUpdate=function(e){e.scrollContainer!==this.props.scrollContainer&&this.controller.updateScrollContainer(this.props.scrollContainer)},r.componentWillUnmount=function(){this.controller=this.controller.destroy()},r.render=function(){var e=this.props.children;return F().createElement(q.Provider,{value:this.controller},e)},n}(N.Component)).defaultProps={scrollAxis:s.vertical}},18150:function(e,t,o){"use strict";o.d(t,{K9:function(){return C},CP:function(){return w},h7:function(){return v},_A:function(){return Ve},hC:function(){return Xe},$d:function(){return Ge},Az:function(){return Ke},mz:function(){return Ue},U6:function(){return me}});var n=o(36202),r=o(44331);function i(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,r.A)(e)););return e}function a(){return a="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,o){var n=i(e,t);if(n){var r=Object.getOwnPropertyDescriptor(n,t);return r.get?r.get.call(arguments.length<3?e:o):r.value}},a.apply(this,arguments)}var s,l=o(8778),c=o(72382),u=o(22489),d=o(18188),f=o(63598),p=o(31344),h=o(51326),m=o(12286),g=(o(42732),o(66297)),v="data-tabster",b="data-tabster-dummy",_=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]","details > summary","audio[controls]","video[controls]"].join(", "),y=1,x=2,k=3,w={Source:0,Target:1},C={Unlimited:0,Limited:1,LimitedTrapFocus:2},S=1,B=2;function I(e,t){var o;return null===(o=e.storageEntry(t))||void 0===o?void 0:o.tabster}function E(e,t,o){var n,r,i,a=o||e._noop?void 0:t.getAttribute(v),s=e.storageEntry(t);if(a){if(a===(null===(n=null===s||void 0===s?void 0:s.attr)||void 0===n?void 0:n.string))return;try{var l=JSON.parse(a);if("object"!==typeof l)throw new Error("Value is not a JSON object, got '".concat(a,"'."));i={string:a,object:l}}catch(k){0}}else if(!s)return;s||(s=e.storageEntry(t,!0)),s.tabster||(s.tabster={});for(var c=s.tabster||{},u=(null===(r=s.attr)||void 0===r?void 0:r.object)||{},d=(null===i||void 0===i?void 0:i.object)||{},f=0,p=Object.keys(u);f<p.length;f++){var h=p[f];if(!d[h]){if("root"===h){var m=c[h];m&&e.root.onRoot(m,!0)}switch(h){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":var g=c[h];g&&(g.dispose(),delete c[h]);break;case"observed":delete c[h],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete c[h]}}}for(var b=0,_=Object.keys(d);b<_.length;b++){var y=_[b],x=d.sys;switch(y){case"deloser":c.deloser?c.deloser.setProps(d.deloser):e.deloser&&(c.deloser=e.deloser.createDeloser(t,d.deloser));break;case"root":c.root?c.root.setProps(d.root):c.root=e.root.createRoot(t,d.root,x),e.root.onRoot(c.root);break;case"modalizer":c.modalizer?c.modalizer.setProps(d.modalizer):e.modalizer&&(c.modalizer=e.modalizer.createModalizer(t,d.modalizer,x));break;case"restorer":c.restorer?c.restorer.setProps(d.restorer):e.restorer&&d.restorer&&(c.restorer=e.restorer.createRestorer(t,d.restorer));break;case"focusable":c.focusable=d.focusable;break;case"groupper":c.groupper?c.groupper.setProps(d.groupper):e.groupper&&(c.groupper=e.groupper.createGroupper(t,d.groupper,x));break;case"mover":c.mover?c.mover.setProps(d.mover):e.mover&&(c.mover=e.mover.createMover(t,d.mover,x));break;case"observed":e.observedElement&&(c.observed=d.observed,e.observedElement.onObservedElementUpdate(t));break;case"uncontrolled":c.uncontrolled=d.uncontrolled;break;case"outline":e.outline&&(c.outline=d.outline);break;case"sys":c.sys=d.sys;break;default:console.error("Unknown key '".concat(y,"' in data-tabster attribute value."))}}i?s.attr=i:(0===Object.keys(c).length&&(delete s.tabster,delete s.attr),e.storageEntry(t,!1))}var z,T="tabster:groupper:movefocus",A="tabster:restorer:restore-focus",P=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e,n){var r;return(0,p.A)(this,o),(r=t.call(this,e,{bubbles:!0,cancelable:!0,composed:!0,detail:n})).details=n,r}return(0,f.A)(o)}("undefined"!==typeof CustomEvent?CustomEvent:function(){}),R=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e){return(0,p.A)(this,o),t.call(this,"tabster:focusin",e)}return(0,f.A)(o)}(P),D=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e){return(0,p.A)(this,o),t.call(this,"tabster:focusout",e)}return(0,f.A)(o)}(P),N=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e){return(0,p.A)(this,o),t.call(this,"tabster:movefocus",e)}return(0,f.A)(o)}(P),F=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e){return(0,p.A)(this,o),t.call(this,"tabster:modalizer:active",e)}return(0,f.A)(o)}(P),M=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e){return(0,p.A)(this,o),t.call(this,"tabster:modalizer:inactive",e)}return(0,f.A)(o)}(P),j=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(){return(0,p.A)(this,o),t.call(this,A)}return(0,f.A)(o)}(P),O=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e){return(0,p.A)(this,o),t.call(this,"tabster:root:focus",e)}return(0,f.A)(o)}(P),H=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e){return(0,p.A)(this,o),t.call(this,"tabster:root:blur",e)}return(0,f.A)(o)}(P),L={createMutationObserver:function(e){return new MutationObserver(e)},createTreeWalker:function(e,t,o,n){return e.createTreeWalker(t,o,n)},getParentNode:function(e){return e?e.parentNode:null},getParentElement:function(e){return e?e.parentElement:null},nodeContains:function(e,t){return!(!t||!(null===e||void 0===e?void 0:e.contains(t)))},getActiveElement:function(e){return e.activeElement},querySelector:function(e,t){return e.querySelector(t)},querySelectorAll:function(e,t){return Array.prototype.slice.call(e.querySelectorAll(t),0)},getElementById:function(e,t){return e.getElementById(t)},getFirstChild:function(e){return(null===e||void 0===e?void 0:e.firstChild)||null},getLastChild:function(e){return(null===e||void 0===e?void 0:e.lastChild)||null},getNextSibling:function(e){return(null===e||void 0===e?void 0:e.nextSibling)||null},getPreviousSibling:function(e){return(null===e||void 0===e?void 0:e.previousSibling)||null},getFirstElementChild:function(e){return(null===e||void 0===e?void 0:e.firstElementChild)||null},getLastElementChild:function(e){return(null===e||void 0===e?void 0:e.lastElementChild)||null},getNextElementSibling:function(e){return(null===e||void 0===e?void 0:e.nextElementSibling)||null},getPreviousElementSibling:function(e){return(null===e||void 0===e?void 0:e.previousElementSibling)||null},appendChild:function(e,t){return e.appendChild(t)},insertBefore:function(e,t,o){return e.insertBefore(t,o)},getSelection:function(e){var t;return(null===(t=e.ownerDocument)||void 0===t?void 0:t.getSelection())||null},getElementsByName:function(e,t){return e.ownerDocument.getElementsByName(t)}};"undefined"!==typeof DOMRect&&DOMRect;var q=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),z=!1}catch(Ze){z=!0}function W(e){var t=e(),o=t.__tabsterInstanceContext;return o||(o={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=o),o}var V=function(){function e(t){(0,p.A)(this,e),this._target=t}return(0,f.A)(e,[{key:"deref",value:function(){return this._target}}],[{key:"cleanup",value:function(e,t){return!e._target||!(!t&&J(e._target.ownerDocument,e._target))&&(delete e._target,!0)}}]),e}(),G=function(){function e(t,o,n){(0,p.A)(this,e);var r,i=W(t);i.WeakRef?r=new i.WeakRef(o):(r=new V(o),i.fakeWeakRefs.push(r)),this._ref=r,this._data=n}return(0,f.A)(e,[{key:"get",value:function(){var e,t=this._ref;return t&&((e=t.deref())||delete this._ref),e}},{key:"getData",value:function(){return this._data}}]),e}();function K(e,t){var o=W(e);o.fakeWeakRefs=o.fakeWeakRefs.filter((function(e){return!V.cleanup(e,t)}))}function U(e){var t=W(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=function(e){return e.basics.WeakRef}(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout((function(){t.fakeWeakRefsTimer=void 0,K(e),U(e)}),12e4))}function X(e,t,o){if(t.nodeType===Node.ELEMENT_NODE){var n=z?o:{acceptNode:o};return L.createTreeWalker(e,t,NodeFilter.SHOW_ELEMENT,n,!1)}}function Y(e){return!!e.__shouldIgnoreFocus}function Z(e){var t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(var o=0;o<t.length;o++)t[o]=4294967295*Math.random();for(var n=[],r=0;r<t.length;r++)n.push(t[r].toString(36));return n.push("|"),n.push((++q).toString(36)),n.push("|"),n.push(Date.now().toString(36)),n.join("")}function Q(e,t){var o=W(e),n=t.__tabsterElementUID;return n||(n=t.__tabsterElementUID=Z(e())),!o.elementByUId[n]&&J(t.ownerDocument,t)&&(o.elementByUId[n]=new G(e,t)),n}function $(e,t){for(var o=W(e),n=0,r=Object.keys(o.elementByUId);n<r.length;n++){var i=r[n],a=o.elementByUId[i],s=a&&a.get();s&&t&&!L.nodeContains(t,s)||delete o.elementByUId[i]}}function J(e,t){return L.nodeContains(null===e||void 0===e?void 0:e.body,t)}function ee(e,t){var o=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return o&&o.call(e,t)}var te=0,oe=function(){function e(t,o,n){(0,p.A)(this,e);var r=t.getWindow;this._tabster=t,this._element=new G(r,o),this._props=(0,d.A)({},n),this.id="i"+ ++te}return(0,f.A)(e,[{key:"getElement",value:function(){return this._element.get()}},{key:"getProps",value:function(){return this._props}},{key:"setProps",value:function(e){this._props=(0,d.A)({},e)}}]),e}(),ne=function(){function e(t,o,n,r,i){var a,s=this;(0,p.A)(this,e),this._focusIn=function(e){if(s._fixedTarget){var t=s._fixedTarget.get();t&&(0,g.kG)(t)}else{var o=s.input;if(s.onFocusIn&&o){var n=e.relatedTarget;s.onFocusIn(s,s._isBackward(!0,o,n),n)}}},this._focusOut=function(e){if(!s._fixedTarget){s.useDefaultAction=!1;var t=s.input;if(s.onFocusOut&&t){var o=e.relatedTarget;s.onFocusOut(s,s._isBackward(!1,t,o),o)}}};var l=t(),c=l.document.createElement("i");c.tabIndex=0,c.setAttribute("role","none"),c.setAttribute(b,""),c.setAttribute("aria-hidden","true");var u=c.style;u.position="fixed",u.width=u.height="1px",u.opacity="0.001",u.zIndex="-1",u.setProperty("content-visibility","hidden"),function(e){e.__shouldIgnoreFocus=!0}(c),this.input=c,this.isFirst=n.isFirst,this.isOutside=o,this._isPhantom=null!==(a=n.isPhantom)&&void 0!==a&&a,this._fixedTarget=i,c.addEventListener("focusin",this._focusIn),c.addEventListener("focusout",this._focusOut),c.__tabsterDummyContainer=r,this._isPhantom&&(this._disposeTimer=l.setTimeout((function(){delete s._disposeTimer,s.dispose()}),0),this._clearDisposeTimeout=function(){s._disposeTimer&&(l.clearTimeout(s._disposeTimer),delete s._disposeTimer),delete s._clearDisposeTimeout})}return(0,f.A)(e,[{key:"dispose",value:function(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();var t=this.input;t&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,t.removeEventListener("focusin",this._focusIn),t.removeEventListener("focusout",this._focusOut),delete t.__tabsterDummyContainer,null===(e=L.getParentNode(t))||void 0===e||e.removeChild(t))}},{key:"setTopLeft",value:function(e,t){var o,n=null===(o=this.input)||void 0===o?void 0:o.style;n&&(n.top="".concat(e,"px"),n.left="".concat(t,"px"))}},{key:"_isBackward",value:function(e,t,o){return e&&!o?!this.isFirst:!!(o&&t.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)}}]),e}(),re=1,ie=2,ae=4,se=function(){function e(t,o,n,r,i,a){(0,p.A)(this,e),this._element=o,this._instance=new ce(t,o,this,n,r,i,a)}return(0,f.A)(e,[{key:"_setHandlers",value:function(e,t){this._onFocusIn=e,this._onFocusOut=t}},{key:"moveOut",value:function(e){var t;null===(t=this._instance)||void 0===t||t.moveOut(e)}},{key:"moveOutWithDefaultAction",value:function(e,t){var o;null===(o=this._instance)||void 0===o||o.moveOutWithDefaultAction(e,t)}},{key:"getHandler",value:function(e){return e?this._onFocusIn:this._onFocusOut}},{key:"setTabbable",value:function(e){var t;null===(t=this._instance)||void 0===t||t.setTabbable(this,e)}},{key:"dispose",value:function(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}}],[{key:"moveWithPhantomDummy",value:function(e,t,o,n,r){var i=new ne(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(i){var a,s;if("BODY"===t.tagName)a=t,s=o&&n||!o&&!n?L.getFirstElementChild(t):null;else{var l,c;o&&(!n||n&&!e.focusable.isFocusable(t,!1,!0,!0))?(a=t,s=n?t.firstElementChild:null):(a=L.getParentElement(t),s=o&&n||!o&&!n?t:L.getNextElementSibling(t));do{(c=he(l=o&&n||!o&&!n?L.getPreviousElementSibling(s):s))===t?s=o&&n||!o&&!n?l:L.getNextElementSibling(l):c=null}while(c)}(null===a||void 0===a?void 0:a.dispatchEvent(new N({by:"root",owner:a,next:null,relatedEvent:r})))&&(L.insertBefore(a,i,s),(0,g.kG)(i))}}},{key:"addPhantomDummyWithTarget",value:function(e,t,o,n){var r,i,a=new ne(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new G(e.getWindow,n)).input;a&&(t.querySelector(_)&&!o?(r=t,i=L.getFirstElementChild(t)):(r=L.getParentElement(t),i=o?t:L.getNextElementSibling(t)),r&&L.insertBefore(r,a,i))}}]),e}();var le=function(){function e(t){var o=this;(0,p.A)(this,e),this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=function(e){var t;o._changedParents.has(e)||(o._changedParents.add(e),o._updateDummyInputsTimer||(o._updateDummyInputsTimer=null===(t=o._win)||void 0===t?void 0:t.call(o).setTimeout((function(){delete o._updateDummyInputsTimer;var e,t=(0,c.A)(o._dummyElements);try{for(t.s();!(e=t.n()).done;){var n=e.value.get();if(n){var r=o._dummyCallbacks.get(n);if(r){var i=L.getParentNode(n);i&&!o._changedParents.has(i)||r()}}}}catch(a){t.e(a)}finally{t.f()}o._changedParents=new WeakSet}),100)))},this._win=t}return(0,f.A)(e,[{key:"add",value:function(e,t){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new G(this._win,e)),this._dummyCallbacks.set(e,t),this.domChanged=this._domChanged)}},{key:"remove",value:function(e){this._dummyElements=this._dummyElements.filter((function(t){var o=t.get();return o&&o!==e})),this._dummyCallbacks.delete(e),0===this._dummyElements.length&&delete this.domChanged}},{key:"dispose",value:function(){var e,t=null===(e=this._win)||void 0===e?void 0:e.call(this);this._updateTimer&&(null===t||void 0===t||t.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(null===t||void 0===t||t.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}},{key:"updatePositions",value:function(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}},{key:"_scheduledUpdatePositions",value:function(){var e,t=this;this._updateTimer||(this._updateTimer=null===(e=this._win)||void 0===e?void 0:e.call(this).setTimeout((function(){if(delete t._updateTimer,t._lastUpdateQueueTime+100<=Date.now()){var e,o=new Map,n=[],r=(0,c.A)(t._updateQueue);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.push(i(o))}}catch(l){r.e(l)}finally{r.f()}t._updateQueue.clear();for(var a=0,s=n;a<s.length;a++){(0,s[a])()}o.clear()}else t._scheduledUpdatePositions()}),100))}}]),e}(),ce=function(){function e(t,o,n,r,i,a,s){var l=this;(0,p.A)(this,e),this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=function(e,t,o){l._onFocus(!0,e,t,o)},this._onFocusOut=function(e,t,o){l._onFocus(!1,e,t,o)},this.moveOut=function(e){var t,o=l._firstDummy,n=l._lastDummy;if(o&&n){l._ensurePosition();var r,i=o.input,a=n.input,s=null===(t=l._element)||void 0===t?void 0:t.get();if(i&&a&&s)e?(i.tabIndex=0,r=i):(a.tabIndex=0,r=a),r&&(0,g.kG)(r)}},this.moveOutWithDefaultAction=function(e,t){var o,n=l._firstDummy,r=l._lastDummy;if(n&&r){l._ensurePosition();var i,a=n.input,s=r.input,c=null===(o=l._element)||void 0===o?void 0:o.get();if(a&&s&&c)e?!n.isOutside&&l._tabster.focusable.isFocusable(c,!0,!0,!0)?i=c:(n.useDefaultAction=!0,a.tabIndex=0,i=a):(r.useDefaultAction=!0,s.tabIndex=0,i=s),i&&c.dispatchEvent(new N({by:"root",owner:c,next:null,relatedEvent:t}))&&(0,g.kG)(i)}},this.setTabbable=function(e,t){var o,n,r,i=(0,c.A)(l._wrappers);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.manager===e){a.tabbable=t;break}}}catch(f){i.e(f)}finally{i.f()}var s=l._getCurrent();if(s){var u=s.tabbable?0:-1,d=null===(o=l._firstDummy)||void 0===o?void 0:o.input;d&&(d.tabIndex=u),(d=null===(n=l._lastDummy)||void 0===n?void 0:n.input)&&(d.tabIndex=u)}},this._addDummyInputs=function(){l._addTimer||(l._addTimer=l._getWindow().setTimeout((function(){delete l._addTimer,l._ensurePosition(),l._addTransformOffsets()}),0))},this._addTransformOffsets=function(){l._tabster._dummyObserver.updatePositions(l._computeTransformOffsets)},this._computeTransformOffsets=function(e){for(var t,o,n=(null===(t=l._firstDummy)||void 0===t?void 0:t.input)||(null===(o=l._lastDummy)||void 0===o?void 0:o.input),r=l._transformElements,i=new Set,a=0,s=0,u=l._getWindow(),d=n;d&&d.nodeType===Node.ELEMENT_NODE;d=L.getParentElement(d)){var f=e.get(d);if(void 0===f){var p=u.getComputedStyle(d).transform;p&&"none"!==p&&(f={scrollTop:d.scrollTop,scrollLeft:d.scrollLeft}),e.set(d,f||null)}f&&(i.add(d),r.has(d)||d.addEventListener("scroll",l._addTransformOffsets),a+=f.scrollTop,s+=f.scrollLeft)}var h,m=(0,c.A)(r);try{for(m.s();!(h=m.n()).done;){var g=h.value;i.has(g)||g.removeEventListener("scroll",l._addTransformOffsets)}}catch(v){m.e(v)}finally{m.f()}return l._transformElements=i,function(){var e,t;null===(e=l._firstDummy)||void 0===e||e.setTopLeft(a,s),null===(t=l._lastDummy)||void 0===t||t.setTopLeft(a,s)}};var u=o.get();if(!u)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=s;var d=u.__tabsterDummy;if((d||this)._wrappers.push({manager:n,priority:r,tabbable:!0}),d)return d;u.__tabsterDummy=this;var f=null===i||void 0===i?void 0:i.dummyInputsPosition,h=u.tagName;this._isOutside=f?f===B:(a||"UL"===h||"OL"===h||"TABLE"===h)&&!("LI"===h||"TD"===h||"TH"===h),this._firstDummy=new ne(this._getWindow,this._isOutside,{isFirst:!0},o),this._lastDummy=new ne(this._getWindow,this._isOutside,{isFirst:!1},o);var m=this._firstDummy.input;m&&t._dummyObserver.add(m,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=o,this._addDummyInputs()}return(0,f.A)(e,[{key:"dispose",value:function(e,t){var o,n,r,i;if(0===(this._wrappers=this._wrappers.filter((function(o){return o.manager!==e&&!t}))).length){delete(null===(o=this._element)||void 0===o?void 0:o.get()).__tabsterDummy;var a,s=(0,c.A)(this._transformElements);try{for(s.s();!(a=s.n()).done;){a.value.removeEventListener("scroll",this._addTransformOffsets)}}catch(d){s.e(d)}finally{s.f()}this._transformElements.clear();var l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);var u=null===(n=this._firstDummy)||void 0===n?void 0:n.input;u&&this._tabster._dummyObserver.remove(u),null===(r=this._firstDummy)||void 0===r||r.dispose(),null===(i=this._lastDummy)||void 0===i||i.dispose()}}},{key:"_onFocus",value:function(e,t,o,n){var r,i=this._getCurrent();!i||t.useDefaultAction&&!this._callForDefaultAction||null===(r=i.manager.getHandler(e))||void 0===r||r(t,o,n)}},{key:"_getCurrent",value:function(){return this._wrappers.sort((function(e,t){return e.tabbable!==t.tabbable?e.tabbable?-1:1:e.priority-t.priority})),this._wrappers[0]}},{key:"_ensurePosition",value:function(){var e,t,o,n=null===(e=this._element)||void 0===e?void 0:e.get(),r=null===(t=this._firstDummy)||void 0===t?void 0:t.input,i=null===(o=this._lastDummy)||void 0===o?void 0:o.input;if(n&&r&&i)if(this._isOutside){var a=L.getParentNode(n);if(a){var s=L.getNextSibling(n);s!==i&&L.insertBefore(a,i,s),L.getPreviousElementSibling(n)!==r&&L.insertBefore(a,r,n)}}else{L.getLastElementChild(n)!==i&&L.appendChild(n,i);var l=L.getFirstElementChild(n);l&&l!==r&&l.parentNode&&L.insertBefore(l.parentNode,r,l)}}}]),e}();function ue(e){for(var t=null,o=L.getLastElementChild(e);o;o=L.getLastElementChild(o))t=o;return t||void 0}function de(e,t,o,n){var r,i=e.storageEntry(t,!0),a=!1;if(!i.aug){if(void 0===n)return a;i.aug={}}if(void 0===n){if(o in i.aug){var s=i.aug[o];delete i.aug[o],null===s?t.removeAttribute(o):t.setAttribute(o,s),a=!0}}else o in i.aug||(r=t.getAttribute(o)),void 0!==r&&r!==n&&(i.aug[o]=r,null===n?t.removeAttribute(o):t.setAttribute(o,n),a=!0);return void 0===n&&0===Object.keys(i.aug).length&&(delete i.aug,e.storageEntry(t,!1)),a}function fe(e){var t,o,n=e.ownerDocument,r=null===(t=n.defaultView)||void 0===t?void 0:t.getComputedStyle(e);if(null===e.offsetParent&&n.body!==e&&"fixed"!==(null===r||void 0===r?void 0:r.position))return!0;if("hidden"===(null===r||void 0===r?void 0:r.visibility))return!0;if("fixed"===(null===r||void 0===r?void 0:r.position)){if("none"===r.display)return!0;if(null===(null===(o=e.parentElement)||void 0===o?void 0:o.offsetParent)&&n.body!==e.parentElement)return!0}return!1}function pe(e){return"INPUT"===e.tagName&&!!e.name&&"radio"===e.type}function he(e){var t;return(null===(t=null===e||void 0===e?void 0:e.__tabsterDummyContainer)||void 0===t?void 0:t.get())||null}function me(e,t){var o=JSON.stringify(e);return!0===t?o:(0,l.A)({},v,o)}function ge(e,t,o){var n;if(o){var r=e.getAttribute(v);if(r)try{n=JSON.parse(r)}catch(Ze){0}}n||(n={}),function(e,t){for(var o=0,n=Object.keys(t);o<n.length;o++){var r=n[o],i=t[r];i?e[r]=i:delete e[r]}}(n,t),Object.keys(n).length>0?e.setAttribute(v,me(n,!0)):e.removeAttribute(v)}var ve=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e,n,r,i){var a;return(0,p.A)(this,o),(a=t.call(this,e,n,re,i,void 0,!0))._onDummyInputFocus=function(e){var t;if(e.useDefaultAction)a._setFocused(!1);else{a._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);var o=a._element.get();if(o){a._setFocused(!0);var n=a._tabster.focusedElement.getFirstOrLastTabbable(e.isFirst,{container:o,ignoreAccessibility:!0});if(n)return void(0,g.kG)(n)}null===(t=e.input)||void 0===t||t.blur()}},a._setHandlers(a._onDummyInputFocus),a._tabster=e,a._setFocused=r,a}return(0,f.A)(o)}(se),be=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e,n,r,i,a){var s;(0,p.A)(this,o),(s=t.call(this,e,n,i))._isFocused=!1,s._setFocused=function(e){var t;if(s._setFocusedTimer&&(s._tabster.getWindow().clearTimeout(s._setFocusedTimer),delete s._setFocusedTimer),s._isFocused!==e){var o=s._element.get();o&&(e?(s._isFocused=!0,null===(t=s._dummyManager)||void 0===t||t.setTabbable(!1),o.dispatchEvent(new O({element:o}))):s._setFocusedTimer=s._tabster.getWindow().setTimeout((function(){var e;delete s._setFocusedTimer,s._isFocused=!1,null===(e=s._dummyManager)||void 0===e||e.setTabbable(!0),o.dispatchEvent(new H({element:o}))}),0))}},s._onFocusIn=function(e){var t=s._tabster.getParent,o=s._element.get(),n=e.composedPath()[0];do{if(n===o)return void s._setFocused(!0);n=n&&t(n)}while(n)},s._onFocusOut=function(){s._setFocused(!1)},s._onDispose=r;var l=e.getWindow;s.uid=Q(l,n),s._sys=a,(e.controlTab||e.rootDummyInputs)&&s.addDummyInputs();var c=l().document;return c.addEventListener(g.Oy,s._onFocusIn),c.addEventListener(g.RY,s._onFocusOut),s._add(),s}return(0,f.A)(o,[{key:"addDummyInputs",value:function(){this._dummyManager||(this._dummyManager=new ve(this._tabster,this._element,this._setFocused,this._sys))}},{key:"dispose",value:function(){var e;this._onDispose(this);var t=this._tabster.getWindow(),o=t.document;o.removeEventListener(g.Oy,this._onFocusIn),o.removeEventListener(g.RY,this._onFocusOut),this._setFocusedTimer&&(t.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),null===(e=this._dummyManager)||void 0===e||e.dispose(),this._remove()}},{key:"moveOutWithDefaultAction",value:function(e,t){var o=this._dummyManager;if(o)o.moveOutWithDefaultAction(e,t);else{var n=this.getElement();n&&ve.moveWithPhantomDummy(this._tabster,n,!0,e,t)}}},{key:"_add",value:function(){0}},{key:"_remove",value:function(){0}}]),o}(oe),_e=function(){function e(t,o){var n=this;(0,p.A)(this,e),this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=function(){var e,t=n._win().document,o=t.body;if(o){n._autoRootUnwait(t);var r=n._autoRoot;if(r)return ge(o,{root:r},!0),E(n._tabster,o),null===(e=I(n._tabster,o))||void 0===e?void 0:e.root}else n._autoRootWaiting||(n._autoRootWaiting=!0,t.addEventListener("readystatechange",n._autoRootCreate))},this._onRootDispose=function(e){delete n._roots[e.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=o,t.queueInit((function(){n._autoRoot&&n._autoRootCreate()}))}return(0,f.A)(e,[{key:"_autoRootUnwait",value:function(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}},{key:"dispose",value:function(){var e=this,t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach((function(t){e._roots[t]&&(e._roots[t].dispose(),delete e._roots[t])})),this.rootById={}}},{key:"createRoot",value:function(e,t,o){var n=new be(this._tabster,e,this._onRootDispose,t,o);return this._roots[n.id]=n,this._forceDummy&&n.addDummyInputs(),n}},{key:"addDummyInputs",value:function(){this._forceDummy=!0;for(var e=this._roots,t=0,o=Object.keys(e);t<o.length;t++){e[o[t]].addDummyInputs()}}},{key:"onRoot",value:function(e,t){t?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}],[{key:"getRootByUId",value:function(e,t){var o=e().__tabsterInstance;return o&&o.root.rootById[t]}},{key:"getTabsterContext",value:function(e,t,o){var n,r,i,a;if(void 0===o&&(o={}),t.ownerDocument){var s,l,c,u,d=o,f=d.checkRtl,p=d.referenceElement,h=e.getParent;e.drainInitQueue();for(var m,g,v,b,_=!1,y=p||t,x={};y&&(!s||f);){var k=I(e,y);if(f&&void 0===v){var w=y.dir;w&&(v="rtl"===w.toLowerCase())}if(k){var C=y.tagName;(k.uncontrolled||"IFRAME"===C||"WEBVIEW"===C)&&(b=y),u||!(null===(n=k.focusable)||void 0===n?void 0:n.excludeFromMover)||c||(_=!0);var S=k.modalizer,B=k.groupper,E=k.mover;!l&&S&&(l=S),c||!B||l&&!S||(l?(!B.isActive()&&B.getProps().tabbability&&l.userId!==(null===(r=e.modalizer)||void 0===r?void 0:r.activeId)&&(l=void 0,c=B),g=B):c=B),u||!E||l&&!S||B&&y===t||!y.contains(t)||(u=E,m=!!c&&c!==B),k.root&&(s=k.root),(null===(i=k.focusable)||void 0===i?void 0:i.ignoreKeydown)&&Object.assign(x,k.focusable.ignoreKeydown),y=h(y)}else y=h(y)}if(!s){var z=e.root;z._autoRoot&&(null===(a=t.ownerDocument)||void 0===a?void 0:a.body)&&(s=z._autoRootCreate())}c&&!u&&(m=!0);return s?{root:s,modalizer:l,groupper:c,mover:u,groupperBeforeMover:m,modalizerInGroupper:g,rtl:f?!!v:void 0,uncontrolled:b,excludedFromMover:_,ignoreKeydown:function(e){return!!x[e.key]}}:void 0}}},{key:"getRoot",value:function(e,t){for(var o,n=e.getParent,r=t;r;r=n(r)){var i=null===(o=I(e,r))||void 0===o?void 0:o.root;if(i)return i}}}]),e}();var ye=function(){function e(){(0,p.A)(this,e),this._callbacks=[]}return(0,f.A)(e,[{key:"dispose",value:function(){this._callbacks=[],delete this._val}},{key:"subscribe",value:function(e){var t=this._callbacks;t.indexOf(e)<0&&t.push(e)}},{key:"subscribeFirst",value:function(e){var t=this._callbacks,o=t.indexOf(e);o>=0&&t.splice(o,1),t.unshift(e)}},{key:"unsubscribe",value:function(e){var t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}},{key:"setVal",value:function(e,t){this._val!==e&&(this._val=e,this._callCallbacks(e,t))}},{key:"getVal",value:function(){return this._val}},{key:"trigger",value:function(e,t){this._callCallbacks(e,t)}},{key:"_callCallbacks",value:function(e,t){this._callbacks.forEach((function(o){return o(e,t)}))}}]),e}();var xe=function(){function e(t){(0,p.A)(this,e),this._tabster=t}return(0,f.A)(e,[{key:"dispose",value:function(){}},{key:"getProps",value:function(e){var t=I(this._tabster,e);return t&&t.focusable||{}}},{key:"isFocusable",value:function(e,t,o,n){return!(!ee(e,_)||!t&&-1===e.tabIndex)&&((o||this.isVisible(e))&&(n||this.isAccessible(e)))}},{key:"isVisible",value:function(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE)return!1;if(fe(e))return!1;var t=e.ownerDocument.body.getBoundingClientRect();return 0!==t.width||0!==t.height}},{key:"isAccessible",value:function(e){for(var t,o=e;o;o=L.getParentElement(o)){var n=I(this._tabster,o);if(this._isHidden(o))return!1;if(!(null===(t=null===n||void 0===n?void 0:n.focusable)||void 0===t?void 0:t.ignoreAriaDisabled)&&this._isDisabled(o))return!1}return!0}},{key:"_isDisabled",value:function(e){return e.hasAttribute("disabled")}},{key:"_isHidden",value:function(e){var t,o=e.getAttribute("aria-hidden");return!(!o||"true"!==o.toLowerCase()||(null===(t=this._tabster.modalizer)||void 0===t?void 0:t.isAugmented(e)))}},{key:"findFirst",value:function(e,t){return this.findElement((0,d.A)({},e),t)}},{key:"findLast",value:function(e,t){return this.findElement((0,d.A)({isBackward:!0},e),t)}},{key:"findNext",value:function(e,t){return this.findElement((0,d.A)({},e),t)}},{key:"findPrev",value:function(e,t){return this.findElement((0,d.A)((0,d.A)({},e),{},{isBackward:!0}),t)}},{key:"findDefault",value:function(e,t){var o=this;return this.findElement((0,d.A)((0,d.A)({},e),{},{acceptCondition:function(t){return o.isFocusable(t,e.includeProgrammaticallyFocusable)&&!!o.getProps(t).isDefault}}),t)||null}},{key:"findAll",value:function(e){return this._findElements(!0,e)||[]}},{key:"findElement",value:function(e,t){var o=this._findElements(!1,e,t);return o?o[0]:o}},{key:"_findElements",value:function(e,t,o){var n,r,i,a=this,s=t.container,l=t.currentElement,c=void 0===l?null:l,u=t.includeProgrammaticallyFocusable,d=t.useActiveModalizer,f=t.ignoreAccessibility,p=t.modalizerId,h=t.isBackward,m=t.onElement;o||(o={});var g=[],v=t.acceptCondition,b=!!v;if(!s)return null;v||(v=function(e){return a.isFocusable(e,u,!1,f)});var _={container:s,modalizerUserId:void 0===p&&d?null===(n=this._tabster.modalizer)||void 0===n?void 0:n.activeId:p||(null===(i=null===(r=_e.getTabsterContext(this._tabster,s))||void 0===r?void 0:r.modalizer)||void 0===i?void 0:i.userId),from:c||s,isBackward:h,isFindAll:e,acceptCondition:v,hasCustomCondition:b,includeProgrammaticallyFocusable:u,ignoreAccessibility:f,cachedGrouppers:{},cachedRadioGroups:{}},y=X(s.ownerDocument,s,(function(e){return a._acceptElement(e,_)}));if(!y)return null;var x=function(t){var n,r,i=null!==(n=_.foundElement)&&void 0!==n?n:_.foundBackward;return i&&g.push(i),e?!(i&&(_.found=!1,delete _.foundElement,delete _.foundBackward,delete _.fromCtx,_.from=i,m&&!m(i)))&&!(!i&&!t):(i&&o&&(o.uncontrolled=null===(r=_e.getTabsterContext(a._tabster,i))||void 0===r?void 0:r.uncontrolled),!(!t||i))};if(c||(o.outOfDOMOrder=!0),c&&L.nodeContains(s,c))y.currentNode=c;else if(h){var k=ue(s);if(!k)return null;if(this._acceptElement(k,_)===NodeFilter.FILTER_ACCEPT&&!x(!0))return _.skippedFocusable&&(o.outOfDOMOrder=!0),g;y.currentNode=k}do{h?y.previousNode():y.nextNode()}while(x());return _.skippedFocusable&&(o.outOfDOMOrder=!0),g.length?g:null}},{key:"_acceptElement",value:function(e,t){var o,n,r;if(t.found)return NodeFilter.FILTER_ACCEPT;var i=t.foundBackward;if(i&&(e===i||!L.nodeContains(i,e)))return t.found=!0,t.foundElement=i,NodeFilter.FILTER_ACCEPT;var a=t.container;if(e===a)return NodeFilter.FILTER_SKIP;if(!L.nodeContains(a,e))return NodeFilter.FILTER_REJECT;if(he(e))return NodeFilter.FILTER_REJECT;if(L.nodeContains(t.rejectElementsFrom,e))return NodeFilter.FILTER_REJECT;var s,l=t.currentCtx=_e.getTabsterContext(this._tabster,e);if(!l)return NodeFilter.FILTER_SKIP;if(Y(e))return this.isFocusable(e,void 0,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!t.hasCustomCondition&&("IFRAME"===e.tagName||"WEBVIEW"===e.tagName))return(null===(o=l.modalizer)||void 0===o?void 0:o.userId)===(null===(n=this._tabster.modalizer)||void 0===n?void 0:n.activeId)?(t.found=!0,t.rejectElementsFrom=t.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!t.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0),NodeFilter.FILTER_REJECT;var c=t.fromCtx;c||(c=t.fromCtx=_e.getTabsterContext(this._tabster,t.from));var u=null===c||void 0===c?void 0:c.mover,d=l.groupper,f=l.mover;if(void 0!==(s=null===(r=this._tabster.modalizer)||void 0===r?void 0:r.acceptElement(e,t))&&(t.skippedFocusable=!0),void 0===s&&(d||f||u)){var p=null===d||void 0===d?void 0:d.getElement(),h=null===u||void 0===u?void 0:u.getElement(),m=null===f||void 0===f?void 0:f.getElement();m&&L.nodeContains(h,m)&&L.nodeContains(a,h)&&(!p||!f||L.nodeContains(h,p))&&(f=u,m=h),!p||p!==a&&L.nodeContains(a,p)||(d=void 0),m&&!L.nodeContains(a,m)&&(f=void 0),d&&f&&(m&&p&&!L.nodeContains(p,m)?f=void 0:d=void 0),d&&(s=d.acceptElement(e,t)),f&&(s=f.acceptElement(e,t))}if(void 0===s&&(s=t.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP)===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(t.skippedFocusable=!0),s===NodeFilter.FILTER_ACCEPT&&!t.found){if(!t.isFindAll&&pe(e)&&!e.checked){var g=e.name,v=t.cachedRadioGroups[g];if(v||(v=function(e){if(pe(e)){var t,o=e.name,n=Array.from(L.getElementsByName(e,o));return n=n.filter((function(e){return!!pe(e)&&(e.checked&&(t=e),!0)})),{name:o,buttons:new Set(n),checked:t}}}(e),v&&(t.cachedRadioGroups[g]=v)),(null===v||void 0===v?void 0:v.checked)&&v.checked!==e)return NodeFilter.FILTER_SKIP}t.isBackward?(t.foundBackward=e,s=NodeFilter.FILTER_SKIP):(t.found=!0,t.foundElement=e)}return s}}]),e}(),ke="Tab",we="Enter",Ce="Escape";var Se=(s={},(0,l.A)(s,x,0),(0,l.A)(s,k,1),(0,l.A)(s,y,2),s),Be=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e,n){var r;return(0,p.A)(this,o),(r=t.call(this))._init=function(){var e=r._win(),t=e.document;t.addEventListener(g.Oy,r._onFocusIn,!0),t.addEventListener(g.RY,r._onFocusOut,!0),e.addEventListener("keydown",r._onKeyDown,!0);var o=L.getActiveElement(t);o&&o!==t.body&&r._setFocusedElement(o),r.subscribe(r._onChanged)},r._onFocusIn=function(e){var t=e.composedPath()[0];t&&r._setFocusedElement(t,e.detail.relatedTarget,e.detail.isFocusedProgrammatically)},r._onFocusOut=function(e){var t;r._setFocusedElement(void 0,null===(t=e.detail)||void 0===t?void 0:t.originalEvent.relatedTarget)},r._validateFocusedElement=function(e){},r._onKeyDown=function(e){if(e.key===ke&&!e.ctrlKey){var t=r.getVal();if(t&&t.ownerDocument&&"true"!==t.contentEditable){var n=r._tabster,i=n.controlTab,a=_e.getTabsterContext(n,t);if(a&&!a.ignoreKeydown(e)){var s=e.shiftKey,l=o.findNextTabbable(n,a,void 0,t,void 0,s,!0),c=a.root.getElement();if(c){var u=null===l||void 0===l?void 0:l.element,d=function(e,t){var o,n=e.getParent,r=t;do{var i=null===(o=I(e,r))||void 0===o?void 0:o.uncontrolled;if(i&&e.uncontrolled.isUncontrolledCompletely(r,!!i.completely))return r;r=n(r)}while(r)}(n,t);if(u){var f=l.uncontrolled;if(a.uncontrolled||L.nodeContains(f,t)){if(!l.outOfDOMOrder&&f===a.uncontrolled||d&&!L.nodeContains(d,u))return;return void se.addPhantomDummyWithTarget(n,t,s,u)}if(f||"IFRAME"===u.tagName)return void(c.dispatchEvent(new N({by:"root",owner:c,next:u,relatedEvent:e}))&&se.moveWithPhantomDummy(r._tabster,null!==f&&void 0!==f?f:u,!1,s,e));(i||(null===l||void 0===l?void 0:l.outOfDOMOrder))&&c.dispatchEvent(new N({by:"root",owner:c,next:u,relatedEvent:e}))&&(e.preventDefault(),e.stopImmediatePropagation(),(0,g.kG)(u))}else!d&&c.dispatchEvent(new N({by:"root",owner:c,next:null,relatedEvent:e}))&&a.root.moveOutWithDefaultAction(s,e)}}}}},r._onChanged=function(e,t){var o,n;if(e)e.dispatchEvent(new R(t));else{var i=null===(o=r._lastVal)||void 0===o?void 0:o.get();if(i){var a=(0,d.A)({},t),s=_e.getTabsterContext(r._tabster,i),l=null===(n=null===s||void 0===s?void 0:s.modalizer)||void 0===n?void 0:n.userId;l&&(a.modalizerId=l),i.dispatchEvent(new D(a))}}},r._tabster=e,r._win=n,e.queueInit(r._init),r}return(0,f.A)(o,[{key:"dispose",value:function(){a((0,r.A)(o.prototype),"dispose",this).call(this);var e=this._win(),t=e.document;t.removeEventListener(g.Oy,this._onFocusIn,!0),t.removeEventListener(g.RY,this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged);var n=this._asyncFocus;n&&(e.clearTimeout(n.timeout),delete this._asyncFocus),delete o._lastResetElement,delete this._nextVal,delete this._lastVal}},{key:"getFocusedElement",value:function(){return this.getVal()}},{key:"getLastFocusedElement",value:function(){var e,t=null===(e=this._lastVal)||void 0===e?void 0:e.get();return(!t||t&&!J(t.ownerDocument,t))&&(this._lastVal=t=void 0),t}},{key:"focus",value:function(e,t,o,n){return!!this._tabster.focusable.isFocusable(e,t,!1,o)&&(e.focus({preventScroll:n}),!0)}},{key:"focusDefault",value:function(e){var t=this._tabster.focusable.findDefault({container:e});return!!t&&(this._tabster.focusedElement.focus(t),!0)}},{key:"getFirstOrLastTabbable",value:function(e,t){var n,r,i=t.container,a=t.ignoreAccessibility;if(i){var s=_e.getTabsterContext(this._tabster,i);s&&(r=null===(n=o.findNextTabbable(this._tabster,s,i,void 0,void 0,!e,a))||void 0===n?void 0:n.element)}return r&&!L.nodeContains(i,r)&&(r=void 0),r||void 0}},{key:"_focusFirstOrLast",value:function(e,t){var o=this.getFirstOrLastTabbable(e,t);return!!o&&(this.focus(o,!1,!0),!0)}},{key:"focusFirst",value:function(e){return this._focusFirstOrLast(!0,e)}},{key:"focusLast",value:function(e){return this._focusFirstOrLast(!1,e)}},{key:"resetFocus",value:function(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{var t=e.getAttribute("tabindex"),n=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),o._lastResetElement=new G(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",t),this._setOrRemoveAttribute(e,"aria-hidden",n)}return!0}},{key:"requestAsyncFocus",value:function(e,t,o){var n=this,r=this._tabster.getWindow(),i=this._asyncFocus;if(i){if(Se[e]>Se[i.source])return;r.clearTimeout(i.timeout)}this._asyncFocus={source:e,callback:t,timeout:r.setTimeout((function(){n._asyncFocus=void 0,t()}),o)}}},{key:"cancelAsyncFocus",value:function(e){var t=this._asyncFocus;(null===t||void 0===t?void 0:t.source)===e&&(this._tabster.getWindow().clearTimeout(t.timeout),this._asyncFocus=void 0)}},{key:"_setOrRemoveAttribute",value:function(e,t,o){null===o?e.removeAttribute(t):e.setAttribute(t,o)}},{key:"_setFocusedElement",value:function(e,t,n){var r,i;if(!this._tabster._noop){var a={relatedTarget:t};if(e){var s=null===(r=o._lastResetElement)||void 0===r?void 0:r.get();if(o._lastResetElement=void 0,s===e||Y(e))return;a.isFocusedProgrammatically=n;var l=_e.getTabsterContext(this._tabster,e),c=null===(i=null===l||void 0===l?void 0:l.modalizer)||void 0===i?void 0:i.userId;c&&(a.modalizerId=c)}var u=this._nextVal={element:e?new G(this._win,e):void 0,detail:a};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===u&&this.setVal(e,a),this._nextVal=void 0}}},{key:"setVal",value:function(e,t){a((0,r.A)(o.prototype),"setVal",this).call(this,e,t),e&&(this._lastVal=new G(this._win,e))}}],[{key:"forgetMemorized",value:function(e,t){var n,r,i=o._lastResetElement,a=i&&i.get();a&&L.nodeContains(t,a)&&delete o._lastResetElement,(a=null===(r=null===(n=e._nextVal)||void 0===n?void 0:n.element)||void 0===r?void 0:r.get())&&L.nodeContains(t,a)&&delete e._nextVal,(a=(i=e._lastVal)&&i.get())&&L.nodeContains(t,a)&&delete e._lastVal}},{key:"findNextTabbable",value:function(e,t,n,r,i,a,s){var l=n||t.root.getElement();if(!l)return null;var c=null,u=o._isTabbingTimer,d=e.getWindow();u&&d.clearTimeout(u),o.isTabbing=!0,o._isTabbingTimer=d.setTimeout((function(){delete o._isTabbingTimer,o.isTabbing=!1}),0);var f=t.modalizer,p=t.groupper,h=t.mover,m=function(t){if(c=t.findNextTabbable(r,i,a,s),r&&!(null===c||void 0===c?void 0:c.element)){var l=t!==f&&L.getParentElement(t.getElement());if(l){var u=_e.getTabsterContext(e,r,{referenceElement:l});if(u){var d=t.getElement(),p=a?d:d&&ue(d)||d;p&&(c=o.findNextTabbable(e,u,n,p,l,a,s))&&(c.outOfDOMOrder=!0)}}}};if(p&&h)m(t.groupperBeforeMover?p:h);else if(p)m(p);else if(h)m(h);else if(f)m(f);else{var g={container:l,currentElement:r,referenceElement:i,ignoreAccessibility:s,useActiveModalizer:!0},v={},b=e.focusable[a?"findPrev":"findNext"](g,v);c={element:b,outOfDOMOrder:v.outOfDOMOrder,uncontrolled:v.uncontrolled}}return c}}]),o}(ye);Be.isTabbing=!1;var Ie=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e,n,r,i){var a;return(0,p.A)(this,o),(a=t.call(this,r,e,ae,i,!0))._setHandlers((function(t,o,i){var a,s,l=e.get(),c=t.input;if(l&&c){var u,d=_e.getTabsterContext(r,c);if(d)(u=null===(a=n.findNextTabbable(i||void 0,void 0,o,!0))||void 0===a?void 0:a.element)||(u=null===(s=Be.findNextTabbable(r,d,void 0,t.isOutside?c:function(e,t){for(var o=e,n=null;o&&!n;)n=t?L.getPreviousElementSibling(o):L.getNextElementSibling(o),o=L.getParentElement(o);return n||void 0}(l,!o),void 0,o,!0))||void 0===s?void 0:s.element),u&&(0,g.kG)(u)}})),a}return(0,f.A)(o)}(se),Ee=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e,r,i,a,s){var l;return(0,p.A)(this,o),(l=t.call(this,e,r,a))._shouldTabInside=!1,l.makeTabbable(!1),l._onDispose=i,e.controlTab||(l.dummyManager=new Ie(l._element,(0,n.A)(l),e,s)),l}return(0,f.A)(o,[{key:"dispose",value:function(){var e;this._onDispose(this);this._element.get();null===(e=this.dummyManager)||void 0===e||e.dispose(),delete this.dummyManager,delete this._first}},{key:"findNextTabbable",value:function(e,t,o,n){var r=this.getElement();if(!r)return null;var i=he(e)===r;if(!this._shouldTabInside&&e&&L.nodeContains(r,e)&&!i)return{element:void 0,outOfDOMOrder:!0};var a=this.getFirst(!0);if(!e||!L.nodeContains(r,e)||i)return{element:a,outOfDOMOrder:!0};var s,l=this._tabster,c=null,u=!1;if(this._shouldTabInside&&a){var d={container:r,currentElement:e,referenceElement:t,ignoreAccessibility:n,useActiveModalizer:!0},f={};c=l.focusable[o?"findPrev":"findNext"](d,f),u=!!f.outOfDOMOrder,c||this._props.tabbability!==C.LimitedTrapFocus||(c=l.focusable[o?"findLast":"findFirst"]({container:r,ignoreAccessibility:n,useActiveModalizer:!0},f),u=!0),s=f.uncontrolled}return{element:c,uncontrolled:s,outOfDOMOrder:u}}},{key:"makeTabbable",value:function(e){this._shouldTabInside=e||!this._props.tabbability}},{key:"isActive",value:function(e){for(var t,o=this.getElement()||null,n=!0,r=L.getParentElement(o);r;r=L.getParentElement(r)){var i=null===(t=I(this._tabster,r))||void 0===t?void 0:t.groupper;i&&(i._shouldTabInside||(n=!1))}var a=n?!!this._props.tabbability&&this._shouldTabInside:void 0;if(a&&e){var s=this._tabster.focusedElement.getFocusedElement();s&&(a=s!==this.getFirst(!0))}return a}},{key:"getFirst",value:function(e){var t,o,n=this.getElement();if(n){if(e&&this._tabster.focusable.isFocusable(n))return n;(o=null===(t=this._first)||void 0===t?void 0:t.get())||(o=this._tabster.focusable.findFirst({container:n,useActiveModalizer:!0})||void 0)&&this.setFirst(o)}return o}},{key:"setFirst",value:function(e){e?this._first=new G(this._tabster.getWindow,e):delete this._first}},{key:"acceptElement",value:function(e,t){var o,n=this,r=t.cachedGrouppers,i=L.getParentElement(this.getElement()),a=i&&_e.getTabsterContext(this._tabster,i),s=null===a||void 0===a?void 0:a.groupper,l=(null===a||void 0===a?void 0:a.groupperBeforeMover)?s:void 0,c=function(e){var t,o=r[e.id];return o?t=o.isActive:(t=n.isActive(!0),o=r[e.id]={isActive:t}),t};if(l&&(o=l.getElement(),!c(l)&&o&&t.container!==o&&L.nodeContains(t.container,o)))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;var u=c(this),d=this.getElement();if(d&&!0!==u){if(d===e&&s&&(o||(o=s.getElement()),o&&!c(s)&&L.nodeContains(t.container,o)&&o!==t.container))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;if(d!==e&&L.nodeContains(d,e))return t.skippedFocusable=!0,NodeFilter.FILTER_REJECT;var f,p=r[this.id];if((f="first"in p?p.first:p.first=this.getFirst(!0))&&t.acceptCondition(f))return t.rejectElementsFrom=d,t.skippedFocusable=!0,f!==t.from?(t.found=!0,t.foundElement=f,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}]),o}(oe),ze=function(){function e(t,o){var n=this;(0,p.A)(this,e),this._current={},this._grouppers={},this._init=function(){var e=n._win();n._tabster.focusedElement.subscribeFirst(n._onFocus);var t=e.document,o=L.getActiveElement(t);o&&n._onFocus(o),t.addEventListener("mousedown",n._onMouseDown,!0),e.addEventListener("keydown",n._onKeyDown,!0),e.addEventListener(T,n._onMoveFocus)},this._onGroupperDispose=function(e){delete n._grouppers[e.id]},this._onFocus=function(e){e&&n._updateCurrent(e)},this._onMouseDown=function(e){for(var t=e.target;t&&!n._tabster.focusable.isFocusable(t);)t=n._tabster.getParent(t);t&&n._updateCurrent(t)},this._onKeyDown=function(e){if((e.key===we||e.key===Ce)&&!(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)){var t=n._tabster.focusedElement.getFocusedElement();t&&n.handleKeyPress(t,e)}},this._onMoveFocus=function(e){var t,o=e.composedPath()[0],r=null===(t=e.detail)||void 0===t?void 0:t.action;o&&void 0!==r&&!e.defaultPrevented&&(r===S?n._enterGroupper(o):n._escapeGroupper(o),e.stopImmediatePropagation())},this._tabster=t,this._win=o,t.queueInit(this._init)}return(0,f.A)(e,[{key:"dispose",value:function(){var e=this,t=this._win();this._tabster.focusedElement.cancelAsyncFocus(y),this._current={},this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),t.document.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),t.removeEventListener(T,this._onMoveFocus),Object.keys(this._grouppers).forEach((function(t){e._grouppers[t]&&(e._grouppers[t].dispose(),delete e._grouppers[t])}))}},{key:"createGroupper",value:function(e,t,o){var n=this;var r=this._tabster,i=new Ee(r,e,this._onGroupperDispose,t,o);this._grouppers[i.id]=i;var a=r.focusedElement.getFocusedElement();return a&&L.nodeContains(e,a)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout((function(){delete n._updateTimer,a===r.focusedElement.getFocusedElement()&&n._updateCurrent(a)}),0)),i}},{key:"forgetCurrentGrouppers",value:function(){this._current={}}},{key:"_updateCurrent",value:function(e){var t;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);for(var o=this._tabster,n={},r=o.getParent(e);r;r=o.getParent(r)){var i=null===(t=I(o,r))||void 0===t?void 0:t.groupper;if(i){n[i.id]=!0,this._current[i.id]=i;var a=i.isActive()||e!==r&&(!i.getProps().delegated||i.getFirst(!1)!==e);i.makeTabbable(a)}}for(var s=0,l=Object.keys(this._current);s<l.length;s++){var c=l[s],u=this._current[c];u.id in n||(u.makeTabbable(!1),u.setFirst(void 0),delete this._current[c])}}},{key:"_enterGroupper",value:function(e,t){var o=this._tabster,n=_e.getTabsterContext(o,e),r=(null===n||void 0===n?void 0:n.groupper)||(null===n||void 0===n?void 0:n.modalizerInGroupper),i=null===r||void 0===r?void 0:r.getElement();if(r&&i&&(e===i||r.getProps().delegated&&e===r.getFirst(!1))){var a=o.focusable.findNext({container:i,currentElement:e,useActiveModalizer:!0});if(a&&(!t||t&&i.dispatchEvent(new N({by:"groupper",owner:i,next:a,relatedEvent:t}))))return t&&(t.preventDefault(),t.stopImmediatePropagation()),a.focus(),a}return null}},{key:"_escapeGroupper",value:function(e,t,o){var n=this._tabster,r=_e.getTabsterContext(n,e),i=(null===r||void 0===r?void 0:r.groupper)||(null===r||void 0===r?void 0:r.modalizerInGroupper),a=null===i||void 0===i?void 0:i.getElement();if(i&&a&&L.nodeContains(a,e)){var s;if(e!==a||o)s=i.getFirst(!0);else{var l=L.getParentElement(a),c=l?_e.getTabsterContext(n,l):void 0;s=null===(i=null===c||void 0===c?void 0:c.groupper)||void 0===i?void 0:i.getFirst(!0)}if(s&&(!t||t&&a.dispatchEvent(new N({by:"groupper",owner:a,next:s,relatedEvent:t}))))return i&&i.makeTabbable(!1),s.focus(),s}return null}},{key:"moveFocus",value:function(e,t){return t===S?this._enterGroupper(e):this._escapeGroupper(e)}},{key:"handleKeyPress",value:function(e,t,o){var n=this,r=this._tabster,i=_e.getTabsterContext(r,e);if(i&&((null===i||void 0===i?void 0:i.groupper)||(null===i||void 0===i?void 0:i.modalizerInGroupper))){if(r.focusedElement.cancelAsyncFocus(y),i.ignoreKeydown(t))return;if(t.key===we)this._enterGroupper(e,t);else if(t.key===Ce){var a=r.focusedElement.getFocusedElement();r.focusedElement.requestAsyncFocus(y,(function(){(a===r.focusedElement.getFocusedElement()||(!o||a)&&o)&&n._escapeGroupper(e,t,o)}),0)}}}}]),e}();var Te=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e){var n;return(0,p.A)(this,o),(n=t.call(this))._onChange=function(e){n.setVal(e,void 0)},n._keyborg=(0,g.SQ)(e()),n._keyborg.subscribe(n._onChange),n}return(0,f.A)(o,[{key:"dispose",value:function(){a((0,r.A)(o.prototype),"dispose",this).call(this),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),(0,g.bd)(this._keyborg),delete this._keyborg)}},{key:"setNavigatingWithKeyboard",value:function(e){var t;null===(t=this._keyborg)||void 0===t||t.setVal(e)}},{key:"isNavigatingWithKeyboard",value:function(){var e;return!!(null===(e=this._keyborg)||void 0===e?void 0:e.isNavigatingWithKeyboard())}}]),o}(ye),Ae=0,Pe="aria-hidden";var Re=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e,n,r){var i;return(0,p.A)(this,o),(i=t.call(this,n,e,ie,r))._setHandlers((function(t,o){var r,i,a,s=e.get(),l=s&&(null===(r=_e.getRoot(n,s))||void 0===r?void 0:r.getElement()),c=t.input;if(l&&c){var u=he(c),d=_e.getTabsterContext(n,u||c);d&&(a=null===(i=Be.findNextTabbable(n,d,l,c,void 0,o,!0))||void 0===i?void 0:i.element),a&&(0,g.kG)(a)}})),i}return(0,f.A)(o)}(se),De=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e,n,r,i,a,s){var l;return(0,p.A)(this,o),(l=t.call(this,e,n,i))._wasFocused=0,l.userId=i.id,l._onDispose=r,l._activeElements=s,e.controlTab||(l.dummyManager=new Re(l._element,e,a)),l}return(0,f.A)(o,[{key:"makeActive",value:function(e){if(this._isActive!==e){this._isActive=e;var t=this.getElement();if(t){var o=this._activeElements,n=o.map((function(e){return e.get()})).indexOf(t);e?n<0&&o.push(new G(this._tabster.getWindow,t)):n>=0&&o.splice(n,1)}0,this._dispatchEvent(e)}}},{key:"focused",value:function(e){return e||(this._wasFocused=++Ae),this._wasFocused}},{key:"setProps",value:function(e){e.id&&(this.userId=e.id),this._props=(0,d.A)({},e)}},{key:"dispose",value:function(){var e;this.makeActive(!1),this._onDispose(this),null===(e=this.dummyManager)||void 0===e||e.dispose(),delete this.dummyManager,this._activeElements=[],this._remove()}},{key:"isActive",value:function(){return!!this._isActive}},{key:"contains",value:function(e){return L.nodeContains(this.getElement(),e)}},{key:"findNextTabbable",value:function(e,t,o,n){var r,i;if(!this.getElement())return null;var a,s=this._tabster,l=null,c=!1,u=e&&(null===(r=_e.getRoot(s,e))||void 0===r?void 0:r.getElement());if(u){var d={container:u,currentElement:e,referenceElement:t,ignoreAccessibility:n,useActiveModalizer:!0},f={};!(l=s.focusable[o?"findPrev":"findNext"](d,f))&&this._props.isTrapped&&(null===(i=s.modalizer)||void 0===i?void 0:i.activeId)?(null===(l=s.focusable[o?"findLast":"findFirst"]({container:u,ignoreAccessibility:n,useActiveModalizer:!0},f))&&(l=e),c=!0):c=!!f.outOfDOMOrder,a=f.uncontrolled}return{element:l,uncontrolled:a,outOfDOMOrder:c}}},{key:"_dispatchEvent",value:function(e,t){var o=this.getElement(),n=!1;if(o){var r,i=t?this._activeElements.map((function(e){return e.get()})):[o],a=(0,c.A)(i);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(s){var l={id:this.userId,element:o},u=e?new F(l):new M(l);s.dispatchEvent(u),u.defaultPrevented&&(n=!0)}}}catch(d){a.e(d)}finally{a.f()}}return n}},{key:"_remove",value:function(){0}}]),o}(oe),Ne=function(){function e(t,o,n){var r=this;(0,p.A)(this,e),this._onModalizerDispose=function(e){var t=e.id,o=e.userId,n=r._parts[o];if(delete r._modalizers[t],n&&(delete n[t],0===Object.keys(n).length)){delete r._parts[o];for(var i,a=r._activationHistory,s=[],l=a.length;l--;){var c=a[l];c!==o&&(c!==i&&(i=c,(c||s.length>0)&&s.unshift(c)))}if(r._activationHistory=s,r.activeId===o){var u=s[0],d=u?Object.values(r._parts[u])[0]:void 0;r.setActive(d)}}},this._onKeyDown=function(e){var t;if(e.key===Ce){var o=r._tabster,n=o.focusedElement.getFocusedElement();if(n){var i=_e.getTabsterContext(o,n),a=null===i||void 0===i?void 0:i.modalizer;if(i&&!i.groupper&&(null===a||void 0===a?void 0:a.isActive())&&!i.ignoreKeydown(e)){var s=a.userId;if(s){var l=r._parts[s];if(l){var c=Object.keys(l).map((function(e){var t,n,r=l[e],i=r.getElement();return i&&(n=null===(t=I(o,i))||void 0===t?void 0:t.groupper),r&&i&&n?{el:i,focusedSince:r.focused(!0)}:{focusedSince:0}})).filter((function(e){return e.focusedSince>0})).sort((function(e,t){return e.focusedSince>t.focusedSince?-1:e.focusedSince<t.focusedSince?1:0}));if(c.length){var u=c[0].el;u&&(null===(t=o.groupper)||void 0===t||t.handleKeyPress(u,e,!0))}}}}}}},this._onFocus=function(e,t){var o,n=r._tabster,i=e&&_e.getTabsterContext(n,e);if(i&&e){for(var a=r._augMap,s=e;s;s=n.getParent(s))a.has(s)&&(a.delete(s),de(n,s,Pe));var l=i.modalizer,c=I(n,e),u=null===c||void 0===c?void 0:c.modalizer;if(u&&(u.focused(),u.userId===r.activeId&&c.groupper)){var d=n.getParent(e),f=d&&(null===(o=_e.getTabsterContext(n,d))||void 0===o?void 0:o.modalizer);if(!f)return void r.setActive(void 0);l=f}if(null===l||void 0===l||l.focused(),(null===l||void 0===l?void 0:l.userId)!==r.activeId)if(t.isFocusedProgrammatically||r.currentIsOthersAccessible||(null===l||void 0===l?void 0:l.getProps().isAlwaysAccessible))r.setActive(l);else{var p=r._win();p.clearTimeout(r._restoreModalizerFocusTimer),r._restoreModalizerFocusTimer=p.setTimeout((function(){return r._restoreModalizerFocus(e)}),100)}else r.currentIsOthersAccessible=null===l||void 0===l?void 0:l.getProps().isOthersAccessible}},this._tabster=t,this._win=t.getWindow,this._modalizers={},this._parts={},this._augMap=new WeakMap,this._aug=[],this._alwaysAccessibleSelector=o,this._accessibleCheck=n,this._activationHistory=[],this.activeElements=[],t.controlTab||t.root.addDummyInputs(),this._win().addEventListener("keydown",this._onKeyDown,!0),t.queueInit((function(){r._tabster.focusedElement.subscribe(r._onFocus)}))}return(0,f.A)(e,[{key:"dispose",value:function(){var e=this,t=this._win();t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._modalizers).forEach((function(t){e._modalizers[t]&&(e._modalizers[t].dispose(),delete e._modalizers[t])})),t.clearTimeout(this._restoreModalizerFocusTimer),t.clearTimeout(this._hiddenUpdateTimer),this._parts={},delete this.activeId,this.activeElements=[],this._augMap=new WeakMap,this._aug=[],this._tabster.focusedElement.unsubscribe(this._onFocus)}},{key:"createModalizer",value:function(e,t,o){var n;var r=new De(this._tabster,e,this._onModalizerDispose,t,o,this.activeElements),i=r.id,a=t.id;this._modalizers[i]=r;var s=this._parts[a];s||(s=this._parts[a]={}),s[i]=r;var l=null!==(n=this._tabster.focusedElement.getFocusedElement())&&void 0!==n?n:null;return e!==l&&L.nodeContains(e,l)&&(a!==this.activeId?this.setActive(r):r.makeActive(!0)),r}},{key:"isAugmented",value:function(e){return this._augMap.has(e)}},{key:"hiddenUpdate",value:function(){var e=this;this._hiddenUpdateTimer||(this._hiddenUpdateTimer=this._win().setTimeout((function(){delete e._hiddenUpdateTimer,e._hiddenUpdate()}),250))}},{key:"setActive",value:function(e){var t=null===e||void 0===e?void 0:e.userId,o=this.activeId;if(o!==t){if(this.activeId=t,o){var n=this._parts[o];if(n)for(var r=0,i=Object.keys(n);r<i.length;r++){n[i[r]].makeActive(!1)}}if(t){var a=this._parts[t];if(a)for(var s=0,l=Object.keys(a);s<l.length;s++){a[l[s]].makeActive(!0)}}this.currentIsOthersAccessible=null===e||void 0===e?void 0:e.getProps().isOthersAccessible,this.hiddenUpdate();var c=this._activationHistory;c[0]!==t&&(void 0!==t||c.length>0)&&c.unshift(t)}}},{key:"focus",value:function(e,t,o){var n=this._tabster,r=_e.getTabsterContext(n,e),i=null===r||void 0===r?void 0:r.modalizer;if(i){this.setActive(i);var a=i.getProps(),s=i.getElement();if(s){if(void 0===t&&(t=a.isNoFocusFirst),!t&&n.keyboardNavigation.isNavigatingWithKeyboard()&&n.focusedElement.focusFirst({container:s}))return!0;if(void 0===o&&(o=a.isNoFocusDefault),!o&&n.focusedElement.focusDefault(s))return!0;n.focusedElement.resetFocus(s)}}else 0;return!1}},{key:"activate",value:function(e){var t,o=e?null===(t=_e.getTabsterContext(this._tabster,e))||void 0===t?void 0:t.modalizer:void 0;return!(e&&!o)&&(this.setActive(o),!0)}},{key:"acceptElement",value:function(e,t){var o,n=t.modalizerUserId,r=null===(o=t.currentCtx)||void 0===o?void 0:o.modalizer;if(n){var i,a=(0,c.A)(this.activeElements);try{for(a.s();!(i=a.n()).done;){var s=i.value.get();if(s&&(L.nodeContains(e,s)||s===e))return NodeFilter.FILTER_SKIP}}catch(u){a.e(u)}finally{a.f()}}var l=n===(null===r||void 0===r?void 0:r.userId)||!n&&(null===r||void 0===r?void 0:r.getProps().isAlwaysAccessible)?void 0:NodeFilter.FILTER_SKIP;return void 0!==l&&(t.skippedFocusable=!0),l}},{key:"_hiddenUpdate",value:function(){for(var e,t=this,o=this._tabster,n=o.getWindow().document.body,r=this.activeId,i=this._parts,a=[],s=[],l=this._alwaysAccessibleSelector,d=l?Array.from(L.querySelectorAll(n,l)):[],f=[],p=0,h=Object.keys(i);p<h.length;p++)for(var m=h[p],g=i[m],v=0,b=Object.keys(g);v<b.length;v++){var _=g[b[v]],y=_.getElement(),x=_.getProps().isAlwaysAccessible;y&&(m===r?(f.push(y),this.currentIsOthersAccessible||a.push(y)):x?d.push(y):s.push(y))}var k=this._augMap,w=a.length>0?[].concat(a,(0,u.A)(d)):void 0,C=[],S=new WeakMap,B=function(e,n){var r,i=e.tagName;if("SCRIPT"!==i&&"STYLE"!==i){var a=!1;k.has(e)?n?a=!0:(k.delete(e),de(o,e,Pe)):n&&!(null===(r=t._accessibleCheck)||void 0===r?void 0:r.call(t,e,f))&&de(o,e,Pe,"true")&&(k.set(e,!0),a=!0),a&&(C.push(new G(o.getWindow,e)),S.set(e,!0))}};w||d.forEach((function(e){return B(e,!1)})),s.forEach((function(e){return B(e,!0)})),n&&function e(t){for(var n,r=L.getFirstElementChild(t);r;r=L.getNextElementSibling(r)){var i=!1,a=!1,s=!1;if(w){var l,u=o.getParent(r),d=(0,c.A)(w);try{for(d.s();!(l=d.n()).done;){var f=l.value;if(r===f){i=!0;break}if(L.nodeContains(r,f)){a=!0;break}L.nodeContains(f,u)&&(s=!0)}}catch(p){d.e(p)}finally{d.f()}a||(null===(n=r.__tabsterElementFlags)||void 0===n?void 0:n.noDirectAriaHidden)?e(r):i||s||B(r,!0)}else B(r,!1)}}(n),null===(e=this._aug)||void 0===e||e.map((function(e){return e.get()})).forEach((function(e){e&&!S.get(e)&&B(e,!1)})),this._aug=C,this._augMap=S}},{key:"_restoreModalizerFocus",value:function(e){var t=null===e||void 0===e?void 0:e.ownerDocument;if(e&&t){var o=this._tabster,n=_e.getTabsterContext(o,e),r=null===n||void 0===n?void 0:n.modalizer,i=this.activeId;if(!(!r&&!i||r&&i===r.userId)){var a=null===n||void 0===n?void 0:n.root.getElement();if(a){var s=o.focusable.findFirst({container:a,useActiveModalizer:!0});if(s){if(e.compareDocumentPosition(s)&document.DOCUMENT_POSITION_PRECEDING&&!(s=o.focusable.findLast({container:a,useActiveModalizer:!0})))throw new Error("Something went wrong.");return void o.focusedElement.focus(s)}}e.blur()}}}}]),e}();var Fe=function(){function e(t){(0,p.A)(this,e),this._isUncontrolledCompletely=t}return(0,f.A)(e,[{key:"isUncontrolledCompletely",value:function(e,t){var o,n=null===(o=this._isUncontrolledCompletely)||void 0===o?void 0:o.call(this,e,t);return void 0===n?t:n}}]),e}(),Me=function(e){(0,h.A)(o,e);var t=(0,m.A)(o);function o(e,n,r){var i,a;if((0,p.A)(this,o),(i=t.call(this,e,n,r))._hasFocus=!1,i._onFocusOut=function(e){var t,o=null===(t=i._element)||void 0===t?void 0:t.get();o&&null===e.relatedTarget&&o.dispatchEvent(new j),o&&!L.nodeContains(o,e.relatedTarget)&&(i._hasFocus=!1)},i._onFocusIn=function(){i._hasFocus=!0},i._props.type===w.Source){var s=null===(a=i._element)||void 0===a?void 0:a.get();null===s||void 0===s||s.addEventListener("focusout",i._onFocusOut),null===s||void 0===s||s.addEventListener("focusin",i._onFocusIn),i._hasFocus=L.nodeContains(s,s&&L.getActiveElement(s.ownerDocument))}return i}return(0,f.A)(o,[{key:"dispose",value:function(){var e;if(this._props.type===w.Source){var t=null===(e=this._element)||void 0===e?void 0:e.get();if(null===t||void 0===t||t.removeEventListener("focusout",this._onFocusOut),null===t||void 0===t||t.removeEventListener("focusin",this._onFocusIn),this._hasFocus)this._tabster.getWindow().document.body.dispatchEvent(new j)}}}]),o}(oe),je=function(){function e(t){(0,p.A)(this,e),this._stack=[],this._getWindow=t}return(0,f.A)(e,[{key:"push",value:function(t){var o;(null===(o=this._stack[this._stack.length-1])||void 0===o?void 0:o.get())!==t&&(this._stack.length>e.DEPTH&&this._stack.shift(),this._stack.push(new G(this._getWindow,t)))}},{key:"pop",value:function(e){var t;void 0===e&&(e=function(){return!0});for(var o=this._getWindow().document,n=this._stack.length-1;n>=0;n--){var r=null===(t=this._stack.pop())||void 0===t?void 0:t.get();if(r&&L.nodeContains(o.body,L.getParentElement(r))&&e(r))return r}}}]),e}();je.DEPTH=10;var Oe=function(){function e(t){var o=this;(0,p.A)(this,e),this._onRestoreFocus=function(e){var t,n;o._focusedElementState.cancelAsyncFocus(x);var r=e.composedPath()[0];if(r){var i=null===(n=null===(t=I(o._tabster,r))||void 0===t?void 0:t.restorer)||void 0===n?void 0:n.getProps().id;o._focusedElementState.requestAsyncFocus(x,(function(){return o._restoreFocus(r,i)}),0)}},this._onFocusIn=function(e){var t;if(e){var n=I(o._tabster,e);(null===(t=null===n||void 0===n?void 0:n.restorer)||void 0===t?void 0:t.getProps().type)===w.Target&&o._history.push(e)}},this._restoreFocus=function(e,t){var n,r=o._getWindow().document;if(L.getActiveElement(r)===r.body&&(o._keyboardNavState.isNavigatingWithKeyboard()||!L.nodeContains(r.body,e))){null===(n=o._history.pop((function(e){return t===function(e){var t,n;return null===(n=null===(t=I(o._tabster,e))||void 0===t?void 0:t.restorer)||void 0===n?void 0:n.getProps().id}(e)})))||void 0===n||n.focus()}},this._tabster=t,this._getWindow=t.getWindow,this._getWindow().addEventListener(A,this._onRestoreFocus),this._history=new je(this._getWindow),this._keyboardNavState=t.keyboardNavigation,this._focusedElementState=t.focusedElement,this._focusedElementState.subscribe(this._onFocusIn)}return(0,f.A)(e,[{key:"dispose",value:function(){var e=this._getWindow();this._focusedElementState.unsubscribe(this._onFocusIn),this._focusedElementState.cancelAsyncFocus(x),e.removeEventListener(A,this._onRestoreFocus)}},{key:"createRestorer",value:function(e,t){var o=new Me(this._tabster,e,t);return t.type===w.Target&&L.getActiveElement(e.ownerDocument)===e&&this._history.push(e),o}}]),e}();function He(e,t){var o,n;if(!e||!t)return!1;for(var r=t;r;){if(r===e)return!0;r="function"!==typeof r.assignedElements&&(null===(o=r.assignedSlot)||void 0===o?void 0:o.parentNode)?null===(n=r.assignedSlot)||void 0===n?void 0:n.parentNode:r.nodeType===document.DOCUMENT_FRAGMENT_NODE?r.host:r.parentNode}return!1}var Le=function(){function e(t){var o=this;(0,p.A)(this,e),this._isObserving=!1,this._callbackWrapper=function(e,t){var n,r=(0,c.A)(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;if("childList"===i.type){for(var a=i.removedNodes,s=i.addedNodes,l=0;l<a.length;l++)o._walkShadows(a[l],!0);for(var u=0;u<s.length;u++)o._walkShadows(s[u])}}}catch(d){r.e(d)}finally{r.f()}o._callback(e,t)},this._callback=t,this._observer=new MutationObserver(this._callbackWrapper),this._subObservers=new Map}return(0,f.A)(e,[{key:"_addSubObserver",value:function(e){if(this._options&&this._callback&&!this._subObservers.has(e)&&this._options.subtree&&He(this._root,e)){var t=new MutationObserver(this._callbackWrapper);this._subObservers.set(e,t),this._isObserving&&t.observe(e,this._options),this._walkShadows(e)}}},{key:"disconnect",value:function(){this._isObserving=!1,delete this._options,e._shadowObservers.delete(this);var t,o=(0,c.A)(this._subObservers.values());try{for(o.s();!(t=o.n()).done;){t.value.disconnect()}}catch(n){o.e(n)}finally{o.f()}this._subObservers.clear(),this._observer.disconnect()}},{key:"observe",value:function(t,o){var n=t.nodeType===Node.DOCUMENT_NODE?t:t.ownerDocument,r=null===n||void 0===n?void 0:n.defaultView;n&&r&&(e._overrideAttachShadow(r),e._shadowObservers.add(this),this._root=t,this._options=o,this._isObserving=!0,this._observer.observe(t,o),this._walkShadows(t))}},{key:"_walkShadows",value:function(e,t){var o=this,n=e.nodeType===Node.DOCUMENT_NODE?e:e.ownerDocument;if(n){if(e===n)e=n.body;else{var r=e.shadowRoot;if(r)return void this._addSubObserver(r)}n.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){if(e.nodeType===Node.ELEMENT_NODE)if(t){var n=o._subObservers.get(e);n&&(n.disconnect(),o._subObservers.delete(e))}else{var r=e.shadowRoot;r&&o._addSubObserver(r)}return NodeFilter.FILTER_SKIP}}).nextNode()}}},{key:"takeRecords",value:function(){var e,t=this._observer.takeRecords(),o=(0,c.A)(this._subObservers.values());try{for(o.s();!(e=o.n()).done;){var n=e.value;t.push.apply(t,(0,u.A)(n.takeRecords()))}}catch(r){o.e(r)}finally{o.f()}return t}}],[{key:"_overrideAttachShadow",value:function(t){var o=t.Element.prototype.attachShadow;o.__origAttachShadow||(Element.prototype.attachShadow=function(t){var n,r=o.call(this,t),i=(0,c.A)(e._shadowObservers);try{for(i.s();!(n=i.n()).done;){n.value._addSubObserver(r)}}catch(a){i.e(a)}finally{i.f()}return r},Element.prototype.attachShadow.__origAttachShadow=o)}}]),e}();Le._shadowObservers=new Set;var qe=(0,f.A)((function e(t){(0,p.A)(this,e),this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t})),We=function(){function e(t,o){var n,r,i=this;(0,p.A)(this,e),this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="8.5.0",this._noop=!1,this.getWindow=function(){if(!i._win)throw new Error("Using disposed Tabster.");return i._win},this._storage=function(e){var t=e.__tabsterInstanceContext;return new((null===t||void 0===t?void 0:t.basics.WeakMap)||WeakMap)}(t),this._win=t;var a=this.getWindow;(null===o||void 0===o?void 0:o.DOMAPI)&&function(e){for(var t=0,o=Object.keys(e);t<o.length;t++){var n=o[t];L[n]=e[n]}}((0,d.A)({},o.DOMAPI)),this.keyboardNavigation=new Te(a),this.focusedElement=new Be(this,a),this.focusable=new xe(this),this.root=new _e(this,null===o||void 0===o?void 0:o.autoRoot),this.uncontrolled=new Fe((null===o||void 0===o?void 0:o.checkUncontrolledCompletely)||(null===o||void 0===o?void 0:o.checkUncontrolledTrappingFocus)),this.controlTab=null===(n=null===o||void 0===o?void 0:o.controlTab)||void 0===n||n,this.rootDummyInputs=!!(null===o||void 0===o?void 0:o.rootDummyInputs),this._dummyObserver=new le(a),this.getParent=null!==(r=null===o||void 0===o?void 0:o.getParent)&&void 0!==r?r:L.getParentNode,this.internal={stopObserver:function(){i._unobserve&&(i._unobserve(),delete i._unobserve)},resumeObserver:function(e){if(!i._unobserve){var t=a().document;i._unobserve=function(e,t,o,n){if("undefined"===typeof MutationObserver)return function(){};var r,i=t.getWindow;function a(t,o){r||(r=W(i).elementByUId),s(t,o);var n=X(e,t,(function(e){return s(e,o)}));if(n)for(;n.nextNode(););}function s(e,n){var a;if(!e.getAttribute)return NodeFilter.FILTER_SKIP;var s=e.__tabsterElementUID;return s&&r&&(n?delete r[s]:null!==(a=r[s])&&void 0!==a||(r[s]=new G(i,e))),(I(t,e)||e.hasAttribute(v))&&o(t,e,n),NodeFilter.FILTER_SKIP}var l=L.createMutationObserver((function(e){var n,r,i,s,l,u,d=new Set,f=(0,c.A)(e);try{for(f.s();!(u=f.n()).done;){var p=u.value,h=p.target,m=p.removedNodes,g=p.addedNodes;if("attributes"===p.type)p.attributeName===v&&(d.has(h)||o(t,h));else{for(var b=0;b<m.length;b++){var _=m[b];d.add(_),a(_,!0),null===(r=(n=t._dummyObserver).domChanged)||void 0===r||r.call(n,h)}for(var y=0;y<g.length;y++)a(g[y]),null===(s=(i=t._dummyObserver).domChanged)||void 0===s||s.call(i,h)}}}catch(x){f.e(x)}finally{f.f()}d.clear(),null===(l=t.modalizer)||void 0===l||l.hiddenUpdate()}));return n&&a(i().document.body),l.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[v]}),function(){l.disconnect()}}(t,i,E,e)}}},U(a),this.queueInit((function(){i.internal.resumeObserver(!0)}))}return(0,f.A)(e,[{key:"_mergeProps",value:function(e){var t;e&&(this.getParent=null!==(t=e.getParent)&&void 0!==t?t:this.getParent)}},{key:"createTabster",value:function(e,t){var o=new qe(this);return e||this._wrappers.add(o),this._mergeProps(t),o}},{key:"disposeTabster",value:function(e,t){t?this._wrappers.clear():this._wrappers.delete(e),0===this._wrappers.size&&this.dispose()}},{key:"dispose",value:function(){var e,t,o,n,r,i,a,s;this.internal.stopObserver();var l=this._win;null===l||void 0===l||l.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],l&&this._forgetMemorizedTimer&&(l.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),null===(e=this.outline)||void 0===e||e.dispose(),null===(t=this.crossOrigin)||void 0===t||t.dispose(),null===(o=this.deloser)||void 0===o||o.dispose(),null===(n=this.groupper)||void 0===n||n.dispose(),null===(r=this.mover)||void 0===r||r.dispose(),null===(i=this.modalizer)||void 0===i||i.dispose(),null===(a=this.observedElement)||void 0===a||a.dispose(),null===(s=this.restorer)||void 0===s||s.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),function(e){var t=W(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}(this.getWindow),$(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),l&&(!function(e){var t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}(l),delete l.__tabsterInstance,delete this._win)}},{key:"storageEntry",value:function(e,t){var o=this._storage,n=o.get(e);return n?!1===t&&0===Object.keys(n).length&&o.delete(e):!0===t&&(n={},o.set(e,n)),n}},{key:"forceCleanup",value:function(){var e=this;this._win&&(this._forgetMemorizedElements.push(this._win.document.body),this._forgetMemorizedTimer||(this._forgetMemorizedTimer=this._win.setTimeout((function(){delete e._forgetMemorizedTimer;for(var t=e._forgetMemorizedElements.shift();t;t=e._forgetMemorizedElements.shift())$(e.getWindow,t),Be.forgetMemorized(e.focusedElement,t)}),0),K(this.getWindow,!0)))}},{key:"queueInit",value:function(e){var t,o=this;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=null===(t=this._win)||void 0===t?void 0:t.setTimeout((function(){delete o._initTimer,o.drainInitQueue()}),0)))}},{key:"drainInitQueue",value:function(){if(this._win){var e=this._initQueue;this._initQueue=[],e.forEach((function(e){return e()}))}}}]),e}();function Ve(e,t){var o=Ye(e);return o?o.createTabster(!1,t):(o=new We(e,t),e.__tabsterInstance=o,o.createTabster())}function Ge(e){var t=e.core;return t.groupper||(t.groupper=new ze(t,t.getWindow)),t.groupper}function Ke(e,t,o){var n=e.core;return n.modalizer||(n.modalizer=new Ne(n,t,o)),n.modalizer}function Ue(e){var t=e.core;return t.restorer||(t.restorer=new Oe(t)),t.restorer}function Xe(e,t){e.core.disposeTabster(e,t)}function Ye(e){return e.__tabsterInstance}},36202:function(e,t,o){"use strict";function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}o.d(t,{A:function(){return n}})},12286:function(e,t,o){"use strict";o.d(t,{A:function(){return s}});var n=o(44331);var r=o(12841),i=o(36202);function a(e,t){if(t&&("object"===(0,r.A)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.A)(e)}function s(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(e){return!1}}();return function(){var o,r=(0,n.A)(e);if(t){var i=(0,n.A)(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return a(this,o)}}},44331:function(e,t,o){"use strict";function n(e){return n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},n(e)}o.d(t,{A:function(){return n}})},51326:function(e,t,o){"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}function r(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&&n(e,t)}o.d(t,{A:function(){return r}})}}]);
//# sourceMappingURL=8562.60e1974e.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[8575],{18575:function(e,r,a){function l(e,r){var a=[];if(!r.global)throw new Error("regular expression must have the global flag set");var l=null;do{(l=r.exec(e))&&a.push(l)}while(l&&l[0]);return a}a.r(r),a.d(r,{matchAll:function(){return l}})}}]);
//# sourceMappingURL=8575.ecc914bf.chunk.js.map
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[8726],{25896:function(t,r,n){var e=n(83746)(n(65369),"DataView");t.exports=e},40979:function(t,r,n){var e=n(83746)(n(65369),"Map");t.exports=e},44376:function(t,r,n){var e=n(83746)(n(65369),"Promise");t.exports=e},1341:function(t,r,n){var e=n(83746)(n(65369),"Set");t.exports=e},49485:function(t,r,n){var e=n(65369).Symbol;t.exports=e},75971:function(t,r,n){var e=n(83746)(n(65369),"WeakMap");t.exports=e},86228:function(t){t.exports=function(t,r){for(var n=-1,e=r.length,o=t.length;++n<e;)t[o+n]=r[n];return t}},66380:function(t,r,n){var e=n(49485),o=n(77871),c=n(4282),u=e?e.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":u&&u in Object(t)?o(t):c(t)}},79986:function(t,r,n){var e=n(66380),o=n(61462);t.exports=function(t){return o(t)&&"[object Arguments]"==e(t)}},93847:function(t,r,n){var e=n(66350),o=n(45964),c=n(74537),u=n(55405),i=/^\[object .+?Constructor\]$/,a=Function.prototype,p=Object.prototype,f=a.toString,s=p.hasOwnProperty,b=RegExp("^"+f.call(s).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!c(t)||o(t))&&(e(t)?b:i).test(u(t))}},16521:function(t,r,n){var e=n(66380),o=n(76994),c=n(61462),u={};u["[object Float32Array]"]=u["[object Float64Array]"]=u["[object Int8Array]"]=u["[object Int16Array]"]=u["[object Int32Array]"]=u["[object Uint8Array]"]=u["[object Uint8ClampedArray]"]=u["[object Uint16Array]"]=u["[object Uint32Array]"]=!0,u["[object Arguments]"]=u["[object Array]"]=u["[object ArrayBuffer]"]=u["[object Boolean]"]=u["[object DataView]"]=u["[object Date]"]=u["[object Error]"]=u["[object Function]"]=u["[object Map]"]=u["[object Number]"]=u["[object Object]"]=u["[object RegExp]"]=u["[object Set]"]=u["[object String]"]=u["[object WeakMap]"]=!1,t.exports=function(t){return c(t)&&o(t.length)&&!!u[e(t)]}},64108:function(t,r,n){var e=n(8683),o=n(52254),c=Object.prototype.hasOwnProperty;t.exports=function(t){if(!e(t))return o(t);var r=[];for(var n in Object(t))c.call(t,n)&&"constructor"!=n&&r.push(n);return r}},47929:function(t){t.exports=function(t){return function(r){return t(r)}}},11517:function(t,r,n){var e=n(65369)["__core-js_shared__"];t.exports=e},54132:function(t,r,n){var e="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=e},83746:function(t,r,n){var e=n(93847),o=n(25076);t.exports=function(t,r){var n=o(t,r);return e(n)?n:void 0}},77871:function(t,r,n){var e=n(49485),o=Object.prototype,c=o.hasOwnProperty,u=o.toString,i=e?e.toStringTag:void 0;t.exports=function(t){var r=c.call(t,i),n=t[i];try{t[i]=void 0;var e=!0}catch(a){}var o=u.call(t);return e&&(r?t[i]=n:delete t[i]),o}},81793:function(t,r,n){var e=n(25896),o=n(40979),c=n(44376),u=n(1341),i=n(75971),a=n(66380),p=n(55405),f="[object Map]",s="[object Promise]",b="[object Set]",j="[object WeakMap]",l="[object DataView]",y=p(e),v=p(o),x=p(c),g=p(u),d=p(i),O=a;(e&&O(new e(new ArrayBuffer(1)))!=l||o&&O(new o)!=f||c&&O(c.resolve())!=s||u&&O(new u)!=b||i&&O(new i)!=j)&&(O=function(t){var r=a(t),n="[object Object]"==r?t.constructor:void 0,e=n?p(n):"";if(e)switch(e){case y:return l;case v:return f;case x:return s;case g:return b;case d:return j}return r}),t.exports=O},25076:function(t){t.exports=function(t,r){return null==t?void 0:t[r]}},45964:function(t,r,n){var e=n(11517),o=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!o&&o in t}},8683:function(t){var r=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||r)}},52254:function(t,r,n){var e=n(29899)(Object.keys,Object);t.exports=e},30693:function(t,r,n){t=n.nmd(t);var e=n(54132),o=r&&!r.nodeType&&r,c=o&&t&&!t.nodeType&&t,u=c&&c.exports===o&&e.process,i=function(){try{var t=c&&c.require&&c.require("util").types;return t||u&&u.binding&&u.binding("util")}catch(r){}}();t.exports=i},4282:function(t){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},29899:function(t){t.exports=function(t,r){return function(n){return t(r(n))}}},65369:function(t,r,n){var e=n(54132),o="object"==typeof self&&self&&self.Object===Object&&self,c=e||o||Function("return this")();t.exports=c},55405:function(t){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(n){}try{return t+""}catch(n){}}return""}},71240:function(t,r,n){var e=n(79986),o=n(61462),c=Object.prototype,u=c.hasOwnProperty,i=c.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(t){return o(t)&&u.call(t,"callee")&&!i.call(t,"callee")};t.exports=a},20573:function(t){var r=Array.isArray;t.exports=r},10330:function(t,r,n){var e=n(66350),o=n(76994);t.exports=function(t){return null!=t&&o(t.length)&&!e(t)}},71484:function(t,r,n){t=n.nmd(t);var e=n(65369),o=n(1107),c=r&&!r.nodeType&&r,u=c&&t&&!t.nodeType&&t,i=u&&u.exports===c?e.Buffer:void 0,a=(i?i.isBuffer:void 0)||o;t.exports=a},66350:function(t,r,n){var e=n(66380),o=n(74537);t.exports=function(t){if(!o(t))return!1;var r=e(t);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}},76994:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},74537:function(t){t.exports=function(t){var r=typeof t;return null!=t&&("object"==r||"function"==r)}},61462:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},58331:function(t,r,n){var e=n(16521),o=n(47929),c=n(30693),u=c&&c.isTypedArray,i=u?o(u):e;t.exports=i},1107:function(t){t.exports=function(){return!1}}}]);
//# sourceMappingURL=8726.89ae1474.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[8728],{38728:function(e,t,n){var r=n(42732);Object.defineProperty(t,"__esModule",{value:!0});var o=n(80322),a=n(94786),s=(n(35938),n(9329));function l(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}function c(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}var d=l(o),u=c(o),p=c(a),m=l(a),h=l(s),f=function(e,t){return f=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])},f(e,t)};function g(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}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var v=function(){return v=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},v.apply(this,arguments)};function y(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 b(e,t,n,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,n,a):o(t,n))||a);return i>3&&a&&Object.defineProperty(t,n,a),a}Object.create;function C(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var S="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};var x,k,P,I=(x=function(e,t){function n(e){return e&&"object"===typeof e&&"default"in e?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach((function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}})),t.default=e,Object.freeze(t)}Object.defineProperty(t,"__esModule",{value:!0});var a=o(d.default),s=n(d.default),l=n(h.default),c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof S?S:"undefined"!==typeof self?self:{};function u(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function p(e,t){return e(t={exports:{}},t.exports),t.exports}var m=p((function(e){!function(e){!function(t){var n="undefined"!==typeof globalThis&&globalThis||"undefined"!==typeof e&&e||"undefined"!==typeof c&&c||{},r="URLSearchParams"in n,o="Symbol"in n&&"iterator"in Symbol,i="FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch(e){return!1}}(),a="FormData"in n,s="ArrayBuffer"in n;if(s)var l=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],d=ArrayBuffer.isView||function(e){return e&&l.indexOf(Object.prototype.toString.call(e))>-1};function u(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 m(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(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:i&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:a&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:r&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&i&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||d(e))?this._bodyArrayBuffer=y(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):r&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=f(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}if(i)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,n=g(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),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)},a&&(this.formData=function(){return this.text().then(x)}),this.json=function(){return this.text().then(JSON.parse)},this}h.prototype.append=function(e,t){e=u(e),t=p(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},h.prototype.delete=function(e){delete this.map[u(e)]},h.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},h.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},h.prototype.set=function(e,t){this.map[u(e)]=p(t)},h.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},h.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),m(e)},h.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),m(e)},h.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),m(e)},o&&(h.prototype[Symbol.iterator]=h.prototype.entries);var C=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r=(t=t||{}).body;if(e instanceof S){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=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 h(t.headers)),this.method=function(e){var t=e.toUpperCase();return C.indexOf(t)>-1?t:e}(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in n)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var o=/([?&])_=[^&]*/;o.test(this.url)?this.url=this.url.replace(o,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function x(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function k(e){var t=new h;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();try{t.append(r,o)}catch(i){console.warn("Response "+i.message)}}})),t}function P(e,t){if(!(this instanceof P))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})},b.call(S.prototype),b.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},P.error=function(){var e=new P(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var I=[301,302,303,307,308];P.redirect=function(e,t){if(-1===I.indexOf(t))throw new RangeError("Invalid status code");return new P(null,{status:t,headers:{location:e}})},t.DOMException=n.DOMException;try{new t.DOMException}catch(E){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function w(e,r){return new Promise((function(o,a){var l=new S(e,r);if(l.signal&&l.signal.aborted)return a(new t.DOMException("Aborted","AbortError"));var c=new XMLHttpRequest;function d(){c.abort()}if(c.onload=function(){var e={statusText:c.statusText,headers:k(c.getAllResponseHeaders()||"")};0===l.url.indexOf("file://")&&(c.status<200||c.status>599)?e.status=200:e.status=c.status,e.url="responseURL"in c?c.responseURL:e.headers.get("X-Request-URL");var t="response"in c?c.response:c.responseText;setTimeout((function(){o(new P(t,e))}),0)},c.onerror=function(){setTimeout((function(){a(new TypeError("Network request failed"))}),0)},c.ontimeout=function(){setTimeout((function(){a(new TypeError("Network request timed out"))}),0)},c.onabort=function(){setTimeout((function(){a(new t.DOMException("Aborted","AbortError"))}),0)},c.open(l.method,function(e){try{return""===e&&n.location.href?n.location.href:e}catch(t){return e}}(l.url),!0),"include"===l.credentials?c.withCredentials=!0:"omit"===l.credentials&&(c.withCredentials=!1),"responseType"in c&&(i?c.responseType="blob":s&&(c.responseType="arraybuffer")),r&&"object"===typeof r.headers&&!(r.headers instanceof h||n.Headers&&r.headers instanceof n.Headers)){var m=[];Object.getOwnPropertyNames(r.headers).forEach((function(e){m.push(u(e)),c.setRequestHeader(e,p(r.headers[e]))})),l.headers.forEach((function(e,t){-1===m.indexOf(t)&&c.setRequestHeader(t,e)}))}else l.headers.forEach((function(e,t){c.setRequestHeader(t,e)}));l.signal&&(l.signal.addEventListener("abort",d),c.onreadystatechange=function(){4===c.readyState&&l.signal.removeEventListener("abort",d)}),c.send("undefined"===typeof l._bodyInit?null:l._bodyInit)}))}w.polyfill=!0,n.fetch||(n.fetch=w,n.Headers=h,n.Request=S,n.Response=P),t.Headers=h,t.Request=S,t.Response=P,t.fetch=w,Object.defineProperty(t,"__esModule",{value:!0})}({})}("undefined"!==typeof self?self:c)})),f=(u(m),function(e,t){return f=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])},f(e,t)});function g(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}f(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var v=function(){return v=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},v.apply(this,arguments)};function y(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 b(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function C(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},a=Object.create(("function"===typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=(o=i.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function x(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"===typeof SuppressedError&&SuppressedError;var k,P,I,w,E,_,D,T,R,A,M,N,F,H,O,B,L,V,z,W,U,K,j,G,q,Y,Z,J,Q,X,$,ee,te,ne,re,oe,ie,ae,se,le,ce,de,ue,pe,me,he,fe,ge,ve,ye,be,Ce,Se,xe,ke,Pe,Ie,we,Ee,_e,De,Te,Re,Ae,Me,Ne,Fe,He,Oe,Be,Le,Ve,ze,We,Ue,Ke,je,Ge,qe,Ye,Ze,Je,Qe,Xe,$e,et,tt,nt=Object.prototype.hasOwnProperty,rt=Object.prototype.toString,ot=Object.defineProperty,it=Object.getOwnPropertyDescriptor,at=function(e){return"function"===typeof Array.isArray?Array.isArray(e):"[object Array]"===rt.call(e)},st=function(e){if(!e||"[object Object]"!==rt.call(e))return!1;var t,n=nt.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&nt.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return"undefined"===typeof t||nt.call(e,t)},lt=function(e,t){ot&&"__proto__"===t.name?ot(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},ct=function(e,t){if("__proto__"===t){if(!nt.call(e,t))return;if(it)return it(e,t).value}return e[t]},dt=function e(){var t,n,r,o,i,a,s=arguments[0],l=1,c=arguments.length,d=!1;for("boolean"===typeof s&&(d=s,s=arguments[1]||{},l=2),(null==s||"object"!==typeof s&&"function"!==typeof s)&&(s={});l<c;++l)if(null!=(t=arguments[l]))for(n in t)r=ct(s,n),s!==(o=ct(t,n))&&(d&&o&&(st(o)||(i=at(o)))?(i?(i=!1,a=r&&at(r)?r:[]):a=r&&st(r)?r:{},lt(s,{name:n,newValue:e(d,a,o)})):"undefined"!==typeof o&&lt(s,{name:n,newValue:o}));return s};!function(e){e.Unknown="Unknown",e.iFrameMessageHandler="iFrameMessageHandler"}(k||(k={})),function(e){e.forSubmit="forSubmit",e.forDisplay="forDisplay"}(P||(P={})),function(e){e.message="message"}(I||(I={})),function(e){e.forFormat="forFormat",e.forModel="forModel"}(w||(w={})),function(e){e.Error="error",e.Fail="failed",e.Passed="passed"}(E||(E={})),function(e){e.PaymentInstrument="PaymentInstrument",e.Challenge="Challenge",e.Address="Address",e.Profile="Profile",e.PaymentSession="PaymentSession",e.Checkout="Checkout",e.PayeeTaxProfile="PayeeTaxProfile",e.WalletToken="WalletToken"}(_||(_={})),function(e){e.div="pidlddc-div",e.errorDiv="pidlddc-errordiv",e.label="pidlddc-label",e.key="pidlddc-input-key",e.property="pidlddc-input-property",e.dropdown="pidlddc-input-dropdown",e.radio="pidlddc-input-radio",e.radioLabel="pidlddc-radio-label",e.buttonList="pidlddc-input-buttonlist",e.checkBox="pidlddc-input-checkbox",e.textBox="pidlddc-input-text",e.filePicker="pidlddc-input-file",e.staticText="pidlddc-static-text",e.heading="pidlddc-heading",e.subHeading="pidlddc-subheading",e.text="pidlddc-text",e.textGroup="pidlddc-text-group",e.hyperlink="pidlddc-hyperlink",e.image="pidlddc-image",e.error="pidlddc-error",e.separator="pidlddc-separator",e.pageBody="pidlddc-page-body",e.logo="pidlddc-logo-image",e.submitButton="pidlddc-submit-button",e.button="pidlddc-button",e.busyBlock="pidlddc-busy-block",e.errorBlock="pidlddc-error-block",e.errorInlineGroup="pidlddc-error-inlineGroup",e.submitBlock="pidlddc-submit-block",e.helpImage="pidlddc-help-image",e.helpDialogBlock="pidlddc-help-dialog-block",e.helpDialogContentBlock="pidlddc-help-dialog-content-block",e.modalDialogBlock="pidlddc-modal-dialog-block",e.modalDialogContentBlock="pidlddc-modal-dialog-content-block",e.helpDialogClose="pidlddc-help-dialog-close",e.helpImageLink="pidlddc-help-imageLink",e.helpTextLink="pidlddc-help-textLink",e.pageContentBlock="pidlddc-pagecontent-block",e.prefillControl="pidlddc-input-prefillcontrol",e.prefillCheckbox="pidlddc-input-prefillcheckbox",e.prefillDropdown="pidlddc-input-prefilldropdown",e.propertyDiv="pidlddc-div-property",e.dropdownDiv="pidlddc-div-dropdown",e.checkBoxDiv="pidlddc-div-checkbox",e.textBoxDiv="pidlddc-div-textbox",e.securePropertyDiv="pidlddc-div-secureproperty",e.filePickerDiv="pidlddc-div-filepicker",e.imageDiv="pidlddc-div-image",e.logoDiv="pidlddc-div-logo",e.buttonDiv="pidlddc-div-button",e.groupDiv="pidlddc-div-group",e.errorStroke="pidlddc-errorstroke",e.highlighted="pidlddc-highlighted",e.back="pidlddc-back",e.inlineGroup="pidlddc-group-inline",e.inputTextDisabled="pidlddc-input-text-disabled",e.inputSelectDisabled="pidlddc-input-select-disabled",e.displayLogo="pidlddc-input-logo",e.filled="pidlddc-filled",e.iFrame="pidlddc-iFrame",e.secureProperty="pidlddc-secure-property",e.iFrameDiv="pidlddc-div-iFrame",e.captchaDiv="pidlddc-div-captcha",e.audio="pidlddc-audio",e.challengeIFrame="pidlddc-challengeiFrame",e.challengeIFrameDiv="pidlddc-div-challengeiFrame"}(D||(D={})),function(e){e.index="pidlddc-inline-element-",e.taggedClass="pidlddc-"}(T||(T={})),function(e){e.div="pidlddc-div-",e.error="pidlddc-error-",e.label="pidlddc-label-",e.text="pidlddc-text-",e.hyperlink="pidlddc-hyperlink-",e.property="pidlddc-input-",e.button="pidlddc-button-",e.audio="pidlddc-audio-",e.buttongroup="pidlddc-button-group-",e.iFrame="pidlddc-iFrame-",e.challengeiFrame="pidlddc-challengeiFrame-",e.input="input_",e.iframe="iframe_",e.filePicker="filepicker_",e.secureProperty="pidlddc-secure-input-",e.image="pidlddc-image-",e.helpDialog="helpdialog-",e.helpDialogContent="helpdialog-content-",e.modalDialog="modaldialog-",e.modalDialogContent="modaldialog-content-",e.prefillControl="pidlddc-prefillcontrol-",e.maxLength="pidlddc-maxlength-",e.logo="pidlddc-logo-",e.separator="pidlddc-separator-",e.spinner="pidlddc-spinner-",e.pidlInstance="pidlddc-pidlinstance-"}(R||(R={})),function(e){e.pageBlock="pagebodycontents",e.pageLogoBlock="pagelogoblock",e.pageBusyBlock="pagebusyblock",e.pageErrorBlock="pageerrorblock",e.pageSubmitBlock="pagesubmitblock",e.helpDialogBlock="pagehelpdialog",e.modalDialogBlock="pagemodaldialog",e.displayImage="displayImage",e.closeButton="closeButton",e.prefillCheckbox="prefillCheckbox"}(A||(A={})),function(e){e[e.Unexpected=1e3]="Unexpected",e[e.InvalidInput=1001]="InvalidInput",e[e.ServerError=1002]="ServerError"}(M||(M={})),function(e){e.success="success",e.failure="failure",e.gohome="gohome"}(N||(N={})),function(e){e.unknown="modelElementType_unknown",e.page="modelElementType_page",e.group="modelElementType_group",e.captcha="modelElementType_captcha",e.audio="modelElementType_audio",e.textGroup="modelElementType_textGroup",e.heading="modelElementType_heading",e.subheading="modelElementType_subheading",e.text="modelElementType_text",e.hyperlink="modelElementType_hyperlink",e.image="modelElementType_image",e.logo="modelElementType_logo",e.dropdown="modelElementType_dropdown",e.checkBox="modelElementType_checkBox",e.textBox="modelElementType_textBox",e.button="modelElementType_button",e.expression="modelElementType_expression",e.radio="modelElementType_radio",e.buttonList="modelElementType_buttonlist",e.pidlContainer="modelElementType_pidlContainer",e.pidlInstance="modelElementType_pidlInstance",e.dataCollectionBindingGroup="modelElementType_dataCollectionBindingGroup",e.iFrame="modelElementType_iFrame",e.challengeIFrame="modelElementType_challengeiFrame",e.expressCheckoutButton="modelElementType_expressCheckoutButton",e.filePicker="modelElementType_filePicker",e.secureProperty="modelElementType_secureProperty",e.separator="modelElementType_separator",e.spinner="modelElementType_spinner"}(F||(F={})),function(e){e.modelElementType_heading="h1",e.modelElementType_subheading="h2",e.modelElementType_text="p",e.modelElementType_expression="p",e.modelElementType_textGroup="p"}(H||(H={})),function(e){e.button="button",e.iFrame="iframe",e.div="div",e.hyperlink="a",e.image="img",e.input="input",e.label="label",e.select="select",e.span="span",e.h1="h1",e.h2="h2",e.hr="hr",e.audio="audio"}(O||(O={})),function(e){e.image="image",e.button="button",e.password="password",e.radio="radio",e.checkbox="checkbox",e.file="file"}(B||(B={})),function(e){e.add="Add",e.replace="Replace",e.createPaymentSession="createPaymentSession",e.getSelectedResource="GetSelectedResource",e.handleAction="HandleAction",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.expressCheckout="expressCheckout",e.invokeResourceAction="InvokeResourceAction",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="RenderPidlPage",e.selectResource="SelectResource",e.selectResourceType="SelectResourceType",e.selectSingleResource="SelectSingleResource",e.show="Show",e.offer="Offer",e.search="Search",e.update="Update",e.validateResource="ValidateResource",e.verify="Verify",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.applyResource="applyResource",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.delete="Delete",e.getPayeeTaxProfile="getPayeeTaxProfile",e.redeemMSRewards="redeemMSRewards",e.searchTransactions="searchTransactions",e.selectMSRewards="selectMSRewards"}(L||(L={})),function(e){e.stringTrue="true",e.stringFalse="false",e.stringOptional="optional"}(V||(V={})),function(e){e.submit="submit",e.triggerSubmit="triggerSubmit",e.submitOriginalPidl="submitOriginalPidl",e.gohome="gohome",e.next="moveNext",e.prev="movePrevious",e.first="moveFirst",e.last="moveLast",e.success="success",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.redirect="redirect",e.restAction="restAction",e.restartFlow="restartFlow",e.successWithPidlPayload="successWithPidlPayload",e.navigateAndNext="navigateAndMoveNext",e.validate="validate",e.validateOnChange="validateOnChange",e.poll="poll",e.moveNextAndPoll="moveNextAndPoll",e.handleFailure="handleFailure",e.updatePoll="updatePoll",e.continueSuspendedAction="continueSuspendedAction",e.closeModalDialog="closeModalDialog",e.mergeData="mergeData",e.propertyBindingAction="propertyBindingAction",e.closePidlPage="closePidlPage",e.successWithSelectedPidlAction="successWithSelectedPidlAction",e.updatePollAndMoveLast="updatePollAndMoveLast",e.noAction="noAction",e.moveToPageIndex="moveToPageIndex",e.updatePropertyValue="updatePropertyValue"}(z||(z={})),function(e){e.selectSingleResource="selectSingleResource",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.addResource="addResource",e.updateResource="updateResource",e.deleteResource="deleteResource",e.handleChallenge="handleChallenge",e.collectResourceInfo="collectResourceInfo",e.addAddress="addAddress",e.selectPaymentInstrument="selectPaymentInstrument",e.addPaymentInstrument="addPaymentInstrument",e.updateProfile="updateProfile",e.searchTransactions="searchTransactions"}(W||(W={})),function(e){e.error="error",e.styleSheetError="styleSheetError",e.captchaRendered="captchaRendered",e.propertyCreating="propertyCreating",e.propertySelected="propertySelected",e.toggleClicked="toggleClicked",e.instanceDownloading="instanceDownloading",e.instanceDownloaded="instanceDownloaded",e.pidlDownloading="pidlDownloading",e.pidlDownloaded="pidlDownloaded",e.pageRendering="pageRendering",e.pageRendered="pageRendered",e.pageRefreshed="pageRefreshed",e.pageDisplayed="pageDisplayed",e.inputReading="inputReading",e.inputRead="inputRead",e.inputValidating="inputValidating",e.inputValidated="inputValidated",e.inputTokenizing="inputTokenizing",e.inputTokenized="inputTokenized",e.inputSubmitting="inputSubmitting",e.inputSubmitted="inputSubmitted",e.redirecting="redirecting",e.navigate="navigate",e.triggerEvent="triggerEvent",e.partnerAction="partnerAction",e.propertyValidated="propertyValidated",e.propertyTokenizing="propertyTokenizing",e.propertyTokenized="propertyTokenized",e.propertyTransforming="propertyTransforming",e.propertyTransformed="propertyTransformed",e.resourceSelected="resourceSelected",e.pageNavigated="pageNavigated",e.click="click",e.payloadCreated="payloadCreated",e.restMethodInvoking="restMethodInvoking",e.restMethodInvoked="restMethodInvoked",e.noSelectionOptionsFound="noSelectionOptionsFound",e.selectionChanged="selectionChanged",e.fetchCallCompleted="fetchCallCompleted",e.renderedPidlPage="renderedPidlPage",e.closePidlPage="closePidlPage",e.submitOriginalPidl="submitOriginalPidl",e.fileUploading="fileUploading",e.fileUploaded="fileUploaded",e.isDisabled="isDisabled",e.expressCheckoutReady="expressCheckoutReady",e.propertyConditionallyUpdated="propertyConditionallyUpdated",e.challengeMessageReceived="challengeMessageReceived",e.getLocalDataSourceInvoked="getLocalDataSourceInvoked",e.getLocalDataSourceResolved="getLocalDataSourceResolved",e.getLocalDataSourceError="getLocalDataSourceError",e.paymentSheetOpened="paymentSheetOpened",e.paymentSheetCancelled="paymentSheetCancelled"}(U||(U={})),function(e){e.apiCalled="apiCalled",e.apiReturned="apiReturned",e.modelUpdated="modelUpdated",e.dataUpdated="dataUpdated",e.failure="failure",e.success="success",e.gohome="gohome",e.stateChanged="stateChanged",e.propertyCreated="propertyCreated",e.propertyUnselected="propertyUnselected",e.conflictingInputValues="conflictingInputValues",e.pidlResolved="pidlResolved",e.secureFieldEventReceived="secureFieldEventReceived",e.secureFieldEventQueued="secureFieldEventQueued",e.secureFieldEventPosted="secureFieldEventPosted",e.secureFieldLoadWaitStarted="secureFieldWaitStarted",e.secureFieldsLoaded="secureFieldsLoaded",e.secureFieldLoadWaitEnded="secureFieldWaitEnded",e.challengeMessageReceived="challengeMessageReceived",e.paymentDataTokenizing="paymentDataTokenizing",e.paymentDataTokenized="paymentDataTokenized",e.postMessageReceived="postMessageReceived",e.postMessageHandleSuccess="postMessageHandleSuccess",e.postMessageHandleFailure="postMessageHandleFailure",e.postMessageTimeoutHandleSuccess="postMessageTimeoutHandleSuccess",e.postMessageTimeoutHandleFailure="postMessageTimeoutHandleFailure",e.postMessageBusyTimerStarted="postMessageBusyTimerStarted",e.postMessageBusyTimerEnded="postMessageBusyTimerEnded",e.pollingStarted="pollingStarted",e.pollingEnded="pollingEnded",e.paymentClientSubmissionSkipped="paymentClientSubmissionSkipped",e.resourceHelpersFunctionExecuted="resourceHelpersFunctionExecuted",e.submitting="submitting",e.submitted="submitted",e.pollClientActionSuccess="pollClientActionSuccess",e.pollClientActionFailure="pollClientActionFailure",e.hideModalDialog="hideModalDialog",e.updatePollAndMoveLast="updatePollAndMoveLast",e.pidlActionInvoked="pidlActionInvoked",e.clientActionInvoked="clientActionInvoked",e.propertyValueSelected="propertyValueSelected",e.eventExtenderRegistered="eventExtenderRegistered",e.metric="metric",e.addSecureFieldPreLoadIFrameStarted="addSecureFieldPreLoadIFrameStarted",e.addSecureFieldPreLoadIFrameCompleted="addSecureFieldPreLoadIFrameCompleted",e.addSecureFieldPreLoadIFrameFailed="addSecureFieldPreLoadIFrameFailed",e.implementationMissing="implementationMissing"}(K||(K={})),function(e){e.containerId="containerId",e.busyBlockId="busyBlockId",e.busyBlockShowHideHandler="busyBlockShowHideHandler",e.inputPropertyIdPrefix="inputPropertyIdPrefix",e.inputPropertyIdSuffix="inputPropertyIdSuffix",e.displayElementIdPrefix="displayElementIdPrefix",e.displayElementIdSuffix="displayElementIdSuffix",e.inputPropertyErrorIdPrefix="inputPropertyErrorIdPrefix",e.showPlaceholderInTextbox="showPlaceholderInTextbox",e.showSubmitBlock="showSubmitBlock",e.showErrorBlock="showErrorBlock",e.disableEnterKeyAction="disableEnterKeyAction",e.htmlExtender="htmlExtender",e.hidePropertyErrors="hidePropertyErrors",e.disableFocusOnLoad="disableFocusOnLoad",e.alwaysValidateOnChange="alwaysValidateOnChange",e.ieExtender="ieExtender",e.propagateCallbackException="propagateCallbackException",e.useWebView2="useWebView2",e.busyUntilInitialPageRendered="busyUntilInitialPageRendered",e.secureFieldPreLoadingEnabled="secureFieldPreLoadingEnabled",e.instanceName="instanceName",e.preventUnmountOnFinish="preventUnmountOnFinish"}(j||(j={})),function(e){e.formValidationFailed="formValidationFailed",e.editedPropertiesValidationFailed="editedPropertiesValidationFailed"}(G||(G={})),function(e){e.inputValidation="inputValidationError",e.userInputValidation="userInputValidationError",e.formValidation="formValidationFailed",e.unexpected="unexpected",e.serverError="serverError",e.missingImplementationError="missingImplementationError",e.invalidSetup="invalidSetup",e.paymentMethodFailure="paymentMethodFailure",e.failedToOpenWindow="failedToOpenWindow",e.unmatchedAmount="unmatchedAmount",e.walletProvider="walletProvider",e.secureFieldInitCompletedTimeout="secureFieldInitCompletedTimeout"}(q||(q={})),function(e){e.validationFailed="ValidationFailed",e.tokenizationFailed="TokenizationFailed",e.fileUploadFailed="FileUploadFailed"}(Y||(Y={})),function(e){e.property="property",e.group="group"}(Z||(Z={})),function(e){e.all="all",e.dirtyOnly="dirtyOnly"}(J||(J={})),function(e){e.empty="required_field_empty"}(Q||(Q={})),function(e){e.div="htmlElementType_div",e.label="htmlElementType_label",e.captcha="htmlElementType_captcha",e.audio="htmlElementType_audio",e.dropdown="htmlElementType_dropdown",e.checkBox="htmlElementType_checkBox",e.radio="htmlElementType_radio",e.buttonList="htmlElementType_buttonList",e.textBox="htmlElementType_textBox",e.filePicker="htmlElementType_filePicker",e.button="htmlElementType_button",e.iFrame="htmlElementType_iFrame",e.challengeIFrame="htmlElementType_challengeiFrame",e.secureProperty="htmlElementType_secureProperty",e.heading="htmlElementType_text_heading",e.subHeading="htmlElementType_text_subheading",e.text="htmlElementType_text",e.textGroup="htmlElementType_textGroup",e.hyperlink="htmlElementType_hyperlink",e.image="htmlElementType_image",e.logo="htmlElementType_logo",e.errorDiv="htmlElementType_errorDiv",e.error="htmlElementType_error",e.separator="htmlElementType_separator"}(X||(X={})),function(e){e.busyBlock="busyBlock",e.errorBlock="errorBlock",e.helpDialogBlock="helpDialogBlock",e.helpDialogContentBlock="helpDialogContentBlock",e.pageContentBlock="pageContentBlock",e.submitBlock="submitBlock",e.modalDialogBlock="modalDialogBlock",e.modalDialogContentBlock="modalDialogContentBlock"}($||($={})),function(e){e.authorization="authorization",e.contentType="content-type",e.msCV="ms-cv",e.msCorrelationId="x-ms-correlation-id",e.msFlight="x-ms-flight",e.msTrackingId="x-ms-tracking-id",e.msRetryOnServerErr="x-ms-px-retry-servererr",e.correlationContext="Correlation-Context",e.msPidlsdkVersion="x-ms-pidlsdk-version",e.msTest="x-ms-test",e.msClientContext="x-ms-pidlsdk-clientcontext"}(ee||(ee={})),function(e){e.enablePaymentAgentChallenge="pidl-enable-payment-agent-challenge"}(te||(te={})),function(e){e.operation="operation"}(ne||(ne={})),function(e){e.role="role",e.required="required",e.src="src",e.controls="controls"}(re||(re={})),function(e){e.pidlInfo="pidlInfo",e.paymentInstruments="paymentInstruments"}(oe||(oe={})),function(e){e.alt="alt",e.tabIndex="tabindex"}(ie||(ie={})),function(e){e[e.element=1]="element",e[e.attribute=2]="attribute",e[e.text=3]="text",e[e.comment=8]="comment"}(ae||(ae={})),function(e){e.alert="alert",e.dialog="dialog",e.combobox="combobox",e.radiogroup="radiogroup",e.radio="radio",e.presentation="presentation",e.group="group",e.image="img",e.separator="separator",e.audio="audio"}(se||(se={})),function(e){e.activedescendant="aria-activedescendant",e.describedBy="aria-describedby",e.disabled="aria-disabled",e.expanded="aria-expanded",e.hidden="aria-hidden",e.label="aria-label",e.labelledBy="aria-labelledby",e.live="aria-live",e.selected="aria-selected",e.checked="aria-checked",e.required="aria-required"}(le||(le={})),function(e){e.polite="polite",e.assertive="assertive",e.off="off"}(ce||(ce={})),function(e){e.errorBlockId="data-pidl-error-block-id"}(de||(de={})),function(e){e.market="country"}(ue||(ue={})),function(e){e.country="market"}(pe||(pe={})),function(e){e.windows="windows"}(me||(me={})),function(e){e.closeButtonHelpText="closeButtonAccessiblityName",e.prefillDropdownDefault="dropdown_default",e.prefillDropdownNew="dropdown_new"}(he||(he={})),function(e){e.notInitialized="notInitialized",e.initialized="initialized",e.executing="executing",e.submitting="submitting"}(fe||(fe={})),function(e){e.clean="clean",e.editing="editing",e.dirty="dirty"}(ge||(ge={})),function(e){e.ready="ready",e.selected="selected",e.editing="editing",e.finished="finished"}(ve||(ve={})),function(e){e.empty="[]"}(ye||(ye={})),function(e){e.pageNavigated="pageNavigated",e.modelCreated="modelCreated",e.modelUpdated="modelUpdated",e.prefillChanged="prefillChanged"}(be||(be={})),function(e){e.constructor="constructor",e.addResource="addResource",e.applyResource="applyResource",e.replaceResource="replaceResource",e.cancel="cancel",e.destroyInstance="destroyInstance",e.createPaymentSession="createPaymentSession",e.getPidlPayload="getPidlPayload",e.getSelectedResource="getSelectedResource",e.handleAction="handleAction",e.handleChallenge="handleChallenge",e.handlePaymentChallenge="handlePaymentChallenge",e.handlePurchasePendingState="handlePurchasePendingState",e.handlePurchaseRiskChallenge="handlePurchaseRiskChallenge",e.expressCheckout="expressCheckout",e.invokePageDefaultAction="invokePageDefaultAction",e.invokeResourceAction="invokeResourceAction",e.modelSubmitForm="modelSubmitForm",e.moveNextPage="moveNextPage",e.submitPage="submitPage",e.validateProperties="validateProperties",e.movePrevPage="movePrevPage",e.moveToLastPage="moveToLastPage",e.moveToFirstPage="moveToFirstPage",e.postMessageToChildIFrames="postMessageToChildiFrames",e.refreshData="refreshData",e.renderPidlDocument="renderPidlDocument",e.renderPidlPage="renderPidlPage",e.selectResource="selectResource",e.selectResourceType="selectResourceType",e.selectSingleResource="selectSingleResource",e.showResource="showResource",e.searchResource="searchResource",e.updateResource="updateResource",e.validateResource="validateResource",e.fundStoredValue="fundStoredValue",e.addAddress="addAddress",e.addPaymentInstrument="addPaymentInstrument",e.selectPaymentInstrument="selectPaymentInstrument",e.listAddress="listAddress",e.updateProfile="updateProfile",e.handleCheckout="handleCheckout",e.deleteResource="deleteResource",e.getPayeeTaxProfile="getPayeeTaxProfile",e.redeemMSRewards="redeemMSRewards",e.searchTransactions="searchTransactions",e.offerResource="offerResource",e.selectMSRewards="selectMSRewards"}(Ce||(Ce={})),function(e){e[e.arrowDown=40]="arrowDown",e[e.arrowUp=38]="arrowUp",e[e.enter=13]="enter",e[e.escape=27]="escape",e[e.xboxBackButton=196]="xboxBackButton",e[e.xboxEnterButton=207]="xboxEnterButton"}(Se||(Se={})),function(e){e.hidden="hidden",e.number="number",e.bool="bool",e.object="object",e.returnObject="returnObject"}(xe||(xe={})),function(e){e.sessionId="sessionId",e.riskData="riskData",e.greenId="greenId"}(ke||(ke={})),function(e){e.userData="userData"}(Pe||(Pe={})),function(e){e.captchaType="captchaType"}(Ie||(Ie={})),function(e){e.Get="GET",e.Post="POST",e.Put="PUT",e.Delete="DELETE"}(we||(we={})),function(e){e.accessibilityName="accessibilityName",e.theme="theme",e.tabIndex="tabIndex",e.maxLengthMessage="maxLengthMessage",e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.linkAccessibilityName="linkAccessibilityName",e.accessibilityHint="accessibilityHint",e.hideInlineError="hideInlineError",e.displayTagStyleHints="displayTagStyleHints",e.separator="separator"}(Ee||(Ee={})),function(e){e.noPidlddc="noPidlddc.",e.helpDialog="help.",e.pidlReact="pidlReact.",e.parent="parent."}(_e||(_e={})),function(e){e.allowedCountries="allowedCountries"}(De||(De={})),function(e){e.closeButtonAccessibilityName="closeButtonAccessibilityName",e.accessibilityName="accessibilityName",e.linkAccessibilityName="linkAccessibilityName"}(Te||(Te={})),function(e){e.primary="primary",e.secondary="secondary"}(Re||(Re={})),function(e){e.ignore="ignore",e.throw="throw"}(Ae||(Ae={})),function(e){e.token="piAuthKey",e.algorithm="hmacsha256",e.userCredential="userCredential"}(Me||(Me={})),function(e){e.jarvisError=".",e.paymentMethodName="."}(Ne||(Ne={})),function(e){e.partnerData="partnerData",e.contextData="contextData"}(Fe||(Fe={})),function(e){e.paymentTransaction="PaymentTransaction",e.recurringTransaction="RecurringTransaction",e.addCard="AddCard"}(He||(He={})),function(e){e.noPreference="NoPreference",e.noChallengeRequested="NoChallengeRequested",e.challengeRequestedPreference="ChallengeRequestedPreference",e.challengeRequestedMandate="ChallengeRequestedMandate"}(Oe||(Oe={})),function(e){e.small="01",e.medium="02",e.large="03",e.extraLarge="04",e.fullScreen="05"}(Be||(Be={})),function(e){e.Succeeded="Succeeded",e.ByPassed="ByPassed",e.Failed="Failed",e.Cancelled="Cancelled",e.TimedOut="TimedOut",e.NotApplicable="NotApplicable",e.Unknown="Unknown"}(Le||(Le={})),function(e){e.ThreeDS="threeds",e.CVV="cvv",e.SMS="sms"}(Ve||(Ve={})),function(e){e[e.Default=3e3]="Default"}(ze||(ze={})),function(e){e.link="]("}(We||(We={})),function(e){e.floatRight="floatRight",e.floatLeft="floatLeft"}(Ue||(Ue={})),function(e){e.loaded="loaded",e.initCompleted="initCompleted",e.readyForSubmit="readyForSubmit",e.validationCompleted="validationCompleted",e.valueUpdated="valueUpdated",e.keyPropertyResolved="keyPropertyResolved",e.focused="focused",e.blurred="blurred",e.hmacSignatureCreated="hmacSignatureCreated"}(Ke||(Ke={})),function(e){e.init="init",e.hydrateState="hydrateState",e.clearState="clearState",e.applyPlaceholder="applyPlaceholder",e.applyCss="applyCss",e.applyFocus="applyFocus",e.validate="validate",e.prepareForSubmit="prepareForSubmit",e.updateWidth="updateWidth",e.createHmacSignature="createHmacSignature"}(je||(je={})),function(e){e[e.pidlSdkWaitTimeForSecureFieldsInit=2e3]="pidlSdkWaitTimeForSecureFieldsInit",e.pidlSdkMessageSource="PidlSdk",e.secureFieldMessageSource="PXSecureField",e.tokenizationValuePrefix="tokenized_"}(Ge||(Ge={})),function(e){e.loaded="expressCheckout.loaded",e.paymentSheetOpened="expressCheckout.paymentSheetOpened",e.isEligible="expressCheckout.isEligible",e.paymentData="expressCheckout.paymentData",e.setup="expressCheckout.setup",e.error="expressCheckout.error",e.cancel="expressCheckout.cancel",e.paymentDataTokenizing="expressCheckout.paymentDataTokenizing",e.paymentDataTokenized="expressCheckout.paymentDataTokenized"}(qe||(qe={})),function(e){e.failedToOpenWindow="failed to open window",e.tokenizationFailed="tokenizationFailed"}(Ye||(Ye={})),function(e){e.pidlSdkWaitTimeForSecureFieldsInit="pidlSdkWaitTimeForSecureFieldsInit"}(Ze||(Ze={})),function(e){e.challengeiFrameLoaded="challengeiFrameLoaded",e.challengeCompleted="challengeCompleted"}(Je||(Je={})),function(e){e.challengeiFrameMessageSource="ChallengeUI"}(Qe||(Qe={})),function(e){e.viewTermsTriggered="viewTermsTriggered"}(Xe||(Xe={})),function(e){e.year="year",e.month="month",e.day="day",e.hour="hour",e.minute="minute"}($e||($e={})),function(e){e.applePay="be4de87d-7e38-4b2d-8836-9237eb32848e"}(et||(et={})),function(e){e.styleHintDefs="styleHintDefs",e.baseStyleHintDefs="baseStyleHintDefs"}(tt||(tt={}));var ut,pt,mt,ht,ft,gt,vt,yt,bt,Ct,St,xt,kt=Object.freeze({__proto__:null,get requestOriginator(){return k},get pidlTransformationTargets(){return P},get eventTypes(){return I},get displayTransformationTargets(){return w},get pidlResultType(){return E},get pidlResourceTypes(){return _},get htmlClassNames(){return D},get htmlClassPrefixes(){return T},get htmlElementIdPrefixes(){return R},get htmlElementIdSuffixes(){return A},get errorCode(){return M},get returnCallbackNames(){return N},get modelElementType(){return F},get textBlockTypes(){return H},get htmlBlockTypes(){return O},get htmlInputTypes(){return B},get telemetryPidlOperationType(){return L},get showDisplayNameValues(){return V},get supportedPidlActions(){return z},get resourceActions(){return W},get eventNames(){return U},get privateEventNames(){return K},get displayOptionNames(){return j},get errorNames(){return G},get errorTypes(){return q},get serverErrorTypes(){return Y},get validationErrorTypes(){return Z},get validationOptions(){return J},get validationErrorCodes(){return Q},get htmlElementTypes(){return X},get containerTypes(){return $},get httpHeaders(){return ee},get flightHeaders(){return te},get httpUrlQueryParameters(){return ne},get htmlAttributes(){return re},get pidlPayloadAttributes(){return oe},get htmlTags(){return ie},get htmlNodeTypes(){return ae},get htmlRoles(){return se},get ariaTags(){return le},get ariaLiveInterruptLevels(){return ce},get dataAttributes(){return de},get sdkParamUrlQueryParamMap(){return ue},get pidlPropertyNameToPidlDocInfoProperty(){return pe},get themes(){return me},get pidlStringKeys(){return he},get controlStates(){return fe},get propertyEditState(){return ge},get controlOperationTypes(){return ve},get errorValue(){return ye},get viewUpdateReasons(){return be},get pidlDdcApiNames(){return Ce},get keyCodes(){return Se},get dataTypes(){return xe},get clientDataTypes(){return ke},get propertyTypes(){return Pe},get captchaPropertyName(){return Ie},get httpActions(){return we},get knownTags(){return Ee},get knownTagPrefixes(){return _e},get knownQueryParameters(){return De},get helpDialogPrefixedTags(){return Te},get scenarioContextResourceType(){return Re},get scenarioContextTerminatingErrorHandling(){return Ae},get hmac(){return Me},get delimiters(){return Ne},get dataStores(){return Fe},get challengeScenario(){return He},get riskChallengeIndicator(){return Oe},get challengeWindowSize(){return Be},get challengeStatus(){return Le},get challengeType(){return Ve},get pollingInterval(){return ze},get TextSymbols(){return We},get displayHelpPosition(){return Ue},get SecureFieldEvent(){return Ke},get SecureFieldMessages(){return je},get SecureFieldConstants(){return Ge},get ExpressCheckoutButtonMessages(){return qe},get ExpressCheckoutButtonDebugMessages(){return Ye},get ClientSettingNames(){return Ze},get ChallengeiFrameEvent(){return Je},get ChallengeiFrameConstants(){return Qe},get CustomTriggerEventConstants(){return Xe},get FrequencyUnitConstants(){return $e},get PaymentMethodPIIDs(){return et},get styleHintDefsCacheNames(){return tt}}),Pt=function(){var e=this;this.skipQueryParameter=function(e){if(!e)return!1;var t=Hr.find(Hr.getKeys(De),(function(t){return t.toLowerCase()===e.toLowerCase()}));return Hr.boolify(t)},this.mapQueryParameter=function(e){return ue[Hr.toLowerCase(e)]||e},this.buildUrlInternal=function(t,n,r){var o;if(o=Hr.startsWith(t,"https://")?t:Hr.startsWith(t,"http://")?"https://"+t.substr(7):"https://"+t,n)for(var i=0;i<n.length;i++)o+=Hr.startsWith(n[i],"/")?n[i]:"/"+n[i];return r&&Object.keys(r).sort().forEach((function(t){if(!e.skipQueryParameter(t)){var n=r[t];n&&(o=e.addQueryParameter(o,e.mapQueryParameter(t),n))}})),o},this.createFromTemplateInternal=function(t,n,r,o,i,a){if(t){var s=Ut.replaceVirtualEndpointWithServiceAddress(t,n);return s=s.replace(/{id}/i,encodeURIComponent(o)).replace(/{resourcetype}/i,i),r&&(s=s.replace(/{userid}/i,r.getUserId(t))),e.buildUrlInternal(s,[],a)}},this.getUrlExpressionValue=function(t,n,r,o,i){var a=e.createFromTemplateInternal(t,n,r,o,null,null);return a&&i&&(a=Nr.getFormatStringExpressionValue("("+a+")",i,(function(e){return encodeURIComponent(e)}))),a},this.getResourceUrl=function(t,n){t=t||{};var r=Ut.getResourceEndpoint(t.resourceType);return{url:e.createFromTemplateInternal(r.template,t.resourceEndpoint,n,t.id,t.resourceType,t.parameters),template:r.template,recreateUrl:function(t){return e.getResourceUrl(t.resourceInfo,t.userContext)},originalParameters:{resourceInfo:t,userContext:n},virtualEndpoint:r}},this.getPidlDocUrl=function(t,n,r){r=r||{};var o=Hr.deepCopy(r.parameters||{});n&&(o[ne.operation]=n);var i=Ut.getPidlDocEndpoint(r.resourceType);i.addResourceNameToQueryParam&&(o.resourceName=Hr.toLowerCase(r.resourceType)),i.removeOperationParameter&&delete o[ne.operation];var a=r.resourceType+(r.resourceSuffix||i.suffix),s=r.anonymousPidl&&i.anonymousTemplate?i.anonymousTemplate:i.template;return{url:e.createFromTemplateInternal(s,r.pidlEndpoint,t,null,a,o),template:s,recreateUrl:function(t){return e.getPidlDocUrl(t.userContext,t.operationType,t.pidlDocInfo)},originalParameters:{userContext:t,operationType:n,pidlDocInfo:r},virtualEndpoint:i}},this.getSubmitUrl=function(t,n,r,o,i){return{url:e.getUrlExpressionValue(r.href,null,n,o,i),template:r.href,recreateUrl:function(t){return e.getSubmitUrl(t.operationType,t.userContext,t.context,t.id,t.bindingDataContext)},originalParameters:{operationType:t,userContext:n,context:r,id:o,bindingDataContext:i},virtualEndpoint:Ut.findVirtualEndpointInTemplate(r.href)}},this.getRestMethodUrl=function(t,n,r,o){return{url:e.getUrlExpressionValue(t,null,n,r,o),template:t,recreateUrl:function(t){return e.getRestMethodUrl(t.template,t.userContext,t.id,t.bindingDataContext)},originalParameters:{template:t,userContext:n,id:r,bindingDataContext:o},virtualEndpoint:Ut.findVirtualEndpointInTemplate(t)}},this.addQueryParameter=function(e,t,n){Hr.isString(n)||(n=JSON.stringify(n)),n=encodeURIComponent(n);var r=new RegExp("([?&])"+t+"=.*?(&|$)","i");if(e.match(r))return e.replace(r,"$1"+t+"="+n+"$2");var o=new RegExp("([?])");if(e.match(o))return e.replace(o,"$1"+t+"="+n+"&");var i=-1!==e.indexOf("?")?"&":"?";return e+i+t+"="+n},this.addQueryStringParameters=function(t,n){if(n)for(var r in n)n[r]&&(t=e.addQueryParameter(t,r,n[r]));return t},this.buildUrl=function(t,n,r){return e.buildUrlInternal(t,n,r)},this.createFromTemplate=function(t,n,r,o,i,a){return e.createFromTemplateInternal(t,n,r,o,i,a)}},It=new Pt;function wt(e){return!Hr.isNullOrUndefined(e)&&"propertyType"in e&&"type"in e&&"dataType"in e}function Et(e){return!Hr.isNullOrUndefined(e)&&"displayType"in e}function _t(e){return Et(e)&&(e.displayType===vt.group||e.displayType===vt.dataCollectionBindingGroup||e.displayType===vt.page||e.displayType===vt.textGroup)}function Dt(e){if(Et(e)){var t=e;return t&&t.propertyElementType&&t.propertyElementType===vt.file}return!1}function Tt(e){return Et(e)&&e.displayType===vt.logo}function Rt(e){return Et(e)&&(e.displayType===vt.property||e.displayType===vt.prefillControl)}function At(e){return Hr.isObject(e)&&"href"in e&&"method"in e}function Mt(e){return Hr.isObject(e)&&"members"in e}function Nt(e){return!Hr.isNullOrUndefined(e)&&"identity"in e&&"data_description"in e}function Ft(e){return!Hr.isNullOrUndefined(e)&&Hr.isArray(e)&&e.length&&Nt(e[0])}function Ht(e){return!Hr.isNullOrUndefined(e)&&"pidlInfo"in e}function Ot(e){return!Hr.isNullOrUndefined(e)&&!Hr.isString(e)&&"clientAction"in e}function Bt(e){return Et(e)&&e.displayType===vt.pidlContainer}function Lt(e){return!Hr.isNullOrUndefined(e)&&Hr.isString(e.type)&&(e.type===ht.Pidl||e.type===ht.Wait||e.type===ht.Redirect||e.type===ht.ReturnContext||e.type===ht.ExecuteScriptAndResume||e.type===ht.None||e.type===ht.GoHome||e.type===ht.Failure||e.type===ht.MergeData||e.type===ht.RestAction)}function Vt(e){return!Hr.isNullOrUndefined(e)&&!Hr.isNullOrUndefined(e.resourceActionContext)}!function(e){e.add="Add",e.replace="Replace",e.getPidlPayload="GetPidlPayload",e.handlePurchasePendingState="HandlePurchasePendingState",e.renderPidlPage="RenderPidlPage",e.select="Select",e.selectInstance="SelectInstance",e.selectSingleInstance="SelectSingleInstance",e.show="Show",e.search="Search",e.delete="Delete",e.update="Update",e.validateInstance="ValidateInstance",e.fundStoredValue="FundStoredValue",e.apply="Apply",e.searchTransactions="searchTransactions",e.redeem="Redeem",e.provisionWalletToken="provisionWalletToken",e.offer="Offer",e.expressCheckout="ExpressCheckout"}(ut||(ut={})),function(e){e.function="function",e.regexMessage="regexMessage",e.regex="regex",e.service="service",e.size="size"}(pt||(pt={})),function(e){e.regex="regex",e.service="service"}(mt||(mt={})),function(e){e.Pidl="Pidl",e.PidlModal="PidlModal",e.PidlPage="PidlPage",e.Wait="Wait",e.Redirect="Redirect",e.ReturnContext="ReturnContext",e.ExecuteScriptAndResume="ExecuteScriptAndResume",e.None="None",e.GoHome="GoHome",e.Failure="Failure",e.MergeData="MergeData",e.RestAction="RestAction",e.UpdatePropertyValue="UpdatePropertyValue"}(ht||(ht={})),function(e){e.Active="Active",e.Banned="Banned",e.Deactivated="Deactivated",e.Declined="Declined",e.Pending="Pending",e.Removed="Removed",e.Unknown="Unknown"}(ft||(ft={})),function(e){e.regex="regex"}(gt||(gt={})),function(e){e.button="button",e.dataCollectionBindingGroup="datacollectionbindinggroup",e.expression="expression",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.hyperlink="hyperlink",e.iFrame="iframe",e.challengeIframe="challengeiframe",e.expressCheckoutButton="expresscheckoutbutton",e.secureProperty="secureproperty",e.image="image",e.logo="logo",e.page="page",e.pidlContainer="pidlcontainer",e.pidlInstance="pidlinstance",e.prefillControl="prefillcontrol",e.property="property",e.subheading="subheading",e.text="text",e.textGroup="textgroup",e.separator="separator",e.spinner="spinner",e.file="file"}(vt||(vt={})),function(e){e.inline="inline",e.vertical="vertical"}(yt||(yt={})),function(e){e.afterBase="afterBase",e.beforeBase="beforeBase",e.withBase="withBase"}(bt||(bt={})),function(e){e.buttonList="buttonList",e.checkBox="checkbox",e.dropDown="dropDown",e.radio="radio"}(Ct||(Ct={})),function(e){e.always="always",e.focusout="focusout"}(St||(St={})),function(e){e.limitedRetry="limitedRetry",e.noRetry="noRetry",e.unlimitedRetry="unlimitedRetry"}(xt||(xt={}));var zt=Object.freeze({__proto__:null,get pidlOperationTypeValues(){return ut},get validationModesValues(){return pt},get transformationModesValues(){return mt},isDataDescription:wt,get clientActionTypeValues(){return ht},get paymentInstrumentStatusValues(){return ft},get displayTransformationTypesValues(){return gt},get pidlDisplayTypesValues(){return vt},isDisplayDescription:Et,get groupLayoutOrientationTypesValues(){return yt},isContainerDisplayDescription:_t,isFilePickerDisplayDescription:Dt,isGroupDisplayDescription:function(e){return Et(e)&&(e.displayType===vt.group||e.displayType===vt.dataCollectionBindingGroup)},isCaptchaDisplayDescription:function(e){return Et(e)&&e.displayType===vt.captcha},isDataCollectionBindingGroupDisplayDescription:function(e){return Et(e)&&e.displayType===vt.dataCollectionBindingGroup},isPageDisplayDescription:function(e){return Et(e)&&e.displayType===vt.page},isContentDisplayDescription:function(e){return Et(e)&&(e.displayType===vt.button||e.displayType===vt.expression||e.displayType===vt.heading||e.displayType===vt.hyperlink||e.displayType===vt.subheading||e.displayType===vt.text||e.displayType===vt.challengeIframe||e.displayType===vt.iFrame)},isLogoDisplayDescription:Tt,get pidlSubmitOrdersValues(){return bt},get pidlSelectTypeValues(){return Ct},get resolutionPolicyValues(){return St},isPropertyDisplayDescription:Rt,get serverErrorRetryPolicyValues(){return xt},isPidlLink:At,isMembersInDataSources:Mt,isPidlDocument:Nt,isPidlDocumentArray:Ft,isPidlPayload:Ht,isPidlDocumentWithClientAction:Ot,isPidlContainerDisplayDescription:Bt,isPidlInstanceDisplayDescription:function(e){return Et(e)&&e.displayType===vt.pidlInstance},isClientAction:Lt,isInvokeResourceActionApiParams:Vt}),Wt=function(){var e=this;this.getContainingVirtualEndpoint=function(e){if(Hr.isString(e)){var t=e.toLowerCase();for(var n in Br.virtualEndpoints){var r="{"+Br.virtualEndpoints[n].endpoint+"}";if(-1!==t.indexOf(r))return Br.virtualEndpoints[n]}}},this.getPidlDocInfoFromResource=function(e,t){var n=Hr.toLowerCase(e.resourceType),r=Br.resourceTypeToPidlDoc[n]||Br.resourceTypeToPidlDoc.default;return{resourceType:n,parameters:r.getParams&&r.getParams(e,t),anonymousPidl:e.anonymousPidl}},this.updatePidlDocInfo=function(e){if(e&&e.parameters&&e.parameters.allowedPaymentMethods&&Hr.isArray(e.parameters.allowedPaymentMethods)){for(var t=!0,n=0,r=e.parameters.allowedPaymentMethods.length;n<r;n++)t=t&&Hr.isObject(e.parameters.allowedPaymentMethods[n]);if(t){var o=e.parameters.allowedPaymentMethods;e.parameters.allowedPaymentMethods={};for(var i=0,a=o.length;i<a;i++){var s=o[i],l=s.family;l+=s.type?Ne.paymentMethodName+s.type:"",e.parameters.allowedPaymentMethods[l]=s.disabled?0:1}}}},this.additionalRedirectParams=function(e,t){var n={};for(var r in t&&(t.paymentMethod&&(n.family=t.paymentMethod.paymentMethodFamily,n.type=t.paymentMethod.paymentMethodType),Hr.equalsIgnoreCase(t.status,ft.Pending)&&t.details&&(n.pendingOn=t.details.pendingOn,n.picvRequired=t.details.picvRequired)),n)n[r]&&(e=It.addQueryParameter(e,r,n[r]));return e},this.getErrorSourceFromUrl=function(e){if(e=Hr.toLowerCase(e))if(-1!==e.indexOf(Br.getServiceEndpoint(Br.virtualEndpoints.pifd.endpoint))){if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/addresses"))return Br.virtualEndpoints.pifdAddress.endpoint;if(-1!==e.indexOf("/users")&&-1!==e.indexOf("/profiles"))return Br.virtualEndpoints.pifdProfile.endpoint}else if(-1!==e.indexOf(Br.getServiceEndpoint(Br.virtualEndpoints.jarvis.endpoint)))return Br.virtualEndpoints.jarvisAddress.endpoint;return Br.virtualEndpoints.pifd.endpoint},this.getResourceEndpoint=function(e){return Br.resourceTypeToResource[Hr.toLowerCase(e)]||Br.resourceTypeToResource.default},this.getPidlDocEndpoint=function(e){return Br.resourceTypeToPidlDoc[Hr.toLowerCase(e)]||Br.resourceTypeToPidlDoc.default},this.replaceVirtualEndpointWithServiceAddress=function(t,n){var r=e.getContainingVirtualEndpoint(t);if(!r)return t;var o="{"+r.endpoint+"}",i=new RegExp(o,"i");return t=t.replace(i,n||Br.getServiceEndpoint(r.endpoint))},this.findVirtualEndpointInTemplate=function(t){return e.getContainingVirtualEndpoint(t)||{description:null,endpoint:null,name:null,operation:null}},this.getTelemetryLoggerProperties=function(){return Br.defaultTelemetryLoggerProperties}},Ut=new Wt;function Kt(e,t){return e.debugMessage?Hr.format(e.debugMessage,t):""}var jt=function(e,t,n,r){this.message=n||"",this.name=t.name,this.code=t.code,this.type=e},Gt=function(e){function t(t,n,r){var o=e.call(this,q.inputValidation,t,null,r)||this;return o.parameterName=n,o.debugMessage=Kt(t,r),o}return g(t,e),t}(jt),qt=function(e){function t(t,n,r){var o=e.call(this,q.inputValidation,t,null,r)||this;return o.apiName=n,o.debugMessage=Kt(t,r),o}return g(t,e),t}(jt),Yt=function(e){function t(t,n,r,o){var i=e.call(this,q.userInputValidation,t,n,o)||this;return i.propertyName=r,i.errorCode=n,i.validationErrorType=Z.property,i.debugMessage=Kt(t,o),i}return g(t,e),t}(jt),Zt=function(e){function t(t,n,r,o){var i=e.call(this,q.userInputValidation,t,n,o)||this;return i.groupDisplayId=r,i.errorCode=n,i.validationErrorType=Z.group,i.debugMessage=Kt(t,o),i}return g(t,e),t}(jt),Jt=function(e){function t(t,n,r,o){var i=e.call(this,q.formValidation,t,n,o)||this;return i.errors=r,i.debugMessage=Kt(t,o),i}return g(t,e),t}(jt),Qt=function(e){function t(t,n,r){var o=e.call(this,q.unexpected,t,r,n)||this;return o.debugMessage=Kt(t,n),o}return g(t,e),t}(jt),Xt=function(e){function t(t,n,r,o,i,a,s,l,c,d){var u=e.call(this,q.serverError,t,null,s)||this;return u.innererror=r,u.status=o,u.url=n,u.statusText=i,u.responseText=a,u.httpMethod=l,u.retryAttempt=c,u.retryable=d,u.debugMessage=Kt(t,s),u}return g(t,e),t}(jt),$t=function(e){function t(t,n,r){var o=e.call(this,q.invalidSetup,t,n,r)||this;return o.debugMessage=Kt(t,r),o}return g(t,e),t}(jt),en=function(e){function t(t,n,r){var o=e.call(this,q.paymentMethodFailure,t,n,r)||this;return o.debugMessage=Kt(t,r),o}return g(t,e),t}(jt),tn=function(e){function t(t,n,r){var o=e.call(this,q.failedToOpenWindow,t,n,r)||this;return o.debugMessage=Kt(t,r),o}return g(t,e),t}(jt),nn=function(e){function t(t,n,r){var o=e.call(this,q.unmatchedAmount,t,n,r)||this;return o.debugMessage=Kt(t,r),o}return g(t,e),t}(jt),rn=function(e){function t(t,n,r){var o=e.call(this,q.walletProvider,t,n,r)||this;return o.debugMessage=Kt(t,r),o}return g(t,e),t}(jt),on=function(e){function t(t,n,r){var o=e.call(this,q.secureFieldInitCompletedTimeout,t,n,r)||this;return o.debugMessage=Kt(t,r),o}return g(t,e),t}(jt),an=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(jt),sn=new(function(){function e(){this.inputParameterValidationFailedError=Gt,this.apiValidationError=qt,this.propertyValidationFailedError=Yt,this.groupValidationFailedError=Zt,this.formValidationFailedError=Jt,this.unexpectedError=Qt,this.serverError=Xt,this.invalidSetupError=$t,this.paymentMethodFailureError=en,this.failedToOpenWindowError=tn,this.unmatchedAmountError=nn,this.testHookErrorBase=an,this.walletProviderError=rn,this.secureFieldInitCompletedTimeoutError=on}return e.prototype.isUnexpectedError=function(e){return Hr.isObject(e)&&e.type===q.unexpected},e.prototype.isServerError=function(e){return Hr.isObject(e)&&e.type===q.serverError},e}()),ln={inputParameterMissing:{code:1e3,name:"mandatoryInputParameterMissingOrNull",debugMessage:"Mandatory parameter '{0}' is missing or null"},inputParameterTypeMismatch:{code:1001,name:"inputParameterTypeMismatch",debugMessage:"Parameter type is mismatched. Expected type was '{0}', but actual type passed is '{1}'"},inputParameterNotInRange:{code:1002,name:"inputParameterNotInRange",debugMessage:"Value of parameter '{0}' is '{1}' not in the range of expected values. Valid range for the parameter is '{2}'"},containerIdNotFound:{code:1003,name:"containerIdNotFound",debugMessage:"Value of 'containerId' parameter '{0}' is not a valid element in current HTML DOM"},apiCannotStartAsControlNotInitialized:{code:1004,name:"apiCannotStartAsControlNotInitialized",debugMessage:"API '{0}' cannot start as display control is not initialized."},apiCannotStartAsNotAllowedInCurrentState:{code:1005,name:"apiCannotStartAsNotAllowedInCurrentState",debugMessage:"API '{0}' cannot start as current control state is '{1}' and the API is allowed only in following states '{2}'"},busyBlockShowHideHandlerAndbusyBlockIdAreExclusive:{code:1006,name:"busyBlockShowHideHandlerAndbusyBlockIdAreExclusive",debugMessage:"Both busyBlockShowHideHandler and busyBlockId are passed in displayOptions. They are exclusive and only one can be passed."},inputParameterSmallerThanMinLength:{code:1007,name:"inputParameterSmallerThanMinLength",debugMessage:"Array element '{0}' is expected to have minimum length '{1}' but it has a length of '{2}'."},inputParameterLargerThanMaxLength:{code:1008,name:"inputParameterLargerThanMaxLength",debugMessage:"Array element '{0}' is expected to have maximum length '{1}' but it has a length of '{2}'."},mandatoryPropertyValueMissing:{code:1101,name:"mandatoryPropertyValueMissing",debugMessage:"Property '{0}' is mandatory, but its value is missing"},propertyValidationFailed:{code:1102,name:"propertyValidationFailed",debugMessage:"Validation for property '{0}' failed with the message '{1}'"},formValidationFailed:{code:1103,name:"formValidationFailed",debugMessage:"Validation for form failed with the message '{0}'"},readUserInputFailed:{code:1104,name:"readUserInputFailed",debugMessage:"Read user input failed with the message '{0}'"},formSubmissionFailedBadUserInput:{code:1105,name:"formSubmissionFailedBadUserInput",debugMessage:"Form submission failed with error '{0}' due to bad user input"},editedPropertiesValidationFailed:{code:1106,name:"editedPropertiesValidationFailed",debugMessage:"Validation for edited properties failed with the message '{0}'"},propertyTransformationFailed:{code:1107,name:"propertyTransformationFailed",debugMessage:"Property transformation failed with the message '{0}'"},tokenizationFailed:{code:1108,name:"tokenizationFailed",debugMessage:"Tokenization failed with the message '{0}'"},hmacError:{code:1109,name:"hmacError",debugMessage:"HMAC error happened with the message '{0}'"},tokenizationError:{code:1110,name:"tokenizationError",debugMessage:"Some error happened during tokenization. Here is the error message '{0}'"},connectivityError:{code:1200,name:"connectivityError",debugMessage:"There was a connectivity error when attempting to download PIDL document. Error message: '{0}'"},pidlDocDownloadFailed:{code:1201,name:"pidlDocDownloadFailed",debugMessage:"Failed to download PIDL document. Error message: '{0}'"},formSubmitFailed:{code:1202,name:"formSubmitFailed",debugMessage:"Failed to submit form. Error message: '{0}'"},resourceInstanceDownloadFailed:{code:1203,name:"resourceInstanceDownloadFailed",debugMessage:"Failed to download resource instance. Error message: '{0}'"},commerceJsDownloadFailed:{code:1204,name:"commerceJsDownloadFailed",debugMessage:"Failed to download Commerce JS"},restMethodInvocationFailed:{code:1205,name:"restMethodInvocationFailed",debugMessage:"Rest method invocation for url '{0}' failed with error '{1}'"},missingSubmitActionInPidlDoc:{code:1501,name:"missingSubmitActionInPidlDoc",debugMessage:"Cannot perform submit action as the current PIDL document does not have it."},submitActionMissing:{code:1502,name:"submitActionMissing",debugMessage:"Submit action is missing in the PIDL document"},unknownActionType:{code:1503,name:"unknownActionType",debugMessage:"Unknown action type '{0}'"},unknownClientActionType:{code:1504,name:"unknownClientActionType",debugMessage:"Unknown client action type '{0}'"},cannotMoveToNextPageAsOnLastPage:{code:1505,name:"cannotMoveToNextPageAsOnLastPage",debugMessage:"Cannot move to next page as already on the last page"},cannotMoveToPrevPage:{code:1506,name:"cannotMoveToPrevPage",debugMessage:"Cannot move to previous page"},noMappingToGetPidlDocForResource:{code:1507,name:"noMappingToGetPidlDocForResource",debugMessage:"There is no mapping for getting PIDL document for the input resource type '{0}'"},noMappingToGetHtmlClassNameForElement:{code:1508,name:"noMappingToGetHtmlClassNameForElement",debugMessage:"There is no mapping for getting HTML class name for element '{0}'"},missingMandatoryParameterForHtmlCreation:{code:1509,name:"missingMandatoryParameterForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. But the mandatory property '{2}' is missing or empty"},parameterTypeMismatchForHtmlCreation:{code:1510,name:"parameterTypeMismatchForHtmlCreation",debugMessage:"Display id '{0}' needs to be rendered as '{1}'. Property '{2}' is expected to be of type '{3}' but actual type is '{4}'"},modelNotPpopulated:{code:1511,name:"modelNotPopulated",debugMessage:"Model is not populated"},cannotMoveToPageIndex:{code:1512,name:"cannotMoveToPageIndex",debugMessage:"Cannot move to the given page index because it is out of bounds"},apiStateMappingNotFound:{code:1513,name:"apiStateMappingNotFound",debugMessage:"Api '{0}' does not have a mapping in state manager"},contextMissingFromPidlAction:{code:1514,name:"contextMissingFromPidlAction",debugMessage:"PIDL action '{0}' does not have should have a context"},restActionPidlActionMissingParameters:{code:1515,name:"restActionPidlActionMissingParameters",debugMessage:"Rest action is missing parameter '{0}' "},noPidlDocumentInPopulateRequest:{code:1516,name:"noPidlDocumentInPopulateRequest",debugMessage:"No PIDL documents are sent in the request for populating model"},noDisplayDescriptionInPidlDocument:{code:1517,name:"noDisplayDescriptionInPidlDocument",debugMessage:"No display description are found in the PIDL document"},multiplePagesInLinkedPidlForSinglePagePidlContainer:{code:1518,name:"multiplePagesInLinkedPidlForSinglePagePidlContainer",debugMessage:"Multiple pages extracted from a linked PIDL for a single page PIDL container (being a member of a PIDL Page)"},expectedPayloadValueNotPresentInServerResponse:{code:1519,name:"expectedPayloadValueNotPresentInServerResponse",debugMessage:"The expected value for the next submit payload was not present in server response"},noRedirectUrlToNavigate:{code:1520,name:"noRedirecturlToNavigate",debugMessage:"There is no redirection service url to navigate"},invalidCacheEntry:{code:1521,name:"invalidCacheEntry",debugMessage:"Cache entry for the handle given is invalid"},unexpectedPrefillDataCount:{code:1522,name:"unexpectedPrefillDataCount",debugMessage:"The expected count of prefill data objects for '{0}' is '{1}' but actual count was '{2}'"},defaultActionNotFound:{code:1523,name:"defaultActionNotFound",debugMessage:"Default action is not found on the page"},isDefaultPidlActionNotFound:{code:1524,name:"isDefaultPidlActionNotFound",debugMessage:"Pidl action with isDefault === true not found in the pidl with element ids: {0}"},displayElementPointingToMissingDataProperty:{code:1525,name:"noPropertyFoundForDisplayElement",debugMessage:"Display element '{0}' is pointing to missing data property '{1}'"},invalidReturnContextPidl:{code:1526,name:"invalidReturnContextPidl",debugMessage:"Downloaded pidl had returnContext client action type but context was empty"},duplicateDisplayHintIdOnPage:{code:1527,name:"duplicateDisplayHintIdOnPage",debugMessage:"DisplayId '{0}' appears multiple times on page '{1}'"},invalidNotInPurchasePendingState:{code:1528,name:"instanceNotInPurchasePendingState",debugMessage:"The PI downloaded was not a valid type for purchase pending state"},submitPidlRequestMissingParameters:{code:1529,name:"submitPidlRequestMissingParameters",debugMessage:"Submit pidl request is missing parameter '{0}'"},IFrameTimedOut:{code:1530,name:"iframetimedout",debugMessage:"Took to long to notify as successful. Operation timed out'"},unhandledRejection:{code:1531,name:"unhandledrejection",debugMessage:"Unhandled Promise Rejection at {0}"},iFrameReturnedFailure:{code:1532,name:"iFrameReturnedFailure",debugMessage:"iFrame POST message returned failure with message {0}"},failureClientActionReturned:{code:1533,name:"failureClientActionReturned",debugMessage:"Client action type failure is returned with payload {0}"},validationFailedForNonUserInputProperty:{code:1534,name:"validationFailedForNonUserInputProperty",debugMessage:"Validation for property '{0}' failed with error code '{1}' and message '{2}' which has caused flow termination because correct value for this property is expected either to be passed by the partner or is there as default value in the PIDL, not input by the user."},pollingTimedOut:{code:1535,name:"pollingTimedOut",debugMessage:"Polling exceeded maximum time allowed"},unableToSetupPolling:{code:1536,name:"unableToSetupPolling",debugMessage:"Unable to setup polling"},msrEncryptionFailed:{code:1537,name:"msrEncryptionFailed",debugMessage:"MSR Encryption failed with the message '{0}'"},onlyOneBusyBlockPropAllowed:{code:1538,name:"onlyOneBusyBlockPropAllowed",debugMessage:"Please pass in only one prop option for busyBlocks (busyBlockId, busyBlockElement, or busyBlockShowHideHandler)"},failurePollingResponseReturned:{code:1539,name:"failurePollingResponseReturned",debugMessage:"The following response from polling is unexpected: {0}"},fileUploadFailure:{code:1540,name:"fileUploadFailure",debugMessage:"Unable to upload the file"},invalidSetup:{code:1541,name:"invalidSetup",debugMessage:"PaymentAgent needs to be fully initialized"},paymentMethodFailure:{code:1542,name:"paymentMethodFailure",debugMessage:"Error processing payment sheet"},unmatchedAmount:{code:1543,name:"unmatchedAmount",debugMessage:"Authorization group total amount does not match amount"},failedToOpenWindow:{code:1544,name:"failedToOpenWindow",debugMessage:"Failed to Open Window"},unexpectedChallengeiFrameMessage:{code:1545,name:"unexpectedChallengeIframeMessage",debugMessage:"Unexpected challenge iframe message."},challengeIframeMessagePostFailure:{code:1546,name:"challengeIframeMessagePostFailure",debugMessage:"Challenge iframe message post failure."},failedToFetchStyleHints:{code:1547,name:"failedToFetchStyleHints",debugMessage:"Failed to fetch style hints from static resources"},unmatchedSecureFieldEvent:{code:1601,name:"unmatchedSecureFieldEvent",debugMessage:"The following secure field event is unexpected: {0}"},unexpectedSecureFieldMessage:{code:1602,name:"unexpectedSecureFieldMessage",debugMessage:"Unexpected secure field message."},secureFieldPromiseNotFound:{code:1602,name:"secureFieldPromiseNotFound",debugMessage:"Unable to find promise after secure field posted back message."},secureFieldInitCompletedTimeout:{code:1603,name:"secureFieldInitCompletedTimeout",debugMessage:"Timeout while waiting for secure fields initCompleted events"},walletProviderError:{code:1700,name:"walletProviderError",debugMessage:"Unable to retrieve wallet cards."}},cn=function(){var e=this;this.getResolvedPidls=function(t,n){var r=[];return t.forEach((function(t){var o=!1;for(var i in n){var a=pn.getPropertyFromDataDescription(t.data_description,i),s=n[i];if(s&&s.getValue&&!(o=e.resolveKeyProperty(a,s.getValue(a))))break}o&&r.push(t)})),r},this.getPidlContainersInSubmitOrder=function(t,n){t.forEach((function(t){if(Bt(t)){var r=t.submitOrder;r===bt.beforeBase?n.beforeBase.push(t):r===bt.afterBase?n.afterBase.push(t):n.withBase.push(t)}else _t(t)&&t.members.length&&e.getPidlContainersInSubmitOrder(t.members,n)}))},this.resolveInfoDescriptionId=function(t,n){return e.getResolvedPidls(t,n).map((function(e){return e.identity}))},this.getFirstPidlWithValidDefaultKey=function(t,n){return e.getResolvedPidls(t,n)[0]},this.getPidlSubmitOrder=function(t){var n={beforeBase:[],withBase:[],afterBase:[]};return e.getPidlContainersInSubmitOrder(t.displayDescription,n),n},this.resolveKeyProperty=function(e,t){var n=(e||{validation:null}).validation;return!(Hr.isUndefined(t)||!n)&&new RegExp(n.resolutionRegex||n.regex).test(t)}},dn=new cn,un=function(){var e=this;this.getPropertyDescriptorsHelper=function(t,n,r){var o=[];for(var i in t){var a=t[i];if(a instanceof Array)for(var s=0;s<a.length;s++)o=o.concat(e.getPropertyDescriptorsHelper(a[s].data_description,n,r));else a.hasOwnProperty(n)&&a[n]===r&&o.push({propertyName:i,propertyDescriptor:a})}return o},this.getPropertyValueFromInputDataHelper=function(t,n){var r;for(var o in t){if(o===n){r=t[o];break}if(Hr.isObject(t[o])&&void 0!==(r=e.getPropertyValueFromInputDataHelper(t[o],n)))break}return r},this.getPropertyFromDataDescriptionHelper=function(t,n,r){var o;if(void 0===r&&(r=!1),n)for(var i in t){var a=t[i];if(a instanceof Array){if(r&&i===n&&a[0])return a[0].data_description;if(a.some((function(t){return void 0!==(o=e.getPropertyFromDataDescriptionHelper(t.data_description,n,r))})),void 0!==o)break}else if(e.propertyMatchesDataDescriptionInternal(a,i,n)){o=a;break}}return o},this.getFirstResolvedPidlDocument=function(t,n){var r=null;return t.some((function(t){if(e.getKeyPropertyDescriptors(t.data_description).every((function(t){return dn.resolveKeyProperty(t.propertyDescriptor,e.getPropertyValueFromInputData(n,t.propertyName))})))return r=t,!0})),r},this.propertyMatchesDataDescriptionInternal=function(e,t,n){return n&&(t===n||e&&e.display_property===n)},this.getPropertyNamesFromDataDescription=function(t,n,r){return e.getPropertyDescriptorsHelper(t,n,r)},this.getKeyPropertyDescriptors=function(t){return e.getPropertyNamesFromDataDescription(t,"is_key",!0)},this.getPropertyValueFromInputData=function(t,n){return e.getPropertyValueFromInputDataHelper(t,n)},this.getPropertyFromDataDescription=function(t,n){var r=e.getPropertyFromDataDescriptionHelper(t,n);return wt(r)?r:void 0},this.getPropertiesFromDataDescription=function(t,n){return e.getPropertyFromDataDescriptionHelper(t,n,!0)},this.propertyMatchesDataDescription=function(t,n,r){return e.propertyMatchesDataDescriptionInternal(t,n,r)},this.getDisplayPropertyName=function(e,t){return e.display_property||t}},pn=new un,mn=function(){var e=this;this.setService=function(t,n){e.services[t]=n},this.getService=function(t){return e.services[t]},this.getCommerceService=function(){return e.getService("commerce")},this.setCommerceService=function(t){e.setService("commerce",t)},this.getLoggingService=function(){return e.getService("logging")},this.setLoggingService=function(t){e.setService("logging",t)},this.getPidlService=function(){return e.getService("pidl")},this.setPidlService=function(t){e.setService("pidl",t)},this.getRedirectionService=function(){return e.getService("redirection")},this.setRedirectionService=function(t){e.setService("redirection",t)},this.getTelemetryInjectionService=function(){return e.getService("telemetry")},this.setTelemetryInjectionService=function(t){e.setService("telemetry",t)},this.getPidlStoreService=function(){return e.getService("pidlStore")},this.setPidlStoreService=function(t){return e.setService("pidlStore",t)},this.getOneDSService=function(){return e.getService("oneDS")},this.setOneDSService=function(t){return e.setService("oneDS",t)},this.testHookResetServices=function(){e.services={}},this.services={}},hn=new mn,fn=function(){var e=this;this.getDisplayDescriptionPidlActions=function(t,n){if(t&&(t.pidlAction&&n.push(t.pidlAction),_t(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getDisplayDescriptionPidlActions(t.members[r],n)},this.getLogoDescriptions=function(t,n){if(t&&n&&(Tt(t)&&n.push(t),_t(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getLogoDescriptions(t.members[r],n)},this.getPidlIdentityForProperty=function(t,n){var r;if(n)if(t instanceof Array){for(var o=0;o<t.length;o++)if(r=e.getPidlIdentityForProperty(t[o],n))return r}else if(t.data_description)for(var i in t.data_description){var a=t.data_description[i];if(a instanceof Array){if(r=e.getPidlIdentityForProperty(a,n))return r}else if(pn.propertyMatchesDataDescription(a,i,n))return t.identity}},this.createIdentityHash=function(e){var t="";for(var n in e)Hr.isString(e[n])&&(t+=n+"_"+e[n]);return t},this.resolvePidlDocs=function(e,t){if(e instanceof Array){var n=[];if(t)for(var r=hn.getCommerceService(),o=0;o<e.length;o++)for(var i=0;i<t.length;i++)if(r.areIdentitiesEqual(e[o].identity,t[i])){n.push(e[o]);break}return n}return[e]},this.getDisplayDescriptionsPidlActions=function(t){var n=[];if(e.getDisplayDescriptionPidlActions(t,n),Rt(t)){var r=t.possibleOptions;if(r)for(var o in r){var i=r[o].pidlAction;i&&(n=x(x([],n,!0),[i],!1))}}return n},this.getSubmitPidlAction=function(t){if(t&&t.displayDescription){var n=[];return t.displayDescription.forEach((function(t){e.getDisplayDescriptionPidlActions(t,n)})),Hr.find(n,(function(e){return e.type===z.submit}))}},this.isPrimaryResource=function(e){return(e&&e.scenarioContext&&e.scenarioContext.resourceType||Re.primary)===Re.primary},this.ignoreTerminatingError=function(e){return e&&e.length>0&&e[0]&&e[0].scenarioContext&&e[0].scenarioContext.terminatingErrorHandling&&e[0].scenarioContext.terminatingErrorHandling===Ae.ignore},this.matchPidlIdsToPidls=function(e,t,n){for(var r=t&&n&&t.length===n.length,o=0;r&&o<t.length;o++){for(var i=!1,a=0;a<n.length;a++){var s=n[a]?n[a].identity:null;i=i||e.areIdentitiesEqual(t[o],s)}r=r&&i}return r},this.translateErrorTargetsToDisplayProperties=function(e,t){var n=[];return e.forEach((function(e){var r=pn.getPropertyFromDataDescription(t.data_description,e);n.push(r&&r.display_property||e)})),n},this.doesKeyPropertyTriggerPidlDownload=function(e){return e&&Hr.boolify(e.pidl_download_enabled||e.possible_values)},this.getKeyPropertyPidlDownloadUrlParam=function(e,t){return e&&(e.pidl_download_parameter||e.possible_values&&t)},this.createKeyPropertyMap=function(e,t){for(var n={},r=function(e){return function(n){return t(e,n)}},o=0,i=e.length;o<i;o++)for(var a=pn.getKeyPropertyDescriptors(e[o].data_description),s=0,l=a.length;s<l;s++){var c=a[s].propertyName,d=a[s].propertyDescriptor;n[c]={propertyDescriptor:d,getValue:r(c)}}return n},this.getPropertyValueGetter=function(e,t,n){return function(r,o){var i=e===r?t:n(r);return Hr.toString(i)}},this.getDefaultPropertyValueGetter=function(){return function(e,t){return t&&Hr.toString(t.default_value)}},this.getDataSourceObjects=function(e){var t=[];if(e&&(Hr.isNullOrEmptyObject(e.dataSources)||t.push(e.dataSources),e.linkedPidls&&e.linkedPidls.length>0))for(var n=0;n<e.linkedPidls.length;n++)Hr.isNullOrEmptyObject(e.linkedPidls[n].dataSources)||t.push(e.linkedPidls[n].dataSources);return t}},gn=new fn,vn=function(){var e=this;this.createModelElement=function(t,n,r,o,i,a,s,l,c){switch(t){case F.button:return e.addHandleToDisplayDescriptions(r,s),new zn(n,r,o,i,a,l,c);case F.filePicker:return new Bn(n,r,o,i,a);case F.checkBox:return new On(n,r,o,i,a);case F.dropdown:return e.addHandleToDisplayDescriptions(r,s),new Mn(n,r,o,i,a);case F.group:return new Pn(t,n,r,o,i,a,c);case F.captcha:return new _n(t,n,r,o,i,a,c);case F.page:return new Dn(n,r,o,i,a);case F.textGroup:return new Tn(n,r,o,i,a);case F.dataCollectionBindingGroup:return new In(n,r,o,i,a);case F.textBox:return new Hn(n,r,o,i,a,s);case F.radio:return e.addHandleToDisplayDescriptions(r,s),new Nn(n,r,o,i,a);case F.buttonList:return e.addHandleToDisplayDescriptions(r,s),new Fn(n,r,o,i,a);case F.secureProperty:return new Qn(n,r,o,i,a,s);case F.expressCheckoutButton:return new Xn(n,r,o,i,a);case F.iFrame:return new $n(n,r,o,i,a);case F.challengeIFrame:return new er(n,r,o,i,a);case F.heading:case F.subheading:case F.text:case F.hyperlink:return new Vn(t,n,r,o,i,a,l,c);case F.image:return new Kn(t,n,r,o,i,a,l,c);case F.logo:return new qn(n,r,o,i,a,s,c);case F.audio:return new Wn(n,r,o,i,a,l,c);case F.expression:return new Un(n,r,o,i,a,l,c);case F.pidlContainer:return new Yn(n,r,o,i,a);case F.pidlInstance:return new Zn(n,r,o,i,a);case F.separator:return new jn(t,n,r,o,i,a,c);case F.spinner:return new Gn(t,n,r,o,i,a,c);default:return new Sn(t,n,r,o,i,a)}},this.addHandleToDisplayDescriptions=function(e,t){if(t){var n=t.getOperationHandle();if(n)for(var r=gn.getDisplayDescriptionsPidlActions(e),o=0;o<r.length;o++){var i=r[o];i.type!==z.success&&i.type!==z.successWithPidlPayload||!Hr.isObject(i.context)||(i.context.handle=n,Hr.isObject(i.context.resourceActionContext)&&(i.context.resourceActionContext.handle=n))}}},this.getPidlIdentityHash=function(e,t){if(t.propertyName){var n=gn.getPidlIdentityForProperty(e,t.propertyName);return n?gn.createIdentityHash(n):void 0}},this.isErrorObject=function(e){return void 0!==e.error},this.addPage=function(t,n,r,o,i,a,s){var l=e.create(t,n,r,o,i,!1,{},null,a,s);if(e.isErrorObject(l))return l;var c=null,d=l.element,u=x([],l.warnings,!0);if(d)if(lr(d)){var p=e.createLinkedPidlModelElements(i,o,d.linkedPidlId,!0,{});if(e.isErrorObject(p))return p;c=x([],p.elements,!0),u=x(x([],u,!0),p.warnings,!0)}else c=[d];return{elements:c,warnings:u}},this.create=function(t,n,r,o,i,a,s,l,c,d){var u=Nr.getModelElementType(n,r);if(u.error)return{error:u.error};var p=e.getPidlIdentityHash(t,r),m=e.createModelElement(u.type,n,r,o,p,a,i,c,d),h=[];if(s&&(m.displayType!==vt.page&&s[m.displayId]&&(h=x(x([],h,!0),[new sn.unexpectedError(ln.duplicateDisplayHintIdOnPage,[m.displayId,l])],!1)),l||(l=m.displayId),s[m.displayId]=!0),rr(m))for(var f=m.displayDescription,g=["audioMembers","imageMembers"],v=0;v<g.length;v++)for(var y=0;y<f[g[v]].length;y++){var b=e.create(t,t&&pn.getPropertyFromDataDescription(t.data_description,f[g[v]][y].propertyName),f[g[v]][y],o,i,a,s,l,c,d);if(e.isErrorObject(b))return b;h=x(x([],h,!0),b.warnings,!0);var C=b.element;0===v?m.audioChildren.push(C):m.imageChildren.push(C)}else if(nr(m))for(f=m.displayDescription,y=0;y<f.members.length;y++){if(b=e.create(t,t&&pn.getPropertyFromDataDescription(t.data_description,f.members[y].propertyName),f.members[y],o,i,a,s,l,c,d),e.isErrorObject(b))return b;if(h=x(x([],h,!0),b.warnings,!0),lr(C=b.element)){var S=e.createLinkedPidlModelElements(i,o,C.linkedPidlId,!1,s,l);if(e.isErrorObject(S))return S;m.children=x(x([],m.children,!0),S.elements,!0),h=x(x([],h,!0),S.warnings,!0)}else m.children.push(C)}else pr(m)?e.createButtonWithDisplayContentGroup(m):e.createPossibleOptionMembers(m,c);return{element:m,warnings:h}},this.createPossibleOptionMembers=function(t,n){if(ir(t))for(var r in t.possibleOptions){var o=t.possibleOptions[r];if(o.displayContent){var i=e.createModelElementsFromDisplayDescriptions([o.displayContent],t.operationType,n).elements;i&&i.length>=1&&(o.displayContentContainer=i[0])}}},this.createButtonWithDisplayContentGroup=function(t){if(t.displayDescription.displayContentDisplayDescription){var n=t.displayDescription.displayContentDisplayDescription,r=e.createModelElementsFromDisplayDescriptions([n],t.operationType).elements;r&&r.length>=1&&(t.displayContentModelElement=r[0])}},this.createLinkedPidlModelElements=function(t,n,r,o,i,a){for(var s=gn.createIdentityHash(r),l=t.getLinkedPidl(s),c={elements:[],warnings:[]},d=!1,u=0;u<l.displayDescription.length;u++){var p=l.displayDescription[u],m=e.create(l,pn.getPropertyFromDataDescription(l.data_description,p.propertyName),p,n,t,!0,i,a);if(e.isErrorObject(m))return m;var h=m.element,f=m.warnings;if(c.warnings=x(x([],c.warnings,!0),f,!0),!o&&or(h)){if(d)return{error:new sn.unexpectedError(ln.multiplePagesInLinkedPidlForSinglePagePidlContainer)};c.elements=x(x([],c.elements,!0),h.children,!0),d=!0}else c.elements=x(x([],c.elements,!0),[h],!1)}return c},this.createModelElements=function(t,n){var r=t.getResolvedOrFirstPidlDoc(),o=[],i=[];if(r&&r.displayDescription&&r.displayDescription.length)for(var a=0;a<r.displayDescription.length;a++){var s=r.displayDescription[a],l=e.addPage(r,pn.getPropertyFromDataDescription(r.data_description,s.propertyName),s,n,t);if(e.isErrorObject(l))return l;o=x(x([],o,!0),l.elements,!0),i=x(x([],i,!0),l.warnings,!0)}return 0===o.length?{error:new sn.unexpectedError(ln.noDisplayDescriptionInPidlDocument)}:{elements:o,warnings:i}},this.createModelElementsFromDisplayDescriptions=function(t,n,r,o,i,a){for(var s=[],l=0;l<t.length;l++){var c=t[l];if(c){var d=i&&i.data_description&&pn.getPropertyFromDataDescription(i.data_description,c.propertyName),u=e.addPage(i,d,c,n,a,r,o);e.isErrorObject(u)||(s=x(x([],s,!0),u.elements,!0))}}return{elements:s}}},yn=new vn,bn=function(){function e(){var e=this;this.normalizeValueToOptions=function(e,t){var n=Hr.find(e,(function(e){return Hr.equalsIgnoreCase(e,t)}));return n||(n=""),n},this.updateModelElements=function(t,n,r){e.propertiesVisitorProcessingAny(t,(function(e,t){return!!e.update&&e.update(t,r)}),n,r)},this.findFirstMatchingProperty=function(t,n){var r={properties:n};return e.propertiesVisitorProcessingDataProperty(t,(function(e,t){if(!e.isPrefillControl()&&Hr.contains(t.properties,e.getPropertyName()))return t.matchedProperty=e.getPropertyName(),!0}),r),r.matchedProperty},this.getParentIfSame=function(t,n){for(var r=null,o=0;o<n.length;o++){var i={propertyName:n[o]};if(e.propertiesVisitorProcessingAny(t,(function(e,t){if(e&&e.children)for(var n=0;n<e.children.length;n++)if(e.children[n].isProperty()){var r=e.children[n];if(r&&r.getPropertyName&&r.getPropertyName()===t.propertyName)return t.parent=e,!0}}),i),i.parent)if(r){if(i.parent!==r)return null}else r=i.parent}return r},this.findPropertyElement=function(t,n){var r={propertyName:n};return e.propertiesVisitorProcessingDataProperty(t,(function(e,t){if(e.getPropertyName()===t.propertyName)return t.element=e,!0}),r),r.element},this.findElement=function(t,n){var r={};return e.propertiesVisitorProcessingAny(t,(function(e,t){if(n(e))return t.element=e,!0}),r),r.element},this.findAllElements=function(t,n){var r={elements:[]};return e.propertiesVisitorProcessingAny(t,(function(e,t){n(e)&&t.elements.push(e)}),r),r.elements},this.findPrefillControlElement=function(t){return e.findElement(t,(function(e){if(e&&e.displayType===vt.prefillControl)return!0}))},this.findFirstVisibleEnabledPropertyElement=function(t){var n={};return e.propertiesVisitorProcessingAny(t,(function(e,t){if(e&&(e.isProperty()||e.isSecureProperty()||e.isPrefillControl())&&!e.disabled()&&!e.hidden())return t.element=e,!0}),n),n.element},this.isButtonWithDisplayDescription=function(e){return pr(e)&&!Hr.isNullOrUndefined(e.displayDescription)},this.findFirstButtonElement=function(t){return e.findElement(t,(function(e){return pr(e)}))},this.findHighlightedButton=function(t){return e.findElement(t,(function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.isHighlighted}))},this.findDefaultPidlActionButton=function(t){return e.findElement(t,(function(t){return e.isButtonWithDisplayDescription(t)&&t.displayDescription.pidlAction&&t.displayDescription.pidlAction.isDefault}))},this.getDefaultPidlActionButton=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)||e.findFirstButtonElement(t)),r},this.getDefaultPidlAction=function(t,n){var r=e.findDefaultPidlActionButton(t);return r||(r=e.findHighlightedButton(t)),r&&r.displayDescription&&r.displayDescription.pidlAction},this.getDefaultSuccessPidlPayload=function(t,n){var r=e.getDefaultPidlAction(t,n);if(r&&(r.type===z.success||r.type===z.successWithPidlPayload))return r.context},this.normalizeValueToPossibleValues=function(t,n){var r=e.normalizeValueToOptions(Hr.getKeys(t.possibleOptions),n);return Hr.isEmptyString(r)&&t.dataDescription.possible_values&&(r=e.normalizeValueToOptions(Hr.getKeys(t.dataDescription.possible_values),n)),r},this.normalizeValueToDisplayDescriptionPossibleOptions=function(t,n){return e.normalizeValueToOptions(Hr.getKeys(t.possibleOptions),n)},this.getPollingPidlActions=function(t){var n={};return t.forEach((function(t){t.pidlAction&&t.pidlAction.type===z.poll&&(n[t.displayId]=t.pidlAction),t.children&&(n=v(v({},n),e.getPollingPidlActions(t.children)))})),n},this.getPagePidlActions=function(e,t){var n={};return e.forEach((function(e){!Hr.isObject(e.pidlAction)||Hr.isString(t)&&e.pidlAction.type!==t||(n[e.displayId]=e.pidlAction)})),n},this.findRadioElements=function(t){return e.findAllElements(t,(function(e){return Sr(e)}))},this.findExpressCheckoutButtonElements=function(t){return e.findAllElements(t,(function(e){return _r(e)}))}}return e.prototype.propertyVisitorProcessingDataProperty=function(e,t,n){if(e){if(e.isProperty()||e.isSecureProperty()||e.isCaptcha()){var r=t(e,n);if(r)return r}if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,t,n);n&&delete n.stopDescendantsProcessing}},e.prototype.propertyVisitorProcessingAny=function(e,t,n,r){var o;if(e){var i=t(e,n);if(i)return i;if(e.children&&e.children.length>0&&(!n||!n.stopDescendantsProcessing))return this.propertiesVisitorProcessingAny(e.children,t,n,r);if(ir(e)&&e.possibleOptions&&(!n||!n.stopDescendantsProcessing)){var a=!1;if(e.dataCollectionSource&&e.possibleOptionsTemplate&&(null===n||void 0===n?void 0:n.modelData)){var s=e.getBindingData(n);if(s&&s.length>0)for(var l=0;l<s.length;l++){var c=v(v({},n),{contextData:s[l]}),d=e.getPossibleOptionKey(c);d&&e.possibleOptions[d]&&(a=a||this.propertiesVisitorProcessingAny([null===(o=e.possibleOptions[d])||void 0===o?void 0:o.displayContentContainer],t,c,r))}}else for(var u=0,p=Object.values(e.possibleOptions);u<p.length;u++){var m=p[u];a=a||this.propertiesVisitorProcessingAny([null===m||void 0===m?void 0:m.displayContentContainer],t,n,r)}return a}n&&delete n.stopDescendantsProcessing}},e.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e){if(!Hr.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}}},e.prototype.propertiesVisitorProcessingAny=function(e,t,n,r){if(e){if(!Hr.isArray(e))return this.propertyVisitorProcessingAny(e,t,n,r);for(var o=0;o<e.length;o++){var i=this.propertyVisitorProcessingAny(e[o],t,n,r);if(i)return i}}},e}(),Cn=new bn,Sn=function(){function e(e,t,n,r,o,i){var a=this;this.isText=function(){return a.isStaticText()||a.type===F.hyperlink},this.isStaticText=function(){return a.type===F.heading||a.type===F.subheading||a.type===F.text||a.type===F.expression},this.isProperty=function(){return a.displayDescription.displayType===vt.property},this.isCaptcha=function(){return a.displayDescription.displayType===vt.captcha},this.isPrefillControl=function(){return a.displayDescription.displayType===vt.prefillControl},this.isButton=function(){return a.displayDescription.displayType===vt.button},this.isHighlighted=function(){return a.displayDescription.isHighlighted},this.isIframe=function(){return a.displayDescription.displayType===vt.iFrame},this.isChallengeIframe=function(){return a.displayDescription.displayType===vt.challengeIframe},this.isSecureProperty=function(){return a.displayDescription.displayType===vt.secureProperty},this.showKeyLogo=function(){return Hr.boolify(a.dataDescription)&&!0===a.dataDescription.is_key},this.disabled=function(){return a.operationType===ut.update&&a.dataDescription&&!1===a.dataDescription.is_updatable||!0===a.isDisabled},this.hidden=function(){return a.isHidden||a.hasNoDataToShow},this.canBeRendered=function(){return a.displayConditionResult},this.isConditionalFieldProperty=function(){return Hr.boolify(a.dataDescription&&a.dataDescription.isConditionalFieldValue)},this.getPrefixedTags=function(e,t,n){n=n||function(e,t){return!0};var r={};return Object.keys(a.tags?a.tags:{}).forEach((function(o){var i=a.tags[o];Hr.startsWith(o,e)&&n(o,i)&&(r[t?o.replace(e,""):i]=i)})),r},this.getParentHtmlClassTags=function(){return a.getPrefixedTags(_e.parent,!1,(function(e,t){return!Ee[e.replace(_e.parent,"")]}))},this.getHelpDialogTags=function(){return a.getPrefixedTags(_e.helpDialog,!0,(function(e,t){return Ee[e.replace(_e.helpDialog,"")]}))},this.update=function(e,t){if(a.displayCondition&&(a.displayConditionResult=Nr.getFunctionExecutionResult(a.displayCondition,e)),a.conditionalFields)for(var n in a.conditionalFields)if(a.hasOwnProperty(n)){var r=a.conditionalFields[n];a[n]=Nr.getConditionalFieldValue(r,e,a)}return a.updateModelElement(e,t)},this.operationType=r,this.dataDescription=t,this.displayDescription=n,this.type=e,this.pidlIdentity=o,this.isLinkedPidl=i,this.hasNoDataToShow=!1;var s=this.displayDescription,l=s.isHidden,c=s.displayCondition,d=s.displayId,u=s.displayType,p=s.tags,m=s.propertyName,h=s.pidlAction,f=s.displayHelpName,g=s.displayHelp,v=s.displayImage,y=s.isDisabled,b=s.styleHints,C=s.conditionalFields;this.isHidden=!0===l,this.displayCondition=c,this.displayConditionResult=!this.displayCondition,this.pidlAction=h,this.displayId=d,this.displayType=u,this.tags=p,this.styleHints=b,this.conditionalFields=C,this.displayHelpName=f,this.displayHelp=g,this.displayImage=v,this.accessibilityName=null,this.tabIndex=null,this.tags&&(this.accessibilityName=this.tags.accessibilityName,this.accessibilityHint=this.tags.accessibilityHint,this.disabledAccessibilityName=this.tags.disabledAccessibilityName,this.tags.tabIndex&&(this.tabIndex=String(this.tags.tabIndex)),this.maxLengthMessage=this.tags.maxLengthMessage);var S=m;this.id=S||d,this.isDisabled=y,this.children=[],this.audioChildren=[],this.imageChildren=[]}return e.prototype.updateModelElement=function(e,t){return!1},e}(),xn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this,l=r.layoutOrientation,c=r.layoutAlignment,d=r.containerDescription,u=r.members,p=r.displayName,m=r.showDisplayName;return s.layoutOrientation=l||yt.vertical,s.layoutAlignment=c,s.containerDescription=d,s.members=u,s.displayName=p,s.showDisplayName=p&&Hr.boolify(m),s}return g(t,e),t}(Sn),kn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this,c=r.displayName,d=r.showDisplayName,u=r.isSubmitGroup,p=r.isModalGroup;return l.displayName=c,l.showDisplayName=c&&(!d||d===V.stringTrue),l.isSubmitGroup=u,l.isModalGroup=p,s&&(l.id+=s),l}return g(t,e),t}(xn),Pn=function(e){function t(t,n,r,o,i,a,s){return e.call(this,t,n,r,o,i,a,s)||this}return g(t,e),t.prototype.updateModelElement=function(e){if(this.pidlAction&&Hr.isObject(this.pidlAction.context)){var t={};for(var n in this.pidlAction.context)"instance"===n&&Hr.isString(this.pidlAction.context[n])?t[n]=Nr.getFormatInstanceExpressionValue(this.pidlAction.context[n],e):t[n]=Nr.getFormatStringExpressionValue(this.pidlAction.context[n],e);this.pidlAction.context=t}return!1},t}(kn),In=function(e){function t(t,n,r,o,i){var a=e.call(this,F.dataCollectionBindingGroup,t,n,r,o,i)||this;return a.dataCollectionSource=n.dataCollectionSource,a.filterDescription=n.filterDescription,a.childrenTemplates=a.children,a}return g(t,e),t.prototype.updateModelElement=function(e){if(this.dataCollectionSource){var t=Nr.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(t=Nr.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:t}));var n=null;if(t&&t.length&&Hr.isArray(t)){n=[];for(var r=0;r<t.length;r++)for(var o={modelData:e.modelData,contextData:t[r]},i=0;i<this.childrenTemplates.length;i++){var a=String(r);e.depth?(this.id=this.id+e.depth,a=e.depth+"_"+a,o.depth=a+String.fromCharCode(e.depth.charCodeAt(e.depth.length-1)+1)):o.depth=a+"a";var s=Hr.deepCopy(this.childrenTemplates[i]),l=yn.createModelElementsFromDisplayDescriptions([s.displayDescription],this.operationType,o,a).elements;l&&l.length>=1&&(e.stopDescendantsProcessing=!0,Cn.updateModelElements(l,o),n=n.concat(l))}}this.children=n}return!1},t}(kn),wn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this,l=r.layoutOrientation,c=r.layoutAlignment,d=r.containerDescription,u=r.audioMembers,p=r.imageMembers,m=r.displayName,h=r.showDisplayName;return s.layoutOrientation=l||yt.vertical,s.layoutAlignment=c,s.containerDescription=d,s.audioMembers=u,s.imageMembers=p,s.displayName=m,s.showDisplayName=m&&Hr.boolify(h),s}return g(t,e),t}(Sn),En=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;l.getPropertyName=function(){return l.displayDescription.propertyName},l.required=function(){return!(!0===l.dataDescription.is_optional)};var c=r.displayName,d=r.showDisplayName;return l.displayName=c,l.showDisplayName=c&&(!d||d===V.stringTrue),l.defaultValue=n.default_value,s&&(l.id+=s),l}return g(t,e),t}(wn),_n=function(e){function t(t,n,r,o,i,a,s){return e.call(this,t,n,r,o,i,a,s)||this}return g(t,e),t}(En),Dn=function(e){function t(t,n,r,o,i){var a=e.call(this,F.page,t,n,r,o,i)||this;return a.displayName=n.displayName,a.keyPidlActions=n.keyPidlActions,a}return g(t,e),t}(xn),Tn=function(e){function t(t,n,r,o,i){var a=e.call(this,F.textGroup,t,n,r,o,i)||this;return a.displayContent=n.displayContent,a}return g(t,e),t}(xn),Rn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this;s.getPropertyName=function(){return s.displayDescription.propertyName},s.getErrorMessage=function(e,t){var n,r=s.displayErrorMessages;if(r){if(t&&r.fromErrorCode)for(var o=0;o<r.fromErrorCode.length;o++){var i=r.fromErrorCode[o];if(i.errorCode===t){n=i.errorMessage;break}}else if(r.fromRegex)for(o=0;o<r.fromRegex.length;o++){var a=r.fromRegex[o];if(new RegExp(a.regex).test(e)){n=a.errorMessage;break}}n||(n=r.defaultErrorMessage)}return n},s.required=function(){return!(!0===s.dataDescription.is_optional)&&s.displayDescription.displayType!==vt.prefillControl};var l=s.displayDescription,c=l.displayName,d=l.showDisplayName,u=l.displayErrorMessages,p=l.displayLogo,m=l.maskDisplay,h=l.resolutionPolicy,f=l.displayHelpPosition,g=l.onfocusout,v=n.is_key,y=n.transformation,b=n.displayOnly,C=n.default_value,S=n.broadcastTo,x=n.sideEffects,k=n.onValidationFailed,P=n.usePreExistingValue;return Hr.isFormatStringExpressionPlaceholder(C)?s.defaultValueTemplate=C:s.defaultValue=C,s.displayName=c,s.showDisplayName=c&&(!d||d===V.stringTrue),s.isKeyProperty=!0===v,s.supportsDisplayTransformation=y&&!Hr.isNullOrUndefined(y.forDisplay),s.displayErrorMessages=u,s.displayLogo=p,s.maskDisplay=m,s.triggerPidlDownloadOnChange=s.isKeyProperty&&gn.doesKeyPropertyTriggerPidlDownload(s.dataDescription),s.resolutionPolicy=h||St.always,s.displayOnly=b,s.displayHelpPosition=f,s.broadcastTo=S,s.sideEffects=x,s.onValidationFailed=k,s.usePreExistingValue=P,s.onfocusout=g,s}return g(t,e),t.prototype.updateModelElement=function(e,t){if(this.defaultValueTemplate&&(this.defaultValue=Nr.getFormatStringExpressionValue(this.defaultValueTemplate,e),e.modelData&&this.defaultValue)){var n=e.modelData.getModelDataProperty(this.getPropertyName());n&&!n.getValue()&&n.setValue(this.defaultValue)}if(this.conditionalFields&&!Hr.isNullOrUndefined(this.conditionalFields.value)&&e&&e.resultData&&e.resultData.propertyUpdates){var r=Nr.getConditionalFieldValue(this.conditionalFields.value,e,this);e.resultData.propertyUpdates.push({propertyName:this.getPropertyName(),propertyValue:r,propertyElement:this})}return this.updatePropertyElement(e,t)},t.prototype.updatePropertyElement=function(e,t){return!1},t}(Sn),An=function(e){function t(t,n,r,o,i,a){var s=e.call(this,t,n,r,o,i,a)||this;s.firstElementIdSuffix=function(){return s.getFirstElementIdSuffix(s.possibleOptions)},s.getBindingData=function(e,t){if(s.dataCollectionSource&&s.possibleOptionsTemplate){var n=[];if(Hr.isArray(s.dataCollectionSource))for(var r=0,o=s.dataCollectionSource;r<o.length;r++){var i=o[r],a=Nr.getPropertyExpressionValue(i,e);n.push.apply(n,a)}else n=Nr.getPropertyExpressionValue(s.dataCollectionSource,e);if(s.filterDescription&&(n=Nr.getFunctionExecutionResult(s.filterDescription,{modelData:e.modelData,contextData:n},t)),n&&Hr.isArray(n)&&n.length>0)return n}return[]},s.getPossibleOptionKey=function(e){return Nr.getFormatStringExpressionValue(s.possibleOptionsTemplate.key,e)};var l=r.possibleOptions,c=r.possibleValues,d=r.dataCollectionSource,u=r.filterDescription,p=r.displaySelectionText,m=r.displayPropertyDescription,h=r.isSelectFirstItem,f=r.alwaysUpdateModelValue;if(s.possibleValues=c,s.possibleOptions=l,!s.possibleOptions&&c&&(s.possibleOptions=s.getPossibleOptions(c)),s.dataCollectionSource=d,s.filterDescription=u,s.displaySelectionText=p,s.description=m,s.isSelectFirstItem=h,s.selectedIndex=s.displaySelectionText?0:-1,s.alwaysUpdateModelValue=f,s.dataCollectionSource){var g=Object.keys(s.possibleOptions);g&&g.length&&Hr.isFormatStringExpressionPlaceholder(g[0])&&(s.possibleOptionsTemplate=s.possibleOptions[g[0]],s.possibleOptionsTemplate.key=g[0],s.possibleOptions={})}return s.isSelectFirstItem&&s.selectedIndex++,s}return g(t,e),t.prototype.updatePropertyElement=function(e,t){if(this.dataCollectionSource&&this.possibleOptionsTemplate){var n=[];if(Hr.isArray(this.dataCollectionSource))for(var r=0,o=this.dataCollectionSource;r<o.length;r++){var i=o[r],a=Nr.getPropertyExpressionValue(i,e);n.push.apply(n,a)}else n=Nr.getPropertyExpressionValue(this.dataCollectionSource,e);this.filterDescription&&(n=Nr.getFunctionExecutionResult(this.filterDescription,{modelData:e.modelData,contextData:n},t));var s={},l=this.defaultValue;if(n&&n.length&&Hr.isArray(n))for(var c=0;c<n.length;c++){var d={modelData:e.modelData,contextData:n[c]},u=Nr.getFormatStringExpressionValue(this.possibleOptionsTemplate.key,d);if(this.isSelectFirstItem&&Hr.isNullOrUndefinedOrWhiteSpaceString(l)&&(l=u,e.modelData)){var p=e.modelData.getModelDataProperty(this.getPropertyName());p&&p.setValue(u)}var m={};for(var h in this.possibleOptionsTemplate){var f=Nr.getFormatStringExpressionValue(this.possibleOptionsTemplate[h],d);m[h]=Hr.isObject(f)?Hr.deepCopy(f):f}if(m.displayContent){var g=yn.createModelElementsFromDisplayDescriptions([m.displayContent],this.operationType,d,String(c));g.elements&&g.elements.length>=1&&(Cn.updateModelElements(g.elements,d),m.displayContentContainer=g.elements[0])}m.pidlAction=m.pidlAction||{},m.pidlAction.context=n[c],s[u]=m}else t&&t.notifyNoSelectionOptionsFound(this.id,this.displayId,this.pidlIdentity,this.type);this.possibleOptions=s,this.hasNoDataToShow=0===Hr.keyCount(this.possibleOptions)}if(!this.hasNoDataToShow){var v=Nr.getFunctionExecutionResult({functionName:"filterOptions"},{modelData:e.modelData,contextData:{propertyName:this.getPropertyName(),possible_values:this.dataDescription.possible_values,possibleValues:this.possibleValues,possibleOptions:this.possibleOptions}});if(v){var y=v.possible_values,b=v.possibleValues,C=v.possibleOptions;y&&(this.dataDescription.possible_values=y),b&&(this.possibleValues=b),C&&(this.possibleOptions=C)}}return this.displayDescription.disableSingleItemDropdown&&this.type===F.dropdown&&this.possibleOptions&&1===Hr.keyCount(this.possibleOptions)?(this.isDisabled=!0,this.defaultValue=this.defaultValue||Hr.getFirstKey(this.possibleOptions)):this.isDisabled=this.displayDescription.isDisabled,!1},t.prototype.getFirstElementIdSuffix=function(e){for(var t in e)return"_"+t},t.prototype.getPossibleOptions=function(e){var t={};for(var n in e)t[n]={displayText:e[n],isDisabled:void 0};return t},t}(Rn),Mn=function(e){function t(t,n,r,o,i){var a=e.call(this,F.dropdown,t,n,r,o,i)||this;return a.defaultValue&&(a.defaultValue=Cn.normalizeValueToPossibleValues(a,a.defaultValue)),a}return g(t,e),t}(An),Nn=function(e){function t(t,n,r,o,i){var a=e.call(this,F.radio,t,n,r,o,i)||this;return a.defaultValue||(a.defaultValue=Hr.getFirstKey(a.possibleValues)),a}return g(t,e),t}(An),Fn=function(e){function t(t,n,r,o,i){var a=e.call(this,F.buttonList,t,n,r,o,i)||this;return a.findFirstValidPidlAction=function(e){for(var t,n=Hr.copyArray(null===(t=null===e||void 0===e?void 0:e.displayContentContainer)||void 0===t?void 0:t.children),r={};n.length;){var o=n.shift();if(!r[o.id]){if(r[o.id]=!0,o.pidlAction&&o.canBeRendered()){e.pidlAction=o.pidlAction;break}if(nr(o))for(var i=null===o||void 0===o?void 0:o.children,a=0;a<(null===i||void 0===i?void 0:i.length);a++)n.push(i[a])}}},a}return g(t,e),t.prototype.updateModelElement=function(t,n){for(var r in e.prototype.updateModelElement.call(this,t,n),this.possibleOptions)this.findFirstValidPidlAction(this.possibleOptions[r])},t}(An),Hn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,F.textBox,t,n,r,o,i)||this;s.getResolvedLogo=function(){return(s.pidlDocManager&&s.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},s.placeHolderText=function(){var e=s.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!s.showDisplayName||t!==s.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},s.getTextBoxType=function(){var e=s.displayDescription,t=e.inputScope,n=e.maskInput;return t||(!0===n||"password"===s.dataDescription.type?"password":"text")};var l=n.maxLength,c=n.direction,d=n.textAlignment,u=n.displayTransformations;return s.displayTransformations=u,s.maxLength=l,s.direction=c,s.textAlignment=d,s.pidlDocManager=a,s}return g(t,e),t}(Rn),On=function(e){function t(t,n,r,o,i){var a=e.call(this,F.checkBox,t,n,r,o,i)||this;return a.description=n.displayPropertyDescription,a}return g(t,e),t}(Rn),Bn=function(e){function t(t,n,r,o,i){var a=e.call(this,F.filePicker,t,n,r,o,i)||this;return a.displayContent=n.displayContent,a}return g(t,e),t}(Rn),Ln=function(e){function t(t,n,r,o,i,a,s,l){var c=e.call(this,t,n,r,o,i,a)||this;return c.displayContentTemplate=r.displayContent,c.displayContent=Nr.getFormatStringExpressionValue(c.displayContentTemplate,s),l&&(c.id+=l,c.displayId=c.id),c}return g(t,e),t.prototype.updateModelElement=function(e){return this.displayContent=Nr.getFormatStringExpressionValue(this.displayContentTemplate,e),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceInfo&&this.pidlAction.context.resourceActionContext.resourceInfo.id&&(this.pidlAction.context.resourceActionContext.resourceInfo.id=Nr.getFormatStringExpressionValue(this.pidlAction.context.resourceActionContext.resourceInfo.id,e)),this.pidlAction&&this.pidlAction.context&&this.pidlAction.context.resourceActionContext&&this.pidlAction.context.resourceActionContext.resourceObjPath&&(this.pidlAction.context.resourceActionContext.resource=Nr.getPropertyExpressionValue(this.pidlAction.context.resourceActionContext.resourceObjPath,e)),this.type===F.hyperlink&&this.pidlAction&&Hr.isString(this.pidlAction.context)&&(this.pidlAction.context=Nr.getFormatStringExpressionValue(this.pidlAction.context,e)),!1},t}(Sn),Vn=function(e){function t(t,n,r,o,i,a,s,l){return e.call(this,t,n,r,o,i,a,s,l)||this}return g(t,e),t}(Ln),zn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,F.button,t,n,r,o,i,a,s)||this;return l.tooltipText=n.tooltipText,l}return g(t,e),t}(Ln),Wn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,F.audio,t,n,r,o,i,a,s)||this;return l.audioUrl=Nr.convertBase64strIntoBlobUrl(n.audioUrl,"audio/mp3"),l}return g(t,e),t}(Ln),Un=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,F.expression,t,n,r,o,i,a,s)||this;return l.expression=n.displayContent,l}return g(t,e),t.prototype.updateModelElement=function(e){var t;return this.displayContent=Nr.getExpressionValue(this.expression,e),(null===(t=this.tags)||void 0===t?void 0:t.accessibilityNameExpression)&&(this.accessibilityName=Nr.getExpressionValue(this.tags.accessibilityNameExpression,e)),!1},t}(Ln),Kn=function(e){function t(t,n,r,o,i,a,s,l){var c=e.call(this,t,n,r,o,i,a)||this;return c.sourceUrlTemplate=r.sourceUrl,c.sourceUrl=Nr.getFormatStringExpressionValue(c.sourceUrlTemplate,s),r.codepoint&&(c.codepoint=Number(r.codepoint)),c.accessibilityName=Nr.getFormatStringExpressionValue(c.accessibilityName,s),l&&(c.id+=l,c.displayId=c.id),c}return g(t,e),t}(Sn),jn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;return s&&(l.id+=s,l.displayId=l.id),l}return g(t,e),t}(Sn),Gn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,t,n,r,o,i,a)||this;return s&&(l.id+=s,l.displayId=l.id),l}return g(t,e),t}(Sn),qn=function(e){function t(t,n,r,o,i,a,s){var l=e.call(this,F.logo,t,n,r,o,i)||this;return l.getResolvedLogo=function(){return(l.pidlDocManager&&l.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl},l.getAllLogos=function(){return l.pidlDocManager.getAllLogos()},l.sourceUrl=n.sourceUrl,l.pidlDocManager=a,s&&(l.id+=s,l.displayId=l.id),l}return g(t,e),t}(Sn),Yn=function(e){function t(t,n,r,o,i){var a=e.call(this,F.pidlContainer,t,n,r,o,i)||this;return a.linkedPidlId=n.linkedPidlId,a.submitOrder=n.submitOrder,a}return g(t,e),t}(Sn),Zn=function(e){function t(t,n,r,o,i){var a=e.call(this,F.pidlInstance,t,n,r,o,i)||this;return a.pidlInstance=n.pidlInstance,a}return g(t,e),t}(Sn),Jn=function(){this.isOptional=!1,this.resolutionPolicy=St.always},Qn=function(e){function t(t,n,r,o,i,a){var s=e.call(this,F.secureProperty,t,n,r,o,i)||this;s.placeHolderText=function(){var e=s.displayDescription,t=e.displayPropertyDescription,n=e.displayExample;if(t){if(!s.showDisplayName||t!==s.displayDescription.displayName)return t}else if(n&&n.length>0)return n[0];return null},s.getResolvedLogo=function(){return(s.pidlDocManager&&s.pidlDocManager.getResolvedLogo()||{sourceUrl:null}).sourceUrl};var l=n.sourceUrl,c=n.width,d=n.height,u=n.messageTimeout,p=n.frameName,m=n.displayName,h=n.propertyName,f=n.displayLogo;return s.sourceUrl=It.createFromTemplate(l),s.width=c,s.height=d,s.messageTimeout=u,s.frameName=p,s.displayName=m,s.propertyName=h,s.displayLogo=f,s.pidlDocManager=a,s}return g(t,e),t.prototype.validate=function(){return this.validationPromise()},t.prototype.prepareForSubmit=function(e){return this.submitPromise(e)},t}(Rn),Xn=function(e){function t(t,n,r,o,i){var a=e.call(this,F.expressCheckoutButton,t,n,r,o,i)||this,s=n.sourceUrl,l=n.displayContent,c=n.width,d=n.height,u=n.frameName,p=n.payload,m=n.messageTimeout;return a.sourceUrl=s,a.displayContent=l,a.width=c,a.height=d,a.frameName=u,a.payload=p,a.messageTimeout=m,a}return g(t,e),t}(Ln),$n=function(e){function t(t,n,r,o,i){var a=e.call(this,F.iFrame,t,n,r,o,i)||this,s=n.sourceUrl,l=n.displayContent,c=n.width,d=n.height,u=n.expectedClientActionId,p=n.messageTimeout,m=n.messageTimeoutClientAction,h=n.useAuth,f=n.loadingMessage;return a.sourceUrl=s,a.displayContent=l,a.width=c,a.height=d,a.expectedClientActionId=u,a.messageTimeout=p,a.messageTimeoutClientAction=m,a.useAuth=h,a.loadingMessage=f,a}return g(t,e),t}(Ln),er=function(e){function t(t,n,r,o,i){var a=e.call(this,F.challengeIFrame,t,n,r,o,i)||this,s=n.sourceUrl,l=n.displayContent,c=n.width,d=n.height,u=n.expectedClientActionId,p=n.messageTimeout,m=n.messageTimeoutClientAction,h=n.useAuth,f=n.loadingMessage;return a.sourceUrl=s,a.displayContent=l,a.width=c,a.height=d,a.expectedClientActionId=u,a.messageTimeout=p,a.messageTimeoutClientAction=m,a.useAuth=h,a.loadingMessage=f,a}return g(t,e),t}(Ln);function tr(e){return!Hr.isNullOrUndefined(e)&&"type"in e}function nr(e){return tr(e)&&(e.type===F.page||e.type===F.group||e.type===F.textGroup||e.type===F.dataCollectionBindingGroup||e.type===F.captcha)}function rr(e){return tr(e)&&e.type===F.captcha}function or(e){return tr(e)&&e.type===F.page}function ir(e){return tr(e)&&(e.type===F.dropdown||e.type===F.radio||e.type===F.buttonList)}function ar(e){return tr(e)&&e.type===F.dropdown}function sr(e){return ar(e)&&e.displayType===vt.prefillControl}function lr(e){return tr(e)&&e.type===F.pidlContainer}function cr(e){return tr(e)&&e.type===F.pidlInstance}function dr(e){return tr(e)&&e.type===F.image}function ur(e){return tr(e)&&e.type===F.logo}function pr(e){return tr(e)&&e.type===F.button}function mr(e){return tr(e)&&e.type===F.filePicker}function hr(e){return tr(e)&&e.type===F.checkBox}function fr(e){return hr(e)&&e.displayType===vt.prefillControl}function gr(e){return tr(e)&&(e.type===F.page||e.type===F.group||e.type===F.dataCollectionBindingGroup)}function vr(e){return tr(e)&&e.type===F.group}function yr(e){return tr(e)&&e.type===F.textGroup}function br(e){return tr(e)&&e.type===F.textBox}function Cr(e){return tr(e)&&e.type===F.buttonList}function Sr(e){return tr(e)&&e.type===F.radio}function xr(e){var t=[F.heading,F.subheading,F.text,F.hyperlink];return tr(e)&&Hr.contains(t,e.type)}function kr(e){return tr(e)&&e.type===F.dataCollectionBindingGroup}function Pr(e){return tr(e)&&e.type===F.expression}function Ir(e){return tr(e)&&e.type===F.iFrame}function wr(e){return tr(e)&&e.type===F.challengeIFrame}function Er(e){return tr(e)&&e.type===F.secureProperty}function _r(e){return tr(e)&&e.type===F.expressCheckoutButton}function Dr(e){return tr(e)&&e.type===F.separator}function Tr(e){return tr(e)&&e.type===F.audio}function Rr(e){return tr(e)&&e.isProperty()}var Ar=Object.freeze({__proto__:null,ModelElement:Sn,ContainerElement:xn,GenericGroupElement:kn,GroupElement:Pn,DataCollectionBindingGroupElement:In,CaptchaContainerElement:wn,GenericCaptchaElement:En,CaptchaElement:_n,PageElement:Dn,TextGroupElement:Tn,PropertyElement:Rn,SelectionElement:An,DropdownElement:Mn,RadioElement:Nn,ButtonListElement:Fn,TextBoxElement:Hn,CheckBoxElement:On,FilePickerElement:Bn,GenericTextElement:Ln,TextElement:Vn,ButtonElement:zn,AudioElement:Wn,ExpressionElement:Un,ImageElement:Kn,SeparatorElement:jn,SpinnerElement:Gn,LogoElement:qn,PidlContainer:Yn,PidlInstance:Zn,SecurePropertyInitializations:Jn,SecurePropertyElement:Qn,ExpressCheckoutButtonElement:Xn,IFrameElement:$n,ChallengeIFrameElement:er,isModelElement:tr,isContainerElement:nr,isCaptchaElement:rr,isPageElement:or,isSelectionElement:ir,isDropdownElement:ar,isPrefillDropdownElement:sr,isPidlContainerElement:lr,isPidlInstanceElement:cr,isImageElement:dr,isLogoElement:ur,isButtonElement:pr,isFilePickerElement:mr,isCheckBoxElement:hr,isPrefilledCheckBoxElement:fr,isPageOrGroupOrDataCollectionBindingGroup:gr,isGroupElement:vr,isTextGroupElement:yr,isTextBoxElement:br,isButtonListElement:Cr,isRadioElement:Sr,isTextElement:xr,isDataCollectionBindingGroup:kr,isExpressionElement:Pr,isIFrameElement:Ir,isChallengeIFrameElement:wr,isSecurePropertyElement:Er,isExpressCheckoutButtonElement:_r,isSeparatorElement:Dr,isAudioElement:Tr,isPropertyElement:Rr}),Mr=function(){function e(){var e=this;this.extend=dt,this.getSelectElementType=function(e){switch(e){case Ct.radio:return F.radio;case Ct.buttonList:return F.buttonList;default:return F.dropdown}},this.getErrorDetailsFromPidl=function(t,n){if(t&&n){var r=n[t];if(r&&r.Target)return e.extend(!0,r,{code:t,target:r.Target,message:r.ErrorMessage})}},this.processServerError=function(t,n,r){var o=[];if(t&&n&&n.length)for(var i=0;i<n.length;i++){var a=e.getFormatStringExpressionValue(n[i],{contextData:t}),s=e.getErrorDetailsFromPidl(a,r);if(s){o.push(s);break}}return o},this.processPimsPxError=function(t,n){var r=[];if(t)if(t.details&&t.details.length)for(var o=0;o<t.details.length;o++){var i=t.details[o];i&&r.push(i)}else{var a=e.getErrorDetailsFromPidl(t.code,n);a&&r.push(a)}return r},this.updatePidlDocUrlParamHelper=function(e,t,n){if(e&&e.parameters){if(e.parameters[t])return!Hr.equalsIgnoreCase(e.parameters[t],n)&&(e.parameters[t]=n,!0);var r=pe[t];return r&&e.parameters[r]?!Hr.equalsIgnoreCase(e.parameters[r],n)&&(e.parameters[r]=n,!0):(e.parameters[t]=n,!0)}return!1},this.s4=function(){return Math.floor(65536*(Math.random()+1)).toString(16).substring(1)},this.getAt=function(e,t){return e?e[t]:null},this.guid=function(){return e.s4()+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+"-"+e.s4()+e.s4()+e.s4()},this.parseJSON=function(e){var t={succeeded:!0,value:null};try{t.value=JSON.parse(e)}catch(n){t.value=n.message,t.succeeded=!1}return t},this.getHostName=function(e){if(e)return(e.indexOf("//")>-1?e.split("/")[2]:e.split("/")[0]).toLowerCase()},this.getBoolValue=function(e){return Hr.isString(e)?"true"===e.toLowerCase():e},this.getStringValue=function(e){for(var t="",n=0;n<e.length;++n)t+=e[n],t+=" ";return t.trim()},this.getModelElementType=function(t,n){var r={};switch(n.displayType){case vt.page:r.type=F.page;break;case vt.group:r.type=F.group;break;case vt.captcha:r.type=F.captcha;break;case vt.audio:r.type=F.audio;break;case vt.textGroup:r.type=F.textGroup;break;case vt.heading:r.type=F.heading;break;case vt.subheading:r.type=F.subheading;break;case vt.text:r.type=F.text;break;case vt.hyperlink:r.type=F.hyperlink;break;case vt.image:r.type=F.image;break;case vt.logo:r.type=F.logo;break;case vt.prefillControl:n.selectType===Ct.checkBox?r.type=F.checkBox:n.selectType===Ct.dropDown?r.type=F.dropdown:r.type=F.unknown;break;case vt.property:t?Rt(n)&&n.possibleOptions?r.type=e.getSelectElementType(n.selectType):"bool"===t.type?r.type=F.checkBox:Dt(n)?r.type=F.filePicker:r.type=F.textBox:r.error=new sn.unexpectedError(ln.displayElementPointingToMissingDataProperty,[n.displayId,n.propertyName]);break;case vt.button:r.type=F.button;break;case vt.expression:r.type=F.expression;break;case vt.pidlContainer:r.type=F.pidlContainer;break;case vt.pidlInstance:r.type=F.pidlInstance;break;case vt.dataCollectionBindingGroup:r.type=F.dataCollectionBindingGroup;break;case vt.iFrame:r.type=F.iFrame;break;case vt.challengeIframe:r.type=F.challengeIFrame;break;case vt.expressCheckoutButton:r.type=F.expressCheckoutButton;break;case vt.secureProperty:r.type=F.secureProperty;break;case vt.separator:r.type=F.separator;break;case vt.spinner:r.type=F.spinner;break;default:r.type=F.unknown}return r},this.getPidlOperationType=function(e){switch(e){case W.addAddress:case W.addPaymentInstrument:case W.addResource:case W.handleChallenge:return ut.add;case W.collectResourceInfo:return ut.renderPidlPage;case W.selectPaymentInstrument:case W.selectResource:return ut.selectInstance;case W.selectResourceType:return ut.select;case W.selectSingleResource:return ut.selectSingleInstance;case W.updateProfile:case W.updateResource:return ut.update}},this.createObjectWithNonNullProperties=function(e){var t=null;for(var n in e)Hr.isNullOrUndefined(e[n])||(t||(t={}),t[n]=e[n]);return t},this.updatePidlDocUrlParams=function(t,n){var r=!1;for(var o in n){var i=gn.getKeyPropertyPidlDownloadUrlParam(n[o].propertyDescriptor,o),a=n[o].getValue(n[o].propertyDescriptor);if(i){var s=e.updatePidlDocUrlParamHelper(t,i,a);r=r||s}}return r},this.getRetryableTargettedErrors=function(e,t){if(e&&e.length)for(var n=0;n<e.length;n++){var r=e[n],o=!0;if(r.target||(o=!1),o&&t&&r.code){t[r.code]||(t[r.code]={retryCount:0});var i=r.retryPolicy;i&&i.type===xt.limitedRetry&&i.context&&!Hr.isUndefined(i.context.maxRetryCount)&&r.retryPolicy.context.maxRetryCount<=t[r.code].retryCount&&(o=!1)}o?t&&r.code&&t[r.code].retryCount++:(Hr.removeFromArray(e,n,1),n--)}return e},this.createParseErrorResponse=function(t,n,r,o,i){var a=[],s=void 0,l=void 0,c=void 0;if(o){var d=e.parseJSON(o.failureContent),u=d.succeeded?d.value:o.failureObject;if(c=o.failureContent,u){l=u;var p=u.innererror||u;switch(Ut.getErrorSourceFromUrl(t)){case Br.virtualEndpoints.pifdProfile.endpoint:case Br.virtualEndpoints.pifdAddress.endpoint:n=n||["({contextData.innererror.code})","({contextData.InnerError.ErrorCode})"];break;case Br.virtualEndpoints.jarvisAddress.endpoint:n=n||["({contextData.error_code}.{contextData.parameters.property_name})","({contextData.error_code})"]}if(a=n?e.processServerError(u,n,r):e.processPimsPxError(p,r),a=e.getRetryableTargettedErrors(a,i),p&&p.clientAction&&(s=p.clientAction),!c)try{c=JSON.stringify(u)}catch(Qk){}}}else o=o||{status:E.Error};return{jsonResponse:l,clientAction:s,status:o.httpStatus,statusText:o.httpStatusText,responseText:c,errorMessage:o.errorMessage,targettedInnerErrors:a}},this.convertCustomErrorsInSdkErrors=function(t,n){for(var r=[],o=0;o<t.length;o++){var i=t[o],a=null;if(i.message?a={message:i.message,target:i.target,code:i.code}:i.code&&(a=e.getErrorDetailsFromPidl(i.code,n)),!a)return null;r.push(a)}return r},this.parseCustomSubmitError=function(t,n,r,o,i,a){return t||n&&0!==n.length?n&&0!==n.length?{jsonResponse:t,targettedInnerErrors:e.convertCustomErrorsInSdkErrors(n,i)}:e.createParseErrorResponse(r,o,i,{status:E.Error,failureContent:t},a):{clientAction:{type:ht.None}}},this.parseServerError=function(t,n,r,o,i){return e.createParseErrorResponse(t,n,r,o,i)},this.createServerError=function(t,n,r,o,i){var a=e.parseServerError(n,null,i,r);return new sn.serverError(t,n,a.jsonResponse,r.httpStatus,r.httpStatusText,r.failureContent,o)},this.createServerErrorFromIPxServiceError=function(e,t){var n=JSON.stringify(t);return new sn.serverError(e,null,t,null,null,n,[])},this.createPropertyErrors=function(e,t,n,r,o){if(t){var i=new sn.groupValidationFailedError(ln.propertyValidationFailed,r.code,t,[t,r.code]);i.message=r.message,o.push(i),n=null}for(var a=0;a<e.length;a++){var s=e[a],l=new sn.propertyValidationFailedError(ln.propertyValidationFailed,r.code,s,[s,r.code]);l.message=s===n?r.message:"",o.push(l)}},this.convertErrorToString=function(e){try{if(e instanceof Error)return e.message;if("object"!==typeof e||null===e)return String(e);try{return JSON.stringify(e,null,2)}catch(t){return"Error converting object to string"}}catch(n){return"Error converting error to string"}},this.createResponseHeadersDictionary=function(e){var t;return e&&(t=e.split("\r\n").reduce((function(e,t,n){var r=t.split(": ");return r[0]&&r[1]&&(e[Hr.toLowerCase(r[0])]=Hr.toLowerCase(r[1])),e}),{})),t},this.isTagPrefixKnown=function(e){for(var t in _e)if(Hr.startsWith(e,_e[t]))return!0;return!1},this.unregisterFromOrchestrator=function(e){var t;try{t=window.pidlOrchestrator}catch(n){return}t&&t.unregisterPidlHook&&t.unregisterPidlHook(e)},this.registerToOrchestrator=function(e){var t;try{t=window.pidlOrchestrator}catch(n){return-1}return t&&t.registerPidlHook?t.registerPidlHook(e):null},this.broadcastPropertyValueUpdate=function(e,t,n,r,o){var i;try{i=window.pidlOrchestrator}catch(a){}return i&&i.broadcastPropertyValueUpdate?i.broadcastPropertyValueUpdate(e,t,n,r,o):Promise.resolve()},this.getGlobalPropertyValue=function(e,t){var n;try{n=window.pidlOrchestrator}catch(r){}if(n&&n.getGlobalPropertyValue)return n.getGlobalPropertyValue(e,t)},this.getFormatStringExpressionValue=function(t,n,r){if(n&&Hr.isFormatStringExpressionPlaceholder(t)){for(var o=t.substring(1,t.length-1),i=Hr.getProperties(o,"<|","|>"),a=0;a<i.length;a++){var s=i[a],l=s.split("|"),c=l[0],d=l[1],u=void 0;if(d){var p=d.split(";");u=[];for(var m=0;m<p.length;m++)u[m]=e.getPropertyExpressionValue(p[m],n)}var h=e.getFunctionExecutionResult({functionName:c,arguments:u},n);h=Hr.isNullOrUndefined(h)?"":h,o=o.replace("<|"+s+"|>",h)}var f=Hr.getProperties(o,"{","}");for(a=0;a<f.length;a++){var g="{"+f[a]+"}",v=e.getPropertyExpressionValue(g,n)||"";r&&(v=r(v)),o=o.replace(g,v)}return o}return t},this.getConditionalFieldValue=function(t,n,r){if(n){if(Hr.isFormatStringExpressionPlaceholder(t))return e.getFormatStringExpressionValue(t,n);if(Hr.isDataBindingPlaceholder(t))return e.getPropertyExpressionValue(t,n,ir(r));if(Hr.isFunctionCallPlaceholder(t)){var o=t.substring(2,t.length-2),i=o.indexOf("|"),a=o.substring(0,i),s=o.substring(i+1),l=void 0;if(s){var c=/\<\|([^<]*?)\|\>/gm,d=s;do{for(var u=c.exec(s);null!==u;){var p=e.getConditionalFieldValue(u[0],n,r);d=d.replace(u[0],p),u=c.exec(s)}s=d}while(null!==s.match(c));var m=s.split(";");l=[];for(var h=0;h<m.length;h++)l[h]=e.getConditionalFieldValue(m[h],n,r)}return e.getFunctionExecutionResult({functionName:a,arguments:l},n)}}return t},this.getFormatInstanceExpressionValue=function(e,t){if(t&&Hr.isFormatStringExpressionPlaceholder(e))for(var n=e.substring(1,e.length-1),r=Hr.getProperties(n,"{","}"),o=0;o<r.length;o++)if(r[o].indexOf(".")<0&&r[o]in t)return t[r[o]];return null},this.getExpressionValue=function(t,n){for(var r=t,o=Hr.getProperties(t,"(",")"),i=0;i<o.length;i++){var a=Hr.getProperties(o[i],"{","}")[0],s=e.getPropertyExpressionValue("{"+a+"}",n),l=void 0,c=void 0;s?(l=(r=r.replace("{"+a+"}",s)).indexOf("("),c=(r=r.substring(0,l)+r.substring(l+1,r.length)).indexOf(")"),r=r.substring(0,c)+r.substring(c+1,r.length)):(l=r.indexOf("("),c=r.indexOf(")"),r=r.substring(0,l)+r.substring(c+1,r.length))}return r},this.applyRegexTransformation=function(e,t,n){if(!Hr.isNullOrUndefined(e)&&t&&n)return e.replace(RegExp(t),n).trim()},this.applyDisplayTransformation=function(t,n){var r=n;return t.type===gt.regex?(Hr.isString(n)||Hr.isNumber(n))&&(r=e.applyRegexTransformation(n.toString(),t.inputRegex,t.replacementPattern)||r):r=void 0,r},this.getTextContent=function(t){if(-1===t.indexOf(We.link))return t;var n="",r=e.parseDisplayContent(t);if(1===r.length)return t;for(var o=0;o<r.length;o++){var i=r[o];-1===i.indexOf(We.link)?n+=i:n+=i.replace(i,i.match(/\[(.*?)\]/)[1])}return n},this.parseDisplayContent=function(e){for(var t=0,n=e.indexOf(We.link,t),r=-1,o=-1,i=[];-1!==n;){r=-1;for(var a=n;a<=n&&a>=0;a--)if("["===e[a]){r=a;break}if(-1===r)return(i=[]).push(e),i;i.push(e.substring(o,r)),o=-1;for(var s=n;s>=n&&s<e.length;s++)if(")"===e[s]){o=s+1;break}if(-1===o)return(i=[]).push(e),i;if(i.push(e.substring(r,o)),t=n+2,-1===(n=e.indexOf(We.link,t))){var l=e.substring(o,e.length);void 0!==l&&""!==l&&i.push(l)}}return i},this.convertBase64strIntoBlobUrl=function(e,t){e=e.replace("data:audio/mp3;base64,","");var n="";try{for(var r=window.atob(e),o=new ArrayBuffer(r.length),i=new Uint8Array(o),a=0;a<r.length;a++)i[a]=r.charCodeAt(a);var s=new Blob([i],{type:t});n=URL.createObjectURL(s)}catch(l){}return n},this.verifyClientSupported=function(e){var t,n=v({},e);n.parameters=v({},e.parameters);var r=n.parameters.allowedPaymentMethods;if((null===(t=null===window||void 0===window?void 0:window.paymentAgent)||void 0===t?void 0:t.clientSupported)&&(null===r||void 0===r?void 0:r.length)){var o=window.paymentAgent.clientSupported(r);n.parameters.allowedPaymentMethods=o}return n},this.getFlightHeaders=function(e){var t;return((null===(t=null===e||void 0===e?void 0:e.getHeaders)||void 0===t?void 0:t.call(e,{},""))||{})[ee.msFlight]||""}}return e.prototype.getPropertyExpressionValue=function(e,t,n){if(void 0===n&&(n=!1),t&&Hr.isString(e)&&Hr.isDataBindingPlaceholder(e)){var r=e.substring(1,e.length-1);if(r.indexOf(".")<0)return n?t.modelData&&t.modelData.getPropertyValue(r):t.modelData&&(t.modelData.getDisplayPropertyValue(r)||t.modelData.getPropertyValue(r));var o=Hr.getDataSourceDetails(r),i=null;switch(o.dataSourceName){case Fe.contextData:i=t.contextData;break;case Fe.partnerData:i=t.modelData&&t.modelData.getPartnerData();break;default:i=t.modelData&&t.modelData.getAllDataSources()}return i&&o.jpath?Hr.getPropertyValueByJPath(i,o.jpath):null}return e},e.prototype.getFunctionExecutionResult=function(e,t,n){if(e&&e.functionName){var r={contextData:t&&t.contextData,partnerData:t&&t.modelData&&t.modelData.getPartnerData(),dataSources:t&&t.modelData&&t.modelData.getAllDataSources(),model:t&&t.model};e.arguments&&(r.arguments=e.arguments);var o=void 0;try{o=window.pidlResourceHelpers}catch(l){}if(o&&o.executeExtensionFunc){var i=o.executeExtensionFunc(e.functionName,r);if(n&&"filterPaymentInstruments"===e.functionName&&Hr.isArray(i)){var a={pidlDocInfo:r.partnerData&&r.partnerData.inputParameters&&r.partnerData.inputParameters.pidlDocInfo},s=i.map((function(e){return{id:e&&e.id,paymentMethodType:e&&e.paymentMethod&&e.paymentMethod.paymentMethodType,paymentMethodFamily:e&&e.paymentMethod&&e.paymentMethod.paymentMethodFamily}}));n.resourceHelpersFunctionExecuted(e.functionName,a,s)}return i}}return null},e}(),Nr=new Mr,Fr=function(){function e(){var e=this;this.getType=function(e){return Object.prototype.toString.call(e)},this.isArray=function(t){return t&&"[object Array]"===e.getType(t)},this.isObject=function(t){return t&&"[object Object]"===e.getType(t)},this.isFunction=function(t){return t&&"[object Function]"===e.getType(t)},this.isString=function(e){return"string"===typeof e},this.isBool=function(e){return"boolean"===typeof e},this.isNumber=function(e){return"number"===typeof e},this.isNullOrEmptyObject=function(e){if(e)for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},this.isEmptyString=function(t){return e.isString(t)&&0===t.length},this.isWhiteSpaceString=function(t){return e.isString(t)&&0===t.trim().length},this.isNull=function(e){return!e&&null===e},this.isUndefined=function(e){return"undefined"===typeof e},this.isNullOrUndefined=function(t){return e.isNull(t)||e.isUndefined(t)},this.isNullOrUndefinedOrWhiteSpaceString=function(t){return e.isNullOrUndefined(t)||e.isEmptyString(t)||e.isWhiteSpaceString(t)},this.contains=function(t,n){return e.indexOf(t,n)>=0},this.indexOf=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1},this.includes=function(t,n){return!e.isNullOrUndefined(t)&&t.indexOf(n)>=0},this.keyCount=function(t){if(e.isObject(t))return Object.keys(t).length},this.getFirstKey=function(t){return e.isObject(t)&&e.keyCount(t)>0&&Object.keys(t)[0]||void 0},this.serialize=function(t){if(e.isObject(t)||e.isArray(t))try{return JSON.stringify(t)}catch(n){return n&&n.message}return null===t||void 0===t?"":t},this.addSlashes=function(e){return e=e.replace(/[\\\'\"]/g,"\\$&")},this.format=function(t,n){return e.isString(t)?((n=n||[])["{"]="{",n["}"]="}",t.replace(/{({|}|-?[0-9]+)}/g,(function(t){return e.addSlashes(e.serialize(n[t.substring(1,t.length-1)]))}))):t},this.attachAffixes=function(t,n,r){var o=e.isNullOrUndefined(t)?n:t+n;return e.isNullOrUndefined(r)?o:o+r},this.removeAffixes=function(t,n,r){if(e.isNullOrUndefined(n))return n;var o=e.isNullOrUndefined(t)?0:t.length,i=e.isNullOrUndefined(r)?n.length:n.length-r.length;return n.substring(o,i)},this.startsWithIgnoreCase=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length).toLowerCase()===t.toLowerCase())},this.startsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(0,t.length)===t)},this.endsWith=function(e,t){return!!e&&(!t||!t.length||e.slice(e.length-t.length)===t)},this.isDataBindingPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"{")&&e.endsWith(t,"}")},this.isFormatStringExpressionPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"(")&&e.endsWith(t,")")},this.isFunctionCallPlaceholder=function(t){return t&&e.isString(t)&&e.startsWith(t,"<|")&&e.endsWith(t,"|>")},this.getDataSourceDetails=function(e){var t=e,n=void 0,r=e.indexOf(".");return r>0&&(t=e.substr(0,r),n=e.substr(r+1)),{dataSourceName:t,jpath:n}},this.getPropertyValueByJPath=function(t,n){e.startsWith(n,"{$.")?n=n.substring(3,n.length-1):e.startsWith(n,"{")&&(n=n.substring(1,n.length-1));for(var r=(n=(n=n.replace(/\[(\w+)\]/g,".$1")).replace(/^\./,"")).split("."),o=0;o<r.length;o++){var i=r[o];if(!t||!(i in t))return;t=t[i]}return t},this.getDataCollectionSource=function(e){return e.split(".")[0]},this.getDataCollectionName=function(e){return e.split(".")[1]||e},this.toString=function(t){return!e.isUndefined(t)&&t.toString&&(t=t.toString()),t},this.toLowerCase=function(t){return e.isString(t)&&t.toLowerCase?t.toLowerCase():t},this.toUpperCase=function(t){return e.isString(t)&&t.toUpperCase?t.toUpperCase():t},this.equalsIgnoreCase=function(t,n){return e.toLowerCase(t)===e.toLowerCase(n)},this.escapeCharactersForHtml=function(e){return e&&e.replace?e.replace(/&/g,"&amp;").replace(/>/g,"&gt;").replace(/</g,"&lt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"):e},this.replaceCharactersForHtml=function(e){return e&&e.replace?e.replace(/(^[^A-Za-z])/,"a").replace(/([^A-Za-z0-9-_])/g,"_"):e},this.getProperties=function(e,t,n){for(var r=[],o=-1,i=t.length,a=n.length;;){var s=e.indexOf(t,-1===o?0:o+a);if(-1===s)break;if(-1===(o=e.indexOf(n,s+i)))break;r.push(e.substr(s+i,o-s-i))}return r},this.boolify=function(t){return e.isString(t)?!e.equalsIgnoreCase(t,"false")&&!e.isEmptyString(t):!!t},this.deepCopy=function(e,t){return t=t||{},e&&Nr.extend(!0,t,e)||{}},this.mergeObjectArray=function(e){var t={};if(e&&e.length)for(var n=0;n<e.length;n++)Nr.extend(t,e[n]);return t},this.removeFromArray=function(e,t,n){e&&e.splice(t,n)},this.getKeys=function(e){return e?Object.keys(e):[]},this.getValues=function(e){return e?Object.keys(e).map((function(t){return e[t]})):[]},this.filter=function(t,n){e.invokeIf(t,(function(e){return!(n||function(){return!0})(e)}),(function(e){t.splice(e,1)}))},this.objectEquals=function(t,n){if(!t||!n||e.keyCount(t)!==e.keyCount(n))return!1;for(var r in t)if(t[r]!==n[r])return!1;return!0},this.bothNull=function(e,t){return!(e||t)},this.onlyOneNull=function(e,t){return!(e&&t)}}return e.prototype.copyArray=function(e){return e&&e.slice()||[]},e.prototype.invokeIf=function(e,t,n){if(e&&t)for(var r=e.length;r--;)t(e[r])&&n(r)},e.prototype.find=function(e,t){if(e&&t)for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]},e}(),Hr=new Fr,Or=function(){var e=this;this.serviceEndpoints={},this.currentEnv="prod",this.virtualEndpoints={billingAuth:{description:"Billing Auth Service",endpoint:"billingauth-endpoint",name:"billingauth",operation:"POST Tax ID"},bsxCommerce:{description:"BSX Commerce Service",endpoint:"bsxcommerce-endpoint",name:"bsxcommerce",operation:"GET MC PI"},hapi:{description:"HAPI Service",endpoint:"hapi-endpoint",name:"hapi",operation:"POST Tax ID"},jarvis:{description:"Jarvis FD",endpoint:"jarvis-endpoint",name:"jarvis",operation:"POST Jarvis"},jarvisAddress:{description:"Jarvis FD",endpoint:"jarvis-address-endpoint",name:"jarvisaddress",operation:"POST Jarvis Address"},paypalEncryptJS:{description:"Static Resource Service",endpoint:"paypalencryptjs-endpoint",name:"paypalencrypt",operation:"Download Paypal Encrypt JS"},pidl:{description:"PIDL Service",endpoint:"pidl-endpoint",name:"pidl",operation:"GET PIDL"},pidlEdge:{description:"PIDL Service on Edge",endpoint:"pidledge-endpoint",name:"pidledge",operation:"GET PIDL on Edge"},pifdBackend:{description:"PIFD Backend",endpoint:"pifdbackend-endpoint",name:"pifdbackend",operation:"PIFD operation on PIFDBackEnd"},pifd:{description:"Payment Instrument FD",endpoint:"pifd-endpoint",name:"pifd",operation:"POST PIDL"},pifdEdge:{description:"Payment Instrument FD on Edge",endpoint:"pifdedge-endpoint",name:"pifdedge",operation:"PIFD operation on Edge"},pifdAddress:{description:"Payment Instrument FD",endpoint:"pifd-address-endpoint",name:"pifdaddress",operation:"POST Address PIDL"},pifdProfile:{description:"Payment Instrument FD",endpoint:"pifd-profile-endpoint",name:"pifdprofile",operation:"POST Profile PIDL"},pifdPx:{description:"Payment Instrument FD",endpoint:"pifd-px-endpoint",name:"pifdpx",operation:"PIFD PX"},redirection:{description:"Redirection Service",endpoint:"redirection-endpoint",name:"redirection",operation:"Redirect"},redirectionv2:{description:"Redirection Service",endpoint:"redirectionv2-endpoint",name:"redirection",operation:"Redirect"},resource:{description:"Resource Service",endpoint:"resource-endpoint",name:"resource",operation:"GET Resource"},tokenization:{description:"Tokenization Service",endpoint:"tokenization-endpoint",name:"tokenization",operation:"Tokenize User Input"},transformation:{description:"Transformation Service",endpoint:"transformation-endpoint",name:"transformation",operation:"Transform User Input"},validation:{description:"Validation Service",endpoint:"validation-endpoint",name:"validation",operation:"Validate User Input"},commercemgmt:{description:"Commerce Management Endpoint",endpoint:"commercemgmt-endpoint",name:"commercemgmt",operation:"Commerce Management"},encryptJS:{description:"Static Resource Service",endpoint:"encryptjs-endpoint",name:"encrypt",operation:"Download external service specific Encrypt JS"},msrCryptoJS:{description:"Static Resource Service",endpoint:"msrcryptojs-endpoint",name:"msrcrypto",operation:"Download MSR Crypto JS"},staticResources:{description:"Static Resource Service",endpoint:"staticResources-endpoint",name:"staticresources",operation:"Download static resources"},styleHintDefsJson:{description:"Static Resource Service",endpoint:"stylehintdefsjson-endpoint",name:"staticresources",operation:"Download styleHintDefs and baseStyleHintDefs"},tokenPolicy:{description:"Token Policy Service",endpoint:"tops-endpoint",name:"tokenpolicy",operation:"Verify CSV"},purchaseFrontDoor:{description:"Purchase FrontDoor Service",endpoint:"purchase-endpoint",name:"purchasefrontdoor",operation:"Apply CSV to user account"},payeeTaxProfile:{description:"Payee Tax Profile PIDL Service",endpoint:"payeetaxprofile-endpoint",name:"payeetaxprofile",operation:"Payee Tax Profile PIDL Service"},msRewards:{description:"MS Rewards PIDL Service",endpoint:"pidl-endpoint",name:"msrewards",operation:"GET MS Rewards PIDL"},securePx:{description:"Secure PX Service",endpoint:"securepx-endpoint",name:"securepx",operation:"Secure field value handler"},provisionWalletToken:{description:"Wallet Token",endpoint:"pifd-endpoint",name:"pifd",operation:"POST Wallet Token"},gpex:{description:"Generic PIDL Experience Service",endpoint:"gpex-endpoint",name:"gpex",operation:"Address Tax Profile PIDL Service"},challengeUI:{description:"Challenge UI PIDL Service",endpoint:"challengeui-endpoint",name:"challengeui",operation:"Challenge UI PIDL Service"}},this.updateEndpoints=function(t){var n,r={};e.currentEnv=(null===(n=null===t||void 0===t?void 0:t.toLowerCase)||void 0===n?void 0:n.call(t))||"prod","int"===t?(r.billingAuth="billingapi.cp.microsoft-int.com",r.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",r.hapi="commerceapi.officeppe.net/v1",r.jarvis="jcmsdf.account.microsoft-int.com",r.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",r.staticResources="pmservices.cp.microsoft-int.com",r.pifdBackend="pifd.cp.microsoft-int.com/v6.0",r.pifd="pifd.cp.microsoft-int.com/v6.0",r.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdint/v6.0",r.redirection="pmservices.cp.microsoft-int.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",r.tokenization="tokenization.cp.microsoft-int.com/tokens",r.transformation="pifd.cp.microsoft-int.com/v6.0",r.validation="pifd.cp.microsoft-int.com/v6.0",r.commercemgmt="ppe.commercemgmt.m365.microsoft.com",r.tokenPolicy="tops-int.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",r.securePx="securepxservice.cp.microsoft-int.com",r.payeeTaxProfile="taxProfileService-dev-gfahd6aad6a5asey.b02.azurefd.net",r.gpex="edge.gpex.cp.microsoft-int.com",r.challengeUI="payint.microsoft.com/challengeui"):"aircapi"===t?(r.billingAuth="billingapi.cp.microsoft-int.com",r.bsxCommerce="bsxcommerce.mp.microsoft-int.com/v1",r.hapi="commerceapi.officeppe.net/v1",r.jarvis="jcmsdf.account.microsoft-int.com",r.paypalencryptjs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.encryptJS="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.msrCryptojs="pmservices.cp.microsoft-int.com/staticresourceservice/scripts/v6/int",r.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",r.staticResources="pmservices.cp.microsoft-int.com",r.pifdBackend="edge.gpex-aircapi.cp.microsoft.com",r.pifd="edge.gpex-aircapi.cp.microsoft.com",r.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdint/v6.0",r.redirection="pmservices.cp.microsoft-int.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft-int.com",r.tokenization="tokenization.cp.microsoft-int.com/tokens",r.transformation="edge.gpex-aircapi.cp.microsoft.com",r.validation="edge.gpex-aircapi.cp.microsoft.com",r.commercemgmt="ppe.commercemgmt.m365.microsoft.com",r.tokenPolicy="tops-int.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase-int.mp.microsoft.com/v7.0",r.securePx="localhost:44326",r.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net",r.gpex="edge.gpex-aircapi.cp.microsoft.com",r.challengeUI="payint.microsoft.com/challengeui"):"ppe"===t?(r.billingAuth="billingapi.cp.microsoft.com",r.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",r.hapi="commerceapi.office.net/v1",r.jarvis="jcmsfd.account.microsoft.com",r.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.styleHintDefsJson="pmservices.cp.microsoft-int.com/staticresourceservice/resources/pidlstylehints/int",r.staticResources="pmservices.cp.microsoft.com",r.pifdBackend="paymentinstruments-int.mp.microsoft.com/v6.0",r.pifd="paymentinstruments-int.mp.microsoft.com/v6.0",r.pifdEdge="paymentsfd.cp.microsoft-int.com/pifdppe/v6.0",r.redirection="pmservices.cp.microsoft.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft.com",r.tokenization="tokenization.cp.microsoft.com/tokens",r.transformation="paymentinstruments-int.mp.microsoft.com/v6.0",r.validation="paymentinstruments-int.mp.microsoft.com/v6.0",r.commercemgmt="ppe.commercemgmt.m365.microsoft.com",r.tokenPolicy="tops.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",r.securePx="securepxservice-ppe.cp.microsoft.com",r.payeeTaxProfile="taxservice-uat-htdmh4h7cxfjfecg.z01.azurefd.net",r.gpex="edge.gpex-ppe.cp.microsoft.com",r.challengeUI="payppe.microsoft.com/challengeui"):"prod"===t?(r.billingAuth="billingapi.cp.microsoft.com",r.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",r.hapi="commerceapi.office.net/v1",r.jarvis="jcmsfd.account.microsoft.com",r.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.styleHintDefsJson="pmservices.cp.microsoft.com/staticresourceservice/resources/pidlstylehints/prod",r.staticResources="pmservices.cp.microsoft.com",r.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",r.pifd="paymentinstruments.mp.microsoft.com/v6.0",r.pifdEdge="paymentsfd.cp.microsoft.com/pifd/v6.0",r.redirection="pmservices.cp.microsoft.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft.com",r.tokenization="tokenization.cp.microsoft.com/tokens",r.transformation="paymentinstruments.mp.microsoft.com/v6.0",r.validation="paymentinstruments.mp.microsoft.com/v6.0",r.commercemgmt="commercemgmt.m365.microsoft.com",r.tokenPolicy="tops.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",r.securePx="securepxservice.cp.microsoft.com",r.payeeTaxProfile="taxprofileservice-prod-hqgqe5g5f8fwfcdw.z01.azurefd.net",r.gpex="edge.gpex.cp.microsoft.com",r.challengeUI="pay.microsoft.com/challengeui"):"feature"===t&&(r.billingAuth="billingapi.cp.microsoft.com",r.bsxCommerce="bsxcommerce.mp.microsoft.com/v1",r.hapi="commerceapi.office.net/v1",r.jarvis="jcmsfd.account.microsoft.com",r.paypalencryptjs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.encryptJS="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.msrCryptojs="pmservices.cp.microsoft.com/staticresourceservice/scripts/v6/prod",r.styleHintDefsJson="pmservices.cp.microsoft.com/staticresourceservice/resources/pidlstylehints/prod",r.staticResources="pmservices.cp.microsoft.com",r.pifdBackend="paymentinstruments.mp.microsoft.com/v6.0",r.pifd="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.pifdEdge="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.redirection="pmservices.cp.microsoft.com",r.redirectionv2="paymentsredirectionservice.cp.microsoft.com",r.tokenization="tokenization.cp.microsoft.com/tokens",r.transformation="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.validation="st-pifd-prod-wcus.azurewebsites.net/v6.0",r.commercemgmt="commercemgmt.m365.microsoft.com",r.tokenPolicy="tops.mp.microsoft.com/v1.0",r.purchaseFrontDoor="purchase.mp.microsoft.com/v7.0",r.securePx="securepxservice.cp.microsoft.com",r.payeeTaxProfile="taxservice-dev-gdfveqaqepcbgmc5.z01.azurefd.net",r.gpex="edge.gpex.cp.microsoft.com",r.challengeUI="payint.microsoft.com/challengeui"),e.serviceEndpoints={},e.serviceEndpoints[e.virtualEndpoints.billingAuth.endpoint]=r.billingAuth,e.serviceEndpoints[e.virtualEndpoints.bsxCommerce.endpoint]=r.bsxCommerce,e.serviceEndpoints[e.virtualEndpoints.hapi.endpoint]=r.hapi,e.serviceEndpoints[e.virtualEndpoints.jarvis.endpoint]=r.jarvis,e.serviceEndpoints[e.virtualEndpoints.jarvisAddress.endpoint]=r.jarvis,e.serviceEndpoints[e.virtualEndpoints.paypalEncryptJS.endpoint]=r.paypalencryptjs,e.serviceEndpoints[e.virtualEndpoints.encryptJS.endpoint]=r.encryptJS,e.serviceEndpoints[e.virtualEndpoints.msrCryptoJS.endpoint]=r.msrCryptojs,e.serviceEndpoints[e.virtualEndpoints.styleHintDefsJson.endpoint]=r.styleHintDefsJson,e.serviceEndpoints[e.virtualEndpoints.staticResources.endpoint]=r.staticResources,e.serviceEndpoints[e.virtualEndpoints.pidl.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pidlEdge.endpoint]=r.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdBackend.endpoint]=r.pifdBackend,e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint]=r.pifdEdge,e.serviceEndpoints[e.virtualEndpoints.pifdAddress.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdProfile.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.pifdPx.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.redirection.endpoint]=r.redirection,e.serviceEndpoints[e.virtualEndpoints.redirectionv2.endpoint]=r.redirectionv2,e.serviceEndpoints[e.virtualEndpoints.resource.endpoint]=r.pifd,e.serviceEndpoints[e.virtualEndpoints.tokenization.endpoint]=r.tokenization,e.serviceEndpoints[e.virtualEndpoints.transformation.endpoint]=r.transformation,e.serviceEndpoints[e.virtualEndpoints.validation.endpoint]=r.validation,e.serviceEndpoints[e.virtualEndpoints.commercemgmt.endpoint]=r.commercemgmt,e.serviceEndpoints[e.virtualEndpoints.tokenPolicy.endpoint]=r.tokenPolicy,e.serviceEndpoints[e.virtualEndpoints.purchaseFrontDoor.endpoint]=r.purchaseFrontDoor,e.serviceEndpoints[e.virtualEndpoints.securePx.endpoint]=r.securePx,e.serviceEndpoints[e.virtualEndpoints.payeeTaxProfile.endpoint]=r.payeeTaxProfile,e.serviceEndpoints[e.virtualEndpoints.gpex.endpoint]=r.gpex,e.serviceEndpoints[e.virtualEndpoints.challengeUI.endpoint]=r.challengeUI},this.addGenericParameters=function(e,t,n){if(t&&t.parameters)for(var r in t.parameters){var o=ue[r];!t.parameters[r]||e[r]||e[o]||(e[r]=t.parameters[r])}return n&&(e.operationType=n),e},this.getGenericResourceParams=function(t,n,r){return e.addGenericParameters({},t,r)},this.getResourceEndpointParams=function(t,n,r,o){var i=e.addGenericParameters({},n,o);return i.resourceName=t,i},this.getOrderResourceEndpointParams=function(t,n,r){return e.getResourceEndpointParams("order",t,n,r)},this.getPaymentResourceParams=function(t,n,r){var o=(n=n||{}).paymentMethod||{};return e.addGenericParameters({family:o.paymentMethodFamily,type:o.paymentMethodType,country:((n.details||{}).address||{}).country},t,r)},this.resourceTypeToPidlDoc={addressex:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/addressDescriptions"},challenge:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET Challenge PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/challengeDescriptions"},order:{addResourceNameToQueryParam:!0,description:"PIDL Service",getParams:this.getOrderResourceEndpointParams,operation:"GET Order resource PIDLs",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/resourceDescriptions"},paymentinstrument:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},paymentinstrumentlist:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Instrument PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentInstrumentsEx",anonymousTemplate:"{pidl-endpoint}/paymentInstrumentsEx"},paymentmethod:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payment Method PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},payeetaxprofile:{description:"Payee Tax Profile PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Payee Tax Profile PIDL",suffix:"",template:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",anonymousTemplate:"{payeetaxprofile-endpoint}/api/v1/getpidldocument",removeOperationParameter:!0},msrewards:{description:"Rewards PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Rewards PIDL",suffix:"",template:"{pidl-endpoint}/users/{userId}/rewardsDescriptions",anonymousTemplate:"{pidl-endpoint}/rewardsDescriptions"},addpiqrcode:{description:"PIDL Service",getParams:this.getPaymentResourceParams,operation:"GET Anonymous Payment Instrument PIDL",suffix:"",template:"{pidl-endpoint}/paymentMethodDescriptions",anonymousTemplate:"{pidl-endpoint}/paymentMethodDescriptions"},default:{description:"PIDL Service",getParams:this.getGenericResourceParams,operation:"GET PIDL",suffix:"Descriptions",template:"{pidl-endpoint}/users/{userId}/{resourceType}",anonymousTemplate:"{pidl-endpoint}/{resourceType}"}},this.resourceTypeToResource={paymentinstrument:{description:"Payment Instrument FD",operation:"GET Payment Instrument Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},paymentmethod:{description:"Payment Instrument FD",operation:"GET Payment Method Resource",template:"{resource-endpoint}/users/{userId}/paymentInstrumentsEx/{id}"},profile:{description:"Payment Instrument FD",operation:"GET Profile Resource",template:"{resource-endpoint}/users/{userId}/profiles/{id}"},address:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addresses/{id}"},addressex:{description:"Payment Instrument FD",operation:"GET Address Resource",template:"{resource-endpoint}/users/{userId}/addressesEx/{id}"},legalentity:{description:"Jarvis FD",operation:"GET LegalEntity Profile Resource from Jarvis",template:"{jarvis-endpoint}/users/{userId}/profiles?type=legalentity"},billinggroup:{description:"HAPI Billing Groups",operation:"GET Billing Groups",template:"{hapi-endpoint}/{userId}/billinggroup"},wallettoken:{description:"PIDL Service",operation:"POST Provision Wallet Token",template:"{pifd-endpoint}/users/{userId}/provisionWalletToken"},default:{description:"Payment Instrument FD",operation:"GET Resource",template:"{resource-endpoint}/users/{userId}/{resourceType}/{id}"}},this.telemetryHeaders={names:["x-ms-operation-version","x-ms-flight"],prefixes:["x-ms-px"]},this.defaultTelemetryLoggerProperties={enableMultipleLoggers:!0},this.getServiceEndpoint=function(t){return e.serviceEndpoints[t]},this.getAlternateUrl=function(t){if(t){var n="https://",r=n+e.serviceEndpoints[e.virtualEndpoints.pifd.endpoint],o=n+e.serviceEndpoints[e.virtualEndpoints.pifdEdge.endpoint],i=((window||{}).location||{}).hostname||"";i&&i.indexOf("signup.azure.com")>-1&&(o=o.replace("paymentsfd.cp.microsoft.com","paymentsfd.signup.azure.com")),Hr.startsWithIgnoreCase(t,r)?t=t.replace(r,o):Hr.startsWithIgnoreCase(t,o)&&(t=t.replace(o,r))}return t},this.setEnv=function(t){e.updateEndpoints(t)},this.getEnv=function(){return e.currentEnv},this.setPidlDocEndpointInfo=function(t){var n=v({},e.resourceTypeToPidlDoc);for(var r in t)n[r.toLowerCase()]=v(v({},n[r.toLowerCase()]),t[r]);e.resourceTypeToPidlDoc=n},this.updateEndpoints("prod")},Br=new Or,Lr=function(){function e(e){this.alwaysValidateOnChange=!1,this.busyBlockShowHideHandler=null,this.containerId=null,this.disableEnterKeyAction=!1,this.disableFocusOnLoad=!1,this.errorPrefix=R.error,this.htmlExtender=null,this.hidePropertyErrors=!1,this.showLogoInKeyField=null,this.showMandatoryIdentifier={show:!1,identifier:"*"},this.showPlaceholderInTextbox=!1,this.ieExtender=null,this.propagateCallbackException=!1,this.busyUntilInitialPageRendered=!1,this.secureFieldPreLoadingEnabled=!1,this.instanceName="_currentInstance",this.preventUnmountOnFinish=!1,this.getAffixedPropertyElementId=null,this.getTrimmedPropertyElementId=null,this.getAffixedDisplayElementId=null,this.getTrimmedDisplayElementId=null,this.busyBlock={id:R.div+A.pageBusyBlock,preExists:!1,show:!0},this.errorBlock={id:A.pageErrorBlock,preExists:!1,show:!0},this.helpDialogBlock={id:A.helpDialogBlock,preExists:!1,show:!0},this.logoBlock={id:A.pageLogoBlock,preExists:!1,show:!0,displayConfiguration:function(e,t){var n=e&&e.length>0&&e[0],r=!t&&n&&e[0].displayHelpName&&e.length>13;return{totalToShow:r?13:e.length,dialogButtonText:r?e[0].displayHelpName:null}}},this.pageBodyBlock={id:A.pageBlock,preExists:!1,show:!0},this.submitButtonBlock={id:A.pageSubmitBlock,preExists:!1,show:!0},this.modalDialogBlock={id:A.modalDialogBlock,preExists:!1,show:!0},this.prefillCheckboxBlock={id:A.prefillCheckbox,preExists:!1,show:!0};var t="pidlInput_",n="",r="",o="";for(var i in e)switch(i){case j.containerId:this.containerId=e[i];break;case j.busyBlockId:this.setBlockId(this.busyBlock,e[i]);break;case j.busyBlockShowHideHandler:this.busyBlockShowHideHandler=e[i],this.busyBlock.preExists=!0;break;case j.inputPropertyIdPrefix:t=e[i]||t;break;case j.inputPropertyIdSuffix:n=e[i]||n;break;case j.displayElementIdPrefix:r=e[i]||r;break;case j.displayElementIdSuffix:o=e[i]||o;break;case j.inputPropertyErrorIdPrefix:this.errorPrefix=e[i];break;case j.showPlaceholderInTextbox:this.showPlaceholderInTextbox=Nr.getBoolValue(e[i]);break;case j.disableEnterKeyAction:this.disableEnterKeyAction=Nr.getBoolValue(e[i]);break;case j.showSubmitBlock:this.setShowBlock(this.submitButtonBlock,e[i]);break;case j.showErrorBlock:this.setShowBlock(this.errorBlock,e[i]);break;case j.hidePropertyErrors:this.hidePropertyErrors=Nr.getBoolValue(e[i]);break;case j.htmlExtender:this.htmlExtender=e[i];break;case j.disableFocusOnLoad:this.disableFocusOnLoad=Nr.getBoolValue(e[i]);break;case j.alwaysValidateOnChange:this.alwaysValidateOnChange=Nr.getBoolValue(e[i]);break;case j.ieExtender:this.ieExtender=e[i];break;case j.propagateCallbackException:this.propagateCallbackException=Nr.getBoolValue(e[i]);break;case j.busyUntilInitialPageRendered:this.busyUntilInitialPageRendered=Nr.getBoolValue(e[i]);break;case j.secureFieldPreLoadingEnabled:this.secureFieldPreLoadingEnabled=Nr.getBoolValue(e[i]);break;case j.instanceName:this.instanceName=e[i]||this.instanceName;break;case j.preventUnmountOnFinish:this.preventUnmountOnFinish=Nr.getBoolValue(e[i])}this.getAffixedPropertyElementId=this.getAffixesAttacher(t,n),this.getTrimmedPropertyElementId=this.getAffixesRemover(t,n),this.getAffixedDisplayElementId=this.getAffixesAttacher(r,o),this.getTrimmedDisplayElementId=this.getAffixesRemover(r,o)}return e.prototype.setBlockId=function(e,t){e.id=t,e.preExists=!0},e.prototype.setShowBlock=function(e,t){e.show=Nr.getBoolValue(t)},e.prototype.getAffixesAttacher=function(e,t){return function(n){return Hr.attachAffixes(e,n,t)}},e.prototype.getAffixesRemover=function(e,t){return function(n){return Hr.removeAffixes(e,n,t)}},e}(),Vr=function(){},zr=function(e){throw e};function Wr(e){return Promise.resolve(e)}function Ur(e){return Promise.reject(e)}var Kr,jr,Gr,qr,Yr,Zr=Object.freeze({__proto__:null,doNothing:Vr,throwException:zr,createFakePromise:Wr,createFakeRejectedPromise:Ur}),Jr=function(e,t){var n=this;this.returnUrls={},this.returnCallbacks={},this.publicEventHandlers=[],this.privateEventHandlers=[],this.eventParameterExtenders={},this.telemetryContext=null,this.telemetryLogger=null,this.invokeReturnCallback=function(e,t){e(t=n.extendEventParameters(t))},this.invokePublicEvent=function(e,t,r,o){return t&&n.logMessage(e,t),n.invokeEventHandlers(n.publicEventHandlers,e,r,o)},this.invokePrivateEvent=function(e,t,r,o){return t&&(n.telemetryContext&&n.telemetryContext.enablePrivateEventConsoleLogging||!n.telemetryContext)&&n.logMessage(e,t),n.invokeEventHandlers(n.privateEventHandlers,e,r,o)},this.isEventConsoleLoggingEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return(n.telemetryContext&&n.telemetryContext.enableConsoleLogging||!n.telemetryContext)&&!(r&&r[e]&&r[e].disableConsoleLogging)},this.logMessage=function(e,t){if(n.isEventConsoleLoggingEnabled(e)){var r=hn.getLoggingService();r&&r.logMessage(n.addExtendedParametersToLogMessage(t))}},this.logError=function(e,t,r){if(n.isEventConsoleLoggingEnabled(e)){var o=hn.getLoggingService();o&&o.logError(t,r)}},this.getExtendedEventParameter=function(e){return n.eventParameterExtenders[e]()},this.extendEventParameters=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);for(var o in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(o)&&!t.hasOwnProperty(o)&&(t[o]=n.getExtendedEventParameter(o));return t=Nr.createObjectWithNonNullProperties(t)},this.addExtendedParametersToUrl=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e=It.addQueryParameter(e,t,n.getExtendedEventParameter(t)));return e},this.addExtendedParametersToLogMessage=function(e){for(var t in n.eventParameterExtenders)n.eventParameterExtenders.hasOwnProperty(t)&&(e+=", ".concat(t,"=").concat(n.getExtendedEventParameter(t)));return e},this.redirectUrl=function(e){e&&hn.getRedirectionService().redirect(e)},this.isEventTelemetryEnabled=function(e){var t=(n.telemetryContext||{}).telemetryOverrides,r=void 0===t?null:t;return!(r&&r[e]&&r[e].disableLogging)},this.logTelemetryEvent=function(e,t){if(n.telemetryLogger&&n.telemetryContext&&n.telemetryContext.enableLogging){if((e===U.propertyValidated||e===U.error)&&t&&t.controlOperationType===ve.editing)return;(n.isEventTelemetryEnabled(e)||e===K.metric)&&n.telemetryLogger.logEvent(e,t,n.telemetryContext)}},this.getCorrelationId=function(){return n.telemetryLogger&&n.telemetryLogger.getCorrelationId&&n.telemetryLogger.getCorrelationId()},this.getHttpRequestCorrelationHeader=function(){if(n.telemetryLogger&&n.telemetryLogger.getHttpRequestCorrelationHeader)return n.telemetryLogger.getHttpRequestCorrelationHeader()},this.getCorrelationContextHeaderValue=function(){var e,t,r,o,i,a,s,l=null===(e=n.telemetryContext)||void 0===e?void 0:e.partnerContext,c=l.partnerName,d=l.scenarioId,u=l.sessionId;return!c&&(null===(r=null===(t=n.telemetryContext)||void 0===t?void 0:t.telemetryResource)||void 0===r?void 0:r.parameters.hasOwnProperty("partner"))&&(c=n.telemetryContext.telemetryResource.parameters.partner),u||(u=null===(o=n.telemetryContext)||void 0===o?void 0:o.sessionId),d||(d="commerce.payments.".concat(null===(a=null===(i=n.telemetryContext)||void 0===i?void 0:i.telemetryResource)||void 0===a?void 0:a.resourceType).concat(null===(s=n.telemetryContext)||void 0===s?void 0:s.operationType,".1")),"v=1,ms.b.tel.scenario=".concat(d,",ms.b.tel.partner=").concat(c,",ms.c.cfs.payments.partnerSessionId=").concat(u)},this.getSessionId=function(){var e;return null===(e=n.telemetryContext)||void 0===e?void 0:e.sessionId},this.getPidlSdkVersionHeaderValue=function(){var e,t;return"".concat(null===(e=n.telemetryContext)||void 0===e?void 0:e.sdkVersion,"_").concat(null===(t=n.telemetryContext)||void 0===t?void 0:t.sdkViewType)},this.updateTelemetryContext=function(e){n.telemetryContext&&e&&n.telemetryContext.updateResourceInfo({resourceType:void 0,parameters:e})},this.invokeEventHandlers=function(e,t,r,o){n.logTelemetryEvent(t,n.extendEventParameters(o));var i=n.extendEventParameters(r),a=!1;if(e)return e.forEach((function(e){a=e(t,i)||a})),a},this.addReturnOptions=function(e){n.returnUrls=e.urls?v({},e.urls):{},n.returnCallbacks=e.callbacks?v({},e.callbacks):{}},this.addPublicEventHandler=function(e){n.publicEventHandlers.push(e)},this.addPrivateEventHandler=function(e){n.privateEventHandlers.push(e)},this.registerEventExtender=function(e,t){n.eventParameterExtenders.hasOwnProperty(e)?n.logMessage(K.eventExtenderRegistered,"There is an existing event parameter extender for name ".concat(e)):n.eventParameterExtenders[e]=t},this.failure=function(e){e.cv=n.getCorrelationId(),n.invokePrivateEvent(K.failure,null,{error:e},{error:e}),n.invokePrivateEvent(K.metric,null,{succeeded:!1,error:e},{succeeded:!1,error:e}),n.logError(K.failure,"failure",e);var t=n.returnCallbacks[N.failure];if(t)n.invokeReturnCallback(t,{error:e,cv:n.getCorrelationId()});else{var r=n.returnUrls.failure;if(!r)throw e;var o=r;e&&(o=It.addQueryParameter(o,"errormessage",e.message)),n.redirectUrl(n.addExtendedParametersToUrl(o))}},this.success=function(e){(e=e||{}).cv=n.getCorrelationId(),n.logMessage(K.success,"Successfully completed operation: ".concat(e.operationType,". Id: ").concat(e.id)),n.invokePrivateEvent(K.success,null,{operationId:e.id,operationType:e.operationType},{operationId:e.id,operationType:e.operationType}),n.invokePrivateEvent(K.metric,null,{succeeded:!0},{succeeded:!0});var t=n.returnCallbacks[N.success];if(t)n.invokeReturnCallback(t,e);else{var r=n.returnUrls.success;if(r){var o=r;e.id&&(o=It.addQueryParameter(o,"id",e.id)),n.redirectUrl(n.addExtendedParametersToUrl(o))}}},this.gohome=function(){n.logMessage(K.gohome,"Going to call go-home"),n.invokePrivateEvent(K.gohome),n.invokePrivateEvent(K.metric,null,{succeeded:!0},{succeeded:!0});var e=n.returnCallbacks[N.gohome];e?n.invokeReturnCallback(e,{cv:n.getCorrelationId()}):n.returnUrls.gohome&&n.redirectUrl(n.addExtendedParametersToUrl(n.returnUrls.gohome))},this.notifyNoSelectionOptionsFound=function(e,t,r,o){n.invokePublicEvent(U.noSelectionOptionsFound,"No Data found in element id: ".concat(e," of type: ").concat(o," and of displayId: ").concat(t),{id:e,displayId:t,pidlIdentity:r,propertyType:o},{id:e,displayId:t,pidlIdentity:r,propertyType:o})},this.selectionChanged=function(e,t,r){n.invokePublicEvent(U.selectionChanged,"selection changed for ".concat(e," and display id ").concat(t),{propertyName:e,displayId:t,propertyValue:r},{propertyName:e,displayId:t})},this.error=function(e,t){n.logError(U.error,"error",e),e.cv=n.getCorrelationId(),n.invokePublicEvent(U.error,null,{error:e},{error:e,controlOperationType:t})},this.apiCalled=function(e,t,r){n.invokePrivateEvent(K.apiCalled,"API called. name: ".concat(e),{name:e},{name:e,parametersPassed:t,sanitizedParameters:r})},this.apiReturned=function(e,t,r){r||(r=Wr()),n.invokePrivateEvent(K.apiReturned,"API returned. name: ".concat(e),{name:e,succeeded:t,promise:r},{name:e,succeeded:Hr.boolify(t)})},this.secureFieldLoadWaitStarted=function(){n.invokePrivateEvent(K.secureFieldLoadWaitStarted)},this.secureFieldsLoaded=function(){n.invokePrivateEvent(K.secureFieldsLoaded)},this.secureFieldLoadWaitEnded=function(){n.invokePrivateEvent(K.secureFieldLoadWaitEnded)},this.secureFieldEventReceived=function(e,t,r){n.invokePrivateEvent(K.secureFieldEventReceived,"secureField event received",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventQueued=function(e,t,r){n.invokePrivateEvent(K.secureFieldEventQueued,"secureField event queued",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.secureFieldEventPosted=function(e,t,r){n.invokePrivateEvent(K.secureFieldEventPosted,"secureField event posted",{fieldName:e,event:t,correlationId:r},{fieldName:e,event:t,correlationId:r})},this.addSecureFieldPreLoadIFrameStarted=function(){n.invokePrivateEvent(K.addSecureFieldPreLoadIFrameStarted)},this.addSecureFieldPreLoadIFrameCompleted=function(){n.invokePrivateEvent(K.addSecureFieldPreLoadIFrameCompleted)},this.addSecureFieldPreLoadIFrameFailed=function(e){n.invokePrivateEvent(K.addSecureFieldPreLoadIFrameFailed,e)},this.challengeMessageReceived=function(e){n.invokePublicEvent(U.challengeMessageReceived,"challengeMessage received",{event:e},{event:e})},this.expressCheckoutReady=function(e){n.invokePublicEvent(U.expressCheckoutReady,"express checkout is ready",{availablePaymentMethods:e},{availablePaymentMethods:e})},this.postMessageReceived=function(e,t,r){n.invokePrivateEvent(K.postMessageReceived,"postMessage received",{origin:e,expectedOrigin:t,dataLength:r},{origin:e,expectedOrigin:t,dataLength:r})},this.postMessageHandleSuccess=function(e){n.invokePrivateEvent(K.postMessageHandleSuccess,"postMessage handle success",{actionType:e},{actionType:e})},this.postMessageHandleFailure=function(e){n.invokePrivateEvent(K.postMessageHandleFailure,"postMessage handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageTimeoutHandleSuccess=function(e){n.invokePrivateEvent(K.postMessageTimeoutHandleSuccess,"postMessageTimeout handle success",{actionType:e},{actionType:e})},this.postMessageTimeoutHandleFailure=function(e){n.invokePrivateEvent(K.postMessageTimeoutHandleFailure,"postMessageTimeout handle failed",{failureDetails:e},{failureDetails:e})},this.postMessageBusyTimerStarted=function(e){n.invokePrivateEvent(K.postMessageBusyTimerStarted,"postMessage busy timer started",{details:e},{details:e})},this.postMessageBusyTimerEnded=function(e){n.invokePrivateEvent(K.postMessageBusyTimerEnded,"postMessage busy timer ended",{details:e},{details:e})},this.paymentSheetOpened=function(e){n.invokePublicEvent(U.paymentSheetOpened,"payment sheet opened",{details:e},{details:e})},this.paymentSheetCancelled=function(e){n.invokePublicEvent(U.paymentSheetCancelled,"payment sheet closed",{details:e},{details:e})},this.paymentDataTokenizing=function(e){n.invokePrivateEvent(K.paymentDataTokenizing,"payment data tokenizing",{details:e},{details:e})},this.paymentDataTokenized=function(e){n.invokePrivateEvent(K.paymentDataTokenized,"payment data tokenized successfully",{details:e},{details:e})},this.paymentClientSubmissionSkipped=function(e){n.invokePrivateEvent(K.paymentClientSubmissionSkipped,"Skipping submission for payment client component: "+e,{componentName:e},{componentName:e})},this.resourceHelpersFunctionExecuted=function(e,t,r){n.invokePrivateEvent(K.resourceHelpersFunctionExecuted,"Executed Resource Helper Function ".concat(e),{functionName:e,inputParams:t,outputValue:r},{functionName:e,inputParams:t,outputValue:r})},this.fetchCallCompleted=function(e){n.invokePublicEvent(U.fetchCallCompleted,"Fetch call completed",{httpRequestTelemetryData:e},{httpRequestTelemetryData:e})},this.toggleClicked=function(e,t){n.invokePublicEvent(U.toggleClicked,"Toggle clicked for property: ".concat(e,", current value: ").concat(t),{propertyName:e,currentValue:t},{propertyName:e,currentValue:t})},this.propertySelected=function(e,t,r){n.invokePublicEvent(U.propertySelected,"Input selected. id: ".concat(e),{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyValidated=function(e,t){n.invokePublicEvent(U.propertyValidated,"Property validation succeeded for property ".concat(e),{propertyName:e,controlOperationType:t},{propertyName:e,controlOperationType:t})},this.resourceSelected=function(e,t){var r;n.invokePublicEvent(U.resourceSelected,"Resource selected ".concat(e),{resourceName:e,value:t},{resourceName:e,id:t&&t.id,isWalletCard:!!(null===(r=null===t||void 0===t?void 0:t.details)||void 0===r?void 0:r.isNotSaved)})},this.instanceDownloading=function(e){n.invokePublicEvent(U.instanceDownloading,"Downloading instance from url: ".concat(e),{url:e},{url:e})},this.instanceDownloaded=function(){n.invokePublicEvent(U.instanceDownloaded,"Downloaded instance")},this.pidlDownloading=function(e){n.invokePublicEvent(U.pidlDownloading,"Downloading PIDL document from url: ".concat(e),{url:e},{url:e})},this.pidlDownloaded=function(){n.invokePublicEvent(U.pidlDownloaded,"PIDL document successfully downloaded")},this.pageRendering=function(e){n.invokePublicEvent(U.pageRendering,"PIDL document rendering begins",{successPayload:e},{})},this.pageRendered=function(e,t,r,o,i,a,s){n.invokePublicEvent(U.pageRendered,"PIDL document rendered",{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a,currentPageDescription:s},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a})},this.pageRefreshed=function(){n.invokePublicEvent(U.pageRefreshed,"PIDL document refreshed")},this.pageDisplayed=function(){n.invokePublicEvent(U.pageDisplayed,"PIDL document displayed")},this.inputReading=function(){n.invokePublicEvent(U.inputReading,"Reading user input data")},this.inputRead=function(){n.invokePublicEvent(U.inputRead,"Read user input data")},this.inputValidating=function(){n.invokePublicEvent(U.inputValidating,"Validating user input data")},this.inputValidated=function(){n.invokePublicEvent(U.inputValidated,"Validated user input data")},this.inputTokenizing=function(){n.invokePublicEvent(U.inputTokenizing,"Tokenizing user input data")},this.inputTokenized=function(){n.invokePublicEvent(U.inputTokenized,"Tokenized user input data")},this.submitting=function(){n.invokePrivateEvent(K.submitting)},this.submitted=function(){n.invokePrivateEvent(K.submitted)},this.implementationMissing=function(e,t,r){n.invokePrivateEvent(K.implementationMissing,"Implentation of ".concat(null!==t&&void 0!==t?t:"undefined"," missing in ").concat(e),r)},this.inputSubmitting=function(e){n.invokePublicEvent(U.inputSubmitting,"Submitting PIDL document: ".concat(e),{url:e},{url:e})},this.inputSubmitted=function(e){n.invokePublicEvent(U.inputSubmitted,"PIDL document submitted. Next action: ".concat(e),{clientAction:e},{clientAction:e})},this.propertyTokenizing=function(e,t){n.invokePublicEvent(U.propertyTokenizing,"Tokenizing property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.propertyTokenized=function(e){n.invokePublicEvent(U.propertyTokenized,"Tokenized property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransforming=function(e){n.invokePublicEvent(U.propertyTransforming,"Transforming property: ".concat(e),{propertyName:e},{propertyName:e})},this.propertyTransformed=function(e){n.invokePublicEvent(U.propertyTransformed,"Transformed property: ".concat(e),{propertyName:e},{propertyName:e})},this.fileUploading=function(e,t){n.invokePublicEvent(U.fileUploading,"File uploading property: ".concat(e),{propertyName:e,url:t},{propertyName:e,url:t})},this.fileUploaded=function(e){n.invokePublicEvent(U.fileUploaded,"File uploaded property: ".concat(e),{propertyName:e},{propertyName:e})},this.styleSheetError=function(e,t){n.invokePublicEvent(U.styleSheetError,"Failed to read the cssRules property from: ".concat(t),{error:e},{error:e})},this.redirecting=function(e){n.invokePublicEvent(U.redirecting,"Redirecting to url: ".concat(e),{url:e},{url:e})},this.navigate=function(e,t,r,o,i,a){var s=r?"Redirect":"Navigate";return n.invokePublicEvent(U.navigate,"".concat(s," to url: ").concat(t),{displayId:e,dest:i||e,url:t,piRedirection:r,context:o,destinationId:a},{displayId:e,dest:i||e,url:t,piRedirection:r,destinationId:a})},this.triggerEvent=function(e,t){return n.invokePublicEvent(U.triggerEvent,"Event triggered: ".concat(e),{eventName:e,params:t},{eventName:e,params:t})},this.partnerAction=function(e,t){return n.invokePublicEvent(U.partnerAction,"Invoke partner action on Id: ".concat(e),{displayId:e,context:t},{displayId:e})},this.pageNavigated=function(e,t,r,o,i,a,s){n.invokePublicEvent(U.pageNavigated,"Navigating from page: ".concat(e," to: ").concat(o),{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a,currentPageDescription:s},{prevPageIndex:e,prevPageId:t,prevPageName:r,currentPageIndex:o,currentPageId:i,currentPageName:a})},this.click=function(e){n.invokePublicEvent(U.click,"Click display control for button with id ".concat(e),{id:e},{id:e})},this.captchaRendered=function(e){n.invokePublicEvent(U.captchaRendered,"Captcha is rendered with id ".concat(e),{id:e},{id:e})},this.propertyCreating=function(e,t,r){n.invokePublicEvent(U.propertyCreating,"Creating control with id ".concat(e),{id:e,displayDescription:t,htmlAttributes:r},{id:e})},this.payloadCreated=function(e){n.invokePublicEvent(U.payloadCreated,"Pidl payload created",{value:e},{})},this.restMethodInvoking=function(e,t){n.invokePublicEvent(U.restMethodInvoking,"invoking rest method with requestUrl: ".concat(e," operationType: ").concat(t),{requestUrl:e,operationType:t},{requestUrl:e,operationType:t})},this.restMethodInvoked=function(e){n.invokePublicEvent(U.restMethodInvoked,"rest method invoked, request url: ".concat(e),{requestUrl:e},{requestUrl:e})},this.propertyConditionallyUpdated=function(e,t){n.invokePublicEvent(U.propertyConditionallyUpdated,"Property ".concat(e," has been conditionally updated to ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.pidlResolved=function(e,t){var r=[];t&&(r=t.map((function(e){return gn.createIdentityHash(e.identity)})));var o=Hr.serialize(r);n.invokePrivateEvent(K.pidlResolved,"PIDL document resolved successfully for context: ".concat(e,". Pidl Identities ").concat(o),{context:e,resolvedPidlIdentity:o},{})},this.propertyUnselected=function(e,t,r){n.invokePrivateEvent(K.propertyUnselected,null,{id:e,propertyName:t,divId:r},{id:e,propertyName:t})},this.propertyCreated=function(e,t,r){n.invokePrivateEvent(K.propertyCreated,null,{propertyName:e,controlId:t,divId:r},{propertyName:e,controlId:t})},this.pollingStarted=function(e){n.invokePrivateEvent(K.pollingStarted,null,{id:e},{id:e})},this.pollingEnded=function(e){n.invokePrivateEvent(K.pollingEnded,null,{id:e},{id:e})},this.updatePollAndMoveLast=function(e){n.invokePrivateEvent(K.updatePollAndMoveLast,null,{pollId:e})},this.modelUpdated=function(e,t){n.invokePrivateEvent(K.modelUpdated,null,{created:e,skipHideBusyBlock:t},{created:e,skipHideBusyBlock:t})},this.dataUpdated=function(){n.invokePrivateEvent(K.dataUpdated)},this.conflictingInputValues=function(e){n.invokePrivateEvent(K.conflictingInputValues,null,{propertyName:e},{propertyName:e})},this.stateChanged=function(e,t){n.invokePrivateEvent(K.stateChanged,null,{oldState:e,newState:t},{oldState:e,newState:t})},this.testHookGetInternalState=function(){return{returnUrls:n.returnUrls,returnCallbacks:n.returnCallbacks,publicEventHandlers:n.publicEventHandlers,privateEventHandlers:n.privateEventHandlers,eventParameterExtenders:n.eventParameterExtenders,telemetryContext:n.telemetryContext,telemetryLogger:n.telemetryLogger}},this.pollClientActionSuccess=function(e){n.invokePrivateEvent(K.pollClientActionSuccess,"handle client action succeeded during polling",{actionType:e},{actionType:e})},this.pollClientActionFailure=function(e){n.invokePrivateEvent(K.pollClientActionFailure,"handle client action failed during polling",{failureDetails:e},{failureDetails:e})},this.hideModalDialog=function(){n.invokePrivateEvent(K.hideModalDialog)},this.pidlActionInvoked=function(e,t){n.invokePrivateEvent(K.pidlActionInvoked,"PidlAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.clientActionInvoked=function(e,t){n.invokePrivateEvent(K.clientActionInvoked,"ClientAction ".concat(e," invoked"),{actionName:e,actionContext:t},{actionName:e,actionContext:t})},this.propertyValueSelected=function(e,t){n.invokePrivateEvent(K.propertyValueSelected,"Property ".concat(e," has the selected value ").concat(t),{propertyName:e,propertyValue:t},{propertyName:e,propertyValue:t})},this.renderedPidlPage=function(){n.invokePublicEvent(U.renderedPidlPage,"Rendered PidlPage")},this.closePidlPage=function(){n.invokePublicEvent(U.closePidlPage,"Closed PidlPage")},this.submitOriginalPidl=function(){n.invokePublicEvent(U.submitOriginalPidl,"Submit Original Pidl Action")},this.getLocalDataSourceInvoked=function(e){n.invokePublicEvent(U.getLocalDataSourceInvoked,"getDataSource of ".concat(e," invoked"),{dataSourceName:e},{dataSourceName:e})},this.getLocalDataSourceResolved=function(e,t){n.invokePublicEvent(U.getLocalDataSourceResolved,"getDataSource of ".concat(e," resolved"),{dataSourceName:e,count:t},{dataSourceName:e,count:t})},this.getLocalDataSourceError=function(e,t){n.logError(U.error,"error",t),t.cv=n.getCorrelationId(),n.invokePublicEvent(U.getLocalDataSourceError,"getDataSource of ".concat(e," error"),{dataSourceName:e,errorObject:t},{dataSourceName:e,errorObject:t})},this.telemetryContext=t,this.telemetryLogger=e},Qr=function(e,t,n,r,o,i,a,s,l){void 0===l&&(l=!1);var c=this;if(this.dataType="json",this.contentType="application/json",this.operationVersion="",this.getRequest=function(){var e={method:c.type,headers:new Headers(c.headers),mode:"cors",credentials:c.includeCredentials?"include":"omit"};return c.payload&&(e.body=c.payload),new Request(c.url,e)},this.updateFetchOptions=function(e,t){var n=Wr({success:c.secondaryRetrieved,headers:c.secondaryHeaders,payload:c.secondaryPayload});return t&&e.useSecondaryPayload&&!c.secondaryRetrieved&&(n=t()),n.then((function(t){var n=t.success,r=t.headers,o=t.payload;return e&&e.endpoint?c.url=Ut.replaceVirtualEndpointWithServiceAddress(e.endpoint):e&&e.useAlternateUrl||(c.url=c.originalUrl),n&&(c.secondaryRetrieved=n,c.secondaryHeaders=r,c.secondaryPayload=o),e.useSecondaryPayload?(c.secondaryHeaders?c.headers=v({},c.secondaryHeaders):null===c.secondaryHeaders&&(c.headers={}),c.secondaryPayload&&(c.payload=c.secondaryPayload)):(c.headers=v({},c.originalHeaders),c.payload=c.originalPayload),void 0!==c.payload&&null!==c.payload||delete c.payload,c}))},this.url=e,this.originalUrl=e,this.type=t,this.headers=n,this.originalHeaders=v({},n),this.payload=r,this.originalPayload=r,this.retryCount=o?0:-1,this.retryOnServerError=o,this.currentOperationName=i||"pidlsdkOperation",this.operationName=a||"DependentOperationName",this.serviceName=s||"PidlSdkDependentService",this.includeCredentials=l,this.serverErrorCount=0,this.secondaryRetrieved=!1,n&&Hr.isObject(n)){var d=n,u=ee.msRetryOnServerErr,p=d[u],m=y(d,["symbol"===typeof u?u:u+""]);this.retryOnServerError="false"!==p,this.headers=m}},Xr=function(e){function t(t,n,r,o,i){var a=e.call(this,"Failed to fetch")||this;return a.status=t,a.statusText=n,a.failureContent=r,a.hasResponseFromServer=o,a.canRetryOnServerError=i,a}return g(t,e),t}(Error),$r=1e3,eo=[500,502,503,504],to=12e3,no=42e3,ro=function(e){this.initialRetryTimeout=$r,this.retryTimeoutMultiplier=1.5,this.retryableErrorCodes=x([],eo,!0),this.maxServerErrorRetryCount=2,this.fetchOrder=[{retry:2},{retry:1,xhrConfig:{getRequestTimeout:to,postRequestTimeout:no}},{retry:2,useAlternateUrl:!0},{retry:1,useAlternateUrl:!0,xhrConfig:{getRequestTimeout:to,postRequestTimeout:no}}],this.initialRetryTimeout=(null===e||void 0===e?void 0:e.initialRetryTimeout)||this.initialRetryTimeout,this.retryTimeoutMultiplier=(null===e||void 0===e?void 0:e.retryTimeoutMultiplier)||this.retryTimeoutMultiplier,this.retryableErrorCodes=(null===e||void 0===e?void 0:e.retryableErrorCodes)||this.retryableErrorCodes,this.maxServerErrorRetryCount=(null===e||void 0===e?void 0:e.maxServerErrorRetryCount)||this.maxServerErrorRetryCount,this.fetchOrder=(null===e||void 0===e?void 0:e.fetchOrder)||this.fetchOrder;for(var t=[],n=0,r=this.fetchOrder;n<r.length;n++){for(var o=r[n],i=0;i<o.retry;i++)t.push(o);o.retry=1}this.fetchOrder=t},oo=function(){function e(){var e=this;this.FetchOptions=Qr,this.getHttpTelemetryData=function(t,n){var r=t.url,o=t.type,i=t.contentType,a=t.currentOperationName,s=t.operationName,l=t.operationVersion,c=t.serviceName,d=t.retryCount,u=n.isSuccess,p=n.statusCode,m=n.headers,h=n.failureResponseText,f=n.timeTaken,g=n.serviceErrorCode,v=n.statusText,y=p?p.toString():"0",b=u||"200"===y?"":h||v,C=0;try{C=parseInt(n.headers.get("Content-Length"),10)}catch(Qk){}return{targetUri:r,requestMethod:o,responseContentType:i,operationName:a,dependencyOperationName:s,dependencyOperationVersion:l,serviceName:c,retryCount:d,succeeded:u,protocolStatusCode:y,failureResponse:b,contentLength:isNaN(C)?0:C,latencyMs:f,serviceErrorCode:g,headers:e.getDesiredResponseHeaders(m)}},this.getDesiredResponseHeaders=function(e){var t={};if(e&&e.forEach){var n=Br.telemetryHeaders.names,r=Br.telemetryHeaders.prefixes;e.forEach((function(e,o){n.indexOf(o)>-1?t[o]=e:r.forEach((function(n){Hr.startsWithIgnoreCase(o,n)&&(t[o]=e)}))}))}return t},this.isFetchFailureError=function(e){return"status"in e&&"statusText"in e&&"failureContent"in e},this.addCVHeader=function(e,t){var n=e.getHttpRequestCorrelationHeader()||{name:void 0,value:void 0},r=n.name,o=n.value;r&&o&&(t[r]=o)},this.handleFetchFailure=function(t,n,r,o){var i,a,s,l,c;if(e.isFetchFailureError(t))i=t.status,a=t.statusText,s=t.failureContent,l=t.hasResponseFromServer,r=r&&t.canRetryOnServerError;else if(t){var d=t;i=d.status,a=d.statusText,s=d.failureContent||t.message||Hr.serialize(d)}var u=!1,p=!1,m=!1;l?(o&&o.retryableErrorCodes&&o.retryableErrorCodes.indexOf(i)>-1&&(p=!0,u=r),c="HTTP Error |".concat(i,"|").concat(a,"|: |").concat(s,"|")):(c="|NetworkError|Status: ".concat(i,", StatusText: ").concat(a,", FailureContent: ").concat(s,"| Uncaught Error. |").concat(s,"|"),m=!0,u=!0);var h=Nr.parseJSON(s);return{failureMessage:{status:E.Error,errorMessage:c,httpStatus:i,httpStatusText:a,failureContent:s,failureObject:h&&h.succeeded?h.value:void 0,connectivityError:m},retryable:u,serverError:p}},this.fetchWrapper=function(t){return e.fetchHandler?e.fetchHandler(t.getRequest()):fetch(t.getRequest())},this.xhrWrapper=function(t,n,r,o){return new Promise((function(i,a){var s=t.type,l=t.url,c=t.headers,d=t.payload,u=t.includeCredentials,p=(n||{xhrConfig:{getRequestTimeout:to,postRequestTimeout:no}}).xhrConfig,m=new XMLHttpRequest;m.open(s,l),s===we.Get?m.timeout=p.getRequestTimeout||to:m.timeout=p.postRequestTimeout||no,c&&Hr.getKeys(c).forEach((function(e){return m.setRequestHeader(e,c[e])})),u&&(m.withCredentials=u);var h=function(){var e=m.getAllResponseHeaders(),t={};return Hr.isEmptyString(e)||e.trim().split(/[\r\n]+/).forEach((function(e){var n=e.split(": "),r=n.shift(),o=n.join(": ");t[r]=o})),t},f=function(){var e=void 0;return""!==m.responseType&&"text"!==m.responseType||(e=m.responseText),e};m.onload=function(){i(new Response(f(),{status:m.status,headers:new Headers(h()),statusText:m.statusText}))},m.onerror=function(){var n={isSuccess:!1,timeTaken:Date.now()-o,statusCode:m.status,headers:new Headers(h())};r&&r.fetchCallCompleted(e.getHttpTelemetryData(t,n));var i=f();a(new Xr(m.status,m.statusText,i,Hr.boolify(i),!0))},m.ontimeout=function(){var n={isSuccess:!1,timeTaken:Date.now()-o,statusCode:m.status,headers:new Headers};r&&r.fetchCallCompleted(e.getHttpTelemetryData(t,n)),a(new Xr(m.status,m.statusText,void 0,!1,!0))},s===we.Post&&d?(m.setRequestHeader("Content-Type","application/json"),m.send(d)):m.send()}))},this.loadScript=function(e){return new Promise((function(t,n){try{if(document&&(document.head||document.body)){var r=document.createElement("script");r.onload=function(){t()},r.onerror=function(){n()},r.async=!0,r.src=e,(document.head||document.body).appendChild(r)}else n()}catch(o){n(o)}}))},this.getHttpHeaders=function(t,n,r,o,i){var a=e.getDefaultHttpHeaders(t);for(var s in n&&(a=n.getHeaders(a,o)),r&&(Nr.extend(!0,a,r),a.hasOwnProperty(ee.msCorrelationId)&&Hr.isNullOrUndefinedOrWhiteSpaceString(a[ee.msCorrelationId])&&(a[ee.msCorrelationId]=Nr.guid()),a.hasOwnProperty(ee.msTrackingId)&&Hr.isNullOrUndefinedOrWhiteSpaceString(a[ee.msTrackingId])&&(a[ee.msTrackingId]=Nr.guid())),o&&(o.indexOf("{pidl")>-1||o.indexOf("{pifd")>-1||o.indexOf("{resource-endpoint}")>-1)&&(a.hasOwnProperty(ee.correlationContext)||(a[ee.correlationContext]=null===t||void 0===t?void 0:t.getCorrelationContextHeaderValue()),a[ee.msPidlsdkVersion]=null===t||void 0===t?void 0:t.getPidlSdkVersionHeaderValue()),a)a[s]=Nr.getFormatStringExpressionValue(a[s],i);return a},this.getDefaultHttpHeaders=function(t){var n,r=((n={})[ee.contentType]="application/json",n);return e.addCVHeader(t,r),r},this.getPayeeFileUploadHttpHeaders=function(e,t){var n={};return t&&(n[ee.authorization]=t),n},this.setFetchHandler=function(t){e.fetchHandler=t},this.testHookSetRetryTimeout=function(e){$r=e},this.testHookHandleFetchFailure=function(t,n,r){return void 0===n&&(n=we.Post),void 0===r&&(r=!1),e.handleFetchFailure(t,n,r,new ro)}}return e.prototype.successHandler=function(e,t,n,r,o,i){var a=this;return function(s){var l={isSuccess:s.ok,timeTaken:Date.now()-n,statusCode:s.status,headers:s.headers};if(l.isSuccess)try{e.fetchCallCompleted(a.getHttpTelemetryData(t,l))}catch(Qk){}return s.text().then((function(n){var c=Nr.parseJSON(n),d=!1;if(!l.isSuccess){l=v(v({},l),{statusText:s.statusText,serviceErrorCode:(c.value||{}).code,failureResponseText:n});try{e.fetchCallCompleted(a.getHttpTelemetryData(t,l))}catch(Qk){}d=t.serverErrorCount<i.maxServerErrorRetryCount;try{var u=l.headers.get(ee.msRetryOnServerErr);d="true"===u||"false"!==u&&d}catch(Xk){}}if(!s.ok||!Hr.isEmptyString(n)&&!c.succeeded)throw new Xr(s.status,s.statusText,n,!0,d);try{var p=c.succeeded?c.value:{};o&&o(p),r.resolve(p)}catch(m){throw new Xr(s.status,s.statusText,m.message,!0,!1)}}))}},e.prototype.exceptionHandler=function(e,t,n,r,o,i,a,s){var l=this;return function(c){var d=l.handleFetchFailure(c,t.type,t.retryOnServerError,a),u=d.failureMessage,p=d.retryable&&a.fetchOrder.length>0;if(e.error(new sn.serverError(ln.restMethodInvocationFailed,t.url,u.failureObject||u.failureContent,u.httpStatus,u.httpStatusText,u.errorMessage,[t.url,u.httpStatusText],t.type,t.retryCount,p)),d.serverError&&t.serverErrorCount++,p){t.retryCount+=1;var m=a.fetchOrder.shift();m.useAlternateUrl&&(t.url=Br.getAlternateUrl(t.originalUrl));var h=t.updateFetchOptions(m,s);setTimeout((function(){return n=Date.now(),!m.xhrConfig||l.fetchHandler?h.then((function(t){return l.addCVHeader(e,t.headers),l.fetchWrapper(t).then(l.successHandler(e,t,n,r,o,a)).catch(l.exceptionHandler(e,t,n,r,o,i,a,s))})):h.then((function(t){return l.addCVHeader(e,t.headers),l.xhrWrapper(t,m,e,n).then(l.successHandler(e,t,n,r,o,a)).catch(l.exceptionHandler(e,t,n,r,o,i,a,s))}))}),a.initialRetryTimeout*Math.pow(a.retryTimeoutMultiplier,t.retryCount-1))}else i&&i(u),r.reject(u)}},e.prototype.invokeFetch=function(e,t,n,r,o,i,a,s,l,c,d,u,p,m){var h=this;void 0===u&&(u=!1),void 0===p&&(p=null),void 0===m&&(m=null);var f=Date.now(),g=new this.FetchOptions(r,n,o,i,t,l,c,d,u),v=new ro(p),y=v.fetchOrder.shift(),b=g.updateFetchOptions(y,m);return new Promise((function(t,n){var r={resolve:t,reject:n};b.then((function(t){(y.xhrConfig&&!h.fetchHandler?h.xhrWrapper(t,y,e,f):h.fetchWrapper(t)).then(h.successHandler(e,t,f,r,a,v)).catch(h.exceptionHandler(e,t,f,r,a,s,v,m))})).catch(h.exceptionHandler(e,g,f,r,a,s,v,m))}))},e.prototype.post=function(e,t,n,r,o,i,a,s,l,c,d,u,p){return void 0===d&&(d=!1),void 0===u&&(u=null),void 0===p&&(p=null),this.invokeFetch(e,t,we.Post,n,r,o,i,a,s,l,c,d,u,p)},e.prototype.put=function(e,t,n,r,o,i,a,s,l,c,d,u){return void 0===d&&(d=!1),void 0===u&&(u=null),this.invokeFetch(e,t,we.Put,n,r,o,i,a,s,l,c,d,u)},e.prototype.get=function(e,t,n,r,o,i,a){return void 0===a&&(a=null),this.invokeFetch(e,!0,we.Get,t,n,null,null,null,r,o,i,!1,a)},e.prototype.delete=function(e,t,n,r,o,i,a){return void 0===a&&(a=null),this.invokeFetch(e,!0,we.Delete,t,n,null,null,null,r,o,i,!1,a)},e}(),io=new oo,ao=function(){function e(){var e=this;this.returnOptionSchema={type:"object",children:{callbacks:{type:"object",optional:!0,children:{success:{type:"function",optional:!0},failure:{type:"function",optional:!0},gohome:{type:"function",optional:!0}}},urls:{type:"object",optional:!0,children:{success:{type:"string",optional:!0},failure:{type:"string",optional:!0},gohome:{type:"string",optional:!0}}}}},this.userContextSchema={type:"object",optional:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0},serviceOverrides:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{authToken:{type:"string",optional:!0},userId:{type:"string",optional:!0},additionalHeaders:{type:"dictionary",optional:!0}}}}},this.pidlDocInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},resourceSuffix:{type:"string",optional:!0},pidlVersion:{type:"string",optional:!0},pidlEndpoint:{type:"string",optional:!0}}},this.resourceInfoSchema={type:"object",children:{resourceType:{type:"string"},anonymousPidl:{type:"boolean",optional:!0},parameters:{type:"dictionary"},id:{type:"string"},resourceEndpoint:{type:"string",optional:!0}}},this.pidlIdentitySchema={type:"object",ignoreUnspecifiedChild:!0,children:{country:{type:"string",optional:!0},description_type:{type:"string",optional:!0},operation:{type:"string",optional:!0},resource_id:{type:"string",optional:!0}}},this.displayOptionsSchema={type:"object",children:{containerId:{type:"string"},busyBlockId:{type:"string",optional:!0},busyBlockElement:{type:"any",optional:!0},helpDialogBlockId:{type:"string",optional:!0},showHelpDialogBlock:{type:"boolean",optional:!0},inputPropertyIdPrefix:{type:"string",optional:!0},inputPropertyIdSuffix:{type:"string",optional:!0},displayElementIdPrefix:{type:"string",optional:!0},displayElementIdSuffix:{type:"string",optional:!0},inputPropertyErrorIdPrefix:{type:"string",optional:!0},showPlaceholderInTextbox:{type:"boolean",optional:!0},disableEnterKeyAction:{type:"boolean",optional:!0},showSubmitBlock:{type:"boolean",optional:!0},showErrorBlock:{type:"boolean",optional:!0},htmlExtender:{type:"dictionary",optional:!0},busyBlockShowHideHandler:{type:"function",optional:!0},hidePropertyErrors:{type:"boolean",optional:!0},disableFocusOnLoad:{type:"boolean",optional:!0},alwaysValidateOnChange:{type:"boolean",optional:!0},ieExtender:{type:"dictionary",optional:!0},propagateCallbackException:{type:"boolean",optional:!0},useWebView2:{type:"boolean",optional:!0},busyUntilInitialPageRendered:{type:"boolean",optional:!0},secureFieldPreLoadingEnabled:{type:"boolean",optional:!0},instanceName:{type:"string",optional:!0},preventUnmountOnFinish:{type:"boolean",optional:!0}}},this.suppressedEventsSchema={type:"object",optional:!0,children:{disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0}}},this.telemetryOptionsSchema={type:"object",optional:!0,children:{contextData:{type:"dictionary",optional:!0},disableLogging:{type:"boolean",optional:!0},disableConsoleLogging:{type:"boolean",optional:!0},enablePrivateEventConsoleLogging:{type:"boolean",optional:!0},customTelemetryFrameworkWindowNamespace:{type:"string",optional:!0},overrides:{type:"object",minLength:0,optional:!0,childType:this.suppressedEventsSchema,allowedChildNames:v(v({},U),K)}}},this.callbacksSchema={type:"object",optional:!0,children:{view:{type:"any",optional:!0},submit:{type:"function",optional:!0},getPidlDocument:{type:"function",optional:!0},iFrameMessageHandler:{type:"function",optional:!0},telemetryLogger:{type:"any",optional:!0},prefetcher:{type:"any",optional:!0},encryptionHandler:{type:"any",optional:!0},fetchHandler:{type:"function",optional:!0}}},this.checkoutParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{anonymousUser:{type:"boolean",optional:!0},checkoutId:{type:"string"},language:{type:"string"},market:{type:"string"},partner:{type:"string",optional:!0},paymentProviderId:{type:"string"},redirectUrl:{type:"string"}}},this.payeeTaxProfileParamsSchema={type:"object",ignoreUnspecifiedChild:!0,children:{section:{type:"string"},tenant:{type:"string"},sapidind:{type:"string",optional:!0},status:{type:"string",optional:!0},accounttype:{type:"string",optional:!0},payfromcc:{type:"array",minLength:1,optional:!0},residencecc:{type:"string",optional:!0},language:{type:"string",optional:!0}}},this.mockEventsSchema={type:"object",optional:!0,children:{name:{type:"string"},params:{type:"dictionary",optional:!0}}},this.mockFunctionSchema={type:"object",optional:!0,children:{name:{type:"string"},triggers:{type:"array",maxLength:1,childType:this.mockEventsSchema},returns:{type:"any",optional:!0}}},this.mockFunctionsSchema={type:"array",maxLength:1,optional:!0,childType:this.mockFunctionSchema},this.addUpdateOrDeleteOptionSchema={type:"object",optional:!0,children:{sessionId:{type:"string",optional:!0},riskData:{type:"object",optional:!0,children:{greenId:{type:"string"}}}}},this.selectOrRenderOptionSchema={type:"object",optional:!0},this.selectedResourceInfoSchema={type:"object",children:{id:{type:"string",optional:!0},backupId:{type:"string",optional:!0}}},this.handleSchema={type:"string"},this.prefillDataSchema={type:"object",ignoreUnspecifiedChild:!0},this.purchaseContextSchema={type:"object",children:{amount:{type:"number"},currency:{type:"string"},country:{type:"string"},threeDSScenario:{type:"string",possibleValues:Hr.getValues(v({},He))},riskChallengeIndicator:{type:"string",optional:!0,possibleValues:Hr.getValues(v({},Oe))}}},this.purchaseRiskChallengeSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},sessionId:{type:"string",optional:!0},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchaseRiskChallengeSchemaForThreeDS={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},riskChallengeData:{type:"array",minLength:1},challengeWindowSize:{type:"string",possibleValues:Hr.getValues(v({},Be))},purchaseContext:{type:"schema",schema:this.purchaseContextSchema},sessionId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.purchasePendingStateSchema={type:"object",children:{piResourceInfo:{type:"schema",schema:this.resourceInfoSchema},sessionId:{type:"string"},orderId:{type:"string",optional:!0},options:{type:"dictionary",optional:!0}}},this.resourceOptionsSchema={type:"dictionary",optional:!0},this.showResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.offerResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.searchResourceParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.fundStoredValueParamsSchema={type:"object",children:{pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema},options:{type:"schema",schema:this.resourceOptionsSchema,optional:!0}}},this.resourceActionParamsSchema={type:"object",children:{resourceActionContext:{type:"object",ignoreUnspecifiedChild:!0,children:{action:{type:"string",possibleValues:Hr.getValues(v({},W))},handle:{type:"string",optional:!0},pidlDocInfo:{type:"schema",schema:this.pidlDocInfoSchema,optional:!0},pidlIdentity:{type:"schema",schema:this.pidlIdentitySchema,optional:!0},resourceInfo:{type:"schema",schema:this.resourceInfoSchema,optional:!0},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0}}},prefillData:{type:"schema",schema:this.prefillDataSchema,optional:!0},options:{type:"dictionary",optional:!0},selectedResourceInfo:{type:"schema",schema:this.selectedResourceInfoSchema,optional:!0}}},this.authorizationGroupSchema={type:"object",children:{id:{type:"string"},totalAmount:{type:"number"},itemTitles:{type:"array"}}},this.paymentSessionDataSchema={type:"object",ignoreUnspecifiedChild:!0,children:{amount:{type:"number"},billableAccountId:{type:"string",optional:!0},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:Hr.getValues(v({},He))},challengeWindowSize:{type:"string",possibleValues:Hr.getValues(v({},Be))},classicProduct:{type:"string",optional:!0},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"},purchaseOrderId:{type:"string",optional:!0},redeemRewards:{type:"boolean",optional:!0},rewardsPoints:{type:"number",optional:!0},recurringPaymentDetails:{type:"object",optional:!0,ignoreUnspecifiedChild:!0,children:{label:{type:"string",optional:!0},frequencyUnit:{type:"string",possibleValues:Hr.getValues(v({},$e))},frequency:{type:"number"},startTime:{type:"date",optional:!0},amount:{type:"number"}}},authorizationGroups:{type:"array",optional:!0,childType:this.authorizationGroupSchema},initiativeContext:{type:"string",optional:!0}}},this.paymentSessionSchema={type:"object",ignoreUnspecifiedChild:!0,children:{id:{type:"string"},isChallengeRequired:{type:"boolean"},challengeStatus:{type:"string",possibleValues:Hr.getValues(v({},Le))},signature:{type:"string"},amount:{type:"number"},caid:{type:"string",optional:!0},challengeScenario:{type:"string",possibleValues:Hr.getValues(v({},He))},challengeWindowSize:{type:"string",possibleValues:Hr.getValues(v({},Be))},currency:{type:"string"},country:{type:"string"},hasPreOrder:{type:"boolean",optional:!0},isLegacy:{type:"boolean",optional:!0},isMOTO:{type:"boolean",optional:!0},language:{type:"string"},partner:{type:"string"},piCid:{type:"string",optional:!0},piid:{type:"string"}}},this.visitInputSchema=function(t,n,r){var o=e.validate(t,n,r);if(o)return o;if("dictionary"===n.type||!r)return null;if(e.isObjectSchema(n)){var i=n.allowedChildNames,a=n.ignoreUnspecifiedChild,s=n.children,l=n.childType;if(i)for(var c in r){if(!i[c])return new sn.inputParameterValidationFailedError(ln.inputParameterMissing,t,[n.type,Hr.getType(r)]);if(l){var d=e.visitInputSchema(t+" element: ",l,r[c]);if(d)return d}}else{if(!a)for(var u in r)if(!s[u])return new sn.inputParameterValidationFailedError(ln.inputParameterNotInRange,u,[u]);for(var p in s){var m=e.visitInputSchema(p,s[p],r[p]);if(m)return m}}}if(e.isArraySchema(n)){if(!Hr.isArray(r))return new sn.inputParameterValidationFailedError(ln.inputParameterTypeMismatch,t,[n.type,Hr.getType(r)]);var h=n.minLength,f=n.maxLength;if(l=n.childType,h&&r.length<h)return new sn.inputParameterValidationFailedError(ln.inputParameterSmallerThanMinLength,t,[t,h,r.length]);if(f&&r.length>f)return new sn.inputParameterValidationFailedError(ln.inputParameterLargerThanMaxLength,t,[t,f,r.length]);if(l)for(var g=0;g<r.length;++g){var v=e.visitInputSchema(t+" element: "+g,l,r[g]);if(v)return v}}if(e.isSchemaSchema(n)){var y=e.visitInputSchema(t,n.schema,r);if(y)return y}return null},this.validate=function(e,t,n){if(!t.optional&&(null===n||void 0===n))return new sn.inputParameterValidationFailedError(ln.inputParameterMissing,e,[e]);var r=t.type;if(!n||"any"===r)return null;var o=typeof n;return"dictionary"===r||"schema"===r?r="object":"array"===r&&Hr.isArray(n)&&(o="array"),"boolean"===r&&"string"===o&&("true"!==n&&"false"!==n||(o="boolean")),"date"===r&&"object"===o&&(o="date"),r&&o&&r!==o?new sn.inputParameterValidationFailedError(ln.inputParameterTypeMismatch,e,[r,o]):t.possibleValues&&!Hr.contains(t.possibleValues,n)?new sn.inputParameterValidationFailedError(ln.inputParameterNotInRange,e,[e,n,JSON.stringify(t.possibleValues)]):null},this.resultHandler=function(e,t){return t&&e.failure(t),!Hr.boolify(t)},this.validateInputParameters=function(t,n,r,o,i){var a=e.resultHandler(t,e.visitInputSchema("userContext",e.userContextSchema,n));return(a=a&&e.resultHandler(t,e.visitInputSchema("displayOptions",e.displayOptionsSchema,r)))&&r.busyBlockShowHideHandler&&r.busyBlockId&&(a=e.resultHandler(t,new sn.inputParameterValidationFailedError(ln.busyBlockShowHideHandlerAndbusyBlockIdAreExclusive))),a=(a=a&&e.resultHandler(t,e.visitInputSchema("telemetryOptions",e.telemetryOptionsSchema,o)))&&e.resultHandler(t,e.visitInputSchema("callbacks",e.callbacksSchema,i))},this.validateCheckoutParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("checkoutParams",e.checkoutParamsSchema,n))},this.validatePayeeTaxProfileParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("payeeTaxProfileParams",e.payeeTaxProfileParamsSchema,n))},this.validateMockFunctions=function(t,n){return e.resultHandler(t,e.visitInputSchema("mockFunctions",e.mockFunctionsSchema,n))},this.validateReturnOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("returnOptions",e.returnOptionSchema,n))},this.validatePidlDocInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("pidlDocInfo",e.pidlDocInfoSchema,n))},this.validateResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceInfo",e.resourceInfoSchema,n))},this.validateAddUpdateOrDeleteOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.addUpdateOrDeleteOptionSchema,n))},this.validateSelectOrRenderOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.selectOrRenderOptionSchema,n))},this.validateShowResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("showResourceParams",e.showResourceParamsSchema,n))},this.validateOfferResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("offerResourceParams",e.offerResourceParamsSchema,n))},this.validateSearchResourceParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("searchResourceParams",e.searchResourceParamsSchema,n))},this.validateFundStoredValueParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("fundStoredValueParams",e.fundStoredValueParamsSchema,n))},this.validateResourceOptions=function(t,n){return e.resultHandler(t,e.visitInputSchema("options",e.resourceOptionsSchema,n))},this.validateResourceActionParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("resourceActionParams",e.resourceActionParamsSchema,n))},this.validatePaymentSessionData=function(t,n){return e.resultHandler(t,e.visitInputSchema("paymentSessionData",e.paymentSessionDataSchema,n))},this.shouldValidateAuthorizationGroups=function(e,t){return"be4de87d-7e38-4b2d-8836-9237eb32848e"===t&&e.length>1},this.validatePaymentSessionOrData=function(t,n){var r,o;if(e.isPaymentSession(n))o=e.paymentSessionSchema;else{if(o=e.paymentSessionDataSchema,null===(r=null===n||void 0===n?void 0:n.recurringPaymentDetails)||void 0===r?void 0:r.frequencyUnit){var i=n.recurringPaymentDetails.frequencyUnit;n.recurringPaymentDetails.frequencyUnit=i.toLowerCase()}if((null===n||void 0===n?void 0:n.authorizationGroups)&&e.shouldValidateAuthorizationGroups(n.authorizationGroups,null===n||void 0===n?void 0:n.piid)){for(var a=0,s=0,l=n.authorizationGroups;s<l.length;s++)a+=100*l[s].totalAmount;if(a!==100*(null===n||void 0===n?void 0:n.amount)){var c=new sn.unmatchedAmountError(ln.unmatchedAmount,JSON.stringify(n));t.error(c)}}}return e.resultHandler(t,e.visitInputSchema("paymentSessionOrData",o,n))},this.validatePurchaseRiskChallengeParams=function(t,n){var r="purchaseRiskChallengeSchema",o=e.purchaseRiskChallengeSchema;return n&&n.riskChallengeData&&n.riskChallengeData.length>0&&"threeds"===n.riskChallengeData[0].toLowerCase()&&(r="purchaseRiskChallengeSchemaForThreeDS",o=e.purchaseRiskChallengeSchemaForThreeDS),e.resultHandler(t,e.visitInputSchema(r,o,n))},this.validateHandlePurchasePendingStateParams=function(t,n){return e.resultHandler(t,e.visitInputSchema("purchasePendingStateSchema",e.purchasePendingStateSchema,n))},this.validateSelectedResourceInfo=function(t,n){return e.resultHandler(t,e.visitInputSchema("selectedResourceInfo",e.selectedResourceInfoSchema,n))},this.validateHandle=function(t,n){return e.resultHandler(t,e.visitInputSchema("handle",e.handleSchema,n))}}return e.prototype.isObjectSchema=function(e){return e&&"object"===e.type},e.prototype.isArraySchema=function(e){return e&&"array"===e.type},e.prototype.isSchemaSchema=function(e){return e&&"schema"===e.type},e.prototype.isPaymentSession=function(e){return e&&Hr.isString(e.id)&&e.id.length},e}(),so=new ao,lo=function(e){this.constants={},this.errors={};var t=e&&e.getResolvedOrFirstPidlDoc();if(t&&t.strings){var n=t.strings,r=n.constants,o=n.errorCodes;r&&(this.constants=v({},r)),o&&(this.errors=v({},o))}},co=function(){function e(e){var t=this;this.cache=null,this.keyComparer=null,this.put=function(e,n){var r=t.getCacheEntryIndex(e);-1===r?t.cache.push({key:e,value:n}):t.cache[r].value=n},this.get=function(e){var n=t.getCacheEntryIndex(e);return-1!==n&&t.cache[n].value},this.remove=function(e){var n=t.getCacheEntryIndex(e),r=null;return-1!==n&&(r=t.cache[n],t.cache.splice(n,1)),r&&r.value},this.clear=function(){t.cache=[]},this.removeIf=function(e){e&&Hr.filter(t.cache,(function(t){return!t||!t.value||!e(t.value)}))},this.cache=[],this.keyComparer=Hr.isFunction(e)?e:function(e,t){return e===t}}return e.prototype.getCacheEntryIndex=function(e){for(var t=0;t<this.cache.length;t++)if(this.keyComparer(this.cache[t].key,e))return t;return-1},e}(),uo=function(){function e(){var e=this;this.modelDataCache=null,this.dataSourceCache=null,this.partnerData=null,this.saveModelData=function(t,n){e.modelDataCache.put(t,e.getModelData(n))},this.readModelData=function(t){return e.modelDataCache.get(t)},this.saveDataSource=function(t,n){e.dataSourceCache[t]=n},this.readDataSource=function(t){return e.dataSourceCache[t]},this.readAllDataSources=function(){return e.dataSourceCache},this.savePartnerData=function(t){e.partnerData=t},this.readPartnerData=function(){return e.partnerData},this.clear=function(){e.modelDataCache.clear(),e.partnerData=null,e.clearDataSourceCache()},this.clearDataSourceCache=function(){e.dataSourceCache={}},this.modelDataCache=new co,this.dataSourceCache={}}return e.prototype.getModelData=function(e){var t={};if(e)for(var n in e){var r=e[n];r&&(t[n]=r.getValue())}return t},e}(),po=function(e,t){this.value=e,this.objectId=t},mo=function(e,t,n,r,o){var i=this;if(this.possibleValues=[],this.index=-1,this.associatedModelDataProperties=null,this.pidlIdentity=null,this.getPossibleOptions=function(){for(var e={},t=0;t<i.possibleValues.length;t++)e[t]={displayText:i.possibleValues[t].value};return e},this.getIndex=function(){return i.index},this.setIndex=function(e){i.index=e;var t=i.possibleValues[i.index];if(t)for(var n=t.objectId,r=0;r<i.associatedModelDataProperties.length;r++)i.associatedModelDataProperties[r].setCurrentObjectId(n)},this.pidlIdentity=e,this.associatedModelDataProperties=r,this.possibleValues=[],o)for(var a=0;a<o.length;a++){var s=o[a];this.possibleValues.push(new po(s,t))}for(var l=0;l<n.objectIds.length;l++){var c=n.objectIds[l];if(c!==t){for(var d=[],u=0;u<this.associatedModelDataProperties.length;u++){var p=this.associatedModelDataProperties[u];p.setCurrentObjectId(c);var m=p.getValue();m&&d.push(m),p.setCurrentObjectId(t)}this.possibleValues.push(new po(Nr.getStringValue(d),c))}}},ho=function(e){this.modelDataProperties=[],this.pageIndex=e,this.allPropertyOnSamePage=!0,this.modelDataProperties=[]},fo=function(){this.currentObjectId=null,this.objectIds=[],this.currentObjectId=null,this.objectIds=[]},go="pidlddc_object_id",vo=function(e){var t=this;this.prefillData=null,this.defaultInstanceId=null,this.multiPropertySelectors={},this.modelDataProperties={},this.pidlIdentityPrefillObjectMapping={},this.pidlDocInfos={},this.addId=function(e){if(Hr.isArray(e))for(var n=0;n<e.length;n++)t.addId(e[n]);else if(Hr.isObject(e))for(var r in e.pidlddc_object_id||(e.pidlddc_object_id=Nr.guid()),e)r!==go&&t.addId(e[r])},this.getPropertyInstancesInternal=function(e,n,r){if(Hr.isArray(n))for(var o=0;o<n.length;o++)t.getPropertyInstancesInternal(e,n[o],r);else if(Hr.isObject(n)){var i=e.getPropertyName();for(var a in n){if(a===i){var s=n.pidlddc_object_id;s||(s=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]&&t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId?t.pidlIdentityPrefillObjectMapping[e.pidlIdentity].currentObjectId:t.defaultInstanceId);var l=n[i];ar(e)&&(l=Cn.normalizeValueToPossibleValues(e,n[i])),r[s]=l}t.getPropertyInstancesInternal(e,n[a],r)}}},this.getPropertyInstances=function(e,n){var r={};return n&&t.getPropertyInstancesInternal(e,n,r),r},this.parsePrefillData=function(e){var n=t.getPropertyInstances(e,t.prefillData);if(t.modelDataProperties[e.getPropertyName()].setInstances(n),Hr.keyCount(n)>0){var r=t.pidlIdentityPrefillObjectMapping[e.pidlIdentity];for(var o in r||(r=new fo,t.pidlIdentityPrefillObjectMapping[e.pidlIdentity]=r),n)Hr.contains(r.objectIds,o)||r.objectIds.push(o);r.currentObjectId=r.objectIds[0]}},this.createPidlInfos=function(e,n){var r=n.pidlInfos[e.pidlIdentity];r||(r=new ho(n.pageIndex),n.pidlInfos[e.pidlIdentity]=r),r.pageIndex!==n.pageIndex&&(r.allPropertyOnSamePage=!1);var o=t.modelDataProperties[e.getPropertyName()];o&&r.modelDataProperties.push(o)},this.getPidlInfos=function(e){for(var n={},r=0;r<e.length;r++)Cn.propertiesVisitorProcessingDataProperty(e[r].children,t.createPidlInfos,{pageIndex:r,pidlInfos:n});t.pidlDocInfos=n},this.getDefaultSelectionStrings=function(e,t,n){if(e&&t){var r=t.getIdentityString(e),o=r+"_"+he.prefillDropdownDefault,i=r+"_"+he.prefillDropdownNew,a=(n||{})[o],s=(n||{})[i];if(a&&s){var l=[];return l.push(a),l.push(s),l}}},this.createMultiPropertySelectors=function(e,n,r,o){var i=Cn.findPrefillControlElement(e),a=!1;for(var s in t.pidlDocInfos){var l,c=t.pidlDocInfos[s],d=t.pidlIdentityPrefillObjectMapping[s],u=i&&c.allPropertyOnSamePage&&s===i.pidlIdentity;if(d&&d.objectIds&&c.modelDataProperties)if(u&&i.type===F.checkBox)d.objectIds.length>1&&o.error(new sn.unexpectedError(ln.unexpectedPrefillDataCount,[s,"1",d.objectIds.length.toString()])),l=new mo(s,t.defaultInstanceId,d,c.modelDataProperties),t.multiPropertySelectors[s]=l,a=!0;else if(u&&i.type===F.dropdown&&d.objectIds.length>1){var p=t.getDefaultSelectionStrings(s,r,n);l=new mo(s,t.defaultInstanceId,d,c.modelDataProperties,p),t.multiPropertySelectors[s]=l}else for(var m=0;m<c.modelDataProperties.length;m++)c.modelDataProperties[m].setDefaultObjectAsCurrent()}return a},this.getPidlInfoMatch=function(e){for(var n in t.pidlDocInfos)for(var r=t.pidlDocInfos[n].modelDataProperties,o=0;o<r.length;o++)if(e[r[o].propertyName])return t.pidlDocInfos[n]},this.fillPrefillData=function(){for(var e=0;e<t.prefillData.length;e++){var n=t.prefillData[e],r=t.getPidlInfoMatch(n);if(r)for(var o=0;o<r.modelDataProperties.length;o++){var i=r.modelDataProperties[o].propertyName;n[i]=n[i]?n[i]:""}}},this.getPropertyValueInternal=function(e,n,r){if(n){if(void 0===r)if(Hr.isArray(n))for(var o=0;o<n.length;o++)r=r||t.getPropertyValueInternal(e,n[o],r);else if(Hr.isObject(n)||n.hasOwnProperty(e))for(var i in n)e===i?r=n[i]:void 0===r&&(r=t.getPropertyValueInternal(e,n[i],r));return r}},this.reset=function(){t.prefillData=null,t.multiPropertySelectors={},t.modelDataProperties={},t.pidlIdentityPrefillObjectMapping={},t.pidlDocInfos={}},this.parse=function(e,n,r,o,i,a){var s=!1;return t.prefillData=e,t.addId(t.prefillData),t.multiPropertySelectors={},t.modelDataProperties=r,t.getPidlInfos(n),t.prefillData&&(t.fillPrefillData(),Cn.propertiesVisitorProcessingDataProperty(n,t.parsePrefillData),s=t.createMultiPropertySelectors(n,o,i,a)),{multiPropertySelectors:t.multiPropertySelectors,editable:s}},this.getPropertyValue=function(e){if(t.prefillData)return t.getPropertyValueInternal(e,t.prefillData)},this.getPrefillData=function(){return t.prefillData||{}},this.testHookGetParsePrefillDataFunc=function(){return t.parsePrefillData},this.defaultInstanceId=e},yo=function(e,t,n,r){var o=this;this.objectId=null,this.defaultObjectId=null,this.objectIdValuesMapping={},this.propertyName=null,this.modelElement=null,this.editState=null,this.setCurrentObjectId=function(e){o.objectId=e},this.setDefaultObjectAsCurrent=function(){var e=null;for(e in o.objectIdValuesMapping)if(e!==o.defaultObjectId)break;var t=null;e&&(t=o.objectIdValuesMapping[e]),o.objectIdValuesMapping[o.defaultObjectId]=t,o.objectId=o.defaultObjectId},this.setValue=function(e){var t=!1;return!e&&o.modelElement&&o.modelElement.hidden()&&o.modelElement.defaultValue&&(e=o.modelElement.defaultValue),o.objectId!==o.defaultObjectId&&e!==o.objectIdValuesMapping[o.objectId]&&(o.objectId=o.defaultObjectId,t=!0),o.objectIdValuesMapping[o.objectId]=e,t},this.getValue=function(e,t){var n=o.objectIdValuesMapping[o.objectId];if(ir(o.modelElement)&&Hr.isObject(o.modelElement.possibleOptions)){if(!o.modelElement.possibleOptions[n])return Cn.normalizeValueToPossibleValues(o.modelElement,n);if(e&&t&&n&&o.modelElement.possibleOptions[n].pidlAction)return o.modelElement.possibleOptions[n].pidlAction.context}return n},this.isEditable=function(e){return(o.objectId===o.defaultObjectId||e)&&(!o.modelElement||!o.modelElement.disabled())},this.setInstances=function(e){o.objectIdValuesMapping=Nr.extend(o.objectIdValuesMapping,e)},this.propertyName=e,this.modelElement=r,this.editState=ge.clean,this.objectId=t,this.defaultObjectId=t,this.objectIdValuesMapping=n},bo=function(e){var t=this;this.inputPrefillDataManager=null,this.multiPropertySelectors={},this.modelDataProperties={},this.inputInstance=null,this.pidlDocManager=null,this.dataStore=null,this.resourceResponse=null,this.getInstancePropertyValue=function(e,n,r){if(Hr.isArray(n)){for(var o=0;o<n.length;o++)if(t.getInstancePropertyValue(e,n[o],r))return!0}else if(Hr.isObject(n))for(var i in n){if(i===e)return r[e]=n[e],!0;if(t.getInstancePropertyValue(e,n[i],r))return!0}},this.getDisplayPropertyValueInternal=function(e){var n=t.displayData&&t.displayData.details&&t.displayData.details[e];if(n)return n;var r=t.modelDataProperties[e];if(r){var o=r.modelElement;if(o&&o.possibleOptions){var i=r.getValue(),a=o.possibleOptions[i];if(a)return a.displayText}}},this.maskPropertyValueFlagExists=function(e){var n=t.modelDataProperties[e];return n&&n.modelElement&&n.modelElement.maskDisplay},this.mergeUserDataInternal=function(e,n){var r=e.getPropertyName();if(n.userData.hasOwnProperty(r)){var o=n.userData[r],i=t.getMaskedPropertyValue(r);if(!i||o!==i){var a=t.modelDataProperties[r];o!==a.getValue(!1)&&n.conflictingInputValueReporter&&n.conflictingInputValueReporter(r),a.setValue(o)}}},this.updateModelElement=function(e){var n=e.getPropertyName(),r=t.modelDataProperties[n];r||(t.populateInternal(e),r=t.modelDataProperties[n]);var o=r.modelElement;if(o&&e.pidlIdentity!==o.pidlIdentity){r.modelElement=e;var i=t.multiPropertySelectors[o.pidlIdentity];i&&(t.multiPropertySelectors[e.pidlIdentity]=i,i.pidlIdentity=e.pidlIdentity,delete t.multiPropertySelectors[o.pidlIdentity])}},this.populateInternal=function(e){var n={},r=e.getPropertyName();t.modelDataProperties[r]||(n[t.defaultInstanceId]=e.defaultValue,t.modelDataProperties[r]=new yo(r,t.defaultInstanceId,n,e))},this.getPropertyInternal=function(e,n,r){var o=!0,i=null,a=t.modelDataProperties[e];return a?(i=a.getValue(n,r),o=a.isEditable(t.editablePrefillData)):i=t.inputInstance&&t.inputInstance.hasOwnProperty(e)?t.inputInstance[e]:t.inputPrefillDataManager.getPropertyValue(e),{value:i,editable:o,propertyName:e}},this.setJumpbackData=function(e){if(e)for(var n in t.modelDataProperties)e.hasOwnProperty(n)&&t.modelDataProperties[n].setValue(e[n])},this.removeClientAction=function(e){if(e){var t=Hr.deepCopy(e);return delete t.clientAction,t}return e},this.setPrefillData=function(e,n,r,o){if(e.elements&&n){var i=t.inputPrefillDataManager.parse(n,e.elements,t.modelDataProperties,r,e.pidlDocManager,o);t.multiPropertySelectors=i.multiPropertySelectors,t.editablePrefillData=i.editable,t.setPrefillDataInPartnerDataSource(n)}},this.getPrefillData=function(){return t.inputPrefillDataManager.getPrefillData()},this.setPrefillDataInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.prefillData=e,t.setPartnerData(n)},this.setInputParametersInPartnerDataSource=function(e){var n=t.getPartnerData()||{};n.inputParameters=e,t.setPartnerData(n)},this.setDisplayData=function(e){t.displayData=e},this.updateUserData=function(e){t.setJumpbackData(e)},this.mergeUserData=function(e,n,r){n&&e&&e.elements&&Cn.propertiesVisitorProcessingDataProperty(e.elements,t.mergeUserDataInternal,{userData:n,conflictingInputValueReporter:r})},this.updateModelElements=function(e){e&&Cn.propertiesVisitorProcessingDataProperty(e,t.updateModelElement)},this.getPropertyValue=function(e,n,r){var o=t.getPropertyInternal(e,n,r);if(o)return o.value},this.getProperty=function(e){return t.getPropertyInternal(e)},this.getPropertyModelElement=function(e){return t.modelDataProperties[e]?t.modelDataProperties[e].modelElement:null},this.getDisplayPropertyValue=function(e){return t.getDisplayPropertyValueInternal(e)},this.getMaskedPropertyValue=function(e){return t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]},this.clearMaskedPropertyValue=function(e){t.maskPropertyValueFlagExists(e)&&t.displayData&&t.displayData.details&&t.displayData.details[e]&&(t.displayData.details[e]=null)},this.getModelDataProperty=function(e){return t.modelDataProperties[e]},this.setMultiPropertySelectorIndex=function(e,n){var r=t.multiPropertySelectors[e];r&&r.setIndex(n)},this.getMultiPropertySelectorIndex=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getIndex()},this.getMultiPropertySelectorPossibleOptions=function(e){var n=t.multiPropertySelectors[e];if(n)return n.getPossibleOptions()},this.getId=function(){return t.inputInstance?t.inputInstance.hasOwnProperty("id")?t.inputInstance.id:void 0:t.inputPrefillDataManager.getPropertyValue("id")},this.setDataSource=function(e,n){t.dataStore.saveDataSource(e,n)},this.getDataSource=function(e){return t.dataStore.readDataSource(e)},this.getAllDataSources=function(){return t.dataStore.readAllDataSources()},this.setPartnerData=function(e){t.dataStore.savePartnerData(e)},this.getPartnerData=function(){return t.dataStore.readPartnerData()},this.cacheFlow=function(){var e=t.pidlDocManager.getPidlIdentity();return e&&t.dataStore.saveModelData(gn.createIdentityHash(e),t.modelDataProperties),e},this.clearFlow=function(){t.displayData=null,t.modelDataProperties={},t.multiPropertySelectors={},t.inputInstance=null,t.inputPrefillDataManager.reset()},this.clearAll=function(){t.dataStore.clear(),t.resourceResponse=null,t.clearFlow()},this.clearDataSourceCache=function(){t.dataStore.clearDataSourceCache()},this.populate=function(e){Cn.propertiesVisitorProcessingDataProperty(e,t.populateInternal)},this.getModelDataProperties=function(e){var n={properties:{}};return Cn.propertiesVisitorProcessingDataProperty(e,(function(e,n){var r=e.getPropertyName(),o=t.modelDataProperties[r];o&&(n.properties[r]=o)}),n),n.properties},this.setInputInstance=function(e,n){n&&(Cn.propertiesVisitorProcessingDataProperty(e,(function(e,n){var r={},o=e.getPropertyName();t.getInstancePropertyValue(o,n.inputInstanceDetails,r)&&t.modelDataProperties[o].setValue(r[o])}),{inputInstanceDetails:n}),t.inputInstance=n)},this.setPrimaryResourceResponse=function(e,n){var r=[];n&&n.length&&n.forEach((function(e){return r.push(t.removeClientAction(e))})),t.resourceResponse={primary:t.removeClientAction(e),secondary:r}},this.retrieveFromCache=function(e,n){if(e=e||t.pidlDocManager.getPidlIdentity()){var r=t.dataStore.readModelData(gn.createIdentityHash(e));if(n)for(var o=0;o<n.length;o++)r.hasOwnProperty(n[o])&&delete r[n[o]];if(r)return t.setJumpbackData(r),!0}},this.getPrimaryResourceResponseId=function(){return t.resourceResponse&&t.resourceResponse.primary&&t.resourceResponse.primary.id},this.getResourceResponse=function(){return t.resourceResponse},this.testHookSetMultiPropertySelectors=function(e){t.multiPropertySelectors=e},this.testHookGetMultiPropertySelectors=function(){return t.multiPropertySelectors},this.testHookSetModelDataProperties=function(e){t.modelDataProperties=e},this.testHookGetModelDataProperties=function(){return t.modelDataProperties},this.testHookGetDefaultInstanceId=function(){return t.defaultInstanceId},this.testHookGetDisplayData=function(){return t.displayData},this.testHookSetInputPrefillDataManager=function(e){t.inputPrefillDataManager=e},this.testHookSetEditablePrefillData=function(e){t.editablePrefillData=e},this.displayData=null,this.defaultInstanceId=Nr.guid(),this.inputPrefillDataManager=new vo(this.defaultInstanceId),this.multiPropertySelectors={},this.pidlDocManager=e,this.dataStore=new uo},Co=new function(){this.luhn=function(e){for(var t=0,n=!1,r=e.length-1;r>=0;r--){var o=parseInt(e.charAt(r));n&&(o*=2)>9&&(o-=9),t+=o,n=!n}return t%10===0}},So=function(){this.aggregateCommerceResults=function(e,t){return e.length?new Promise((function(n,r){var o=[],i=0,a=function(){if(++i===e.length){var r=o.length?o[0].error:null;r=o.length&&t?t(r):r,n({innerErrors:o,error:r})}};e.forEach((function(e){e.then((function(e){e.error&&o.push(e),a()})).catch((function(e){o.push({error:new sn.unexpectedError(e)}),a()}))}))})):Wr({innerErrors:[]})}},xo=new So,ko=function(){var e=this;this.validateUserInputDataFromService=function(e,t,n,r,o,i,a){var s=It.buildUrl(Br.getServiceEndpoint(Br.virtualEndpoints.validation.endpoint),[i]),l={value:r,propertyName:n};t&&(l.urlValidationType=t);var c=JSON.stringify(l),d=io.getDefaultHttpHeaders(e);return d[ee.msFlight]="pxpidl",new Promise((function(t,r){io.post(e,!0,s,d,c,(function(e){var r=Hr.equalsIgnoreCase(e.status,E.Passed)?null:new sn.propertyValidationFailedError(ln.propertyValidationFailed,e.errorCode,n,[n,e.errorCode]);t({error:r})}),(function(e){t({error:new sn.propertyValidationFailedError(ln.propertyValidationFailed,Q.empty,n,[n,Q.empty])})}),o,Br.virtualEndpoints.validation.operation,Br.virtualEndpoints.validation.description,!0,a).catch(Vr)}))},this.validateUserInputDataInternal=function(t,n,r,o,i){var a=n.data_description,s=[];for(var l in a){var c=a[l];if(Ft(c)){var d=c&&c.length&&c[0];d&&(s=s.concat(e.validateUserInputDataInternal(t,d,r[l],o,i)))}else{if(c.displayOnly||o===ut.update&&!c.is_updatable)continue;var u=null;if(i){var p=i.getModelDataProperty(l);p&&(u=p.modelElement)}s.push(e.validatePropertyFromPropertyDescription(t,u,pn.getPropertyValueFromInputData(r,l),o,l,c))}}return s},this.validatePropertyFromPropertyDescription=function(t,n,r,o,i,a){var s,l=E.Passed,c=null,d=null;if((null===n||void 0===n?void 0:n.type)===F.secureProperty)d=n.validate().then((function(e){return e?{error:new sn.propertyValidationFailedError(ln.propertyValidationFailed,e,a.display_property||i,[a.display_property||i,e])}:{error:null}}));else if(r){if(a.validation||a.validations)for(var u=null==a.validations?[a.validation]:a.validations,p=0;p<u.length&&l===E.Passed;p++)switch(u[p].validationType){case pt.regex:var m=new RegExp(u[p].regex);n&&n.type&&n.type===F.filePicker?r&&r.name&&!1===m.test(r.name)&&(l=E.Fail,c=u[p].error_code):!1===m.test(r)&&(l=E.Fail);break;case pt.function:Co[u[p].function]&&Co[u[p].function](r)||(l=E.Fail,c=u[p].error_code);break;case pt.service:d=e.validateUserInputDataFromService(t,u[p].urlValidationType,i,r,o,u[p].url,null===(s=null===a||void 0===a?void 0:a.dataProtection)||void 0===s?void 0:s.fetchConfig);break;case pt.size:var h=u[p].maxFileSize;n&&n.type&&n.type===F.filePicker&&r&&r.size&&r.size>h&&(l=E.Fail,c=u[p].error_code)}}else a.is_optional||(l=E.Fail,c=Q.empty);return d||(d=Wr({error:l===E.Passed?null:new sn.propertyValidationFailedError(ln.propertyValidationFailed,c,a.display_property||i,[a.display_property||i,c])})),d},this.validateUserInputData=function(t,n,r,o,i){var a=e.validateUserInputDataInternal(t,n,r,o,i);return xo.aggregateCommerceResults(a)},this.validateUserInputProperty=function(t,n,r,o){var i=e.validatePropertyFromPropertyDescription(t,n,r,o,n.getPropertyName(),n.dataDescription);return xo.aggregateCommerceResults([i])}},Po=new ko,Io=function(e,t){var n=this;this.shouldValidateProperty=function(e,t){if(n.alwaysValidateOnChange)return!0;var r=e.editState,o=e.modelElement;if(!o||o.type!==F.textBox&&o.type!==F.dropdown&&o.type!==F.checkBox&&o.type!==F.secureProperty)return r===ge.clean?""!==e.getValue():t===ve.editing||t===ve.finished;switch(r){case ge.clean:return!1;case ge.editing:return t===ve.finished;case ge.dirty:return!0}},this.shouldValidatePropertyInPageValidation=function(e,t){return t!==J.dirtyOnly||e===ge.dirty},this.getUpdatedPropertyState=function(e,t){var n=e.editState,r=e.modelElement;if(!r||r.type!==F.textBox&&r.type!==F.dropdown&&r.type!==F.checkBox&&r.type!==F.secureProperty)return n===ge.clean&&""!==e.getValue()?ge.dirty:null;switch(n){case ge.clean:return t===ve.editing?ge.editing:null;case ge.editing:return t===ve.finished?ge.dirty:null;case ge.dirty:return null}},this.validatePropertyValue=function(e,t){return Po.validateUserInputProperty(n.eventHub,e.modelElement,e.getValue(),t)},this.validatePageElements=function(e,t,r,o){var i=[],a=function(a){var s=e[a];n.shouldValidatePropertyInPageValidation(s.editState,t)&&i.push(n.validatePropertyValue(s,r).then((function(t){var r=t.error;if(r){var i=e[r.propertyName];if(i){var l=i.modelElement;(Rr(l)||Er(l))&&(r.message=l.getErrorMessage(i.getValue(),r.errorCode)),i.editState=ge.dirty,o.push(r)}}else s&&n.eventHub.propertyValidated(a,ve.finished)})).catch((function(){return Vr})))};for(var s in e)a(s);return i},this.validateProperty=function(e,t,r){var o=n.shouldValidateProperty(e,t),i=n.getUpdatedPropertyState(e,t);return i&&(e.editState=i),new Promise((function(i,a){o?n.validatePropertyValue(e,r).then((function(r){var o=r.error;if(o){var a=e.modelElement;(Rr(a)||Er(a))&&(o.message=a.getErrorMessage(e.getValue(),o.errorCode)),n.eventHub.error(o,t)}else n.eventHub.propertyValidated(e.propertyName,t);i()})).catch((function(){return Vr})):i()}))},this.clearElementEditState=function(e){e.editState=ge.clean},this.validatePage=function(e,t,r){return t===J.all&&n.eventHub.inputValidating(),e?new Promise((function(o,i){var a=[],s=n.validatePageElements(e,t,r,a);Promise.all(s).then((function(){if(a.length){var e=new sn.formValidationFailedError(t===J.all?ln.formValidationFailed:ln.editedPropertiesValidationFailed,"",a,[""]);n.eventHub.error(e),i(e)}else o(),t===J.all&&n.eventHub.inputValidated()}),(function(){i()}))})):(t===J.all&&n.eventHub.inputValidated(),Wr())},this.eventHub=e,this.alwaysValidateOnChange=t},wo=function(){var e=this;this.getCryptoSubtleInstance=function(){return window&&window.crypto&&window.crypto.subtle},this.isSupported=function(){return e.getCryptoSubtleInstance()}},Eo=new wo,_o={name:"HMAC",hash:{name:"SHA-256"}},Do=function(){var e=this;this.init=function(){var t=Eo.getCryptoSubtleInstance();return t?new Promise((function(n,r){t.generateKey(_o,!0,["sign"]).then((function(r){e.hmacKey=r,t.exportKey("raw",e.hmacKey).then((function(t){var r={};try{e.rawKey=btoa(String.fromCharCode.apply(null,new Uint8Array(t)))}catch(o){r.error=new sn.unexpectedError(ln.hmacError,[o&&o.message])}n(r)}),(function(e){n({error:new sn.unexpectedError(ln.hmacError,[e&&e.message])})}))}),(function(e){n({error:new sn.unexpectedError(ln.hmacError,[e&&e.message])})}))})):Wr({error:new sn.unexpectedError(ln.hmacError,["Failed to Init hmac"])})},this.getRawKey=function(){return e.rawKey},this.sign=function(t){var n=Eo.getCryptoSubtleInstance();return n&&e.hmacKey?new Promise((function(r,o){for(var i=new Uint8Array(t.length),a=0;a<t.length;a++)i[a]=t.charCodeAt(a);n.sign(_o,e.hmacKey,i).then((function(e){var t=null;try{var n=new Uint8Array(e);t=btoa(String.fromCharCode.apply(null,n))}catch(o){r({error:new sn.unexpectedError(ln.hmacError,[o&&o.message])})}r({data:t})}),(function(e){r({error:new sn.unexpectedError(ln.hmacError,[e&&e.message])})}))})):Wr({error:new sn.unexpectedError(ln.hmacError,["hmac not initialized"])})},this.testHookGetHmacAlgo=function(){return _o},this.testHookSetHmacKey=function(t){e.hmacKey=t},this.hmacKey=null,this.rawKey=null};function To(e){return e=e||{},function(){var t={register:function(e,n,r){t[e]||(t[e]={});var o=t[e];o[n]||(o[n]=r)},exists:function(e,n){return!!t[e]&&!!t[e][n]}},n=function(){if("undefined"!==typeof document)try{throw new Error}catch(t){if(t.stack){var e=/\w+:\/\/(.+?\/)*.+\.js/.exec(t.stack);return e&&e.length>0?e[0]:null}}else if("undefined"!==typeof self&&"undefined"!==typeof self.location)return self.location.href;return null}(),r="undefined"!==typeof Worker,o="function"===typeof importScripts&&self instanceof WorkerGlobalScope,a=!1,s="undefined"!==typeof ArrayBuffer,l=function(){try{return Object.defineProperty({},"oncomplete",{}),!0}catch(e){return!1}}(),c=!1,d=function(e,t,n,r,o){if(l){var i={};r&&(i.get=r),o&&(i.set=o),Object.defineProperty(e,t,i)}else e[t]=n},u={},p=function(){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function t(t){for(t=t.replace(/-/g,"+").replace(/_/g,"/");t.length%4!==0;)t+="=";var n,r,o,i,a,s,l,c=[];for(t=t.replace(/[^A-Za-z0-9\+\/\=]/g,""),l=0;l<t.length;l+=4)n=e.indexOf(t.charAt(l))<<2|(i=e.indexOf(t.charAt(l+1)))>>4,r=(15&i)<<4|(a=e.indexOf(t.charAt(l+2)))>>2,o=(3&a)<<6|(s=e.indexOf(t.charAt(l+3))),c.push(n),64!==a&&c.push(r),64!==s&&c.push(o);return c}function n(e){return Object.prototype.toString.call(e).slice(8,-1)}function r(e){return[e>>>24&255,e>>>16&255,e>>>8&255,255&e]}function o(e){if(!e)return[];if(e.pop)return e;if("ArrayBuffer"===n(e)?e=new Uint8Array(e):e.BYTES_PER_ELEMENT>1&&(e=new Uint8Array(e.buffer)),1===e.length)return[e[0]];if(e.length<65536)return Array.apply(null,e);for(var t=new Array(e.length),r=0;r<e.length;r++)t[r]=e[r];return t}function i(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}return{consoleLog:function(e){"console"in self&&"log"in console&&console.log(e)},toBase64:function(t,r){var i=n(t);if("Array"!==i&&"Uint8Array"!==i&&"ArrayBuffer"!==i)throw new Error("invalid input");var a,s,l,c,d,u,p,m,h="",f=o(t);for(r||(r=!1),m=0;m<f.length;m+=3)c=(a=f[m])>>2,d=(3&a)<<4|(s=f[m+1])>>4,u=(15&s)<<2|(l=f[m+2])>>6,p=63&l,isNaN(s)?u=p=64:isNaN(l)&&(p=64),h=h+e.charAt(c)+e.charAt(d)+e.charAt(u)+e.charAt(p);return r?h.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,""):h},fromBase64:t,checkParam:function(e,t,r){if(!e)throw new Error(r);if(t&&n(e)!==t)throw new Error(r);return!0},getObjectType:n,bytesToHexString:function(e,t){var n="";"undefined"===typeof t&&(t=!1);for(var r=0;r<e.length;r++){t&&r%4===0&&0!==r&&(n+="-");var o=e[r].toString(16).toUpperCase();1===o.length&&(n+="0"),n+=o}return n},bytesToInt32:function(e,t){return e[t=t||0]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]},stringToBytes:function(e){for(var t=[],n=0,r=0;n<e.length;n++){var o=e.charCodeAt(n);o<128?t[r++]=o:o<2048?(t[r++]=o>>>6|192,t[r++]=63&o|128):o<55296||o>57343?(t[r++]=o>>>12|224,t[r++]=o>>>6&63|128,t[r++]=63&o|128):(o=1024*(o-55296)+(e.charCodeAt(++n)-56320)+65536,t[r++]=o>>>18|240,t[r++]=o>>>12&63|128,t[r++]=o>>>6&63|128,t[r++]=63&o|128)}return t},bytesToString:function(e){var t,n="";e=o(e);for(var r=0;r<e.length;){var i=e[r++];if((t=i<128?i:i<224?(i<<6)+e[r++]-12416:i<240?(i<<12)+(e[r++]<<6)+e[r++]-925824:(i<<18)+(e[r++]<<12)+(e[r++]<<6)+e[r++]-63447168)>65535){var a=Math.floor((t-65536)/1024)+55296,s=(t-65536)%1024+56320;n+=String.fromCharCode(a,s)}else n+=String.fromCharCode(t)}return n},unpackData:function(e,n,r){var o,i=t(e),a=[];if(isNaN(n))return i;for(o=0;o<i.length;o+=n)a.push(i.slice(o,o+n));if(r)for(o=0;o<a.length;o++)a[o]=(a[o][0]<<24)+(a[o][1]<<16)+(a[o][2]<<8)+a[o][3];return a},hexToBytesArray:function(e){e=e.replace(/\-/g,"");for(var t=[];e.length>=2;)t.push(parseInt(e.substring(0,2),16)),e=e.substring(2,e.length);return t},int32ToBytes:r,int32ArrayToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t=t.concat(r(e[n]));return t},toArray:o,arraysEqual:function(e,t){var n=!0;e.length!==t.length&&(n=!1);for(var r=0;r<e.length;r++)e[r]!==t[r]&&(n=!1);return n},clone:function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},xorVectors:function(e,t,n){for(var r=Math.min(e.length,t.length),o=(n=n||new Array(r),0);o<r;o+=1)n[o]=e[o]^t[o];return n},padEnd:function(e,t,n){for(;e.length<n;)e.push(t);return e},padFront:function(e,t,n){for(;e.length<n;)e.unshift(t);return e},getVector:function(e,t){isNaN(t)&&(t=0);for(var n=new Array(e),r=0;r<e;r+=1)n[r]=t;return n},verifyByteArray:function(e){if("Array"!==n(e))return!1;for(var t,r=0;r<e.length;r++)if(t=e[r],isNaN(t)||t<0||t>255)return!1;return!0},error:function(e,t){var n=Error(t);throw n.name=e,n},isBytes:function(e){if(!(e instanceof Array))return!1;for(var t=0;t<e.length;t++){var n=e[t];if(!i(n)||n>255||n<0)return!1}return!0},isInteger:i}}(),m=function(){var e={0:"CUSTOM",1:"BOOLEAN",2:"INTEGER",3:"BIT STRING",4:"OCTET STRING",5:"NULL",6:"OBJECT IDENTIFIER",16:"SEQUENCE",17:"SET",19:"PRINTABLE STRING",23:"UTCTime"};function t(e){var t=e.length;if(t<=127)return[t];var r=n(t);return r.unshift(128|r.length),r}function n(e){var t=[];if(0===e)return[0];for(;e>0;)t.unshift(255&e),e>>>=8;return t}function r(e,t){var n=new Array(t+1).join(" ")+e.type+" ("+e.length+") "+bytesToHexString(e.data).substring(0,16)+"\n";if(!e.children)return n;for(var o=0;o<e.children.length;o++)n+=r(e.children[o],t+4)+"";return n}return{parse:function t(n,r){r=!!r;var o,i,a,s=e[31&n[0]],l=n[1],c=0,d=!!(32&n[0]);if(128&l)for(c=0,l=0;c<(127&n[1]);c++)l=(l<<8)+n[2+c];if(a=2+c,void 0===s||l>n.length)return null;var u=d?[]:{};if(u.type=s,u.header=a,u.data=n.slice(0,l+a),d||r)for("BIT STRING"===u.type&&0===n[a]&&c++,o=n.slice(a,u.data.length);o.length>0&&null!==(i=t(o));)u.push(i),o=o.slice(i.data.length);return u},encode:function e(r){if(r.hasOwnProperty("INTEGER")){var o=r.INTEGER;return p.isInteger(o)&&(o=n(o)),128&o[0]&&o.unshift(0),[2].concat(t(o),o)}if(r.hasOwnProperty("OCTET STRING"))return(o=r["OCTET STRING"])instanceof Array||(o=e(o)),[4].concat(t(o),o);if(r.hasOwnProperty("BIT STRING"))return(o=r["BIT STRING"])instanceof Array||(o=e(o)),o.unshift(0),[3].concat(t(o),o);if(r.hasOwnProperty("NULL"))return[5,0];if(r.hasOwnProperty("OBJECT IDENTIFIER"))return o=function(e){for(var t=e.split("."),n=[parseInt(40*t[0]+parseInt(t[1]))],r=2;r<t.length;r++){for(var o=parseInt(t[r]),i=[];o>0;)i.push(127&o|128),o>>>=7;i[0]=127&i[0],n=n.concat(i.reverse())}return n}(r["OBJECT IDENTIFIER"]),[6].concat(t(o),o);if(r.hasOwnProperty("SEQUENCE")){for(var i=r.SEQUENCE,a=(o=[],0);a<i.length;a++)o=o.concat(e(i[a]));return[48].concat(t(o),o)}if(r.hasOwnProperty("APPLICATION")){i=r.APPLICATION;var s=isNaN(parseInt(i[0]))?32:0,l=r.tag;if(o=s?[]:r.APPLICATION,s)for(a=0;a<i.length;a++)o=o.concat(e(i[a]));return[160|s|l].concat(t(o),o)}throw new Error("unsupported asn.1 type")},toString:function(e){return r(e,0)}}}(),h=function(){function e(e){return a&&o&&self.postMessage(e),e}return{jsCryptoRunner:function(n){n.data.workerid,n.data.operationType,n.data.operationSubType;var r=n.data.operationType,o=t[r][n.data.algorithm.name],i=n.data;if(!t.exists(r,n.data.algorithm.name))throw new Error("unregistered algorithm.");return i.operationSubType?e({type:i.operationSubType,result:o(i)}):e(o(i))},returnResult:e}}();o&&(self.onmessage=function(e){if(!a&&e.data.prngSeed){var t=e.data.prngSeed;return V.init(t),a=!0,h.returnResult({initialized:!0})}!0===a&&h.jsCryptoRunner(e)});var f=function(){var e=p;function t(e){var t=e.algorithm.name.slice(0,3).toUpperCase();return"RSA"===t?"RSA":"ECD"===t?"EC":"oct"}function n(e){return e.hash.name.substring(e.hash.name.indexOf("-")+1)}var r={HMAC:function(e){return"HS"+n(e)},"AES-CBC":function(e){return"A"+e.length.toString()+"CBC"},"AES-GCM":function(e){return"A"+e.length.toString()+"GCM"},"AES-KW":function(e){return"A"+e.length.toString()+"KW"},"RSAES-PKCS1-V1_5":function(e){return"RSA1_5"},"RSASSA-PKCS1-V1_5":function(e){return"RS"+n(e)},"RSA-OAEP":function(e){return"SHA-1"===e.hash.name.toUpperCase()?"RSA-OAEP":"RSA-OAEP-"+n(e)},"RSA-PSS":function(e){return"PS"+n(e)},ECDSA:function(e){return"EC-"+e.namedCurve.substring(e.namedCurve.indexOf("-")+1)}};return{keyToJwkOld:function(n,r){var o={};if(o.kty=t(n),o.extractable=n.extractable,r.pop)o.k=e.toBase64(r,!0);else for(var i in r)r[i].pop&&(o[i]=e.toBase64(r[i],!0));return n.algorithm.namedCurve&&(o.crv=n.algorithm.namedCurve),function(e){for(var t=[],n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return 0===t[t.length-1]&&t.pop(),t}(JSON.stringify(o,null,"\t"))},keyToJwk:function(n,o){var i={};if(i.kty=t(n),i.ext=n.extractable,r[n.algorithm.name.toUpperCase()]&&(i.alg=r[n.algorithm.name.toUpperCase()](n.algorithm)),i.key_ops=n.usages,o.pop)i.k=e.toBase64(o,!0);else for(var a in o)o[a].pop&&"key_ops"!==a&&(i[a]=e.toBase64(o[a],!0));return n.algorithm.namedCurve&&(i.crv=n.algorithm.namedCurve),i},jwkToKey:function(t,n,r){for(var o=JSON.parse(JSON.stringify(t)),i=0;i<r.length;i+=1){var a=o[r[i]];a&&(o[r[i]]=e.fromBase64(a))}return o}}}(),g=g||function(){for(var e=24,t=Math.floor(3),n=16777215,r=16777216,o=1/r,i=[1,256],a=2;a<=t;a++)i[a]=256*i[a-1];var s=[0],l=[1];function c(e){var t,n=null;if(arguments.length&&"number"!==typeof arguments[0]){if("object"===typeof arguments[0])for(n=new Array(e.length),t=0;t<e.length;t+=1)n[t]=e[t]}else for(n=new Array(e),t=0;t<e;t+=1)n[t]=0;return n}function d(e,t,n,r,o){for(;o-- >0;)n[r+o]=e[t+o]}function u(e){var t,n=0;for(t=0;t<e.length;t+=1)n|=e[t];return!n}function p(e){var n=Math.floor((e.length+t-1)/t),o=new Array(n);o[0]=0;for(var a=0,s=0,l=0,c=e.length-1;c>=0;c--)a+=i[l++]*(255&e[c]),i[l]===r&&(l=0,o[s++]=a,a=0);for(0!==a&&(o[s]=a);null==o[--n];)o[n]=0;return o}function m(t,n){if("undefined"===typeof n)if(t<=1)n=1;else{var o=Math.log(t)/Math.LN2;n=Math.ceil(o/e)}for(var i=[];t>0;)i.push(t%r),t=Math.floor(t/r);for(;i.length<n;)i.push(0);return i}function h(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t]&&0!==e[t])return t;return 0===e[0]?-1:0}function f(e,t){var n,r,o=0;for(r=0;r<Math.max(e.length,t.length);r++)o=(n=~~e[r]-~~t[r])+(o&-!n);return o}function v(e,t,n){var r=h(e);if(e.length=t||r+1,n)for(;++r<e.length;)e[r]=0;return e.length<=0&&(e[0]=0,e.length=1),e}function y(t,r,o,i){if(void 0===o)o=1;else if(o>=e||o<0)throw new Error("bit count must be smaller than DIGIT_BITS and positive in shiftLeft");void 0===i&&(i=t.length);var a=e-o;r[i]=t[i-1]>>>e-o||r[i];for(var s=i-1;s>0;s--)r[s]=(t[s]<<o|t[s-1]>>>a)&n;r[0]=t[0]<<o&n}function b(t,r,o){var i=t,a=r;r.length<t.length&&(i=r,a=t);var s,l=i.length,c=0;for(s=0;s<l;s+=1)c+=i[s]+a[s],o[s]=c&n,c>>=e;for(s=l;s<a.length;s+=1)c+=a[s],o[s]=c&n,c>>=e;return o.length=a.length,0!==c&&(o[s]=c&n),c}function C(t,r,o){var i=r.length;if(t.length<r.length&&(i=h(r)+1,t.length<i))throw new Error("Subtrahend is longer than minuend, not supported.");var a,s=0;for(a=0;a<i;a+=1)s+=t[a]-r[a],o[a]=s&n,s>>=e;for(;a<t.length;)s+=t[a],o[a++]=s&n,s>>=e;return s}function S(e,t,r){t="number"===typeof t?[t]:t;var i,a,s,l,c,d,u,p,m=e.length,h=t.length;for(i=0;i<m+h;i+=1)r[i]=0;i=0,l=0;for(var f=0;i<h;){for(l=Math.min(l+31,h);i<l;i++)for(p=t[i],a=0;a<m;a++)r[i+a]+=e[a]*p;for(c=0,s=f;s<i+m;s++)u=(d=r[s]+c)&n,r[s]=u,c=(d-u)*o;r[s]=c,f+=31}return r.length=m+h,r}function x(t,o,i,a,s,l){var c,u,p,m,f,g,b,C=h(t)+1,S=h(o)+1;if(C<S)return d(t,0,a,0,t.length),a.length=t.length,v(a),i[0]=0,void(i.length=1);if(0===S||1===S&&0===o[S-1])throw new Error("Division by zero.");if(1===S){for(f=o[0],u=0,b=C-1;b>=0;b--)m=u*r+t[b],i[b]=m/f&n,u=m-i[b]*f&n;return i.length=C,v(i),a[0]=u,void(a.length=1)}var x=23-function(t){for(var n=0,r=0;r<e;r++)n=Math.max(n,-(t>>>r&1)&r);return n}(o[S-1]),k=s||[];k.length=S,y(o,k,x,S);var P=l||[];for(P.length=C,y(t,P,x,C),P[C]=P[C]||0,i.length=C-S+1,a.length=S,b=C-S;b>=0;b--){for(c=Math.floor((P[b+S]*r+P[b+S-1])/k[S-1]),u=P[b+S]*r+P[b+S-1]-c*k[S-1];(c>=r||c*k[S-2]>u*r+P[b+S-2])&&(c-=1,(u+=k[S-1])<r););for(p=0,g=0;g<S;g++)m=c*k[g],f=P[g+b]-p-(m&n),P[g+b]=f&n,p=Math.floor(m/r)-Math.floor(f/r);if(f=P[b+S]-p,P[b+S]=f&n,i[b]=c&n,f<0){for(i[b]=i[b]-1,p=0,g=0;g<S;g++)f=P[g+b]+k[g]+p,P[g+b]=f&n,p=f>>e;P[b+S]=P[b+S]+p&n}}for(g=0;g<S;g++)a[g]=(P[g]>>>x|P[g+1]<<e-x)&n;v(i),v(a)}function k(e,t,n,r,o){var i;if(u(e))return d(t,0,o,0,t.length),o.length=t.length,0;if(u(t))return d(e,0,o,0,e.length),o.length=e.length,0;f(e,t)<0?(i=e.slice(0),d(t,0,o,0,t.length),o.length=t.length):(i=t.slice(0),d(e,0,o,0,e.length),o.length=e.length),v(o),v(i);var a,s,l=new Array(o.length),c=new Array(o.length),p=new Array(o.length),m=void 0!==r;m&&((a=new Array(o.length))[0]=1,a.length=1,r[0]=0,r.length=1);var h=new Array(o.length),g=void 0!==n;g&&((s=new Array(o.length))[0]=0,s.length=1,n[0]=1,n.length=1);for(var y,C=-1,k=n,P=r,I=o;!u(i);)x(o,i,l,c,h,p),g&&(S(l,s,h),b(h,n,h),v(h),y=n,n=s,s=h,h=y),m&&(S(l,a,p),b(p,r,p),v(p),y=r,r=a,a=p,p=y),y=o,o=i,i=c,c=y,C++;return g&&(d(n,0,k,0,n.length),k.length=n.length),m&&(d(r,0,P,0,r.length),P.length=r.length),d(o,0,I,0,o.length),I.length=o.length,C}function P(e,t,n,r){if(r=r||[],0===f(t,s))r[0]=1;else if(0===f(t,l))d(e,0,r,0,e.length),r.length=e.length;else{var o=new I(n);v(e,o.s,!0),o.modExp(e,t,r),r.length=n.length}return r}function I(t,r){function i(t){for(var r=1,o=2,i=3,a=i&t,s=2;s<=e;s+=1)o<a&&(r+=o),o<<=1,a=t*r&(i=i<<1|1);return 1+(~r&n)}function a(e,t,r,i){for(var a,s,d,u,p,m,h,f,v=(i=i||this).m,y=v.length,b=i.mPrime,C=i.m0,S=0,x=0,k=c(y+2);S<y;){for(x=Math.min(y,x+16);S<x;){for(a=~~t[S],d=((s=k[0]+e[0]*a)&n)*b&n,k[1]+=(C*d+s)*o|0,u=1,p=0;u<y;p=u,u+=1)k[p]=k[u]+v[u]*d+e[u]*a;k[p]=k[u],k[u]=0,S++}for(f=0,u=0;u<y;u++)h=(m=k[u]+f)&n,k[u]=h,f=(m-h)*o;k[u]=f}for(S=0;S<y;S+=1)r[S]=k[S];r.length=y;var P=+(g.compareDigits(k,v)>0);g.subtract(r,v,i.temp2),l(P,r,i.temp2)}function s(e,t,n){var r,o,i,a,s;for(r=0;r<e[0].length;r++)n[r]=0;for(o=0;o<e.length;o++)for(a=e[o],i=-(t===o),s=0;s<a.length;s++)n[s]=n[s]|a[s]&i}function l(e,t,n){for(var r=-e,o=~r,i=0;i<t.length;i++)t[i]=t[i]&o|n[i]&r}r=r||function(e){var t=e.length,n=e[0],r={m:e,mPrime:i(n),m0:n,temp1:c(2*t+1),temp2:c(2*t+1)},o=c(2*e.length);o[o.length]=1,r.mu=[],x(o,e,r.mu,[]);var s=c(2*t+1),l=c(t+1),d=c(2*t+1),u=c(2*t+1),p=l;p[t]=1,x(p,e,s,l,d,u),r.rModM=v(l,t,!0);var m=c(2*t+1),h=m;return h[2*t]=1,x(h,e,s,m,d,u),r.rSquaredModm=v(m,t,!0),r.rCubedModm=c(t),a(m,m,r.rCubedModm,r),r}(t);var d=r.m,u=r.mu,p=r.m0,m=d.length,h=c(m+1).slice(0,m);h[0]=1;var y=r.mPrime,b=r.rModM,k=r.rSquaredModm,P=r.rCubedModm,I=c(2*m+1),w=c(2*m+1),E=new Array(4);return E[0]=b,E[1]=new Array(m),E[2]=new Array(m),E[3]=new Array(m),{m:d,m0:p,mPrime:y,mu:u,rSquaredModm:k,s:m,rModM:b,rCubedModm:P,one:h,temp1:I,temp2:w,convertToMontgomeryForm:function(e){if(e.length<this.s){e.length=this.s;for(var t=0;t<this.s;t++)e[t]=isNaN(e[t])?0:e[t]}var n=c(e.length);for(this.montgomeryMultiply(e,this.rSquaredModm,n),t=0;t<this.s;t+=1)e[t]=n[t]},convertToStandardForm:function(e){this.montgomeryMultiply(e,this.one,this.temp1);for(var t=0;t<this.s;t+=1)e[t]=this.temp1[t]},montgomeryMultiply:a,modExp:function(t,n,r,o){o=!!o;var i,a,l=function(t){var n,r,o=2,i=t*e;r=4+3*Math.ceil(i/2)+1;do{o++,n=r,r=Math.pow(2,o)+Math.ceil(i/o)*(o+1)+1}while(r<n);return o-1}(n.length),c=function(t,n){var r,o=t.length,i=(new Array(o*e),0),a=0,s=0,l=0,c=new Array(Math.ceil(o*e/n));for(s=0,c[0]=0;i<o;i++)for(a=0,r=t[i];a<e;a++,r>>>=1)s===n&&(c[++l]=0,s=0),c[l]+=(1&r)<<s++;return c}(n,l).reverse(),d=this.rModM.slice(0),u=Math.pow(2,l),p=E;for(p.length=u,p[0]=this.rModM,i=1;i<u;i++)p[i]=[],S(p[i-1],t,p[i]),this.reduce(p[i]);var m,h=[];for(i=0;i<c.length;i++){for(a=0;a<l;a++)this.montgomeryMultiply(d,d,d);m=c[i],o?h=p[m]:s(p,m,h),this.montgomeryMultiply(d,h,d)}return this.montgomeryMultiply(d,this.one,r),r},reduce:function(e,t){var n,r,o,i,a,s,c=this.m.length,u=[];for(t=t||e,n=[],S(e.slice(c-1),this.mu,n),r=n.slice(c+1),o=e.slice(0,c+1),S(r,d,i=[]),i=i.slice(0,c+1),o[c+1]=f(o,i)>>>31,a=0;a<t.length;a++)t[a]=0;C(o,i,t),s=+(f(t,d)>0),g.subtract(t,d,u),l(s,t,u),v(t)},ctx:r}}return{DIGIT_BITS:e,DIGIT_NUM_BYTES:t,DIGIT_MASK:n,DIGIT_BASE:r,DIGIT_MAX:16777215,Zero:s,One:l,normalizeDigitArray:v,bytesToDigits:p,stringToDigits:function(e,t){e=e.replace(/^\s+|\s+$/g,"");var n=[0],r=[0];t=t||10;for(var o=0;o<e.length;o+=1){var i=parseInt(e[o],t);if(isNaN(i))throw new Error("Failed to convert string to integer in radix "+t.toString());S(n,t,r),b(r,[i],n),v(n)}return n},digitsToString:function(e,t){if(r<=(t=t||10))throw new Error("DIGIT_BASE is smaller than RADIX; cannot convert.");var n,o=e.length,i=[],a=[],s=[],l=[],c=[],d=[],u="",p="0";for(c[0]=t;Math.floor(r/c[0])>=t;)c[0]=c[0]*t,p=p.concat("0");for(n=0;n<o;n+=1)d[n]=e[n];for(;;){var m=!0;for(n=0;n<d.length;n+=1)if(0!==d[n]){m=!1;break}if(m)break;x(d,c,i,a,s,l),v(i,d.length,!0);var h=a[0].toString(t);u=p.substring(0,p.length-h.length)+h+u;var f=d;d=i,i=f}for(;0!==u.length&&"0"===u[0];)u=u.substring(1,u.length);return 0===u.length&&(u="0"),u},intToDigits:m,digitsToBytes:function(e,n,r){var o,i,a,s=[0];for("undefined"===typeof n&&(n=!0),o=0;o<e.length;o+=1)for(a=e[o],i=0;i<t;i+=1)s[o*t+i]=255&a,a=Math.floor(a/256);if(s.reverse(),void 0===r&&(r=1),n)for(;s.length>r&&0===s[0];)s.shift();return s},isZero:u,isEven:function(e){return 0===(1&e[0])},shiftRight:function(t,r,o,i){if(void 0===o)o=1;else if(o>=e||o<0)throw new Error("Invalid bit count for shiftRight");void 0===i&&(i=t.length);for(var a=i-1,s=e-o,l=0;l<a;l++)r[l]=(t[l+1]<<s|t[l]>>>o)&n;r[a]=t[a]>>>o},shiftLeft:y,compareDigits:f,bitLength:function(e){for(var t=0,n=0;t<e.length;){if(0===n)for(var r=7;r>=0&&0===n;){var o=1<<r;(e[t]&o)===o&&(n=r+1),r--}else n+=8;t+=1}return n},fixedWindowRecode:function(e,t,n){e=e.slice();for(var r=[],o=Math.pow(2,t),i=Math.pow(2,t-1),a=0;a<n;a++)r[a]=e[0]%o-i,e[0]=e[0]-r[a],g.shiftRight(e,e,t-1);return r[a]=e[0],r},IntegerGroup:function(t){var r=p(t),o=r.length,i=m(0,o),a=m(1,o),s=c(o),l=c(o);function d(e,t){return{m_digits:e,m_group:t,equals:function(e){return 0===f(this.m_digits,e.m_digits)&&this.m_group.equals(this.m_group,e.m_group)}}}return{m_modulus:r,m_digitWidth:o,montmul:new I(r),createElementFromInteger:function(e){return d(m(e,this.m_digitWidth),this)},createElementFromBytes:function(e){var t=p(e);if(g.compareDigits(t,this.m_modulus)>=0)throw new Error("The number provided is not an element of this group");return v(t,this.m_digitWidth,!0),d(t,this)},createElementFromDigits:function(e){return g.normalizeDigitArray(e,this.m_digitWidth,!0),d(e,this)},equals:function(e){return 0===f(this.m_modulus,e.m_modulus)},add:function(t,r,o){var i,a=this.m_digitWidth,s=o.m_digits;g.add(t.m_digits,r.m_digits,s);var l=(f(s,this.m_modulus)>>>31)-1&n,c=0;for(i=0;i<a;i+=1)c=s[i]-(this.m_modulus[i]&l)+c,s[i]=c&n,c>>=e;s.length=a},subtract:function(t,r,o){var i,a=this.m_digitWidth,s=o.m_digits,l=g.subtract(t.m_digits,r.m_digits,o.m_digits);if(-1===l)for(l=0,i=0;i<a;i+=1)l+=s[i]+this.m_modulus[i],s[i]=l&n,l>>=e},multiply:function(e,t,n){return g.modMul(e.m_digits,t.m_digits,this.m_modulus,n.m_digits,s,l)},inverse:function(e,t){g.modInv(e.m_digits,this.m_modulus,t.m_digits)},modexp:function(e,t,n){if(n=n||d([],this),0===f(t,i))n.m_digits=m(1,this.m_digitWidth);else if(0===f(t,a)){for(var r=0;r<e.m_digits.length;r++)n.m_digits[r]=e.m_digits[r];n.m_digits.length=e.m_digits.length}else this.montmul.modExp(e.m_digits,t,n.m_digits),n.m_digits.length=this.montmul.s;return n}}},add:b,subtract:C,multiply:S,divRem:x,reduce:function(e,t,n,r,o){return x(e,t,[],n,r,o),n},modInv:function(e,t,n,r){var o=new Array(t.length),i=new Array(t.length),a=new Array(t.length),s=k(e,t,i,o,a);return n=n||[],0!==f(a,l)?(n[0]=NaN,n.length=1):(1===(1&s)?C(t,o,n):(d(o,0,n,0,o.length),n.length=o.length),r?v(n,t.length,!0):v(n)),n},modInvCT:function(e,t,n,r){var o=[];return n=n||[],C(t,[2],o),P(e,o,t,n),v(n),n},modExp:P,modMul:function(e,t,n,r,o,i){var a=[];return S(e,t,a),x(a,n,a,r,o,i),r},MontgomeryMultiplier:I,gcd:function(e,t,n){var r=e,o=t;return f(e,t)>0&&(r=t,o=e),k(r,o,void 0,void 0,n),v(n)},sequenceEqual:function(e,t){for(var n=e.length===t.length,r=0;r<Math.min(e.length,t.length);r+=1)e[r]!==t[r]&&(n=!1);return n},swapEndianness:function(e){return e.reverse()},computeBitArray:function(e){for(var t=c(8*e.length),n=0,r=e.length-1;r>=0;){for(var o=0;o<8;){var i=1<<o,a=(e[r]&i)===i?1:0,s=8*(e.length-r-1)+o;1===a&&(n=s+1),t[s]=a,o+=1}r--}return t.slice(0,n)}}}(),v=v||function(){var e=g.bytesToDigits;function t(e){var t,n=null;if(arguments.length&&"number"!==typeof arguments[0]){if("object"===typeof arguments[0])for(n=[],t=0;t<e.length;t+=1)n[t]=e[t]}else for(n=[],t=0;t<e;t+=1)n[t]=0;return n}var n=function(e,t,n,o,i,a){var s=e.length;return{p:e,a:t,b:n,order:o,generator:r(this,!1,i,a,null,!1),allocatePointStorage:function(){return r(this,!1,g.intToDigits(0,s),g.intToDigits(0,s))},createPointAtInfinity:function(){return r(this,!0,g.intToDigits(0,s),g.intToDigits(0,s))}}},r=function e(n,r,o,i,a,s){var c;return"undefined"===typeof a&&(a=null),"undefined"===typeof s&&(s=!1),d(c={equals:function(e){return function(e){return!!e&&(!(!c.isInfinity||!e.isInfinity)||(null!==c.z||null===e.z)&&(null===c.z||null!==e.z)&&(null===c.z?0===g.compareDigits(c.x,e.x)&&0===g.compareDigits(c.y,e.y)&&c.isInMontgomeryForm===e.isInMontgomeryForm:0===g.compareDigits(c.x,e.x)&&0===g.compareDigits(c.y,e.y)&&0===g.compareDigits(c.z,e.z)&&c.isInMontgomeryForm===e.isInMontgomeryForm))}(e)},copy:function(e){!function(e,t){if(t.curve=e.curve,t.x=e.x.slice(),t.y=e.y.slice(),null!==e.z?t.z=e.z.slice():t.z=null,l||(t.isAffine=e.isAffine),t.isInMontgomeryForm=e.isInMontgomeryForm,t.isInfinity=e.isInfinity,!t.equals(e))throw new Error("Instances should be equal.")}(this,e)},clone:function(){return function(){var n=e(c.curve,c.isInfinity,t(c.x),t(c.y),c.z?t(c.z):null,c.isInMontgomeryForm);return c.ta&&(n.ta=t(c.ta)),c.tb&&(n.tb=t(c.tb)),n}()}},"curve",n,(function(){return n}),(function(e){n=e})),d(c,"x",o,(function(){return o}),(function(e){o=e})),d(c,"y",i,(function(){return i}),(function(e){i=e})),d(c,"z",a,(function(){return a}),(function(e){a=e})),d(c,"isInMontgomeryForm",s,(function(){return s}),(function(e){s=e})),d(c,"isInfinity",r,(function(){return r}),(function(e){r=e})),d(c,"isAffine",null===a,(function(){return null===a})),c},o=function(e){var n=1===e.type,r=e.p.length,o=g.MontgomeryMultiplier(e.p),a=e.a.slice();o.convertToMontgomeryForm(a);var s=g.isZero(e.a),c=g.One,d=t(r);d[0]=1,o.convertToMontgomeryForm(d);var u=g.IntegerGroup(g.digitsToBytes(o.m),!0),p=t(r),m=t(r),h=t(r),f=t(r),v=t(r),y=t(r),b=t(r),C=t(r),S=t(r),x=t(r),k=t(r),P=t(r);function I(e,t,n){var r=u.createElementFromInteger(0);r.m_digits=n,u.subtract(u.createElementFromDigits(e),u.createElementFromDigits(t),r)}function w(e,t,n){var r=u.createElementFromInteger(0);r.m_digits=n,u.add(u.createElementFromDigits(e),u.createElementFromDigits(t),r)}function E(t,n){var r=t.length,o=e.p;if(1===(1&t[0])){for(var i=0,a=0;a<r;a+=1)i+=t[a]+o[a],n[a]=i&g.DIGIT_MASK,i>>>=g.DIGIT_BITS;i<<=g.DIGIT_BITS-1,g.shiftRight(n,n),n[r-1]|=i}else g.shiftRight(t,n)}function _(e,t,n){o.montgomeryMultiply(e,t,n)}function D(e,t){o.montgomeryMultiply(e,e,t)}function T(e,t){var n=t.clone();if(O(n),!V(n))throw new Error("Invalid Parameter");var r=t.clone();L(r);var o,i=[t.clone()],a=r.clone(),s=r.clone();R(r,s),B(s);for(var l=1;l<Math.pow(2,e-2);l++)M(a,s,a),B(o=a.clone()),i[l]=o;return i}function R(e,t){if("undefined"===typeof e)throw new Error("point undefined");if("undefined"===typeof t)throw new Error("outputPoint undefined");if(e.isAffine)throw new Error("Given point was in Affine form. Use convertToJacobian() first.");if(!e.isInMontgomeryForm)throw new Error("Given point must be in Montgomery form. Use montgomeryize() first.");s?function(e,t){if(e.isInfinity)t.isInfinity=!0;else{D(e.y,f),D(e.x,v),w(v,v,p),w(p,v,v),_(e.x,f,y),D(f,p),E(v,m),D(m,f),_(e.y,e.z,S);for(var n=0;n<S.length;n+=1)t.z[n]=S[n];I(f,y,t.x),I(t.x,y,t.x),I(y,t.x,v),_(m,v,h),I(h,p,t.y),t.isInfinity=!1,t.isInMontgomeryForm=!0}}(e,t):function(e,t){e.isInfinity?t.isInfinity=!0:(D(e.z,m),_(e.z,e.y,v),w(e.x,m,h),I(e.x,m,m),t.z=v.slice(),_(m,h,f),E(f,h),w(f,h,m),D(e.y,h),D(m,v),_(e.x,h,f),I(v,f,v),I(v,f,t.x),I(f,t.x,v),D(h,f),_(m,v,h),I(h,f,t.y),t.isInfinity=!1,t.isInMontgomeryForm=!0)}(e,t)}function A(e,t,n){if(e.isInfinity)return t.copy(n),void this.convertToJacobianForm(n);if(t.isInfinity)e.copy(n);else{if(D(e.z,y),_(e.z,y,b),_(t.x,y,v),_(t.y,b,y),I(v,e.x,m),I(y,e.y,h),g.isZero(m))return g.isZero(h)?(R(e,n),void M(n,t,n)):(n.x=e.x.slice(0),n.y=e.y.slice(0),void(n.z=e.z.slice(0)));if(D(h,v),D(m,b),_(b,e.x,y),_(m,b,p),I(v,y,f),I(f,y,f),_(e.z,m,v),I(f,y,f),_(p,e.y,b),I(f,p,f),g.isZero(f)){for(i=0;i<n.x.length;i++)n.x[i]=0,n.y[i]=0,n.z[i]=0;n.y[0]=1}else w(b,b,m),_(v,f,n.z),_(h,f,v),D(f,p),w(m,v,m),_(p,y,v),D(m,C),_(p,f,y),I(C,v,n.x),I(n.x,v,n.x),I(n.x,y,n.x),I(n.x,v,f),_(y,b,p),_(m,f,v),I(v,p,n.y),n.isInfinity=!1,n.isInMontgomeryForm=!0}}function M(e,t,n){if(null===e)throw new Error("jacobianPoint");if(null===t)throw new Error("affinePoint");if(null===n)throw new Error("outputPoint");if(e.curve!==t.curve||e.curve!==n.curve)throw new Error("All points must be from the same curve object.");if(e.isAffine)throw new Error("Given jacobianPoint was in Affine form. Use ConvertToJacobian()                     before calling DoubleJacobianAddAffinePoints().");if(!t.isAffine)throw new Error("Given affinePoint was in Jacobian form. Use ConvertToAffine() before                      calling DoubleJacobianAddAffinePoints().");if(n.isAffine)throw new Error("Given jacobianPoint was in Jacobian form. Use ConvertToJacobian() before                      calling DoubleJacobianAddAffinePoints().");if(!e.isInMontgomeryForm)throw new Error("Jacobian point must be in Montgomery form");if(!t.isInMontgomeryForm)throw new Error("Affine point must be in Montgomery form");if(e.isInfinity)return t.copy(n),void this.convertToJacobianForm(n);if(t.isInfinity)e.copy(n);else{var o;for(D(e.z,m),_(m,e.z,h),_(m,t.x,f),_(h,t.y,v),I(f,e.x,m),I(v,e.y,h),o=0;o<m.length;o+=1)if(0!==m[o]){_(e.z,m,p);for(var i=0;i<r;i+=1)n.z[i]=p[i];return D(m,f),_(f,m,v),_(f,e.x,y),w(y,y,m),D(h,n.x),I(n.x,m,n.x),I(n.x,v,n.x),I(y,n.x,f),_(h,f,y),_(e.y,v,b),I(y,b,n.y),n.isInfinity=!1,void(n.isInMontgomeryForm=!0)}for(o=0;o<h.length;o+=1)if(0!==h[o])return n.isInfinity=!0,void(n.isInMontgomeryForm=!0);t.copy(n),this.convertToJacobianForm(n),this.double(n,n),n.isInMontgomeryForm=!0}}function N(t,n,o,i){if(n.isInfinity||g.isZero(t))o.isInfinity=!0;else{if(g.compareDigits(t,e.order)>=0)throw new Error("The scalar k must be in the range 1 <= k < order.");if(t=t.slice(),1===n.curve.type){var a="undefined"!==typeof n.ta;a||U(n),function(e,t,n,o){if(!z(t))throw new Error("Invalid Parameter");var i=t.curve.rbits;o="undefined"===typeof o||o;var a,s,l=r<=8?5:6,c=Math.floor((i+(l-2))/(l-1));e=e.slice();var d=t.clone();U(d),o&&(G(d,d),G(d,d));var u=W(1<<l-2,d),p=1&e[0],m=[];for(I(t.curve.order,e,m),a=0;a<e.length;a++)e[a]=p-1&(e[a]^m[a])^e[a];var h=g.fixedWindowRecode(e,l,c),f=Math.floor(Math.abs(h[c])-1)/2,v=u[f];for(d.x=v.x.slice(),d.y=v.y.slice(),d.z=v.z.slice(),a=c-1;a>=0;a--){for(s=0;s<l-1;s++)G(d,d);var y=K(u,f=Math.floor((Math.abs(h[a])-1)/2)),b=-(h[a]>>>31);I(t.curve.p,y.x,m);for(var C=0;C<y.x.length;C++)y.x[C]=y.x[C]&~b|m[C]&b;for(I(t.curve.p,y.td,m),C=0;C<y.td.length;C++)y.td[C]=y.td[C]&~b|m[C]&b;Y(y,d,d)}for(I(t.curve.p,d.x,m),a=0;a<d.x.length;a++)d.x[a]=p-1&(d.x[a]^m[a])^d.x[a];j(d),n.x=d.x.slice(),n.y=d.y.slice()}(t,n,o,i),a||j(n)}else{var s=n.isInMontgomeryForm,l=o.isInMontgomeryForm,c=o.isAffine;s||H(n),l||H(o),function(e,t,n){var o=t.clone();if(O(o),!V(o))throw new Error("Invalid Parameters.");var i=1&e[0],a=[];for(I(t.curve.order,e,a),h=0;h<e.length;h++)e[h]=i-1&(e[h]^a[h])^e[h];var s=r<=8?5:6,l=t.curve.p.length*g.DIGIT_BITS,c=Math.ceil(l/(s-1)),d=g.fixedWindowRecode(e,s,c),u=T(s,t),p=Math.floor(Math.abs(d[c])-1)/2,m=u[p].clone();L(m);for(var h=c-1;h>=0;h--){for(var f=0;f<s-2;f++)R(m,m);var v=F(u,p=Math.floor((Math.abs(d[h])-1)/2));I(v.curve.p,v.y,a);for(var y=-(d[h]>>>31),b=0;b<v.y.length;b++)v.y[b]=v.y[b]&~y|a[b]&y;A(m,v,m)}for(I(t.curve.p,m.y,a),h=0;h<m.y.length;h++)m.y[h]=i-1&(m.y[h]^a[h])^m.y[h];m.copy(n)}(t,n,o),c&&B(o),s||O(n),l||O(o)}}}function F(e,t){for(var n,r,o=0;o<e.length;o++)n=+(o===t),r=[r,e[o].clone()][n];return r}function H(e){if(e.isInMontgomeryForm)throw new Error("The given point is already in Montgomery form.");e.isInfinity||(o.convertToMontgomeryForm(e.x),o.convertToMontgomeryForm(e.y),null!==e.z&&o.convertToMontgomeryForm(e.z),"undefined"!==typeof e.ta&&(o.convertToMontgomeryForm(e.ta),o.convertToMontgomeryForm(e.tb))),e.isInMontgomeryForm=!0}function O(e){if(!e.isInMontgomeryForm)throw new Error("The given point is not in montgomery form.");e.isInfinity||(o.convertToStandardForm(e.x),o.convertToStandardForm(e.y),null!==e.z&&o.convertToStandardForm(e.z),"undefined"!==typeof e.ta&&(o.convertToStandardForm(e.ta),o.convertToStandardForm(e.tb))),e.isInMontgomeryForm=!1}function B(t){if(t.isInfinity)return t.z=null,void(l||(t.isAffine=!0));if(g.modInv(t.z,e.p,P,!0),t.isInMontgomeryForm){_(P,o.rCubedModm,k);var n=P;P=k,k=n}D(P,x),_(t.x,x,k);for(var i=0;i<r;i+=1)t.x[i]=k[i];_(t.y,x,k),_(k,P,t.y),t.z=null,delete t.ta,delete t.tb,l||(t.isAffine=!0)}function L(e){if(!e.isAffine)throw new Error("The given point is not in Affine form.");l||(e.isAffine=!1);var n,r,o=e.isInMontgomeryForm?d:c;for(n=t(o.length),r=0;r<o.length;r+=1)n[r]=o[r];e.z=n}function V(e){return!e.isInfinity&&(g.modMul(e.y,e.y,e.curve.p,m),g.modMul(e.x,e.x,e.curve.p,h),g.modMul(e.x,h,e.curve.p,f),w(f,e.curve.b,h),g.modMul(e.x,e.curve.a,e.curve.p,f),w(h,f,h),I(m,h,m),!1!==g.isZero(m))}function z(e){return e.ta&&j(e=e.clone()),g.modMul(e.y,e.y,e.curve.p,f),g.modMul(e.x,e.x,e.curve.p,h),g.add(h,f,m),g.reduce(v,e.curve.p,v),g.modMul(h,f,e.curve.p,v),g.modMul(e.curve.d,v,e.curve.p,f),g.add(f,[1],h),g.reduce(h,e.curve.p,h),g.subtract(m,h,m),!1!==g.isZero(m)||(g.reduce(m,e.curve.p,m),!1!==g.isZero(m))}function W(e,t){var n=t.clone(),r=n.clone(),o=[];o[0]=q(t),G(n,n),r=q(n),n=t.clone();for(var i=1;i<e;i++)Y(r,n,n),o[i]=q(n);return o}function U(e){e.ta=e.x.slice(),e.tb=e.y.slice(),e.z=[1]}function K(e,t){for(var n=(t+1)%e.length,r=0;r<e.length;r++){var o={x:e[n].x.slice(),y:e[n].y.slice(),z:e[n].z.slice(),td:e[n].td.slice()};n=(n+1)%e.length}return o}function j(t){g.modInv(t.z,e.p,P,!0),g.modMul(t.x,P,e.p,t.x),g.modMul(t.y,P,e.p,t.y),delete t.ta,delete t.tb,t.z=null}function G(e,t){if("undefined"===typeof e.ta)throw new Error("Point should be in Extended Projective form.");g.modMul(e.x,e.x,e.curve.p,p),g.modMul(e.y,e.y,e.curve.p,m),g.modMul(e.z,e.z,e.curve.p,e.ta),I(m,p,t.tb),w(p,m,p),w(e.ta,e.ta,e.ta),w(e.y,e.y,e.y),I(e.ta,p,m),g.modMul(e.x,e.y,e.curve.p,t.ta),g.modMul(p,t.tb,e.curve.p,t.y),g.modMul(m,t.ta,e.curve.p,t.x),g.modMul(p,m,e.curve.p,t.z)}function q(e){var t=e.curve,n=t.p,r={x:e.x.slice(),y:e.y.slice(),z:e.z.slice(),td:[],curve:e.curve};return g.modMul(e.ta,e.tb,n,x),g.modMul(x,t.d,n,r.td),r}function Y(e,t,n){var r=g,o=t.curve.p;m=[],h=[],f=[],r.modMul(t.z,e.z,o,f),r.modMul(t.ta,t.tb,o,m),w(t.x,t.y,t.ta),r.modMul(m,e.td,o,h),w(e.x,e.y,t.tb),I(f,h,m),w(f,h,f),r.modMul(t.ta,t.tb,o,h),r.modMul(t.x,e.x,o,t.z),r.modMul(t.y,e.y,o,t.x),I(h,t.z,h),I(t.x,t.z,n.ta),I(h,t.x,n.tb),r.modMul(n.ta,f,o,n.y),r.modMul(n.tb,m,o,n.x),r.modMul(f,m,o,n.z)}var Z={convertToMontgomeryForm:H,convertToStandardForm:O,convertToAffineForm:B,convertToJacobianForm:L,generatePrecomputationTable:function(e,t){return T(e,t)}};return n?(Z.double=G,Z.add=function(e,t,n){if("undefined"===typeof e.ta)throw new Error("Point1 should be in Extended Projective form.");if("undefined"===typeof t.ta)throw new Error("Point2 should be in Extended Projective form.");Y(q(e),t,n)},Z.scalarMultiply=N,Z.normalize=j,Z.convertToExtendedProjective=U,Z.convertTedToWeierstrass=function(e,t){var n=e.curve.a.slice(),r=e.curve.d.slice(),o=e.curve.p,i=g.modMul,a=g.modInv;i(n,m=[5],o,h),I(h,r,h),i(r,m,o,f),I(n,f,m),i(e.y,m,o,f),w(f,h,h),I(m=[1],e.y,f),i(m=[12],f,o,v),a(v,o,v,!0),i(e.x,f,o,m),w(m,m,f),w(f,f,f),a(f,o,f,!0),i(v,h,o,t.x),m=[1],w(e.y,m,m),I(n,r,h),i(m,h,o,v),i(v,f,o,t.y)},Z.convertWeierstrassToTed=function(e,t){var n=t.curve.a.slice(),r=t.curve.d.slice(),o=t.curve.p,i=g.modMul,a=g.modInv;w(e.x,e.x,m),w(e.x,m,m),w(m,m,m),I(m,n,h),I(h,r,h),w(e.y,e.y,f),w(e.y,f,f),w(f,f,f),a(f,o,f,!0),i(h,f,o,t.x),w(m,m,m),w(m,r,h),w(m,n,m),w(n,n,f),I(h,f,h),I(h,f,h),I(h,n,h),w(r,r,f),I(m,f,m),I(m,f,m),I(m,r,m),a(m,o,m,!0),i(m,h,o,t.y)},Z.validatePoint=z,Z.generatePrecomputationTable=function(e,t){return W(e,t)}):(Z.double=R,Z.mixedDoubleAdd=A,Z.mixedAdd=M,Z.scalarMultiply=N,Z.negate=function(e,t){e!==t&&e.copy(t),I(e.curve.p,e.y,t.y)},Z.validatePoint=V),Z},a={},s=function(t){var r=a[t.toUpperCase()];if(!r)throw new Error(t+" Unsupported curve.");if(0===r.type)return function(t){var r=new n(e(t.p),e(t.a),e(t.b),e(t.order),e(t.gx),e(t.gy));return r.type=t.type,r.name=t.name,r.generator.curve=r,r}(r);if(1===r.type)return function(t){var r=new n(e(t.p),e(t.a),e(t.d),e(t.order),e(t.gx),e(t.gy));return r.type=t.type,1===r.type&&(r.d=r.b.slice(),delete r.b),r.rbits=t.info[2],r.name=t.name,r.generator.curve=r,r}(r);throw new Error(t+" Unsupported curve type.")};return{createCurve:s,curves:a,sec1EncodingFp:function(){return{encodePoint:function(e){if(!e)throw new Error("point");if(!e.isAffine)throw new Error("Point must be in affine form.");if(e.isInMontgomeryForm)throw new Error("Point must not be in Montgomery form.");if(e.isInfinity)return t(1);var n=g.digitsToBytes(e.x),r=g.digitsToBytes(e.y),o=g.digitsToBytes(e.curve.p).length;if(o<n.length||o<r.length)throw new Error("Point coordinate(s) are bigger than the field order.");var i=t(2*o+1);i[0]=4;for(var a=o-n.length,s=0;s<n.length;s++)i[s+1+a]=n[s];for(a=o-r.length,s=0;s<r.length;s++)i[o+s+1+a]=r[s];return i},decodePoint:function(e,n){if(e.length<1)throw new Error("Byte array must have non-zero length");var o=g.digitsToBytes(n.p).length;if(0===e[0]&&1===e.length)return n.createPointAtInfinity();if(4===e[0]&&e.length===1+2*o){for(var i=t(o),a=t(o),s=0;s<o;s++)i[s]=e[s+1],a[s]=e[o+s+1];var l=g.bytesToDigits(i),c=g.bytesToDigits(a);return r(n,!1,l,c)}throw new Error("Unsupported encoding format")}}},validatePoint:function(t,n,i,a){var l=s(t),c=new r(l,!1,e(n),e(i),a&&e(a),!1);return new o(l).validatePoint(c)},EllipticCurvePointFp:r,EllipticCurveOperatorFp:o,ModularSquareRootSolver:function(e){var t=e,n=[];if("undefined"===typeof e)throw new Error("modulus");if(g.isEven(e))throw new Error("Only odd moduli are supported");var r=g.MontgomeryMultiplier(t);t[0]%4===3?(g.add(t,g.One,n),g.shiftRight(n,n,2)):n=null;var o=new Array(t.length),i=new Array(t.length);return{squareRoot:function(e){if(null!==n)return function(e){var t=g.intToDigits(0,16);r.modExp(e,n,t);var o=[0];return g.modMul(t,t,r.m,o),0!==g.compareDigits(e,o)?null:t}(e);throw new Error("GeneralCase not supported.")},jacobiSymbol:function(e){var n,r;n=e.slice(),r=t.slice(),g.reduce(n,r,n,o,i);for(var a=1;!g.isZero(n);){for(;g.isEven(n);){g.shiftRight(n,n);var s=7&r[0];3!==s&&5!==s||(a=-a)}var l=n;n=r,r=l;var c=3&n[0],d=3&r[0];3===c&&3===d&&(a=-a),g.reduce(n,r,n,o,i)}return 0===g.compareDigits(r,g.One)?a:0}}}}}();"undefined"!==typeof v&&(v.curves["P-256"]={name:"P-256",type:0,p:[255,255,255,255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,255],a:[255,255,255,255,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,255,255,255,255,255,255,252],b:[90,198,53,216,170,58,147,231,179,235,189,85,118,152,134,188,101,29,6,176,204,83,176,246,59,206,60,62,39,210,96,75],order:[255,255,255,255,0,0,0,0,255,255,255,255,255,255,255,255,188,230,250,173,167,23,158,132,243,185,202,194,252,99,37,81],gx:[107,23,209,242,225,44,66,71,248,188,230,229,99,164,64,242,119,3,125,129,45,235,51,160,244,161,57,69,216,152,194,150],gy:[79,227,66,226,254,26,127,155,142,231,235,74,124,15,158,22,43,206,51,87,107,49,94,206,203,182,64,104,55,191,81,245],cf:1},v.curves["P-384"]={name:"P-384",type:0,p:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,255],a:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,254,255,255,255,255,0,0,0,0,0,0,0,0,255,255,255,252],b:[179,49,47,167,226,62,231,228,152,142,5,107,227,248,45,25,24,29,156,110,254,129,65,18,3,20,8,143,80,19,135,90,198,86,57,141,138,46,209,157,42,133,200,237,211,236,42,239],order:[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,199,99,77,129,244,55,45,223,88,26,13,178,72,176,167,122,236,236,25,106,204,197,41,115],gx:[170,135,202,34,190,139,5,55,142,177,199,30,243,32,173,116,110,29,59,98,139,167,155,152,89,247,65,224,130,84,42,56,85,2,242,93,191,85,41,108,58,84,94,56,114,118,10,183],gy:[54,23,222,74,150,38,44,111,93,158,152,191,146,146,220,41,248,244,29,189,40,154,20,124,233,218,49,19,181,240,184,192,10,96,177,206,29,126,129,157,122,67,29,124,144,234,14,95],cf:1},v.curves["P-521"]={name:"P-521",type:0,p:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255],a:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,252],b:[0,81,149,62,185,97,142,28,154,31,146,154,33,160,182,133,64,238,162,218,114,91,153,179,21,243,184,180,137,145,142,241,9,225,86,25,57,81,236,126,147,123,22,82,192,189,59,177,191,7,53,115,223,136,61,44,52,241,239,69,31,212,107,80,63,0],order:[1,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,250,81,134,135,131,191,47,150,107,127,204,1,72,247,9,165,208,59,181,201,184,137,156,71,174,187,111,183,30,145,56,100,9],gx:[0,198,133,142,6,183,4,4,233,205,158,62,203,102,35,149,180,66,156,100,129,57,5,63,181,33,248,40,175,96,107,77,61,186,161,75,94,119,239,231,89,40,254,29,193,39,162,255,168,222,51,72,179,193,133,106,66,155,249,126,126,49,194,229,189,102],gy:[1,24,57,41,106,120,154,59,192,4,92,138,95,180,44,125,27,217,152,245,68,73,87,155,68,104,23,175,189,23,39,62,102,44,151,238,114,153,94,244,38,64,197,80,185,1,63,173,7,97,53,60,112,134,162,114,194,64,136,190,148,118,159,209,102,80],cf:1}),"undefined"!==typeof v&&(v.curves["BN-254"]={name:"BN-254",type:0,p:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,8,97,33,0,0,0,0,0,19,167,0,0,0,0,0,0,19],a:[0],b:[2],order:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,7,255,159,128,0,0,0,0,16,161,0,0,0,0,0,0,13],gx:[37,35,100,130,64,0,0,1,186,52,77,128,0,0,0,8,97,33,0,0,0,0,0,19,167,0,0,0,0,0,0,18],gy:[1],cf:1});var y={info:["numsp256d1",256,256,256],type:0,p:[67,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[64,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[129,85,2].reverse(),order:[37,168,81,71,41,32,171,32,96,92,38,234,117,130,60,228,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[177,172,26,178,30,238,82,188,58,199,212,3,9,155,87,131,9,203,66,79,160,149,122,41,97,219,170,90,182,214,158,188].reverse(),gy:[159,222,132,33,203,185,181,128,187,15,49,21,209,195,85,201,53,224,4,126,247,139,68,115,166,182,153,51,241,192,143,208].reverse(),cf:1},b={info:["numsp256t1",256,255,256],name:"numsp256t1",type:1,p:[67,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1],d:[85,195,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[245,74,221,238,144,177,71,26,155,67,89,47,165,90,149,65,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64].reverse(),gx:[218,19,237,46,144,192,222,160,134,53,8,227,14,138,57,12,214,155,32,105,95,61,30,205,125,35,234,106,251,20,117,138].reverse(),gy:[230,137,138,121,231,22,166,47,211,110,133,16,216,97,95,113,16,128,75,166,217,101,150,206,199,37,217,217,159,62,213,68].reverse(),cf:4},C={info:["numsp384d1",384,384,384],name:"numsp384d1",type:0,p:[195,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[192,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[187,119,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[185,97,14,123,246,129,77,96,122,226,55,76,61,157,218,190,129,104,93,235,30,175,30,214,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[42,21,152,32,4,186,156,235,123,196,97,15,16,237,46,82,66,199,108,42,27,41,189,243,244,249,129,251,205,193,37,2,166,241,5,65,34,202,128,72,28,24,111,177,240,86,121,117].reverse(),gy:[22,7,24,102,236,184,116,92,38,173,244,191,219,180,214,188,126,131,26,18,125,131,32,185,156,115,127,248,119,105,4,176,126,207,132,5,48,61,227,215,56,142,155,225,104,227,222,172].reverse(),cf:1},S={info:["numsp384t1",384,382,384],name:"numsp384t1",type:1,p:[195,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1],d:[159,209,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[125,137,163,230,196,220,185,32,121,200,53,171,90,85,228,97,207,225,107,180,28,26,71,226,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63].reverse(),gx:[222,107,32,108,228,64,213,80,19,148,69,101,177,146,242,111,64,99,49,243,168,255,99,87,0,76,190,229,70,244,11,179,181,93,229,154,18,162,182,192,108,38,169,69,251,17,177,97].reverse(),gy:[146,147,114,240,225,3,141,157,220,72,236,70,249,176,114,0,75,150,69,246,247,152,15,131,86,95,66,241,116,130,173,22,215,13,177,35,164,177,56,135,176,238,166,185,103,62,152,130].reverse(),cf:4},x={info:["numsp512d1",512,512,512],name:"numsp512d1",type:0,p:[199,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[196,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),b:[155,217,1].reverse(),order:[93,85,51,4,57,63,21,206,67,210,124,96,54,139,86,59,198,189,208,151,237,88,194,79,27,131,231,148,251,164,60,91,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),gx:[87,174,171,140,149,135,130,220,226,93,111,125,19,96,93,29,131,21,86,37,134,66,121,147,158,53,107,7,81,161,33,80,249,217,6,83,194,224,6,69,133,246,1,181,59,216,202,152,82,59,61,160,2,112,43,218,147,10,29,20,71,52,192,58].reverse(),gy:[166,39,53,56,96,135,160,35,233,15,253,76,30,92,43,207,2,86,90,178,64,168,33,193,233,237,14,139,218,21,132,162,20,79,209,123,12,38,75,143,140,187,188,171,222,219,151,75,0,177,235,99,220,238,14,206,179,86,173,41,202,84,58,148].reverse(),cf:4},k={info:["numsp512t1",512,510,512],name:"numsp512t1",type:1,p:[199,253,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),a:[1].reverse(),d:[239,203,254,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255].reverse(),order:[109,212,238,27,245,140,70,103,255,236,239,109,120,5,70,42,245,134,182,112,201,216,63,158,186,145,207,47,109,99,240,180,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,63].reverse(),gx:[254,87,236,153,41,171,185,197,21,240,196,124,66,37,229,15,173,4,137,86,146,201,189,120,15,115,70,238,78,193,33,70,71,129,59,39,190,126,161,39,130,163,196,77,159,231,209,47,51,197,211,136,120,203,24,122,156,182,141,18,109,49,142,223].reverse(),gy:[225,245,226,193,192,222,109,50,31,208,241,155,138,211,102,2,253,193,236,42,134,6,26,96,98,53,150,233,242,83,202,32,65,131,158,144,149,107,43,169,34,157,37,216,38,247,118,228,110,37,42,168,119,245,176,152,113,202,73,157,243,191,9,109].reverse(),cf:4};"undefined"!==typeof v&&(v.curves.NUMSP256D1=y,v.curves.NUMSP384D1=C,v.curves.NUMSP512D1=x,v.curves.NUMSP256T1=b,v.curves.NUMSP384T1=S,v.curves.NUMSP512T1=k);var P=function(e,t,n,r,o,i,a){var s=p,l=n.slice(),c=new Array(o),d=[],u=0;function m(e){for(var t=Math.floor(e.length/o),n=0;n<t;n++)i(e,n,l,r,c);return u+=t,e.slice(t*o)}function h(){if(0!==m(function(e){var t=o-e.length%o;t<=o/8&&(t+=o);var n=s.getVector(t);n[0]=128;for(var r=8*(e.length+u*o),i=1;i<=8;i++)n[t-i]=r%256,r=Math.floor(r/256);return e.concat(n)}(d)).length)throw new Error("buffer.length !== 0");var e=function(){for(var e=[],t=0;t<l.length;t++)e=e.concat(s.int32ToBytes(l[t]));return e.length=a/8,e}();return d=[],l=n.slice(),u=0,e}return{name:e,computeHash:function(e){return d=m(e),h()},process:function(e){(d=d.concat(e)).length>=o&&(d=m(d))},finish:h,der:t,hashLen:a,maxMessageSize:4294967295}},I=function(){function e(e,n,r,o,i){var a,s,l,c,d=4294967295,u=r[0],p=r[1],m=r[2],h=r[3],f=r[4];for(s=0;s<16;s++)i[s]=t.bytesToInt32(e,64*n+4*s);for(a=16;a<80;a++)c=i[a-3]^i[a-8]^i[a-14]^i[a-16],i[a]=c<<1|c>>>31;for(s=0;s<80;s++)l=u<<5|u>>>27,l+=s>=60?p^m^h:s>=40?p&m^p&h^m&h:s>=20?p^m^h:p&m^~p&h,l+=f+o[s]+i[s],f=h,h=m,m=p<<30|p>>>2,p=u,u=l;return r[0]+=u&d,r[1]+=p&d,r[2]+=m&d,r[3]+=h&d,r[4]+=f&d,r}var t=p,n=t.unpackData,r=n("Z0UjAe/Nq4mYutz+EDJUdsPS4fA=",4,1),o=n("WoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlagnmZWoJ5mVqCeZlu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroW7Z66Fu2euhbtnroY8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcjxu83I8bvNyPG7zcymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdbKYsHWymLB1spiwdY",4,1),i=n("MCEwCQYFKw4DAhoFAAQU");return{sha1:function(){return P("SHA-1",i,r,o,64,e,160)}}}();"undefined"!==typeof t&&(I.instances={},I.getInstance=function(e){return I.instances[e]||(I.instances[e]=I.sha1())},I.deleteInstance=function(e){I.instances[e]=null,delete I.instances[e]},I.hash=function(e){if("process"!==e.operationSubType)return"finish"===e.operationSubType?I.sha1.finish():I.sha1().computeHash(e.buffer);I.sha1.process(e.buffer)},t.register("digest","SHA-1",I.hash)),u["SHA-1"]=I.sha1;var w=function(){var e=p;function t(t,n,r,o,i){var a,s,l,c,d,u=r[0],p=r[1],m=r[2],h=r[3],f=r[4],g=r[5],v=r[6],y=r[7];for(s=0;s<16;s++)i[s]=e.bytesToInt32(t,64*n+4*s);for(a=16;a<64;a++)c=i[a-15],d=i[a-2],i[a]=((d>>>17|d<<15)^(d>>>19|d<<13)^d>>>10)+i[a-7]+((c>>>7|c<<25)^(c>>>18|c<<14)^c>>>3)+i[a-16],i[a]=4294967295&i[a];for(s=0;s<64;s++)h+=l=y+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&g^~f&v)+o[s]+i[s],l+=((u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10))+(u&(p^m)^p&m),y=v,v=g,g=f,f=h,h=m,m=p,p=u,u=l;return r[0]=r[0]+u>>>0,r[1]=r[1]+p>>>0,r[2]=r[2]+m>>>0,r[3]=r[3]+h>>>0,r[4]=r[4]+f>>>0,r[5]=r[5]+g>>>0,r[6]=r[6]+v>>>0,r[7]=r[7]+y>>>0,r}var n,r,o,i,a,s=e.unpackData;return r=s("wQWe2DZ81QcwcN0X9w5ZOf/ACzFoWBURZPmPp776T6Q",4,1),o=s("agnmZ7tnroU8bvNypU/1OlEOUn+bBWiMH4PZq1vgzRk",4,1),n=s("QoovmHE3RJG1wPvP6bXbpTlWwltZ8RHxkj+CpKscXtXYB6qYEoNbASQxhb5VDH3Dcr5ddIDesf6b3AanwZvxdOSbacHvvkeGD8GdxiQMocwt6SxvSnSEqlywqdx2+YjamD5RUqgxxm2wAyfIv1l/x8bgC/PVp5FHBspjURQpKWcntwqFLhshOE0sbfxTOA0TZQpzVHZqCruBwskuknIshaK/6KGoGmZLwkuLcMdsUaPRkugZ1pkGJPQONYUQaqBwGaTBFh43bAgnSHdMNLC8tTkcDLNO2KpKW5zKT2gub/N0j4LueKVjb4TIeBSMxwIIkL7/+qRQbOu++aP3xnF48g",4,1),i=s("MC0wDQYJYIZIAWUDBAIEBQAEHA"),a=s("MDEwDQYJYIZIAWUDBAIBBQAEIA"),{sha224:function(){return P("SHA-224",i,r,n,64,t,224)},sha256:function(){return P("SHA-256",a,o,n,64,t,256)}}}();"undefined"!==typeof t&&(w.instance224=w.instance224||w.sha224(),w.instance256=w.instance256||w.sha256(),w.instances={},w.getInstance224=function(e){return w.instances[e]||(w.instances[e]=w.sha224())},w.getInstance256=function(e){return w.instances[e]||(w.instances[e]=w.sha256())},w.deleteInstance=function(e){w.instances[e]=null,delete w.instances[e]},w.hash256=function(e){if("process"===e.operationSubType)return w.getInstance256(e.workerid).process(e.buffer),null;if("finish"===e.operationSubType){var t=w.getInstance256(e.workerid).finish();return w.deleteInstance(e.workerid),t}if("abort"!==e.operationSubType)return w.instance256.computeHash(e.buffer);w.deleteInstance(e.workerid)},w.hash224=function(e){if("process"!==e.operationSubType){if("finish"===e.operationSubType&&w.getInstance224(e.workerid).finish(),"abort"!==e.operationSubType)return w.instance224.computeHash(e.buffer);msrcryptoSha224.deleteInstance(e.workerid)}else w.getInstance224(e.workerid).process(e.buffer)},t.register("digest","SHA-224",w.hash224),t.register("digest","SHA-256",w.hash256)),u["SHA-224"]=w.sha224,u["SHA-256"]=w.sha256;var E=function(){function e(e,t,n,r,o){var i=t+r|0,a=i>>>0<r>>>0;o[0]=e+n+a|0,o[1]=i}function t(t,n,r,o,i){var a,s,l,c,d,u,p,m,h,f=[],g=[],v=[],y=r[0],b=r[1],C=r[2],S=r[3],x=r[4],k=r[5],P=r[6],I=r[7],w=r[8],E=r[9],_=r[10],D=r[11],T=r[12],R=r[13],A=r[14],M=r[15];for(a=0;a<32;a++)h=128*n+4*a,i[a]=t.slice(h,h+4),i[a]=i[a][0]<<24|i[a][1]<<16|i[a][2]<<8|i[a][3];for(a=32;a<160;a+=2)l=((p=i[a-30])>>>1|(m=i[a-29])<<31)^(p>>>8|m<<24)^p>>>7,c=(m>>>1|p<<31)^(m>>>8|p<<24)^(m>>>7|p<<25),e(d=((p=i[a-4])>>>19|(m=i[a-3])<<13)^(m>>>29|p<<3)^p>>>6,u=(m>>>19|p<<13)^(p>>>29|m<<3)^(m>>>6|p<<26),i[a-14],i[a-13],f),e(l,c,f[0],f[1],f),e(i[a-32],i[a-31],f[0],f[1],f),i[a]=f[0],i[a+1]=f[1];for(s=0;s<160;s+=2)d=w&_^T&~w,u=E&D^R&~E,e(A,M,l=(w>>>14|E<<18)^(w>>>18|E<<14)^(E>>>9|w<<23),c=(E>>>14|w<<18)^(E>>>18|w<<14)^(w>>>9|E<<23),f),e(d,u,o[s],o[s+1],g),e(f[0],f[1],i[s],i[s+1],v),e(g[0],g[1],v[0],v[1],v),e(v[0],v[1],P,I,f),P=f[0],I=f[1],u=b&(S^k)^S&k,d=y&(C^x)^C&x,e(v[0],v[1],l=(y>>>28|b<<4)^(b>>>2|y<<30)^(b>>>7|y<<25),c=(b>>>28|y<<4)^(y>>>2|b<<30)^(y>>>7|b<<25),f),e(d,u,l=f[0],c=f[1],f),A=T,M=R,T=_,R=D,_=w,D=E,w=P,E=I,P=x,I=k,x=C,k=S,C=y,S=b,y=l=f[0],b=c=f[1];return e(r[0],r[1],y,b,f),r[0]=f[0],r[1]=f[1],e(r[2],r[3],C,S,f),r[2]=f[0],r[3]=f[1],e(r[4],r[5],x,k,f),r[4]=f[0],r[5]=f[1],e(r[6],r[7],P,I,f),r[6]=f[0],r[7]=f[1],e(r[8],r[9],w,E,f),r[8]=f[0],r[9]=f[1],e(r[10],r[11],_,D,f),r[10]=f[0],r[11]=f[1],e(r[12],r[13],T,R,f),r[12]=f[0],r[13]=f[1],e(r[14],r[15],A,M,f),r[14]=f[0],r[15]=f[1],r}var n,r,o,i,a,s,l,c=p.unpackData;return n=c("y7udXcEFnthimikqNnzVB5FZAVowcN0XFS/s2PcOWTlnMyZn/8ALMY60SodoWBUR2wwuDWT5j6dHtUgdvvpPpA==",4,1),r=c("agnmZ/O8yQi7Z66FhMqnOzxu83L+lPgrpU/1Ol8dNvFRDlJ/reaC0ZsFaIwrPmwfH4PZq/tBvWtb4M0ZE34heQ",4,1),o=c("QoovmNcoriJxN0SRI+9lzbXA+8/sTTsv6bXbpYGJ27w5VsJb80i1OFnxEfG2BdAZkj+CpK8ZT5urHF7V2m2BGNgHqpijAwJCEoNbAUVwb74kMYW+TuSyjFUMfcPV/7Ticr5ddPJ7iW+A3rH+OxaWsZvcBqclxxI1wZvxdM9pJpTkm2nBnvFK0u++R4Y4TyXjD8GdxouM1bUkDKHMd6ycZS3pLG9ZKwJ1SnSEqm6m5INcsKncvUH71Hb5iNqDEVO1mD5RUu5m36uoMcZtLbQyELADJ8iY+yE/v1l/x77vDuTG4AvzPaiPwtWnkUeTCqclBspjUeADgm8UKSlnCg5ucCe3CoVG0i/8LhshOFwmySZNLG38WsQq7VM4DROdlbPfZQpzVIuvY952agq7PHeyqIHCyS5H7a7mknIshRSCNTuiv+ihTPEDZKgaZku8QjABwkuLcND4l5HHbFGjBlS+MNGS6BnW71IY1pkGJFVlqRD0DjWFV3EgKhBqoHAyu9G4GaTBFrjS0MgeN2wIUUGrUydId0zfjuuZNLC8teGbSKg5HAyzxclaY07YqkrjQYrLW5zKT3dj43NoLm/z1rK4o3SPgu5d77L8eKVjb0MXL2CEyHgUofCrcozHAggaZDnskL7/+iNjHiikUGzr3oK96b75o/eyxnkVxnF48uNyUyvKJz7O6iZhnNGGuMchwMIH6tp91s3g6x71fU9/7m7ReAbwZ6pyF2+6CmN9xaLImKYRP5gEvvkNrhtxCzUTHEcbKNt39SMEfYQyyqt7QMckkzyevgoVyb68Qx1nxJwQDUxMxdS+yz5Ctll/KZz8ZX4qX8tvqzrW+uxsRBmMSkdYFw==",4,1),i=c("MEEwDQYJYIZIAWUDBAICBQAEMA"),a=c("MFEwDQYJYIZIAWUDBAIDBQAEQA"),s=c("MC0wDQYJYIZIAWUDBAIFBQAEHA"),l=c("MDEwDQYJYIZIAWUDBAIGBQAEIA"),{sha384:function(){return P("SHA-384",i,n,o,128,t,384)},sha512:function(){return P("SHA-512",a,r,o,128,t,512)},sha512_224:function(){return P("SHA-512.224",s,r,o,128,t,224)},sha512_256:function(){return P("SHA-512.256",l,r,o,128,t,256)}}}();"undefined"!==typeof t&&(E.instances={},E.getInstance384=function(e){return E.instances[e]||(E.instances[e]=E.sha384())},E.getInstance512=function(e){return E.instances[e]||(E.instances[e]=E.sha512())},E.deleteInstance=function(e){E.instances[e]=null,delete E.instances[e]},E.hash384=function(e){if("process"!==e.operationSubType)return"finish"===e.operationSubType?E.sha384.finish():E.sha384().computeHash(e.buffer);E.sha384.process(e.buffer)},E.hash512=function(e){if("process"!==e.operationSubType)return"finish"===e.operationSubType?E.sha512.finish():E.sha512().computeHash(e.buffer);E.sha512.process(e.buffer)},t.register("digest","SHA-384",E.hash384),t.register("digest","SHA-512",E.hash512)),u["SHA-384"]=E.sha384,u["SHA-512"]=E.sha512;var _=function(e,t){var n,r,o,i,a,s={384:128,512:128}[t.name.replace(/SHA-/,"")]||64,l=e.length===s?e:e.length>s?d(t.computeHash(e),s):d(e,s);function c(e,t){for(var n=new Array(e),r=0;r<e.length;r++)n[r]=e[r]^t[r];return n}function d(e,t){for(var n=e.slice(),r=e.length;r<t;r++)n.push(0);return n}function u(e){a?t.process(e):(a=i.concat(e),t.process(a))}function p(){var e=t.finish(),n=o.concat(e);return t.computeHash(n)}function m(){e=null,t=null,l=null}n=new Array(s),r=new Array(s);for(var h=0;h<s;h++)n[h]=54,r[h]=92;return i=c(l,n),o=c(l,r),{computeHmac:function(e,t,n){u(e);var r=p();return m(),r},process:function(e,t,n){return u(e),null},finish:function(e,t){var n=p();return m(),n}}};if("undefined"!==typeof t){var D={};_.signHmac=function(e){var t,n=e.keyHandle.algorithm.hash.name.toUpperCase(),r=u[n](),o=e.workerid;return D[o]||(D[o]=_(e.keyData,r)),"process"===e.operationSubType?(D[o].process(e.buffer),null):"finish"===e.operationSubType?(t=D[o].finish(),D[o]=null,t):(t=D[o].computeHmac(e.buffer),D[o]=null,t)},_.verifyHmac=function(e){var t,n=e.keyHandle.algorithm.hash.name.toUpperCase(),r=u[n](),o=e.workerid;return D[o]||(D[o]=_(e.keyData,r)),"process"===e.operationSubType?(D[o].process(e.buffer),null):"finish"===e.operationSubType?(t=D[o].finish(),t=p.arraysEqual(t,e.signature),D[o]=null,t):(t=D[o].computeHmac(e.buffer),t=p.arraysEqual(t,e.signature),D[o]=null,t)},_.generateKey=function(e){var t=e.algorithm.length;return t||(t={"SHA-1":64,"SHA-224":64,"SHA-256":64,"SHA-384":128,"SHA-512":128}[e.algorithm.hash.name.toUpperCase()]),{type:"keyGeneration",keyData:V.getBytes(t),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},_.importKey=function(e){var t;if(e.keyData.length,"jwk"===e.format)(t=f.jwkToKey(e.keyData,e.algorithm,["k"])).alg=t.alg.replace("HS","SHA-");else{if("raw"!==e.format)throw new Error("unsupported import format");t={k:p.toArray(e.keyData)}}return{type:"keyImport",keyData:t.k,keyHandle:{algorithm:{name:"HMAC",hash:{name:e.algorithm.hash.name}},extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"}}},_.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:f.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw new Error("unsupported export format")},t.register("importKey","HMAC",_.importKey),t.register("exportKey","HMAC",_.exportKey),t.register("generateKey","HMAC",_.generateKey),t.register("sign","HMAC",_.signHmac),t.register("verify","HMAC",_.verifyHmac)}var T=function(){var e,t,n,r,o,i,a,s,l,c;return{aes:function(d){var u,m,h,f;switch(e||(e=p.unpackData("AAIEBggKDA4QEhQWGBocHiAiJCYoKiwuMDI0Njg6PD5AQkRGSEpMTlBSVFZYWlxeYGJkZmhqbG5wcnR2eHp8foCChIaIioyOkJKUlpianJ6goqSmqKqsrrCytLa4ury+wMLExsjKzM7Q0tTW2Nrc3uDi5Obo6uzu8PL09vj6/P4bGR8dExEXFQsJDw0DAQcFOzk/PTMxNzUrKS8tIyEnJVtZX11TUVdVS0lPTUNBR0V7eX99c3F3dWtpb21jYWdlm5mfnZORl5WLiY+Ng4GHhbu5v72zsbe1q6mvraOhp6Xb2d/d09HX1cvJz83DwcfF+/n//fPx9/Xr6e/t4+Hn5QADBgUMDwoJGBseHRQXEhEwMzY1PD86OSgrLi0kJyIhYGNmZWxvaml4e359dHdycVBTVlVcX1pZSEtOTURHQkHAw8bFzM/Kydjb3t3U19LR8PP29fz/+vno6+7t5Ofi4aCjpqWsr6qpuLu+vbS3srGQk5aVnJ+amYiLjo2Eh4KBm5idnpeUkZKDgIWGj4yJiquora6npKGis7C1tr+8ubr7+P3+9/Tx8uPg5ebv7Onqy8jNzsfEwcLT0NXW39zZ2ltYXV5XVFFSQ0BFRk9MSUpraG1uZ2RhYnNwdXZ/fHl6Ozg9Pjc0MTIjICUmLywpKgsIDQ4HBAECExAVFh8cGRoADhwSODYkKnB+bGJIRlRa4O788tjWxMqQnoyCqKa0utvVx8nj7f/xq6W3uZOdj4E7NScpAw0fEUtFV1lzfW9hraOxv5WbiYfd08HP5ev5901DUV91e2lnPTMhLwULGRd2eGpkTkBSXAYIGhQ+MCIslpiKhK6gsrzm6Pr03tDCzEFPXVN5d2VrMT8tIwkHFRuhr72zmZeFi9HfzcPp5/X7mpSGiKKsvrDq5Pb40tzOwHp0ZmhCTF5QCgQWGDI8LiDs4vD+1NrIxpySgI6kqri2DAIQHjQ6KCZ8cmBuREpYVjc5KyUPARMdR0lbVX9xY23X2cvF7+Hz/aepu7WfkYONAA0aFzQ5LiNoZXJ/XFFGS9Ddysfk6f7zuLWir4yBlpu7tqGsj4KVmNPeycTn6v3wa2ZxfF9SRUgDDhkUNzotIG1gd3pZVENOBQgfEjE8Kya9sKeqiYSTntXYz8Lh7Pv21tvMweLv+PW+s6SpioeQnQYLHBEyPyglbmN0eVpXQE3a18DN7uP0+bK/qKWGi5yRCgcQHT4zJClib3h1VltMQWFse3ZVWE9CCQQTHj0wJyqxvKumhYifktnUw87t4Pf6t7qtoIOOmZTf0sXI6+bx/GdqfXBTXklEDwIVGDs2ISwMARYbODUiL2RpfnNQXUpH3NHGy+jl8v+0ua6jgI2alwALFh0sJzoxWFNORXR/Ymmwu6atnJeKgejj/vXEz9LZe3BtZldcQUojKDU+DwQZEsvA3dbn7PH6k5iFjr+0qaL2/eDr2tHMx66luLOCiZSfRk1QW2phfHceFQgDMjkkL42Gm5Chqre81d7DyPny7+Q9NisgERoHDGVuc3hJQl9U9/zh6tvQzcavpLmyg4iVnkdMUVprYH12HxQJAjM4JS6Mh5qRoKu2vdTfwsn48+7lPDcqIRAbBg1kb3J5SENeVQEKFxwtJjswWVJPRHV+Y2ixuqesnZaLgOni//TFztPYenFsZ1ZdQEsiKTQ/DgUYE8rB3Nfm7fD7kpmEj761qKMACRIbJC02P0hBWlNsZX53kJmCi7S9pq/Y0crD/PXu5zsyKSAfFg0Ec3phaFdeRUyrormwj4adlOPq8fjHztXcdn9kbVJbQEk+NywlGhMIAebv9P3Cy9DZrqe8tYqDmJFNRF9WaWB7cgUMFx4hKDM63dTPxvnw6+KVnIeOsbijquzl/vfIwdrTpK22v4CJkpt8dW5nWFFKQzQ9Ji8QGQIL197FzPP64eiflo2Eu7KpoEdOVVxjanF4DwYdFCsiOTCak4iBvrespdLbwMn2/+TtCgMYES4nPDVCS1BZZm90faGos7qFjJee6eD78s3E39YxOCMqFRwHDnlwa2JdVE9GY3x3e/Jrb8UwAWcr/terdsqCyX36WUfwrdSir5ykcsC3/ZMmNj/3zDSl5fFx2DEVBMcjwxiWBZoHEoDi6yeydQmDLBobblqgUjvWsynjL4RT0QDtIPyxW2rLvjlKTFjP0O+q+0NNM4VF+QJ/UDyfqFGjQI+SnTj1vLbaIRD/89LNDBPsX5dEF8Snfj1kXRlzYIFP3CIqkIhG7rgU3l4L2+AyOgpJBiRcwtOsYpGV5HnnyDdtjdVOqWxW9Opleq4IunglLhymtMbo3XQfS72LinA+tWZIA/YOYTVXuYbBHZ7h+JgRadmOlJseh+nOVSjfjKGJDb/mQmhBmS0PsFS7FlIJatUwNqU4v0CjnoHz1/t84zmCmy//hzSOQ0TE3unLVHuUMqbCIz3uTJULQvrDTgguoWYo2SSydluiSW2L0SVy+PZkhmiYFtSkXMxdZbaSbHBIUP3tudpeFUZXp42dhJDYqwCMvNMK9+RYBbizRQbQLB6Pyj8PAsGvvQMBE4prOpERQU9n3OqX8s/O8LTmc5asdCLnrTWF4vk36Bx1325H8RpxHSnFiW+3Yg6qGL4b/FY+S8bSeSCa28D+eM1a9B/dqDOIB8cxsRIQWSeA7F9gUX+pGbVKDS3lep+TyZzvoOA7Ta4q9bDI67s8g1OZYRcrBH66d9Ym4WkUY1UhDH2NAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuNAQIECBAgQIAbNmzYq02aL168Y8aXNWrUs33678WROXLk071hwp8lSpQzZsyDHTp06MuN",256,!1),t=e[0],n=e[1],r=e[2],o=e[3],i=e[4],a=e[5],s=e[6],l=e[7],c=e[8]),u=8*d.length){case 128:case 192:case 256:break;default:throw new Error("Unsupported keyLength")}h=6+(m=u/32);var g=function(e){var t=e[1];e[1]=e[5],e[5]=e[9],e[9]=e[13],e[13]=t,t=e[2],e[2]=e[10],e[10]=t,t=e[6],e[6]=e[14],e[14]=t,t=e[15],e[15]=e[11],e[11]=e[7],e[7]=e[3],e[3]=t},v=function(e){var t=e[13];e[13]=e[9],e[9]=e[5],e[5]=e[1],e[1]=t,t=e[10],e[10]=e[2],e[2]=t,t=e[14],e[14]=e[6],e[6]=t,t=e[3],e[3]=e[7],e[7]=e[11],e[11]=e[15],e[15]=t},y=function(e){var r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],l=e[5],c=e[6],d=e[7],u=e[8],p=e[9],m=e[10],h=e[11],f=e[12],g=e[13],v=e[14],y=e[15];e[0]=t[r]^n[o]^i^a,e[1]=r^t[o]^n[i]^a,e[2]=r^o^t[i]^n[a],e[3]=n[r]^o^i^t[a],e[4]=t[s]^n[l]^c^d,e[5]=s^t[l]^n[c]^d,e[6]=s^l^t[c]^n[d],e[7]=n[s]^l^c^t[d],e[8]=t[u]^n[p]^m^h,e[9]=u^t[p]^n[m]^h,e[10]=u^p^t[m]^n[h],e[11]=n[u]^p^m^t[h],e[12]=t[f]^n[g]^v^y,e[13]=f^t[g]^n[v]^y,e[14]=f^g^t[v]^n[y],e[15]=n[f]^g^v^t[y]},b=function(e){var t=e[0],n=e[1],s=e[2],l=e[3],c=e[4],d=e[5],u=e[6],p=e[7],m=e[8],h=e[9],f=e[10],g=e[11],v=e[12],y=e[13],b=e[14],C=e[15];e[0]=r[t]^i[n]^o[s]^a[l],e[1]=a[t]^r[n]^i[s]^o[l],e[2]=o[t]^a[n]^r[s]^i[l],e[3]=i[t]^o[n]^a[s]^r[l],e[4]=r[c]^i[d]^o[u]^a[p],e[5]=a[c]^r[d]^i[u]^o[p],e[6]=o[c]^a[d]^r[u]^i[p],e[7]=i[c]^o[d]^a[u]^r[p],e[8]=r[m]^i[h]^o[f]^a[g],e[9]=a[m]^r[h]^i[f]^o[g],e[10]=o[m]^a[h]^r[f]^i[g],e[11]=i[m]^o[h]^a[f]^r[g],e[12]=r[v]^i[y]^o[b]^a[C],e[13]=a[v]^r[y]^i[b]^o[C],e[14]=o[v]^a[y]^r[b]^i[C],e[15]=i[v]^o[y]^a[b]^r[C]},C=function(e,t){return[e[0]^t[0],e[1]^t[1],e[2]^t[2],e[3]^t[3]]},S=function(e,t,n){for(var r=0;r<e.length;r+=1)e[r]^=t[r+n]},x=function(e){var t=e[0];e[0]=e[1],e[1]=e[2],e[2]=e[3],e[3]=t},k=function(e){for(var t=0;t<e.length;t+=1)e[t]=s[e[t]]},P=function(e){for(var t=0;t<e.length;t+=1)e[t]=l[e[t]]},I=function(e,t){return[e[4*t],e[4*t+1],e[4*t+2],e[4*t+3]]};return f=function(e){for(var t,n,r,o,i,a=[],s=0;s<4*m;)a.push(e[s++]);for(s=m;s<4*(h+1);){if(t=I(a,s-1),s%m===0){var l=[c[s/m],0,0,0];x(t),k(t),t=C(t,l)}else m>6&&s%m===4&&k(t);var d=C(I(a,s-m),t);r=d,i=0,(n=a)[4*(o=s)]=r[4*i],n[4*o+1]=r[4*i+1],n[4*o+2]=r[4*i+2],n[4*o+3]=r[4*i+3],s+=1}return a}(d),{encrypt:function(e){var t,n=e;for(S(n,f,0),t=1;t<=h-1;t+=1)k(n),g(n),y(n),S(n,f,4*t*4);return k(n),g(n),S(n,f,4*h*4),n},decrypt:function(e){var t,n=e;for(S(n,f,4*h*4),t=h-1;t>=1;t-=1)v(n),P(n),S(n,f,4*t*4),b(n);return v(n),P(n),S(n,f,0),n},clear:function(){},keyLength:u,blockSize:128}}}}(),R=R||{};R.pkcsv7=function(e){return{pad:function(t){var n=t[t.length-1>=0?t.length-1:0],r=n.length;if(r===e){var o,i=[];for(o=0;o<e;o+=1)i.push(e);t.push(i)}else for(var a=e-r&255;n.length!==e;)n.push(a)},unpad:function(t){var n=!0;t.length%e!==0&&(n=!1);for(var r=t.slice(-e),o=r[r.length-1],i=0;i<e;i++){var a=e-i<=o,s=r[i]===o;n=(!a||s)&&n}var l=n?o:0;return t.length-=l,n}}};var A=function(e){var t=e.blockSize/8,n=R.pkcsv7(t),r=function(e){var t,n,r=[];for(t=0;t<e.length;t+=1){var o=e[t];for(n=0;n<o.length;n+=1)r.push(o[n])}return r};function o(e){var n=[];l=l.concat(e);for(var r=Math.floor(l.length/t),o=0;o<r;o++)n.push(l.slice(o*t,(o+1)*t));return l=l.slice(r*t),n}function i(t){for(var n,r=[],o=0;o<t.length;o++)n=p.xorVectors(s,t[o]),r.push(e.encrypt(n)),s=r[o];return r}function a(){l=[],c=[],s=null}var s,l=[],c=[];return{init:function(e){if(e.length!==t)throw new Error("Invalid iv size");s=e.slice()},encrypt:function(e){var t=i(o(e));return c=c.concat(r(t)),this.finishEncrypt()},processEncrypt:function(e){return r(i(o(e)))},finishEncrypt:function(){var e=1===l.length?[[l[0]]]:[l];n.pad(e);var t=c.concat(r(i(e)));return a(),t},decrypt:function(e){return this.processDecrypt(e),this.finishDecrypt()},processDecrypt:function(t){var n=function(t){for(var n,r,o=[],i=0;i<t.length;i+=1)n=t[i].slice(0,t[i].length),r=e.decrypt(n),o.push(p.xorVectors(s,r)),s=t[i];return o}(o(t));c=c.concat(r(n))},finishDecrypt:function(){var e=c;return n.unpad(e),a(),e}}};if("undefined"!==typeof t){var M={};A.workerEncrypt=function(e){var t,n=e.workerid;return M[n]||(M[n]=A(T.aes(e.keyData)),M[n].init(e.algorithm.iv)),"process"===e.operationSubType?M[n].processEncrypt(e.buffer):"finish"===e.operationSubType?(t=M[n].finishEncrypt(),M[n]=null,t):(t=M[n].encrypt(e.buffer),M[n]=null,t)},A.workerDecrypt=function(e){var t,n=e.workerid;if(M[n]||(M[n]=A(T.aes(e.keyData)),M[n].init(e.algorithm.iv)),"process"!==e.operationSubType)return"finish"===e.operationSubType?(t=M[n].finishDecrypt(),M[n]=null,t):(t=M[n].decrypt(e.buffer),M[n]=null,t);M[n].processDecrypt(e.buffer)},A.generateKey=function(e){if(e.algorithm.length%8!==0)throw new Error;return{type:"keyGeneration",keyData:V.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},A.importKey=function(e){var t,n=8*e.keyData.length;if("jwk"===e.format)t=f.jwkToKey(e.keyData,e.algorithm,["k"]);else{if("raw"!==e.format)throw new Error("unsupported import format");if(128!==n&&192!==n&&256!==n)throw new Error("invalid key length (should be 128, 192, or 256 bits)");t={k:p.toArray(e.keyData)}}return e.algorithm.length=8*t.k.length,{keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"},type:"keyImport"}},A.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:f.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw new Error("unsupported export format")},t.register("importKey","AES-CBC",A.importKey),t.register("exportKey","AES-CBC",A.exportKey),t.register("generateKey","AES-CBC",A.generateKey),t.register("encrypt","AES-CBC",A.workerEncrypt),t.register("decrypt","AES-CBC",A.workerDecrypt)}var N=function(e){var t,n,r,o,i,a,s=p,l=[],c=e.encrypt(s.getVector(16)),d=s.getVector(16),u=[],m=[],h=0;function f(e,t){for(var n,r=Math.floor(t.length/16),o=0;o<r;o++)n=t.slice(16*o,16*o+16),d=v(s.xorVectors(d,n),e);return u=t.slice(16*r),d}function g(){var e=16*Math.ceil(h/16)-h,t=S(8*n.length),r=S(8*h),o=u.concat(s.getVector(e)).concat(t).concat(r);return f(c,o)}function v(e,t){var n,r,o,i,a=s.getVector(16),l=t.slice(0);for(o=0;o<128;o++){for(n=255&(i=o,-(e[Math.floor(i/8)]>>7-i%8&1)),r=0;r<16;r++)a[r]=a[r]^l[r]&n;n=255&-(1&l[15]),y(l),l[0]^=225&n}return a}function y(e){for(var t=e.length-1;t>0;t--)e[t]=(1&e[t-1])<<7|e[t]>>>1;return e[0]=e[0]>>>1,e}function b(e){for(var t=256,n=1;n<=4;n++)t=(t>>>8)+e[e.length-n],e[e.length-n]=255&t;return e}function C(t,n){var r,o=Math.ceil(n.length/16),i=[];a!==t&&(a=t.slice());for(var l=0;l<o;l++){r=n.slice(16*l,16*l+16);var c=e.encrypt(a.slice());i=i.concat(s.xorVectors(r,c)),a=b(a)}return i}function S(e){return[0,0,0,0,e>>>24&255,e>>>16&255,e>>>8&255,255&e]}function x(){h=0,l=[],m=[],d=s.getVector(16),u=[],a=t=n=null}return{init:function(e,a,l){if(n=a||[],(r=isNaN(l)?128:l)%8!==0)throw new Error("DataError");if(12===(t=e).length)o=t.concat([0,0,0,1]);else{var u=16*Math.ceil(t.length/16)-t.length;o=f(c,t.concat(s.getVector(u+8)).concat(S(8*t.length))),d=s.getVector(16)}i=b(o.slice()),f(c,function(e){var t=16*Math.ceil(n.length/16)-n.length;return e.concat(s.getVector(t))}(n))},encrypt:function(e){h=e.length;var t=C(i,e);f(c,t);var n=g(),a=C(o,n).slice(0,r/8);return x(),t.slice().concat(a)},decrypt:function(e,t){h=e.length;var n=C(i,e);f(c,e);var a=g(),l=C(o,a).slice(0,r/8);return x(),s.arraysEqual(l,t)?n:null},processEncrypt:function(e){var t=(l=l.concat(e)).slice(0,16*Math.floor(l.length/16));h+=t.length,l=l.slice(t.length);var n=C(a||i,t);m=m.concat(n),f(c,n)},processDecrypt:function(e){var t=(l=l.concat(e)).slice(0,16*Math.floor((l.length-r/8)/16));h+=t.length,l=l.slice(t.length);var n=C(a||i,t);m=m.concat(n),f(c,t)},finishEncrypt:function(){var e=C(a,l);m=m.concat(e),h+=l.length;var t=g(),n=C(o,t).slice(0,r/8),i=m.slice().concat(n);return x(),i},finishDecrypt:function(){var e=Math.floor(r/8),t=l.slice(-e);l=l.slice(0,l.length-e);var n=C(a,l);m=m.concat(n),h+=l.length;var i=g(),c=C(o,i).slice(0,r/8),d=m.slice();return x(),s.arraysEqual(c,t)?d:null}}};if("undefined"!==typeof t){var F={};N.encrypt=function(e){var t,n=e.workerid;if(F[n]||(F[n]=N(T.aes(e.keyData)),F[n].init(e.algorithm.iv,e.algorithm.additionalData,e.algorithm.tagLength)),"process"!==e.operationSubType)return"finish"===e.operationSubType?(t=F[n].finishEncrypt(),F[n]=null,t):(t=F[n].encrypt(e.buffer),F[n]=null,t);F[n].processEncrypt(e.buffer)},N.decrypt=function(e){var t,n=e.workerid;if(F[n]||(F[n]=N(T.aes(e.keyData)),F[n].init(e.algorithm.iv,e.algorithm.additionalData,e.algorithm.tagLength)),"process"!==e.operationSubType){if("finish"===e.operationSubType){if(t=F[n].finishDecrypt(),F[n]=null,null===t)throw new Error("OperationError");return t}var r=e.algorithm.tagLength?Math.floor(e.algorithm.tagLength/8):16,o=e.buffer.slice(0,e.buffer.length-r),i=e.buffer.slice(-r);if(t=F[n].decrypt(o,i),F[n]=null,null===t)throw new Error("OperationError");return t}F[n].processDecrypt(e.buffer)},N.generateKey=function(e){if(e.algorithm.length%8!==0)throw new Error;return{type:"keyGeneration",keyData:V.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},N.importKey=function(e){var t,n=8*e.keyData.length;if("jwk"===e.format)t=f.jwkToKey(e.keyData,e.algorithm,["k"]);else{if("raw"!==e.format)throw new Error("unsupported import format");if(128!==n&&192!==n&&256!==n)throw new Error("invalid key length (should be 128, 192, or 256 bits)");t={k:p.toArray(e.keyData)}}return{type:"keyImport",keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"}}},N.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:f.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw new Error("unsupported export format")},t.register("importKey","AES-GCM",N.importKey),t.register("exportKey","AES-GCM",N.exportKey),t.register("generateKey","AES-GCM",N.generateKey),t.register("encrypt","AES-GCM",N.encrypt),t.register("decrypt","AES-GCM",N.decrypt)}var H=function(e){return{encrypt:function(t){for(var n=[[0]],r=0;r<t.length;r+=8)n.push(t.slice(r,r+8));var o=[166,166,166,166,166,166,166,166],i=n.length-1,a=[];for(r=1;r<=i;r++)a[r]=n[r];for(var s=0;s<=5;s++)for(r=1;r<=i;r++){var l=i*s+r,c=e.encrypt(o.concat(a[r]));a[r]=c.slice(8),o=c.slice(0,8);for(var d=7;l>0;d--,l>>>=8)o[d]^=255&l}var u=o;for(r=1;r<=i;r++)u=u.concat(a[r]);return u},decrypt:function(t){for(var n=[],r=0;r<t.length;r+=8)n.push(t.slice(r,r+8));var o=n.length-1,i=[],a=[],s=n[0];for(r=1;r<=o;r++)i[r]=n[r];for(var l=5;l>=0;l--)for(r=o;r>=1;r--){for(var c=o*l+r,d=7;c>0;d--,c>>>=8)s[d]^=255&c;var u=e.decrypt(s.concat(i[r]));s=u.slice(0,8),i[r]=u.slice(8)}if("166,166,166,166,166,166,166,166"!==s.join(","))throw p.error("OperationError","");for(r=1;r<=o;r++)a=a.concat(i[r]);return a}}};if("undefined"!==typeof t){var O={};H.workerEncrypt=function(e){var t,n=e.workerid;if(e.buffer.length%8!==0)throw p.error("DataError","The AES-KW input data length is invalid: not a multiple of 8 bytes");return O[n]||(O[n]=H(T.aes(e.keyData))),t=O[n].encrypt(e.buffer),O[n]=null,t},H.workerDecrypt=function(e){var t,n=e.workerid;if(e.buffer.length%8!==0)throw p.error("DataError","The AES-KW input data length is invalid: not a multiple of 8 bytes");return O[n]||(O[n]=H(T.aes(e.keyData))),t=O[n].decrypt(e.buffer),O[n]=null,t},H.generateKey=function(e){if(e.algorithm.length%8!==0)throw p.error("OperationError","AES key length must be 128, 192, or 256 bits");return{type:"keyGeneration",keyData:V.getBytes(Math.floor(e.algorithm.length/8)),keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"secret"}}},H.importKey=function(e){var t,n=8*e.keyData.length;if("jwk"===e.format)t=f.jwkToKey(e.keyData,e.algorithm,["k"]);else{if("raw"!==e.format)throw new TypeError("Invalid keyFormat argument");if(128!==n&&192!==n&&256!==n)throw p.error("OperationError","AES key length must be 128, 192, or 256 bits");t={k:p.toArray(e.keyData)}}return e.algorithm.length=8*t.k.length,{keyData:t.k,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||t.extractable,usages:e.usages,type:"secret"},type:"keyImport"}},H.exportKey=function(e){if("jwk"===e.format)return{type:"keyExport",keyHandle:f.keyToJwk(e.keyHandle,e.keyData)};if("raw"===e.format)return{type:"keyExport",keyHandle:e.keyData};throw new TypeError("Invalid keyFormat argument")},t.register("importKey","AES-KW",H.importKey),t.register("exportKey","AES-KW",H.exportKey),t.register("generateKey","AES-KW",H.generateKey),t.register("encrypt","AES-KW",H.workerEncrypt),t.register("decrypt","AES-KW",H.workerDecrypt)}function B(){if(!(this instanceof B))throw new Error("create MsrcryptoPrng object with new keyword");var e,t,n,r,o=!1,i=1,a=Math.pow(2,48);function s(e){var t;for(t=e.length-1;t>=0&&(e[t]+=1,e[t]>=256&&(e[t]=0),!e[t]);t-=1);}function l(){e=p.getVector(32),t=p.getVector(16),n=32,r=48,i=1}function c(e,t){if((t=t||[0]).length>r)throw new Error("Incorrect entropy or additionalEntropy length");t=t.concat(p.getVector(r-t.length)),e=e.concat(p.getVector((r-e.length%r)%r));for(var n=0;n<e.length;n+=r)d(p.xorVectors(e.slice(n,n+r),t));i=1}function d(o){for(var i=[],a=new T.aes(e);i.length<r;){s(t);var l=t.slice(0,16),c=a.encrypt(l);i=i.concat(c)}i=p.xorVectors(i,o),e=i.slice(0,n),t=i.slice(n)}function u(n,o){if(n>=65536)throw new Error("too much random requested");if(i>a)throw new Error("Reseeding is required");if(o&&o.length>0){for(;o.length<r;)o=o.concat(p.getVector(r-o.length));d(o)}else o=p.getVector(r);for(var l=[],c=new T.aes(e);l.length<n;){s(t);var u=t.slice(0,t.length),m=c.encrypt(u);l=l.concat(m)}return l=l.slice(0,n),d(o),i+=1,l}return l(),{reseed:c,getBytes:function(e,t){if(!o)throw new Error("can't get randomness before initialization");return u(e,t)},getNonZeroBytes:function(e,t){if(!o)throw new Error("can't get randomness before initialization");for(var n,r=[];r.length<e;){n=u(e,t);for(var i=0;i<n.length;i+=1)0!==n[i]&&r.push(n[i])}return r.slice(0,e)},init:function(e,t){if(e.length<r)throw new Error("Initial entropy length too short");l(),c(e,t),o=!0}}}var L,V=new B,z=function(){var e=[],t=[];function n(n){var r,o=t.length;for(r=0;r<o;r++)if((t[r]+n)%e[r]===0)return!1;return!0}function r(n){var r,o,i,a,s,l,c=n.length-1,d=g.DIGIT_BASE,u=n[c];for(0===e.length&&(e=function(e){var t,n,r=new Array(e+1),o=[],i=0|Math.sqrt(e);for(t=3;t<=i;t+=2)for(n=t*t;n<=e;n+=2*t)r[n]=0;for(t=3;t<=e;t+=2)0!==r[t]&&o.push(t);return o}(16384)),l=e.length,t=new Array(l),r=0;r<l;r++){for(o=c,u<(s=e[r])?(i=u,o--):i=0;o>=0;)i=(a=i*d+n[o--])-(a/s|0)*s;t[r]=i}}function o(e,t){var n=e,r=[];g.subtract(n,[1],r);var o=function(e){var t,n=0,r=0;if(g.isZero(e))return 0;for(n=0;0===e[n];n++);for(r=0,t=2;e[n]%t===0;t*=2,r++);return n*g.DIGIT_BITS+r}(r),a=[];g.shiftRight(r,a,o);for(var s,l=function(e){var t=0,n=0,r=0;if(g.isZero(e))return 0;for(t=e.length-1;0===e[t];t--);for(r=1<<(n=g.DIGIT_BITS-1);n>0&&0===(e[t]&r);r>>>=1,n--);return t*g.DIGIT_BITS+n}(n),c=g.MontgomeryMultiplier(n),d=1;d<=t;d++){var u=!1;do{s=i(l)}while(g.compareDigits(s,r)>=0);var p=[];if(c.modExp(s,a,p,!0),0!==g.compareDigits(p,[1])&&0!==g.compareDigits(p,r)){for(var m=1;m<o;m++){if(c.montgomeryMultiply(p,p,p),0===g.compareDigits(p,r)){u=!0;break}if(0===g.compareDigits(p,[1]))return!1}if(!1===u)return!1}}return!0}function i(e){var t=Math.ceil(e/8),n=V.getBytes(t);return n[0]|=128,n[n.length-1]|=1,g.bytesToDigits(n)}return{generatePrime:function(e){var t=i(e),a=0,s=[];for(r(t);;){if(n(a)&&(g.add(t,[a],s),!0===o(s,6)))return s;a+=2}}}}(),W=function(e){var t=p,n=e.hasOwnProperty("n")&&e.hasOwnProperty("d"),r=e.hasOwnProperty("p")&&e.hasOwnProperty("q"),o=e.n.length;function i(e){var n=g.digitsToBytes(e);return t.padFront(n,0,o),n}function a(e,t,n){var r=g.bytesToDigits(t),o=g.IntegerGroup(n),i=o.createElementFromBytes(e);return o.modexp(i,r).m_digits}return{encrypt:function(t){return i(a(t,e.e,e.n))},decrypt:function(t){if(r)return function(t){var n=g.bytesToDigits,r=e.p,o=e.q,a=e.dp,s=e.dq,l=e.qi,c=n(r),d=n(o),u=new Array(c.length+d.length),p=new Array(c.length+1),m=new Array(d.length+1),h=n(t),f=g.MontgomeryMultiplier,v=new f(e.ctxp?void 0:c,e.ctxp),y=new f(e.ctxq?void 0:d,e.ctxq);v.reduce(h,u),v.modExp(u,n(a),p),y.reduce(h,u),y.modExp(u,n(s),m);var b=g.subtract(p,m,u);return 0!==b&&g.subtract(m,p,u),g.modMul(u,n(l),c,h),0!==b&&g.subtract(c,h,h),g.multiply(h,d,u),g.add(m,u,p),i(p)}(t);if(n)return function(t){return i(a(t,e.d,e.n))}(t);throw new Error("missing private key")}}},U=function(e,t,n){var r,o,i,a=[],s=n.hashLen/8;for(i=0;i<=Math.floor(t/s);i+=1)r=[i>>>24&255,i>>>16&255,i>>>8&255,255&i],o=n.computeHash(e.concat(r)),a=a.concat(o);return a.slice(0,t)};(L=L||{}).oaep=function(e,t){var n=p,r=V,o=e.n.length;if(null===t)throw new Error("must supply hashFunction");return{pad:function(e,i){return function(e,i){var a,s,l,c,d,u,p,m,h;if(e.length>o-t.hashLen/8*2-2)throw new Error("Message too long.");return null==i&&(i=[]),a=t.computeHash(i),s=o-e.length-2*a.length-2,l=n.getVector(s),c=a.concat(l,[1],e),d=r.getBytes(a.length),u=U(d,o-a.length-1,t),p=n.xorVectors(c,u),m=U(p,a.length,t),h=n.xorVectors(d,m),[0].concat(h).concat(p).slice()}(e,i)},unpad:function(e,r){return function(e,r){var i,a,s,l,c,d,u,p,m=0,h=0===e[0];for(r||(r=[]),i=t.computeHash(r),a=e.slice(1,i.length+1),s=e.slice(i.length+1),l=U(s,i.length,t),c=n.xorVectors(a,l),d=U(c,o-i.length-1,t),p=(u=n.xorVectors(s,d)).slice(0,i.length),h=h&&n.arraysEqual(i,p),u=u.slice(i.length);!u[m++];);return{valid:h,data:u.slice(m)}}(e,r)}}},(L=L||{}).pkcs1Encrypt=function(e){var t=V,n=e.n.length;return{pad:function(e){return function(e){var r;if(e.length>n-11)throw new Error("message too long");return r=t.getNonZeroBytes(n-e.length-3),[0,2].concat(r,[0],e)}(e)},unpad:function(e){return function(e){var t,n=function(e){for(var t=0===e[0]&&2===e[1],n=2;n<10;n++)t=t&&!!e[n];return t}(e),r=0;for(t=1;t<e.length;t+=1)r=r||+!e[t]&&t+1;return r=-n&&r,{data:e.slice(r),valid:n}}(e)}}},L.pkcs1Sign=function(e,t){var n=p,r=e.n.length;function o(e){var o,i,a;if(i=t.computeHash(e.slice()),a=(o=t.der.concat(i)).length,r<a+11)throw new Error("intended encoded message length too short");return[0,1].concat(n.getVector(r-a-3,255),[0],o)}return{sign:function(e){return o(e)},verify:function(e,t){var r=o(t);return n.arraysEqual(e,r)}}},(L=L||{}).pss=function(e,t){var n=p,r=V;return{sign:function(o,i,a){return function(o,i,a){var s=g.bitLength(e.n)-1,l=Math.ceil(s/8),c=t.computeHash(o);if(i=a?a.length:null==i?c.length:i,l<c.length+i+2)throw new Error("encoding error");a=a||r.getBytes(i);for(var d=[0,0,0,0,0,0,0,0].concat(c,a),u=t.computeHash(d),p=n.getVector(l-a.length-u.length-2).concat([1],a),m=U(u,l-u.length-1,t),h=n.xorVectors(p,m),f=0,v=0;v<8-(8*l-s);v++)f+=1<<v;return h[0]&=f,h.concat(u,[188])}(o,i,a)},verify:function(r,o,i){return function(r,o,i){var a=g.bitLength(e.n)-1,s=Math.ceil(a/8),l=t.computeHash(o),c=l.length;if(s<c+(i=null==i?c:i)+2)return!1;var d=r.slice(0,s-c-1),u=r.slice(d.length,d.length+c),p=U(u,s-c-1,t),m=n.xorVectors(d,p);m[0]&=255>>>8-(8*s-a);for(var h=0;h<s-c-i-2;h++)if(0!==m[h])return!1;if(1!==m[s-c-i-2])return!1;var f=m.slice(m.length-i),v=[0,0,0,0,0,0,0,0].concat(l,f),y=t.computeHash(v);return n.arraysEqual(y,u)}(r,o,i)}}};var K=function(e,t,n){var r=W(e);if(!t)throw new Error("padding mode");function o(){if(!n||!n.computeHash)throw new Error("missing hash function")}var i,a=null,s=null;switch(t){case"RSAES-PKCS1-V1_5":i=L.pkcs1Encrypt(e);break;case"RSASSA-PKCS1-V1_5":o(),i=L.pkcs1Sign(e,n);break;case"RSA-OAEP":o(),i=L.oaep(e,n);break;case"RSA-PSS":o(),i=L.pss(e,n);break;case"raw":i={pad:function(e){return e},unpad:function(e){return e}};break;default:throw new Error("invalid mode")}return i&&(a=i.pad||i.sign,s=i.unpad||i.verify),{encrypt:function(e,t){var n;return n=null!==a?a(e,t):e.slice(),r.encrypt(n)},decrypt:function(e,t){var n=r.decrypt(e);if(null!==s){if(!1===(n=s(n,t)).valid)throw new Error("OperationError");n=n.data}else n=n.slice(0);return n},signData:function(e,t,n){return r.decrypt(a(e,t,n))},verifySignature:function(e,t,n){var o=r.encrypt(e);return s(o,t,n)},generateKeyPair:function(e){genRsaKeyFromRandom(e)},mode:t}};"undefined"!==typeof t&&(K.sign=function(e){var t=e.keyHandle.algorithm.hash.name,n=u[t.toUpperCase()](),r=e.algorithm.saltLength,o=e.algorithm.salt;return K(e.keyData,e.algorithm.name,n).signData(e.buffer,r,o)},K.verify=function(e){var t=e.keyHandle.algorithm.hash.name,n=u[t.toUpperCase()](),r=e.algorithm.saltLength;return K(e.keyData,e.algorithm.name,n).verifySignature(e.signature,e.buffer,r)},K.workerEncrypt=function(e){var t,n,r;switch(e.algorithm.name){case"RSAES-PKCS1-V1_5":t=K(e.keyData,e.algorithm.name).encrypt(e.buffer);break;case"RSA-OAEP":if(!(r=e.keyHandle.algorithm.hash.name))throw new Error("unsupported hash algorithm");n=u[r.toUpperCase()](),t=K(e.keyData,e.algorithm.name,n).encrypt(e.buffer);break;default:throw new Error("unsupported algorithm")}return t},K.workerDecrypt=function(e){var t,n;switch(e.algorithm.name){case"RSAES-PKCS1-V1_5":t=K(e.keyData,e.algorithm.name).decrypt(e.buffer);break;case"RSA-OAEP":var r=e.keyHandle.algorithm.hash.name;if(!r)throw new Error("unsupported hash algorithm");n=u[r.toUpperCase()](),t=K(e.keyData,e.algorithm.name,n).decrypt(e.buffer);break;default:throw new Error("unsupported algorithm")}return t},K.importKey=function(e){var t;if("jwk"===e.format)(t=f.jwkToKey(e.keyData,e.algorithm,["n","e","d","p","q","dp","dq","qi"])).d&&(t.ctxp=new g.MontgomeryMultiplier(g.bytesToDigits(t.p)).ctx,t.ctxq=new g.MontgomeryMultiplier(g.bytesToDigits(t.q)).ctx);else if("spki"===e.format){if(null==(i=m.parse(e.keyData)))throw new Error("invalid key data.");var n=i[1];if(null==(a=m.parse(n.data.slice(n.header+1),!0)))throw new Error("invalid key data.");var r=a[0],o=a[1];if("INTEGER"!==r.type||"INTEGER"!==o.type)throw new Error("invalid key data.");r=r.data.slice(r.header),o=o.data.slice(o.header),0===r[0]&&128&r[1]&&(r=r.slice(1)),0===o[0]&&128&o[1]&&(o=o.slice(1)),t={n:r,e:o}}else{if("pkcs8"!==e.format)throw new Error("unsupported key import format.");var i,a;if(null==(i=m.parse(e.keyData)))throw new Error("invalid key data.");if(n=i[2],null==(a=m.parse(n.data.slice(n.header),!0)))throw new Error("invalid key data.");var s=["n","e","d","p","q","dp","dq","qi"];t={};for(var l=1;l<a.length;l++){var c=a[l];0===(c=c.data.slice(c.header))[0]&&128&c[1]&&(c=c.slice(1)),t[s[l-1]]=c}}return{type:"keyImport",keyData:t,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:t.d||t.dq?"private":"public"}}},K.exportKey=function(e){var t="1.2.840.113549.1.1.1";if("jwk"===e.format)return{type:"keyExport",keyHandle:f.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{NULL:1}]},{"BIT STRING":{SEQUENCE:[{INTEGER:e.keyData.n},{INTEGER:e.keyData.e}]}}]})};if("pkcs8"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{NULL:1}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:0},{INTEGER:e.keyData.n},{INTEGER:e.keyData.e},{INTEGER:e.keyData.d},{INTEGER:e.keyData.p},{INTEGER:e.keyData.q},{INTEGER:e.keyData.dp},{INTEGER:e.keyData.dq},{INTEGER:e.keyData.qi}]}}]})};throw new Error(e.format+" not implemented")},K.genRsaKeyFromRandom=function(e,t){var n=t?g.bytesToDigits(t):[65537];do{var r=z.generatePrime(e/2),o=z.generatePrime(e/2);if(g.compareDigits(o,r)>0){var i=r;r=o,o=i}var a=[];g.multiply(r,o,a);var s=[];g.subtract(r,[1],s);var l=[];g.subtract(o,[1],l);var c=[];g.multiply(s,l,c);var d=[];g.gcd(n,c,d);var u=0===g.compareDigits(d,g.One)}while(!u);var p=[];g.modInv(n,c,p);var m=[];g.reduce(p,s,m);var h=[];g.reduce(p,l,h);var f=[];g.modInv(o,r,f);var v=g.digitsToBytes;return{privateKey:{n:v(a),e:v(n),d:v(p),p:v(r),q:v(o),dp:v(m),dq:v(h),qi:v(f)},publicKey:{n:v(a),e:v(n)}}},K.generateKeyPair=function(e){if("undefined"===typeof e.algorithm.modulusLength)throw new Error("missing modulusLength");var t,n=g.bytesToDigits;switch(e.algorithm.modulusLength){case 1024:case 2048:case 4096:t=K.genRsaKeyFromRandom(e.algorithm.modulusLength,e.algorithm.publicExponent);break;default:throw new Error("invalid modulusLength")}var r=t.privateKey;r.ctxp=new g.MontgomeryMultiplier(n(r.p)).ctx,r.ctxq=new g.MontgomeryMultiplier(n(r.q)).ctx;var o,i,a=e.algorithm.name;return a.slice(a.indexOf("-")+1).toUpperCase(),"RSASSA-PKCS1-V1_5"===a||"RSA-PSS"===a?(o=["verify"],i=["sign"]):(o=["encrypt"],i=["decrypt"]),{type:"keyGeneration",keyPair:{publicKey:{keyData:t.publicKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:o,type:"public"}},privateKey:{keyData:t.privateKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:i,type:"private"}}}}},t.register("sign","RSASSA-PKCS1-V1_5",K.sign),t.register("sign","RSA-PSS",K.sign),t.register("verify","RSASSA-PKCS1-V1_5",K.verify),t.register("verify","RSA-PSS",K.verify),t.register("encrypt","RSAES-PKCS1-V1_5",K.workerEncrypt),t.register("decrypt","RSAES-PKCS1-V1_5",K.workerDecrypt),t.register("encrypt","RSA-OAEP",K.workerEncrypt),t.register("decrypt","RSA-OAEP",K.workerDecrypt),t.register("importKey","RSA-OAEP",K.importKey),t.register("importKey","RSAES-PKCS1-V1_5",K.importKey),t.register("importKey","RSASSA-PKCS1-V1_5",K.importKey),t.register("importKey","RSA-PSS",K.importKey),t.register("exportKey","RSA-OAEP",K.exportKey),t.register("exportKey","RSAES-PKCS1-V1_5",K.exportKey),t.register("exportKey","RSASSA-PKCS1-V1_5",K.exportKey),t.register("exportKey","RSA-PSS",K.exportKey),t.register("generateKey","RSA-OAEP",K.generateKeyPair),t.register("generateKey","RSAES-PKCS1-V1_5",K.generateKeyPair),t.register("generateKey","RSASSA-PKCS1-V1_5",K.generateKeyPair),t.register("generateKey","RSA-PSS",K.generateKeyPair));var j={deriveBits:function(e){for(var t=e.algorithm.hash.name,n=u[t.toUpperCase()](),r=e.algorithm,o=X.toArray(r.algorithmId).concat(X.toArray(r.partyUInfo),X.toArray(r.partyVInfo),X.toArray(r.publicInfo)||[],X.toArray(r.privateInfo)||[]),i=Math.ceil(e.length/n.hashLen),a=1,s=e.keyData.concat(o),l=[],c=0;c<i;c++){var d=X.int32ToBytes(a++).concat(s),p=n.computeHash(d);l=l.concat(p)}return l.slice(0,e.length/8)}};"undefined"!==typeof t&&(j.importKey=function(e){var t;if("raw"!==e.format)throw new Error("unsupported import format");if(t=p.toArray(e.keyData),!1!==e.extractable)throw new Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"CONCAT"},extractable:!1,usages:e.usages,type:"secret"}}},t.register("deriveBits","CONCAT",j.deriveBits),t.register("importKey","CONCAT",j.importKey));var G={deriveBits:function(e){var t,n,r=e.algorithm,o=e.keyData,i=e.length,a=r.iterations,s=Array.apply(null,r.salt),l=Math.ceil(i/8),c=[];switch(r.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw new Error("Unsupported hash algorithm")}n=Math.ceil(l/t);var d=_.importKey({format:"raw",keyData:o,algorithm:{name:"HMAC",hash:r.hash}}),u={algorithm:r,keyHandle:d.keyHandle,keyData:d.keyData,workerid:0,buffer:null};function p(e,n,r){for(var o=[],i=e.concat([r>>>24&255,r>>>16&255,r>>>8&255,255&r]),a=0;a<n;a++){u.buffer=i,i=_.signHmac(u);for(var s=0;s<t;s++)o[s]=~~o[s]^i[s]}return o}for(var m=1;m<=n;m++)c=c.concat(p(s,a,m));return c.length=l,c}};"undefined"!==typeof t&&(G.importKey=function(e){var t;if("raw"!==e.format)throw new Error("unsupported import format");if(t=p.toArray(e.keyData),!1!==e.extractable)throw new Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"PBKDF2"},extractable:!1,usages:e.usages,type:"secret"}}},t.register("deriveBits","PBKDF2",G.deriveBits),t.register("importKey","PBKDF2",G.importKey));var q={deriveBits:function(e){var t,n,r,o=e.algorithm,i=e.keyData,a=e.length,s=o.salt,l=Math.ceil(a/8),c=[],d=p.toArray(o.info),u=[];switch(o.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw new Error("Unsupported hash algorithm.")}if(null==o.salt)throw new Error("HkdfParams: salt: Missing required property.");if(null==o.info)throw new Error("HkdfParams: info: Missing required property.");if(a%8!==0)throw new Error("The length provided for HKDF is not a multiple of 8 bits.");if(l>255*t)throw new Error("The length provided for HKDF is too large.");for(0===s.length&&(s=p.getVector(t)),(r={workerid:0,keyHandle:{algorithm:o},keyData:s,buffer:i}).keyData=_.signHmac(r),n=0;n<Math.ceil(l/t);n++)r.buffer=u.concat(d).concat([1+n]),u=_.signHmac(r),c=c.concat(u);return c.slice(0,l)}};"undefined"!==typeof t&&(q.importKey=function(e){var t;if("raw"!==e.format)throw new Error("unsupported import format");if(t=p.toArray(e.keyData),!1!==e.extractable)throw new Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"HKDF"},extractable:!1,usages:e.usages,type:"secret"}}},t.register("deriveBits","HKDF",q.deriveBits),t.register("importKey","HKDF",q.importKey));var Y={deriveBits:function(e){var t,n,r,o=e.algorithm,i=e.keyData,a=e.length,s=o.label,l=o.context,c=Math.ceil(a/8),d=[];switch(o.hash.name.toUpperCase()){case"SHA-1":t=20;break;case"SHA-256":t=32;break;case"SHA-384":t=48;break;case"SHA-512":t=64;break;default:throw new Error("Unsupported hash algorithm.")}if(null==o.label)throw new Error("HkdfCtrParams: label: Missing required property.");if(null==o.context)throw new Error("HkdfCtrParams: context: Missing required property.");if(a%8!==0)throw new Error("The length provided for HKDF-CTR is not a multiple of 8 bits.");if(c>255*t)throw new Error("The length provided for HKDF-CTR is too large.");r={workerid:0,keyHandle:{algorithm:o},keyData:i,buffer:i};var u=s.concat([0],l,X.int32ToBytes(a));for(n=1;n<=Math.ceil(c/t);n++)r.buffer=X.int32ToBytes(n).concat(u),d=d.concat(_.signHmac(r));return d.slice(0,c)}};"undefined"!==typeof t&&(Y.importKey=function(e){var t;if("raw"!==e.format)throw new Error("unsupported import format");if(t=p.toArray(e.keyData),!1!==e.extractable)throw new Error("only extractable=false is supported.");return{type:"keyImport",keyData:t,keyHandle:{algorithm:{name:"HKDF-CTR"},extractable:!1,usages:e.usages,type:"secret"}}},t.register("deriveBits","HKDF-CTR",Y.deriveBits),t.register("importKey","HKDF-CTR",Y.importKey));var Z=function(e){var t=g.bytesToDigits,n=g.digitsToBytes,r=e,o=new v.EllipticCurveOperatorFp(e);return{generateKey:function(t){var i=[],a=V.getBytes(e.order.length*g.DIGIT_NUM_BYTES);g.reduce(g.bytesToDigits(a),r.order,i);var s=r.allocatePointStorage();return o.scalarMultiply(i,r.generator,s),{privateKey:{x:n(s.x),y:n(s.y),d:n(i)},publicKey:{x:n(s.x),y:n(s.y)}}},deriveBits:function(e,n,i){var a=new v.EllipticCurvePointFp(r,!1,t(n.x),t(n.y),null,!1),s=r.allocatePointStorage();o.convertToJacobianForm(s),o.convertToMontgomeryForm(s),o.scalarMultiply(t(e.d),a,s),o.convertToAffineForm(s),o.convertToStandardForm(s);var l=g.digitsToBytes(s.x,!0,n.x.length);if(i&&8*l.length<i)throw new Error("DataError");var c=i%8,d=0===c?255:65280>>>c;return(l=i?l.slice(0,Math.ceil(i/8)):l)[l.length-1]=l[l.length-1]&d,l},computePublicKey:function(e){r.generator.isInMontgomeryForm||o.convertToMontgomeryForm(r.generator);var i=r.allocatePointStorage();return o.convertToJacobianForm(i),o.convertToMontgomeryForm(i),o.scalarMultiply(t(e),r.generator,i),{x:n(i.x),y:n(i.y)}}}};"undefined"!==typeof t&&(Z.deriveBits=function(e){var t=v.createCurve(e.algorithm.namedCurve.toUpperCase()),n=e.keyData,r=e.additionalKeyData;return Z(t).deriveBits(n,r,e.length)},Z.deriveKey=function(e){throw new Error("not supported")},Z.generateKey=function(e){var t=v.createCurve(e.algorithm.namedCurve.toUpperCase()),n=Z(t).generateKey();return{type:"keyPairGeneration",keyPair:{publicKey:{keyData:n.publicKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:[],type:"public"}},privateKey:{keyData:n.privateKey,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}}},Z.importKey=function(e){try{if("raw"===e.format){var t=e.keyData;if(4!==t[0])throw new Error("DataError");var n=~~((t.length-1)/2),r=e.algorithm.namedCurve.toUpperCase(),o=t.slice(1,n+1),i=t.slice(n+1);if(!1===v.validatePoint(r,o,i))throw new Error("DataError");return{type:"keyImport",keyData:{x:o,y:i},keyHandle:{algorithm:e.algorithm,extractable:e.extractable||!1,usages:e.usages,type:"public"}}}if("jwk"===e.format){if((c=f.jwkToKey(e.keyData,e.algorithm,["x","y","d","crv"])).d&&(!c.x||!c.y)){var a=v.createCurve(e.algorithm.namedCurve.toUpperCase()),s=Z(a).computePublicKey(c.d);c.x=s.x,c.y=s.y}if(!1===v.validatePoint(e.algorithm.namedCurve.toUpperCase(),c.x,c.y))throw new Error("DataError");return{type:"keyImport",keyData:c,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||c.extractable,usages:e.usages,type:c.d?"private":"public"}}}if("spki"===e.format){var l={"P-256":32,"P-384":48,"P-521":66}[e.algorithm.namedCurve];if(null==(d=m.parse(e.keyData)))throw new Error("invalid key data.");if(null==(g=(h=d[1]).data.slice(h.header+1))||4!==g.shift()||g.length!==2*l)throw new Error("invalid key data.");if(o=g.slice(0,l),i=g.slice(l),!p.isBytes(o)||!p.isBytes(i))throw new Error("invalid key data.");var c={x:o,y:i};if(!1===v.validatePoint(e.algorithm.namedCurve.toUpperCase(),c.x,c.y))throw new Error("DataError");return{type:"keyImport",keyData:c,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("pkcs8"===e.format){var d;if(l={"P-256":32,"P-384":48,"P-521":66}[e.algorithm.namedCurve],null==(d=m.parse(e.keyData)))throw new Error("invalid key data.");var u=d[2];if(null==(g=m.parse(u.data.slice(u.header))))throw new Error("invalid key data.");var h,g,y=g[1].data.slice(g[1].header);if(null==(g=(h=m.parse(g[2][0].data)).data.slice(h.header+1))||4!==g.shift()||g.length!==2*l)throw new Error("invalid key data.");if(o=g.slice(0,l),i=g.slice(l),!p.isBytes(o)||!p.isBytes(i))throw new Error("invalid key data.");if(c={x:o,y:i,d:y},!1===v.validatePoint(e.algorithm.namedCurve.toUpperCase(),c.x,c.y))throw new Error("DataError");return{type:"keyImport",keyData:c,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}}catch(b){throw new p.error("DataError","")}},Z.exportKey=function(e){var t="1.2.840.10045.2.1",n={"P-256":"1.2.840.10045.3.1.7 ","P-384":"1.3.132.0.34","P-521":"1.3.132.0.35"};if("raw"===e.format&&"public"===e.keyHandle.type)return{type:"keyExport",keyHandle:[4].concat(e.keyData.x,e.keyData.y)};if("jwk"===e.format)return{type:"keyExport",keyHandle:f.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}]})};if("pkcs8"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:1},{"OCTET STRING":e.keyData.d},{APPLICATION:[{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}],tag:1}]}}]})};throw new Error("unsupported export format.")},t.register("importKey","ECDH",Z.importKey),t.register("exportKey","ECDH",Z.exportKey),t.register("generateKey","ECDH",Z.generateKey),t.register("deriveBits","ECDH",Z.deriveBits),t.register("deriveKey","ECDH",Z.deriveKey));var J,Q=function(e){var t=g.bytesToDigits,n=g.digitsToBytes,r=new v.EllipticCurveOperatorFp(e),o=n(e.order).length,i=1===e.type;function a(t){var n=e.allocatePointStorage();return r.scalarMultiply(t,e.generator,n),{publicKey:n,privateKey:t}}function s(t){var n=[];return t||(t=V.getBytes(e.order.length*g.DIGIT_NUM_BYTES)),g.reduce(g.bytesToDigits(t),e.order,n),a(n)}function l(n){n.length>o&&(n.length=o);var r=t(n);if(i){var a=8-e.rbits%8;g.shiftRight(r,r,a)}return g.reduce(r,e.order,r),r}return{createKey:function(e){return a(t(e))},generateKey:s,sign:function(r,i,a){a||(a=s());var c=a.publicKey.x,d=a.privateKey,u=t(r.d),m=l(i.slice()),h=[],f=[];g.reduce(c,e.order,c),g.modMul(c,u,e.order,h),g.add(h,m,h),g.reduce(h,e.order,h),g.modInvCT(d,e.order,f),g.modMul(h,f,e.order,h);var v=p.padFront(n(c,!0,o),0,o),y=p.padFront(n(h,!0,o),0,o);return v.concat(y)},verify:function(n,o,a){var s=Math.floor(o.length/2),c=t(o.slice(0,s)),d=t(o.slice(s)),u=l(a.slice()),p=[],m=[],h=new v.EllipticCurvePointFp(e,!1,t(n.x),t(n.y),null,!1);g.modInv(d,e.order,d),g.modMul(u,d,e.order,p),g.modMul(c,d,e.order,m);var f=e.allocatePointStorage(),y=e.allocatePointStorage();return i?(g.add(p,p,p),g.add(p,p,p),g.reduce(p,e.order,p),r.scalarMultiply(p,e.generator,f,!1),r.scalarMultiply(m,h,y,!1),r.convertToExtendedProjective(f),r.convertToExtendedProjective(y),r.add(y,f,f),r.normalize(f)):(r.scalarMultiply(p,e.generator,f),r.scalarMultiply(m,h,y),r.convertToJacobianForm(f),r.convertToMontgomeryForm(f),r.convertToMontgomeryForm(y),r.mixedAdd(f,y,f),r.convertToAffineForm(f),r.convertToStandardForm(f)),!f.isInfinity&&(g.reduce(f.x,e.order,f.x),0===g.compareDigits(f.x,c))}}};"undefined"!==typeof t&&(Q.sign=function(e){p.checkParam(e.algorithm.hash,"Object","algorithm.hash"),p.checkParam(e.algorithm.hash.name,"String","algorithm.hash.name"),p.checkParam(e.keyHandle.algorithm.namedCurve,"String","p.keyHandle.algorithm.namedCurve");var t=e.algorithm.hash.name,n=v.createCurve(e.keyHandle.algorithm.namedCurve.toUpperCase()),r=u[t.toUpperCase()]().computeHash(e.buffer);return Q(n).sign(e.keyData,r)},Q.verify=function(e){var t=e.algorithm.hash.name,n=v.createCurve(e.keyHandle.algorithm.namedCurve.toUpperCase()),r=u[t.toUpperCase()]().computeHash(e.buffer);return Q(n).verify(e.keyData,e.signature,r)},Q.generateKey=function(e){var t=v.createCurve(e.algorithm.namedCurve.toUpperCase()),n=Q(t).generateKey(),r=g.digitsToBytes,o=r(n.publicKey.x),i=r(n.publicKey.y),a=r(n.privateKey);return{type:"keyPairGeneration",keyPair:{publicKey:{keyData:{x:o,y:i},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:["verify"],type:"public"}},privateKey:{keyData:{x:o,y:i,d:a},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:["sign"],type:"private"}}}}},Q.importKey=function(e){if("raw"===e.format){var t=e.keyData;if(4!==t[0])throw new Error("DataError");var n=~~((t.length-1)/2),r=e.algorithm.namedCurve.toUpperCase(),o=t.slice(1,n+1),i=t.slice(n+1);if(!1===v.validatePoint(r,o,i))throw new Error("DataError");return{type:"keyImport",keyData:{x:o,y:i},keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("jwk"===e.format){if((c=f.jwkToKey(e.keyData,e.algorithm,["x","y","d","crv"])).d&&(!c.x||!c.y)){var a=Q.curves[e.algorithm.namedCurve](),s=Q(a).computePublicKey(c.d);c.x=s.x,c.y=s.y}if(!1===v.validatePoint(e.algorithm.namedCurve.toUpperCase(),c.x,c.y))throw new Error("DataError");return{type:"keyImport",keyData:c,keyHandle:{algorithm:e.algorithm,extractable:e.extractable||c.extractable,usages:e.usages,type:c.d?"private":"public"}}}if("spki"===e.format){var l={"P-256":32,"P-384":48,"P-521":66}[e.algorithm.namedCurve];if(null==(d=m.parse(e.keyData)))throw new Error("invalid key data.");if(null==(g=(h=d[1]).data.slice(h.header+1))||4!==g.shift()||g.length!==2*l)throw new Error("invalid key data.");if(o=g.slice(0,l),i=g.slice(l),!p.isBytes(o)||!p.isBytes(i))throw new Error("invalid key data.");var c={x:o,y:i};if(!1===v.validatePoint(e.algorithm.namedCurve.toUpperCase(),c.x,c.y))throw new Error("DataError");return{type:"keyImport",keyData:c,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"public"}}}if("pkcs8"===e.format){var d;if(l={"P-256":32,"P-384":48,"P-521":66}[e.algorithm.namedCurve],null==(d=m.parse(e.keyData)))throw new Error("invalid key data.");var u=d[2];if(null==(g=m.parse(u.data.slice(u.header))))throw new Error("invalid key data.");var h,g,y=g[1].data.slice(g[1].header);if(null==(g=(h=m.parse(g[2][0].data)).data.slice(h.header+1))||4!==g.shift()||g.length!==2*l)throw new Error("invalid key data.");if(o=g.slice(0,l),i=g.slice(l),!p.isBytes(o)||!p.isBytes(i))throw new Error("invalid key data.");if(c={x:o,y:i,d:y},!1===v.validatePoint(e.algorithm.namedCurve.toUpperCase(),c.x,c.y))throw new Error("DataError");return{type:"keyImport",keyData:c,keyHandle:{algorithm:e.algorithm,extractable:e.extractable,usages:e.usages,type:"private"}}}},Q.exportKey=function(e){var t="1.2.840.10045.2.1",n={"P-256":"1.2.840.10045.3.1.7 ","P-384":"1.3.132.0.34","P-521":"1.3.132.0.35"};if("raw"===e.format&&"public"===e.keyHandle.type)return{type:"keyExport",keyHandle:[4].concat(e.keyData.x,e.keyData.y)};if("jwk"===e.format)return{type:"keyExport",keyHandle:f.keyToJwk(e.keyHandle,e.keyData)};if("spki"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}]})};if("pkcs8"===e.format)return{type:"keyExport",keyHandle:m.encode({SEQUENCE:[{INTEGER:0},{SEQUENCE:[{"OBJECT IDENTIFIER":t},{"OBJECT IDENTIFIER":n[e.algorithm.namedCurve]}]},{"OCTET STRING":{SEQUENCE:[{INTEGER:1},{"OCTET STRING":e.keyData.d},{APPLICATION:[{"BIT STRING":[4].concat(e.keyData.x,e.keyData.y)}],tag:1}]}}]})};throw new Error("unsupported export format.")},t.register("sign","ECDSA",Q.sign),t.register("verify","ECDSA",Q.verify),t.register("generateKey","ECDSA",Q.generateKey),t.register("importKey","ECDSA",Q.importKey),t.register("exportKey","ECDSA",Q.exportKey));var X=p;J=function(){function e(){var e;return{postMessage:function(t){try{t.workerid=this.id,e=h.jsCryptoRunner({data:t})}catch(n){return void this.onerror({data:n,type:"error"})}this.onmessage({data:e})},onmessage:null,onerror:null,terminate:function(){}}}function o(e){var t,n,r;return{dispatchEvent:function(o){"error"!==o.type?"process"!==o.data.type&&"finish"!==o.data.type?(this.result=e(o.data),n.apply(t,[this.result])):e(o.data.result,!0):r&&(o.data&&(o.data.stack="Error")&&(o.data.code=0),r.apply(t,[o.data||o]))},promise:t=new Promise((function(e,t){n=e,r=t})),result:null}}function i(e){var t=[],n=o((function(e,n){var r;if(e=e&&(r=e,s&&r.pop?new Uint8Array(r).buffer:r),!n)return e;t.resolve(e)}));return n.stream=e.algorithm.stream,t.add=function(e){var n,r,o=new Promise((function(e,t){n=e,r=t}));return o.label=e,t.push({resolve:n,reject:r,promise:o}),o},t.resolve=function(e){var n=t.shift();n.resolve.apply(n.promise,[e])},n.process=function(n){return e.operationSubType="process",e.buffer=X.toArray(n),l.continueJob(this,X.clone(e)),t.add("process")},n.finish=function(){return e.operationSubType="finish",e.buffer=[],l.continueJob(this,X.clone(e)),t.add("finish")},n.abort=function(){l.abortJob(this)},n.algorithm=e.algorithm||null,n.key=e.keyHandle||null,n}var a=[];a.add=function(e,t){a.push({keyHandle:e,keyData:t})},a.remove=function(e){for(var t=0;t<a.length;t+=1)if(a[t].keyHandle===e)return void(a=a.splice(t,1))},a.lookup=function(e){for(var t=0;t<a.length;t+=1)if(a[t].keyHandle===e)return a[t].keyData;return null};var l=function(){var t=[],o=[],i=0,a=0,s=[],l="undefined"===typeof setImmediate?setTimeout:setImmediate;function d(){s.shift()()}var u=r?"available":"unavailable";function p(){!function(e){for(var n=t.length-1;n>=0;n-=1)t[n].isWebWorker===e&&(t[n].terminate(),t.splice(n,1))}(!c);for(var e=0;e<t.length;e++)if(!t[e].busy)return t[e];return null}function m(e){for(var n=0;n<t.length;n++)if(t[n]===e)return e.terminate(),void t.splice(n,1)}function h(e){for(var n=0;n<t.length;n++)if(t[n].operation===e)return t[n];return null}function f(e,t){o.push({operation:e,data:t,id:i++})}function g(e){if(e.busy=!1,c)if(o.length>0){var n,r=o.shift();if(b(r.operation,r.data),"process"===r.data.operationSubType){for(n=0;n<o.length;n++)r.operation===o[n].operation&&b(o[n].operation,o[n].data);for(n=o.length-1;n>=0;n--)r.operation===o[n].operation&&o.splice(n,1)}}else(function(){for(var e=0,n=0;n<t.length;n++)t[n].busy||(e+=1);return e})()>2&&m(e)}function v(r){var i;if("pending"===u)throw new Error("Creating new worker while workerstatus=pending");if("ready"===u)try{(i=new Worker(n)).postMessage({prngSeed:V.getBytes(48)}),i.isWebWorker=!0}catch(s){c=!1,u="failed",i.terminate(),(i=e()).isWebWorker=!1}else(i=e()).isWebWorker=!1;return i.operation=r,i.id=a++,i.busy=!1,i.onmessage=function(e){if(!0!==e.data.initialized){var t=i.operation;e.target||(e.target={data:i.data});for(var n=0;n<o.length;n++)if(o[n].operation===i.operation){var r=o[n];return o.splice(n,1),void C(i,r.data)}e.data.hasOwnProperty("type")&&"process"===e.data.type||g(i),t.dispatchEvent(e)}},i.onerror=function(e){var t=i.operation;g(i),t.dispatchEvent(e)},function(e){t.push(e)}(i),i}function y(e,n){var r=null;if("pending"!==u)if(r=p(),c&&null===r&&t.length>=12)f(e,n);else{if(null===r&&(r=v(e)),null===r)throw f(e,n),new Error("could not create new worker");r.operation=e,r.busy=!0,n.workerid=r.id,C(r,n)}else f(e,n)}function b(e,t){var n=h(e);n?C(n,t):y(e,t)}function C(e,t){if(t.workerid=e.id,c)e.postMessage(t);else{var n=(o=t,function(){return e.postMessage(o)});r=n,s.push(r),l(d,0)}var r,o}return{runJob:y,continueJob:b,abortJob:function(e){var t=h(e);t&&m(t)},useWebWorkers:function(e){if("unavailable"!==u){if((!0!==e||"ready"!==u)&&(!1!==e||"available"!==u)){if(!1===e&&"ready"===u)return c=!1,u="available",void X.consoleLog("web workers disabled.");if("pending"!==u){u="pending";var t=new Worker(n);t.addEventListener("message",r,!1),t.addEventListener("error",r,!1),t.postMessage({prngSeed:V.getBytes(48)})}}}else X.consoleLog("web workers not available in this browser.");function r(e){var n=!(!e.data||!0!==e.data.initialized);if(t.removeEventListener("message",r,!1),t.removeEventListener("error",r,!1),t.terminate(),u=n?"ready":"failed",c=n,X.consoleLog("web worker initialization "+(n?"succeeded. Now using web workers.":"failed. running synchronously."+(e.message||""))),o.length>0){var i=o.shift();y(i.operation,i.data)}}}}}(),d=[{name:"algorithm",type:"Object",required:!0},{name:"keyHandle",type:"Object",required:!0},{name:"buffer",type:"Array",required:!1},{name:"signature",type:"Array",required:!0},{name:"format",type:"String",required:!0},{name:"keyData",type:"Object",required:!0},{name:"extractable",type:"Boolean",required:!1},{name:"usages",type:"Array",required:!1},{name:"derivedKeyType",type:"Object",required:!0},{name:"length",type:"Number",required:!1},{name:"extractable",type:"Boolean",required:!0},{name:"usages",type:"Array",required:!0},{name:"keyData",type:"Array",required:!0}],u={encrypt:[0,1,2],decrypt:[0,1,2],sign:[0,1,2],verify:[0,1,3,2],digest:[0,2],generateKey:[0,6,7],importKeyRaw:[4,12,0,10,11],importKeyJwk:[4,5,0,10,11],exportKey:[0,4,1,6,7],deriveKey:[0,1,8,6,7],deriveBits:[0,1,9],wrapKey:[1,1,0],unwrapKey:[2,0,1,6,7]};function m(e){var t=a.lookup(e);if(!t)throw new Error("key not found");return t}function f(e,n,r){var s=function(e,t){var n,r,o,i,a={operationType:e};for("importKey"!==e||"raw"!==t[0]&&"spki"!==t[0]&&"pkcs8"!==t[0]||(e="importKeyRaw"),"importKey"===e&&"jwk"===t[0]&&(e="importKeyJwk"),n=u[e],i=0;i<n.length;i+=1)if(r=d[n[i]],null!=(o=t[i])){if(o.subarray&&(o=X.toArray(o)),"ArrayBuffer"===X.getObjectType(o)&&(o=X.toArray(o)),p.getObjectType(o)!==r.type)throw new Error(r.name);"algorithm"===r.name&&(o.name=o.name.toUpperCase(),o.iv&&(o.iv=X.toArray(o.iv)),o.publicExponent&&(o.publicExponent=X.toArray(o.publicExponent)),o.salt&&(o.salt=X.toArray(o.salt)),o.additionalData&&(o.additionalData=X.toArray(o.additionalData)),o.hash&&!o.hash.name&&"String"===X.getObjectType(o.hash)&&(o.hash={name:o.hash})),a.hasOwnProperty(r.name)?a[r.name+"1"]=o:a[r.name]=o}else if(r.required)throw new Error(r.name);return a}(e,n);!function(e,n){if(!t.exists(e,n))throw new Error("unsupported algorithm")}(e,s.algorithm.name),s.keyHandle&&(s.keyData=m(s.keyHandle)),s.keyHandle1&&(s.keyData1=m(s.keyHandle1)),s.algorithm&&s.algorithm.public&&(s.additionalKeyData=m(s.algorithm.public));var c=r?o((function(e){var t,n;switch(e.type){case"keyGeneration":case"keyImport":case"keyDerive":return e.keyPair?(a.add(e.keyPair.publicKey.keyHandle,e.keyPair.publicKey.keyData),a.add(e.keyPair.privateKey.keyHandle,e.keyPair.privateKey.keyData),{publicKey:e.keyPair.publicKey.keyHandle,privateKey:e.keyPair.privateKey.keyHandle}):(a.add(e.keyHandle,e.keyData),e.keyHandle);case"keyExport":return e.keyHandle;case"keyPairGeneration":return n=e.keyPair.privateKey,t=e.keyPair.publicKey,a.add(t.keyHandle,t.keyData),a.add(n.keyHandle,n.keyData),{publicKey:t.keyHandle,privateKey:n.keyHandle};default:throw new Error("Unknown key operation")}})):i(s);return(r||s.buffer||"deriveBits"===e||"wrapKey"===e)&&l.runJob(c,s),c.stream?Promise.resolve(function(e){return{process:function(t){return e.process(t)},finish:function(){return e.finish()},abort:function(){return e.abort()}}}(c)):c.promise}var g={encrypt:function(e,t,n){return f("encrypt",arguments,0)},decrypt:function(e,t,n){return f("decrypt",arguments,0)},sign:function(e,t,n){return f("sign",arguments,0)},verify:function(e,t,n,r){return f("verify",arguments,0)},digest:function(e,t){return f("digest",arguments,0)},generateKey:function(e,t,n){return f("generateKey",arguments,1)},deriveKey:function(e,t,n,r,o){var i=this.deriveBits,a=this.importKey;return new Promise((function(s,l){var c;switch(n.name.toUpperCase()){case"AES-CBC":case"AES-GCM":c=n.length;break;case"HMAC":c=n.length||{"SHA-1":512,"SHA-224":512,"SHA-256":512,"SHA-384":1024,"SHA-512":1024}[n.hash.name.toUpperCase()];break;default:return void l(new Error("No Supported"))}i(e,t,c).then((function(e){return a("raw",e,n,r,o)})).then((function(e){s(e)})).catch((function(e){l(e)}))}))},deriveBits:function(e,t,n){return f("deriveBits",arguments,0)},importKey:function(e,t,n,r,o){return f("importKey",arguments,1)},exportKey:function(e,t){return f("exportKey",[t.algorithm,e,t],1)},wrapKey:function(e,t,n,r){var o=this.encrypt,i=this.exportKey;return new Promise((function(a,s){!1===t.extractable||n.usages.indexOf("wrapKey")<0||n.algorithm.name.toUpperCase()!==r.name?s(new Error("InvalidAccessError")):i(e,t).then((function(t){return console.log(X.toBase64(t)),o(r,n,"jwk"===e?X.stringToBytes(JSON.stringify(t,null,0)):t)})).then((function(e){a(e)})).catch((function(e){s(e)}))}))},unwrapKey:function(e,t,n,r,o,i,a){var s=this.decrypt,l=this.importKey;return new Promise((function(c,d){n.usages.indexOf("unwrapKey")<0||n.algorithm.name.toUpperCase()!==r.name?d(new Error("InvalidAccessError")):s(r,n,t).then((function(t){return l(e,"jwk"===e?JSON.parse(X.bytesToString(t)):t,o,i,a)})).then((function(e){c(e)})).catch((function(e){d(e)}))}))}};return{publicMethods:g,internalMethods:{useWebWorkers:l.useWebWorkers}}}();var $=function(){var e=p;return{wrapKey:function(t){var n=K(t.keyData1,t.keyHandle1.algorithm.name,u["SHA-1"])(),r=f.keyToJwkOld(t.keyHandle,t.keyData),o={alg:t.keyHandle1.algorithm.name.toUpperCase(),enc:"A128GCM"},i=e.toBase64(JSON.stringify(o),!0),a=V.getBytes(32),s=n.encrypt(a),l=e.toBase64(s,!0),c=V.getBytes(12),d=e.toBase64(c,!0),p=i.concat(".",l,".",d),m=N(T.aes(a));m.init(c,e.stringToBytes(p),128);var h=m.encrypt(r),g=h.slice(-16),v={recipients:[{header:i,encrypted_key:l,integrity_value:e.toBase64(g,!0)}],initialization_vector:d,ciphertext:e.toBase64(h.slice(0,h.length-g.length),!0)};return e.stringToBytes(JSON.stringify(v))},unwrapKey:function(t){var n=e.fromBase64,r=JSON.parse(String.fromCharCode.apply(null,t.buffer)),o=(e.fromBase64(r.recipients[0].header),n(r.recipients[0].encrypted_key)),i=n(r.recipients[0].integrity_value),a=n(r.initialization_vector),s=n(r.ciphertext),l=u["SHA-1"](),c=K(t.keyData,t.keyHandle.algorithm.name,l).decrypt(o),d=r.recipients[0].header.concat(".",r.recipients[0].encrypted_key,".",r.initialization_vector),p=N(T.aes(c));p.init(a,e.stringToBytes(d),128);var m=p.decrypt(s,i),h=f.jwkToKey(m,t.algorithm,["k"]);return{type:"keyImport",keyData:h.k,keyHandle:{algorithm:{name:t.algorithm.name},extractable:t.extractable||h.extractable,usages:t.usages,type:"secret"}}}}}();"undefined"!==typeof t&&(t.register("wrapKey","AES-GCM",$.wrapKey),t.register("unwrapKey","AES-CBC",$.unwrapKey));var ee,te={subtle:J?J.publicMethods:null,getRandomValues:function(e){var t,n=V.getBytes(e.length);for(t=0;t<e.length;t+=1)e[t]=n[t];return e},initPrng:function(e){var t=Object.prototype.toString.call(e);if("[object Array]"!==t&&"[object Uint8Array]"!==t)throw new Error("entropyData must be a Array or Uint8Array");ee&&ee.reseed(e),V.reseed(ee.read(48))},toBase64:function(e,t){return p.toBase64(e,t)},fromBase64:function(e){return p.fromBase64(e)},textToBytes:function(e){return p.stringToBytes(e)},bytesToText:function(e){return p.bytesToString(e)},asn1:m,url:n,version:"1.6.6",useWebWorkers:function(e){return J?J.internalMethods.useWebWorkers(e):null}};ee=ee||new function(e){var t=[],n=new B,r=!1,o=!1,i=e;function a(){var a,s=["Cookie","RedirectUri","ETag","x-ms-client-antiforgery-id","x-ms-client-request-id","x-ms-client-session-id","SubscriptionPool"],d=[];for(a=0;a<48;a+=1)d[a]=Math.floor(256*Math.random());var u=i.crypto||i.msCrypto;if(u&&"function"===typeof u.getRandomValues&&e.Uint8Array){var m=new e.Uint8Array(48);u.getRandomValues(m),d=d.concat(Array.apply(null,m)),o=!0}if("undefined"!==typeof XMLHttpRequest){var h=new XMLHttpRequest;for(a=0;a<s.length;a+=1)try{var f=h.getResponseHeader(s[a]);if(f){var g=p.stringToBytes(f);d=d.concat(g)}}catch(v){}}!o&&l&&(d=d.concat(t.splice(0,t.length)),c.startCollectors()),r?n.reseed(d):n.init(d),r=!0}function s(e){for(var n=0;n<e.length;++n)t.push(e[n]);t.length>=128&&c.stopCollectors()}var l=e&&e.addEventListener||"undefined"!==typeof document&&document.attachEvent,c={startCollectors:function(){if(!this.collectorsRegistered){if(e.addEventListener)e.addEventListener("mousemove",this.MouseEventCallBack,!0),e.addEventListener("load",this.LoadTimeCallBack,!0);else{if(!document.attachEvent)throw new Error("Can't attach events for entropy collection");document.attachEvent("onmousemove",this.MouseEventCallBack),document.attachEvent("onload",this.LoadTimeCallBack)}this.collectorsRegistered=1}},stopCollectors:function(){this.collectorsRegistered&&(e.removeEventListener?(e.removeEventListener("mousemove",this.MouseEventCallBack,1),e.removeEventListener("load",this.LoadTimeCallBack,1)):e.detachEvent&&(e.detachEvent("onmousemove",this.MouseEventCallBack),e.detachEvent("onload",this.LoadTimeCallBack)),this.collectorsRegistered=0)},MouseEventCallBack:function(e){var t=(new Date).valueOf(),n=e.x||e.clientX||e.offsetX||0,r=e.y||e.clientY||e.offsetY||0;s([255&t,t>>8&255,t>>16&255,t>>24&255,255&n,n>>8&255,255&r,r>>8&255])},LoadTimeCallBack:function(){var e=(new Date).valueOf();s([255&e,e>>8&255,e>>16&255,e>>24&255])}};return{init:function(){if(a(),!o&&l)try{c.startCollectors()}catch(e){}},reseed:function(e){n.reseed(e)},read:function(e){if(!r)throw new Error("Entropy pool is not initialized.");var t=n.getBytes(e);return a(),t}}}(e),ee.init();var ne=ee.read(48);return V.init(ne),te}()}!function(e){e.default="default",e.black="black",e.white="white"}(Kr||(Kr={})),function(e){e.black="black",e.white="white",e.whiteOutline="white-outline"}(jr||(jr={})),function(e){e.book="book",e.buy="buy",e.checkout="checkout",e.donate="donate",e.order="order",e.pay="pay",e.plain="plain",e.subscribe="subscribe"}(Gr||(Gr={})),function(e){e.book="book",e.buy="buy",e.checkOut="check-out",e.donate="donate",e.order="order",e.pay="pay",e.plain="plain",e.subscribe="subscribe"}(qr||(qr={})),function(e){e[e.PayPal=0]="PayPal",e[e.Tokenization=1]="Tokenization"}(Yr||(Yr={}));var Ro=Object.freeze({__proto__:null,msrCrypto:To});function Ao(e){var t=window.crypto||window.msrCrypto||e;u()&&(t=window.msCrypto);var n=t.subtle,r=function(e){return t.getRandomValues(e)},o={name:"RSA-OAEP",hash:{name:"SHA-256"}},i=void 0;function a(e,t,o,a,l,d){var u=r(new Uint8Array(32)),m=r(new Uint8Array(12)),h={alg:"RSA-OAEP-256",enc:"A256GCM",typ:"JOSE",kid:i.kid,uuid:c()+c()+"-"+c()+"-"+c()+"-"+c()+"-"+c()+c()+c(),iat:Math.floor(Date.now()/1e3).toString()},g=p(JSON.stringify(h)),v=p(f(g,!0));!function(e,t,r,o,i,a,l){var c=p(t,a);l?function(e,t,r,o,i,a){var l=n.importKey("raw",r.aesKeyData,{name:"AES-GCM"},!0,["encrypt"]);l.onerror=function(e){a(keyImportFailureMessage+" in IE11: "+e.target.result)},l.oncomplete=function(l){var c=l.target.result,d=n.encrypt(r.aesGcmParams,c,t);d.onerror=function(e){a(o+" Encrypt data failure in IE11: "+e.target.result)},d.oncomplete=function(t){var l=n.encrypt(r.rsaParams,e,r.aesKeyData);l.onerror=function(e){a(o+" Encrypt key failure in IE11: "+e.target.result)},l.oncomplete=function(e){s(t,e,r,i,a)}}}}(e,c,r,o,i,a):function(e,t,r,o,i,a){n.importKey("raw",r.aesKeyData,{name:"AES-GCM"},!0,["encrypt"]).then((function(l){n.encrypt(r.aesGcmParams,l,t).then((function(t){t.slice(0,t.byteLength-16),t.slice(t.byteLength-16),n.encrypt(r.rsaParams,e,r.aesKeyData).then((function(e){s(t,e,r,i,a)})).catch((function(e){a(o+" Encrypt key failure: "+e)}))})).catch((function(e){a(o+"Encrypt data failure: "+e)}))})).catch((function(e){a(o+"Encrypt data failure: "+e)}))}(e,c,r,o,i,a)}(e,t,{aesGcmParams:{name:"AES-GCM",iv:m,additionalData:v,tagLength:128},rsaParams:{name:"RSA-OAEP"},serializedHeader:g,aesKeyData:u,nonce:m,aad:v},o,a,l,d)}function s(e,t,n,r,o){var a=e.slice(0,e.byteLength-16),s=e.slice(e.byteLength-16);r({header:d(n.serializedHeader,o),key_version:i.kid,session_key:d(t,o),iv:d(n.nonce,o),payload:d(a,o),tag:d(s,o),authenticated_data:d(n.aad,o)})}function l(e){i=JSON.parse(e)}function c(){return r(new Uint16Array(1))[0].toString(16)}function d(e,t){return f(p(e,t))}function u(){var e;return(null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.indexOf("rv:11.0"))>-1&&void 0!=window.msCrypto}function p(e,t){var n="undefined"!==typeof Uint8Array,r=Object.prototype.toString.call(e);switch(r=r.substring(8,r.length-1)){case"Array":return n?new Uint8Array(e):e;case"ArrayBuffer":case"Uint16Array":case"Uint32Array":return new Uint8Array(e);case"Uint8Array":return e;case"String":for(var o=n?new Uint8Array(e.length):new Array(e.length),i=0;i<e.length;i+=1)o[i]=e.charCodeAt(i);return o;default:t("toSupportedArray : unsupported data type "+r)}}var m="undefined"!==typeof btoa,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function f(e,t){var n,r,o,i,a,s,l,c,d="";if(t||(t=!1),(e.pop||e.subarray)&&(e=String.fromCharCode.apply(null,e)),m)d=btoa(e);else for(c=0;c<e.length;c+=3)i=(n=e.charCodeAt(c))>>2,a=(3&n)<<4|(r=e.charCodeAt(c+1))>>4,s=(15&r)<<2|(o=e.charCodeAt(c+2))>>6,l=63&o,isNaN(r)?s=l=64:isNaN(o)&&(l=64),d=d+h.charAt(i)+h.charAt(a)+h.charAt(s)+h.charAt(l);return t?d.replace(/\+/g,"-").replace(/\//g,"_").replace(/\=/g,""):d}return{Encrypt:function(e,t,r,s){!function(e,t,r,s){l(e.dataProtection.parameters.publicKey);var c=e.token_set||void 0,d="jwk",m="Public Jwk key import failure",h=u(),f="encrypt";if(h){var g=p(JSON.stringify(i)),v=n.importKey(d,g,o,!0,[f]);v.onerror=function(e){s(m+" in IE11: "+e.target.result)},v.oncomplete=function(e){a(e.target.result,t,c,r,s,h)}}else n.importKey(d,i,o,!0,[f]).then((function(e){a(e,t,c,r,s,h)})).catch((function(e){s(m+": "+e)}))}(e,t,(function(e){r(e)}),(function(e){s(e)}))},SetPublicKey:l,EncryptedOutput:void 0}}var Mo=Object.freeze({__proto__:null,TokenEncrypt:Ao}),No=function(){var e=this;this.doServerTokenization=function(e,t,n,r,o){return new Promise((function(i,a){var s=Br.virtualEndpoints.tokenization,l=It.buildUrl(Br.getServiceEndpoint(s.endpoint),[t,"getToken"]);return io.post(e,!0,l,io.getDefaultHttpHeaders(e),'{ "data": "'+n+'" }',(function(e){i({data:e.data})}),(function(e){(e=e||{status:E.Fail}).failureObject=e.failureObject||{},e.failureObject.code=Y.tokenizationFailed;var t=" ";if(Hr.isString(n))for(var r=0;r<n.length;r++){var o=n.charCodeAt(r);t+=o>=48&&o<=57?"d":"c"}else t=" n_s";e.failureObject.message=e.failureObject.message?e.failureObject.message+t:t,i({error:new sn.serverError(ln.tokenizationFailed,l,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage+t])})}),r,s.operation,s.description,!1,o).catch((function(e){i({error:new sn.unexpectedError(ln.tokenizationFailed,[e.message])})}))}))},this.serverTokenization=function(t,n,r,o,i){var a;return r.propertyTokenizing(n,It.buildUrl(Br.getServiceEndpoint(Br.virtualEndpoints.tokenization.endpoint),[t.token_set,"getToken"])),e.doServerTokenization(r,t.token_set,o[n],i,null===(a=null===t||void 0===t?void 0:t.dataProtection)||void 0===a?void 0:a.fetchConfig).then((function(e){return e.error||(o[n]=e.data,r.propertyTokenized(n)),{error:e.error}}))},this.doFileUpload=function(e,t,n,r,o,i){var a=n.hmacContext;return new Promise((function(n,s){var l=Br.virtualEndpoints.payeeTaxProfile;return io.post(e,!0,o,io.getPayeeFileUploadHttpHeaders(e,a.userCredential),t,(function(e){n({data:e.filename})}),(function(e){(e=e||{status:E.Fail}).failureObject=e.failureObject||{},e.failureObject.code=Y.fileUploadFailed,n({error:new sn.serverError(ln.fileUploadFailure,o,e.failureObject,e.httpStatus,e.httpStatusText,void 0,[e.errorMessage])})}),r,l.operation,l.description,!1,i).catch((function(e){n({error:new sn.unexpectedError(ln.fileUploadFailure,[e.message])})}))}))},this.composePayeeFileUploadPayload=function(e,t){var n=new FormData;return n.append("file",e[t]),n.append("payeeid",e.payee_id),n.append("taxprofileid",e.tax_profile_id),n},this.fileUpload=function(t,n,r,o,i,a,s){var l,c=e.composePayeeFileUploadPayload(o,n),d=It.createFromTemplate(s);return r.fileUploading(n,d),e.doFileUpload(r,c,i,a,d,null===(l=null===t||void 0===t?void 0:t.dataProtection)||void 0===l?void 0:l.fetchConfig).then((function(e){return e.error||(o[n]=e.data,r.fileUploaded(n)),{error:e.error}}))},this.msrCryptoEncryption=function(e,t,n,r){var o,i,a,s;n.propertyTokenizing(t,"");var l=e&&e.dataProtection&&e.dataProtection.parameters;if("undefined"!==typeof msrCrypto||l&&!l.encryptionLibrary)i=Wr();else{a=l&&l.encryptionLibrary||void 0;var c=l&&l.encryptionLibraryUrl||It.buildUrl(Br.getServiceEndpoint(Br.virtualEndpoints.msrCryptoJS.endpoint),[a]);i=io.loadScript(c)}if("undefined"!==typeof encryption)o=Wr();else{s=l&&l.encryptionScript||void 0;var d=l&&l.encryptionScriptUrl||It.buildUrl(Br.getServiceEndpoint(Br.virtualEndpoints.encryptJS.endpoint),[s]);o=io.loadScript(d)}return i.then((function(){return o.then((function(){return"undefined"===typeof encryption?{error:new sn.unexpectedError(ln.msrEncryptionFailed,["Fail to initialize "+s+" instance"])}:new Promise((function(o,i){encryption.Encrypt(e,r[t],(function(e){r[t]=e,n.propertyTokenized(t),o({})}),(function(e){i(e)}))})).catch((function(e){var t="Encryption failure: "+JSON.stringify(e);return{error:new sn.serverError(ln.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+s+" script file: "+JSON.stringify(e);return{error:new sn.serverError(ln.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+a+" script file: "+JSON.stringify(e);return{error:new sn.serverError(ln.msrEncryptionFailed,null,null,null,t,null,[t])}}))},this.doTokenizeMsrCryptoEncryption=function(t,n,r,o,i,a){var s,l,c,d=Wr(),u=Wr(),p=t&&t.dataProtection&&t.dataProtection.parameters;if(!a)if(p&&p.encryptionFunction)e.localMsrCryptoInstance||(e.localMsrCryptoInstance=To(window)),e.localEncryptionInstance||(e.localEncryptionInstance=Ao(e.localMsrCryptoInstance)),c=e.localEncryptionInstance;else{if("undefined"!==typeof msrCrypto||p&&!p.encryptionLibrary)u=Wr();else{s=p&&p.encryptionLibrary||void 0;var m=p&&p.encryptionLibraryUrl||It.buildUrl(Br.getServiceEndpoint(Br.virtualEndpoints.msrCryptoJS.endpoint),[s]);u=io.loadScript(m)}if("undefined"!==typeof encryption)d=Wr();else{l=p&&p.encryptionScript||void 0;var h=p&&p.encryptionScriptUrl||It.buildUrl(Br.getServiceEndpoint(Br.virtualEndpoints.encryptJS.endpoint),[l]);d=io.loadScript(h).then((function(){if("undefined"===typeof encryption)return{error:new sn.unexpectedError(ln.msrEncryptionFailed,["Fail to initialize "+l+" instance"])};c=encryption}))}}return u.then((function(){return d.then((function(){return new Promise((function(e,s){var l,d=Br.virtualEndpoints.tokenization,u=It.buildUrl(Br.getServiceEndpoint(d.endpoint),[r,"getToken"]);return io.post(n,!0,u,io.getDefaultHttpHeaders(n),'{ "data": "'+o+'" }',(function(t){e({data:t.data})}),(function(t){(t=t||{status:E.Fail}).failureObject=t.failureObject||{},t.failureObject.code=Y.tokenizationFailed;var n=" ";if(Hr.isString(o))for(var r=0;r<o.length;r++){var i=o.charCodeAt(r);n+=i>=48&&i<=57?"d":"c"}else n=" n_s";t.failureObject.message=t.failureObject.message?t.failureObject.message+n:n,e({error:new sn.serverError(ln.tokenizationFailed,u,t.failureObject,t.httpStatus,t.httpStatusText,void 0,[t.errorMessage+n])})}),i,d.operation,d.description,!1,null===(l=t.dataProtection)||void 0===l?void 0:l.fetchConfig,(function(){return new Promise((function(e,n){a?a.encrypt(t,t.token_set,o).then((function(t){var n={"content-type":"application/json","x-ms-requestor":"Microsoft",traceparent:Nr.guid()};e({success:!0,headers:n,payload:"string"!==typeof t?JSON.stringify(t):t})})).catch((function(e){n(e)})):c.Encrypt(t,o,(function(t){var n={"content-type":"application/json","x-ms-requestor":"Microsoft",traceparent:Nr.guid()};e({success:!0,headers:n,payload:JSON.stringify(t)})}),(function(e){n(e)}))}))})).catch((function(t){e({error:new sn.unexpectedError(ln.tokenizationFailed,[t.message])})}))})).catch((function(e){var t="Encryption and tokenize failure: "+JSON.stringify(e);return{error:new sn.serverError(ln.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+l+" script file: "+JSON.stringify(e);return{error:new sn.serverError(ln.msrEncryptionFailed,null,null,null,t,null,[t])}}))})).catch((function(e){var t="Fail to download "+s+" script file: "+JSON.stringify(e);return{error:new sn.serverError(ln.msrEncryptionFailed,null,null,null,t,null,[t])}}))},this.tokenizeMsrCryptoEncryption=function(t,n,r,o,i,a){r.propertyTokenizing(n,"");var s=o[n];return e.doTokenizeMsrCryptoEncryption(t,r,t.token_set,s,i,a).then((function(e){return e.error||(o[n]=e.data,r.propertyTokenized(n)),{error:e.error}}))},this.payPalHECEncryption=function(e,t,n,r,o){var i;if(n.propertyTokenizing(t,""),"undefined"!==typeof PayPalCrypto)i=Wr();else{var a=e&&e.dataProtection&&e.dataProtection.parameters,s=a&&a.encryptionScriptUrl;if(!s){var l=a&&a.encryptionScript||"paypalEncrypt.js";s=It.buildUrl(Br.getServiceEndpoint(Br.virtualEndpoints.paypalEncryptJS.endpoint),[l])}i=io.loadScript(s)}var c=e;return i.then((function(){return"undefined"===typeof PayPalCrypto?{error:new sn.unexpectedError(ln.hmacError,["Fail to initialize PayPal encryption instance"])}:new Promise((function(e,i){PayPalCrypto.Encrypt(c,o,r[t],(function(o){r[t]=btoa(String.fromCharCode.apply(null,o)),n.propertyTokenized(t),e({})}))}))})).catch((function(e){var t="Fail to download paypal encryption script file\n "+JSON.stringify(e);return{error:new sn.serverError(ln.tokenizationFailed,null,null,null,t,null,[t])}}))},this.customEncryption=function(t,n,r,o,i,a,s){r.propertyTokenizing(n,"");var l=t;return new Promise((function(t,s){return b(e,void 0,void 0,(function(){var e;return C(this,(function(s){switch(s.label){case 0:return[4,a.encrypt(l,i,o[n])];case 1:return e=s.sent(),o[n]=e,r.propertyTokenized(n),t({}),[2]}}))}))})).catch((function(e){var t="".concat(s,"\n").concat(JSON.stringify(e));return{error:new sn.serverError(ln.tokenizationFailed,null,null,null,t,null,[t])}}))},this.createHmacSignatureInternal=function(t,n,r,o,i,a,s,l){return t.init().then((function(c){if(c.error)return{error:c.error};var d=t.getRawKey(),u="Pan:"+i.pan+"|HMACKey:"+d+"|UserCredential:"+i.userCredential,p={keyToken:null,data:null},m=s&&s.dataProtection||{},h=m.protection_type,f=m.fetchConfig;return(h&&"HMACSIGNATUREMSRENCRYPT"===h.toUpperCase()?e.doTokenizeMsrCryptoEncryption(s,n,Me.token,d,a,l):e.doServerTokenization(n,Me.token,d,a,f)).then((function(e){return e.error?e:(p.keyToken=e.data,t.sign(u))})).then((function(e){return e.error||(p.data=e.data,o[Me.userCredential]=i.userCredential,o[r]={algorithm:Me.algorithm,keyToken:p.keyToken,data:p.data}),{error:e.error}}))}))},this.getHmacSignatureFromSecurePX=function(e,t,n,r){var o=n;return new Promise((function(n,i){o.createHmacSignature("Pan",r).then((function(o){t[Me.userCredential]=r,t[e]=o.value,n({})})).catch((function(e){n({error:new sn.serverError(ln.hmacError,null,null,null,e.message,null,[e.message])})}))}))},this.createHmacSignature=function(t,n,r,o,i,a,s){var l=o.hmacContext;return Eo.isSupported()&&l&&l.userCredential?l.panElement&&l.panElement.isSecureProperty()?e.getHmacSignatureFromSecurePX(n,r,l.panElement,l.userCredential):l.pan?e.createHmacSignatureInternal(new Do,t,n,r,l,i,a,s):(r[n]=null,Wr({})):(r[n]=null,Wr({}))},this.tokenizeUserInputDataInternal=function(t,n,r,o,i,a,s){var l=n.data_description,c=i||n.clientContext,d=[];for(var u in l){var p=l[u];if(Ft(p)){var m=p&&p.length&&p[0];if(m){var h=e.tokenizeUserInputDataInternal(t,m,r[u],o,c,a,s);d=x(x([],d,!0),h,!0)}}else{if(p.displayOnly||o===ut.update&&!p.is_updatable)continue;if(p.token_set&&!p.token_set.startsWith(Ge.tokenizationValuePrefix)||p.dataProtection)if(r.hasOwnProperty(u)){var f=p.dataProtection&&p.dataProtection.protection_type&&Hr.isString(p.dataProtection.protection_type)&&p.dataProtection.protection_type.toUpperCase(),g=p.token_set&&Hr.isString(p.token_set)&&p.token_set.toUpperCase();if("TOKENIZEMSRENCRYPT"===f)d.push(e.tokenizeMsrCryptoEncryption(p,u,t,r,o,null===s||void 0===s?void 0:s[Yr.Tokenization]));else if("HMACSIGNATURE"===f)d.push(e.createHmacSignature(t,u,r,a,o,p));else if("HMACSIGNATUREMSRENCRYPT"===f)d.push(e.createHmacSignature(t,u,r,a,o,p,null===s||void 0===s?void 0:s[Yr.Tokenization]));else if("MSRENCRYPT"===f)d.push(e.msrCryptoEncryption(p,u,t,r));else if("PAYPALENCRYPTION"===g)s&&s[Yr.PayPal]?d.push(e.customEncryption(p,u,t,r,c,s[Yr.PayPal],"HEC Encryption failed.")):d.push(e.payPalHECEncryption(p,u,t,r,c));else if("FILEUPLOAD"===g){var v=a.fileUploadUrls[u];d.push(e.fileUpload(p,u,t,r,a,o,v))}else d.push(e.serverTokenization(p,u,t,r,o))}else p.is_optional||d.push(Wr({error:new sn.unexpectedError(ln.tokenizationError,["DataDescription contains a required field '"+u+"' which is missing in the userInputData passed in."])}))}}return d},this.getFileUploadUrlsInDisplayDescription=function(t,n){if(t&&(Dt(t)&&(n[t.propertyName]=null===t||void 0===t?void 0:t.uploadUrl),_t(t)&&t.members))for(var r=0;r<t.members.length;r++)e.getFileUploadUrlsInDisplayDescription(t.members[r],n)},this.getFileUploadUrlsInPidlDoc=function(t){var n={};if(t&&t.displayDescription&&t.displayDescription.length)for(var r=0;r<t.displayDescription.length;r++){var o=t.displayDescription[r];e.getFileUploadUrlsInDisplayDescription(o,n)}return n},this.tokenizeUserInputData=function(t,n,r,o,i,a,s){void 0===s&&(s=null);var l={hmacContext:{userCredential:i,pan:r&&r.details&&r.details.accountToken,panElement:s&&s.getPropertyModelElement("accountToken")}};l.fileUploadUrls=e.getFileUploadUrlsInPidlDoc(n);var c=e.tokenizeUserInputDataInternal(t,n,r,o,null,l,a);return xo.aggregateCommerceResults(c,(function(e){return e.code===ln.tokenizationFailed.code?e:new sn.unexpectedError(ln.tokenizationFailed,[e.message])}))}},Fo=new No,Ho=function(){function e(e){var t=this;this.operationType=null,this.pidlDocManager=null,this.operationOptions=null,this.modelData=null,this.showMaskedValues=!1,this.secureFieldOriginOverride=null,this.computedStyles={style:{}},this.secureFieldResolved=!1,this.urls=null,this.userContext=null,this.displaySettings=null,this.stateManager=null,this.view=null,this.eventHub=null,this.hasPidlResolved=!1,this.postMessageTimeoutInMs=200,this.maxRetryPostMessage=5,this.pageIndex=0,this.validator=null,this.currentlyRenderedPidl=null,this.callbacks=null,this.transformers=null,this.localDataSourceProviders=null,this.serverErrorRetries={},this.suspendedNextAction=null,this.orchestratorId=-1,this.inputDataCache="",this.elements=[],this.resources=null,this.clientSettings=null,this.pidlInstanceContexts={},this.getClientSetting=function(e){if(t.clientSettings&&t.clientSettings[e])return t.clientSettings[e]},this.setOrchestratorId=function(e){t.orchestratorId=e},this.getSubmitButton=function(){var e=t.getCurrentPage().children,n=Cn.findElement(e,(function(e){if(vr(e)&&e.isSubmitGroup)return!0}));if(!n&&!t.callbacks.submit)return t.eventHub.failure(new sn.unexpectedError(ln.missingSubmitActionInPidlDoc)),null;if(n){var r=Cn.findElement([n],(function(e){for(var t=!1,n=pr(e)&&e.pidlAction;!t&&n;)t=t||"submit"===n.type||n.type===z.successWithSelectedPidlAction||n.type===z.successWithPidlPayload||n.type===z.success||n.type===z.propertyBindingAction||n.type===z.mergeData,n=n.nextAction;return t}));return pr(r)&&r}},this.setClientSettings=function(e){var n=e&&e.getResolvedOrFirstPidlDoc();n&&n.clientSettings&&(t.clientSettings=n.clientSettings)},this.getDataSources=function(e,n,r){var o=[];return(r=r||gn.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc()))&&r.length&&r.forEach((function(r){for(var i in r)t.modelData.getDataSource(i)||o.push(t.getResourceData(i,r[i],e,n))})),Promise.all(o)},this.populateModelInternal=function(e){t.resources=new lo(t.pidlDocManager),t.setClientSettings(t.pidlDocManager);var n=yn.createModelElements(t.pidlDocManager,e);return yn.isErrorObject(n)?n.error:(n.warnings&&n.warnings.forEach((function(e){t.eventHub.error(e)})),t.elements=n.elements,t.pidlInstanceContexts=t.pidlDocManager.getPidlInstanceContexts(),t.updateSubmitGroupVisibility(t.elements,t.displaySettings.submitButtonBlock.show),t.setupSecureFields(),null)},this.getGlobalPreexistingData=function(){if(t.elements&&t.orchestratorId>=0){var e={};return Cn.propertiesVisitorProcessingDataProperty(t.elements,(function(e,n){if(e.usePreExistingValue){var r=e.getPropertyName(),o=Nr.getGlobalPropertyValue(t.orchestratorId,r);void 0!==o&&(n[r]=o)}}),e),e}},this.populateModel=function(e,n,r,o,i){var a=t.populateModelInternal(e);if(a)return t.eventHub.pageRendering(void 0),t.eventHub.failure(a),Ur(a);t.eventHub.pageRendering(Cn.getDefaultSuccessPidlPayload(t.elements,t.eventHub)),t.modelData.populate(t.elements),o&&t.modelData.retrieveFromCache(o,i);var s=[];(n=n?v(v({},n),t.getGlobalPreexistingData()):t.getGlobalPreexistingData())&&(r?s.push(t.transformResourceInstance(t.elements,n).then((function(){t.modelData.setInputInstance(t.elements,n),Cn.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}))):t.modelData.setPrefillData(t,n,t.resources.constants,t.eventHub)),t.modelData.setPrefillDataInPartnerDataSource(n);var l=t.pidlDocManager.getPidlPayload();if(l){for(var c in l)c!==oe.pidlInfo&&t.modelData.setDataSource(c,l[c]);Cn.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)}else s.push(t.getDataSources(e,{modelData:t.modelData,model:t}).then((function(){Cn.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub)})));return Promise.all(s).then((function(){t.eventHub.modelUpdated(!0,!1)}))},this.populateModelOnInternalCallback=function(e){var n=t.populateModelInternal(e);if(n)return t.eventHub.failure(n),n;t.modelData.updateModelElements(t.elements),Cn.updateModelElements(t.elements,{modelData:t.modelData},t.eventHub),t.setupSecureFields(),t.eventHub.modelUpdated(!1)},this.updateModelElementsOnInternalCallback=function(e,n){t.modelData.updateModelElements(t.elements);var r={modelData:t.modelData,resultData:{propertyUpdates:[]}};Cn.updateModelElements(t.elements,r,t.eventHub);var o=[];if(r.resultData.propertyUpdates.length>0)for(var i=function(r,i){o.push(t.updatePropertyValue(r,i,e,n).then((function(){t.eventHub.propertyConditionallyUpdated(r.getPropertyName(),i)})))},a=0,s=r.resultData.propertyUpdates;a<s.length;a++){var l=s[a];i(l.propertyElement,l.propertyValue)}return Promise.all(o).then((function(){if(r.resultData.propertyUpdates.length>0){var e={modelData:t.modelData,resultData:{propertyUpdates:[]}};Cn.updateModelElements(t.elements,e,t.eventHub)}t.eventHub.modelUpdated(!1)}))},this.setupSecureFields=function(){var e=t.getCurrentPage();t.setupSecureFieldsRecursive(e)},this.setupSecureFieldsRecursive=function(e){if(e){var n=e.children;n&&n.forEach((function(e){if(null===e||void 0===e?void 0:e.isSecureProperty()){var n=e;n&&(n.validationPromise=function(){return t.postSecureFieldMessage(n.frameName,je.validate,"")},n.submitPromise=function(e){return t.postSecureFieldMessage(n.frameName,je.prepareForSubmit,{tokenSet:e})},n.createHmacSignature=function(e,r){return t.postSecureFieldMessage(n.frameName,je.createHmacSignature,{tokenSet:e,userCredentials:r})},n.setFocus=function(){return t.postGuaranteedSecureFieldMessage(n.frameName,je.applyFocus,"")})}else(null===e||void 0===e?void 0:e.type)===F.group&&t.setupSecureFieldsRecursive(e)}))}},this.privateEventHandler=function(e,n){switch(e){case K.success:n&&n.operationType&&(n.operationType===ut.add||n.operationType===ut.update)&&t.pidlDocManager.clearCurrentPIDLResource();break;case K.failure:case K.gohome:t.clearAll()}},this.handleSuccess=function(e,n){t.pidlDocManager.clearCache(),e&&gn.isPrimaryResource(t.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.modelData.setPrimaryResourceResponse(e,n);var r=e&&e.clientAction;if(r)return t.handleClientAction(r,e);var o=t.pidlDocManager.getNextPidlRef()||{href:null},i=o.href,a=o.fetchConfig;if(!i)return t.eventHub.success(t.createSuccessEventPayload()),Wr();var s=It.getRestMethodUrl(i,t.userContext,null,{modelData:t.modelData});t.pidlDocManager.downloadPidlDoc(t.eventHub,s,io.getHttpHeaders(t.eventHub,t.userContext,null,i,{modelData:t.modelData}),void 0,void 0,a).then((function(e){return e&&e.type?t.handleClientAction(e):t.populate()}),(function(e){return t.eventHub.failure(Nr.createServerError(ln.pidlDocDownloadFailed,s.url,e,[e.errorMessage])),Ur(e)}))},this.createSuccessEventPayload=function(){var e=t.modelData.getResourceResponse(),n={id:t.modelData.getPrimaryResourceResponseId(),operationType:t.operationType,response:e&&e.primary};return e&&e.secondary&&e.secondary.length&&(n.secondaryResponses=e.secondary),n},this.handleServerError=function(e,n,r){var o=e.targettedInnerErrors,i=void 0===o?[]:o,a=e.clientAction,s=Wr();return a&&(s=t.doErrorNextClientAction(new sn.serverError(ln.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]),e.clientAction)),i.length?s.then((function(){var n=[],o="";i.forEach((function(e){e.message===ye.empty&&(e.message="");var i=Hr.isString(e.target)?e.target.split(","):[];i=gn.translateErrorTargetsToDisplayProperties(i,r);var a=Cn.getParentIfSame(t.elements,i),s=a&&a.children&&a.children.length===i.length&&a.layoutOrientation===yt.inline?a.displayId:null;Nr.createPropertyErrors(i,s,Cn.findFirstMatchingProperty(t.elements,i),e,n),o||i.length||(o=e.message)}));var a=e.innerError,s=a&&a.message!==ye.empty?e.innerError.message:o;return t.clearElementEditStates(),t.handleRetryableError(new sn.formValidationFailedError(ln.formSubmissionFailedBadUserInput,s,n,[s]),!0)})):s.then((function(){return Ur(new sn.serverError(ln.formSubmitFailed,n,e.jsonResponse,e.status,e.statusText,e.responseText,[e.errorMessage]))}))},this.handleRetryableError=function(e,n){var r=Wr(),o=e.errors;if(o&&o.length){var i=n?-1:t.pageIndex;e.errors.forEach((function(e){var n=e,o=t.getPropertyPageIndex(n.propertyName);i=-1===i||o>=0&&o<i?o:i;var a=t.getPropertyModelElement(n.propertyName);if(a&&a.onValidationFailed){var s=[];for(var l in a.onValidationFailed){var c=t.getPropertyModelElement(l);if(c){var d=a.onValidationFailed[l],u=d;Hr.isString(d)&&(u=Nr.getConditionalFieldValue(d,{modelData:t.modelData},a)),s.push(t.updatePropertyValue(c,u,ve.editing,!1))}}r=Promise.all(s).then((function(){return Wr()}))}})),i>=0&&(i<t.pageIndex||n)&&(r=r.then((function(){return t.moveToPageIndex(i)})))}return r.then((function(){return t.eventHub.error(e),{error:e}}))},this.clearFlow=function(){var e=t.modelData.cacheFlow();return t.modelData.clearFlow(),t.elements=[],t.resources={},t.clientSettings=null,t.pageIndex=0,t.pidlDocManager.reset(),t.showMaskedValues=!1,t.currentlyRenderedPidl=null,t.serverErrorRetries={},e},this.clearElementEditStates=function(){t.elements.forEach((function(e){var n=t.modelData.getModelDataProperties([e]);for(var r in n)t.validator.clearElementEditState(n[r])}))},this.handleRestartFlow=function(){var e=t.pageIndex,n=t.getCurrentPage()||{};return t.clearFlow(),t.pidlDocManager.setToLastDownloadedPidlDoc(t.eventHub),t.populate(null,!0,e,n)},this.handleRenderPidlClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"===typeof n[o]&&"details"!==o&&delete n[o];var i=t.pageIndex,a=t.getCurrentPage(),s=t.clearFlow(),l=Wr();if(Ft(e.context))t.pidlDocManager.setPidlDoc(t.eventHub,e.context);else if(Vt(e.context)){var c=e.context.resourceActionContext,d=Nr.getPidlOperationType(c.action);t.pidlDocManager.setOperationInfo({operationType:d}),l=t.downloadPidlDocument(It.getPidlDocUrl(t.userContext,d,c.pidlDocInfo),c.pidlDocInfo)}return l.then((function(){return t.populate(n,r,i,a,e.pidlRetainUserInput?s:void 0,Hr.isString(e.pidlUserInputToClear)?e.pidlUserInputToClear.split(","):e.pidlUserInputToClear).then((function(){if(e.pidlError){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc(),r=Nr.parseServerError(void 0,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:E.Error,failureObject:e.pidlError},t.serverErrorRetries);return t.handleServerError(r,void 0,n).then((function(){return Wr()}))}}))}))},this.handleRenderPidlPageClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"===typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&Ft(e.context)&&e.context.length>0){var i=e.context[0],a=yn.createModelElementsFromDisplayDescriptions(i.displayDescription,t.operationType,null,null,i,t.pidlDocManager).elements;if(t.updateSubmitGroupVisibility(a,t.displaySettings.submitButtonBlock.show),a&&a.length>0)return t.modelData.updateModelElements(a),t.elements.splice(t.pageIndex+1,0,a[0]),t.moveNextPage().then((function(){return t.eventHub.renderedPidlPage(),Wr()}))}},this.updateSubmitGroupVisibility=function(e,t){for(var n=0,r=Cn.findAllElements(e,(function(e){return vr(e)&&e.isSubmitGroup}));n<r.length;n++)r[n].isHidden=!t},this.handleRenderModalClientAction=function(e,n,r){if(n)for(var o in n)n.hasOwnProperty(o)&&"object"===typeof n[o]&&"details"!==o&&delete n[o];if(e.context&&Ft(e.context)&&e.context.length>0){var i=e.context[0],a=yn.createModelElementsFromDisplayDescriptions(i.displayDescription,t.operationType,null,null,i,t.pidlDocManager).elements;if(t.updateSubmitGroupVisibility(a,t.displaySettings.submitButtonBlock.show),a&&a.length>0){t.modelData.updateModelElements(a);var s=t.getCurrentPage();if(s&&s.children&&s.children.length>0){var l=s.children[s.children.length-1];vr(l)&&l.isModalGroup&&s.children.pop()}s.children=x(x([],s.children,!0),a[0].children,!0),t.eventHub.modelUpdated(!1)}}},this.setViewHandler=function(e){t.view=e},this.getLinkActionUrl=function(e,n,r){void 0===r&&(r=null);var o,i=e,a=t.urls,s=a.success,l=a.failure;if(i&&i.noCallbackParams){if(i&&i.baseUrl&&(o=It.createFromTemplate(i.baseUrl)),o)return o;n&&t.eventHub.failure(new sn.unexpectedError(ln.noRedirectUrlToNavigate))}else if(s&&l){var c=s,d=l;if(i&&i.baseUrl)o=It.createFromTemplate(i.baseUrl),c=It.addQueryStringParameters(c,i.successParams),d=It.addQueryStringParameters(d,i.failureParams);else if(Hr.isString(e)){o=It.createFromTemplate(e);var u=t.modelData.getPrimaryResourceResponseId();u&&(c=It.addQueryParameter(c,"id",u),c=Ut.additionalRedirectParams(c,r))}if(o)return o+="?ru="+(c=encodeURIComponent(c))+"&rx="+(d=encodeURIComponent(d));n&&t.eventHub.failure(new sn.unexpectedError(ln.noRedirectUrlToNavigate))}else if(n){var p=s?"urls.failure":"urls.success";t.eventHub.failure(new sn.inputParameterValidationFailedError(ln.inputParameterMissing,p,[p]))}},this.handleExpressCheckoutButtonIframeLoaded=function(e,n,r){var o,i,a,s=gn.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc()),l=Mt(null===s||void 0===s?void 0:s[0].walletConfig)?null===(i=null===(o=s[0].walletConfig)||void 0===o?void 0:o.members)||void 0===i?void 0:i[0]:{},c=Br.getEnv();n&&l&&(null===(a=null===window||void 0===window?void 0:window.frames)||void 0===a?void 0:a[e])&&window.frames[e].postMessage({messageType:qe.setup,config:l,expressCheckoutData:n,useTestEnv:"int"===c,env:c},r)},this.handleSecureFieldMessage=function(e,n){if(e&&e.data&&e.data.source&&e.data.source===Ge.secureFieldMessageSource&&e.data.event){var r,o,i;switch(t.eventHub.secureFieldEventReceived(e.data.field,e.data.event,e.data.correlationId),e.data.event){case Ke.loaded:t.loadedSecureFields.includes(e.data.field)||t.loadedSecureFields.push(e.data.field),r=t.modelData.getModelDataProperty(e.data.field);var a=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(je.init,a),0),t.hasPidlResolved?t.guaranteedPostMessage(e.data.field,t.buildMessage(je.hydrateState,""),0):t.guaranteedPostMessage(e.data.field,t.buildMessage(je.clearState,""),0);var s=r.modelElement.getResolvedLogo(),l="";s&&"accountToken"===e.data.field&&t.hasPidlResolved&&(l="background-image: url(".concat(s,"); background-repeat: no-repeat; background-position: right center; ")),l&&t.guaranteedPostMessage(e.data.field,t.buildMessage(je.applyCss,l),0);var c=r.modelElement.placeHolderText();c&&t.guaranteedPostMessage(e.data.field,t.buildMessage(je.applyPlaceholder,c),0);break;case Ke.initCompleted:t.resolveSecureFieldInitCompletedPromise(e.data.field);break;case Ke.keyPropertyResolved:if(t.hasPidlResolved=!0,t.secureFieldResolved=!0,r=t.modelData.getModelDataProperty(e.data.field),o=t.updatePropertyValue(r.modelElement,e.data.payload,ve.finished,!1).then((function(){var n=t.getSecurePropertyInitializationPayload(r);t.guaranteedPostMessage(e.data.field,t.buildMessage(je.init,n),0);var o=r.modelElement.getResolvedLogo(),i="";o&&(i="background-image: url(".concat(o,"); background-repeat: no-repeat; background-position: right center; ")),i&&t.guaranteedPostMessage(e.data.field,t.buildMessage(je.applyCss,i),0),t.updatePropertyValue(r.modelElement,e.data.payload,ve.finished,!1).catch((function(e){}));var a=r.modelElement.placeHolderText();a&&t.guaranteedPostMessage(e.data.field,t.buildMessage(je.applyPlaceholder,a),0);var s=t.modelData.getModelDataProperty("cvvToken");return n=t.getSecurePropertyInitializationPayload(s),t.guaranteedPostMessage("cvvToken",t.buildMessage(je.init,n),0),t.updatePropertyValue(s.modelElement,"",ve.finished,!1)})).catch((function(e){t.secureFieldResolved=!1})),n)return o;break;case Ke.valueUpdated:var d=e.data.payload.editState,u=e.data.payload.operationType;if((r=t.modelData.getModelDataProperty(e.data.field)).editState=d,o=t.updatePropertyValue(r.modelElement,"",u,!1),n)return o;break;case Ke.readyForSubmit:if(i=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId}))){if(e.data.payload.error)return void t.eventHub.failure(new sn.unexpectedError(ln.tokenizationFailed,[e.data.payload.error]));var p={value:e.data.payload.value,propertyName:e.data.field};i.resolve(p)}else t.eventHub.failure(new sn.unexpectedError(ln.secureFieldPromiseNotFound));break;case Ke.validationCompleted:(i=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId})))?i.resolve(e.data.payload):t.eventHub.failure(new sn.unexpectedError(ln.secureFieldPromiseNotFound));break;case Ke.hmacSignatureCreated:if(i=t.queuedSecureFieldPromises.find((function(t){return t.id===e.data.correlationId}))){if(e.data.payload.error)return void t.eventHub.failure(new sn.unexpectedError(ln.hmacError,[e.data.payload.error]));p={value:e.data.payload.value,propertyName:e.data.field},i.resolve(p)}else t.eventHub.failure(new sn.unexpectedError(ln.secureFieldPromiseNotFound));break;default:var m=new sn.unexpectedError(ln.unmatchedSecureFieldEvent,[e.data.event]);t.eventHub.failure(m)}}else{var h=new sn.unexpectedError(ln.unexpectedSecureFieldMessage);t.eventHub.failure(h)}},this.handleChallengeiFrameMessage=function(e,n){switch(e.data){case Je.challengeiFrameLoaded:case Je.challengeCompleted:t.eventHub.challengeMessageReceived(e.data);break;default:var r=new sn.unexpectedError(ln.unexpectedChallengeiFrameMessage);t.eventHub.failure(r)}},this.handleClientAction=function(e,n,r){var o,i=e.type,a=e.nextAction;return t.eventHub.clientActionInvoked(null===e||void 0===e?void 0:e.type,{originator:r}),new Promise((function(a,s){switch(i){case ht.None:t.eventHub.success(t.createSuccessEventPayload()),a();break;case ht.UpdatePropertyValue:if(e.context){var l=e.context,c=l.propertyName,d=l.propertyValue;(b=t.getPropertyModelElement(c))&&t.updatePropertyValue(b,d,ve.editing,!1).then((function(){a()})).catch((function(){return s()}))}else a();break;case ht.Redirect:var u=t.getLinkActionUrl(e.context,!0,n);if(u){var p=t.pageIndex,m=t.getCurrentPage()||{};e.redirectPidl?(t.eventHub.navigate("",u,!0,e.context,null),t.clearFlow(),t.pidlDocManager.setPidlDoc(t.eventHub,e.redirectPidl),t.populate(n,!0,p,m).then((function(){a()})).catch((function(){return s()}))):(t.eventHub.navigate("",u,!0,e.context,null)||(t.eventHub.redirecting(u),hn.getRedirectionService().redirect(u)),t.clearFlow(),a())}break;case ht.Pidl:t.handleRenderPidlClientAction(e,n,!0).then((function(){a()}),(function(){return s()}));break;case ht.ReturnContext:e.context?(t.eventHub.success(e.context),a()):(o=new sn.unexpectedError(ln.invalidReturnContextPidl),t.eventHub.failure(o),s(o));break;case ht.GoHome:t.eventHub.gohome(),a();break;case ht.Failure:var h=Nr.createServerErrorFromIPxServiceError(r===k.iFrameMessageHandler?ln.iFrameReturnedFailure:ln.failureClientActionReturned,e.context);t.eventHub.failure(h),a();break;case ht.PidlModal:t.handleRenderModalClientAction(e,n,!0),a();break;case ht.PidlPage:t.handleRenderPidlPageClientAction(e,n,!0).then((function(){a()}),(function(){return s()}));break;case ht.MergeData:if(e.context&&e.context.payload){var f=e.context,g=f.payload;if(f.explicit){var v=[];for(var y in g){var b;(b=t.getPropertyModelElement(y))&&v.push(t.updatePropertyValue(b,g[y],ve.editing,!1))}Promise.all(v).then((function(){a()})).catch((function(){return s()}))}else t.modelData.updateUserData(g),t.eventHub.modelUpdated(!1,!0),a();t.updateInputDataCache(g)}break;case ht.RestAction:e.context&&t.invokeRestMethod(e.context).then((function(){a()}),(function(){return s()}));break;default:o=new sn.unexpectedError(ln.unknownClientActionType,[e.type]),t.eventHub.failure(o),s(o)}})).then((function(){a&&t.handleClientAction(a).catch((function(){}))}))},this.doErrorNextClientAction=function(e,n){switch(n.type){case ht.None:return Wr();case ht.UpdatePropertyValue:if(n.context){var r=n.context,o=r.propertyName,i=r.propertyValue,a=r.terminalError,s=t.getPropertyModelElement(o);if(s)return t.updatePropertyValue(s,i,ve.editing,!1).then((function(){return a?Ur(e):Wr()}))}return Wr();case ht.Pidl:return t.handleRenderPidlClientAction(n,null,!1).then((function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated()}));default:return Ur(e)}},this.readUserInputData=function(e){void 0===e&&(e=!1);var n=t.view.getPageElementValues();for(var r in n){var o=t.getPropertyModelElement(r),i=n[r];br(o)&&(!t.showMaskedValues||!o.maskDisplay)&&o.displayTransformations&&o.displayTransformations.forModel&&Hr.isString(i)&&(n[r]=Nr.applyDisplayTransformation(o.displayTransformations.forModel,i)||n[r])}var a=e?null:function(e){t.eventHub.conflictingInputValues(e)};t.modelData.mergeUserData(t,n,a)},this.resolveKeyProperty=function(e){for(var n in e){var r=e[n];if(r&&Rr(r.modelElement)){var o=r.modelElement,i=o.isKeyProperty&&!o.hidden()&&r.getValue();if(i)return t.updateResolvedPidlDoc(i,o,ve.finished)}}return Wr(!0)},this.validatePage=function(e){var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return(e===J.all&&t.resolveKeyProperty(n)||Wr()).then((function(){return n=t.modelData.getModelDataProperties([t.getCurrentPage()]),t.validator.validatePage(n,e,t.operationType)}))},this.getClientDataProperties=function(){var e={sessionId:Nr.guid()};if(t.operationOptions){var n=t.operationOptions,r=n.sessionId,o=n.riskData;r&&(e.sessionId=r),o&&o.greenId&&(e.greenId=o.greenId)}return e},this.getInputDataFromResponse=function(e,t,n){for(var r in t){var o=t[r];if(o.match&&o.match(new RegExp("^{(.)*}$"))){var i=o.substring(1,o.length-1);if(!n||!n[i])return new sn.unexpectedError(ln.expectedPayloadValueNotPresentInServerResponse);e[r]=n[i]}else e[r]=o}return null},this.invokeSubmitRequest=function(e,n,r,o){void 0===r&&(r=!0);var i=t.callbacks.submit,a=t.transformers.submissionSuccessTransformer;if(r&&i&&(gn.isPrimaryResource(e)||!n.url))return new Promise((function(r,a){o&&o.currentSubmitCount++,i(n,{pidlDoc:e},(function(e){r(e)}),(function(r,o){a(Nr.parseCustomSubmitError(r,o,n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,t.serverErrorRetries))}),o)}));if(!n.url||!n.virtualEndpoint){var s=new sn.unexpectedError(ln.submitPidlRequestMissingParameters,[n.url?"virtualEndpoint":"url"]);return t.eventHub.failure(s),Ur(s)}return new Promise((function(r,o){hn.getPidlService().submitPidlDocument(t.eventHub,n,t.operationType,a).then((function(e){r(e)}),(function(r){o(Nr.parseServerError(n.url,n.errorCodeExpressions,e&&e.strings&&e.strings.serverErrorCodes,r,t.serverErrorRetries))}))}))},this.submitValidatedData=function(e,n,r,o,i,a,s){var l,c=t.modelData.getId();o=o||gn.getSubmitPidlAction(n)||{},a=a||1;var d=o.type!==z.validate,u=1===a?o.context:o["context"+a],p={modelData:t.modelData},m=u&&It.getSubmitUrl(t.operationType,t.userContext,u,c,p),h={method:u&&u.method?u.method:we.Post,url:m&&m.url,headers:u&&io.getHttpHeaders(t.eventHub,t.userContext,u&&u.headers,m&&m.template,p),errorCodeExpressions:u&&u.errorCodeExpressions,virtualEndpoint:m&&m.virtualEndpoint},f=Wr();if(u&&u.payload){var g={},v=t.getInputDataFromResponse(g,u.payload,s);if(v)return void e.reject(v);h.data=g}else{h.data=r;var y=Fo.tokenizeUserInputData(t.eventHub,n,h.data,t.operationType,t.userContext.getUserCredential(),null===(l=t.callbacks)||void 0===l?void 0:l.encryptionHandler,t.modelData);f=new Promise((function(r,o){y.then((function(i){var a=i.error;if(a){if(sn.isServerError(a)&&a.code===ln.tokenizationFailed.code&&400===a.status){var s=Nr.parseServerError(a.url,void 0,n&&n.strings&&n.strings.serverErrorCodes,{status:E.Error,errorMessage:a.debugMessage,httpStatus:a.status,httpStatusText:a.statusText,failureObject:a.innererror},t.serverErrorRetries);return t.handleServerError(s,a.url,n).then((function(t){e.resolve(t)})).catch(e.reject)}o(a)}else r()})).catch((function(e){return o(e)}))}))}f.then((function(){t.invokeSubmitRequest(n,h,d,i).then((function(s){a++,o["context"+a]?t.submitValidatedData(e,n,r,o,i,a,s):e.resolve({data:s})}),(function(r){return t.handleServerError(r,h.url,n).then((function(t){e.resolve(t)})).catch(e.reject)}))}),(function(t){e.reject(new sn.serverError(ln.tokenizationFailed,null,t,null,null,null,[(t||{}).message]))}))},this.scopeDownPidlDocAndUserInput=function(e,t,n){if(e&&e.type===z.validate&&e.context&&e.context.propertyName){var r=e.context.propertyName;n=pn.getPropertyValueFromInputData(n,r);var o=v(v({},t),{data_description:{}}),i=pn.getPropertiesFromDataDescription(t.data_description,r);wt(i)?o.data_description[r]=i:o.data_description=i,t=o}return{pidlDocument:t,userInputData:n}},this.validatePidlArray=function(e,n,r,o,i){var a=x([n],r.map((function(e){return t.pidlDocManager.getLinkedPidl(gn.createIdentityHash(e.linkedPidlId))})),!0),s=[],l=null,c=a.map((function(n){var r=e.createUserInputData(n,t.modelData,o,t.operationType,!0);return Po.validateUserInputData(t.eventHub,n,r,t.operationType,t.modelData).then((function(e){var n=e.innerErrors;n&&n.length&&(t.updateInputDataCache(r),n.forEach((function(e){var n=t.createFormValidationError(e.error);sn.isUnexpectedError(n)?l=n:s.push(n)})))}))}));return new Promise((function(e,t){Promise.all(c).then((function(){l?t(l):s.length>0?t(s):e()}),(function(e){var n=(e||{}).message;t(new sn.formValidationFailedError(ln.formValidationFailed,n,[e],[n]))}))}))},this.getResolvedOrFirstPidlDoc=function(e,t){return 1!==e.length&&t&&pn.getFirstResolvedPidlDocument(e,t)||e[0]},this.createFormValidationError=function(e){var n=e.propertyName,r=e.errorCode,o=e.debugMessage;if(n){var i=t.modelData.getModelDataProperty(n);if(i){i.editState=ge.dirty;var a=Cn.findPropertyElement(t.elements,n);return a&&(e.message=a.getErrorMessage(t.getPropertyValue(n),r)),e}return new sn.unexpectedError(ln.validationFailedForNonUserInputProperty,[n,r,o])}},this.validateAndTransformUserInputPidlData=function(e,n,r,o,i,a,s,l){return e.createUserSecureInputData(n[0],t.modelData,r,t.operationType,!0).then((function(c){var d=e.createUserInputData(n[0],t.modelData,r,t.operationType,!0);d.details&&c?d.details=Nr.extend({},d.details,c):d&&c&&(d=Nr.extend({},d,c));var u=t.getResolvedOrFirstPidlDoc(n,d);if(i&&!e.canSubmitUserInputData(u,d))return Wr({});var p=t.scopeDownPidlDocAndUserInput(o,u,d),m=p.pidlDocument,h=p.userInputData;return u=m,d=h,new Promise((function(n,r){var i=[];return Po.validateUserInputData(t.eventHub,u,d,t.operationType,t.modelData).then((function(e){var n=e.innerErrors;n&&n.length&&n.forEach((function(e){var n=t.createFormValidationError(e);n&&(sn.isUnexpectedError(n)?r(n):i.push(n))}))})).then((function(){if(!i.length){if(o.type===z.validateOnChange){if(JSON.stringify(d)===t.inputDataCache)return;t.inputDataCache=JSON.stringify(d)}return e.transformUserInputData(u,t.eventHub,d,t.operationType).then((function(){return s({resolve:n,reject:r},u,d,o,l)}),(function(e){var t=e&&e.message;r(new sn.formValidationFailedError(ln.propertyTransformationFailed,t,[e],[t]))}))}a("",i).then((function(e){n(e)})).catch(r)}),(function(e){var t=e||{},n=t.message;r(new sn.formValidationFailedError(ln.formValidationFailed,n,[t],[n]))}))}))}))},this.handleRetryableValidationErrorsOnSubmit=function(e,n){return t.handleRetryableError(new sn.formValidationFailedError(ln.formValidationFailed,e,n,[e]))},this.tokenizeUserInputData=function(e,n,r){var o;return Fo.tokenizeUserInputData(t.eventHub,n,r,t.operationType,t.userContext.getUserCredential(),null===(o=t.callbacks)||void 0===o?void 0:o.encryptionHandler,t.modelData).then((function(t){var n=t.error;n?e.reject(n):e.resolve({data:r})})).catch((function(t){return e.reject(t)}))},this.submitLinkedPidlArray=function(e,n,r,o,i,a){return new Promise((function(s,l){if(o||e&&0!==e.length){n.pending=e.length+(o?1:0);var c=function(){n.pending--,0===n.pending&&s()},d=hn.getCommerceService();o&&t.validateAndTransformUserInputPidlData(d,o,r,i,!1,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData,a).then((function(e){e&&e.error?n.validationError=e.error:n.baseSuccessResponse=e&&e.data?e.data:e,c()}),(function(e){gn.ignoreTerminatingError(o)||(n.baseFailure=e),c()})),e.forEach((function(e){var o=t.pidlDocManager.getLinkedPidl(gn.createIdentityHash(e.linkedPidlId));t.validateAndTransformUserInputPidlData(d,[o],r,gn.getSubmitPidlAction(o),!0,t.handleRetryableValidationErrorsOnSubmit,t.submitValidatedData,a).then((function(e){n.linkedResponses.push(e),c()}),(function(e){gn.ignoreTerminatingError([o])||n.failures.push(e),c()}))}))}else s()}))},this.validateAndSubmitUserInputData=function(e){t.readUserInputData();var n=t.getClientDataProperties(),r=hn.getCommerceService(),o={failures:[],pending:0,baseFailure:null,baseSuccessResponse:null,linkedResponses:[]};if(!t.stateManager.canApiStart(Ce.modelSubmitForm).result)return Wr({result:o});t.eventHub.submitting(),t.stateManager.setState(fe.submitting);var i=t.pidlDocManager.getResolvedOrAllPidlDocs(),a=r.getPidlSubmitOrder(i[0]);return new Promise((function(s,l){e.type===z.validate&&(a.beforeBase=[],a.withBase=[],a.afterBase=[]);var c={totalSubmitCount:0,currentSubmitCount:0};c.totalSubmitCount=a.beforeBase.length+a.withBase.length+a.afterBase.length+1,t.validatePidlArray(r,i[0],a.beforeBase.concat(a.withBase,a.afterBase),n,e).then((function(){return t.submitLinkedPidlArray(a.beforeBase,o,n,void 0,void 0,c).then((function(){if(!(0!==o.failures.length||o.linkedResponses&&o.linkedResponses.length&&o.linkedResponses.some((function(e){return e.error}))))return t.submitLinkedPidlArray(a.withBase,o,n,i,e,c).then((function(){if(0===o.failures.length&&!o.baseFailure)return t.submitLinkedPidlArray(a.afterBase,o,n,void 0,void 0,c).then((function(){s()}));s()}));s()}))}),(function(n){if(sn.isUnexpectedError(n))o.failures.push(n),s();else if(!(e&&e.context&&e.context.silent))return t.handleRetryableValidationErrorsOnSubmit("",Array.isArray(n)?x([],n,!0):[n]).then((function(e){o.validationError=e.error,s()}))})).catch((function(e){s()}))})).then((function(){return t.stateManager.setState(fe.executing),t.eventHub.submitted(),{result:o,basePidls:i}}))},this.transformResourceInstance=function(e,n){return Promise.all(t.transformResourceInstanceInternal(e,hn.getCommerceService(),n)).then(Vr,Vr)},this.transformResourceInstanceInternal=function(e,n,r){var o=[];return e.forEach((function(e){if(Rr(e)&&e.supportsDisplayTransformation){var i=e&&e.isLinkedPidl&&e.pidlIdentity?[t.pidlDocManager.getLinkedPidl(e.pidlIdentity)]:t.pidlDocManager.getResolvedOrAllPidlDocs();o=x(x([],o,!0),[n.transformUserInputPropertyForDisplay(i,t.eventHub,e.getPropertyName(),r,t.operationType)],!1)}e.children&&e.children.length&&(o=x(x([],o,!0),t.transformResourceInstanceInternal(e.children,n,r),!0))})),o},this.updateResolvedPidlDoc=function(e,n,r){return new Promise((function(o,i){t.pidlDocManager.resolvePidlDoc(t.eventHub,t.getPropertyValue,e,n,r).then((function(e){if(e){var n=t.pidlDocManager.getResolvedOrFirstPidlDoc();t.currentlyRenderedPidl&&t.currentlyRenderedPidl.identity&&n&&n.identity&&Hr.objectEquals(t.currentlyRenderedPidl.identity,n.identity)&&o(!1),n&&gn.isPrimaryResource(n)&&t.eventHub.updateTelemetryContext(n.identity),t.readUserInputData(!0),t.populateModelOnInternalCallback(t.operationType),t.currentlyRenderedPidl=n}o(e)})).catch((function(e){o(!1)}))}))},this.updatePropertyValueInternal=function(e,n,r){if(e&&e.getPropertyName){var o=t.modelData.getModelDataProperty(e.getPropertyName());if(o)return o.setValue(n)&&t.setCurrentDataIndex(e.pidlIdentity,-1),t.sendResourceSelectedEventInternal(o,r),t.validator.validateProperty(o,r,t.operationType)}return Wr()},this.sendResourceSelectedEventInternal=function(e,n){var r=e.propertyName,o=t.getPropertyValue(r),i=t.getPropertyModelElement(r);t.operationType===ut.selectInstance&&n!==ve.finished&&t.eventHub.resourceSelected(r,e.getValue(!0,!0)),ir(i)&&i.possibleOptions&&i.possibleOptions[o]&&i.possibleOptions[o].onresourceselected&&t.invokePidlAction(i.possibleOptions[o].onresourceselected).catch((function(e){}))},this.getPropertyPageIndex=function(e){var n=-1;return t.elements.some((function(t,r){if(t.children&&Cn.findPropertyElement(t.children,e))return n=r,!0})),n},this.navigateToPageIndex=function(e){Cn.updateModelElements(t.elements,{modelData:t.modelData});var n=t.pageIndex,r=t.getCurrentPage()||{};t.pageIndex=e;var o=t.getCurrentPage()||{};t.eventHub.pageNavigated(n,r.displayId,r.displayName,t.pageIndex,o.displayId,o.displayName,o.containerDescription)},this.isMaskedValue=function(e,n,r,o){return e&&e.maskDisplay&&o&&r===ve.finished&&n===t.modelData.getMaskedPropertyValue(e.getPropertyName())},this.updateInputDataCache=function(e){if(e)try{var n=t.inputDataCache?JSON.parse(t.inputDataCache):{};for(var r in e)r&&t.getPropertyModelElement(r)&&(n[r]=e[r]);var o=JSON.stringify(n);o&&o!==t.inputDataCache&&(t.inputDataCache=o)}catch(i){}},this.downloadPidlDocument=function(e,n,r,o){var i=io.getHttpHeaders(t.eventHub,t.userContext,null,e.template,null);if(n.anonymousPidl){var a=i[ee.msFlight];(!a||a.indexOf("pxpidl")<0)&&(i[ee.msFlight]=a?a+",pxpidl":"pxpidl")}if(o){var s=i[ee.msClientContext];i[ee.msClientContext]=s?s+",hasPrefillData":"hasPrefillData"}return t.pidlDocManager.downloadPidlDoc(t.eventHub,e,i,n,r).then((function(e){return t.eventHub.pidlDownloaded(),e}),(function(n){var r;r=n.connectivityError?ln.connectivityError:ln.pidlDocDownloadFailed;var o=Nr.createServerError(r,e.url,n,[n.errorMessage]);return t.eventHub.failure(o),Ur(o)}))},this.populate=function(e,n,r,o,i,a){if(t.pageIndex=0,t.pidlDocManager.isEmpty()){t.eventHub.pageRendering(void 0);var s=new sn.unexpectedError(ln.noPidlDocumentInPopulateRequest);return t.eventHub.failure(s),Ur(s)}return t.populateModel(t.operationType,e,n,i,a).then((function(){o=o||{};var e=t.getCurrentPage()||{};t.stateManager&&t.stateManager.setState(fe.executing),t.eventHub.pageRendered(r,o.displayId,o.displayName,t.pageIndex,e.displayId,e.displayName,e.containerDescription);var n=t.modelData.getModelDataProperties([t.getCurrentPage()]);return t.resolveKeyProperty(n).then((function(){return Wr()}))}))},this.updatePropertyValue=function(e,n,r,o,i,a){if(void 0===i&&(i=!0),void 0===a&&(a=!0),o){if(t.isMaskedValue(e,n,r,o))return Wr();t.modelData.clearMaskedPropertyValue(e.getPropertyName())}var s=e&&e.isKeyProperty&&(e.resolutionPolicy!==St.focusout||r===ve.finished)?t.updateResolvedPidlDoc(n,e,r):Wr(!0),l=!1,c=function(){var o=t.modelData.getPropertyValue(e.getPropertyName()),i=e&&ir(e)&&e.alwaysUpdateModelValue;if(o!==n||i||r===ve.finished)return l=!0,t.updatePropertyValueInternal(e,n,r)};return s.then(c,c).then((function(){var a=Wr();if(l&&i&&e&&e.broadcastTo){var s=t.getPropertyModelElement(e.broadcastTo);s&&s.getPropertyName()!==e.broadcastTo&&(a=t.updatePropertyValue(s,n,r,o,i)),a=a.then((function(){return Nr.broadcastPropertyValueUpdate(t.orchestratorId,e,n,r,o)}))}return a})).then((function(){t.sendSelectionChangeEvent(e,n)})).then((function(){if(l&&e&&e.sideEffects){var s=[];for(var c in e.sideEffects){var d=t.getPropertyModelElement(c),u=e.sideEffects[c],p=Nr.getConditionalFieldValue(u,{modelData:t.modelData},e);a&&d?s.push(t.updatePropertyValue(d,p,r,o,i,!1)):i&&s.push(Nr.broadcastPropertyValueUpdate(t.orchestratorId,e,n,r,o))}return Promise.all(s).then((function(){return Wr()}))}return Wr()})).then((function(){return l&&e&&(e.isConditionalFieldProperty()||!i)?t.updateModelElementsOnInternalCallback(r,o):Wr()})).then((function(){return hr(e)&&l&&Hr.isBool(n)&&t.eventHub.toggleClicked(e.getPropertyName(),n),Wr()}))},this.sendSelectionChangeEvent=function(e,n){if(ir(e)&&(t.eventHub.selectionChanged(e.getPropertyName(),e.displayId,n),e.possibleOptions&&e.possibleOptions[n])){var r=e.possibleOptions[n];if(r.pidlAction&&r.pidlAction.type===z.partnerAction){var o=Hr.deepCopy(e.possibleOptions[n].pidlAction.context);t.eventHub.partnerAction(e.id,o)}}},this.sendResourceSelectedEvent=function(e,n){var r=t.modelData.getModelDataProperty(e);r&&t.sendResourceSelectedEventInternal(r,n)},this.getPropertyValue=function(e){return t.modelData.getPropertyValue(e)},this.getPropertyModelElement=function(e){return t.modelData.getPropertyModelElement(e)},this.setCurrentDataIndex=function(e,n){t.readUserInputData(),t.modelData.setMultiPropertySelectorIndex(e,n)},this.getCurrentDataIndex=function(e){return t.modelData.getMultiPropertySelectorIndex(e)},this.getCurrentPage=function(){return t.elements[t.pageIndex]},this.getCurrentPageId=function(){return t.elements.length>t.pageIndex?t.elements[t.pageIndex].displayId:null},this.getCaptchaType=function(){var e=t.modelData.getPropertyValue(Ie.captchaType);return e||null},this.validateEditedProperties=function(){return t.validatePage(J.dirtyOnly)},this.validateProperties=function(){return t.validatePage(J.all).then((function(e){return!0})).catch((function(){return!1}))},this.moveToLastPage=function(){var e=t.elements.length-1;return t.readUserInputData(),t.navigateToPageIndex(e),Wr()},this.moveNextPage=function(){var e=t.pageIndex+1;return e>=t.elements.length?(t.eventHub.failure(new sn.unexpectedError(ln.cannotMoveToNextPageAsOnLastPage)),Wr()):(t.readUserInputData(),t.validatePage(J.all).then((function(){var n=hn.getCommerceService(),r=n.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return n.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,r,t.operationType).then((function(n){t.modelData.setDisplayData(n),t.navigateToPageIndex(e)}))})))},this.submitPage=function(){return t.readUserInputData(),t.validatePage(J.all).then((function(){var e=hn.getCommerceService(),n=e.createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,{},t.operationType,!1);return e.getUserDisplayDataPartial(t.eventHub,t.pidlDocManager,n,t.operationType).then((function(e){t.modelData.setDisplayData(e)}))}))},this.movePrevPage=function(){return t.moveToPageIndex(t.pageIndex-1)},this.moveToFirstPage=function(){return t.moveToPageIndex(0)},this.moveToPageIndex=function(e){return t.pageIndex===e||e<0||e>=t.elements.length?(e<0?t.eventHub.failure(new sn.unexpectedError(ln.cannotMoveToPrevPage)):e>=t.elements.length&&t.eventHub.failure(new sn.unexpectedError(ln.cannotMoveToPageIndex)),Wr()):t.pageIndex>e?(t.readUserInputData(),t.navigateToPageIndex(e),Wr()):t.moveNextPage().then((function(){return t.moveToPageIndex(e)}))},this.submitForm=function(e){return t.validateAndSubmitUserInputData(e).then((function(e){var n=e.result,r=e.basePidls;return n.baseFailure?(t.eventHub.failure(n.baseFailure),Ur(n.baseFailure)):n.failures.length>=1?(t.eventHub.failure(n.failures[0]),Ur(n.baseFailure)):n.baseSuccessResponse||gn.ignoreTerminatingError(r)?t.handleSuccess(n.baseSuccessResponse,n.linkedResponses):void 0}))},this.validateForm=function(e){return t.validateAndSubmitUserInputData(e).then((function(n){var r=n.result;if(!(e&&e.context&&e.context.silent)&&(r.baseFailure||r.failures.length>=1||r.validationError))return r.baseFailure?(t.eventHub.failure(r.baseFailure),Ur(r.baseFailure)):r.failures&&r.failures.length>=1?(t.eventHub.failure(r.failures[0]),Ur(r.baseFailure)):Ur();if(r.baseSuccessResponse){var o=r.baseSuccessResponse&&r.baseSuccessResponse.clientAction;if(o)return o.type===ht.MergeData?t.handleClientAction(o,r.baseSuccessResponse).then((function(){return Wr()}),(function(e){return Ur(e)})):(e.nextAction&&(t.suspendedNextAction=e.nextAction),t.handleClientAction(o,r.baseSuccessResponse).then((function(){return Ur()}),(function(e){return Ur(e)})))}}))},this.createUserInputData=function(e,n){return t.readUserInputData(),hn.getCommerceService().createUserInputData(t.pidlDocManager.getResolvedOrFirstPidlDoc(),t.modelData,t.getClientDataProperties(),t.operationType,e,n)},this.returnUserInputData=function(){return t.readUserInputData(),t.validateAndTransformUserInputPidlData(hn.getCommerceService(),[t.pidlDocManager.getResolvedOrFirstPidlDoc()],t.getClientDataProperties(),null,!1,(function(e,t){return Ur(new sn.formValidationFailedError(ln.formValidationFailed,e,t,[e]))}),t.tokenizeUserInputData)},this.gohome=function(){t.eventHub.gohome()},this.clearAll=function(){t.modelData.clearAll(),t.clearFlow(),Nr.unregisterFromOrchestrator(t.orchestratorId)},this.moveNextOrSubmit=function(){if(t.pageIndex<t.elements.length-1)return t.moveNextPage();var e=t.getSubmitButton();return e&&e.pidlAction?t.invokePidlAction(e.pidlAction).then((function(){return Wr()})):(t.eventHub.failure(new sn.unexpectedError(ln.missingSubmitActionInPidlDoc)),Ur())},this.submitAction=function(){var e=t.getSubmitButton();return e&&e.pidlAction?(e.pidlAction.context||t.eventHub.implementationMissing("context","pidlAction"),t.invokePidlAction(e.pidlAction).then((function(){return Wr()}))):(t.eventHub.failure(new sn.unexpectedError(ln.missingSubmitActionInPidlDoc)),Ur())},this.movePrevOrCancel=function(){return t.pageIndex>0?t.movePrevPage():(t.gohome(),Wr())},this.invokePidlAction=function(e,n){var r=e.type,o=e.nextAction,i=e.context,a=null;return t.eventHub.pidlActionInvoked(r,{nextAction:null===o||void 0===o?void 0:o.type}),new Promise((function(o,s){var l;switch(r){case z.closePidlPage:t.movePrevPage().then((function(){t.elements.splice(t.pageIndex+1,1),o()}),(function(){return s()})),t.eventHub.closePidlPage();break;case z.closeModalDialog:t.eventHub.hideModalDialog();var c=t.getCurrentPage();if(c&&c.children&&c.children.length>0){var d=c.children[c.children.length-1];vr(d)&&d.isModalGroup&&c.children.pop()}o();break;case z.continueSuspendedAction:t.suspendedNextAction?t.invokePidlAction(t.suspendedNextAction,n).then((function(){return o()}),(function(e){return s(e)})):o();break;case z.propertyBindingAction:var u=i.bindingPropertyName,p=i.actionMap,m=t.getPropertyValue(u);Hr.isBool(m)&&(m=Hr.toString(m)),t.eventHub.propertyValueSelected(u,m);var h=p[m];h?t.invokePidlAction(h,n).then((function(){return o()}),(function(e){return s(e)})):o();break;case z.mergeData:var f=i.payload;if(i.explicit){var g=[];for(var v in f)(y=t.getPropertyModelElement(v))&&g.push(t.updatePropertyValue(y,f[v],ve.editing,!1));return Promise.all(g).then((function(){return o()}),(function(){return s()}))}t.modelData.updateUserData(f),t.eventHub.modelUpdated(!1),o();break;case z.updatePropertyValue:var y,b=i.propertyName,C=i.propertyValue;if(Hr.isString(b)&&(y=t.getPropertyModelElement(b)))return t.updatePropertyValue(y,C,ve.editing,!1);break;case z.submit:t.submitForm(e).then((function(){return o()}),(function(e){s(e)}));break;case z.triggerSubmit:t.submitAction().catch((function(e){return s(e)}));break;case z.submitOriginalPidl:t.movePrevPage().then((function(){t.elements.splice(t.pageIndex+1,1),t.invokeDefaultPidlAction().then((function(){return o()}),(function(){s()}))}),(function(){return s()})),t.eventHub.submitOriginalPidl();break;case z.validate:case z.validateOnChange:t.validateForm(e).then((function(){return o()}),(function(){return s()}));break;case z.gohome:t.gohome(),o();break;case z.first:t.moveToPageIndex(0).then((function(){return o()}),(function(){return s()}));break;case z.last:t.moveToLastPage().then((function(){return o()}),(function(){return s()}));break;case z.next:t.moveNextPage().then((function(){return o()}),(function(){return s()}));break;case z.prev:t.movePrevPage().then((function(){return o()}),(function(){return s()}));break;case z.moveToPageIndex:var S=i.pageIndex;t.moveToPageIndex(S).then((function(){return o()}),(function(){return s()}));break;case z.restartFlow:t.restartFlow().then((function(){return o()}),(function(){return s()}));break;case z.restAction:i?t.invokeRestMethod(i).then((function(){return o()}),(function(){return s()})):(t.eventHub.error(new sn.unexpectedError(ln.contextMissingFromPidlAction,[e.type])),s());break;case z.success:n&&n.value?((a=Hr.deepCopy(n.value)).operationType=t.operationType,t.eventHub.success(a)):t.eventHub.success(t.createSuccessEventPayload()),o();break;case z.partnerAction:n&&n.value&&(a=Hr.deepCopy(n.value),t.eventHub.partnerAction(n.id,a)),o();break;case z.successWithPidlPayload:(a=Hr.deepCopy(t.createUserInputData(!0))).operationType=t.operationType,n&&n.value&&(a.additionalData=Hr.deepCopy(n.value)),t.eventHub.success(a),o();break;case z.successWithSelectedPidlAction:(a=Hr.deepCopy(t.createUserInputData(!0,!0))).operationType=t.operationType,n&&n.value&&(a.additionalData=Hr.deepCopy(n.value)),t.eventHub.success(a),o();break;case z.navigateAndNext:var x=t.getLinkActionUrl(i,!0);if(x){var k=hn.getRedirectionService();!t.eventHub.navigate(n.id,x,!1,null,n.dest)&&k&&k.openInNewTab(x),t.moveNextPage().then((function(){return o()}),(function(){return s()}))}else s();break;case z.navigate:t.eventHub.navigate(n.id,i,!1,null,n.dest,e.dest),o();break;case z.triggerEvent:t.eventHub.triggerEvent(null!==(l=e.context.name)&&void 0!==l?l:"",e.context.params),o();break;case z.redirect:t.eventHub.navigate(n.id,t.getLinkActionUrl(i,!0),!0,i,null),o();break;case z.poll:o();break;case z.updatePollAndMoveLast:t.eventHub.updatePollAndMoveLast(i);break;case z.noAction:o();break;default:t.eventHub.error(new sn.unexpectedError(ln.unknownActionType,[r])),s()}})).then((function(){return!o||t.invokePidlAction(o,n)}),(function(e){if(e)throw e;return!1}))},this.invokeDefaultPidlAction=function(){var e=Cn.getDefaultPidlAction([t.getCurrentPage()],t.eventHub);return e?t.invokePidlAction(e):(t.eventHub.error(new sn.unexpectedError(ln.defaultActionNotFound)),Ur(!1))},this.invokeRestMethod=function(e){if(!e.href||!e.method){var n=e.href?"method":"href";return t.eventHub.error(new sn.unexpectedError(ln.restActionPidlActionMissingParameters,[n])),Wr()}var r={modelData:t.modelData},o=e&&e.shouldHandleSuccess,i=It.getRestMethodUrl(e.href,t.userContext,t.modelData.getId(),r),a={url:i.url,method:e.method,headers:io.getHttpHeaders(t.eventHub,t.userContext,e.headers,i.template,r),virtualEndpoint:i.virtualEndpoint,errorCodeExpressions:e.errorCodeExpressions,data:Hr.serialize(e.payload)};return t.eventHub.restMethodInvoking(i.url,t.operationType),new Promise((function(e,n){hn.getPidlService().invokeRestMethod(t.eventHub,a,t.operationType).then((function(n){t.eventHub.restMethodInvoked(a.url);var r=n&&n.clientAction;if(r)return t.handleClientAction(r,n);n&&o&&(t.modelData.setPrimaryResourceResponse(n),t.eventHub.success(t.createSuccessEventPayload())),e()}),(function(r){var o=t.pidlDocManager.getResolvedOrFirstPidlDoc();return t.handleServerError(Nr.parseServerError(a.url,a.errorCodeExpressions,o&&o.strings&&o.strings.serverErrorCodes,r),a.url,t.pidlDocManager.getResolvedOrFirstPidlDoc()).then((function(){return e()}),(function(e){return n(e)}))}))})).then(Vr,(function(e){return t.eventHub.failure(e),Ur(e)}))},this.updateDisplayContainerId=function(e){e&&(t.displaySettings.containerId=e)},this.getMultiPropertySelectorPossibleOptions=function(e){return t.modelData.getMultiPropertySelectorPossibleOptions(e)},this.restartFlow=function(){return new Promise((function(e,n){t.handleRestartFlow().then((function(){t.modelData.retrieveFromCache()&&t.eventHub.dataUpdated(),e()}),(function(e){return n(e)}))}))},this.refreshData=function(e){var n=!1,r=Wr(),o=gn.getDataSourceObjects(t.pidlDocManager.getResolvedOrFirstPidlDoc());return o&&o.length>0&&(t.modelData.clearDataSourceCache(),t.modelData.setPrefillDataInPartnerDataSource(e),r=t.getDataSources(t.operationType,{modelData:t.modelData,model:t},o),n=!0),r.then((function(){n&&(t.modelData.clearFlow(),t.modelData.populate(t.elements)),t.modelData.setPrefillData(t,e,t.resources.constants,t.eventHub),Cn.updateModelElements(t.elements,{modelData:t.modelData}),n?t.eventHub.modelUpdated(!1):t.eventHub.dataUpdated()}))},this.getPidlInstanceContexts=function(){return t.pidlInstanceContexts},this.loadedSecureFields=[],this.queuedSecureFieldPromises=[],this.queuedIFrameLoadedPromises=[],this.queuedIFrameInitCompletedPromises=[],this.userContext=e.userContext,this.eventHub=e.eventHub,this.pidlDocManager=e.pidlDocManager,this.stateManager=e.stateManager,this.displaySettings=e.displaySettings||new Lr({containerId:""}),this.urls=e.urls||{},this.callbacks=e.callbacks||{},this.transformers=e.transformers||{},this.localDataSourceProviders=e.localDataSourceProviders,this.modelData=new bo(this.pidlDocManager),this.eventHub.addPrivateEventHandler(this.privateEventHandler),this.eventHub.registerEventExtender("pageId",this.getCurrentPageId),this.validator=new Io(this.eventHub,this.displaySettings.alwaysValidateOnChange),this.resources=new lo(this.pidlDocManager),this.setClientSettings(this.pidlDocManager)}return e.prototype.getResourceData=function(e,t,n,r){var o,i=this,a=null;if(t.dataSourceConfig&&(o=t.dataSourceConfig,delete t.dataSourceConfig),At(t)){var s=t.href,l=t.method,c=t.headers,d=t.fetchConfig,u=It.getRestMethodUrl(s,this.userContext,this.modelData.getId(),r),p=u.url,m=u.template,h={url:p,method:l,virtualEndpoint:u.virtualEndpoint,pidlOperation:n,headers:io.getHttpHeaders(this.eventHub,this.userContext,c,m,r),fetchConfig:d};a=new Promise((function(e,t){return hn.getPidlService().getInstance(i.eventHub,h).then((function(t){i.eventHub.instanceDownloaded(),e(t)}),(function(e){var n=Nr.createServerError(ln.resourceInstanceDownloadFailed,h.url,e,[e.errorMessage]);i.eventHub.failure(n),t(n)}))}))}else a=Mt(t)?Wr(t.members):Wr(t);return new Promise((function(t,n){a.then((function(n){return b(i,void 0,void 0,(function(){var i,a,s,l=this;return C(this,(function(c){return a=Wr(i=n),o&&o.useLocalDataSource&&this.localDataSourceProviders&&this.localDataSourceProviders[e]&&(s=this.localDataSourceProviders[e].mergingFunction||"mergeLocalData",this.eventHub.getLocalDataSourceInvoked(e),a=this.localDataSourceProviders[e].getDataSource().then((function(t){i=Nr.getFunctionExecutionResult({functionName:s,arguments:[n,t]},r);var o=Nr.getFunctionExecutionResult({functionName:"getDataSourceCount",arguments:[e,i]},r);return l.eventHub.getLocalDataSourceResolved(e,o),i}),(function(t){l.eventHub.getLocalDataSourceError(e,t)}))),[2,a.then((function(n){var i=n;o&&o.filter&&o.filter.functionName&&(i=Nr.getFunctionExecutionResult({functionName:o.filter.functionName,arguments:[n,o.filter.functionContext]},r)),l.modelData.setDataSource(e,i),t()}))]}))}))}),(function(e){n(e)}))}))},e.prototype.postChallengeiFrameMessage=function(e){var t=this;return new Promise((function(n,r){var o,i,a=null===(i=null===(o=window.frames.iframe_ChallengeFrame)||void 0===o?void 0:o.contentWindow)||void 0===i?void 0:i.frames.challenge_iframe;if(a){var s="https://"+Br.getServiceEndpoint(Br.virtualEndpoints.challengeUI.endpoint);a.contentWindow.postMessage(e,s)}else setTimeout((function(){t.postChallengeiFrameMessage(e).then().catch((function(){var e=new sn.unexpectedError(ln.challengeIframeMessagePostFailure);t.eventHub.failure(e)}))}),t.postMessageTimeoutInMs)}))},e.prototype.postSecureFieldMessage=function(e,t,n,r){var o=this;return new Promise((function(i,a){var s=o.buildMessage(t,n);r&&(s.correlationId=r),o.queuedSecureFieldPromises.push({id:s.correlationId,resolve:i,reject:a}),o.guaranteedPostMessage(e,s,0)}))},e.prototype.postGuaranteedSecureFieldMessage=function(e,t,n,r){var o=this.buildMessage(t,n);r&&(o.correlationId=r),this.guaranteedPostMessage(e,o,0)},e.prototype.queueSecureFieldLoadedPromise=function(e){var t=this;return new Promise((function(n,r){t.queuedIFrameLoadedPromises.push({id:e,resolve:n,reject:r})}))},e.prototype.resolveSecureFieldLoadedPromise=function(e){this.queuedIFrameLoadedPromises.forEach((function(t){t.id===e&&t.resolve()})),this.queuedIFrameLoadedPromises=this.queuedIFrameLoadedPromises.filter((function(t){return t.id!==e}))},e.prototype.queueSecureFieldInitCompletedPromise=function(e){var t=this;return new Promise((function(n,r){t.queuedIFrameInitCompletedPromises.push({id:e,resolve:n,reject:r})}))},e.prototype.resolveSecureFieldInitCompletedPromise=function(e){this.queuedIFrameInitCompletedPromises.forEach((function(t){t.id===e&&t.resolve()})),this.queuedIFrameInitCompletedPromises=this.queuedIFrameInitCompletedPromises.filter((function(t){return t.id!==e}))},e.prototype.buildMessage=function(e,t){return{source:Ge.pidlSdkMessageSource,event:e,payload:t,correlationId:Nr.guid()}},e.prototype.guaranteedPostMessage=function(e,t,n){var r=this;if(!(n>this.maxRetryPostMessage))if(n++,this.loadedSecureFields.includes(e)&&window.frames[e]){var o="https://"+Br.getServiceEndpoint(Br.virtualEndpoints.securePx.endpoint);this.secureFieldOriginOverride&&(o=this.secureFieldOriginOverride),window.frames[e].postMessage(t,o),this.eventHub.secureFieldEventPosted(e,t.event,t.correlationId)}else this.eventHub.secureFieldEventQueued(e,t.event,t.correlationId),setTimeout((function(){r.guaranteedPostMessage(e,t,n)}),this.postMessageTimeoutInMs)},e.prototype.getSecurePropertyInitializationPayload=function(e){var t,n,r,o=null===(t=null===e||void 0===e?void 0:e.modelElement)||void 0===t?void 0:t.dataDescription,i=null===(n=null===e||void 0===e?void 0:e.modelElement)||void 0===n?void 0:n.displayDescription,a=null===i||void 0===i?void 0:i.propertyName,s=null==o.validations?[o.validation]:o.validations;return{maxLength:null===i||void 0===i?void 0:i.maxLength,isOptional:o.is_optional,resolutionPolicy:null===(r=null===e||void 0===e?void 0:e.modelElement)||void 0===r?void 0:r.resolutionPolicy,keyPropertyResolutionMappings:o.keyPropertyResolutionMappings,propertyDataValidations:s,cssStyles:this.computedStyles.style[a],msCv:this.eventHub.getCorrelationId(),sessionId:this.eventHub.getSessionId()}},e.prototype.handleExpressCheckoutButtonMessage=function(e,t){var n,r,o,i,a,s,l,c=this;switch(null===(n=e.data)||void 0===n?void 0:n.messageType){case qe.paymentSheetOpened:this.eventHub.paymentSheetOpened(null===(r=e.data)||void 0===r?void 0:r.source);break;case qe.paymentData:var d=e.data.pidlAction||null;d?this.invokePidlAction(d).then((function(){c.eventHub.postMessageHandleSuccess(d.type)}),(function(){c.eventHub.postMessageHandleFailure("specified pidlAction from expressCheckout is not successful. pidlAction type: "+d.type)})):this.eventHub.postMessageHandleFailure("pidlAction from expressCheckout is not specified");break;case qe.paymentDataTokenizing:this.eventHub.paymentDataTokenizing(null===(o=e.data)||void 0===o?void 0:o.source);break;case qe.paymentDataTokenized:this.eventHub.paymentDataTokenized({source:null===(i=e.data)||void 0===i?void 0:i.source,tokenReference:null===(a=e.data)||void 0===a?void 0:a.tokenReference});break;case qe.cancel:this.eventHub.paymentSheetCancelled(null===(s=e.data)||void 0===s?void 0:s.source);break;case qe.error:var u=null===(l=e.data)||void 0===l?void 0:l.error,p=u;try{p=JSON.parse(u)}catch(f){p=u}var m={error:p,stack:null===p||void 0===p?void 0:p.stack,message:null===p||void 0===p?void 0:p.message},h=void 0;u===Ye.failedToOpenWindow?h=new sn.failedToOpenWindowError(ln.failedToOpenWindow,JSON.stringify(m)):(null===p||void 0===p?void 0:p.message)===Ye.tokenizationFailed?(m.message=null===p||void 0===p?void 0:p.originalError,h=new sn.unexpectedError(ln.tokenizationFailed,[JSON.stringify(m)])):h=new sn.paymentMethodFailureError(ln.paymentMethodFailure,JSON.stringify(m)),this.eventHub.failure(h)}},e.prototype.testHookSetCurrentPage=function(e){this.pageIndex=e},e.prototype.testHookGetCurrentPage=function(){return this.pageIndex},e.prototype.testHookGetValidator=function(){return this.validator},e.prototype.testHookGetModelData=function(){return this.modelData},e.prototype.testHookClearElementEditStates=function(){return this.clearElementEditStates()},e.prototype.testHookSetCallbacks=function(e){this.callbacks=e},e.prototype.testHookSetSuspendedNextAction=function(e){this.suspendedNextAction=e},e.prototype.testHookGetInputDataCache=function(){return this.inputDataCache},e}(),Oo=function(e,t){var n=this;this.getPidlDocumentHook=null,this.originalPidlDocs=[],this.resolvedPidlDocs=[],this.pidlIdentityHashMapping={},this.downloadedPidlDocsByUrl={},this.lastDownloadedPidlDoc=null,this.operationInfo=null,this.currentUrl=null,this.currentHeaders=null,this.pidlPayload=null,this.logos=[],this.updatePidlDocStore=function(e,t,r){if(n.operationInfo&&n.operationInfo.handle){var o=hn.getPidlStoreService();if(o){var i=o.get(n.operationInfo.handle);e=e||i&&i.pidls;var a=t[0]&&t[0].identity||i&&i.resolvedPidlIdentity;o.put(n.operationInfo.handle,r||i.pidlDocInfo,e,a)}}},this.getResolvedLogoDescription=function(e){for(var t=0;t<e.length;t++){var r=e[t];if(Tt(r))return r;if(_t(r)&&r.members){var o=n.getResolvedLogoDescription(r.members);if(o)return o}}},this.getIdentityLessCountry=function(e){return e.description_type+"_"+e.type},this.addIdentity=function(e){if(e&&e.identity){var t=gn.createIdentityHash(e.identity),r=n.getIdentityLessCountry(e.identity);n.pidlIdentityHashMapping[t]=r}},this.addLogo=function(e){var t=e.displayDescription;if(t&&Hr.isArray(t))for(var r=0;r<t.length;r++){var o=[];gn.getLogoDescriptions(t[r],o);for(var i=0;i<o.length;i++){for(var a=!1,s=0;s<n.logos.length;s++)if(n.logos[s].displayId===o[i].displayId){a=!0;break}a||n.logos.push(o[i])}}},this.checkPidlDoc=function(e){if(e){n.addIdentity(e);var t=e.data_description;for(var r in t){var o=t[r];if(o instanceof Array)for(var i=0;i<o.length;i++)n.checkPidlDoc(o[i])}}},this.isPidlForCurrentOperation=function(e){return!(n.operationInfo&&n.operationInfo.operationType&&e&&e.identity&&e.identity.operation)||Hr.equalsIgnoreCase(n.operationInfo.operationType,e.identity.operation)||Hr.equalsIgnoreCase(ut.update,e.identity.operation)},this.swapPidlDoc=function(e,t,r){if(n.resetPidlDocs(),t){if(t instanceof Array)for(var o=0;o<t.length;o++)n.checkPidlDoc(t[o]),n.isPidlForCurrentOperation(t[o])&&(n.originalPidlDocs.push(t[o]),n.addLogo(t[o]));else n.checkPidlDoc(t),n.isPidlForCurrentOperation(t)&&(n.originalPidlDocs.push(t),n.addLogo(t));if(1===n.originalPidlDocs.length?n.resolvedPidlDocs=Hr.copyArray(n.originalPidlDocs):r&&Hr.invokeIf(n.originalPidlDocs,(function(e){var t=e.identity;return Hr.objectEquals(r,t)}),(function(e){n.resolvedPidlDocs.push(n.originalPidlDocs[e])})),0===n.resolvedPidlDocs.length){var i=hn.getCommerceService(),a=gn.createKeyPropertyMap(n.originalPidlDocs,gn.getDefaultPropertyValueGetter()),s=i.getFirstPidlWithValidDefaultKey(n.originalPidlDocs,a);s&&n.resolvedPidlDocs.push(s)}e&&e.pidlResolved("swapPidlDocs",n.resolvedPidlDocs)}},this.resetPidlDocs=function(){n.originalPidlDocs=[],n.resolvedPidlDocs=[],n.pidlIdentityHashMapping={},n.logos=[]},this.getPidlDocument=function(e,t){return e.pidlDownloading(t.url),new Promise((function(r,o){var i=Hr.toLowerCase(t.url);if(n.pidlPayload)r(n.pidlPayload);else{if(!n.downloadedPidlDocsByUrl[i])return hn.getPidlService().getPidlDocument(e,t,n.getPidlDocumentHook).then((function(e){n.downloadedPidlDocsByUrl[i]=e,r(e)}),(function(e){o(e)}));r(n.downloadedPidlDocsByUrl[i])}}))},this.setPidlDoc=function(e,t,r){n.clearCache(),t instanceof Array||(t=t?[t]:null),n.swapPidlDoc(e,t,r),n.updatePidlDocStore(t,n.resolvedPidlDocs,n.currentPidlDocInfo)},this.getPidlPayload=function(){return n.pidlPayload},this.setToLastDownloadedPidlDoc=function(e){n.setPidlDoc(e,n.lastDownloadedPidlDoc)},this.downloadPidlDoc=function(e,t,r,o,i,a){return new Promise((function(s,l){n.getPidlDocument(e,{url:t.url,headers:r,virtualEndpoint:t.virtualEndpoint,pidlOperation:n.operationInfo.operationType,fetchConfig:a}).then((function(a){var l,c;if(a&&a[0]&&a[0].clientAction)s(a[0].clientAction);else{var d;if(Ht(a)){for(var u in null===(l=null===a||void 0===a?void 0:a.pidlInfo)||void 0===l?void 0:l.pidls)if(n.operationInfo.operationType.toLowerCase()===u.toLowerCase()){d=null===(c=null===a||void 0===a?void 0:a.pidlInfo)||void 0===c?void 0:c.pidls[u];break}n.pidlPayload=a}else d=a;n.currentUrl=t,n.currentHeaders=r,n.currentPidlDocInfo=o||n.currentPidlDocInfo,n.lastDownloadedPidlDoc=d,n.swapPidlDoc(e,d,i),n.updatePidlDocStore(d,n.resolvedPidlDocs,o),s()}}),(function(e){l(e)}))}))},this.retrievePidlDocFromCache=function(e,t,r){return new Promise((function(o,i){var a=hn.getPidlStoreService().get(t);a&&a.pidls?(n.lastDownloadedPidlDoc=a.pidls,n.swapPidlDoc(e,a.pidls,r),o()):i(ln.invalidCacheEntry)}))},this.shouldDownloadNewPidl=function(e,t,r,o){return!(e instanceof Array&&e.length>=1||!n.currentUrl)&&!(ar(t)&&t.possibleOptions&&!r)&&t.triggerPidlDownloadOnChange&&(o===ve.finished||ar(t)&&o===ve.editing)},this.resolvePidlDoc=function(e,t,r,o,i){var a=hn.getCommerceService(),s=n.getAllPidlDocs(),l=gn.createKeyPropertyMap(s,gn.getPropertyValueGetter(o.getPropertyName(),r,t));return a.resolveInfoDescriptionId(s,l).then((function(s){if(n.shouldDownloadNewPidl(s,o,r,i)){var c=Hr.deepCopy(n.currentUrl.originalParameters);if(Nr.updatePidlDocUrlParams(c.pidlDocInfo,l)){var d=n.currentUrl.recreateUrl(c);return n.downloadPidlDoc(e,d,n.currentHeaders,c.pidlDocInfo).then((function(){return e.pidlDownloaded(),n.resolvePidlDoc(e,t,r,o,i).then((function(){return!0}))}),(function(t){return e.failure(Nr.createServerError(ln.pidlDocDownloadFailed,d.url,t,[t.errorMessage])),!1}))}}else if(!gn.matchPidlIdsToPidls(a,s,n.resolvedPidlDocs)&&(n.resolvedPidlDocs=gn.resolvePidlDocs(n.originalPidlDocs,s),e.pidlResolved("resolvedPidlDocs",n.resolvedPidlDocs),0!==n.resolvedPidlDocs.length))return!0;return!1}))},this.isEmpty=function(){return 0===n.originalPidlDocs.length},this.getResolvedOrAllPidlDocs=function(){return 0!==n.resolvedPidlDocs.length?n.resolvedPidlDocs:n.originalPidlDocs},this.getResolvedOrFirstPidlDoc=function(){return n.resolvedPidlDocs.length>0?n.resolvedPidlDocs[0]:n.originalPidlDocs.length>0?n.originalPidlDocs[0]:null},this.getAllPidlDocs=function(){return n.originalPidlDocs},this.clearCurrentPIDLResource=function(){n.currentPidlDocInfo&&hn.getPidlStoreService().removeResourceEntries(n.currentPidlDocInfo.resourceType)},this.getPidlIdentity=function(){var e=n.getResolvedOrFirstPidlDoc();return e?e.identity:null},this.getAllLogos=function(){return n.logos},this.getResolvedLogo=function(){if(1===n.resolvedPidlDocs.length)return n.getResolvedLogoDescription(n.resolvedPidlDocs[0].displayDescription)},this.getLogoUrl=function(e,t){var n=e.toLowerCase();switch(n){case"mastercard":return t.mc;case"americanexpress":case"american express":return t.amex;default:return t[n]||""}},this.getLogosFromDataDescription=function(){var e,t=n.getResolvedOrFirstPidlDoc();if(null===(e=null===t||void 0===t?void 0:t.data_description)||void 0===e?void 0:e.cardLogos){var r=t.data_description.cardLogos;return(null===r||void 0===r?void 0:r.possible_values)||{}}return{}},this.getIdentityString=function(e){return e&&e in n.pidlIdentityHashMapping?n.pidlIdentityHashMapping[e]:null},this.reset=function(){n.resetPidlDocs(),n.operationInfo=null,n.clearCache()},this.clearCache=function(){n.downloadedPidlDocsByUrl={}},this.getNextPidlRef=function(){if(n.resolvedPidlDocs[0]&&n.resolvedPidlDocs[0].links)return n.resolvedPidlDocs[0].links.nextPidl},this.getLinkedPidls=function(){var e=n.getResolvedOrFirstPidlDoc();if(e)return e.linkedPidls},this.getLinkedPidl=function(e){var t=n.getLinkedPidls();if(t)for(var r=0;r<t.length;r++)if(gn.createIdentityHash(t[r].identity)===e)return t[r]},this.getPidlInstanceContexts=function(){var e=n.getResolvedOrFirstPidlDoc();if(e)return e.pidlInstanceContexts},this.setOperationInfo=function(e){n.operationInfo=e},this.getOperationHandle=function(){if(n.operationInfo)return n.operationInfo.handle},this.testHookGetGetPidlDocumentHook=function(){return n.getPidlDocumentHook},this.testHookGetResolvedPidlDoc=function(){return n.resolvedPidlDocs},this.testHookSetResolvedPidlDocument=function(e){n.resolvedPidlDocs=e instanceof Array?e:[e]},this.testHookSetCurrentUrl=function(e){n.currentUrl=e},this.getPidlDocumentHook=e||null,this.pidlPayload=t||null},Bo={addAddress:[fe.initialized],selectPaymentInstrument:[fe.initialized],addPaymentInstrument:[fe.initialized],listAddress:[fe.initialized],addResource:[fe.initialized],applyResource:[fe.initialized],replaceResource:[fe.initialized],updateResource:[fe.initialized],updateProfile:[fe.initialized],selectResource:[fe.initialized],selectSingleResource:[fe.initialized],selectResourceType:[fe.initialized],validateResource:[fe.initialized],showResource:[fe.initialized],offerResource:[fe.initialized],searchResource:[fe.initialized],deleteResource:[fe.initialized],fundStoredValue:[fe.initialized],createPaymentSession:[fe.initialized],handleChallenge:[fe.initialized],handlePaymentChallenge:[fe.initialized],expressCheckout:[fe.initialized],handlePurchaseRiskChallenge:[fe.initialized],handlePurchasePendingState:[fe.initialized],renderPidlPage:[fe.initialized],getPidlPayload:[fe.executing],invokePageDefaultAction:[fe.executing],invokeResourceAction:[fe.initialized,fe.executing],moveNextPage:[fe.executing],validateProperties:[fe.executing],submitPage:[fe.submitting,fe.executing,fe.initialized],movePrevPage:[fe.executing],moveToLastPage:[fe.executing],moveToFirstPage:[fe.executing],refreshData:[fe.executing],cancel:[fe.initialized,fe.executing,fe.submitting],destroyInstance:[fe.submitting,fe.executing,fe.initialized,fe.notInitialized],modelSubmitForm:[fe.executing,fe.submitting],handleAction:[fe.initialized],getSelectedResource:[fe.initialized,fe.executing,fe.submitting],renderPidlDocument:[fe.initialized],postMessageToChildIFrames:[fe.executing,fe.submitting],profilePrerequisite:[fe.initialized],handleCheckout:[fe.initialized],getPayeeTaxProfile:[fe.initialized],redeemMSRewards:[fe.initialized],searchTransactions:[fe.initialized],selectMSRewards:[fe.initialized]},Lo=function(){function e(e){this.state=fe.notInitialized,this.eventHub=e;var t=this;this.eventHub.addPrivateEventHandler((function(e,n){t.privateEventHandler(e,n)}))}return e.prototype.privateEventHandler=function(e,t){if(this.state!==fe.notInitialized)switch(e){case K.success:case K.failure:case K.gohome:t[j.preventUnmountOnFinish]||this.setState(fe.initialized)}},e.prototype.getState=function(){return this.state},e.prototype.setState=function(e){this.eventHub.stateChanged(this.state,e),this.state=e},e.prototype.canApiStart=function(e){if(this.state===fe.notInitialized)return{error:new sn.apiValidationError(ln.apiCannotStartAsControlNotInitialized,e,[e]),result:!1};var t=Bo[e];return t?Hr.contains(t,this.state)?{result:!0}:{error:new sn.apiValidationError(ln.apiCannotStartAsNotAllowedInCurrentState,e,[e,this.state,t.toString()]),result:!1}:{error:new sn.unexpectedError(ln.apiStateMappingNotFound,[e]),result:!1}},e}(),Vo=function(){function e(e){this.userContext=e}return e.prototype.getServiceParam=function(e,t){if(!this.userContext)return null;var n=Ut.findVirtualEndpointInTemplate(e);if(n&&n.name&&this.userContext.serviceOverrides)for(var r in this.userContext.serviceOverrides)if(Hr.toLowerCase(r)===n.name)return this.userContext.serviceOverrides[r][t]||this.userContext[t];return this.userContext[t]},e.prototype.getAdditionalHeaders=function(e){return this.getServiceParam(e,"additionalHeaders")},e.prototype.getAuthToken=function(e){return this.getServiceParam(e,"authToken")},e.prototype.getUserId=function(e){return this.getServiceParam(e,"userId")},e.prototype.getHeaders=function(e,t){e=e||{};var n=this.getAuthToken(t);n&&(e[ee.authorization]=n);var r=this.getAdditionalHeaders(t);if(r)for(var o in r)e[o]=r[o];return e},e.prototype.getUserCredential=function(e){var t=this.getAuthToken(e);if(!t){var n=this.getAdditionalHeaders(e);for(var r in n)if(Hr.equalsIgnoreCase(r,ee.authorization)){t=n[r];break}}return t},e}(),zo=function(){function e(e){var t=this;this.waitForSecureFields=!1,this.displaySettings=null,this.model=null,this.userContext=null,this.eventHub=null,this.focusTarget=null,this.unseenErrors=[],this.totalExpressCheckoutButtonElements=0,this.expressCheckoutButtonEligibilityStatus={},this.securePropertyPromises=[],this.securePropertyInitCompletedPromises=[],this.errorPropertyGroups={},this.pollingActions={},this.pageRestActions={},this.valueSetters=[],this.view=null,this.pollingTimersAndCounters={},this.showHideBusy=function(e){!e&&t.displaySettings.busyUntilInitialPageRendered||(t.displaySettings.busyBlockShowHideHandler?t.displaySettings.busyBlockShowHideHandler(e):t.view.showHideBusy(e))},this.applyForModelDisplayTransformation=function(e,t,n){if(br(e)&&(!n||!e.maskDisplay)&&e.displayTransformations&&e.displayTransformations.forModel)return Nr.applyDisplayTransformation(e.displayTransformations.forModel,t)},this.hideError=function(e){e?t.view.hidePropertyError(e):t.view.hidePageError()},this.showGroupError=function(e){return!!e.groupDisplayId&&(t.view.showGroupError(e)||t.unseenErrors.push(e),!0)},this.showPropertyError=function(e){return!!e.propertyName&&(t.view.showPropertyError(e)||t.unseenErrors.push(e),!0)},this.showPageError=function(e){return t.view.showPageError(e)},this.hideModalDialog=function(){return t.view.hideModalDialog()},this.showError=function(e){var n=!1;switch(e.type){case q.formValidation:var r=e;if(r.errors&&r.errors.length>0){for(var o=0;o<r.errors.length;o++)if(r.errors[o].message===ye.empty&&(r.errors[o].message=""),!t.showError(r.errors[o]))return;e.name===ln.formSubmissionFailedBadUserInput.name&&r.message!==ye.empty&&(n=!0)}else n=!0;break;case q.userInputValidation:n=e.validationErrorType===Z.group?!t.showGroupError(e):!t.showPropertyError(e);break;default:n=!0}return n&&t.showPageError(e),!0},this.fillForm=function(e){var n=t.view.getVisibleProperties();t.model.showMaskedValues=e===be.pageNavigated;var r={isRadioProperty:!1,firstRadioChecked:!1,updateReason:e};if(n.forEach((function(e){var n=t.model.modelData.getProperty(e),o=t.model.getPropertyModelElement(e);r.isRadioProperty=Sr(o);var i=t.model.modelData.getPrefillData(),a=t.model.showMaskedValues&&t.model.modelData.getMaskedPropertyValue(e)||br(o)&&o.displayTransformations&&o.displayTransformations.forFormat&&Nr.applyDisplayTransformation(o.displayTransformations.forFormat,n.value)||n.value;t.model.showMaskedValues&&a!==n.value&&t.view.setAccessibilityText(o,o.tags&&o.tags.maskedAccessibilityName||o.accessibilityName||o.displayName),ar(o)&&(r.dropdownElement=o),a&&t.model.sendResourceSelectedEvent(e,ve.ready),Cr(o)&&i&&i.id&&t.view.updateButtonList(o,i.id,i.invalid),t.view.updatePropertyValue(e,n.editable,a,r)})),t.valueSetters&&t.valueSetters.length)for(var o=0;o<t.valueSetters.length;o++)t.valueSetters[o].set();t.view.updatePrefillControls()},this.reset=function(){t.unseenErrors=[],t.errorPropertyGroups={},t.model.showMaskedValues=!1,t.view.reset(),t.valueSetters=[],t.stopAllPolling()},this.stopAllPolling=function(){for(var e in t.pollingTimersAndCounters)t.stopPoll(e);t.pollingTimersAndCounters={},t.pollingActions={}},this.stopPoll=function(e){t.pollingTimersAndCounters[e]&&(t.pollingTimersAndCounters[e].pollingCounter=0,clearInterval(t.pollingTimersAndCounters[e].pollingTimer))},this.startPollingWithNextAction=function(e){t.pollingActions[e]&&t.pollingActions[e].nextAction&&(t.pollingActions[e]=t.pollingActions[e].nextAction,t.pollingHandler(e,t.pollingActions[e]))},this.registerGroupedErrors=function(e){if(e&&e.errors&&e.errors.length)for(var n=[],r=0;r<e.errors.length;++r){var o=e.errors[r],i=e.errors[r];o.propertyName&&(n.push(o.propertyName),t.errorPropertyGroups[o.propertyName]=n),i.groupDisplayId&&(n.push(i.groupDisplayId),t.errorPropertyGroups[i.groupDisplayId]=n)}},this.deregisterGroupedErrors=function(e,n){if(n||(n=t.hideError),e&&t.errorPropertyGroups[e])for(var r=t.errorPropertyGroups[e],o=0;o<r.length;++o){var i=r[o];t.unseenErrors.length>0&&Hr.filter(t.unseenErrors,(function(e){return!e.propertyName||e.propertyName!==i})),n(i),delete t.errorPropertyGroups[i]}},this.handleErrorEvent=function(e){if(!t.displaySettings.hidePropertyErrors){var n=e.error;if(n){(sn.isServerError(n)&&!n.retryable||!sn.isServerError(n))&&t.showHideBusy(!1);var r=n.propertyName;r&&n.type===q.userInputValidation&&t.deregisterGroupedErrors(r),t.sortError(n),t.showError(n),n.name===ln.formSubmissionFailedBadUserInput.name?(t.registerGroupedErrors(n),t.view.setFocusOnFirstError()):n.name===ln.formValidationFailed.name&&t.view.setFocusOnFirstError()}}},this.sortError=function(e){if(e.type===q.formValidation){var n=e;if(!(null===n.errors||n.errors.length<=1)){var r=t.model.getCurrentPage(),o=[];t.addError(r,n,o),n.errors=o}}},this.addError=function(e,n,r){if(null!==e&&void 0!==e)for(var o=0;o<e.children.length;o++){var i=e.children[o];if(Rr(i)||Er(i)){var a=i.getPropertyName(),s=t.getErrorByPropertyName(n.errors,a);null!==s&&r.push(s)}else if(nr(i)){t.addError(i,n,r);var l=t.getErrorByDisplayId(n.errors,i.displayId);null!==l&&r.push(l)}}},this.getErrorByPropertyName=function(e,t){if(null===t||void 0===t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.propertyName)return r}return null},this.getErrorByDisplayId=function(e,t){if(null===t||void 0===t)return null;for(var n=0;n<e.length;n++){var r=e[n];if(t===r.groupDisplayId)return r}return null},this.handlePropertyValidated=function(e){e&&(t.hideError(e.propertyName),t.deregisterGroupedErrors(e.propertyName))},this.setSubmitButtonState=function(e){var n=t.model.getSubmitButton()||{},r=n.accessibilityName,o=void 0===r?null:r,i=n.disabledAccessibilityName,a=void 0===i?null:i,s=n.displayId,l=void 0===s?null:s;t.view.setDisabledByDisplayId(l,e,{accessibilityName:o,disabledAccessibilityName:a})},this.publicEventHandler=function(e,n){switch(e){case U.error:t.handleErrorEvent(n);break;case U.propertyValidated:t.handlePropertyValidated(n);break;case U.pidlDownloading:case U.pageRendering:case U.inputSubmitting:case U.redirecting:case U.instanceDownloading:case U.restMethodInvoking:case U.propertyTokenizing:t.showHideBusy(!0);break;case U.pageRendered:for(var r in t.displaySettings.busyUntilInitialPageRendered=!1,t.pollingActions=Cn.getPollingPidlActions(t.model.elements),t.pollingActions)t.pollingHandler(r,t.pollingActions[r]);Cn.findRadioElements(t.model.elements).forEach((function(e){Rr(e)&&t.model.sendSelectionChangeEvent(e,e.defaultValue)})),t.pageRestActions=Cn.getPagePidlActions(t.model.elements,z.restAction);var o=[];for(var r in t.pageRestActions)o.push(t.invokePidlAction(t.pageRestActions[r]));if(o.length>0){Promise.all(o).finally((function(){t.showHideBusy(!1)})).catch(t.displaySettings.propagateCallbackException?zr:Vr);break}if(t.waitForSecureFields)break;case U.pageDisplayed:case U.pidlDownloaded:case U.instanceDownloaded:case U.restMethodInvoked:case U.inputSubmitted:t.showHideBusy(!1);break;case U.pageNavigated:t.updateView(be.pageNavigated);break;case U.propertySelected:t.view.markAsFilled(n.divId)}},this.privateEventHandler=function(e,n){switch(e){case K.modelUpdated:var r=n&&n.created?be.modelCreated:be.modelUpdated;t.updateView(r,null===n||void 0===n?void 0:n.skipHideBusyBlock);break;case K.dataUpdated:t.fillForm();break;case K.secureFieldLoadWaitStarted:t.showHideBusy(!0),t.waitForSecureFields=!0;break;case K.secureFieldLoadWaitEnded:t.showHideBusy(!1),t.waitForSecureFields=!1;break;case K.success:case K.failure:case K.gohome:t.showHideBusy(!1),t.reset();break;case K.propertyCreated:var o=n;t.view.checkAndMarkAsFilled(o.divId,o.controlId);break;case K.propertyUnselected:var i=n;t.view.checkAndMarkAsUnfilled(i.divId,i.id);break;case K.postMessageBusyTimerStarted:t.showHideBusy(!0);break;case K.postMessageBusyTimerEnded:t.showHideBusy(!1);break;case K.hideModalDialog:t.hideModalDialog();break;case K.submitting:t.setSubmitButtonState(!0);break;case K.submitted:t.setSubmitButtonState(!1);break;case K.updatePollAndMoveLast:var a=n.pollId||"";t.stopPoll(a),t.startPollingWithNextAction(a),t.model.moveToLastPage().catch(Vr)}},this.getPollingPidlActionContext=function(e){var t=e.context,n=t.href,r=t.responseResultExpression,o=t.responseActions,i=t.method;if(n&&r&&o&&i)return e.context},this.getPidlActionFromPollingResponse=function(e,t,n){if(!e||!t||!n)return null;var r=Hr.getPropertyValueByJPath(e,t);return Hr.getPropertyValueByJPath(n,r)},this.getModelPropertyValue=function(e){return t.model.getPropertyValue(e)},this.updateModelPropertyValue=function(e,n,r){return t.model.updatePropertyValue(t.model.getPropertyModelElement(e),n,r,!1)},this.updateView=function(e,n){t.view.initialize(t.eventHub,t.model,t.displaySettings,t);var r=t.model.getCurrentPage(),o=t.model.getCaptchaType(),i=t.model.getPidlInstanceContexts();t.model.secureFieldResolved||t.view.reset(),t.totalExpressCheckoutButtonElements=Cn.findExpressCheckoutButtonElements(t.model.elements).length;var a=t.view.render({updateReason:e,focusTarget:t.focusTarget,captchaType:o,pageElement:r,viewEventHandler:t,displaySettings:t.displaySettings,eventHandler:t.eventHandler,eventHub:t.eventHub,pidlInstanceContexts:i,displayOptions:t.displayOptions,callbacks:t.callbacks,telemetryOptions:t.telemetryOptions,userContext:t.userContextIn,returnOptions:t.returnOptions,externalPrivateEventHandler:t.externalPrivateEventHandler,oneDSService:t.oneDSService,transformers:t.transformers,pidlPayload:t.pidlPayload,localDataSourceProviders:t.localDataSourceProviders,controlApiMap:t.controlApiMap});if(t.valueSetters=a.valueSetters,t.eventHub.pageRefreshed(),t.fillForm(e),t.view.restoreCaretPosition&&e!==be.pageNavigated&&t.view.restoreCaretPosition(),t.model.validateEditedProperties().catch(Vr),e===be.modelCreated)t.unseenErrors=[],t.errorPropertyGroups={};else{var s=t.unseenErrors;t.unseenErrors=[],n||t.showHideBusy(!1);for(var l=0;l<s.length;l++)t.showError(s[l]);e!==be.modelUpdated&&t.view.setFocusOnFirstError()}},this.hasSecureFields=function(e){var n,r=e.children;if(!r)return!1;for(var o=0,i=r;o<i.length;o++){var a=i[o];if(null===(n=null===a||void 0===a?void 0:a.isSecureProperty)||void 0===n?void 0:n.call(a))return!0;if(vr(a)&&t.hasSecureFields(a))return!0}return!1},this.getTimeoutPromise=function(e){return new Promise((function(n,r){var o=setTimeout((function(){r(new Error("Timeout"))}),e);t.getTimeoutPromise.id=o}))},this.clearTimeoutPromise=function(){var e;try{var n=null===(e=t.getTimeoutPromise)||void 0===e?void 0:e.id;n&&clearTimeout(n)}catch(r){}},this.createSecurePropertyLoadedPromise=function(e){t.securePropertyPromises.push(t.model.queueSecureFieldLoadedPromise(e))},this.resolveSecurePropertyLoadedPromise=function(e){t.model.resolveSecureFieldLoadedPromise(e)},this.createSecurePropertyInitCompletedPromise=function(e){t.securePropertyInitCompletedPromises.push(t.model.queueSecureFieldInitCompletedPromise(e))},this.getSecurePropertyLoadedPromises=function(){return t.securePropertyPromises},this.getSecurePropertyInitCompletedPromises=function(){return t.securePropertyInitCompletedPromises},this.extractStylesFromStylesheet=function(e){for(var n=document.styleSheets,r=".".concat(D.errorStroke),o=".".concat(D.secureProperty),i=0;i<n.length;i++){var a=n[i];try{for(var s=a.cssRules||a.rules,l=0;l<s.length;l++){var c=s[l];if(c instanceof CSSStyleRule)for(var d=c.selectorText.split(","),u=0;u<d.length;u++){var p=d[u].trim();p.includes(".errorStroke")||p.includes(r)?e.push(p+"{ "+c.style.cssText+" }"):p.includes(o)&&(p=p.replace(o,""),e.push(p+"{ "+c.style.cssText+" }"))}}}catch(m){t.eventHub.styleSheetError(m,null===a||void 0===a?void 0:a.href)}}},this.computeSecurePropertyStyles=function(e,n){var r=[];n&&0===Object.keys(n).length?t.extractStylesFromStylesheet(r):n&&t.computeStylesFromHardCodedStyles(n,r),t.model.computedStyles.style[e]=r},this.computeStylesFromHardCodedStyles=function(e,t){var n=Object.keys(e.textFieldStyles).map((function(t){return"".concat(t,":").concat(e.textFieldStyles[t])})).join(";");t.push('input[type="text"]{'+n+"}");var r=Object.keys(e.fieldGroupNormalStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupNormalStyles[t])})).join(";");t.push(".normalClass{"+r+"}");var o=Object.keys(e.fieldGroupFocusStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupFocusStyles[t])})).join(";");t.push(".focusClass{"+o+"}");var i=Object.keys(e.fieldGroupErrorStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupErrorStyles[t])})).join(";");t.push(".errorClass{"+i+"}");var a=Object.keys(e.fieldGroupFocusErrorStyles).map((function(t){return"".concat(t,":").concat(e.fieldGroupFocusErrorStyles[t])})).join(";");t.push(".focusErrorClass{"+a+"}")},this.getMultiPropertySelectorPossibleOptions=function(e){return t.model.getMultiPropertySelectorPossibleOptions(e)},this.inputHandler=function(e){t.model.showMaskedValues=!1;var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.caretPosition&&e.caretPosition.id;var r=hr(e.propertyElement)||ar(e.propertyElement)?ve.finished:ve.editing;t.model.updatePropertyValue(e.propertyElement,n,r,t.model.showMaskedValues).catch(Vr),t.view.updateDisplayValue&&t.view.updateDisplayValue(e.id,e.propertyElement,n,e.caretPosition),t.view.updatePrefillControls()},this.focusoutHandler=function(e){var n=t.applyForModelDisplayTransformation(e.propertyElement,e.val,t.model.showMaskedValues)||e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,ve.finished,t.model.showMaskedValues).catch(Vr),t.view.updatePrefillControls(),t.eventHub.propertyUnselected(e.id,e.propertyElement.getPropertyName(),e.divId)},this.dropdownSelectHandler=function(e){var n=e.val;t.focusTarget=e.focusTarget,t.model.updatePropertyValue(e.propertyElement,n,ve.editing,t.model.showMaskedValues).catch(Vr),t.view.updatePrefillControls()},this.buttonClickHandler=function(e){t.eventHub.click(e.id),t.model.invokePidlAction(e.pidlAction,e).catch(t.displaySettings.propagateCallbackException?zr:Vr)},this.invokePidlAction=function(e){return t.model.invokePidlAction(e).catch(t.displaySettings.propagateCallbackException?zr:Vr)},this.iFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then((function(){t.eventHub.postMessageTimeoutHandleSuccess(e.type)})).catch((function(){t.eventHub.postMessageTimeoutHandleFailure("specified client action is not successful. clientAction type: "+e.type)}))},this.challengeiFrameMessageTimeoutHandler=function(e){t.model.handleClientAction(e).then((function(){})).catch((function(){}))},this.postSecureFieldMessage=function(e,n,r){return t.model.postSecureFieldMessage(e,n,r)},this.secureIFrameOnLoadHandler=function(e){t.resolveSecurePropertyLoadedPromise(e.id)},this.getClientSetting=function(e){return t.model.getClientSetting(e)},this.postChallengeIframeMessage=function(e){return t.model.postChallengeiFrameMessage(e)},this.secureFieldMessageHandler=function(e){var n=Nr.getHostName(Br.getServiceEndpoint(Br.virtualEndpoints.securePx.endpoint));Nr.getHostName(e.origin)===n&&e&&e.data&&e.data.source===Ge.secureFieldMessageSource&&t.model.handleSecureFieldMessage(e)},this.expressCheckoutButtonLoadHandler=function(e,n,r){t.model.handleExpressCheckoutButtonIframeLoaded(e,n,r)},this.expressCheckoutButtonIsEligible=function(e,n){if(t.expressCheckoutButtonEligibilityStatus[e]=n,Object.keys(t.expressCheckoutButtonEligibilityStatus).length===t.totalExpressCheckoutButtonElements){var r=[];for(var o in t.expressCheckoutButtonEligibilityStatus)t.expressCheckoutButtonEligibilityStatus[o]&&r.push(o);t.eventHub.expressCheckoutReady(r)}},this.expressCheckoutButtonMessageHandler=function(e){var n=Nr.getHostName(Br.getServiceEndpoint(Br.virtualEndpoints.staticResources.endpoint));Nr.getHostName(e.origin)===n&&e&&e.data&&t.model.handleExpressCheckoutButtonMessage(e)},this.iFrameMessageHandler=function(e){var n=Nr.getHostName(Br.getServiceEndpoint(Br.virtualEndpoints.pifd.endpoint)),r=Nr.getHostName(Br.getServiceEndpoint(Br.virtualEndpoints.pifdBackend.endpoint)),o=Nr.getHostName(e.origin);if(t.eventHub.postMessageReceived(o,n,e.data&&e.data.length),o===n||o===r){var i=Nr.parseJSON(e.data),a=i.succeeded?i.value:null;a?t.model.handleClientAction(a,null,k.iFrameMessageHandler).then((function(){t.eventHub.postMessageHandleSuccess(a.type)}),(function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+a.type)})):t.eventHub.postMessageHandleFailure("clientAction is not specified")}},this.challengeiFrameMessageHandler=function(e){var n=Nr.getHostName(Br.getServiceEndpoint(Br.virtualEndpoints.challengeUI.endpoint));if(Nr.getHostName(e.origin)===n){var r=Nr.parseJSON(e.data),o=r.succeeded&&e.type in ht?r.value:null;o?t.model.handleClientAction(o,null,k.iFrameMessageHandler).then((function(){t.eventHub.postMessageHandleSuccess(o.type)}),(function(){t.eventHub.postMessageHandleFailure("specified client action is not successful. clientAction type: "+o.type)})):t.eventHub.postMessageHandleFailure("clientAction is not specified"),"message"===e.type&&e.data in Je&&t.model.handleChallengeiFrameMessage(e)}},this.iFrameBusyTimerStartedHandler=function(e){t.eventHub.postMessageBusyTimerStarted("Busy started for timer ".concat(e))},this.iFrameBusyTimerEndedHandler=function(e){t.eventHub.postMessageBusyTimerEnded("Busy ended for timer ".concat(e))},this.hyperlinkClickHandler=function(e){var n=hn.getRedirectionService(),r=e.pidlAction,o=!1;switch(r.type){case z.redirect:var i=t.model.getLinkActionUrl(r.context,!1);if(!(o=t.eventHub.navigate(e.id,i,!0,r.context,null))&&n)return n.redirect(i),!0;break;case z.navigate:default:if(!(o=t.eventHub.navigate(e.id,r.context,!1,null,r.dest))&&n)return!n.openInNewTab(r.context)}return!o},this.captchaHyperlinkClickHandler=function(e,n,r){t.updateModelPropertyValue(e,n,r).catch(Vr)},this.updatePrefillValue=function(e,n){return!0===n?t.model.setCurrentDataIndex(e,0):!1===n?t.model.setCurrentDataIndex(e,-1):t.model.setCurrentDataIndex(e,n),t.model.validateEditedProperties()},this.prefillChangeHandler=function(e){var n=e.type&&e.type===F.checkBox;n?e.val?t.model.setCurrentDataIndex(e.pidlIdentity,0):t.model.setCurrentDataIndex(e.pidlIdentity,-1):t.model.setCurrentDataIndex(e.pidlIdentity,e.val),t.fillForm(be.prefillChanged),n||t.model.validateEditedProperties().catch(Vr)},this.propertySelectedHandler=function(e){t.eventHub.propertySelected(e.id,e.propertyName,e.divId)},this.propertyUnselectedHandler=function(e){t.eventHub.propertyUnselected(e.id,e.propertyName,e.divId)},this.postMessageToChildIFrames=function(e){return t.view.postMessageToChildIFrames(e)},this.pollingHandler=function(e,n){if(!n)return!1;t.pollingTimersAndCounters[e]={pollingTimer:null,pollingCounter:0};var r=t.getPollingPidlActionContext(n);if(!r)return!1;var o=r.method,i=r.payload,a=r.headers,s=r.interval,l=void 0===s?ze.Default:s,c=r.responseResultExpression,d=r.responseActions,u=r.maxPollingAttempts,p=r.checkPollingTimeOut,m=r.fetchConfig,h=io.getHttpHeaders(t.eventHub,t.userContext,a),f=It.getSubmitUrl(t.model.operationType,t.userContext,r,t.model.modelData.getId()),g=f.virtualEndpoint,v=g.operation,y=g.description,b=function(e,n){clearInterval(t.pollingTimersAndCounters[n].pollingTimer),t.pollingTimersAndCounters[n].pollingCounter=0,delete t.pollingTimersAndCounters[n],t.eventHub.pollingEnded(n),t.eventHub.failure(e)};return t.pollingTimersAndCounters[e].pollingTimer=setInterval((function(){var r=null;if(o===we.Get)t.eventHub.pollingStarted(e),r=io.get(t.eventHub,f.url,h,t.model.operationType,v,y,m);else if(o===we.Post)t.eventHub.pollingStarted(e),r=io.post(t.eventHub,!0,f.url,h,JSON.stringify(i),null,null,t.model.operationType,v,y,!1,m);else{if(o!==we.Put){var a=new sn.unexpectedError(ln.unableToSetupPolling);return b(a,e),!1}t.eventHub.pollingStarted(e),r=io.put(t.eventHub,!0,f.url,h,JSON.stringify(i),null,null,t.model.operationType,v,y,!1,m)}if(null===r)return a=new sn.unexpectedError(ln.unableToSetupPolling),b(a,e),!1;r.then((function(r){if(p&&t.pollingTimersAndCounters[e].pollingCounter++>u){var o=new sn.unexpectedError(ln.pollingTimedOut);return b(o,e),!1}var i=t.getPidlActionFromPollingResponse(r,c,d)||n;if(i.type!==z.poll){if(clearInterval(t.pollingTimersAndCounters[e].pollingTimer),t.pollingTimersAndCounters[e].pollingCounter=0,delete t.pollingTimersAndCounters[e],t.eventHub.pollingEnded(e),i.type===z.moveNextAndPoll)return t.model.moveNextPage().catch(Vr),t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(i.type===z.updatePoll)return t.pollingActions[e]=n.nextAction,t.pollingHandler(e,n.nextAction);if(i.type===z.handleFailure)return t.eventHub.failure(new sn.unexpectedError(ln.failurePollingResponseReturned,[JSON.stringify(r)])),!1;r&&gn.isPrimaryResource(t.model.pidlDocManager.getResolvedOrFirstPidlDoc())&&t.model.modelData.setPrimaryResourceResponse(r)}if(!(r&&r.clientAction&&i&&i.type===z.success))return t.model.invokePidlAction(i);t.model.handleClientAction(r.clientAction).then((function(){t.eventHub.pollClientActionSuccess(r.clientAction.type)})).catch((function(){t.eventHub.pollClientActionFailure("specified client action is not successful. clientAction type: "+r.clientAction.type)}))}),(function(t){return b(t,e),!1}))}),l),!0},this.testHookPublicEventHandler=function(e,n){t.publicEventHandler(e,n)},this.testHookPrivateEventHandler=function(e,n){t.privateEventHandler(e,n)},this.testHookGetUnseenErrors=function(){return t.unseenErrors},this.testHookSetUnseenErrors=function(e){t.unseenErrors=e},this.testHookFillForm=function(e,n){t.displaySettings=e,t.fillForm(n)},this.testHookGetErrorPropertyGroups=function(){return t.errorPropertyGroups},this.testHookRegisterGroupedErrors=function(e){t.registerGroupedErrors(e)},this.testHookDeregisterGroupedErrors=function(e,n){t.deregisterGroupedErrors(e,n)},this.testHookSetShowMaskedFlag=function(e){t.model.showMaskedValues=e},this.testHookGetRenderer=function(){return t.view},this.testHookUpdateView=function(e){t.updateView(e)},this.testHookSetFocusTarget=function(e){t.focusTarget=e},this.eventHub=e.eventHub,this.displaySettings=e.displaySettings,this.model=e.model,this.view=e.view,this.userContext=e.userContext,this.userContextIn=e.userContextIn,this.returnOptions=e.returnOptions,this.eventHandler=e.eventHandler,this.displayOptions=e.displayOptions,this.callbacks=e.callbacks,this.telemetryOptions=e.telemetryOptions,this.externalPrivateEventHandler=e.externalPrivateEventHandler,this.oneDSService=e.oneDSService,this.transformers=e.transformers,this.pidlPayload=e.pidlPayload,this.localDataSourceProviders=e.localDataSourceProviders,this.controlApiMap=e.controlApiMap,e.iFrameMessageHandler&&(this.iFrameMessageHandler=e.iFrameMessageHandler),this.eventHub.addPublicEventHandler((function(e,n){t.publicEventHandler(e,n)})),this.eventHub.addPrivateEventHandler((function(e,n){t.privateEventHandler(e,n)})),this.view.initialize(this.eventHub,this.model,this.displaySettings,this),this.model.setViewHandler(this.view)}return e.prototype.getPidlInstanceControls=function(){return this.view.getPidlInstanceControls()},e}(),Wo=function(){var e=this;this.env="prod",this.envs=["int","ppe","prod","feature","aircapi"],this.get=function(){return e.env},this.set=function(t){var n=Hr.toLowerCase(t);Hr.contains(e.envs,n)&&(e.env=n,Br.setEnv(e.env))},this.getAll=function(){return e.envs}},Uo=new Wo,Ko=new function(){this.get=function(){return"2.9.0"}},jo=function(){var e=this;this.applicationInsightsInstance=null,this.cvPlugin=null,this.cvInstance=null,this.cvInitialValue=null,this.userConsentDetailsCallback=function(){return{Advertising:!1,Analytics:!1,Required:!0,SocialMedia:!1}},this.initOneDsObjects=function(){if(!e.applicationInsightsInstance)try{e.cvPlugin||e.initCVPlugin(),hn.getOneDSService()&&(e.applicationInsightsInstance=hn.getOneDSService().getApplicationInsights());var t={instrumentationKey:"4127950a47f84a01a75e9a7d49d79f14-b56cc96f-0faa-4455-912a-6b8df93eeac5-6769",extensions:[e.cvPlugin],extensionConfig:[],propertyConfiguration:{gpcDataSharingOptIn:!1,callback:{userConsentDetails:e.userConsentDetailsCallback}}};e.applicationInsightsInstance&&Hr.isFunction(e.applicationInsightsInstance.initialize)&&e.applicationInsightsInstance.initialize(t,[])}catch(n){hn.getLoggingService()&&hn.getLoggingService().logError("1DS Error : Error when attempting to initialize 1DS.",n)}},this.initCVPlugin=function(){if(!e.cvPlugin){hn.getOneDSService()&&(e.cvPlugin=hn.getOneDSService().getCorrelationVectorPlugin(e.cvInitialValue));var t=void 0;e.cvPlugin&&Hr.isFunction(e.cvPlugin.getCv)&&(t=e.cvPlugin.getCv()),t&&Hr.isFunction(t.isInit)&&t.isInit()?e.cvInstance=t:(hn.getOneDSService()&&(e.cvPlugin=hn.getOneDSService().getCorrelationVectorPlugin()),e.cvPlugin&&Hr.isFunction(e.cvPlugin.getCv)&&(e.cvInstance=e.cvPlugin&&e.cvPlugin.getCv()))}},this.getCVInstance=function(){return e.cvInstance||e.initCVPlugin(),e.cvInstance},this.reset=function(){e.cvPlugin=null,e.cvInstance=null,e.applicationInsightsInstance=null},this.setUserConsentDetailsCallback=function(t){t&&(e.userConsentDetailsCallback=t)},this.getApplicationInsights=function(){return e.applicationInsightsInstance||e.initOneDsObjects(),e.applicationInsightsInstance},this.writeEvent=function(t,n,r){try{var o=e.getApplicationInsights();o&&Hr.isFunction(o.trackEvent)?o.trackEvent({name:t,baseData:n},r):hn.getLoggingService()&&hn.getLoggingService().logError("1DS Error : ApplicationInsights is not correctly initialized")}catch(i){hn.getLoggingService()&&hn.getLoggingService().logError("1DS Error : Error when attempting to track event with 1DS.",i)}},this.getIncrementedCV=function(){try{var t=e.getCVInstance();return t&&Hr.isFunction(t.increment)&&t.increment()}catch(n){hn.getLoggingService()&&hn.getLoggingService().logError("1DS Error : There was an issue with incrementing the correlation vector",n)}},this.getCVValue=function(){try{var t=e.getCVInstance();return t&&Hr.isFunction(t.getValue)&&t.getValue()}catch(n){hn.getLoggingService()&&hn.getLoggingService().logError("1DS Error : There is an issue with correlation vector getValue function",n)}},this.initCV=function(t){try{t&&(e.cvInitialValue=t,e.reset())}catch(n){hn.getLoggingService()&&hn.getLoggingService().logError("1DS Error : There is an issue with Initializing CV",n)}},this.testHookReset=function(){e.applicationInsightsInstance=null,e.cvInstance=null}},Go=new jo,qo=function(e,t){var n=this;this.partnerContext={},this.enableLogging=!0,this.enableConsoleLogging=!0,this.enablePrivateEventConsoleLogging=!1,this.enableUnhandledRejectionLogging=!0,this.sdkVersion=Ko.get(),this.env=Uo.get(),this.sessionId=Nr.guid(),this.telemetryResource={resourceType:"",parameters:{id:null}},this.userConsentDetailsCallback=null,this.updateResourceInfo=function(e){var t;if(e){if(e.parameters)for(var r in e.parameters)try{e.parameters.hasOwnProperty(r)&&(n.telemetryResource.parameters=v(v({},n.telemetryResource.parameters),((t={})[r]=e.parameters[r],t)))}catch(o){}e.id&&(n.telemetryResource.parameters.id=e.id),e.resourceType&&(n.telemetryResource.resourceType=e.resourceType)}},this.update=function(e,t){n.operationType=e,t&&n.updateResourceInfo(t)},this.trackNewOperation=function(e,t){n.operationId=Nr.guid(),n.update(e,t)},e&&(this.partnerContext=e.contextData||{},this.enableLogging=!e.disableLogging,this.enableConsoleLogging=!e.disableConsoleLogging,this.enablePrivateEventConsoleLogging=!!e.enablePrivateEventConsoleLogging,this.enableUnhandledRejectionLogging=!e.disableUnhandledRejectionLogging,this.telemetryOverrides=e.overrides,this.customTelemetryFrameworkWindowNamespace=e.customTelemetryFrameworkWindowNamespace,this.partnerContext&&this.partnerContext.cvInitValue&&Go&&Go.initCV(this.partnerContext.cvInitValue),e.userConsentDetailsCallback&&(this.userConsentDetailsCallback=e.userConsentDetailsCallback),Go.setUserConsentDetailsCallback(this.userConsentDetailsCallback));var r=this.partnerContext,o=r.sessionId,i=r.cvInitValue;!o&&i&&(o=i.substr(0,i.indexOf(".")),this.partnerContext.sessionId=o),!o&&this.sessionId&&(this.partnerContext.sessionId=this.sessionId),this.sdkViewType=t},Yo=function(){function e(){}return e.prototype.logError=function(e,t){var n="";if(t)try{n=JSON.stringify(t)}catch(o){n=""}var r=e+"= "+n;console.error(r)},e.prototype.logWarning=function(e){console.warn(e)},e.prototype.logMessage=function(e){console.log(e)},e}(),Zo=function(){var e=this;this.createUserDataPropertyValue=function(e,t,n,r,o){if(t.indexedOn&&t.possible_values){var i=n.getPropertyValue(t.indexedOn,!1);if(i&&t.possible_values[i])return t.possible_values[i]}var a=n.getPropertyValue(pn.getDisplayPropertyName(t,e),r,o);return a=void 0===a?Nr.getFormatStringExpressionValue(t.default_value,{modelData:n}):a,t.type===xe.bool&&(a=Hr.boolify(a)),a},this.createUserSecureInputDataInternal=function(t,n,r,o,i,a,s){var l=t.data_description,c=[];for(var d in l){var u=l[d];if(Ft(u)){var p=u&&u.length&&u[0];if(p){var m=e.createUserSecureInputDataInternal(p,n,r,o,i,a,s);c.push(m)}}else{var h=n.getModelDataProperty(d);if(h&&h.modelElement&&h.modelElement.isSecureProperty()){u.token_set&&u.token_set.startsWith(Ge.tokenizationValuePrefix)&&(u.token_set=u.token_set.replace(Ge.tokenizationValuePrefix,""));var f=h.modelElement.prepareForSubmit(u.token_set).then((function(e){var t=l[e.propertyName];t.token_set=Ge.tokenizationValuePrefix+t.token_set,i[e.propertyName]=e.value}));c.push(f)}}}return Promise.all(c).then((function(){}))},this.createUserInputDataInternal=function(t,n,r,o,i,a){var s,l={},c=t.data_description;for(var d in c){var u=c[d];if(Ft(u)){var p=u&&u.length&&u[0];p&&(l[d]=e.createUserInputDataInternal(p,n,r,o,i,a))}else{if(u.displayOnly&&!a||o===ut.update&&!u.is_updatable)continue;if(u.type===xe.hidden){l[d]||(r[d]?l[d]=r[d]:l[d]=Nr.getFormatStringExpressionValue(u.default_value,{modelData:n}));continue}var m=e.createUserDataPropertyValue(d,u,n,i,a);m&&(i&&u.type===xe.returnObject?(Hr.isObject(m)||((s={})[d]=m,m=s),l=Nr.extend({},l,m)):l[d]=e.getValueInDataType(m,i,u))}}return l},this.getValueInDataType=function(e,t,n){if(t){if(n.type===xe.number){var r=Number(e);return isNaN(r)?e:r}if(n.type===xe.bool){if(!Hr.isBool(e))return Hr.equalsIgnoreCase(e,"true")}else if(n.type===xe.object&&!Hr.isObject(e))try{return JSON.parse(e)}catch(o){return e}}return e},this.canSubmitUserInputDataInternal=function(t,n,r){var o=t.data_description;for(var i in o){var a=o[i];if(Ft(a)){var s=a&&a.length&&a[0];if(s&&(e.canSubmitUserInputDataInternal(s,n?n[i]:n,r),r.canSubmit))return}else if(a.propertyType===Pe.userData&&(r.noUserInputData=!1,!a.is_optional||n&&n[i]))return void(r.canSubmit=!0)}},this.createUserInputData=function(t,n,r,o,i,a){return e.createUserInputDataInternal(t,n,r,o,i,a)},this.createUserSecureInputData=function(t,n,r,o,i,a){var s={};return e.createUserSecureInputDataInternal(t,n,r,o,s,i,a).then((function(){return s}))},this.canSubmitUserInputData=function(t,n){var r={canSubmit:!1,noUserInputData:!0};return e.canSubmitUserInputDataInternal(t,n,r),r.canSubmit||r.noUserInputData}},Jo=new Zo,Qo=function(){var e=this;this.setPropertyValueOfInputData=function(t,n,r){for(var o in t){if(o===n){t[o]=r;break}Hr.isObject(t[o])&&e.setPropertyValueOfInputData(t[o],n,r)}},this.checkForValidTransformationTarget=function(e,t){var n=e.transformation,r=void 0===n?{}:n;return t===P.forSubmit&&Hr.boolify(r.forSubmit)||t===P.forDisplay&&Hr.boolify(r.forDisplay)},this.transformUserInputDataFromService=function(e,t,n,r,o,i,a,s,l){var c={value:o,pidlIdentity:t.identity,propertyName:n,transformationTarget:r},d=io.getDefaultHttpHeaders(e);d[ee.msFlight]="pxpidl",io.post(e,!0,It.buildUrl(Br.getServiceEndpoint(Br.virtualEndpoints.transformation.endpoint),[i]),d,JSON.stringify(c),(function(e){var t;t=Hr.equalsIgnoreCase(e.status,E.Passed)?{status:E.Passed,transformedValue:e.transformedValue}:{status:E.Fail,errorCode:e.errorCode,errorMessage:e.errorMessage},s(t)}),(function(e){s({status:E.Error,mode:mt.service,errorMessage:e.errorMessage})}),a,Br.virtualEndpoints.transformation.operation,Br.virtualEndpoints.transformation.description,!0,l).catch(Vr)},this.transformPropertyInternal=function(t,n,r,o,i,a,s,l){var c=!1,d=n.data_description,u=function(u){var p=d[u];if(Ft(p)){var m=p.length&&p[0];m&&(c=e.transformPropertyInternal(t,m,r,o,i,a,(function(e){s(e)}),l)||c)}else if(u===r){var h=pn.getPropertyValueFromInputData(o,u);if(e.transformPropertyFromPropertyDescription(t,n,u,p,i,h,a,(function(t){t.status===E.Passed&&(e.setPropertyValueOfInputData(o,u,t.transformedValue),l()),t.status!==E.Error&&t.status!==E.Fail||s(new Error(t.errorMessage))})),e.checkForValidTransformationTarget(p,i))return{value:!0}}};for(var p in d){var m=u(p);if("object"===typeof m)return m.value}return c},this.transformUserInputDataInternal=function(t,n,r,o,i,a,s,l){var c=n.data_description,d=0,u=!1,p=l?r:c,m=function(p){var m=c[p];if(Ft(m)){var h=m&&m.length&&m[0];h&&(d++,u=e.transformUserInputDataInternal(t,h,r[p],o,(function(e){i(e)}),(function(){0===--d&&u&&a&&a()}),s,l)||u)}else{if(s===ut.update&&!m.is_updatable)return"continue";var f=pn.getPropertyValueFromInputData(r,p);if(!f){if(m.displayOnly||l)return"continue";m.is_optional||i(new Error(p+" is a required property per the pidlDocument but is missing in the userInputData object passed in."))}(u=e.transformPropertyFromPropertyDescription(t,n,p,m,o,f,s,(function(t){t.status===E.Passed&&e.setPropertyValueOfInputData(r,p,t.transformedValue),t.status!==E.Error&&t.status!==E.Fail||i(new Error(t.errorMessage)),t.mode===mt.service&&0===--d&&a&&a()})))&&d++}};for(var h in p)m(h);return 0===d&&a&&a(),d>0},this.transformPropertyFromPropertyDescription=function(t,n,r,o,i,a,s,l){var c,d={},u=!1;if(!a)return!1;if(o.transformation){var p=null;if(i===P.forSubmit){if(!o.transformation.forSubmit)return l(d),u;p=o.transformation.forSubmit}else{if(i!==P.forDisplay)throw new Error(r+"has invalid transformation type.");if(!o.transformation.forDisplay)return l(d),u;p=o.transformation.forDisplay}var m=p.inputregex,h=p.transformregex;if(m){if(h){var f=new RegExp(m),g=a.replace(f,h);d={status:E.Passed,transformedValue:JSON.parse('"'+g+'"')}}d.mode=mt.regex}else p.url&&(u=!0,e.transformUserInputDataFromService(t,n,r,i,a,p.url,s,(function(e){(d=e).mode=mt.service,l(d)}),null===(c=null===o||void 0===o?void 0:o.dataProtection)||void 0===c?void 0:c.fetchConfig))}return u||l(d),u},this.getUserDisplayDataPartial=function(t,n,r,o,i,a){var s=Hr.deepCopy(r);e.transformUserInputDataInternal(t,n,s,P.forDisplay,o,(function(){i(s)}),a,!0)},this.transformUserInputData=function(t,n,r,o,i,a){e.transformUserInputDataInternal(t,n,r,P.forSubmit,o,i,a)},this.transformUserInputPropertyForDisplay=function(t,n,r,o,i,a,s){e.transformPropertyInternal(t,n,r,o,P.forDisplay,i,a,s)||a(Error("The property with property Name:"+r+" does not have valid display transform in data description"))}},Xo=new Qo,$o=function(){function e(){var e=this;this.getParentOfProperty=function(t,n){for(var r in n){if(r===t)return n;if(Hr.isObject(n[r])){var o=e.getParentOfProperty(t,n[r]);if(o)return o}}},this.areIdentitiesEqual=function(e,t){if(!e||!t)return!1;if(Hr.keyCount(e)!==Hr.keyCount(t))return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0},this.resolveInfoDescriptionId=function(t,n){return e.invoke((function(e){try{var r=dn.resolveInfoDescriptionId(t,n);e.resolve(r)}catch(o){e.reject(o)}}))},this.getFirstPidlWithValidDefaultKey=function(e,t){return dn.getFirstPidlWithValidDefaultKey(e,t)},this.createUserInputData=function(e,t,n,r,o,i){return Jo.createUserInputData(e,t,n,r,o,i)},this.createUserSecureInputData=function(e,t,n,r,o,i){return Jo.createUserSecureInputData(e,t,n,r,o,i)}}return e.prototype.invoke=function(e){return new Promise((function(t,n){e({resolve:t,reject:n})}))},e.prototype.getUserDisplayDataPartial=function(e,t,n,r){return this.invoke((function(o){try{var i=t.getResolvedOrAllPidlDocs(),a=pn.getFirstResolvedPidlDocument(i,n);null==a&&(a=i[0]),Xo.getUserDisplayDataPartial(e,a,n,(function(e){o.reject(e)}),(function(e){o.resolve(e)}),r)}catch(s){o.reject(s)}}))},e.prototype.transformUserInputData=function(e,t,n,r){return this.invoke((function(o){try{Xo.transformUserInputData(t,e,n,(function(e){o.reject(e)}),(function(){o.resolve()}),r)}catch(i){o.reject(i)}}))},e.prototype.transformUserInputPropertyForDisplay=function(e,t,n,r,o){var i=this;return this.invoke((function(a){var s=!1;t.propertyTransforming(n);try{var l=i.getParentOfProperty(n,r),c={};c[n]=l[n];var d=pn.getFirstResolvedPidlDocument(e,r);null==d&&(d=e[0]),Xo.transformUserInputPropertyForDisplay(t,d,n,c,o,(function(e){s=!0,a.reject(e)}),(function(){t.propertyTransformed(n),l[n]=c[n],a.resolve()})),s||(t.propertyTransformed(n),l[n]=c[n],a.resolve())}catch(u){a.reject(u)}}))},e.prototype.canSubmitUserInputData=function(e,t){return Jo.canSubmitUserInputData(e,t)},e.prototype.getPidlSubmitOrder=function(e){return dn.getPidlSubmitOrder(e)},e}();function ei(e,t){return io.get(e,t.url,t.headers,t.pidlOperation,t.virtualEndpoint.operation,t.virtualEndpoint.description,t.fetchConfig)}var ti=function(){function e(){}return e.prototype.getPidlDocument=function(e,t,n){return n?new Promise((function(e,r){n(t,(function(t){e(t)}),(function(e){r(e)}))})):ei(e,t)},e.prototype.getInstance=function(e,t){return e.instanceDownloading(t.url),ei(e,t)},e.prototype.submitPidlDocument=function(e,t,n,r){return e.inputSubmitting(t.url),new Promise((function(o,i){io.invokeFetch(e,!0,t.method,t.url,t.headers,t.method.toUpperCase()===we.Get||t.method.toUpperCase()===we.Delete?null:JSON.stringify(t.data),(function(n){r&&(n=r(t,n));var i="None";!Hr.isString(n)&&Ot(n)&&n.clientAction&&(i=n.clientAction.type),e.inputSubmitted(i),o(n)}),(function(e){i(e)}),n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(o)}))},e.prototype.invokeRestMethod=function(e,t,n){return new Promise((function(r,o){io.invokeFetch(e,!0,t.method,t.url,t.headers,t.data,(function(e){r(e)}),(function(e){o(e)}),n,t.virtualEndpoint.operation,t.virtualEndpoint.description).catch(r)}))},e.prototype.getRequestInstance=function(e,t,n,r,o){var i=It.getResourceUrl(t,n);return{url:i.url,headers:io.getHttpHeaders(e,n,null,i.template,null),virtualEndpoint:i.virtualEndpoint,pidlOperation:r,fetchConfig:o}},e}(),ni=function(){function e(){this.cache=null,this.cache=new co}return e.prototype.put=function(e,t,n,r){var o={pidlDocInfo:t,pidls:n,resolvedPidlIdentity:r};this.cache.put(e,o)},e.prototype.get=function(e){return this.cache.get(e)},e.prototype.remove=function(e){this.cache.remove(e)},e.prototype.removeResourceEntries=function(e){this.cache.removeIf((function(t){return t&&t.pidlDocInfo&&Hr.equalsIgnoreCase(t.pidlDocInfo.resourceType,e)}))},e}(),ri=function(){function e(){}return e.prototype.redirect=function(e){window.location.replace(e),window.location.href=e},e.prototype.openInNewTab=function(e){return!(!window||!window.open)&&(window.open(e),!0)},e}(),oi=function(){function e(e,t,n,r,o,i,a,s,l,c,d){var u=this;this.controlApiMap={},this.getInstanceControls=function(){var e=v({},u.viewEventHandler.getPidlInstanceControls());return e[u.displaySettings.instanceName]={moveNextPage:function(){return!!u.moveNextPage&&u.moveNextPage().result},submitPage:function(){return!!u.submitPage&&u.submitPage().result},validateProperties:function(){return u.validateProperties?u.validateProperties().result:Wr(!1)},movePrevPage:function(){return!!u.movePrevPage&&u.movePrevPage().result},moveToFirstPage:function(){return!!u.moveToFirstPage&&u.moveToFirstPage().result},cancel:function(){return!!u.cancel&&u.cancel().result},getSelectedResource:function(){return u.getSelectedResource?u.getSelectedResource().result:{}},getPidlPayload:function(){return u.getPidlPayload?u.returnUserInputData():Wr()},postMessageToChildIFrames:function(e){return!!u.postMessageToChildIFrames&&u.postMessageToChildIFrames(e).result}},u.apiSuccess(e,Wr())},this.addSecureFieldPreLoadIFrame=function(){try{if("undefined"===typeof document)return;u.eventHub.addSecureFieldPreLoadIFrameStarted();var e="secureFieldIFrame",t=It.buildUrl(Br.getServiceEndpoint(Br.virtualEndpoints.securePx.endpoint),["resources","securefield.html"]),n=document.createElement("iframe");n.id=e,n.name="preloadSecureFieldIFrame",n.style.display="none",n.setAttribute("sandbox",""),n.src=t;var r=document.getElementById(e);r?r.src=t:document.body&&document.body.appendChild(n),u.eventHub.addSecureFieldPreLoadIFrameCompleted()}catch(o){u.eventHub.addSecureFieldPreLoadIFrameFailed(Nr.convertErrorToString(o))}},this.logConstructorCall=function(e,t,n,r,o){var i={userContext:Hr.boolify(e),returnOptions:Hr.boolify(t),eventHandler:Hr.boolify(n),displayOptions:Hr.boolify(r),telemetryOptions:Hr.boolify(o)},a={returnOptions:t,displayOptions:r,telemetryOptions:o};u.eventHub.apiCalled(Ce.constructor,i,a)},this.unhandledRejectionHandler=function(e){var t=e.reason&&e.reason.stack;t&&u.eventHub.error(new sn.unexpectedError(ln.unhandledRejection,[t]))},this.handlePrivateEvent=function(e,t){try{switch(e){case K.stateChanged:t&&t.newState===fe.initialized&&u.telemetryContext.enableUnhandledRejectionLogging&&window.addEventListener("unhandledrejection",u.unhandledRejectionHandler);break;case K.failure:case K.success:case K.gohome:u.telemetryContext.enableUnhandledRejectionLogging&&window.removeEventListener("unhandledrejection",u.unhandledRejectionHandler)}}catch(n){}},this.canApiStart=function(e){var t=u.stateManager.canApiStart(e);return!!t.result||(u.eventHub.error(t.error),!1)},this.getChallengePidlInfo=function(e){var t={resourceType:"Challenge",parameters:Hr.deepCopy(e.piResourceInfo.parameters)};return t.parameters.piid=e.piResourceInfo.id,t.parameters.sessionId=e.sessionId,t.parameters.orderId=e.orderId,t},this.provisionWalletToken=function(e,t){var n={piFamily:null===t||void 0===t?void 0:t.family,piType:null===t||void 0===t?void 0:t.type,tokenReference:null===t||void 0===t?void 0:t.tokenReference,sessionData:e,paymentData:null===t||void 0===t?void 0:t.paymentData};return new Promise((function(e,t){var r,o={resourceType:_.WalletToken,parameters:{}},i=Ut.getResourceEndpoint(o.resourceType),a=null===(r=It.getResourceUrl(o,u.userContext))||void 0===r?void 0:r.url;try{return io.post(u.eventHub,!0,a,io.getHttpHeaders(u.eventHub,u.userContext,void 0,i.template),JSON.stringify(n),(function(t){return e(t)}),(function(e){return t(e)}),ut.provisionWalletToken,i.operation,i.description,!0)}catch(s){t(s)}}))},this.handlePaymentAgentChallenge=function(e,t,n,r){var o,i;if(!(null===(i=null===(o=null===window||void 0===window?void 0:window.paymentAgent)||void 0===o?void 0:o.isReadyToPay)||void 0===i?void 0:i.call(o))){var a=new sn.invalidSetupError(ln.invalidSetup);return u.eventHub.failure(a),u.apiFailure(!1)}var s=window.paymentAgent.handleChallenge(e,r).then((function(r){return r.tokenReference?u.provisionWalletToken(e,r).then((function(r){return n&&(n.current.style.display="flex",n.current.attributes["aria-hidden"]="false"),t.parameters.paymentSessionOrData=v(v({},e),r),u.renderPidlPageInternal(t)})):u.renderPidlPageInternal(t)})).catch((function(e){if("cancel"===(null===e||void 0===e?void 0:e.type)||"AbortError"===(null===e||void 0===e?void 0:e.name)||"CANCELED"===(null===e||void 0===e?void 0:e.statusCode))return u.model.gohome(),Wr();var t={error:e,stack:null===e||void 0===e?void 0:e.stack,message:null===e||void 0===e?void 0:e.message},n=void 0;return n="failed to open window"===e?new sn.failedToOpenWindowError(ln.failedToOpenWindow,JSON.stringify(t)):new sn.paymentMethodFailureError(ln.paymentMethodFailure,JSON.stringify(t)),u.eventHub.failure(n),u.apiFailure(n)}));return u.apiSuccess(!0,s)},this.invokeResourceAction=function(e){if(u.telemetryContext.trackNewOperation(L.invokeResourceAction),u.eventHub.apiCalled(Ce.invokeResourceAction),!u.canApiStart(Ce.invokeResourceAction)||!e||!so.validateResourceActionParams(u.eventHub,e))return u.eventHub.apiReturned(Ce.invokeResourceAction,!1),u.apiFailure(!1);var t=e.resourceActionContext,n={result:null,promise:Wr(null)};switch(t.action){case W.addResource:case W.addAddress:u.telemetryContext.update(L.add,t.pidlDocInfo),n=u.addResourceInternal(ut.add,t.pidlDocInfo,e.prefillData,e.options);break;case W.collectResourceInfo:u.telemetryContext.update(L.renderPidlPage,t.pidlDocInfo),n=u.renderPidlPageInternal(t.pidlDocInfo,e.options);break;case W.handleChallenge:u.telemetryContext.update(L.verify,t.resourceInfo),n=u.handleChallengeInternal(t.resourceInfo,e.options);break;case W.selectPaymentInstrument:case W.selectResource:u.telemetryContext.update(L.selectResource,t.pidlDocInfo),n=u.selectInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case W.selectResourceType:u.telemetryContext.update(L.selectResourceType,t.pidlDocInfo),n=u.selectResourceTypeInternal(t.pidlDocInfo,e.options);break;case W.selectSingleResource:u.telemetryContext.update(L.selectSingleResource,t.pidlDocInfo),n=u.selectSingleInstanceInternal(t.pidlDocInfo,e.options,t,e.selectedResourceInfo);break;case W.updateProfile:case W.updateResource:u.telemetryContext.update(L.update,t.pidlDocInfo||t.resourceInfo),n=u.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options);break;case W.deleteResource:u.telemetryContext.update(L.delete,t.pidlDocInfo||t.resourceInfo),n=u.updateOrDeleteResourceInternal(t.resourceInfo,t.resource,t.pidlDocInfo,e.options,ut.delete);break;case W.searchTransactions:u.telemetryContext.update(L.searchTransactions,t.pidlDocInfo),n=u.addResourceInternal(ut.searchTransactions,t.pidlDocInfo,void 0,e.options)}return u.eventHub.apiReturned(Ce.invokeResourceAction,Hr.boolify(n.result),n.promise),n},this.addResourceInternal=function(e,t,n,r){if(!so.validatePidlDocInfo(u.eventHub,t)||!so.validateAddUpdateOrDeleteOptions(u.eventHub,r))return u.apiFailure(!1);u.displaySettings.secureFieldPreLoadingEnabled&&u.addSecureFieldPreLoadIFrame();var o=It.getPidlDocUrl(u.userContext,e,t);return u.apiSuccess(!0,u.getPidl(o,n,e,r,t))},this.addResource=function(e,t,n){if(u.telemetryContext.trackNewOperation(L.add,e),u.eventHub.apiCalled(Ce.addResource,{pidlDocInfo:Hr.boolify(e),prefillData:Hr.boolify(t),options:Hr.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(Ce.addResource))return u.eventHub.apiReturned(Ce.addResource,!1),u.apiFailure(!1);var r=u.addResourceInternal(ut.add,e,t,n);return u.eventHub.apiReturned(Ce.addResource,r.result,r.promise),r},this.msRewardsInternal=function(e,t){if(!so.validatePidlDocInfo(u.eventHub,t))return u.apiFailure(!1);var n=It.getPidlDocUrl(u.userContext,e,t);return u.apiSuccess(!0,u.getPidl(n,{},e,{},t))},this.redeemMSRewards=function(e){if(u.telemetryContext.trackNewOperation(L.redeemMSRewards,e),u.eventHub.apiCalled(Ce.redeemMSRewards,{pidlDocInfo:Hr.boolify(e)},{pidlDocInfo:e}),!u.canApiStart(Ce.redeemMSRewards))return u.eventHub.apiReturned(Ce.redeemMSRewards,!1),u.apiFailure(!1);var t=u.msRewardsInternal(ut.redeem,e);return u.eventHub.apiReturned(Ce.redeemMSRewards,t.result,t.promise),t},this.selectMSRewards=function(e){if(u.telemetryContext.trackNewOperation(L.selectMSRewards,e),u.eventHub.apiCalled(Ce.selectMSRewards,{pidlDocInfo:Hr.boolify(e)},{pidlDocInfo:e}),!u.canApiStart(Ce.selectMSRewards))return u.eventHub.apiReturned(Ce.selectMSRewards,!1),u.apiFailure(!1);var t=u.msRewardsInternal(ut.select,e);return u.eventHub.apiReturned(Ce.selectMSRewards,t.result,t.promise),t},this.searchTransactions=function(e){var t=e.pidlDocInfo,n=e.options;if(u.telemetryContext.trackNewOperation(L.searchTransactions,t),u.eventHub.apiCalled(Ce.searchTransactions,{pidlDocInfo:Hr.boolify(t),options:Hr.boolify(n)},{pidlDocInfo:t}),!u.canApiStart(Ce.searchTransactions))return u.eventHub.apiReturned(Ce.searchTransactions,!1),u.apiFailure(!1);var r=u.addResourceInternal(ut.searchTransactions,t,void 0,n);return u.eventHub.apiReturned(Ce.searchTransactions,r.result,r.promise),r},this.addPaymentInstrument=function(e,t,n){var r,o=v(v({},e),{resourceType:(null===e||void 0===e?void 0:e.resourceType)?null===(r=null===e||void 0===e?void 0:e.resourceType)||void 0===r?void 0:r.toString():"PaymentInstrument"});if(u.telemetryContext.trackNewOperation(L.addPaymentInstrument,o),u.eventHub.apiCalled(Ce.addPaymentInstrument,{pidlDocInfo:Hr.boolify(o),prefillData:Hr.boolify(t),options:Hr.boolify(n)},{pidlDocInfo:o}),!u.canApiStart(Ce.addPaymentInstrument))return u.eventHub.apiReturned(Ce.addPaymentInstrument,!1),u.apiFailure(!1);var i=u.addResourceInternal(ut.add,o,t,n);return u.eventHub.apiReturned(Ce.addPaymentInstrument,i.result,i.promise),i},this.applyResource=function(e,t,n){if(u.telemetryContext.trackNewOperation(L.applyResource,e),u.eventHub.apiCalled(Ce.applyResource,{pidlDocInfo:Hr.boolify(e),prefillData:Hr.boolify(t),options:Hr.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(Ce.applyResource))return u.eventHub.apiReturned(Ce.applyResource,!1),u.apiFailure(!1);var r=u.addResourceInternal(ut.apply,e,t,n);return u.eventHub.apiReturned(Ce.applyResource,r.result,r.promise),r},this.replaceResource=function(e,t,n){if(u.telemetryContext.trackNewOperation(L.replace,e),u.eventHub.apiCalled(Ce.replaceResource,{pidlDocInfo:Hr.boolify(e),prefillData:Hr.boolify(t),options:Hr.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(Ce.replaceResource))return u.eventHub.apiReturned(Ce.replaceResource,!1),u.apiFailure(!1);var r=u.addResourceInternal(ut.replace,e,t,n);return u.eventHub.apiReturned(Ce.replaceResource,r.result,r.promise),r},this.addAddress=function(e,t,n){var r=v(v({},e),{resourceType:"Address"});if(u.telemetryContext.trackNewOperation(L.addAddress,r),u.eventHub.apiCalled(Ce.addAddress,{pidlDocInfo:Hr.boolify(r),prefillData:Hr.boolify(t),options:Hr.boolify(n)},{pidlDocInfo:r}),!u.canApiStart(Ce.addAddress))return u.eventHub.apiReturned(Ce.addAddress,!1),u.apiFailure(!1);var o=u.addResourceInternal(ut.add,r,t,n);return u.eventHub.apiReturned(Ce.addAddress,o.result,o.promise),o},this.validateAddress=function(e){var t=v(v({},e),{resourceType:"Address"});return u.validateResource(t)},this.handleCheckout=function(e){var t=e||{},n=t.checkoutId,r=t.partner,o=t.redirectUrl,i=t.paymentProviderId,a=t.language,s=t.market,l={resourceType:_.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:i,language:a,market:s},anonymousPidl:e.anonymousUser};if(u.telemetryContext.trackNewOperation(L.handleCheckout,l),u.eventHub.apiCalled(Ce.handleCheckout,{checkoutParams:Hr.boolify(e)},{}),!u.canApiStart(Ce.handleCheckout)||!so.validateCheckoutParams(u.eventHub,e))return u.eventHub.apiReturned(Ce.handlePaymentChallenge,!1),u.apiFailure(!1);var c={resourceType:_.Checkout,parameters:{partner:r,checkoutId:n,redirectUrl:o,paymentProviderId:i,language:a,market:s},anonymousPidl:e.anonymousUser},d=u.renderPidlPageInternal(c);return u.eventHub.apiReturned(Ce.handleCheckout,d.result,d.promise),d},this.getPayeeTaxProfile=function(e){var t=e||{},n=t.section,r=t.tenant,o=t.sapidind,i=t.status,a=t.accounttype,s=t.payfromcc,l=t.residencecc,c=t.language,d={resourceType:_.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:i,accounttype:a,payfromcc:s,residencecc:l,language:c}};if(u.telemetryContext.trackNewOperation(L.getPayeeTaxProfile,d),u.eventHub.apiCalled(Ce.getPayeeTaxProfile,{payeeTaxProfileParams:Hr.boolify(e)},{}),!u.canApiStart(Ce.getPayeeTaxProfile)||!so.validatePayeeTaxProfileParams(u.eventHub,e))return u.eventHub.apiReturned(Ce.getPayeeTaxProfile,!1),u.apiFailure(!1);var p={resourceType:_.PayeeTaxProfile,parameters:{section:n,tenant:r,sapidind:o,status:i,accounttype:a,payfromcc:s,residencecc:l,language:c}},m=u.renderPidlPageInternal(p);return u.eventHub.apiReturned(Ce.getPayeeTaxProfile,m.result,m.promise),m},this.createPaymentSession=function(e){var t=e||{},n=t.partner,r=void 0===n?null:n,o=t.country,i=void 0===o?null:o,a=t.language,s=void 0===a?null:a,l={resourceType:_.PaymentSession,parameters:{partner:r,market:i,language:s,paymentSessionData:e}};if(u.telemetryContext.trackNewOperation(L.createPaymentSession,l),u.eventHub.apiCalled(Ce.createPaymentSession,{paymentSessionData:Hr.boolify(e)},{}),!u.canApiStart(Ce.createPaymentSession)||!so.validatePaymentSessionData(u.eventHub,e))return u.eventHub.apiReturned(Ce.createPaymentSession,!1),u.apiFailure(!1);var c={resourceType:_.PaymentSession,parameters:{paymentSessionData:e}};e.billableAccountId&&(c.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(c.parameters.classicProduct=e.classicProduct);var d=u.addResourceInternal(ut.add,c);return u.eventHub.apiReturned(Ce.createPaymentSession,d.result,d.promise),d},this.renderPidlPageInternal=function(e,t){if(!so.validatePidlDocInfo(u.eventHub,e)||!so.validateSelectOrRenderOptions(u.eventHub,t))return u.apiFailure(!1);var n=ut.renderPidlPage,r=It.getPidlDocUrl(u.userContext,n,e);return u.apiSuccess(!0,u.getPidl(r,null,n,t,e))},this.renderPidlPage=function(e,t){if(u.telemetryContext.trackNewOperation(L.renderPidlPage,e),u.eventHub.apiCalled(Ce.renderPidlPage,{pidlDocInfo:Hr.boolify(e),options:Hr.boolify(t)},{pidlDocInfo:e}),!u.canApiStart(Ce.renderPidlPage))return u.eventHub.apiReturned(Ce.renderPidlPage,!1),u.apiFailure(!1);var n=u.renderPidlPageInternal(e,t);return u.eventHub.apiReturned(Ce.renderPidlPage,n.result,n.promise),n},this.handlePaymentChallenge=function(e,t){var n,r,o=e||{},i=o.partner,a=void 0===i?null:i,s=o.country,l=void 0===s?null:s,c=o.language,d=void 0===c?null:c,p={resourceType:_.Challenge,parameters:{partner:a,market:l,language:d,paymentSessionOrData:e,timezoneOffset:(new Date).getTimezoneOffset()}};if(u.telemetryContext.trackNewOperation(L.handlePaymentChallenge,p),u.eventHub.apiCalled(Ce.handlePaymentChallenge,{paymentSessionData:Hr.boolify(e)},{}),!u.canApiStart(Ce.handlePaymentChallenge)||!so.validatePaymentSessionOrData(u.eventHub,e))return u.eventHub.apiReturned(Ce.handlePaymentChallenge,!1),u.apiFailure(!1);var m,h={resourceType:_.Challenge,parameters:{paymentSessionOrData:e,timezoneOffset:(new Date).getTimezoneOffset()}};e.billableAccountId&&(h.parameters.billableAccountId=e.billableAccountId),e.classicProduct&&(h.parameters.classicProduct=e.classicProduct);var f=u.userContext.getHeaders({},"")[ee.msTest]||"",g=Nr.getFlightHeaders(u.userContext);if((null===g||void 0===g?void 0:g.includes(te.enablePaymentAgentChallenge))&&!u.hasCollectedToken(e)&&(null===(r=null===(n=window.paymentAgent)||void 0===n?void 0:n.isPaymentAgentSupportedPI)||void 0===r?void 0:r.call(n,e)))m=u.handlePaymentAgentChallenge(e,h,t,f);else if("cdc85313-9b57-4052-81fb-dea336132cbf"===e.piid||"be4de87d-7e38-4b2d-8836-9237eb32848e"===e.piid){var v=new sn.invalidSetupError(ln.invalidSetup);u.eventHub.failure(v),m=u.apiFailure(!1)}else m=u.renderPidlPageInternal(h);return u.eventHub.apiReturned(Ce.handlePaymentChallenge,m.result,m.promise),m},this.hasCollectedToken=function(e){return e.id&&e.isTokenCollected},this.expressCheckoutInternal=function(e){return u.selectResource(e,null,ut.expressCheckout,u.onDownloadValidateOrSelectResourceType.bind(u))},this.expressCheckout=function(e){if(u.telemetryContext.trackNewOperation(L.expressCheckout,e),u.eventHub.apiCalled(Ce.expressCheckout,{pidlDocInfo:Hr.boolify(e)},{pidlDocInfo:e}),!u.canApiStart(Ce.expressCheckout))return u.eventHub.apiReturned(Ce.expressCheckout,!1),u.apiFailure(null);var t=u.expressCheckoutInternal(e);return u.eventHub.apiReturned(Ce.expressCheckout,Hr.boolify(t.result),t.promise),t},this.handlePurchasePendingState=function(e){if(u.telemetryContext.trackNewOperation(L.handlePurchasePendingState),u.eventHub.apiCalled(Ce.handlePurchasePendingState),!u.canApiStart(Ce.handlePurchasePendingState)||!e||!so.validateHandlePurchasePendingStateParams(u.eventHub,e))return u.eventHub.apiReturned(Ce.handlePurchasePendingState,!1),u.apiFailure(!1);var t=u.getChallengePidlInfo(e),n=u.renderPidlPageInternal(t,e.options);return u.eventHub.apiReturned(Ce.handlePurchasePendingState,!0,n.promise),u.apiSuccess(!0,n.promise)},this.handlePurchaseRiskChallenge=function(e){if(u.telemetryContext.trackNewOperation(L.handlePurchaseRiskChallenge),u.eventHub.apiCalled(Ce.handlePurchaseRiskChallenge),!u.canApiStart(Ce.handlePurchaseRiskChallenge)||!e||!so.validatePurchaseRiskChallengeParams(u.eventHub,e))return u.eventHub.apiReturned(Ce.handlePurchaseRiskChallenge,!1),u.apiFailure(!1);var t=u.getChallengePidlInfo(e);t.parameters.type=e.riskChallengeData[0];var n=u.renderPidlPageInternal(t,e.options);return u.eventHub.apiReturned(Ce.handlePurchaseRiskChallenge,n.result,n.promise),n},this.handleChallengeInternal=function(e,t){if(!so.validateResourceInfo(u.eventHub,e)||!so.validateAddUpdateOrDeleteOptions(u.eventHub,t))return u.apiFailure(!1);var n=ut.add;u.model.operationType=n,u.model.operationOptions=t,u.model.pidlDocManager.setOperationInfo({operationType:n});var r=hn.getPidlService(),o=r.getRequestInstance(u.eventHub,e,u.userContext,n),i=r.getInstance(u.eventHub,o);return u.apiSuccess(!0,i.then((function(t){u.stateManager.setState(fe.executing),u.eventHub.instanceDownloaded();var r=Ut.getPidlDocInfoFromResource(e,t);if(u.telemetryContext.updateResourceInfo(r),t.clientAction)return u.model.handleClientAction(t.clientAction,t);u.eventHub.success({id:t.id,operationType:n,response:t})}),(function(e){var t=Nr.createServerError(ln.resourceInstanceDownloadFailed,o.url,e,[e.errorMessage]);return u.eventHub.failure(t),Ur(t)})))},this.handleChallenge=function(e,t){if(u.telemetryContext.trackNewOperation(L.verify,e),u.eventHub.apiCalled(Ce.handleChallenge,{resourceInfo:Hr.boolify(e),options:Hr.boolify(t)},{resourceInfo:e}),!u.canApiStart(Ce.handleChallenge))return u.eventHub.apiReturned(Ce.handleChallenge,!1),u.apiFailure(!1);var n=u.handleChallengeInternal(e,t);return u.eventHub.apiReturned(Ce.handleChallenge,n.result,n.promise),n},this.updateOrDeleteResourceInternal=function(e,t,n,r,o){if(n&&!so.validatePidlDocInfo(u.eventHub,n)||!so.validateAddUpdateOrDeleteOptions(u.eventHub,r))return u.apiFailure(!1);var i=o||ut.update;u.model.operationType=i,u.model.operationOptions=r,u.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:n}),u.model.pidlDocManager.setOperationInfo({operationType:i});var a=null;if(t)a=u.downloadPidlDocument(It.getPidlDocUrl(u.userContext,i,n),r,(function(){return u.model.populate(t,!0)}),n);else{if(!so.validateResourceInfo(u.eventHub,e))return u.apiFailure(!1);a=u.downloadInstance(e,n,i,r)}return u.apiSuccess(!0,a.then((function(){return u.stateManager.setState(fe.executing)})))},this.updateResource=function(e,t,n,r){if(u.telemetryContext.trackNewOperation(L.update,n||e),u.eventHub.apiCalled(Ce.updateResource,{resourceInfo:Hr.boolify(e),resource:Hr.boolify(t),pidlDocInfo:Hr.boolify(n),options:Hr.boolify(r)},{resourceInfo:e,pidlDocInfo:n}),!u.canApiStart(Ce.updateResource))return u.eventHub.apiReturned(Ce.updateResource,!1),u.apiFailure(!1);var o=u.updateOrDeleteResourceInternal(e,t,n,r);return u.eventHub.apiReturned(Ce.updateResource,o.result,o.promise),o},this.selectResource=function(e,t,n,r,o,i,a){if(!i&&!e||e&&(!so.validatePidlDocInfo(u.eventHub,e)&&!so.validateResourceInfo(u.eventHub,e)||!so.validateSelectOrRenderOptions(u.eventHub,t))||i&&!so.validateHandle(u.eventHub,i)||a&&!so.validateSelectedResourceInfo(u.eventHub,a))return u.apiFailure(null);a&&(a.id||a.backupId)&&((e=e||{}).parameters=e.parameters||{},e.parameters.filters=e.parameters.filters||{},a.id&&(e.parameters.filters.id=a.id),a.backupId&&(e.parameters.filters.backupId=a.backupId));var s=i||Nr.guid();u.model.pidlDocManager.setOperationInfo({handle:s,operationType:n}),u.model.operationType=n,u.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:e});var l=null;return i?l=new Promise((function(e,t){u.model.pidlDocManager.retrievePidlDocFromCache(u.eventHub,s,o).then((function(){r().then(e,(function(e){t(e)}))}),(function(e){u.eventHub.failure(new sn.unexpectedError(e,[])),t()}))})):(u.model.operationOptions=t,Ut.updatePidlDocInfo(e),l=u.downloadPidlDocument(It.getPidlDocUrl(u.userContext,n,e),t,r,e,o)),u.apiSuccess(s,l.then((function(){return u.stateManager.setState(fe.executing)})))},this.selectResourceTypeInternal=function(e,t){return u.selectResource(e,t,ut.select,u.onDownloadValidateOrSelectResourceType.bind(u))},this.selectResourceType=function(e,t){var n,r;u.telemetryContext.trackNewOperation(L.selectResourceType,e);var o=e,i=u.userContext.getHeaders({},"")[ee.msFlight]||"",a=Wr();(null===i||void 0===i?void 0:i.includes(te.enablePaymentAgentChallenge))&&(null===(n=window.paymentAgent)||void 0===n?void 0:n.getInitPromise)&&(a=null!==(r=window.paymentAgent.getInitPromise())&&void 0!==r?r:a);var s=a.then((function(){if((null===i||void 0===i?void 0:i.includes(te.enablePaymentAgentChallenge))&&(o=Nr.verifyClientSupported(e)),u.eventHub.apiCalled(Ce.selectResourceType,{pidlDocInfo:Hr.boolify(o),options:Hr.boolify(t)},{pidlDocInfo:o}),!u.canApiStart(Ce.selectResourceType))return u.eventHub.apiReturned(Ce.selectResourceType,!1),u.apiFailure(null);var n=u.selectResourceTypeInternal(o,t);return u.eventHub.apiReturned(Ce.selectResourceType,Hr.boolify(n.result),n.promise),n}));return u.apiSuccess(null,s)},this.updateProfile=function(e,t,n,r){var o=v(v({},n),{resourceType:"Profile"});if(u.telemetryContext.trackNewOperation(L.updateProfile,o||e),u.eventHub.apiCalled(Ce.updateProfile,{resourceInfo:Hr.boolify(e),resource:Hr.boolify(t),pidlDocInfo:Hr.boolify(o),options:Hr.boolify(r)},{resourceInfo:e,pidlDocInfo:o}),!u.canApiStart(Ce.updateProfile))return u.eventHub.apiReturned(Ce.updateProfile,!1),u.apiFailure(!1);var i=u.updateOrDeleteResourceInternal(e,t,o,r);return u.eventHub.apiReturned(Ce.updateProfile,i.result,i.promise),i},this.selectInstanceInternal=function(e,t,n,r){return u.selectResource(e,t,ut.selectInstance,(function(){return u.onDownloadSelectResource(n&&n.prefillData)}),n&&n.targetIdentity,n&&n.handle,r)},this.selectInstance=function(e,t,n,r){var o,i;u.telemetryContext.trackNewOperation(L.selectResource,e);var a=e,s=u.userContext.getHeaders({},"")[ee.msFlight]||"",l=Wr();(null===s||void 0===s?void 0:s.includes(te.enablePaymentAgentChallenge))&&(null===(o=window.paymentAgent)||void 0===o?void 0:o.getInitPromise)&&(l=null!==(i=window.paymentAgent.getInitPromise())&&void 0!==i?i:l);var c=l.then((function(){if((null===s||void 0===s?void 0:s.includes(te.enablePaymentAgentChallenge))&&(a=Nr.verifyClientSupported(e)),u.eventHub.apiCalled(Ce.selectResource,{pidlDocInfo:Hr.boolify(a),options:Hr.boolify(t),actionContext:Hr.boolify(n)},{pidlDocInfo:a}),!u.canApiStart(Ce.selectResource))return u.eventHub.apiReturned(Ce.selectResource,!1),u.apiFailure(null);var o=u.selectInstanceInternal(a,t,n,r);return u.eventHub.apiReturned(Ce.selectResource,Hr.boolify(o.result),o.promise),o}));return u.apiSuccess(null,c)},this.listAddress=function(e,t,n,r){var o=v(v({},e),{resourceType:"Address"});if(u.telemetryContext.trackNewOperation(L.listAddress,o),u.eventHub.apiCalled(Ce.listAddress,{pidlDocInfo:Hr.boolify(e),options:Hr.boolify(t),actionContext:Hr.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(Ce.listAddress))return u.eventHub.apiReturned(Ce.listAddress,!1),u.apiFailure(null);var i=u.selectInstanceInternal(e,t,n,r);return u.eventHub.apiReturned(Ce.listAddress,Hr.boolify(i.result),i.promise),i},this.selectPaymentInstrument=function(e,t,n,r,o){var i;if(i=v(v({},e),o?{resourceType:e.resourceType}:{resourceType:"PaymentInstrument"}),u.telemetryContext.trackNewOperation(L.selectPaymentInstrument,i),u.eventHub.apiCalled(Ce.selectPaymentInstrument,{pidlDocInfo:Hr.boolify(i),options:Hr.boolify(t),actionContext:Hr.boolify(n)},{pidlDocWithResource:i}),!u.canApiStart(Ce.selectPaymentInstrument))return u.eventHub.apiReturned(Ce.selectPaymentInstrument,!1),u.apiFailure(null);var a=u.selectInstanceInternal(i,t,n,r);return u.eventHub.apiReturned(Ce.selectPaymentInstrument,Hr.boolify(a.result),a.promise),a},this.selectSingleInstanceInternal=function(e,t,n,r){return u.selectResource(e,t,ut.selectSingleInstance,(function(){return u.onDownloadSelectSingleResource(n&&n.handle)}),n&&n.targetIdentity,n&&n.handle,r)},this.selectSingleInstance=function(e,t,n,r){if(u.telemetryContext.trackNewOperation(L.selectSingleResource,e),u.eventHub.apiCalled(Ce.selectSingleResource,{pidlDocInfo:Hr.boolify(e),options:Hr.boolify(t),actionContext:Hr.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(Ce.selectSingleResource))return u.eventHub.apiReturned(Ce.selectSingleResource,!1),u.apiFailure(null);var o=u.selectSingleInstanceInternal(e,t,n,r);return u.eventHub.apiReturned(Ce.selectSingleResource,Hr.boolify(o.result),o.promise),o},this.runApi=function(e,t,n,r,o){if(void 0===n&&(n=function(){return!1}),void 0===r&&(r=function(){return!0}),void 0===o&&(o=function(){}),u.eventHub.apiCalled(e),!u.canApiStart(e)||n())return u.eventHub.apiReturned(e,!1),u.apiFailure(!1);var i=t(),a=r();return u.eventHub.apiReturned(e,Hr.boolify(a),i),u.apiSuccess(a,o()||i)},this.showResource=function(e){u.telemetryContext.trackNewOperation(L.show);var t=e.pidlDocInfo,n=e.prefillData,r=e.options;return u.runApi(Ce.showResource,(function(){var e=ut.show,o=It.getPidlDocUrl(u.userContext,e,t);return u.getPidl(o,n,e,r,t)}),(function(){return!e||!so.validateShowResourceParams(u.eventHub,e)||!so.validatePidlDocInfo(u.eventHub,t)||!so.validateResourceOptions(u.eventHub,r)}))},this.offerResource=function(e){u.telemetryContext.trackNewOperation(L.offer);var t=e.pidlDocInfo;return u.runApi(Ce.offerResource,(function(){var e=ut.offer,n=It.getPidlDocUrl(u.userContext,e,t);return u.getPidl(n,null,e,null,t)}),(function(){return!e||!so.validateOfferResourceParams(u.eventHub,e)||!so.validatePidlDocInfo(u.eventHub,t)}))},this.searchResource=function(e){u.telemetryContext.trackNewOperation(L.search);var t=e.pidlDocInfo,n=e.options;return u.runApi(Ce.searchResource,(function(){var e=ut.search,r=It.getPidlDocUrl(u.userContext,e,t);return u.getPidl(r,null,e,n,t)}),(function(){return!e||!so.validateSearchResourceParams(u.eventHub,e)}))},this.deleteResource=function(e){var t=e.resourceInfo,n=e.resource,r=e.pidlDocInfo,o=e.options;if(u.telemetryContext.trackNewOperation(L.delete,t||r),u.eventHub.apiCalled(Ce.deleteResource,{resourceInfo:Hr.boolify(t),resource:Hr.boolify(n),pidlDocInfo:Hr.boolify(r),options:Hr.boolify(o)},{resourceInfo:t,pidlDocInfo:r}),!u.canApiStart(Ce.deleteResource)||!e)return u.eventHub.apiReturned(Ce.deleteResource,!1),u.apiFailure(!1);var i=u.updateOrDeleteResourceInternal(t,n,r,o,ut.delete);return u.eventHub.apiReturned(Ce.deleteResource,i.result,i.promise),i},this.fundStoredValue=function(e){u.telemetryContext.trackNewOperation(L.fundStoredValue);var t=e.pidlDocInfo,n=e.options;return u.runApi(Ce.fundStoredValue,(function(){var e=ut.fundStoredValue,r=It.getPidlDocUrl(u.userContext,e,t);return u.getPidl(r,null,e,n,t)}),(function(){return!e||!so.validateFundStoredValueParams(u.eventHub,e)}))},this.validateResource=function(e,t,n,r){if(u.telemetryContext.trackNewOperation(L.validateResource,e),u.eventHub.apiCalled(Ce.validateResource,{pidlDocInfo:Hr.boolify(e),options:Hr.boolify(t),actionContext:Hr.boolify(n)},{pidlDocInfo:e}),!u.canApiStart(Ce.validateResource))return u.eventHub.apiReturned(Ce.validateResource,!1),u.apiFailure(null);var o=u.selectResource(e,t,ut.validateInstance,u.onDownloadValidateOrSelectResourceType.bind(u),n&&n.targetIdentity,n&&n.handle,r);return u.eventHub.apiReturned(Ce.validateResource,Hr.boolify(o.result),o.promise),o},this.validateProperties=function(){return u.apiSuccess(u.model.validateProperties(),Wr())},this.moveNextPage=function(){return u.runApi(Ce.moveNextPage,(function(){return u.model.moveNextOrSubmit().catch(u.displaySettings.propagateCallbackException?zr:Vr)}))},this.submitPage=function(){return u.runApi(Ce.submitPage,(function(){return u.model.submitAction().catch(u.displaySettings.propagateCallbackException?zr:Vr)}))},this.moveToLastPage=function(){return u.runApi(Ce.moveToLastPage,(function(){return u.model.moveToLastPage().catch(Vr)}))},this.movePrevPage=function(){return u.runApi(Ce.movePrevPage,(function(){return u.model.movePrevOrCancel().catch(Vr)}))},this.moveToFirstPage=function(){return u.runApi(Ce.moveToFirstPage,(function(){return u.model.moveToFirstPage().catch(Vr)}))},this.refreshData=function(e){return u.runApi(Ce.refreshData,(function(){return u.model.refreshData(e).catch(Vr)}))},this.cancel=function(){return u.runApi(Ce.cancel,(function(){return u.model.gohome(),Wr()}))},this.destroyInstance=function(){return u.runApi(Ce.destroyInstance,(function(){return u.model.clearAll(),Wr()}))},this.getSelectedResource=function(){return u.runApi(Ce.getSelectedResource,(function(){return Wr()}),(function(){return!1}),(function(){var e={},t=u.model.getCurrentPage();if(t){var n=t.operationType;n===ut.selectSingleInstance?e=Cn.getDefaultSuccessPidlPayload([t],u.eventHub):n!==ut.selectInstance&&n!==ut.select||(e=Hr.deepCopy(u.model.createUserInputData(!0,!0)))}return e.operationType=u.model.operationType,e||(e=void 0),e}))},this.invokePageDefaultAction=function(){return u.runApi(Ce.invokePageDefaultAction,(function(){return u.model.invokeDefaultPidlAction().catch(Vr)}),(function(){return!1}),(function(){return!0}),(function(){return Wr()}))},this.returnUserInputData=function(){return new Promise((function(e,t){u.model.returnUserInputData().then((function(t){var n={};n.payload=Hr.deepCopy(t),n.operationType=ut.getPidlPayload,e(n)}),(function(e){u.eventHub.error(e),t()}))}))},this.getPidlPayload=function(){return u.runApi(Ce.getPidlPayload,(function(){return u.returnUserInputData().then((function(e){return u.eventHub.payloadCreated(e)}),Vr)}),(function(){return u.model.operationType!==ut.renderPidlPage}),(function(){return!0}),(function(){return Wr()}))},this.postMessageToChildIFrames=function(e){return u.runApi(Ce.postMessageToChildIFrames,(function(){}),(function(){return!1}),(function(){return u.viewEventHandler.postMessageToChildIFrames(e)}),(function(){return Wr()}))},this.testHookRenderPidl=function(e,t,n){return u.model.pidlDocManager.setPidlDoc(u.eventHub,e),u.model.operationType=t,u.model.populate(n).catch(Vr)},this.testHookRenderPidlPage=function(e,t,n,r){void 0===n&&(n=0),u.telemetryContext.trackNewOperation(L.renderPidlDocument),u.eventHub.apiCalled(Ce.renderPidlDocument);var o=u.testHookRenderPidl(e,t,r).then((function(){u.model.moveToPageIndex(n).catch(Vr),u.stateManager.setState(fe.executing)}));return u.eventHub.apiReturned(Ce.renderPidlDocument,!0,o),!0};var p=o||{},m=p.telemetryLogger,h=p.getPidlDocument,f=p.view,g=p.fetchHandler,y=f&&Hr.isFunction(f.getViewType)&&f.getViewType();if(this.telemetryContext=new qo(i,y),this.eventHub=new Jr(m,this.telemetryContext),this.stateManager=new Lo(this.eventHub),hn.getLoggingService()||hn.setLoggingService(new Yo),hn.getOneDSService()||(s?hn.setOneDSService(s):hn.setOneDSService({getApplicationInsights:function(){return{initialize:function(){},trackEvent:function(){}}},getCorrelationVectorPlugin:function(){return{getCv:function(){return{count:0,increment:function(){return this.count=this.count+1,this.getValue()},getValue:function(){return"cv__"+this.count},isInit:function(){return!0}}}}}})),this.logConstructorCall(e,t,n,r,i),so.validateReturnOptions(this.eventHub,t))if(this.eventHub.addReturnOptions(t),hn.getCommerceService()||hn.setCommerceService(new $o),hn.getRedirectionService()||hn.setRedirectionService(new ri),hn.getPidlService()||hn.setPidlService(new ti),hn.getPidlStoreService()||hn.setPidlStoreService(new ni),n&&this.eventHub.addPublicEventHandler(n),this.eventHub.addPrivateEventHandler(this.handlePrivateEvent),a&&this.eventHub.addPrivateEventHandler(a),so.validateInputParameters(this.eventHub,e,r,i,o)){if(this.callbacks=o,this.transformers=l,this.localDataSourceProviders=d,this.userContext=new Vo(e),this.displaySettings=new Lr(r),this.displaySettings.preventUnmountOnFinish&&this.eventHub.registerEventExtender(j.preventUnmountOnFinish,(function(){return!0})),!this.displaySettings.containerId)return this.eventHub.failure(new sn.inputParameterValidationFailedError(ln.containerIdNotFound,"containerId",[this.displaySettings.containerId])),void this.eventHub.apiReturned(Ce.constructor,!1);this.model=new Ho({urls:t.urls,userContext:this.userContext,displaySettings:this.displaySettings,eventHub:this.eventHub,pidlDocManager:new Oo(h,c),stateManager:this.stateManager,callbacks:this.callbacks,transformers:this.transformers,localDataSourceProviders:this.localDataSourceProviders}),this.model.setOrchestratorId(Nr.registerToOrchestrator({model:this.model,addPublicEventHandler:this.eventHub.addPublicEventHandler}));var b=this.callbacks,C=b.iFrameMessageHandler,S=b.view;this.viewEventHandler=new zo({eventHub:this.eventHub,model:this.model,displaySettings:this.displaySettings,view:S,iFrameMessageHandler:C,userContext:this.userContext,userContextIn:e,returnOptions:t,eventHandler:n,displayOptions:r,callbacks:o,telemetryOptions:i,externalPrivateEventHandler:a,oneDSService:s,transformers:l,pidlPayload:c,localDataSourceProviders:d,controlApiMap:this.controlApiMap}),g&&io.setFetchHandler(g),this.stateManager.setState(fe.initialized)}else this.eventHub.apiReturned(Ce.constructor,!1);else this.eventHub.apiReturned(Ce.constructor,!1)}return e.prototype.apiSuccess=function(e,t){return{result:e,promise:t.catch(this.displaySettings.propagateCallbackException?zr:Vr)||Wr()}},e.prototype.apiFailure=function(e){return{result:e,promise:Wr()}},e.prototype.onDownloadSelectResource=function(e){return this.model.populate(e)},e.prototype.onDownloadValidateOrSelectResourceType=function(){return this.model.populate()},e.prototype.onDownloadSelectSingleResource=function(e){if(this.model.pidlDocManager.isEmpty()){var t={handle:e,action:"selectResource"};return this.eventHub.success(t),Wr()}return this.model.populate()},e.prototype.getPidl=function(e,t,n,r,o){var i=this;return this.model.operationType=n,this.model.operationOptions=r,this.model.modelData.setInputParametersInPartnerDataSource({pidlDocInfo:o}),this.model.pidlDocManager.setOperationInfo({operationType:n}),this.downloadPidlDocument(e,r,(function(){return i.model.populate(t,!1)}),o,void 0,!!t).then((function(){return i.stateManager.setState(fe.executing)}),Vr)},e.prototype.downloadInstance=function(e,t,n,r){var o=this;return new Promise((function(i,a){var s=hn.getPidlService(),l=s.getRequestInstance(o.eventHub,e,o.userContext,n);s.getInstance(o.eventHub,l).then((function(s){o.eventHub.instanceDownloaded(),t||(t=Ut.getPidlDocInfoFromResource(e,s),o.telemetryContext.updateResourceInfo(t));var l=It.getPidlDocUrl(o.userContext,n,t);if(l&&l.url)return o.downloadPidlDocument(l,r,(function(){return o.model.populate(s,!0)}),t).then((function(e){return i(e)}),a);a()}),(function(e){var t=Nr.createServerError(ln.resourceInstanceDownloadFailed,l.url,e,[e.errorMessage]);o.eventHub.failure(t),a(t)}))}))},e.prototype.downloadPidlDocument=function(e,t,n,r,o,i){var a=this;return this.model.downloadPidlDocument(e,r,o,i).then((function(e){return Lt(e)?a.model.handleClientAction(e):n()}))},e}(),ii=function(){function e(e,t){this.defaultWaitTime=500,this.eventHub=e,this.mockFunctions=t||[],this.mockFunctionsMap={},this.mockFunctions.forEach((function(e){this.mockFunctionsMap[e.name]=e}),this)}return e.prototype.getMockedFunctionNames=function(){var e=[];return this.mockFunctions.forEach((function(t){e=e.concat(t.name)})),e},e.prototype.createMockedFunction=function(t,n){return e.setArity(function(){var e=this.mockFunctionsMap[t];return e.triggers.forEach((function(e){setTimeout(this.eventHub[e.name].bind(this.eventHub),this.defaultWaitTime,e.params)}),this),e.returns}.bind(this),n)},e.createArguments=function(e){if(e<1)return"arg";for(var t="arg0",n=1;n<e;n++)t=t+",arg"+n;return t},e.setArity=function(t,n){return new Function(e.createArguments(n),"return this.apply(this, arguments);").bind(t)},e}(),ai=function(){function e(){hn.getTelemetryInjectionService()||hn.setTelemetryInjectionService(new si)}return e.prototype.logEvent=function(e,t,n){hn.getTelemetryInjectionService().logEvent(n,e,t)},e.prototype.getCorrelationId=function(){return Go.getCVValue()},e.prototype.getHttpRequestCorrelationHeader=function(){var e=Go.getIncrementedCV();if(e)return{name:ee.msCV,value:e}},e}(),si=function(){function e(){}return e.prototype.logEvent=function(e,t,n){Go.setUserConsentDetailsCallback(null===e||void 0===e?void 0:e.userConsentDetailsCallback),t===U.fetchCallCompleted?this.logOSREvent(e,n&&n.httpRequestTelemetryData):this.logGenericEvent(e,t,n)},e.prototype.logGenericEvent=function(e,t,n){var r,o,i,a,s;try{if(Hr.isObject(e)){var l=((window||{}).location||{}).href||"",c={name:"Microsoft.Commerce.Payments.PidlSdk.PageEvent",partB:{pageName:(document||{}).title||"",uri:l,destUri:l,customSessionGuid:e.sessionId,impressionGuid:e.operationId,contentJsonVer:1,content:JSON.stringify({eventName:t})},partC:{sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(r=e.partnerContext)||void 0===r?void 0:r.partnerName,partnerContext:JSON.stringify(e.partnerContext),partnerContextMap:e.partnerContext,parentOperationId:(null===(o=e.partnerContext)||void 0===o?void 0:o.parentOperationId)||e.operationId,partnerFlowId:null===(i=e.partnerContext)||void 0===i?void 0:i.flowId,partnerSessionId:null===(a=e.partnerContext)||void 0===a?void 0:a.sessionId,partnerScenarioId:null===(s=e.partnerContext)||void 0===s?void 0:s.scenarioId,operationId:e.operationId,operationType:e.operationType,eventName:t,eventParameters:JSON.stringify(n),eventParametersMap:n,baseType:"Ms.Content.PageAction"}};Hr.isObject(e.telemetryResource)&&(c.partC.resourceType=e.telemetryResource.resourceType,c.partC.resourceParameters=JSON.stringify(e.telemetryResource.parameters),c.partC.resourceParametersMap=e.telemetryResource.parameters),Go.writeEvent(c.name,c.partB,c.partC)}}catch(d){hn.getLoggingService().logError("TelemetryError",d)}},e.prototype.logOSREvent=function(e,t){var n,r,o,i,a;try{if(Hr.isObject(e)){var s={partner:((e.telemetryResource||{}).parameters||{}).partner,telemetryContext:e,responseHeaders:t.headers},l={name:"Ms.Webi.OutgoingRequest",partB:{operationName:t.operationName,targetUri:t.targetUri,latencyMs:t.latencyMs,serviceErrorCode:t.succeeded||!t.serviceErrorCode||isNaN(t.serviceErrorCode)?-1:t.serviceErrorCode,succeeded:t.succeeded,requestMethod:t.requestMethod,responseContentType:t.responseContentType,protocolStatusCode:t.protocolStatusCode,dependencyOperationName:t.dependencyOperationName,dependencyOperationVersion:t.dependencyOperationVersion&&t.dependencyOperationVersion.toString(),dependencyName:t.serviceName,dependencyType:"webservice",responseSizeBytes:t.contentLength},partC:{customSessionGuid:e.sessionId,impressionGuid:e.operationId,message:t.failureResponse,retryCount:t.retryCount,customData:JSON.stringify(s),sdkVersion:e.sdkVersion,sdkViewType:e.sdkViewType,env:e.env,partnerName:null===(n=e.partnerContext)||void 0===n?void 0:n.partnerName,partnerContext:JSON.stringify(e.partnerContext),operationId:e.operationId,parentOperationId:(null===(r=e.partnerContext)||void 0===r?void 0:r.parentOperationId)||e.operationId,partnerFlowId:null===(o=e.partnerContext)||void 0===o?void 0:o.flowId,partnerSessionId:null===(i=e.partnerContext)||void 0===i?void 0:i.sessionId,partnerScenarioId:null===(a=e.partnerContext)||void 0===a?void 0:a.scenarioId,partnerContextMap:e.partnerContext,operationType:e.operationType,baseType:"Ms.Qos.OutgoingServiceRequest"}};Go.writeEvent(l.name,l.partB,l.partC)}}catch(c){hn.getLoggingService().logError("TelemetryError",c)}},e}(),li=function(){function e(e,t){var n=Ut.getTelemetryLoggerProperties().enableMultipleLoggers;this.loggers=n&&t?[e,t]:t?[t]:[e]}return e.prototype.logEvent=function(e,t,n){for(var r=0,o=this.loggers;r<o.length;r++)o[r].logEvent(e,t,n)},e.prototype.getCorrelationId=function(){for(var e,t,n=0,r=this.loggers;n<r.length;n++){var o=r[n],i=null===(e=o.getCorrelationId)||void 0===e?void 0:e.call(o);i&&(t=i)}return t},e.prototype.getHttpRequestCorrelationHeader=function(){for(var e,t,n=0,r=this.loggers;n<r.length;n++){var o=r[n],i=null===(e=o.getHttpRequestCorrelationHeader)||void 0===e?void 0:e.call(o);i&&(t=i)}return t},e.prototype.getLoggers=function(){return this.loggers},e}(),ci=function(){function e(){var e=this;this.getContainerClassName=function(e){if(e)switch(e){case $.busyBlock:return D.busyBlock;case $.errorBlock:return D.errorBlock;case $.helpDialogBlock:return D.helpDialogBlock;case $.helpDialogContentBlock:return D.helpDialogContentBlock;case $.modalDialogBlock:return D.modalDialogBlock;case $.modalDialogContentBlock:return D.modalDialogContentBlock;case $.pageContentBlock:return D.pageContentBlock;case $.submitBlock:return D.submitBlock}},this.getDivClassName=function(t,n,r){switch(n){case F.dropdown:return[D.dropdownDiv,D.propertyDiv];case F.checkBox:return[D.checkBoxDiv,D.propertyDiv];case F.textBox:return[D.textBoxDiv,D.propertyDiv];case F.secureProperty:return[D.propertyDiv];case F.image:return[D.imageDiv];case F.logo:return[D.logoDiv];case F.button:return[D.buttonDiv];case F.iFrame:return[D.iFrameDiv];case F.group:var o=[D.groupDiv],i=e.getContainerClassName(r);return i&&o.push(i),o}},this.generateClassName=function(t,n,r,o,i){var a=e.getClassName(t,n,r);if(o){var s=e.getDivClassName(t,o,i);s&&(a=a.concat(s))}if(a)return a.join(" ")},this.getClassName=function(t,n,r){switch(n){case X.div:return[D.div];case X.label:return[D.label];case X.dropdown:return[D.property,D.dropdown,e.getPropertyClassName(r)];case X.radio:return[D.property,D.radio,e.getPropertyClassName(r)];case X.buttonList:return[D.property,D.buttonList,e.getPropertyClassName(r)];case X.checkBox:return[D.property,D.checkBox,e.getPropertyClassName(r)];case X.textBox:return[D.property,D.textBox,e.getPropertyClassName(r)];case X.secureProperty:return[D.secureProperty];case X.button:return[D.button];case X.iFrame:return[D.iFrame];case X.heading:return[D.staticText,D.heading];case X.subHeading:return[D.staticText,D.subHeading];case X.text:return[D.staticText,D.text];case X.textGroup:return[D.staticText,D.text,D.textGroup];case X.hyperlink:return[D.hyperlink];case X.image:return[D.image];case X.logo:return[D.logo];case X.errorDiv:return[D.errorDiv];case X.error:return[D.error];case X.audio:return[D.audio];default:return void t.failure(new sn.unexpectedError(ln.noMappingToGetHtmlClassNameForElement,[n]))}},this.getDivId=function(t){return e.getId(R.div,t)},this.getId=function(e,t){return Hr.replaceCharactersForHtml(Hr.startsWith(t,e)?t:e+t)},this.getPropertyClassName=function(t){return e.getId(R.property,t)},this.concatIdElement=function(e,t){return Hr.replaceCharactersForHtml(e+"_"+t)}}return e.prototype.concatClassName=function(e,t){return e&&t&&e.trim()+" "+t||e||t},e}(),di=new ci,ui=Object.freeze({__proto__:null}),pi=Object.freeze({__proto__:null,constants:kt,modelElementTypes:Ar,promise:Zr,eventArgs:ui,msrCrypto:Ro,tokenEncrypt:Mo,oneDSAdapter:Go,commerce2:dn,commerceHelper:pn,config:Br,configManager:Ut,error:sn,fetchHelper:io,inputValidationHelper:so,iocContainer:hn,modelElementFactory:yn,modelElementsHelper:Cn,pidlDocHelper:gn,tokenizer:Fo,typeHelper:Hr,urlBuilder:It,userInputDataHelper:Jo,userInputDataTransformer:Xo,userInputDataValidator:Po,utils:Nr,validationFunctions:Co,version:Ko,webCrypto:Eo,htmlAttributeHelper:di,hmac:Do,DisplaySettings:Lr,errorMessages:ln,EventHub:Jr,FetchConfig:ro,mockFactory:ii,Resources:lo,stateManager:Lo,telemetryContext:qo,userContextWrapper:Vo,ViewEventHandler:zo,DataCache:co,DataStore:uo,InputPrefillDataManager:vo,Model:Ho,ModelData:bo,ModelDataProperty:yo,MultiPropertySelector:mo,pidlDocumentManager:Oo,Validator:Io,commerceService:$o,loggingService:Yo,pidlService:ti,pidlStoreService:ni,redirectionService:ri,oneDSLogger:ai,telemetryInjectionService:si,LoggerWrapper:li}),mi=Object.freeze({__proto__:null,controlApi:oi,get GpayButtonColor(){return Kr},get ApayButtonColor(){return jr},get GpayButtonType(){return Gr},get ApayButtonType(){return qr},get EncryptionTypes(){return Yr},doNothing:Vr,throwException:zr,createFakePromise:Wr,createFakeRejectedPromise:Ur,errorMessages:ln,ModelElement:Sn,ContainerElement:xn,GenericGroupElement:kn,GroupElement:Pn,DataCollectionBindingGroupElement:In,CaptchaContainerElement:wn,GenericCaptchaElement:En,CaptchaElement:_n,PageElement:Dn,TextGroupElement:Tn,PropertyElement:Rn,SelectionElement:An,DropdownElement:Mn,RadioElement:Nn,ButtonListElement:Fn,TextBoxElement:Hn,CheckBoxElement:On,FilePickerElement:Bn,GenericTextElement:Ln,TextElement:Vn,ButtonElement:zn,AudioElement:Wn,ExpressionElement:Un,ImageElement:Kn,SeparatorElement:jn,SpinnerElement:Gn,LogoElement:qn,PidlContainer:Yn,PidlInstance:Zn,SecurePropertyInitializations:Jn,SecurePropertyElement:Qn,ExpressCheckoutButtonElement:Xn,IFrameElement:$n,ChallengeIFrameElement:er,isModelElement:tr,isContainerElement:nr,isCaptchaElement:rr,isPageElement:or,isSelectionElement:ir,isDropdownElement:ar,isPrefillDropdownElement:sr,isPidlContainerElement:lr,isPidlInstanceElement:cr,isImageElement:dr,isLogoElement:ur,isButtonElement:pr,isFilePickerElement:mr,isCheckBoxElement:hr,isPrefilledCheckBoxElement:fr,isPageOrGroupOrDataCollectionBindingGroup:gr,isGroupElement:vr,isTextGroupElement:yr,isTextBoxElement:br,isButtonListElement:Cr,isRadioElement:Sr,isTextElement:xr,isDataCollectionBindingGroup:kr,isExpressionElement:Pr,isIFrameElement:Ir,isChallengeIFrameElement:wr,isSecurePropertyElement:Er,isExpressCheckoutButtonElement:_r,isSeparatorElement:Dr,isAudioElement:Tr,isPropertyElement:Rr,env:Uo,internal:pi,pidlDocumentTypes:zt,fetchHelper:io,urlBuilder:It,typehelper:Hr,pidlErrors:sn}),hi=function(e,t){return hi=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])},hi(e,t)};function fi(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}hi(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var gi=function(){return gi=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},gi.apply(this,arguments)};function vi(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))}function yi(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(l){s=[6,l],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function bi(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}Object.create,Object.create,"function"===typeof SuppressedError&&SuppressedError;var Ci,Si=_e.pidlReact,xi=Hr.startsWith;t.AppScenario=void 0,(Ci=t.AppScenario||(t.AppScenario={})).None="none",Ci.AddAddress="addAddress",Ci.AddPaymentInstrument="addPaymentInstrument",Ci.EditPaymentInstrument="editPaymentInstrument",Ci.DeletePaymentInstrument="deletePaymentInstrument",Ci.ApplyPaymentInstrument="applyPaymentInstrument",Ci.SelectPaymentMethod="selectPaymentMethod",Ci.ConfirmPayment="confirmPayment",Ci.SelectPaymentInstrument="selectPaymentInstrument",Ci.ListAddress="listAddress",Ci.RiskChallenge="riskChallenge",Ci.ProfilePrerequisite="profilePrerequisite",Ci.PaymentInstrumentDetails="paymentInstrumentDetails",Ci.HandlePaymentChallenge="handlePaymentChallenge",Ci.VerifyAddress="verifyAddress",Ci.RedeemMSRewards="redeemMSRewards",Ci.SelectMSRewards="selectMSRewards",Ci.OfferPaymentInstrument="offerPaymentInstrument",t.ElementType=void 0,function(e){e.alert="alert",e.button="button",e.buttonGroup="buttonGroup",e.checkbox="checkbox",e.dialog="dialog",e.dropdown="dropdown",e.error="error",e.group="group",e.captcha="captcha",e.audio="audio",e.heading="heading",e.helpDialog="helpDialog",e.hyperlink="hyperlink",e.iframe="iframe",e.challengeIframe="challengeIframe",e.expressCheckoutButton="expressCheckoutButton",e.secureProperty="secureProperty",e.securePropertyLabel="securePropertyLabel",e.image="image",e.label="label",e.logo="logo",e.subheading="subheading",e.text="text",e.textBox="textBox",e.radio="radio",e.radioCircle="radioCircle",e.checkedRadioCircle="checkedRadioCircle",e.modal="modal",e.overlay="overlay",e.spinner="spinner",e.pidlInstance="pidlInstance",e.panel="panel",e.textgroup="textgroup",e.filePicker="filePicker",e.separator="separator",e.tooltip="tooltip"}(t.ElementType||(t.ElementType={}));var ki,Pi,Ii="prod",wi={DefaultAddressType:"jarvis_v3",Operation:"add",ContainerId:"addResource",ResourceType:"Address",UserId:"me",ViewTermsId:"viewTermsButton"},Ei={AllowedPaymentMethods:["credit_card","ewallet.paypal","ewallet.kakaopay","ewallet.stored_value","mobile_billing_non_sim","online_bank_transfer.paysafecard","ewallet.venmo"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me"},_i={AddressType:"jarvis_v3",Operation:"update",ContainerId:"updateResource",ResourceType:"AddressEx",UserId:"me"},Di={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me"},Ti={ContainerId:"RiskChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",RiskChallengeData:"globalPIQrCode",ViewTermsId:"globalPIQrCodePrivacyStatement",RedirectButton:"globalPIQrCodeRedirectButton",RedirectButtonPage2:"globalPIQrCodeRedirectButtonPage2"},Ri={Operation:"validateInstance",ContainerId:"validateResource",ResourceType:"Address",UserId:"me"},Ai={isCreditCard:"isUserPICreditCard",isCreditCardExpired:"isCreditCardExpired",isEwalletStoredValue:"IsEwalletStoredValue"},Mi={Operation:"select",ContainerId:"selectMSRewards",ResourceType:"MSRewards",UserId:"me",useCsvTogglePropertyName:"useCsv",redeemPointsTogglePropertyName:"redeemPoints",csvTotalPropertyName:"csvTotal",formattedCsvTotalPropertyName:"formattedCsvTotal",pointsValueTotalPropertyName:"pointsValueTotal",formattedPointsValueTotalPropertyName:"formattedPointsValueTotal"},Ni={AllowedPaymentMethods:["credit_card","direct_debit","online_bank_transfer.paysafecard","ewallet","finance_leasing","mobile_billing_non_sim","virtual"],Operation:"select",ContainerId:"selectResource",ResourceType:"PaymentInstrument",UserId:"me",SecondaryPIFilter:{SplitPaymentSupported:!0},SelectPaymentInstrument:"SelectPaymentInstrument",paymentInstrumentList:"paymentInstrumentList",addNewPaymentMethodFamily:"add_new_payment_method",preventDefaultSelection:"addnewpm_no_default_selection"},Fi={NewPaymentMethodLink:"newPaymentMethodLink",RedeemGiftCardLink:"redeemGiftCardLink",ManagePaymentInstrument:"ManagePaymentInstrument",redeemGiftCardHandlerName:"redeemGiftCardHandler"},Hi={Operation:"selectInstance",ContainerId:"listAddress",ResourceType:"Address",UserId:"me",DefaultAddressType:"jarvis_v3"},Oi={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",LogoRowElement:"acceptedCardsLogos"},Bi={ContainerId:"deletePaymentInstrument",Operation:"delete",ResourceType:"PaymentInstrument",UserId:"me"},Li={ContainerId:"editPaymentInstrument",ViewTermsId:"viewTermsButton",Operation:"update",ResourceType:"PaymentInstrument",UserId:"me"},Vi={ContainerId:"MSRewards",ResourceType:"MSRewards",UserId:"me"},zi={Operation:"add",ContainerId:"addPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me",ViewTermsId:"viewTermsButton",PaymentType:"mc",PaymentFamily:"credit_card",DefaultScenario:"xboxCreditCardInit"},Wi={Operation:"offer",ContainerId:"offerPaymentInstrument",ResourceType:"PaymentInstrument",UserId:"me"},Ui={Operation:"update",ContainerId:"profilePrerequisite",ResourceType:"Profile",UserId:"me",type:"consumer"},Ki={Operation:"selectSingleInstance",ContainerId:"paymentInstrumentDetails",ResourceType:"PaymentInstrument",UserId:"me",type:"consumer",Scenario:"details",ChangeButtonId:"changeSinglePIButton"},ji={ContainerId:"handlePaymentChallenge",Operation:"RenderPidlPage",ResourceType:"Challenge",UserId:"me",ViewTermsId:"viewTermsButton"},Gi={ResourceType:"PaymentInstrument",UserId:"me",ActionType:"triggerSubmit"},qi={ViewTermsId:"viewTermsButton"};t.AddressScenario=void 0,(ki=t.AddressScenario||(t.AddressScenario={})).billing="billing",ki.shipping="shipping",ki.profile="profile",t.ApplyPaymentInstrumentScenario=void 0,(Pi=t.ApplyPaymentInstrumentScenario||(t.ApplyPaymentInstrumentScenario={})).xboxCoBrandedCard="xboxCoBrandedCard",Pi.xboxApplyFullPageRender="xboxApplyFullPageRender",t.OfferPaymentInstrumentScenario=void 0,(t.OfferPaymentInstrumentScenario||(t.OfferPaymentInstrumentScenario={})).xboxCoBrandedCardBuyNow="xboxCoBrandedCardBuyNow";var Yi={propertyName:function(e,t){return t.propertyName=e.getPropertyName()},elementId:function(e,t){return t.elementId=e.id},resolvedLogo:function(e,t){return t.resolvedLogo=e.getResolvedLogo()},pidlKey:function(e,t){return t.pidlKey=e.key}};function Zi(){return function(e,t){function n(n,r){var o=n.element;if(o){for(var i={},s=0,l=t;s<l.length;s++){var c=l[s],d=Yi[c];if(d)d(o,i);else{var u=o[c];i[c]=u instanceof Function?u():o[c]}}return a.createElement(e,gi({ref:r},i,n))}return null}return n.displayName="ElementWrapper(".concat(t.join("|")," => ").concat(e.displayName||"UnknownComponent",")"),a.forwardRef(n)}}var Ji=Zi(),Qi=(Zi(),Zi(),Zi()),Xi=Zi(),$i=Zi(),ea=Zi(),ta=Zi(),na=Zi(),ra=Zi(),oa=Zi(),ia=Zi(),aa=Zi(),sa=Zi(),la=Zi(),ca=Zi(),da=Zi(),ua=Zi(),pa=Zi(),ma=Zi(),ha=Zi(),fa=Zi(),ga=Zi(),va=(Zi(),a.createContext({pidlDocs:[]}),a.createContext(!1)),ya=a.createContext({values:{},accessibilityText:{},errors:{}}),ba=a.createContext({}),Ca=a.createContext({elementFactory:null,displayOptions:null,displaySettings:null,theme:null,userContext:null,pidlInstanceContexts:void 0,env:null,returnOptions:null}),Sa=a.createContext(null),xa=a.createContext(null);function ka(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Hr.startsWith(o,_e.noPidlddc)||Hr.startsWith(o,_e.pidlReact)?t.push(e[o]):Ee[o]||Nr.isTagPrefixKnown(o)||t.push(T.taggedClass+e[o])}return t}function Pa(e){void 0===e&&(e={});var t=[];if(e)for(var n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];Hr.startsWith(o,_e.pidlReact)&&t.push(e[o].substring(_e.pidlReact.length))}return t}function Ia(e){if(void 0===e&&(e={}),e)for(var t=0,n=Object.keys(e);t<n.length;t++)if(n[t]===Ee.hideInlineError)return!0;return!1}function wa(e){var t;void 0===e&&(e={});var n={};if(e)for(var r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];if(i&&re.hasOwnProperty(i)){var a=re[i],s=e[i];n=gi(gi({},n),((t={})[a]=s,t))}}return n}var Ea=function(e){var n=e.propertyName,r=(0,di.getId)(kt.htmlElementIdPrefixes.error,n);return a.createElement(Ca.Consumer,null,(function(e){return a.createElement(ya.Consumer,null,(function(o){var i=e.elementFactory,s=(e.displayOptions,e.displaySettings,o.errors[n]?o.errors[n].message:null);if(!s)return null;var c={errorMessage:s};return i&&i.canCreate(t.ElementType.error,c,{})?i.create(t.ElementType.error,c):a.createElement("span",{className:l.default("pidlddc-error",{"d-none":!s},"text-danger"),id:r,tabIndex:-1,role:"alert"},s)}))}))};Ea.displayName="Error";var _a=function(e){var n=e.message;return a.createElement(Ca.Consumer,null,(function(e){var r=e.elementFactory,o=(e.displayOptions,e.displaySettings,{elementId:"pidlddc-page-alert-id",message:n});return r&&r.canCreate(t.ElementType.alert,o,{})?r.create(t.ElementType.alert,o):a.createElement("div",{id:o.elementId,className:"pidlddc-error-alert",role:"alert"},o.message)}))};_a.displayName="PageAlert";var Da=function(e){function t(t){var n=e.call(this,t)||this;return n.onEvent=function(e){var t=n.props,r=t.sourceUrl,o=t.expectedClientActionId,i=t.onIFrameMessage,a=t.onIFrameBusyTimerEnded,s=n.state.messageTimer;if(!r||!e.origin||0===r.indexOf(e.origin)){var l=Nr.parseJSON(e.data),c=l.succeeded?l.value:null;c&&o&&c.actionId!==o||(s&&(a(s),clearTimeout(s),n.setState({messageTimer:null})),i(e))}},n.iframe=a.createRef(),n.state={executing:!0,width:t.element.width,height:t.element.height},n}return fi(t,e),t.prototype.postMessage=function(e){return!!(this.iframe&&this.iframe.current&&this.iframe.current.contentWindow&&this.iframe.current.contentWindow.postMessage)&&(this.iframe.current.contentWindow.postMessage(e.message,e.targetOrigin),!0)},t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,n=e.sourceUrl,r=e.onIFrameMessageTimeout,o=e.messageTimeout,i=e.messageTimeoutClientAction,a=e.onIFrameBusyTimerStarted,s=e.onIFrameBusyTimerEnded,l=this.iframe.current,c=this.state.messageTimer;if(window.addEventListener(I.message,this.onEvent),!n&&t&&l){var d=l.contentDocument;d&&(d.open(),d.write(t),d.close())}if(!c&&o&&i){var u=window.setTimeout((function(){r(i),s(u)}),o);a(u),this.setState({messageTimer:u})}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.displayContent,i=r.sourceUrl,a=this.iframe.current;if(!i&&o&&e&&e.displayContent!==o&&a){var s=a.contentDocument;s&&(s.open(),s.write(o),s.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(I.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,o=e.tags,i=e.sourceUrl,s=(e.containerLayoutOrientation,this.state),c=s.width,d=s.height,u={width:c,height:d},p=(0,di.getId)(kt.htmlElementIdPrefixes.iframe,t),m=(c||d)&&0===Number((c+d).replace(/\D/g,""))?0:void 0;return this.state.executing?a.createElement("iframe",{key:p,className:l.default(ka(o)),id:p,src:i,hidden:r,"aria-label":n,ref:this.iframe,style:u,frameBorder:m}):null},t}(a.Component),Ta=function(e){return a.createElement(Ca.Consumer,null,(function(n){var r=n.elementFactory,o=n.userContext,i=n.displayOptions,s=e.displayId,l=e.useAuth,c=e.containerLayoutOrientation,d=e.styleHints,u={};l&&null!=(null===o||void 0===o?void 0:o.authToken)&&(u=function(e,t){var n,r;if("xboxCoBrandedCardIframe"===e)try{return{xuh:null===(n=t.split("=")[1])||void 0===n?void 0:n.split(";")[0],xt:null===(r=t.split("=")[1])||void 0===r?void 0:r.split(";")[1]}}catch($k){return{authorization:t}}return{authorization:t}}(s,o.authToken));var p=gi(gi({},e),{headers:u,useWebView2:i.useWebView2||!1,containerLayoutOrientation:c,styleHints:d});return r&&r.canCreate(t.ElementType.iframe,p,{})?r.create(t.ElementType.iframe,p):a.createElement(Da,gi({},p,{ref:p.iFrameElementRef}))}))},Ra=na(Ta,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage","containerLayoutOrientation","styleHints"]),Aa=function(e){var t=e.elementId,n=e.hidden,r=e.showDisplayName,o=e.displayName,i=e.accessibilityName,s=e.element,c=(0,di.getId)(kt.htmlElementIdPrefixes.label,t);return a.createElement(ya.Consumer,null,(function(e){return a.createElement("label",{className:l.default("pidlddc-label",{"d-none":n||!r}),id:c,"aria-label":e.accessibilityText[s.getPropertyName()]||i},o,a.createElement("span",{className:"".concat(c,"-asterisk")},s.dataDescription.is_optional?"":"*"))}))},Ma=Ji(Aa,["elementId","propertyName","hidden","displayName","showDisplayName","accessibilityName"]);Ma.displayName="PropertyLabel";var Na=function(e){function n(t){var n=e.call(this,t)||this;return n.linkRef=a.createRef(),n.toggle=function(e){!e&&n.linkRef&&n.linkRef.current&&n.linkRef.current.focus&&n.linkRef.current.focus(),n.setState({open:e})},n.escapeHandler=function(e){27===e.keyCode&&n.toggle(!1)},n.state={open:!1},n}return fi(n,e),n.prototype.componentDidUpdate=function(){var e,t=this.props,n=t.elementId,r=t.elementFactory,o=this.state.open;if(!(null===(e=null===r||void 0===r?void 0:r.isReactNative)||void 0===e?void 0:e.call(r))){var i=document.getElementById("".concat(n,"-dialog-body"));o?(document.addEventListener("keydown",this.escapeHandler,!1),i&&i.focus&&i.focus()):document.removeEventListener("keydown",this.escapeHandler,!1)}},n.prototype.render=function(){var e=this,r=this.props,o=r.elementId,i=r.displayHelpName,s=r.displayImage,l=r.children,c=r.element,d=this.state.open;if((!i||0===i.length)&&!s)return null;var u=c.getHelpDialogTags(),p=u&&u[Te.linkAccessibilityName]||c.accessibilityName,m=u&&u[Te.closeButtonAccessibilityName]||"",h="".concat(s?R.image:R.button).concat(o),f=s?D.helpImageLink:D.helpTextLink;return a.createElement(Ca.Consumer,null,(function(r){var c=r.elementFactory,u=(r.displayOptions,r.displaySettings);n.elementIdHelpDialogIndex[o]||(n.elementIdHelpDialogIndex[o]=n.latestHelpDialogIndex,n.latestHelpDialogIndex++);var g=0===n.elementIdHelpDialogIndex[o]?"":n.elementIdHelpDialogIndex[o],v=u?u.getAffixedDisplayElementId(R.helpDialogContent+u.helpDialogBlock.id+g):o,y={id:h,children:l,linkAdditionalClassName:f,linkText:i,linkImageSource:s,linkAriaLabel:p,contentId:v,closeButtonAccessibilityName:m};return c&&c.canCreate(t.ElementType.helpDialog,y,{})?c.create(t.ElementType.helpDialog,y):[a.createElement("a",{key:"".concat(h,"-toggle"),id:h,className:f,"aria-label":p,"aria-haspopup":"dialog",onClick:function(){return e.toggle(!0)},href:"javascript:void(null);",ref:e.linkRef},s?a.createElement("img",{src:s,alt:p}):i),a.createElement("dialog",{key:"".concat(o,"-dialog-body"),id:"".concat(o,"-dialog-body"),tabIndex:-1,onBlur:function(){return e.toggle(!1)},open:d},a.createElement("div",{key:"".concat(o,"-dialog-close-button"),id:"".concat(o,"-dialog-close-button"),style:{textAlign:"right",width:"100%",paddingBottom:"6px"}},a.createElement("button",{"aria-label":m,onClick:function(){return e.toggle(!1)}},a.createElement("span",{"aria-hidden":"true"},"x"))),l)]}))},n.elementIdHelpDialogIndex={},n.latestHelpDialogIndex=0,n}(a.Component),Fa=Ji(Na,["elementId","displayHelp","displayHelpName","displayImage"]);Fa.displayName="HelpDialog";var Ha=function(e){function n(t){var n=e.call(this,t)||this;return n.inputFileRef=a.createRef(),n.onChange=function(e){var t=n.props,r=t.onUpdateValue,o=t.propertyName,i=n.inputFileRef.current.value;i?n.setState({selectedFile:i.split(/(\\|\/)/g).pop()}):n.setState({selectedFile:""}),r(o,e.target.files[0],ve.finished)},n.state={selectedFile:""},n.onButtonClick=n.onButtonClick.bind(n),n}return fi(n,e),n.prototype.onButtonClick=function(){this.inputFileRef&&this.inputFileRef.current&&this.inputFileRef.current.click&&this.inputFileRef.current.click()},n.prototype.render=function(){var e=this;return a.createElement(Ca.Consumer,null,(function(n){return a.createElement(ya.Consumer,null,(function(r){var o=n.elementFactory,i=e.state.selectedFile,s=e.props,c=s.className,d=s.element,u=s.propertyName,p=s.elementId,m=s.disabled,h=s.accessibilityName,f=s.tags,g=s.required,v=s.displayHelpName,y=s.displayHelpChildren,b=s.displayImage,C=d.displayName,S=d.showDisplayName,x=d.displayContent,k=(0,di.getId)(kt.htmlElementIdPrefixes.filePicker,p),P=l.default(c,ka(f)),I={inlineError:!0},w=S?a.createElement(Ma,{element:d}):null,E=a.createElement(Ea,{propertyName:u}),_={id:p},D=v||b?a.createElement(Fa,gi({},_,{element:d,children:y,elementFactory:o})):null,T={id:k,additionalClassName:P,disabled:m,inlineHelpLink:D,onChange:e.onChange,onButtonClick:e.onButtonClick,ariaLabel:h,displayName:C,displayContent:x,showDisplayName:S,required:g,errorNode:E,selectedFile:i,inputFileRef:e.inputFileRef};return(I=o&&o.canCreate(t.ElementType.filePicker,T,I))?o.create(t.ElementType.filePicker,T):a.createElement("div",{id:k,className:l.default(P)},w&&D&&d.displayHelpPosition!==Ue.floatRight?a.createElement("span",null,w," ",D):w,w&&D?null:D,a.createElement("input",{type:"file",name:"file",ref:e.inputFileRef,onChange:function(t){return e.onChange(t)},style:{display:"none"}}),a.createElement("button",{id:k+"_button","aria-label":h,disabled:m,onClick:e.onButtonClick},x)," ",a.createElement("label",{id:k+"_label"}," ",i," "),I&&I.inlineError?null:a.createElement(Ea,{propertyName:u}))}))}))},n}(a.Component),Oa=ma(Ha,["elementId","disabled","displayHelpName","displayImage","accessibilityName","tags","required"]);Oa.displayName="FilePicker";var Ba=function(e){var n=e.className,r=e.element,o=e.elementId,i=e.displayContent,s=e.pidlAction,c=e.disabled,d=e.accessibilityName,u=e.onClick,p=e.tags,m=e.styleHints,h=e.tooltipText,f=e.gridColumn,g=e.gridRow,v=e.accessibilityHint,y=e.containerLayoutOrientation,b=s.type,C=s.isDefault,S="submit"===b||C,x=(0,di.getId)(kt.htmlElementIdPrefixes.button,o),k=l.default(n,ka(p)),P=r.propertyElementRef;return a.createElement(Ca.Consumer,null,(function(e){var n=e.elementFactory,r=e.theme,o={id:x,displayContent:i,onClick:u,additionalClassName:k,disabled:c,ariaLabel:d,accessibilityHint:v,primary:S,type:S?"primary":"secondary",propertyElementRef:P,theme:r,styleHints:m,tooltipText:h,gridColumn:f,gridRow:g,containerLayoutOrientation:y,tags:p};return n&&n.canCreate(t.ElementType.button,o,{})?n.create(t.ElementType.button,o):a.createElement("button",{id:x,className:l.default(S?"pidlddc-highlighted":"pidlddc-back",k),disabled:c,"aria-label":d,onClick:u},i)}))},La=pa(Ba,["elementId","pidlAction","disabled","displayContent","accessibilityName","accessibilityHint","tags","styleHints","tooltipText","containerLayoutOrientation"]);La.displayName="Button";var Va=function(e){var n=e.elementId,r=e.displayText,o=e.displayImageUrl,i=e.createElement,s=e.displayContentContainer,l=e.isDisabled,c=e.pidlKey,d=e.onClick,u=e.buttonAction,p=e.containerDisplayId,m=e.ariaLabel,h=e.propertyElementRef,f=e.styleHints,g=e.containerLayoutOrientation,v=e.tags,y=s?i(s):[o?a.createElement("img",{src:o,key:"".concat(n,"-img"),id:"pidlddc-buttonlist-".concat(n,"-").concat(c)}):null,r];return a.createElement(Ca.Consumer,null,(function(e){var r=e.elementFactory,o=e.displayOptions,i=di,s=(0,i.concatIdElement)((0,i.getId)(o.inputPropertyIdPrefix,n),c),b=function(){return d({id:s,pidlAction:u,value:u.context,dest:""})},C={id:s,key:c,onClick:b,additionalClassName:"",displayContent:y,disabled:l,primary:!1,type:"list",containerDisplayId:p,ariaLabel:m,propertyElementRef:h,styleHints:f,containerLayoutOrientation:g,tags:v};return r&&r.canCreate(t.ElementType.button,C,{})?r.create(t.ElementType.button,C):a.createElement("button",{id:s,disabled:l,onClick:b,"aria-label":m},C.displayContent)}))},za=ga(Va,["displayImageUrl","displayContentContainer","displayText","isDisabled","displayContent","displayType","pidlKey","styleHints","containerLayoutOrientation","tags"]);za.displayName="ButtonListElement";var Wa=function(e){var n=e.createElement,r=e.elementId,o=e.possibleOptions,i=e.onClick,s=e.tags,c=e.displayId,d=e.element,u=e.styleHints,p=e.containerLayoutOrientation,m=[],h=(0,di.getId)(kt.htmlElementIdPrefixes.buttongroup,r),f=d.propertyElementRef,g=!1;for(var v in o)if(o.hasOwnProperty(v)&&o[v]){var y=o[v],b=o[v].pidlAction||{context:{id:v},type:""},C=null;g||y.isDisabled||(C=f,g=!0),m.push(a.createElement(za,{element:y,elementId:r,createElement:n,onClick:i,buttonAction:b,pidlKey:v,containerDisplayId:c,propertyElementRef:C,ariaLabel:null===y||void 0===y?void 0:y.accessibilityName}))}return a.createElement(Ca.Consumer,null,(function(e){var n=e.elementFactory,r={id:h,additionalClassName:l.default(ka(s)),options:m,optionsDirection:"vertical",displayId:c,propertyElementRef:f,styleHints:u,containerLayoutOrientation:p};return n&&n.canCreate(t.ElementType.buttonGroup,r,{})?n.create(t.ElementType.buttonGroup,r):a.createElement("div",{className:l.default(ka(s)),id:r.id},m)}))},Ua=la(Wa,["elementId","possibleOptions","disabled","hidden","tags","displayId","styleHints","containerLayoutOrientation"]);Ua.displayName="ButtonList";var Ka=function(e){var n=e.elementId,r=e.required,o=e.disabled,i=e.hidden,s=e.propertyName,c=e.displayName,d=e.accessibilityName,u=e.onChange,p=e.tags,m=e.displayId,h=e.useDisplayIdAsKeyForCheckState,f=e.element,g=e.styleHints,v=e.containerLayoutOrientation,y=f.propertyElementRef,b=di,C=b.getDivId,S=b.getId,x=C(n),k=Ia(p);return a.createElement(Ca.Consumer,null,(function(e){return a.createElement(ya.Consumer,null,(function(n){var b=e.elementFactory,C=e.displayOptions,P=e.displaySettings,I=S(C.inputPropertyIdPrefix,f.displayType===vt.prefillControl?P.prefillCheckboxBlock.id:s),w={elementId:I,displayContent:c,onChange:u,displayId:m,disabled:o,ariaLabel:n.accessibilityText[s]||d,additionalClassName:l.default(ka(p)),inlineError:n.errors[s]&&!k?n.errors[s].message:void 0,checked:h?!!n.values[m]:!0===n.values[s]||"true"===n.values[s],hidden:i,required:r,id:I,propertyName:s,propertyElementRef:y,styleHints:g,containerLayoutOrientation:v},E=b&&b.canCreate(t.ElementType.checkbox,w,{});if(E)return function(e,t){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?t:a.createElement("div",{id:x},t)}(b,a.createElement(a.Fragment,null,b.create(t.ElementType.checkbox,w),E&&E.inlineError||k?null:a.createElement(Ea,{propertyName:s})));var _="".concat(w.elementId,"_label");return a.createElement("div",{id:x},a.createElement("label",{id:_,htmlFor:I,"aria-label":w.ariaLabel,hidden:w.hidden},a.createElement("input",{type:"checkbox",id:I,required:w.required,hidden:w.hidden,disabled:w.disabled,checked:w.checked,"aria-labelledby":_,onChange:function(e){return w.onChange(e.currentTarget.checked)}}),w.displayContent),k?null:a.createElement(Ea,{propertyName:s}))}))}))},ja=da(Ka,["elementId","propertyName","accessibilityName","displayName","required","hidden","disabled","tags","displayId","styleHints","containerLayoutOrientation"]);ja.displayName="CheckBox";var Ga=function(e){var n=e.element,r=e.elementId,o=e.hidden,i=e.required,s=e.disabled,c=e.showDisplayName,d=e.displayName,u=e.accessibilityName;return c?a.createElement(Ca.Consumer,null,(function(e){var p=e.elementFactory,m=(e.displayOptions,e.displaySettings,(0,di.getId)(kt.htmlElementIdPrefixes.label,r)),h={disabled:s,required:i,elementId:m,displayContent:d};if(p&&p.canCreate(t.ElementType.label,h,{}))return p.create(t.ElementType.label,h);for(var f=0;f<n.children.length;f++)if(null!=n.children[f].dataDescription&&!n.children[f].dataDescription.is_optional){h.required=!0;break}return a.createElement("label",{className:l.default("pidlddc-label",o||!c?"d-none":"d-block"),id:h.elementId,"aria-label":u},d,a.createElement("span",{className:"".concat(h.elementId,"-asterisk")},h.required?"*":""))})):null};Ga.displayName="GroupLabelInner";var qa=Qi(Ga,["elementId","hidden","displayName","showDisplayName","accessibilityName"]);qa.displayName="GroupLabel";var Ya=function(e){function n(t){var n=e.call(this,t)||this;return n.toggleDisplay=function(e){n.setState({open:e})},n.state={open:!0},n}return fi(n,e),n.prototype.render=function(){var e=this.props,n=e.layoutOrientation,r=e.elementId,o=e.childNodes,i=e.tags,s=e.element,c=s.displayId,d=s.type,u=this.state.open,p=(0,di.getDivId)(r);return a.createElement(Ca.Consumer,null,(function(e){var s=e.elementFactory,m=e.displaySettings,h={childNodes:o,layoutOrientation:n,elementId:p,groupClassName:ka(i),displayId:c,type:d,displaySettings:m,open:u};if(s&&s.canCreate(t.ElementType.modal,h,{}))return s.create(t.ElementType.modal,h);var f={position:"fixed",top:0,left:0,width:"100vw",height:"100vh",backgroundColor:"rgba(128,128,128,0.5)",display:u?"initial":"none"};return h.groupClassName=h.groupClassName.filter((function(e){return!Hr.startsWith(e,_e.pidlReact)})),a.createElement("div",{key:"".concat(r,"-modal"),id:"".concat(r,"-modal"),style:f,className:l.default(h.groupClassName)},a.createElement("dialog",{key:"".concat(r,"-modal-content"),id:"".concat(r,"-modal-content"),tabIndex:-1,open:!0,style:{position:"fixed",top:"50vh",left:"50vw",transform:"translate(-50%,-50%)",height:"75%",width:"50%",backgroundColor:"white",padding:"50px",overflow:"scroll"}},a.createElement(va.Provider,{value:"inline"===n},o)))}))},n}(a.Component),Za=Qi(Ya,["elementId","layoutOrientation","tags"]);Za.displayName="Modal";var Ja=function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=t.possibleOptions,i=t.displayId,a=t.maxLength,s=(0,di.getDivId)(r);t.eventHub.propertyCreating(s,{displayId:i,possibleOptions:o,maxLength:a},{})}return n}return fi(n,e),n.prototype.render=function(){for(var e,n=this,r=this.props,o=r.elementId,i=r.possibleOptions,s=r.accessibilityName,l=r.displayName,c=r.showDisplayName,d=r.propertyName,u=r.hidden,p=r.isPrefill,m=r.onSelect,h=r.disabled,f=r.required,g=r.displaySelectionText,v=r.onFocus,y=(r.onBlur,r.optionsElements),b=r.isSelectFirstItem,C=r.displayId,S=r.element,x=r.eventHub,k=r.styleHints,P=r.containerLayoutOrientation,I=r.setOpenDropdownId,w=r.openDropdownId,E=r.alwaysUpdateModelValue,_=r.tags,D=kt,T=di,R=T.getDivId,A=T.generateClassName,M=di.getId,N=M(D.htmlElementIdPrefixes.error,o),F=M(D.htmlElementIdPrefixes.input,o),H="input_".concat(o,"dummyLabel"),O=R(o),B=S.propertyElementRef,L="".concat(H," ").concat(N),V=[],z=0,W=Object.keys(i||{});z<W.length;z++){var U=W[z];if(i[U]){e=!p&&!b||e?e:U;var K=i[U],j=K.displayText,G=K.isDisabled,q=K.displayImageUrl,Y=K.styleHints;V.push({key:U,text:j,disabled:G,data:{imageUrl:q},styleHints:Y})}}!u&&Object.keys(i).length;var Z=function(e){x.propertySelected(F,d,O),v&&v(e)},J=function(e){var t=n.props,r=t.onBlur,o=t.element,i=t.eventHandler;i.propertyUnselectedHandler({id:Q,propertyName:d,divId:O}),r&&r(e),o.onfocusout&&i.invokePidlAction(o.onfocusout)},Q=R(o),X=A(null,D.htmlElementTypes.div,d,D.modelElementType.dropdown);return a.createElement(Ca.Consumer,null,(function(r){var o=r.elementFactory,i=r.theme;return function(e,t,n,r){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?a.createElement(a.Fragment,null,r):a.createElement("div",{id:t,className:n},r)}(o,Q,X,a.createElement(ya.Consumer,null,(function(r){var v={},b=v?v.style:void 0,S=r.errors[d]?r.errors[d].message:void 0,x=!!r.errors[d],D={disabled:h,inlineError:S,isInValidationErrorGroup:x,onBlur:J,onFocus:Z,optionsElements:y,required:f,showDisplayName:c,displayName:l,displayId:C,id:F,ariaLabelId:L,dropdownOptions:V,hidden:u||0===V.length,onChange:m,placeholder:p?void 0:g,value:r.values[d]&&r.values[d].toString()||e,style:b,propertyElementRef:B,theme:i,tags:_,styleHints:k,containerLayoutOrientation:P,setOpenDropdownId:I,openDropdownId:w,alwaysUpdateModelValue:E},T=o&&o.canCreate(t.ElementType.dropdown,D,{inlineError:!0,label:c}),R=null;R=T?o.create(t.ElementType.dropdown,D):n.renderDropdownElement(D);var A=!c||T&&T.label;return a.createElement(a.Fragment,null,function(e,t,r,o){return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?a.createElement(a.Fragment,null):a.createElement("label",{id:H,"aria-label":r,style:{display:o?"none":void 0},"aria-hidden":o},t,a.createElement("span",{className:"".concat(Q,"-asterisk")},n.props.required?"*":""))}(o,l,r.accessibilityText[d]||s,A),R,T&&T.inlineError?null:a.createElement(Ea,{propertyName:d}))})))}))},n.prototype.renderDropdownElement=function(e){var t=this,n=e.id,r=e.dropdownOptions,o=e.onChange,i=e.value,s=e.additionalClassName,c=e.hidden,d=e.disabled,u=e.required,p=e.placeholder,m=e.ariaLabelId,h=e.inlineError,f=e.onFocus,g=e.onBlur,v=e.isInValidationErrorGroup,y=p?a.createElement("option",{value:""},p):null,b=h||v&&!d,C=[];return r.forEach((function(e){var t=e.key,n=e.text,r=e.disabled;C.push(a.createElement("option",{value:t,key:t,disabled:r},n))})),a.createElement("select",{id:n,className:b?l.default(s,"pidlddc-errorstroke"):s,hidden:c,disabled:d,required:u,"aria-labelledby":m,onFocus:function(e){f&&e&&e.currentTarget&&f(e.currentTarget.value)},onBlur:function(e){g&&e&&e.currentTarget&&function(e){var n=t.props,r=n.onBlur,o=n.element,i=n.eventHandler;r&&r(e),o.onfocusout&&i.invokePidlAction(o.onfocusout)}(e.currentTarget.value)},onChange:function(e){o&&e&&e.target&&o(e.target.value)},value:i},y,C)},n}(a.Component),Qa=sa(Ja,["elementId","propertyName","possibleOptions","required","hidden","disabled","displayName","showDisplayName","displaySelectionText","accessibilityName","tags","isSelectFirstItem","displayId","styleHints","containerLayoutOrientation","alwaysUpdateModelValue"]);Qa.displayName="Dropdown";var Xa=function(e){var n=e.elementId,r=e.isInline;return a.createElement(Ca.Consumer,null,(function(e){return a.createElement(ba.Consumer,null,(function(o){var i=e.elementFactory,s=(e.displayOptions,e.displaySettings,o[n]?o[n].message:""),c={errorMessage:s};if(i&&i.canCreate(t.ElementType.error,c,{}))return i.create(t.ElementType.error,c);var d={className:l.default("pidlddc-group-error",{"d-none":!s},"text-danger"),id:"pidlddc-error-".concat(n),tabIndex:-1,role:"alert"};return r?a.createElement("span",gi({},d,{"aria-hidden":!s}),s):a.createElement("div",gi({},d,{"aria-hidden":!s}),s)}))}))};Xa.displayName="GroupError";var $a=Qi((function(e){var n=e.layoutOrientation,r=e.elementId,o=e.childNodes,i=e.tags,s=e.labelNode,c=e.element,d=c.displayId,u=c.type,p=c.isSubmitGroup,m=c.isHidden,h=e.styleHints,f=e.accessibilityName,g=e.gridColumn,v=e.gridRow,y=e.containerLayoutOrientation;return a.createElement(Ca.Consumer,null,(function(e){var c=e.elementFactory,b=e.displaySettings,C=di.getDivId;return a.createElement(va.Consumer,null,(function(e){var S;if(m||p&&!1===(null===(S=null===b||void 0===b?void 0:b.submitButtonBlock)||void 0===S?void 0:S.show))return null;var x=C(r),k=a.createElement(Xa,{elementId:r,isInline:e}),P={childNodes:o,errorNode:k,labelNode:s,layoutOrientation:n,elementId:x,groupClassName:ka(i),displayId:d,type:u,displaySettings:b,styleHints:h,isSubmitGroup:p,ariaLabel:f,gridColumn:g,gridRow:v,containerLayoutOrientation:y};return c&&c.canCreate(t.ElementType.group,P,{})?c.create(t.ElementType.group,P):(P.groupClassName=P.groupClassName.filter((function(e){return!Hr.startsWith(e,_e.pidlReact)})),a.createElement("div",{id:P.elementId,className:l.default(P.groupClassName)},s,a.createElement(va.Provider,{value:"inline"===n},o),k))}))}))}),["elementId","layoutOrientation","tags","accessibilityName","styleHints","containerLayoutOrientation"]);$a.displayName="Group";var es=$i((function(e){var n=e.layoutOrientation,r=e.elementId,o=e.children,i=e.tags,s=e.ariaLabelledBy,c=e.styleHints,d=e.containerLayoutOrientation,u="inline"===n,p=(0,di.getId)(kt.htmlElementIdPrefixes.div,r);return a.createElement(Ca.Consumer,null,(function(e){return function(e,n){var m={children:o,additionalClassName:l.default(ka(i)),elementId:r,ariaLabelledBy:s,styleHints:c,containerLayoutOrientation:d};return e&&e.canCreate(t.ElementType.textgroup,m,{})?e.create(t.ElementType.textgroup,m):(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?a.createElement(a.Fragment,null,n):a.createElement("div",{id:p,className:l.default({"d-inline-block":u},ka(i))},n)}(e.elementFactory,a.createElement(a.Fragment,null,o,a.createElement(Xa,{elementId:r,isInline:!0})))}))}),["elementId","layoutOrientation","tags","styleHints","containerLayoutOrientation"]);es.displayName="TextGroup";var ts=function(e){function n(t){var n=e.call(this,t)||this;if(t.eventHub){var r=t.elementId,o=(0,di.getDivId)(r);t.eventHub.captchaRendered(o)}return n}return fi(n,e),n.prototype.render=function(){var e=this.props,n=e.elementId,r=e.audioChildNodes,o=e.imageChildNodes,i=e.tags,s=e.element,c=e.required,d=s.displayId,u=s.type,p=s.id,m=s.displayName,h=s.showDisplayName,f=s.accessibilityName;return a.createElement(Ca.Consumer,null,(function(e){return a.createElement(ya.Consumer,null,(function(s){var g=e.elementFactory,v=di.getDivId,y="image"==s.values[p],b=v(n),C={audioChildNodes:r,imageChildNodes:o,elementId:b,captchaClassName:ka(i),displayId:d,type:u,showImageCaptcha:y,displayName:m,showDisplayName:h,required:c};if(g&&g.canCreate(t.ElementType.captcha,C,{}))return g.create(t.ElementType.captcha,C);var S=a.createElement("label",{className:l.default("pidlddc-label",h?"d-block":"d-none"),id:n,"aria-label":f},m);return C.captchaClassName=C.captchaClassName.filter((function(e){return!Hr.startsWith(e,_e.pidlReact)})),a.createElement("div",{id:C.elementId,className:l.default(C.captchaClassName)},S,y&&o,!y&&r)}))}))},n}(a.Component),ns=Xi(ts,["elementId","tags","required"]);ns.displayName="Captcha";var rs=function(e){var n=e.className,r=e.element,o=e.elementId,i=e.accessibilityName,a=e.tags,c=e.audioUrl,d=(0,di.getId)(kt.htmlElementIdPrefixes.audio,o),u=l.default(n,ka(a)),p=r.propertyElementRef;return s.default.createElement(Ca.Consumer,null,(function(e){var n=e.elementFactory,r=e.theme,o={id:d,additionalClassName:u,ariaLabel:i,propertyElementRef:p,theme:r,audioUrl:c};return n&&n.canCreate(t.ElementType.audio,o,{})?n.create(t.ElementType.audio,o):s.default.createElement("div",{id:d,className:u},s.default.createElement("audio",{"aria-label":i,src:c,controls:!0}))}))},os=ha(rs,["elementId","accessibilityName","tags","audioUrl"]);os.displayName="Audio";var is=ea((function(e){var n,r=e.elementId,o=e.pidlAction,i=e.displayContent,s=e.accessibilityName,c=e.tags,d=e.onClick,u=e.styleHints,p=e.gridColumn,m=e.gridRow,h=e.containerLayoutOrientation,f="javascript:void(null);",g=(0,di.getId)(kt.htmlElementIdPrefixes.hyperlink,r),v=l.default(ka(c)),y=null===(n=Pa(c))||void 0===n?void 0:n.includes("noUrl"),b=function(){d&&d({pidlAction:o,id:r})},C=function(e){e&&e.preventDefault&&e.preventDefault(),d&&d({pidlAction:o,id:r})};return a.createElement(Ca.Consumer,null,(function(e){var n=e.elementFactory,r=(e.displayOptions,e.displaySettings,e.theme),l={id:g,displayContent:i,additionalClassName:v,href:o&&o.context&&!y?o.context:f,ariaLabel:s,onClick:b,theme:r,styleHints:u,gridColumn:p,gridRow:m,containerLayoutOrientation:h};return n&&n.canCreate(t.ElementType.hyperlink,l,{})?n.create(t.ElementType.hyperlink,l):a.createElement("a",{id:g,href:o&&o.context&&Hr.isString(o.context)?o.context:f,"aria-label":s,className:v,onClick:C},i)}))}),["elementId","pidlAction","displayContent","accessibilityName","tags","styleHints","containerLayoutOrientation"]);is.displayName="Hyperlink";var as=ta((function(e){var n=e.accessibilityName,r=e.element,o=e.elementId,i=e.sourceUrl,s=e.codepoint,c=e.tags,d=e.styleHints,u=e.gridColumn,p=e.gridRow,m=e.containerLayoutOrientation,h=di.getId,f=kt;return a.createElement(Ca.Consumer,null,(function(e){var g,v=e.elementFactory,y={additionalClassName:l.default(ka(c)),ariaLabel:n||(null===(g=null===r||void 0===r?void 0:r.displayDescription)||void 0===g?void 0:g.accessibilityName),elementId:h(f.htmlElementIdPrefixes.image,o),sourceUrl:i,codepoint:s,styleHints:d,gridColumn:u,gridRow:p,containerLayoutOrientation:m};return v&&v.canCreate(t.ElementType.image,y,{})?v.create(t.ElementType.image,y):a.createElement("img",{id:y.elementId,src:i,alt:n,"aria-label":n,className:y.additionalClassName})}))}),["elementId","accessibilityName","sourceUrl","codepoint","tags","styleHints","containerLayoutOrientation"]);as.displayName="Image";var ss=fa((function(e){var n=e.displayId,r=e.sourceUrl,o=e.tags,i=e.styleHints,s=e.gridColumn,c=e.gridRow,d=e.containerLayoutOrientation,u=o&&o.accessibilityName?o.accessibilityName:void 0,p=di.getId,m=kt;return a.createElement(Ca.Consumer,null,(function(e){var h=e.elementFactory,f={additionalClassName:l.default(ka(o)),ariaLabel:u,elementId:p(m.htmlElementIdPrefixes.image,n),sourceUrl:r,styleHints:i,gridColumn:s,gridRow:c,containerLayoutOrientation:d};return h&&h.canCreate(t.ElementType.logo,f,{})?h.create(t.ElementType.logo,f):a.createElement("img",{className:l.default("pidlddc-logo-image","pidlddc-logoBlock",f.additionalClassName),id:f.elementId,src:r,alt:u,"aria-label":u,style:{width:"48px",height:"48px"}})}))}),["displayId","sourceUrl","tags","styleHints","containerLayoutOrientation"]);ss.displayName="LogoElement";var ls=function(e){function t(t){var n=e.call(this,t)||this;return n.onEvent=function(e){var t=n.props,r=t.sourceUrl,o=(t.expectedClientActionId,t.onChallengeIFrameMessage),i=t.onChallengeIFrameBusyTimerEnded,a=n.state.messageTimer;r&&e.origin&&0!==r.indexOf(e.origin)||(a&&(i(a),clearTimeout(a),n.setState({messageTimer:null})),o(e))},n.iframe=a.createRef(),n.state={executing:!0,width:t.element.width,height:t.element.height},n}return fi(t,e),t.prototype.updateHeight=function(e){this.setState({height:e})},t.prototype.componentDidMount=function(){var e=this.props,t=e.displayContent,n=e.sourceUrl,r=e.onChallengeIFrameMessageTimeout,o=e.messageTimeout,i=e.messageTimeoutClientAction,a=e.onChallengeIFrameBusyTimerStarted,s=e.onChallengeIFrameBusyTimerEnded,l=this.iframe.current,c=this.state.messageTimer;if(window.addEventListener(I.message,this.onEvent),!n&&t&&l){var d=l.contentDocument;d&&(d.open(),d.write(t),d.close())}if(!c&&o&&i){var u=window.setTimeout((function(){r(i),s(u)}),o);a(u),this.setState({messageTimer:u})}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=r.displayContent,i=r.sourceUrl,a=this.iframe.current;if(!i&&o&&e&&e.displayContent!==o&&a){var s=a.contentDocument;s&&(s.open(),s.write(o),s.close())}},t.prototype.componentWillUnmount=function(){window.removeEventListener(I.message,this.onEvent)},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,o=e.tags,i=e.sourceUrl,s=(e.containerLayoutOrientation,this.state),c=s.width,d=s.height,u={width:c,height:d},p=(0,di.getId)(kt.htmlElementIdPrefixes.iframe,t),m=(c||d)&&0===Number((c+d).replace(/\D/g,""))?0:void 0;return this.state.executing?a.createElement("iframe",{key:p,className:l.default(ka(o)),id:p,src:i,hidden:r,"aria-label":n,ref:this.iframe,style:u,frameBorder:m}):null},t}(a.Component),cs=ra((function(e){return a.createElement(Ca.Consumer,null,(function(n){var r=n.elementFactory,o=n.userContext,i=n.displayOptions,s=e.displayId,l=e.useAuth,c=e.containerLayoutOrientation,d={};l&&null!=(null===o||void 0===o?void 0:o.authToken)&&(d=function(e,t){var n,r;if("xboxCoBrandedCardIframe"===e)try{return{xuh:null===(n=t.split("=")[1])||void 0===n?void 0:n.split(";")[0],xt:null===(r=t.split("=")[1])||void 0===r?void 0:r.split(";")[1]}}catch($k){return{authorization:t}}return{authorization:t}}(s,o.authToken));var u=gi(gi({},e),{headers:d,useWebView2:i.useWebView2||!1,containerLayoutOrientation:c});return r&&r.canCreate(t.ElementType.challengeIframe,u,{})?r.create(t.ElementType.challengeIframe,u):a.createElement(ls,gi({},u,{ref:u.challengeIFrameElementRef}))}))}),["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","expectedClientActionId","messageTimeout","messageTimeoutClientAction","useAuth","loadingMessage","containerLayoutOrientation"]),ds=function(e){function t(t){var n=e.call(this,t)||this;return n.defaultMessageTimeout=3e3,n.resetTimer=function(e){var t=n.props.messageTimeout;n.state.messageTimer&&clearTimeout(n.state.messageTimer),n.setState({messageTimer:setTimeout(e,t||n.defaultMessageTimeout)})},n.clearTimer=function(){n.state.messageTimer&&(clearTimeout(n.state.messageTimer),n.setState({messageTimer:void 0}))},n.onEvent=function(e){var t,r,o=n.props,i=o.sourceUrl,a=o.frameName,s=o.onIFrameMessage,l=o.isIFrameEligible,c=o.onIFrameBusyTimerEnded,d=n.state.messageTimer;if(!((null===(t=e.data)||void 0===t?void 0:t.source)!==a||i&&e.origin&&0!==i.indexOf(e.origin))){if((null===(r=e.data)||void 0===r?void 0:r.messageType)===qe.isEligible&&void 0!==d){var u=e.data.isEligible||!1,p=e.data.pmType;return n.clearTimer(),l(p||a,u),c(0),void n.setState({isEligible:u})}s(e)}},n.onExpressCheckoutLoad=function(){var e=n.props,t=e.onIFrameLoadHandler,r=e.frameName,o=e.payload,i=e.sourceUrl;t(r,o,new URL(i).origin)},n.expressCheckoutButtonIFrameRef=a.createRef(),n.state={isEligible:!1,width:t.element.width,height:t.element.height},n}return fi(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.frameName,n=e.isIFrameEligible,r=e.onIFrameBusyTimerStarted;window.addEventListener(I.message,this.onEvent),r(0),this.resetTimer((function(){return n(t,!1)}))},t.prototype.componentWillUnmount=function(){window.removeEventListener(I.message,this.onEvent),this.clearTimer()},t.prototype.render=function(){var e=this.props,t=e.displayId,n=e.accessibilityName,r=e.hidden,o=e.tags,i=e.sourceUrl,s=e.frameName,c=this.state,d=c.isEligible,u=c.width,p=c.height,m=(0,di.getId)(kt.htmlElementIdPrefixes.iframe,t),h=new URL(i).origin,f=(u||p)&&0===Number((u+p).replace(/\D/g,""))?0:void 0,g={width:u,height:p};return g.display=d?"inline":"none",a.createElement("iframe",{key:m,className:l.default(ka(o)),id:m,src:i,name:s,hidden:r,"aria-label":n,ref:this.expressCheckoutButtonIFrameRef,style:g,onLoad:this.onExpressCheckoutLoad,frameBorder:f,allow:"payment ".concat(h)})},t}(a.Component),us=function(e){return a.createElement(Ca.Consumer,null,(function(t){var n=t.displayOptions,r=gi(gi({},e),{headers:{},useWebView2:n.useWebView2||!1});return a.createElement(ds,gi({},r,{ref:r.expressCheckoutButtonElementRef}))}))},ps=oa(us,["displayId","accessibilityName","hidden","tags","displayContent","sourceUrl","frameName","payload","messageTimeout"]),ms=function(e){function n(t){return e.call(this,t)||this}return fi(n,e),n.prototype.render=function(){var e=this.props,n=e.element,r=e.elementId,o=e.possibleOptions,i=e.accessibilityName,s=e.displayName,c=e.showDisplayName,d=e.propertyName,u=e.disabled,p=e.required,m=e.hidden,h=e.onSelect,f=e.tags,g=e.optionsElements,v=e.styleHints,y=[];for(var b in o)o.hasOwnProperty(b)&&y.push({key:b,value:o[b].key||b,isDisabled:o[b].isDisabled,displayText:o[b].displayText,displayImageUrl:o[b].displayImageUrl});return a.createElement(Ca.Consumer,null,(function(e){return a.createElement(va.Consumer,null,(function(o){return a.createElement(ya.Consumer,null,(function(b){var C,S=e.elementFactory,x=(e.displayOptions,e.displaySettings,e.theme),k=di.getId,P=kt,I=k(P.htmlElementIdPrefixes.div,r),w={elementId:r,isInline:o,hidden:m,options:y,optionsElements:g,ariaLabel:b.accessibilityText[d]||i,showDisplayName:c,displayName:s||n.displayName,additionalClassName:l.default(ka(f)),onSelect:h,disabled:u,propertyName:d,required:p,invalid:!1,selectedValue:b.values[d]&&b.values[d].toString(),propertyElementRef:n.propertyElementRef,theme:x,styleHints:v},E=S&&S.canCreate(t.ElementType.radio,w,{});return E?(null===(C=null===S||void 0===S?void 0:S.isReactNative)||void 0===C?void 0:C.call(S))?S.create(t.ElementType.radio,w):a.createElement("div",{id:I,className:l.default(I,k(P.htmlElementIdPrefixes.div,n.displayId))},S.create(t.ElementType.radio,w),E&&E.inlineError?null:a.createElement(Ea,{propertyName:d})):a.createElement("div",{className:l.default("pidlddc-input-".concat(r))},y.map((function(e){var t="input_".concat(r,"_").concat(e.value),n="".concat(t,"_displayTextLabel");return a.createElement("div",{key:t},a.createElement("label",{id:"".concat(t,"_displayNameLabel"),"aria-label":w.ariaLabel,className:l.default({"pidlddc-hidden":!c}),"aria-hidden":!c},s),a.createElement("div",{className:l.default(ka(f))},a.createElement("label",{id:n,htmlFor:t,"aria-label":e.displayText,onClick:function(){return e.isDisabled||u?null:h(e.value)}},a.createElement("input",{id:t,type:"radio",name:"radio-input-".concat(d),disabled:e.isDisabled||u,required:p,"aria-labelledby":n,value:e.value,onChange:function(){return h(e.value)},checked:w.selectedValue===e.value}),g&&g[e.value]?g[e.value]:e.displayText)))})),a.createElement(Ea,{propertyName:d}))}))}))}))},n}(a.Component),hs=ua(ms,["elementId","propertyName","possibleOptions","required","hidden","disabled","showDisplayName","accessibilityName","tags","styleHints"]);hs.displayName="Radio";var fs=function(e){var n=e.elementId,r=e.displayContent,o=e.tags,i=e.styleHints,s=e.containerLayoutOrientation,c=l.default(ka(o)),d=(0,di.getId)(kt.htmlElementIdPrefixes.text,n),u=e.element.isHidden;return a.createElement(Ca.Consumer,null,(function(e){var n=e.elementFactory,l=(e.displayOptions,e.displaySettings,e.theme),p={id:d,elementId:d,displayContent:r,additionalClassName:c,theme:l,styleHints:i,containerLayoutOrientation:s,elementHtmlAttributes:wa(o)};return u?null:n&&n.canCreate(t.ElementType.heading,p,{})?n.create(t.ElementType.heading,p):a.createElement("h2",{id:d,className:c},r)}))},gs=ea(fs,["elementId","displayContent","tags","styleHints","containerLayoutOrientation"]);gs.displayName="Heading";var vs=function(e){var n=e.elementId,r=e.displayContent,o=e.tags,i=e.styleHints,s=e.containerLayoutOrientation,c=l.default(ka(o)),d=(0,di.getId)(kt.htmlElementIdPrefixes.text,n);return a.createElement(Ca.Consumer,null,(function(e){var n=e.elementFactory,l=(e.displayOptions,e.displaySettings,e.theme),u={id:d,elementId:d,displayContent:r,additionalClassName:c,theme:l,styleHints:i,containerLayoutOrientation:s,elementHtmlAttributes:wa(o)};return n&&n.canCreate(t.ElementType.subheading,u,{})?n.create(t.ElementType.subheading,u):a.createElement("h3",{id:d,className:c},r)}))},ys=ea(vs,["elementId","displayContent","tags","styleHints","containerLayoutOrientation"]);ys.displayName="SubHeading";var bs=function(e){var n=e.elementId,r=e.displayContent,o=e.tags,i=e.styleHints,s=e.gridColumn,c=e.gridRow,d=e.hidden,u=e.containerLayoutOrientation,p=e.accessibilityName,m=(0,di.getId)(kt.htmlElementIdPrefixes.text,n),h=Pa(o),f=l.default(ka(o)),g=d?{display:"none"}:void 0;return a.createElement(va.Consumer,null,(function(e){return a.createElement(Ca.Consumer,null,(function(n){var l=n.elementFactory,v=(n.displayOptions,n.displaySettings,n.theme),y={id:m,displayContent:r,additionalClassName:f,inline:e,theme:v,hidden:d,styleHints:i,gridColumn:s,gridRow:c,containerLayoutOrientation:u,accessibilityName:p,tags:o,elementHtmlAttributes:wa(o)};if(l){if(d&&(null===l||void 0===l?void 0:l.isReactNative)&&l.isReactNative())return;var b={displayContent:r,elementId:m,theme:v};if(h.indexOf("labelText")>=0&&l.canCreate(t.ElementType.label,y,{}))return l.create(t.ElementType.label,b);if(l.canCreate(t.ElementType.text,y,{}))return l.create(t.ElementType.text,y)}return e?a.createElement("span",{id:m,className:f,style:g},r):a.createElement("p",{id:m,className:f,style:g},r)}))}))},Cs=ea(bs,["elementId","displayContent","tags","styleHints","hidden","containerLayoutOrientation","accessibilityName"]);Cs.displayName="Text";var Ss=function(e){function t(n){var r=e.call(this,n)||this;return r.getTransformedLength=function(e,t,n){var r=t.substr(0,n),o=Nr.applyDisplayTransformation(e.forModel,r);return(o=Nr.applyDisplayTransformation(e.forFormat,o)).length},r.onFocus=function(e){var t=r.props.onFocus;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onBlur=function(e){var t=r.props.onBlur;t&&e&&e.currentTarget&&t(e.currentTarget.value)},r.onChange=function(e){var n=r.props,o=n.element,i=n.onChange,a=n.id,s=o.displayTransformations;t.caretPosition={id:a,start:e.currentTarget.selectionStart,end:e.currentTarget.selectionEnd,direction:"forward"===e.currentTarget.selectionDirection?"forward":"backward"===e.currentTarget.selectionDirection?"backward":"none"};var l=e.currentTarget.value;if(s&&s.forModel&&s.forFormat&&(t.caretPosition.start=r.getTransformedLength(s,l,t.caretPosition.start),t.caretPosition.end=r.getTransformedLength(s,l,t.caretPosition.end)),i){var c=e.currentTarget.value;s&&s.forModel&&(c=Nr.applyDisplayTransformation(s.forModel,c)),i(c)}},r.onCompositionStart=function(e){r.inComposition=!0},r.onCompositionEnd=function(e){r.inComposition=!1},r.htmlInput=a.createRef(),r.inComposition=!1,r}return fi(t,e),t.prototype.componentDidUpdate=function(){this.props.id===t.caretPosition.id&&this.htmlInput.current.setSelectionRange(t.caretPosition.start,t.caretPosition.end,t.caretPosition.direction)},t.prototype.render=function(){var e=this.props,t=e.element,n=e.additionalClassName,r=e.id,o=e.maskInput,i=e.maxLength,s=e.required,c=e.hidden,d=e.disabled,u=e.placeholder,p=e.ariaLabelId,m=e.inlineError,h=(e.onFocus,e.onBlur,e.onChange,e.isInValidationErrorGroup),f=(e.styleHints,this.props.value),g=t.displayTransformations,v=m||h&&!d;return!this.inComposition&&g&&g.forFormat&&(f=Nr.applyDisplayTransformation(g.forFormat,f)),a.createElement("input",{type:o?"password":"text",className:v?l.default(n,"pidlddc-errorstroke"):n,id:r,ref:this.htmlInput,maxLength:i,required:s,hidden:c,disabled:d,value:f,placeholder:u,"aria-labelledby":p,onFocus:this.onFocus,onBlur:this.onBlur,onChange:this.onChange,onCompositionStart:this.onCompositionStart,onCompositionEnd:this.onCompositionEnd})},t.caretPosition={id:null,start:0,end:0,direction:"none"},t}(a.Component),xs=function(e){function n(t){var n=e.call(this,t)||this;return n.onChange=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,ve.editing)},n.onBlur=function(e){var t=n.props;(0,t.onUpdateValue)(t.propertyName,e,ve.finished)},n.onSelected=function(e,t,r){n.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:r})},n.onUnselected=function(e,t,r){n.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:r})},n.onFocusInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,i=t.displayOptions,a=t.onFocus,s=di,l=s.getDivId,c=s.getId,d=l(r),u=c(i.inputPropertyIdPrefix,o);n.onSelected&&n.onSelected(u,o,d),a&&a(e)},n.onBlurInternal=function(e){var t=n.props,r=t.elementId,o=t.propertyName,i=t.displayOptions,a=t.element,s=t.eventHandler,l=di,c=l.getDivId,d=l.getId,u=c(r),p=d(i.inputPropertyIdPrefix,o);n.onUnselected&&n.onUnselected(p,o,u),n.onBlur&&n.onBlur(e),a.onfocusout&&s.invokePidlAction(a.onfocusout)},n}return fi(n,e),n.prototype.render=function(){var e=this;return a.createElement(Ca.Consumer,null,(function(n){return a.createElement(ya.Consumer,null,(function(r){var o=n.elementFactory,i=n.displayOptions,s=n.theme,c=e.props,d=c.elementId,u=c.element,p=c.required,m=c.disabled,h=c.hidden,f=c.propertyName,g=c.maxLength,v=c.displayHelpName,y=c.displayImage,b=c.tags,C=void 0===b?{}:b,S=c.placeHolderText,x=c.showKeyLogo,k=c.resolvedLogo,P=c.displayHelpChildren,I=(c.onFocus,c.displayId),w=c.accessibilityName,E=c.accessibilityHint,_=c.styleHints,D=c.containerLayoutOrientation,T=u.displayName,R=u.showDisplayName,A=u.displayDescription,M=u.propertyElementRef,N=kt,F=di,H=F.getDivId,O=F.getId,B=F.generateClassName,L=F.concatClassName,V=H(d),z=O(i.inputPropertyIdPrefix,f),W={inlineError:!0},U=r.errors[f]?r.errors[f].message:void 0,K=!!r.errors[f],j=R?a.createElement(Ma,{element:u}):null,G={id:d},q=v||y?a.createElement(Fa,gi({},G,{element:u,children:P,elementFactory:o})):null,Y={disabled:m,displayName:T,hidden:h,inlineError:U,isInValidationErrorGroup:K,maskInput:A&&A.maskInput,maxLength:g,onBlur:e.onBlurInternal,onChange:e.onChange,onFocus:e.onFocusInternal,required:p,showDisplayName:R,inlineHelpLink:q,additionalClassName:l.default(ka(C)),ariaLabelId:"pidlddc-label-".concat(f," pidlddc-error-").concat(f),id:z,inlineLogo:x&&k,placeholder:S,value:r.values[f]&&r.values[f].toString()||"",propertyName:f,displayId:I,propertyElementRef:M,ariaLabel:w,accessibilityHint:E,theme:s,styleHints:_,containerLayoutOrientation:D,tags:C},Z=null;(W=o&&o.canCreate(t.ElementType.textBox,Y,W))?(Z=o.create(t.ElementType.textBox,Y),W.label&&(j=null),W.inlineHelpLink&&(q=null)):Z=a.createElement(Ss,gi({},Y,{element:u}));var J,Q=B(null,N.htmlElementTypes.div,f,N.modelElementType.textBox);return I&&(Q=L(Q,H(I))),J=a.createElement(a.Fragment,null,j&&q&&u.displayHelpPosition!==Ue.floatRight?a.createElement("span",null,j," ",q):j,q&&u.displayHelpPosition===Ue.floatRight?a.createElement("span",null,Z," ",q):Z,j&&q?null:q,W&&W.inlineError?null:a.createElement(Ea,{propertyName:f})),(null===o||void 0===o?void 0:o.isReactNative)&&o.isReactNative()?a.createElement(a.Fragment,null,J):a.createElement("div",{id:V,className:Q},J)}))}))},n}(a.Component),ks=ca(xs,["elementId","tags","propertyName","displayHelpName","maxLength","required","hidden","disabled","showKeyLogo","resolvedLogo","placeHolderText","displayImage","displayId","accessibilityName","accessibilityHint","styleHints","containerLayoutOrientation","tags"]);ks.displayName="TextBox";var Ps=function(e){function n(t){var n=e.call(this,t)||this;return n.pidlInstanceRef=a.createRef(),t.pidlInstanceRefs[t.pidlInstance]=n.pidlInstanceRef,n}return fi(n,e),n.prototype.render=function(){var e=this,n=this.props,r=n.elementId,o=n.tags,i=n.pidlInstance,s=n.disabled,c=n.hidden;if(s)return null;var d=(0,di.getId)(kt.htmlElementIdPrefixes.pidlInstance,r),u=l.default(ka(o));return a.createElement(Ca.Consumer,null,(function(n){var r=n.elementFactory,o=n.pidlInstanceContexts,l=n.userContext,p=n.displayOptions,m=n.env,h=n.returnOptions,f=null;o&&o[i]&&(f=o[i]);var g=i,v={id:d,additionalClassName:u,pidlInstance:i,disabled:s,pidlInstanceKey:g};return r&&r.canCreate(t.ElementType.pidlInstance,v,{})?r.create(t.ElementType.pidlInstance,v):f?function(){if(c)return a.createElement(a.Fragment,null);switch(f.action){case"addResource":return a.createElement(il,{key:i,userContext:l,pidlDocInfo:f.pidlDocInfo,displayOptions:p,env:m,returnOptions:h,pidlInstanceKey:g,ref:e.pidlInstanceRef,elementFactory:r});case"selectResource":return a.createElement(Hl,{key:i,userContext:l,pidlDocInfo:f.pidlDocInfo,displayOptions:p,env:m,pidlInstanceKey:g,returnOptions:h,ref:e.pidlInstanceRef,elementFactory:r})}}():null}))},n}(a.Component),Is=aa(Ps,["elementId","tags","pidlInstance","disabled","hidden"]);Is.displayName="PidlInstance";var ws=function(){function e(e){this.group=e}return e.prototype.addChild=function(e){return this.group.members||(this.group.members=[]),this.group.members.push(e),this},e.prototype.addHeading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:vt.heading})},e.prototype.addSubheading=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:vt.subheading})},e.prototype.addText=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:vt.text})},e.prototype.addGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:vt.group,layoutOrientation:yt.vertical,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addInlineGroup=function(t,n,r){void 0===r&&(r=!1),this.group.members||(this.group.members=[]);var o={displayId:t,isSubmitGroup:r,displayType:vt.group,layoutOrientation:yt.inline,displayName:n||"",members:[]};return this.group.members.push(o),new e(o)},e.prototype.addExpression=function(e,t){return this.addChild({displayId:e,displayContent:t,displayType:vt.expression})},e.prototype.addTextGroup=function(t,n){this.group.members||(this.group.members=[]);var r={displayId:t,isSubmitGroup:!1,displayType:vt.textGroup,layoutOrientation:yt.inline,displayName:n||"",members:[]};return this.group.members.push(r),new e(r)},e.prototype.addSubmitGroup=function(e,t){return this.addInlineGroup(e,t,!0)},e.prototype.addButton=function(e,t,n,r){return void 0===r&&(r={}),this.addChild(gi({displayId:e,pidlAction:n,displayContent:t,displayType:"button",tags:{accessibilityName:t}},r))},e.prototype.addSubmitButton=function(e,t,n){return n=gi({type:"submit",isDefault:!0},n),this.addButton(e,t,n,{isHighlighted:!0})},e.prototype.addCancelButton=function(e,t,n){return n=gi({type:"gohome"},n),this.addButton(e,t,n,{isBack:!0})},e}(),Es=function(e){var t=this;this.addDataDescription=function(e,n){return t.dataDescription[e]=n,t},this.addPage=function(e,n){var r={displayId:e,displayName:n,members:[],displayType:vt.page};return t.pages.push(r),new ws(r)},this.build=function(){return{identity:t.identity,data_description:t.dataDescription,displayDescription:t.pages}},this.identity=e,this.dataDescription={},this.pages=[]},_s=function(e){var t=this;this.required=function(e,n){return t.validations.push({error_code:e,error_message:n,validationType:pt.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{1,128}$"}),t},this.hasLetters=function(e,n,r){var o="number"===typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:pt.regex,regex:"^(?!^[\\u0009\\u000A\\u000D\\u0020\\u2000-\\u200B]*$)[\\u0009\\u000A\\u000D\\u0020-\\uD7FF\\uE000-\\uFFFD\\u10000-\\u10FFFF]{".concat(o,"}$")}),t},this.alphanumeric=function(e,n,r){var o="number"===typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:pt.regex,regex:"^[A-Za-z0-9]{".concat(o,"}$")}),t},this.numeric=function(e,n,r){var o="number"===typeof r?r:"".concat(r[0],",").concat(r[1]);return t.validations.push({error_code:e,error_message:n,validationType:pt.regex,regex:"^\\d{".concat(o,"}$")}),t},this.exactly=function(e,n,r){return r=Array.isArray(r)?r.join("|"):r,t.validations.push({error_code:e,error_message:n,validationType:pt.regex,regex:"^".concat(r,"$")}),t},this.validations=e},Ds=function(e,t){var n=this;this.validations=[],this.possibleValues=null,this.possibleOptions=null,this.dataCollectionSource=null,this.defaultValue=null,this.isDisabled=null,this.setDataCollectionSource=function(e,t,r){return n.dataCollectionSource=e,n.possibleOptions={},n.possibleOptions[t]={displayText:r,isDisabled:!1},n},this.validate=function(){return new _s(n.validations)},this.setPossibleValues=function(e){n.possibleOptions={};for(var t=0,r=Object.keys(e);t<r.length;t++){var o=r[t];n.possibleOptions[o]={displayText:e[o],isDisabled:!1}}return n.possibleValues=e,n},this.setDisabled=function(){return n.isDisabled=!0,n},this.setDefaultValue=function(e){return n.defaultValue=e,n},this.buildData=function(){var e={validations:n.validations};return n.validations.length>0&&(e.validation=n.validations[0]),n.dataCollectionSource&&(e.possible_values={}),n.defaultValue&&(e.default_value=n.defaultValue),gi(gi({},n.base),e)},this.buildDisplay=function(e){var t=n.propertyName,r={};n.dataCollectionSource?(r.dataCollectionSource=n.dataCollectionSource,r.possibleOptions=n.possibleOptions):n.possibleValues&&(r.possibleValues={},r.possibleOptions={},Object.keys(n.possibleValues).forEach((function(e){var t=n.possibleValues&&n.possibleValues[e];t&&(r.possibleValues[e]=t,r.possibleOptions[e]={displayText:t,isDisabled:!1})})),r.displaySelectionText="--- ".concat(t," ---"));var o=n.validations[0],i=o?{defaultErrorMessage:o.error_message,fromErrorCode:[{errorCode:o.error_code,errorMessage:o.error_message}]}:{},a=!!n.isDisabled;return gi(gi({displayName:t,showDisplayName:"true",displayId:"display_".concat(t),displayType:"property",propertyName:t,tags:{accessibilityName:t},displayErrorMessages:i,isDisabled:a},r),e)},this.propertyName=e,this.base=t||{propertyType:"userData",type:"string",dataType:"string",is_updatable:!0}},Ts=function(e){var t=e.displayId,n=e.required,r=e.disabled,o=e.hidden,i=e.elementId,s=e.propertyName,l=e.displayName,c=e.accessibilityName,d=e.onChange,u=e.tags,p=e.element,m=(0,e.getMultiPropertySelectorPossibleOptions)(p.pidlIdentity),h=o||!m;return a.createElement(ja,{element:p,elementId:i,required:n,hidden:h,disabled:r,propertyName:s,displayName:l,accessibilityName:c,onChange:function(e){return d(e)},displayId:t,useDisplayIdAsKeyForCheckState:!0,tags:u})},Rs=da(Ts,["elementId","propertyName","accessibilityName","displayName","displayId","required","hidden","disabled","tags"]);Rs.displayName="PrefillCheckBox";var As=ea((function(e){var n=e.elementId,r=e.tags,o=(0,di.getId)(kt.htmlElementIdPrefixes.separator,n),i=l.default(ka(r));return a.createElement(Ca.Consumer,null,(function(e){var n=e.elementFactory,r={id:o,additionalClassName:i};return n&&n.canCreate(t.ElementType.separator,r,{})?n.create(t.ElementType.separator,r):a.createElement("hr",{id:o,className:i})}))}),["elementId","tags"]);As.displayName="Separator";var Ms=ea((function(e){var n=e.elementId,r=e.tags,o=e.containerLayoutOrientation,i=(0,di.getId)(kt.htmlElementIdPrefixes.spinner,n),s=l.default(ka(r));return a.createElement(Ca.Consumer,null,(function(e){var r=e.elementFactory,l={elementId:n,additionalClassName:s,containerLayoutOrientation:o};return r&&r.canCreate(t.ElementType.spinner,l,{})?r.create(t.ElementType.spinner,l):a.createElement("hr",{id:i,className:s})}))}),["elementId","tags","containerLayoutOrientation"]);Ms.displayName="Spinner";var Ns=function(e){function n(t){var n,r,o=this;(o=e.call(this,t)||this).onLoadEventHandler=function(){var e=o.props,t=e.element;e.eventHandler.resolveSecurePropertyLoadedPromise(t.id)},o.onMessageEvent=function(e){var t,n,r,i,a,s,l=o.props,c=l.sourceUrl,d=l.propertyName,u=l.displayId,p=l.eventHandler,m=di,h=m.getDivId,f=m.getId,g=kt,v=h(u),y=f(g.htmlElementIdPrefixes.secureProperty,d);(null===e||void 0===e?void 0:e.origin)&&0!==(null===c||void 0===c?void 0:c.indexOf(e.origin))||((null===(t=null===e||void 0===e?void 0:e.data)||void 0===t?void 0:t.event)!==g.SecureFieldEvent.focused||(null===(n=null===e||void 0===e?void 0:e.data)||void 0===n?void 0:n.field)!==d?(null===(r=null===e||void 0===e?void 0:e.data)||void 0===r?void 0:r.event)!==g.SecureFieldEvent.blurred||(null===(i=null===e||void 0===e?void 0:e.data)||void 0===i?void 0:i.field)!==d?(null===(a=null===e||void 0===e?void 0:e.data)||void 0===a?void 0:a.source)===g.SecureFieldConstants.secureFieldMessageSource&&(null===(s=null===e||void 0===e?void 0:e.data)||void 0===s?void 0:s.field)===d&&p.secureFieldMessageHandler(e):o.onBlurInternal(y,e.data.field,v):o.onFocusInternal(y,e.data.field,v))},o.onFocusInternal=function(e,t,n){o.props.eventHandler.propertySelectedHandler({id:e,propertyName:t,divId:n})},o.onBlurInternal=function(e,t,n){o.props.eventHandler.propertyUnselectedHandler({id:e,propertyName:t,divId:n})},o.computeStyles=function(){var e=di,t=e.generateClassName,n=e.getPropertyClassName,r=e.concatClassName,i=kt,a=o.props,s=a.propertyName,c=a.tags,d=a.eventHandler,u=t(null,i.htmlElementTypes.textBox,s);u=r(u,n(s)),u=r(u,l.default(ka(c))),d.computeSecurePropertyStyles(s,o.securePropertyHardCodedStyles)},o.getStylesFromHints=function(e){if(e){for(var t={},n=0,r=e;n<r.length;n++)switch(r[n].toLowerCase()){case"width-fill":t=gi(gi({},t),{width:"100%"});break;case"width-half":t=gi(gi({},t),{width:"50%"});break;case"width-quarter":t=gi(gi({},t),{width:"25%"})}return t}},o.iframe=a.createRef(),o.state={executing:!0,width:null===(n=t.element)||void 0===n?void 0:n.width,height:null===(r=t.element)||void 0===r?void 0:r.height};var i=t.eventHub,s=t.element,c=t.displayId,d=t.frameName,u=t.propertyName,p=t.sourceUrl;return null===i||void 0===i||i.propertyCreating(null===s||void 0===s?void 0:s.id,{displayId:c,frameName:d,propertyName:u,sourceUrl:p},{}),o}return fi(n,e),n.prototype.componentDidMount=function(){var e=this.props,t=e.element,n=e.eventHandler;t.propertyElementRef&&t.setFocus(),this.computeStyles(),window.addEventListener(I.message,this.onMessageEvent),n.createSecurePropertyLoadedPromise(t.id),n.createSecurePropertyInitCompletedPromise(t.id)},n.prototype.componentWillUnmount=function(){window.removeEventListener(I.message,this.onMessageEvent)},n.prototype.render=function(){var e=this;return a.createElement(Ca.Consumer,null,(function(n){return a.createElement(ya.Consumer,null,(function(r){var o,i=n.elementFactory,s={},c=e.props,d=c.displayId,u=c.propertyName,p=c.accessibilityName,m=c.hidden,h=c.tags,f=c.sourceUrl,g=c.frameName,v=c.element,y=c.labelNode,b=c.displayHelpName,C=c.displayImage,S=c.displayHelpChildren,x=c.styleHints,k=e.state,P={width:k.width,height:k.height},I=di,w=I.getId,E=I.getDivId,_=I.generateClassName,D=I.concatClassName,T=kt,R=w(T.htmlElementIdPrefixes.secureProperty,u),A=E(d),M=_(null,T.htmlElementTypes.div,null,T.modelElementType.secureProperty);u&&(M=D(M,E(u)));var N=_(null,T.htmlElementTypes.secureProperty);h&&(N=D(N,l.default(ka(h))));var F={id:d},H=b||C?a.createElement(Fa,gi({},F,{element:v,children:S,elementFactory:i})):null;(s=i&&i.canCreate(t.ElementType.secureProperty,null,s))&&(e.securePropertyHardCodedStyles=s.securePropertyHardCodedStyles,(null===(o=s.securePropertyHardCodedStyles)||void 0===o?void 0:o.secureIframeDimensions)&&(P=gi({},s.securePropertyHardCodedStyles.secureIframeDimensions)),s.inlineHelpLink||(H=null)),x&&(P=gi(gi({},P),e.getStylesFromHints(x)));var O=a.createElement("iframe",{className:N,id:R,src:f,hidden:m,"aria-label":p,ref:e.iframe,style:gi(gi({},P),{verticalAlign:"middle"}),sandbox:"allow-same-origin allow-scripts",name:g,frameBorder:"0",onLoad:e.onLoadEventHandler});return e.state.executing?a.createElement("div",{id:A,className:M},y&&H&&v.displayHelpPosition===Ue.floatRight?a.createElement("span",null,y," ",H):y,H?a.createElement("span",null,H," ",O):O,a.createElement(Ea,{propertyName:u})):null}))}))},n}(a.Component),Fs=ia(Ns,["displayId","propertyName","displayHelpName","displayImage","accessibilityName","hidden","frameName","tags","sourceUrl","styleHints"]),Hs=function(e){var n=e.element,r=e.elementId,o=e.hidden,i=e.required,s=e.disabled,c=e.displayId,d=e.displayHelpName,u=e.displayImage,p=e.showDisplayName,m=e.displayName,h=e.accessibilityName,f=e.displayHelpChildren;return p?a.createElement(Ca.Consumer,null,(function(e){var g=e.elementFactory,v=(0,di.getId)(kt.htmlElementIdPrefixes.label,r),y={id:c},b=d||u?a.createElement(Fa,gi({},y,{element:n,children:f,elementFactory:g})):null,C={disabled:s,required:i,elementId:v,displayContent:m,inlineHelpLink:b};return(null===g||void 0===g?void 0:g.canCreate(t.ElementType.securePropertyLabel,C,{}))?g.create(t.ElementType.securePropertyLabel,C):a.createElement("label",{className:l.default("pidlddc-label",o||!p?"d-none":"d-block"),id:C.elementId,"aria-label":h},m,a.createElement("span",{className:"".concat(C.elementId,"-asterisk")},i?"*":""))})):null};Hs.displayName="SecurePropertyLabelInner";var Os=ia(Hs,["elementId","hidden","displayName","displayId","displayHelpName","displayImage","showDisplayName","accessibilityName","required"]);function Bs(e,t,n,r,o,i,s,l){var c;if(!e.canBeRendered())return null;var d=e,u=d.getPropertyName&&d.getPropertyName()||"";if(!e.isText()&&e.hidden())return null;var p,m,h,f={element:e},g=e.displayHelp,v=e.operationType,y=F;switch(e.type){case y.page:return e.children&&e.children.map?e.children.map(Ls(t,n,r,o,i,s,l)):null;case y.dataCollectionBindingGroup:case y.group:var b=gi(gi({},f),{childNodes:e.children&&e.children.map?e.children.map(Ls(t,n,r,o,i,s,l)):null,labelNode:a.createElement(qa,gi({},f))});return vr(e)&&e.isModalGroup?a.createElement(Za,gi({},b,{ref:e.groupElementRef})):a.createElement($a,gi({},b));case y.captcha:return a.createElement(Sa.Consumer,null,(function(s){var l=gi({},t),c=gi({},t);l.buttonClickHandler=function(){var t=e.id;l.captchaHyperlinkClickHandler(t,"image",ve.finished)},c.buttonClickHandler=function(){var t=e.id;c.captchaHyperlinkClickHandler(t,"audio",ve.finished)};var d=gi(gi({},f),{audioChildNodes:e.audioChildren&&e.audioChildren.map?e.audioChildren.map(Ls(l,n,r,o,i)):null,imageChildNodes:e.imageChildren&&e.imageChildren.map?e.imageChildren.map(Ls(c,n,r,o,i)):null});return a.createElement(ns,gi({},d,{eventHub:s}))}));case y.textGroup:var C=void 0;return e.children&&e.children[0]&&e.children[0].id&&(C=di.getId(R.text,e.children[0].id)),a.createElement(es,gi({},f,{ariaLabelledBy:C}),a.createElement(va.Provider,{value:!0},e.children&&e.children.map?e.children.map(Ls(t,n,r,o,i)):null));case y.heading:return a.createElement(gs,gi({},f));case y.subheading:return a.createElement(ys,gi({},f));case y.text:return a.createElement(Cs,gi({},f));case y.hyperlink:return a.createElement(is,gi({onClick:(h=e.pidlAction,!h||h.type!==z.navigate&&h.type!==z.redirect?e.pidlAction?function(){var n;return t.buttonClickHandler({id:e.id,pidlAction:e.pidlAction,value:null===(n=e.pidlAction)||void 0===n?void 0:n.context,dest:""})}:t.buttonClickHandler:t.hyperlinkClickHandler)},f));case y.image:return a.createElement(as,gi({},f));case y.logo:var S=e.getAllLogos(),x=gi({},f),k=S&&S.map?S.map((function(e){return a.createElement(ss,{element:e,containerLayoutOrientation:x.element.containerLayoutOrientation})})):null;return a.createElement(Ca.Consumer,null,(function(e){return function(e,t,n){return n&&(null===e||void 0===e?void 0:e.createLogoWrapper)?e.createLogoWrapper(t):(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?a.createElement(a.Fragment,null,t):a.createElement("div",{className:"pidlddc-div pidlddc-div-logo pidlddc-logoBlock",id:"pidlddc-div-pagelogoblock0"},t)}(e.elementFactory,k,!0)}));case y.dropdown:return a.createElement(Sa.Consumer,null,(function(c){if(e.displayType===vt.prefillControl){var d=t.getMultiPropertySelectorPossibleOptions(e.pidlIdentity)||[];return a.createElement(Qa,{element:gi(gi({},e),{getPropertyName:function(){return e.displayId},possibleOptions:d}),isPrefill:!0,onSelect:function(t){var n=parseInt(t);isNaN(n)||r(e,n)},eventHub:c,setOpenDropdownId:s,openDropdownId:l,eventHandler:t})}if(p=e.possibleOptions){m={};for(var h=0,g=Object.keys(p||{});h<g.length;h++){var v=g[h];if(p[v]){var y=p[v].displayContentContainer;y&&(m||(m={}),m[v]=Bs(y,t,n,r,o,i))}}}return a.createElement(Qa,gi({},f,{onSelect:function(e){n(u,e.toString(),ve.editing),n(u,e.toString(),ve.finished)},optionsElements:m,eventHub:c,setOpenDropdownId:s,openDropdownId:l,eventHandler:t}))}));case y.checkBox:return e.displayType===vt.prefillControl?a.createElement(Rs,gi({},f,{onChange:function(t){r(e,t)},getMultiPropertySelectorPossibleOptions:t.getMultiPropertySelectorPossibleOptions})):a.createElement(ja,gi({},f,{onChange:function(e){n(u,e,ve.editing)}}));case y.textBox:var P;if(g){var I=yn.createModelElementsFromDisplayDescriptions(g,v);P=I.elements&&I.elements.map?I.elements.map(Ls(t,n,r,o,i)):void 0}return a.createElement(Ca.Consumer,null,(function(e){return a.createElement(ks,gi({},f,{displayHelpChildren:P,onUpdateValue:n,propertyName:u,eventHandler:t,displayOptions:e.displayOptions}))}));case y.button:var w=e.pidlAction,E=e.displayContentModelElement,_=e.displayContent,D=void 0;return E&&(D=Bs(E,t,n,r,o,i)),a.createElement(La,gi({},f,{onClick:function(){return t.buttonClickHandler({id:e.id,pidlAction:w,value:w.context,dest:""})},displayContent:null!==D&&void 0!==D?D:_}));case y.audio:return a.createElement(os,gi({},f));case y.radio:if(p=e.possibleOptions){m={};for(var T=0,A=Object.keys(p||{});T<A.length;T++){var M=A[T];if(p[M]){var N=p[M].displayContentContainer;N&&N[U.isDisabled]&&(N[U.isDisabled]=p[M].isDisabled),N&&(m||(m={}),m[p[M].key||M]=Bs(N,t,n,r,o,i))}}}return a.createElement(hs,gi({},f,{onSelect:function(e){n(u,e,ve.editing)},optionsElements:m}));case y.expression:return a.createElement(Cs,gi({},f));case y.buttonList:return a.createElement(Ua,gi({},f,{onClick:t.buttonClickHandler,createElement:function(e){return Bs(e,t,n,r,o,i)}}));case y.iFrame:var H=a.createRef(),O=a.createElement(Ra,gi({},f,{key:e.id,onIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onIFrameMessage:function(e){return t.iFrameMessageHandler(e)},onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,iFrameElementRef:H}));return o.push(H),O;case y.challengeIFrame:var B=a.createRef(),L=a.createElement(cs,gi({},f,{key:e.id,onChallengeIFrameMessageTimeout:t.iFrameMessageTimeoutHandler,onChallengeIFrameMessage:function(e){return t.challengeiFrameMessageHandler(e)},onChallengeIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onChallengeIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler,challengeIFrameElementRef:B}));return o.push(B),L;case y.expressCheckoutButton:var V=a.createRef(),W=a.createElement(ps,gi({},f,{key:e.id,onIFrameLoadHandler:function(e,n,r){return t.expressCheckoutButtonLoadHandler(e,n,r)},isIFrameEligible:function(e,n){return t.expressCheckoutButtonIsEligible(e,n)},onIFrameMessage:function(e){return t.expressCheckoutButtonMessageHandler(e)},expressCheckoutButtonElementRef:V,onIFrameBusyTimerStarted:t.iFrameBusyTimerStartedHandler,onIFrameBusyTimerEnded:t.iFrameBusyTimerEndedHandler}));return o.push(V),W;case y.filePicker:var K=void 0;return g&&(K=(null===(I=yn.createModelElementsFromDisplayDescriptions(g,v))||void 0===I?void 0:I.elements)&&(null===(c=null===I||void 0===I?void 0:I.elements)||void 0===c?void 0:c.map)?I.elements.map(Ls(t,n,r,o,i)):void 0),a.createElement(Oa,gi({},f,{displayHelpChildren:K,propertyName:u,onUpdateValue:n}));case y.separator:return a.createElement(As,gi({},f));case y.spinner:return a.createElement(Ms,gi({},f));case y.secureProperty:return a.createElement(Sa.Consumer,null,(function(e){var c,d;if(g){var u=yn.createModelElementsFromDisplayDescriptions(g,v);d=(null===u||void 0===u?void 0:u.elements)&&(null===(c=null===u||void 0===u?void 0:u.elements)||void 0===c?void 0:c.map)?u.elements.map(Ls(t,n,r,o,i,s,l)):void 0}var p=gi(gi({},f),{labelNode:a.createElement(Os,gi({},f,{displayHelpChildren:d}))});return a.createElement(Fs,gi({},p,{eventHub:e,displayHelpChildren:d,eventHandler:t}))}));case y.pidlInstance:return a.createElement(Is,gi({},f,{pidlInstanceRefs:i}));default:return}}function Ls(e,t,n,r,o,i,a){return function(s,l,c){return Bs(s,e,t,n,r,o,i,a)}}Os.displayName="SecurePropertyLabel";var Vs,zs=function(e){function t(t){var n=e.call(this,t)||this;return n.update=function(e,t){e.run.apply(e,bi([n,t||function(){}],e.args,!1))},n.displayValues={},n.propertyNames=[],n.getPropertyNames(n.props.pageElement.children,n.propertyNames),n.state={propertyErrors:{},groupErrors:{},pendingValues:{},accessibilityText:{}},n}return fi(t,e),t.prototype.updatePropertyValues=function(e){var t=this.props,n=t.getModelPropertyValue,r=t.onPropertyChange;for(var o in this.state.pendingValues){var i=n(o);void 0!==i&&r&&r(o,i)}this.setState({pendingValues:{}},e)},t.prototype.getPropertyNames=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.isProperty()){var i=o;i.displayType!==vt.prefillControl&&t.push(i.getPropertyName())}else if(o.isCaptcha()){var a=o;t.push(a.getPropertyName())}o.children&&o.children.length&&this.getPropertyNames(o.children,t)}},t.prototype.getPropertyState=function(){var e=this.props,t=e.getModelPropertyValue,n=e.pageElement,r={};this.propertyNames=[],n&&n.children&&this.getPropertyNames(n.children,this.propertyNames);for(var o=0,i=this.propertyNames;o<i.length;o++){var a=i[o];r[a]=t(a)}var s=gi(gi(gi({},this.displayValues),r),this.state.pendingValues);return{errors:this.state.propertyErrors,values:s,accessibilityText:this.state.accessibilityText}},t.prototype.render=function(){var e=this.props,t=e.children,n=e.elementFactory,r=e.displayOptions,o=e.displaySettings,i=e.eventHub,s=e.theme,l=e.userContext,c=e.pidlInstanceContexts,d=e.env,u=e.returnOptions;return a.createElement(Sa.Provider,{value:i},a.createElement(ba.Provider,{value:this.state.groupErrors},a.createElement(ya.Provider,{value:this.getPropertyState()},a.createElement(Ca.Provider,{value:{elementFactory:n,displayOptions:r,displaySettings:o,theme:s,userContext:l,pidlInstanceContexts:c,env:d,returnOptions:u}},t))))},t}(a.Component),Ws=function(e,t,n){var r;e.setState({propertyErrors:gi(gi({},e.state.propertyErrors),(r={},r[n.propertyName]=n,r))},t)},Us=function(e,t,n){var r;e.setState({groupErrors:gi(gi({},e.state.groupErrors),(r={},r[n.groupDisplayId]=n,r))},t)},Ks=function(e,t,n){var r=gi({},e.state.propertyErrors);if(r[n])delete r[n],e.setState({propertyErrors:r},t);else{var o=gi({},e.state.groupErrors);o&&o[n]&&(delete o[n],e.setState({groupErrors:o},t))}},js=function(e,t){e.updatePropertyValues(t)},Gs=function(e,t,n,r){var o;e.setState({accessibilityText:gi(gi({},e.state.accessibilityText),(o={},o[n]=r,o))},t)},qs=function(e,t,n,r){var o;e.setState({pendingValues:gi(gi({},e.state.pendingValues),(o={},o[n]=r,o))})},Ys=function(e,t,n,r){var o;e.displayValues=gi(gi({},e.displayValues),((o={})[n]=r,o)),e.forceUpdate(t)},Zs=function(e,t){e.setState({propertyErrors:{},groupErrors:{}},t)},Js=function e(t,n,r){t.map((function(t){if(t.isProperty()){var o=t,i=o.getPropertyName();r[i]=o}n[t.id]=t,e(t.children||[],n,r)}))},Qs=function(e){function t(n){var r=e.call(this,n)||this;if(r._modalRef=a.createRef(),r._navigationWrapperRef=a.createRef(),r.pageHasSecureFields=!1,r.alreadyWaiting=!1,r.isFirstLoad=!1,r.moreThanOneBusyBlockPropExists=function(){var e=r.props,t=e.busyBlockElement,n=e.displayOptions;return[n.busyBlockId,t,n.busyBlockShowHideHandler].filter((function(e){return e})).length>1},r.moveNextPage=function(){var e;return!!(null===(e=r.pidlControlApi)||void 0===e?void 0:e.moveNextPage)&&r.pidlControlApi.moveNextPage().result},r.submitPage=function(){var e;return!!(null===(e=r.pidlControlApi)||void 0===e?void 0:e.submitPage)&&r.pidlControlApi.submitPage().result},r.validateProperties=function(){var e;return(null===(e=r.pidlControlApi)||void 0===e?void 0:e.submitPage)?r.pidlControlApi.validateProperties().result:Wr(!1)},r.moveToLastPage=function(){var e;return!!(null===(e=r.pidlControlApi)||void 0===e?void 0:e.moveToLastPage)&&r.pidlControlApi.moveToLastPage().result},r.movePrevPage=function(){var e;return!!(null===(e=r.pidlControlApi)||void 0===e?void 0:e.movePrevPage)&&r.pidlControlApi.movePrevPage().result},r.moveToFirstPage=function(){var e;return!!(null===(e=r.pidlControlApi)||void 0===e?void 0:e.moveToFirstPage)&&r.pidlControlApi.moveToFirstPage().result},r.cancel=function(){var e;return!!(null===(e=r.pidlControlApi)||void 0===e?void 0:e.cancel)&&r.pidlControlApi.cancel().result},r.getPidlExternalControlPropsMap=function(){return r.pidlExternalControlProps},r.getSelectedResource=function(){return r.pidlControlApi?r.pidlControlApi.getSelectedResource().result:null},r.getPidlPayload=function(){return r.pidlControlApi?r.pidlControlApi.returnUserInputData():null},r.postMessageToChildIFrames=function(e){return!(!r.pidlControlApi||!r.pidlControlApi.postMessageToChildIFrames)&&r.pidlControlApi.postMessageToChildIFrames(e).result},r.getInstanceControls=function(){return r.pidlControlApi&&r.pidlControlApi.getInstanceControls?r.pidlControlApi.getInstanceControls().result:{}},r.updateChildIFramesHeight=function(e){r.iFrameInnerRefs&&r.iFrameInnerRefs.forEach((function(t,n,r){t&&t.current&&t.current.updateHeight&&t.current.updateHeight(e)}))},r.setInstanceDisplayPage=function(){var e=r.getInstanceKey();e&&t.displayPagesByInstance.set(e,r.state.pageElement)},r.deleteInstanceDisplayPage=function(){var e=r.getInstanceKey();e&&t.displayPagesByInstance.delete(e)},r.getInstanceKey=function(){var e,t=r.props.pidlInstanceKey||(null===(e=r.props.displayOptions)||void 0===e?void 0:e.instanceName);return t&&(t=t.toLowerCase()),t},r.getDisplayPagesByInstance=function(){var e=new Map;if(t.displayPagesByInstance.size>0){for(var n=0,r=Array.from(t.displayPagesByInstance.entries());n<r.length;n++){var o=r[n],i=o[0],a=o[1];!(null===i||void 0===i?void 0:i.includes("_"))&&(null===a||void 0===a?void 0:a.children)&&e.set(i,a)}return Array.from(e.entries())}return[]},r.destroyInstance=function(){var e;return!!(null===(e=r.pidlControlApi)||void 0===e?void 0:e.destroyInstance)&&r.pidlControlApi.destroyInstance().result},r.focusOnPageRefresh=function(e){r.state.disableFocusOnLoad||(e===U.pageRendered||e===U.pageRefreshed||e===K.secureFieldLoadWaitEnded?setTimeout((function(){var e,n,o,i,a;if(!t.firstErrorPropertyName){r.props.onPageRendered&&r.props.onPageRendered();var s=r.findFirstVisibleEnabledPropertyElement(null===(e=r.state.pageElement)||void 0===e?void 0:e.children);s&&s.isSecureProperty()?s.setFocus():r.props.propertyElementRef||!t.lastFocusedPropertyName&&0!==t.displayPagesByInstance.size||(null===(o=null===(n=t._propertyElementRef)||void 0===n?void 0:n.current)||void 0===o?void 0:o.focus)&&(null===(a=null===(i=t._propertyElementRef)||void 0===i?void 0:i.current)||void 0===a||a.focus())}}),100):e===U.pageNavigated&&setTimeout((function(){var e,n,o;if(!t.firstErrorPropertyName){var i=null!==(e=r.props.propertyElementRef)&&void 0!==e?e:t._propertyElementRef;(null===(n=null===i||void 0===i?void 0:i.current)||void 0===n?void 0:n.focus)&&(null===(o=null===i||void 0===i?void 0:i.current)||void 0===o||o.focus())}}),100))},r.busyBlockShowHide=function(e){r.setState({showBusyBlock:e})},r.toggleVisualCaptcha=function(e,t,n){r.onUpdateValue(e,t,n)},r.shouldRenderBusyBlock=function(){var e=r.state.showBusyBlock,t=r.props.busyBlockElement;return t&&a.isValidElement(t)&&e},r.displayPidl=function(e,t){var n=r.state,o=n.eventHub,i=n.waitForSecureFields,a=n.showBusyBlock;r.alreadyWaiting=!1,i&&r.setState(gi(gi({},r.state),{waitForSecureFields:!1})),a&&r.busyBlockShowHide(!1),e.length=0,t.length=0,o.secureFieldLoadWaitEnded()},r.waitForSecureFieldsLoadCompletion=function(){var e=r.state,t=e.eventHub,n=e.viewEventHandler,o=(null===n||void 0===n?void 0:n.getSecurePropertyLoadedPromises())||[],i=(null===n||void 0===n?void 0:n.getSecurePropertyInitCompletedPromises())||[];r.alreadyWaiting=!0,Promise.all(o).then((function(){t.secureFieldsLoaded();var e=n.getClientSetting(Ze.pidlSdkWaitTimeForSecureFieldsInit)||Ge.pidlSdkWaitTimeForSecureFieldsInit;Promise.race([Promise.all(i),n.getTimeoutPromise(e)]).then((function(){n.clearTimeoutPromise(),r.displayPidl(o,i)})).catch((function(e){if(r.displayPidl(o,i),e instanceof Error&&"Timeout"===e.message){e.message="Timeout waiting for secure fields to resolve";var n=new sn.secureFieldInitCompletedTimeoutError(ln.secureFieldInitCompletedTimeout,e.toString());t.failure(n)}}))})).catch((function(e){r.displayPidl(o,i)}))},r.reset=function(){r.setState({properties:{},pageError:void 0,viewEventHandler:void 0,pageElement:void 0,pidlInstanceContexts:void 0},(function(){return r.updateState({run:Zs,args:[]})}))},r.findFirstVisibleErroredProperty=function(e,t){for(var n=[],o=0;o<t.length;o++)n.push(t[o].propertyName);var i={};return r.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&(e.isProperty()||e.isSecureProperty())&&!e.disabled()&&!e.hidden()&&n.includes(e.getPropertyName()))return t.element=e,!0}),i),i.element},r.findFirstVisibleEnabledPropertyElement=function(e){var t={};return r.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&(e.isIframe()||e.isSecureProperty()||e.isButton()||e.isPrefillControl()||e.isProperty())&&!e.disabled()&&!e.hidden())return(!Sr(e)||!r.isRadioPossibleOptionsAllDisabled(e))&&(t.element=e,!0)}),t),t.element},r.findHighlightedButton=function(e){var t={};return r.propertiesVisitorProcessingAny(e,(function(e,t){if(e&&e.isButton()&&e.isHighlighted()&&!e.disabled()&&!e.hidden())return t.element=e,!0}),t),t.element},r.isRadioPossibleOptionsAllDisabled=function(e){for(var t=Hr.getKeys(e.possibleOptions),n=!0,r=0;r<t.length;r++)n=n&&e.possibleOptions[t[r]].isDisabled;return n},r.findPropertyElementByPropertyName=function(e,t,n){var o={};return r.propertiesVisitorProcessingDataProperty(e,(function(e,o){if(e&&e.disabled&&!e.disabled()&&e.hidden&&!e.hidden()&&e.getPropertyName&&e.getPropertyName()===t&&(!Sr(e)||n&&!Hr.isEmptyString(Cn.normalizeValueToDisplayDescriptionPossibleOptions(e,n))))return(!Sr(e)||!r.isRadioPossibleOptionsAllDisabled(e))&&(o.element=e,!0)}),o),o.element},r.setOpenDropdownId=function(e){r.setState({openDropdownId:e})},r.onUpdateValue=function(e,t,n){if(r.state.viewEventHandler){r.pendingPropertyValue(e,t);var o=function(){r.state.viewEventHandler.updateModelPropertyValue(e,t,n).then((function(){r.updatePropertyValues()}))};n===ve.finished?setTimeout(o,1):o()}},r.updateButtonList=function(e,t,n){var r=e.possibleOptions;for(var o in r)o===t&&(n&&(r[o].isDisabled=n),r[o].displayContentContainer&&(r[o].displayContentContainer.tags={selected:"selected"}))},r.onUpdatePrefill=function(e,t){if(r.state.viewEventHandler){var n=function(){r.updateDisplayValue(e.displayId,t)};r.state.viewEventHandler.updatePrefillValue(e.pidlIdentity,t).then(n,n)}},r.updateState=function(e){if(e&&r.pendingUpdates.push(e),r.wrapper.current&&r.pendingUpdates.length>0){var t=r.pendingUpdates[0];r.pendingUpdates.splice(0,1),r.wrapper.current.update(t,(function(){return r.updateState()}))}},r.getTelemetryLogger=function(){var e,t=r.props,n=t.callbacksIn,o=t.elementFactory,i=t.telemetryOptions,a=null===(e=null===o||void 0===o?void 0:o.isReactNative)||void 0===e?void 0:e.call(o),s=null===n||void 0===n?void 0:n.telemetryLogger,l=!!(null===o||void 0===o?void 0:o.telemetryLogger);if(a&&l)return r.props.elementFactory.telemetryLogger(s,i);var c=new ai;return new li(c,s)},r.initPidl=function(){var e,n=r.props,o=n.userContext,i=n.returnOptions,a=n.displayOptions,s=n.telemetryOptions,l=n.callbacksIn,c=n.transformersIn,d=n.onShowHideBusy,u=n.pidlsdkMock,p=n.pidlPayload,m=n.localDataSourceProviders,h=gi({},c),f={initialize:function(){},render:function(e){if(!e.pageElement||!e.pageElement.children||0===e.pageElement.children.length)return{succeeded:!1};var t={},n={},o={},i=r.transformPage(e.pageElement,e.displaySettings);for(var a in Js(i.children,t,n),n)n.hasOwnProperty(a)&&(o[a]=e.viewEventHandler.getModelPropertyValue(a)||"");return e.viewEventHandler.captchaHyperlinkClickHandler=r.toggleVisualCaptcha,e.updateReason===be.modelCreated&&(r.pageHasSecureFields=e.viewEventHandler.hasSecureFields(e.pageElement),r.pageHasSecureFields&&r.isFirstLoad&&(r.setState({waitForSecureFields:!0}),r.isFirstLoad=!1)),r.setState({elements:t,properties:n,pageElement:i,viewEventHandler:e.viewEventHandler,displaySettings:e.displaySettings,eventHub:e.eventHub,pidlInstanceContexts:e.pidlInstanceContexts}),{succeeded:!0}},reset:function(){},showHideBusy:function(e){return d&&d(e)},markAsFilled:function(e){},markAsUnfilled:function(e){},checkAndMarkAsFilled:function(e,t){},checkAndMarkAsUnfilled:function(e,t){},setFocusOnFirstError:function(){setTimeout((function(){var e,n,o,i;t.firstErrorPropertyName&&r.state.isFirstErrorInstance&&(t.firstVisibleErrorProperty&&t.firstVisibleErrorProperty.isSecureProperty()&&t.firstVisibleErrorProperty.getPropertyName()===t.firstErrorPropertyName?t.firstVisibleErrorProperty.setFocus():(null===(n=null===(e=t._propertyElementErrorRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.focus)&&(null===(i=null===(o=t._propertyElementErrorRef)||void 0===o?void 0:o.current)||void 0===i||i.focus()))}),100)},showPropertyError:function(e){return r.showPropertyError(e),!0},showGroupError:function(e){return r.showGroupError(e),!0},showPageError:function(e){return r.setState({pageError:e}),!1},hidePropertyError:function(e){r.hidePropertyError(e)},hidePageError:function(){r.setState({pageError:void 0})},postMessageToChildIFrames:function(e){var t=!0;return r.iFrameInnerRefs&&r.iFrameInnerRefs.forEach((function(n,r,o){if(n&&n.current&&n.current.postMessage){var i=n.current.postMessage(e);t=t&&i}else t=!1})),t},getPageElementValues:function(){return r.wrapper.current?r.wrapper.current.getPropertyState().values:{}},setDisabledByDisplayId:function(e,t,n){},getVisibleProperties:function(){if(r.wrapper.current&&r.state.pageElement){var e=[];return r.wrapper.current.getPropertyNames([r.state.pageElement],e),e}return[]},updatePrefillControls:function(){r.updatePropertyValues()},updatePropertyValue:function(e,t,n,o){var i=r.state.properties[e];i&&r.updateDisplayValue(i.displayName,n)},updateButtonList:function(e,t,n){r.updateButtonList(e,t,n)},setAccessibilityText:function(e,t){r.updateAccessibilityText(e.getPropertyName(),t)},hideModalDialog:function(){var e,t;null===(t=null===(e=r._modalRef)||void 0===e?void 0:e.current)||void 0===t||t.toggleDisplay(!1)},getViewType:function(){return"reactview"},restoreCaretPosition:function(){},updateDisplayValue:function(e,t,n,r){},getPidlInstanceControls:function(){var e={};return Object.keys(r.pidlInstanceRefs).forEach((function(t){var n=r.pidlInstanceRefs[t];if(n&&n.current){var o={moveNextPage:function(){if(n.current&&n.current.moveNextPage)return n.current.moveNextPage()},submitPage:function(){if(n.current&&n.current.submitPage)return n.current.submitPage()},validateProperties:function(){if(n.current&&n.current.validateProperties)return n.current.validateProperties()},movePrevPage:function(){if(n.current&&n.current.movePrevPage)return n.current.movePrevPage()},moveToFirstPage:function(){if(n.current&&n.current.moveToFirstPage)return n.current.moveToFirstPage()},cancel:function(){if(n.current&&n.current.cancel)return n.current.cancel()},getSelectedResource:function(){if(n.current&&n.current.getSelectedResource)return n.current.getSelectedResource()},getPidlPayload:function(){if(n.current&&n.current.getPidlPayload)return n.current.getPidlPayload()},postMessageToChildIFrames:function(e){if(n.current&&n.current.postMessageToChildIFrames)return n.current.postMessageToChildIFrames(e)}};e[t]=o}})),e}},g=gi(gi({},l),{telemetryLogger:r.getTelemetryLogger(),view:l&&l.view?l.view:f});return e=u?u.initMock(o,i,r.eventHandler,a,s,g,h):new oi(o,i,r.eventHandler,gi(gi({},a),{containerId:a.containerId||""}),g,s,r.privateEventHandler,r.oneDSService,h,p,m),r.props.operation(e),e},r.moreThanOneBusyBlockPropExists())throw new Error(ln.onlyOneBusyBlockPropAllowed.debugMessage);return r.eventHandler=function(e,n){var o,i,a,s,l,c,d,u,p,m,h,f,g,v;if(((null===(o=r.props.elementFactory)||void 0===o?void 0:o.createNavigationWrapper)&&(null===n||void 0===n?void 0:n.currentPageIndex)||(null===n||void 0===n?void 0:n.pageId))&&(n.currentPageIndex===r.state.currentPageIndex&&n.pageId===r.state.currentPageId||r.setState({currentPageIndex:null===n||void 0===n?void 0:n.currentPageIndex,currentPageId:null===n||void 0===n?void 0:n.pageId})),(null===(i=r.props.elementFactory)||void 0===i?void 0:i.createNavigationWrapper)&&e===U.pageRefreshed&&(null===(s=null===(a=r._navigationWrapperRef.current)||void 0===a?void 0:a.forceFocusRefRefresh)||void 0===s||s.call(a)),e===U.error&&r.state.pageElement&&((null===(l=null===n||void 0===n?void 0:n.error)||void 0===l?void 0:l.code)===ln.formSubmissionFailedBadUserInput.code||(null===(c=null===n||void 0===n?void 0:n.error)||void 0===c?void 0:c.code)===ln.formValidationFailed.code)&&(null===(d=null===n||void 0===n?void 0:n.error)||void 0===d?void 0:d.errors)&&(null===(u=null===n||void 0===n?void 0:n.error)||void 0===u?void 0:u.errors.length)>0&&((null===(p=null===n||void 0===n?void 0:n.error)||void 0===p?void 0:p.errors[0].propertyName)||(null===(m=null===n||void 0===n?void 0:n.error)||void 0===m?void 0:m.errors[0].groupDisplayId))){for(var y=void 0,b=void 0,C=r.getDisplayPagesByInstance(),S=null===(g=null===(f=null===(h=r.props.displayOptions)||void 0===h?void 0:h.instanceName)||void 0===f?void 0:f.toLowerCase)||void 0===g?void 0:g.call(f),x=0,k=C;x<k.length;x++){var P=k[x],I=P[0],w=P[1];if(y=r.findPropertyElementByPropertyName(null===w||void 0===w?void 0:w.children,t.firstErrorPropertyName)){b=I;break}if(y=r.findFirstVisibleErroredProperty(null===w||void 0===w?void 0:w.children,n.error.errors)){b=I;break}}y||(b=(y=r.findFirstVisibleErroredProperty(r.state.pageElement.children,n.error.errors))?S:-1),t.firstErrorPropertyName=(null===(v=null===y||void 0===y?void 0:y.getPropertyName)||void 0===v?void 0:v.call(y))||n.error.errors[0].propertyName,t.firstVisibleErrorProperty=y,r.setState({isFirstErrorInstance:b===S})}return e===U.propertySelected&&(t.lastFocusedPropertyName=null===n||void 0===n?void 0:n.propertyName,r.setState({disableFocusOnLoad:!1})),e===U.selectionChanged&&(t.lastFocusedPropertyName=null===n||void 0===n?void 0:n.propertyName,t.lastFocusedPropertyValue=null===n||void 0===n?void 0:n.propertyValue,r.setState({disableFocusOnLoad:!1})),r.focusOnPageRefresh(e),r.props.onEvent&&r.props.onEvent(e,n)},r.privateEventHandler=function(e,n){e===K.propertyUnselected&&(t.lastFocusedPropertyName=void 0,t.firstErrorPropertyName=void 0,t.firstVisibleErrorProperty=void 0,r.setState({isFirstErrorInstance:!1})),e===K.success&&(n[j.preventUnmountOnFinish]||r.reset()),r.focusOnPageRefresh(e)},r.props&&r.props.elementFactory&&r.props.elementFactory.getOneDSService&&(r.oneDSService=r.props.elementFactory.getOneDSService()),r.wrapper=a.createRef(),r.pendingUpdates=[],r.iFrameInnerRefs=[],r.pidlInstanceRefs={},r.state={elements:{},properties:{},pageError:void 0,viewEventHandler:void 0,displaySettings:void 0,eventHub:void 0,showBusyBlock:!1,currentPageIndex:null,currentPageId:null,disableFocusOnLoad:r.props.displayOptions.disableFocusOnLoad,waitForSecureFields:!1,openDropdownId:"",isFirstErrorInstance:!1},r.setInstanceDisplayPage(),r}return fi(t,e),t.prototype.componentDidMount=function(){var e=this.props.env;this.isFirstLoad=!0,Uo.set(e||Ii),this.pidlControlApi=this.pidlControlApi||this.initPidl()},t.prototype.isAddResourceProps=function(e){return e&&e.pidlDocInfo},t.prototype.componentDidUpdate=function(e,t){this.pidlControlApi=this.pidlControlApi||this.initPidl(),this.isAddResourceProps(this.props)&&e&&e.pidlDocInfo&&this.props.pidlDocInfo&&JSON.stringify(e.pidlDocInfo)!==JSON.stringify(this.props.pidlDocInfo)&&(this.pidlControlApi=this.initPidl()),this.state.pageElement!==(null===t||void 0===t?void 0:t.pageElement)&&this.setInstanceDisplayPage()},t.prototype.componentWillUnmount=function(){try{this.state.viewEventHandler.clearTimeoutPromise(),this.destroyInstance(),this.deleteInstanceDisplayPage()}catch(e){}},t.prototype.wrapGroupedElements=function(e,t){var n=this.state.pageError;return(null===e||void 0===e?void 0:e.isReactNative)&&e.isReactNative()?a.createElement(a.Fragment,null,t):a.createElement("div",{className:l.default("pidl-react-page-error",{"d-none":!n||!n.message})},t)},t.prototype.render=function(){var e,n,r,o=this.props,i=o.displayOptions,s=o.children,l=o.onPropertyChange,c=o.elementFactory,d=o.busyBlockElement,u=o.propertyElementRef,p=o.theme,m=o.env,h=o.returnOptions,f=this.state,g=f.pageElement,v=f.viewEventHandler,y=f.pageError,b=f.displaySettings,C=f.eventHub,S=f.pidlInstanceContexts,x=i;d&&a.isValidElement(d)&&(x.busyBlockShowHideHandler=this.busyBlockShowHide);var k=s;if(this.pidlControlApi&&g&&v){t.previousFocusTarget&&(null===(n=(e=t.previousFocusTarget).getPropertyName)||void 0===n?void 0:n.call(e))!==t.firstErrorPropertyName&&(t.previousFocusTarget.propertyElementRef=void 0),this.attachFocusRef(g,u,t.firstErrorPropertyName,t.lastFocusedPropertyName,t.lastFocusedPropertyValue),this.attachModalRef(g);var P=g.children.map(Ls(v,this.onUpdateValue,this.onUpdatePrefill,this.iFrameInnerRefs,this.pidlInstanceRefs,this.setOpenDropdownId,this.state.openDropdownId)),I=new Map,w=g.keyPidlActions;Object.keys(w||{}).forEach((function(e){var t=w[e];I.set(e,(function(){v.invokePidlAction(t)}))}));var E=this.state,_=E.eventHub,D=E.waitForSecureFields,T=(null===c||void 0===c?void 0:c.createNavigationWrapper)?c.createNavigationWrapper(P,this.state.currentPageIndex,this.state.currentPageId,this.cancel,this.movePrevPage,this.moveToLastPage,this.moveToFirstPage,this.moveNextPage,this._navigationWrapperRef,I):this.pageHasSecureFields?a.createElement("div",{style:{display:D?"none":"block"}},P):a.createElement(a.Fragment,null,P);k=a.createElement(zs,{ref:this.wrapper,getModelPropertyValue:v.getModelPropertyValue,onPropertyChange:l,pageElement:g,elementFactory:c,displayOptions:x,displaySettings:b,eventHub:_,theme:p,userContext:this.props.userContext,pidlInstanceContexts:S,env:m,returnOptions:h},T)}var R=y?a.createElement(_a,{message:y.message}):null,A=this.state,M=A.waitForSecureFields,N=A.showBusyBlock,F=(null===(r=null===v||void 0===v?void 0:v.getSecurePropertyLoadedPromises())||void 0===r?void 0:r.length)>0;return this.pageHasSecureFields&&M&&F&&(N||this.busyBlockShowHide(!0),this.alreadyWaiting||(C.secureFieldLoadWaitStarted(),this.waitForSecureFieldsLoadCompletion())),a.createElement(a.Fragment,null,a.createElement(Ca.Provider,{value:{elementFactory:c,displayOptions:x,displaySettings:b,theme:p,userContext:this.props.userContext,pidlInstanceContexts:S,env:m,returnOptions:h}},a.createElement(a.Fragment,null,this.wrapGroupedElements(c,R))),this.shouldRenderBusyBlock()&&((null===c||void 0===c?void 0:c.createBusyBlockWrapper)?c.createBusyBlockWrapper(a.cloneElement(d)):a.cloneElement(d)),k)},t.prototype.attachFocusRef=function(e,n,r,o,i){var s,l,c,d=e.children;if(r){if(!this.state.isFirstErrorInstance)return;if(c=this.findPropertyElementByPropertyName(d,r))if(null===(s=c.propertyElementRef)||void 0===s?void 0:s.current)t._propertyElementErrorRef=c.propertyElementRef;else{var u=a.createRef();c.propertyElementRef=u,t._propertyElementErrorRef=u}}else{if(o){for(var p=void 0,m=0,h=this.getDisplayPagesByInstance();m<h.length;m++){var f=h[m],g=(f[0],f[1]);if(c=this.findPropertyElementByPropertyName(null===g||void 0===g?void 0:g.children,o,i))break;p||(p=this.findFirstVisibleEnabledPropertyElement(null===g||void 0===g?void 0:g.children))}(c=null!==c&&void 0!==c?c:p)||(c=this.findPropertyElementByPropertyName(d,o,i)),c||(c=this.findFirstVisibleEnabledPropertyElement(d))}else{for(var v=0,y=this.getDisplayPagesByInstance();v<y.length;v++){var b=y[v],C=(b[0],b[1]);if(c=this.findFirstVisibleEnabledPropertyElement(null===C||void 0===C?void 0:C.children))break}c||(c=this.findFirstVisibleEnabledPropertyElement(d))}var S=this.findHighlightedButton(d);c&&(c.isButton()&&S&&(c=S),!c.propertyElementRef)&&(n?c.propertyElementRef=n:(null===(l=t._propertyElementRef)||void 0===l?void 0:l.current)&&t.previousFocusTarget?c.propertyElementRef=t._propertyElementRef:(u=a.createRef(),c.propertyElementRef=u,t._propertyElementRef=u))}t.previousFocusTarget=null!==c&&void 0!==c?c:t.previousFocusTarget},t.prototype.attachModalRef=function(e){var t;e.children.forEach((function(e){vr(e)&&(t=e)})),t&&(t.groupElementRef=this._modalRef)},t.prototype.propertiesVisitorProcessingDataProperty=function(e,t,n){if(e){if(!Array.isArray(e))return this.propertyVisitorProcessingDataProperty(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingDataProperty(e[r],t,n);if(o)return o}}},t.prototype.propertyVisitorProcessingDataProperty=function(e,n,r){if(e){if((e.isProperty()||e.isSecureProperty()||e.isButton())&&(c=n(e,r)))return c;if(Sr(e)){var o=e;if(o&&o.possibleOptions)for(var i=0,a=Hr.getKeys(o.possibleOptions);i<a.length;i++){var s=a[i],l=o.possibleOptions[s];if(l&&!l.isDisabled&&l.displayContentContainer&&(c=this.propertyVisitorProcessingDataProperty(l.displayContentContainer,n,r)))return c}}if(cr(e)&&e.pidlInstance){if(t.displayPagesByInstance.has(e.pidlInstance)){var c,d=t.displayPagesByInstance.get(e.pidlInstance);if(d&&d.children&&(c=this.propertiesVisitorProcessingDataProperty(d.children,n,r)))return c}return!1}if(e.children&&e.children.length>0&&(!r||!r.stopDescendantsProcessing))return this.propertiesVisitorProcessingDataProperty(e.children,n,r);r&&delete r.stopDescendantsProcessing}},t.prototype.propertiesVisitorProcessingAny=function(e,t,n){if(e){if(!Array.isArray(e))return this.propertyVisitorProcessingAny(e,t,n);for(var r=0;r<e.length;r++){var o=this.propertyVisitorProcessingAny(e[r],t,n);if(o)return o}}},t.prototype.propertyVisitorProcessingAny=function(e,n,r){if(e){var o=n(e,r);if(o)return o;if(Sr(e)){var i=e;if(i&&i.possibleOptions)for(var a=0,s=Hr.getKeys(i.possibleOptions);a<s.length;a++){var l=s[a],c=i.possibleOptions[l];if(c&&!c.isDisabled&&c.displayContentContainer){var d=this.propertyVisitorProcessingAny(c.displayContentContainer,n,r);if(d)return d}}}if(cr(e)&&e.pidlInstance){if(t.displayPagesByInstance.has(e.pidlInstance)){var u=t.displayPagesByInstance.get(e.pidlInstance);if(u&&u.children){var p=this.propertiesVisitorProcessingAny(u.children,n,r);if(p)return p}}return!1}if(e.children&&e.children.length>0&&(!r||!r.stopDescendantsProcessing))return this.propertiesVisitorProcessingAny(e.children,n,r);r&&delete r.stopDescendantsProcessing}},t.prototype.pendingPropertyValue=function(e,t){this.updateState({run:qs,args:[e,t]})},t.prototype.updatePropertyValues=function(){this.updateState({run:js,args:[]})},t.prototype.updateDisplayValue=function(e,t){this.updateState({run:Ys,args:[e,t]})},t.prototype.updateAccessibilityText=function(e,t){this.updateState({run:Gs,args:[e,t]})},t.prototype.showGroupError=function(e){this.updateState({run:Us,args:[e]})},t.prototype.showPropertyError=function(e){this.updateState({run:Ws,args:[e]})},t.prototype.hidePropertyError=function(e){this.updateState({run:Ks,args:[e]})},t.prototype.splitChildren=function(e,t){var n=bi([],e.children,!0);if(!n||!n.length)return n;var r=n[n.length-1];if(!vr(r)||!r.isSubmitGroup)return n;(null===r||void 0===r?void 0:r.isSubmitGroup)&&(this.setExternalControlNames(r),r.isHidden=!t.submitButtonBlock.show);var o=r.operationType,i=r.pidlIdentity,a=r.isLinkedPidl;n.pop();var s={displayId:A.pageBlock,displayType:vt.group,displayName:null,styleHints:e.displayDescription.styleHints},l=new Pn(F.group,null,s,o,i,a);return l.children=n,r.id=t.submitButtonBlock.id,[l,r]},t.prototype.transformPage=function(e,t){return gi(gi({},e),{children:this.splitChildren(e,t)})},t.prototype.setExternalControlNames=function(e){var t=new Map,n=z.gohome,r=z.submit,o=z.next,i=z.prev,a=e.members;a&&a.forEach((function(e){var a;e.displayContent&&(null===(a=e.pidlAction)||void 0===a?void 0:a.type)&&(e.pidlAction.type==n||e.pidlAction.type==r||e.pidlAction.type==o||e.pidlAction.type==i)&&(t[e.pidlAction.type]={type:e.pidlAction.type,displayContent:e.displayContent})})),this.pidlExternalControlProps=t},t.defaultProps={env:Ii},t._propertyElementRef=a.createRef(),t._propertyElementErrorRef=a.createRef(),t.displayPagesByInstance=new Map,t}(a.Component),Xs=function(e){function t(t,n){var r=e.call(this,t)||this;r.moveNextPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.moveNextPage)&&r.pidlRef.current.moveNextPage()},r.submitPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.submitPage)&&r.pidlRef.current.submitPage()},r.validateProperties=function(){return r.pidlRef.current&&r.pidlRef.current.validateProperties?r.pidlRef.current.validateProperties():Wr(!1)},r.movePrevPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.movePrevPage)&&r.pidlRef.current.movePrevPage()},r.moveToFirstPage=function(){return!(!r.pidlRef.current||!r.pidlRef.current.moveToFirstPage)&&r.pidlRef.current.moveToFirstPage()},r.cancel=function(){return!(!r.pidlRef.current||!r.pidlRef.current.cancel)&&r.pidlRef.current.cancel()},r.getPidlExternalControlPropsMap=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlExternalControlPropsMap?r.pidlRef.current.getPidlExternalControlPropsMap():null},r.getSelectedResource=function(){if(r.pidlRef.current&&r.pidlRef.current.getSelectedResource)return r.pidlRef.current.getSelectedResource()},r.getPidlPayload=function(){return r.pidlRef.current&&r.pidlRef.current.getPidlPayload?r.pidlRef.current.getPidlPayload():Wr({payload:null,operationType:null})},r.postMessageToChildIFrames=function(e){return!(!r.pidlRef.current||!r.pidlRef.current.postMessageToChildIFrames)&&r.pidlRef.current.postMessageToChildIFrames(e)},r.getInstanceControls=function(){return r.pidlRef.current&&r.pidlRef.current.getInstanceControls?r.pidlRef.current.getInstanceControls():{}},r.implementationMissing=function(e,t,n){var o,i,a;if(!r.pidlRef.current)return null;var s=null===(a=null===(i=null===(o=r.pidlRef)||void 0===o?void 0:o.current)||void 0===i?void 0:i.state)||void 0===a?void 0:a.eventHub;null===s||void 0===s||s.implementationMissing(e,t,n)},r.updateChildIFramesHeight=function(e){r.pidlRef.current&&r.pidlRef.current.updateChildIFramesHeight&&r.pidlRef.current.updateChildIFramesHeight(e)},r.pidlRef=a.createRef(),r.pidlOperation=n;try{t.telemetryOptions?r.telemetryOptions=Object.assign({},t.telemetryOptions):r.telemetryOptions={},r.telemetryOptions.contextData||(r.telemetryOptions.contextData={}),r.telemetryOptions.contextData.partnerName||(r.telemetryOptions.contextData.partnerName=t.partner)}catch(o){r.telemetryOptions=t.telemetryOptions}return r}return fi(t,e),t.prototype.render=function(){return a.createElement(Qs,gi({},this.props,{ref:this.pidlRef,operation:this.pidlOperation,telemetryOptions:this.telemetryOptions}),this.props.children)},t}(a.Component),$s=function(e){function t(t){var n=e.call(this,t,(function(e){return e.addAddress(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return fi(t,e),t}(Xs),el=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileParameters=function(e,n,r,o,i,a,s){var l={operation:wi.Operation,type:a||wi.DefaultAddressType,scenario:e,country:n,language:r,partner:o,setAsDefaultBilling:e===t.AddressScenario.profile||s};return i&&(l=gi(gi({},l),i)),l},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=kt,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===wi.ViewTermsId)&&i(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.AddAddress,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,i=e.country,a=e.language,l=e.scenario,c=e.addressType,d=e.partner,u=e.elementFactory,p=e.onSuccess,m=e.onFailure,h=e.onCancel,f=e.showSubmitBlock,g=void 0===f||f,v=e.busyBlockShowHideHandler,y=e.prefillData,b=e.pidlsdkMock,C=e.telemetryLogger,S=e.telemetryOptions,x=e.propertyElementRef,k=e.onPageRendered,P=e.setAsDefaultBilling,I=e.headers,w=e.callbacksIn,E=e.displayOptions,_=this.state.styleProvider,D=this.compileParameters(l,i,a,d,r,c,P),T=this.compileReturnOptions(p,m,h);return s.default.createElement(xa.Provider,{value:{styleProvider:_}},s.default.createElement($s,{busyBlockElement:o,displayOptions:gi(gi({},E),{containerId:wi.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g}),pidlDocInfo:{resourceType:wi.ResourceType,parameters:D},env:n,partner:d,returnOptions:T,onEvent:this.onEvent,userContext:{authToken:t,userId:wi.UserId,additionalHeaders:I},elementFactory:u,prefillData:y,pidlsdkMock:b,callbacksIn:gi(gi({},w),{telemetryLogger:C}),telemetryOptions:S,propertyElementRef:x,onPageRendered:k,ref:this.baseComponentRef}))},n}(s.default.Component),tl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.addPaymentInstrument(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return fi(t,e),t}(Xs),nl=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileParameters=function(e,t,n,r,o,i,a,s,l){var c={operation:Oi.Operation,country:e,language:t,partner:n,completePrerequisites:a,type:i,family:o,sessionId:s,scenario:l};return r&&(c=gi(gi({},c),r)),c},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n,o,i){return{urls:{success:e,failure:t},callbacks:{success:n,failure:r.FailureHandler,gohome:i}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,i=gi({},o);return t&&(i.telemetryLogger=t),(null===n||void 0===n?void 0:n.encryptionHandler)&&(i.encryptionHandler=n.encryptionHandler()),i},r.compileOptions=function(e){return e?{riskData:{greenId:e}}:null},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=kt,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Oi.ViewTermsId)&&i(t),o&&o(e,t)},r.getResourceType=function(){return null!=r.props.sessionId?"AddPiQrCode":Oi.ResourceType},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.AddPaymentInstrument,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,i=e.completePrerequisites,a=e.scenario,l=e.sessionId,c=e.country,d=e.language,u=e.partner,p=e.paymentFamily,m=e.paymentType,h=e.elementFactory,f=e.onSuccess,g=e.onFailure,v=e.onCancel,y=e.showSubmitBlock,b=void 0===y||y,C=e.busyBlockShowHideHandler,S=e.prefillData,x=e.pidlsdkMock,k=(e.telemetryLogger,e.telemetryOptions),P=e.propertyElementRef,I=e.onPageRendered,w=e.headers,E=e.greenId,_=e.redirectionSuccessUrl,D=e.redirectionFailureUrl,T=e.serviceOverrides,R=e.useWebView2,A=e.displayOptions,M=this.state.styleProvider,N=this.compileParameters(c,d,u,r,p,m,i,l,a),F=this.compileReturnOptions(_,D,f,g,v),H=this.compileCallbacks(),O=this.compileOptions(E);return s.default.createElement(xa.Provider,{value:{styleProvider:M}},s.default.createElement(tl,{busyBlockElement:o,displayOptions:gi(gi({},A),{containerId:Oi.ContainerId,busyBlockShowHideHandler:C,showSubmitBlock:b,useWebView2:R}),pidlDocInfo:{resourceType:this.getResourceType(),parameters:N},env:n,returnOptions:F,onEvent:this.onEvent,userContext:{authToken:t,userId:Oi.UserId,additionalHeaders:w,serviceOverrides:T},elementFactory:h,prefillData:S,pidlsdkMock:x,callbacksIn:H,partner:u,telemetryOptions:k,propertyElementRef:P,onPageRendered:I,ref:this.baseComponentRef,options:O}))},n}(s.default.Component),rl=function(e){function t(t){var n=this,r=gi(gi({},t.pidlDocInfo),{resourceType:"PaymentInstrument"});return n=e.call(this,t,(function(e){return e.applyResource(r,n.props.prefillData,n.props.options)}))||this,n}return fi(t,e),t}(Xs),ol=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a=e.paymentFamily,s=e.paymentType,l=e.scenario,c=e.prefillData,d=e.provider,u=e.channel,p=e.referrerId,m=e.sessionId,h=e.ocid,f={operation:zi.Operation,country:t,language:n,partner:o,scenario:l,type:s,family:a,prefillData:c,provider:d,channel:u,referrerId:p,sessionId:m,ocid:h};return i&&(f=gi(gi({},f),i)),f},r.FailureHandler=function(e){var t,n,o,i=null===(o=null===(n=null===(t=null===mi||void 0===mi?void 0:pi)||void 0===t?void 0:t.errorMessages)||void 0===n?void 0:n.pollingTimedOut)||void 0===o?void 0:o.code;i&&e.code===i.toString()?r.props.onTimeOut(e):r.props.onFailure(e)},r.compileReturnOptions=function(e,t,n,o){return{urls:o,callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,i=gi({},o);return t&&(i.telemetryLogger=t),(null===n||void 0===n?void 0:n.encryptionHandler)&&(i.encryptionHandler=n.encryptionHandler()),i},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.onNavigate;i&&e===U.navigate&&i(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ApplyPaymentInstrument,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,i=e.onSuccess,a=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,d=e.showSubmitBlock,u=void 0===d||d,p=e.busyBlockShowHideHandler,m=e.pidlsdkMock,h=e.prefillData,f=e.telemetryOptions,g=e.propertyElementRef,v=(e.onEvent,e.onPageRendered),y=e.headers,b=e.useWebView2,C=e.displayOptions,S=e.partner,x=this.state.styleProvider,k=this.compileParameters(),P=this.compileReturnOptions(i,a,l,c),I=this.compileCallbacks();return s.default.createElement(xa.Provider,{value:{styleProvider:x}},s.default.createElement(rl,{busyBlockElement:r,displayOptions:gi(gi({},C),{containerId:zi.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:u,useWebView2:b}),pidlDocInfo:{resourceType:zi.ResourceType,parameters:k},env:n,returnOptions:P,onEvent:this.onEvent,userContext:{authToken:t,userId:zi.UserId,additionalHeaders:y},elementFactory:o,prefillData:h,pidlsdkMock:m,callbacksIn:I,partner:S,telemetryOptions:f,propertyElementRef:g,onPageRendered:v,ref:this.baseComponentRef}))},n}(s.default.Component),il=function(e){function t(t){var n=e.call(this,t,(function(e){return e.addResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return fi(t,e),t}(Xs),al=function(e){function t(t){var n=e.call(this,t,(function(e){return e.applyResource(n.props.pidlDocInfo,n.props.prefillData,n.props.options)}))||this;return n}return fi(t,e),t}(Xs),sl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePurchasePendingState(n.props.parameters)}))||this;return n}return fi(t,e),t}(Xs),ll=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock,o=void 0===n||n,i=e.useWebView2,a=e.displayOptions;return gi(gi({},a),{containerId:Ti.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:o,useWebView2:i})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.piid,a=e.orderId,s=e.sessionId;return{piResourceInfo:{resourceType:Ti.ResourceType,parameters:{market:t,language:n,partner:o,sessionId:s,orderId:a},id:i},sessionId:s,orderId:a,options:{}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=e.onSuccess,n=e.onCancel,o=e.redirectReturnUrls,i=gi({},o),a=i.success,s=i.failure,l=i.gohome;return{callbacks:{success:t,failure:r.FailureHandler,gohome:n},urls:{success:a,failure:s,gohome:l}}},r.compileCallbacksIn=function(){return gi(gi({},r.props.callbacksIn),{telemetryLogger:r.props.telemetryLogger})},r.compileUserContext=function(){return{authToken:r.props.authToken,userId:Ti.UserId,additionalHeaders:r.props.headers}},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ConfirmPayment,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.env,n=e.pidlsdkMock,r=e.propertyElementRef,o=e.telemetryOptions,i=e.onEvent,a=e.onPageRendered,l=e.elementFactory,c=e.busyBlockElement,d=e.partner,u=this.state.styleProvider,p=this.compileDisplayOptions(),m=this.compileParameters(),h=this.compileReturnOptions(),f=this.compileCallbacksIn(),g=this.compileUserContext();return s.default.createElement(xa.Provider,{value:{styleProvider:u}},s.default.createElement(sl,{busyBlockElement:c,displayOptions:p,parameters:m,env:t,returnOptions:h,userContext:g,onEvent:i,elementFactory:l,pidlsdkMock:n,callbacksIn:f,telemetryOptions:o,propertyElementRef:r,onPageRendered:a,partner:d,ref:this.baseComponentRef}))},n}(s.default.Component),cl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.createPaymentSession(n.props.paymentSessionOrData)}))||this;return n}return fi(t,e),t}(Xs),dl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)}))||this;return n}return fi(t,e),t}(Xs),ul=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileParameters=function(e,t,n,r,o,i){var a=gi({operation:_i.Operation,type:_i.AddressType,scenario:e},{country:t,language:n,partner:r,addressId:i});return o&&(a=gi(gi({},a),o)),a},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=kt,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===wi.ViewTermsId)&&i(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.AddAddress,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.addressId,r=e.env,o=e.parameters,i=e.busyBlockElement,a=e.scenario,l=e.country,c=e.language,d=e.partner,u=e.elementFactory,p=e.onSuccess,m=e.onFailure,h=e.onCancel,f=e.showSubmitBlock,g=void 0===f||f,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,C=e.propertyElementRef,S=e.onPageRendered,x=e.headers,k=e.displayOptions,P=this.state.styleProvider,I=this.compileParameters(a,l,c,d,o,n),w=this.compileReturnOptions(p,m,h);return s.default.createElement(xa.Provider,{value:{styleProvider:P}},s.default.createElement(dl,{busyBlockElement:i,displayOptions:gi(gi({},k),{containerId:_i.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g}),resourceInfo:{id:n,resourceType:_i.ResourceType,parameters:{}},pidlDocInfo:{resourceType:_i.ResourceType,parameters:I},env:r,partner:d,returnOptions:w,onEvent:this.onEvent,userContext:{authToken:t,userId:_i.UserId,additionalHeaders:x},elementFactory:u,pidlsdkMock:y,callbacksIn:{telemetryLogger:b},propertyElementRef:C,onPageRendered:S,ref:this.baseComponentRef}))},n}(s.default.Component),pl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateResource(n.props.resourceInfo,null,n.props.pidlDocInfo)}))||this;return n}return fi(t,e),t}(Xs),ml=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=kt,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Li.ViewTermsId)&&i(t),o&&o(e,t)},r.compileParameters=function(e,t,n,r,o,i){var a={country:e,language:t,partner:o,type:n,family:r};return i&&(a=gi(gi({},a),i)),a},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:r.FailureHandler,gohome:t}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.EditPaymentInstrument,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,r=e.paymentType,o=e.paymentFamily,i=e.env,a=e.parameters,l=e.busyBlockElement,c=e.country,d=e.language,u=e.partner,p=e.elementFactory,m=e.onSuccess,h=e.onCancel,f=e.showSubmitBlock,g=void 0===f||f,v=e.busyBlockShowHideHandler,y=e.pidlsdkMock,b=e.telemetryLogger,C=e.propertyElementRef,S=e.onPageRendered,x=e.headers,k=e.callbacksIn,P=e.displayOptions,I=this.state.styleProvider,w=this.compileParameters(c,d,r,o,u,a),E=this.compileReturnOptions(m,h);return s.default.createElement(xa.Provider,{value:{styleProvider:I}},s.default.createElement(pl,{busyBlockElement:l,env:i,returnOptions:E,onEvent:this.onEvent,userContext:{authToken:t,userId:Li.UserId,additionalHeaders:x},elementFactory:p,pidlsdkMock:y,callbacksIn:gi(gi({},k),{telemetryLogger:b}),propertyElementRef:C,onPageRendered:S,displayOptions:gi(gi({},P),{containerId:Li.ContainerId,busyBlockShowHideHandler:v,showSubmitBlock:g}),partner:u,resourceInfo:{id:n,resourceType:Li.ResourceType,parameters:{partner:u}},pidlDocInfo:{resourceType:Li.ResourceType,parameters:w},ref:this.baseComponentRef}))},n}(s.default.Component),hl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.fundStoredValue(n.props.fundStoredValueParams)}))||this;return n}return fi(t,e),t}(Xs),fl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData,n.props.containerRef)}))||this;return n}return fi(t,e),t}(Xs),gl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.expressCheckout(n.props.pidlDocInfo)}))||this;return n}return fi(t,e),t}(Xs),vl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.onEventInternal=function(e,n){var r=t.props,o=r.onReady,i=r.onEvent;if(e==U.expressCheckoutReady)return o(n);null===i||void 0===i||i(e,n)},t.compileParameters=function(){var e=t.props,n=e.expressCheckoutData,r=e.filters,o=e.allowedPaymentMethods,i=e.partner,a=e.parameters;return gi(gi({},a),{allowedPaymentMethods:o,filters:r,expressCheckoutData:n,partner:i,country:n.country})},t.getPidlDocInfo=function(e){return{resourceType:Gi.ResourceType,parameters:e}},t.onFailureHandler=function(e){(0,t.props.onFailure)(e.error)},t.compileReturnOptions=function(){var e=t.props,n=e.onSuccess,r=e.onCancel;return{callbacks:{failure:t.onFailureHandler,success:n,gohome:r}}},t}return fi(t,e),t.prototype.render=function(){var e=this.props,t=e.authToken,n=e.headers,r=e.displayOptions,o=e.env,i=e.busyBlockShowHideHandler,a=e.busyBlockElement,l=e.telemetryOptions,c=e.pidlsdkMock,d=e.callbacksIn,u=e.telemetryLogger,p=e.propertyElementRef,m=e.onPageRendered,h=this.compileParameters(),f=this.getPidlDocInfo(h),g=this.compileReturnOptions();return s.default.createElement(s.default.Fragment,null,s.default.createElement(gl,{busyBlockElement:a,pidlDocInfo:f,onEvent:this.onEventInternal,env:o,userContext:{authToken:t,userId:Gi.UserId,additionalHeaders:n},returnOptions:g,displayOptions:gi(gi({},r),{busyBlockShowHideHandler:i}),telemetryOptions:l,pidlsdkMock:c,callbacksIn:gi(gi({},d),{telemetryLogger:u}),propertyElementRef:p,onPageRendered:m}))},t}(s.default.Component),yl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)}))||this;return n}return fi(t,e),t}(Xs);t.RiskPurchaseType=void 0,(Vs=t.RiskPurchaseType||(t.RiskPurchaseType={})).CVV="cvv",Vs.SMS="sms";var bl,Cl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePurchaseRiskChallenge(n.props.parameters)}))||this;return n}return fi(t,e),t}(Xs),Sl=function(e){function n(n){var r=e.call(this,n)||this;r.HandleRiskChallengeInternalRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=kt,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===qi.ViewTermsId)&&i(t),o&&o(e,t)},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock,o=void 0===n||n,i=e.displayOptions;return gi(gi({},i),{containerId:Di.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:o})},r.compileParameters=function(){var e=r.props,t=e.piid,n=e.language,o=e.country,i=e.partner,a=e.type,s=e.sessionId;return{options:{},piResourceInfo:{id:t,parameters:{language:n,market:o,partner:i},resourceType:Di.ResourceType},riskChallengeData:[a],sessionId:s}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=(e.onSuccess,e.onCancel);return{callbacks:{success:r.onSuccess,failure:r.FailureHandler,gohome:t}}},r.onSuccess=function(e){var n=r.props,o=n.onSuccess;n.type===t.RiskPurchaseType.SMS?o({challengeType:t.RiskPurchaseType.SMS}):o(e)},r.compileCallbacksIn=function(){var e=r.props,n=e.onSuccess,o=e.telemetryLogger,i=e.callbacksIn,a=e.type,s=e.elementFactory,l=gi(gi({},i),{telemetryLogger:o});return(null===s||void 0===s?void 0:s.encryptionHandler)&&(l.encryptionHandler=s.encryptionHandler()),a===t.RiskPurchaseType.CVV&&(l=gi(gi({},l),{submit:function(e){var t=null===e||void 0===e?void 0:e.data;n(t)}})),l},r.transformPidlString=function(e){return function(t,n){var r=n;return t?t.url?t.url.toLowerCase().includes("challenge/sms/validate")&&"string"===typeof n&&(r={value:n}):e.error(new sn.unexpectedError(ln.inputParameterMissing,["request url"])):e.error(new sn.unexpectedError(ln.inputParameterMissing,["request"])),r}},r.moveNextPage=function(){var e,t;null===(t=null===(e=r.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.moveNextPage()},r.movePrevPage=function(){var e,t;null===(t=null===(e=r.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.movePrevPage()},r.cancel=function(){var e,t;null===(t=null===(e=r.HandleRiskChallengeInternalRef)||void 0===e?void 0:e.current)||void 0===t||t.cancel()},r.getRef=function(){return r.HandleRiskChallengeInternalRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.RiskChallenge,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this,t=this.state.styleProvider,n=this.props,r=n.authToken,o=n.busyBlockElement,i=n.env,a=n.elementFactory,l=n.pidlsdkMock,c=n.propertyElementRef,d=n.onPageRendered,u=n.telemetryOptions,p=n.headers,m=n.partner,h=this.compileDisplayOptions(),f=this.compileParameters(),g=this.compileReturnOptions(),v=this.compileCallbacksIn();return s.default.createElement(xa.Provider,{value:{styleProvider:t}},s.default.createElement(Sa.Consumer,null,(function(t){return s.default.createElement(Cl,{busyBlockElement:o,displayOptions:h,parameters:f,env:i,returnOptions:g,userContext:{authToken:r,userId:Di.UserId,additionalHeaders:p},onEvent:e.onEvent,elementFactory:a,pidlsdkMock:l,partner:m,callbacksIn:v,telemetryOptions:u,propertyElementRef:c,onPageRendered:d,transformersIn:{submissionSuccessTransformer:e.transformPidlString(t)},ref:e.HandleRiskChallengeInternalRef})})))},n}(s.default.Component),xl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.listAddress(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return fi(t,e),t}(Xs),kl=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileParameters=function(e,t,n,r,o,i,a){var s={operation:i,scenario:e,type:a||Hi.DefaultAddressType,country:t,language:n,partner:r};return o&&(s=gi(gi({},s),o)),s},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ListAddress,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,i=e.country,a=e.language,l=e.partner,c=e.scenario,d=e.elementFactory,u=e.onSuccess,p=e.onFailure,m=e.onCancel,h=e.showSubmitBlock,f=void 0===h||h,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,y=e.telemetryLogger,b=e.telemetryOptions,C=e.addressType,S=e.propertyElementRef,x=e.onPageRendered,k=e.onEvent,P=e.callbacksIn,I=e.headers,w=e.displayOptions,E=this.state.styleProvider,_=this.compileParameters(c,i,a,l,r,Hi.Operation,C),D=this.compileReturnOptions(u,p,m);return s.default.createElement(xa.Provider,{value:{styleProvider:E}},s.default.createElement(xl,{busyBlockElement:o,displayOptions:gi(gi({},w),{containerId:Hi.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:f}),pidlDocInfo:{resourceType:Hi.ResourceType,parameters:_},env:n,returnOptions:D,onEvent:k,userContext:{authToken:t,userId:Hi.UserId,additionalHeaders:I},elementFactory:d,partner:l,pidlsdkMock:v,callbacksIn:gi(gi({},P),{telemetryLogger:y}),telemetryOptions:b,propertyElementRef:S,onPageRendered:x,ref:this.baseComponentRef}))},n}(s.default.Component),Pl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return fi(t,e),t}(Xs),Il=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a={operation:Ki.Operation,country:t,language:n,partner:o,filters:{id:r.props.paymentInstrument.id}};return i&&(a=gi(gi({},a),i)),a},r.compileReturnOptions=function(){var e=r.props,t=e.onCancel;return{callbacks:{failure:e.onFailure,gohome:t}}},r.eventHandler=function(e,t){var n=r.props,o=n.onChange,i=n.onEvent,a=n.paymentInstrument;e===U.click&&(null===t||void 0===t?void 0:t.id)===Ki.ChangeButtonId&&o&&o(a.id),i&&i(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.baseDisabledStyleOverrides,m=o.scenarioDisabledStyleOverrides,h=o.telemetryLogger,f=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.PaymentInstrumentDetails,a,l,c,d,u,null,p,m,h);return r.state={styleProvider:f},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,i=e.showSubmitBlock,a=void 0===i||i,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,d=e.telemetryLogger,u=e.telemetryOptions,p=e.propertyElementRef,m=e.onPageRendered,h=e.callbacksIn,f=e.headers,g=e.displayOptions,v=this.state.styleProvider,y=this.compileParameters(),b=this.compileReturnOptions();return s.default.createElement(xa.Provider,{value:{styleProvider:v}},s.default.createElement(Pl,{busyBlockElement:r,displayOptions:gi(gi({},g),{containerId:Ki.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:a}),pidlDocInfo:{resourceType:Ki.ResourceType,parameters:y},env:n,returnOptions:b,onEvent:this.eventHandler,userContext:{authToken:t,userId:Ki.UserId,additionalHeaders:f},elementFactory:o,pidlsdkMock:c,callbacksIn:gi(gi({},h),{telemetryLogger:d}),telemetryOptions:u,propertyElementRef:p,onPageRendered:m,ref:this.baseComponentRef}))},n}(s.default.Component),wl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateProfile(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})}))||this;return n}return fi(t,e),t}(Xs),El=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compilePidlDocParameters=function(e,t,n,r){var o={operation:Ui.Operation,country:e,language:t,partner:n,type:"consumer"};return r&&(o=gi(gi({},o),r)),o},r.compileResourceParameters=function(e,t,n,r){return{country:e,language:t,partner:n,type:"consumer"}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{failure:r.FailureHandler,success:e,gohome:n}}},r.onEvent=function(e,t){var n=r.props,o=n.onEvent,i=n.viewTermsHandler,a=kt,s=a.eventNames,l=a.CustomTriggerEventConstants;(e===s.triggerEvent&&i&&t.eventName===l.viewTermsTriggered||e===s.navigate&&i&&t.displayId===Oi.ViewTermsId)&&i(t),o&&o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.ProfilePrerequisite,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,i=e.country,a=e.language,l=e.partner,c=e.elementFactory,d=e.onSuccess,u=e.onFailure,p=e.onCancel,m=e.showSubmitBlock,h=void 0===m||m,f=e.busyBlockShowHideHandler,g=e.pidlsdkMock,v=e.telemetryLogger,y=e.propertyElementRef,b=e.profileId,C=e.onPageRendered,S=e.callbacksIn,x=e.headers,k=e.displayOptions,P=this.state.styleProvider,I=this.compilePidlDocParameters(i,a,l,r),w=this.compileResourceParameters(i,a,l,r),E=this.compileReturnOptions(d,u,p);return s.default.createElement(xa.Provider,{value:{styleProvider:P}},s.default.createElement(wl,{busyBlockElement:o,displayOptions:gi(gi({},k),{containerId:Ui.ContainerId,busyBlockShowHideHandler:f,showSubmitBlock:h}),pidlDocInfo:{resourceType:Ui.ResourceType,parameters:I},resourceInfo:{resourceType:Ui.ResourceType,parameters:w,id:b},env:n,returnOptions:E,onEvent:this.onEvent,userContext:{authToken:t,userId:Ui.UserId,additionalHeaders:x},elementFactory:c,partner:l,pidlsdkMock:g,callbacksIn:gi(gi({},S),{telemetryLogger:v}),propertyElementRef:y,onPageRendered:C,ref:this.baseComponentRef}))},n}(s.default.Component),_l=function(e){function t(t){var n=e.call(this,t,(function(e){return e.replaceResource(n.props.pidlDocInfo,n.props.intersectingData,n.props.options)}))||this;return n}return fi(t,e),t}(Xs),Dl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.searchResource({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})}))||this;return n}return fi(t,e),t}(Xs),Tl=p((function(e,t){var n=c&&c.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{l(r.next(e))}catch(t){i(t)}}function s(e){try{l(r.throw(e))}catch(t){i(t)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((r=r.apply(e,t||[])).next())}))};function o(){return n(this,void 0,void 0,r.mark((function e(){return r.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e){if(-1!==navigator.userAgent.indexOf("Edg")){var t,n=function(){window.dispatchEvent(new CustomEvent("LoadLocalCards",{}))},r=function r(o){var i=JSON.parse(o.detail).localCards.map((function(e){var t,n,r,o,i,a,s,l=e.cardNumber,c=e.expMonth,d=e.expYear,u=e.cardType,p=e.name,m=e.billingAddress;return{details:{accountHolderName:p,accountToken:l,paymentMethodType:u,expiryYear:d,expiryMonth:c,cardType:"Credit",address:{first_name:"",last_name:"",address_line1:null!==(t=null===m||void 0===m?void 0:m.addressLine1)&&void 0!==t?t:"",address_line2:null!==(n=null===m||void 0===m?void 0:m.addressLine2)&&void 0!==n?n:"",city:null!==(r=null===m||void 0===m?void 0:m.city)&&void 0!==r?r:"",district:null!==(o=null===m||void 0===m?void 0:m.state)&&void 0!==o?o:"",region:"",postal_code:null!==(i=null===m||void 0===m?void 0:m.postalCode)&&void 0!==i?i:"",country:null!==(a=null===m||void 0===m?void 0:m.country)&&void 0!==a?a:"",phone_number:"",unit_number:null!==(s=null===m||void 0===m?void 0:m.aptNum)&&void 0!==s?s:""}}}}));e(i),clearTimeout(t),window.removeEventListener("BuyNowIsReady",n),window.removeEventListener("LoadLocalCardsFinished",r)};t=setTimeout((function(){e([]),window.removeEventListener("BuyNowIsReady",n),window.removeEventListener("LoadLocalCardsFinished",r)}),500),window.addEventListener("BuyNowIsReady",n),window.addEventListener("LoadLocalCardsFinished",r),window.dispatchEvent(new CustomEvent("IsBuyNowReady",{}))}else e([])})));case 1:case"end":return e.stop()}}),e)})))}Object.defineProperty(t,"__esModule",{value:!0}),t.getLocalCards=void 0,t.getLocalCards=o;var i={getLocalCards:o};t.default=i})),Rl=u(Tl),Al=(Tl.getLocalCards,function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectPaymentInstrument(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo,n.props.includePidl)}))||this;return n}return fi(t,e),t}(Xs)),Ml=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.allowAddNewPaymentMethod=!1,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.getResourceType=function(){return r.props.includePidl?Ni.paymentInstrumentList:Ni.ResourceType},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.allowedPaymentMethods,a=e.defaultPaymentMethod,s=e.parameters,l=e.sessionId,c=e.orderId,d=e.merchantId,u=e.currency,p=e.filters,m=e.classicProduct,h=e.billableAccountId,f=e.includePidl,g=e.paymentInstrumentSelectedHandler,v=e.onAddNewPaymentMethod,y={allowedPaymentMethods:(null===i||void 0===i?void 0:i.length)?i:Ni.AllowedPaymentMethods,operation:Ni.Operation,country:t,language:n,partner:o};return y.allowedPaymentMethods.length&&y.allowedPaymentMethods.indexOf(Ni.addNewPaymentMethodFamily)<0&&g&&v&&(y.allowedPaymentMethods=bi(bi([],y.allowedPaymentMethods,!0),[Ni.addNewPaymentMethodFamily],!1)),l&&(y.sessionId=l),f&&(y.includePidl=f),c&&(y.orderId=c),d&&(y.merchantId=d),u&&(y.currency=u),p&&(y.filters=p),m&&(y.classicProduct=m),h&&(y.billableAccountId=h),a&&(y.defaultPaymentMethod=a),s&&(y=gi(gi({},y),s)),y},r.failureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(){var e=r.props,t=e.onCancel,n=e.onSuccess;return{callbacks:{failure:r.failureHandler,success:n,gohome:t}}},r.isCreditCard=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return Nr.getFunctionExecutionResult({functionName:Ai.isCreditCard},{contextData:e})},r.isCreditCardExpired=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return Nr.getFunctionExecutionResult({functionName:Ai.isCreditCardExpired},{contextData:e})},r.onEventInternal=function(e,t){var n=r.props,o=n.onEvent,i=n.paymentInstrumentSelectedHandler,a=n.userPiAvailableCheckHandler;if(e==U.pageRefreshed&&t&&"noPaymentInstrumentSelectPage"==(null===t||void 0===t?void 0:t.pageId)&&(r.setState({userPiExists:!1}),a&&a(r.state.userPiExists)),i&&e===U.resourceSelected){var s=r.getSelectedResource(),l=r.props.onAddNewPaymentMethod;return r.allowAddNewPaymentMethod||s&&(null===s||void 0===s?void 0:s.paymentMethodType)===Ni.preventDefaultSelection||(r.allowAddNewPaymentMethod=!0),s.paymentMethodFamily===Ni.addNewPaymentMethodFamily&&r.allowAddNewPaymentMethod&&l?l():(r.allowAddNewPaymentMethod=!0,i(s))}if(o)return o(e,t)},r.getWalletCards=function(e){return vi(r,void 0,void 0,(function(){var t,n,r;return yi(this,(function(o){switch(o.label){case 0:return(null===e||void 0===e?void 0:e.getLocalCards)?((n=e.timeout||0)>0&&(t=setTimeout((function(){try{throw new Error("Timeout getting wallet cards")}catch(e){clearTimeout(t)}}),n)),[4,e.getLocalCards().then((function(e){return e})).catch((function(){return[]}))]):[3,2];case 1:return r=o.sent()||[],t&&clearTimeout(t),[2,r];case 2:return[2,[]]}}))}))},r.getLocalWalletProvider=function(e){return{paymentInstruments:{mergingFunction:"mergeAndFillLocalCards",getDataSource:function(){return r.getWalletCards(e)}}}},r.getRef=function(){return r.baseComponentRef},r.populatePrefillData=function(e){var t,n,r,o,i,a,s,l,c,d,u,p,m,h,f,g,v,y,b,C,S,x=null===(t=e.details)||void 0===t?void 0:t.expiryMonth,k=x.startsWith&&x.startsWith("0")?x.substring(1):x;return{accountToken:null===(n=e.details)||void 0===n?void 0:n.accountToken,accountHolderName:null===(r=e.details)||void 0===r?void 0:r.accountHolderName,expiryYear:null===(i=null===(o=e.details)||void 0===o?void 0:o.expiryYear)||void 0===i?void 0:i.toString(),expiryMonth:null===k||void 0===k?void 0:k.toString(),address:{address_line1:null===(s=null===(a=e.details)||void 0===a?void 0:a.address)||void 0===s?void 0:s.address_line1,address_line2:(null===(c=null===(l=e.details)||void 0===l?void 0:l.address)||void 0===c?void 0:c.address_line2)||"",address_line3:(null===(u=null===(d=e.details)||void 0===d?void 0:d.address)||void 0===u?void 0:u.address_line3)||"",city:null===(m=null===(p=e.details)||void 0===p?void 0:p.address)||void 0===m?void 0:m.city,region:(null===(f=null===(h=e.details)||void 0===h?void 0:h.address)||void 0===f?void 0:f.region)||(null===(v=null===(g=e.details)||void 0===g?void 0:g.address)||void 0===v?void 0:v.district),postal_code:null===(b=null===(y=e.details)||void 0===y?void 0:y.address)||void 0===b?void 0:b.postal_code,country:null===(S=null===(C=null===e||void 0===e?void 0:e.details)||void 0===C?void 0:C.address)||void 0===S?void 0:S.country}}},r.getSelectedResource=function(){var e,t,n,o,i,a,s,l,c,d,u,p,m=null===(t=null===(e=r.baseComponentRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.getSelectedResource(),h=(null===m||void 0===m?void 0:m.instance)||(null===m||void 0===m?void 0:m.paymentInstrumentId)||{},f={id:h.id,paymentMethodFamily:null===(n=h.paymentMethod)||void 0===n?void 0:n.paymentMethodFamily,paymentMethodType:null===(o=h.paymentMethod)||void 0===o?void 0:o.paymentMethodType,displayName:null===(a=null===(i=h.paymentMethod)||void 0===i?void 0:i.display)||void 0===a?void 0:a.name,email:null===(s=h.details)||void 0===s?void 0:s.email,lastFourDigits:null===(l=h.details)||void 0===l?void 0:l.lastFourDigits,isExpired:!!r.isCreditCard(h)&&r.isCreditCardExpired(h),soldToAddressRequired:null===(d=null===(c=h.paymentMethod)||void 0===c?void 0:c.properties)||void 0===d?void 0:d.soldToAddressRequired,properties:null===(u=h.paymentMethod)||void 0===u?void 0:u.properties};return(null===(p=h.details)||void 0===p?void 0:p.isNotSaved)&&(f.isNotSaved=h.details.isNotSaved,f.prefillData=r.populatePrefillData(h)),f};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.baseDisabledStyleOverrides,m=o.scenarioDisabledStyleOverrides,h=o.telemetryLogger,f=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentInstrument,a,l,c,d,u,null,p,m,h);return r.state={styleProvider:f,userPiExists:!0},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,i=e.showSubmitBlock,a=void 0===i||i,l=e.busyBlockShowHideHandler,c=e.pidlsdkMock,d=e.telemetryLogger,u=e.actionContext,p=e.telemetryOptions,m=e.pidlPayload,h=e.includePidl,f=e.propertyElementRef,g=(e.onEvent,e.onPageRendered),v=e.headers,y=e.callbacksIn,b=e.walletProvider,C=e.displayOptions,S=e.partner,x=this.state.styleProvider,k=this.compileParameters(),P=this.compileReturnOptions(),I=this.getLocalWalletProvider(null!==b&&void 0!==b?b:Rl),w=this.getResourceType();return s.default.createElement(xa.Provider,{value:{styleProvider:x}},s.default.createElement(Al,{busyBlockElement:r,displayOptions:gi(gi({},C),{containerId:Ni.ContainerId,busyBlockShowHideHandler:l,showSubmitBlock:a}),pidlDocInfo:{resourceType:w,parameters:k},env:n,returnOptions:P,onEvent:this.onEventInternal,userContext:{authToken:t,userId:Ni.UserId,additionalHeaders:v},actionContext:u,elementFactory:o,partner:S,pidlsdkMock:c,callbacksIn:gi(gi({},y),{telemetryLogger:d}),telemetryOptions:p,propertyElementRef:f,onPageRendered:g,ref:this.baseComponentRef,includePidl:h,pidlPayload:m,localDataSourceProviders:I}))},n}(s.default.Component),Nl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)}))||this;return n}return fi(t,e),t}(Xs),Fl=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a=e.defaultPaymentMethod,s=e.allowedPaymentMethods,l=e.filters,c=e.sessionId,d=e.orderId,u=e.merchantId,p=e.currency,m=e.pmGroupPageId,h={allowedPaymentMethods:(null===s||void 0===s?void 0:s.length)?s:Ei.AllowedPaymentMethods,operation:Ei.Operation,country:t,language:n,partner:o};return a&&(h.defaultPaymentMethod=a),c&&(h.sessionId=c),d&&(h.orderId=d),u&&(h.merchantId=u),p&&(h.currency=p),l&&(h.filters=l),m&&(h.pmGroupPageId=m),i&&(h=gi(gi({},h),i)),h},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t,n){return{callbacks:{failure:r.FailureHandler,success:e,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectPaymentMethod,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,i=e.onSuccess,a=e.onFailure,l=e.onCancel,c=e.showSubmitBlock,d=void 0===c||c,u=e.busyBlockShowHideHandler,p=e.pidlsdkMock,m=e.callbacksIn,h=e.propertyElementRef,f=e.onEvent,g=e.onPageRendered,v=e.telemetryLogger,y=e.headers,b=e.displayOptions,C=e.telemetryOptions,S=e.partner,x=this.state.styleProvider,k=this.compileParameters(),P=this.compileReturnOptions(i,a,l);return s.default.createElement(xa.Provider,{value:{styleProvider:x}},s.default.createElement(Nl,{busyBlockElement:r,displayOptions:gi(gi({},b),{containerId:Ei.ContainerId,busyBlockShowHideHandler:u,showSubmitBlock:d,disableFocusOnLoad:this.props.disableFocusOnLoad}),pidlDocInfo:{resourceType:Ei.ResourceType,parameters:k},env:n,returnOptions:P,onEvent:f,userContext:{authToken:t,userId:Ei.UserId,additionalHeaders:y},elementFactory:o,partner:S,pidlsdkMock:p,callbacksIn:gi(gi({},m),{telemetryLogger:v}),propertyElementRef:h,onPageRendered:g,telemetryOptions:C,ref:this.baseComponentRef}))},n}(s.default.Component),Hl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return fi(t,e),t}(Xs),Ol=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectResourceType(n.props.pidlDocInfo,n.props.options)}))||this;return n}return fi(t,e),t}(Xs),Bl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectSingleInstance(n.props.pidlDocInfo,n.props.options,n.props.actionContext,n.props.selectedResourceInfo)}))||this;return n}return fi(t,e),t}(Xs),Ll=function(e){function t(t){var n=e.call(this,t,(function(e){return e.showResource({pidlDocInfo:n.props.pidlDocInfo,prefillData:n.props.prefillData,options:n.props.options})}))||this;return n}return fi(t,e),t}(Xs),Vl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.testHookRenderPidlPage(n.props.pidlDocument,n.props.operation,n.props.pageIndex||0,n.props.prefillData)}))||this;return n}return fi(t,e),t}(Xs),zl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.updateResource(n.props.resourceInfo,n.props.resource,n.props.pidlDocInfo,n.props.options||{})}))||this;return n}return fi(t,e),t}(Xs),Wl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.validateAddress(n.props.pidlDocInfo)}))||this;return n}return fi(t,e),t}(Xs);t.ValidateAddressPages=void 0,(bl=t.ValidateAddressPages||(t.ValidateAddressPages={}))[bl.validateAddressPage=0]="validateAddressPage",bl[bl.editAddressPage=1]="editAddressPage";var Ul,Kl=function(e){function n(n){var r=e.call(this,n)||this;return r.baseComponentRef=s.default.createRef(),r.onValidateAddressEvent=function(e,n){var o=r.props,i=o.onEvent,a=o.currentPageChangeHandler;if(e==U.pageRefreshed){switch(n.pageId){case"addressSuggestionPage1":r.setState({currentPage:t.ValidateAddressPages.validateAddressPage});break;case"addressSuggestionPage2":r.setState({currentPage:t.ValidateAddressPages.editAddressPage})}a&&a(r.state.currentPage)}if(i)return i(e,n)},r.getCurrentPage=function(){return r.state.currentPage},r.getRef=function(){return r.props.pidlSdkRef||r.baseComponentRef},r.state={currentPage:t.ValidateAddressPages.validateAddressPage},r}return fi(n,e),n.prototype.compileParameters=function(e,t,n,r,o,i){var a=gi({operation:Ri.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return i&&(a=gi(gi({},a),i)),a},n.prototype.render=function(){var e=this.props,t=e.userContext,n=e.env,r=e.parameters,o=e.country,i=e.language,a=e.partner,l=e.addressId,c=e.addressType,d=e.elementFactory,u=e.returnOptions,p=e.pidlSdkRef,m=e.showSubmitBlock,h=void 0===m||m,f=e.busyBlockShowHideHandler,g=(e.onEvent,e.callbacksIn),v=this.compileParameters(o,i,a,l,c,r);return s.default.createElement(Wl,{displayOptions:{containerId:Ri.ContainerId,busyBlockShowHideHandler:f,showSubmitBlock:h},pidlDocInfo:{resourceType:Ri.ResourceType,parameters:v},env:n,returnOptions:u,userContext:t,elementFactory:d,partner:a,ref:p||this.baseComponentRef,onEvent:this.onValidateAddressEvent,callbacksIn:g})},n}(s.default.Component),jl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.validateResource(n.props.pidlDocInfo)}))||this;return n}return fi(t,e),t}(Xs),Gl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handleCheckout(n.props.checkoutParams)}))||this;return n}return fi(t,e),t}(Xs),ql=function(e){function t(t){var n=e.call(this,t,(function(e){return e.deleteResource({resourceInfo:n.props.resourceInfo,resource:n.props.resource,pidlDocInfo:n.props.pidlDocInfo,options:n.props.options||{}})}))||this;return n}return fi(t,e),t}(Xs),Yl=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileParameters=function(e,t,n,r,o,i){return{id:i,resourceType:Bi.ResourceType,resourceEndpoint:void 0,parameters:{market:e,language:t,partner:n,family:r,type:o}}},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileReturnOptions=function(e,t){return{callbacks:{success:e,failure:r.FailureHandler,gohome:t}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.DeletePaymentInstrument,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.paymentInstrumentId,r=e.paymentType,o=e.paymentFamily,i=e.env,a=e.busyBlockElement,l=e.country,c=e.language,d=e.partner,u=e.elementFactory,p=e.onSuccess,m=e.onCancel,h=e.showSubmitBlock,f=void 0===h||h,g=e.busyBlockShowHideHandler,v=e.telemetryLogger,y=e.headers,b=e.callbacksIn,C=e.displayOptions,S=this.state.styleProvider,x=this.compileParameters(l,c,d,o,r,n),k=this.compileReturnOptions(p,m);return s.default.createElement(xa.Provider,{value:{styleProvider:S}},s.default.createElement(ql,{returnOptions:k,busyBlockElement:a,env:i,options:void 0,resourceInfo:x,partner:d,elementFactory:u,callbacksIn:gi(gi({},b),{telemetryLogger:v}),userContext:{authToken:t,userId:Bi.UserId,additionalHeaders:y},displayOptions:gi(gi({},C),{containerId:Bi.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:f}),ref:this.baseComponentRef}))},n}(s.default.Component),Zl=function(e){function t(t){var n=e.call(this,t,(function(e){return e.handlePaymentChallenge(n.props.paymentSessionOrData)}))||this;return n}return fi(t,e),t}(Xs),Jl=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileDisplayOptions=function(){var e=r.props,t=e.busyBlockShowHideHandler,n=e.showSubmitBlock,o=void 0===n||n,i=e.displayOptions;return gi(gi({},i),{containerId:ji.ContainerId,busyBlockShowHideHandler:t,showSubmitBlock:o})},r.successHandler=function(e){"Cancelled"===e.challengeStatus||"Unknown"===e.challengeStatus?r.props.onCancel(e):"TimedOut"===e.challengeStatus?r.props.onFailure(e):r.props.onSuccess(e)},r.failureHandler=function(e){var t=null===e||void 0===e?void 0:e.error;r.props.onFailure(null===t||void 0===t?void 0:t.innererror)},r.compileReturnOptions=function(){var e=r.props.onCancel;return{callbacks:{success:r.successHandler,failure:r.failureHandler,gohome:e}}},r.compileCallbacksIn=function(){return{telemetryLogger:r.props.telemetryLogger}},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.HandlePaymentChallenge,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.state.styleProvider,t=this.props,n=t.authToken,r=t.busyBlockElement,o=t.env,i=t.elementFactory,a=t.headers,l=t.paymentSessionOrData,c=t.pidlsdkMock,d=t.propertyElementRef,u=t.onEvent,p=t.onPageRendered,m=t.telemetryOptions,h=t.partner,f=this.compileDisplayOptions(),g=this.compileReturnOptions(),v=this.compileCallbacksIn();return s.default.createElement(xa.Provider,{value:{styleProvider:e}},s.default.createElement(Zl,{busyBlockElement:r,displayOptions:f,env:o,returnOptions:g,userContext:{authToken:n,userId:ji.UserId,additionalHeaders:a},paymentSessionOrData:l,onEvent:u,partner:h,elementFactory:i,pidlsdkMock:c,callbacksIn:v,telemetryOptions:m,propertyElementRef:d,onPageRendered:p,ref:this.baseComponentRef}))},n}(s.default.Component);t.AllowedViews=void 0,function(e){e[e.SelectPaymentInstrument=0]="SelectPaymentInstrument",e[e.SelectPaymentMethod=1]="SelectPaymentMethod",e[e.AddPaymentInstrument=2]="AddPaymentInstrument",e[e.EditPaymentInstrument=3]="EditPaymentInstrument"}(t.AllowedViews||(t.AllowedViews={})),t.ManagePaymentInstrumentMode=void 0,(Ul=t.ManagePaymentInstrumentMode||(t.ManagePaymentInstrumentMode={}))[Ul.Select=0]="Select";var Ql,Xl,$l=function(e){function n(n){var r,o=this;return(o=e.call(this,n)||this).SelectPaymentInstrumentRef=s.default.createRef(),o.SelectPaymentMethodRef=s.default.createRef(),o.AddPaymentInstrumentRef=s.default.createRef(),o.EditPaymentInstrumentRef=s.default.createRef(),o.setCurrentView=function(){var e=o.props,n=e.pidlPayload,r=e.allowedPaymentMethods;return n&&Hr.isArray(r)&&0===r.length?t.AllowedViews.SelectPaymentMethod:t.AllowedViews.SelectPaymentInstrument},o.isCreditCardExpired=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return Nr.getFunctionExecutionResult({functionName:Ai.isCreditCardExpired},{contextData:e})},o.isGiftCard=function(e){if(null===window||void 0===window?void 0:window.pidlResourceHelpers)return Nr.getFunctionExecutionResult({functionName:Ai.isEwalletStoredValue},{contextData:e})},o.onSelectPIEvent=function(e,n){var r,i,a=o.props,s=a.onEvent,l=a.paymentInstrumentSelectedHandler,c=a.includePidl,d=a.pidlPayload;return l&&e===U.resourceSelected&&o.state.currentView===t.AllowedViews.SelectPaymentInstrument?l(null===(i=null===(r=o.SelectPaymentInstrumentRef)||void 0===r?void 0:r.current)||void 0===i?void 0:i.getSelectedResource()):((c||d)&&e===U.noSelectionOptionsFound&&o.state.currentView===t.AllowedViews.SelectPaymentInstrument&&o.setState({currentView:t.AllowedViews.SelectPaymentMethod}),s?s(e,n):void 0)},o.onSelectPISuccess=function(e){var n,r,i,a=e.instance,s=o.props,l=s.onSuccess,c=s.onFailure,d=s.redeemGiftCardHandler;if(e.resourceActionContext)switch(e.resourceActionContext.action){case"selectResourceType":o.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"addResource":o.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument});break;case"editPaymentInstrument":o.setState({paymentFamily:e.resourceActionContext.resource.paymentMethod.paymentMethodFamily,paymentType:e.resourceActionContext.resource.paymentMethod.paymentMethodType,paymentInstrumentId:e.resourceActionContext.resource.id,currentView:t.AllowedViews.EditPaymentInstrument});break;case"updateResource":Hr.isString(a)||o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:a.paymentMethod.paymentMethodFamily,paymentType:a.paymentMethod.paymentMethodType,paymentInstrumentId:a.id});break;default:l(a)}else if(e.action&&"success"!==Hr.toLowerCase(e.action))switch(e.action){case"selectResourceType":o.setState({currentView:t.AllowedViews.SelectPaymentMethod});break;case"updateResource":Hr.isString(a)||o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:a.paymentMethod.paymentMethodFamily,paymentType:a.paymentMethod.paymentMethodType,paymentInstrumentId:a.id})}else{var u=Fi.RedeemGiftCardLink,p=Fi.ManagePaymentInstrument,m=Fi.redeemGiftCardHandlerName;if("string"===typeof a){if(a===Fi.NewPaymentMethodLink&&o.setState({currentView:t.AllowedViews.SelectPaymentMethod}),a===u)if(d)d();else{var h=null===(r=null===(n=o.SelectPaymentInstrumentRef)||void 0===n?void 0:n.current)||void 0===r?void 0:r.getRef();null===(i=null===h||void 0===h?void 0:h.current)||void 0===i||i.implementationMissing(p,m),c({name:q.missingImplementationError,message:"Implentation of ".concat(null!==m&&void 0!==m?m:"undefined"," missing in ").concat(p),code:"",type:q.missingImplementationError,debugMessage:""})}}else o.isCreditCardExpired(a)?o.setState({currentView:t.AllowedViews.EditPaymentInstrument,paymentFamily:a.paymentMethod.paymentMethodFamily,paymentType:a.paymentMethod.paymentMethodType,paymentInstrumentId:a.id}):l(a)}},o.onSelectPaymentMethodSuccess=function(e){o.isGiftCard({paymentMethod:{paymentMethodFamily:e.paymentMethodFamily,paymentMethodType:e.paymentMethodType}})?o.onSelectPISuccess({operationType:ut.select,instance:Fi.RedeemGiftCardLink}):"windowssettings"===Hr.toLowerCase(o.props.partner)&&"credit_card"!==Hr.toLowerCase(e.paymentMethodFamily)?(0,o.props.onSuccess)(e):o.setState({paymentFamily:e.paymentMethodFamily,paymentType:e.paymentMethodType,currentView:t.AllowedViews.AddPaymentInstrument})},o.onAddPISuccess=function(e){try{var n=e.response;n.piModified=!0,(0,o.props.onSuccess)(n)}catch(r){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument})}},o.onEditPISuccess=function(e){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument});var n=o.props.onUpdateSuccess;if(n)try{var r=e.response;r.piModified=!0,n(r)}catch(i){}},o.cancelSelectPM=function(){o.pmGroupPageId=void 0,o.setState({currentView:t.AllowedViews.SelectPaymentInstrument,pmGroupPageId:o.pmGroupPageId})},o.cancelAddPI=function(){var e=o.props.goToSelectPIOnAddCancel;o.pmGroupPageId=o.state.paymentFamily;var n=e?t.AllowedViews.SelectPaymentInstrument:t.AllowedViews.SelectPaymentMethod;o.setState({currentView:n,pmGroupPageId:o.pmGroupPageId})},o.cancelEditPI=function(){o.setState({currentView:t.AllowedViews.SelectPaymentInstrument})},o.moveNextPage=function(){var e,n,r,i,a,s,l,c,d,u,p,m;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(r=null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.moveNextPage();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(i=o.SelectPaymentMethodRef)||void 0===i?void 0:i.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.moveNextPage();break;case t.AllowedViews.AddPaymentInstrument:null===(d=null===(c=null===(l=o.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===c?void 0:c.getRef().current)||void 0===d||d.moveNextPage();break;case t.AllowedViews.EditPaymentInstrument:null===(m=null===(p=null===(u=o.EditPaymentInstrumentRef)||void 0===u?void 0:u.current)||void 0===p?void 0:p.getRef().current)||void 0===m||m.moveNextPage()}},o.movePrevPage=function(){var e,n,r,i,a,s,l,c,d,u,p,m;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(r=null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.movePrevPage();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(i=o.SelectPaymentMethodRef)||void 0===i?void 0:i.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.movePrevPage();break;case t.AllowedViews.AddPaymentInstrument:null===(d=null===(c=null===(l=o.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===c?void 0:c.getRef().current)||void 0===d||d.movePrevPage();break;case t.AllowedViews.EditPaymentInstrument:null===(m=null===(p=null===(u=o.EditPaymentInstrumentRef)||void 0===u?void 0:u.current)||void 0===p?void 0:p.getRef().current)||void 0===m||m.movePrevPage()}},o.cancel=function(){var e,n,r,i,a,s,l,c,d,u,p,m;switch(o.state.currentView){case t.AllowedViews.SelectPaymentInstrument:null===(r=null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.cancel();break;case t.AllowedViews.SelectPaymentMethod:null===(s=null===(a=null===(i=o.SelectPaymentMethodRef)||void 0===i?void 0:i.current)||void 0===a?void 0:a.getRef().current)||void 0===s||s.cancel();break;case t.AllowedViews.AddPaymentInstrument:null===(d=null===(c=null===(l=o.AddPaymentInstrumentRef)||void 0===l?void 0:l.current)||void 0===c?void 0:c.getRef().current)||void 0===d||d.cancel();break;case t.AllowedViews.EditPaymentInstrument:null===(m=null===(p=null===(u=o.EditPaymentInstrumentRef)||void 0===u?void 0:u.current)||void 0===p?void 0:p.getRef().current)||void 0===m||m.cancel()}},o.cancelSelectPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.SelectPaymentInstrument&&(null===(r=null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.cancel())},o.cancelOrMovePrevSelectPaymentMethod=function(){var e,n,r;o.state.currentView===t.AllowedViews.SelectPaymentMethod&&(null===(r=null===(n=null===(e=o.SelectPaymentMethodRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.movePrevPage())},o.cancelAddPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null===(r=null===(n=null===(e=o.AddPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.cancel())},o.cancelEditPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null===(r=null===(n=null===(e=o.EditPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.cancel())},o.submitAddPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.AddPaymentInstrument&&(null===(r=null===(n=null===(e=o.AddPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.moveNextPage())},o.submitEditPaymentInstrument=function(){var e,n,r;o.state.currentView===t.AllowedViews.EditPaymentInstrument&&(null===(r=null===(n=null===(e=o.EditPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getRef().current)||void 0===r||r.moveNextPage())},o.getCurrentView=function(){return o.state.currentView},o.getSelectedResource=function(){var e,n;if(o.state.currentView===t.AllowedViews.SelectPaymentInstrument)return null===(n=null===(e=o.SelectPaymentInstrumentRef)||void 0===e?void 0:e.current)||void 0===n?void 0:n.getSelectedResource()},o.state={currentView:o.setCurrentView(),paymentFamily:"",paymentType:"",paymentInstrumentId:"",allowedPaymentMethods:o.props.allowedPaymentMethods,selectPMAllowedPaymentMethods:(null===(r=o.props.selectPMAllowedPaymentMethods)||void 0===r?void 0:r.length)>0?o.props.selectPMAllowedPaymentMethods:o.props.allowedPaymentMethods},o.pmGroupPageId=void 0,o}return fi(n,e),n.prototype.componentDidMount=function(){this.props.currentViewChangeHandler&&this.props.currentViewChangeHandler(t.AllowedViews.SelectPaymentInstrument)},n.prototype.componentDidUpdate=function(e,t,n){this.props.currentViewChangeHandler&&this.state.currentView!==t.currentView&&this.props.currentViewChangeHandler(this.state.currentView)},n.prototype.render=function(){var e=this.props,n=e.authToken,r=e.env,o=e.parameters,i=e.busyBlockElement,a=e.baseStyleOverrides,l=e.scenarioStyleOverrides,c=e.baseFocusStyleOverrides,d=e.scenarioFocusStyleOverrides,u=e.telemetryLogger,p=e.telemetryOptions,m=e.language,h=e.partner,f=e.elementFactory,g=e.onFailure,v=e.onCancel,y=e.busyBlockShowHideHandler,b=e.redirectionSuccessUrl,C=e.redirectionFailureUrl,S=e.includePidl,x=e.pidlPayload,k=e.actionContext,P=e.pidlsdkMock,I=e.propertyElementRef,w=e.onPageRendered,E=e.onEvent,_=e.completePrerequisites,D=e.viewTermsHandler,T=e.defaultPaymentMethod,R=e.sessionId,A=e.orderId,M=e.merchantId,N=e.currency,F=e.filters,H=e.headers,O=e.walletProvider,B=e.showSubmitBlock,L=void 0===B||B,V=e.displayOptions,z=this.state,W=z.currentView,U=z.paymentFamily,K=z.paymentType,j=z.paymentInstrumentId,G=z.allowedPaymentMethods,q=z.selectPMAllowedPaymentMethods,Y=this.props,Z=Y.country,J=Y.market;return Z=Z||J,s.default.createElement(s.default.Fragment,null,W===t.AllowedViews.SelectPaymentInstrument&&s.default.createElement(Ml,{baseStyleOverrides:a,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:d,elementFactory:f,authToken:n,env:r,onSuccess:this.onSelectPISuccess,onFailure:g,onCancel:v,busyBlockShowHideHandler:y,busyBlockElement:i,country:Z,language:m,partner:h,parameters:o,pidlsdkMock:P,telemetryLogger:u,telemetryOptions:p,propertyElementRef:I,onPageRendered:w,onEvent:this.onSelectPIEvent,allowedPaymentMethods:G,filters:F,sessionId:R,orderId:A,merchantId:M,currency:N,headers:H,includePidl:S,pidlPayload:x,actionContext:k,showSubmitBlock:L,ref:this.SelectPaymentInstrumentRef,walletProvider:O,displayOptions:V}),W===t.AllowedViews.SelectPaymentMethod&&s.default.createElement(Fl,{baseStyleOverrides:a,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:d,elementFactory:f,authToken:n,env:r,onSuccess:this.onSelectPaymentMethodSuccess,onFailure:g,onCancel:this.cancelSelectPM,busyBlockShowHideHandler:y,busyBlockElement:i,country:Z,language:m,partner:h,parameters:o,pidlsdkMock:P,telemetryLogger:u,telemetryOptions:p,propertyElementRef:I,onPageRendered:w,onEvent:E,defaultPaymentMethod:T,allowedPaymentMethods:q,filters:F,sessionId:R,orderId:A,merchantId:M,currency:N,headers:H,pmGroupPageId:this.pmGroupPageId,showSubmitBlock:L,ref:this.SelectPaymentMethodRef,displayOptions:V}),W===t.AllowedViews.AddPaymentInstrument&&s.default.createElement(nl,{baseStyleOverrides:a,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:d,elementFactory:f,authToken:n,env:r,onSuccess:this.onAddPISuccess,onFailure:g,onCancel:this.cancelAddPI,busyBlockShowHideHandler:y,busyBlockElement:i,country:Z,language:m,partner:h,paymentFamily:U,paymentType:K,completePrerequisites:_,parameters:o,redirectionSuccessUrl:b,redirectionFailureUrl:C,pidlsdkMock:P,telemetryLogger:u,telemetryOptions:p,propertyElementRef:I,onPageRendered:w,onEvent:E,viewTermsHandler:D,showSubmitBlock:L,headers:"windowssettings"===Hr.toLowerCase(this.props.partner)?gi(gi({},H),{"x-ms-flight":"PXUsePartnerSettingsService"}):H,ref:this.AddPaymentInstrumentRef,displayOptions:V}),W===t.AllowedViews.EditPaymentInstrument&&s.default.createElement(ml,{baseStyleOverrides:a,scenarioStyleOverrides:l,baseFocusStyleOverrides:c,scenarioFocusStyleOverrides:d,elementFactory:f,authToken:n,env:r,onSuccess:this.onEditPISuccess,onFailure:g,onCancel:this.cancelEditPI,busyBlockShowHideHandler:y,busyBlockElement:i,country:Z,language:m,partner:h,paymentInstrumentId:j,paymentFamily:U,paymentType:K,parameters:o,pidlsdkMock:P,telemetryLogger:u,telemetryOptions:p,propertyElementRef:I,onPageRendered:w,onEvent:E,viewTermsHandler:D,showSubmitBlock:L,headers:"windowssettings"===Hr.toLowerCase(this.props.partner)?gi(gi({},H),{"x-ms-flight":"PXUsePartnerSettingsService"}):H,ref:this.EditPaymentInstrumentRef,displayOptions:V}))},n}(s.default.Component);!function(e){e[e.ListAddress=0]="ListAddress",e[e.AddNewAddress=1]="AddNewAddress",e[e.EditAddress=2]="EditAddress"}(Ql||(Ql={})),t.ManageAddressMode=void 0,(Xl=t.ManageAddressMode||(t.ManageAddressMode={}))[Xl.Select=0]="Select",Xl[Xl.Edit=1]="Edit";var ec,tc=function(e){function n(n){var r=e.call(this,n)||this;return r.onSuccessWrapper=function(e){"newAddressLink"===e.id&&r.props.onAddNewAddress?r.props.onAddNewAddress(e):"newAddressLink"===e.id?r.setState({currentView:Ql.AddNewAddress}):r.shouldOpenEditView(e)?r.setState({currentView:Ql.EditAddress,addressId:e.instance.id}):r.props.onSuccess(e)},r.shouldOpenEditView=function(e){var n,o,i=r.props,a=i.mode,s=i.scenario;return a===t.ManageAddressMode.Edit||a===t.ManageAddressMode.Select&&!((null===(n=null===e||void 0===e?void 0:e.instance)||void 0===n?void 0:n.first_name)&&(null===(o=null===e||void 0===e?void 0:e.instance)||void 0===o?void 0:o.last_name))&&s===t.AddressScenario.shipping},r.returnToListView=function(){r.setState({currentView:Ql.ListAddress})},r.state={currentView:Ql.ListAddress},r}return fi(n,e),n.prototype.componentDidUpdate=function(e){var t=this.props,n=t.mode,r=t.scenario,o=t.country,i=t.language,a=t.partner,s=t.addressType;e.mode===n&&e.scenario===r&&e.country===o&&e.language===i&&e.partner===a&&e.addressType===s||this.setState({currentView:Ql.ListAddress})},n.prototype.render=function(){var e=this.props,t=e.baseStyleOverrides,n=e.scenarioStyleOverrides,r=e.baseFocusStyleOverrides,o=e.scenarioFocusStyleOverrides,i=e.telemetryLogger,a=e.telemetryOptions,l=e.authToken,c=e.env,d=e.addressType,u=e.showSubmitBlock,p=void 0===u||u,m=e.busyBlockElement,h=e.country,f=e.language,g=e.partner,v=e.scenario,y=e.elementFactory,b=e.onFailure,C=e.onCancel,S=e.busyBlockShowHideHandler,x=e.pidlsdkMock,k=e.propertyElementRef,P=e.onPageRendered,I=e.onEvent,w=e.viewTermsHandler,E=e.headers,_=e.displayOptions,D=this.state,T=D.addressId,R=D.currentView;return s.default.createElement(s.default.Fragment,null,R===Ql.ListAddress&&s.default.createElement(kl,{authToken:l,elementFactory:y,env:c,scenario:v,addressType:d,country:h,language:f,partner:g,onSuccess:this.onSuccessWrapper,onFailure:b,onCancel:C,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockElement:m,busyBlockShowHideHandler:S,pidlsdkMock:x,telemetryLogger:i,telemetryOptions:a,propertyElementRef:k,onPageRendered:P,onEvent:I,headers:E,showSubmitBlock:p,displayOptions:_}),R===Ql.AddNewAddress&&s.default.createElement(el,{authToken:l,elementFactory:y,env:c,country:h,language:f,partner:g,scenario:v,addressType:d,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockElement:m,busyBlockShowHideHandler:S,pidlsdkMock:x,telemetryLogger:i,telemetryOptions:a,propertyElementRef:k,onPageRendered:P,onEvent:I,viewTermsHandler:w,headers:E,showSubmitBlock:p,displayOptions:_}),R===Ql.EditAddress&&s.default.createElement(ul,{authToken:l,addressId:T,elementFactory:y,env:c,country:h,scenario:v,language:f,partner:g,onSuccess:this.returnToListView,onFailure:b,onCancel:this.returnToListView,baseStyleOverrides:t,scenarioStyleOverrides:n,baseFocusStyleOverrides:r,scenarioFocusStyleOverrides:o,busyBlockShowHideHandler:S,onPageRendered:P,onEvent:I,viewTermsHandler:w,telemetryLogger:i,telemetryOptions:a,headers:E,showSubmitBlock:p,displayOptions:_}))},n}(s.default.Component),nc=function(e){function t(t){var n=e.call(this,t,(function(e){return e.validateAddress(n.props.pidlDocInfo)}))||this;return n}return fi(t,e),t}(Xs);t.VerifyAddressPages=void 0,(ec=t.VerifyAddressPages||(t.VerifyAddressPages={}))[ec.verifyAddressPage=0]="verifyAddressPage",ec[ec.editAddressPage=1]="editAddressPage",ec[ec.noAddressSuggestionsPage=2]="noAddressSuggestionsPage";var rc=function(e){function n(n){var r=e.call(this,n)||this;r.VerifyAddressRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.onVerifyAddressEvent=function(e,n){var o=r.props,i=o.onEvent,a=o.currentPageChangeHandler;if(e==U.pageRefreshed)switch(n.pageId){case"addressSuggestionPage1":a&&a(t.VerifyAddressPages.verifyAddressPage);break;case"addressSuggestionPage2":a&&a(t.VerifyAddressPages.editAddressPage);break;case"noAddressSuggestionsPage":a&&a(t.VerifyAddressPages.noAddressSuggestionsPage)}if(i)return i(e,n)},r.moveNextPage=function(){var e,t;null===(t=null===(e=r.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.moveNextPage()},r.movePrevPage=function(){var e,t;null===(t=null===(e=r.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.movePrevPage()},r.cancel=function(){var e,t;null===(t=null===(e=r.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.cancel()},r.submitPage=function(){var e,t;null===(t=null===(e=r.VerifyAddressRef)||void 0===e?void 0:e.current)||void 0===t||t.submitPage()},r.getRef=function(){return r.VerifyAddressRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.VerifyAddress,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.compileParameters=function(e,t,n,r,o,i){var a=gi({operation:Ri.Operation,type:o},{country:e,language:t,partner:n,addressId:r});return i&&(a=gi(gi({},a),i)),a},n.prototype.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:t,gohome:n}}},n.prototype.render=function(){var e=this.props,t=e.env,n=e.parameters,r=e.country,o=e.language,i=e.partner,a=e.addressId,l=e.addressType,c=e.elementFactory,d=e.busyBlockElement,u=e.showSubmitBlock,p=void 0===u||u,m=e.busyBlockShowHideHandler,h=(e.onEvent,e.callbacksIn,e.onSuccess),f=e.onFailure,g=e.onCancel,v=e.headers,y=e.telemetryLogger,b=e.propertyElementRef,C=e.onPageRendered,S=e.pidlsdkMock,x=e.authToken,k=e.displayOptions,P=this.state.styleProvider,I=this.compileParameters(r,o,i,a,l,n),w=this.compileReturnOptions(h,f,g);return s.default.createElement(xa.Provider,{value:{styleProvider:P}},s.default.createElement(nc,{busyBlockElement:d,displayOptions:gi(gi({},k),{containerId:Ri.ContainerId,busyBlockShowHideHandler:m,showSubmitBlock:p}),pidlDocInfo:{resourceType:Ri.ResourceType,parameters:I},env:t,returnOptions:w,onEvent:this.onVerifyAddressEvent,userContext:{authToken:x,userId:Ri.UserId,additionalHeaders:v},elementFactory:c,pidlsdkMock:S,callbacksIn:{telemetryLogger:y},propertyElementRef:b,onPageRendered:C,ref:this.VerifyAddressRef}))},n}(s.default.Component),oc=function(e){function t(t){var n=e.call(this,t,(function(e){return e.redeemMSRewards(n.props.pidlDocInfo)}))||this;return n}return fi(t,e),t}(Xs),ic=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.FailureHandler=function(e){r.props.onFailure(e.error)},r.compileRewardsContextData=function(e,t){return{orderAmount:e,currency:t}},r.compileParameters=function(e,t,n,o,i,a){var s=r.compileRewardsContextData(i,a),l={country:e,language:t,partner:n,type:r.getResourceType(),rewardsContextData:s};return o&&(l=gi(gi({},l),o)),l},r.compileReturnOptions=function(e,t,n){return{callbacks:{success:e,failure:r.FailureHandler,gohome:n}}},r.compileCallbacks=function(){var e=r.props,t=e.telemetryLogger,n=e.elementFactory,o=e.callbacksIn,i=gi({},o);return t&&(i.telemetryLogger=t),(null===n||void 0===n?void 0:n.encryptionHandler)&&(i.encryptionHandler=n.encryptionHandler()),i},r.getResourceType=function(){return Vi.ResourceType},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.RedeemMSRewards,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.parameters,o=e.busyBlockElement,i=e.country,a=e.language,l=e.partner,c=e.elementFactory,d=e.onSuccess,u=e.onFailure,p=e.onCancel,m=e.onEvent,h=e.showSubmitBlock,f=void 0===h||h,g=e.busyBlockShowHideHandler,v=e.pidlsdkMock,y=(e.telemetryLogger,e.telemetryOptions),b=e.propertyElementRef,C=e.onPageRendered,S=e.headers,x=e.orderAmount,k=e.currency,P=e.displayOptions,I=this.state.styleProvider,w=this.compileParameters(i,a,l,r,x,k),E=this.compileReturnOptions(d,u,p),_=this.compileCallbacks();return s.default.createElement(xa.Provider,{value:{styleProvider:I}},s.default.createElement(oc,{busyBlockElement:o,displayOptions:gi(gi({},P),{containerId:Vi.ContainerId,busyBlockShowHideHandler:g,showSubmitBlock:f}),pidlDocInfo:{resourceType:this.getResourceType(),parameters:w},env:n,returnOptions:E,userContext:{authToken:t,userId:Vi.UserId,additionalHeaders:S},onEvent:m,elementFactory:c,pidlsdkMock:v,callbacksIn:_,telemetryOptions:y,propertyElementRef:b,onPageRendered:C,ref:this.baseComponentRef}))},n}(s.default.Component),ac=function(e){function t(t){var n=e.call(this,t,(function(e){return e.searchTransactions({pidlDocInfo:n.props.pidlDocInfo,options:n.props.options})}))||this;return n}return fi(t,e),t}(Xs),sc=function(e){function t(t){return e.call(this,t,(function(e){return e.offerResource({pidlDocInfo:t.pidlDocInfo})}))||this}return fi(t,e),t}(Xs),lc=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileParameters=function(){var e=r.props,t=e.country,n=e.language,o=e.partner,i=e.parameters,a=e.scenario,s={operation:Wi.Operation,country:t,language:n,partner:o,scenario:a};return i&&(s=gi(gi({},s),i)),s},r.compileReturnOptions=function(e,t,n,r){return{urls:r,callbacks:{success:e,failure:t,gohome:n}}},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.OfferPaymentInstrument,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,i=e.onSuccess,a=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,d=e.showSubmitBlock,u=void 0===d||d,p=e.busyBlockShowHideHandler,m=e.pidlsdkMock,h=e.telemetryOptions,f=e.propertyElementRef,g=e.onEvent,v=e.onPageRendered,y=e.headers,b=e.useWebView2,C=e.displayOptions,S=e.partner,x=this.state.styleProvider,k=this.compileParameters(),P=this.compileReturnOptions(i,a,l,c);return s.default.createElement(xa.Provider,{value:{styleProvider:x}},s.default.createElement(sc,{busyBlockElement:r,displayOptions:gi(gi({},C),{containerId:Wi.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:u,useWebView2:b}),pidlDocInfo:{resourceType:Wi.ResourceType,parameters:k},env:n,returnOptions:P,onEvent:g,userContext:{authToken:t,userId:Wi.UserId,additionalHeaders:y},elementFactory:o,partner:S,pidlsdkMock:m,telemetryOptions:h,propertyElementRef:f,onPageRendered:v,ref:this.baseComponentRef}))},n}(s.default.Component),cc=function(e){function t(t){var n=e.call(this,t,(function(e){return e.selectMSRewards(n.props.pidlDocInfo)}))||this;return n}return fi(t,e),t}(Xs),dc=function(e){function n(n){var r=e.call(this,n)||this;r.baseComponentRef=s.default.createRef(),r.onAppThemeChangeHandlerRegistration=void 0,r.onAppThemeChanged=function(e){var n=r.props,o=n.elementFactory,i=n.partner,a=n.baseStyleOverrides,s=n.scenarioStyleOverrides,l=n.baseFocusStyleOverrides,c=n.scenarioFocusStyleOverrides,d=n.baseDisabledStyleOverrides,u=n.scenarioDisabledStyleOverrides,p=n.telemetryLogger,m=(null===o||void 0===o?void 0:o.initializeStyles)&&o.initializeStyles(t.AppScenario.SelectPaymentInstrument,i,a,s,l,c,null,d,u,p);r.setState({styleProvider:m})},r.compileRewardsContextData=function(e,t){return{orderAmount:e,currency:t}},r.getResourceType=function(){return Mi.ResourceType},r.compileParameters=function(){var e=r.props,t=e.country,n=e.currency,o=e.language,i=e.orderAmount,a=e.partner,s=e.parameters,l=e.scenario,c=r.compileRewardsContextData(i,n),d={operation:Wi.Operation,country:t,language:o,partner:a,rewardsContextData:c,scenario:l,type:r.getResourceType()};return s&&(d=gi(gi({},d),s)),d},r.compileReturnOptions=function(e,t,n,r){return{urls:r,callbacks:{success:e,failure:t,gohome:n}}},r.onEventInternal=function(e,t){var n=r.props,o=n.onEvent,i=n.onMSRewardsSelectionChange;if(i&&(e===U.pageRendered||e===U.pageRefreshed)&&r.baseComponentRef&&r.baseComponentRef.current&&r.baseComponentRef.current.getPidlPayload&&r.baseComponentRef.current.getPidlPayload().then((function(e){e&&e.payload&&e.payload.data&&i(e.payload.data)})),o)return o(e,t)},r.getRef=function(){return r.baseComponentRef};var o=r.props,i=o.elementFactory,a=o.partner,l=o.baseStyleOverrides,c=o.scenarioStyleOverrides,d=o.baseFocusStyleOverrides,u=o.scenarioFocusStyleOverrides,p=o.telemetryLogger,m=(null===i||void 0===i?void 0:i.initializeStyles)&&i.initializeStyles(t.AppScenario.SelectMSRewards,a,l,c,d,u,null,null,null,p);return r.state={styleProvider:m},r}return fi(n,e),n.prototype.componentDidMount=function(){var e;this.props&&this.props.elementFactory&&this.props.elementFactory.addAppThemeChangeHandler&&(this.onAppThemeChangeHandlerRegistration=null===(e=this.props.elementFactory)||void 0===e?void 0:e.addAppThemeChangeHandler(this.onAppThemeChanged))},n.prototype.componentWillUnmount=function(){var e;this.onAppThemeChangeHandlerRegistration&&this.onAppThemeChangeHandlerRegistration.remove&&(null===(e=this.onAppThemeChangeHandlerRegistration)||void 0===e||e.remove())},n.prototype.render=function(){var e=this.props,t=e.authToken,n=e.env,r=e.busyBlockElement,o=e.elementFactory,i=e.onSuccess,a=e.onFailure,l=e.onCancel,c=e.redirectReturnUrls,d=e.showSubmitBlock,u=void 0===d||d,p=e.busyBlockShowHideHandler,m=e.pidlsdkMock,h=e.telemetryOptions,f=e.propertyElementRef,g=(e.onEvent,e.onPageRendered),v=e.headers,y=e.useWebView2,b=e.displayOptions,C=this.state.styleProvider,S=this.compileParameters(),x=this.compileReturnOptions(i,a,l,c);return s.default.createElement(xa.Provider,{value:{styleProvider:C}},s.default.createElement(cc,{busyBlockElement:r,displayOptions:gi(gi({},b),{containerId:Mi.ContainerId,busyBlockShowHideHandler:p,showSubmitBlock:u,useWebView2:y}),pidlDocInfo:{resourceType:Mi.ResourceType,parameters:S},env:n,returnOptions:x,onEvent:this.onEventInternal,userContext:{authToken:t,userId:Mi.UserId,additionalHeaders:v},elementFactory:o,pidlsdkMock:m,telemetryOptions:h,propertyElementRef:f,onPageRendered:g,ref:this.baseComponentRef}))},n}(s.default.Component),uc=function(e){function t(t){var n=e.call(this,t,(function(e){return e.expressCheckout(n.props.pidlDocInfo)}))||this;return n}return fi(t,e),t}(Xs);t.AddAddress=el,t.AddAddressConstants=wi,t.AddPaymentInstrument=nl,t.AddPaymentInstrumentConstants=Oi,t.AddPaymentInstrumentInternal=tl,t.AddResource=il,t.ApplyPaymentInstrument=ol,t.ApplyPaymentInstrumentConstants=zi,t.ApplyPaymentInstrumentInternal=rl,t.ApplyResource=al,t.Audio=os,t.AudioInner=rs,t.BodyBlock=function(e){var t=e.children;return a.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-pagecontent-block",id:"pidlddc-div-pagebodycontents"},t)},t.Button=La,t.ButtonInner=Ba,t.ButtonList=Ua,t.ButtonListElement=za,t.ButtonListElementInner=Va,t.ButtonListInner=Wa,t.Captcha=ns,t.CaptchaInner=ts,t.CheckBox=ja,t.CheckBoxInner=Ka,t.ConfirmPayment=ll,t.ConfirmPaymentConstants=Ti,t.ConfirmPaymentInternal=sl,t.CreatePaymentSession=cl,t.DefaultExpressCheckoutButtonElement=ds,t.DefaultIFrameElement=Da,t.DeletePaymentInstrument=Yl,t.DeletePaymentInstrumentConstants=Bi,t.DeleteResource=ql,t.Dropdown=Qa,t.EditAddress=ul,t.EditAddressConstants=_i,t.EditPaymentInstrument=ml,t.EditPaymentInstrumentConstants=Li,t.Error=Ea,t.ExpressCheckout=vl,t.ExpressCheckoutButtonElement=ps,t.ExpressCheckoutButtonElementInner=us,t.ExpressCheckoutConstants=Gi,t.ExpressCheckoutInternal=gl,t.FilePicker=Oa,t.FundStoredValue=hl,t.Group=$a,t.GroupError=Xa,t.GroupLabel=qa,t.GroupLabelInner=Ga,t.HandleCheckout=Gl,t.HandleIndia3DSChallenge=Jl,t.HandleIndia3DSChallengeConstants=ji,t.HandleIndia3DSChallengeInternal=Zl,t.HandlePaymentChallenge=fl,t.HandlePurchaseRiskChallenge=yl,t.HandleRiskChallenge=Sl,t.HandleRiskChallengeConstants=Di,t.HandleRiskChallengeInternal=Cl,t.Heading=gs,t.HeadingInner=fs,t.HelpDialog=Fa,t.HelpDialogInner=Na,t.Hyperlink=is,t.IFrameElement=Ra,t.IFrameElementInner=Ta,t.Image=as,t.ListAddress=kl,t.ListAddressConstants=Hi,t.LogoElement=ss,t.ManageAddress=tc,t.ManagePaymentInstrument=$l,t.ManagePaymentInstrumentConstants=Fi,t.Modal=Za,t.ModalInner=Ya,t.OfferPaymentInstrument=lc,t.OfferPaymentInstrumentConstants=Wi,t.OfferPaymentInstrumentInternal=sc,t.PageAlert=_a,t.PageErrorBlock=function(e){var t=e.children;return a.createElement("div",{className:"pidlddc-div pidlddc-div-group pidlddc-error-block",id:"pidlddc-div-pageerrorblock","aria-live":"polite"},t)},t.PaymentInstrumentDetails=Il,t.PaymentInstrumentDetailsConstants=Ki,t.PaymentInstrumentDetailsInternal=Pl,t.PidlComponent=Qs,t.PidlDocBuilder=Es,t.PidlInstance=Is,t.PidlPropertyBuilder=Ds,t.PrefillCheckBox=Rs,t.PrefillCheckBoxInner=Ts,t.ProfilePrerequisite=El,t.ProfilePrerequisiteConstants=Ui,t.PropertyLabel=Ma,t.PropertyLabelInner=Aa,t.QuickPayment=uc,t.Radio=hs,t.RedeemMSRewards=ic,t.RedeemMSRewardsConstants=Vi,t.RedeemMSRewardsInternal=oc,t.ReplaceResource=_l,t.ResourceHelpersConstants=Ai,t.RiskChallengeConstants=qi,t.SearchResource=Dl,t.SearchTransactions=ac,t.SelectMSRewards=dc,t.SelectMSRewardsConstants=Mi,t.SelectPaymentInstrument=Ml,t.SelectPaymentInstrumentConstants=Ni,t.SelectPaymentMethod=Fl,t.SelectPaymentMethodConstants=Ei,t.SelectPaymentMethodInternal=Nl,t.SelectResource=Hl,t.SelectResourceType=Ol,t.SelectSingleResource=Bl,t.ShowResource=Ll,t.StyleProviderContext=xa,t.SubHeading=ys,t.SubHeadingInner=vs,t.TestHookRenderPidl=Vl,t.Text=Cs,t.TextBox=ks,t.TextGroup=es,t.TextInner=bs,t.UpdateResource=zl,t.ValidateAddress=Kl,t.ValidateAddressConstants=Ri,t.ValidateResource=jl,t.VerifyAddress=rc,t.defaultEnvironment=Ii,t.getClassNamesFromStyleHints=function(e){var t=[];if(e)for(var n=0,r=e;n<r.length;n++){var o=r[n];t.push(T.taggedClass+o)}return t},t.getHtmlAttributesFromTags=wa,t.getPidlReactCustomProps=Pa,t.getTagClassNames=ka,t.pidl=mi,t.pidlReactClassPrefix=Si,t.shouldHideInlineError=Ia,t.startsWith=xi},x(k={exports:{}},k.exports),k.exports),w=((P=I)&&P.__esModule&&Object.prototype.hasOwnProperty.call(P,"default")&&P.default,I.AppScenario,I.ElementType,I.AddressScenario,I.ApplyPaymentInstrumentScenario,I.OfferPaymentInstrumentScenario,I.RiskPurchaseType,I.ValidateAddressPages,I.AllowedViews,I.ManagePaymentInstrumentMode,I.ManageAddressMode,I.VerifyAddressPages,I.AddAddress,I.AddAddressConstants,I.AddPaymentInstrument,I.AddPaymentInstrumentConstants,I.AddPaymentInstrumentInternal,I.AddResource),E=(I.ApplyPaymentInstrument,I.ApplyPaymentInstrumentConstants,I.ApplyPaymentInstrumentInternal,I.ApplyResource,I.Audio,I.AudioInner,I.BodyBlock,I.Button,I.ButtonInner,I.ButtonList,I.ButtonListElement,I.ButtonListElementInner,I.ButtonListInner,I.Captcha,I.CaptchaInner,I.CheckBox,I.CheckBoxInner,I.ConfirmPayment,I.ConfirmPaymentConstants,I.ConfirmPaymentInternal,I.CreatePaymentSession,I.DefaultExpressCheckoutButtonElement,I.DefaultIFrameElement,I.DeletePaymentInstrument,I.DeletePaymentInstrumentConstants,I.DeleteResource,I.Dropdown,I.EditAddress,I.EditAddressConstants,I.EditPaymentInstrument,I.EditPaymentInstrumentConstants,I.Error,I.ExpressCheckout,I.ExpressCheckoutButtonElement,I.ExpressCheckoutButtonElementInner,I.ExpressCheckoutConstants,I.ExpressCheckoutInternal,I.FilePicker,I.FundStoredValue,I.Group,I.GroupError,I.GroupLabel,I.GroupLabelInner,I.HandleCheckout,I.HandleIndia3DSChallenge,I.HandleIndia3DSChallengeConstants,I.HandleIndia3DSChallengeInternal,I.HandlePaymentChallenge,I.HandlePurchaseRiskChallenge,I.HandleRiskChallenge,I.HandleRiskChallengeConstants,I.HandleRiskChallengeInternal,I.Heading,I.HeadingInner,I.HelpDialog,I.HelpDialogInner,I.Hyperlink,I.IFrameElement,I.IFrameElementInner,I.Image,I.ListAddress,I.ListAddressConstants,I.LogoElement,I.ManageAddress,I.ManagePaymentInstrument,I.ManagePaymentInstrumentConstants,I.Modal,I.ModalInner,I.OfferPaymentInstrument,I.OfferPaymentInstrumentConstants,I.OfferPaymentInstrumentInternal,I.PageAlert,I.PageErrorBlock,I.PaymentInstrumentDetails,I.PaymentInstrumentDetailsConstants,I.PaymentInstrumentDetailsInternal,I.PidlComponent,I.PidlDocBuilder,I.PidlInstance,I.PidlPropertyBuilder,I.PrefillCheckBox,I.PrefillCheckBoxInner,I.ProfilePrerequisite,I.ProfilePrerequisiteConstants,I.PropertyLabel,I.PropertyLabelInner,I.QuickPayment,I.Radio,I.RedeemMSRewards,I.RedeemMSRewardsConstants,I.RedeemMSRewardsInternal,I.ReplaceResource,I.ResourceHelpersConstants,I.RiskChallengeConstants,I.SearchResource,I.SearchTransactions,I.SelectMSRewards,I.SelectMSRewardsConstants,I.SelectPaymentInstrument,I.SelectPaymentInstrumentConstants,I.SelectPaymentMethod,I.SelectPaymentMethodConstants,I.SelectPaymentMethodInternal,I.SelectResource),_=I.SelectResourceType,D=(I.SelectSingleResource,I.ShowResource,I.StyleProviderContext,I.SubHeading,I.SubHeadingInner,I.TestHookRenderPidl,I.Text,I.TextBox,I.TextGroup,I.TextInner,I.UpdateResource),T=I.ValidateAddress,R=(I.ValidateAddressConstants,I.ValidateResource,I.VerifyAddress,I.defaultEnvironment,I.getClassNamesFromStyleHints,I.getHtmlAttributesFromTags,I.getPidlReactCustomProps,I.getTagClassNames,I.pidl);I.pidlReactClassPrefix,I.shouldHideInlineError,I.startsWith;function A(e){var t=e&&document.querySelector(e)||document,n=t.querySelector("#pidlddc-text-editAddressText")||t.querySelector("#pidlddc-button-editAddressText"),r=t.querySelector("#pidlddc-div-billingAddressShowGroup"),o=t.querySelector("#pidlddc-div-billingAddressEditGroup"),i=t.querySelector("#pidlddc-div-pagebodycontents");if(n&&o&&r)""===r.innerText.trim()?(n.style.display="none",r.style.display="none",o.style.display="block"):(o.style.display="none",n.setAttribute("tabindex","0"),n.setAttribute("role","button"),n.addEventListener("click",(function(){return M(n,r,o)})),n.addEventListener("keydown",(function(e){"Space"!==e.code&&"Enter"!==e.code||M(n,r,o)})));else if(i){var a=i.firstElementChild;a&&(a.style.display="none")}}function M(e,t,n){e.style.display="none",t.style.display="none",n.style.display="block"}function N(){return d.default.createElement("style",null," ",'\n            #pidlddc-div-pagebodycontents #pidlddc-text-billingAddressTitle {\n                font-weight: 600;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText {\n                color: rgb(0, 103, 184);\n                cursor: pointer;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText:hover {\n              text-decoration: underline;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText:focus {\n              outline: 1px solid black;\n            }\n\n            /* This can be removed once the ActionButton transition is complete. */\n            #pidlddc-div-pagebodycontents #pidlddc-text-editAddressText::before {\n                content: "\uf321";\n                font-family: FabricMDL2Icons-11;\n                margin-right: 4px;\n            }\n\n            #pidlddc-div-pagebodycontents #pidlddc-button-editAddressText {\n                height: 18px;\n            }\n\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressTextGroup {\n                display: flex;\n                justify-content: space-between;\n                margin-top: 10px;\n            }\n\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressShowGroup .ms-StackItem  {\n                margin-top: 7px;\n            }\n            \n            /* Spacing for text fields when we edit addresses in Add/Edit PI */\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressEditGroup > .ms-StackItem {\n                padding-top: 7px;\n            }\n    \n            /* pidlddc-div-billingAddressShowGroup is hidden with display: none,\n             * but they are still under a .ms-StackItem, so we need to remove the spacing \n             * that it has along with the extra padding billingAddressEditGroup has by going back -7px twice.\n             */\n            #pidlddc-div-pagebodycontents #pidlddc-div-billingAddressEditGroup {\n                margin-top: -14px;\n            }\n        ')}function F(e,t){return t&&e?v(v({},e),{callbacks:{failure:function(n){var r;t(!1),(null===(r=e.callbacks)||void 0===r?void 0:r.failure)&&e.callbacks.failure(n)},success:function(n){var r;t(!1),(null===(r=e.callbacks)||void 0===r?void 0:r.success)&&e.callbacks.success(n)},gohome:function(n){var r;t(!1),(null===(r=e.callbacks)||void 0===r?void 0:r.gohome)&&e.callbacks.gohome(n)}}}):e}var H={"af-za":{Next:"Volgende"},"am-et":{Next:"\u1240\u1323\u12ed"},"ar-sa":{Next:"\u0627\u0644\u062a\u0627\u0644\u064a"},"as-in":{Next:"\u09aa\u09f0\u09f1\u09f0\u09cd\u09a4\u09c0"},"az-latn-az":{Next:"N\xf6vb\u0259ti"},"be-by":{Next:"\u0414\u0430\u043b\u0435\u0439"},"bg-bg":{Next:"\u041d\u0430\u043f\u0440\u0435\u0434"},"bn-bd":{Next:"\u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0"},"bn-in":{Next:"\u09aa\u09b0\u09ac\u09b0\u09cd\u09a4\u09c0"},"bs-latn-ba":{Next:"Sljede\u0107e"},"ca-es":{Next:"Seg\xfcent"},"ca-es-valencia":{Next:"Seg\xfcent"},"cs-cz":{Next:"Dal\u0161\xed"},"cy-gb":{Next:"Nesaf"},"da-dk":{Next:"N\xe6ste"},"de-de":{Next:"Weiter"},"el-gr":{Next:"\u0395\u03c0\u03cc\u03bc\u03b5\u03bd\u03bf"},"en-gb":{Next:"Next"},"en-us":{Next:"Next"},"es-es":{Next:"Siguiente"},"es-mx":{Next:"Siguiente"},"et-ee":{Next:"Edasi"},"eu-es":{Next:"Hurrengoa"},"fa-ir":{Next:"\u0628\u0639\u062f\u06cc"},"fi-fi":{Next:"Seuraava"},"fil-ph":{Next:"Susunod"},"fr-ca":{Next:"Suivant"},"fr-fr":{Next:"Suivant"},"ga-ie":{Next:"Ar aghaidh"},"gd-gb":{Next:"Air adhart"},"gl-es":{Next:"Seguinte"},"gu-in":{Next:"\u0a86\u0a97\u0ab2\u0ac1\u0a82"},"ha-latn-ng":{Next:"Na gaba"},"he-il":{Next:"\u05d4\u05d1\u05d0"},"hi-in":{Next:"\u0905\u0917\u0932\u093e"},"hr-hr":{Next:"Dalje"},"hu-hu":{Next:"Tov\xe1bb"},"hy-am":{Next:"\u0540\u0561\u057b\u0578\u0580\u0564\u0568"},"id-id":{Next:"Berikutnya"},"ig-ng":{Next:"Osote"},"is-is":{Next:"\xc1fram"},"it-it":{Next:"Avanti"},"ja-jp":{Next:"\u6b21\u3078"},"ka-ge":{Next:"\u10e8\u10d4\u10db\u10d3\u10d4\u10d2"},"kk-kz":{Next:"\u041a\u0435\u043b\u0435\u0441\u0456"},"km-kh":{Next:"\u1794\u1793\u17d2\u1791\u17b6\u1794\u17cb"},"kn-in":{Next:"\u0cae\u0cc1\u0c82\u0ca6\u0cc6"},"ko-kr":{Next:"\ub2e4\uc74c"},"kok-in":{Next:"\u092b\u0941\u0921\u0932\u0947\u0902"},"ku-arab-iq":{Next:"\u062f\u0648\u0627\u062a\u0631"},"ky-kg":{Next:"\u041a\u0438\u0439\u0438\u043d\u043a\u0438"},"lb-lu":{Next:"Weider"},"lo-la":{Next:"\u0e95\u0ecd\u0ec8\u0ec4\u0e9b"},"lt-lt":{Next:"Pirmyn"},"lv-lv":{Next:"T\u0101l\u0101k"},"mi-nz":{Next:"Panuku"},"mk-mk":{Next:"\u0421\u043b\u0435\u0434\u043d\u043e"},"ml-in":{Next:"\u0d05\u0d1f\u0d41\u0d24\u0d4d\u0d24\u0d24\u0d4d"},"mn-mn":{Next:"\u0414\u0430\u0440\u0430\u0430\u0445"},"mr-in":{Next:"\u092a\u0941\u0922\u0940\u0932"},"ms-my":{Next:"Seterusnya"},"mt-mt":{Next:"Li Jmiss"},"nb-no":{Next:"Neste"},"ne-np":{Next:"\u0905\u0930\u094d\u0915\u094b"},"nl-nl":{Next:"Volgende"},"nn-no":{Next:"Neste"},"nso-za":{Next:"Latela"},"or-in":{Next:"\u0b2a\u0b30\u0b2c\u0b30\u0b4d\u0b24\u0b4d\u0b24\u0b3f"},"pa-arab-pk":{Next:"\u200f\u200f\u0627\u06af\u0644\u0627"},"pa-in":{Next:"\u0a05\u0a71\u0a17\u0a47"},"pl-pl":{Next:"Dalej"},"prs-af":{Next:"\u0628\u0639\u062f"},"pt-br":{Next:"Pr\xf3ximo"},"pt-pt":{Next:"Seguinte"},"quc-latn-gt":{Next:"Teren chi uloq"},"quz-pe":{Next:"Qatipay"},"ro-ro":{Next:"Urm\u0103torul"},"ru-ru":{Next:"\u0414\u0430\u043b\u0435\u0435"},"rw-rw":{Next:"Gukomeza"},"sd-arab-pk":{Next:"\u0627\u06b3\u064a\u0648\u0646"},"si-lk":{Next:"\u0d8a\u0dc5\u0d9f"},"sk-sk":{Next:"\u010ealej"},"sl-si":{Next:"Naprej"},"sq-al":{Next:"Tjet\xebr"},"sr-cyrl-ba":{Next:"\u0421\u0459\u0435\u0434\u0435\u045b\u0435"},"sr-cyrl-rs":{Next:"\u0414\u0430\u0459\u0435"},"sr-latn-rs":{Next:"Dalje"},"sv-se":{Next:"N\xe4sta"},"sw-ke":{Next:"Ifuatayo"},"ta-in":{Next:"\u0b85\u0b9f\u0bc1\u0ba4\u0bcd\u0ba4\u0bc1"},"te-in":{Next:"\u0c24\u0c26\u0c41\u0c2a\u0c30\u0c3f"},"tg-cyrl-tj":{Next:"\u041d\u0430\u0432\u0431\u0430\u0442\u04e3"},"th-th":{Next:"\u0e16\u0e31\u0e14\u0e44\u0e1b"},"ti-et":{Next:"\u12dd\u1245\u133d\u120d"},"tk-tm":{Next:"Indiki"},"tn-za":{Next:"Latelang"},"tr-tr":{Next:"\u0130leri"},"tt-ru":{Next:"\u041a\u0438\u043b\u04d9\u0441\u0435"},"ug-cn":{Next:"\u0643\u06d0\u064a\u0649\u0646\u0643\u0649"},"uk-ua":{Next:"\u0414\u0430\u043b\u0456"},"ur-pk":{Next:"\u0627\u06af\u0644\u0627"},"uz-latn-uz":{Next:"Keyingisiga o\u2018tish"},"vi-vn":{Next:"Ti\xea\u0301p theo"},"wo-sn":{Next:"Li ci Topp"},"xh-za":{Next:"Okulandelayo"},"yo-ng":{Next:"To\u0301ka\u0300n"},"zh-cn":{Next:"\u4e0b\u4e00\u9875"},"zh-tw":{Next:"\u4e0b\u4e00\u6b65"},"zu-za":{Next:"Okulandelayo"}},O={},B=void 0;try{B=window}catch(mE){}function L(e,t){if("undefined"!==typeof B){var n=B.__packages__=B.__packages__||{};if(!n[e]||!O[e])O[e]=t,(n[e]=n[e]||[]).push(t)}}L("@fluentui/set-version","6.0.0"),L("@fluentui/react","8.121.13");var V,z="__global__",W={stylesheetKey:z,inShadow:!1,window:void 0,__isShadowConfig__:!0},U=function(e,t,n){return{stylesheetKey:e,inShadow:t,window:n,__isShadowConfig__:!0}},K=function(e){return!(!e||!function(e){return null!==e&&"object"===typeof e&&!Array.isArray(e)}(e))&&!0===e.__isShadowConfig__};function j(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=[],o=[],i=e;function a(e){for(var t=0,n=e;t<n.length;t++){var s=n[t];if(s&&!K(s))if("string"===typeof s)if(s.indexOf(" ")>=0)a(s.split(" "));else{var l=i.argsFromClassName(s);l?a(l):-1===r.indexOf(s)&&r.push(s)}else Array.isArray(s)?a(s):"object"===typeof s&&o.push(s)}}return a(t),{classes:r,objects:o}}function G(e){V!==e&&(V=e)}function q(){return void 0===V&&(V="undefined"!==typeof document&&!!document.documentElement&&"rtl"===document.documentElement.getAttribute("dir")),V}function Y(){return{rtl:q(),shadowConfig:W}}V=q();var Z,J=0,Q=1,X=2,$="undefined"!==typeof navigator&&/rv:11.0/.test(navigator.userAgent),ee={};try{ee=window||{}}catch(Qk){}var te,ne=function(){function e(e,t){var n,r,o,i,a,s;this._rules=[],this._preservedRules=[],this._counter=0,this._keyToClassName={},this._onInsertRuleCallbacks=[],this._onResetCallbacks=[],this._classNameToArgs={},this._config=v({injectionMode:"undefined"===typeof document?J:Q,defaultPrefix:"css",namespace:void 0,cspSettings:void 0},e),this._classNameToArgs=null!==(n=null===t||void 0===t?void 0:t.classNameToArgs)&&void 0!==n?n:this._classNameToArgs,this._counter=null!==(r=null===t||void 0===t?void 0:t.counter)&&void 0!==r?r:this._counter,this._keyToClassName=null!==(i=null!==(o=this._config.classNameCache)&&void 0!==o?o:null===t||void 0===t?void 0:t.keyToClassName)&&void 0!==i?i:this._keyToClassName,this._preservedRules=null!==(a=null===t||void 0===t?void 0:t.preservedRules)&&void 0!==a?a:this._preservedRules,this._rules=null!==(s=null===t||void 0===t?void 0:t.rules)&&void 0!==s?s:this._rules}return e.getInstance=function(t){if(Z=ee.__stylesheet__,ee.__shadow_dom_stylesheet__)return ee.__shadow_dom_stylesheet__.getInstance(t);if(!Z||Z._lastStyleElement&&Z._lastStyleElement.ownerDocument!==document){var n=(null===ee||void 0===ee?void 0:ee.FabricConfig)||{},r=new e(n.mergeStyles,n.serializedStylesheet);Z=r,ee.__stylesheet__=r}return Z},e.prototype.serialize=function(){return JSON.stringify({classNameToArgs:this._classNameToArgs,counter:this._counter,keyToClassName:this._keyToClassName,preservedRules:this._preservedRules,rules:this._rules})},e.prototype.setConfig=function(e){this._config=v(v({},this._config),e)},e.prototype.onReset=function(e){var t=this;return this._onResetCallbacks.push(e),function(){t._onResetCallbacks=t._onResetCallbacks.filter((function(t){return t!==e}))}},e.prototype.onInsertRule=function(e){var t=this;return this._onInsertRuleCallbacks.push(e),function(){t._onInsertRuleCallbacks=t._onInsertRuleCallbacks.filter((function(t){return t!==e}))}},e.prototype.getClassName=function(e){var t=this._config.namespace,n=e||this._config.defaultPrefix;return"".concat(t?t+"-":"").concat(n,"-").concat(this._counter++)},e.prototype.cacheClassName=function(e,t,n,r){this._keyToClassName[this._getCacheKey(t)]=e,this._classNameToArgs[e]={args:n,rules:r}},e.prototype.classNameFromKey=function(e){return this._keyToClassName[this._getCacheKey(e)]},e.prototype.getClassNameCache=function(){return this._keyToClassName},e.prototype.argsFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.args},e.prototype.insertedRulesFromClassName=function(e){var t=this._classNameToArgs[e];return t&&t.rules},e.prototype.insertRule=function(e,t,n){void 0===n&&(n=z);var r=this._config.injectionMode,o=r!==J?this._getStyleElement():void 0;if(t&&this._preservedRules.push(e),o)switch(r){case Q:this._insertRuleIntoSheet(o.sheet,e);break;case X:o.appendChild(document.createTextNode(e))}else this._rules.push(e);this._config.onInsertRule&&this._config.onInsertRule(e),this._onInsertRuleCallbacks.forEach((function(t){return t({key:n,sheet:o?o.sheet:void 0,rule:e})}))},e.prototype.getRules=function(e){return(e?this._preservedRules.join(""):"")+this._rules.join("")},e.prototype.reset=function(){this._rules=[],this._counter=0,this._classNameToArgs={},this._keyToClassName={},this._onResetCallbacks.forEach((function(e){return e()}))},e.prototype.resetKeys=function(){this._keyToClassName={}},e.prototype._createStyleElement=function(){var e,t=(null===(e=this._config.window)||void 0===e?void 0:e.document)||document,n=t.head,r=t.createElement("style"),o=null;r.setAttribute("data-merge-styles","true");var i=this._config.cspSettings;if(i&&i.nonce&&r.setAttribute("nonce",i.nonce),this._lastStyleElement)o=this._lastStyleElement.nextElementSibling;else{var a=this._findPlaceholderStyleTag();o=a?a.nextElementSibling:n.childNodes[0]}return n.insertBefore(r,n.contains(o)?o:null),this._lastStyleElement=r,r},e.prototype._insertRuleIntoSheet=function(e,t){if(!e)return!1;try{return e.insertRule(t,e.cssRules.length),!0}catch(mE){}return!1},e.prototype._getCacheKey=function(e){return e},e.prototype._getStyleElement=function(){var e=this;this._styleElement||(this._styleElement=this._createStyleElement(),$||(this._config.window||window).requestAnimationFrame((function(){e._styleElement=void 0})));return this._styleElement},e.prototype._findPlaceholderStyleTag=function(){var e=document.head;return e?e.querySelector("style[data-merge-styles]"):null},e}(),re={};function oe(e,t){var n=e[t];"-"!==n.charAt(0)&&(e[t]=re[n]=re[n]||n.replace(/([A-Z])/g,"-$1").toLowerCase())}var ie={"user-select":1};function ae(e,t){var n=function(){var e;if(!te){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();te=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 te}(),r=e[t];if(ie[r]){var o=e[t+1];ie[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 se,le=["column-count","font-weight","flex","flex-grow","flex-shrink","fill-opacity","opacity","order","z-index","zoom"];function ce(e,t){var n=e[t],r=e[t+1];if("number"===typeof r){var o=le.indexOf(n)>-1,i=n.indexOf("--")>-1,a=o||i?"":"px";e[t+1]="".concat(r).concat(a)}}var de="left",ue="right",pe=((se={}).left=ue,se.right=de,se),me={"w-resize":"e-resize","sw-resize":"se-resize","nw-resize":"ne-resize"};function he(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(de)>=0)t[n]=r.replace(de,ue);else if(r.indexOf(ue)>=0)t[n]=r.replace(ue,de);else if(String(o).indexOf(de)>=0)t[n+1]=o.replace(de,ue);else if(String(o).indexOf(ue)>=0)t[n+1]=o.replace(ue,de);else if(pe[r])t[n]=pe[r];else if(me[o])t[n+1]=me[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 fe(e){var t=e&&e["&"];return t?t.displayName:void 0}var ge=/\:global\((.+?)\)/g;function ve(e,t){return e.indexOf(":global(")>=0?e.replace(ge,"$1"):0===e.indexOf(":host(")?e:0===e.indexOf(":")?t+e:e.indexOf("&")<0?t+" "+e:e}function ye(e,t,n,r,o){void 0===t&&(t={__order:[]}),0===n.indexOf("@")?be([r],t,n=n+"{"+e,o):n.indexOf(",")>-1?function(e){if(!ge.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 be([r],t,ve(n,e),o)})):be([r],t,ve(n,e),o)}function be(e,t,n,r){void 0===t&&(t={__order:[]}),void 0===n&&(n="&");var o,i=t[n];i||(i={},t[n]=i,t.__order.push(n));for(var a=0,s=e;a<s.length;a++){var l=s[a];if("string"===typeof l){var c=r.argsFromClassName(l);c&&be(c,t,n,r)}else if(Array.isArray(l))be(l,t,n,r);else for(var d in l)if(l.hasOwnProperty(d)){var u=l[d];if("selectors"===d){var p=l.selectors;for(var m in p)p.hasOwnProperty(m)&&ye(n,t,m,p[m],r)}else"object"===typeof u||((o=d).indexOf(":global(")>=0||0===o.indexOf(":"))?null!==u&&void 0!==u&&ye(n,t,d,u,r):void 0!==u&&("margin"===d||"padding"===d?Ce(i,d,u):i[d]=u)}}return t}function Ce(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 Se(e,t){for(var n=[e.rtl?"rtl":"ltr"],r=!1,o=0,i=t.__order;o<i.length;o++){var a=i[o];n.push(a);var s=t[a];for(var l in s)s.hasOwnProperty(l)&&void 0!==s[l]&&(r=!0,n.push(l,s[l]))}return r?n.join(""):void 0}function xe(e,t){return t<=0?"":1===t?e:e+xe(e,t-1)}function ke(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)oe(n,o),ce(n,o),he(e,n,o),ae(n,o);for(o=1;o<n.length;o+=4)n.splice(o,1,":",n[o],";");return n.join("")}function Pe(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=null!==(t=e.stylesheet)&&void 0!==t?t:ne.getInstance(e.shadowConfig),i=be(n,void 0,void 0,o),a=Se(e,i);if(a){var s={className:o.classNameFromKey(a),key:a,args:n};if(!s.className){s.className=o.getClassName(fe(i));for(var l=[],c=0,d=i.__order;c<d.length;c++){var u=d[c];l.push(u,ke(e,i[u]))}s.rulesToInsert=l}return s}}function Ie(e,t,n,r){void 0===t&&(t=1);var o=null!==r&&void 0!==r?r:ne.getInstance(n),i=e.className,a=e.key,s=e.args,l=e.rulesToInsert;if(l){for(var c=0;c<l.length;c+=2){var d=l[c+1];if(d){var u=l[c];u=u.replace(/&/g,xe(".".concat(e.className),t));var p="".concat(u,"{").concat(d,"}").concat(0===u.indexOf("@")?"}":"");o.insertRule(p)}}o.cacheClassName(i,a,s,l)}}function we(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Ee(e,Y())}function Ee(e,t){var n=e instanceof Array?e:[e],r=t||{};K(n[0])&&(r.shadowConfig=n[0]),r.stylesheet=ne.getInstance(r.shadowConfig);var o=j(r.stylesheet,n),i=o.classes,a=o.objects;return a.length&&i.push(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Pe.apply(void 0,C([e],t,!1));return r?(Ie(r,e.specificityMultiplier,e.shadowConfig,e.stylesheet),r.className):""}(r,a)),i.join(" ")}function _e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e&&1===e.length&&e[0]&&!e[0].subComponentStyles&&!K(e[0]))return e[0];for(var n={},r={},o=0,i=e;o<i.length;o++){var a=i[o];if(a&&!K(a))for(var s in a)if(a.hasOwnProperty(s)){if("subComponentStyles"===s&&void 0!==a.subComponentStyles){var l=a.subComponentStyles;for(var c in l)l.hasOwnProperty(c)&&(r.hasOwnProperty(c)?r[c].push(l[c]):r[c]=[l[c]]);continue}var d=n[s],u=a[s];n[s]=void 0===d?u:C(C([],Array.isArray(d)?d:[d],!0),Array.isArray(u)?u:[u],!0)}}if(Object.keys(r).length>0){n.subComponentStyles={};var p=n.subComponentStyles,m=function(e){if(r.hasOwnProperty(e)){var t=r[e];p[e]=function(e){return _e.apply(void 0,t.map((function(t){return"function"===typeof t?t(e):t})))}}};for(var c in r)m(c)}return n}function De(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Te(e,Y())}function Te(e,t){var n,r={subComponentStyles:{}},o=void 0;K(e[0])?(o=e[0],n=e[1]):n=e[0],null!==o&&void 0!==o||(o=null===t||void 0===t?void 0:t.shadowConfig);var i=v(v({},t),{shadowConfig:o});if(!n&&e.length<=1)return{subComponentStyles:{}};var a=ne.getInstance(o);i.stylesheet=a;var s=_e.apply(void 0,e),l=[];for(var c in s)if(s.hasOwnProperty(c)){if("subComponentStyles"===c){r.subComponentStyles=s.subComponentStyles||{};continue}if("__shadowConfig__"===c)continue;var d=j(a,s[c]),u=d.classes,p=d.objects;if(null===p||void 0===p?void 0:p.length)(f=Pe(i||{},{displayName:c},p))&&(l.push(f),r[c]=u.concat([f.className]).join(" "));else r[c]=u.join(" ")}for(var m=0,h=l;m<h.length;m++){var f;(f=h[m])&&Ie(f,null===t||void 0===t?void 0:t.specificityMultiplier,o)}return r}function Re(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?_e.apply(void 0,r):{}}function Ae(e){var t=ne.getInstance(),n=ke(Y(),e);if(!t.classNameFromKey(n)){var r=t.getClassName();t.insertRule("@font-face{".concat(n,"}"),!0),t.cacheClassName(r,n,[],["font-face",n])}}function Me(e){var t=ne.getInstance(),n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(r,"{",ke(Y(),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 Ne="undefined"!==typeof document&&Array.isArray(document.adoptedStyleSheets)&&"replace"in CSSStyleSheet.prototype;if(Ne)try{document.adoptedStyleSheets.push(),!0}catch(mE){!1}var Fe,He={};try{He=window||{}}catch(Qk){}!function(e){function t(n,r){var o=e.call(this,n,r)||this;return o._onAddSheetCallbacks=[],o._sheetCounter=0,o._adoptableSheets=new Map,He.__shadow_dom_stylesheet__=t,o}g(t,e),t.getInstance=function(e){var n=e||W,r=n.stylesheetKey||z,o=n.inShadow,i=n.window||("undefined"!==typeof window?window:void 0),a=i||He,s=i?i.document:"undefined"!==typeof document?document:void 0,l=(Fe=a.__stylesheet__)&&!Fe.getAdoptedSheets;if(!Fe||l||Fe._lastStyleElement&&Fe._lastStyleElement.ownerDocument!==s){var c=(null===a||void 0===a?void 0:a.FabricConfig)||{},d={window:i,inShadow:o,stylesheetKey:r};c.mergeStyles=c.mergeStyles||{},c.mergeStyles=v(v({},d),c.mergeStyles);var u=void 0;l?function(e,t,n,r){var o;if(void 0===t&&(t=!1),r){var i=r.querySelectorAll("[data-merge-styles]");if(i){e.setConfig({window:n,inShadow:t,stylesheetKey:z});for(var a=0;a<i.length;a++){var s=i[a];s.setAttribute("data-merge-styles-global","true");for(var l=(null===(o=s.sheet)||void 0===o?void 0:o.cssRules)||[],c=0;c<l.length;c++){var d=l[c];e.insertRule(d.cssText)}}}}}(u=new t(c.mergeStyles,JSON.parse(Fe.serialize())),o,i,s):u=new t(c.mergeStyles,c.serializedStylesheet),Fe=u,a.__stylesheet__=Fe}else Fe.setConfig({window:i,inShadow:o,stylesheetKey:r});return i&&Fe._getAdoptableStyleSheet(r),Fe},t.prototype.getAdoptedSheets=function(){return this._adoptableSheets},t.prototype.onAddSheet=function(e){var t=this;return this._onAddSheetCallbacks.push(e),function(){t._onAddSheetCallbacks=t._onAddSheetCallbacks.filter((function(t){return t!==e}))}},t.prototype.insertRule=function(t,n){var r=this._config,o=r.injectionMode,i=r.stylesheetKey,a=void 0===i?z:i,s=o!==J,l=a===z||!!this._adoptableSheets.has(a),c=void 0;s&&l&&(c=this._getAdoptableStyleSheet(a)),c&&this._insertRuleIntoSheet(c,t),e.prototype.insertRule.call(this,t,n,a)},t.prototype._getCacheKey=function(t){var n=this._config,r=n.inShadow,o=void 0!==r&&r,i=n.stylesheetKey;return o?"__".concat(void 0===i?z:i,"__").concat(t):e.prototype._getCacheKey.call(this,t)},t.prototype._createStyleElement=function(){var t=e.prototype._createStyleElement.call(this);return this._config.stylesheetKey===z&&t.setAttribute("data-merge-styles-global","true"),t},t.prototype._makeCSSStyleSheet=function(){var e=this._config.window||window,t=void 0;Ne?t=new e.CSSStyleSheet:t=this._createStyleElement().sheet;return t&&(t.bucketName="merge-styles",t.metadata={stylesheetKey:this._config.stylesheetKey||z,sortOrder:this._sheetCounter++}),t},t.prototype._addAdoptableStyleSheet=function(e,t,n){var r=this;if(void 0===n&&(n=!0),!this._adoptableSheets.has(e)){this._adoptableSheets.set(e,t);var o=this._config.window;n&&o&&o.queueMicrotask((function(){r._onAddSheetCallbacks.forEach((function(n){return n({key:e,sheet:t})}))}))}},t.prototype._getAdoptableStyleSheet=function(e){var t=this._adoptableSheets.get(e);return t||(t=this._makeCSSStyleSheet(),this._addAdoptableStyleSheet(e,t)),t}}(ne);function Oe(e){var t={},n=function(n){var r;e.hasOwnProperty(n)&&Object.defineProperty(t,n,{get:function(){return void 0===r&&(r=we(e[n]).toString()),r},enumerable:!0,configurable:!0})};for(var r in e)n(r);return t}function Be(){return"undefined"!==typeof window&&!(!window.document||!window.document.createElement)}L("@fluentui/merge-styles","8.6.13");var Le=void 0;try{Le=window}catch(mE){}function Ve(e){if(Be()&&"undefined"!==typeof Le){var t=e;return t&&t.ownerDocument&&t.ownerDocument.defaultView?t.ownerDocument.defaultView:Le}}var ze=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(mE){n._logError(mE)}}),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=Ve(t);if(!this._isDisposed){this._immediateIds||(this._immediateIds={});r=o.setTimeout((function(){try{n._immediateIds&&delete n._immediateIds[r],e.apply(n._parent)}catch(mE){n._logError(mE)}}),0),this._immediateIds[r]=!0}return r},e.prototype.clearImmediate=function(e,t){var n=Ve(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(mE){n._logError(mE)}}),t),this._intervalIds[r]=!0),r},e.prototype.clearInterval=function(e){this._intervalIds&&this._intervalIds[e]&&(clearInterval(e),delete this._intervalIds[e])},e.prototype.throttle=function(e,t,n){var r=this;if(this._isDisposed)return this._noop;var o,i,a=t||0,s=!0,l=!0,c=0,d=null;n&&"boolean"===typeof n.leading&&(s=n.leading),n&&"boolean"===typeof n.trailing&&(l=n.trailing);var u=function t(n){var u=Date.now(),p=u-c,m=s?a-p:a;return p>=a&&(!n||s)?(c=u,d&&(r.clearTimeout(d),d=null),o=e.apply(r._parent,i)):null===d&&l&&(d=r.setTimeout(t,m)),o};return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i=e,u(!0)}},e.prototype.debounce=function(e,t,n){var r=this;if(this._isDisposed){var o=function(){};return o.cancel=function(){},o.flush=function(){return null},o.pending=function(){return!1},o}var i,a,s=t||0,l=!1,c=!0,d=null,u=0,p=Date.now(),m=null;n&&"boolean"===typeof n.leading&&(l=n.leading),n&&"boolean"===typeof n.trailing&&(c=n.trailing),n&&"number"===typeof n.maxWait&&!isNaN(n.maxWait)&&(d=n.maxWait);var h=function(e){m&&(r.clearTimeout(m),m=null),p=e},f=function(t){h(t),i=e.apply(r._parent,a)},g=function e(t){var n=Date.now(),o=!1;t&&(l&&n-u>=s&&(o=!0),u=n);var a=n-u,h=s-a,g=n-p,v=!1;return null!==d&&(g>=d&&m?v=!0:h=Math.min(h,d-g)),a>=s||v||o?f(n):null!==m&&t||!c||(m=r.setTimeout(e,h)),i},v=function(){return!!m},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()&&h(Date.now())},y.flush=function(){return v()&&f(Date.now()),i},y.pending=v,y},e.prototype.requestAnimationFrame=function(e,t){var n=this,r=0,o=Ve(t);if(!this._isDisposed){this._animationFrameIds||(this._animationFrameIds={});var i=function(){try{n._animationFrameIds&&delete n._animationFrameIds[r],e.apply(n._parent)}catch(mE){n._logError(mE)}};r=o.requestAnimationFrame?o.requestAnimationFrame(i):o.setTimeout(i,0),this._animationFrameIds[r]=!0}return r},e.prototype.cancelAnimationFrame=function(e,t){var n=Ve(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 We(e){return e&&!!e._virtual}function Ue(e,t){var n,r;if(void 0===t&&(t=!0),!e)return null;var o=t&&function(e){var t;return e&&We(e)&&(t=e._virtual.parent),t}(e);return o||("function"!==typeof e.assignedElements&&(null===(n=e.assignedSlot)||void 0===n?void 0:n.parentNode)?e.assignedSlot:11===(null===(r=e.parentNode)||void 0===r?void 0:r.nodeType)?e.parentNode.host:e.parentNode)}function Ke(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=Ue(t);if(o===e){r=!0;break}t=o}else e.contains&&(r=e.contains(t));return r}function je(e,t,n){return null!==n&&void 0!==n||(n=document),!e||e===n.body||e instanceof Document?null:t(e)?e:je(Ue(e),t)}var Ge=function(e){for(var t=e.activeElement;null===t||void 0===t?void 0:t.shadowRoot;)t=t.shadowRoot.activeElement;return t};var qe=function(e){var t=e.target;return t&&t.shadowRoot&&(t=e.composedPath()[0]),t},Ye="data-portal-element";function Ze(e,t,n){var r,o=je(e,(function(e){var n;return t===e||!!(null===(n=e.hasAttribute)||void 0===n?void 0:n.call(e,Ye))}),n);return null!==o&&!!(null===(r=o.hasAttribute)||void 0===r?void 0:r.call(o,Ye))}function Je(e){if(Be()&&"undefined"!==typeof document){var t=e;return t&&t.ownerDocument?t.ownerDocument:document}}L("@fluentui/dom-utilities","2.3.9");function Qe(e,t,n,r){return tt(e,t,!0,!1,!1,n,void 0,void 0,void 0,r)}function Xe(e,t,n,r){return et(e,t,!0,!1,!0,n,void 0,void 0,r)}function $e(e,t,n){var r=tt(e,e,!0,!1,!1,!0,void 0,void 0,t,n);return!!r&&(ct(r),!0)}function et(e,t,n,r,o,i,a,s,l){var c;if(!t||!a&&t===e)return null;var d=nt(t);if(o&&d&&(i||!it(t)&&!at(t))){var u=et(e,t.lastElementChild||l&&(null===(c=t.shadowRoot)||void 0===c?void 0:c.lastElementChild),!0,!0,!0,i,a,s,l);if(u){if(s&&ot(u,!0,l)||!s)return u;var p=et(e,u.previousElementSibling,!0,!0,!0,i,a,s,l);if(p)return p;for(var m=u.parentElement;m&&m!==t;){var h=et(e,m.previousElementSibling,!0,!0,!0,i,a,s,l);if(h)return h;m=m.parentElement}}}if(n&&d&&ot(t,s,l))return t;var f=et(e,t.previousElementSibling,!0,!0,!0,i,a,s,l);return f||(r?null:et(e,t.parentElement,!0,!1,!1,i,a,s,l))}function tt(e,t,n,r,o,i,a,s,l,c){var d;if(!t||t===e&&o&&!a)return null;var u=(l?rt:nt)(t);if(n&&u&&ot(t,s,c))return t;if(!o&&u&&(i||!it(t)&&!at(t))){var p=tt(e,t.firstElementChild||c&&(null===(d=t.shadowRoot)||void 0===d?void 0:d.firstElementChild),!0,!0,!1,i,a,s,l,c);if(p)return p}if(t===e)return null;var m=tt(e,t.nextElementSibling,!0,!0,!1,i,a,s,l,c);return m||(r?null:tt(e,t.parentElement,!1,!1,!0,i,a,s,l,c))}function nt(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 rt(e,t){var n=null!==t&&void 0!==t?t:Ve();return!!e&&nt(e)&&!e.hidden&&"hidden"!==n.getComputedStyle(e).visibility}function ot(e,t,n){if(void 0===n&&(n=!0),!e||e.disabled)return!1;var r=0,o=null;e&&e.getAttribute&&(o=e.getAttribute("tabIndex"))&&(r=parseInt(o,10));var i=e.getAttribute?e.getAttribute("data-is-focusable"):null,a=null!==o&&r>=0,s=!(!n||!e.shadowRoot)&&!!e.shadowRoot.delegatesFocus,l=!!e&&"false"!==i&&("A"===e.tagName||"BUTTON"===e.tagName||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"SELECT"===e.tagName||"true"===i||a||s);return t?-1!==r&&l:l}function it(e){return!!(e&&e.getAttribute&&e.getAttribute("data-focuszone-id"))}function at(e){return!(!e||!e.getAttribute||"true"!==e.getAttribute("data-is-sub-focuszone"))}function st(e,t,n){return"true"!==function(e,t,n){var r=je(e,(function(e){return e.hasAttribute(t)}),n);return r&&r.getAttribute(t)}(e,t,null!==n&&void 0!==n?n:Je())}var lt=void 0;function ct(e){if(e){var t=Ve(e);t&&(void 0!==lt&&t.cancelAnimationFrame(lt),lt=t.requestAnimationFrame((function(){e&&e.focus(),lt=void 0})))}}function dt(e,t){var n,r=(null!==t&&void 0!==t?t:!e||e&&e.hasOwnProperty("devicePixelRatio"))?Ve():Ve(e);return e&&(e===r?n={left:0,top:0,width:r.innerWidth,height:r.innerHeight,right:r.innerWidth,bottom:r.innerHeight}:e.getBoundingClientRect&&(n=e.getBoundingClientRect())),n}function ut(e,t,n,r){return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n,r)}}function pt(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 mt(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return ht.apply(this,[null,e].concat(t))}function ht(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 ft,gt=function(){function e(t){this._id=e._uniqueId++,this._parent=t,this._eventRecords=[]}return e.raise=function(t,n,r,o,i){var a,s=null!==i&&void 0!==i?i:Je();if(e._isElement(t)){if("undefined"!==typeof s&&s.createEvent){var l=s.createEvent("HTMLEvents");l.initEvent(n,o||!1,!0),mt(l,r),a=t.dispatchEvent(l)}else if("undefined"!==typeof s&&s.createEventObject){var c=s.createEventObject(r);t.fireEvent("on"+n,c)}}else for(;t&&!1!==a;){var d=t.__events__,u=d?d[n]:null;if(u)for(var p in u)if(u.hasOwnProperty(p))for(var m=u[p],h=0;!1!==a&&h<m.length;h++){var f=m[h];f.objectCallback&&(a=f.objectCallback.call(f.parent,r))}t=o?t.parent:null}return a},e.isObserved=function(e,t){var n=e&&e.__events__;return!!n&&!!n[t]},e.isDeclared=function(e,t){var n=e&&e.__declaredEvents;return!!n&&!!n[t]},e.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},e._isElement=function(e){return!!e&&(!!e.addEventListener||"undefined"!==typeof HTMLElement&&e instanceof HTMLElement)},e.prototype.dispose=function(){this._isDisposed||(this._isDisposed=!0,this.off(),this._parent=null)},e.prototype.onAll=function(e,t,n){for(var r in t)t.hasOwnProperty(r)&&this.on(e,r,t[r],n)},e.prototype.on=function(t,n,r,o){var i=this;if(n.indexOf(",")>-1)for(var a=n.split(/[ ,]+/),s=0;s<a.length;s++)this.on(t,a[s],r,o);else{var l=this._parent,c={target:t,eventName:n,parent:l,callback:r,options:o};if((a=t.__events__=t.__events__||{})[n]=a[n]||{count:0},a[n][this._id]=a[n][this._id]||[],a[n][this._id].push(c),a[n].count++,e._isElement(t)){var d=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed){var n;try{if(!1===(n=r.apply(l,e))&&e[0]){var o=e[0];o.preventDefault&&o.preventDefault(),o.stopPropagation&&o.stopPropagation(),o.cancelBubble=!0}}catch(o){}return n}};c.elementCallback=d,t.addEventListener?t.addEventListener(n,d,o):t.attachEvent&&t.attachEvent("on"+n,d)}else{c.objectCallback=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!i._isDisposed)return r.apply(l,e)}}this._eventRecords.push(c)}},e.prototype.off=function(e,t,n,r){for(var o=0;o<this._eventRecords.length;o++){var i=this._eventRecords[o];if((!e||e===i.target)&&(!t||t===i.eventName)&&(!n||n===i.callback)&&("boolean"!==typeof r||r===i.options)){var a=i.target.__events__,s=a[i.eventName],l=s?s[this._id]:null;l&&(1!==l.length&&n?(s.count--,l.splice(l.indexOf(i),1)):(s.count-=l.length,delete a[i.eventName][this._id]),s.count||delete a[i.eventName]),i.elementCallback&&(i.target.removeEventListener?i.target.removeEventListener(i.eventName,i.elementCallback,i.options):i.target.detachEvent&&i.target.detachEvent("on"+i.eventName,i.elementCallback)),this._eventRecords.splice(o--,1)}}},e.prototype.raise=function(t,n,r){return e.raise(this._parent,t,n,r)},e.prototype.declare=function(e){var t=this._parent.__declaredEvents=this._parent.__declaredEvents||{};if("string"===typeof e)t[e]=!0;else for(var n=0;n<e.length;n++)t[e[n]]=!0},e._uniqueId=0,e}(),vt=0,yt=we({overflow:"hidden !important"}),bt="data-is-scrollable",Ct=function(e,t){var n=Ve(e);if(e&&n){var r=0,o=null,i=n.getComputedStyle(e);t.on(e,"touchstart",(function(e){1===e.targetTouches.length&&(r=e.targetTouches[0].clientY)}),{passive:!1}),t.on(e,"touchmove",(function(e){if(1===e.targetTouches.length&&(e.stopPropagation(),o)){var t=e.targetTouches[0].clientY-r,a=Pt(e.target);a&&o!==a&&(o=a,i=n.getComputedStyle(o));var s=o.scrollTop,l="column-reverse"===(null===i||void 0===i?void 0:i.flexDirection);0===s&&(l?t<0:t>0)&&e.preventDefault(),o.scrollHeight-Math.abs(Math.ceil(s))<=o.clientHeight&&(l?t>0:t<0)&&e.preventDefault()}}),{passive:!1}),o=e}},St=function(e,t){if(e){t.on(e,"touchmove",(function(e){e.stopPropagation()}),{passive:!1})}},xt=function(e){e.preventDefault()};function kt(e){if(void 0===ft){var t=null!==e&&void 0!==e?e:Je(),n=t.createElement("div");n.style.setProperty("width","100px"),n.style.setProperty("height","100px"),n.style.setProperty("overflow","scroll"),n.style.setProperty("position","absolute"),n.style.setProperty("top","-9999px"),t.body.appendChild(n),ft=n.offsetWidth-n.clientWidth,t.body.removeChild(n)}return ft}function Pt(e){for(var t=e,n=Je(e);t&&t!==n.body;){if("true"===t.getAttribute(bt))return t;t=t.parentElement}for(t=e;t&&t!==n.body;){if("false"!==t.getAttribute(bt)){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=Ve(e)),t}var It=100,wt=function(){function e(e,t){var n=null!==t&&void 0!==t?t:Ve(e);this._events=new gt(this),this._scrollableParent=Pt(e),this._incrementScroll=this._incrementScroll.bind(this),this._scrollRect=dt(this._scrollableParent,n),this._scrollableParent===n&&(this._scrollableParent=n.document.body),this._scrollableParent&&(this._events.on(n,"mousemove",this._onMouseMove,!0),this._events.on(n,"touchmove",this._onTouchMove,!0))}return e.prototype.dispose=function(){this._events.dispose(),this._stopScroll()},e.prototype._onMouseMove=function(e){this._computeScrollVelocity(e)},e.prototype._onTouchMove=function(e){e.touches.length>0&&this._computeScrollVelocity(e)},e.prototype._computeScrollVelocity=function(e){if(this._scrollRect){var t,n;"clientX"in e?(t=e.clientX,n=e.clientY):(t=e.touches[0].clientX,n=e.touches[0].clientY);var r,o,i,a=this._scrollRect.top,s=this._scrollRect.left,l=a+this._scrollRect.height-It,c=s+this._scrollRect.width-It;n<a+It||n>l?(o=n,r=a,i=l,this._isVerticalScroll=!0):(o=t,r=s,i=c,this._isVerticalScroll=!1),this._scrollVelocity=o<r+It?Math.max(-15,(It-(o-r))/It*-15):o>i?Math.min(15,(o-i)/It*15):0,this._scrollVelocity?this._startScroll():this._stopScroll()}},e.prototype._startScroll=function(){this._timeoutId||this._incrementScroll()},e.prototype._incrementScroll=function(){this._scrollableParent&&(this._isVerticalScroll?this._scrollableParent.scrollTop+=Math.round(this._scrollVelocity):this._scrollableParent.scrollLeft+=Math.round(this._scrollVelocity)),this._timeoutId=setTimeout(this._incrementScroll,16)},e.prototype._stopScroll=function(){this._timeoutId&&(clearTimeout(this._timeoutId),delete this._timeoutId)},e}(),Et=void 0;function _t(e){Et?Et(e):console&&console.warn&&console.warn(e)}function Dt(e,t,n,r,o){if(!0===o)for(var i=0,a=n;i<a.length;i++){var s=a[i];s in t||_t("".concat(e," property '").concat(s,"' is required when '").concat(r,"' is used.'"))}}function Tt(e,t,n){for(var r in n)if(t&&void 0!==t[r]){var o=n[r];o&&void 0!==t[o]&&_t("".concat(e," property '").concat(r,"' is mutually exclusive with '").concat(n[r],"'. ")+"Use one or the other.")}}function Rt(e,t,n){for(var r in n)if(t&&r in t){var o="".concat(e," property '").concat(r,"' was used but has been deprecated."),i=n[r];i&&(o+=" Use '".concat(i,"' instead.")),_t(o)}}!function(e){function t(n,r){var o=e.call(this,n,r)||this;return function(e,t,n){for(var r=0,o=n.length;r<o;r++)At(e,t,n[r])}(o,t.prototype,["componentDidMount","shouldComponentUpdate","getSnapshotBeforeUpdate","render","componentDidUpdate","componentWillUnmount"]),o}g(t,e),t.prototype.componentDidUpdate=function(e,t){this._updateComponentRef(e,this.props)},t.prototype.componentDidMount=function(){this._setComponentRef(this.props.componentRef,this)},t.prototype.componentWillUnmount=function(){if(this._setComponentRef(this.props.componentRef,null),this.__disposables){for(var e=0,t=this._disposables.length;e<t;e++){var n=this.__disposables[e];n.dispose&&n.dispose()}this.__disposables=null}},Object.defineProperty(t.prototype,"className",{get:function(){if(!this.__className){var e=/function (.{1,})\(/.exec(this.constructor.toString());this.__className=e&&e.length>1?e[1]:""}return this.__className},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_disposables",{get:function(){return this.__disposables||(this.__disposables=[]),this.__disposables},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_async",{get:function(){return this.__async||(this.__async=new ze(this),this._disposables.push(this.__async)),this.__async},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_events",{get:function(){return this.__events||(this.__events=new gt(this),this._disposables.push(this.__events)),this.__events},enumerable:!1,configurable:!0}),t.prototype._resolveRef=function(e){var t=this;return this.__resolves||(this.__resolves={}),this.__resolves[e]||(this.__resolves[e]=function(n){return t[e]=n}),this.__resolves[e]},t.prototype._updateComponentRef=function(e,t){void 0===t&&(t={}),e&&t&&e.componentRef!==t.componentRef&&(this._setComponentRef(e.componentRef,null),this._setComponentRef(t.componentRef,this))},t.prototype._warnDeprecations=function(e){Rt(this.className,this.props,e)},t.prototype._warnMutuallyExclusive=function(e){Tt(this.className,this.props,e)},t.prototype._warnConditionallyRequiredProps=function(e,t,n){Dt(this.className,this.props,e,t,n)},t.prototype._setComponentRef=function(e,t){!this._skipComponentRefResolution&&e&&("function"===typeof e&&e(t),"object"===typeof e&&(e.current=t))}}(u.Component);function At(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 Mt(){return null}var Nt=function(e){function t(t){var n=e.call(this,t)||this;return n.state={isRendered:void 0===Ve()},n}return g(t,e),t.prototype.componentDidMount=function(){var e=this,t=this.props.delay;this._timeoutId=window.setTimeout((function(){e.setState({isRendered:!0})}),t)},t.prototype.componentWillUnmount=function(){this._timeoutId&&clearTimeout(this._timeoutId)},t.prototype.render=function(){return this.state.isRendered?u.Children.only(this.props.children):null},t.defaultProps={delay:0},t}(u.Component),Ft=function(){return"undefined"!==typeof performance&&performance.now?performance.now():Date.now()},Ht=(function(){function e(){}e.measure=function(t,n){e._timeoutId&&e.setPeriodicReset();var r=Ft();n();var o=Ft(),i=e.summary[t]||{totalDuration:0,count:0,all:[]},a=o-r;i.totalDuration+=a,i.count++,i.all.push({duration:a,timeStamp:o}),e.summary[t]=i},e.reset=function(){e.summary={},clearTimeout(e._timeoutId),e._timeoutId=NaN},e.setPeriodicReset=function(){e._timeoutId=setTimeout((function(){return e.reset()}),18e4)},e.summary={}}(),0),Ot=function(){function e(){}return e.getValue=function(e,t){var n=Bt();return void 0===n[e]&&(n[e]="function"===typeof t?t():t),n[e]},e.setValue=function(e,t){var n=Bt(),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=Lt();t||(t=e.__id__=String(Ht++)),n[t]=e},e.removeChangeListener=function(e){delete Lt()[e.__id__]},e}();function Bt(){var e,t=Ve()||{};return t.__globalSettings__||(t.__globalSettings__=((e={}).__callbacks__={},e)),t.__globalSettings__}function Lt(){return Bt().__callbacks__}var Vt=8,zt=9,Wt=13,Ut=16,Kt=17,jt=18,Gt=27,qt=32,Yt=33,Zt=34,Jt=35,Qt=36,Xt=37,$t=38,en=39,tn=40,nn=46,rn=48,on=58,an=65,sn=67,ln=77,cn=80,dn=91,un=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 pn(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 mn(){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 hn(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 fn(e,t){var n=hn(e,t);if(!(n<0))return e[n]}function gn(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}"undefined"!==typeof WeakMap&&new WeakMap;function vn(e){var t=null;try{var n=Ve();t=n?n.sessionStorage.getItem(e):null}catch(mE){}return t}function yn(e,t){var n;try{null===(n=Ve())||void 0===n||n.sessionStorage.setItem(e,t)}catch(mE){}}var bn,Cn="isRTL";function Sn(e){if(void 0===e&&(e={}),void 0!==e.rtl)return e.rtl;if(void 0===bn){var t=vn(Cn);null!==t&&function(e,t){void 0===t&&(t=!1);var n=Je();n&&n.documentElement.setAttribute("dir",e?"rtl":"ltr");t&&yn(Cn,e?"1":"0");G(bn=e)}(bn="1"===t);var n=Je();void 0===bn&&n&&G(bn="rtl"===(n.body&&n.body.getAttribute("dir")||n.documentElement.getAttribute("dir")))}return!!bn}function xn(e,t){return void 0===t&&(t={}),Sn(t)&&(e===Xt?e=en:e===en&&(e=Xt)),e}var kn=0,Pn=ne.getInstance();Pn&&Pn.onReset&&Pn.onReset((function(){return kn++}));var In="__retval__";function wn(e){void 0===e&&(e={});var t=new Map,n=0,r=0,o=kn;return function(i,a){var s;if(void 0===a&&(a={}),e.useStaticStyles&&"function"===typeof i&&i.__noStyleOverride__)return i(a);r++;var l=i?i.__shadowConfig__:void 0,c=l&&l.window?l.window:"__default__";t.has(c)||t.set(c,new Map);var d=t.get(c),u=a.theme,p=u&&void 0!==u.rtl?u.rtl:Sn(),m=e.disableCaching;if(o!==kn&&(o=kn,t.set(c,new Map),d=t.get(c),n=0),e.disableCaching||(d=_n(t.get(c),i),d=_n(d,a)),!m&&d[In]||(d[In]=void 0===i?{}:Te(["function"===typeof i?i(a):i],{shadowConfig:i.__shadowConfig__,rtl:!!p,specificityMultiplier:e.useStaticStyles?5:void 0}),m||n++),n>(e.cacheSize||50)){var h=Ve();(null===(s=null===h||void 0===h?void 0:h.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.get(c).clear(),n=0,e.disableCaching=!0}return d[In]}}function En(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 _n(e,t){if("function"===typeof t)if(t.__cachedInputs__)for(var n=0,r=t.__cachedInputs__;n<r.length;n++){e=En(e,r[n])}else e=En(e,t);else if("object"===typeof t)for(var o in t)t.hasOwnProperty(o)&&(e=En(e,t[o]));return e}var Dn=!1,Tn=0,Rn={empty:!0},An={},Mn="undefined"===typeof WeakMap?null:WeakMap;function Nn(){Tn++}function Fn(e,t,n){if(void 0===t&&(t=100),void 0===n&&(n=!1),!Mn)return e;if(!Dn){var r=ne.getInstance();r&&r.onReset&&ne.getInstance().onReset(Nn),Dn=!0}var o,i=0,a=Tn;return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var l=o;(void 0===o||a!==Tn||t>0&&i>t)&&(o=Bn(),i=0,a=Tn),l=o;for(var c=0;c<r.length;c++){var d=On(r[c]);l.map.has(d)||l.map.set(d,Bn()),l=l.map.get(d)}return l.hasOwnProperty("value")||(l.value=e.apply(void 0,r),i++),!n||null!==l.value&&void 0!==l.value||(l.value=e.apply(void 0,r)),l.value}}function Hn(e){if(!Mn)return e;var t=new Mn;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 On(e){return e?"object"===typeof e||"function"===typeof e?e:(An[e]||(An[e]={val:e}),An[e]):Rn}function Bn(){return{map:Mn?new Mn:null}}var Ln=Hn((function(e){var t=e;return Hn((function(n){if(e===n)throw new Error("Attempted to compose a component with itself.");var r=n,o=Hn((function(e){return function(t){return u.createElement(r,v({},t,{defaultRender:e}))}}));return function(e){var n=e.defaultRender;return u.createElement(t,v({},e,{defaultRender:n?o(n):r}))}}))}));function Vn(e,t){return Ln(e)(t)}function zn(e,t){return void 0!==e[t]&&null!==e[t]}function Wn(){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 Un={settings:{},scopedSettings:{},inCustomizerContext:!1},Kn=Ot.getValue("customizations",{settings:{},scopedSettings:{},inCustomizerContext:!1}),jn=[],Gn=function(){function e(){}return e.reset=function(){Kn.settings={},Kn.scopedSettings={}},e.applySettings=function(t){Kn.settings=v(v({},Kn.settings),t),e._raiseChange()},e.applyScopedSettings=function(t,n){Kn.scopedSettings[t]=v(v({},Kn.scopedSettings[t]),n),e._raiseChange()},e.getSettings=function(e,t,n){void 0===n&&(n=Un);for(var r={},o=t&&n.scopedSettings[t]||{},i=t&&Kn.scopedSettings[t]||{},a=0,s=e;a<s.length;a++){var l=s[a];r[l]=o[l]||n.settings[l]||i[l]||Kn.settings[l]}return r},e.applyBatchedUpdates=function(t,n){e._suppressUpdates=!0;try{t()}catch(Qk){}e._suppressUpdates=!1,n||e._raiseChange()},e.observe=function(e){jn.push(e)},e.unobserve=function(e){jn=jn.filter((function(t){return t!==e}))},e._raiseChange=function(){e._suppressUpdates||jn.forEach((function(e){return e()}))},e}(),qn=u.createContext({customizations:{inCustomizerContext:!1,settings:{},scopedSettings:{}}});function Yn(e,t){void 0===e&&(e={});var n=Jn(t)?t:function(e){return function(t){return e?v(v({},t),e):t}}(t);return n(e)}function Zn(e,t){return void 0===e&&(e={}),(Jn(t)?t:function(e){void 0===e&&(e={});return function(t){var n=v({},t);for(var r in e)e.hasOwnProperty(r)&&(n[r]=v(v({},t[r]),e[r]));return n}}(t))(e)}function Jn(e){return"function"===typeof e}var Qn=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onCustomizationChange=function(){return t.forceUpdate()},t}return g(t,e),t.prototype.componentDidMount=function(){Gn.observe(this._onCustomizationChange)},t.prototype.componentWillUnmount=function(){Gn.unobserve(this._onCustomizationChange)},t.prototype.render=function(){var e=this,t=this.props.contextTransform;return u.createElement(qn.Consumer,null,(function(n){var r=function(e,t){var n=(t||{}).customizations,r=void 0===n?{settings:{},scopedSettings:{}}:n;return{customizations:{settings:Yn(r.settings,e.settings),scopedSettings:Zn(r.scopedSettings,e.scopedSettings),inCustomizerContext:!0}}}(e.props,n);return t&&(r=t(r)),u.createElement(qn.Provider,{value:r},e.props.children)}))},t}(u.Component);function Xn(e,t){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}var $n=function(){return!1},er=function(){return W},tr=function(){return new Map},nr=function(){},rr=function(){return{stylesheets:new Map,useAdoptedStylesheetEx:$n,useAdoptedStylesheet:$n,useShadowConfig:er,useMergeStylesShadowRootContext:nr,useHasMergeStylesShadowRootContext:$n,useMergeStylesRootStylesheets:tr,useWindow:nr,useStyled:nr}},or=u.createContext(rr()),ir=function(){var e=u.useContext(or);return{useAdoptedStylesheet:e.useAdoptedStylesheet,useAdoptedStylesheetEx:e.useAdoptedStylesheetEx,useShadowConfig:e.useShadowConfig,useMergeStylesShadowRootContext:e.useMergeStylesShadowRootContext,useHasMergeStylesShadowRootContext:e.useHasMergeStylesShadowRootContext,useMergeStylesRootStylesheets:e.useMergeStylesRootStylesheets,useWindow:e.useWindow,useStyled:e.useStyled}},ar=u.createContext(void 0),sr=function(){return!!lr()},lr=function(){return u.useContext(ar)},cr=function(e){var t=e.stylesheetKey,n=e.children,r=ir(),o=r.useAdoptedStylesheetEx,i=r.useMergeStylesRootStylesheets,a=r.useWindow,s=lr(),l=i(),c=a();return o(z,s,l,c),o(t,s,l,c),n(!!s)},dr=u.createContext({window:"object"===typeof window?window:void 0}),ur=function(){return u.useContext(dr).window},pr=function(){var e;return null===(e=u.useContext(dr).window)||void 0===e?void 0:e.document};L("@fluentui/react-window-provider","2.2.28");var mr=Fn(U),hr=Fn((function(e,t,n){var r,o=null!==(r=null!==t&&void 0!==t?t:e)&&void 0!==r?r:{};return o.__shadowConfig__=n,o}));function fr(e,t,n){return function(r){var o,i=(o=function(o){function i(e){var t=o.call(this,e)||this;return t._styleCache={},t._onSettingChanged=t._onSettingChanged.bind(t),t}return g(i,o),i.prototype.componentDidMount=function(){Gn.observe(this._onSettingChanged)},i.prototype.componentWillUnmount=function(){Gn.unobserve(this._onSettingChanged)},i.prototype.render=function(){var o=this;return u.createElement(cr,{stylesheetKey:e},(function(i){return u.createElement(qn.Consumer,null,(function(a){var s,l=Gn.getSettings(t,e,a.customizations),c=null!==(s=o.context.window)&&void 0!==s?s:Ve(),d=mr(e,i,c),p=o.props;if(l.styles&&"function"===typeof l.styles&&(l.styles=l.styles(v(v({},l),p))),n&&l.styles){if(o._styleCache.default!==l.styles||o._styleCache.component!==p.styles){var m=_e(l.styles,p.styles);m.__shadowConfig__=d,o._styleCache.default=l.styles,o._styleCache.component=p.styles,o._styleCache.merged=m}return u.createElement(r,v({},l,p,{styles:o._styleCache.merged}))}var h=hr(l.styles,p.styles,d);return u.createElement(r,v({},l,p,{styles:h}))}))}))},i.prototype._onSettingChanged=function(){this.forceUpdate()},i}(u.Component),o.displayName="Customized"+e,o.contextType=dr,o);return Xn(r,i)}}function gr(e,t){var n=function(){var e=u.useState(0)[1];return function(){return e((function(e){return++e}))}}(),r=u.useContext(qn).customizations,o=r.inCustomizerContext;return u.useEffect((function(){return o||Gn.observe(n),function(){o||Gn.unobserve(n)}}),[o]),Gn.getSettings(e,t,r)}function vr(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=pn(e,e[n],t[n]))}var yr=Ve()||{};void 0===yr.__currentId__&&(yr.__currentId__=0);var br=!1;function Cr(e){if(!br){var t=ne.getInstance();t&&t.onReset&&t.onReset(Sr),br=!0}return(void 0===e?"id__":e)+yr.__currentId__++}function Sr(e){void 0===e&&(e=0),yr.__currentId__=e}var xr=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++)for(var i=o[r],a=Array.isArray(i)?i:Object.keys(i),s=0,l=a;s<l.length;s++){var c=l[s];n[c]=1}return n},kr=xr(["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"]),Pr=xr(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Ir=xr(Pr,kr),wr=xr(Ir,["form"]),Er=xr(Ir,["height","loop","muted","preload","src","width"]),_r=xr(Er,["poster"]),Dr=xr(Ir,["start"]),Tr=xr(Ir,["value"]),Rr=xr(Ir,["download","href","hrefLang","media","rel","target","type"]),Ar=xr(Ir,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),Mr=xr(Ar,["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"]),Nr=xr(Ar,["autoCapitalize","cols","dirname","form","maxLength","minLength","placeholder","readOnly","required","rows","wrap"]),Fr=xr(Ar,["form","multiple","required"]),Hr=xr(Ir,["selected","value"]),Or=xr(Ir,["cellPadding","cellSpacing"]),Br=Ir,Lr=xr(Ir,["rowSpan","scope"]),Vr=xr(Ir,["colSpan","headers","rowSpan","scope"]),zr=xr(Ir,["span"]),Wr=xr(Ir,["span"]),Ur=xr(Ir,["acceptCharset","action","encType","encType","method","noValidate","target"]),Kr=xr(Ir,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),jr=xr(Ir,["alt","crossOrigin","height","src","srcSet","useMap","width"]),Gr=Ir;function qr(e,t,n){for(var r=Array.isArray(t),o={},i=0,a=Object.keys(e);i<a.length;i++){var s=a[i];!(!r&&t[s]||r&&t.indexOf(s)>=0||0===s.indexOf("data-")||0===s.indexOf("aria-"))||n&&-1!==(null===n||void 0===n?void 0:n.indexOf(s))||(o[s]=e[s])}return o}var Yr={label:wr,audio:Er,video:_r,ol:Dr,li:Tr,a:Rr,button:Ar,input:Mr,textarea:Nr,select:Fr,option:Hr,table:Or,tr:Br,th:Lr,td:Vr,colGroup:zr,col:Wr,form:Ur,iframe:Kr,img:jr};function Zr(e,t,n){return qr(t,e&&Yr[e]||Ir,n)}var Jr,Qr=["setState","render","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","getSnapshotBeforeUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount"];function Xr(e){vr(e,{componentDidMount:$r,componentDidUpdate:eo,componentWillUnmount:to})}function $r(){no(this.props.componentRef,this)}function eo(e){e.componentRef!==this.props.componentRef&&(no(e.componentRef,null),no(this.props.componentRef,this))}function to(){no(this.props.componentRef,null)}function no(e,t){e&&("object"===typeof e?e.current=t:"function"===typeof e&&e(t))}var ro=((Jr={})[$t]=1,Jr[tn]=1,Jr[Xt]=1,Jr[en]=1,Jr[Qt]=1,Jr[Jt]=1,Jr[zt]=1,Jr[Yt]=1,Jr[Zt]=1,Jr);function oo(e){return!!ro[e]}var io="ms-Fabric--isFocusVisible",ao="ms-Fabric--isFocusHidden";function so(e,t){e&&(e.classList.add(t?io:ao),e.classList.remove(t?ao:io))}function lo(e,t,n){var r;n?n.forEach((function(t){return so(t.current,e)})):so(null===(r=Ve(t))||void 0===r?void 0:r.document.body,e)}var co=new WeakMap,uo=new WeakMap;function po(e,t){var n,r=co.get(e);return n=r?r+t:1,co.set(e,n),n}function mo(e){var t=uo.get(e);if(t)return t;return t={onMouseDown:function(t){return vo(t,e.registeredProviders)},onPointerDown:function(t){return yo(t,e.registeredProviders)},onKeyDown:function(t){return bo(t,e.registeredProviders)},onKeyUp:function(t){return Co(t,e.registeredProviders)}},uo.set(e,t),t}var ho=u.createContext(void 0);function fo(e){var t=u.useContext(ho);u.useEffect((function(){var n,r,o,i,a=Ve(null===e||void 0===e?void 0:e.current);if(a&&!0!==(null===(n=a.FabricConfig)||void 0===n?void 0:n.disableFocusRects)){var s,l,c,d,u=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)){u=t.providerRef.current;var p=mo(t);s=p.onMouseDown,l=p.onPointerDown,c=p.onKeyDown,d=p.onKeyUp}else s=vo,l=yo,c=bo,d=Co;var m=po(u,1);return m<=1&&(u.addEventListener("mousedown",s,!0),u.addEventListener("pointerdown",l,!0),u.addEventListener("keydown",c,!0),u.addEventListener("keyup",d,!0)),function(){var e;a&&!0!==(null===(e=a.FabricConfig)||void 0===e?void 0:e.disableFocusRects)&&0===(m=po(u,-1))&&(u.removeEventListener("mousedown",s,!0),u.removeEventListener("pointerdown",l,!0),u.removeEventListener("keydown",c,!0),u.removeEventListener("keyup",d,!0))}}}),[t,e])}var go=function(e){return fo(e.rootRef),null};function vo(e,t){lo(!1,e.target,t)}function yo(e,t){"mouse"!==e.pointerType&&lo(!1,e.target,t)}function bo(e,t){oo(e.which)&&lo(!0,e.target,t)}function Co(e,t){oo(e.which)&&lo(!0,e.target,t)}var So,xo=function(e){var t=e.providerRef,n=e.layerRoot,r=u.useState([])[0],o=u.useContext(ho),i=void 0!==o&&!n,a=u.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 u.useEffect((function(){if(a)return a.registerProvider(a.providerRef),function(){return a.unregisterProvider(a.providerRef)}}),[a]),a?u.createElement(ho.Provider,{value:a},e.children):u.createElement(u.Fragment,null,e.children)},ko=/[\(\[\{\<][^\)\]\}\>]*[\)\]\}\>]/g,Po=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Io=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,wo=/\s+/g,Eo=/[\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 _o(e,t,n){return e?(e=function(e){return(e=(e=(e=e.replace(ko,"")).replace(Po,"")).replace(wo," ")).trim()}(e),Eo.test(e)||!n&&Io.test(e)?"":function(e,t){var n="",r=e.split(" ");return 2===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[1].charAt(0).toUpperCase()):3===r.length?(n+=r[0].charAt(0).toUpperCase(),n+=r[2].charAt(0).toUpperCase()):0!==r.length&&(n+=r[0].charAt(0).toUpperCase()),t&&n.length>1?n.charAt(1)+n.charAt(0):n}(e,t)):""}var Do="language";function To(e,t,n){void 0===n&&(n=10);var r=Math.pow(n,t);return Math.round(e*r)/r}function Ro(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];Ao(e||{},i)}return e}function Ao(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:Ao(e[r]||{},o,n)}}return n.pop(),e}var Mo,No=function(){return!!(window&&window.navigator&&window.navigator.userAgent)&&/iPad|iPhone|iPod/i.test(window.navigator.userAgent)},Fo=["TEMPLATE","STYLE","SCRIPT"];function Ho(e){var t=Je(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===Fo.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 Oo(e){var t;if("undefined"===typeof Mo||e){var n=Ve(),r=null===(t=null===n||void 0===n?void 0:n.navigator)||void 0===t?void 0:t.userAgent;Mo=!!r&&-1!==r.indexOf("Macintosh")}return!!Mo}var Bo=Hn((function(e){return Hn((function(t){var n=Hn((function(e){return function(n){return t(n,e)}}));return function(r,o){return e(r,o?n(o):t)}}))}));function Lo(e,t){return Bo(e)(t)}var Vo,zo,Wo="change";!function(e){e[e.none=0]="none",e[e.single=1]="single",e[e.multiple=2]="multiple"}(Vo||(Vo={})),function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(zo||(zo={}));var Uo=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0]||{},r=n.onSelectionChanged,o=n.onItemsChanged,i=n.getKey,a=n.canSelectItem,s=void 0===a?function(){return!0}:a,l=n.items,c=n.selectionMode,d=void 0===c?Vo.multiple:c;this.mode=d,this._getKey=i||Ko,this._changeEventSuppressionCount=0,this._exemptedCount=0,this._anchoredIndex=0,this._unselectableCount=0,this._onSelectionChanged=r,this._onItemsChanged=o,this._canSelectItem=s,this._keyToIndexMap={},this._isModal=!1,this.setItems(l||[],!0),this.count=this.getSelectedCount()}return e.prototype.canSelectItem=function(e,t){return!("number"===typeof t&&t<0)&&this._canSelectItem(e,t)},e.prototype.getKey=function(e,t){var n=this._getKey(e,t);return"number"===typeof n||n?"".concat(n):""},e.prototype.setChangeEvents=function(e,t){this._changeEventSuppressionCount+=e?-1:1,0===this._changeEventSuppressionCount&&this._hasChanged&&(this._hasChanged=!1,t||this._change())},e.prototype.isModal=function(){return this._isModal},e.prototype.setModal=function(e){this._isModal!==e&&(this.setChangeEvents(!1),this._isModal=e,e||this.setAllSelected(!1),this._change(),this.setChangeEvents(!0))},e.prototype.setItems=function(e,t){void 0===t&&(t=!0);var n={},r={},o=!1;this.setChangeEvents(!1),this._unselectableCount=0;for(var i=!1,a=0;a<e.length;a++){if(d=e[a])(g=this.getKey(d,a))&&(i||g in this._keyToIndexMap&&this._keyToIndexMap[g]===a||(i=!0),n[g]=a);r[a]=d&&!this.canSelectItem(d),r[a]&&this._unselectableCount++}(t||0===e.length)&&this._setAllSelected(!1,!0);var s={},l=0;for(var c in this._exemptedIndices)if(this._exemptedIndices.hasOwnProperty(c)){var d,u=Number(c),p=(d=this._items[u])?this.getKey(d,Number(u)):void 0,m=p?n[p]:u;void 0===m?o=!0:(s[m]=!0,l++,o=o||m!==u)}if(this._items&&0===this._exemptedCount&&e.length!==this._items.length&&this._isAllSelected&&(o=!0),!i)for(var h=0,f=Object.keys(this._keyToIndexMap);h<f.length;h++){var g;if(!((g=f[h])in n)){i=!0;break}}this._exemptedIndices=s,this._exemptedCount=l,this._keyToIndexMap=n,this._unselectableIndices=r,this._items=e,this._selectedItems=null,o&&this._updateCount(),i&&(gt.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===Vo.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===Vo.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!==Vo.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===Vo.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!==Vo.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!==Vo.none)if(this.mode!==Vo.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!==Vo.none)if(this.mode!==Vo.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!==Vo.none){var n=this.isRangeSelected(e,t),r=e+t;if(!(this.mode===Vo.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===Vo.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,gt.raise(this,Wo),this._onSelectionChanged&&this._onSelectionChanged()):this._hasChanged=!0},e}();function Ko(e,t){var n=(e||{}).key;return void 0===n?"".concat(t):n}var jo=/[\{\}]/g,Go=/\{\d+\}/g;function qo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=t;function o(e){var t=r[e.replace(jo,"")];return null!==t&&void 0!==t||(t=""),t}return e.replace(Go,o)}u.createContext(rr());var Yo,Zo=["theme","styles"];function Jo(e,t,n,r,o){var i=(r=r||{scope:"",fields:void 0}).scope,a=r.fields,s=void 0===a?Zo:a,l=u.forwardRef((function(r,o){var a=u.useRef(),l=gr(s,i),c=l.styles,d=(l.dir,y(l,["styles","dir"])),p=n?n(r):void 0,m=ir().useStyled,h=a.current&&a.current.__cachedInputs__||[],f=r.styles;if(!a.current||c!==h[1]||f!==h[2]){var g=function(e){return Re(e,t,c,f)};g.__cachedInputs__=[t,c,f],g.__noStyleOverride__=!c&&!f,a.current=g}return a.current.__shadowConfig__=m(i),u.createElement(e,v({ref:o},d,p,r,{styles:a.current}))}));l.displayName="Styled".concat(e.displayName||e.name);var c=o?u.memo(l):l;return l.displayName&&(c.displayName=l.displayName),c}function Qo(e){var t=e.componentId,n=e.componentName,r=e.defaultValueProp,o=e.props,i=e.oldProps,a=e.onChangeProp,s=e.readOnlyProp,l=e.valueProp,c=i?zn(i,l):void 0,d=zn(o,l);if(d){var u=!!o[a],p=!(!s||!o[s]);u||p||Yo.valueOnChange[t]||(Yo.valueOnChange[t]=!0,_t("Warning: You provided a '".concat(String(l),"' prop to a ").concat(String(n)," without an '").concat(String(a),"' handler. ")+"This will render a read-only field. If the field should be mutable use '".concat(String(r),"'. ")+"Otherwise, set '".concat(String(a),"'").concat(s?" or '".concat(String(s),"'"):"",".")));var m=o[r];void 0===m||null===m||Yo.valueDefaultValue[t]||(Yo.valueDefaultValue[t]=!0,_t("Warning: You provided both '".concat(String(l),"' and '").concat(String(r),"' to a ").concat(n,". ")+"Form fields must be either controlled or uncontrolled (specify either the '".concat(String(l),"' prop, ")+"or the '".concat(String(r),"' prop, but not both). Decide between using a controlled or uncontrolled ")+"".concat(n," and remove one of these props. More info: https://fb.me/react-controlled-components")))}if(i&&d!==c){var h=c?"a controlled":"an uncontrolled",f=c?"uncontrolled":"controlled",g=c?Yo.controlledToUncontrolled:Yo.uncontrolledToControlled;g[t]||(g[t]=!0,_t("Warning: A component is changing ".concat(h," ").concat(n," to be ").concat(f,". ")+"".concat(n,"s should not switch from controlled to uncontrolled (or vice versa). ")+"Decide between using controlled or uncontrolled for the lifetime of the component. More info: https://fb.me/react-controlled-components"))}}Yo={valueOnChange:{},valueDefaultValue:{},controlledToUncontrolled:{},uncontrolledToControlled:{}};var Xo=function(){var e,t=Ve();return!!(null===(e=null===t||void 0===t?void 0:t.navigator)||void 0===e?void 0:e.userAgent)&&t.navigator.userAgent.indexOf("rv:11.0")>-1};function $o(e,t){for(var n=v({},t),r=0,o=Object.keys(e);r<o.length;r++){var i=o[r];void 0===n[i]&&(n[i]=e[i])}return n}var ei=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)}}},ti=function(e){var t={refs:[]};return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return t.resolver&&gn(t.refs,e)||(t.resolver=ei(t)),t.refs=e,t.resolver}},ni=Be()?u.useLayoutEffect:u.useEffect;L("@fluentui/utilities","8.15.19");var ri=Ot.getValue("icons",{__options:{disableWarnings:!1,warnOnMissingIcons:!0},__remapped:{}}),oi=ne.getInstance();oi&&oi.onReset&&oi.onReset((function(){for(var e in ri)ri.hasOwnProperty(e)&&ri[e].subset&&(ri[e].subset.className=void 0)}));var ii=function(e){return e.toLowerCase()};function ai(e){var t=void 0,n=ri.__options;if(e=e?ii(e):"",e=ri.__remapped[e]||e)if(t=ri[e]){var r=t.subset;r&&r.fontFace&&(r.isRegistered||(Ae(r.fontFace),r.isRegistered=!0),r.className||(r.className=we(r.style,{fontFamily:r.fontFace.fontFamily,fontWeight:r.fontFace.fontWeight||"normal",fontStyle:r.fontFace.fontStyle||"normal"})))}else!n.disableWarnings&&n.warnOnMissingIcons&&_t('The icon "'.concat(e,'" was used but not registered. See https://github.com/microsoft/fluentui/wiki/Using-icons for more information.'));return t}var si,li,ci;function di(e,t,n,r,o){return void 0===o&&(o=!1),function(e,t){var n="";!0===t&&(n=" /* @deprecated */");return e.listTextColor=e.listText+n,e.menuItemBackgroundChecked+=n,e.warningHighlight+=n,e.warningText=e.messageText+n,e.successText+=n,e}(ui(e,t,v({primaryButtonBorder:"transparent",errorText:r?"#F1707B":"#a4262c",messageText:r?"#F3F2F1":"#323130",messageLink:r?"#6CB8F6":"#005A9E",messageLinkHovered:r?"#82C7FF":"#004578",infoIcon:r?"#C8C6C4":"#605e5c",errorIcon:r?"#F1707B":"#A80000",blockingIcon:r?"#442726":"#FDE7E9",warningIcon:r?"#C8C6C4":"#797775",severeWarningIcon:r?"#FCE100":"#D83B01",successIcon:r?"#92C353":"#107C10",infoBackground:r?"#323130":"#f3f2f1",errorBackground:r?"#442726":"#FDE7E9",blockingBackground:r?"#442726":"#FDE7E9",warningBackground:r?"#433519":"#FFF4CE",severeWarningBackground:r?"#4F2A0F":"#FED9CC",successBackground:r?"#393D1B":"#DFF6DD",warningHighlight:r?"#fff100":"#ffb900",successText:r?"#92c353":"#107C10"},n),r),o)}function ui(e,t,n,r,o){void 0===o&&(o=!1);var i={},a=e||{},s=a.white,l=a.black,c=a.themePrimary,d=a.themeDark,u=a.themeDarker,p=a.themeDarkAlt,m=a.themeLighter,h=a.neutralLight,f=a.neutralLighter,g=a.neutralDark,y=a.neutralQuaternary,b=a.neutralQuaternaryAlt,C=a.neutralPrimary,S=a.neutralSecondary,x=a.neutralSecondaryAlt,k=a.neutralTertiary,P=a.neutralTertiaryAlt,I=a.neutralLighterAlt,w=a.accent;return s&&(i.bodyBackground=s,i.bodyFrameBackground=s,i.accentButtonText=s,i.buttonBackground=s,i.primaryButtonText=s,i.primaryButtonTextHovered=s,i.primaryButtonTextPressed=s,i.inputBackground=s,i.inputForegroundChecked=s,i.listBackground=s,i.menuBackground=s,i.cardStandoutBackground=s),l&&(i.bodyTextChecked=l,i.buttonTextCheckedHovered=l),c&&(i.link=c,i.primaryButtonBackground=c,i.inputBackgroundChecked=c,i.inputIcon=c,i.inputFocusBorderAlt=c,i.menuIcon=c,i.menuHeader=c,i.accentButtonBackground=c),d&&(i.primaryButtonBackgroundPressed=d,i.inputBackgroundCheckedHovered=d,i.inputIconHovered=d),u&&(i.linkHovered=u),p&&(i.primaryButtonBackgroundHovered=p),m&&(i.inputPlaceholderBackgroundChecked=m),h&&(i.bodyBackgroundChecked=h,i.bodyFrameDivider=h,i.bodyDivider=h,i.variantBorder=h,i.buttonBackgroundCheckedHovered=h,i.buttonBackgroundPressed=h,i.listItemBackgroundChecked=h,i.listHeaderBackgroundPressed=h,i.menuItemBackgroundPressed=h,i.menuItemBackgroundChecked=h),f&&(i.bodyBackgroundHovered=f,i.buttonBackgroundHovered=f,i.buttonBackgroundDisabled=f,i.buttonBorderDisabled=f,i.primaryButtonBackgroundDisabled=f,i.disabledBackground=f,i.listItemBackgroundHovered=f,i.listHeaderBackgroundHovered=f,i.menuItemBackgroundHovered=f),y&&(i.primaryButtonTextDisabled=y,i.disabledSubtext=y),b&&(i.listItemBackgroundCheckedHovered=b),k&&(i.disabledBodyText=k,i.variantBorderHovered=(null===n||void 0===n?void 0:n.variantBorderHovered)||k,i.buttonTextDisabled=k,i.inputIconDisabled=k,i.disabledText=k),C&&(i.bodyText=C,i.actionLink=C,i.buttonText=C,i.inputBorderHovered=C,i.inputText=C,i.listText=C,i.menuItemText=C),I&&(i.bodyStandoutBackground=I,i.defaultStateBackground=I),g&&(i.actionLinkHovered=g,i.buttonTextHovered=g,i.buttonTextChecked=g,i.buttonTextPressed=g,i.inputTextHovered=g,i.menuItemTextHovered=g),S&&(i.bodySubtext=S,i.focusBorder=S,i.inputBorder=S,i.smallInputBorder=S,i.inputPlaceholderText=S),x&&(i.buttonBorder=x),P&&(i.disabledBodySubtext=P,i.disabledBorder=P,i.buttonBackgroundChecked=P,i.menuDivider=P),w&&(i.accentButtonBackground=w),(null===t||void 0===t?void 0:t.elevation4)&&(i.cardShadow=t.elevation4),!r&&(null===t||void 0===t?void 0:t.elevation8)?i.cardShadowHovered=t.elevation8:i.variantBorderHovered&&(i.cardShadowHovered="0 0 1px "+i.variantBorderHovered),i=v(v({},i),n)}function pi(e,t){var n,r,o;void 0===t&&(t={});var i=Ro({},e,t,{semanticColors:ui(t.palette,t.effects,t.semanticColors,void 0===t.isInverted?e.isInverted:t.isInverted)});if((null===(n=t.palette)||void 0===n?void 0:n.themePrimary)&&!(null===(r=t.palette)||void 0===r?void 0:r.accent)&&(i.palette.accent=t.palette.themePrimary),t.defaultFontStyle)for(var a=0,s=Object.keys(i.fonts);a<s.length;a++){var l=s[a];i.fonts[l]=Ro(i.fonts[l],t.defaultFontStyle,null===(o=null===t||void 0===t?void 0:t.fonts)||void 0===o?void 0:o[l])}return i}!function(e){e.shade30="#004578",e.shade20="#005a9e",e.shade10="#106ebe",e.primary="#0078d4",e.tint10="#2b88d8",e.tint20="#c7e0f4",e.tint30="#deecf9",e.tint40="#eff6fc"}(si||(si={})),function(e){e.black="#000000",e.gray220="#11100f",e.gray210="#161514",e.gray200="#1b1a19",e.gray190="#201f1e",e.gray180="#252423",e.gray170="#292827",e.gray160="#323130",e.gray150="#3b3a39",e.gray140="#484644",e.gray130="#605e5c",e.gray120="#797775",e.gray110="#8a8886",e.gray100="#979593",e.gray90="#a19f9d",e.gray80="#b3b0ad",e.gray70="#bebbb8",e.gray60="#c8c6c4",e.gray50="#d2d0ce",e.gray40="#e1dfdd",e.gray30="#edebe9",e.gray20="#f3f2f1",e.gray10="#faf9f8",e.white="#ffffff"}(li||(li={})),function(e){e.pinkRed10="#750b1c",e.red20="#a4262c",e.red10="#d13438",e.redOrange20="#603d30",e.redOrange10="#da3b01",e.orange30="#8e562e",e.orange20="#ca5010",e.orange10="#ffaa44",e.yellow10="#fce100",e.orangeYellow20="#986f0b",e.orangeYellow10="#c19c00",e.yellowGreen10="#8cbd18",e.green20="#0b6a0b",e.green10="#498205",e.greenCyan10="#00ad56",e.cyan40="#005e50",e.cyan30="#005b70",e.cyan20="#038387",e.cyan10="#00b7c3",e.cyanBlue20="#004e8c",e.cyanBlue10="#0078d4",e.blue10="#4f6bed",e.blueMagenta40="#373277",e.blueMagenta30="#5c2e91",e.blueMagenta20="#8764b8",e.blueMagenta10="#8378de",e.magenta20="#881798",e.magenta10="#c239b3",e.magentaPink20="#9b0062",e.magentaPink10="#e3008c",e.gray40="#393939",e.gray30="#7a7574",e.gray20="#69797e",e.gray10="#a0aeb2"}(ci||(ci={}));var mi,hi={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)"}(mi||(mi={}));var fi,gi,vi,yi={elevation4:mi.depth4,elevation8:mi.depth8,elevation16:mi.depth16,elevation64:mi.depth64,roundedCorner2:"2px",roundedCorner4:"4px",roundedCorner6:"6px"},bi={s2:"4px",s1:"8px",m:"16px",l1:"20px",l2:"32px"},Ci=Me({from:{opacity:0},to:{opacity:1}}),Si=Me({from:{opacity:1},to:{opacity:0}}),xi=Me({from:{transform:"scale3d(1.15, 1.15, 1)"},to:{transform:"scale3d(1, 1, 1)"}}),ki=Me({from:{transform:"scale3d(1, 1, 1)"},to:{transform:"scale3d(0.9, 0.9, 1)"}}),Pi=Me({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(-48px, 0, 0)"}}),Ii=Me({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(48px, 0, 0)"}}),wi=Me({from:{transform:"translate3d(48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),Ei=Me({from:{transform:"translate3d(-48px, 0, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),_i=Me({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, -48px, 0)"}}),Di=Me({from:{transform:"translate3d(0, 0, 0)"},to:{transform:"translate3d(0, 48px, 0)"}}),Ti=Me({from:{transform:"translate3d(0, 48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}}),Ri=Me({from:{transform:"translate3d(0, -48px, 0)"},to:{transform:"translate3d(0, 0, 0)"}});function Ai(e,t,n){return"".concat(e," ").concat(t," ").concat(n)}!function(e){e.duration1="100ms",e.duration2="200ms",e.duration3="300ms",e.duration4="400ms"}(fi||(fi={})),function(e){e.accelerate="cubic-bezier(0.9, 0.1, 1, 0.2)",e.decelerate="cubic-bezier(0.1, 0.9, 0.2, 1)",e.linear="cubic-bezier(0, 0, 1, 1)",e.standard="cubic-bezier(0.8, 0, 0.2, 1)"}(gi||(gi={})),function(e){e.fadeIn=Ai(Ci,fi.duration1,gi.linear),e.fadeOut=Ai(Si,fi.duration1,gi.linear),e.scaleDownIn=Ai(xi,fi.duration3,gi.decelerate),e.scaleDownOut=Ai(ki,fi.duration3,gi.decelerate),e.slideLeftOut=Ai(Pi,fi.duration1,gi.accelerate),e.slideRightOut=Ai(Ii,fi.duration1,gi.accelerate),e.slideLeftIn=Ai(wi,fi.duration1,gi.decelerate),e.slideRightIn=Ai(Ei,fi.duration1,gi.decelerate),e.slideUpOut=Ai(_i,fi.duration1,gi.accelerate),e.slideDownOut=Ai(Di,fi.duration1,gi.accelerate),e.slideUpIn=Ai(Ti,fi.duration1,gi.decelerate),e.slideDownIn=Ai(Ri,fi.duration1,gi.decelerate)}(vi||(vi={}));var Mi,Ni,Fi,Hi,Oi,Bi="cubic-bezier(.1,.9,.2,1)",Li="cubic-bezier(.1,.25,.75,.9)",Vi="0.167s",zi="0.267s",Wi="0.367s",Ui="0.467s",Ki=Me({from:{opacity:0},to:{opacity:1}}),ji=Me({from:{opacity:1},to:{opacity:0,visibility:"hidden"}}),Gi=Ta(-10),qi=Ta(-20),Yi=Ta(-40),Zi=Ta(-400),Ji=Ta(10),Qi=Ta(20),Xi=Ta(40),$i=Ta(400),ea=Ra(10),ta=Ra(20),na=Ra(-10),ra=Ra(-20),oa=Aa(10),ia=Aa(20),aa=Aa(40),sa=Aa(400),la=Aa(-10),ca=Aa(-20),da=Aa(-40),ua=Aa(-400),pa=Ma(-10),ma=Ma(-20),ha=Ma(10),fa=Ma(20),ga=Me({from:{transform:"scale3d(.98,.98,1)"},to:{transform:"scale3d(1,1,1)"}}),va=Me({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(.98,.98,1)"}}),ya=Me({from:{transform:"scale3d(1.03,1.03,1)"},to:{transform:"scale3d(1,1,1)"}}),ba=Me({from:{transform:"scale3d(1,1,1)"},to:{transform:"scale3d(1.03,1.03,1)"}}),Ca=Me({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(90deg)"}}),Sa=Me({from:{transform:"rotateZ(0deg)"},to:{transform:"rotateZ(-90deg)"}}),xa=Bi,ka=Li,Pa=Vi,Ia=zi,wa=Wi,Ea=Ui,_a={slideRightIn10:Da("".concat(Ki,",").concat(Gi),Wi,Bi),slideRightIn20:Da("".concat(Ki,",").concat(qi),Wi,Bi),slideRightIn40:Da("".concat(Ki,",").concat(Yi),Wi,Bi),slideRightIn400:Da("".concat(Ki,",").concat(Zi),Wi,Bi),slideLeftIn10:Da("".concat(Ki,",").concat(Ji),Wi,Bi),slideLeftIn20:Da("".concat(Ki,",").concat(Qi),Wi,Bi),slideLeftIn40:Da("".concat(Ki,",").concat(Xi),Wi,Bi),slideLeftIn400:Da("".concat(Ki,",").concat($i),Wi,Bi),slideUpIn10:Da("".concat(Ki,",").concat(ea),Wi,Bi),slideUpIn20:Da("".concat(Ki,",").concat(ta),Wi,Bi),slideDownIn10:Da("".concat(Ki,",").concat(na),Wi,Bi),slideDownIn20:Da("".concat(Ki,",").concat(ra),Wi,Bi),slideRightOut10:Da("".concat(ji,",").concat(oa),Wi,Bi),slideRightOut20:Da("".concat(ji,",").concat(ia),Wi,Bi),slideRightOut40:Da("".concat(ji,",").concat(aa),Wi,Bi),slideRightOut400:Da("".concat(ji,",").concat(sa),Wi,Bi),slideLeftOut10:Da("".concat(ji,",").concat(la),Wi,Bi),slideLeftOut20:Da("".concat(ji,",").concat(ca),Wi,Bi),slideLeftOut40:Da("".concat(ji,",").concat(da),Wi,Bi),slideLeftOut400:Da("".concat(ji,",").concat(ua),Wi,Bi),slideUpOut10:Da("".concat(ji,",").concat(pa),Wi,Bi),slideUpOut20:Da("".concat(ji,",").concat(ma),Wi,Bi),slideDownOut10:Da("".concat(ji,",").concat(ha),Wi,Bi),slideDownOut20:Da("".concat(ji,",").concat(fa),Wi,Bi),scaleUpIn100:Da("".concat(Ki,",").concat(ga),Wi,Bi),scaleDownIn100:Da("".concat(Ki,",").concat(ya),Wi,Bi),scaleUpOut103:Da("".concat(ji,",").concat(ba),Vi,Li),scaleDownOut98:Da("".concat(ji,",").concat(va),Vi,Li),fadeIn100:Da(Ki,Vi,Li),fadeIn200:Da(Ki,zi,Li),fadeIn400:Da(Ki,Wi,Li),fadeIn500:Da(Ki,Ui,Li),fadeOut100:Da(ji,Vi,Li),fadeOut200:Da(ji,zi,Li),fadeOut400:Da(ji,Wi,Li),fadeOut500:Da(ji,Ui,Li),rotate90deg:Da(Ca,"0.1s",Li),rotateN90deg:Da(Sa,"0.1s",Li)};function Da(e,t,n){return{animationName:e,animationDuration:t,animationTimingFunction:n,animationFillMode:"both"}}function Ta(e){return Me({from:{transform:"translate3d(".concat(e,"px,0,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Ra(e){return Me({from:{transform:"translate3d(0,".concat(e,"px,0)"),pointerEvents:"none"},to:{transform:"translate3d(0,0,0)",pointerEvents:"auto"}})}function Aa(e){return Me({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(".concat(e,"px,0,0)")}})}function Ma(e){return Me({from:{transform:"translate3d(0,0,0)"},to:{transform:"translate3d(0,".concat(e,"px,0)")}})}!function(e){e.Arabic="Segoe UI Web (Arabic)",e.Cyrillic="Segoe UI Web (Cyrillic)",e.EastEuropean="Segoe UI Web (East European)",e.Greek="Segoe UI Web (Greek)",e.Hebrew="Segoe UI Web (Hebrew)",e.Thai="Leelawadee UI Web",e.Vietnamese="Segoe UI Web (Vietnamese)",e.WestEuropean="Segoe UI Web (West European)",e.Selawik="Selawik Web",e.Armenian="Segoe UI Web (Armenian)",e.Georgian="Segoe UI Web (Georgian)"}(Mi||(Mi={})),function(e){e.Arabic="'".concat(Mi.Arabic,"'"),e.ChineseSimplified="'Microsoft Yahei UI', Verdana, Simsun",e.ChineseTraditional="'Microsoft Jhenghei UI', Pmingliu",e.Cyrillic="'".concat(Mi.Cyrillic,"'"),e.EastEuropean="'".concat(Mi.EastEuropean,"'"),e.Greek="'".concat(Mi.Greek,"'"),e.Hebrew="'".concat(Mi.Hebrew,"'"),e.Hindi="'Nirmala UI'",e.Japanese="'Yu Gothic UI', 'Meiryo UI', Meiryo, 'MS Pgothic', Osaka",e.Korean="'Malgun Gothic', Gulim",e.Selawik="'".concat(Mi.Selawik,"'"),e.Thai="'Leelawadee UI Web', 'Kmer UI'",e.Vietnamese="'".concat(Mi.Vietnamese,"'"),e.WestEuropean="'".concat(Mi.WestEuropean,"'"),e.Armenian="'".concat(Mi.Armenian,"'"),e.Georgian="'".concat(Mi.Georgian,"'")}(Ni||(Ni={})),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"}(Fi||(Fi={})),function(e){e.light=100,e.semilight=300,e.regular=400,e.semibold=600,e.bold=700}(Hi||(Hi={})),function(e){e.xSmall="10px",e.small="12px",e.medium="16px",e.large="20px"}(Oi||(Oi={}));var Na="'Segoe UI', '".concat(Mi.WestEuropean,"'"),Fa={ar:Ni.Arabic,bg:Ni.Cyrillic,cs:Ni.EastEuropean,el:Ni.Greek,et:Ni.EastEuropean,he:Ni.Hebrew,hi:Ni.Hindi,hr:Ni.EastEuropean,hu:Ni.EastEuropean,ja:Ni.Japanese,kk:Ni.EastEuropean,ko:Ni.Korean,lt:Ni.EastEuropean,lv:Ni.EastEuropean,pl:Ni.EastEuropean,ru:Ni.Cyrillic,sk:Ni.EastEuropean,"sr-latn":Ni.EastEuropean,th:Ni.Thai,tr:Ni.EastEuropean,uk:Ni.Cyrillic,vi:Ni.Vietnamese,"zh-hans":Ni.ChineseSimplified,"zh-hant":Ni.ChineseTraditional,hy:Ni.Armenian,ka:Ni.Georgian};function Ha(e,t,n){return{fontFamily:n,MozOsxFontSmoothing:"grayscale",WebkitFontSmoothing:"antialiased",fontSize:e,fontWeight:t}}var Oa=function(e){var t=function(e){for(var t in Fa)if(Fa.hasOwnProperty(t)&&e&&0===t.indexOf(e))return Fa[t];return Na}(e),n="".concat(t,", ").concat("'Segoe UI', -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', sans-serif");return{tiny:Ha(Fi.mini,Hi.regular,n),xSmall:Ha(Fi.xSmall,Hi.regular,n),small:Ha(Fi.small,Hi.regular,n),smallPlus:Ha(Fi.smallPlus,Hi.regular,n),medium:Ha(Fi.medium,Hi.regular,n),mediumPlus:Ha(Fi.mediumPlus,Hi.regular,n),large:Ha(Fi.large,Hi.regular,n),xLarge:Ha(Fi.xLarge,Hi.semibold,n),xLargePlus:Ha(Fi.xLargePlus,Hi.semibold,n),xxLarge:Ha(Fi.xxLarge,Hi.semibold,n),xxLargePlus:Ha(Fi.xxLargePlus,Hi.semibold,n),superLarge:Ha(Fi.superLarge,Hi.semibold,n),mega:Ha(Fi.mega,Hi.semibold,n)}}(function(e){if(void 0===e&&(e="sessionStorage"),void 0===So){var t=Je(),n="localStorage"===e?function(e){var t=null;try{var n=Ve();t=n?n.localStorage.getItem(e):null}catch(mE){}return t}(Do):"sessionStorage"===e?vn(Do):void 0;n&&(So=n),void 0===So&&t&&(So=t.documentElement.getAttribute("lang")),void 0===So&&(So="en")}return So}());function Ba(e,t,n,r){Ae({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 La(e,t,n,r,o){void 0===r&&(r="segoeui");var i="".concat(e,"/").concat(n,"/").concat(r);Ba(t,i+"-light",Hi.light,o&&o+" Light"),Ba(t,i+"-semilight",Hi.semilight,o&&o+" SemiLight"),Ba(t,i+"-regular",Hi.regular,o),Ba(t,i+"-semibold",Hi.semibold,o&&o+" SemiBold"),Ba(t,i+"-bold",Hi.bold,o&&o+" Bold")}function Va(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=!!e.isInverted;return pi({palette:hi,effects:yi,fonts:Oa,spacing:bi,isInverted:n,disableGlobalClassNames:!1,semanticColors:di(hi,yi,void 0,n,t),rtl:void 0},e)}!function(e){if(e){var t="".concat(e,"/fonts");La(t,Mi.Thai,"leelawadeeui-thai","leelawadeeui"),La(t,Mi.Arabic,"segoeui-arabic"),La(t,Mi.Cyrillic,"segoeui-cyrillic"),La(t,Mi.EastEuropean,"segoeui-easteuropean"),La(t,Mi.Greek,"segoeui-greek"),La(t,Mi.Hebrew,"segoeui-hebrew"),La(t,Mi.Vietnamese,"segoeui-vietnamese"),La(t,Mi.WestEuropean,"segoeui-westeuropean","segoeui","Segoe UI"),La(t,Ni.Selawik,"selawik","selawik"),La(t,Mi.Armenian,"segoeui-armenian"),La(t,Mi.Georgian,"segoeui-georgian"),Ba("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-semilight"),Hi.light),Ba("Leelawadee UI Web","".concat(t,"/leelawadeeui-thai/leelawadeeui-bold"),Hi.semibold)}}(function(){var e,t,n=null===(e=Ve())||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"}());Va({});L("@fluentui/theme","2.6.63");var za,Wa="@media screen and (-ms-high-contrast: active), screen and (forced-colors: active)",Ua="@media screen and (-ms-high-contrast: black-on-white), screen and (forced-colors: active) and (prefers-color-scheme: light)",Ka=480,ja=1366,Ga=479;function qa(e,t){var n="number"===typeof e?" and (min-width: ".concat(e,"px)"):"",r="number"===typeof t?" and (max-width: ".concat(t,"px)"):"";return"@media only screen".concat(n).concat(r)}function Ya(e,t,n,r,o,i,a,s){return Za(e,"number"!==typeof t&&t?t:{inset:t,position:n,highContrastStyle:r,borderColor:o,outlineColor:i,isFocusedOnly:a,borderRadius:s})}function Za(e,t){var n,r;void 0===t&&(t={});var o=t.borderRadius,i=t.inset,a=void 0===i?0:i,s=t.width,l=void 0===s?1:s,c=t.position,d=void 0===c?"relative":c,u=t.highContrastStyle,p=t.borderColor,m=void 0===p?e.palette.white:p,h=t.outlineColor,f=void 0===h?e.palette.neutralSecondary:h,g=t.isFocusedOnly,v=void 0===g||g,y=t.pointerEvents;return{outline:"transparent",position:d,selectors:(n={"::-moz-focus-inner":{border:"0"}},n[".".concat(io," &").concat(v?":focus":"",":after, :host(.").concat(io,") &").concat(v?":focus":"",":after")]={content:'""',position:"absolute",pointerEvents:y,left:a+1,top:a+1,bottom:a+1,right:a+1,border:"".concat(l,"px solid ").concat(m),outline:"".concat(l,"px solid ").concat(f),zIndex:za.FocusStyle,borderRadius:o,selectors:(r={},r[Wa]=u,r)},n)}}!function(e){e.Nav=1,e.ScrollablePane=1,e.FocusStyle=1,e.Coachmark=1e3,e.Layer=1e6,e.KeytipLayer=1000001}(za||(za={}));var Ja=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[Wa]=(a={},a["border"===n?"borderColor":"borderBottomColor"]="Highlight",a),i),o)}}},Qa={position:"absolute",width:1,height:1,margin:-1,padding:0,border:0,overflow:"hidden",whiteSpace:"nowrap"};function Xa(e,t){return{borderColor:e,borderWidth:"0px",width:t,height:t}}function $a(e){return{opacity:1,borderWidth:e}}function es(e,t){return{borderWidth:"0",width:t,height:t,opacity:0,borderColor:e}}function ts(e,t){return v(v({},Xa(e,t)),{opacity:0})}var ns={continuousPulseAnimationDouble:function(e,t,n,r,o){return Me({"0%":Xa(e,n),"1.42%":$a(o),"3.57%":{opacity:1},"7.14%":es(t,r),"8%":ts(e,n),"29.99%":ts(e,n),"30%":Xa(e,n),"31.42%":$a(o),"33.57%":{opacity:1},"37.14%":es(t,r),"38%":ts(e,n),"79.42%":ts(e,n),79.43:Xa(e,n),81.85:$a(o),83.42:{opacity:1},"87%":es(t,r),"100%":{}})},continuousPulseAnimationSingle:function(e,t,n,r,o){return Me({"0%":Xa(e,n),"14.2%":$a(o),"35.7%":{opacity:1},"71.4%":es(t,r),"100%":{}})},createDefaultAnimation:function(e,t){return{animationName:e,animationIterationCount:"1",animationDuration:"14s",animationDelay:t||"2s"}}},rs=Fn((function(e,t){var n=ne.getInstance();return t?Object.keys(e).reduce((function(t,r){return t[r]=n.getClassName(e[r]),t}),{}):e}));function os(e,t,n){return rs(e,void 0!==n?n:t.disableGlobalClassNames)}var is=function(){return is=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},is.apply(this,arguments)},as="undefined"===typeof window?n.g:window,ss=as&&as.CSPSettings&&as.CSPSettings.nonce,ls=function(){var e=as.__themeState__||{theme:void 0,lastStyleElement:void 0,registeredStyles:[]};e.runState||(e=is(is({},e),{perf:{count:0,duration:0},runState:{flushTimer:0,mode:0,buffer:[]}}));e.registeredThemableStyles||(e=is(is({},e),{registeredThemableStyles:[]}));return as.__themeState__=e,e}(),cs=/[\'\"]\[theme:\s*(\w+)\s*(?:\,\s*default:\s*([\\"\']?[\.\,\(\)\#\-\s\w]*[\.\,\(\)\#\-\w][\"\']?))?\s*\][\'\"]/g,ds=function(){return"undefined"!==typeof performance&&performance.now?performance.now():Date.now()};function us(e){var t=ds();e();var n=ds();ls.perf.duration+=n-t}function ps(e,t){void 0===t&&(t=!1),us((function(){var n=Array.isArray(e)?e:vs(e),r=ls.runState,o=r.mode,i=r.buffer,a=r.flushTimer;t||1===o?(i.push(n),a||(ls.runState.flushTimer=setTimeout((function(){ls.runState.flushTimer=0,us((function(){var e=ls.runState.buffer.slice();ls.runState.buffer=[];var t=[].concat.apply([],e);t.length>0&&ms(t)}))}),0))):ms(n)}))}function ms(e,t){ls.loadStyles?ls.loadStyles(gs(e).styleString,e):function(e){if("undefined"===typeof document)return;var t=document.getElementsByTagName("head")[0],n=document.createElement("style"),r=gs(e),o=r.styleString,i=r.themable;n.setAttribute("data-load-themed-styles","true"),ss&&n.setAttribute("nonce",ss);n.appendChild(document.createTextNode(o)),ls.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?ls.registeredThemableStyles.push(s):ls.registeredStyles.push(s)}(e)}function hs(e){ls.theme=e,function(){if(ls.theme){for(var e=[],t=0,n=ls.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||(fs(ls.registeredStyles),ls.registeredStyles=[]);3!==e&&1!==e||(fs(ls.registeredThemableStyles),ls.registeredThemableStyles=[])}(1),ms([].concat.apply([],e)))}}()}function fs(e){e.forEach((function(e){var t=e&&e.styleElement;t&&t.parentElement&&t.parentElement.removeChild(t)}))}function gs(e){var t=ls.theme,n=!1;return{styleString:(e||[]).map((function(e){var r=e.theme;if(r){n=!0;var o=t?t[r]:void 0,i=e.defaultValue||"inherit";return t&&!o&&console&&!(r in t)&&"undefined"!==typeof DEBUG&&DEBUG&&console.warn('Theming value not provided for "'.concat(r,'". Falling back to "').concat(i,'".')),o||i}return e.rawString})).join(""),themable:n}}function vs(e){var t=[];if(e){for(var n=0,r=void 0;r=cs.exec(e);){var o=r.index;o>n&&t.push({rawString:e.substring(n,o)}),t.push({theme:r[1],defaultValue:r[2]}),n=cs.lastIndex}t.push({rawString:e.substring(n)})}return t}var ys=Va({}),bs=[],Cs="theme";function Ss(){var e,t,n,r=Ve();(null===(t=null===r||void 0===r?void 0:r.FabricConfig)||void 0===t?void 0:t.legacyTheme)?function(e,t){var n;void 0===t&&(t=!1);ys=Va(e,t),hs(v(v(v(v({},ys.palette),ys.semanticColors),ys.effects),function(e){for(var t={},n=0,r=Object.keys(e.fonts);n<r.length;n++)for(var o=r[n],i=e.fonts[o],a=0,s=Object.keys(i);a<s.length;a++){var l=s[a],c=o+l.charAt(0).toUpperCase()+l.slice(1),d=i[l];"fontSize"===l&&"number"===typeof d&&(d+="px"),t[c]=d}return t}(ys))),Gn.applySettings(((n={}).theme=ys,n)),bs.forEach((function(e){try{e(ys)}catch(mE){}}))}(r.FabricConfig.legacyTheme):Gn.getSettings([Cs]).theme||((null===(n=null===r||void 0===r?void 0:r.FabricConfig)||void 0===n?void 0:n.theme)&&(ys=Va(r.FabricConfig.theme)),Gn.applySettings(((e={}).theme=ys,e)))}function xs(e){return void 0===e&&(e=!1),!0===e&&(ys=Va({},e)),ys}Ss();var ks={boxShadow:"none",margin:0,padding:0,boxSizing:"border-box"},Ps={overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};function Is(e){return{selectors:{"::placeholder":e,":-ms-input-placeholder":e,"::-ms-input-placeholder":e}}}var ws=Oe(_a),Es=(Oe(Oa),{});for(var _s in hi)hi.hasOwnProperty(_s)&&(Ds(Es,_s,"",!1,"color"),Ds(Es,_s,"Hover",!0,"color"),Ds(Es,_s,"Background",!1,"background"),Ds(Es,_s,"BackgroundHover",!0,"background"),Ds(Es,_s,"Border",!1,"borderColor"),Ds(Es,_s,"BorderHover",!0,"borderColor"));function Ds(e,t,n,r,o){Object.defineProperty(e,t+n,{get:function(){var e,n=((e={})[o]=xs().palette[t],e);return we(r?{selectors:{":hover":n}}:n).toString()},enumerable:!0,configurable:!0})}L("@fluentui/style-utilities","8.11.4"),Ss();var Ts,Rs,As,Ms="32px",Ns="16px",Fs="16px",Hs="13px",Os=Fn((function(){return Me({from:{opacity:0},to:{opacity:1}})})),Bs=Fn((function(){return Me({from:{transform:"translateX(-10px)"},to:{transform:"translateX(0)"}})})),Ls=Fn((function(e,t,n,r,o,i){var a;void 0===e&&(e=xs());var s={animationName:ns.continuousPulseAnimationSingle(r||e.palette.themePrimary,o||e.palette.themeTertiary,"4px","28px","4px"),animationIterationCount:"1",animationDuration:".8s",zIndex:1},l={animationName:Bs(),animationIterationCount:"1",animationDuration:".5s"},c={animationName:Os(),animationIterationCount:"1",animationDuration:".5s"},d={root:[e.fonts.small,{display:"flex",justifyContent:"flex-start",alignItems:"flex-start",boxSizing:"border-box",color:e.palette.neutralSecondary},i&&n&&c],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:0},i&&n&&s],isCompactRoot:{alignItems:"center"},personaContainer:{display:"flex",flexWrap:"wrap",minWidth:Ms,width:Ms,height:Ms},isCompactPersonaContainer:{display:"inline-flex",flexWrap:"nowrap",flexBasis:"auto",height:Ns,width:"auto",minWidth:"0",paddingRight:"6px"},activityTypeIcon:{height:Ms,fontSize:Fs,lineHeight:Fs,marginTop:"3px"},isCompactIcon:{height:Ns,minWidth:Ns,fontSize:Hs,lineHeight:Hs,color:e.palette.themePrimary,marginTop:"1px",position:"relative",display:"flex",justifyContent:"center",alignItems:"center",selectors:{".ms-Persona-imageArea":{margin:"-2px 0 0 -2px",border:"2px solid"+e.palette.white,borderRadius:"50%",selectors:(a={},a[Wa]={border:"none",margin:"0"},a)}}},activityPersona:{display:"block"},doublePersona:{selectors:{":first-child":{alignSelf:"flex-end"}}},isCompactPersona:{display:"inline-block",width:"8px",minWidth:"8px",overflow:"visible"},activityContent:[{padding:"0 8px"},i&&n&&l],activityText:{display:"inline"},isCompactContent:{flex:"1",padding:"0 4px",whiteSpace:"nowrap",textOverflow:"ellipsis",overflowX:"hidden"},commentText:{color:e.palette.neutralPrimary},timeStamp:[e.fonts.tiny,{fontWeight:400,color:e.palette.neutralSecondary}],isCompactTimeStamp:{display:"inline-block",paddingLeft:"0.3em",fontSize:"1em"}},u=t||{},p=u.__shadowConfig__,m=y(u,["__shadowConfig__"]);return p?_e(p,d,m):_e(d,t)})),Vs=Fn((function(e,t,n,r){return{root:we(e.__shadowConfig__,"ms-ActivityItem",t,e.root,r&&e.isCompactRoot),pulsingBeacon:we(e.__shadowConfig__,"ms-ActivityItem-pulsingBeacon",e.pulsingBeacon),personaContainer:we(e.__shadowConfig__,"ms-ActivityItem-personaContainer",e.personaContainer,r&&e.isCompactPersonaContainer),activityPersona:we(e.__shadowConfig__,"ms-ActivityItem-activityPersona",e.activityPersona,r&&e.isCompactPersona,!r&&n&&2===n.length&&e.doublePersona),activityTypeIcon:we(e.__shadowConfig__,"ms-ActivityItem-activityTypeIcon",e.activityTypeIcon,r&&e.isCompactIcon),activityContent:we(e.__shadowConfig__,"ms-ActivityItem-activityContent",e.activityContent,r&&e.isCompactContent),activityText:we(e.__shadowConfig__,"ms-ActivityItem-activityText",e.activityText),commentText:we(e.__shadowConfig__,"ms-ActivityItem-commentText",e.commentText),timeStamp:we(e.__shadowConfig__,"ms-ActivityItem-timeStamp",e.timeStamp,r&&e.isCompactTimeStamp)}})),zs=0,Ws=1,Us=2,Ks=3,js=4,Gs=5,qs=6,Ys=7,Zs=8,Js=9,Qs=10,Xs=11,$s=12,el=13;function tl(e,t,n){return{targetEdge:e,alignmentEdge:t,isAuto:n}}!function(e){e[e.top=1]="top",e[e.bottom=-1]="bottom",e[e.left=2]="left",e[e.right=-2]="right"}(Ts||(Ts={})),function(e){e[e.top=0]="top",e[e.bottom=1]="bottom",e[e.start=2]="start",e[e.end=3]="end"}(Rs||(Rs={}));var nl=((As={})[zs]=tl(Ts.top,Ts.left),As[Ws]=tl(Ts.top),As[Us]=tl(Ts.top,Ts.right),As[Ks]=tl(Ts.top,void 0,!0),As[js]=tl(Ts.bottom,Ts.left),As[Gs]=tl(Ts.bottom),As[qs]=tl(Ts.bottom,Ts.right),As[Ys]=tl(Ts.bottom,void 0,!0),As[Zs]=tl(Ts.left,Ts.top),As[Js]=tl(Ts.left),As[Qs]=tl(Ts.left,Ts.bottom),As[Xs]=tl(Ts.right,Ts.top),As[$s]=tl(Ts.right),As[el]=tl(Ts.right,Ts.bottom),As);function rl(e,t){return!(e.top<t.top)&&(!(e.bottom>t.bottom)&&(!(e.left<t.left)&&!(e.right>t.right)))}function ol(e,t){var n=[];return e.top<t.top&&n.push(Ts.top),e.bottom>t.bottom&&n.push(Ts.bottom),e.left<t.left&&n.push(Ts.left),e.right>t.right&&n.push(Ts.right),n}function il(e,t){return e[Ts[t]]}function al(e,t,n){return e[Ts[t]]=n,e}function sl(e,t){var n=Cl(t);return(il(e,n.positiveEdge)+il(e,n.negativeEdge))/2}function ll(e,t){return e>0?t:-1*t}function cl(e,t){return ll(e,il(t,e))}function dl(e,t,n){return ll(n,il(e,n)-il(t,n))}function ul(e,t,n,r){void 0===r&&(r=!0);var o=il(e,t)-n,i=al(e,t,n);return r&&(i=al(e,-1*t,il(e,-1*t)-o)),i}function pl(e,t,n,r){return void 0===r&&(r=0),ul(e,n,il(t,n)+ll(n,r))}function ml(e,t,n){return cl(n,e)>cl(n,t)}function hl(e,t){for(var n=0,r=0,o=ol(e,t);r<o.length;r++){var i=o[r];n+=Math.pow(dl(e,t,i),2)}return n}function fl(e,t,n,r){return void 0===r&&(r=200),(n===Ts.bottom||n===Ts.top)&&dl(e,t,n)>=r}function gl(e,t,n,r,o,i,a,s,l){void 0===o&&(o=!1),void 0===a&&(a=0);var c=r.alignmentEdge,d=r.alignTargetEdge,u={elementRectangle:e,targetEdge:r.targetEdge,alignmentEdge:c};s||l||(u=function(e,t,n,r,o,i,a){void 0===o&&(o=!1),void 0===a&&(a=0);var s=[Ts.left,Ts.right,Ts.bottom,Ts.top];Sn()&&(s[0]*=-1,s[1]*=-1);for(var l,c=e,d=r.targetEdge,u=r.alignmentEdge,p=d,m=u,h=0;h<4;h++){if(ml(c,n,d))return{elementRectangle:c,targetEdge:d,alignmentEdge:u};if(o&&fl(t,n,d,i)){switch(d){case Ts.bottom:c.bottom=n.bottom;break;case Ts.top:c.top=n.top}return{elementRectangle:c,targetEdge:d,alignmentEdge:u,forcedInBounds:!0}}var f=hl(c,n);(!l||f<l)&&(l=f,p=d,m=u),s.splice(s.indexOf(d),1),s.length>0&&(s.indexOf(-1*d)>-1?d*=-1:(u=d,d=s.slice(-1)[0]),c=bl(e,t,{targetEdge:d,alignmentEdge:u},a))}return{elementRectangle:c=bl(e,t,{targetEdge:p,alignmentEdge:m},a),targetEdge:p,alignmentEdge:m}}(e,t,n,r,o,i,a));var p=ol(u.elementRectangle,n),m=s?-u.targetEdge:void 0;if(p.length>0)if(d)if(u.alignmentEdge&&p.indexOf(-1*u.alignmentEdge)>-1){var h=function(e,t,n,r){var o=e.alignmentEdge,i=e.targetEdge,a=-1*o;return{elementRectangle:bl(e.elementRectangle,t,{targetEdge:i,alignmentEdge:a},n,r),targetEdge:i,alignmentEdge:a}}(u,t,a,l);if(rl(h.elementRectangle,n))return h;u=vl(ol(h.elementRectangle,n),u,n,m)}else u=vl(p,u,n,m);else u=vl(p,u,n,m);return u}function vl(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=ul(t.elementRectangle,a,il(n,a),!1),t.forcedInBounds=!0;else ml(s=pl(t.elementRectangle,n,a),n,-1*a)||(s=ul(s,-1*a,il(n,-1*a),!1),t.forcedInBounds=!0);t.elementRectangle=s}return t}function yl(e,t,n){var r=Cl(t).positiveEdge;return ul(e,r,n-(sl(e,t)-il(e,r)))}function bl(e,t,n,r,o){void 0===r&&(r=0);var i=new un(e.left,e.right,e.top,e.bottom),a=n.alignmentEdge,s=n.targetEdge,l=o?s:-1*s;(i=o?pl(i,t,s,r):function(e,t,n,r){void 0===r&&(r=0);var o=ll(-1*n,r);return ul(e,-1*n,il(t,n)+o)}(i,t,s,r),a)?i=pl(i,t,a):i=yl(i,l,sl(t,s));return i}function Cl(e){return e===Ts.top||e===Ts.bottom?{positiveEdge:Ts.left,negativeEdge:Ts.right}:{positiveEdge:Ts.top,negativeEdge:Ts.bottom}}function Sl(e,t,n){return n&&Math.abs(dl(e,n,t))>Math.abs(dl(e,n,-1*t))?-1*t:t}function xl(e,t,n,r,o,i,a,s){var l={},c=Dl(t),d=i?n:-1*n,u=o||Cl(n).positiveEdge;return a&&!function(e,t,n){return void 0!==n&&il(e,t)===il(n,t)}(e,Ll(u),r)||(u=Sl(e,u,r)),l[Ts[d]]=dl(e,c,d),l[Ts[u]]=dl(e,c,u),s&&(l[Ts[-1*d]]=dl(e,c,-1*d),l[Ts[-1*u]]=dl(e,c,-1*u)),l}function kl(e){return Math.sqrt(e*e*2)}function Pl(e,t,n){if(void 0===e&&(e=Ys),n)return{alignmentEdge:n.alignmentEdge,isAuto:n.isAuto,targetEdge:n.targetEdge};var r=v({},nl[e]);return Sn()?(r.alignmentEdge&&r.alignmentEdge%2===0&&(r.alignmentEdge=-1*r.alignmentEdge),void 0!==t?nl[t]:r):r}function Il(e,t,n){var r=sl(t,e),o=sl(n,e),i=Cl(e),a=i.positiveEdge,s=i.negativeEdge;return r<=o?a:s}function wl(e,t,n,r,o,i,a,s,l){void 0===i&&(i=!1);var c=bl(e,t,r,o,l);return rl(c,n)?{elementRectangle:c,targetEdge:r.targetEdge,alignmentEdge:r.alignmentEdge}:gl(c,t,n,r,i,a,o,s,l)}function El(e,t,n){var r=-1*e.targetEdge,o=new un(0,e.elementRectangle.width,0,e.elementRectangle.height),i={},a=Sl(e.elementRectangle,e.alignmentEdge?e.alignmentEdge:Cl(r).positiveEdge,n),s=dl(e.elementRectangle,e.targetRectangle,r)>Math.abs(il(t,r));return i[Ts[r]]=il(t,r),i[Ts[a]]=dl(t,o,a),{elementPosition:v({},i),closestEdge:Il(e.targetEdge,t,o),targetEdge:r,hideBeak:!s}}function _l(e,t){var n=t.targetRectangle,r=Cl(t.targetEdge),o=r.positiveEdge,i=r.negativeEdge,a=sl(n,t.targetEdge),s=new un(e/2,t.elementRectangle.width-e/2,e/2,t.elementRectangle.height-e/2),l=new un(0,e,0,e);return ml(l=yl(l=ul(l,-1*t.targetEdge,-e/2),-1*t.targetEdge,a-cl(o,t.elementRectangle)),s,o)?ml(l,s,i)||(l=pl(l,s,i)):l=pl(l,s,o),l}function Dl(e){var t=e.getBoundingClientRect();return new un(t.left,t.right,t.top,t.bottom)}function Tl(e){return new un(e.left,e.right,e.top,e.bottom)}function Rl(e,t,n,r,o){var i=0,a=nl[t],s=o?-1*a.targetEdge:a.targetEdge;return(i=s===Ts.top?il(e,a.targetEdge)-r.top-n:s===Ts.bottom?r.bottom-il(e,a.targetEdge)-n:r.bottom-e.top-n)>0?i:r.height}function Al(e,t,n,r,o,i){void 0===o&&(o=!1);var a=e.gapSpace?e.gapSpace:0,s=function(e,t){var n;if(t){if(t.preventDefault){var r=t;n=new un(r.clientX,r.clientX,r.clientY,r.clientY)}else if(t.getBoundingClientRect)n=Dl(t);else{var o=t,i=o.left||o.x,a=o.top||o.y,s=o.right||i,l=o.bottom||a;n=new un(i,s,a,l)}if(!rl(n,e))for(var c=0,d=ol(n,e);c<d.length;c++){var u=d[c];n[Ts[u]]=e[Ts[u]]}}else n=new un(0,0,0,0);return n}(n,e.target),l=function(e,t,n,r,o){return e.isAuto&&(e.alignmentEdge=Il(e.targetEdge,t,n)),e.alignTargetEdge=o,e}(Pl(e.directionalHint,e.directionalHintForRTL,r),s,n,e.coverTarget,e.alignTargetEdge),c=wl(Dl(t),s,n,l,a,o,i,e.directionalHintFixed,e.coverTarget);return v(v({},c),{targetRectangle:s})}function Ml(e,t,n,r,o){return{elementPosition:xl(e.elementRectangle,t,e.targetEdge,n,e.alignmentEdge,r,o,e.forcedInBounds),targetEdge:e.targetEdge,alignmentEdge:e.alignmentEdge}}function Nl(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),kl(e?t:0)/2+n}function Fl(e,t,n,r,o,i,a,s){void 0===o&&(o=!1);var l=null!==s&&void 0!==s?s:Ve(),c=e.isBeakVisible&&e.beakWidth||0,d=Nl(e.isBeakVisible,e.beakWidth,e.gapSpace),u=e;u.gapSpace=d;var p=e.bounds?Tl(e.bounds):new un(0,l.innerWidth-kt(),0,l.innerHeight),m=Al(u,n,p,r,o,i),h=El(m,_l(c,m),p);return v(v({},Ml(m,t,p,e.coverTarget,a)),{beakPosition:h})}function Hl(e){var t,n,r,o,i=e,a=e,s=e,l=null!==(t=s.left)&&void 0!==t?t:s.x,c=null!==(n=s.top)&&void 0!==n?n:s.y,d=null!==(r=s.right)&&void 0!==r?r:l,u=null!==(o=s.bottom)&&void 0!==o?o:c;return i.stopPropagation?new un(i.clientX,i.clientX,i.clientY,i.clientY):void 0!==l&&void 0!==c?new un(l,d,c,u):Dl(a)}function Ol(e,t,n,r,o){return function(e,t,n,r,o){var i=null!==o&&void 0!==o?o:Ve(),a=e.bounds?Tl(e.bounds):new un(0,i.innerWidth-kt(),0,i.innerHeight);return Ml(Al(e,n,a,r),t,a,e.coverTarget)}(e,t,n,r,o)}function Bl(e,t,n,r,o){return function(e,t,n,r,o){return Fl(e,t,n,r,!1,void 0,!0,null!==o&&void 0!==o?o:Ve())}(e,t,n,r,o)}function Ll(e){return-1*e}function Vl(){var e=u.useRef();return e.current||(e.current=new ze),u.useEffect((function(){return function(){var t;null===(t=e.current)||void 0===t||t.dispose(),e.current=void 0}}),[]),e.current}function zl(e){var t=u.useRef();return void 0===t.current&&(t.current={value:"function"===typeof e?e():e}),t.current.value}function Wl(e){var t=u.useState(e),n=t[0],r=t[1];return[n,{setTrue:zl((function(){return function(){r(!0)}})),setFalse:zl((function(){return function(){r(!1)}})),toggle:zl((function(){return function(){r((function(e){return!e}))}}))}]}function Ul(e,t,n){var r=u.useState(t),o=r[0],i=r[1],a=zl(void 0!==e),s=a?e:o,l=u.useRef(s),c=u.useRef(n);u.useEffect((function(){l.current=s,c.current=n}));var d=zl((function(){return function(e,t){var n="function"===typeof e?e(l.current):e;c.current&&c.current(t,n),a||i(n)}}));return[s,d]}function Kl(e){var t=u.useRef((function(){throw new Error("Cannot call an event handler while rendering")}));return ni((function(){t.current=e}),[e]),zl((function(){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=t.current;return r.apply(void 0,e)}}))}function jl(e,t){var n=u.useRef(t);return n.current||(n.current=Cr(e)),n.current}function Gl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=u.useCallback((function(t){n.current=t;for(var r=0,o=e;r<o.length;r++){var i=o[r];"function"===typeof i?i(t):i&&(i.current=t)}}),C([],e,!0));return n}L("@fluentui/react-hooks","8.8.16");function ql(e,t,n,r){var o=u.useRef(n);o.current=n,u.useEffect((function(){var n=e&&"current"in e?e.current:e;if(n&&n.addEventListener)return ut(n,t,(function(e){return o.current(e)}),r)}),[e,t,r])}function Yl(e){var t=o.useRef();return o.useEffect((function(){t.current=e})),t.current}function Zl(e,t){void 0===t&&(t=null);var n=u.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 Jl=function(){var e=zl({});return u.useEffect((function(){return function(){for(var t=0,n=Object.keys(e);t<n.length;t++){var r=n[t];clearTimeout(r)}}}),[e]),zl({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)}))})};function Ql(e,t){var n,r,o,i=u.useRef(),a=u.useRef(null),s=ur();if(!e||e!==i.current||"string"===typeof e){var l=null===t||void 0===t?void 0:t.current;if(e)if("string"===typeof e)if(null===(n=null===l||void 0===l?void 0:l.getRootNode())||void 0===n?void 0:n.host)a.current=null!==(o=null===(r=null===l||void 0===l?void 0:l.getRootNode())||void 0===r?void 0:r.querySelector(e))&&void 0!==o?o:null;else{var c=Je(l);a.current=c?c.querySelector(e):null}else a.current="stopPropagation"in e||"getBoundingClientRect"in e?e:"current"in e?e.current:e;i.current=e}return[a,s]}var Xl=function(e){var t=u.useRef(e);t.current=e,u.useEffect((function(){return function(){var e;null===(e=t.current)||void 0===e||e.call(t)}}),[])},$l=0;function ec(e){var t=e.name,n=e.props,r=e.other,o=void 0===r?[]:r,i=e.conditionallyRequired,a=e.deprecations,s=e.mutuallyExclusive,l=e.controlledUsage,c=u.useRef(!1),d=zl((function(){return"useWarnings_".concat($l++)})),p=Yl(n);if(!c.current){c.current=!0;for(var m=0,h=o;m<h.length;m++){_t(h[m])}if(i)for(var f=0,g=i;f<g.length;f++){var y=g[f];Dt(t,n,y.requiredProps,y.conditionalPropName,y.condition)}a&&Rt(t,n,a),s&&Tt(t,n,s)}l&&Qo(v(v({},l),{componentId:d,props:n,componentName:t,oldProps:p}))}function tc(e){var t=e.originalElement,n=e.containsFocus;t&&n&&t!==Ve()&&setTimeout((function(){var e;null===(e=t.focus)||void 0===e||e.call(t)}),0)}function nc(e,t){var n=e.onRestoreFocus,r=void 0===n?tc:n,o=u.useRef(),i=u.useRef(!1);u.useEffect((function(){return o.current=Je().activeElement,function(e){var t=Je(e),n=t&&t.activeElement;return!(!n||!Ke(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=Je())||void 0===e?void 0:e.hasFocus())||!1}),o.current=void 0}}),[]),ql(t,"focus",u.useCallback((function(){i.current=!0}),[]),!0),ql(t,"blur",u.useCallback((function(e){t.current&&e.relatedTarget&&!t.current.contains(e.relatedTarget)&&(i.current=!1)}),[]),!0)}var rc=u.forwardRef((function(e,t){var n=$o({shouldRestoreFocus:!0,enableAriaHiddenSiblings:!0},e),r=u.useRef(),o=Gl(r,t);!function(e,t){var n="true"===String(e["aria-modal"]).toLowerCase()&&e.enableAriaHiddenSiblings;u.useEffect((function(){if(n&&t.current)return Ho(t.current)}),[t,n])}(n,r),nc(n,r);var i=n.role,a=n.className,s=n.ariaLabel,l=n.ariaLabelledBy,c=n.ariaDescribedBy,d=n.style,p=n.children,m=n.onDismiss,h=function(e,t){var n=Vl(),r=u.useState(!1),o=r[0],i=r[1];return u.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}(n,r),f=u.useCallback((function(e){if(e.which===Gt)m&&(m(e),e.preventDefault(),e.stopPropagation())}),[m]);return ql(ur(),"keydown",f),u.createElement("div",v({ref:o},qr(n,Gr),{className:a,role:i,"aria-label":s,"aria-labelledby":l,"aria-describedby":c,onKeyDown:f,style:v({overflowY:h?"scroll":void 0,outline:"none"},d)}),p)}));rc.displayName="Popup";var oc,ic=function(){var e;return null!==(e=pr())&&void 0!==e?e:"undefined"!==typeof document?document:void 0},ac=function(){var e;return null!==(e=ur())&&void 0!==e?e:"undefined"!==typeof window?window:void 0},sc=function(e){var t,n;return null!==(n=null===(t=null===e||void 0===e?void 0:e.window)||void 0===t?void 0:t.document)&&void 0!==n?n:"undefined"!==typeof document?document:void 0},lc=function(e){var t;return null!==(t=null===e||void 0===e?void 0:e.window)&&void 0!==t?t:"undefined"!==typeof window?window:void 0},cc=((oc={})[Ts.top]=ws.slideUpIn10,oc[Ts.bottom]=ws.slideDownIn10,oc[Ts.left]=ws.slideLeftIn10,oc[Ts.right]=ws.slideRightIn10,oc),dc=0,uc=0,pc={opacity:0,filter:"opacity(0)",pointerEvents:"none"},mc=["role","aria-roledescription"],hc={preventDismissOnLostFocus:!1,preventDismissOnScroll:!1,preventDismissOnResize:!1,isBeakVisible:!0,beakWidth:16,gapSpace:0,minPagePadding:8,directionalHint:Ys},fc=wn({disableCaching:!0});function gc(e,t,n,r){var o,i=e.calloutMaxHeight,a=e.finalHeight,s=e.directionalHint,l=e.directionalHintFixed,c=e.hidden,d=e.gapSpace,p=e.beakWidth,m=e.isBeakVisible,h=e.coverTarget,f=u.useState(),g=f[0],v=f[1],y=null!==(o=null===r||void 0===r?void 0:r.elementPosition)&&void 0!==o?o:{},b=y.top,C=y.bottom,S=(null===n||void 0===n?void 0:n.current)?Hl(n.current):void 0;return u.useEffect((function(){var e,n,o=null!==(e=t())&&void 0!==e?e:{},a=o.top,s=o.bottom;(null===r||void 0===r?void 0:r.targetEdge)===Ts.top&&(null===S||void 0===S?void 0:S.top)&&!h&&(s=S.top-function(e,t,n){return Nl(e,t,n)}(m,p,d)),"number"===typeof b&&s?n=s-b:"number"===typeof C&&"number"===typeof a&&s&&(n=s-a-C),v(!i&&!c||i&&n&&i>n?n:i||void 0)}),[C,i,a,s,l,t,c,r,b,d,p,m,S,h]),g}function vc(e,t,n,r,o,i){var a,s=u.useState(),l=s[0],c=s[1],d=u.useRef(0),p=u.useRef(),m=Vl(),h=e.hidden,f=e.target,g=e.finalHeight,y=e.calloutMaxHeight,b=e.onPositioned,C=e.directionalHint,S=e.hideOverflow,x=e.preferScrollResizePositioning,k=ac(),P=u.useRef();P.current!==i.current&&(P.current=i.current,a=i.current?null===k||void 0===k?void 0:k.getComputedStyle(i.current):void 0);var I=null===a||void 0===a?void 0:a.overflowY;return u.useEffect((function(){if(!h){var i=m.requestAnimationFrame((function(){var i,a,s,u;if(t.current&&n){var m=v(v({},e),{target:r.current,bounds:o()}),h=n.cloneNode(!0);h.style.maxHeight=y?"".concat(y):"",h.style.visibility="hidden",null===(i=n.parentElement)||void 0===i||i.appendChild(h);var C=p.current===f?l:void 0,P=x&&!(S||"clip"===I||"hidden"===I),w=g?Bl(m,t.current,h,C,k):function(e,t,n,r,o,i,a){return Fl(e,t,n,r,o,i,void 0,a)}(m,t.current,h,C,P,void 0,k);null===(a=n.parentElement)||void 0===a||a.removeChild(h),!l&&w||l&&w&&(u=w,!Cc((s=l).elementPosition,u.elementPosition)||!Cc(s.beakPosition.elementPosition,u.beakPosition.elementPosition))&&d.current<5?(d.current++,c(w)):d.current>0&&(d.current=0,null===b||void 0===b||b(l))}}),n);return p.current=f,function(){m.cancelAnimationFrame(i),p.current=void 0}}c(void 0),d.current=0}),[h,C,m,n,y,t,r,g,o,b,l,e,f,S,x,I,k]),l}var yc=u.memo(u.forwardRef((function(e,t){var n=$o(hc,e),r=n.styles,o=n.style,i=n.ariaLabel,a=n.ariaDescribedBy,s=n.ariaLabelledBy,l=n.className,c=n.isBeakVisible,d=n.children,p=n.beakWidth,m=n.calloutWidth,h=n.calloutMaxWidth,f=n.calloutMinWidth,g=n.doNotLayer,y=n.finalHeight,b=n.hideOverflow,C=void 0===b?!!y:b,S=n.backgroundColor,x=n.calloutMaxHeight,k=n.onScroll,P=n.shouldRestoreFocus,I=void 0===P||P,w=n.target,E=n.hidden,_=n.onLayerMounted,D=n.popupProps,T=u.useRef(null),R=Gl(u.useRef(null),null===D||void 0===D?void 0:D.ref),A=u.useState(null),M=A[0],N=A[1],F=u.useCallback((function(e){N(e)}),[]),H=Gl(T,t),O=Ql(n.target,{current:M}),B=O[0],L=O[1],V=function(e,t,n){var r=e.bounds,o=e.minPagePadding,i=void 0===o?hc.minPagePadding:o,a=e.target,s=u.useState(!1),l=s[0],c=s[1],d=u.useRef(),p=u.useCallback((function(){if(!d.current||l){var e="function"===typeof r?n?r(a,n):void 0:r;!e&&n&&(e=function(e,t){return function(e,t){var n=void 0;if(t.getWindowSegments&&(n=t.getWindowSegments()),void 0===n||n.length<=1)return{top:0,left:0,right:t.innerWidth,bottom:t.innerHeight,width:t.innerWidth,height:t.innerHeight};var r=0,o=0;if(null!==e&&e.getBoundingClientRect){var i=e.getBoundingClientRect();r=(i.left+i.right)/2,o=(i.top+i.bottom)/2}else null!==e&&(r=e.left||e.x,o=e.top||e.y);for(var a={top:0,left:0,right:0,bottom:0,width:0,height:0},s=0,l=n;s<l.length;s++){var c=l[s];r&&c.left<=r&&c.right>=r&&o&&c.top<=o&&c.bottom>=o&&(a={top:c.top,left:c.left,right:c.right,bottom:c.bottom,width:c.width,height:c.height})}return a}(e,t)}(t.current,n),e={top:e.top+i,left:e.left+i,right:e.right-i,bottom:e.bottom-i,width:e.width-2*i,height:e.height-2*i}),d.current=e,l&&c(!1)}return d.current}),[r,i,a,t,n,l]),m=Vl();return ql(n,"resize",m.debounce((function(){c(!0)}),500,{leading:!0})),p}(n,B,L),z=vc(n,T,M,B,V,R),W=gc(n,V,B,z),U=function(e,t,n,r,o){var i=e.hidden,a=e.onDismiss,s=e.preventDismissOnScroll,l=e.preventDismissOnResize,c=e.preventDismissOnLostFocus,d=e.dismissOnTargetClick,p=e.shouldDismissOnWindowFocus,m=e.preventDismissOnEvent,h=u.useRef(!1),f=Vl(),g=zl([function(){h.current=!0},function(){h.current=!1}]),v=!!t;return u.useEffect((function(){var e=function(e){v&&!s&&g(e)},t=function(e){l||m&&m(e)||null===a||void 0===a||a(e)},u=function(e){c||g(e)},g=function(e){var t=e.composedPath?e.composedPath():[],i=t.length>0?t[0]:e.target,s=n.current&&!Ke(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||d||i!==r.current&&!Ke(r.current,i))){if(m&&m(e))return;null===a||void 0===a||a(e)}},y=function(e){p&&((!m||m(e))&&(m||c)||(null===o||void 0===o?void 0:o.document.hasFocus())||null!==e.relatedTarget||null===a||void 0===a||a(e))},b=new Promise((function(n){f.setTimeout((function(){if(!i&&o){var r=[ut(o,"scroll",e,!0),ut(o,"resize",t,!0),ut(o.document.documentElement,"focus",u,!0),ut(o.document.documentElement,"click",u,!0),ut(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,p,d,c,l,s,v,m]),g}(n,z,T,B,L),K=U[0],j=U[1],G=(null===z||void 0===z?void 0:z.elementPosition.top)&&(null===z||void 0===z?void 0:z.elementPosition.bottom),q=v(v({},null===z||void 0===z?void 0:z.elementPosition),{maxHeight:W});if(G&&(q.bottom=void 0),function(e,t,n){var r=e.hidden,o=e.setInitialFocus,i=Vl(),a=!!t;u.useEffect((function(){if(!r&&o&&a&&n){var e=i.requestAnimationFrame((function(){return $e(n)}),n);return function(){return i.cancelAnimationFrame(e)}}}),[r,a,i,n,o])}(n,z,M),u.useEffect((function(){E||null===_||void 0===_||_()}),[E]),!L)return null;var Y=C,Z=c&&!!w,J=fc(r,{theme:n.theme,className:l,overflowYHidden:Y,calloutWidth:m,positions:z,beakWidth:p,backgroundColor:S,calloutMaxWidth:h,calloutMinWidth:f,doNotLayer:g}),Q=v(v({maxHeight:x||"100%"},o),Y&&{overflowY:"hidden"}),X=n.hidden?{visibility:"hidden"}:void 0;return u.createElement("div",{ref:H,className:J.container,style:X},u.createElement("div",v({},qr(n,Gr,mc),{className:Wn(J.root,z&&z.targetEdge&&cc[z.targetEdge]),style:z?v({},q):pc,tabIndex:-1,ref:F}),Z&&u.createElement("div",{className:J.beak,style:bc(z)}),Z&&u.createElement("div",{className:J.beakCurtain}),u.createElement(rc,v({role:n.role,"aria-roledescription":n["aria-roledescription"],ariaDescribedBy:a,ariaLabel:i,ariaLabelledBy:s,className:J.calloutMain,onDismiss:n.onDismiss,onMouseDown:K,onMouseUp:j,onRestoreFocus:n.onRestoreFocus,onScroll:k,shouldRestoreFocus:I,style:Q},D,{ref:R}),d)))})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||pt(e,t)}));function bc(e){var t,n,r=v(v({},null===(t=null===e||void 0===e?void 0:e.beakPosition)||void 0===t?void 0:t.elementPosition),{display:(null===(n=null===e||void 0===e?void 0:e.beakPosition)||void 0===n?void 0:n.hideBeak)?"none":void 0});return r.top||r.bottom||r.left||r.right||(r.left=uc,r.top=dc),r}function Cc(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 Sc(e){return{height:e,width:e}}yc.displayName="CalloutContentBase";var xc={container:"ms-Callout-container",root:"ms-Callout",beak:"ms-Callout-beak",beakCurtain:"ms-Callout-beakCurtain",calloutMain:"ms-Callout-main"},kc=Jo(yc,(function(e){var t,n=e.theme,r=e.className,o=e.overflowYHidden,i=e.calloutWidth,a=e.beakWidth,s=e.backgroundColor,l=e.calloutMaxWidth,c=e.calloutMinWidth,d=e.doNotLayer,u=os(xc,n),p=n.semanticColors,m=n.effects;return{container:[u.container,{position:"relative"}],root:[u.root,n.fonts.medium,{position:"absolute",display:"flex",zIndex:d?za.Layer:void 0,boxSizing:"border-box",borderRadius:m.roundedCorner2,boxShadow:m.elevation16,selectors:(t={},t[Wa]={borderWidth:1,borderStyle:"solid",borderColor:"WindowText"},t)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},r,!!i&&{width:i},!!l&&{maxWidth:l},!!c&&{minWidth:c}],beak:[u.beak,{position:"absolute",backgroundColor:p.menuBackground,boxShadow:"inherit",border:"inherit",boxSizing:"border-box",transform:"rotate(45deg)"},Sc(a),s&&{backgroundColor:s}],beakCurtain:[u.beakCurtain,{position:"absolute",top:0,right:0,bottom:0,left:0,backgroundColor:p.menuBackground,borderRadius:m.roundedCorner2}],calloutMain:[u.calloutMain,{backgroundColor:p.menuBackground,overflowX:"hidden",overflowY:"auto",position:"relative",width:"100%",borderRadius:m.roundedCorner2},o&&{overflowY:"hidden"},s&&{backgroundColor:s}]}}),void 0,{scope:"CalloutContent"}),Pc=u.createContext(void 0),Ic=function(){return function(){}};Pc.Provider;var wc=wn(),Ec=Fn((function(e,t){return Va(v(v({},e),{rtl:t}))})),_c=u.forwardRef((function(e,t){var n=e.className,r=e.theme,o=e.applyTheme,i=e.applyThemeToBody,a=e.styles,s=wc(a,{theme:r,applyTheme:o,className:n}),l=u.useRef(null);return function(e,t,n){var r=t.bodyThemed;u.useEffect((function(){if(e){var t=Je(n.current);if(t)return t.body.classList.add(r),function(){t.body.classList.remove(r)}}}),[r,e,n])}(i,s,l),u.createElement(u.Fragment,null,function(e,t,n,r){var o=t.root,i=e.as,a=void 0===i?"div":i,s=e.dir,l=e.theme,c=qr(e,Gr,["dir"]),d=function(e){var t=e.theme,n=e.dir,r=Sn(t)?"rtl":"ltr",o=Sn()?"rtl":"ltr",i=n||r;return{rootDir:i!==r||i!==o?i:n,needsTheme:i!==r}}(e),p=d.rootDir,m=d.needsTheme,h=u.createElement(xo,{providerRef:n},u.createElement(a,v({dir:p},c,{className:o,ref:Gl(n,r)})));m&&(h=u.createElement(Qn,{settings:{theme:Ec(l,"rtl"===s)}},h));return h}(e,s,l,t))}));_c.displayName="FabricBase";var Dc={fontFamily:"inherit"},Tc={root:"ms-Fabric",bodyThemed:"ms-Fabric-bodyThemed"},Rc=Jo(_c,(function(e){var t=e.applyTheme,n=e.className,r=e.preventBlanketFontInheritance,o=e.theme;return{root:[os(Tc,o).root,o.fonts.medium,{color:o.palette.neutralPrimary},!r&&{"& button":Dc,"& input":Dc,"& textarea":Dc},t&&{color:o.semanticColors.bodyText,backgroundColor:o.semanticColors.bodyBackground},n],bodyThemed:[{backgroundColor:o.semanticColors.bodyBackground}]}}),void 0,{scope:"Fabric"}),Ac={},Mc={},Nc="fluent-default-layer-host",Fc="#".concat(Nc);var Hc,Oc=wn(),Bc=u.forwardRef((function(e,t){var n=function(){var e;return null!==(e=u.useContext(Pc))&&void 0!==e?e:Ic}(),r=u.useRef(null),o=Gl(r,t),i=u.useRef(),a=u.useRef(null),s=u.useContext(ho),l=u.useState(!1),c=l[0],d=l[1],m=u.useCallback((function(e){var t,n=!!(null===(t=null===s||void 0===s?void 0:s.providerRef)||void 0===t?void 0:t.current)&&t.current.classList.contains(io);e&&n&&e.classList.add(io)}),[s]),h=e.children,f=e.className,g=e.eventBubblingEnabled,y=e.fabricProps,b=e.hostId,C=e.insertFirst,S=e.onLayerDidMount,x=void 0===S?function(){}:S,k=e.onLayerMounted,P=void 0===k?function(){}:k,I=e.onLayerWillUnmount,w=e.styles,E=e.theme,_=Gl(a,null===y||void 0===y?void 0:y.ref,m),D=Oc(w,{theme:E,className:f,isNotHost:!b}),T=function(e,t){var n,r;void 0===t&&(t=null);var o=null!==t&&void 0!==t?t:e;if(b){var i=function(e){var t=Mc[e];return t&&t[0]||void 0}(b);return i?null!==(n=i.rootRef.current)&&void 0!==n?n:null:null!==(r=o.getElementById(b))&&void 0!==r?r:null}var a=Fc,s=a?o.querySelector(a):null;return s||(s=function(e,t){void 0===t&&(t=null);var n=e.createElement("div");return n.setAttribute("id",Nc),n.style.cssText="position:fixed;z-index:1000000",t?t.appendChild(n):null===e||void 0===e||e.body.appendChild(n),n}(e,t)),s},R=function(){null===I||void 0===I||I();var e=i.current;i.current=void 0,e&&e.parentNode&&e.parentNode.removeChild(e)},A=function(){var e,t,n,o,a=Je(r.current),s=(null===(t=null===(e=r.current)||void 0===e?void 0:e.getRootNode())||void 0===t?void 0:t.host)?null===(n=null===r||void 0===r?void 0:r.current)||void 0===n?void 0:n.getRootNode():void 0;if(a&&(a||s)){var l=T(a,s);if(l){l.__tabsterElementFlags||(l.__tabsterElementFlags={}),l.__tabsterElementFlags.noDirectAriaHidden=!0,R();var c=(null!==(o=l.ownerDocument)&&void 0!==o?o:a).createElement("div");c.className=D.root,c.setAttribute(Ye,"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))}(c,r.current),C?l.insertBefore(c,l.firstChild):l.appendChild(c),i.current=c,d(!0)}}};return ni((function(){A(),b&&function(e,t){Ac[e]||(Ac[e]=[]),Ac[e].push(t);var n=Mc[e];if(n)for(var r=0,o=n;r<o.length;r++)o[r].notifyLayersChanged()}(b,A);var e=i.current?n(i.current):void 0;return function(){e&&e(),R(),b&&function(e,t){var n=Ac[e];if(n){var r=n.indexOf(t);r>=0&&(n.splice(r,1),0===n.length&&delete Ac[e])}var o=Mc[e];if(o)for(var i=0,a=o;i<a.length;i++)a[i].notifyLayersChanged()}(b,A)}}),[b]),u.useEffect((function(){i.current&&c&&(null===P||void 0===P||P(),null===x||void 0===x||x(),d(!1))}),[c,P,x]),function(e){ec({name:"Layer",props:e,deprecations:{onLayerMounted:"onLayerDidMount"}})}(e),u.createElement("span",{className:"ms-layer",ref:o},i.current&&p.createPortal(u.createElement(xo,{layerRoot:!0,providerRef:_},u.createElement(Rc,v({},!g&&function(){Hc||(Hc={},["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 Hc[e]=Lc})));return Hc}(),y,{className:Wn(D.content,null===y||void 0===y?void 0:y.className),ref:_}),h)),i.current))}));Bc.displayName="LayerBase";var Lc=function(e){e.eventPhase===Event.BUBBLING_PHASE&&"mouseenter"!==e.type&&"mouseleave"!==e.type&&"touchstart"!==e.type&&"touchend"!==e.type&&e.stopPropagation()};var Vc={root:"ms-Layer",rootNoHost:"ms-Layer--fixed",content:"ms-Layer-content"},zc=Jo(Bc,(function(e){var t=e.className,n=e.isNotHost,r=e.theme,o=os(Vc,r);return{root:[o.root,r.fonts.medium,n&&[o.rootNoHost,{position:"fixed",zIndex:za.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"]}),Wc=u.forwardRef((function(e,t){var n=e.layerProps,r=e.doNotLayer,o=y(e,["layerProps","doNotLayer"]),i=u.createElement(kc,v({},o,{doNotLayer:r,ref:t}));return r?i:u.createElement(zc,v({},n),i)}));Wc.displayName="Callout";var Uc={disabled:!1,disableFirstFocus:!1,forceFocusInsideTrap:!0,isClickableOutsideFocusTrap:!1,"data-tabster":'{"uncontrolled": {"completely": true}}'},Kc=u.forwardRef((function(e,t){var n,r=u.useRef(null),o=u.useRef(null),i=u.useRef(null),a=Gl(r,t),s=pr(),l=ac(),c=sr(),d=null===(n=Yl(!1))||void 0===n||n,p=$o(Uc,e),m=zl({hasFocus:!1,focusStackId:jl("ftz-",p.id)}),h=p.children,f=p.componentRef,g=p.disabled,y=p.disableFirstFocus,b=p.forceFocusInsideTrap,C=p.focusPreviouslyFocusedInnerElement,S=p.firstFocusableSelector,x=p.firstFocusableTarget,k=p.disableRestoreFocus,P=void 0===k?p.ignoreExternalFocusing:k,I=p.isClickableOutsideFocusTrap,w=p.enableAriaHiddenSiblings,E={"aria-hidden":!0,style:{pointerEvents:"none",position:"fixed"},tabIndex:g?-1:0,"data-is-visible":!0,"data-is-focus-trap-zone-bumper":!0},_=u.useCallback((function(e){e!==o.current&&e!==i.current&&ct(e)}),[]),D=Kl((function(){if(r.current){var e=m.previouslyFocusedElementInTrapZone;if(C&&e&&Ke(r.current,e))_(e);else{var t=null;if("string"===typeof x)t=r.current.querySelector(x);else if(x)t=x(r.current);else if(S){var n="string"===typeof S?S:S();t=r.current.querySelector("."+n)}t||(t=tt(r.current,r.current.firstChild,!1,!1,!1,!0,void 0,void 0,void 0,c)),t&&_(t)}}})),T=function(e){if(!g&&r.current){var t,n,a,s=e===m.hasFocus?(t=r.current,n=i.current,void 0===(a=!1)&&(a=!0),et(t,n,a,!1,!0,!0,!1,!0,c)):function(e,t,n,r,o){return void 0===r&&(r=!0),tt(e,t,r,!1,!1,n,!1,!0,void 0,o)}(r.current,o.current,!0,!1,c);s&&(s===o.current||s===i.current?D():s.focus())}},R=Kl((function(e){if(Kc.focusStack=Kc.focusStack.filter((function(e){return m.focusStackId!==e})),s){var t=s.activeElement;P||"function"!==typeof(null===e||void 0===e?void 0:e.focus)||!Ke(r.current,t)&&t!==s.body&&!t.shadowRoot||_(e)}})),A=Kl((function(e){if(!g&&m.focusStackId===Kc.focusStack.slice(-1)[0]){var t=qe(e);t&&!Ke(r.current,t)&&(s&&Ge(s)===s.body?setTimeout((function(){s&&Ge(s)===s.body&&(D(),m.hasFocus=!0)}),0):(D(),m.hasFocus=!0),e.preventDefault(),e.stopPropagation())}}));return u.useEffect((function(){var e=[];return b&&e.push(ut(l,"focus",A,!0)),I||e.push(ut(l,"click",A,!0)),function(){e.forEach((function(e){return e()}))}}),[b,I,l]),u.useEffect((function(){if(!g&&(d||b)&&r.current){Kc.focusStack.push(m.focusStackId);var e=p.elementToFocusOnDismiss||Ge(s);return y||Ke(r.current,e)||D(),function(){return R(e)}}}),[b,g]),u.useEffect((function(){if(!g&&w)return Ho(r.current)}),[g,w,r]),Xl((function(){delete m.previouslyFocusedElementInTrapZone})),function(e,t,n){u.useImperativeHandle(e,(function(){return{get previouslyFocusedElement(){return t},focus:n}}),[n,t])}(f,m.previouslyFocusedElementInTrapZone,D),u.createElement("div",v({"aria-labelledby":p.ariaLabelledBy},qr(p,Gr),{ref:a,onFocusCapture:function(e){var t;null===(t=p.onFocusCapture)||void 0===t||t.call(p,e),e.target===o.current?T(!0):e.target===i.current&&T(!1),m.hasFocus=!0,e.target!==e.currentTarget&&e.target!==o.current&&e.target!==i.current&&(m.previouslyFocusedElementInTrapZone=qe(e.nativeEvent))},onBlurCapture:function(e){var t;null===(t=p.onBlurCapture)||void 0===t||t.call(p,e);var n=e.relatedTarget;null===e.relatedTarget&&(n=Ge(s)),Ke(r.current,n)||(m.hasFocus=!1)}}),u.createElement("div",v({},E,{ref:o})),h,u.createElement("div",v({},E,{ref:i})))}));Kc.displayName="FocusTrapZone",Kc.focusStack=[];var jc,Gc,qc=function(e){return u.createElement(Wc,v({},e),u.createElement(Kc,v({disabled:e.hidden},e.focusTrapProps),e.children))},Yc=wn(),Zc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._onRenderContent=function(e){return"string"===typeof e.content?u.createElement("p",{className:t._classNames.subText},e.content):u.createElement("div",{className:t._classNames.subText},e.content)},t}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.calloutProps,r=e.directionalHint,o=e.directionalHintForRTL,i=e.styles,a=e.id,s=e.maxWidth,l=e.onRenderContent,c=void 0===l?this._onRenderContent:l,d=e.targetElement,p=e.theme;return this._classNames=Yc(i,{theme:p,className:t||n&&n.className,beakWidth:n&&n.isBeakVisible?n.beakWidth:0,gapSpace:n&&n.gapSpace,maxWidth:s}),u.createElement(Wc,v({target:d,directionalHint:r,directionalHintForRTL:o},n,qr(this.props,Gr,["id"]),{className:this._classNames.root}),u.createElement("div",{className:this._classNames.content,id:a,onFocus:this.props.onFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave},c(this.props,this._onRenderContent)))},t.defaultProps={directionalHint:Ws,maxWidth:"364px",calloutProps:{isBeakVisible:!0,beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1}},t}(u.Component),Jc=Jo(Zc,(function(e){var t=e.className,n=e.beakWidth,r=void 0===n?16:n,o=e.gapSpace,i=void 0===o?0:o,a=e.maxWidth,s=e.theme,l=s.semanticColors,c=s.fonts,d=s.effects,u=-(Math.sqrt(r*r/2)+i)+1/window.devicePixelRatio;return{root:["ms-Tooltip",s.fonts.medium,ws.fadeIn200,{background:l.menuBackground,boxShadow:d.elevation8,padding:"8px",maxWidth:a,selectors:{":after":{content:"''",position:"absolute",bottom:u,left:u,right:u,top:u,zIndex:0}}},t],content:["ms-Tooltip-content",c.small,{position:"relative",zIndex:1,color:l.menuItemText,wordWrap:"break-word",overflowWrap:"break-word",overflow:"hidden"}],subText:["ms-Tooltip-subtext",{fontSize:"inherit",fontWeight:"inherit",color:"inherit",margin:0}]}}),void 0,{scope:"Tooltip"});!function(e){e[e.zero=0]="zero",e[e.medium=1]="medium",e[e.long=2]="long"}(jc||(jc={})),function(e){e[e.Parent=0]="Parent",e[e.Self=1]="Self"}(Gc||(Gc={}));var Qc,Xc,$c,ed,td=wn(),nd=function(e){function t(n){var r=e.call(this,n)||this;return r._tooltipHost=u.createRef(),r._defaultTooltipId=Cr("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 Gc.Parent:return r._tooltipHost.current.parentElement;case Gc.Self:return r._tooltipHost.current}return r._tooltipHost.current}},r._onTooltipFocus=function(e){r._ignoreNextFocusEvent?r._ignoreNextFocusEvent=!1:r._onTooltipMouseEnter(e)},r._onTooltipContentFocus=function(e){t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,r._clearDismissTimer(),r._clearOpenTimer()},r._onTooltipBlur=function(e){var t;r._ignoreNextFocusEvent=(null===(t=sc(r.context))||void 0===t?void 0:t.activeElement)===e.target,r._dismissTimerId=r._async.setTimeout((function(){r._hideTooltip()}),0)},r._onTooltipMouseEnter=function(e){var n,o=r.props,i=o.overflowMode,a=o.delay,s=sc(r.context);if(t._currentVisibleTooltip&&t._currentVisibleTooltip!==r&&t._currentVisibleTooltip.dismiss(),t._currentVisibleTooltip=r,void 0!==i){var l=r._getTargetElement();if(l&&(!function(e){return e.clientWidth<e.scrollWidth}(n=l)&&!function(e){return e.clientHeight<e.scrollHeight}(n)))return}if(!e.target||!Ze(e.target,r._getTargetElement(),s))if(r._clearDismissTimer(),r._clearOpenTimer(),a!==jc.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 n=r.props.closeDelay;r._clearDismissTimer(),r._clearOpenTimer(),n?r._dismissTimerId=r._async.setTimeout((function(){r._toggleTooltip(!1)}),n):r._toggleTooltip(!1),t._currentVisibleTooltip===r&&(t._currentVisibleTooltip=void 0)},r._onTooltipKeyDown=function(e){(e.which===Gt||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 jc.medium:return 300;case jc.long:return 500;default:return 0}},Xr(r),r.state={isAriaPlaceholderRendered:!1,isTooltipVisible:!1},r}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.calloutProps,n=e.children,r=e.content,o=e.directionalHint,i=e.directionalHintForRTL,a=e.hostClassName,s=e.id,l=e.setAriaDescribedBy,c=void 0===l||l,d=e.tooltipProps,p=e.styles,m=e.theme;this._classNames=td(p,{theme:m,className:a});var h=this.state.isTooltipVisible,f=s||this._defaultTooltipId,g=v(v({id:"".concat(f,"--tooltip"),content:r,targetElement:this._getTargetElement(),directionalHint:o,directionalHintForRTL:i,calloutProps:mt({},t,{onDismiss:this._hideTooltip,onFocus:this._onTooltipContentFocus,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave}),onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave},qr(this.props,Gr,["id"])),d),y=(null===d||void 0===d?void 0:d.onRenderContent)?d.onRenderContent(g,(function(e){return(null===e||void 0===e?void 0:e.content)?u.createElement(u.Fragment,null,e.content):null})):r,b=h&&!!y,C=c&&h&&y?f:void 0;return u.createElement("div",{className:this._classNames.root,ref:this._tooltipHost,onFocusCapture:this._onTooltipFocus,onBlurCapture:this._onTooltipBlur,onMouseEnter:this._onTooltipMouseEnter,onMouseLeave:this._onTooltipMouseLeave,onKeyDown:this._onTooltipKeyDown,role:"none","aria-describedby":C},n,b&&u.createElement(Jc,v({},g)),u.createElement("div",{hidden:!0,id:f,style:Qa},y))},t.prototype.componentDidMount=function(){this._async=new ze(this)},t.prototype.componentWillUnmount=function(){t._currentVisibleTooltip&&t._currentVisibleTooltip===this&&(t._currentVisibleTooltip=void 0),this._async.dispose()},t.defaultProps={delay:jc.medium},t.contextType=dr,t}(u.Component),rd={root:"ms-TooltipHost",ariaPlaceholder:"ms-TooltipHost-aria-placeholder"},od=Jo(nd,(function(e){var t=e.className,n=e.theme;return{root:[os(rd,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"}(Qc||(Qc={})),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"}(Xc||(Xc={})),function(e){e[e.landscape=0]="landscape",e[e.portrait=1]="portrait"}($c||($c={})),function(e){e[e.notLoaded=0]="notLoaded",e[e.loaded=1]="loaded",e[e.error=2]="error",e[e.errorLoaded=3]="errorLoaded"}(ed||(ed={}));var id=wn(),ad=/\.svg$/i;var sd=u.forwardRef((function(e,t){var n=u.useRef(),r=u.useRef(),o=function(e,t){var n=e.onLoadingStateChange,r=e.onLoad,o=e.onError,i=e.src,a=u.useState(ed.notLoaded),s=a[0],l=a[1];ni((function(){l(ed.notLoaded)}),[i]),u.useEffect((function(){s===ed.notLoaded&&t.current&&(i&&t.current.naturalWidth>0&&t.current.naturalHeight>0||t.current.complete&&ad.test(i))&&l(ed.loaded)})),u.useEffect((function(){null===n||void 0===n||n(s)}),[s]);var c=u.useCallback((function(e){null===r||void 0===r||r(e),i&&l(ed.loaded)}),[i,r]),d=u.useCallback((function(e){null===o||void 0===o||o(e),l(ed.error)}),[o]);return[s,c,d]}(e,r),i=o[0],a=o[1],s=o[2],l=qr(e,jr,["width","height"]),c=e.src,d=e.alt,p=e.width,m=e.height,h=e.shouldFadeIn,f=void 0===h||h,g=e.shouldStartVisible,y=e.className,b=e.imageFit,C=e.role,S=e.maximizeFrame,x=e.styles,k=e.theme,P=e.loading,I=function(e,t,n,r){var o=u.useRef(t),i=u.useRef();(void 0===i||o.current===ed.notLoaded&&t===ed.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===ed.loaded&&(o===Xc.cover||o===Xc.contain||o===Xc.centerContain||o===Xc.centerCover)&&n.current&&r.current){var s=void 0;if(s="number"===typeof i&&"number"===typeof a&&o!==Xc.centerContain&&o!==Xc.centerCover?i/a:r.current.clientWidth/r.current.clientHeight,n.current.naturalWidth/n.current.naturalHeight>s)return $c.landscape}return $c.portrait}(e,t,n,r));return o.current=t,i.current}(e,i,r,n),w=id(x,{theme:k,className:y,width:p,height:m,maximizeFrame:S,shouldFadeIn:f,shouldStartVisible:g,isLoaded:i===ed.loaded||i===ed.notLoaded&&e.shouldStartVisible,isLandscape:I===$c.landscape,isCenter:b===Xc.center,isCenterContain:b===Xc.centerContain,isCenterCover:b===Xc.centerCover,isContain:b===Xc.contain,isCover:b===Xc.cover,isNone:b===Xc.none,isError:i===ed.error,isNotImageFit:void 0===b});return u.createElement("div",{className:w.root,style:{width:p,height:m},ref:n},u.createElement("img",v({},l,{onLoad:a,onError:s,key:"fabricImage"+e.src||"",className:w.image,ref:Gl(r,t),src:c,alt:d,role:C,loading:P})))}));sd.displayName="ImageBase";var ld={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"},cd=Jo(sd,(function(e){var t=e.className,n=e.width,r=e.height,o=e.maximizeFrame,i=e.isLoaded,a=e.shouldFadeIn,s=e.shouldStartVisible,l=e.isLandscape,c=e.isCenter,d=e.isContain,u=e.isCover,p=e.isCenterContain,m=e.isCenterCover,h=e.isNone,f=e.isError,g=e.isNotImageFit,v=e.theme,y=os(ld,v),b={position:"absolute",left:"50% /* @noflip */",top:"50%",transform:"translate(-50%,-50%)"},C=Ve(),S=void 0!==C&&void 0===C.navigator.msMaxTouchPoints,x=d&&l||u&&!l?{width:"100%",height:"auto"}:{width:"auto",height:"100%"};return{root:[y.root,v.fonts.medium,{overflow:"hidden"},o&&[y.rootMaximizeFrame,{height:"100%",width:"100%"}],i&&a&&!s&&ws.fadeIn400,(c||d||u||p||m)&&{position:"relative"},t],image:[y.image,{display:"block",opacity:0},i&&["is-loaded",{opacity:1}],c&&[y.imageCenter,b],d&&[y.imageContain,S&&{width:"100%",height:"100%",objectFit:"contain"},!S&&x,!S&&b],u&&[y.imageCover,S&&{width:"100%",height:"100%",objectFit:"cover"},!S&&x,!S&&b],p&&[y.imageCenterContain,l&&{maxWidth:"100%"},!l&&{maxHeight:"100%"},b],m&&[y.imageCenterCover,l&&{maxHeight:"100%"},!l&&{maxWidth:"100%"},b],h&&[y.imageNone,{width:"auto",height:"auto"}],g&&[!!n&&!r&&{height:"auto",width:"100%"},!n&&!!r&&{height:"100%",width:"auto"},!!n&&!!r&&{height:"100%",width:"100%"}],l&&y.imageLandscape,!l&&y.imagePortrait,!i&&"is-notLoaded",a&&"is-fadeIn",f&&"is-error"]}}),void 0,{scope:"Image"},!0);cd.displayName="Image";var dd=De({root:{display:"inline-block",textDecoration:"inherit"},placeholder:["ms-Icon-placeHolder",{width:"1em"}],image:["ms-Icon-imageContainer",{overflow:"hidden"}]}),ud="ms-Icon",pd=Fn((function(e){var t=ai(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),md=function(e){var t=e.iconName,n=e.className,r=e.style,o=void 0===r?{}:r,i=pd(t)||{},a=i.iconClassName,s=i.children,l=i.fontFamily,c=i.mergeImageProps,d=qr(e,Ir),p=e["aria-label"]||e.title,m=e["aria-label"]||e["aria-labelledby"]||e.title?{role:c?void 0:"img"}:{"aria-hidden":!0},h=s;return c&&"object"===typeof s&&"object"===typeof s.props&&p&&(h=u.cloneElement(s,{alt:p})),u.createElement("i",v({"data-icon-name":t},m,d,c?{title:void 0,"aria-label":void 0}:{},{className:Wn(ud,dd.root,a,!t&&dd.placeholder,n),style:v({fontFamily:l},o)}),h)},hd=(Fn((function(e,t,n){return md({iconName:e,className:t,"aria-label":n})})),wn({cacheSize:100})),fd=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoadingStateChange=function(e){n.props.imageProps&&n.props.imageProps.onLoadingStateChange&&n.props.imageProps.onLoadingStateChange(e),e===ed.error&&n.setState({imageLoadError:!0})},n.state={imageLoadError:!1},n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.className,r=e.styles,o=e.iconName,i=e.imageErrorAs,a=e.theme,s="string"===typeof o&&0===o.length,l=!!this.props.imageProps||this.props.iconType===Qc.image||this.props.iconType===Qc.Image,c=pd(o)||{},d=c.iconClassName,p=c.children,m=c.mergeImageProps,h=hd(r,{theme:a,className:n,iconClassName:d,isImage:l,isPlaceholder:s}),f=l?"span":"i",g=qr(this.props,Ir,["aria-label"]),y=this.state.imageLoadError,b=v(v({},this.props.imageProps),{onLoadingStateChange:this._onImageLoadingStateChange}),C=y&&i||cd,S=this.props["aria-label"]||this.props.ariaLabel,x=b.alt||S||this.props.title,k=!!(x||this.props["aria-labelledby"]||b["aria-label"]||b["aria-labelledby"])?{role:l||m?void 0:"img","aria-label":l||m?void 0:x}:{"aria-hidden":!0},P=p;return m&&p&&"object"===typeof p&&x&&(P=u.cloneElement(p,{alt:x})),u.createElement(f,v({"data-icon-name":o},k,g,m?{title:void 0,"aria-label":void 0}:{},{className:h.root}),l?u.createElement(C,v({},b)):t||P)},t}(u.Component),gd=Jo(fd,(function(e){var t=e.className,n=e.iconClassName,r=e.isPlaceholder,o=e.isImage,i=e.styles;return{root:[r&&dd.placeholder,dd.root,o&&dd.image,n,t,i&&i.root,i&&i.imageContainer]}}),void 0,{scope:"Icon"},!0);gd.displayName="Icon";var vd,yd,bd,Cd,Sd,xd,kd=function(e){var t=e.className,n=e.imageProps,r=qr(e,Ir,["aria-label","aria-labelledby","title","aria-describedby"]),o=n.alt||e["aria-label"],i=o||e["aria-labelledby"]||e.title||n["aria-label"]||n["aria-labelledby"]||n.title,a={"aria-labelledby":e["aria-labelledby"],"aria-describedby":e["aria-describedby"],title:e.title},s=i?{}:{"aria-hidden":!0};return u.createElement("div",v({},s,r,{className:Wn(ud,dd.root,dd.image,t)}),u.createElement(cd,v({},a,n,{alt:i?o:""})))};!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"}(vd||(vd={})),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"}(yd||(yd={})),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"}(bd||(bd={})),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"}(Sd||(Sd={})),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"}(xd||(xd={}));var Pd=function(e){return{isSize8:e===vd.size8,isSize10:e===vd.size10||e===vd.tiny,isSize16:e===vd.size16,isSize24:e===vd.size24||e===vd.extraExtraSmall,isSize28:e===vd.size28||e===vd.extraSmall,isSize32:e===vd.size32,isSize40:e===vd.size40||e===vd.small,isSize48:e===vd.size48||e===vd.regular,isSize56:e===vd.size56,isSize72:e===vd.size72||e===vd.large,isSize100:e===vd.size100||e===vd.extraLarge,isSize120:e===vd.size120}},Id=((Cd={})[vd.tiny]=10,Cd[vd.extraExtraSmall]=24,Cd[vd.extraSmall]=28,Cd[vd.small]=40,Cd[vd.regular]=48,Cd[vd.large]=72,Cd[vd.extraLarge]=100,Cd[vd.size8]=8,Cd[vd.size10]=10,Cd[vd.size16]=16,Cd[vd.size24]=24,Cd[vd.size28]=28,Cd[vd.size32]=32,Cd[vd.size40]=40,Cd[vd.size48]=48,Cd[vd.size56]=56,Cd[vd.size72]=72,Cd[vd.size100]=100,Cd[vd.size120]=120,Cd),wd=function(e){return{isAvailable:e===yd.online,isAway:e===yd.away,isBlocked:e===yd.blocked,isBusy:e===yd.busy,isDoNotDisturb:e===yd.dnd,isOffline:e===yd.offline}},Ed=wn({cacheSize:100}),_d=u.forwardRef((function(e,t){var n=e.coinSize,r=e.isOutOfOffice,o=e.styles,i=e.presence,a=e.theme,s=e.presenceTitle,l=e.presenceColors,c=Gl(t,u.useRef(null)),d=Pd(e.size),p=!(d.isSize8||d.isSize10||d.isSize16||d.isSize24||d.isSize28||d.isSize32)&&(!n||n>32),m=n?n/3<40?n/3+"px":"40px":"",h=n?{fontSize:n?n/6<20?n/6+"px":"20px":"",lineHeight:m}:void 0,f=n?{width:m,height:m}:void 0,g=Ed(o,{theme:a,presence:i,size:e.size,isOutOfOffice:r,presenceColors:l});return i===yd.none?null:u.createElement("div",{role:"presentation",className:g.presence,style:f,title:s,ref:c},p&&u.createElement(gd,{className:g.presenceIcon,iconName:Dd(e.presence,e.isOutOfOffice),style:h}))}));function Dd(e,t){if(e){var n="SkypeArrow";switch(yd[e]){case"online":return"SkypeCheck";case"away":return t?n:"SkypeClock";case"dnd":return"SkypeMinus";case"offline":return t?n:""}return""}}_d.displayName="PersonaPresenceBase";var Td={presence:"ms-Persona-presence",presenceIcon:"ms-Persona-presenceIcon"};function Rd(e){return{color:e,borderColor:e}}function Ad(e,t){return{selectors:{":before":{border:"".concat(e," solid ").concat(t)}}}}function Md(e){return{height:e,width:e}}function Nd(e){return{backgroundColor:e}}var Fd=Jo(_d,(function(e){var t,n,r,o,i,a,s=e.theme,l=e.presenceColors,c=s.semanticColors,d=s.fonts,u=os(Td,s),p=Pd(e.size),m=wd(e.presence),h=l&&l.available||"#6BB700",f=l&&l.away||"#FFAA44",g=l&&l.busy||"#C43148",y=l&&l.dnd||"#C50F1F",b=l&&l.offline||"#8A8886",C=l&&l.oof||"#B4009E",S=l&&l.background||c.bodyBackground,x=m.isOffline||e.isOutOfOffice&&(m.isAvailable||m.isBusy||m.isAway||m.isDoNotDisturb),k=p.isSize72||p.isSize100?"2px":"1px";return{presence:[u.presence,v(v({position:"absolute",height:xd.size12,width:xd.size12,borderRadius:"50%",top:"auto",right:"-2px",bottom:"-2px",border:"2px solid ".concat(S),textAlign:"center",boxSizing:"content-box",backgroundClip:"border-box"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:(t={},t[Wa]={borderColor:"Window",backgroundColor:"WindowText"},t)}),(p.isSize8||p.isSize10)&&{right:"auto",top:"7px",left:0,border:0,selectors:(n={},n[Wa]={top:"9px",border:"1px solid WindowText"},n)},(p.isSize8||p.isSize10||p.isSize24||p.isSize28||p.isSize32)&&Md(xd.size8),(p.isSize40||p.isSize48)&&Md(xd.size12),p.isSize16&&{height:xd.size6,width:xd.size6,borderWidth:"1.5px"},p.isSize56&&Md(xd.size16),p.isSize72&&Md(xd.size20),p.isSize100&&Md(xd.size28),p.isSize120&&Md(xd.size32),m.isAvailable&&{backgroundColor:h,selectors:(r={},r[Wa]=Nd("Highlight"),r)},m.isAway&&Nd(f),m.isBlocked&&[{selectors:(o={":after":p.isSize40||p.isSize48||p.isSize72||p.isSize100?{content:'""',width:"100%",height:k,backgroundColor:g,transform:"translateY(-50%) rotate(-45deg)",position:"absolute",top:"50%",left:0}:void 0},o[Wa]={selectors:{":after":{width:"calc(100% - 4px)",left:"2px",backgroundColor:"Window"}}},o)}],m.isBusy&&Nd(g),m.isDoNotDisturb&&Nd(y),m.isOffline&&Nd(b),(x||m.isBlocked)&&[{backgroundColor:S,selectors:(i={":before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,border:"".concat(k," solid ").concat(g),borderRadius:"50%",boxSizing:"border-box"}},i[Wa]={backgroundColor:"WindowText",selectors:{":before":{width:"calc(100% - 2px)",height:"calc(100% - 2px)",top:"1px",left:"1px",borderColor:"Window"}}},i)}],x&&m.isAvailable&&Ad(k,h),x&&m.isBusy&&Ad(k,g),x&&m.isAway&&Ad(k,C),x&&m.isDoNotDisturb&&Ad(k,y),x&&m.isOffline&&Ad(k,b),x&&m.isOffline&&e.isOutOfOffice&&Ad(k,C)],presenceIcon:[u.presenceIcon,{color:S,fontSize:"6px",lineHeight:xd.size12,verticalAlign:"top",selectors:(a={},a[Wa]={color:"Window"},a)},p.isSize56&&{fontSize:"8px",lineHeight:xd.size16},p.isSize72&&{fontSize:d.small.fontSize,lineHeight:xd.size20},p.isSize100&&{fontSize:d.medium.fontSize,lineHeight:xd.size28},p.isSize120&&{fontSize:d.medium.fontSize,lineHeight:xd.size32},m.isAway&&{position:"relative",left:x?void 0:"1px"},x&&m.isAvailable&&Rd(h),x&&m.isBusy&&Rd(g),x&&m.isAway&&Rd(C),x&&m.isDoNotDisturb&&Rd(y),x&&m.isOffline&&Rd(b),x&&m.isOffline&&e.isOutOfOffice&&Rd(C)]}}),void 0,{scope:"PersonaPresence"}),Hd=[bd.lightBlue,bd.blue,bd.darkBlue,bd.teal,bd.green,bd.darkGreen,bd.lightPink,bd.pink,bd.magenta,bd.purple,bd.orange,bd.lightRed,bd.darkRed,bd.violet,bd.gold,bd.burgundy,bd.warmGray,bd.cyan,bd.rust,bd.coolGray],Od=Hd.length;function Bd(e){var t=e.primaryText,n=e.text,r=e.initialsColor;return"string"===typeof r?r:function(e){switch(e){case bd.lightBlue:return"#4F6BED";case bd.blue:return"#0078D4";case bd.darkBlue:return"#004E8C";case bd.teal:return"#038387";case bd.lightGreen:case bd.green:return"#498205";case bd.darkGreen:return"#0B6A0B";case bd.lightPink:return"#C239B3";case bd.pink:return"#E3008C";case bd.magenta:return"#881798";case bd.purple:return"#5C2E91";case bd.orange:return"#CA5010";case bd.red:return"#EE1111";case bd.lightRed:return"#D13438";case bd.darkRed:return"#A4262C";case bd.transparent:return"transparent";case bd.violet:return"#8764B8";case bd.gold:return"#986F0B";case bd.burgundy:return"#750B1C";case bd.warmGray:return"#7A7574";case bd.cyan:return"#005B70";case bd.rust:return"#8E562E";case bd.coolGray:return"#69797E";case bd.black:return"#1D1D1D";case bd.gray:return"#393939"}}(r=void 0!==r?r:function(e){var t=bd.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 Hd[n%Od]}(n||t))}var Ld=wn({cacheSize:100}),Vd=Fn((function(e,t,n,r,o,i){return we(e,!i&&{backgroundColor:Bd({text:r,initialsColor:t,primaryText:o}),color:n})})),zd={size:vd.size48,presence:yd.none,imageAlt:""};var Wd=u.forwardRef((function(e,t){var n=$o(zd,e);!function(e){ec({name:"PersonaCoin",props:e,deprecations:{primaryText:"text"}})}(n);var r=function(e){var t=e.onPhotoLoadingStateChange,n=e.imageUrl,r=u.useState(ed.notLoaded),o=r[0],i=r[1];return u.useEffect((function(){i(ed.notLoaded)}),[n]),[o,function(e){i(e),null===t||void 0===t||t(e)}]}(n),o=r[0],i=r[1],a=Ud(i),s=n.className,l=n.coinProps,c=n.showUnknownPersonaCoin,d=n.coinSize,p=n.styles,m=n.imageUrl,h=n.initialsColor,f=n.initialsTextColor,g=n.isOutOfOffice,y=n.onRenderCoin,b=void 0===y?a:y,C=n.onRenderPersonaCoin,S=void 0===C?b:C,x=n.onRenderInitials,k=void 0===x?Kd:x,P=n.presence,I=n.presenceTitle,w=n.presenceColors,E=n.primaryText,_=n.showInitialsUntilImageLoads,D=n.text,T=n.theme,R=n.size,A=qr(n,Gr),M=qr(l||{},Gr),N=d?{width:d,height:d}:void 0,F=c,H={coinSize:d,isOutOfOffice:g,presence:P,presenceTitle:I,presenceColors:w,size:R,theme:T},O=Ld(p,{theme:T,className:l&&l.className?l.className:s,size:R,coinSize:d,showUnknownPersonaCoin:c}),B=Boolean(o!==ed.loaded&&(_&&m||!m||o===ed.error||F));return u.createElement("div",v({role:"presentation"},A,{className:O.coin,ref:t}),R!==vd.size8&&R!==vd.size10&&R!==vd.tiny?u.createElement("div",v({role:"presentation"},M,{className:O.imageArea,style:N}),B&&u.createElement("div",{className:Vd(O.initials,h,f,D,E,c),style:N,"aria-hidden":"true"},k(n,Kd)),!F&&S(n,a),u.createElement(Fd,v({},H))):n.presence?u.createElement(Fd,v({},H)):u.createElement(gd,{iconName:"Contact",className:O.size10WithoutPresenceIcon}),n.children)}));Wd.displayName="PersonaCoinBase";var Ud=function(e){return function(t){var n=t.coinSize,r=t.styles,o=t.imageUrl,i=t.imageAlt,a=t.imageShouldFadeIn,s=t.imageShouldStartVisible,l=t.theme,c=t.showUnknownPersonaCoin,d=t.size,p=void 0===d?zd.size:d;if(!o)return null;var m=Ld(r,{theme:l,size:p,showUnknownPersonaCoin:c}),h=n||Id[p];return u.createElement(cd,{className:m.image,imageFit:Xc.cover,src:o,width:h,height:h,alt:i,shouldFadeIn:a,shouldStartVisible:s,onLoadingStateChange:e})}},Kd=function(e){var t=e.imageInitials,n=e.allowPhoneInitials,r=e.showUnknownPersonaCoin,o=e.text,i=e.primaryText,a=e.theme;if(r)return u.createElement(gd,{iconName:"Help"});var s=Sn(a);return""!==(t=t||_o(o||i||"",s,n))?u.createElement("span",null,t):u.createElement(gd,{iconName:"Contact"})},jd={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"},Gd=Jo(Wd,(function(e){var t,n=e.className,r=e.theme,o=e.coinSize,i=r.palette,a=r.fonts,s=Pd(e.size),l=os(jd,r),c=o||e.size&&Id[e.size]||48;return{coin:[l.coin,a.medium,s.isSize8&&l.size8,s.isSize10&&l.size10,s.isSize16&&l.size16,s.isSize24&&l.size24,s.isSize28&&l.size28,s.isSize32&&l.size32,s.isSize40&&l.size40,s.isSize48&&l.size48,s.isSize56&&l.size56,s.isSize72&&l.size72,s.isSize100&&l.size100,s.isSize120&&l.size120,n],size10WithoutPresenceIcon:{fontSize:a.xSmall.fontSize,position:"absolute",top:"5px",right:"auto",left:0},imageArea:[l.imageArea,{position:"relative",textAlign:"center",flex:"0 0 auto",height:c,width:c},c<=10&&{overflow:"visible",background:"transparent",height:0,width:0}],image:[l.image,{marginRight:"10px",position:"absolute",top:0,left:0,width:"100%",height:"100%",border:0,borderRadius:"50%",perspective:"1px"},c<=10&&{overflow:"visible",background:"transparent",height:0,width:0},c>10&&{height:c,width:c}],initials:[l.initials,{borderRadius:"50%",color:e.showUnknownPersonaCoin?"rgb(168, 0, 0)":i.white,fontSize:a.large.fontSize,fontWeight:Hi.semibold,lineHeight:48===c?46:c,height:c,selectors:(t={},t[Wa]=v(v({border:"1px solid WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText",boxSizing:"border-box",backgroundColor:"Window !important"}),t.i={fontWeight:Hi.semibold},t)},e.showUnknownPersonaCoin&&{backgroundColor:"rgb(234, 234, 234)"},c<32&&{fontSize:a.xSmall.fontSize},c>=32&&c<40&&{fontSize:a.medium.fontSize},c>=40&&c<56&&{fontSize:a.mediumPlus.fontSize},c>=56&&c<72&&{fontSize:a.xLarge.fontSize},c>=72&&c<100&&{fontSize:a.xxLarge.fontSize},c>=100&&{fontSize:a.superLarge.fontSize}]}}),void 0,{scope:"PersonaCoin"}),qd=wn(),Yd={size:vd.size48,presence:yd.none,imageAlt:"",showOverflowTooltip:!0};var Zd=u.forwardRef((function(e,t){var n=$o(Yd,e);!function(e){ec({name:"Persona",props:e,deprecations:{primaryText:"text"}})}(n);var r=Gl(t,u.useRef(null)),o=function(){return n.text||n.primaryText||""},i=function(e,t,r){var o=t&&t(n,r);return o?u.createElement("div",{dir:"auto",className:e},o):void 0},a=function(e,t){return void 0===t&&(t=!0),e?t?function(){return u.createElement(od,{content:e,overflowMode:Gc.Parent,directionalHint:zs},e)}:function(){return u.createElement(u.Fragment,null,e)}:void 0},s=a(o(),n.showOverflowTooltip),l=a(n.secondaryText,n.showOverflowTooltip),c=a(n.tertiaryText,n.showOverflowTooltip),d=a(n.optionalText,n.showOverflowTooltip),p=n.hidePersonaDetails,m=n.onRenderOptionalText,h=void 0===m?d:m,f=n.onRenderPrimaryText,g=void 0===f?s:f,y=n.onRenderSecondaryText,b=void 0===y?l:y,C=n.onRenderTertiaryText,S=void 0===C?c:C,x=n.onRenderPersonaCoin,k=void 0===x?function(e){return u.createElement(Gd,v({},e))}:x,P=n.size,I=n.allowPhoneInitials,w=n.className,E=n.coinProps,_=n.showUnknownPersonaCoin,D=n.coinSize,T=n.styles,R=n.imageAlt,A=n.imageInitials,M=n.imageShouldFadeIn,N=n.imageShouldStartVisible,F=n.imageUrl,H=n.initialsColor,O=n.initialsTextColor,B=n.isOutOfOffice,L=n.onPhotoLoadingStateChange,V=n.onRenderCoin,z=n.onRenderInitials,W=n.presence,U=n.presenceTitle,K=n.presenceColors,j=n.showInitialsUntilImageLoads,G=n.showSecondaryText,q=n.theme,Y=v({allowPhoneInitials:I,showUnknownPersonaCoin:_,coinSize:D,imageAlt:R,imageInitials:A,imageShouldFadeIn:M,imageShouldStartVisible:N,imageUrl:F,initialsColor:H,initialsTextColor:O,onPhotoLoadingStateChange:L,onRenderCoin:V,onRenderInitials:z,presence:W,presenceTitle:U,showInitialsUntilImageLoads:j,size:P,text:o(),isOutOfOffice:B,presenceColors:K},E),Z=qd(T,{theme:q,className:w,showSecondaryText:G,presence:W,size:P}),J=qr(n,Gr),Q=u.createElement("div",{className:Z.details},i(Z.primaryText,g,s),i(Z.secondaryText,b,l),i(Z.tertiaryText,S,c),i(Z.optionalText,h,d),n.children);return u.createElement("div",v({},J,{ref:r,className:Z.root,style:D?{height:D,minWidth:D}:void 0}),k(Y,k),(!p||P===vd.size8||P===vd.size10||P===vd.tiny)&&Q)}));Zd.displayName="PersonaBase";var Jd={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"},Qd=Jo(Zd,(function(e){var t=e.className,n=e.showSecondaryText,r=e.theme,o=r.semanticColors,i=r.fonts,a=os(Jd,r),s=Pd(e.size),l=wd(e.presence),c="16px",d={color:o.bodySubtext,fontWeight:Hi.regular,fontSize:i.small.fontSize};return{root:[a.root,r.fonts.medium,ks,{color:o.bodyText,position:"relative",height:Sd.size48,minWidth:Sd.size48,display:"flex",alignItems:"center",selectors:{".contextualHost":{display:"none"}}},s.isSize8&&[a.size8,{height:Sd.size8,minWidth:Sd.size8}],s.isSize10&&[a.size10,{height:Sd.size10,minWidth:Sd.size10}],s.isSize16&&[a.size16,{height:Sd.size16,minWidth:Sd.size16}],s.isSize24&&[a.size24,{height:Sd.size24,minWidth:Sd.size24}],s.isSize24&&n&&{height:"36px"},s.isSize28&&[a.size28,{height:Sd.size28,minWidth:Sd.size28}],s.isSize28&&n&&{height:"32px"},s.isSize32&&[a.size32,{height:Sd.size32,minWidth:Sd.size32}],s.isSize40&&[a.size40,{height:Sd.size40,minWidth:Sd.size40}],s.isSize48&&a.size48,s.isSize56&&[a.size56,{height:Sd.size56,minWidth:Sd.size56}],s.isSize72&&[a.size72,{height:Sd.size72,minWidth:Sd.size72}],s.isSize100&&[a.size100,{height:Sd.size100,minWidth:Sd.size100}],s.isSize120&&[a.size120,{height:Sd.size120,minWidth:Sd.size120}],l.isAvailable&&a.available,l.isAway&&a.away,l.isBlocked&&a.blocked,l.isBusy&&a.busy,l.isDoNotDisturb&&a.doNotDisturb,l.isOffline&&a.offline,t],details:[a.details,{padding:"0 24px 0 16px",minWidth:0,width:"100%",textAlign:"left",display:"flex",flexDirection:"column",justifyContent:"space-around"},(s.isSize8||s.isSize10)&&{paddingLeft:17},(s.isSize24||s.isSize28||s.isSize32)&&{padding:"0 8px"},(s.isSize40||s.isSize48)&&{padding:"0 12px"}],primaryText:[a.primaryText,Ps,{color:o.bodyText,fontWeight:Hi.regular,fontSize:i.medium.fontSize,selectors:{":hover":{color:o.inputTextHovered}}},n&&{height:c,lineHeight:c,overflowX:"hidden"},(s.isSize8||s.isSize10)&&{fontSize:i.small.fontSize,lineHeight:Sd.size8},s.isSize16&&{lineHeight:Sd.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,Ps,d,(s.isSize8||s.isSize10||s.isSize16||s.isSize24||s.isSize28||s.isSize32)&&{display:"none"},n&&{display:"block",height:c,lineHeight:c,overflowX:"hidden"},s.isSize24&&n&&{height:18},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&{fontSize:i.medium.fontSize},(s.isSize56||s.isSize72||s.isSize100||s.isSize120)&&n&&{height:18}],tertiaryText:[a.tertiaryText,Ps,d,{display:"none",fontSize:i.medium.fontSize},(s.isSize72||s.isSize100||s.isSize120)&&{display:"block"}],optionalText:[a.optionalText,Ps,d,{display:"none",fontSize:i.medium.fontSize},(s.isSize100||s.isSize120)&&{display:"block"}],textContent:[a.textContent,Ps]}}),void 0,{scope:"Persona"}),Xd=(function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderIcon=function(e){return e.activityPersonas?n._onRenderPersonaArray(e):n.props.activityIcon},n._onRenderActivityDescription=function(e){var t=n._getClassNames(e),r=e.activityDescription||e.activityDescriptionText;return r?u.createElement("span",{className:t.activityText},r):null},n._onRenderComments=function(e){var t=n._getClassNames(e),r=e.comments||e.commentText;return!e.isCompact&&r?u.createElement("div",{className:t.commentText},r):null},n._onRenderTimeStamp=function(e){var t=n._getClassNames(e);return!e.isCompact&&e.timeStamp?u.createElement("div",{className:t.timeStamp},e.timeStamp):null},n._onRenderPersonaArray=function(e){var t=n._getClassNames(e),r=null,o=e.activityPersonas;if(o[0].imageUrl||o[0].imageInitials){var i=[],a=o.length>1||e.isCompact,s=e.isCompact?3:4,l=void 0;e.isCompact&&(l={display:"inline-block",width:"10px",minWidth:"10px",overflow:"visible"}),o.filter((function(e,t){return t<s})).forEach((function(e,n){i.push(u.createElement(Gd,v({},e,{key:e.key||n,className:t.activityPersona,size:a?vd.size16:vd.size32,style:l})))})),r=u.createElement("div",{className:t.personaContainer},i)}return r},n}g(t,e),t.prototype.render=function(){var e=this.props,t=e.onRenderIcon,n=void 0===t?this._onRenderIcon:t,r=e.onRenderActivityDescription,o=void 0===r?this._onRenderActivityDescription:r,i=e.onRenderComments,a=void 0===i?this._onRenderComments:i,s=e.onRenderTimeStamp,l=void 0===s?this._onRenderTimeStamp:s,c=e.animateBeaconSignal,d=e.isCompact,p=this._getClassNames(this.props);return u.createElement("div",{className:p.root,style:this.props.style},(this.props.activityPersonas||this.props.activityIcon||this.props.onRenderIcon)&&u.createElement("div",{className:p.activityTypeIcon},c&&d&&u.createElement("div",{className:p.pulsingBeacon}),n(this.props)),u.createElement("div",{className:p.activityContent},o(this.props,this._onRenderActivityDescription),a(this.props,this._onRenderComments),l(this.props,this._onRenderTimeStamp)))},t.prototype._getClassNames=function(e){return Vs(Ls(void 0,e.styles,e.animateBeaconSignal,e.beaconColorOne,e.beaconColorTwo,e.isCompact),e.className,e.activityPersonas,e.isCompact)}}(u.Component),"backward"),$d=function(e){function t(t){var n=e.call(this,t)||this;return n._inputElement=u.createRef(),n._autoFillEnabled=!0,n._onCompositionStart=function(e){n.setState({isComposing:!0}),n._autoFillEnabled=!1},n._onCompositionUpdate=function(){Xo()&&n._updateValue(n._getCurrentInputValue(),!0)},n._onCompositionEnd=function(e){var t=n._getCurrentInputValue();n._tryEnableAutofill(t,n.value,!1,!0),n.setState({isComposing:!1}),n._async.setTimeout((function(){n._updateValue(n._getCurrentInputValue(),!1)}),0)},n._onClick=function(){n.value&&""!==n.value&&n._autoFillEnabled&&(n._autoFillEnabled=!1)},n._onKeyDown=function(e){if(n.props.onKeyDown&&n.props.onKeyDown(e),!e.nativeEvent.isComposing)switch(e.which){case Vt:n._autoFillEnabled=!1;break;case Xt:case en:n._autoFillEnabled&&(n.setState((function(e){return{inputValue:n.props.suggestedDisplayValue||e.inputValue}})),n._autoFillEnabled=!1);break;default:n._autoFillEnabled||-1!==n.props.enableAutofillOnKeyPress.indexOf(e.which)&&(n._autoFillEnabled=!0)}},n._onInputChanged=function(e){var t=n._getCurrentInputValue(e);if(n.state.isComposing||n._tryEnableAutofill(t,n.value,e.nativeEvent.isComposing),!Xo()||!n.state.isComposing){var r=e.nativeEvent.isComposing,o=void 0===r?n.state.isComposing:r;n._updateValue(t,o)}},n._onChanged=function(){},n._updateValue=function(e,t){if(e||e!==n.value){var r=n.props,o=r.onInputChange,i=r.onInputValueChange;o&&(e=(null===o||void 0===o?void 0:o(e,t))||""),n.setState({inputValue:e},(function(){return null===i||void 0===i?void 0:i(e,t)}))}},Xr(n),n._async=new ze(n),n.state={inputValue:t.defaultVisibleValue||"",isComposing:!1},n}return g(t,e),t.getDerivedStateFromProps=function(e,t){if(e.updateValueInWillReceiveProps){var n=e.updateValueInWillReceiveProps();if(null!==n&&n!==t.inputValue&&!t.isComposing)return v(v({},t),{inputValue:n})}return null},Object.defineProperty(t.prototype,"cursorLocation",{get:function(){if(this._inputElement.current){var e=this._inputElement.current;return"forward"!==e.selectionDirection?e.selectionEnd:e.selectionStart}return-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isValueSelected",{get:function(){return Boolean(this.inputElement&&this.inputElement.selectionStart!==this.inputElement.selectionEnd)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._getControlledValue()||this.state.inputValue||""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._inputElement.current?this._inputElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._inputElement.current?this._inputElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"inputElement",{get:function(){return this._inputElement.current},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t,n){var r,o=this.props,i=o.suggestedDisplayValue,a=o.shouldSelectFullInputValueInComponentDidUpdate,s=0;if(!o.preventValueSelection){var l=(null===(r=this.context)||void 0===r?void 0:r.window.document)||Je(this._inputElement.current);if(this._inputElement.current&&this._inputElement.current===(null===l||void 0===l?void 0:l.activeElement)&&this._autoFillEnabled&&this.value&&i&&eu(i,this.value)){var c=!1;if(a&&(c=a()),c)this._inputElement.current.setSelectionRange(0,i.length,Xd);else{for(;s<this.value.length&&this.value[s].toLocaleLowerCase()===i[s].toLocaleLowerCase();)s++;s>0&&this._inputElement.current.setSelectionRange(s,i.length,Xd)}}else this._inputElement.current&&(null===n||this._autoFillEnabled||this.state.isComposing||this._inputElement.current.setSelectionRange(n.start,n.end,n.dir))}},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=qr(this.props,Mr),t=v(v({},this.props.style),{fontFamily:"inherit"});return u.createElement("input",v({autoCapitalize:"off",autoComplete:"off","aria-autocomplete":"both"},e,{style:t,ref:this._inputElement,value:this._getDisplayValue(),onCompositionStart:this._onCompositionStart,onCompositionUpdate:this._onCompositionUpdate,onCompositionEnd:this._onCompositionEnd,onChange:this._onChanged,onInput:this._onInputChanged,onKeyDown:this._onKeyDown,onClick:this.props.onClick?this.props.onClick:this._onClick,"data-lpignore":!0}))},t.prototype.focus=function(){this._inputElement.current&&this._inputElement.current.focus()},t.prototype.clear=function(){this._autoFillEnabled=!0,this._updateValue("",!1),this._inputElement.current&&this._inputElement.current.setSelectionRange(0,0)},t.prototype.getSnapshotBeforeUpdate=function(){var e,t,n=this._inputElement.current;return n&&n.selectionStart!==this.value.length?{start:null!==(e=n.selectionStart)&&void 0!==e?e:n.value.length,end:null!==(t=n.selectionEnd)&&void 0!==t?t:n.value.length,dir:n.selectionDirection||"backward"}:null},t.prototype._getCurrentInputValue=function(e){return e&&e.target&&e.target.value?e.target.value:this.inputElement&&this.inputElement.value?this.inputElement.value:""},t.prototype._tryEnableAutofill=function(e,t,n,r){!n&&e&&this._inputElement.current&&this._inputElement.current.selectionStart===e.length&&!this._autoFillEnabled&&(e.length>t.length||r)&&(this._autoFillEnabled=!0)},t.prototype._getDisplayValue=function(){return this._autoFillEnabled?function(e,t){var n=e;t&&e&&eu(t,n)&&(n=t);return n}(this.value,this.props.suggestedDisplayValue):this.value},t.prototype._getControlledValue=function(){var e=this.props.value;return void 0===e||"string"===typeof e?e:(console.warn("props.value of Autofill should be a string, but it is ".concat(e," with type of ").concat(typeof e)),e.toString())},t.defaultProps={enableAutofillOnKeyPress:[tn,$t]},t.contextType=dr,t}(u.Component);function eu(e,t){if(!e||!t)return!1;for(var n=0,r=[e,t];n<r.length;n++){var o=r[n];if("string"!==typeof o)throw new Error("".concat($d.name,' received non-string value "').concat(o,'" of type ').concat(typeof o," from either input's value or suggestedDisplayValue"))}return 0===e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase())}var tu=wn(),nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.message,n=e.styles,r=e.as,o=void 0===r?"div":r,i=e.className,a=tu(n,{className:i});return u.createElement(o,v({role:"status",className:a.root},qr(this.props,Gr,["className"])),u.createElement(Nt,null,u.createElement("div",{className:a.screenReaderText},t)))},t.defaultProps={"aria-live":"polite"},t}(u.Component),ru=Jo(nu,(function(e){return{root:e.className,screenReaderText:Qa}}),void 0,{scope:"Announced"});L("@fluentui/react-focus","8.9.18");var ou,iu=1,au=2;!function(e){e[e.vertical=0]="vertical",e[e.horizontal=1]="horizontal",e[e.bidirectional=2]="bidirectional",e[e.domOrder=3]="domOrder"}(ou||(ou={}));var su,lu="data-is-focusable",cu="data-focuszone-id",du="tabindex",uu="data-no-vertical-wrap",pu="data-no-horizontal-wrap",mu=999999999,hu=-999999999;function fu(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 gu={},vu=new Set,yu=["text","number","password","email","tel","url","search","textarea"],bu=!1,Cu=function(e){function t(n){var r,o,i,a,s=this;(s=e.call(this,n)||this)._root=u.createRef(),s._mergedRef=ti(),s._onFocus=function(e){var t;if(!s._portalContainsElement(e.target)){var n,r=(t=s.props).onActiveElementChanged,o=t.doNotAllowFocusEventToPropagate,i=t.stopFocusPropagation,a=t.onFocusNotification,l=t.onFocus,c=t.shouldFocusInnerElementWhenReceivedFocus,d=t.defaultTabbableElement,u=s._isImmediateDescendantOfZone(e.target);if(u)n=e.target;else for(var p=e.target;p&&p!==s._root.current;){if(ot(p,void 0,s._inShadowRoot)&&s._isImmediateDescendantOfZone(p)){n=p;break}p=Ue(p,bu)}if(c&&e.target===s._root.current){var m=d&&"function"===typeof d&&s._root.current&&d(s._root.current);m&&ot(m,void 0,s._inShadowRoot)?(n=m,m.focus()):(s.focus(!0),s._activeElement&&(n=null))}var h=!s._activeElement;n&&n!==s._activeElement&&((u||h)&&s._setFocusAlignment(n,!0,!0),s._activeElement=n,h&&s._updateTabIndexes()),r&&r(s._activeElement,e),(i||o)&&e.stopPropagation(),l?l(e):a&&a()}},s._onBlur=function(){s._setParkedFocus(!1)},s._onMouseDown=function(e){if(!s._portalContainsElement(e.target)&&!s.props.disabled){for(var t=e.target,n=[];t&&t!==s._root.current;)n.push(t),t=Ue(t,bu);for(;n.length&&((t=n.pop())&&ot(t,void 0,s._inShadowRoot)&&s._setActiveElement(t,!0),!it(t)););}},s._onKeyDown=function(e,t){var n;if(!s._portalContainsElement(e.target)){var r=(n=s.props).direction,o=n.disabled,i=n.isInnerZoneKeystroke,a=n.pagingSupportDisabled,l=n.shouldEnterInnerZone;if(!o&&(s.props.onKeyDown&&s.props.onKeyDown(e),!e.isDefaultPrevented()&&(s._getDocument().activeElement!==s._root.current||!s._isInnerZone))){if((l&&l(e)||i&&i(e))&&s._isImmediateDescendantOfZone(e.target)){var c=s._getFirstInnerZone();if(c){if(!c.focus(!0))return}else{if(!at(e.target))return;if(!s.focusElement(tt(e.target,e.target.firstChild,!0)))return}}else{if(e.altKey)return;switch(e.which){case qt:if(s._shouldRaiseClicksOnSpace&&s._tryInvokeClickForFocusable(e.target,e))break;return;case Xt:if(r!==ou.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusLeft(t)))break;return;case en:if(r!==ou.vertical&&(s._preventDefaultWhenHandled(e),s._moveFocusRight(t)))break;return;case $t:if(r!==ou.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusUp()))break;return;case tn:if(r!==ou.horizontal&&(s._preventDefaultWhenHandled(e),s._moveFocusDown()))break;return;case Zt:if(!a&&s._moveFocusPaging(!0))break;return;case Yt:if(!a&&s._moveFocusPaging(!1))break;return;case zt:if(s.props.allowTabKey||s.props.handleTabKey===iu||s.props.handleTabKey===au&&s._isElementInput(e.target)){var d=!1;if(s._processingTabKey=!0,r!==ou.vertical&&s._shouldWrapFocus(s._activeElement,pu))d=(Sn(t)?!e.shiftKey:e.shiftKey)?s._moveFocusLeft(t):s._moveFocusRight(t);else d=e.shiftKey?s._moveFocusUp():s._moveFocusDown();if(s._processingTabKey=!1,d)break;s.props.shouldResetActiveElementWhenTabFromZone&&(s._activeElement=null)}return;case Qt:if(s._isContentEditableElement(e.target)||s._isElementInput(e.target)&&!s._shouldInputLoseFocus(e.target,!1))return!1;var u=s._root.current&&s._root.current.firstChild;if(s._root.current&&u&&s.focusElement(tt(s._root.current,u,!0)))break;return;case Jt: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(et(s._root.current,p,!0,!0,!0)))break;return;case Wt:if(s._shouldRaiseClicksOnEnter&&s._tryInvokeClickForFocusable(e.target,e))break;return;default:return}}e.preventDefault(),e.stopPropagation()}}},s._getHorizontalDistanceFromCenter=function(e,t,n){var r=s._focusAlignment.left||s._focusAlignment.x||0,o=Math.floor(n.top),i=Math.floor(t.bottom),a=Math.floor(n.bottom),l=Math.floor(t.top);return e&&o>i||!e&&a<l?r>=n.left&&r<=n.left+n.width?0:Math.abs(n.left+n.width/2-r):s._shouldWrapFocus(s._activeElement,uu)?mu:hu},Xr(s),Rt("FocusZone",n,{rootProps:void 0,allowTabKey:"handleTabKey",elementType:"as",ariaDescribedBy:"aria-describedby",ariaLabelledBy:"aria-labelledby"}),s._id=Cr("FocusZone"),s._focusAlignment={left:0,top:0},s._processingTabKey=!1;var l=null===(o=null!==(r=n.shouldRaiseClicks)&&void 0!==r?r:t.defaultProps.shouldRaiseClicks)||void 0===o||o;return s._shouldRaiseClicksOnEnter=null!==(i=n.shouldRaiseClicksOnEnter)&&void 0!==i?i:l,s._shouldRaiseClicksOnSpace=null!==(a=n.shouldRaiseClicksOnSpace)&&void 0!==a?a:l,s}return g(t,e),t.getOuterZones=function(){return vu.size},t._onKeyDownCapture=function(e){e.which===zt&&vu.forEach((function(e){return e._updateTabIndexes()}))},t.prototype.componentDidMount=function(){var e,n=this._root.current;if(this._inShadowRoot=!!(null===(e=this.context)||void 0===e?void 0:e.shadowRoot),gu[this._id]=this,n){for(var r=Ue(n,bu);r&&r!==this._getDocument().body&&1===r.nodeType;){if(it(r)){this._isInnerZone=!0;break}r=Ue(r,bu)}this._isInnerZone||(vu.add(this),this._root.current&&this._root.current.addEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.addEventListener("blur",this._onBlur,!0),this._updateTabIndexes(),this.props.defaultTabbableElement&&"string"===typeof this.props.defaultTabbableElement?this._activeElement=this._getDocument().querySelector(this.props.defaultTabbableElement):this.props.defaultActiveElement&&(this._activeElement=this._getDocument().querySelector(this.props.defaultActiveElement)),this.props.shouldFocusOnMount&&this.focus()}},t.prototype.componentDidUpdate=function(){var e,t=this._root.current,n=this._getDocument();if(this._inShadowRoot=!!(null===(e=this.context)||void 0===e?void 0:e.shadowRoot),(this._activeElement&&!Ke(this._root.current,this._activeElement,bu)||this._defaultFocusElement&&!Ke(this._root.current,this._defaultFocusElement,bu))&&(this._activeElement=null,this._defaultFocusElement=null,this._updateTabIndexes()),!this.props.preventFocusRestoration&&n&&this._lastIndexPath&&(n.activeElement===n.body||null===n.activeElement||n.activeElement===t)){var r=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 ot(n)&&nt(n)?n:tt(e,n,!0)||et(e,n)}(t,this._lastIndexPath);r?(this._setActiveElement(r,!0),r.focus(),this._setParkedFocus(!1)):this._setParkedFocus(!0)}},t.prototype.componentWillUnmount=function(){delete gu[this._id],this._isInnerZone||(vu.delete(this),this._root.current&&this._root.current.removeEventListener("keydown",t._onKeyDownCapture,!0)),this._root.current&&this._root.current.removeEventListener("blur",this._onBlur,!0),this._activeElement=null,this._defaultFocusElement=null},t.prototype.render=function(){var e,t=this,n=(e=this.props).as,r=e.elementType,o=e.rootProps,i=e.ariaDescribedBy,a=e.ariaLabelledBy,s=e.className,l=qr(this.props,Ir),c=n||r||"div";this._evaluateFocusBeforeRender();var d=xs();return u.createElement(c,v({"aria-labelledby":a,"aria-describedby":i},l,o,{className:Wn((su||(su=we({selectors:{":focus":{outline:"none"}}},"ms-FocusZone")),su),s),ref:this._mergedRef(this.props.elementRef,this._root),"data-focuszone-id":this._id,onKeyDown:function(e){return t._onKeyDown(e,d)},onFocus:this._onFocus,onMouseDownCapture:this._onMouseDown}),this.props.children)},t.prototype.focus=function(e,t){if(void 0===e&&(e=!1),void 0===t&&(t=!1),this._root.current){if(!e&&"true"===this._root.current.getAttribute(lu)&&this._isInnerZone){var n=this._getOwnerZone(this._root.current);if(n!==this._root.current){var r=gu[n.getAttribute(cu)];return!!r&&r.focusElement(this._root.current)}return!1}if(!e&&this._activeElement&&Ke(this._root.current,this._activeElement)&&ot(this._activeElement,void 0,this._inShadowRoot)&&(!t||rt(this._activeElement)))return this._activeElement.focus(),!0;var o=this._root.current.firstChild;return this.focusElement(tt(this._root.current,o,!0,void 0,void 0,void 0,void 0,void 0,t))}return!1},t.prototype.focusLast=function(){if(this._root.current){var e=this._root.current&&this._root.current.lastChild;return this.focusElement(et(this._root.current,e,!0,!0,!0))}return!1},t.prototype.focusElement=function(e,t){var n,r=(n=this.props).onBeforeFocus,o=n.shouldReceiveFocus;return!(o&&!o(e)||r&&!r(e))&&(!!e&&(this._setActiveElement(e,t),this._activeElement&&this._activeElement.focus(),!0))},t.prototype.setFocusAlignment=function(e){this._focusAlignment=e},Object.defineProperty(t.prototype,"defaultFocusElement",{get:function(){return this._defaultFocusElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeElement",{get:function(){return this._activeElement},enumerable:!1,configurable:!0}),t.prototype._evaluateFocusBeforeRender=function(){var e=this._root.current,t=this._getDocument();if(t){var n=t.activeElement;if(n!==e){var r=Ke(e,n,!1);this._lastIndexPath=r?function(e,t){for(var n=[];t&&e&&t!==e;){var r=Ue(t,!0);if(null===r)return[];n.unshift(Array.prototype.indexOf.call(r.children,t)),t=r}return n}(e,n):void 0}}},t.prototype._setParkedFocus=function(e){var t=this._root.current;t&&this._isParked!==e&&(this._isParked=e,e?(this.props.allowFocusRoot||(this._parkedTabIndex=t.getAttribute("tabindex"),t.setAttribute("tabindex","-1")),t.focus()):this.props.allowFocusRoot||(this._parkedTabIndex?(t.setAttribute("tabindex",this._parkedTabIndex),this._parkedTabIndex=void 0):t.removeAttribute("tabindex")))},t.prototype._setActiveElement=function(e,t){var n=this._activeElement;this._activeElement=e,n&&(it(n)&&this._updateTabIndexes(n),n.tabIndex=-1),this._activeElement&&(this._focusAlignment&&!t||this._setFocusAlignment(e,!0,!0),this._activeElement.tabIndex=0)},t.prototype._preventDefaultWhenHandled=function(e){this.props.preventDefaultWhenHandled&&e.preventDefault()},t.prototype._tryInvokeClickForFocusable=function(e,t){var n=e;if(n===this._root.current)return!1;do{if("BUTTON"===n.tagName||"A"===n.tagName||"INPUT"===n.tagName||"TEXTAREA"===n.tagName||"SUMMARY"===n.tagName)return!1;if(this._isImmediateDescendantOfZone(n)&&"true"===n.getAttribute(lu)&&"true"!==n.getAttribute("data-disable-click-on-enter"))return fu(n,t),!0;n=Ue(n,bu)}while(n!==this._root.current);return!1},t.prototype._getFirstInnerZone=function(e){if(!(e=e||this._activeElement||this._root.current))return null;if(it(e))return gu[e.getAttribute(cu)];for(var t=e.firstElementChild;t;){if(it(t))return gu[t.getAttribute(cu)];var n=this._getFirstInnerZone(t);if(n)return n;t=t.nextElementSibling}return null},t.prototype._moveFocus=function(e,t,n,r){void 0===r&&(r=!0);var o=this._activeElement,i=-1,a=void 0,s=!1,l=this.props.direction===ou.bidirectional;if(!o||!this._root.current)return!1;if(this._isElementInput(o)&&!this._shouldInputLoseFocus(o,e))return!1;var c=l?o.getBoundingClientRect():null;do{if(o=e?tt(this._root.current,o):et(this._root.current,o),!l){a=o;break}if(o){var d=t(c,o.getBoundingClientRect());if(-1===d&&-1===i){a=o;break}if(d>-1&&(-1===i||d<i)&&(i=d,a=o),i>=0&&d<0)break}}while(o);if(a&&a!==this._activeElement)s=!0,this.focusElement(a);else if(this.props.isCircularNavigation&&r)return e?this.focusElement(tt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(et(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return s},t.prototype._moveFocusDown=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!0,(function(r,o){var i=-1,a=Math.floor(o.top),s=Math.floor(r.bottom);return a<s?e._shouldWrapFocus(e._activeElement,uu)?mu:hu:((-1===t&&a>=s||a===t)&&(t=a,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusUp=function(){var e=this,t=-1,n=this._focusAlignment.left||this._focusAlignment.x||0;return!!this._moveFocus(!1,(function(r,o){var i=-1,a=Math.floor(o.bottom),s=Math.floor(o.top),l=Math.floor(r.top);return a>l?e._shouldWrapFocus(e._activeElement,uu)?mu:hu:((-1===t&&a<=l||s===t)&&(t=s,i=n>=o.left&&n<=o.left+o.width?0:Math.abs(o.left+o.width/2-n)),i)}))&&(this._setFocusAlignment(this._activeElement,!1,!0),!0)},t.prototype._moveFocusLeft=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,pu);return!!this._moveFocus(Sn(e),(function(r,o){var i=-1;return(Sn(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!==ou.vertical?i=r.right-o.right:n||(i=hu),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusRight=function(e){var t=this,n=this._shouldWrapFocus(this._activeElement,pu);return!!this._moveFocus(!Sn(e),(function(r,o){var i=-1;return(Sn(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!==ou.vertical?i=o.left-r.left:n||(i=hu),i}),void 0,n)&&(this._setFocusAlignment(this._activeElement,!0,!1),!0)},t.prototype._moveFocusPaging=function(e,t){void 0===t&&(t=!0);var n=this._activeElement;if(!n||!this._root.current)return!1;if(this._isElementInput(n)&&!this._shouldInputLoseFocus(n,e))return!1;var r=Pt(n);if(!r)return!1;var o=-1,i=void 0,a=-1,s=-1,l=r.clientHeight,c=n.getBoundingClientRect();do{if(n=e?tt(this._root.current,n):et(this._root.current,n)){var d=n.getBoundingClientRect(),u=Math.floor(d.top),p=Math.floor(c.bottom),m=Math.floor(d.bottom),h=Math.floor(c.top),f=this._getHorizontalDistanceFromCenter(e,c,d);if(e&&u>p+l||!e&&m<h-l)break;f>-1&&(e&&u>a?(a=u,o=f,i=n):!e&&m<s?(s=m,o=f,i=n):(-1===o||f<=o)&&(o=f,i=n))}}while(n);var g=!1;if(i&&i!==this._activeElement)g=!0,this.focusElement(i),this._setFocusAlignment(i,!1,!0);else if(this.props.isCircularNavigation&&t)return e?this.focusElement(tt(this._root.current,this._root.current.firstElementChild,!0)):this.focusElement(et(this._root.current,this._root.current.lastElementChild,!0,!0,!0));return g},t.prototype._setFocusAlignment=function(e,t,n){if(this.props.direction===ou.bidirectional&&(!this._focusAlignment||t||n)){var r=e.getBoundingClientRect(),o=r.left+r.width/2,i=r.top+r.height/2;this._focusAlignment||(this._focusAlignment={left:o,top:i}),t&&(this._focusAlignment.left=o),n&&(this._focusAlignment.top=i)}},t.prototype._isImmediateDescendantOfZone=function(e){return this._getOwnerZone(e)===this._root.current},t.prototype._getOwnerZone=function(e){for(var t=Ue(e,bu);t&&t!==this._root.current&&t!==this._getDocument().body;){if(it(t))return t;t=Ue(t,bu)}return t},t.prototype._updateTabIndexes=function(e){!this._activeElement&&this.props.defaultTabbableElement&&"function"===typeof this.props.defaultTabbableElement&&(this._activeElement=this.props.defaultTabbableElement(this._root.current)),!e&&this._root.current&&(this._defaultFocusElement=null,e=this._root.current,this._activeElement&&!Ke(e,this._activeElement)&&(this._activeElement=null)),this._activeElement&&!ot(this._activeElement,void 0,this._inShadowRoot)&&(this._activeElement=null);for(var t=e&&e.children,n=0;t&&n<t.length;n++){var r=t[n];it(r)?"true"===r.getAttribute(lu)&&(this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(du)&&r.setAttribute(du,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(du)&&r.setAttribute(du,"0"))):(r.getAttribute&&"false"===r.getAttribute(lu)&&r.setAttribute(du,"-1"),ot(r,void 0,this._inShadowRoot)?this.props.disabled?r.setAttribute(du,"-1"):this._isInnerZone||(this._activeElement||this._defaultFocusElement)&&this._activeElement!==r?"-1"!==r.getAttribute(du)&&r.setAttribute(du,"-1"):(this._defaultFocusElement=r,"0"!==r.getAttribute(du)&&r.setAttribute(du,"0")):"svg"===r.tagName&&"false"!==r.getAttribute("focusable")&&r.setAttribute("focusable","false")),this._updateTabIndexes(r)}},t.prototype._isContentEditableElement=function(e){return e&&"true"===e.getAttribute("contenteditable")},t.prototype._isElementInput=function(e){return!(!e||!e.tagName||"input"!==e.tagName.toLowerCase()&&"textarea"!==e.tagName.toLowerCase())},t.prototype._shouldInputLoseFocus=function(e,t){if(!this._processingTabKey&&e&&e.type&&yu.indexOf(e.type.toLowerCase())>-1){var n=e.selectionStart,r=n!==e.selectionEnd,o=e.value,i=e.readOnly;if(r||n>0&&!t&&!i||n!==o.length&&t&&!i||this.props.handleTabKey&&(!this.props.shouldInputLoseFocusOnArrowKey||!this.props.shouldInputLoseFocusOnArrowKey(e)))return!1}return!0},t.prototype._shouldWrapFocus=function(e,t){return!this.props.checkForNoWrap||st(e,t)},t.prototype._portalContainsElement=function(e){return e&&!!this._root.current&&Ze(e,this._root.current)},t.prototype._getDocument=function(){return Je(this._root.current)},t.contextType=ar,t.defaultProps={isCircularNavigation:!1,direction:ou.bidirectional,shouldRaiseClicks:!0,"data-tabster":'{"uncontrolled": {}}'},t}(u.Component),Su=wn(),xu=function(e,t){u.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])},ku=function(e,t){t.as;var n=t.disabled,r=t.target,o=t.href,i=(t.theme,t.getStyles,t.styles,t.componentRef,t.underline,y(t,["as","disabled","target","href","theme","getStyles","styles","componentRef","underline"]));return"string"===typeof e?"a"===e?v({target:r,href:n?void 0:o},i):"button"===e?v({type:"button",disabled:n},i):v(v({},i),{disabled:n}):v({target:r,href:o,disabled:n},i)},Pu=u.forwardRef((function(e,t){var n=function(e,t){var n=e.as,r=e.className,o=e.disabled,i=e.href,a=e.onClick,s=e.styles,l=e.theme,c=e.underline,d=u.useRef(null),p=Gl(d,t);xu(e,d),fo(d);var m=Su(s,{className:r,isButton:!i,isDisabled:o,isUnderlined:c,theme:l}),h=n||(i?"a":"button");return{state:{},slots:{root:h},slotProps:{root:v(v({},ku(h,e)),{"aria-disabled":o,className:m.root,onClick:function(e){o?e.preventDefault():a&&a(e)},ref:p})}}}(e,t),r=n.slots,o=n.slotProps;return u.createElement(r.root,v({},o.root))}));Pu.displayName="LinkBase";var Iu,wu={root:"ms-Link"},Eu=Jo(Pu,(function(e){var t,n,r,o,i,a,s,l=e.className,c=e.isButton,d=e.isDisabled,u=e.isUnderlined,p=e.theme,m=p.semanticColors,h=m.link,f=m.linkHovered,g=m.disabledText,v=m.focusBorder,y=os(wu,p);return{root:[y.root,p.fonts.medium,{color:h,outline:"none",fontSize:"inherit",fontWeight:"inherit",textDecoration:u?"underline":"none",selectors:(t={},t[".".concat(io," &:focus, :host(.").concat(io,") &:focus")]={boxShadow:"0 0 0 1px ".concat(v," inset"),outline:"1px auto ".concat(v),selectors:(n={},n[Wa]={outline:"1px solid WindowText"},n)},t[Wa]={borderBottom:"none"},t)},c&&{background:"none",backgroundColor:"transparent",border:"none",cursor:"pointer",display:"inline",margin:0,overflow:"inherit",padding:0,textAlign:"left",textOverflow:"inherit",userSelect:"text",borderBottom:"1px solid transparent",selectors:(r={},r[Wa]={color:"LinkText",forcedColorAdjust:"none"},r)},!c&&{selectors:(o={},o[Wa]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},o)},d&&["is-disabled",{color:g,cursor:"default"},{selectors:(i={"&:link, &:visited":{pointerEvents:"none"}},i[Wa]={color:"GrayText"},i)}],!d&&{selectors:{"&:active, &:hover, &:active:hover":{color:f,textDecoration:"underline",selectors:(a={},a[Wa]={color:"LinkText"},a)},"&:focus":{color:h,selectors:(s={},s[Wa]={color:"LinkText"},s)}}},y.root,l]}}),void 0,{scope:"Link"});function _u(e){return e.canCheck?!(!e.isChecked&&!e.checked):"boolean"===typeof e.isChecked?e.isChecked:"boolean"===typeof e.checked?e.checked:null}function Du(e){return!(!e.subMenuProps&&!e.items)}function Tu(e){return!(!e.isDisabled&&!e.disabled)}function Ru(e){return null!==_u(e)?"menuitemcheckbox":"menuitem"}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.Section=3]="Section"}(Iu||(Iu={}));var Au=function(e){var t=e.item,n=e.classNames,r=t.iconProps;return u.createElement(gd,v({},r,{className:n.icon}))},Mu=function(e){var t=e.item;return e.hasIcons?t.onRenderIcon?t.onRenderIcon(e,Au):Au(e):null},Nu=function(e){var t=e.onCheckmarkClick,n=e.item,r=e.classNames,o=_u(n);if(t){return u.createElement(gd,{iconName:!1!==n.canCheck&&o?"CheckMark":"",className:r.checkmarkIcon,onClick:function(e){return t(n,e)}})}return null},Fu=function(e){var t=e.item,n=e.classNames;return t.text||t.name?u.createElement("span",{className:n.label},t.text||t.name):null},Hu=function(e){var t=e.item,n=e.classNames;return t.secondaryText?u.createElement("span",{className:n.secondaryText},t.secondaryText):null},Ou=function(e){var t=e.item,n=e.classNames,r=e.theme;return Du(t)?u.createElement(gd,v({iconName:Sn(r)?"ChevronLeft":"ChevronRight"},t.submenuIconProps,{className:n.subMenuIcon})):null},Bu=function(e){function t(t){var n=e.call(this,t)||this;return n.openSubMenu=function(){var e=n.props,t=e.item,r=e.openSubMenu,o=e.getSubmenuTarget;if(o){var i=o();Du(t)&&r&&i&&r(t,i)}},n.dismissSubMenu=function(){var e=n.props,t=e.item,r=e.dismissSubMenu;Du(t)&&r&&r()},n.dismissMenu=function(e){var t=n.props.dismissMenu;t&&t(void 0,e)},Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.item,n=e.classNames,r=t.onRenderContent||this._renderLayout;return u.createElement("div",{className:t.split?n.linkContentMenu:n.linkContent},r(this.props,{renderCheckMarkIcon:Nu,renderItemIcon:Mu,renderItemName:Fu,renderSecondaryText:Hu,renderSubMenuIcon:Ou}))},t.prototype._renderLayout=function(e,t){return u.createElement(u.Fragment,null,t.renderCheckMarkIcon(e),t.renderItemIcon(e),t.renderItemName(e),t.renderSecondaryText(e),t.renderSubMenuIcon(e))},t}(u.Component),Lu=Fn((function(e){return De({wrapper:{display:"inline-flex",height:"100%",alignItems:"center"},divider:{width:1,height:"100%",backgroundColor:e.palette.neutralTertiaryAlt}})})),Vu=36,zu=qa(0,639),Wu=Fn((function(e){var t,n,r,o,i,a=e.semanticColors,s=e.fonts,l=e.palette,c=a.menuItemBackgroundHovered,d=a.menuItemTextHovered,u=a.menuItemBackgroundPressed,p=a.bodyDivider;return _e({item:[s.medium,{color:a.bodyText,position:"relative",boxSizing:"border-box"}],divider:{display:"block",height:"1px",backgroundColor:p,position:"relative"},root:[Ya(e),s.medium,{color:a.bodyText,backgroundColor:"transparent",border:"none",width:"100%",height:Vu,lineHeight:Vu,display:"block",cursor:"pointer",padding:"0px 8px 0 4px",textAlign:"left"}],rootDisabled:{color:a.disabledBodyText,cursor:"default",pointerEvents:"none",selectors:(t={},t[Wa]={color:"GrayText",opacity:1},t)},rootHovered:{backgroundColor:c,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:u,selectors:{".ms-ContextualMenu-icon":{color:l.themeDark},".ms-ContextualMenu-submenuIcon":{color:l.neutralPrimary}}},rootExpanded:{backgroundColor:u,color:a.bodyTextChecked,selectors:(n={".ms-ContextualMenu-submenuIcon":(r={},r[Wa]={color:"inherit"},r)},n[Wa]=v({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},linkContent:{whiteSpace:"nowrap",height:"inherit",display:"flex",alignItems:"center",maxWidth:"100%"},anchorLink:{padding:"0px 8px 0 4px",textRendering:"auto",color:"inherit",letterSpacing:"normal",wordSpacing:"normal",textTransform:"none",textIndent:"0px",textShadow:"none",textDecoration:"none",boxSizing:"border-box"},label:{margin:"0 4px",verticalAlign:"middle",display:"inline-block",flexGrow:"1",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"},secondaryText:{color:e.palette.neutralSecondary,paddingLeft:"20px",textAlign:"right"},icon:{display:"inline-block",minHeight:"1px",maxHeight:Vu,fontSize:Oi.medium,width:Oi.medium,margin:"0 4px",verticalAlign:"middle",flexShrink:"0",selectors:(o={},o[zu]={fontSize:Oi.large,width:Oi.large},o)},iconColor:{color:a.menuIcon},iconDisabled:{color:a.disabledBodyText},checkmarkIcon:{color:a.bodySubtext},subMenuIcon:{height:Vu,lineHeight:Vu,color:l.neutralSecondary,textAlign:"center",display:"inline-block",verticalAlign:"middle",flexShrink:"0",fontSize:Oi.small,selectors:(i={":hover":{color:l.neutralPrimary},":active":{color:l.neutralPrimary}},i[zu]={fontSize:Oi.medium},i)},splitButtonFlexContainer:[Ya(e),{display:"flex",height:Vu,flexWrap:"nowrap",justifyContent:"center",alignItems:"flex-start"}]})})),Uu="28px",Ku=qa(0,639),ju=Fn((function(e){var t;return De(Lu(e),{wrapper:{position:"absolute",right:28,selectors:(t={},t[Ku]={right:32},t)},divider:{height:16,width:1}})})),Gu={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"},qu=Fn((function(e,t,n,r,o,i,a,s,l,c,d,u){var p,m,h,f,g=Wu(e),v=os(Gu,e);return De({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(io," &:focus, .").concat(io," &:focus:hover, :host(.").concat(io,") &:focus, :host(.").concat(io,") &:focus:hover")]=g.rootFocused,p[".".concat(io," &:hover, :host(.").concat(io,") &:hover")]={background:"inherit;"},p)}],u],splitPrimary:[g.root,{width:"calc(100% - ".concat(Uu,")")},r&&["is-checked",g.rootChecked],(t||d)&&["is-disabled",g.rootDisabled],!(t||d)&&!r&&[{selectors:(m={":hover":g.rootHovered},m[":hover ~ .".concat(v.splitMenu)]=g.rootHovered,m[":active"]=g.rootPressed,m[".".concat(io," &:focus, .").concat(io," &:focus:hover, :host(.").concat(io,") &:focus, :host(.").concat(io,") &:focus:hover")]=g.rootFocused,m[".".concat(io," &:hover, :host(.").concat(io,") &:hover")]={background:"inherit;"},m)}]],splitMenu:[v.splitMenu,g.root,{flexBasis:"0",padding:"0 8px",minWidth:Uu},n&&["is-expanded",g.rootExpanded],t&&["is-disabled",g.rootDisabled],!t&&!n&&[{selectors:(h={":hover":g.rootHovered,":active":g.rootPressed},h[".".concat(io," &:focus, .").concat(io," &:focus:hover, :host(.").concat(io,") &:focus, :host(.").concat(io,") &:focus:hover")]=g.rootFocused,h[".".concat(io," &:hover, :host(.").concat(io,") &:hover")]={background:"inherit;"},h)}]],anchorLink:g.anchorLink,linkContent:[v.linkContent,g.linkContent],linkContentMenu:[v.linkContentMenu,g.linkContent,{justifyContent:"center"}],icon:[v.icon,i&&g.iconColor,g.icon,l,t&&[v.isDisabled,g.iconDisabled]],iconColor:g.iconColor,checkmarkIcon:[v.checkmarkIcon,i&&g.checkmarkIcon,g.icon,l],subMenuIcon:[v.subMenuIcon,g.subMenuIcon,c,n&&{color:e.palette.neutralPrimary},t&&[g.iconDisabled]],label:[v.label,g.label],secondaryText:[v.secondaryText,g.secondaryText],splitContainer:[g.splitButtonFlexContainer,!t&&!r&&[{selectors:(f={},f[".".concat(io," &:focus, .").concat(io," &:focus:hover, :host(.").concat(io,") &:focus, :host(.").concat(io,") &:focus:hover")]=g.rootFocused,f)}]],screenReaderText:[v.screenReaderText,g.screenReaderText,Qa,{visibility:"hidden"}]})})),Yu=function(e){var t=e.theme,n=e.disabled,r=e.expanded,o=e.checked,i=e.isAnchorLink,a=e.knownIcon,s=e.itemClassName,l=e.dividerClassName,c=e.iconClassName,d=e.subMenuClassName,u=e.primaryDisabled,p=e.className;return qu(t,n,r,o,i,a,s,l,c,d,u,p)},Zu=Jo(Bu,Yu,void 0,{scope:"ContextualMenuItem"}),Ju=function(e){function t(t){var n=e.call(this,t)||this;return n._onItemMouseEnter=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,e.currentTarget)},n._onItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,e.currentTarget)},n._onItemMouseLeave=function(e){var t=n.props,r=t.item,o=t.onItemMouseLeave;o&&o(r,e)},n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;o&&o(r,e)},n._onItemMouseMove=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,e.currentTarget)},n._getSubmenuTarget=function(){},Xr(n),n}return g(t,e),t.prototype.shouldComponentUpdate=function(e){return!pt(e,this.props)},t}(u.Component);function Qu(e,t){return!!fn(e,(function(e){return function(e,t){if(e.key!==t.key)return!1;var n=e.modifierKeys,r=t.modifierKeys;if(!n&&r||n&&!r)return!1;if(n&&r){if(n.length!==r.length)return!1;n=n.sort(),r=r.sort();for(var o=0;o<n.length;o++)if(n[o]!==r[o])return!1}return!0}(e,t)}))}var Xu,$u="data-ktp-target",ep="data-ktp-execute-target",tp="ktp-layer-id";!function(e){e.KEYTIP_ADDED="keytipAdded",e.KEYTIP_REMOVED="keytipRemoved",e.KEYTIP_UPDATED="keytipUpdated",e.PERSISTED_KEYTIP_ADDED="persistedKeytipAdded",e.PERSISTED_KEYTIP_REMOVED="persistedKeytipRemoved",e.PERSISTED_KEYTIP_EXECUTE="persistedKeytipExecute",e.ENTER_KEYTIP_MODE="enterKeytipMode",e.EXIT_KEYTIP_MODE="exitKeytipMode"}(Xu||(Xu={}));var np=function(){function e(){this.keytips={},this.persistedKeytips={},this.sequenceMapping={},this.inKeytipMode=!1,this.shouldEnterKeytipMode=!0,this.delayUpdatingKeytipChange=!1}return e.getInstance=function(){return this._instance},e.prototype.init=function(e){this.delayUpdatingKeytipChange=e},e.prototype.register=function(e,t){void 0===t&&(t=!1);var n=e;t||(n=this.addParentOverflow(e),this.sequenceMapping[n.keySequences.toString()]=n);var r=this._getUniqueKtp(n);if(t?this.persistedKeytips[r.uniqueID]=r:this.keytips[r.uniqueID]=r,this.inKeytipMode||!this.delayUpdatingKeytipChange){var o=t?Xu.PERSISTED_KEYTIP_ADDED:Xu.KEYTIP_ADDED;gt.raise(this,o,{keytip:n,uniqueID:r.uniqueID})}return r.uniqueID},e.prototype.update=function(e,t){var n=this.addParentOverflow(e),r=this._getUniqueKtp(n,t),o=this.keytips[t];o&&(r.keytip.visible=o.keytip.visible,this.keytips[t]=r,delete this.sequenceMapping[o.keytip.keySequences.toString()],this.sequenceMapping[r.keytip.keySequences.toString()]=r.keytip,!this.inKeytipMode&&this.delayUpdatingKeytipChange||gt.raise(this,Xu.KEYTIP_UPDATED,{keytip:r.keytip,uniqueID:r.uniqueID}))},e.prototype.unregister=function(e,t,n){void 0===n&&(n=!1),n?delete this.persistedKeytips[t]:delete this.keytips[t],!n&&delete this.sequenceMapping[e.keySequences.toString()];var r=n?Xu.PERSISTED_KEYTIP_REMOVED:Xu.KEYTIP_REMOVED;!this.inKeytipMode&&this.delayUpdatingKeytipChange||gt.raise(this,r,{keytip:e,uniqueID:t})},e.prototype.enterKeytipMode=function(){gt.raise(this,Xu.ENTER_KEYTIP_MODE)},e.prototype.exitKeytipMode=function(){gt.raise(this,Xu.EXIT_KEYTIP_MODE)},e.prototype.getKeytips=function(){var e=this;return Object.keys(this.keytips).map((function(t){return e.keytips[t].keytip}))},e.prototype.addParentOverflow=function(e){var t=C([],e.keySequences,!0);if(t.pop(),0!==t.length){var n=this.sequenceMapping[t.toString()];if(n&&n.overflowSetSequence)return v(v({},e),{overflowSetSequence:n.overflowSetSequence})}return e},e.prototype.menuExecute=function(e,t){gt.raise(this,Xu.PERSISTED_KEYTIP_EXECUTE,{overflowButtonSequences:e,keytipSequences:t})},e.prototype._getUniqueKtp=function(e,t){return void 0===t&&(t=Cr()),{keytip:v({},e),uniqueID:t}},e._instance=new e,e}();function rp(e){return e.reduce((function(e,t){return e+"-"+t.split("").join("-")}),"ktp")}function op(e,t){var n=t.length,r=C([],t,!0).pop();return function(e,t,n){var r=e.slice();return r.splice(t,0,n),r}(C([],e,!0),n-1,r)}function ip(e){return'[data-ktp-target="'+rp(e)+'"]'}function ap(e){var t=u.useRef(),n=e.keytipProps?v({disabled:e.disabled},e.keytipProps):void 0,r=zl(np.getInstance()),o=Yl(e);ni((function(){t.current&&n&&((null===o||void 0===o?void 0:o.keytipProps)!==e.keytipProps||(null===o||void 0===o?void 0:o.disabled)!==e.disabled)&&r.update(n,t.current)})),ni((function(){return n&&(t.current=r.register(n)),function(){n&&r.unregister(n,t.current)}}),[]);var i={ariaDescribedBy:e.ariaDescribedBy,keytipId:void 0};return n&&(i=function(e,t,n){var r=e.addParentOverflow(t),o=mn(n,function(e){var t=" ktp-layer-id";return e.length?t+" "+rp(e):t}(r.keySequences)),i=C([],r.keySequences,!0);r.overflowSetSequence&&(i=op(i,r.overflowSetSequence));var a=rp(i);return{ariaDescribedBy:o,keytipId:a}}(r,n,e.ariaDescribedBy)),i}var sp=function(e){var t,n=e.children,r=ap(y(e,["children"])),o=r.keytipId,i=r.ariaDescribedBy;return n(((t={})[$u]=o,t[ep]=o,t["aria-describedby"]=i,t))};var lp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._anchor=u.createRef(),t._getMemoizedMenuButtonKeytipProps=Fn((function(e){return v(v({},e),{hasMenu:!0})})),t._getSubmenuTarget=function(){return t._anchor.current?t._anchor.current:void 0},t._onItemClick=function(e){var n=t.props,r=n.item,o=n.onItemClick;o&&o(r,e)},t._renderAriaDescription=function(e,n){return e?u.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t}return g(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,o=t.index,i=t.focusableElementIndex,a=t.totalItemCount,s=t.hasCheckmarks,l=t.hasIcons,c=t.expandedMenuItemKey,d=t.onItemClick,p=t.openSubMenu,m=t.dismissSubMenu,h=t.dismissMenu,f=Zu;this.props.item.contextualMenuItemAs&&(f=Vn(this.props.item.contextualMenuItemAs,f)),this.props.contextualMenuItemAs&&(f=Vn(this.props.contextualMenuItemAs,f));var g=n.rel;n.target&&"_blank"===n.target.toLowerCase()&&(g=g||"nofollow noopener noreferrer");var y=Du(n),b=qr(n,Rr),C=Tu(n),S=n.itemProps,x=n.ariaDescription,k=n.keytipProps;k&&y&&(k=this._getMemoizedMenuButtonKeytipProps(k)),x&&(this._ariaDescriptionId=Cr());var P=mn(n.ariaDescribedBy,x?this._ariaDescriptionId:void 0,b["aria-describedby"]),I={"aria-describedby":P};return u.createElement("div",null,u.createElement(sp,{keytipProps:n.keytipProps,ariaDescribedBy:P,disabled:C},(function(t){return u.createElement("a",v({},I,b,t,{ref:e._anchor,href:n.href,target:n.target,rel:g,className:r.root,role:"menuitem","aria-haspopup":y||void 0,"aria-expanded":y?n.key===c:void 0,"aria-posinset":i+1,"aria-setsize":a,"aria-disabled":Tu(n),style:n.style,onClick:e._onItemClick,onMouseEnter:e._onItemMouseEnter,onMouseLeave:e._onItemMouseLeave,onMouseMove:e._onItemMouseMove,onKeyDown:y?e._onItemKeyDown:void 0}),u.createElement(f,v({componentRef:n.componentRef,item:n,classNames:r,index:o,onCheckmarkClick:s&&d?d:void 0,hasIcons:l,openSubMenu:p,dismissSubMenu:m,dismissMenu:h,getSubmenuTarget:e._getSubmenuTarget},S)),e._renderAriaDescription(x,r.screenReaderText))})))},t}(Ju),cp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._btn=u.createRef(),t._getMemoizedMenuButtonKeytipProps=Fn((function(e){return v(v({},e),{hasMenu:!0})})),t._renderAriaDescription=function(e,n){return e?u.createElement("span",{id:t._ariaDescriptionId,className:n},e):null},t._getSubmenuTarget=function(){return t._btn.current?t._btn.current:void 0},t}return g(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.item,r=t.classNames,o=t.index,i=t.focusableElementIndex,a=t.totalItemCount,s=t.hasCheckmarks,l=t.hasIcons,c=t.contextualMenuItemAs,d=t.expandedMenuItemKey,p=t.onItemMouseDown,m=t.onItemClick,h=t.openSubMenu,f=t.dismissSubMenu,g=t.dismissMenu,y=Zu;n.contextualMenuItemAs&&(y=Vn(n.contextualMenuItemAs,y)),c&&(y=Vn(c,y));var b=_u(n),C=null!==b,S=Ru(n),x=Du(n),k=n.itemProps,P=n.ariaLabel,I=n.ariaDescription,w=qr(n,Ar);delete w.disabled;var E=n.role||S;I&&(this._ariaDescriptionId=Cr());var _=mn(n.ariaDescribedBy,I?this._ariaDescriptionId:void 0,w["aria-describedby"]),D={className:r.root,onClick:this._onItemClick,onKeyDown:x?this._onItemKeyDown:void 0,onMouseEnter:this._onItemMouseEnter,onMouseLeave:this._onItemMouseLeave,onMouseDown:function(e){return p?p(n,e):void 0},onMouseMove:this._onItemMouseMove,href:n.href,title:n.title,"aria-label":P,"aria-describedby":_,"aria-haspopup":x||void 0,"aria-expanded":x?n.key===d:void 0,"aria-posinset":i+1,"aria-setsize":a,"aria-disabled":Tu(n),"aria-checked":"menuitemcheckbox"!==E&&"menuitemradio"!==E||!C?void 0:!!b,"aria-selected":"menuitem"===E&&C?!!b:void 0,role:E,style:n.style},T=n.keytipProps;return T&&x&&(T=this._getMemoizedMenuButtonKeytipProps(T)),u.createElement(sp,{keytipProps:T,ariaDescribedBy:_,disabled:Tu(n)},(function(t){return u.createElement("button",v({ref:e._btn},w,D,t),u.createElement(y,v({componentRef:n.componentRef,item:n,classNames:r,index:o,onCheckmarkClick:s&&m?m:void 0,hasIcons:l,openSubMenu:h,dismissSubMenu:f,dismissMenu:g,getSubmenuTarget:e._getSubmenuTarget},k)),e._renderAriaDescription(I,r.screenReaderText))}))},t}(Ju),dp=wn(),up=u.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.getClassNames,i=e.className,a=dp(n,{theme:r,getClassNames:o,className:i});return u.createElement("span",{className:a.wrapper,ref:t},u.createElement("span",{className:a.divider}))}));up.displayName="VerticalDividerBase";var pp,mp=Jo(up,(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"}),hp=function(e){function t(t){var n=e.call(this,t)||this;return n._getMemoizedMenuButtonKeytipProps=Fn((function(e){return v(v({},e),{hasMenu:!0})})),n._onItemKeyDown=function(e){var t=n.props,r=t.item,o=t.onItemKeyDown;e.which===Wt?(n._executeItemClick(e),e.preventDefault(),e.stopPropagation()):o&&o(r,e)},n._getSubmenuTarget=function(){return n._splitButton},n._renderAriaDescription=function(e,t){return e?u.createElement("span",{id:n._ariaDescriptionId,className:t},e):null},n._onItemMouseEnterPrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(v(v({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseEnterIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseEnter;o&&o(r,e,n._splitButton)},n._onItemMouseMovePrimary=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(v(v({},r),{subMenuProps:void 0,items:void 0}),e,n._splitButton)},n._onItemMouseMoveIcon=function(e){var t=n.props,r=t.item,o=t.onItemMouseMove;o&&o(r,e,n._splitButton)},n._onIconItemClick=function(e){var t=n.props,r=t.item,o=t.onItemClickBase;o&&o(r,e,n._splitButton?n._splitButton:e.currentTarget)},n._executeItemClick=function(e){var t=n.props,r=t.item,o=t.executeItemClick,i=t.onItemClick;if(!r.disabled&&!r.isDisabled)return n._processingTouch&&!r.canCheck&&i?i(r,e):void(o&&o(r,e))},n._onTouchStart=function(e){n._splitButton&&!("onpointerdown"in n._splitButton)&&n._handleTouchAndPointerEvent(e)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(e),e.preventDefault(),e.stopImmediatePropagation())},n._async=new ze(n),n._events=new gt(n),n._dismissLabelId=Cr(),n}return g(t,e),t.prototype.componentDidMount=function(){this._splitButton&&"onpointerdown"in this._splitButton&&this._events.on(this._splitButton,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e,t=this,n=this.props,r=n.item,o=n.classNames,i=n.index,a=n.focusableElementIndex,s=n.totalItemCount,l=n.hasCheckmarks,c=n.hasIcons,d=n.onItemMouseLeave,p=n.expandedMenuItemKey,m=Du(r),h=r.keytipProps;h&&(h=this._getMemoizedMenuButtonKeytipProps(h));var f=r.ariaDescription;f&&(this._ariaDescriptionId=Cr());var g=null!==(e=_u(r))&&void 0!==e?e:void 0;return u.createElement(sp,{keytipProps:h,disabled:Tu(r)},(function(e){return u.createElement("div",{"data-ktp-target":e["data-ktp-target"],ref:function(e){return t._splitButton=e},role:Ru(r),"aria-label":r.ariaLabel,className:o.splitContainer,"aria-disabled":Tu(r),"aria-expanded":m?r.key===p:void 0,"aria-haspopup":!0,"aria-describedby":mn(r.ariaDescribedBy,f?t._ariaDescriptionId:void 0,e["aria-describedby"]),"aria-checked":g,"aria-posinset":a+1,"aria-setsize":s,onMouseEnter:t._onItemMouseEnterPrimary,onMouseLeave:d?d.bind(t,v(v({},r),{subMenuProps:null,items:null})):void 0,onMouseMove:t._onItemMouseMovePrimary,onKeyDown:t._onItemKeyDown,onClick:t._executeItemClick,onTouchStart:t._onTouchStart,tabIndex:0,"data-is-focusable":!0,"aria-roledescription":r["aria-roledescription"]},t._renderSplitPrimaryButton(r,o,i,l,c),t._renderSplitDivider(r),t._renderSplitIconButton(r,o,i,e),t._renderAriaDescription(f,o.screenReaderText))}))},t.prototype._renderSplitPrimaryButton=function(e,t,n,r,o){var i=this.props,a=i.contextualMenuItemAs,s=void 0===a?Zu:a,l=i.onItemClick,c={key:e.key,disabled:Tu(e)||e.primaryDisabled,name:e.name,text:e.text||e.name,secondaryText:e.secondaryText,className:t.splitPrimary,canCheck:e.canCheck,isChecked:e.isChecked,checked:e.checked,iconProps:e.iconProps,id:this._dismissLabelId,onClick:e.onClick,onRenderIcon:e.onRenderIcon,data:e.data,"data-is-focusable":!1},d=e.itemProps;return u.createElement("button",v({},qr(c,Ar)),u.createElement(s,v({"data-is-focusable":!1,item:c,classNames:t,index:n,onCheckmarkClick:r&&l?l:void 0,hasIcons:o},d)))},t.prototype._renderSplitDivider=function(e){var t=e.getSplitButtonVerticalDividerClassNames||ju;return u.createElement(mp,{getClassNames:t})},t.prototype._renderSplitIconButton=function(e,t,n,r){var o=this.props,i=o.onItemMouseLeave,a=o.onItemMouseDown,s=o.openSubMenu,l=o.dismissSubMenu,c=o.dismissMenu,d=Zu;this.props.item.contextualMenuItemAs&&(d=Vn(this.props.item.contextualMenuItemAs,d)),this.props.contextualMenuItemAs&&(d=Vn(this.props.contextualMenuItemAs,d));var p={onClick:this._onIconItemClick,disabled:Tu(e),className:t.splitMenu,subMenuProps:e.subMenuProps,submenuIconProps:e.submenuIconProps,split:!0,key:e.key,"aria-labelledby":this._dismissLabelId},m=v(v({},qr(p,Ar)),{onMouseEnter:this._onItemMouseEnterIcon,onMouseLeave:i?i.bind(this,e):void 0,onMouseDown:function(t){return a?a(e,t):void 0},onMouseMove:this._onItemMouseMoveIcon,"data-is-focusable":!1,"data-ktp-execute-target":r["data-ktp-execute-target"],"aria-haspopup":!0}),h=e.itemProps;return u.createElement("button",v({},m),u.createElement(d,v({componentRef:e.componentRef,item:p,classNames:t,index:n,hasIcons:!1,openSubMenu:s,dismissSubMenu:l,dismissMenu:c,getSubmenuTarget:this._getSubmenuTarget},h)))},t.prototype._handleTouchAndPointerEvent=function(e){var t=this,n=this.props.onTap;n&&n(e),this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){t._processingTouch=!1,t._lastTouchTimeoutId=void 0}),500)},t}(Ju),fp=function(e){function t(t){var n=e.call(this,t)||this;return n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n}return g(t,e),t.prototype._updateComposedComponentRef=function(e){var t;this._composedComponentInstance=e,e?this._hoisted=function(e,t,n){void 0===n&&(n=Qr);var r=[],o=function(o){"function"!==typeof t[o]||void 0!==e[o]||n&&-1!==n.indexOf(o)||(r.push(o),e[o]=function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];t[o].apply(t,e)})};for(var i in t)o(i);return r}(this,e):this._hoisted&&(t=this,this._hoisted.forEach((function(e){return delete t[e]})))},t}(u.Component);!function(e){e[e.small=0]="small",e[e.medium=1]="medium",e[e.large=2]="large",e[e.xLarge=3]="xLarge",e[e.xxLarge=4]="xxLarge",e[e.xxxLarge=5]="xxxLarge",e[e.unknown=999]="unknown"}(pp||(pp={}));var gp,vp,yp=[479,639,1023,1365,1919,99999999];function bp(){var e;return null!==(e=null!==gp&&void 0!==gp?gp:vp)&&void 0!==e?e:pp.large}function Cp(e){var t,n=(t=function(t){function n(e){var n=t.call(this,e)||this;return n._onResize=function(){var e=xp(n.context.window);e!==n.state.responsiveMode&&n.setState({responsiveMode:e})},n._events=new gt(n),n._updateComposedComponentRef=n._updateComposedComponentRef.bind(n),n.state={responsiveMode:bp()},n}return g(n,t),n.prototype.componentDidMount=function(){this._events.on(this.context.window,"resize",this._onResize),this._onResize()},n.prototype.componentWillUnmount=function(){this._events.dispose()},n.prototype.render=function(){var t=this.state.responsiveMode;return t===pp.unknown?null:u.createElement(e,v({ref:this._updateComposedComponentRef,responsiveMode:t},this.props))},n}(fp),t.contextType=dr,t);return Xn(e,n)}function Sp(e){try{return e.document.documentElement.clientWidth}catch(mE){return e.innerWidth}}function xp(e){var t=pp.small;if(e){try{for(;Sp(e)>yp[t];)t++}catch(mE){t=bp()}vp=t}else{if(void 0===gp)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=gp}return t}var kp=function(e,t){var n=u.useState(bp()),r=n[0],o=n[1],i=u.useCallback((function(){var t=xp(Ve(e.current));r!==t&&o(t)}),[e,r]);return ql(ur(),"resize",i),u.useEffect((function(){void 0===t&&i()}),[t]),null!==t&&void 0!==t?t:r},Pp=u.createContext({}),Ip=wn(),wp=wn(),Ep={items:[],shouldFocusOnMount:!0,gapSpace:0,directionalHint:Ys,beakWidth:16};function _p(e){for(var t=0,n=0,r=e;n<r.length;n++){var o=r[n];if(o.itemType!==Iu.Divider&&o.itemType!==Iu.Header)t+=o.customOnRenderListLength?o.customOnRenderListLength:1}return t}function Dp(e,t){var n=null===t||void 0===t?void 0:t.target,r=e.subMenuProps?e.subMenuProps.items:e.items;if(r){for(var o=[],i=0,a=r;i<a.length;i++){var s=a[i];if(s.preferMenuTargetAsEventTarget){var l=s.onClick,c=y(s,["onClick"]);o.push(v(v({},c),{onClick:Lp(l,n)}))}else o.push(s)}return o}}var Tp="ContextualMenu",Rp=Fn((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return Re.apply(void 0,C([t,Yu],e,!1))}}));function Ap(e,t){var n=e.hidden,r=e.items,o=e.theme,i=e.className,a=e.id,s=e.target,l=u.useState(),c=l[0],d=l[1],p=u.useState(),m=p[0],h=p[1],f=u.useState(),g=f[0],v=f[1],y=jl(Tp,a),b=u.useCallback((function(){v(void 0),d(void 0),h(void 0)}),[]),C=u.useCallback((function(e,t,n){var r=e.key;c!==r&&(t.focus(),v(n),d(r),h(t))}),[c]);u.useEffect((function(){n&&b()}),[n,b]);var S=function(e,t){var n=u.useRef(!1);return u.useEffect((function(){return n.current=!0,function(){n.current=!1}}),[]),function(r,o){o?e(r,o):n.current&&t()}}(t,b);return[c,C,function(){var e=Bp(c,r),t=null;if(e&&(t={items:Dp(e,{target:s}),target:m,onDismiss:S,isSubMenu:!0,id:y,shouldFocusOnMount:!0,shouldFocusOnContainer:g,directionalHint:Sn(o)?Zs:Xs,className:i,gapSpace:0,isBeakVisible:!1},e.subMenuProps&&mt(t,e.subMenuProps),e.preferMenuTargetAsEventTarget)){var n=e.onItemClick;t.onItemClick=Lp(n,s)}return t},S]}function Mp(e,t,n,r){var o=e.theme,i=e.isSubMenu,a=e.focusZoneProps,s=void 0===a?{}:a,l=s.checkForNoWrap,c=s.direction,d=void 0===c?ou.vertical:c,p=u.useRef(),m=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===Gt||function(e){var t=Sn(o)?en:Xt;return!(e.which!==t||!i)&&!(d!==ou.vertical&&(!l||st(e.target,"data-no-horizontal-wrap")))}(e)||e.which===$t&&(e.altKey||e.metaKey)},f=function(e){p.current=Fp(e);var t=e.which===Gt&&(Oo()||No());return m(e,h,t)},g=function(e){var t=p.current&&Fp(e);return p.current=!1,!!t&&!(No()||Oo())};return[f,function(e){return m(e,g,!0)},function(e){if(!f(e)&&n.current){var t=!(!e.altKey&&!e.metaKey),r=e.which===$t,o=e.which===tn;if(!t&&(r||o)){var i=r?Xe(n.current,n.current.lastChild,!0):Qe(n.current,n.current.firstChild,!0);i&&(i.focus(),e.preventDefault(),e.stopPropagation())}}},function(e,t){var n=Sn(o)?Xt:en;e.disabled||t.which!==n&&t.which!==Wt&&(t.which!==tn||!t.altKey&&!t.metaKey)||(r(e,t.currentTarget),t.preventDefault())}]}var Np=u.memo(u.forwardRef((function(e,t){var n,r=$o(Ep,e),o=(r.ref,y(r,["ref"])),i=u.useRef(null),a=Vl(),s=jl(Tp,o.id);ec({name:Tp,props:o,deprecations:{getMenuClassNames:"styles"}});var l=function(e,t){var n;return null===(n=o.onDismiss)||void 0===n?void 0:n.call(o,e,t)},c=Ql(o.target,i),d=c[0],p=c[1],m=function(e,t,n){var r=e.hidden,o=e.onRestoreFocus,i=u.useRef(),a=u.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 ni((function(){var e,o;if(r)i.current&&(a({originalElement:i.current,containsFocus:!0,documentContainsFocus:(null===(o=Je())||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]}(o,p,i)[0],h=Ap(o,l),f=h[0],g=h[1],b=h[2],C=h[3],S=function(e){var t=e.delayUpdateFocusOnHover,n=e.hidden,r=u.useRef(!t),o=u.useRef(!1);u.useEffect((function(){r.current=!t,o.current=!n&&!t&&o.current}),[t,n]);var i=u.useCallback((function(){t&&(r.current=!1)}),[t]);return[r,o,i]}(o),x=S[0],k=S[1],P=S[2],I=function(e){var t=u.useRef(!0),n=u.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]}(a),w=I[0],E=I[1],_=function(e,t){var n=e.subMenuHoverDelay,r=void 0===n?250:n,o=u.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]}(o,a),D=_[0],T=_[1],R=_[2],A=kp(i,o.responsiveMode);!function(e,t){var n=e.hidden,r=void 0!==n&&n,o=e.onMenuDismissed,i=e.onMenuOpened,a=Yl(r),s=u.useRef(i),l=u.useRef(o),c=u.useRef(e);s.current=i,l.current=o,c.current=e,u.useEffect((function(){var e,t;r&&!1===a?null===(e=l.current)||void 0===e||e.call(l,c.current):r||!1===a||null===(t=s.current)||void 0===t||t.call(s,c.current)}),[r,a]),u.useEffect((function(){return function(){var e;return null===(e=l.current)||void 0===e?void 0:e.call(l,c.current)}}),[])}(o);var M=Mp(o,l,i,g),N=M[0],F=M[1],H=M[2],O=M[3],B=function(e,t,n,r,o,i,a,s,l,c,d,u,p){var m=e.target,h=function(){return!t.current||!i.current},f=function(e,t,n){var r=n||t.currentTarget;e.key!==a&&(c(),void 0===a&&r.focus(),Du(e)?(t.stopPropagation(),l((function(){r.focus(),d(e,r,!0)}))):l((function(){u(t),r.focus()})))},g=function(t,n,r){var o=Dp(t,{target:m});if(c(),Du(t)||o&&o.length){if(t.key!==a){var i="boolean"===typeof e.shouldFocusOnContainer?e.shouldFocusOnContainer:"mouse"===n.nativeEvent.pointerType;d(t,r,i)}}else v(t,n);n.stopPropagation(),n.preventDefault()},v=function(t,n){if(!t.disabled&&!t.isDisabled){t.preferMenuTargetAsEventTarget&&Vp(n,m);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),h()||f(e,t,n)},function(e,a,s){var l=a.currentTarget;o.current&&(i.current=!0,t.current&&void 0===n.current&&l!==(null===r||void 0===r?void 0:r.document.activeElement)&&f(e,a,s))},function(e,t){var n;if(!h()&&(c(),void 0===a))if(s.current.setActive)try{s.current.setActive()}catch(mE){}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]}(o,E,R,p,x,k,f,i,T,D,g,C,l),L=B[0],V=B[1],z=B[2],W=B[3],U=B[4],K=B[5],j=B[6],G=function(e,t,n){var r=0,o=e.items,i=e.totalItemCount,a=e.hasCheckmarks,s=e.hasIcons;return u.createElement("ul",{className:t.list,onKeyDown:N,onKeyUp:F,role:"presentation"},o.map((function(e,n){var o=q(e,n,r,i,a,s,t);if(e.itemType!==Iu.Divider&&e.itemType!==Iu.Header){var l=e.customOnRenderListLength?e.customOnRenderListLength:1;r+=l}return o})))},q=function(e,t,n,r,i,a,s){var l,c,d=[],p=e.iconProps||{iconName:"None"},m=e.getItemClassNames,h=e.itemProps,g=h?h.styles:void 0,v=e.itemType===Iu.Divider?e.className:void 0,y=e.submenuIconProps?e.submenuIconProps.className:"";if(m)c=m(o.theme,Tu(e),f===e.key,!!_u(e),!!e.href,"None"!==p.iconName,e.className,v,p.className,y,e.primaryDisabled);else{var b={theme:o.theme,disabled:Tu(e),expanded:f===e.key,checked:!!_u(e),isAnchorLink:!!e.href,knownIcon:"None"!==p.iconName,itemClassName:e.className,dividerClassName:v,iconClassName:p.className,subMenuClassName:y,primaryDisabled:e.primaryDisabled};c=wp(Rp(null===(l=s.subComponentStyles)||void 0===l?void 0:l.menuItem,g),b)}switch("-"!==e.text&&"-"!==e.name||(e.itemType=Iu.Divider),e.itemType){case Iu.Divider:d.push(J(t,c));break;case Iu.Header:d.push(J(t,c));var C=X(e,c,s,t,i,a);d.push(Z(C,e.key||t,c,e.title));break;case Iu.Section:d.push(Y(e,c,s,t,i,a));break;default:var S=function(){return Q(e,c,t,n,r,i,a)},x=o.onRenderContextualMenuItem?o.onRenderContextualMenuItem(e,S):S();d.push(Z(x,e.key||t,c,e.title))}return u.createElement(u.Fragment,{key:e.key},d)},Y=function(e,t,n,r,o,i){var a=e.sectionProps;if(a){var l,c;if(a.title){var d=void 0,p="";if("string"===typeof a.title){var m=s+a.title.replace(/\s/g,"");d={key:"section-".concat(a.title,"-title"),itemType:Iu.Header,text:a.title,id:m},p=m}else{var h=a.title.id||s+a.title.key.replace(/\s/g,"");d=v(v({},a.title),{id:h}),p=h}d&&(c={role:"group","aria-labelledby":p},l=X(d,t,n,r,o,i))}if(a.items&&a.items.length>0){var f=0;return u.createElement("li",{role:"presentation",key:a.key||e.key||"section-".concat(r)},u.createElement("div",v({},c),u.createElement("ul",{className:n.list,role:"presentation"},a.topDivider&&J(r,t,!0,!0),l&&Z(l,e.key||r,t,e.title),a.items.map((function(e,t){var r=q(e,t,f,_p(a.items),o,i,n);if(e.itemType!==Iu.Divider&&e.itemType!==Iu.Header){var s=e.customOnRenderListLength?e.customOnRenderListLength:1;f+=s}return r})),a.bottomDivider&&J(r,t,!1,!0))))}}},Z=function(e,t,n,r){return u.createElement("li",{role:"presentation",title:r,key:t,className:n.item},e)},J=function(e,t,n,r){return r||e>0?u.createElement("li",{role:"separator",key:"separator-"+e+(void 0===n?"":n?"-top":"-bottom"),className:t.divider,"aria-hidden":"true"}):null},Q=function(e,t,n,r,i,a,s){if(e.onRender)return e.onRender(v({"aria-posinset":r+1,"aria-setsize":i},e),l);var c={item:e,classNames:t,index:n,focusableElementIndex:r,totalItemCount:i,hasCheckmarks:a,hasIcons:s,contextualMenuItemAs:o.contextualMenuItemAs,onItemMouseEnter:L,onItemMouseLeave:z,onItemMouseMove:V,onItemMouseDown:Hp,executeItemClick:K,onItemKeyDown:O,expandedMenuItemKey:f,openSubMenu:g,dismissSubMenu:C,dismissMenu:l};if(e.href){var d=lp;return e.contextualMenuItemWrapperAs&&(d=Vn(e.contextualMenuItemWrapperAs,d)),u.createElement(d,v({},c,{onItemClick:U}))}if(e.split&&Du(e)){var p=hp;return e.contextualMenuItemWrapperAs&&(p=Vn(e.contextualMenuItemWrapperAs,p)),u.createElement(p,v({},c,{onItemClick:W,onItemClickBase:j,onTap:D}))}var m=cp;return e.contextualMenuItemWrapperAs&&(m=Vn(e.contextualMenuItemWrapperAs,m)),u.createElement(m,v({},c,{onItemClick:W,onItemClickBase:j}))},X=function(e,t,n,r,i,a){var s=Zu;e.contextualMenuItemAs&&(s=Vn(e.contextualMenuItemAs,s)),o.contextualMenuItemAs&&(s=Vn(o.contextualMenuItemAs,s));var l=e.itemProps,c=e.id,d=l&&qr(l,Gr);return u.createElement("div",v({id:c,className:n.header},d,{style:e.style}),u.createElement(s,v({item:e,classNames:t,index:r,onCheckmarkClick:i?W:void 0,hasIcons:a},l)))},$=o.isBeakVisible,ee=o.items,te=o.labelElementId,ne=o.id,re=o.className,oe=o.beakWidth,ie=o.directionalHint,ae=o.directionalHintForRTL,se=o.alignTargetEdge,le=o.gapSpace,ce=o.coverTarget,de=o.ariaLabel,ue=o.doNotLayer,pe=o.target,me=o.bounds,he=o.useTargetWidth,fe=o.useTargetAsMinWidth,ge=o.directionalHintFixed,ve=o.shouldFocusOnMount,ye=o.shouldFocusOnContainer,be=o.title,Ce=o.styles,Se=o.theme,xe=o.calloutProps,ke=o.onRenderSubMenu,Pe=void 0===ke?Op:ke,Ie=o.onRenderMenuList,we=void 0===Ie?function(e,t){return G(e,De)}:Ie,Ee=o.focusZoneProps,_e=o.getMenuClassNames,De=_e?_e(Se,re):Ip(Ce,{theme:Se,className:re}),Te=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===Iu.Section&&o.sectionProps&&e(o.sectionProps.items))return!0}return!1}(ee);var Re,Ae=v(v({direction:ou.vertical,handleTabKey:iu,isCircularNavigation:!0,"data-tabster":'{"uncontrolled": {}, "focusable": { "excludeFromMover": true }}'},Ee),{className:Wn(De.root,null===(n=o.focusZoneProps)||void 0===n?void 0:n.className)}),Me=function(e){return e.some((function(e){return!!e.canCheck||!(!e.sectionProps||!e.sectionProps.items.some((function(e){return!0===e.canCheck})))}))}(ee),Ne=f&&!0!==o.hidden?b():null;$=void 0===$?A<=pp.medium:$;var Fe=d.current;if((he||fe)&&Fe&&Fe.offsetWidth){var He=Fe.getBoundingClientRect().width-2;he?Re={width:He}:fe&&(Re={minWidth:He})}if(ee&&ee.length>0){var Oe=_p(ee),Be=De.subComponentStyles?De.subComponentStyles.callout:void 0;return u.createElement(Pp.Consumer,null,(function(e){return u.createElement(Wc,v({styles:Be,onRestoreFocus:m},xe,{target:pe||e.target,isBeakVisible:$,beakWidth:oe,directionalHint:ie,directionalHintForRTL:ae,gapSpace:le,coverTarget:ce,doNotLayer:ue,className:Wn("ms-ContextualMenu-Callout",xe&&xe.className),setInitialFocus:ve,onDismiss:o.onDismiss||e.onDismiss,onScroll:w,bounds:me,directionalHintFixed:ge,alignTargetEdge:se,hidden:o.hidden||e.hidden,ref:t}),u.createElement("div",{style:Re,ref:i,id:ne,className:De.container,tabIndex:ye?0:-1,onKeyDown:H,onKeyUp:F,onFocusCapture:P,"aria-label":de,"aria-labelledby":te,role:"menu"},be&&u.createElement("div",{className:De.title}," ",be," "),ee&&ee.length?function(e,t){var n=o.focusZoneAs,r=void 0===n?Cu:n;return u.createElement(r,v({},t),e)}(we({ariaLabel:de,items:ee,totalItemCount:Oe,hasCheckmarks:Me,hasIcons:Te,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,De)},labelElementId:te},(function(e,t){return G(e,De)})),Ae):null,Ne&&Pe(Ne,Op)),u.createElement(go,null))}))}return null})),(function(e,t){return!(t.shouldUpdateWhenHidden||!e.hidden||!t.hidden)||pt(e,t)}));function Fp(e){return e.which===jt||"Meta"===e.key}function Hp(e,t){var n;null===(n=e.onMouseDown)||void 0===n||n.call(e,e,t)}function Op(e,t){throw Error("ContextualMenuBase: onRenderSubMenu callback is null or undefined. Please ensure to set `onRenderSubMenu` property either manually or with `styled` helper.")}function Bp(e,t){for(var n=0,r=t;n<r.length;n++){var o=r[n];if(o.itemType===Iu.Section&&o.sectionProps){var i=Bp(e,o.sectionProps.items);if(i)return i}else if(o.key&&o.key===e)return o}}function Lp(e,t){return e?function(n,r){return Vp(n,t),e(n,r)}:e}function Vp(e,t){e&&t&&(e.persist(),t instanceof Event?e.target=t.target:t instanceof Element&&(e.target=t))}Np.displayName="ContextualMenuBase";var zp={root:"ms-ContextualMenu",container:"ms-ContextualMenu-container",list:"ms-ContextualMenu-list",header:"ms-ContextualMenu-header",title:"ms-ContextualMenu-title",isopen:"is-open"};function Wp(e){return u.createElement(Up,v({},e))}var Up=Jo(Np,(function(e){var t=e.className,n=e.theme,r=os(zp,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:Hi.semibold,color:i.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:Vu,lineHeight:Vu,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?Lo(e.onRenderSubMenu,Wp):Wp}}),{scope:"ContextualMenu"}),Kp=Up;Kp.displayName="ContextualMenu";var jp,Gp,qp={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"},Yp=Fn((function(e,t,n,r,o,i,a,s,l,c,d){var u,p,m=os(qp,e||{}),h=c&&!d;return De(t.__shadowConfig__,{root:[m.msButton,t.root,r,l&&["is-checked",t.rootChecked],h&&["is-expanded",t.rootExpanded,(u={},u[":hover .".concat(m.msButtonIcon)]=t.iconExpandedHovered,u[":hover .".concat(m.msButtonMenuIcon)]=t.menuIconExpandedHovered||t.rootExpandedHovered,u[":hover"]=t.rootExpandedHovered,u)],s&&[qp.msButtonHasMenu,t.rootHasMenu],a&&["is-disabled",t.rootDisabled],!a&&!h&&!l&&(p={":hover":t.rootHovered},p[":hover .".concat(m.msButtonLabel)]=t.labelHovered,p[":hover .".concat(m.msButtonIcon)]=t.iconHovered,p[":hover .".concat(m.msButtonDescription)]=t.descriptionHovered,p[":hover .".concat(m.msButtonMenuIcon)]=t.menuIconHovered,p[":focus"]=t.rootFocused,p[":active"]=t.rootPressed,p[":active .".concat(m.msButtonIcon)]=t.iconPressed,p[":active .".concat(m.msButtonDescription)]=t.descriptionPressed,p[":active .".concat(m.msButtonMenuIcon)]=t.menuIconPressed,p),a&&l&&[t.rootCheckedDisabled],!a&&l&&{":hover":t.rootCheckedHovered,":active":t.rootCheckedPressed},n],flexContainer:[m.msButtonFlexContainer,t.flexContainer],textContainer:[m.msButtonTextContainer,t.textContainer],icon:[m.msButtonIcon,o,t.icon,h&&t.iconExpanded,l&&t.iconChecked,a&&t.iconDisabled],label:[m.msButtonLabel,t.label,l&&t.labelChecked,a&&t.labelDisabled],menuIcon:[m.msButtonMenuIcon,i,t.menuIcon,l&&t.menuIconChecked,a&&!d&&t.menuIconDisabled,!a&&!h&&!l&&{":hover":t.menuIconHovered,":active":t.menuIconPressed},h&&["is-expanded",t.menuIconExpanded]],description:[m.msButtonDescription,t.description,l&&t.descriptionChecked,a&&t.descriptionDisabled],screenReaderText:[m.msButtonScreenReaderText,t.screenReaderText]})})),Zp="ms-SplitButton-divider",Jp=Fn((function(e,t,n,r,o){return{root:we(e.splitButtonMenuButton,n&&[e.splitButtonMenuButtonExpanded],t&&[e.splitButtonMenuButtonDisabled],r&&!t&&[e.splitButtonMenuButtonChecked],o&&!t&&[{":focus":e.splitButtonMenuFocused}]),splitButtonContainer:we(e.splitButtonContainer,!t&&r&&[e.splitButtonContainerChecked,{":hover":e.splitButtonContainerCheckedHovered}],!t&&!r&&[{":hover":e.splitButtonContainerHovered,":focus":e.splitButtonContainerFocused}],t&&e.splitButtonContainerDisabled),icon:we(e.splitButtonMenuIcon,t&&e.splitButtonMenuIconDisabled,!t&&o&&e.splitButtonMenuIcon),flexContainer:we(e.splitButtonFlexContainer),divider:we(Zp,e.splitButtonDivider,(o||t)&&e.splitButtonDividerDisabled)}})),Qp="BaseButton",Xp=function(e){function t(t){var n=e.call(this,t)||this;return n._buttonElement=u.createRef(),n._splitButtonContainer=u.createRef(),n._mergedRef=ti(),n._renderedVisibleMenu=!1,n._getMemoizedMenuButtonKeytipProps=Fn((function(e){return v(v({},e),{hasMenu:!0})})),n._onRenderIcon=function(e,t){var r=n.props.iconProps;if(r&&(void 0!==r.iconName||r.imageProps)){var o=r.className,i=r.imageProps,a=y(r,["className","imageProps"]);if(r.styles)return u.createElement(gd,v({className:Wn(n._classNames.icon,o),imageProps:i},a));if(r.iconName)return u.createElement(md,v({className:Wn(n._classNames.icon,o)},a));if(i)return u.createElement(kd,v({className:Wn(n._classNames.icon,o),imageProps:i},a))}return null},n._onRenderTextContents=function(){var e=n.props,t=e.text,r=e.children,o=e.secondaryText,i=void 0===o?n.props.description:o,a=e.onRenderText,s=void 0===a?n._onRenderText:a,l=e.onRenderDescription,c=void 0===l?n._onRenderDescription:l;return t||"string"===typeof r||i?u.createElement("span",{className:n._classNames.textContainer},s(n.props,n._onRenderText),c(n.props,n._onRenderDescription)):[s(n.props,n._onRenderText),c(n.props,n._onRenderDescription)]},n._onRenderText=function(){var e=n.props.text,t=n.props.children;return void 0===e&&"string"===typeof t&&(e=t),n._hasText()?u.createElement("span",{key:n._labelId,className:n._classNames.label,id:n._labelId},e):null},n._onRenderChildren=function(){var e=n.props.children;return"string"===typeof e?null:e},n._onRenderDescription=function(e){var t=e.secondaryText,r=void 0===t?n.props.description:t;return r?u.createElement("span",{key:n._descriptionId,className:n._classNames.description,id:n._descriptionId},r):null},n._onRenderAriaDescription=function(){var e=n.props.ariaDescription;return e?u.createElement("span",{className:n._classNames.screenReaderText,id:n._ariaDescriptionId},e):null},n._onRenderMenuIcon=function(e){var t=n.props.menuIconProps;return u.createElement(md,v({iconName:"ChevronDown"},t,{className:n._classNames.menuIcon}))},n._onRenderMenu=function(e){var t=n.props.menuAs?Vn(n.props.menuAs,Kp):Kp;return u.createElement(t,v({},e))},n._onDismissMenu=function(e){var t=n.props.menuProps;t&&t.onDismiss&&t.onDismiss(e),e&&e.defaultPrevented||n._dismissMenu()},n._dismissMenu=function(){n._menuShouldFocusOnMount=void 0,n._menuShouldFocusOnContainer=void 0,n.setState({menuHidden:!0})},n._openMenu=function(e,t){void 0===t&&(t=!0),n.props.menuProps&&(n._menuShouldFocusOnContainer=e,n._menuShouldFocusOnMount=t,n._renderedVisibleMenu=!0,n.setState({menuHidden:!1}))},n._onToggleMenu=function(e){var t=!0;n.props.menuProps&&!1===n.props.menuProps.shouldFocusOnMount&&(t=!1),n.state.menuHidden?n._openMenu(e,t):n._dismissMenu()},n._onSplitContainerFocusCapture=function(e){var t=n._splitButtonContainer.current;!t||e.target&&Ze(e.target,t)||t.focus()},n._onSplitButtonPrimaryClick=function(e){n.state.menuHidden||n._dismissMenu();var t=n._processingTouch&&!n.props.toggle;!t&&n.props.onClick?n.props.onClick(e):t&&n._onMenuClick(e)},n._onKeyDown=function(e){!n.props.disabled||e.which!==Wt&&e.which!==qt?n.props.disabled||(n.props.menuProps?n._onMenuKeyDown(e):void 0!==n.props.onKeyDown&&n.props.onKeyDown(e)):(e.preventDefault(),e.stopPropagation())},n._onKeyUp=function(e){n.props.disabled||void 0===n.props.onKeyUp||n.props.onKeyUp(e)},n._onKeyPress=function(e){n.props.disabled||void 0===n.props.onKeyPress||n.props.onKeyPress(e)},n._onMouseUp=function(e){n.props.disabled||void 0===n.props.onMouseUp||n.props.onMouseUp(e)},n._onMouseDown=function(e){n.props.disabled||void 0===n.props.onMouseDown||n.props.onMouseDown(e)},n._onClick=function(e){n.props.disabled||(n.props.menuProps?n._onMenuClick(e):void 0!==n.props.onClick&&n.props.onClick(e))},n._onSplitButtonContainerKeyDown=function(e){e.which===Wt||e.which===qt?n._buttonElement.current&&(n._buttonElement.current.click(),e.preventDefault(),e.stopPropagation()):n._onMenuKeyDown(e)},n._onMenuKeyDown=function(e){var t;if(!n.props.disabled){n.props.onKeyDown&&n.props.onKeyDown(e);var r=e.which===$t,o=e.which===tn;if(!e.defaultPrevented&&n._isValidMenuOpenKey(e)){var i=n.props.onMenuClick;i&&i(e,n.props),n._onToggleMenu(!1),e.preventDefault(),e.stopPropagation()}if(e.which!==Wt&&e.which!==qt||lo(!0,e.target,null===(t=n.context)||void 0===t?void 0:t.registeredProviders),!e.altKey&&!e.metaKey&&(r||o))if(!n.state.menuHidden&&n.props.menuProps)(void 0!==n._menuShouldFocusOnMount?n._menuShouldFocusOnMount:n.props.menuProps.shouldFocusOnMount)||(e.preventDefault(),e.stopPropagation(),n._menuShouldFocusOnMount=!0,n.forceUpdate())}},n._onTouchStart=function(){n._isSplitButton&&n._splitButtonContainer.current&&!("onpointerdown"in n._splitButtonContainer.current)&&n._handleTouchAndPointerEvent()},n._onMenuClick=function(e){var t=n.props,r=t.onMenuClick,o=t.menuProps;r&&r(e,n.props);var i="boolean"===typeof(null===o||void 0===o?void 0:o.shouldFocusOnContainer)?o.shouldFocusOnContainer:"mouse"===e.nativeEvent.pointerType;e.defaultPrevented||(n._onToggleMenu(i),e.preventDefault(),e.stopPropagation())},Xr(n),n._async=new ze(n),n._events=new gt(n),Dt(Qp,t,["menuProps","onClick"],"split",n.props.split),Rt(Qp,t,{rootProps:void 0,description:"secondaryText",toggled:"checked"}),n._labelId=Cr(),n._descriptionId=Cr(),n._ariaDescriptionId=Cr(),n.state={menuHidden:!0},n}return g(t,e),Object.defineProperty(t.prototype,"_isSplitButton",{get:function(){return!!this.props.menuProps&&!!this.props.onClick&&!0===this.props.split},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e,t=this.props,n=t.ariaDescription,r=t.ariaLabel,o=t.ariaHidden,i=t.className,a=t.disabled,s=t.allowDisabledFocus,l=t.primaryDisabled,c=t.secondaryText,d=void 0===c?this.props.description:c,u=t.href,p=t.iconProps,m=t.menuIconProps,h=t.styles,f=t.checked,g=t.variantClassName,v=t.theme,y=t.toggle,b=t.getClassNames,C=t.role,S=this.state.menuHidden,x=a||l;this._classNames=b?b(v,i,g,p&&p.className,m&&m.className,x,f,!S,!!this.props.menuProps,this.props.split,!!s):Yp(v,h,i,g,p&&p.className,m&&m.className,x,!!this.props.menuProps,f,!S,this.props.split);var k=this,P=k._ariaDescriptionId,I=k._labelId,w=k._descriptionId,E=!x&&!!u,_=E?"a":"button",D=qr(mt(E?{}:{type:"button"},this.props.rootProps,this.props),E?Rr:Ar,["disabled"]),T=r||D["aria-label"],R=void 0;n?R=P:d&&this.props.onRenderDescription!==Mt?R=w:D["aria-describedby"]&&(R=D["aria-describedby"]);var A=void 0;D["aria-labelledby"]?A=D["aria-labelledby"]:R&&!T&&(A=this._hasText()?I:void 0);var M=!(!1===this.props["data-is-focusable"]||a&&!s||this._isSplitButton),N="menuitemcheckbox"===C||"checkbox"===C,F=N||!0===y?!!f:void 0,H=mt(D,((e={className:this._classNames.root,ref:this._mergedRef(this.props.elementRef,this._buttonElement),disabled:x&&!s,onKeyDown:this._onKeyDown,onKeyPress:this._onKeyPress,onKeyUp:this._onKeyUp,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onClick:this._onClick,"aria-label":T,"aria-labelledby":A,"aria-describedby":R,"aria-disabled":x,"data-is-focusable":M})[N?"aria-checked":"aria-pressed"]=F,e));if(o&&(H["aria-hidden"]=!0),this._isSplitButton)return this._onRenderSplitButtonContent(_,H);if(this.props.menuProps){var O=this.props.menuProps.id,B=void 0===O?"".concat(this._labelId,"-menu"):O;mt(H,{"aria-expanded":!S,"aria-controls":S?null:B,"aria-haspopup":!0})}return this._onRenderContent(_,H)},t.prototype.componentDidMount=function(){this._isSplitButton&&this._splitButtonContainer.current&&("onpointerdown"in this._splitButtonContainer.current&&this._events.on(this._splitButtonContainer.current,"pointerdown",this._onPointerDown,!0),"onpointerup"in this._splitButtonContainer.current&&this.props.onPointerUp&&this._events.on(this._splitButtonContainer.current,"pointerup",this.props.onPointerUp,!0))},t.prototype.componentDidUpdate=function(e,t){this.props.onAfterMenuDismiss&&!t.menuHidden&&this.state.menuHidden&&this.props.onAfterMenuDismiss()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.focus=function(){var e,t;this._isSplitButton&&this._splitButtonContainer.current?(lo(!0,void 0,null===(e=this.context)||void 0===e?void 0:e.registeredProviders),this._splitButtonContainer.current.focus()):this._buttonElement.current&&(lo(!0,void 0,null===(t=this.context)||void 0===t?void 0:t.registeredProviders),this._buttonElement.current.focus())},t.prototype.dismissMenu=function(){this._dismissMenu()},t.prototype.openMenu=function(e,t){this._openMenu(e,t)},t.prototype._onRenderContent=function(e,t){var n=this,r=this.props,o=e,i=r.menuIconProps,a=r.menuProps,s=r.onRenderIcon,l=void 0===s?this._onRenderIcon:s,c=r.onRenderAriaDescription,d=void 0===c?this._onRenderAriaDescription:c,p=r.onRenderChildren,m=void 0===p?this._onRenderChildren:p,h=r.onRenderMenu,f=void 0===h?this._onRenderMenu:h,g=r.onRenderMenuIcon,y=void 0===g?this._onRenderMenuIcon:g,b=r.disabled,C=r.keytipProps;C&&a&&(C=this._getMemoizedMenuButtonKeytipProps(C));var S=function(e){return u.createElement(o,v({},t,e),u.createElement("span",{className:n._classNames.flexContainer,"data-automationid":"splitbuttonprimary"},l(r,n._onRenderIcon),n._onRenderTextContents(),d(r,n._onRenderAriaDescription),m(r,n._onRenderChildren),!n._isSplitButton&&(a||i||n.props.onRenderMenuIcon)&&y(n.props,n._onRenderMenuIcon),a&&!a.doNotLayer&&n._shouldRenderMenu()&&f(n._getMenuProps(a),n._onRenderMenu)))},x=C?u.createElement(sp,{keytipProps:this._isSplitButton?void 0:C,ariaDescribedBy:t["aria-describedby"],disabled:b},(function(e){return S(e)})):S();return a&&a.doNotLayer?u.createElement(u.Fragment,null,x,this._shouldRenderMenu()&&f(this._getMenuProps(a),this._onRenderMenu)):u.createElement(u.Fragment,null,x,u.createElement(go,null))},t.prototype._shouldRenderMenu=function(){var e=this.state.menuHidden,t=this.props,n=t.persistMenu,r=t.renderPersistedMenuHiddenOnMount;return!e||!(!n||!this._renderedVisibleMenu&&!r)},t.prototype._hasText=function(){return null!==this.props.text&&(void 0!==this.props.text||"string"===typeof this.props.children)},t.prototype._getMenuProps=function(e){var t=this.props.persistMenu,n=this.state.menuHidden;return e.ariaLabel||e.labelElementId||!this._hasText()||(e=v(v({},e),{labelElementId:this._labelId})),v(v({id:this._labelId+"-menu",directionalHint:js},e),{shouldFocusOnContainer:this._menuShouldFocusOnContainer,shouldFocusOnMount:this._menuShouldFocusOnMount,hidden:t?n:void 0,className:Wn("ms-BaseButton-menuhost",e.className),target:this._isSplitButton?this._splitButtonContainer.current:this._buttonElement.current,onDismiss:this._onDismissMenu})},t.prototype._onRenderSplitButtonContent=function(e,t){var n=this,r=this.props,o=r.styles,i=void 0===o?{}:o,a=r.disabled,s=r.allowDisabledFocus,l=r.checked,c=r.getSplitButtonClassNames,d=r.primaryDisabled,p=r.menuProps,m=r.toggle,h=r.role,f=r.primaryActionButtonProps,g=this.props.keytipProps,y=this.state.menuHidden,b=c?c(!!a,!y,!!l,!!s):i&&Jp(i,!!a,!y,!!l,!!d);mt(t,{onClick:void 0,onPointerDown:void 0,onPointerUp:void 0,tabIndex:-1,"data-is-focusable":!1}),g&&p&&(g=this._getMemoizedMenuButtonKeytipProps(g));var C=qr(t,[],["disabled"]);f&&mt(t,f);var S=function(r){return u.createElement("div",v({},C,{"data-ktp-target":r?r["data-ktp-target"]:void 0,role:h||"button","aria-disabled":a,"aria-haspopup":!0,"aria-expanded":!y,"aria-pressed":m?!!l:void 0,"aria-describedby":mn(t["aria-describedby"],r?r["aria-describedby"]:void 0),className:b&&b.splitButtonContainer,onKeyDown:n._onSplitButtonContainerKeyDown,onTouchStart:n._onTouchStart,ref:n._splitButtonContainer,"data-is-focusable":!0,onClick:a||d?void 0:n._onSplitButtonPrimaryClick,tabIndex:!a&&!d||s?0:void 0,"aria-roledescription":t["aria-roledescription"],onFocusCapture:n._onSplitContainerFocusCapture}),u.createElement("span",{style:{display:"flex",width:"100%"}},n._onRenderContent(e,t),n._onRenderSplitButtonMenuButton(b,r),n._onRenderSplitButtonDivider(b)))};return g?u.createElement(sp,{keytipProps:g,disabled:a},(function(e){return S(e)})):S()},t.prototype._onRenderSplitButtonDivider=function(e){if(e&&e.divider){return u.createElement("span",{className:e.divider,"aria-hidden":!0,onClick:function(e){e.stopPropagation()}})}return null},t.prototype._onRenderSplitButtonMenuButton=function(e,n){var r=this.props,o=r.allowDisabledFocus,i=r.checked,a=r.disabled,s=r.splitButtonMenuProps,l=r.splitButtonAriaLabel,c=r.primaryDisabled,d=this.state.menuHidden,p=this.props.menuIconProps;void 0===p&&(p={iconName:"ChevronDown"});var m=v(v({},s),{styles:e,checked:i,disabled:a,allowDisabledFocus:o,onClick:this._onMenuClick,menuProps:void 0,iconProps:v(v({},p),{className:this._classNames.menuIcon}),ariaLabel:l,"aria-haspopup":!0,"aria-expanded":!d,"data-is-focusable":!1});return u.createElement(t,v({},m,{"data-ktp-execute-target":n?n["data-ktp-execute-target"]:n,onMouseDown:this._onMouseDown,tabIndex:c&&!o?0:-1}))},t.prototype._onPointerDown=function(e){var t=this.props.onPointerDown;t&&t(e),"touch"===e.pointerType&&(this._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0,e.state.menuHidden&&e.focus()}),500)},t.prototype._isValidMenuOpenKey=function(e){return this.props.menuTriggerKeyCode?e.which===this.props.menuTriggerKeyCode:!!this.props.menuProps&&(e.which===tn&&(e.altKey||e.metaKey))},t.defaultProps={baseClassName:"ms-Button",styles:{},split:!1},t.contextType=ho,t}(u.Component);!function(e){e[e.button=0]="button",e[e.anchor=1]="anchor"}(jp||(jp={})),function(e){e[e.normal=0]="normal",e[e.primary=1]="primary",e[e.hero=2]="hero",e[e.compound=3]="compound",e[e.command=4]="command",e[e.icon=5]="icon",e[e.default=6]="default"}(Gp||(Gp={}));var $p={outline:0},em=function(e){return{fontSize:e,margin:"0 4px",height:"16px",lineHeight:"16px",textAlign:"center",flexShrink:0}},tm=Fn((function(e){var t,n,r=e.semanticColors,o=e.effects,i=e.fonts,a=r.buttonBorder,s=r.disabledBackground,l=r.disabledText,c={left:-2,top:-2,bottom:-2,right:-2,outlineColor:"ButtonText"};return{root:[Ya(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),e.fonts.medium,{border:"1px solid "+a,borderRadius:o.roundedCorner2,boxSizing:"border-box",cursor:"pointer",display:"inline-flex",alignItems:"center",justifyContent:"center",padding:"0 16px",textDecoration:"none",textAlign:"center",userSelect:"none",":active > span":{position:"relative",left:0,top:0}}],rootDisabled:[Ya(e,{inset:1,highContrastStyle:c,borderColor:"transparent"}),{backgroundColor:s,borderColor:s,color:l,cursor:"default",":hover":$p,":focus":$p}],iconDisabled:(t={color:l},t[Wa]={color:"GrayText"},t),menuIconDisabled:(n={color:l},n[Wa]={color:"GrayText"},n),flexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},description:{display:"block"},textContainer:{flexGrow:1,display:"block"},icon:em(i.mediumPlus.fontSize),menuIcon:em(i.small.fontSize),label:{margin:"0 4px",lineHeight:"100%",display:"block"},screenReaderText:Qa}})),nm=Fn((function(e,t){var n,r,o,i,a,s,l,c,d,u,p,m,h,f,g,y,b,C=e.effects,S=e.palette,x=e.semanticColors,k={left:-2,top:-2,bottom:-2,right:-2,border:"none"},P={position:"absolute",width:1,right:31,top:8,bottom:8};return _e({splitButtonContainer:[Ya(e,{highContrastStyle:k,inset:2,pointerEvents:"none"}),{display:"inline-flex",".ms-Button--default":{borderTopRightRadius:"0",borderBottomRightRadius:"0",borderRight:"none",flexGrow:"1"},".ms-Button--primary":(n={borderTopRightRadius:"0",borderBottomRightRadius:"0",border:"none",flexGrow:"1",":hover":{border:"none"},":active":{border:"none"}},n[Wa]=v(v({color:"WindowText",backgroundColor:"Window",border:"1px solid WindowText",borderRightWidth:"0"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{":hover":{backgroundColor:"Highlight",border:"1px solid Highlight",borderRightWidth:"0",color:"HighlightText"},":active":{border:"1px solid Highlight"}}),n),".ms-Button--default + .ms-Button":(r={},r[Wa]={border:"1px solid WindowText",borderLeftWidth:"0",":hover":{backgroundColor:"HighlightText",borderColor:"Highlight",color:"Highlight",".ms-Button-menuIcon":v({backgroundColor:"HighlightText",color:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"})}},r),'.ms-Button--default + .ms-Button[aria-expanded="true"]':(o={},o[Wa]={backgroundColor:"HighlightText",borderColor:"Highlight",color:"Highlight",".ms-Button-menuIcon":v({backgroundColor:"HighlightText",color:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"})},o),".ms-Button--primary + .ms-Button":(i={border:"none"},i[Wa]={border:"1px solid WindowText",borderLeftWidth:"0",":hover":{borderLeftWidth:"0",backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText",".ms-Button-menuIcon":v(v({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"HighlightText"})}},i),'.ms-Button--primary + .ms-Button[aria-expanded="true"]':(a={},a[Wa]=v(v({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{".ms-Button-menuIcon":{color:"HighlightText"}}),a),".ms-Button.is-disabled":(s={},s[Wa]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},s)}],splitButtonContainerHovered:{".ms-Button--default.is-disabled":(l={backgroundColor:x.buttonBackgroundDisabled,color:x.buttonTextDisabled},l[Wa]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},l),".ms-Button--primary.is-disabled":(c={backgroundColor:x.primaryButtonBackgroundDisabled,color:x.primaryButtonTextDisabled},c[Wa]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},c)},splitButtonContainerChecked:{".ms-Button--primary":(d={},d[Wa]=v({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),d)},splitButtonContainerCheckedHovered:{".ms-Button--primary":(u={},u[Wa]=v({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),u)},splitButtonContainerFocused:{outline:"none!important"},splitButtonMenuButton:(p={padding:6,height:"auto",boxSizing:"border-box",borderRadius:0,borderTopRightRadius:C.roundedCorner2,borderBottomRightRadius:C.roundedCorner2,border:"1px solid ".concat(S.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},p[Wa]={".ms-Button-menuIcon":{color:"WindowText"}},p),splitButtonDivider:v(v({},P),(m={},m[Wa]={backgroundColor:"WindowText"},m)),splitButtonDividerDisabled:v(v({},P),(h={},h[Wa]={backgroundColor:"GrayText"},h)),splitButtonMenuButtonDisabled:(f={pointerEvents:"none",border:"none",":hover":{cursor:"default"},".ms-Button--primary":(g={},g[Wa]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},g),".ms-Button-menuIcon":(y={},y[Wa]={color:"GrayText"},y)},f[Wa]={color:"GrayText",border:"1px solid GrayText",backgroundColor:"Window"},f),splitButtonFlexContainer:{display:"flex",height:"100%",flexWrap:"nowrap",justifyContent:"center",alignItems:"center"},splitButtonContainerDisabled:(b={outline:"none",border:"none"},b[Wa]=v({color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),b),splitButtonMenuFocused:v({},Ya(e,{highContrastStyle:k,inset:2}))},t)}));function rm(e){var t,n,r,o,i,a=e.semanticColors,s=e.palette,l=a.buttonBackground,c=a.buttonBackgroundPressed,d=a.buttonBackgroundHovered,u=a.buttonBackgroundDisabled,p=a.buttonText,m=a.buttonTextHovered,h=a.buttonTextDisabled,f=a.buttonTextChecked,g=a.buttonTextCheckedHovered;return{root:{backgroundColor:l,color:p},rootHovered:(t={backgroundColor:d,color:m},t[Wa]={borderColor:"Highlight",color:"Highlight"},t),rootPressed:{backgroundColor:c,color:f},rootExpanded:{backgroundColor:c,color:f},rootChecked:{backgroundColor:c,color:f},rootCheckedHovered:{backgroundColor:c,color:g},rootDisabled:(n={color:h,backgroundColor:u},n[Wa]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},n),splitButtonContainer:(r={},r[Wa]={border:"none"},r),splitButtonMenuButton:{color:s.white,backgroundColor:"transparent",":hover":(o={backgroundColor:s.neutralLight},o[Wa]={color:"Highlight"},o)},splitButtonMenuButtonDisabled:{backgroundColor:a.buttonBackgroundDisabled,":hover":{backgroundColor:a.buttonBackgroundDisabled}},splitButtonDivider:v(v({},{position:"absolute",width:1,right:31,top:8,bottom:8}),(i={backgroundColor:s.neutralTertiaryAlt},i[Wa]={backgroundColor:"WindowText"},i)),splitButtonDividerDisabled:{backgroundColor:e.palette.neutralTertiaryAlt},splitButtonMenuButtonChecked:{backgroundColor:s.neutralQuaternaryAlt,":hover":{backgroundColor:s.neutralQuaternaryAlt}},splitButtonMenuButtonExpanded:{backgroundColor:s.neutralQuaternaryAlt,":hover":{backgroundColor:s.neutralQuaternaryAlt}},splitButtonMenuIcon:{color:a.buttonText},splitButtonMenuIconDisabled:{color:a.buttonTextDisabled}}}function om(e){var t,n,r,o,i,a,s,l,c,d=e.palette,u=e.semanticColors;return{root:(t={backgroundColor:u.primaryButtonBackground,border:"1px solid ".concat(u.primaryButtonBackground),color:u.primaryButtonText},t[Wa]=v({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t[".".concat(io," &:focus, :host(.").concat(io,") &:focus")]={":after":{border:"none",outlineColor:d.white}},t),rootHovered:(n={backgroundColor:u.primaryButtonBackgroundHovered,border:"1px solid ".concat(u.primaryButtonBackgroundHovered),color:u.primaryButtonTextHovered},n[Wa]={color:"Window",backgroundColor:"Highlight",borderColor:"Highlight"},n),rootPressed:(r={backgroundColor:u.primaryButtonBackgroundPressed,border:"1px solid ".concat(u.primaryButtonBackgroundPressed),color:u.primaryButtonTextPressed},r[Wa]=v({color:"Window",backgroundColor:"WindowText",borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r),rootExpanded:{backgroundColor:u.primaryButtonBackgroundPressed,color:u.primaryButtonTextPressed},rootChecked:{backgroundColor:u.primaryButtonBackgroundPressed,color:u.primaryButtonTextPressed},rootCheckedHovered:{backgroundColor:u.primaryButtonBackgroundPressed,color:u.primaryButtonTextPressed},rootDisabled:(o={color:u.primaryButtonTextDisabled,backgroundColor:u.primaryButtonBackgroundDisabled},o[Wa]={color:"GrayText",borderColor:"GrayText",backgroundColor:"Window"},o),splitButtonContainer:(i={},i[Wa]={border:"none"},i),splitButtonDivider:v(v({},{position:"absolute",width:1,right:31,top:8,bottom:8}),(a={backgroundColor:d.white},a[Wa]={backgroundColor:"Window"},a)),splitButtonMenuButton:(s={backgroundColor:u.primaryButtonBackground,color:u.primaryButtonText},s[Wa]={backgroundColor:"Canvas"},s[":hover"]=(l={backgroundColor:u.primaryButtonBackgroundHovered},l[Wa]={color:"Highlight"},l),s),splitButtonMenuButtonDisabled:{backgroundColor:u.primaryButtonBackgroundDisabled,":hover":{backgroundColor:u.primaryButtonBackgroundDisabled}},splitButtonMenuButtonChecked:{backgroundColor:u.primaryButtonBackgroundPressed,":hover":{backgroundColor:u.primaryButtonBackgroundPressed}},splitButtonMenuButtonExpanded:{backgroundColor:u.primaryButtonBackgroundPressed,":hover":{backgroundColor:u.primaryButtonBackgroundPressed}},splitButtonMenuIcon:{color:u.primaryButtonText},splitButtonMenuIconDisabled:(c={color:d.neutralTertiary},c[Wa]={color:"GrayText"},c)}}var im,am=Fn((function(e,t,n){var r=tm(e),o=nm(e);return _e(r,{root:{minWidth:"80px",minHeight:"32px"},label:{fontWeight:Hi.semibold}},n?om(e):rm(e),o,t)})),sm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,o=e.theme;return u.createElement(Xp,v({},this.props,{variantClassName:n?"ms-Button--primary":"ms-Button--default",styles:am(o,r,n),onRenderDescription:Mt}))},t=b([fr("DefaultButton",["theme","styles"],!0)],t)}(u.Component),lm=Fn((function(e,t){var n,r,o;return _e(tm(e),{root:(n={padding:"0 4px",height:"40px",color:e.palette.neutralPrimary,backgroundColor:"transparent",border:"1px solid transparent"},n[Wa]={borderColor:"Window"},n),rootHovered:(r={color:e.palette.themePrimary},r[Wa]={color:"Highlight"},r),iconHovered:{color:e.palette.themePrimary},rootPressed:{color:e.palette.black},rootExpanded:{color:e.palette.themePrimary},iconPressed:{color:e.palette.themeDarker},rootDisabled:(o={color:e.palette.neutralTertiary,backgroundColor:"transparent",borderColor:"transparent"},o[Wa]={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)})),cm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return u.createElement(Xp,v({},this.props,{variantClassName:"ms-Button--action ms-Button--command",styles:lm(n,t),onRenderDescription:Mt}))},t=b([fr("ActionButton",["theme","styles"],!0)],t)}(u.Component),dm=Fn((function(e,t,n){var r,o,i,a,s,l=e.fonts,c=e.palette,d=tm(e),u=nm(e),p={root:{maxWidth:"280px",minHeight:"72px",height:"auto",padding:"16px 12px"},flexContainer:{flexDirection:"row",alignItems:"flex-start",minWidth:"100%",margin:""},textContainer:{textAlign:"left"},icon:{fontSize:"2em",lineHeight:"1em",height:"1em",margin:"0px 8px 0px 0px",flexBasis:"1em",flexShrink:"0"},label:{margin:"0 0 5px",lineHeight:"100%",fontWeight:Hi.semibold},description:[l.small,{lineHeight:"100%"}]},m={description:{color:c.neutralSecondary},descriptionHovered:{color:c.neutralDark},descriptionPressed:{color:"inherit"},descriptionChecked:{color:"inherit"},descriptionDisabled:{color:"inherit"}},h={description:(r={color:c.white},r[Wa]=v({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r),descriptionHovered:(o={color:c.white},o[Wa]={backgroundColor:"Highlight",color:"Window"},o),descriptionPressed:(i={color:"inherit"},i[Wa]=v({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i),descriptionChecked:(a={color:"inherit"},a[Wa]=v({color:"Window",backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a),descriptionDisabled:(s={color:"inherit"},s[Wa]={color:"inherit"},s)};return _e(d,p,n?om(e):rm(e),n?h:m,u,t)})),um=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.primary,n=void 0!==t&&t,r=e.styles,o=e.theme;return u.createElement(Xp,v({},this.props,{variantClassName:n?"ms-Button--compoundPrimary":"ms-Button--compound",styles:dm(o,r,n)}))},t=b([fr("CompoundButton",["theme","styles"],!0)],t)}(u.Component),pm=Fn((function(e,t){var n,r=tm(e),o=nm(e),i=e.palette;return _e(r,{root:{padding:"0 4px",width:"32px",height:"32px",backgroundColor:"transparent",border:"none",color:e.semanticColors.link},rootHovered:(n={color:i.themeDarkAlt,backgroundColor:i.neutralLighter},n[Wa]={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)})),mm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return u.createElement(Xp,v({},this.props,{variantClassName:"ms-Button--icon",styles:pm(n,t),onRenderText:Mt,onRenderDescription:Mt}))},t=b([fr("IconButton",["theme","styles"],!0)],t)}(u.Component),hm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){return u.createElement(sm,v({},this.props,{primary:!0,onRenderDescription:Mt}))},t=b([fr("PrimaryButton",["theme","styles"],!0)],t)}(u.Component),fm=(function(e){function t(t){var n=e.call(this,t)||this;return _t("The Button component has been deprecated. Use specific variants instead. (PrimaryButton, DefaultButton, IconButton, ActionButton, etc.)"),n}g(t,e),t.prototype.render=function(){var e=this.props;switch(e.buttonType){case Gp.command:return u.createElement(cm,v({},e));case Gp.compound:return u.createElement(um,v({},e));case Gp.icon:return u.createElement(mm,v({},e));case Gp.primary:return u.createElement(hm,v({},e));default:return u.createElement(sm,v({},e))}}}(u.Component),Fn((function(e,t,n,r){var o,i,a,s,l,c,d,u,p,m,h,f,g,y=tm(e),b=nm(e),C=e.palette,S=e.semanticColors;return _e(y,b,{root:[Ya(e,{inset:2,highContrastStyle:{left:4,top:4,bottom:4,right:4,border:"none"},borderColor:"transparent"}),e.fonts.medium,(o={minWidth:"40px",backgroundColor:C.white,color:C.neutralPrimary,padding:"0 4px",border:"none",borderRadius:0},o[Wa]={border:"none"},o)],rootHovered:(i={backgroundColor:C.neutralLighter,color:C.neutralDark},i[Wa]={color:"Highlight"},i[".".concat(qp.msButtonIcon)]={color:C.themeDarkAlt},i[".".concat(qp.msButtonMenuIcon)]={color:C.neutralPrimary},i),rootPressed:(a={backgroundColor:C.neutralLight,color:C.neutralDark},a[".".concat(qp.msButtonIcon)]={color:C.themeDark},a[".".concat(qp.msButtonMenuIcon)]={color:C.neutralPrimary},a),rootChecked:(s={backgroundColor:C.neutralLight,color:C.neutralDark},s[".".concat(qp.msButtonIcon)]={color:C.themeDark},s[".".concat(qp.msButtonMenuIcon)]={color:C.neutralPrimary},s),rootCheckedHovered:(l={backgroundColor:C.neutralQuaternaryAlt},l[".".concat(qp.msButtonIcon)]={color:C.themeDark},l[".".concat(qp.msButtonMenuIcon)]={color:C.neutralPrimary},l),rootExpanded:(c={backgroundColor:C.neutralLight,color:C.neutralDark},c[".".concat(qp.msButtonIcon)]={color:C.themeDark},c[".".concat(qp.msButtonMenuIcon)]={color:C.neutralPrimary},c),rootExpandedHovered:{backgroundColor:C.neutralQuaternaryAlt},rootDisabled:(d={backgroundColor:C.white},d[".".concat(qp.msButtonIcon)]=(u={color:S.disabledBodySubtext},u[Wa]=v({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),u),d[Wa]=v({color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),d),splitButtonContainer:(p={height:"100%"},p[Wa]={border:"none"},p),splitButtonDividerDisabled:(m={},m[Wa]={backgroundColor:"Window"},m),splitButtonDivider:{backgroundColor:C.neutralTertiaryAlt},splitButtonMenuButton:{backgroundColor:C.white,border:"none",borderTopRightRadius:"0",borderBottomRightRadius:"0",color:C.neutralSecondary,":hover":(h={backgroundColor:C.neutralLighter,color:C.neutralDark},h[Wa]={color:"Highlight"},h[".".concat(qp.msButtonIcon)]={color:C.neutralPrimary},h),":active":(f={backgroundColor:C.neutralLight},f[".".concat(qp.msButtonIcon)]={color:C.neutralPrimary},f)},splitButtonMenuButtonDisabled:(g={backgroundColor:C.white},g[Wa]=v({color:"GrayText",border:"none",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),g),splitButtonMenuButtonChecked:{backgroundColor:C.neutralLight,color:C.neutralDark,":hover":{backgroundColor:C.neutralQuaternaryAlt}},splitButtonMenuButtonExpanded:{backgroundColor:C.neutralLight,color:C.black,":hover":{backgroundColor:C.neutralQuaternaryAlt}},splitButtonMenuIcon:{color:C.neutralPrimary},splitButtonMenuIconDisabled:{color:C.neutralTertiary},label:{fontWeight:"normal"},icon:{color:C.themePrimary},menuIcon:{color:C.neutralSecondary}},t)}))),gm=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return u.createElement(Xp,v({},this.props,{variantClassName:"ms-Button--commandBar",styles:fm(n,t),onRenderDescription:Mt}))},t=b([fr("CommandBarButton",["theme","styles"],!0)],t)}(u.Component),vm=cm,ym=Fn((function(e,t){return _e({root:[Ya(e,{inset:1,highContrastStyle:{outlineOffset:"-4px",outline:"1px solid Window"},borderColor:"transparent"}),{height:24}]},t)}));!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}g(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme;return u.createElement(sm,v({},this.props,{styles:ym(n,t),onRenderDescription:Mt}))},t=b([fr("MessageBarButton",["theme","styles"],!0)],t)}(u.Component);!function(e){e[e.horizontal=0]="horizontal",e[e.vertical=1]="vertical"}(im||(im={}));var bm=function(e){void 0===e&&(e=function(){var e={};return{getCachedMeasurement:function(t){if(t&&t.cacheKey&&e.hasOwnProperty(t.cacheKey))return e[t.cacheKey]},addMeasurementToCache:function(t,n){t.cacheKey&&(e[t.cacheKey]=n)}}}());var t,n=e;function r(e,t){var r=n.getCachedMeasurement(e);if(void 0!==r)return r;var o=t();return n.addMeasurementToCache(e,o),o}function o(e,o,i){for(var a=e,s=r(e,i);s>t;){var l=o(a);if(void 0===l)return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(s=n.getCachedMeasurement(l)))return{dataToMeasure:l,resizeDirection:"shrink"};a=l}return{renderedData:a,resizeDirection:void 0,dataToMeasure:void 0}}return{getNextState:function(e,i,a,s){if(void 0!==s||void 0!==i.dataToMeasure){if(s){if(t&&i.renderedData&&!i.dataToMeasure)return v(v({},i),function(e,n,r,o){var i;return i=e>t?o?{resizeDirection:"grow",dataToMeasure:o(r)}:{resizeDirection:"shrink",dataToMeasure:n}:{resizeDirection:"shrink",dataToMeasure:r},t=e,v(v({},i),{measureContainer:!1})}(s,e.data,i.renderedData,e.onGrowData));t=s}var l=v(v({},i),{measureContainer:!1});return i.dataToMeasure&&(l="grow"===i.resizeDirection&&e.onGrowData?v(v({},l),function(e,i,a,s){for(var l=e,c=r(e,a);c<t;){var d=i(l);if(void 0===d)return{renderedData:l,resizeDirection:void 0,dataToMeasure:void 0};if(void 0===(c=n.getCachedMeasurement(d)))return{dataToMeasure:d};l=d}return v({resizeDirection:"shrink"},o(l,s,a))}(i.dataToMeasure,e.onGrowData,a,e.onReduceData)):v(v({},l),o(i.dataToMeasure,e.onReduceData,a))),l}},shouldRenderDataForMeasurement:function(e){return!(!e||void 0!==n.getCachedMeasurement(e))},getInitialResizeGroupState:function(e){return{dataToMeasure:v({},e),resizeDirection:"grow",measureContainer:!0}}}},Cm=u.createContext({isMeasured:!1}),Sm={position:"fixed",visibility:"hidden"},xm={position:"relative"};function km(e,t){var n;switch(t.type){case"resizeData":return v({},t.value);case"dataToMeasure":return v(v({},e),{dataToMeasure:t.value,resizeDirection:"grow",measureContainer:!0});default:return v(v({},e),((n={})[t.type]=t.value,n))}}function Pm(e,t){var n=zl(bm),r=u.useRef(null),o=u.useRef(null),i=u.useRef(!1),a=Vl(),s=function(e,t,n){var r=zl((function(){return t.getInitialResizeGroupState(e.data)})),o=u.useReducer(km,r),i=o[0],a=o[1];u.useEffect((function(){a({type:"dataToMeasure",value:e.data})}),[e.data]);var s=u.useRef(r);return s.current=v({},i),[s,u.useCallback((function(e){e&&a({type:"resizeData",value:e})}),[]),u.useCallback((function(){n.current&&a({type:"measureContainer",value:!0})}),[n])]}(e,n,t),l=s[0],c=s[1],d=s[2];u.useEffect((function(){var t;l.current.renderedData&&(i.current=!0,null===(t=e.dataDidRender)||void 0===t||t.call(e,l.current.renderedData))})),u.useEffect((function(){a.requestAnimationFrame((function(){var a=void 0;if(l.current.measureContainer&&t.current){var s=t.current.getBoundingClientRect();a=e.direction===im.vertical?s.height:s.width}var d=n.getNextState(e,l.current,(function(){var t=i.current?o:r;if(!t.current)return 0;var n=t.current.getBoundingClientRect();return e.direction===im.vertical?n.height:n.width}),a);c(d)}),t.current)})),ql(ur(),"resize",a.debounce(d,16,{leading:!0}));var p=n.shouldRenderDataForMeasurement(l.current.dataToMeasure),m=!i.current&&p;return[l.current.dataToMeasure,l.current.renderedData,d,r,o,p,m]}var Im={isMeasured:!0},wm=u.forwardRef((function(e,t){var n=u.useRef(null),r=Gl(n,t),o=Pm(e,n),i=o[0],a=o[1],s=o[2],l=o[3],c=o[4],d=o[5],p=o[6];u.useImperativeHandle(e.componentRef,(function(){return{remeasure:s}}),[s]),function(e){ec({name:"ResizeGroup",props:e,deprecations:{styles:"className"}})}(e);var m=e.className,h=e.onRenderData,f=qr(e,Gr,["data"]);return u.createElement("div",v({},f,{className:m,ref:r}),u.createElement("div",{style:xm},d&&!p&&u.createElement("div",{style:Sm,ref:c},u.createElement(Cm.Provider,{value:Im},h(i))),u.createElement("div",{ref:l,style:p?Sm:void 0,"data-automation-id":"visibleContent"},p?h(i):a&&h(a))))}));wm.displayName="ResizeGroupBase";var Em=wm,_m=wn(),Dm=function(){return null},Tm={styles:function(e){return{root:{selectors:{"&.is-disabled":{color:e.theme.semanticColors.bodyText}}}}}},Rm=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=u.createRef(),n._onReduceData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props.overflowIndex,o=t[r];if(o)return(t=C([],t,!0)).splice(r,1),n=C(C([],n,!0),[o],!1),v(v({},e),{renderedItems:t,renderedOverflowItems:n})},n._onGrowData=function(e){var t=e.renderedItems,n=e.renderedOverflowItems,r=e.props,o=r.overflowIndex,i=r.maxDisplayedItems,a=(n=C([],n,!0)).pop();if(a&&!(t.length>=i))return(t=C([],t,!0)).splice(o,0,a),v(v({},e),{renderedItems:t,renderedOverflowItems:n})},n._onRenderBreadcrumb=function(e){var t=e.props,r=t.ariaLabel,o=t.dividerAs,i=void 0===o?gd:o,a=t.onRenderItem,s=t.overflowAriaLabel,l=t.overflowIndex,c=t.onRenderOverflowIcon,d=t.overflowButtonAs,p=e.renderedOverflowItems,m=e.renderedItems,h=p.map((function(e){var t=!(!e.onClick&&!e.href);return{text:e.text,name:e.text,key:e.key,onClick:e.onClick?n._onBreadcrumbClicked.bind(n,e):null,href:e.href,disabled:!t,itemProps:t?void 0:Tm}})),f=m.length-1,g=p&&0!==p.length,y=m.map((function(e,t){var r=n._onRenderItem;return e.onRender&&(r=Lo(e.onRender,r)),a&&(r=Lo(a,r)),u.createElement("li",{className:n._classNames.listItem,key:e.key||String(t)},r(e),(t!==f||g&&t===l-1)&&u.createElement(i,{className:n._classNames.chevron,iconName:Sn(n.props.theme)?"ChevronLeft":"ChevronRight",item:e}))}));if(g){var b=c?{}:{iconName:"More"},C=c||Dm,S=d||mm;y.splice(l,0,u.createElement("li",{className:n._classNames.overflow,key:"overflow"},u.createElement(S,{className:n._classNames.overflowButton,iconProps:b,role:"button","aria-haspopup":"true",ariaLabel:s,onRenderMenuIcon:C,menuProps:{items:h,directionalHint:js}}),l!==f+1&&u.createElement(i,{className:n._classNames.chevron,iconName:Sn(n.props.theme)?"ChevronLeft":"ChevronRight",item:p[p.length-1]})))}var x=qr(n.props,Ir,["className"]);return u.createElement("div",v({className:n._classNames.root,role:"navigation","aria-label":r},x),u.createElement(Cu,v({componentRef:n._focusZone,direction:ou.horizontal},n.props.focusZoneProps),u.createElement("ol",{className:n._classNames.list},y)))},n._onRenderItem=function(e){if(!e)return null;var t=e.as,r=e.href,o=e.onClick,i=e.isCurrentItem,a=e.text,s=e.onRenderContent,l=y(e,["as","href","onClick","isCurrentItem","text","onRenderContent"]),c=Am;if(s&&(c=Lo(s,c)),n.props.onRenderItemContent&&(c=Lo(n.props.onRenderItemContent,c)),o||r)return u.createElement(Eu,v({},l,{as:t,className:n._classNames.itemLink,href:r,"aria-current":i?"page":void 0,onClick:n._onBreadcrumbClicked.bind(n,e)}),u.createElement(od,v({content:a,overflowMode:Gc.Parent},n.props.tooltipHostProps),c(e)));var d=t||"span";return u.createElement(d,v({},l,{className:n._classNames.item}),u.createElement(od,v({content:a,overflowMode:Gc.Parent},n.props.tooltipHostProps),c(e)))},n._onBreadcrumbClicked=function(e,t){e.onClick&&e.onClick(t,e)},Xr(n),n._validateProps(t),n}return g(t,e),t.prototype.focus=function(){this._focusZone.current&&this._focusZone.current.focus()},t.prototype.render=function(){this._validateProps(this.props);var e=this.props,t=e.onReduceData,n=void 0===t?this._onReduceData:t,r=e.onGrowData,o=void 0===r?this._onGrowData:r,i=e.overflowIndex,a=e.maxDisplayedItems,s=e.items,l=e.className,c=e.theme,d=e.styles,p=C([],s,!0),m=p.splice(i,p.length-a),h={props:this.props,renderedItems:p,renderedOverflowItems:m};return this._classNames=_m(d,{className:l,theme:c}),u.createElement(Em,{onRenderData:this._onRenderBreadcrumb,onReduceData:n,onGrowData:o,data:h})},t.prototype._validateProps=function(e){var t=e.maxDisplayedItems,n=e.overflowIndex,r=e.items;if(n<0||t>1&&n>t-1||r.length>0&&n>r.length-1)throw new Error("Breadcrumb: overflowIndex out of range")},t.defaultProps={items:[],maxDisplayedItems:999,overflowIndex:0},t}(u.Component);function Am(e){return e?u.createElement(u.Fragment,null,e.text):null}var Mm={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"},Nm={whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"},Fm=qa(0,Ga),Hm=qa(Ka,639),Om=(Jo(Rm,(function(e){var t,n,r,o,i,a=e.className,s=e.theme,l=s.palette,c=s.semanticColors,d=s.fonts,u=os(Mm,s),p=c.menuItemBackgroundHovered,m=c.menuItemBackgroundPressed,h=l.neutralSecondary,f=Hi.regular,g=l.neutralPrimary,y=l.neutralPrimary,b=Hi.semibold,C=l.neutralSecondary,S=l.neutralSecondary,x={fontWeight:b,color:y},k={":hover":{color:g,backgroundColor:p,cursor:"pointer",selectors:(t={},t[Wa]={color:"Highlight",backgroundColor:"transparent"},t)},":active":{backgroundColor:m,color:g},"&:active:hover":{color:g,backgroundColor:m},"&:active, &:hover, &:active:hover":{textDecoration:"none"}},P={color:h,padding:"0 8px",lineHeight:36,fontSize:18,fontWeight:f};return{root:[u.root,d.medium,{margin:"11px 0 1px"},a],list:[u.list,{whiteSpace:"nowrap",padding:0,margin:0,display:"flex",alignItems:"stretch"}],listItem:[u.listItem,{listStyleType:"none",margin:"0",padding:"0",display:"flex",position:"relative",alignItems:"center",selectors:{"&:last-child .ms-Breadcrumb-itemLink":v(v({},x),(n={},n[Wa]={MsHighContrastAdjust:"auto",forcedColorAdjust:"auto"},n)),"&:last-child .ms-Breadcrumb-item":x}}],chevron:[u.chevron,{color:C,fontSize:d.small.fontSize,selectors:(r={},r[Wa]=v({color:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r[Hm]={fontSize:8},r[Fm]={fontSize:8},r)}],overflow:[u.overflow,{position:"relative",display:"flex",alignItems:"center"}],overflowButton:[u.overflowButton,Ya(s,{highContrastStyle:{left:1,right:1,top:1,bottom:1}}),Nm,{fontSize:16,color:S,height:"100%",cursor:"pointer",selectors:v(v({},k),(o={},o[Fm]={padding:"4px 6px"},o[Hm]={fontSize:d.mediumPlus.fontSize},o))}],itemLink:[u.itemLink,Ya(s),Nm,v(v({},P),{selectors:v((i={":focus":{color:l.neutralDark}},i[".".concat(io," &:focus, :host(.").concat(io,") &:focus")]={outline:"none"},i),k)})],item:[u.item,v(v({},P),{selectors:{":hover":{cursor:"default"}}})]}}),void 0,{scope:"Breadcrumb"}),wn()),Bm=u.forwardRef((function(e,t){var n=jl(void 0,e.id),r=e.items,o=e.columnCount,i=e.onRenderItem,a=e.isSemanticRadio,s=e.ariaPosInSet,l=void 0===s?e.positionInSet:s,c=e.ariaSetSize,d=void 0===c?e.setSize:c,p=e.styles,m=e.doNotContainWithinFocusZone,h=qr(e,Ir,m?[]:["onBlur"]),f=Om(p,{theme:e.theme}),g=function(e,t){return e.reduce((function(e,n,r){return r%t===0?e.push([n]):e[e.length-1].push(n),e}),[])}(r,o),y=u.createElement("table",v({"aria-posinset":l,"aria-setsize":d,id:n,role:a?"radiogroup":"grid"},h,{className:f.root}),u.createElement("tbody",{role:a?"presentation":"rowgroup"},g.map((function(e,t){return u.createElement("tr",{role:a?"presentation":"row",key:t},e.map((function(e,t){return u.createElement("td",{role:"presentation",key:t+"-cell",className:f.tableCell},i(e,t))})))}))));return m?y:u.createElement(Cu,{elementRef:t,isCircularNavigation:e.shouldFocusCircularNavigate,className:f.focusedContainer,onBlur:e.onBlur},y)})),Lm=Jo(Bm,(function(e){return{root:{padding:2,outline:"none"},tableCell:{padding:0}}}));Lm.displayName="ButtonGrid";var Vm,zm,Wm,Um,Km=function(e){var t,n=jl("gridCell"),r=e.item,o=e.id,i=void 0===o?n:o,a=e.className,s=e.selected,l=e.disabled,c=void 0!==l&&l,d=e.onRenderItem,p=e.cellDisabledStyle,m=e.cellIsSelectedStyle,h=e.index,f=e.label,g=e.getClassNames,y=e.onClick,b=e.onHover,C=e.onMouseMove,S=e.onMouseLeave,x=e.onMouseEnter,k=e.onFocus,P=qr(e,Ar),I=u.useCallback((function(e){y&&!c&&y(r,e)}),[c,r,y]),w=u.useCallback((function(e){x&&x(e)||!b||c||b(r,e)}),[c,r,b,x]),E=u.useCallback((function(e){C&&C(e)||!b||c||b(r,e)}),[c,r,b,C]),_=u.useCallback((function(e){S&&S(e)||!b||c||b(void 0,e)}),[c,b,S]),D=u.useCallback((function(e){k&&!c&&k(r,e)}),[c,r,k]);return u.createElement(vm,v({id:i,"data-index":h,"data-is-focusable":!0,"aria-selected":s,ariaLabel:f,title:f},P,{className:Wn(a,(t={},t[""+m]=s,t[""+p]=c,t)),onClick:I,onMouseEnter:w,onMouseMove:E,onMouseLeave:_,onFocus:D,getClassNames:g}),d(r))};!function(e){e[e.Sunday=0]="Sunday",e[e.Monday=1]="Monday",e[e.Tuesday=2]="Tuesday",e[e.Wednesday=3]="Wednesday",e[e.Thursday=4]="Thursday",e[e.Friday=5]="Friday",e[e.Saturday=6]="Saturday"}(Vm||(Vm={})),function(e){e[e.January=0]="January",e[e.February=1]="February",e[e.March=2]="March",e[e.April=3]="April",e[e.May=4]="May",e[e.June=5]="June",e[e.July=6]="July",e[e.August=7]="August",e[e.September=8]="September",e[e.October=9]="October",e[e.November=10]="November",e[e.December=11]="December"}(zm||(zm={})),function(e){e[e.FirstDay=0]="FirstDay",e[e.FirstFullWeek=1]="FirstFullWeek",e[e.FirstFourDayWeek=2]="FirstFourDayWeek"}(Wm||(Wm={})),function(e){e[e.Day=0]="Day",e[e.Week=1]="Week",e[e.Month=2]="Month",e[e.WorkWeek=3]="WorkWeek"}(Um||(Um={}));var jm={MillisecondsInOneDay:864e5,MillisecondsIn1Sec:1e3,MillisecondsIn1Min:6e4,MillisecondsIn30Mins:18e5,MillisecondsIn1Hour:36e5,MinutesInOneDay:1440,MinutesInOneHour:60,DaysInOneWeek:7,MonthInOneYear:12,HoursInOneDay:24,SecondsInOneMinute:60,OffsetTo24HourFormat:12,TimeFormatRegex:/^(\d\d?):(\d\d):?(\d\d)? ?([ap]m)?/i};function Gm(e,t){var n=new Date(e.getTime());return n.setDate(n.getDate()+t),n}function qm(e,t){return Gm(e,t*jm.DaysInOneWeek)}function Ym(e,t){var n=new Date(e.getTime()),r=n.getMonth()+t;return n.setMonth(r),n.getMonth()!==(r%jm.MonthInOneYear+jm.MonthInOneYear)%jm.MonthInOneYear&&(n=Gm(n,-n.getDate())),n}function Zm(e,t){var n=new Date(e.getTime());return n.setFullYear(e.getFullYear()+t),n.getMonth()!==(e.getMonth()%jm.MonthInOneYear+jm.MonthInOneYear)%jm.MonthInOneYear&&(n=Gm(n,-n.getDate())),n}function Jm(e){return new Date(e.getFullYear(),e.getMonth(),1,0,0,0,0)}function Qm(e){return new Date(e.getFullYear(),e.getMonth()+1,0,0,0,0,0)}function Xm(e,t){return Ym(e,t-e.getMonth())}function $m(e,t){return!e&&!t||!(!e||!t)&&(e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate())}function eh(e,t){return sh(e)-sh(t)}function th(e,t,n,r,o){void 0===o&&(o=1);var i,a=[],s=null;switch(r||(r=[Vm.Monday,Vm.Tuesday,Vm.Wednesday,Vm.Thursday,Vm.Friday]),o=Math.max(o,1),t){case Um.Day:s=Gm(i=ah(e),o);break;case Um.Week:case Um.WorkWeek:s=Gm(i=ih(ah(e),n),jm.DaysInOneWeek);break;case Um.Month:s=Ym(i=new Date(e.getFullYear(),e.getMonth(),1),1);break;default:throw new Error("Unexpected object: "+t)}var l=i;do{(t!==Um.WorkWeek||-1!==r.indexOf(l.getDay()))&&a.push(l),l=Gm(l,1)}while(!$m(l,s));return a}function nh(e,t){for(var n=0,r=t;n<r.length;n++){if($m(e,r[n]))return!0}return!1}function rh(e,t,n,r){var o=r.getFullYear(),i=r.getMonth(),a=1,s=new Date(o,i,a),l=a+(t+jm.DaysInOneWeek-1)-function(e,t){return e!==Vm.Sunday&&t<e?t+jm.DaysInOneWeek:t}(t,s.getDay()),c=new Date(o,i,l);a=c.getDate();for(var d=[],u=0;u<e;u++)d.push(oh(c,t,n)),a+=jm.DaysInOneWeek,c=new Date(o,i,a);return d}function oh(e,t,n){switch(n){case Wm.FirstFullWeek:return lh(e,t,jm.DaysInOneWeek);case Wm.FirstFourDayWeek:return lh(e,t,4);default:return function(e,t){var n=ch(e)-1,r=(e.getDay()-n%jm.DaysInOneWeek-t+2*jm.DaysInOneWeek)%jm.DaysInOneWeek;return Math.floor((n+r)/jm.DaysInOneWeek+1)}(e,t)}}function ih(e,t){var n=t-e.getDay();return n>0&&(n-=jm.DaysInOneWeek),Gm(e,n)}function ah(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate())}function sh(e){return e.getDate()+(e.getMonth()<<5)+(e.getFullYear()<<9)}function lh(e,t,n){var r=ch(e)-1,o=e.getDay()-r%jm.DaysInOneWeek,i=ch(new Date(e.getFullYear()-1,zm.December,31))-1,a=(t-o+2*jm.DaysInOneWeek)%jm.DaysInOneWeek;0!==a&&a>=n&&(a-=jm.DaysInOneWeek);var s=r-a;return s<0&&(0!==(a=(t-(o-=i%jm.DaysInOneWeek)+2*jm.DaysInOneWeek)%jm.DaysInOneWeek)&&a+1>=n&&(a-=jm.DaysInOneWeek),s=i-a),Math.floor(s/jm.DaysInOneWeek+1)}function ch(e){for(var t=e.getMonth(),n=e.getFullYear(),r=0,o=0;o<t;o++)r+=dh(o+1,n);return r+=e.getDate()}function dh(e,t){return new Date(t,e,0).getDate()}var uh={formatDay:function(e){return e.getDate().toString()},formatMonth:function(e,t){return t.months[e.getMonth()]},formatYear:function(e){return e.getFullYear().toString()},formatMonthDayYear:function(e,t){return t.months[e.getMonth()]+" "+e.getDate()+", "+e.getFullYear()},formatMonthYear:function(e,t){return t.months[e.getMonth()]+" "+e.getFullYear()}},ph=v(v({},{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["S","M","T","W","T","F","S"]}),{goToToday:"Go to today",weekNumberFormatString:"Week number {0}",prevMonthAriaLabel:"Previous month",nextMonthAriaLabel:"Next month",prevYearAriaLabel:"Previous year",nextYearAriaLabel:"Next year",prevYearRangeAriaLabel:"Previous year range",nextYearRangeAriaLabel:"Next year range",closeButtonAriaLabel:"Close",selectedDateFormatString:"Selected date {0}",todayDateFormatString:"Today's date {0}",monthPickerHeaderAriaLabel:"{0}, change year",yearPickerHeaderAriaLabel:"{0}, change month",dayMarkedAriaLabel:"marked"}),mh=function(e,t){var n=t.minDate;return!!n&&eh(n,e)>=1},hh=function(e,t){var n=t.maxDate;return!!n&&eh(e,n)>=1},fh=function(e,t){var n=t.restrictedDates,r=t.minDate,o=t.maxDate;return!!(n||r||o)&&(n&&n.some((function(t){return $m(t,e)}))||mh(e,t)||hh(e,t))},gh=function(e){var t=e.targetDate,n=e.initialDate,r=e.direction,o=y(e,["targetDate","initialDate","direction"]),i=t;if(!fh(t,o))return t;for(;0!==eh(n,i)&&fh(i,o)&&!hh(i,o)&&!mh(i,o);)i=Gm(i,r);return 0===eh(n,i)||fh(i,o)?void 0:i},vh=function(e,t,n){var r=C([],e,!0);return t&&(r=r.filter((function(e){return eh(e,t)>=0}))),n&&(r=r.filter((function(e){return eh(e,n)<=0}))),r},yh=function(e,t,n){return!t||e!==Um.WorkWeek||function(e,t,n){for(var r=new Set(e),o=0,i=0,a=e;i<a.length;i++){var s=(a[i]+1)%7;(!r.has(s)||t&&n===s)&&o++}return o<2}(t,!0,n)&&0!==t.length?e:Um.Week},bh=function(e,t,n){var r,o=jm.TimeFormatRegex.exec(n)||[],i=o[1],a=o[2],s=o[3],l=o[4],c=+i,d=+a,u=s?+s:0;e&&l&&("pm"===l.toLowerCase()&&c!==jm.OffsetTo24HourFormat?c+=jm.OffsetTo24HourFormat:"am"===l.toLowerCase()&&c===jm.OffsetTo24HourFormat&&(c-=jm.OffsetTo24HourFormat)),r=t.getHours()>c||t.getHours()===c&&t.getMinutes()>d?jm.HoursInOneDay-t.getHours()+c:Math.abs(t.getHours()-c);var p=jm.MillisecondsIn1Sec*jm.MinutesInOneHour*r*jm.SecondsInOneMinute+u*jm.MillisecondsIn1Sec,m=new Date(t.getTime()+p);return m.setMinutes(d),m.setSeconds(u),m},Ch=function(e,t,n){var r=e.toLocaleTimeString([],{hour:"numeric",minute:"2-digit",second:t?"2-digit":void 0,hour12:n});return n||"24"!==r.slice(0,2)||(r="00"+r.slice(2)),r};L("@fluentui/date-time-utilities","8.6.9");var Sh=function(e){var t=e.showWeekNumbers,n=e.strings,r=e.firstDayOfWeek,o=e.allFocusable,i=e.weeksToShow,a=e.weeks,s=e.classNames,l=n.shortDays.slice(),c=hn(a[1],(function(e){return 1===e.originalDate.getDate()}));1===i&&c>=0&&(l[(c+r)%7]=n.shortMonths[a[1][c].originalDate.getMonth()]);return u.createElement("tr",null,t&&u.createElement("th",{className:s.dayCell}),l.map((function(e,t){var i=(t+r)%7,a=n.days[i];return u.createElement("th",{className:Wn(s.dayCell,s.weekDayLabelCell),scope:"col",key:l[i]+" "+t,title:a,"aria-label":a,"data-is-focusable":!!o||void 0},l[i])})))},xh=function(e){var t,n=e.navigatedDate,r=e.dateTimeFormatter,o=e.allFocusable,i=e.strings,a=e.activeDescendantId,s=e.navigatedDayRef,l=e.calculateRoundedStyles,c=e.weeks,d=e.classNames,p=e.day,m=e.dayIndex,h=e.weekIndex,f=e.weekCorners,g=e.ariaHidden,v=e.customDayCellRef,y=e.dateRangeType,b=e.daysToSelectInDayView,C=e.onSelectDate,S=e.restrictedDates,x=e.minDate,k=e.maxDate,P=e.onNavigateDate,I=e.getDayInfosInRangeOfDay,w=e.getRefsFromDayInfos,E=null!==(t=null===f||void 0===f?void 0:f[h+"_"+m])&&void 0!==t?t:"",_=$m(n,p.originalDate),D=p.originalDate.getDate()+", "+i.months[p.originalDate.getMonth()]+", "+p.originalDate.getFullYear();return p.isMarked&&(D=D+", "+i.dayMarkedAriaLabel),u.createElement("td",{className:Wn(d.dayCell,f&&E,p.isSelected&&d.daySelected,p.isSelected&&"ms-CalendarDay-daySelected",!p.isInBounds&&d.dayOutsideBounds,!p.isInMonth&&d.dayOutsideNavigatedMonth),ref:function(e){null===v||void 0===v||v(e,p.originalDate,d),p.setRef(e),_&&(s.current=e)},"aria-hidden":g,"aria-disabled":!g&&!p.isInBounds,onClick:p.isInBounds&&!g?p.onSelected:void 0,onMouseOver:g?void 0:function(e){var t=I(p),n=w(t);n.forEach((function(e,r){var o;if(e&&(e.classList.add("ms-CalendarDay-hoverStyle"),!t[r].isSelected&&y===Um.Day&&b&&b>1)){e.classList.remove(d.bottomLeftCornerDate,d.bottomRightCornerDate,d.topLeftCornerDate,d.topRightCornerDate);var i=l(d,!1,!1,r>0,r<n.length-1).trim();i&&(o=e.classList).add.apply(o,i.split(" "))}}))},onMouseDown:g?void 0:function(e){var t=I(p);w(t).forEach((function(e){e&&e.classList.add("ms-CalendarDay-pressedStyle")}))},onMouseUp:g?void 0:function(e){var t=I(p);w(t).forEach((function(e){e&&e.classList.remove("ms-CalendarDay-pressedStyle")}))},onMouseOut:g?void 0:function(e){var t=I(p),n=w(t);n.forEach((function(e,r){var o;if(e&&(e.classList.remove("ms-CalendarDay-hoverStyle"),e.classList.remove("ms-CalendarDay-pressedStyle"),!t[r].isSelected&&y===Um.Day&&b&&b>1)){var i=l(d,!1,!1,r>0,r<n.length-1).trim();i&&(o=e.classList).remove.apply(o,i.split(" "))}}))},onKeyDown:g?void 0:function(e){e.which===Wt?null===C||void 0===C||C(p.originalDate):function(e,t){var n=void 0,r=1;if(e.which===$t?(n=qm(t,-1),r=-1):e.which===tn?n=qm(t,1):e.which===xn(Xt)?(n=Gm(t,-1),r=-1):e.which===xn(en)&&(n=Gm(t,1)),n){var o={initialDate:t,targetDate:n,direction:r,restrictedDates:S,minDate:x,maxDate:k},i=gh(o);i||(o.direction=-r,i=gh(o)),c&&i&&c.slice(1,c.length-1).some((function(e){return e.some((function(e){return $m(e.originalDate,i)}))}))||i&&(P(i,!0),e.preventDefault())}}(e,p.originalDate)},role:"gridcell",tabIndex:_?0:void 0,"aria-current":p.isToday?"date":void 0,"aria-selected":p.isInBounds?p.isSelected:void 0,"data-is-focusable":!g&&(o||!!p.isInBounds||void 0)},u.createElement("button",{key:p.key+"button","aria-hidden":g,className:Wn(d.dayButton,p.isToday&&d.dayIsToday,p.isToday&&"ms-CalendarDay-dayIsToday"),"aria-label":D,id:_?a:void 0,disabled:!g&&!p.isInBounds,type:"button",tabIndex:-1,"data-is-focusable":"false"},u.createElement("span",{"aria-hidden":"true"},r.formatDay(p.originalDate)),p.isMarked&&u.createElement("div",{"aria-hidden":"true",className:d.dayMarker})))},kh=function(e){var t=e.classNames,n=e.week,r=e.weeks,o=e.weekIndex,i=e.rowClassName,a=e.ariaRole,s=e.showWeekNumbers,l=e.firstDayOfWeek,c=e.firstWeekOfYear,d=e.navigatedDate,p=e.strings,m=s?rh(r.length,l,c,d):null,h=m?p.weekNumberFormatString&&qo(p.weekNumberFormatString,m[o]):"";return u.createElement("tr",{role:a,className:i,key:o+"_"+n[0].key},s&&m&&u.createElement("th",{className:t.weekNumberCell,key:o,title:h,"aria-label":h,scope:"row"},u.createElement("span",null,m[o])),n.map((function(t,n){return u.createElement(xh,v({},e,{key:t.key,day:t,dayIndex:n}))})))},Ph=wn();function Ih(e,t,n){var r=u.useMemo((function(){for(var r,o=function(e){var t,n=e.selectedDate,r=e.dateRangeType,o=e.firstDayOfWeek,i=e.today,a=e.minDate,s=e.maxDate,l=e.weeksToShow,c=e.workWeekDays,d=e.daysToSelectInDayView,u=e.restrictedDates,p=e.markedDays,m={minDate:a,maxDate:s,restrictedDates:u},h=i||new Date,f=e.navigatedDate?e.navigatedDate:h;t=l&&l<=4?new Date(f.getFullYear(),f.getMonth(),f.getDate()):new Date(f.getFullYear(),f.getMonth(),1);for(var g=[];t.getDay()!==o;)t.setDate(t.getDate()-1);t=Gm(t,-7);var v=!1,y=yh(r,c,o),b=[];n&&(b=th(n,y,o,c,d),b=vh(b,a,s));for(var C=!0,S=0;C;S++){var x=[];v=!0;for(var k=function(e){var n=new Date(t.getTime()),r={key:t.toString(),date:t.getDate().toString(),originalDate:n,isInMonth:t.getMonth()===f.getMonth(),isToday:$m(h,t),isSelected:nh(t,b),isInBounds:!fh(t,m),isMarked:(null===p||void 0===p?void 0:p.some((function(e){return $m(n,e)})))||!1};x.push(r),r.isInMonth&&(v=!1),t.setDate(t.getDate()+1)},P=0;P<7;P++)k();C=l?S<l+1:!v||0===S,g.push(x)}return g}(e),i=o[1][0].originalDate,a=o[o.length-1][6].originalDate,s=(null===(r=e.getMarkedDays)||void 0===r?void 0:r.call(e,i,a))||[],l=[],c=0;c<o.length;c++){for(var d=[],u=function(e){var r=o[c][e],i=v(v({onSelected:function(){return t(r.originalDate)},setRef:n(r.key)},r),{isMarked:r.isMarked||(null===s||void 0===s?void 0:s.some((function(e){return $m(r.originalDate,e)})))});d.push(i)},p=0;p<7;p++)u(p);l.push(d)}return l}),[e]);return r}var wh,Eh=function(e){var t=u.useRef(null),n=jl(),r=function(){var e=u.useRef({});return[e,function(t){return function(n){null===n?delete e.current[t]:e.current[t]=n}}]}(),o=r[0],i=r[1],a=Ih(e,(function(t){var n,r,o=e.firstDayOfWeek,i=e.minDate,a=e.maxDate,s=e.workWeekDays,l=e.daysToSelectInDayView,c={minDate:i,maxDate:a,restrictedDates:e.restrictedDates},d=th(t,f,o,s,l);d=(d=vh(d,i,a)).filter((function(e){return!fh(e,c)})),null===(n=e.onSelectDate)||void 0===n||n.call(e,t,d),null===(r=e.onNavigateDate)||void 0===r||r.call(e,t,!0)}),i),s=function(e){var t=Yl(e[0][0].originalDate);return t&&t.getTime()!==e[0][0].originalDate.getTime()?!(t<=e[0][0].originalDate):void 0}(a),l=function(e){var t=function(e,t,n,r,o){var i=[],a=!t&&!o,s=!n&&!r,l=!n&&!o;return!t&&!r&&i.push(Sn()?e.topRightCornerDate:e.topLeftCornerDate),a&&i.push(Sn()?e.topLeftCornerDate:e.topRightCornerDate),s&&i.push(Sn()?e.bottomRightCornerDate:e.bottomLeftCornerDate),l&&i.push(Sn()?e.bottomLeftCornerDate:e.bottomRightCornerDate),i.join(" ")},n=function(e,t,n,r,o){var i=[];return t||i.push(e.datesAbove),n||i.push(e.datesBelow),r||i.push(Sn()?e.datesRight:e.datesLeft),o||i.push(Sn()?e.datesLeft:e.datesRight),i.join(" ")},r=function(t,n,r,o){var i=e.dateRangeType,a=e.firstDayOfWeek,s=e.workWeekDays,l=th(t,i===Um.WorkWeek?Um.Week:i,a,s);return r===o&&(!(!r||!o)||l.filter((function(e){return e.getTime()===n.getTime()})).length>0)};return[function(e,o){var i={},a=o.slice(1,o.length-1);return a.forEach((function(o,s){o.forEach((function(o,l){var c=a[s-1]&&a[s-1][l]&&r(a[s-1][l].originalDate,o.originalDate,a[s-1][l].isSelected,o.isSelected),d=a[s+1]&&a[s+1][l]&&r(a[s+1][l].originalDate,o.originalDate,a[s+1][l].isSelected,o.isSelected),u=a[s][l-1]&&r(a[s][l-1].originalDate,o.originalDate,a[s][l-1].isSelected,o.isSelected),p=a[s][l+1]&&r(a[s][l+1].originalDate,o.originalDate,a[s][l+1].isSelected,o.isSelected),m=[];m.push(t(e,c,d,u,p)),m.push(n(e,c,d,u,p)),i[s+"_"+l]=m.join(" ")}))})),i},t]}(e),c=l[0],d=l[1];u.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,n;null===(n=null===(e=t.current)||void 0===e?void 0:e.focus)||void 0===n||n.call(e)}}}),[]);var p=e.styles,m=e.theme,h=e.className,f=e.dateRangeType,g=e.showWeekNumbers,y=e.labelledBy,b=e.lightenDaysOutsideNavigatedMonth,C=e.animationDirection,S=Ph(p,{theme:m,className:h,dateRangeType:f,showWeekNumbers:g,lightenDaysOutsideNavigatedMonth:void 0===b||b,animationDirection:C,animateBackwards:s}),x=c(S,a),k={weeks:a,navigatedDayRef:t,calculateRoundedStyles:d,activeDescendantId:n,classNames:S,weekCorners:x,getDayInfosInRangeOfDay:function(t){var n=function(e,t){if(t&&e===Um.WorkWeek){for(var n=t.slice().sort(),r=!0,o=1;o<n.length;o++)if(n[o]!==n[o-1]+1){r=!1;break}if(!r||0===t.length)return Um.Week}return e}(e.dateRangeType,e.workWeekDays),r=th(t.originalDate,n,e.firstDayOfWeek,e.workWeekDays,e.daysToSelectInDayView).map((function(e){return e.getTime()}));return a.reduce((function(e,t){return e.concat(t.filter((function(e){return-1!==r.indexOf(e.originalDate.getTime())})))}),[])},getRefsFromDayInfos:function(e){return e.map((function(e){return o.current[e.key]}))}};return u.createElement(Cu,{className:S.wrapper,preventDefaultWhenHandled:!0},u.createElement("table",{className:S.table,"aria-multiselectable":"false","aria-labelledby":y,"aria-activedescendant":n,role:"grid"},u.createElement("tbody",null,u.createElement(Sh,v({},e,{classNames:S,weeks:a})),u.createElement(kh,v({},e,k,{week:a[0],weekIndex:-1,rowClassName:S.firstTransitionWeek,ariaRole:"presentation",ariaHidden:!0})),a.slice(1,a.length-1).map((function(t,n){return u.createElement(kh,v({},e,k,{key:n,week:t,weekIndex:n,rowClassName:S.weekRow}))})),u.createElement(kh,v({},e,k,{week:a[a.length-1],weekIndex:-2,rowClassName:S.lastTransitionWeek,ariaRole:"presentation",ariaHidden:!0})))))};Eh.displayName="CalendarDayGridBase",function(e){e[e.Horizontal=0]="Horizontal",e[e.Vertical=1]="Vertical"}(wh||(wh={}));var _h={hoverStyle:"ms-CalendarDay-hoverStyle",pressedStyle:"ms-CalendarDay-pressedStyle",dayIsTodayStyle:"ms-CalendarDay-dayIsToday",daySelectedStyle:"ms-CalendarDay-daySelected"},Dh=Me({"100%":{width:0,height:0,overflow:"hidden"},"99.9%":{width:"100%",height:28,overflow:"visible"},"0%":{width:"100%",height:28,overflow:"visible"}}),Th=Jo(Eh,(function(e){var t,n,r,o,i,a,s,l,c,d,u=e.theme,p=e.dateRangeType,m=e.showWeekNumbers,h=e.lightenDaysOutsideNavigatedMonth,f=e.animateBackwards,g=e.animationDirection,y=u.palette,b=os(_h,u),C={};void 0!==f&&(C=g===wh.Horizontal?f?_a.slideRightIn20:_a.slideLeftIn20:f?_a.slideDownIn20:_a.slideUpIn20);var S={},x={};void 0!==f&&g!==wh.Horizontal&&(S=f?{animationName:""}:_a.slideUpOut20,x=f?_a.slideDownOut20:{animationName:""});var k={selectors:{"&, &:disabled, & button":{color:y.neutralTertiaryAlt,pointerEvents:"none"}}};return{wrapper:{paddingBottom:10},table:[{textAlign:"center",borderCollapse:"collapse",borderSpacing:"0",tableLayout:"fixed",fontSize:"inherit",marginTop:4,width:196,position:"relative",paddingBottom:10},m&&{width:226}],dayCell:[Ya(u,{inset:-3}),{margin:0,padding:0,width:28,height:28,lineHeight:28,fontSize:Fi.small,fontWeight:Hi.regular,color:y.neutralPrimary,cursor:"pointer",position:"relative",selectors:(t={},t[Wa]=v({color:"WindowText",backgroundColor:"transparent",zIndex:0},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t["&."+b.hoverStyle]={backgroundColor:y.neutralLighter,selectors:(n={},n[Wa]={zIndex:3,backgroundColor:"Window",outline:"1px solid Highlight"},n)},t["&."+b.pressedStyle]={backgroundColor:y.neutralLight,selectors:(r={},r[Wa]={borderColor:"Highlight",color:"Highlight",backgroundColor:"Window"},r)},t["&."+b.pressedStyle+"."+b.hoverStyle]={selectors:(o={},o[Wa]={backgroundColor:"Window",outline:"1px solid Highlight"},o)},t)}],daySelected:[p!==Um.Month&&{backgroundColor:y.neutralLight+"!important",selectors:(i={"&::before":{content:'""',position:"absolute",top:0,bottom:0,left:0,right:0}},i["&:hover, &."+b.hoverStyle+", &."+b.pressedStyle]=(a={backgroundColor:y.neutralLight+"!important"},a[Wa]={color:"HighlightText!important",background:"Highlight!important"},a),i[Wa]=v({background:"Highlight!important",color:"HighlightText!important",borderColor:"Highlight!important"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}],weekRow:C,weekDayLabelCell:_a.fadeIn200,weekNumberCell:{margin:0,padding:0,borderRight:"1px solid",borderColor:y.neutralLight,backgroundColor:y.neutralLighterAlt,color:y.neutralSecondary,boxSizing:"border-box",width:28,height:28,fontWeight:Hi.regular,fontSize:Fi.small},dayOutsideBounds:k,dayOutsideNavigatedMonth:h&&{color:y.neutralSecondary,fontWeight:Hi.regular},dayButton:{width:24,height:24,lineHeight:24,fontSize:Fi.small,fontWeight:"inherit",borderRadius:2,border:"none",padding:0,color:"inherit",backgroundColor:"transparent",cursor:"pointer",overflow:"visible",selectors:{span:{height:"inherit",lineHeight:"inherit"}}},dayIsToday:{backgroundColor:y.themePrimary+"!important",borderRadius:"100%",color:y.white+"!important",fontWeight:Hi.semibold+"!important",selectors:(s={},s[Wa]=v({background:"WindowText!important",color:"Window!important",borderColor:"WindowText!important"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s)},firstTransitionWeek:v(v({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden"},S),{animationName:S.animationName+","+Dh}),lastTransitionWeek:v(v({position:"absolute",opacity:0,width:0,height:0,overflow:"hidden",marginTop:-28},x),{animationName:x.animationName+","+Dh}),dayMarker:{width:4,height:4,backgroundColor:y.neutralSecondary,borderRadius:"100%",bottom:1,left:0,right:0,position:"absolute",margin:"auto",selectors:(l={},l["."+b.dayIsTodayStyle+" &"]={backgroundColor:y.white,selectors:(c={},c[Wa]={backgroundColor:"Window"},c)},l["."+b.daySelectedStyle+" &"]={selectors:(d={},d[Wa]={backgroundColor:"HighlightText"},d)},l[Wa]=v({backgroundColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)},topRightCornerDate:{borderTopRightRadius:"2px"},topLeftCornerDate:{borderTopLeftRadius:"2px"},bottomRightCornerDate:{borderBottomRightRadius:"2px"},bottomLeftCornerDate:{borderBottomLeftRadius:"2px"},datesAbove:{"&::before":{borderTop:"1px solid ".concat(y.neutralSecondary)}},datesBelow:{"&::before":{borderBottom:"1px solid ".concat(y.neutralSecondary)}},datesLeft:{"&::before":{borderLeft:"1px solid ".concat(y.neutralSecondary)}},datesRight:{"&::before":{borderRight:"1px solid ".concat(y.neutralSecondary)}}}}),void 0,{scope:"CalendarDayGrid"}),Rh=wn(),Ah=function(e){var t=u.useRef(null);u.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,n;null===(n=null===(e=t.current)||void 0===e?void 0:e.focus)||void 0===n||n.call(e)}}}),[]);var n=e.strings,r=e.navigatedDate,o=e.dateTimeFormatter,i=e.styles,a=e.theme,s=e.className,l=e.onHeaderSelect,c=e.showSixWeeksByDefault,d=e.minDate,p=e.maxDate,m=e.restrictedDates,h=e.onNavigateDate,f=e.showWeekNumbers,g=e.dateRangeType,y=e.animationDirection,b=jl(),C=Rh(i,{theme:a,className:s,headerIsClickable:!!l,showWeekNumbers:f,animationDirection:y}),S=o.formatMonthYear(r,n),x=l?"button":"div",k=n.yearPickerHeaderAriaLabel?qo(n.yearPickerHeaderAriaLabel,S):S;return u.createElement("div",{className:C.root},u.createElement("div",{className:C.header},u.createElement(x,{"aria-label":l?k:void 0,className:C.monthAndYear,onClick:l,"data-is-focusable":!!l,tabIndex:l?0:-1,onKeyDown:Nh(l),type:"button"},u.createElement("span",{id:b,"aria-live":"polite","aria-atomic":"true"},S)),u.createElement(Mh,v({},e,{classNames:C}))),u.createElement(Th,v({},e,{styles:i,componentRef:t,strings:n,navigatedDate:r,weeksToShow:c?6:void 0,dateTimeFormatter:o,minDate:d,maxDate:p,restrictedDates:m,onNavigateDate:h,labelledBy:b,dateRangeType:g})))};Ah.displayName="CalendarDayBase";var Mh=function(e){var t,n,r=e.minDate,o=e.maxDate,i=e.navigatedDate,a=e.allFocusable,s=e.strings,l=e.navigationIcons,c=e.showCloseButton,d=e.classNames,p=e.onNavigateDate,m=e.onDismiss,h=function(){p(Ym(i,1),!1)},f=function(){p(Ym(i,-1),!1)},g=l.leftNavigation,v=l.rightNavigation,y=l.closeIcon,b=!r||eh(r,Jm(i))<0,C=!o||eh(Qm(i),o)<0;return u.createElement("div",{className:d.monthComponents},u.createElement("button",{className:Wn(d.headerIconButton,(t={},t[d.disabledStyle]=!b,t)),tabIndex:b?void 0:a?0:-1,"aria-disabled":!b,onClick:b?f:void 0,onKeyDown:b?Nh(f):void 0,title:s.prevMonthAriaLabel?s.prevMonthAriaLabel+" "+s.months[Ym(i,-1).getMonth()]:void 0,type:"button"},u.createElement(gd,{iconName:g})),u.createElement("button",{className:Wn(d.headerIconButton,(n={},n[d.disabledStyle]=!C,n)),tabIndex:C?void 0:a?0:-1,"aria-disabled":!C,onClick:C?h:void 0,onKeyDown:C?Nh(h):void 0,title:s.nextMonthAriaLabel?s.nextMonthAriaLabel+" "+s.months[Ym(i,1).getMonth()]:void 0,type:"button"},u.createElement(gd,{iconName:v})),c&&u.createElement("button",{className:Wn(d.headerIconButton),onClick:m,onKeyDown:Nh(m),title:s.closeButtonAriaLabel,type:"button"},u.createElement(gd,{iconName:y})))};Mh.displayName="CalendarDayNavigationButtons";var Nh=function(e){return function(t){if(t.which===Wt)null===e||void 0===e||e()}},Fh=Jo(Ah,(function(e){var t,n=e.className,r=e.theme,o=e.headerIsClickable,i=e.showWeekNumbers,a=r.palette,s={selectors:(t={"&, &:disabled, & button":{color:a.neutralTertiaryAlt,pointerEvents:"none"}},t[Wa]={color:"GrayText",forcedColorAdjust:"none"},t)};return{root:[ks,{width:196,padding:12,boxSizing:"content-box"},i&&{width:226},n],header:{position:"relative",display:"inline-flex",height:28,lineHeight:44,width:"100%"},monthAndYear:[Ya(r,{inset:1}),v(v({},_a.fadeIn200),{alignItems:"center",fontSize:Fi.medium,fontFamily:"inherit",color:a.neutralPrimary,display:"inline-block",flexGrow:1,fontWeight:Hi.semibold,padding:"0 4px 0 10px",border:"none",backgroundColor:"transparent",borderRadius:2,lineHeight:28,overflow:"hidden",whiteSpace:"nowrap",textAlign:"left",textOverflow:"ellipsis"}),o&&{selectors:{"&:hover":{cursor:"pointer",background:a.neutralLight,color:a.black}}}],monthComponents:{display:"inline-flex",alignSelf:"flex-end"},headerIconButton:[Ya(r,{inset:-1}),{width:28,height:28,display:"block",textAlign:"center",lineHeight:28,fontSize:Fi.small,fontFamily:"inherit",color:a.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:a.neutralDark,backgroundColor:a.neutralLight,cursor:"pointer",outline:"1px solid transparent"}}}],disabledStyle:s}}),void 0,{scope:"CalendarDay"}),Hh=function(e){var t,n,r,o,i,a,s,l=e.className,c=e.theme,d=e.hasHeaderClickCallback,u=e.highlightCurrent,p=e.highlightSelected,m=e.animateBackwards,h=e.animationDirection,f=c.palette,g={};void 0!==m&&(g=h===wh.Horizontal?m?_a.slideRightIn20:_a.slideLeftIn20:m?_a.slideDownIn20:_a.slideUpIn20);var y=void 0!==m?_a.fadeIn200:{};return{root:[ks,{width:196,padding:12,boxSizing:"content-box",overflow:"hidden"},l],headerContainer:{display:"flex"},currentItemButton:[Ya(c,{inset:-1}),v(v({},y),{fontSize:Fi.medium,fontWeight:Hi.semibold,fontFamily:"inherit",textAlign:"left",color:"inherit",backgroundColor:"transparent",flexGrow:1,padding:"0 4px 0 10px",border:"none",overflow:"visible"}),d&&{selectors:{"&:hover, &:active":{cursor:d?"pointer":"default",color:f.neutralDark,outline:"1px solid transparent",backgroundColor:f.neutralLight}}}],navigationButtonsContainer:{display:"flex",alignItems:"center"},navigationButton:[Ya(c,{inset:-1}),{fontFamily:"inherit",width:28,minWidth:28,height:28,minHeight:28,display:"block",textAlign:"center",lineHeight:28,fontSize:Fi.small,color:f.neutralPrimary,borderRadius:2,position:"relative",backgroundColor:"transparent",border:"none",padding:0,overflow:"visible",selectors:{"&:hover":{color:f.neutralDark,cursor:"pointer",outline:"1px solid transparent",backgroundColor:f.neutralLight}}}],gridContainer:{marginTop:4},buttonRow:v(v({},g),{marginBottom:16,selectors:{"&:nth-child(n + 3)":{marginBottom:0}}}),itemButton:[Ya(c,{inset:-1}),{width:40,height:40,minWidth:40,minHeight:40,lineHeight:40,fontSize:Fi.small,fontFamily:"inherit",padding:0,margin:"0 12px 0 0",color:f.neutralPrimary,backgroundColor:"transparent",border:"none",borderRadius:2,overflow:"visible",selectors:{"&:nth-child(4n + 4)":{marginRight:0},"&:nth-child(n + 9)":{marginBottom:0},"& div":{fontWeight:Hi.regular},"&:hover":{color:f.neutralDark,backgroundColor:f.neutralLight,cursor:"pointer",outline:"1px solid transparent",selectors:(t={},t[Wa]=v({background:"Window",color:"WindowText",outline:"1px solid Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},"&:active":{backgroundColor:f.themeLight,selectors:(n={},n[Wa]=v({background:"Window",color:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)}}}],current:u?{color:f.white,backgroundColor:f.themePrimary,selectors:(r={"& div":{fontWeight:Hi.semibold},"&:hover":{backgroundColor:f.themePrimary,selectors:(o={},o[Wa]=v({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}},r[Wa]=v({backgroundColor:"WindowText",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)}:{},selected:p?{color:f.neutralPrimary,backgroundColor:f.themeLight,fontWeight:Hi.semibold,selectors:(i={"& div":{fontWeight:Hi.semibold},"&:hover, &:active":{backgroundColor:f.themeLight,selectors:(a={},a[Wa]=v({color:"Window",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}},i[Wa]=v({background:"Highlight",color:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}:{},disabled:{selectors:(s={"&, &:disabled, & button":{color:f.neutralTertiaryAlt,pointerEvents:"none"}},s[Wa]={color:"GrayText",forcedColorAdjust:"none"},s)}}},Oh=function(e){return Hh(e)},Bh=ph,Lh={leftNavigation:"Up",rightNavigation:"Down",closeIcon:"CalculatorMultiply"},Vh=wn(),zh=12,Wh={prevRangeAriaLabel:void 0,nextRangeAriaLabel:void 0},Uh=function(e){var t,n,r=e.styles,o=e.theme,i=e.className,a=e.highlightCurrentYear,s=e.highlightSelectedYear,l=e.year,c=e.selected,d=e.disabled,p=e.componentRef,m=e.onSelectYear,h=e.onRenderYear,f=u.useRef(null);u.useImperativeHandle(p,(function(){return{focus:function(){var e,t;null===(t=null===(e=f.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}}),[]);var g=Vh(r,{theme:o,className:i,highlightCurrent:a,highlightSelected:s});return u.createElement("button",{className:Wn(g.itemButton,(t={},t[g.selected]=c,t[g.disabled]=d,t)),type:"button",role:"gridcell",onClick:d?void 0:function(){null===m||void 0===m||m(l)},onKeyDown:d?void 0:function(e){e.which===Wt&&(null===m||void 0===m||m(l))},disabled:d,"aria-selected":c,ref:f},null!==(n=null===h||void 0===h?void 0:h(l))&&void 0!==n?n:l)};Uh.displayName="CalendarYearGridCell";var Kh,jh=function(e){var t=e.styles,n=e.theme,r=e.className,o=e.fromYear,i=e.toYear,a=e.animationDirection,s=e.animateBackwards,l=e.minYear,c=e.maxYear,d=e.onSelectYear,p=e.selectedYear,m=e.componentRef,h=u.useRef(null),f=u.useRef(null);u.useImperativeHandle(m,(function(){return{focus:function(){var e,t;null===(t=null===(e=h.current||f.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}}),[]);for(var g=function(t){var r=t===p,o=void 0!==l&&t<l||void 0!==c&&t>c,i=t===(new Date).getFullYear();return u.createElement(Uh,v({},e,{key:t,year:t,selected:r,current:i,disabled:o,onSelectYear:d,componentRef:r?h:i?f:void 0,theme:n}))},y=Vh(t,{theme:n,className:r,animateBackwards:s,animationDirection:a}),b=function(t){var n,r;return null!==(r=null===(n=e.onRenderYear)||void 0===n?void 0:n.call(e,t))&&void 0!==r?r:t},S="".concat(b(o)," - ").concat(b(i)),x=o,k=[],P=0;P<(i-o+1)/4;P++){k.push([]);for(var I=0;I<4;I++)k[P].push(g(x)),x++}return u.createElement(Cu,null,u.createElement("div",{className:y.gridContainer,role:"grid","aria-label":S},k.map((function(e,t){return u.createElement.apply(u,C(["div",{key:"yearPickerRow_"+t+"_"+o,role:"row",className:y.buttonRow}],e,!1))}))))};jh.displayName="CalendarYearGrid",function(e){e[e.Previous=0]="Previous",e[e.Next=1]="Next"}(Kh||(Kh={}));var Gh=function(e){var t,n=e.styles,r=e.theme,o=e.className,i=e.navigationIcons,a=void 0===i?Lh:i,s=e.strings,l=void 0===s?Wh:s,c=e.direction,d=e.onSelectPrev,p=e.onSelectNext,m=e.fromYear,h=e.toYear,f=e.maxYear,g=e.minYear,v=Vh(n,{theme:r,className:o}),y=c===Kh.Previous?l.prevRangeAriaLabel:l.nextRangeAriaLabel,b=c===Kh.Previous?-12:zh,C=y?"string"===typeof y?y:y({fromYear:m+b,toYear:h+b}):void 0,S=c===Kh.Previous?void 0!==g&&m<g:void 0!==f&&e.fromYear+zh>f,x=function(){c===Kh.Previous?null===d||void 0===d||d():null===p||void 0===p||p()},k=Sn()?c===Kh.Next:c===Kh.Previous;return u.createElement("button",{className:Wn(v.navigationButton,(t={},t[v.disabled]=S,t)),onClick:S?void 0:x,onKeyDown:S?void 0:function(e){e.which===Wt&&x()},type:"button",title:C,disabled:S},u.createElement(gd,{iconName:k?a.leftNavigation:a.rightNavigation}))};Gh.displayName="CalendarYearNavArrow";var qh=function(e){var t=e.styles,n=e.theme,r=e.className,o=Vh(t,{theme:n,className:r});return u.createElement("div",{className:o.navigationButtonsContainer},u.createElement(Gh,v({},e,{direction:Kh.Previous})),u.createElement(Gh,v({},e,{direction:Kh.Next})))};qh.displayName="CalendarYearNav";var Yh=function(e){var t=e.styles,n=e.theme,r=e.className,o=e.fromYear,i=e.toYear,a=e.strings,s=void 0===a?Wh:a,l=e.animateBackwards,c=e.animationDirection,d=function(){var t;null===(t=e.onHeaderSelect)||void 0===t||t.call(e,!0)},p=function(t){var n,r;return null!==(r=null===(n=e.onRenderYear)||void 0===n?void 0:n.call(e,t))&&void 0!==r?r:t},m=Vh(t,{theme:n,className:r,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:l,animationDirection:c});if(e.onHeaderSelect){var h=s.rangeAriaLabel,f=s.headerAriaLabelFormatString,g=h?"string"===typeof h?h:h(e):void 0,v=f?qo(f,g):g;return u.createElement("button",{className:m.currentItemButton,onClick:d,onKeyDown:function(e){e.which!==Wt&&e.which!==qt||d()},"aria-label":v,role:"button",type:"button"},u.createElement("span",{"aria-live":"assertive","aria-atomic":"true"},p(o)," - ",p(i)))}return u.createElement("div",{className:m.current},p(o)," - ",p(i))};Yh.displayName="CalendarYearTitle";var Zh=function(e){var t,n=e.styles,r=e.theme,o=e.className,i=e.animateBackwards,a=e.animationDirection,s=e.onRenderTitle,l=Vh(n,{theme:r,className:o,hasHeaderClickCallback:!!e.onHeaderSelect,animateBackwards:i,animationDirection:a});return u.createElement("div",{className:l.headerContainer},null!==(t=null===s||void 0===s?void 0:s(e))&&void 0!==t?t:u.createElement(Yh,v({},e)),u.createElement(qh,v({},e)))};Zh.displayName="CalendarYearHeader";var Jh=function(e){var t=function(e){var t=e.selectedYear,n=e.navigatedYear,r=t||n||(new Date).getFullYear(),o=10*Math.floor(r/10),i=Yl(o);return i&&i!==o?i>o:void 0}(e),n=function(e){var t=e.selectedYear,n=e.navigatedYear,r=u.useMemo((function(){return t||n||10*Math.floor((new Date).getFullYear()/10)}),[n,t]),o=u.useState(r),i=o[0],a=o[1];return u.useEffect((function(){a(r)}),[r]),[i,i+zh-1,function(){a((function(e){return e+zh}))},function(){a((function(e){return e-zh}))}]}(e),r=n[0],o=n[1],i=n[2],a=n[3],s=u.useRef(null);u.useImperativeHandle(e.componentRef,(function(){return{focus:function(){var e,t;null===(t=null===(e=s.current)||void 0===e?void 0:e.focus)||void 0===t||t.call(e)}}}));var l=e.styles,c=e.theme,d=e.className,p=Vh(l,{theme:c,className:d});return u.createElement("div",{className:p.root},u.createElement(Zh,v({},e,{fromYear:r,toYear:o,onSelectPrev:a,onSelectNext:i,animateBackwards:t})),u.createElement(jh,v({},e,{fromYear:r,toYear:o,animateBackwards:t,componentRef:s})))};Jh.displayName="CalendarYearBase";var Qh=Jo(Jh,(function(e){return Hh(e)}),void 0,{scope:"CalendarYear"}),Xh=wn(),$h={styles:Oh,strings:void 0,navigationIcons:Lh,dateTimeFormatter:uh,yearPickerHidden:!1};var ef=function(e){var t,n,r=$o($h,e),o=function(e){var t=e.componentRef,n=u.useRef(null),r=u.useRef(null),o=u.useRef(!1),i=u.useCallback((function(){r.current?r.current.focus():n.current&&n.current.focus()}),[]);return u.useImperativeHandle(t,(function(){return{focus:i}}),[i]),u.useEffect((function(){o.current&&(i(),o.current=!1)})),[n,r,function(){o.current=!0}]}(r),i=o[0],a=o[1],s=o[2],l=u.useState(!1),c=l[0],d=l[1],p=function(e){var t=e.navigatedDate.getFullYear(),n=Yl(t);return void 0===n||n===t?void 0:n>t}(r),m=r.navigatedDate,h=r.selectedDate,f=r.strings,g=r.today,v=void 0===g?new Date:g,y=r.navigationIcons,b=r.dateTimeFormatter,C=r.minDate,S=r.maxDate,x=r.theme,k=r.styles,P=r.className,I=r.allFocusable,w=r.highlightCurrentMonth,E=r.highlightSelectedMonth,_=r.animationDirection,D=r.yearPickerHidden,T=r.onNavigateDate,R=function(e){return function(){return N(e)}},A=function(){T(Zm(m,1),!1)},M=function(){T(Zm(m,-1),!1)},N=function(e){var t;null===(t=r.onHeaderSelect)||void 0===t||t.call(r),T(Xm(m,e),!0)},F=function(){var e;D?null===(e=r.onHeaderSelect)||void 0===e||e.call(r):(s(),d(!0))},H=y.leftNavigation,O=y.rightNavigation,B=b,L=!C||eh(C,new Date(m.getFullYear(),0,1,0,0,0,0))<0,V=!S||eh(function(e){return new Date(e.getFullYear()+1,0,0,0,0,0,0)}(m),S)<0,z=Xh(k,{theme:x,className:P,hasHeaderClickCallback:!!r.onHeaderSelect||!D,highlightCurrent:w,highlightSelected:E,animateBackwards:p,animationDirection:_});if(c){var W=function(e){var t=e.strings,n=e.navigatedDate,r=e.dateTimeFormatter,o=function(e){if(r){var t=new Date(n.getTime());return t.setFullYear(e),r.formatYear(t)}return String(e)},i=function(e){return"".concat(o(e.fromYear)," - ").concat(o(e.toYear))},a=function(e){return t.nextYearRangeAriaLabel?"".concat(t.nextYearRangeAriaLabel," ").concat(i(e)):""},s=function(e){return t.prevYearRangeAriaLabel?"".concat(t.prevYearRangeAriaLabel," ").concat(i(e)):""};return[o,{rangeAriaLabel:i,prevRangeAriaLabel:s,nextRangeAriaLabel:a,headerAriaLabelFormatString:t.yearPickerHeaderAriaLabel}]}(r),U=W[0],K=W[1];return u.createElement(Qh,{key:"calendarYear",minYear:C?C.getFullYear():void 0,maxYear:S?S.getFullYear():void 0,onSelectYear:function(e){if(s(),m.getFullYear()!==e){var t=new Date(m.getTime());t.setFullYear(e),S&&t>S?t=Xm(t,S.getMonth()):C&&t<C&&(t=Xm(t,C.getMonth())),T(t,!0)}d(!1)},navigationIcons:y,onHeaderSelect:function(e){s(),d(!1)},selectedYear:h?h.getFullYear():m?m.getFullYear():void 0,navigatedYear:m.getFullYear(),onRenderYear:U,strings:K,componentRef:a,styles:k,highlightCurrentYear:w,highlightSelectedYear:E,animationDirection:_})}for(var j=[],G=0;G<f.shortMonths.length/4;G++)j.push(G);var q=B.formatYear(m),Y=f.monthPickerHeaderAriaLabel?qo(f.monthPickerHeaderAriaLabel,q):q;return u.createElement("div",{className:z.root},u.createElement("div",{className:z.headerContainer},u.createElement("button",{className:z.currentItemButton,onClick:F,onKeyDown:nf(F),"aria-label":Y,"data-is-focusable":!!r.onHeaderSelect||!D,tabIndex:r.onHeaderSelect||!D?0:-1,type:"button"},u.createElement("span",{"aria-live":"polite","aria-atomic":"true"},q)),u.createElement("div",{className:z.navigationButtonsContainer},u.createElement("button",{className:Wn(z.navigationButton,(t={},t[z.disabled]=!L,t)),"aria-disabled":!L,tabIndex:L?void 0:I?0:-1,onClick:L?M:void 0,onKeyDown:L?nf(M):void 0,title:f.prevYearAriaLabel?f.prevYearAriaLabel+" "+B.formatYear(Zm(m,-1)):void 0,type:"button"},u.createElement(gd,{iconName:Sn()?O:H})),u.createElement("button",{className:Wn(z.navigationButton,(n={},n[z.disabled]=!V,n)),"aria-disabled":!V,tabIndex:V?void 0:I?0:-1,onClick:V?A:void 0,onKeyDown:V?nf(A):void 0,title:f.nextYearAriaLabel?f.nextYearAriaLabel+" "+B.formatYear(Zm(m,1)):void 0,type:"button"},u.createElement(gd,{iconName:Sn()?H:O})))),u.createElement(Cu,null,u.createElement("div",{className:z.gridContainer,role:"grid","aria-label":q},j.map((function(e){var t=f.shortMonths.slice(4*e,4*(e+1));return u.createElement("div",{key:"monthRow_"+e+m.getFullYear(),role:"row",className:z.buttonRow},t.map((function(t,n){var r,o=4*e+n,a=Xm(m,o),s=m.getMonth()===o,l=h.getMonth()===o,c=h.getFullYear()===m.getFullYear(),d=(!C||eh(C,Qm(a))<1)&&(!S||eh(Jm(a),S)<1);return u.createElement("button",{ref:s?i:void 0,role:"gridcell",className:Wn(z.itemButton,(r={},r[z.current]=w&&tf(o,m.getFullYear(),v),r[z.selected]=E&&l&&c,r[z.disabled]=!d,r)),disabled:!I&&!d,key:o,onClick:d?R(o):void 0,onKeyDown:d?nf(R(o)):void 0,"aria-label":B.formatMonth(a,f),"aria-selected":s,"data-is-focusable":!!d||void 0,type:"button"},t)})))})))))};function tf(e,t,n){return n.getFullYear()===t&&n.getMonth()===e}function nf(e){return function(t){if(t.which===Wt)e()}}ef.displayName="CalendarMonthBase";var rf=Jo(ef,Oh,void 0,{scope:"CalendarMonth"}),of=wn(),af=[Vm.Monday,Vm.Tuesday,Vm.Wednesday,Vm.Thursday,Vm.Friday],sf={isMonthPickerVisible:!0,isDayPickerVisible:!0,showMonthPickerAsOverlay:!1,today:new Date,firstDayOfWeek:Vm.Sunday,dateRangeType:Um.Day,showGoToToday:!0,strings:ph,highlightCurrentMonth:!1,highlightSelectedMonth:!1,navigationIcons:Lh,showWeekNumbers:!1,firstWeekOfYear:Wm.FirstDay,dateTimeFormatter:uh,showSixWeeksByDefault:!1,workWeekDays:af,showCloseButton:!1,allFocusable:!1};var lf=u.forwardRef((function(e,t){var n=$o(sf,e),r=function(e){var t=e.value,n=e.today,r=e.onSelectDate,o=u.useMemo((function(){return void 0===n?new Date:n}),[n]),i=Ul(t,o),a=i[0],s=void 0===a?o:a,l=i[1],c=u.useState(t),d=c[0],p=void 0===d?o:d,m=c[1],h=u.useState(t),f=h[0],g=void 0===f?o:f,v=h[1],y=u.useState(t),b=y[0],C=void 0===b?o:b,S=y[1];return t&&C.valueOf()!==t.valueOf()&&(m(t),v(t),S(t)),[s,p,g,function(e,t){v(e),m(e),l(e),null===r||void 0===r||r(e,t)},function(e){v(e),m(e)},function(e){v(e)}]}(n),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],c=r[5],d=function(e){var t=Ul(cf(e)?void 0:e.isMonthPickerVisible,!1),n=t[0],r=void 0===n||n,o=t[1],i=Ul(cf(e)?void 0:e.isDayPickerVisible,!0),a=i[0],s=void 0===a||a,l=i[1];return[r,s,function(){o(!r),l(!s)}]}(n),p=d[0],m=d[1],h=d[2],f=function(e,t,n){var r=e.componentRef,o=u.useRef(null),i=u.useRef(null),a=u.useRef(!1),s=u.useCallback((function(){t&&o.current?ct(o.current):n&&i.current&&ct(i.current)}),[t,n]);return u.useImperativeHandle(r,(function(){return{focus:s}}),[s]),u.useEffect((function(){a.current&&(s(),a.current=!1)})),[o,i,function(){a.current=!0}]}(n,m,p),g=f[0],y=f[1],b=f[2],C=function(){var e=E;return e&&j&&(e=i.getFullYear()!==j.getFullYear()||i.getMonth()!==j.getMonth()||a.getFullYear()!==j.getFullYear()||a.getMonth()!==j.getMonth()),E&&u.createElement("button",{className:Wn("js-goToday",Z.goTodayButton),onClick:x,onKeyDown:k(x),type:"button",disabled:!e},w.goToToday)},S=cf(n)?function(){h(),b()}:void 0,x=function(){l(j),b()},k=function(e){return function(t){switch(t.which){case Wt:case qt:e()}}},P=n.firstDayOfWeek,I=n.dateRangeType,w=n.strings,E=n.showGoToToday,_=n.highlightCurrentMonth,D=n.highlightSelectedMonth,T=n.navigationIcons,R=n.minDate,A=n.maxDate,M=n.restrictedDates,N=n.id,F=n.className,H=n.showCloseButton,O=n.allFocusable,B=n.styles,L=n.showWeekNumbers,V=n.theme,z=n.calendarDayProps,W=n.calendarMonthProps,U=n.dateTimeFormatter,K=n.today,j=void 0===K?new Date:K,G=cf(n),q=!G&&!m,Y=G&&E,Z=of(B,{theme:V,className:F,isMonthPickerVisible:p,isDayPickerVisible:m,monthPickerOnly:q,showMonthPickerAsOverlay:G,overlaidWithButton:Y,overlayedWithButton:Y,showGoToToday:E,showWeekNumbers:L}),J="",Q="";if(U&&w.todayDateFormatString&&(J=qo(w.todayDateFormatString,U.formatMonthDayYear(j,w))),U&&w.selectedDateFormatString){var X=q?U.formatMonthYear:U.formatMonthDayYear;Q=qo(w.selectedDateFormatString,X(o,w))}var $=Q+", "+J;return u.createElement("div",{id:N,ref:t,role:"group","aria-label":$,className:Wn("ms-DatePicker",Z.root,F,"ms-slideDownIn10"),onKeyDown:function(e){var t;switch(e.which){case Wt:case Vt:e.preventDefault();break;case Gt:null===(t=n.onDismiss)||void 0===t||t.call(n);break;case Yt:e.ctrlKey?l(Zm(i,1)):l(Ym(i,1)),e.preventDefault();break;case Zt:e.ctrlKey?l(Zm(i,-1)):l(Ym(i,-1)),e.preventDefault()}}},u.createElement("div",{className:Z.liveRegion,"aria-live":"polite","aria-atomic":"true"},u.createElement("span",null,Q)),m&&u.createElement(Fh,v({selectedDate:o,navigatedDate:i,today:n.today,onSelectDate:s,onNavigateDate:function(e,t){l(e),t&&b()},onDismiss:n.onDismiss,firstDayOfWeek:P,dateRangeType:I,strings:w,onHeaderSelect:S,navigationIcons:T,showWeekNumbers:n.showWeekNumbers,firstWeekOfYear:n.firstWeekOfYear,dateTimeFormatter:n.dateTimeFormatter,showSixWeeksByDefault:n.showSixWeeksByDefault,minDate:R,maxDate:A,restrictedDates:M,workWeekDays:n.workWeekDays,componentRef:g,showCloseButton:H,allFocusable:O},z)),m&&p&&u.createElement("div",{className:Z.divider}),p?u.createElement("div",{className:Z.monthPickerWrapper},u.createElement(rf,v({navigatedDate:a,selectedDate:i,strings:w,onNavigateDate:function(e,t){t&&b(),t?(q&&s(e),l(e)):c(e)},today:n.today,highlightCurrentMonth:_,highlightSelectedMonth:D,onHeaderSelect:S,navigationIcons:T,dateTimeFormatter:n.dateTimeFormatter,minDate:R,maxDate:A,componentRef:y},W)),C()):C(),u.createElement(go,null))}));function cf(e){var t=e.showMonthPickerAsOverlay,n=e.isDayPickerVisible,r=Ve();return t||n&&r&&r.innerWidth<=440}lf.displayName="CalendarBase";var df=Jo(lf,(function(e){var t,n=e.className,r=e.theme,o=e.isDayPickerVisible,i=e.isMonthPickerVisible,a=e.showWeekNumbers,s=r.palette,l=o&&i?440:220;return a&&o&&(l+=30),{root:[ks,{display:"flex",width:l},!i&&{flexDirection:"column"},n],divider:{top:0,borderRight:"1px solid",borderColor:s.neutralLight},monthPickerWrapper:[{display:"flex",flexDirection:"column"}],goTodayButton:[Ya(r,{inset:-1}),{bottom:0,color:s.neutralPrimary,height:30,lineHeight:30,backgroundColor:"transparent",border:"none",boxSizing:"content-box",padding:"0 4px",alignSelf:"flex-end",marginRight:16,marginTop:3,fontSize:Fi.small,fontFamily:"inherit",overflow:"visible",selectors:{"& div":{fontSize:Fi.small},"&:hover":{color:s.themePrimary,backgroundColor:"transparent",cursor:"pointer",selectors:(t={},t[Wa]={outline:"1px solid Buttontext",borderRadius:"2px"},t)},"&:active":{color:s.themeDark},"&:disabled":{color:s.neutralTertiaryAlt,pointerEvents:"none"}}}],liveRegion:{border:0,height:"1px",margin:"-1px",overflow:"hidden",padding:0,width:"1px",position:"absolute"}}}),void 0,{scope:"Calendar"}),uf=wn(),pf=u.forwardRef((function(e,t){var n=e.checked,r=void 0!==n&&n,o=e.className,i=e.theme,a=e.styles,s=e.useFastIcons,l=void 0===s||s,c=uf(a,{theme:i,className:o,checked:r}),d=l?md:gd;return u.createElement("div",{className:c.root,ref:t},u.createElement(d,{iconName:"CircleRing",className:c.circle}),u.createElement(d,{iconName:"StatusCircleCheckmark",className:c.check}))}));pf.displayName="CheckBase";var mf={root:"ms-Check",circle:"ms-Check-circle",check:"ms-Check-check",checkHost:"ms-Check-checkHost"},hf=Jo(pf,(function(e){var t,n,r,o,i,a=e.height,s=void 0===a?e.checkBoxHeight||"18px":a,l=e.checked,c=e.className,d=e.theme,u=d.palette,p=d.semanticColors,m=d.fonts,h=Sn(d),f=os(mf,d),g={fontSize:s,position:"absolute",left:0,top:0,width:s,height:s,textAlign:"center",display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle"};return{root:[f.root,m.medium,{lineHeight:"1",width:s,height:s,verticalAlign:"top",position:"relative",userSelect:"none",selectors:(t={":before":{content:'""',position:"absolute",top:"1px",right:"1px",bottom:"1px",left:"1px",borderRadius:"50%",opacity:1,background:p.bodyBackground}},t[".".concat(f.checkHost,":hover &, .").concat(f.checkHost,":focus &, &:hover, &:focus")]={opacity:1},t)},l&&["is-checked",{selectors:{":before":{background:u.themePrimary,opacity:1,selectors:(n={},n[Wa]={background:"Window"},n)}}}],c],circle:[f.circle,g,{color:u.neutralSecondary,selectors:(r={},r[Wa]={color:"WindowText"},r)},l&&{color:u.white}],check:[f.check,g,{opacity:0,color:u.neutralSecondary,fontSize:Oi.medium,left:h?"-0.5px":".5px",top:"-1px",selectors:(o={":hover":{opacity:1}},o[Wa]=v({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},l&&{opacity:1,color:u.white,fontWeight:900,selectors:(i={},i[Wa]={border:"none",color:"WindowText"},i)}],checkHost:f.checkHost}}),void 0,{scope:"Check"},!0),ff=wn(),gf=u.forwardRef((function(e,t){var n=e.disabled,r=e.required,o=e.inputProps,i=e.name,a=e.ariaLabel,s=e.ariaLabelledBy,l=e.ariaDescribedBy,c=e.ariaPositionInSet,d=e.ariaSetSize,p=e.title,m=e.checkmarkIconProps,h=e.styles,f=e.theme,g=e.className,y=e.boxSide,b=void 0===y?"start":y,C=jl("checkbox-",e.id),S=u.useRef(null),x=Gl(S,t),k=u.useRef(null),P=Ul(e.checked,e.defaultChecked,e.onChange),I=P[0],w=P[1],E=Ul(e.indeterminate,e.defaultIndeterminate),_=E[0],D=E[1];fo(S),function(e){ec({name:"Checkbox",props:e,mutuallyExclusive:{checked:"defaultChecked",indeterminate:"defaultIndeterminate"}})}(e);var T=ff(h,{theme:f,className:g,disabled:n,indeterminate:_,checked:I,reversed:"start"!==b,isUsingCustomLabelRender:!!e.onRenderLabel}),R=u.useCallback((function(e){_?(w(!!I,e),D(!1)):w(!I,e)}),[w,D,_,I]),A=u.useCallback((function(e){return e&&e.label?u.createElement("span",{className:T.text,title:e.title},e.label):null}),[T.text]),M=u.useCallback((function(e){if(k.current){var t=!!e;k.current.indeterminate=t,D(t)}}),[D]);!function(e,t,n,r,o){u.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])}(e,I,_,M,k),u.useEffect((function(){return M(_)}),[M,_]);var N=e.onRenderLabel||A,F=_?"mixed":void 0,H=v(v({className:T.input,type:"checkbox"},o),{checked:!!I,disabled:n,required:r,name:i,id:C,title:p,onChange:R,"aria-disabled":n,"aria-label":a,"aria-labelledby":s,"aria-describedby":l,"aria-posinset":c,"aria-setsize":d,"aria-checked":F});return u.createElement("div",{className:T.root,title:p,ref:x},u.createElement("input",v({},H,{ref:k,title:p,"data-ktp-execute-target":!0})),u.createElement("label",{className:T.label,htmlFor:C},u.createElement("div",{className:T.checkbox,"data-ktp-target":!0},u.createElement(gd,v({iconName:"CheckMark"},m,{className:T.checkmark}))),N(e,A)))}));gf.displayName="CheckboxBase";var vf={root:"ms-Checkbox",label:"ms-Checkbox-label",checkbox:"ms-Checkbox-checkbox",checkmark:"ms-Checkbox-checkmark",text:"ms-Checkbox-text"},yf="20px",bf="200ms",Cf="cubic-bezier(.4, 0, .23, 1)",Sf=Jo(gf,(function(e){var t,n,r,o,i,a,s,l,c,d,u,p,m,h,f,g,y,b,C=e.className,S=e.theme,x=e.reversed,k=e.checked,P=e.disabled,I=e.isUsingCustomLabelRender,w=e.indeterminate,E=S.semanticColors,_=S.effects,D=S.palette,T=S.fonts,R=os(vf,S),A=E.inputForegroundChecked,M=D.neutralSecondary,N=D.neutralPrimary,F=E.inputBackgroundChecked,H=E.inputBackgroundChecked,O=E.disabledBodySubtext,B=E.inputBorderHovered,L=E.inputBackgroundCheckedHovered,V=E.inputBackgroundChecked,z=E.inputBackgroundCheckedHovered,W=E.inputBackgroundCheckedHovered,U=E.inputTextHovered,K=E.disabledBodySubtext,j=E.bodyText,G=E.disabledText,q=[(t={content:'""',borderRadius:_.roundedCorner2,position:"absolute",width:10,height:10,top:4,left:4,boxSizing:"border-box",borderWidth:5,borderStyle:"solid",borderColor:P?O:F,transitionProperty:"border-width, border, border-color",transitionDuration:bf,transitionTimingFunction:Cf},t[Wa]={borderColor:"WindowText"},t)];return{root:[R.root,{position:"relative",display:"flex"},x&&"reversed",k&&"is-checked",!P&&"is-enabled",P&&"is-disabled",!P&&[!k&&(n={},n[":hover .".concat(R.checkbox)]=(r={borderColor:B},r[Wa]={borderColor:"Highlight"},r),n[":focus .".concat(R.checkbox)]={borderColor:B},n[":hover .".concat(R.checkmark)]=(o={color:M,opacity:"1"},o[Wa]={color:"Highlight"},o),n),k&&!w&&(i={},i[":hover .".concat(R.checkbox)]={background:z,borderColor:W},i[":focus .".concat(R.checkbox)]={background:z,borderColor:W},i[Wa]=(a={},a[":hover .".concat(R.checkbox)]={background:"Highlight",borderColor:"Highlight"},a[":focus .".concat(R.checkbox)]={background:"Highlight"},a[":focus:hover .".concat(R.checkbox)]={background:"Highlight"},a[":focus:hover .".concat(R.checkmark)]={color:"Window"},a[":hover .".concat(R.checkmark)]={color:"Window"},a),i),w&&(s={},s[":hover .".concat(R.checkbox,", :hover .").concat(R.checkbox,":after")]=(l={borderColor:L},l[Wa]={borderColor:"WindowText"},l),s[":focus .".concat(R.checkbox)]={borderColor:L},s[":hover .".concat(R.checkmark)]={opacity:"0"},s),(c={},c[":hover .".concat(R.text,", :focus .").concat(R.text)]=(d={color:U},d[Wa]={color:P?"GrayText":"WindowText"},d),c)],C],input:(u={position:"absolute",background:"none",opacity:0},u[".".concat(io," &:focus + label::before, :host(.").concat(io,") &:focus + label::before")]=(p={outline:"1px solid "+S.palette.neutralSecondary,outlineOffset:"2px"},p[Wa]={outline:"1px solid WindowText"},p),u),label:[R.label,S.fonts.medium,{display:"flex",alignItems:I?"center":"flex-start",cursor:P?"default":"pointer",position:"relative",userSelect:"none"},x&&{flexDirection:"row-reverse",justifyContent:"flex-end"},{"&::before":{position:"absolute",left:0,right:0,top:0,bottom:0,content:'""',pointerEvents:"none"}}],checkbox:[R.checkbox,(m={position:"relative",display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",height:yf,width:yf,border:"1px solid ".concat(N),borderRadius:_.roundedCorner2,boxSizing:"border-box",transitionProperty:"background, border, border-color",transitionDuration:bf,transitionTimingFunction:Cf,overflow:"hidden",":after":w?q:null},m[Wa]=v({borderColor:"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),m),w&&{borderColor:F},x?{marginLeft:4}:{marginRight:4},!P&&!w&&k&&(h={background:V,borderColor:H},h[Wa]={background:"Highlight",borderColor:"Highlight"},h),P&&(f={borderColor:O},f[Wa]={borderColor:"GrayText"},f),k&&P&&(g={background:K,borderColor:O},g[Wa]={background:"Window"},g)],checkmark:[R.checkmark,(y={opacity:k&&!w?"1":"0",color:A},y[Wa]=v({color:P?"GrayText":"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),y)],text:[R.text,(b={color:P?G:j,fontSize:T.medium.fontSize,lineHeight:"20px"},b[Wa]=v({color:P?"GrayText":"WindowText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),b),x?{marginRight:4}:{marginLeft:4}]}}),void 0,{scope:"Checkbox"}),xf=wn({cacheSize:100}),kf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.as,n=void 0===t?"label":t,r=e.children,o=e.className,i=e.disabled,a=e.styles,s=e.required,l=e.theme,c=xf(a,{className:o,disabled:i,required:s,theme:l});return u.createElement(n,v({},qr(this.props,Gr),{className:c.root}),r)},t}(u.Component),Pf=Jo(kf,(function(e){var t,n=e.theme,r=e.className,o=e.disabled,i=e.required,a=n.semanticColors,s=Hi.semibold,l=a.bodyText,c=a.disabledBodyText,d=a.errorText;return{root:["ms-Label",n.fonts.medium,{fontWeight:s,color:l,boxSizing:"border-box",boxShadow:"none",margin:0,display:"block",padding:"5px 0",wordWrap:"break-word",overflowWrap:"break-word"},o&&{color:c,selectors:(t={},t[Wa]=v({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},i&&{selectors:{"::after":{content:"' *'",color:d,paddingRight:12}}},r]}}),void 0,{scope:"Label"}),If=wn(),wf={imageSize:{width:32,height:32}},Ef=function(e){var t=$o(v(v({},wf),{key:e.itemKey}),e),n=t.ariaLabel,r=t.focused,o=t.required,i=t.theme,a=t.iconProps,s=t.imageSrc,l=t.imageSize,c=t.disabled,d=t.checked,p=t.id,m=t.styles,h=t.name,f=y(t,["ariaLabel","focused","required","theme","iconProps","imageSrc","imageSize","disabled","checked","id","styles","name"]),g=If(m,{theme:i,hasIcon:!!a,hasImage:!!s,checked:d,disabled:c,imageIsLarge:!!s&&(l.width>71||l.height>71),imageSize:l,focused:r}),b=qr(f,Mr),C=b.className,S=y(b,["className"]),x=function(){return u.createElement("span",{id:t.labelId,className:"ms-ChoiceFieldLabel"},t.text)},k=function(){var e=t.imageAlt,n=void 0===e?"":e,r=t.selectedImageSrc,o=(t.onRenderLabel?Lo(t.onRenderLabel,x):x)(v(v({},t),{key:t.itemKey}));return u.createElement("label",{htmlFor:p,className:g.field},s&&u.createElement("div",{className:g.innerField},u.createElement("div",{className:g.imageWrapper},u.createElement(cd,v({src:s,alt:n},l))),u.createElement("div",{className:g.selectedImageWrapper},u.createElement(cd,v({src:r,alt:n},l)))),a&&u.createElement("div",{className:g.innerField},u.createElement("div",{className:g.iconWrapper},u.createElement(gd,v({},a)))),s||a?u.createElement("div",{className:g.labelWrapper},o):o)},P=t.onRenderField,I=void 0===P?k:P;return u.createElement("div",{className:g.root},u.createElement("div",{className:g.choiceFieldWrapper},u.createElement("input",v({"aria-label":n,id:p,className:Wn(g.input,C),type:"radio",name:h,disabled:c,checked:d,required:o},S,{onChange:function(e){var n;null===(n=t.onChange)||void 0===n||n.call(t,e,v(v({},t),{key:t.itemKey}))},onFocus:function(e){var n;null===(n=t.onFocus)||void 0===n||n.call(t,e,v(v({},t),{key:t.itemKey}))},onBlur:function(e){var n;null===(n=t.onBlur)||void 0===n||n.call(t,e)}})),I(v(v({},t),{key:t.itemKey}),k)))};Ef.displayName="ChoiceGroupOption";var _f={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"},Df="200ms",Tf="cubic-bezier(.4, 0, .23, 1)";function Rf(e,t){var n,r;return["is-inFocus",{selectors:(n={},n[".".concat(io," &, :host(.").concat(io,") &")]={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[Wa]={borderColor:"WindowText",borderWidth:t?1:2},r)}}},n)}]}function Af(e,t,n){return[t,{paddingBottom:2,transitionProperty:"opacity",transitionDuration:Df,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 Mf=Jo(Ef,(function(e){var t,n,r,o,i,a=e.theme,s=e.hasIcon,l=e.hasImage,c=e.checked,d=e.disabled,u=e.imageIsLarge,p=e.focused,m=e.imageSize,h=a.palette,f=a.semanticColors,g=a.fonts,y=os(_f,a),b=h.neutralPrimary,C=f.inputBorderHovered,S=f.inputBackgroundChecked,x=h.themeDark,k=f.disabledBodySubtext,P=f.bodyBackground,I=h.neutralSecondary,w=f.inputBackgroundChecked,E=h.themeDark,_=f.disabledBodySubtext,D=h.neutralDark,T=f.focusBorder,R=f.inputBorderHovered,A=f.inputBackgroundChecked,M=h.themeDark,N=h.neutralLighter,F={selectors:{".ms-ChoiceFieldLabel":{color:D},":before":{borderColor:c?x:C},":after":[!s&&!l&&!c&&{content:'""',transitionProperty:"background-color",left:5,top:5,width:10,height:10,backgroundColor:I},c&&{borderColor:E,background:E}]}},H={borderColor:c?M:R,selectors:{":before":{opacity:1,borderColor:c?x:C}}},O=[{content:'""',display:"inline-block",backgroundColor:P,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:Df,transitionTimingFunction:Tf,borderRadius:"50%"},d&&{borderColor:k,selectors:(t={},t[Wa]=v({borderColor:"GrayText",background:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},c&&{borderColor:d?k:S,selectors:(n={},n[Wa]={borderColor:"Highlight",background:"Window",forcedColorAdjust:"none"},n)},(s||l)&&{top:3,right:3,left:"auto",opacity:c?1:0}],B=[{content:'""',width:0,height:0,borderRadius:"50%",position:"absolute",left:10,right:0,transitionProperty:"border-width",transitionDuration:Df,transitionTimingFunction:Tf,boxSizing:"border-box"},c&&{borderWidth:5,borderStyle:"solid",borderColor:d?_:w,background:w,left:5,top:5,width:10,height:10,selectors:(r={},r[Wa]={borderColor:"Highlight",forcedColorAdjust:"none"},r)},c&&(s||l)&&{top:8,right:8,left:"auto"}];return{root:[y.root,a.fonts.medium,{display:"flex",alignItems:"center",boxSizing:"border-box",color:f.bodyText,minHeight:26,border:"none",position:"relative",marginTop:8,selectors:{".ms-ChoiceFieldLabel":{display:"inline-block"}}},!s&&!l&&{selectors:{".ms-ChoiceFieldLabel":{paddingLeft:"26px"}}},l&&"ms-ChoiceField--image",s&&"ms-ChoiceField--icon",(s||l)&&{display:"inline-flex",fontSize:0,margin:"0 4px 4px 0",paddingLeft:0,backgroundColor:N,height:"100%"}],choiceFieldWrapper:[y.choiceFieldWrapper,p&&Rf(T,s||l)],input:[y.input,{position:"absolute",opacity:0,top:0,right:0,width:"100%",height:"100%",margin:0},d&&"is-disabled"],field:[y.field,c&&y.checked,{display:"inline-block",cursor:"pointer",marginTop:0,position:"relative",verticalAlign:"top",userSelect:"none",minHeight:20,selectors:{":hover":!d&&F,":focus":!d&&F,":before":O,":after":B}},s&&"ms-ChoiceField--icon",l&&"ms-ChoiceField-field--image",(s||l)&&{boxSizing:"content-box",cursor:"pointer",paddingTop:22,margin:0,textAlign:"center",transitionProperty:"all",transitionDuration:Df,transitionTimingFunction:"ease",border:"1px solid transparent",justifyContent:"center",alignItems:"center",display:"flex",flexDirection:"column"},c&&{borderColor:A},(s||l)&&!d&&{selectors:{":hover":H,":focus":H}},d&&{cursor:"default",selectors:{".ms-ChoiceFieldLabel":{color:f.disabledBodyText,selectors:(o={},o[Wa]=v({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}}},c&&d&&{borderColor:N}],innerField:[y.innerField,l&&{height:m.height,width:m.width},(s||l)&&{position:"relative",display:"inline-block",paddingLeft:30,paddingRight:30},(s||l)&&u&&{paddingLeft:24,paddingRight:24},(s||l)&&d&&{opacity:.25,selectors:(i={},i[Wa]={color:"GrayText",opacity:1},i)}],imageWrapper:Af(!1,y.imageWrapper,c),selectedImageWrapper:Af(!0,y.imageWrapper,c),iconWrapper:[y.iconWrapper,{fontSize:32,lineHeight:32,height:32}],labelWrapper:[y.labelWrapper,g.medium,(s||l)&&{display:"block",position:"relative",margin:"4px 8px 2px 8px",height:32,lineHeight:15,maxWidth:2*m.width,overflow:"hidden",whiteSpace:"pre-wrap"}]}}),void 0,{scope:"ChoiceGroupOption"}),Nf=wn(),Ff=function(e,t){return"".concat(t,"-").concat(e.key)},Hf=function(e,t){return void 0===t?void 0:fn(e,(function(e){return e.key===t}))},Of=function(e,t,n,r,o){var i=Hf(e,t)||e.filter((function(e){return!e.disabled}))[0],a=i&&(null===o||void 0===o?void 0:o.getElementById(Ff(i,n)));a&&(a.focus(),lo(!0,a,r))},Bf="ChoiceGroup",Lf=u.forwardRef((function(e,t){var n=e.className,r=e.theme,o=e.styles,i=e.options,a=void 0===i?[]:i,s=e.label,l=e.required,c=e.disabled,d=e.name,p=e.defaultSelectedKey,m=e.componentRef,h=e.onChange,f=jl("ChoiceGroup"),g=jl("ChoiceGroupLabel"),y=qr(e,Gr,["onChange","className","required"]),b=Nf(o,{theme:r,className:n,optionsContainIconOrImage:a.some((function(e){return!(!e.iconProps&&!e.imageSrc)}))}),C=e.ariaLabelledBy||(s?g:e["aria-labelledby"]),S=Ul(e.selectedKey,p),x=S[0],k=S[1],P=u.useState(),I=P[0],w=P[1],E=u.useRef(null),_=Gl(E,t),D=u.useContext(ho);!function(e){ec({name:Bf,props:e,mutuallyExclusive:{selectedKey:"defaultSelectedKey"}})}(e),function(e,t,n,r,o){var i=ic();u.useImperativeHandle(r,(function(){return{get checkedOption(){return Hf(e,t)},focus:function(){Of(e,t,n,o,i)}}}),[e,t,n,o,i])}(a,x,f,m,null===D||void 0===D?void 0:D.registeredProviders),fo(E);var T=u.useCallback((function(e,t){var n;t&&(w(t.itemKey),null===(n=t.onFocus)||void 0===n||n.call(t,e))}),[]),R=u.useCallback((function(e,t){var n;w(void 0),null===(n=null===t||void 0===t?void 0:t.onBlur)||void 0===n||n.call(t,e)}),[]),A=u.useCallback((function(e,t){var n;t&&(k(t.itemKey),null===(n=t.onChange)||void 0===n||n.call(t,e),null===h||void 0===h||h(e,Hf(a,t.itemKey)))}),[h,a,k]),M=u.useCallback((function(e){(function(e){return e.relatedTarget instanceof HTMLElement&&"true"===e.relatedTarget.dataset.isFocusTrapZoneBumper})(e)&&Of(a,x,f,null===D||void 0===D?void 0:D.registeredProviders)}),[a,x,f,D]);return u.createElement("div",v({className:b.root},y,{ref:_}),u.createElement("div",v({role:"radiogroup"},C&&{"aria-labelledby":C},{onFocus:M}),s&&u.createElement(Pf,{className:b.label,required:l,id:g,disabled:c},s),u.createElement("div",{className:b.flexContainer},a.map((function(e){return u.createElement(Mf,v({itemKey:e.key},e,{key:e.key,onBlur:R,onFocus:T,onChange:A,focused:e.key===I,checked:e.key===x,disabled:e.disabled||c,id:Ff(e,f),labelId:e.labelId||"".concat(g,"-").concat(e.key),name:d||f,required:l}))})))))}));Lf.displayName=Bf;var Vf={root:"ms-ChoiceFieldGroup",flexContainer:"ms-ChoiceFieldGroup-flexContainer"},zf=(Jo(Lf,(function(e){var t=e.className,n=e.optionsContainIconOrImage,r=e.theme,o=os(Vf,r);return{root:[t,o.root,r.fonts.medium,{display:"block"}],flexContainer:[o.flexContainer,n&&{display:"flex",flexDirection:"row",flexWrap:"wrap"}]}}),void 0,{scope:"ChoiceGroup"}),32),Wf=Fn((function(){return Me({"0%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"78.57%":{transform:"translate(0, 0)",animationTimingFunction:"cubic-bezier(0.62, 0, 0.56, 1)"},"82.14%":{transform:"translate(0, -5px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0, 1)"},"84.88%":{transform:"translate(0, 9px)",animationTimingFunction:"cubic-bezier(1, 0, 0.56, 1)"},"88.1%":{transform:"translate(0, -2px)",animationTimingFunction:"cubic-bezier(0.58, 0, 0.67, 1)"},"90.12%":{transform:"translate(0, 0)",animationTimingFunction:"linear"},"100%":{transform:"translate(0, 0)"}})})),Uf=Fn((function(){return Me({"0%":{transform:" scale(0)",animationTimingFunction:"linear"},"14.29%":{transform:"scale(0)",animationTimingFunction:"cubic-bezier(0.84, 0, 0.52, 0.99)"},"16.67%":{transform:"scale(1.15)",animationTimingFunction:"cubic-bezier(0.48, -0.01, 0.52, 1.01)"},"19.05%":{transform:"scale(0.95)",animationTimingFunction:"cubic-bezier(0.48, 0.02, 0.52, 0.98)"},"21.43%":{transform:"scale(1)",animationTimingFunction:"linear"},"42.86%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"45.71%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"50%":{transform:"scale(1)",animationTimingFunction:"linear"},"90.12%":{transform:"scale(1)",animationTimingFunction:"cubic-bezier(0.48, -0.02, 0.52, 1.02)"},"92.98%":{transform:"scale(0.8)",animationTimingFunction:"cubic-bezier(0.48, 0.01, 0.52, 0.99)"},"97.26%":{transform:"scale(1)",animationTimingFunction:"linear"},"100%":{transform:"scale(1)"}})})),Kf=Fn((function(){return Me({"0%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"83.33%":{transform:" rotate(0deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"83.93%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"84.52%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.12%":{transform:"rotate(15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"85.71%":{transform:"rotate(-15deg)",animationTimingFunction:"cubic-bezier(0.33, 0, 0.67, 1)"},"86.31%":{transform:"rotate(0deg)",animationTimingFunction:"linear"},"100%":{transform:"rotate(0deg)"}})}));var jf,Gf=Fn((function(){var e;return De({root:[{position:"absolute",boxSizing:"border-box",border:"1px solid ${}",selectors:(e={},e[Wa]={border:"1px solid WindowText"},e)},{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}}],container:{position:"relative"},main:{backgroundColor:"#ffffff",overflowX:"hidden",overflowY:"hidden",position:"relative"},overFlowYHidden:{overflowY:"hidden"}})})),qf={opacity:0},Yf=((jf={})[Ts.top]="slideUpIn20",jf[Ts.bottom]="slideDownIn20",jf[Ts.left]="slideLeftIn20",jf[Ts.right]="slideRightIn20",jf),Zf={preventDismissOnScroll:!1,offsetFromTarget:0,minPagePadding:8,directionalHint:Ys};function Jf(e,t,n,r,o){var i=Vl(),a=ic(),s=ac(),l=u.useState(),c=l[0],d=l[1],p=u.useRef(0),m=function(){i.requestAnimationFrame((function(){return h()}))},h=function(){var i=e.offsetFromTarget,l=e.onPositioned,u=t.current,m=n.current;if(u&&m){var h=v({},e);h.bounds=o(),h.target=r.current;var f=h.target;if(f)if(!f.getBoundingClientRect&&!f.preventDefault||(null===a||void 0===a?void 0:a.body.contains(f))){h.gapSpace=i;var g=Ol(h,u,m,void 0,s);!c&&g||c&&g&&!function(e,t){return function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=e[n],o=t[n];if(r&&o&&r.toFixed(2)!==o.toFixed(2))return!1}return!0}(e.elementPosition,t.elementPosition)}(c,g)&&p.current<5?(p.current++,d(g),null===l||void 0===l||l(g)):(p.current=0,null===l||void 0===l||l(g))}else void 0!==c&&d(void 0);else void 0!==c&&d(void 0)}};return u.useEffect(m),[c,m]}function Qf(e,t,n){var r=e.directionalHintFixed,o=e.offsetFromTarget,i=e.directionalHint,a=e.target,s=u.useRef(),l=ac();"string"===typeof a&&(s.current=void 0),u.useEffect((function(){s.current=void 0}),[a,o]);return function(){if(!s.current)if(r&&t.current){var e=o||0;s.current=function(e,t,n,r,o,i){void 0===n&&(n=0);var a=null!==i&&void 0!==i?i:Ve();return Rl(Hl(e),t,n,r?Tl(r):new un(0,a.innerWidth-kt(),0,a.innerHeight),o)}(t.current,i,e,n(),void 0,l)}else s.current=n().height-2;return s.current}}var Xf=u.forwardRef((function(e,t){var n=$o(Zf,e),r=u.useRef(null),o=u.useRef(null),i=Gl(t,o),a=Ql(n.target,o),s=a[0],l=a[1],c=function(e,t){return function(){var n=e.bounds;return n||(n={top:0+e.minPagePadding,left:0+e.minPagePadding,right:t.innerWidth-e.minPagePadding,bottom:t.innerHeight-e.minPagePadding,width:t.innerWidth-2*e.minPagePadding,height:t.innerHeight-2*e.minPagePadding}),n}}(n,l),d=Jf(n,o,r,s,c),p=d[0],m=d[1],h=Qf(n,s,c),f=function(e,t){var n=e.finalHeight,r=u.useState({value:0}),o=r[0],i=r[1],a=Vl(),s=u.useRef(0);return u.useEffect((function e(){t&&n&&(s.current=a.requestAnimationFrame((function(){if(t.current){var r=t.current.lastChild,l=r.scrollHeight-r.offsetHeight;i({value:o.value+l}),r.offsetHeight<n?e():a.cancelAnimationFrame(s.current)}})))}),[n]),o.value}(n,r);if(function(e,t,n){var r=e.setInitialFocus,o=u.useRef(!1);u.useEffect((function(){!o.current&&t.current&&r&&n&&(o.current=!0,$e(t.current))}))}(n,r,p),function(e,t,n,r,o,i){var a=e.onDismiss,s=e.preventDismissOnScroll,l=Vl(),c=u.useCallback((function(e){a?a(e):i()}),[a,i]),d=u.useCallback((function(e){var o=e.target,i=t.current&&!Ke(t.current,o);(!r.current&&i||e.target!==n&&i&&(r.current.stopPropagation||!r.current||o!==r.current&&!Ke(r.current,o)))&&c(e)}),[c,t,r,n]),p=u.useCallback((function(e){o&&!s&&d(e)}),[d,o,s]);u.useEffect((function(){var e=new gt({});return l.setTimeout((function(){var t,r;e.on(n,"scroll",l.throttle(p,10),!0),e.on(n,"resize",l.throttle(c,10),!0),e.on(null===(t=null===n||void 0===n?void 0:n.document)||void 0===t?void 0:t.body,"focus",d,!0),e.on(null===(r=null===n||void 0===n?void 0:n.document)||void 0===r?void 0:r.body,"click",d,!0)}),0),function(){return e.dispose()}}),[p])}(n,o,l,s,p,m),u.useEffect((function(){var e;return null===(e=n.onLayerMounted)||void 0===e?void 0:e.call(n)}),[]),!l)return null;var g=n.className,y=n.doNotLayer,b=n.positioningContainerWidth,C=n.positioningContainerMaxHeight,S=n.children,x=Gf(),k=p&&p.targetEdge?ws[Yf[p.targetEdge]]:"",P=h()+f,I=C&&C>P?P:C,w=u.createElement("div",{ref:i,className:Wn("ms-PositioningContainer",x.container)},u.createElement("div",{className:we("ms-PositioningContainer-layerHost",x.root,g,k,!!b&&{width:b},y&&{zIndex:za.Layer}),style:p?p.elementPosition:qf,tabIndex:-1,ref:r},S,I));return y?w:u.createElement(zc,v({},n.layerProps),w)}));function $f(e){var t;return{root:[{position:"absolute",boxShadow:"inherit",border:"none",boxSizing:"border-box",transform:e.transform,width:e.width,height:e.height,left:e.left,top:e.top,right:e.right,bottom:e.bottom}],beak:{fill:e.color,display:"block",selectors:(t={},t[Wa]={fill:"windowtext"},t)}}}Xf.displayName="PositioningContainer";var eg=10,tg=18,ng=u.forwardRef((function(e,t){var n,r,o,i,a,s,l=e.left,c=e.top,d=e.bottom,p=e.right,m=e.color,h=e.direction,f=void 0===h?Ts.top:h;switch(f===Ts.top||f===Ts.bottom?(n=eg,r=tg):(n=tg,r=eg),f){case Ts.top:default:o="".concat(9,", 0"),i="".concat(tg,", ").concat(eg),a="0, ".concat(eg),s="translateY(-100%)";break;case Ts.right:o="0, 0",i="".concat(eg,", ").concat(eg),a="0, ".concat(tg),s="translateX(100%)";break;case Ts.bottom:o="0, 0",i="".concat(tg,", 0"),a="".concat(9,", ").concat(eg),s="translateY(100%)";break;case Ts.left:o="".concat(eg,", 0"),i="0, ".concat(eg),a="".concat(eg,", ").concat(tg),s="translateX(-100%)"}var g=wn()($f,{left:l,top:c,bottom:d,right:p,height:"".concat(n,"px"),width:"".concat(r,"px"),transform:s,color:m});return u.createElement("div",{className:g.root,role:"presentation",ref:t},u.createElement("svg",{height:n,width:r,className:g.beak},u.createElement("polygon",{points:o+" "+i+" "+a})))}));ng.displayName="Beak";var rg=wn(),og={isCollapsed:!0,mouseProximityOffset:10,delayBeforeMouseOpen:3600,delayBeforeCoachmarkAnimation:0,isPositionForced:!0,positioningContainerProps:{directionalHint:Ys}};var ig="CoachmarkBase",ag=u.forwardRef((function(e,t){var n=$o(og,e),r=ac(),o=u.useRef(null),i=u.useRef(null),a=function(){var e=Vl(),t=u.useState(),n=t[0],r=t[1],o=u.useState(),i=o[0],a=o[1];return[n,i,function(t){var n=t.alignmentEdge,o=t.targetEdge;return e.requestAnimationFrame((function(){r(n),a(o)}))}]}(),s=a[0],l=a[1],c=a[2],d=function(e,t){var n=e.isCollapsed,r=e.onAnimationOpenStart,o=e.onAnimationOpenEnd,i=u.useState(!!n),a=i[0],s=i[1],l=Jl().setTimeout,c=u.useRef(!a),d=u.useCallback((function(){var e,n;c.current||(s(!1),null===r||void 0===r||r(),null===(n=null===(e=t.current)||void 0===e?void 0:e.addEventListener)||void 0===n||n.call(e,"transitionend",(function(){l((function(){t.current&&$e(t.current)}),1e3),null===o||void 0===o||o()})),c.current=!0)}),[t,o,r,l]);return u.useEffect((function(){n||d()}),[n]),[a,d]}(n,o),p=d[0],m=d[1],h=function(e,t,n){var r=Sn(e.theme);return u.useMemo((function(){var e,o,i=void 0===n?Ts.bottom:Ll(n),a={direction:i},s="3px";switch(i){case Ts.top:case Ts.bottom:t?t===Ts.left?(a.left="".concat(7,"px"),e="left"):(a.right="".concat(7,"px"),e="right"):(a.left="calc(50% - ".concat(9,"px)"),e="center"),i===Ts.top?(a.top=s,o="top"):(a.bottom=s,o="bottom");break;case Ts.left:case Ts.right:t?t===Ts.top?(a.top="".concat(7,"px"),o="top"):(a.bottom="".concat(7,"px"),o="bottom"):(a.top="calc(50% - ".concat(9,"px)"),o="center"),i===Ts.left?(r?a.right=s:a.left=s,e="left"):(r?a.left=s:a.right=s,e="right")}return[a,"".concat(e," ").concat(o)]}),[t,n,r])}(n,s,l),f=h[0],g=h[1],y=function(e,t){var n=u.useState(!!e.isCollapsed),r=n[0],o=n[1],i=u.useState(e.isCollapsed?{width:0,height:0}:{}),a=i[0],s=i[1],l=Vl();return u.useEffect((function(){l.requestAnimationFrame((function(){t.current&&(s({width:t.current.offsetWidth,height:t.current.offsetHeight}),o(!1))}))}),[]),[r,a]}(n,o),b=y[0],C=y[1],S=u.useState(sg(n.isPositionForced,n.positioningContainerProps,r)),x=S[0],k=S[1],P=function(e){var t=e.ariaAlertText,n=Vl(),r=u.useState(),o=r[0],i=r[1];return u.useEffect((function(){n.requestAnimationFrame((function(){i(t)}))}),[]),o}(n),I=function(e){var t=e.preventFocusOnMount,n=Jl().setTimeout,r=u.useRef(null);return u.useEffect((function(){t||n((function(){var e;return null===(e=r.current)||void 0===e?void 0:e.focus()}),1e3)}),[]),r}(n);!function(e,t,n){var r,o=null===(r=Je())||void 0===r?void 0:r.documentElement;ql(o,"keydown",(function(e){var r,o;(e.altKey&&e.which===sn||e.which===Wt&&(null===(o=null===(r=t.current)||void 0===r?void 0:r.contains)||void 0===o?void 0:o.call(r,e.target)))&&n()}),!0);var i=function(n){var r;if(e.preventDismissOnLostFocus){var o=n.target,i=t.current&&!Ke(t.current,o),a=e.target;i&&o!==a&&!Ke(a,o)&&(null===(r=e.onDismiss)||void 0===r||r.call(e,n))}};ql(o,"click",i,!0),ql(o,"focus",i,!0)}(n,i,m),function(e){var t=e.onDismiss;u.useImperativeHandle(e.componentRef,(function(e){return{dismiss:function(){null===t||void 0===t||t(e)}}}),[t])}(n),function(e,t,n,r){var o=Jl(),i=o.setTimeout,a=o.clearTimeout,s=u.useRef(),l=ac(),c=ic();u.useEffect((function(){var o=function(){t.current&&(s.current=t.current.getBoundingClientRect())},d=new gt({});return i((function(){var t=e.mouseProximityOffset,u=void 0===t?0:t,p=[];i((function(){o(),d.on(l,"resize",(function(){p.forEach((function(e){a(e)})),p.splice(0,p.length),p.push(i((function(){o(),r(sg(e.isPositionForced,e.positioningContainerProps,l))}),100))}))}),10),d.on(c,"mousemove",(function(t){var r,i=t.clientY,a=t.clientX;o(),function(e,t,n,r){return void 0===r&&(r=0),t>e.left-r&&t<e.left+e.width+r&&n>e.top-r&&n<e.top+e.height+r}(s.current,a,i,u)&&n(),null===(r=e.onMouseMove)||void 0===r||r.call(e,t)}))}),e.delayBeforeMouseOpen),function(){return d.dispose()}}),[])}(n,i,m,k),function(e){ec({name:ig,props:e,deprecations:{teachingBubbleRef:void 0,collapsed:"isCollapsed",beakWidth:void 0,beakHeight:void 0,width:void 0,height:void 0}})}(n),u.useEffect((function(){k(sg(n.isPositionForced,n.positioningContainerProps,r))}),[n.isPositionForced,n.positioningContainerProps,r]);var w=n.beaconColorOne,E=n.beaconColorTwo,_=n.children,D=n.target,T=n.color,R=n.positioningContainerProps,A=n.ariaDescribedBy,M=n.ariaDescribedByText,N=n.ariaLabelledBy,F=n.ariaLabelledByText,H=n.ariaAlertText,O=n.delayBeforeCoachmarkAnimation,B=n.styles,L=n.theme,V=n.className,z=n.persistentBeak,W=T;!W&&L&&(W=L.semanticColors.primaryButtonBackground);var U=rg(B,{theme:L,beaconColorOne:w,beaconColorTwo:E,className:V,isCollapsed:p,isMeasuring:b,color:W,transformOrigin:g,entityHostHeight:void 0===C.height?void 0:"".concat(C.height,"px"),entityHostWidth:void 0===C.width?void 0:"".concat(C.width,"px"),width:"".concat(zf,"px"),height:"".concat(32,"px"),delayBeforeCoachmarkAnimation:"".concat(O,"ms")}),K=p?32:C.height,j=u.useCallback((function(){m()}),[m]);return u.createElement(Xf,v({target:D,offsetFromTarget:eg,finalHeight:K,ref:t,onPositioned:c,bounds:x},R),u.createElement("div",{className:U.root},H&&u.createElement("div",{className:U.ariaContainer,role:"alert","aria-hidden":!p},P),u.createElement("div",{className:U.pulsingBeacon}),u.createElement("div",{className:U.translateAnimationContainer,ref:i},u.createElement("div",{className:U.scaleAnimationLayer},u.createElement("div",{className:U.rotateAnimationLayer},(p||z)&&u.createElement(ng,v({},f,{color:W})),u.createElement("div",{className:U.entityHost,ref:I,tabIndex:-1,"data-is-focusable":!0,role:"dialog","aria-labelledby":N,"aria-describedby":A,onClick:j},p&&[N&&u.createElement("p",{id:N,key:0,className:U.ariaContainer},F),A&&u.createElement("p",{id:A,key:1,className:U.ariaContainer},M)],u.createElement(Kc,{isClickableOutsideFocusTrap:!0,forceFocusInsideTrap:!1},u.createElement("div",{className:U.entityInnerHost,ref:o},u.createElement("div",{className:U.childrenContainer,"aria-hidden":p},_)))))))))}));function sg(e,t,n){var r,o;return e?!t||t.directionalHint!==Ks&&t.directionalHint!==Ys?{left:-1/0,top:-1/0,bottom:1/0,right:1/0,width:1/0,height:1/0}:{left:0,top:-1/0,bottom:1/0,right:null!==(r=null===n||void 0===n?void 0:n.innerWidth)&&void 0!==r?r:0,width:null!==(o=null===n||void 0===n?void 0:n.innerWidth)&&void 0!==o?o:0,height:1/0}:void 0}ag.displayName=ig;Jo(ag,(function(e){var t,n=e.theme,r=e.className,o=e.color,i=e.beaconColorOne,a=e.beaconColorTwo,s=e.delayBeforeCoachmarkAnimation,l=e.isCollapsed,c=e.isMeasuring,d=e.entityHostHeight,u=e.entityHostWidth,p=e.transformOrigin;if(!n)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var m=ns.continuousPulseAnimationDouble(i||n.palette.themePrimary,a||n.palette.themeTertiary,"35px","150px","10px"),h=ns.createDefaultAnimation(m,s);return{root:[n.fonts.medium,{position:"relative"},r],pulsingBeacon:[{position:"absolute",top:"50%",left:"50%",transform:Sn(n)?"translate(50%, -50%)":"translate(-50%, -50%)",width:"0px",height:"0px",borderRadius:"225px",borderStyle:"solid",opacity:"0"},l&&h],translateAnimationContainer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:Wf(),transition:"opacity 0.5s ease-in-out"},!l&&{opacity:"1"}],scaleAnimationLayer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:Uf()}],rotateAnimationLayer:[{width:"100%",height:"100%"},l&&{animationDuration:"14s",animationTimingFunction:"linear",animationDirection:"normal",animationIterationCount:"1",animationDelay:"0s",animationFillMode:"forwards",animationName:Kf()},!l&&{opacity:"1"}],entityHost:[{position:"relative",outline:"none",overflow:"hidden",backgroundColor:o,borderRadius:zf,transition:"border-radius 250ms, width 500ms, height 500ms cubic-bezier(0.5, 0, 0, 1)",visibility:"hidden",selectors:(t={},t[Wa]={backgroundColor:"Window",border:"2px solid WindowText"},t[".".concat(io," &:focus")]={outline:"1px solid ".concat(n.palette.themeTertiary)},t)},!c&&l&&{width:zf,height:32},!c&&{visibility:"visible"},!l&&{borderRadius:"1px",opacity:"1",width:u,height:d},l&&{cursor:"pointer"}],entityInnerHost:[{transition:"transform 500ms cubic-bezier(0.5, 0, 0, 1)",transformOrigin:p,transform:"scale(0)"},!l&&{width:u,height:d,transform:"scale(1)"},!c&&{visibility:"visible"}],childrenContainer:[{display:!c&&l?"none":"block"}],ariaContainer:{position:"fixed",opacity:0,height:0,width:0,pointerEvents:"none"}}}),void 0,{scope:"Coachmark"});var lg=100,cg=100,dg=255,ug=100,pg=/^[\da-f]{0,6}$/i,mg=/^\d{0,3}$/;function hg(e,t,n){var r=[],o=(n/=100)*(t/=100),i=e/60,a=o*(1-Math.abs(i%2-1)),s=n-o;switch(Math.floor(i)){case 0:r=[o,a,0];break;case 1:r=[a,o,0];break;case 2:r=[0,o,a];break;case 3:r=[0,a,o];break;case 4:r=[a,0,o];break;case 5:r=[o,0,a]}return{r:Math.round(dg*(r[0]+s)),g:Math.round(dg*(r[1]+s)),b:Math.round(dg*(r[2]+s))}}function fg(e,t){if(e){var n=null!==t&&void 0!==t?t:Je(),r=gg(e)||function(e){if("#"===e[0]&&7===e.length&&/^#[\da-fA-F]{6}$/.test(e))return{r:parseInt(e.slice(1,3),16),g:parseInt(e.slice(3,5),16),b:parseInt(e.slice(5,7),16),a:ug}}(e)||function(e){if("#"===e[0]&&4===e.length&&/^#[\da-fA-F]{3}$/.test(e))return{r:parseInt(e[1]+e[1],16),g:parseInt(e[2]+e[2],16),b:parseInt(e[3]+e[3],16),a:ug}}(e)||function(e){var t=e.match(/^hsl(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r){var i=function(e,t,n){var r=function(e,t,n){var r=n+(t*=(n<50?n:100-n)/100);return{h:e,s:0===r?0:2*t/r*100,v:r}}(e,t,n);return hg(r.h,r.s,r.v)}(o[0],o[1],o[2]);return i.a=n?100*o[3]:ug,i}}}(e);return r||function(e,t){var n;if("undefined"===typeof t)return;var r=t.createElement("div");r.style.backgroundColor=e,r.style.position="absolute",r.style.top="-9999px",r.style.left="-9999px",r.style.height="1px",r.style.width="1px",t.body.appendChild(r);var o=null===(n=t.defaultView)||void 0===n?void 0:n.getComputedStyle(r),i=o&&o.backgroundColor;if(t.body.removeChild(r),"rgba(0, 0, 0, 0)"===i||"transparent"===i){switch(e.trim()){case"transparent":case"#0000":case"#00000000":return{r:0,g:0,b:0,a:0}}return}return gg(i)}(e,n)}}function gg(e){if(e){var t=e.match(/^rgb(a?)\(([\d., ]+)\)$/);if(t){var n=!!t[1],r=n?4:3,o=t[2].split(/ *, */).map(Number);if(o.length===r)return{r:o[0],g:o[1],b:o[2],a:n?100*o[3]:ug}}}}function vg(e,t,n){return void 0===n&&(n=0),e<n?n:e>t?t:e}function yg(e,t,n){return[bg(e),bg(t),bg(n)].join("")}function bg(e){var t=(e=vg(e,dg)).toString(16);return 1===t.length?"0"+t:t}function Cg(e,t,n){var r=hg(e,t,n);return yg(r.r,r.g,r.b)}function Sg(e,t,n){var r=(2-(t/=lg))*(n/=cg),o=t*n;return{h:e,s:100*(o=(o/=r<=1?r:2-r)||0),l:100*(r/=2)}}function xg(e,t,n,r,o){return r===ug||"number"!==typeof r?"#".concat(o):"rgba(".concat(e,", ").concat(t,", ").concat(n,", ").concat(r/ug,")")}function kg(e){var t=e.a,n=void 0===t?ug:t,r=e.b,o=e.g,i=e.r,a=function(e,t,n){var r=NaN,o=Math.max(e,t,n),i=o-Math.min(e,t,n);return 0===i?r=0:e===o?r=(t-n)/i%6:t===o?r=(n-e)/i+2:n===o&&(r=(e-t)/i+4),(r=Math.round(60*r))<0&&(r+=360),{h:r,s:Math.round(100*(0===o?0:i/o)),v:Math.round(o/dg*100)}}(i,o,r),s=a.h,l=a.s,c=a.v,d=yg(i,o,r);return{a:n,b:r,g:o,h:s,hex:d,r:i,s:l,str:xg(i,o,r,n,d),v:c,t:ug-n}}function Pg(e,t){var n=fg(e,null!==t&&void 0!==t?t:Je());if(n)return v(v({},kg(n)),{str:e})}function Ig(e){return"#".concat(Cg(e.h,lg,cg))}function wg(e,t,n){var r=hg(e.h,t,n),o=r.r,i=r.g,a=r.b,s=yg(o,i,a);return v(v({},e),{s:t,v:n,r:o,g:i,b:a,hex:s,str:xg(o,i,a,e.a,s)})}function Eg(e,t){return v(v({},e),{a:t,t:ug-t,str:xg(e.r,e.g,e.b,t,e.hex)})}var _g,Dg=[.027,.043,.082,.145,.184,.216,.349,.537],Tg=[.537,.45,.349,.216,.184,.145,.082,.043],Rg=[.537,.349,.216,.184,.145,.082,.043,.027],Ag=[.537,.45,.349,.216,.184,.145,.082,.043],Mg=[.88,.77,.66,.55,.44,.33,.22,.11],Ng=[.11,.22,.33,.44,.55,.66,.77,.88],Fg=[.96,.84,.7,.4,.12],Hg=[.1,.24,.44];function Og(e){return"number"===typeof e&&e>=_g.Unshaded&&e<=_g.Shade8}function Bg(e,t){return{h:e.h,s:e.s,v:vg(e.v-e.v*t,100,0)}}function Lg(e,t){return{h:e.h,s:vg(e.s-e.s*t,100,0),v:vg(e.v+(100-e.v)*t,100,0)}}function Vg(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===_g.Unshaded||!Og(t))return e;var r=Sg(e.h,e.s,e.v),o={h:e.h,s:e.s,v:e.v},i=t-1,a=Lg,s=Bg;return n&&(a=Bg,s=Lg),o=function(e){return e.r===dg&&e.g===dg&&e.b===dg}(e)?Bg(o,Rg[i]):function(e){return 0===e.r&&0===e.g&&0===e.b}(e)?Lg(o,Ag[i]):r.l/100>.8?s(o,Ng[i]):r.l/100<.2?a(o,Mg[i]):i<Fg.length?a(o,Fg[i]):s(o,Hg[i-Fg.length]),kg(mt(hg(o.h,o.s,o.v),{a:e.a}))}function zg(e,t){var n=ug-t;return v(v({},e),{t:t,a:n,str:xg(e.r,e.g,e.b,n,e.hex)})}!function(e){e[e.Unshaded=0]="Unshaded",e[e.Shade1=1]="Shade1",e[e.Shade2=2]="Shade2",e[e.Shade3=3]="Shade3",e[e.Shade4=4]="Shade4",e[e.Shade5=5]="Shade5",e[e.Shade6=6]="Shade6",e[e.Shade7=7]="Shade7",e[e.Shade8=8]="Shade8"}(_g||(_g={}));var Wg,Ug=wn(),Kg="TextField",jg=function(e){function t(t){var n=e.call(this,t)||this;n._textElement=u.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?u.createElement(Pf,{required:r,htmlFor:n._id,styles:o,disabled:e.disabled,id:n._labelId},e.label):null},n._onRenderDescription=function(e){return e.description?u.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=Gg(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},Xr(n),n._async=new ze(n),Tt(Kg,t,{errorMessage:"onGetErrorMessage"}),n._fallbackId=Cr(Kg),n._descriptionId=Cr("TextFieldDescription"),n._labelId=Cr("TextFieldLabel"),n._prefixId=Cr("TextFieldPrefix"),n._suffixId=Cr("TextFieldSuffix"),n._warnControlledUsage();var r=t.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 g(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return Gg(this.props,this.state)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._adjustInputHeight(),this.props.validateOnLoad&&this._validate(this.value)},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.getSnapshotBeforeUpdate=function(e,t){return{selection:[this.selectionStart,this.selectionEnd]}},t.prototype.componentDidUpdate=function(e,t,n){var r=this.props,o=(n||{}).selection,i=void 0===o?[null,null]:o,a=i[0],s=i[1];!!e.multiline!==!!r.multiline&&t.isFocused&&(this.focus(),null!==a&&null!==s&&a>=0&&s>=0&&this.setSelectionRange(a,s)),e.value!==r.value&&(this._lastChangeValue=void 0);var l=Gg(e,t),c=this.value;l!==c&&(this._warnControlledUsage(e),this.state.errorMessage&&!r.errorMessage&&this.setState({errorMessage:""}),this._adjustInputHeight(),qg(r)&&this._delayedValidate(c))},t.prototype.render=function(){var e=this.props,t=e.borderless,n=e.className,r=e.disabled,o=e.invalid,i=e.iconProps,a=e.inputClassName,s=e.label,l=e.multiline,c=e.required,d=e.underlined,p=e.prefix,m=e.resizable,h=e.suffix,f=e.theme,g=e.styles,y=e.autoAdjustHeight,b=e.canRevealPassword,C=e.revealPasswordAriaLabel,S=e.type,x=e.onRenderPrefix,k=void 0===x?this._onRenderPrefix:x,P=e.onRenderSuffix,I=void 0===P?this._onRenderSuffix:P,w=e.onRenderLabel,E=void 0===w?this._onRenderLabel:w,_=e.onRenderDescription,D=void 0===_?this._onRenderDescription:_,T=this.state,R=T.isFocused,A=T.isRevealingPassword,M=this._errorMessage,N="boolean"===typeof o?o:!!M,F=!!b&&"password"===S&&function(){if("boolean"!==typeof Wg){var e=Ve();if(null===e||void 0===e?void 0:e.navigator){var t=/Edg/.test(e.navigator.userAgent||"");Wg=!(Xo()||t)}else Wg=!0}return Wg}(),H=this._classNames=Ug(g,{theme:f,className:n,disabled:r,focused:R,required:c,multiline:l,hasLabel:!!s,hasErrorMessage:N,borderless:t,resizable:m,hasIcon:!!i,underlined:d,inputClassName:a,autoAdjustHeight:y,hasRevealButton:F});return u.createElement("div",{ref:this.props.elementRef,className:H.root},u.createElement("div",{className:H.wrapper},E(this.props,this._onRenderLabel),u.createElement("div",{className:H.fieldGroup},(void 0!==p||this.props.onRenderPrefix)&&u.createElement("div",{className:H.prefix,id:this._prefixId},k(this.props,this._onRenderPrefix)),l?this._renderTextArea():this._renderInput(),i&&u.createElement(gd,v({className:H.icon},i)),F&&u.createElement("button",{"aria-label":C,className:H.revealButton,onClick:this._onRevealButtonClick,"aria-pressed":!!A,type:"button"},u.createElement("span",{className:H.revealSpan},u.createElement(gd,{className:H.revealIcon,iconName:A?"Hide":"RedEye"}))),(void 0!==h||this.props.onRenderSuffix)&&u.createElement("div",{className:H.suffix,id:this._suffixId},I(this.props,this._onRenderSuffix)))),this._isDescriptionAvailable&&u.createElement("span",{id:this._descriptionId},D(this.props,this._onRenderDescription),M&&u.createElement("div",{role:"alert"},u.createElement(Nt,null,this._renderErrorMessage()))))},t.prototype.focus=function(){this._textElement.current&&this._textElement.current.focus()},t.prototype.blur=function(){this._textElement.current&&this._textElement.current.blur()},t.prototype.select=function(){this._textElement.current&&this._textElement.current.select()},t.prototype.setSelectionStart=function(e){this._textElement.current&&(this._textElement.current.selectionStart=e)},t.prototype.setSelectionEnd=function(e){this._textElement.current&&(this._textElement.current.selectionEnd=e)},Object.defineProperty(t.prototype,"selectionStart",{get:function(){return this._textElement.current?this._textElement.current.selectionStart:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectionEnd",{get:function(){return this._textElement.current?this._textElement.current.selectionEnd:-1},enumerable:!1,configurable:!0}),t.prototype.setSelectionRange=function(e,t){this._textElement.current&&this._textElement.current.setSelectionRange(e,t)},t.prototype._warnControlledUsage=function(e){Qo({componentId:this._id,componentName:Kg,props:this.props,oldProps:e,valueProp:"value",defaultValueProp:"defaultValue",onChangeProp:"onChange",readOnlyProp:"readOnly"}),null!==this.props.value||this._hasWarnedNullValue||(this._hasWarnedNullValue=!0,_t("Warning: 'value' prop on '".concat(Kg,"' should not be null. Consider using an ")+"empty string to clear the component or undefined to indicate an uncontrolled component."))},Object.defineProperty(t.prototype,"_id",{get:function(){return this.props.id||this._fallbackId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_isControlled",{get:function(){return zn(this.props,"value")},enumerable:!1,configurable:!0}),t.prototype._onRenderPrefix=function(e){var t=e.prefix;return u.createElement("span",{style:{paddingBottom:"1px"}},t)},t.prototype._onRenderSuffix=function(e){var t=e.suffix;return u.createElement("span",{style:{paddingBottom:"1px"}},t)},Object.defineProperty(t.prototype,"_errorMessage",{get:function(){var e=this.props.errorMessage;return(void 0===e?this.state.errorMessage:e)||""},enumerable:!1,configurable:!0}),t.prototype._renderErrorMessage=function(){var e=this._errorMessage;return e?"string"===typeof e?u.createElement("p",{className:this._classNames.errorMessage},u.createElement("span",{"data-automation-id":"error-message"},e)):u.createElement("div",{className:this._classNames.errorMessage,"data-automation-id":"error-message"},e):null},Object.defineProperty(t.prototype,"_isDescriptionAvailable",{get:function(){var e=this.props;return!!(e.onRenderDescription||e.description||this._errorMessage)},enumerable:!1,configurable:!0}),t.prototype._renderTextArea=function(){var e=this.props.invalid,t=void 0===e?!!this._errorMessage:e,n=qr(this.props,Nr,["defaultValue"]),r=this.props["aria-labelledby"]||(this.props.label?this._labelId:void 0);return u.createElement("textarea",v({id:this._id},n,{ref:this._textElement,value:this.value||"",onInput:this._onInputChange,onChange:this._onInputChange,className:this._classNames.field,"aria-labelledby":r,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":t,"aria-label":this.props.ariaLabel,readOnly:this.props.readOnly,onFocus:this._onFocus,onBlur:this._onBlur}))},t.prototype._renderInput=function(){var e=this.props,t=e.ariaLabel,n=e.invalid,r=void 0===n?!!this._errorMessage:n,o=e.onRenderPrefix,i=e.onRenderSuffix,a=e.prefix,s=e.suffix,l=e.type,c=void 0===l?"text":l,d=[];e.label&&d.push(this._labelId),(void 0!==a||o)&&d.push(this._prefixId),(void 0!==s||i)&&d.push(this._suffixId);var p=v(v({type:this.state.isRevealingPassword?"text":c,id:this._id},qr(this.props,Mr,["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":t,"aria-describedby":this._isDescriptionAvailable?this._descriptionId:this.props["aria-describedby"],"aria-invalid":r,onFocus:this._onFocus,onBlur:this._onBlur}),m=function(e){return u.createElement("input",v({},e))};return(this.props.onRenderInput||m)(p,m)},t.prototype._validate=function(e){var t=this;if(this._latestValidateValue!==e||!qg(this.props)){this._latestValidateValue=e;var n=this.props.onGetErrorMessage,r=n&&n(e||"");if(void 0!==r)if("string"!==typeof r&&"then"in r){var o=++this._lastValidation;r.then((function(n){o===t._lastValidation&&t.setState({errorMessage:n}),t._notifyAfterValidate(e,n)}))}else this.setState({errorMessage:r}),this._notifyAfterValidate(e,r);else this._notifyAfterValidate(e,"")}},t.prototype._notifyAfterValidate=function(e,t){e===this.value&&this.props.onNotifyValidationResult&&this.props.onNotifyValidationResult(t,e)},t.prototype._adjustInputHeight=function(){var e,t;if(this._textElement.current&&this.props.autoAdjustHeight&&this.props.multiline){var n=null===(t=null===(e=this.props.scrollContainerRef)||void 0===e?void 0:e.current)||void 0===t?void 0:t.scrollTop,r=this._textElement.current;r.style.height="",r.style.height=r.scrollHeight+"px",n&&(this.props.scrollContainerRef.current.scrollTop=n)}},t.defaultProps={resizable:!0,deferredValidationTime:200,validateOnLoad:!0},t}(u.Component);function Gg(e,t){var n=e.value,r=void 0===n?t.uncontrolledValue:n;return"number"===typeof r?String(r):r}function qg(e){return!(e.validateOnFocusIn||e.validateOnFocusOut)}var Yg={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 Zg(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[Wa]={height:31},e)}]}}}var Jg=Jo(jg,(function(e){var t,n,r,o,i,a,s,l,c,d,u,p,m=e.theme,h=e.className,f=e.disabled,g=e.focused,y=e.required,b=e.multiline,C=e.hasLabel,S=e.borderless,x=e.underlined,k=e.hasIcon,P=e.resizable,I=e.hasErrorMessage,w=e.inputClassName,E=e.autoAdjustHeight,_=e.hasRevealButton,D=m.semanticColors,T=m.effects,R=m.fonts,A=os(Yg,m),M={background:D.disabledBackground,color:f?D.disabledText:D.inputPlaceholderText,display:"flex",alignItems:"center",padding:"0 10px",lineHeight:1,whiteSpace:"nowrap",flexShrink:0,selectors:(t={},t[Wa]={background:"Window",color:f?"GrayText":"WindowText"},t)},N=[{color:D.inputPlaceholderText,opacity:1,selectors:(n={},n[Wa]={color:"GrayText"},n)}],F={color:D.disabledText,selectors:(r={},r[Wa]={color:"GrayText"},r)};return{root:[A.root,R.medium,y&&A.required,f&&A.disabled,g&&A.active,b&&A.multiline,S&&A.borderless,x&&A.underlined,ks,{position:"relative"},h],wrapper:[A.wrapper,x&&[{display:"flex",borderBottom:"1px solid ".concat(I?D.errorText:D.inputBorder),width:"100%"},f&&{borderBottomColor:D.disabledBackground,selectors:(o={},o[Wa]=v({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},!f&&{selectors:{":hover":{borderBottomColor:I?D.errorText:D.inputBorderHovered,selectors:(i={},i[Wa]=v({borderBottomColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)}}},g&&[{position:"relative"},Ja(I?D.errorText:D.inputFocusBorderAlt,0,"borderBottom")]]],fieldGroup:[A.fieldGroup,ks,{border:"1px solid ".concat(D.inputBorder),borderRadius:T.roundedCorner2,background:D.inputBackground,cursor:"text",height:32,display:"flex",flexDirection:"row",alignItems:"stretch",position:"relative"},b&&{minHeight:"60px",height:"auto",display:"flex"},!g&&!f&&{selectors:{":hover":{borderColor:D.inputBorderHovered,selectors:(a={},a[Wa]=v({borderColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}}},g&&!x&&Ja(I?D.errorText:D.inputFocusBorderAlt,T.roundedCorner2),f&&{borderColor:D.disabledBackground,selectors:(s={},s[Wa]=v({borderColor:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s),cursor:"default"},S&&{border:"none"},S&&g&&{border:"none",selectors:{":after":{border:"none"}}},x&&{flex:"1 1 0px",border:"none",textAlign:"left"},x&&f&&{backgroundColor:"transparent"},I&&!x&&{borderColor:D.errorText,selectors:{"&:hover":{borderColor:D.errorText}}},!C&&y&&{selectors:(l={":before":{content:"'*'",color:D.errorText,position:"absolute",top:-5,right:-10}},l[Wa]={selectors:{":before":{color:"WindowText",right:-14}}},l)}],field:[R.medium,A.field,ks,{borderRadius:0,border:"none",background:"none",backgroundColor:"transparent",color:D.inputText,padding:"0 8px",width:"100%",minWidth:0,textOverflow:"ellipsis",outline:0,selectors:(c={"&:active, &:focus, &:hover":{outline:0},"::-ms-clear":{display:"none"}},c[Wa]={background:"Window",color:f?"GrayText":"WindowText"},c)},Is(N),b&&!P&&[A.unresizable,{resize:"none"}],b&&{minHeight:"inherit",lineHeight:17,flexGrow:1,paddingTop:6,paddingBottom:6,overflow:"auto",width:"100%"},b&&E&&{overflow:"hidden"},k&&!_&&{paddingRight:24},b&&k&&{paddingRight:40},f&&[{backgroundColor:D.disabledBackground,color:D.disabledText,borderColor:D.disabledBackground},Is(F)],x&&{textAlign:"left"},g&&!S&&{selectors:(d={},d[Wa]={paddingLeft:11,paddingRight:11},d)},g&&b&&!S&&{selectors:(u={},u[Wa]={paddingTop:4},u)},w],icon:[b&&{paddingRight:24,alignItems:"flex-end"},{pointerEvents:"none",position:"absolute",bottom:6,right:8,top:"auto",fontSize:Oi.medium,lineHeight:18},f&&{color:D.disabledText}],description:[A.description,{color:D.bodySubtext,fontSize:R.xSmall.fontSize}],errorMessage:[A.errorMessage,ws.slideDownIn20,R.small,{color:D.errorText,margin:0,paddingTop:5,display:"flex",alignItems:"center"}],prefix:[A.prefix,M],suffix:[A.suffix,M],revealButton:[A.revealButton,"ms-Button","ms-Button--icon",Ya(m,{inset:1}),{height:30,width:32,border:"none",padding:"0px 4px",backgroundColor:"transparent",color:D.link,selectors:{":hover":{outline:0,color:D.primaryButtonBackgroundHovered,backgroundColor:D.buttonBackgroundHovered,selectors:(p={},p[Wa]={borderColor:"Highlight",color:"Highlight"},p)},":focus":{outline:0}}},k&&{marginRight:28}],revealSpan:{display:"flex",height:"100%",alignItems:"center"},revealIcon:{margin:"0px 4px",pointerEvents:"none",bottom:6,right:8,top:"auto",fontSize:Oi.medium,lineHeight:18},subComponentStyles:{label:Zg(e)}}}),void 0,{scope:"TextField"}),Qg={9:/[0-9]/,a:/[a-zA-Z]/,"*":/[a-zA-Z0-9]/};function Xg(e,t){if(void 0===t&&(t=Qg),!e)return[];for(var n=[],r=0,o=0;o+r<e.length;o++){var i=e.charAt(o+r);if("\\"===i)r++;else{var a=t[i];a&&n.push({displayIndex:o,format:a})}}return n}function $g(e,t,n){var r=e;if(!r)return"";r=r.replace(/\\/g,"");var o=0;t.length>0&&(o=t[0].displayIndex-1);for(var i=0,a=t;i<a.length;i++){var s=a[i],l=" ";s.value?(l=s.value,s.displayIndex>o&&(o=s.displayIndex)):n&&(l=n),r=r.slice(0,s.displayIndex)+l+r.slice(s.displayIndex+1)}return n||(r=r.slice(0,o+1)),r}function ev(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t)return e[n].displayIndex;return e[e.length-1].displayIndex}function tv(e,t,n){for(var r=0;r<e.length;r++)if(e[r].displayIndex>=t){if(e[r].displayIndex>=t+n)break;e[r].value=void 0}return e}function nv(e,t,n){for(var r=0,o=0,i=!1,a=0;a<e.length&&r<n.length;a++)if(e[a].displayIndex>=t)for(i=!0,o=e[a].displayIndex;r<n.length;){if(e[a].format.test(n.charAt(r))){e[a].value=n.charAt(r++),a+1<e.length?o=e[a+1].displayIndex:o++;break}r++}return i?o:t}var rv=u.forwardRef((function(e,t){var n=u.useRef(null),r=e.componentRef,o=e.onFocus,i=e.onBlur,a=e.onMouseDown,s=e.onMouseUp,l=e.onChange,c=e.onPaste,d=e.onKeyDown,p=e.mask,m=e.maskChar,h=void 0===m?"_":m,f=e.maskFormat,g=void 0===f?Qg:f,y=e.value,b=zl((function(){return{maskCharData:Xg(p,g),isFocused:!1,moveCursorOnMouseUp:!1,changeSelectionData:null}})),C=u.useState(),S=C[0],x=C[1],k=u.useState((function(){return $g(p,b.maskCharData,h)})),P=k[0],I=k[1],w=u.useCallback((function(e){for(var t=0,n=0;t<e.length&&n<b.maskCharData.length;){var r=e[t];b.maskCharData[n].format.test(r)&&(b.maskCharData[n].value=r,n++),t++}}),[b]),E=u.useCallback((function(e){null===o||void 0===o||o(e),b.isFocused=!0;for(var t=0;t<b.maskCharData.length;t++)if(!b.maskCharData[t].value){x(b.maskCharData[t].displayIndex);break}}),[b,o]),_=u.useCallback((function(e){null===i||void 0===i||i(e),b.isFocused=!1,b.moveCursorOnMouseUp=!0}),[b,i]),D=u.useCallback((function(e){null===a||void 0===a||a(e),b.isFocused||(b.moveCursorOnMouseUp=!0)}),[b,a]),T=u.useCallback((function(e){if(null===s||void 0===s||s(e),b.moveCursorOnMouseUp){b.moveCursorOnMouseUp=!1;for(var t=0;t<b.maskCharData.length;t++)if(!b.maskCharData[t].value){x(b.maskCharData[t].displayIndex);break}}}),[b,s]),R=u.useCallback((function(e,t){if(null===b.changeSelectionData&&n.current&&(b.changeSelectionData={changeType:"default",selectionStart:null!==n.current.selectionStart?n.current.selectionStart:-1,selectionEnd:null!==n.current.selectionEnd?n.current.selectionEnd:-1}),b.changeSelectionData){var r=0,o=b.changeSelectionData,i=o.changeType,a=o.selectionStart,s=o.selectionEnd;if("textPasted"===i){var c=s-a,d=t.length+c-P.length,u=a,m=t.substr(u,d);c&&(b.maskCharData=tv(b.maskCharData,a,c)),r=nv(b.maskCharData,u,m)}else if("delete"===i||"backspace"===i){var f="delete"===i;(d=s-a)?(b.maskCharData=tv(b.maskCharData,a,d),r=ev(b.maskCharData,a)):f?(b.maskCharData=function(e,t){for(var n=0;n<e.length;n++)if(e[n].displayIndex>=t){e[n].value=void 0;break}return e}(b.maskCharData,a),r=ev(b.maskCharData,a)):(b.maskCharData=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t){e[n].value=void 0;break}return e}(b.maskCharData,a),r=function(e,t){for(var n=e.length-1;n>=0;n--)if(e[n].displayIndex<t)return e[n].displayIndex;return e[0].displayIndex}(b.maskCharData,a))}else if(t.length>P.length){u=s-(d=t.length-P.length);var g=t.substr(u,d);r=nv(b.maskCharData,u,g)}else if(t.length<=P.length){d=1;var v=P.length+d-t.length;u=s-d,g=t.substr(u,d);b.maskCharData=tv(b.maskCharData,u,v),r=nv(b.maskCharData,u,g)}b.changeSelectionData=null;var y=$g(p,b.maskCharData,h);I(y),x(r),null===l||void 0===l||l(e,y)}}),[P.length,b,p,h,l]),A=u.useCallback((function(e){if(null===d||void 0===d||d(e),b.changeSelectionData=null,n.current&&n.current.value){var t=e.keyCode,r=e.ctrlKey,o=e.metaKey;if(r||o)return;if(t===Vt||t===nn){var i=e.target.selectionStart,a=e.target.selectionEnd;if(!(t===Vt&&a&&a>0)&&!(t===nn&&null!==i&&i<n.current.value.length))return;b.changeSelectionData={changeType:t===Vt?"backspace":"delete",selectionStart:null!==i?i:-1,selectionEnd:null!==a?a:-1}}}}),[b,d]),M=u.useCallback((function(e){null===c||void 0===c||c(e);var t=e.target.selectionStart,n=e.target.selectionEnd;b.changeSelectionData={changeType:"textPasted",selectionStart:null!==t?t:-1,selectionEnd:null!==n?n:-1}}),[b,c]);return u.useEffect((function(){b.maskCharData=Xg(p,g),void 0!==y&&w(y),I($g(p,b.maskCharData,h))}),[p,y]),ni((function(){void 0!==S&&n.current&&n.current.setSelectionRange(S,S)}),[S]),u.useEffect((function(){b.isFocused&&void 0!==S&&n.current&&n.current.setSelectionRange(S,S)})),function(e,t,n){u.useImperativeHandle(e,(function(){return{get value(){for(var e="",n=0;n<t.maskCharData.length;n++){if(!t.maskCharData[n].value)return;e+=t.maskCharData[n].value}return e},get selectionStart(){return n.current&&null!==n.current.selectionStart?n.current.selectionStart:-1},get selectionEnd(){return n.current&&n.current.selectionEnd?n.current.selectionEnd:-1},focus:function(){n.current&&n.current.focus()},blur:function(){n.current&&n.current.blur()},select:function(){n.current&&n.current.select()},setSelectionStart:function(e){n.current&&n.current.setSelectionStart(e)},setSelectionEnd:function(e){n.current&&n.current.setSelectionEnd(e)},setSelectionRange:function(e,t){n.current&&n.current.setSelectionRange(e,t)}}}),[t,n])}(r,b,n),u.createElement(Jg,v({},e,{elementRef:t,onFocus:E,onBlur:_,onMouseDown:D,onMouseUp:T,onChange:R,onKeyDown:A,onPaste:M,value:P||"",componentRef:n}))}));rv.displayName="MaskedTextField";var ov=wn(),iv=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=u.createRef(),n._isAdjustingSaturation=!0,n._descriptionId=Cr("ColorRectangle-description"),n._onKeyDown=function(e){var t=n.state.color,r=t.s,o=t.v,i=e.shiftKey?10:1;switch(e.which){case $t:n._isAdjustingSaturation=!1,o+=i;break;case tn:n._isAdjustingSaturation=!1,o-=i;break;case Xt:n._isAdjustingSaturation=!0,r-=i;break;case en:n._isAdjustingSaturation=!0,r+=i;break;default:return}n._updateColor(e,wg(t,vg(r,lg),vg(o,cg)))},n._onMouseDown=function(e){var t=lc(n.context);n._disposables.push(ut(t,"mousemove",n._onMouseMove,!0),ut(t,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=av(e,n.state.color,n._root.current);t&&n._updateColor(e,t)}},n._onTouchStart=function(e){n._root.current&&e.stopPropagation()},n._onTouchMove=function(e){if(n._root.current){var t=av(e,n.state.color,n._root.current);t&&n._updateColor(e,t),e.preventDefault(),e.stopPropagation()}},n._disposeListeners=function(){n._disposables.forEach((function(e){return e()})),n._disposables=[]},Xr(n),n.state={color:t.color},n}return g(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&this.props.color&&this.setState({color:this.props.color})},t.prototype.componentDidMount=function(){this._root.current&&(this._root.current.addEventListener("touchstart",this._onTouchStart,{capture:!0,passive:!1}),this._root.current.addEventListener("touchmove",this._onTouchMove,{capture:!0,passive:!1}))},t.prototype.componentWillUnmount=function(){this._root.current&&(this._root.current.removeEventListener("touchstart",this._onTouchStart),this._root.current.removeEventListener("touchmove",this._onTouchMove)),this._disposeListeners()},t.prototype.render=function(){var e=this.props,t=e.minSize,n=e.theme,r=e.className,o=e.styles,i=e.ariaValueFormat,a=e.ariaLabel,s=e.ariaDescription,l=this.state.color,c=ov(o,{theme:n,className:r,minSize:t}),d=i.replace("{0}",String(l.s)).replace("{1}",String(l.v));return u.createElement("div",{ref:this._root,tabIndex:0,className:c.root,style:{backgroundColor:Ig(l)},onMouseDown:this._onMouseDown,onKeyDown:this._onKeyDown,role:"slider","aria-valuetext":d,"aria-valuenow":this._isAdjustingSaturation?l.s:l.v,"aria-valuemin":0,"aria-valuemax":cg,"aria-label":a,"aria-describedby":this._descriptionId,"data-is-focusable":!0},u.createElement("div",{className:c.description,id:this._descriptionId},s),u.createElement("div",{className:c.light}),u.createElement("div",{className:c.dark}),u.createElement("div",{className:c.thumb,style:{left:l.s+"%",top:cg-l.v+"%",backgroundColor:l.str}}))},t.prototype._updateColor=function(e,t){var n=this.props.onChange,r=this.state.color;t.s===r.s&&t.v===r.v||(n&&n(e,t),e.defaultPrevented||(this.setState({color:t}),e.preventDefault()))},t.contextType=dr,t.defaultProps={minSize:220,ariaLabel:"Saturation and brightness",ariaValueFormat:"Saturation {0} brightness {1}",ariaDescription:"Use left and right arrow keys to set saturation. Use up and down arrow keys to set brightness."},t}(u.Component);function av(e,t,n){var r=n.getBoundingClientRect(),o=void 0,i=e;if(i.touches){var a=i.touches[i.touches.length-1];void 0!==a.clientX&&void 0!==a.clientY&&(o={clientX:a.clientX,clientY:a.clientY})}if(!o){var s=e;void 0!==s.clientX&&void 0!==s.clientY&&(o={clientX:s.clientX,clientY:s.clientY})}if(o){var l=(o.clientX-r.left)/r.width,c=(o.clientY-r.top)/r.height;return wg(t,vg(Math.round(l*lg),lg),vg(Math.round(cg-c*cg),cg))}}var sv=Jo(iv,(function(e){var t,n,r=e.className,o=e.theme,i=e.minSize,a=o.palette,s=o.effects;return{root:["ms-ColorPicker-colorRect",{position:"relative",marginBottom:8,border:"1px solid ".concat(a.neutralLighter),borderRadius:s.roundedCorner2,minWidth:i,minHeight:i,outline:"none",selectors:(t={},t[Wa]=v({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t[".".concat(io," &:focus, :host(.").concat(io,") &:focus")]=(n={outline:"1px solid ".concat(a.neutralSecondary)},n["".concat(Wa)]={outline:"2px solid CanvasText"},n),t)},r],light:["ms-ColorPicker-light",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to right, white 0%, transparent 100%) /*@noflip*/"}],dark:["ms-ColorPicker-dark",{position:"absolute",left:0,right:0,top:0,bottom:0,background:"linear-gradient(to bottom, transparent 0, #000 100%)"}],thumb:["ms-ColorPicker-thumb",{position:"absolute",width:20,height:20,background:"white",border:"1px solid ".concat(a.neutralSecondaryAlt),borderRadius:"50%",boxShadow:s.elevation8,transform:"translate(-50%, -50%)",selectors:{":before":{position:"absolute",left:0,right:0,top:0,bottom:0,border:"2px solid ".concat(a.white),borderRadius:"50%",boxSizing:"border-box",content:'""'}}}],description:Qa}}),void 0,{scope:"ColorRectangle"}),lv=wn(),cv=function(e){function t(t){var n=e.call(this,t)||this;return n._disposables=[],n._root=u.createRef(),n._onKeyDown=function(e){var t=n.value,r=n._maxValue,o=e.shiftKey?10:1;switch(e.which){case Xt:t-=o;break;case en:t+=o;break;case Qt:t=0;break;case Jt:t=r;break;default:return}n._updateValue(e,vg(t,r))},n._onMouseDown=function(e){var t=Ve(n);t&&n._disposables.push(ut(t,"mousemove",n._onMouseMove,!0),ut(t,"mouseup",n._disposeListeners,!0)),n._onMouseMove(e)},n._onMouseMove=function(e){if(n._root.current){var t=n._maxValue,r=n._root.current.getBoundingClientRect(),o=(e.clientX-r.left)/r.width,i=vg(Math.round(o*t),t);n._updateValue(e,i)}},n._onTouchStart=function(e){n._root.current&&e.stopPropagation()},n._onTouchMove=function(e){if(n._root.current){var t=e.touches[e.touches.length-1];if(void 0!==t.clientX){var r=n._maxValue,o=n._root.current.getBoundingClientRect(),i=(t.clientX-o.left)/o.width,a=vg(Math.round(i*r),r);n._updateValue(e,a)}e.preventDefault(),e.stopPropagation()}},n._disposeListeners=function(){n._disposables.forEach((function(e){return e()})),n._disposables=[]},Xr(n),Rt("ColorSlider",t,{thumbColor:"styles.sliderThumb",overlayStyle:"overlayColor",isAlpha:"type",maxValue:"type",minValue:"type"}),"hue"===n._type||t.overlayColor||t.overlayStyle||_t("ColorSlider: 'overlayColor' is required when 'type' is \"alpha\" or \"transparency\""),n.state={currentValue:t.value||0},n}return g(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.state.currentValue},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){e!==this.props&&void 0!==this.props.value&&this.setState({currentValue:this.props.value})},t.prototype.componentDidMount=function(){this._root.current&&(this._root.current.addEventListener("touchstart",this._onTouchStart,{capture:!0,passive:!1}),this._root.current.addEventListener("touchmove",this._onTouchMove,{capture:!0,passive:!1}))},t.prototype.componentWillUnmount=function(){this._root.current&&(this._root.current.removeEventListener("touchstart",this._onTouchStart),this._root.current.removeEventListener("touchmove",this._onTouchMove)),this._disposeListeners()},t.prototype.render=function(){var e=this._type,t=this._maxValue,n=this.props,r=n.overlayStyle,o=n.overlayColor,i=n.theme,a=n.className,s=n.styles,l=n.ariaLabel,c=void 0===l?e:l,d=this.value,p=lv(s,{theme:i,className:a,type:e}),m=100*d/t;return u.createElement("div",{ref:this._root,className:p.root,tabIndex:0,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,role:"slider","aria-valuenow":d,"aria-valuetext":String(d),"aria-valuemin":0,"aria-valuemax":t,"aria-label":c,"data-is-focusable":!0},!(!o&&!r)&&u.createElement("div",{className:p.sliderOverlay,style:o?{background:"transparency"===e?"linear-gradient(to right, #".concat(o,", transparent)"):"linear-gradient(to right, transparent, #".concat(o,")")}:r}),u.createElement("div",{className:p.sliderThumb,style:{left:m+"%"}}))},Object.defineProperty(t.prototype,"_type",{get:function(){var e=this.props,t=e.isAlpha,n=e.type;return void 0===n?t?"alpha":"hue":n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_maxValue",{get:function(){return"hue"===this._type?359:ug},enumerable:!1,configurable:!0}),t.prototype._updateValue=function(e,t){if(t!==this.value){var n=this.props.onChange;n&&n(e,t),e.defaultPrevented||(this.setState({currentValue:t}),e.preventDefault())}},t.defaultProps={value:0},t}(u.Component),dv={background:"linear-gradient(".concat(["to left","red 0","#f09 10%","#cd00ff 20%","#3200ff 30%","#06f 40%","#00fffd 50%","#0f6 60%","#35ff00 70%","#cdff00 80%","#f90 90%","red 100%"].join(","),")")},uv={backgroundImage:"url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAAJUlEQVQYV2N89erVfwY0ICYmxoguxjgUFKI7GsTH5m4M3w1ChQC1/Ca8i2n1WgAAAABJRU5ErkJggg==)"},pv=Jo(cv,(function(e){var t,n,r=e.theme,o=e.className,i=e.type,a=void 0===i?"hue":i,s=e.isAlpha,l=void 0===s?"hue"!==a:s,c=r.palette,d=r.effects;return{root:["ms-ColorPicker-slider",{position:"relative",height:20,marginBottom:8,border:"1px solid ".concat(c.neutralLight),borderRadius:d.roundedCorner2,boxSizing:"border-box",outline:"none",forcedColorAdjust:"none",selectors:(t={},t[".".concat(io," &:focus")]=(n={outline:"1px solid ".concat(c.neutralSecondary)},n["".concat(Wa)]={outline:"2px solid CanvasText"},n),t)},l?uv:dv,o],sliderOverlay:["ms-ColorPicker-sliderOverlay",{content:"",position:"absolute",left:0,right:0,top:0,bottom:0}],sliderThumb:["ms-ColorPicker-thumb","is-slider",{position:"absolute",width:20,height:20,background:"white",border:"1px solid ".concat(c.neutralSecondaryAlt),borderRadius:"50%",boxShadow:d.elevation8,transform:"translate(-50%, -50%)",top:"50%",forcedColorAdjust:"auto"}]}}),void 0,{scope:"ColorSlider"}),mv=wn(),hv=["hex","r","g","b","a","t"],fv={hex:"hexError",r:"redError",g:"greenError",b:"blueError",a:"alphaError",t:"transparencyError"},gv=function(e){function t(n){var r=e.call(this,n)||this;r._onSVChanged=function(e,t){r._updateColor(e,t)},r._onHChanged=function(e,t){r._updateColor(e,function(e,t){var n=hg(t,e.s,e.v),r=n.r,o=n.g,i=n.b,a=yg(r,o,i);return v(v({},e),{h:t,r:r,g:o,b:i,hex:a,str:xg(r,o,i,e.a,a)})}(r.state.color,t))},r._onATChanged=function(e,t){var n="transparency"===r.props.alphaType?zg:Eg;r._updateColor(e,n(r.state.color,Math.round(t)))},r._onBlur=function(e){var t,n=r.state,o=n.color,i=n.editingColor;if(i){var a,s=i.value,l=i.component,c="hex"===l,d="a"===l,u="t"===l,p=c?3:1;if(s.length>=p&&(c||!isNaN(Number(s)))){var m=void 0;if(c)m=Pg("#"+(!(a=s)||a.length<3?"ffffff":a.length>=6?a.substring(0,6):a.substring(0,3)));else if(d||u){m=(d?Eg:zg)(o,vg(Number(s),ug))}else m=kg(function(e){return{r:vg(e.r,dg),g:vg(e.g,dg),b:vg(e.b,dg),a:"number"===typeof e.a?vg(e.a,ug):e.a}}(v(v({},o),((t={})[l]=Number(s),t))));r._updateColor(e,m)}else r.setState({editingColor:void 0})}},Xr(r);var o=n.strings;Rt("ColorPicker",n,{hexLabel:"strings.hex",redLabel:"strings.red",greenLabel:"strings.green",blueLabel:"strings.blue",alphaLabel:"strings.alpha",alphaSliderHidden:"alphaType"}),o.hue&&_t("ColorPicker property 'strings.hue' was used but has been deprecated. Use 'strings.hueAriaLabel' instead."),r.state={color:vv(n)||Pg("#ffffff")},r._textChangeHandlers={};for(var i=0,a=hv;i<a.length;i++){var s=a[i];r._textChangeHandlers[s]=r._onTextChange.bind(r,s)}var l=t.defaultProps.strings;return r._textLabels={r:n.redLabel||o.red||l.red,g:n.greenLabel||o.green||l.green,b:n.blueLabel||o.blue||l.blue,a:n.alphaLabel||o.alpha||l.alpha,hex:n.hexLabel||o.hex||l.hex,t:o.transparency||l.transparency},r._strings=v(v(v({},l),{alphaAriaLabel:r._textLabels.a,transparencyAriaLabel:r._textLabels.t}),o),r}return g(t,e),Object.defineProperty(t.prototype,"color",{get:function(){return this.state.color},enumerable:!1,configurable:!0}),t.prototype.componentDidUpdate=function(e,t){if(e!==this.props){var n=vv(this.props);n&&this._updateColor(void 0,n)}},t.prototype.render=function(){var e=this,t=this.props,n=this._strings,r=this._textLabels,o=t.theme,i=t.className,a=t.styles,s=t.alphaType,l=t.alphaSliderHidden,c=void 0===l?"none"===s:l,d=t.tooltipProps,p=this.state.color,m="transparency"===s,h=["hex","r","g","b",m?"t":"a"],f=m?p.t:p.a,g=m?r.t:r.a,y=mv(a,{theme:o,className:i,alphaType:s}),b=[r.r,p.r,r.g,p.g,r.b,p.b];c||"number"!==typeof f||b.push(g,"".concat(f,"%"));var C=n.rootAriaLabelFormat.replace("{0}",b.join(" "));return u.createElement("div",{className:y.root,role:"group","aria-label":C},u.createElement("div",{className:y.panel},u.createElement(sv,{color:p,onChange:this._onSVChanged,ariaLabel:n.svAriaLabel,ariaDescription:n.svAriaDescription,ariaValueFormat:n.svAriaValueFormat,className:y.colorRectangle}),u.createElement("div",{className:y.flexContainer},u.createElement("div",{className:y.flexSlider},u.createElement(pv,{className:"is-hue",type:"hue",ariaLabel:n.hue||n.hueAriaLabel,value:p.h,onChange:this._onHChanged}),!c&&u.createElement(pv,{className:"is-alpha",type:s,ariaLabel:m?n.transparencyAriaLabel:n.alphaAriaLabel,overlayColor:p.hex,value:f,onChange:this._onATChanged})),t.showPreview&&u.createElement("div",{className:y.flexPreviewBox},u.createElement("div",{className:y.colorSquare+" is-preview",style:{backgroundColor:p.str}}))),u.createElement("table",{className:y.table,role:"group",cellPadding:"0",cellSpacing:"0"},u.createElement("thead",null,u.createElement("tr",{className:y.tableHeader},u.createElement("td",{className:y.tableHexCell},r.hex),u.createElement("td",null,r.r),u.createElement("td",null,r.g),u.createElement("td",null,r.b),!c&&u.createElement("td",{className:y.tableAlphaCell},g))),u.createElement("tbody",null,u.createElement("tr",null,h.map((function(t){if(("a"===t||"t"===t)&&c)return null;var n=e._getTooltipValue(t);return u.createElement("td",{key:t},u.createElement(od,v({content:n,directionalHint:Gs,role:"alert"},d),u.createElement(Jg,{className:y.input,onChange:e._textChangeHandlers[t],onBlur:e._onBlur,value:e._getDisplayValue(t),spellCheck:!1,ariaLabel:r[t],autoComplete:"off",invalid:!!n})))})))))),u.createElement(go,null))},t.prototype._getDisplayValue=function(e){var t=this.state,n=t.color,r=t.editingColor;return r&&r.component===e?r.value:"hex"===e?n[e]||"":"number"!==typeof n[e]||isNaN(n[e])?"":String(n[e])},t.prototype._getTooltipValue=function(e){var t=this.state.editingColor;if(t&&t.component===e){var n=t.value;if(!("hex"===e&&n.length>=3&&n.length<=6)){var r=fv[e];return this._strings[r]}}},t.prototype._onTextChange=function(e,t,n){var r,o=this.state.color,i="hex"===e,a="a"===e,s="t"===e;if(n=(n||"").substr(0,i?6:3),(i?pg:mg).test(n))if(""!==n&&(i?6===n.length:a||s?Number(n)<=ug:Number(n)<=dg))if(String(o[e])===n)this.state.editingColor&&this.setState({editingColor:void 0});else{var l=i?Pg("#"+n):s?zg(o,Number(n)):kg(v(v({},o),((r={})[e]=Number(n),r)));this._updateColor(t,l)}else this.setState({editingColor:{component:e,value:n}})},t.prototype._updateColor=function(e,t){if(t){var n=this.state,r=n.color,o=n.editingColor;if(t.h!==r.h||t.str!==r.str||o){if(e&&this.props.onChange&&(this.props.onChange(e,t),e.defaultPrevented))return;this.setState({color:t,editingColor:void 0})}}},t.defaultProps={alphaType:"alpha",strings:{rootAriaLabelFormat:"Color picker, {0} selected.",hex:"Hex",red:"Red",green:"Green",blue:"Blue",alpha:"Alpha",transparency:"Transparency",hueAriaLabel:"Hue",svAriaLabel:iv.defaultProps.ariaLabel,svAriaValueFormat:iv.defaultProps.ariaValueFormat,svAriaDescription:iv.defaultProps.ariaDescription,hexError:"Hex values must be between 3 and 6 characters long",alphaError:"Alpha must be between 0 and 100",transparencyError:"Transparency must be between 0 and 100",redError:"Red must be between 0 and 255",greenError:"Green must be between 0 and 255",blueError:"Blue must be between 0 and 255"}},t}(u.Component);function vv(e){var t=e.color;return"string"===typeof t?Pg(t):t}Jo(gv,(function(e){var t=e.className,n=e.theme,r=e.alphaType;return{root:["ms-ColorPicker",n.fonts.medium,{position:"relative",maxWidth:300},t],panel:["ms-ColorPicker-panel",{padding:"16px"}],table:["ms-ColorPicker-table",{tableLayout:"fixed",width:"100%",selectors:{"tbody td:last-of-type .ms-ColorPicker-input":{paddingRight:0}}}],tableHeader:[n.fonts.small,{selectors:{td:{paddingBottom:4}}}],tableHexCell:{width:"25%"},tableAlphaCell:"transparency"===r&&{width:"22%"},colorSquare:["ms-ColorPicker-colorSquare",{width:48,height:48,margin:"0 0 0 8px",border:"1px solid #c8c6c4",forcedColorAdjust:"none"}],flexContainer:{display:"flex"},flexSlider:{flexGrow:"1"},flexPreviewBox:{flexGrow:"0"},input:["ms-ColorPicker-input",{width:"100%",border:"none",boxSizing:"border-box",height:30,selectors:{"&.ms-TextField":{paddingRight:4},"& .ms-TextField-field":{minWidth:"auto",padding:5,textOverflow:"clip"}}}]}}),void 0,{scope:"ColorPicker"});var yv,bv,Cv,Sv,xv,kv=Fn((function(e){var t,n=e.semanticColors;return{backgroundColor:n.disabledBackground,color:n.disabledText,cursor:"default",selectors:(t={":after":{borderColor:n.disabledBackground}},t[Wa]={color:"GrayText",selectors:{":after":{borderColor:"GrayText"}}},t)}})),Pv={selectors:(yv={},yv[Wa]=v({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),yv)},Iv={selectors:(bv={},bv[Wa]=v({color:"WindowText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),bv)},wv=Fn((function(e,t,n,r,o,i){var a,s=e.palette,l=e.semanticColors,c={textHoveredColor:l.menuItemTextHovered,textSelectedColor:s.neutralDark,textDisabledColor:l.disabledText,backgroundHoveredColor:l.menuItemBackgroundHovered,backgroundPressedColor:l.menuItemBackgroundPressed};return _e({root:[e.fonts.medium,{backgroundColor:r?c.backgroundHoveredColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:o?"none":"block",width:"100%",height:"auto",minHeight:36,lineHeight:"20px",padding:"0 8px",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:"transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",selectors:v(v((a={},a[Wa]={border:"none",borderColor:"Background"},a),!o&&{"&.ms-Checkbox":{display:"flex",alignItems:"center"}}),{"&.ms-Button--command:hover:active":{backgroundColor:c.backgroundPressedColor},".ms-Checkbox-label":{width:"100%"}})},i?[{backgroundColor:"transparent",color:c.textSelectedColor,selectors:{":hover":[{backgroundColor:c.backgroundHoveredColor},Pv]}},Ya(e,{inset:-1,isFocusedOnly:!1}),Pv]:[]],rootHovered:{backgroundColor:c.backgroundHoveredColor,color:c.textHoveredColor},rootFocused:{backgroundColor:c.backgroundHoveredColor},rootDisabled:{color:c.textDisabledColor,cursor:"default"},optionText:{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:"0px",maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",display:"inline-block"},optionTextWrapper:{maxWidth:"100%",display:"flex",alignItems:"center"}},t,n)})),Ev=Fn((function(e,t){var n,r,o=e.semanticColors,i=e.fonts,a={buttonTextColor:o.bodySubtext,buttonTextHoveredCheckedColor:o.buttonTextChecked,buttonBackgroundHoveredColor:o.listItemBackgroundHovered,buttonBackgroundCheckedColor:o.listItemBackgroundChecked,buttonBackgroundCheckedHoveredColor:o.listItemBackgroundCheckedHovered},s={selectors:(n={},n[Wa]=v({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)};return _e({root:{color:a.buttonTextColor,fontSize:i.small.fontSize,position:"absolute",top:0,height:"100%",lineHeight:30,width:32,textAlign:"center",cursor:"default",selectors:(r={},r[Wa]=v({backgroundColor:"ButtonFace",borderColor:"ButtonText",color:"ButtonText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)},icon:{fontSize:i.small.fontSize},rootHovered:[{backgroundColor:a.buttonBackgroundHoveredColor,color:a.buttonTextHoveredCheckedColor,cursor:"pointer"},s],rootPressed:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},s],rootChecked:[{backgroundColor:a.buttonBackgroundCheckedColor,color:a.buttonTextHoveredCheckedColor},s],rootCheckedHovered:[{backgroundColor:a.buttonBackgroundCheckedHoveredColor,color:a.buttonTextHoveredCheckedColor},s],rootDisabled:[kv(e),{position:"absolute"}]},t)})),_v=Fn((function(e,t,n){var r,o,i,a,s,l,c=e.semanticColors,d=e.fonts,u=e.effects,p={textColor:c.inputText,borderColor:c.inputBorder,borderHoveredColor:c.inputBorderHovered,borderPressedColor:c.inputFocusBorderAlt,borderFocusedColor:c.inputFocusBorderAlt,backgroundColor:c.inputBackground,erroredColor:c.errorText},m={headerTextColor:c.menuHeader,dividerBorderColor:c.bodyDivider},h={selectors:(r={},r[Wa]={color:"GrayText"},r)},f=[{color:c.inputPlaceholderText},h],g=[{color:c.inputTextHovered},h],y=[{color:c.disabledText},h],b=v(v({color:"HighlightText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{":after":{borderColor:"Highlight"}}}),C=Ja(p.borderPressedColor,u.roundedCorner2,"border",0);return _e({container:{},label:{},labelDisabled:{},root:[e.fonts.medium,{boxShadow:"none",marginLeft:"0",paddingRight:32,paddingLeft:9,color:p.textColor,position:"relative",outline:"0",userSelect:"none",backgroundColor:p.backgroundColor,cursor:"text",display:"block",height:32,whiteSpace:"nowrap",textOverflow:"ellipsis",boxSizing:"border-box",selectors:{".ms-Label":{display:"inline-block",marginBottom:"8px"},"&.is-open":{selectors:(o={},o[Wa]=b,o)},":after":{pointerEvents:"none",content:"''",position:"absolute",left:0,top:0,bottom:0,right:0,borderWidth:"1px",borderStyle:"solid",borderColor:p.borderColor,borderRadius:u.roundedCorner2}}}],rootHovered:{selectors:(i={":after":{borderColor:p.borderHoveredColor},".ms-ComboBox-Input":[{color:c.inputTextHovered},Is(g),Iv]},i[Wa]=v(v({color:"HighlightText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{":after":{borderColor:"Highlight"}}}),i)},rootPressed:[{position:"relative",selectors:(a={},a[Wa]=b,a)}],rootFocused:[{selectors:(s={".ms-ComboBox-Input":[{color:c.inputTextHovered},Iv]},s[Wa]=b,s)},C],rootDisabled:kv(e),rootError:{selectors:{":after":{borderColor:p.erroredColor},":hover:after":{borderColor:c.inputBorderHovered}}},rootDisallowFreeForm:{},input:[Is(f),{backgroundColor:p.backgroundColor,color:p.textColor,boxSizing:"border-box",width:"100%",height:"100%",borderStyle:"none",outline:"none",font:"inherit",textOverflow:"ellipsis",padding:"0",selectors:{"::-ms-clear":{display:"none"}}},Iv],inputDisabled:[kv(e),Is(y)],errorMessage:[e.fonts.small,{color:p.erroredColor,marginTop:"5px"}],callout:{boxShadow:u.elevation8},optionsContainerWrapper:{width:n},optionsContainer:{display:"block"},screenReaderText:Qa,header:[d.medium,{fontWeight:Hi.semibold,color:m.headerTextColor,backgroundColor:"none",borderStyle:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(l={},l[Wa]=v({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}],divider:{height:1,backgroundColor:m.dividerBorderColor}},t)})),Dv=Fn((function(e,t,n,r,o,i,a,s){return{container:we(e.__shadowConfig__,"ms-ComboBox-container",t,e.container),label:we(e.__shadowConfig__,e.label,r&&e.labelDisabled),root:we(e.__shadowConfig__,"ms-ComboBox",s?e.rootError:n&&"is-open",o&&"is-required",e.root,!a&&e.rootDisallowFreeForm,s&&!i?e.rootError:!r&&i&&e.rootFocused,!r&&{selectors:{":hover":s?e.rootError:!n&&!i&&e.rootHovered,":active":s?e.rootError:e.rootPressed,":focus":s?e.rootError:e.rootFocused}},r&&["is-disabled",e.rootDisabled]),input:we(e.__shadowConfig__,"ms-ComboBox-Input",e.input,r&&e.inputDisabled),errorMessage:we(e.__shadowConfig__,e.errorMessage),callout:we(e.__shadowConfig__,"ms-ComboBox-callout",e.callout),optionsContainerWrapper:we(e.__shadowConfig__,"ms-ComboBox-optionsContainerWrapper",e.optionsContainerWrapper),optionsContainer:we(e.__shadowConfig__,"ms-ComboBox-optionsContainer",e.optionsContainer),header:we(e.__shadowConfig__,"ms-ComboBox-header",e.header),divider:we(e.__shadowConfig__,"ms-ComboBox-divider",e.divider),screenReaderText:we(e.__shadowConfig__,e.screenReaderText)}})),Tv=Fn((function(e){return{optionText:we(e.__shadowConfig__,"ms-ComboBox-optionText",e.optionText),root:we(e.__shadowConfig__,"ms-ComboBox-option",e.root,{selectors:{":hover":e.rootHovered,":focus":e.rootFocused,":active":e.rootPressed}}),optionTextWrapper:we(e.__shadowConfig__,e.optionTextWrapper)}}));function Rv(e,t){for(var n=[],r=0,o=t;r<o.length;r++){var i=e[o[r]];i&&n.push(i)}return n}!function(e){e[e.Normal=0]="Normal",e[e.Divider=1]="Divider",e[e.Header=2]="Header",e[e.SelectAll=3]="SelectAll"}(Cv||(Cv={})),function(e){e[e.backward=-1]="backward",e[e.none=0]="none",e[e.forward=1]="forward"}(Sv||(Sv={})),function(e){e[e.clearAll=-2]="clearAll",e[e.default=-1]="default"}(xv||(xv={}));var Av=u.memo((function(e){return(0,e.render)()}),(function(e,t){e.render;var n=y(e,["render"]);t.render;return pt(n,y(t,["render"]))})),Mv="ComboBox",Nv={options:[],allowFreeform:!1,allowParentArrowNavigation:!1,autoComplete:"on",buttonIconProps:{iconName:"ChevronDown"}};function Fv(e){var t=e.options,n=e.defaultSelectedKey,r=e.selectedKey,o=u.useState((function(){return Lv(t,function(e,t){var n=Vv(e);if(n.length)return n;return Vv(t)}(n,r))})),i=o[0],a=o[1],s=u.useState(t),l=s[0],c=s[1],d=u.useState(),p=d[0],m=d[1];return u.useEffect((function(){if(void 0!==r){var e=Vv(r),n=Lv(t,e);a(n)}c(t)}),[t,r]),u.useEffect((function(){null===r&&m(void 0)}),[r]),[i,a,l,c,p,m]}var Hv=u.forwardRef((function(e,t){var n=$o(Nv,e),r=(n.ref,y(n,["ref"])),o=u.useRef(null),i=Gl(o,t),a=Fv(r),s=a[0],l=a[1],c=a[2],d=a[3],p=a[4],m=a[5];return u.createElement(Bv,v({},r,{hoisted:{mergedRootRef:i,rootRef:o,selectedIndices:s,setSelectedIndices:l,currentOptions:c,setCurrentOptions:d,suggestedDisplayValue:p,setSuggestedDisplayValue:m}}))}));function Ov(e,t){for(var n=function(e,t){void 0===t&&(t=!0);var n=[];if(e){for(var r=0;r<e.children.length;r++)n.push(e.children.item(r));t&&We(e)&&n.push.apply(n,e._virtual.children)}return n}(e),r=0;r<n.length;r++){var o=n[r];if(t(o))return o;var i=Ov(o,t);if(i)return i}return null}Hv.displayName=Mv;var Bv=function(e){function t(t){var n=e.call(this,t)||this;return n._autofill=u.createRef(),n._comboBoxWrapper=u.createRef(),n._comboBoxMenu=u.createRef(),n._selectedElement=u.createRef(),n._overrideScrollDismiss=!1,n.focus=function(e,t){n.props.disabled||(n._autofill.current&&(t?ct(n._autofill.current):n._autofill.current.focus(),e&&n.setState({isOpen:!0})),n._hasFocus()||n.setState({focusState:"focused"}))},n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onUpdateValueInAutofillWillReceiveProps=function(){var e=n._autofill.current;return e?null===e.value||void 0===e.value?null:zv(n._currentVisibleValue):null},n._renderComboBoxWrapper=function(e,t){var r=n.props,o=r.label,i=r.disabled,a=r.ariaLabel,s=r.ariaDescribedBy,l=void 0===s?n.props["aria-describedby"]:s,c=r.required,d=r.errorMessage,p=r.buttonIconProps,m=r.isButtonAriaHidden,h=r.title,f=r.placeholder,g=r.tabIndex,y=r.autofill,b=r.iconButtonProps,C=r.hoisted.suggestedDisplayValue,S=n.state,x=S.ariaActiveDescendantValue,k=S.isOpen,P=n._hasFocus()&&n.props.multiSelect&&e?e:f,I=[n.props["aria-labelledby"],o&&n._id+"-label"].join(" ").trim(),w={"aria-labelledby":I||void 0,"aria-label":a&&!o?a:void 0};return u.createElement("div",{"data-ktp-target":!0,ref:n._comboBoxWrapper,id:n._id+"wrapper",className:n._classNames.root,"aria-owns":k?n._id+"-list":void 0},u.createElement($d,v({"data-ktp-execute-target":!0,"data-is-interactable":!i,componentRef:n._autofill,id:n._id+"-input",className:n._classNames.input,type:"text",onFocus:n._onFocus,onBlur:n._onBlur,onKeyDown:n._onInputKeyDown,onKeyUp:n._onInputKeyUp,onClick:n._onAutofillClick,onTouchStart:n._onTouchStart,onInputValueChange:n._onInputChange,"aria-expanded":k,"aria-autocomplete":n._getAriaAutoCompleteValue(),role:"combobox",readOnly:i},w,{"aria-describedby":void 0!==d?mn(l,t):l,"aria-activedescendant":x,"aria-required":c,"aria-disabled":i,"aria-controls":k?n._id+"-list":void 0,spellCheck:!1,defaultVisibleValue:n._currentVisibleValue,suggestedDisplayValue:C,updateValueInWillReceiveProps:n._onUpdateValueInAutofillWillReceiveProps,shouldSelectFullInputValueInComponentDidUpdate:n._onShouldSelectFullInputValueInAutofillComponentDidUpdate,title:h,preventValueSelection:!n._hasFocus(),placeholder:P,tabIndex:i?-1:g},y)),u.createElement(mm,v({className:"ms-ComboBox-CaretDown-button",styles:n._getCaretButtonStyles(),role:m?"presentation":void 0,"aria-hidden":m},m?void 0:w,{"data-is-focusable":!1,tabIndex:-1,onClick:n._onComboBoxClick,onBlur:n._onBlur,iconProps:p,disabled:i,checked:k},b)))},n._onShouldSelectFullInputValueInAutofillComponentDidUpdate=function(){return n._currentVisibleValue===n.props.hoisted.suggestedDisplayValue},n._getVisibleValue=function(){var e=n.props,t=e.text,r=e.allowFreeform,o=e.allowFreeInput,i=e.autoComplete,a=e.hoisted,s=a.suggestedDisplayValue,l=a.selectedIndices,c=a.currentOptions,d=n.state,u=d.currentPendingValueValidIndex,p=d.currentPendingValue,m=d.isOpen,h=Wv(c,u);if((!m||!h)&&(t||""===t)&&(null===p||void 0===p))return t;if(n.props.multiSelect){if(n._hasFocus()){var f=-1;return"on"===i&&h&&(f=u),n._getPendingString(p,c,f)}return n._getMultiselectDisplayString(l,c,s)}f=n._getFirstSelectedIndex();return r||o?("on"===i&&h&&(f=u),n._getPendingString(p,c,f)):h&&"on"===i?(f=u,zv(p)):!n.state.isOpen&&p?Wv(c,f)?p:zv(s):Wv(c,f)?jv(c[f]):zv(s)},n._onInputChange=function(e){n.props.disabled?n._handleInputWhenDisabled(null):(n.props.onInputValueChange&&n.props.onInputValueChange(e),n.props.allowFreeform||n.props.allowFreeInput?n._processInputChangeWithFreeform(e):n._processInputChangeWithoutFreeform(e))},n._onFocus=function(){var e,t;null===(t=null===(e=n._autofill.current)||void 0===e?void 0:e.inputElement)||void 0===t||t.select(),n._hasFocus()||n.setState({focusState:"focusing"})},n._onResolveOptions=function(){if(n.props.onResolveOptions){var e=n.props.onResolveOptions(C([],n.props.hoisted.currentOptions,!0));Array.isArray(e)?n.props.hoisted.setCurrentOptions(e):e&&e.then&&(n._currentPromise=e,e.then((function(t){e===n._currentPromise&&n.props.hoisted.setCurrentOptions(t)})))}},n._onBlur=function(e){var t,r,o=sc(n.context),i=e.relatedTarget;if(null===e.relatedTarget&&(i=null===o||void 0===o?void 0:o.activeElement),i){var a=null===(t=n.props.hoisted.rootRef.current)||void 0===t?void 0:t.contains(i),s=null===(r=n._comboBoxMenu.current)||void 0===r?void 0:r.contains(i),l=n._comboBoxMenu.current&&je(n._comboBoxMenu.current,(function(e){return e===i}),o);if(a||s||l)return l&&n._hasFocus()&&(!n.props.multiSelect||n.props.allowFreeform)&&n._submitPendingValue(e),e.preventDefault(),void e.stopPropagation()}n._hasFocus()&&(n.setState({focusState:"none"}),n.props.multiSelect&&!n.props.allowFreeform||n._submitPendingValue(e))},n._onRenderContainer=function(e,t){var r=e.onRenderList,o=e.calloutProps,i=e.dropdownWidth,a=e.dropdownMaxWidth,s=e.onRenderUpperContent,l=void 0===s?n._onRenderUpperContent:s,c=e.onRenderLowerContent,d=void 0===c?n._onRenderLowerContent:c,p=e.useComboBoxAsMenuWidth,m=e.persistMenu,h=e.shouldRestoreFocus,f=void 0===h||h,g=n.state.isOpen,y=n._id,b=p&&n._comboBoxWrapper.current?n._comboBoxWrapper.current.clientWidth+2:void 0;return u.createElement(Wc,v({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHint:js,directionalHintFixed:!1},o,{onLayerMounted:n._onLayerMounted,className:Wn(n._classNames.callout,null===o||void 0===o?void 0:o.className),target:n._comboBoxWrapper.current,onDismiss:n._onDismiss,onMouseDown:n._onCalloutMouseDown,onScroll:n._onScroll,setInitialFocus:!1,calloutWidth:p&&n._comboBoxWrapper.current?b&&b:i,calloutMaxWidth:a||b,hidden:m?!g:void 0,shouldRestoreFocus:f,preventDismissOnEvent:function(e){return n._preventDismissOnScrollOrResize(e)}}),l(n.props,n._onRenderUpperContent),u.createElement("div",{className:n._classNames.optionsContainerWrapper,ref:n._comboBoxMenu},null===r||void 0===r?void 0:r(v(v({},e),{id:y}),n._onRenderList)),d(n.props,n._onRenderLowerContent))},n._onLayerMounted=function(){n._onCalloutLayerMounted(),n._async.setTimeout((function(){n._scrollIntoView()}),0),n.props.calloutProps&&n.props.calloutProps.onLayerMounted&&n.props.calloutProps.onLayerMounted()},n._onRenderLabel=function(e){var t=e.props,r=t.label,o=t.disabled,i=t.required;return r?u.createElement(Pf,{id:n._id+"-label",disabled:o,required:i,className:n._classNames.label},r,e.multiselectAccessibleText&&u.createElement("span",{className:n._classNames.screenReaderText},e.multiselectAccessibleText)):null},n._onRenderList=function(e){var t=e.onRenderItem,r=void 0===t?n._onRenderItem:t,o=e.label,i=e.ariaLabel,a=e.multiSelect,s={items:[]},l=[],c=function(){var e=s.id?[u.createElement("div",{role:"group",key:s.id,"aria-labelledby":s.id},s.items)]:s.items;l=C(C([],l,!0),e,!0),s={items:[]}};e.options.forEach((function(e,t){!function(e,t){switch(e.itemType){case Cv.Header:s.items.length>0&&c();var o=n._id+e.key;s.items.push(r(v(v({id:o},e),{index:t}),n._onRenderItem)),s.id=o;break;case Cv.Divider:t>0&&s.items.push(r(v(v({},e),{index:t}),n._onRenderItem)),s.items.length>0&&c();break;default:s.items.push(r(v(v({},e),{index:t}),n._onRenderItem))}}(e,t)})),s.items.length>0&&c();var d=n._id;return u.createElement("div",{id:d+"-list",className:n._classNames.optionsContainer,"aria-labelledby":o&&d+"-label","aria-label":i&&!o?i:void 0,"aria-multiselectable":a?"true":void 0,role:"listbox"},l)},n._onRenderItem=function(e){switch(e.itemType){case Cv.Divider:return n._renderSeparator(e);case Cv.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._onRenderLowerContent=function(){return null},n._onRenderUpperContent=function(){return null},n._renderOption=function(e){var t,r=n.props.onRenderOption,o=void 0===r?n._onRenderOptionContent:r,i=null!==(t=e.id)&&void 0!==t?t:n._id+"-list"+e.index,a=n._isOptionSelected(e.index),s=n._isOptionChecked(e.index),l=n._isOptionIndeterminate(e.index),c=n._getCurrentOptionStyles(e),d=Tv(c),p=e.title;return u.createElement(Av,{key:e.key,index:e.index,disabled:e.disabled,isSelected:a,isChecked:s,isIndeterminate:l,text:e.text,render:function(){return n.props.multiSelect?u.createElement(Sf,{id:i,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:i+"-label",key:e.key,styles:c,className:"ms-ComboBox-option",onChange:n._onItemClick(e),label:e.text,checked:s,indeterminate:l,title:p,disabled:e.disabled,onRenderLabel:n._renderCheckboxLabel.bind(n,v(v({},e),{id:i+"-label"})),inputProps:v({"aria-selected":s?"true":"false",role:"option"},{"data-index":e.index,"data-is-focusable":!0})}):u.createElement(vm,{id:i,key:e.key,"data-index":e.index,styles:c,checked:a,className:"ms-ComboBox-option",onClick:n._onItemClick(e),onMouseEnter:n._onOptionMouseEnter.bind(n,e.index),onMouseMove:n._onOptionMouseMove.bind(n,e.index),onMouseLeave:n._onOptionMouseLeave,role:"option","aria-selected":a?"true":"false",ariaLabel:e.ariaLabel,disabled:e.disabled,title:p},u.createElement("span",{className:d.optionTextWrapper,ref:a?n._selectedElement:void 0},o(e,n._onRenderOptionContent)))},data:e.data})},n._onCalloutMouseDown=function(e){e.preventDefault()},n._onScroll=function(){var e;n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(n._async.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),(null===(e=n.props.calloutProps)||void 0===e?void 0:e.onScroll)&&n.props.calloutProps.onScroll(),n._scrollIdleTimeoutId=n._async.setTimeout((function(){n._isScrollIdle=!0}),250)},n._onRenderOptionContent=function(e){var t=Tv(n._getCurrentOptionStyles(e));return u.createElement("span",{className:t.optionText},e.text)},n._onRenderMultiselectOptionContent=function(e){var t=Tv(n._getCurrentOptionStyles(e));return u.createElement("span",{id:e.id,"aria-hidden":"true",className:t.optionText},e.text)},n._onDismiss=function(){var e=n.props.onMenuDismiss;e&&e(),n.props.persistMenu&&n._onCalloutLayerMounted(),n._setOpenStateAndFocusOnClose(!1,!1),n._resetSelectedIndex()},n._onAfterClearPendingInfo=function(){n._processingClearPendingInfo=!1},n._onInputKeyDown=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,i=t.allowFreeInput,a=t.allowParentArrowNavigation,s=t.autoComplete,l=t.hoisted.currentOptions,c=n.state,d=c.isOpen,u=c.currentPendingValueValidIndexOnHover;if(n._lastKeyDownWasAltOrMeta=Gv(e),r)n._handleInputWhenDisabled(e);else{var p=n._getPendingSelectedIndex(!1);switch(e.which){case Wt:n._autofill.current&&n._autofill.current.inputElement&&n._autofill.current.inputElement.select(),n._submitPendingValue(e),n.props.multiSelect&&d?n.setState({currentPendingValueValidIndex:p}):(d||(!o||void 0===n.state.currentPendingValue||null===n.state.currentPendingValue||n.state.currentPendingValue.length<=0)&&n.state.currentPendingValueValidIndex<0)&&n.setState({isOpen:!d});break;case zt:return n.props.multiSelect||n._submitPendingValue(e),void(d&&n._setOpenStateAndFocusOnClose(!d,!1));case Gt:if(n._resetSelectedIndex(),!d)return;n.setState({isOpen:!1});break;case $t:if(u===xv.clearAll&&(p=n.props.hoisted.currentOptions.length),e.altKey||e.metaKey){if(d){n._setOpenStateAndFocusOnClose(!d,!0);break}return}e.preventDefault(),n._setPendingInfoFromIndexAndDirection(p,Sv.backward);break;case tn:e.altKey||e.metaKey?n._setOpenStateAndFocusOnClose(!0,!0):(u===xv.clearAll&&(p=-1),e.preventDefault(),n._setPendingInfoFromIndexAndDirection(p,Sv.forward));break;case Qt:case Jt:if(o||i)return;p=-1;var m=Sv.forward;e.which===Jt&&(p=l.length,m=Sv.backward),n._setPendingInfoFromIndexAndDirection(p,m);break;case qt:if(!o&&!i&&"off"===s)break;default:if(e.which>=112&&e.which<=123)return;if(e.keyCode===jt||"Meta"===e.key)return;if(a&&(e.keyCode===Xt||e.keyCode===en))return;if(!o&&!i&&"on"===s){n._onInputChange(e.key);break}return}e.stopPropagation(),e.preventDefault()}},n._onInputKeyUp=function(e){var t=n.props,r=t.disabled,o=t.allowFreeform,i=t.allowFreeInput,a=t.autoComplete,s=n.state.isOpen,l=n._lastKeyDownWasAltOrMeta&&Gv(e);n._lastKeyDownWasAltOrMeta=!1;var c=l&&!(Oo()||No());r?n._handleInputWhenDisabled(e):e.which!==qt?c&&s?n._setOpenStateAndFocusOnClose(!s,!0):("focusing"===n.state.focusState&&n.props.openOnKeyboardFocus&&n.setState({isOpen:!0}),"focused"!==n.state.focusState&&n.setState({focusState:"focused"})):o||i||"off"!==a||n._setOpenStateAndFocusOnClose(!s,!!s)},n._onOptionMouseLeave=function(){n._shouldIgnoreMouseEvent()||n.props.persistMenu&&!n.state.isOpen||n.setState({currentPendingValueValidIndexOnHover:xv.clearAll})},n._onComboBoxClick=function(){var e=n.props.disabled,t=n.state.isOpen;e||(n._setOpenStateAndFocusOnClose(!t,!1),n.setState({focusState:"focused"}))},n._onAutofillClick=function(){var e=n.props,t=e.disabled;e.allowFreeform&&!t?n.focus(n.state.isOpen||n._processingTouch):n._onComboBoxClick()},n._onTouchStart=function(){n._comboBoxWrapper.current&&!("onpointerdown"in n._comboBoxWrapper)&&n._handleTouchAndPointerEvent()},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._handleTouchAndPointerEvent(),e.preventDefault(),e.stopImmediatePropagation())},Xr(n),n._async=new ze(n),n._events=new gt(n),Tt(Mv,t,{defaultSelectedKey:"selectedKey",text:"defaultSelectedKey",selectedKey:"value",dropdownWidth:"useComboBoxAsMenuWidth",ariaLabel:"label"}),n._id=t.id||Cr("ComboBox"),n._isScrollIdle=!0,n._processingTouch=!1,n._gotMouseMove=!1,n._processingClearPendingInfo=!1,n.state={isOpen:!1,focusState:"none",currentPendingValueValidIndex:-1,currentPendingValue:void 0,currentPendingValueValidIndexOnHover:xv.default},n}return g(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props.hoisted;return Rv(e.currentOptions,e.selectedIndices)},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._comboBoxWrapper.current&&!this.props.disabled&&(this._events.on(this._comboBoxWrapper.current,"focus",this._onResolveOptions,!0),"onpointerdown"in this._comboBoxWrapper.current&&this._events.on(this._comboBoxWrapper.current,"pointerdown",this._onPointerDown,!0))},t.prototype.componentDidUpdate=function(e,t){var n,r,o,i=this,a=this.props,s=a.allowFreeform,l=a.allowFreeInput,c=a.text,d=a.onMenuOpen,u=a.onMenuDismissed,p=a.hoisted,m=p.currentOptions,h=p.selectedIndices,f=this.state,g=f.currentPendingValue,y=f.currentPendingValueValidIndex,b=f.isOpen;!b||t.isOpen&&t.currentPendingValueValidIndex===y||this._async.setTimeout((function(){return i._scrollIntoView()}),0);var C=sc(this.context);this._hasFocus()&&(b||t.isOpen&&!b&&this._focusInputAfterClose&&this._autofill.current&&(null===C||void 0===C?void 0:C.activeElement)!==this._autofill.current.inputElement)&&this.focus(void 0,!0),this._focusInputAfterClose&&(t.isOpen&&!b||this._hasFocus()&&(!b&&!this.props.multiSelect&&e.hoisted.selectedIndices&&h&&e.hoisted.selectedIndices[0]!==h[0]||!s&&!l||c!==e.text))&&this._onFocus(),this._notifyPendingValueChanged(t),b&&!t.isOpen&&(this._overrideScrollDismiss=!0,this._async.clearTimeout(this._overrideScrollDimissTimeout),this._overrideScrollDimissTimeout=this._async.setTimeout((function(){i._overrideScrollDismiss=!1}),100),null===d||void 0===d||d()),!b&&t.isOpen&&u&&u();var S=y,x=m.map((function(e,t){return v(v({},e),{index:t})}));!pt(e.hoisted.currentOptions,m)&&g&&(S=this.props.allowFreeform||this.props.allowFreeInput?this._processInputChangeWithFreeform(g):this._updateAutocompleteIndexWithoutFreeform(g));var k=void 0;b&&this._hasFocus()&&-1!==S?k=null!==(n=x[S].id)&&void 0!==n?n:this._id+"-list"+S:b&&h.length&&(k=null!==(o=null===(r=x[h[0]])||void 0===r?void 0:r.id)&&void 0!==o?o:this._id+"-list"+h[0]),k!==this.state.ariaActiveDescendantValue&&this.setState({ariaActiveDescendantValue:k})},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this._id+"-error",t=this.props,n=t.className,r=t.disabled,o=t.required,i=t.errorMessage,a=t.onRenderContainer,s=void 0===a?this._onRenderContainer:a,l=t.onRenderLabel,c=void 0===l?this._onRenderLabel:l,d=t.onRenderList,p=void 0===d?this._onRenderList:d,m=t.onRenderItem,h=void 0===m?this._onRenderItem:m,f=t.onRenderOption,g=void 0===f?this._onRenderOptionContent:f,y=t.allowFreeform,b=t.styles,C=t.theme,S=t.persistMenu,x=t.multiSelect,k=t.hoisted,P=k.suggestedDisplayValue,I=k.selectedIndices,w=k.currentOptions,E=this.state.isOpen;this._currentVisibleValue=this._getVisibleValue();var _=x?this._getMultiselectDisplayString(I,w,P):void 0,D=qr(this.props,Gr,["onChange","value","aria-describedby","aria-labelledby"]),T=!!(i&&i.length>0);this._classNames=this.props.getClassNames?this.props.getClassNames(C,!!E,!!r,!!o,!!this._hasFocus(),!!y,!!T,n):Dv(_v(C,b),n,!!E,!!r,!!o,!!this._hasFocus(),!!y,!!T);var R=this._renderComboBoxWrapper(_,e);return u.createElement("div",v({},D,{ref:this.props.hoisted.mergedRootRef,className:this._classNames.container}),c({props:this.props,multiselectAccessibleText:_},this._onRenderLabel),R,(S||E)&&s(v(v({},this.props),{onRenderList:p,onRenderItem:h,onRenderOption:g,options:w.map((function(e,t){return v(v({},e),{index:t})})),onDismiss:this._onDismiss}),this._onRenderContainer),T&&u.createElement("div",{role:"alert",id:e,className:this._classNames.errorMessage},i))},t.prototype._getPendingString=function(e,t,n){return null!==e&&void 0!==e?e:Wv(t,n)?jv(t[n]):""},t.prototype._getMultiselectDisplayString=function(e,t,n){for(var r=[],o=0;e&&o<e.length;o++){var i=e[o];t[i].itemType!==Cv.SelectAll&&r.push(Wv(t,i)?t[i].text:zv(n))}var a=this.props.multiSelectDelimiter,s=void 0===a?", ":a;return r.join(s)},t.prototype._preventDismissOnScrollOrResize=function(e){var t=this.props.calloutProps;return(null===t||void 0===t?void 0:t.preventDismissOnEvent)?t.preventDismissOnEvent(e):!(!this._overrideScrollDismiss||"scroll"!==e.type&&"resize"!==e.type)},t.prototype._processInputChangeWithFreeform=function(e){var t=this,n=this.props.hoisted.currentOptions,r=-1;if(""===e)return 1===(i=n.map((function(e,t){return v(v({},e),{index:t})})).filter((function(t){return Uv(t)&&!t.disabled&&jv(t)===e}))).length&&(r=i[0].index),this._setPendingInfo(e,r,e),r;var o=e;e=this._adjustForCaseSensitivity(e);var i,a="";if("on"===this.props.autoComplete){if((i=n.map((function(e,t){return v(v({},e),{index:t})})).filter((function(n){return Uv(n)&&!n.disabled&&0===t._adjustForCaseSensitivity(jv(n)).indexOf(e)}))).length>0){var s=jv(i[0]);a=this._adjustForCaseSensitivity(s)!==e?s:"",r=i[0].index}}else 1===(i=n.map((function(e,t){return v(v({},e),{index:t})})).filter((function(n){return Uv(n)&&!n.disabled&&t._adjustForCaseSensitivity(jv(n))===e}))).length&&(r=i[0].index);return this._setPendingInfo(o,r,a),r},t.prototype._processInputChangeWithoutFreeform=function(e){var t=this,n=this.state,r=n.currentPendingValue,o=n.currentPendingValueValidIndex;if("on"===this.props.autoComplete&&""!==e){this._autoCompleteTimeout&&(this._async.clearTimeout(this._autoCompleteTimeout),this._autoCompleteTimeout=void 0,e=zv(r)+e);var i=this._updateAutocompleteIndexWithoutFreeform(e);return this._autoCompleteTimeout=this._async.setTimeout((function(){t._autoCompleteTimeout=void 0}),1e3),i}var a=o>=0?o:this._getFirstSelectedIndex();return this._setPendingInfoFromIndex(a),a},t.prototype._updateAutocompleteIndexWithoutFreeform=function(e){var t=this,n=this.props.hoisted.currentOptions,r=e;e=this._adjustForCaseSensitivity(e);var o=n.map((function(e,t){return v(v({},e),{index:t})})).filter((function(n){return Uv(n)&&!n.disabled&&0===t._adjustForCaseSensitivity(n.text).indexOf(e)}));return o.length>0?(this._setPendingInfo(r,o[0].index,jv(o[0])),o[0].index):-1},t.prototype._getFirstSelectedIndex=function(){var e=this.props.hoisted.selectedIndices;return(null===e||void 0===e?void 0:e.length)?e[0]:-1},t.prototype._getNextSelectableIndex=function(e,t){var n=this.props.hoisted.currentOptions,r=e+t;if(!Wv(n,r=Math.max(0,Math.min(n.length-1,r))))return-1;var o=n[r];if(!Kv(o)||!0===o.hidden){if(t===Sv.none||!(r>0&&t<Sv.none||r>=0&&r<n.length&&t>Sv.none))return e;r=this._getNextSelectableIndex(r,t)}return r},t.prototype._setSelectedIndex=function(e,t,n){void 0===n&&(n=Sv.none);var r=this.props,o=r.onChange,i=r.onPendingValueChanged,a=r.hoisted,s=a.selectedIndices,l=a.currentOptions,c=s?s.slice():[],d=l.slice();if(Wv(l,e=this._getNextSelectableIndex(e,n))){if(this.props.multiSelect||c.length<1||1===c.length&&c[0]!==e){var u=v({},l[e]);if(!u||u.disabled)return;if(this.props.multiSelect)if(u.selected=void 0!==u.selected?!u.selected:c.indexOf(e)<0,u.itemType===Cv.SelectAll)c=[],u.selected?l.forEach((function(e,t){!e.disabled&&Kv(e)&&(c.push(t),d[t]=v(v({},e),{selected:!0}))})):d=l.map((function(e){return v(v({},e),{selected:!1})}));else{u.selected&&c.indexOf(e)<0?c.push(e):!u.selected&&c.indexOf(e)>=0&&(c=c.filter((function(t){return t!==e}))),d[e]=u;var p=d.filter((function(e){return e.itemType===Cv.SelectAll}))[0];if(p){var m=this._isSelectAllChecked(c),h=d.indexOf(p);m?(c.push(h),d[h]=v(v({},p),{selected:!0})):(c=c.filter((function(e){return e!==h})),d[h]=v(v({},p),{selected:!1}))}}else c[0]=e;t.persist(),this.props.selectedKey||null===this.props.selectedKey||(this.props.hoisted.setSelectedIndices(c),this.props.hoisted.setCurrentOptions(d)),this._hasPendingValue&&i&&(i(),this._hasPendingValue=!1),o&&o(t,u,e,jv(u))}this.props.multiSelect&&this.state.isOpen||this._clearPendingInfo()}},t.prototype._submitPendingValue=function(e){var t,n=this.props,r=n.onChange,o=n.allowFreeform,i=n.autoComplete,a=n.multiSelect,s=n.hoisted,l=s.currentOptions,c=this.state,d=c.currentPendingValue,u=c.currentPendingValueValidIndex,p=c.currentPendingValueValidIndexOnHover,m=this.props.hoisted.selectedIndices;if(!this._processingClearPendingInfo){if(o){if(null===d||void 0===d)return void(p>=0&&(this._setSelectedIndex(p,e),this._clearPendingInfo()));if(Wv(l,u)){var h=this._adjustForCaseSensitivity(jv(l[u])),f=this._autofill.current,g=this._adjustForCaseSensitivity(d);if(g===h||i&&0===h.indexOf(g)&&(null===f||void 0===f?void 0:f.isValueSelected)&&d.length+(f.selectionEnd-f.selectionStart)===h.length||void 0!==(null===(t=null===f||void 0===f?void 0:f.inputElement)||void 0===t?void 0:t.value)&&this._adjustForCaseSensitivity(f.inputElement.value)===h){if(this._setSelectedIndex(u,e),a&&this.state.isOpen)return;return void this._clearPendingInfo()}}if(r)r&&r(e,void 0,void 0,d);else{var v={key:d||Cr(),text:zv(d)};a&&(v.selected=!0);var y=l.concat([v]);m&&(a||(m=[]),m.push(y.length-1)),s.setCurrentOptions(y),s.setSelectedIndices(m)}}else u>=0?this._setSelectedIndex(u,e):p>=0&&this._setSelectedIndex(p,e);this._clearPendingInfo()}},t.prototype._onCalloutLayerMounted=function(){this._gotMouseMove=!1},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key;return t&&t>0?u.createElement("div",{role:"presentation",key:n,className:this._classNames.divider}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOptionContent:t;return u.createElement("div",{id:e.id,key:e.key,className:this._classNames.header},n(e,this._onRenderOptionContent))},t.prototype._renderCheckboxLabel=function(e){var t=this.props.onRenderOption;return(void 0===t?this._onRenderMultiselectOptionContent:t)(e,this._onRenderMultiselectOptionContent)},t.prototype._isOptionHighlighted=function(e){var t=this.state.currentPendingValueValidIndexOnHover;return t!==xv.clearAll&&(t>=0?t===e:this._isOptionSelected(e))},t.prototype._isOptionSelected=function(e){return this._getPendingSelectedIndex(!0)===e},t.prototype._isOptionChecked=function(e){if(this.props.multiSelect&&void 0!==e&&this.props.hoisted.selectedIndices){return this.props.hoisted.selectedIndices.indexOf(e)>=0}return!1},t.prototype._isOptionIndeterminate=function(e){var t=this.props,n=t.multiSelect,r=t.hoisted;if(n&&void 0!==e&&r.selectedIndices&&r.currentOptions){var o=r.currentOptions[e];if(o&&o.itemType===Cv.SelectAll)return r.selectedIndices.length>0&&!this._isSelectAllChecked()}return!1},t.prototype._isSelectAllChecked=function(e){var t=this.props,n=t.multiSelect,r=t.hoisted,o=r.currentOptions.find((function(e){return e.itemType===Cv.SelectAll})),i=e||r.selectedIndices;if(!n||!i||!o)return!1;var a=r.currentOptions.indexOf(o),s=i.filter((function(e){return e!==a})),l=r.currentOptions.filter((function(e){return!e.disabled&&e.itemType!==Cv.SelectAll&&Kv(e)}));return s.length===l.length},t.prototype._getPendingSelectedIndex=function(e){var t=this.state,n=t.currentPendingValueValidIndex,r=t.currentPendingValue;return n>=0||e&&null!==r&&void 0!==r?n:this.props.multiSelect?-1:this._getFirstSelectedIndex()},t.prototype._scrollIntoView=function(){var e=this.props,t=e.onScrollToItem,n=e.scrollSelectedToTop,r=this._getPendingSelectedIndex(!0);if(t)t(r>=0?r:this._getFirstSelectedIndex());else{var o=this._selectedElement.current;if(this.props.multiSelect&&this._comboBoxMenu.current&&(o=Ov(this._comboBoxMenu.current,(function(e){var t;return(null===(t=e.dataset)||void 0===t?void 0:t.index)===r.toString()}))),o&&o.offsetParent){var i=!0;if(this._comboBoxMenu.current&&this._comboBoxMenu.current.offsetParent){var a=this._comboBoxMenu.current.offsetParent,s=o.offsetParent,l=s.offsetHeight,c=s.offsetTop,d=a,u=d.offsetHeight,p=d.scrollTop,m=c+l>p+u;c<p||n?(i=!1,a.scrollTo(0,c)):m&&a.scrollTo(0,c-u+l)}else o.offsetParent.scrollIntoView(i)}}},t.prototype._onItemClick=function(e){var t=this,n=this.props.onItemClick,r=e.index;return function(o){t.props.multiSelect||(t._autofill.current&&t._autofill.current.focus(),t.setState({isOpen:!1})),n&&n(o,e,r),t._setSelectedIndex(r,o)}},t.prototype._resetSelectedIndex=function(){var e=this.props.hoisted.currentOptions;this._clearPendingInfo();var t=this._getFirstSelectedIndex();t>0&&t<e.length?this.props.hoisted.setSuggestedDisplayValue(e[t].text):this.props.text&&this.props.hoisted.setSuggestedDisplayValue(this.props.text)},t.prototype._clearPendingInfo=function(){this._processingClearPendingInfo=!0,this.props.hoisted.setSuggestedDisplayValue(void 0),this.setState({currentPendingValue:void 0,currentPendingValueValidIndex:-1,currentPendingValueValidIndexOnHover:xv.default},this._onAfterClearPendingInfo)},t.prototype._setPendingInfo=function(e,t,n){void 0===t&&(t=-1),this._processingClearPendingInfo||(this.props.hoisted.setSuggestedDisplayValue(n),this.setState({currentPendingValue:zv(e),currentPendingValueValidIndex:t,currentPendingValueValidIndexOnHover:xv.default}))},t.prototype._setPendingInfoFromIndex=function(e){var t=this.props.hoisted.currentOptions;if(e>=0&&e<t.length){var n=t[e];this._setPendingInfo(jv(n),e,jv(n))}else this._clearPendingInfo()},t.prototype._setPendingInfoFromIndexAndDirection=function(e,t){var n=this.props.hoisted.currentOptions;t===Sv.forward&&e>=n.length-1?e=-1:t===Sv.backward&&e<=0&&(e=n.length);var r=this._getNextSelectableIndex(e,t);e===r?t===Sv.forward?e=this._getNextSelectableIndex(-1,t):t===Sv.backward&&(e=this._getNextSelectableIndex(n.length,t)):e=r,Wv(n,e)&&this._setPendingInfoFromIndex(e)},t.prototype._notifyPendingValueChanged=function(e){var t=this.props.onPendingValueChanged;if(t){var n=this.props.hoisted.currentOptions,r=this.state,o=r.currentPendingValue,i=r.currentPendingValueValidIndex,a=r.currentPendingValueValidIndexOnHover,s=void 0,l=void 0;a!==e.currentPendingValueValidIndexOnHover&&Wv(n,a)?s=a:i!==e.currentPendingValueValidIndex&&Wv(n,i)?s=i:o!==e.currentPendingValue&&(l=o),(void 0!==s||void 0!==l||this._hasPendingValue)&&(t(void 0!==s?n[s]:void 0,s,l),this._hasPendingValue=void 0!==s||void 0!==l)}},t.prototype._setOpenStateAndFocusOnClose=function(e,t){this._focusInputAfterClose=t,this.setState({isOpen:e})},t.prototype._onOptionMouseEnter=function(e){this._shouldIgnoreMouseEvent()||this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._onOptionMouseMove=function(e){this._gotMouseMove=!0,this._isScrollIdle&&this.state.currentPendingValueValidIndexOnHover!==e&&this.setState({currentPendingValueValidIndexOnHover:e})},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._handleInputWhenDisabled=function(e){this.props.disabled&&(this.state.isOpen&&this.setState({isOpen:!1}),null!==e&&e.which!==zt&&e.which!==Gt&&(e.which<112||e.which>123)&&(e.stopPropagation(),e.preventDefault()))},t.prototype._handleTouchAndPointerEvent=function(){var e=this;void 0!==this._lastTouchTimeoutId&&(this._async.clearTimeout(this._lastTouchTimeoutId),this._lastTouchTimeoutId=void 0),this._processingTouch=!0,this._lastTouchTimeoutId=this._async.setTimeout((function(){e._processingTouch=!1,e._lastTouchTimeoutId=void 0}),500)},t.prototype._getCaretButtonStyles=function(){var e=this.props.caretDownButtonStyles;return Ev(this.props.theme,e)},t.prototype._getCurrentOptionStyles=function(e){var t,n=this.props.comboBoxOptionStyles,r=e.styles,o=wv(this.props.theme,n,r,this._isPendingOption(e),e.hidden,this._isOptionHighlighted(e.index));return o.__shadowConfig__=null===(t=this.props.styles)||void 0===t?void 0:t.__shadowConfig__,o},t.prototype._getAriaAutoCompleteValue=function(){return!this.props.disabled&&"on"===this.props.autoComplete?this.props.allowFreeform?"inline":"both":"list"},t.prototype._isPendingOption=function(e){return e&&e.index===this.state.currentPendingValueValidIndex},t.prototype._hasFocus=function(){return"none"!==this.state.focusState},t.prototype._adjustForCaseSensitivity=function(e){return this.props.caseSensitive?e:e.toLowerCase()},t.contextType=dr,t=b([fr("ComboBox",["theme","styles"],!0)],t)}(u.Component);function Lv(e,t){if(!e||!t)return[];var n={};e.forEach((function(e,t){e.selected&&(n[t]=!0)}));for(var r=function(t){var r=hn(e,(function(e){return e.key===t}));r>-1&&(n[r]=!0)},o=0,i=t;o<i.length;o++){r(i[o])}return Object.keys(n).map(Number).sort()}function Vv(e){return void 0===e?[]:e instanceof Array?e:[e]}function zv(e){return e||""}function Wv(e,t){return!!e&&t>=0&&t<e.length}function Uv(e){return e.itemType!==Cv.Header&&e.itemType!==Cv.Divider&&e.itemType!==Cv.SelectAll}function Kv(e){return e.itemType!==Cv.Header&&e.itemType!==Cv.Divider}function jv(e){return e.useAriaLabelAsText&&e.ariaLabel?e.ariaLabel:e.text}function Gv(e){return e.which===jt||"Meta"===e.key}var qv=0,Yv=1,Zv=2,Jv=3,Qv=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)},Xv=function(e,t){"scrollTop"in e?e.scrollTop=t:"scrollY"in e&&e.scrollTo(e.scrollX,t)},$v="spacer-",ey={top:-1,bottom:-1,left:-1,right:-1,width:0,height:0},ty=function(e){return e.getBoundingClientRect()},ny=ty,ry=ty,oy=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._surface=u.createRef(),n._pageRefs={},n._getDerivedStateFromProps=function(e,t){return e.items!==n.props.items||e.renderCount!==n.props.renderCount||e.startIndex!==n.props.startIndex||e.version!==n.props.version||!t.hasMounted&&n.props.renderEarly&&Be()?(n._resetRequiredWindows(),n._requiredRect=null,n._measureVersion++,n._invalidatePageCache(),n._updatePages(e,t)):t},n._onRenderRoot=function(e){var t=e.rootRef,n=e.surfaceElement,r=e.divProps;return u.createElement("div",v({ref:t},r),n)},n._onRenderSurface=function(e){var t=e.surfaceRef,n=e.pageElements,r=e.divProps;return u.createElement("div",v({ref:t},r),n)},n._onRenderPage=function(e,t){for(var r,o=n.props,i=o.onRenderCell,a=o.onRenderCellConditional,s=o.role,l=e.page,c=l.items,d=void 0===c?[]:c,p=l.startIndex,m=y(e,["page"]),h=void 0===s?"listitem":"presentation",f=[],g=0;g<d.length;g++){var b=p+g,C=d[g],S=n.props.getKey?n.props.getKey(C,b):C&&C.key;null!==S&&void 0!==S||(S=b);var x=null!==a&&void 0!==a?a:i,k=null!==(r=null===x||void 0===x?void 0:x(C,b,n.props.ignoreScrollingState?void 0:n.state.isScrolling))&&void 0!==r?r:null;a&&!k||f.push(u.createElement("div",{role:h,className:"ms-List-cell",key:S,"data-list-index":b,"data-automationid":"ListCell"},k))}return u.createElement("div",v({},m),f)},Xr(n),n.state={pages:[],isScrolling:!1,getDerivedStateFromProps:n._getDerivedStateFromProps,hasMounted:!1},n._estimatedPageHeight=0,n._totalEstimates=0,n._requiredWindowsAhead=0,n._requiredWindowsBehind=0,n._measureVersion=0,n._cachedPageHeights={},n._estimatedPageHeight=0,n._focusedIndex=-1,n._pageCache={},n}return g(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},Object.defineProperty(t.prototype,"pageRefs",{get:function(){return this._pageRefs},enumerable:!1,configurable:!0}),t.prototype.scrollToIndex=function(e,t,n){void 0===n&&(n=qv);for(var r=this.props.startIndex,o=r+this._getRenderCount(),i=this._allowedRect,a=0,s=1,l=r;l<o;l+=s){var c=this._getPageSpecification(this.props,l,i),d=c.height;if(s=c.itemCount,l<=e&&l+s>e){if(t&&this._scrollElement){for(var u=ry(this._scrollElement),p=Qv(this._scrollElement),m={top:p,bottom:p+u.height},h=e-l,f=0;f<h;++f)a+=t(l+f);var g=a+t(e);switch(n){case Yv:return void Xv(this._scrollElement,a);case Zv:return void Xv(this._scrollElement,g-u.height);case Jv:return void Xv(this._scrollElement,(a+g-u.height)/2)}if(a>=m.top&&g<=m.bottom)return;a<m.top||g>m.bottom&&(a=g-u.height)}return void(this._scrollElement&&Xv(this._scrollElement,a))}a+=d}},t.prototype.getStartItemIndexInView=function(e){for(var t=0,n=this.state.pages||[];t<n.length;t++){var r=n[t];if(!r.isSpacer&&(this._scrollTop||0)>=r.top&&(this._scrollTop||0)<=r.top+r.height){if(!e){var o=Math.floor(r.height/r.itemCount);return r.startIndex+Math.floor((this._scrollTop-r.top)/o)}for(var i=0,a=r.startIndex;a<r.startIndex+r.itemCount;a++){o=e(a);if(r.top+i<=this._scrollTop&&this._scrollTop<r.top+i+o)return a;i+=o}}}return 0},t.prototype.componentDidMount=function(){this._async=new ze(this),this._events=new gt(this),this._onAsyncScrollDebounced=this._async.debounce(this._onAsyncScroll,100,{leading:!1,maxWait:500}),this._onAsyncIdleDebounced=this._async.debounce(this._onAsyncIdle,200,{leading:!1}),this._onAsyncResizeDebounced=this._async.debounce(this._onAsyncResize,16,{leading:!1}),this._onScrollingDoneDebounced=this._async.debounce(this._onScrollingDone,500,{leading:!1}),this._scrollElement=Pt(this._root.current),this._scrollTop=0,this.setState(v(v({},this._updatePages(this.props,this.state)),{hasMounted:!0})),this._measureVersion++;var e=lc(this.context);this._events.on(e,"resize",this._onAsyncResizeDebounced),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._onAsyncScrollDebounced))},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state;if(this.state.pagesVersion!==t.pagesVersion){if(n.getPageHeight)this._onAsyncIdleDebounced();else this._updatePageMeasurements(r.pages)?(this._materializedRect=null,this._hasCompletedFirstRender?this._onAsyncScrollDebounced():(this._hasCompletedFirstRender=!0,this.setState(this._updatePages(n,r)))):this._onAsyncIdleDebounced();n.onPagesUpdated&&n.onPagesUpdated(r.pages)}},t.prototype.componentWillUnmount=function(){var e,t;null===(e=this._async)||void 0===e||e.dispose(),null===(t=this._events)||void 0===t||t.dispose(),delete this._scrollElement},t.prototype.shouldComponentUpdate=function(e,t){var n=this.state.pages,r=t.pages,o=!1;if(!t.isScrolling&&this.state.isScrolling)return!0;if(e.version!==this.props.version)return!0;if(e.className!==this.props.className)return!0;if(e.items===this.props.items&&n.length===r.length)for(var i=0;i<n.length;i++){var a=n[i],s=r[i];if(a.key!==s.key||a.itemCount!==s.itemCount){o=!0;break}}else o=!0;return o},t.prototype.forceUpdate=function(){this._invalidatePageCache(),this._updateRenderRects(this.props,this.state,!0),this.setState(this._updatePages(this.props,this.state)),this._measureVersion++,e.prototype.forceUpdate.call(this)},t.prototype.getTotalListHeight=function(){return this._surfaceRect.height},t.prototype.render=function(){for(var e=this.props,t=e.className,n=e.role,r=void 0===n?"list":n,o=e.onRenderSurface,i=e.onRenderRoot,a=this.state.pages,s=void 0===a?[]:a,l=[],c=qr(this.props,Gr),d=0,u=s;d<u.length;d++){var p=u[d];l.push(this._renderPage(p))}var m=o?Lo(o,this._onRenderSurface):this._onRenderSurface;return(i?Lo(i,this._onRenderRoot):this._onRenderRoot)({rootRef:this._root,pages:s,surfaceElement:m({surfaceRef:this._surface,pages:s,pageElements:l,divProps:{role:"presentation",className:"ms-List-surface"}}),divProps:v(v({},c),{className:Wn("ms-List",t),role:l.length>0?r:void 0,"aria-label":l.length>0?c["aria-label"]:void 0})})},t.prototype._shouldVirtualize=function(e){void 0===e&&(e=this.props);var t=e.onShouldVirtualize;return!t||t(e)},t.prototype._invalidatePageCache=function(){this._pageCache={}},t.prototype._renderPage=function(e){var t,n=this,r=this.props.usePageCache;if(r&&(t=this._pageCache[e.key])&&t.pageElement)return t.pageElement;var o=this._getPageStyle(e),i=this.props.onRenderPage,a=(void 0===i?this._onRenderPage:i)({page:e,className:"ms-List-page",key:e.key,ref:function(t){n._pageRefs[e.key]=t},style:o,role:"presentation"},this._onRenderPage);return r&&0===e.startIndex&&(this._pageCache[e.key]={page:e,pageElement:a}),a},t.prototype._getPageStyle=function(e){var t=this.props.getPageStyle;return v(v({},t?t(e):{}),e.items?{}:{height:e.height})},t.prototype._onFocus=function(e){for(var t=e.target;t!==this._surface.current;){var n=t.getAttribute("data-list-index");if(n){this._focusedIndex=Number(n);break}t=Ue(t)}},t.prototype._onScroll=function(){this.state.isScrolling||this.props.ignoreScrollingState||this.setState({isScrolling:!0}),this._resetRequiredWindows(),this._onScrollingDoneDebounced()},t.prototype._resetRequiredWindows=function(){this._requiredWindowsAhead=0,this._requiredWindowsBehind=0},t.prototype._onAsyncScroll=function(){var e,t;this._updateRenderRects(this.props,this.state),this._materializedRect&&(e=this._requiredRect,t=this._materializedRect,e.top>=t.top&&e.left>=t.left&&e.bottom<=t.bottom&&e.right<=t.right)||this.setState(this._updatePages(this.props,this.state))},t.prototype._onAsyncIdle=function(){var e=this.props,t=e.renderedWindowsAhead,n=e.renderedWindowsBehind,r=this._requiredWindowsAhead,o=this._requiredWindowsBehind,i=Math.min(t,r+1),a=Math.min(n,o+1);i===r&&a===o||(this._requiredWindowsAhead=i,this._requiredWindowsBehind=a,this._updateRenderRects(this.props,this.state),this.setState(this._updatePages(this.props,this.state))),(t>i||n>a)&&this._onAsyncIdleDebounced()},t.prototype._onScrollingDone=function(){this.props.ignoreScrollingState||(this.setState({isScrolling:!1}),this._onAsyncIdle())},t.prototype._onAsyncResize=function(){this.forceUpdate()},t.prototype._updatePages=function(e,t){this._requiredRect||this._updateRenderRects(e,t);var n=this._buildPages(e,t),r=t.pages;return this._notifyPageChanges(r,n.pages,this.props),v(v(v({},t),n),{pagesVersion:{}})},t.prototype._notifyPageChanges=function(e,t,n){var r=n.onPageAdded,o=n.onPageRemoved;if(r||o){for(var i={},a=0,s=e;a<s.length;a++){(d=s[a]).items&&(i[d.startIndex]=d)}for(var l=0,c=t;l<c.length;l++){var d;(d=c[l]).items&&(i[d.startIndex]?delete i[d.startIndex]:this._onPageAdded(d))}for(var u in i)i.hasOwnProperty(u)&&this._onPageRemoved(i[u])}},t.prototype._updatePageMeasurements=function(e){var t=!1;if(!this._shouldVirtualize())return t;for(var n=0;n<e.length;n++){var r=e[n];r.items&&(t=this._measurePage(r)||t)}return t},t.prototype._measurePage=function(e){var t=!1,n=this._pageRefs[e.key],r=this._cachedPageHeights[e.startIndex];if(n&&this._shouldVirtualize()&&(!r||r.measureVersion!==this._measureVersion)){var o={width:n.clientWidth,height:n.clientHeight};(o.height||o.width)&&(t=e.height!==o.height,e.height=o.height,this._cachedPageHeights[e.startIndex]={height:o.height,measureVersion:this._measureVersion},this._estimatedPageHeight=Math.round((this._estimatedPageHeight*this._totalEstimates+o.height)/(this._totalEstimates+1)),this._totalEstimates++)}return t},t.prototype._onPageAdded=function(e){var t=this.props.onPageAdded;t&&t(e)},t.prototype._onPageRemoved=function(e){var t=this.props.onPageRemoved;t&&t(e)},t.prototype._buildPages=function(e,t){var n=e.renderCount,r=e.items,o=e.startIndex,i=e.getPageHeight;n=this._getRenderCount(e);for(var a=v({},ey),s=[],l=1,c=0,d=null,u=this._focusedIndex,p=o+n,m=this._shouldVirtualize(e),h=0===this._estimatedPageHeight&&!i,f=this._allowedRect,g=function(n){var i=y._getPageSpecification(e,n,f),g=i.height,v=i.data,b=i.key;l=i.itemCount;var C,S,x=c+g-1,k=hn(t.pages,(function(e){return!!e.items&&e.startIndex===n}))>-1,P=!f||x>=f.top&&c<=f.bottom,I=!y._requiredRect||x>=y._requiredRect.top&&c<=y._requiredRect.bottom;if(!h&&(I||P&&k)||!m||u>=n&&u<n+l||n===o){d&&(s.push(d),d=null);var w=Math.min(l,p-n),E=y._createPage(b,r.slice(n,n+w),n,void 0,void 0,v);E.top=c,E.height=g,y._visibleRect&&y._visibleRect.bottom&&(E.isVisible=x>=y._visibleRect.top&&c<=y._visibleRect.bottom),s.push(E),I&&y._allowedRect&&(C=a,S={top:c,bottom:x,height:g,left:f.left,right:f.right,width:f.width},C.top=S.top<C.top||-1===C.top?S.top:C.top,C.left=S.left<C.left||-1===C.left?S.left:C.left,C.bottom=S.bottom>C.bottom||-1===C.bottom?S.bottom:C.bottom,C.right=S.right>C.right||-1===C.right?S.right:C.right,C.width=C.right-C.left+1,C.height=C.bottom-C.top+1)}else d||(d=y._createPage($v+n,void 0,n,0,void 0,v,!0)),d.height=(d.height||0)+(x-c)+1,d.itemCount+=l;if(c+=x-c+1,h&&m)return"break"},y=this,b=o;b<p;b+=l){if("break"===g(b))break}return d&&(d.key="spacer-end",s.push(d)),this._materializedRect=a,v(v({},t),{pages:s,measureVersion:this._measureVersion})},t.prototype._getPageSpecification=function(e,t,n){var r=e.getPageSpecification;if(r){var o=r(t,n,e.items),i=o.itemCount,a=void 0===i?this._getItemCountForPage(t,n):i,s=o.height;return{itemCount:a,height:void 0===s?this._getPageHeight(t,n,a):s,data:o.data,key:o.key}}return{itemCount:a=this._getItemCountForPage(t,n),height:this._getPageHeight(t,n,a)}},t.prototype._getPageHeight=function(e,t,n){if(this.props.getPageHeight)return this.props.getPageHeight(e,t,n,this.props.items);var r=this._cachedPageHeights[e];return r?r.height:this._estimatedPageHeight||30},t.prototype._getItemCountForPage=function(e,t){var n=this.props.getItemCountForPage?this.props.getItemCountForPage(e,t):10;return n||10},t.prototype._createPage=function(e,t,n,r,o,i,a){void 0===n&&(n=-1),void 0===r&&(r=t?t.length:0),void 0===o&&(o={}),e=e||"page-"+n;var s=this._pageCache[e];return s&&s.page?s.page:{key:e,startIndex:n,itemCount:r,items:t,style:o,top:0,height:0,data:i,isSpacer:a||!1}},t.prototype._getRenderCount=function(e){var t=e||this.props,n=t.items,r=t.startIndex,o=t.renderCount;return void 0===o?n?n.length-r:0:o},t.prototype._updateRenderRects=function(e,t,n){var r=e.renderedWindowsAhead,o=e.renderedWindowsBehind,i=t.pages;if(this._shouldVirtualize(e)){var a=this._surfaceRect||v({},ey),s=function(e){if(void 0===e)return 0;var t=0;return"scrollHeight"in e?t=e.scrollHeight:"document"in e&&(t=e.document.documentElement.scrollHeight),t}(this._scrollElement),l=Qv(this._scrollElement);this._surface.current&&(n||!i||!this._surfaceRect||!s||s!==this._scrollHeight||Math.abs(this._scrollTop-l)>.3333333333333333*this._estimatedPageHeight)&&(a=this._surfaceRect=ny(this._surface.current),this._scrollTop=l),!n&&s&&s===this._scrollHeight||this._measureVersion++,this._scrollHeight=s||0;var c=Math.max(0,-a.top),d=Ve(this._root.current),u={top:c,left:a.left,bottom:c+d.innerHeight,right:a.right,width:a.width,height:d.innerHeight};this._requiredRect=iy(u,this._requiredWindowsBehind,this._requiredWindowsAhead),this._allowedRect=iy(u,o,r),this._visibleRect=u}},t.defaultProps={startIndex:0,onRenderCell:function(e,t,n){return u.createElement(u.Fragment,null,e&&e.name||"")},onRenderCellConditional:void 0,renderedWindowsAhead:2,renderedWindowsBehind:2},t.contextType=dr,t}(u.Component);function iy(e,t,n){var r=e.top-t*e.height,o=e.height+(t+n)*e.height;return{top:r,bottom:r+o,height:o,left:e.left,right:e.right,width:e.width}}!function(e){function t(t){var n=e.call(this,t)||this;return n._comboBox=u.createRef(),n._list=u.createRef(),n._onRenderList=function(e){var t=e.id,r=e.onRenderItem;return u.createElement(oy,{componentRef:n._list,role:"listbox",id:"".concat(t,"-list"),"aria-labelledby":"".concat(t,"-label"),items:e.options,onRenderCell:r?function(e){return r(e)}:function(){return null}})},n._onScrollToItem=function(e){n._list.current&&n._list.current.scrollToIndex(e)},Xr(n),n}g(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){return this._comboBox.current?this._comboBox.current.selectedOptions:[]},enumerable:!1,configurable:!0}),t.prototype.dismissMenu=function(){if(this._comboBox.current)return this._comboBox.current.dismissMenu()},t.prototype.focus=function(e,t){return!!this._comboBox.current&&(this._comboBox.current.focus(e,t),!0)},t.prototype.render=function(){return u.createElement(Hv,v({},this.props,{componentRef:this._comboBox,onRenderList:this._onRenderList,onScrollToItem:this._onScrollToItem}))}}(u.Component);var ay=Fn((function(e){var t={height:"100%"},n={whiteSpace:"nowrap"},r=e||{},o=r.root,i=r.label,a=y(r,["root","label"]);return v(v({},a),{root:o?[t,o]:t,label:i?[n,i]:n})})),sy=function(e,t,n){for(var r=0,o=e;r<o.length;r++){var i=o[r];n[t.register(i,!0)]=i}},ly=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]}},cy=function(e){var t=np.getInstance(),n=e.className,r=e.overflowItems,o=e.keytipSequences,i=e.itemSubMenuProvider,a=e.onRenderOverflowButton,s=zl({}),l=u.useCallback((function(e){return i?i(e):e.subMenuProps?e.subMenuProps.items:void 0}),[i]),c=u.useMemo((function(){var e=[],n=[];return o?null===r||void 0===r||r.forEach((function(r){var i,a=r.keytipProps;if(a){var s={content:a.content,keySequences:a.keySequences,disabled:a.disabled||!(!r.disabled&&!r.isDisabled),hasDynamicChildren:a.hasDynamicChildren,hasMenu:a.hasMenu};a.hasDynamicChildren||l(r)?(s.onExecute=t.menuExecute.bind(t,o,null===(i=null===r||void 0===r?void 0:r.keytipProps)||void 0===i?void 0:i.keySequences),s.hasOverflowSubMenu=!0):s.onExecute=a.onExecute,e.push(s);var c=v(v({},r),{keytipProps:v(v({},a),{overflowSetSequence:o})});null===n||void 0===n||n.push(c)}else null===n||void 0===n||n.push(r)})):n=r,{modifiedOverflowItems:n,keytipsToRegister:e}}),[r,l,t,o]),d=c.modifiedOverflowItems;return function(e,t,n){var r=Yl(e);u.useEffect((function(){r&&(ly(n,r),sy(t,n,e))})),u.useEffect((function(){return sy(t,n,e),function(){ly(n,e)}}),[])}(s,c.keytipsToRegister,t),u.createElement("div",{className:n},a(d))},dy=wn(),uy=u.forwardRef((function(e,t){var n=u.useRef(null),r=Gl(n,t);!function(e,t){var n=ic();u.useImperativeHandle(e.componentRef,(function(){return{focus:function(e,n){var r=!1;return t.current&&(r=$e(t.current,n)),r},focusElement:function(e){var r=!1;return!!e&&(t.current&&Ke(t.current,e)&&(e.focus(),r=(null===n||void 0===n?void 0:n.activeElement)===e),r)}}}),[t,n])}(e,n);var o=e.items,i=e.overflowItems,a=e.className,s=e.styles,l=e.vertical,c=e.role,d=e.overflowSide,p=void 0===d?"end":d,m=e.onRenderItem,h=dy(s,{className:a,vertical:l}),f=!!i&&i.length>0;return u.createElement("div",v({},qr(e,Gr),{role:c||"group","aria-orientation":"menubar"===c?!0===l?"vertical":"horizontal":void 0,className:h.root,ref:r}),"start"===p&&f&&u.createElement(cy,v({},e,{className:h.overflowButton})),o&&o.map((function(e,t){return u.createElement("div",{className:h.item,key:e.key,role:"none"},m(e))})),"end"===p&&f&&u.createElement(cy,v({},e,{className:h.overflowButton})))}));uy.displayName="OverflowSet";var py={flexShrink:0,display:"inherit"},my=Jo(uy,(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",py],overflowButton:["ms-OverflowSet-overflowButton",py]}}),void 0,{scope:"OverflowSet"}),hy=wn(),fy=function(e){function t(t){var n=e.call(this,t)||this;return n._overflowSet=u.createRef(),n._resizeGroup=u.createRef(),n._onRenderData=function(e){var t=n.props,r=t.ariaLabel,o=t.primaryGroupAriaLabel,i=t.farItemsGroupAriaLabel,a=e.farItems&&e.farItems.length>0;return u.createElement(Cu,{className:Wn(n._classNames.root),direction:ou.horizontal,role:"menubar","aria-label":r},u.createElement(my,{role:a?"group":"none","aria-label":a?o:void 0,componentRef:n._overflowSet,className:Wn(n._classNames.primarySet),items:e.primaryItems,overflowItems:e.overflowItems.length?e.overflowItems:void 0,onRenderItem:n._onRenderItem,onRenderOverflowButton:n._onRenderOverflowButton}),a&&u.createElement(my,{role:"group","aria-label":i,className:Wn(n._classNames.secondarySet),items:e.farItems,onRenderItem:n._onRenderItem,onRenderOverflowButton:Mt}))},n._onRenderItem=function(e){if(e.onRender)return e.onRender(e,(function(){}));var t=e.text||e.name,r=v(v({allowDisabledFocus:!0,role:"menuitem"},e),{styles:ay(e.buttonStyles),className:Wn("ms-CommandBarItem-link",e.className),text:e.iconOnly?void 0:t,menuProps:e.subMenuProps,onClick:n._onButtonClick(e)});return e.iconOnly&&(void 0!==t||e.tooltipHostProps)?u.createElement(od,v({role:"none",content:t,setAriaDescribedBy:!1},e.tooltipHostProps),n._commandButton(e,r)):n._commandButton(e,r)},n._commandButton=function(e,t){var r=n.props.buttonAs,o=e.commandBarButtonAs,i=gm;return o&&(i=Vn(o,i)),r&&(i=Vn(r,i)),u.createElement(i,v({},t))},n._onRenderOverflowButton=function(e){var t=n.props.overflowButtonProps,r=void 0===t?{}:t,o=C(C([],r.menuProps?r.menuProps.items:[],!0),e,!0),i=v(v({role:"menuitem"},r),{styles:v({menuIcon:{fontSize:"17px"}},r.styles),className:Wn("ms-CommandBar-overflowButton",r.className),menuProps:v(v({},r.menuProps),{items:o}),menuIconProps:v({iconName:"More"},r.menuIconProps)}),a=n.props.overflowButtonAs?Vn(n.props.overflowButtonAs,gm):gm;return u.createElement(a,v({},i))},n._onReduceData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataReduced,i=e.primaryItems,a=e.overflowItems,s=e.cacheKey,l=e.farItems,c=i[r?0:i.length-1];if(void 0!==c){c.renderedInOverflow=!0,a=C([c],a,!0),i=r?i.slice(1):i.slice(0,-1);var d=v(v({},e),{primaryItems:i,overflowItems:a});return s=n._computeCacheKey({primaryItems:i,overflow:a.length>0,farItems:l}),o&&o(c),d.cacheKey=s,d}},n._onGrowData=function(e){var t=n.props,r=t.shiftOnReduce,o=t.onDataGrown,i=e.minimumOverflowItems,a=e.primaryItems,s=e.overflowItems,l=e.cacheKey,c=e.farItems,d=s[0];if(void 0!==d&&s.length>i){d.renderedInOverflow=!1,s=s.slice(1),a=r?C([d],a,!0):C(C([],a,!0),[d],!1);var u=v(v({},e),{primaryItems:a,overflowItems:s});return l=n._computeCacheKey({primaryItems:a,overflow:s.length>0,farItems:c}),o&&o(d),u.cacheKey=l,u}},Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.items,n=e.overflowItems,r=e.farItems,o=e.styles,i=e.theme,a=e.dataDidRender,s=e.onReduceData,l=void 0===s?this._onReduceData:s,c=e.onGrowData,d=void 0===c?this._onGrowData:c,p=e.resizeGroupAs,m=void 0===p?Em:p,h={primaryItems:C([],t,!0),overflowItems:C([],n,!0),minimumOverflowItems:C([],n,!0).length,farItems:r,cacheKey:this._computeCacheKey({primaryItems:C([],t,!0),overflow:n&&n.length>0,farItems:r})};this._classNames=hy(o,{theme:i});var f=qr(this.props,Gr);return u.createElement(m,v({},f,{componentRef:this._resizeGroup,data:h,onReduceData:l,onGrowData:d,onRenderData:this._onRenderData,dataDidRender:a}))},t.prototype.focus=function(){var e=this._overflowSet.current;e&&e.focus()},t.prototype.remeasure=function(){this._resizeGroup.current&&this._resizeGroup.current.remeasure()},t.prototype._onButtonClick=function(e){return function(t){e.inactive||e.onClick&&e.onClick(t,e)}},t.prototype._computeCacheKey=function(e){var t=e.primaryItems,n=e.overflow,r=e.farItems,o=function(e,t){var n=t.cacheKey;return e+(void 0===n?t.key:n)};return[t&&t.reduce(o,""),n?"overflow":"",r&&r.reduce(o,"")].join("")},t.defaultProps={items:[],overflowItems:[]},t}(u.Component),gy=(Jo(fy,(function(e){var t=e.className,n=e.theme,r=n.semanticColors;return{root:[n.fonts.medium,"ms-CommandBar",{display:"flex",backgroundColor:r.bodyBackground,padding:"0 14px 0 24px",height:44},t],primarySet:["ms-CommandBar-primaryCommand",{flexGrow:"1",display:"flex",alignItems:"stretch"}],secondarySet:["ms-CommandBar-secondaryCommand",{flexShrink:"0",display:"flex",alignItems:"stretch"}]}}),void 0,{scope:"CommandBar"}),v(v({},Bh),{prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker",isRequiredErrorMessage:"Field is required",invalidInputErrorMessage:"Invalid date format",isResetStatusMessage:'Invalid entry "{0}", date reset to "{1}"'})),vy=wn(),yy={allowTextInput:!1,formatDate:function(e){return e?e.toDateString():""},parseDateFromString:function(e){e.match(/^\d{4}(-\d{2}){2}$/)&&(e+="T12:00");var t=Date.parse(e);return t?new Date(t):null},firstDayOfWeek:Vm.Sunday,initialPickerDate:new Date,isRequired:!1,isMonthPickerVisible:!0,showMonthPickerAsOverlay:!1,strings:gy,highlightCurrentMonth:!1,highlightSelectedMonth:!1,borderless:!1,pickerAriaLabel:"Calendar",showWeekNumbers:!1,firstWeekOfYear:Wm.FirstDay,showGoToToday:!0,showCloseButton:!1,underlined:!1,allFocusable:!1};var by=u.forwardRef((function(e,t){var n,r,o=$o(yy,e),i=o.firstDayOfWeek,a=o.strings,s=o.label,l=o.theme,c=o.className,d=o.styles,p=o.initialPickerDate,m=o.isRequired,h=o.disabled,f=o.ariaLabel,g=o.pickerAriaLabel,y=o.placeholder,b=o.allowTextInput,C=o.borderless,S=o.minDate,x=o.maxDate,k=o.showCloseButton,P=o.calendarProps,I=o.calloutProps,w=o.textField,E=o.underlined,_=o.allFocusable,D=o.calendarAs,T=void 0===D?df:D,R=o.tabIndex,A=o.disableAutoFocus,M=void 0===A||A,N=jl("DatePicker",o.id),F=jl("DatePicker-Callout"),H=u.useRef(null),O=u.useRef(null),B=function(){var e=u.useRef(null),t=u.useRef(!1);return[e,function(){var t,n;null===(n=null===(t=e.current)||void 0===t?void 0:t.focus)||void 0===n||n.call(t)},t,function(){t.current=!0}]}(),L=B[0],V=B[1],z=B[2],W=B[3],U=function(e,t){var n=e.allowTextInput,r=e.onAfterMenuDismiss,o=u.useState(!1),i=o[0],a=o[1],s=u.useRef(!1),l=Vl();return u.useEffect((function(){s.current&&!i&&(n&&l.requestAnimationFrame(t),null===r||void 0===r||r()),s.current=!0}),[i]),[i,a]}(o,V),K=U[0],j=U[1],G=function(e){var t=e.formatDate,n=e.value,r=e.onSelectDate,o=Ul(n,void 0,(function(e,t){return null===r||void 0===r?void 0:r(t)})),i=o[0],a=o[1],s=u.useState((function(){return n&&t?t(n):""})),l=s[0],c=s[1];return u.useEffect((function(){c(n&&t?t(n):"")}),[t,n]),[i,l,function(e){a(e),c(e&&t?t(e):"")},c]}(o),q=G[0],Y=G[1],Z=G[2],J=G[3],Q=function(e,t,n,r,o){var i,a=e.isRequired,s=e.allowTextInput,l=e.strings,c=e.parseDateFromString,d=e.onSelectDate,p=e.formatDate,m=e.minDate,h=e.maxDate,f=e.textField,g=u.useState(),v=g[0],y=g[1],b=u.useState(),C=b[0],S=b[1],x=u.useRef(!0),k=null===(i=null===f||void 0===f?void 0:f.validateOnLoad)||void 0===i||i;return u.useEffect((function(){x.current&&(x.current=!1,!k)||(a&&!t?y(l.isRequiredErrorMessage||" "):t&&Cy(t,m,h)?y(l.isOutOfBoundsErrorMessage||" "):y(void 0))}),[m&&sh(m),h&&sh(h),t&&sh(t),a,k]),[o?void 0:v,function(e){if(void 0===e&&(e=null),s)if(r||e){if(t&&!v&&p&&p(null!==e&&void 0!==e?e:t)===r)return;if(!(e=e||c(r))||isNaN(e.getTime())){n(t);var o=p?p(t):"",i=l.isResetStatusMessage?qo(l.isResetStatusMessage,r,o):l.invalidInputErrorMessage||"";S(i)}else Cy(e,m,h)?y(l.isOutOfBoundsErrorMessage||" "):(n(e),y(void 0),S(void 0))}else y(a?l.isRequiredErrorMessage||" ":void 0),null===d||void 0===d||d(e);else a&&!r?y(l.isRequiredErrorMessage||" "):(y(void 0),S(void 0))},y,o?void 0:C,S]}(o,q,Z,Y,K),X=Q[0],$=Q[1],ee=Q[2],te=Q[3],ne=Q[4],re=u.useCallback((function(){K||(W(),j(!0))}),[K,W,j]);u.useImperativeHandle(o.componentRef,(function(){return{focus:V,reset:function(){j(!1),Z(void 0),ee(void 0),ne(void 0)},showDatePickerPopup:re}}),[V,ee,j,Z,ne,re]);var oe=function(e){K&&(j(!1),$(e),!b&&e&&Z(e))},ie=function(e){W(),oe(e)},ae=function(e){K&&(e.stopPropagation(),ie())},se=vy(d,{theme:l,className:c,disabled:h,underlined:E,label:!!s,isDatePickerShown:K}),le=qr(o,Gr,["value"]),ce=w&&w.iconProps,de=w&&w.id&&w.id!==N?w.id:N+"-label",ue=!b&&!h,pe=null===(r=null!==(n=null===w||void 0===w?void 0:w["data-is-focusable"])&&void 0!==n?n:o["data-is-focusable"])||void 0===r||r,me=b?{role:"button","aria-expanded":K,"aria-label":null!==f&&void 0!==f?f:s,"aria-labelledby":w&&w["aria-labelledby"]}:{};return u.createElement("div",v({},le,{className:se.root,ref:t}),u.createElement("div",{ref:O,"aria-owns":K?F:void 0,className:se.wrapper},u.createElement(Jg,v({role:"combobox",label:s,"aria-expanded":K,"aria-required":m,ariaLabel:f,"aria-haspopup":"dialog","aria-controls":K?F:void 0,required:m,disabled:h,errorMessage:X,placeholder:y,borderless:C,value:Y,componentRef:L,underlined:E,tabIndex:R,readOnly:!b},w,{"data-is-focusable":pe,id:de,className:Wn(se.textField,w&&w.className),iconProps:v(v(v({iconName:"Calendar"},me),ce),{className:Wn(se.icon,ce&&ce.className),onClick:function(e){e.stopPropagation(),K||o.disabled?o.allowTextInput&&oe():re()}}),onRenderDescription:function(e,t){return u.createElement(u.Fragment,null,e.description||e.onRenderDescription?t(e):null,u.createElement("div",{"aria-live":"assertive",className:se.statusMessage},te))},onKeyDown:function(e){switch(e.which){case Wt:e.preventDefault(),e.stopPropagation(),K?o.allowTextInput&&oe():($(),re());break;case Gt:ae(e);break;case tn:e.altKey&&!K&&re()}},onFocus:function(){M||b||(z.current||re(),z.current=!1)},onBlur:function(e){$()},onClick:function(e){!(o.openOnClick||!o.disableAutoFocus)||K||o.disabled?o.allowTextInput&&oe():re()},onChange:function(e,t){var n,r=o.textField;b&&(K&&oe(),J(t)),null===(n=null===r||void 0===r?void 0:r.onChange)||void 0===n||n.call(r,e,t)},onRenderInput:ue?function(e){var t=qr(e,Gr),n=we(t.className,se.readOnlyTextField);return u.createElement("div",v({},t,{className:n,tabIndex:R||0}),Y||u.createElement("span",{className:se.readOnlyPlaceholder},y))}:void 0}))),K&&u.createElement(Wc,v({id:F,role:"dialog",ariaLabel:g,isBeakVisible:!1,gapSpace:0,doNotLayer:!1,target:O.current,directionalHint:js},I,{className:Wn(se.callout,I&&I.className),onDismiss:function(e){ie()},onPositioned:function(){var e=!0;o.calloutProps&&void 0!==o.calloutProps.setInitialFocus&&(e=o.calloutProps.setInitialFocus),H.current&&e&&H.current.focus()}}),u.createElement(Kc,{isClickableOutsideFocusTrap:!0,disableFirstFocus:M},u.createElement(T,v({},P,{onSelectDate:function(e){o.calendarProps&&o.calendarProps.onSelectDate&&o.calendarProps.onSelectDate(e),ie(e)},onDismiss:function(e){ie()},isMonthPickerVisible:o.isMonthPickerVisible,showMonthPickerAsOverlay:o.showMonthPickerAsOverlay,today:o.today,value:q||p,firstDayOfWeek:i,strings:a,highlightCurrentMonth:o.highlightCurrentMonth,highlightSelectedMonth:o.highlightSelectedMonth,showWeekNumbers:o.showWeekNumbers,firstWeekOfYear:o.firstWeekOfYear,showGoToToday:o.showGoToToday,dateTimeFormatter:o.dateTimeFormatter,minDate:S,maxDate:x,componentRef:H,showCloseButton:k,allFocusable:_})))))}));function Cy(e,t,n){return!!t&&eh(t,e)>0||!!n&&eh(n,e)<0}by.displayName="DatePickerBase";var Sy,xy,ky,Py,Iy,wy,Ey={root:"ms-DatePicker",callout:"ms-DatePicker-callout",withLabel:"ms-DatePicker-event--with-label",withoutLabel:"ms-DatePicker-event--without-label",disabled:"msDatePickerDisabled "},_y=(Jo(by,(function(e){var t,n=e.className,r=e.theme,o=e.disabled,i=e.underlined,a=e.label,s=e.isDatePickerShown,l=r.palette,c=r.semanticColors,d=r.fonts,u=os(Ey,r),p={color:l.neutralSecondary,fontSize:Fi.icon,lineHeight:"18px",pointerEvents:"none",position:"absolute",right:"4px",padding:"5px"};return{root:[u.root,r.fonts.large,s&&"is-open",ks,n],textField:[{position:"relative",selectors:{"& input[readonly]":{cursor:"pointer"},input:{selectors:{"::-ms-clear":{display:"none"}}}}},o&&{selectors:{"& input[readonly]":{cursor:"default"}}}],callout:[u.callout],icon:[p,a?u.withLabel:u.withoutLabel,{paddingTop:"7px"},!o&&[u.disabled,{pointerEvents:"initial",cursor:"pointer"}],o&&{color:c.disabledText,cursor:"default"}],statusMessage:[d.small,{color:c.errorText,marginTop:5}],readOnlyTextField:[{cursor:"pointer",height:32,lineHeight:30,overflow:"hidden",textOverflow:"ellipsis"},i&&{lineHeight:34}],readOnlyPlaceholder:(t={color:c.inputPlaceholderText},t[Wa]={color:"GrayText"},t)}}),void 0,{scope:"DatePicker"}),"data-selection-index"),Dy="data-selection-toggle",Ty="data-selection-invoke",Ry="data-selection-all-toggle",Ay=function(e){function t(t){var n=e.call(this,t)||this;n._root=u.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,r=Ve(n._root.current),o=null===r||void 0===r?void 0:r.document;if((null===o||void 0===o?void 0:o.activeElement)===t||Ke(null===o||void 0===o?void 0:o.activeElement,t)){if(Ke(t,n._root.current))for(;t!==n._root.current;){if(n._hasAttribute(t,Ty)){n.ignoreNextFocus();break}t=Ue(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!==Vo.none){var a=n._hasAttribute(t,Dy),s=n._findItemRoot(t);if(!a&&s){var l=n._getItemIndex(s);void 0===n._getItemSpan(s)&&(o?(r.setIndexSelected(l,r.isIndexSelected(l),!0),n.props.enterModalOnTouch&&n._isTouch&&r.setModal&&(r.setModal(!0),n._setIsTouch(!1))):n.props.isSelectedOnFocus&&n._onItemSurfaceClick("focus",l))}}n._handleNextFocus(!1)},n._onMouseDown=function(e){n._updateModifiers(e);var t=n.props.toggleWithoutModifierPressed,r=e.target,o=n._findItemRoot(r);if(!n._isSelectionDisabled(r))for(;r!==n._root.current&&!n._hasAttribute(r,Ry);){if(o){if(n._hasAttribute(r,Dy))break;if(n._hasAttribute(r,Ty))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=Ue(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,Ry)){a||n._onToggleAllClick(e);break}if(i){var s=n._getItemIndex(i),l=n._getItemSpan(i);if(n._hasAttribute(o,Dy)){a||(n._isShiftPressed?n._onItemSurfaceClick("click",s,l):n._onToggleClick(e,s,l));break}if(n._isTouch&&r&&n._hasAttribute(o,"data-selection-touch-invoke")||n._hasAttribute(o,Ty)){void 0===l&&n._onInvokeClick(e,s);break}if(o===i){a||n._onItemSurfaceClick("click",s,l);break}if("A"===o.tagName||"BUTTON"===o.tagName||"INPUT"===o.tagName)return}o=Ue(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,Dy)&&!n._hasAttribute(t,Ty);){if(t===o){n._onInvokeClick(e,i);break}t=Ue(t)}t=Ue(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===an&&(n._isCtrlPressed||n._isMetaPressed),l=e.which===Gt;if(!n._isInputElement(t)){var c=n._getSelectionMode();if(s&&c===Vo.multiple&&!i.isAllSelected())return r||i.setAllSelected(!0),e.stopPropagation(),void e.preventDefault();if(a&&l&&i.getSelectedCount()>0)return r||i.setAllSelected(!1),e.stopPropagation(),void e.preventDefault();var d=n._findItemRoot(t);if(d)for(var u=n._getItemIndex(d),p=n._getItemSpan(d);t!==n._root.current&&!n._hasAttribute(t,Dy);){if(n._shouldAutoSelect(t)){r||void 0!==p||n._onInvokeMouseDown(e,u,p);break}if(!(e.which!==Wt&&e.which!==qt||"BUTTON"!==t.tagName&&"A"!==t.tagName&&"INPUT"!==t.tagName&&"SUMMARY"!==t.tagName))return!1;if(t===d){if(e.which===Wt)return void(void 0===p&&(n._onInvokeClick(e,u),e.preventDefault()));if(e.which===qt)return r||n._onToggleClick(e,u,p),void e.preventDefault();break}t=Ue(t)}}},n._events=new gt(n),n._async=new ze(n),Xr(n);var r=n.props.selection,o=r.isModal&&r.isModal();return n.state={isModal:o},n}return g(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.selection.isModal&&e.selection.isModal();return v(v({},t),{isModal:n})},t.prototype.componentDidMount=function(){var e=Ve(this._root.current),t=null===e||void 0===e?void 0:e.document;this._events.on(e,"keydown, keyup",this._updateModifiers,!0),this._events.on(t,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(null===t||void 0===t?void 0:t.body,"touchstart",this._onTouchStartCapture,!0),this._events.on(null===t||void 0===t?void 0:t.body,"touchend",this._onTouchStartCapture,!0),this._events.on(this.props.selection,"change",this._onSelectionChange)},t.prototype.render=function(){var e=this.state.isModal;return u.createElement("div",{className:Wn("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,u.createElement(go,null))},t.prototype.componentDidUpdate=function(e){var t=this.props.selection;t!==e.selection&&(this._events.off(e.selection),this._events.on(t,"change",this._onSelectionChange))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype._isSelectionDisabled=function(e){if(this._getSelectionMode()===Vo.none)return!0;for(;e!==this._root.current;){if(this._hasAttribute(e,"data-selection-disabled"))return!0;e=Ue(e)}return!1},t.prototype._onToggleAllClick=function(e){var t=this.props.selection;this._getSelectionMode()===Vo.multiple&&(t.toggleAllSelected(),e.stopPropagation(),e.preventDefault())},t.prototype._onToggleClick=function(e,t,n){var r=this.props.selection,o=this._getSelectionMode();if(r.setChangeEvents(!1),this.props.enterModalOnTouch&&this._isTouch&&(void 0!==n?!r.isRangeSelected(t,n):!r.isIndexSelected(t))&&r.setModal&&(r.setModal(!0),this._setIsTouch(!1)),o===Vo.multiple)void 0!==n?r.toggleRangeSelected(t,n):r.toggleIndexSelected(t);else{if(o!==Vo.single)return void r.setChangeEvents(!0);if(void 0===n||1===n){var i=r.isIndexSelected(t),a=r.isModal&&r.isModal();r.setAllSelected(!1),r.setIndexSelected(t,!i,!0),a&&r.setModal&&r.setModal(!0)}}r.setChangeEvents(!0),e.stopPropagation()},t.prototype._onInvokeClick=function(e,t){var n=this.props,r=n.selection,o=n.onItemInvoked;o&&(o(r.getItems()[t],t,e.nativeEvent),e.preventDefault(),e.stopPropagation())},t.prototype._onItemSurfaceClick=function(e,t,n){var r,o=this.props,i=o.selection,a=o.toggleWithoutModifierPressed,s=this._isCtrlPressed||this._isMetaPressed,l=this._getSelectionMode();l===Vo.multiple?this._isShiftPressed&&!this._isTabPressed?void 0!==n?null===(r=i.selectToRange)||void 0===r||r.call(i,t,n,!s):i.selectToIndex(t,!s):"click"===e&&(s||a)?void 0!==n?i.toggleRangeSelected(t,n):i.toggleIndexSelected(t):this._clearAndSelectIndex(t,n):l===Vo.single&&this._clearAndSelectIndex(t,n)},t.prototype._onInvokeMouseDown=function(e,t,n){var r=this.props.selection;if(void 0!==n){if(r.isRangeSelected(t,n))return}else if(r.isIndexSelected(t))return;this._clearAndSelectIndex(t,n)},t.prototype._findScrollParentAndTryClearOnEmptyClick=function(e){var t=Ve(this._root.current),n=null===t||void 0===t?void 0:t.document,r=Pt(this._root.current);this._events.off(n,"click",this._findScrollParentAndTryClearOnEmptyClick),this._events.on(r,"click",this._tryClearOnEmptyClick),(r&&e.target instanceof Node&&r.contains(e.target)||r===e.target)&&this._tryClearOnEmptyClick(e)},t.prototype._tryClearOnEmptyClick=function(e){!this.props.selectionPreservedOnEmptyClick&&this._isNonHandledClick(e.target)&&this.props.selection.setAllSelected(!1)},t.prototype._clearAndSelectIndex=function(e,t){var n,r=this.props,o=r.selection,i=r.selectionClearedOnSurfaceClick,a=void 0===i||i;if(!((void 0===t||1===t)&&1===o.getSelectedCount()&&o.isIndexSelected(e))&&a){var s=o.isModal&&o.isModal();o.setChangeEvents(!1),o.setAllSelected(!1),void 0!==t?null===(n=o.setRangeSelected)||void 0===n||n.call(o,e,t,!0,!0):o.setIndexSelected(e,!0,!0),(s||this.props.enterModalOnTouch&&this._isTouch)&&(o.setModal&&o.setModal(!0),this._isTouch&&this._setIsTouch(!1)),o.setChangeEvents(!0)}},t.prototype._updateModifiers=function(e){this._isShiftPressed=e.shiftKey,this._isCtrlPressed=e.ctrlKey,this._isMetaPressed=e.metaKey;var t=e.keyCode;this._isTabPressed=!!t&&t===zt},t.prototype._findItemRoot=function(e){for(var t=this.props.selection;e!==this._root.current;){var n=e.getAttribute(_y),r=Number(n);if(null!==n&&r>=0&&r<t.getItems().length)break;e=Ue(e)}if(e!==this._root.current)return e},t.prototype._getItemIndex=function(e){var t,n=parseInt(null!==(t=e.getAttribute(_y))&&void 0!==t?t:"",10);return isNaN(n)?-1:n},t.prototype._getItemSpan=function(e){var t,n=parseInt(null!==(t=e.getAttribute("data-selection-span"))&&void 0!==t?t:"",10);return isNaN(n)?void 0:n},t.prototype._shouldAutoSelect=function(e){return this._hasAttribute(e,"data-selection-select")},t.prototype._hasAttribute=function(e,t){for(var n=!1;!n&&e!==this._root.current;){var r=e.getAttribute(t);if("false"===r){n=!1;break}n="true"===r,e=Ue(e)}return n},t.prototype._isInputElement=function(e){return"INPUT"===e.tagName||"TEXTAREA"===e.tagName||"true"===e.getAttribute("contenteditable")||""===e.getAttribute("contenteditable")},t.prototype._isNonHandledClick=function(e){var t=Je();if(t&&e)for(;e&&e!==t.documentElement;){if(ot(e)||e.hasAttribute("data-selection-index"))return!1;e=Ue(e)}return!0},t.prototype._handleNextFocus=function(e){var t=this;this._shouldHandleFocusTimeoutId&&(this._async.clearTimeout(this._shouldHandleFocusTimeoutId),this._shouldHandleFocusTimeoutId=void 0),this._shouldHandleFocus=e,e&&this._async.setTimeout((function(){t._shouldHandleFocus=!1}),100)},t.prototype._setIsTouch=function(e){var t=this;this._isTouchTimeoutId&&(this._async.clearTimeout(this._isTouchTimeoutId),this._isTouchTimeoutId=void 0),this._isTouch=!0,e&&this._async.setTimeout((function(){t._isTouch=!1}),300)},t.prototype._getSelectionMode=function(){var e=this.props.selection,t=this.props.selectionMode;return void 0===t?e?e.mode:Vo.none:t},t.defaultProps={isSelectedOnFocus:!0,toggleWithoutModifierPressed:!1,selectionMode:Vo.multiple,selectionClearedOnEscapePress:!0},t}(u.Component);!function(e){e[e.hidden=0]="hidden",e[e.visible=1]="visible"}(Sy||(Sy={})),function(e){e[e.disabled=0]="disabled",e[e.clickable=1]="clickable",e[e.hasDropdown=2]="hasDropdown"}(xy||(xy={})),function(e){e[e.unconstrained=0]="unconstrained",e[e.horizontalConstrained=1]="horizontalConstrained"}(ky||(ky={})),function(e){e[e.outside=0]="outside",e[e.surface=1]="surface",e[e.header=2]="header"}(Py||(Py={})),function(e){e[e.fixedColumns=0]="fixedColumns",e[e.justified=1]="justified"}(Iy||(Iy={})),function(e){e[e.onHover=0]="onHover",e[e.always=1]="always",e[e.hidden=2]="hidden"}(wy||(wy={}));var My,Ny,Fy=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?u.createElement("span",{className:"ms-GroupSpacer",style:{display:"inline-block",width:a},role:i}):null},Hy={root:"ms-GroupedList",compact:"ms-GroupedList--Compact",group:"ms-GroupedList-group",link:"ms-Link",listCell:"ms-List-cell"},Oy="cubic-bezier(0.445, 0.050, 0.550, 0.950)",By=function(e){var t,n,r=e.theme,o=e.className,i=e.compact,a=r.palette,s=os(Hy,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(Ia," ").concat(Oy)}],groupIsDropping:{backgroundColor:a.neutralLight}}},Ly={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"},Vy={cellLeftPadding:12,cellRightPadding:8,cellExtraRightPadding:24},zy={rowHeight:42,compactRowHeight:32},Wy=v(v({},zy),{rowVerticalPadding:11,compactRowVerticalPadding:6}),Uy={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"},Ky=function(e){var t=e.theme,n=e.cellStyleProps,r=void 0===n?Vy:n,o=t.semanticColors;return[os(Uy,t).cell,Ya(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"}]},jy={root:"ms-DetailsRow-check",isDisabled:"ms-DetailsRow-check--isDisabled",isHeader:"ms-DetailsRow-check--isHeader"},Gy={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"},qy="cubic-bezier(0.075, 0.820, 0.165, 1.000)",Yy="cubic-bezier(0.390, 0.575, 0.565, 1.000)",Zy="cubic-bezier(0.600, -0.280, 0.735, 0.045)";!function(e){e[e.xSmall=0]="xSmall",e[e.small=1]="small",e[e.medium=2]="medium",e[e.large=3]="large"}(My||(My={})),function(e){e[e.normal=0]="normal",e[e.large=1]="large"}(Ny||(Ny={}));var Jy=wn(),Qy=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.type,n=e.size,r=e.ariaLabel,o=e.ariaLive,i=e.styles,a=e.label,s=e.theme,l=e.className,c=e.labelPosition,d=r,p=qr(this.props,Gr,["size"]),m=n;void 0===m&&void 0!==t&&(m=t===Ny.large?My.large:My.medium);var h=Jy(i,{theme:s,size:m,className:l,labelPosition:c});return u.createElement("div",v({},p,{className:h.root}),u.createElement("div",{className:h.circle}),a&&u.createElement("div",{className:h.label},a),d&&u.createElement("div",{role:"status","aria-live":o},u.createElement(Nt,null,u.createElement("div",{className:h.screenReaderText},d))))},t.defaultProps={size:My.medium,ariaLive:"polite",labelPosition:"bottom"},t}(u.Component),Xy={root:"ms-Spinner",circle:"ms-Spinner-circle",label:"ms-Spinner-label"},$y=Fn((function(){return Me({"0%":{transform:"rotate(0deg)"},"100%":{transform:"rotate(360deg)"}})})),eb=Jo(Qy,(function(e){var t,n=e.theme,r=e.size,o=e.className,i=e.labelPosition,a=n.palette,s=os(Xy,n);return{root:[s.root,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},"top"===i&&{flexDirection:"column-reverse"},"right"===i&&{flexDirection:"row"},"left"===i&&{flexDirection:"row-reverse"},o],circle:[s.circle,{boxSizing:"border-box",borderRadius:"50%",borderWidth:"1.5px",borderStyle:"solid",borderTopColor:a.themePrimary,borderRightColor:a.themeLight,borderBottomColor:a.themeLight,borderLeftColor:a.themeLight,animationName:$y(),animationDuration:"1.3s",animationIterationCount:"infinite",animationTimingFunction:"cubic-bezier(.53,.21,.29,.67)",selectors:(t={},t[Wa]=v({borderTopColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},r===My.xSmall&&["ms-Spinner--xSmall",{width:12,height:12}],r===My.small&&["ms-Spinner--small",{width:16,height:16}],r===My.medium&&["ms-Spinner--medium",{width:20,height:20}],r===My.large&&["ms-Spinner--large",{width:28,height:28}]],label:[s.label,n.fonts.small,{color:a.themePrimary,margin:"8px 0 0",textAlign:"center"},"top"===i&&{margin:"0 0 8px"},"right"===i&&{margin:"0 0 0 8px"},"left"===i&&{margin:"0 8px 0 0"}],screenReaderText:Qa}}),void 0,{scope:"Spinner"}),tb=wn(),nb=function(e){function t(t){var n=e.call(this,t)||this;return n._toggleCollapse=function(){var e=n.props,t=e.group,r=e.onToggleCollapse,o=e.isGroupLoading,i=!n.state.isCollapsed,a=!i&&o&&o(t);n.setState({isCollapsed:i,isLoadingVisible:a}),r&&r(t)},n._onKeyUp=function(e){var t=n.props,r=t.group,o=t.onGroupHeaderKeyUp;if(o&&o(e,r),!e.defaultPrevented){var i=n.state.isCollapsed&&e.which===xn(en,n.props.theme);(!n.state.isCollapsed&&e.which===xn(Xt,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?Lo(e.onRenderName,n._onRenderName):n._onRenderName;return u.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?u.createElement(u.Fragment,null,u.createElement("span",null,t.name),u.createElement("span",{className:n._classNames.headerCount},"(",t.count,t.hasMoreData&&"+",")")):null},n._id=Cr("GroupHeader"),n.state={isCollapsed:n.props.group&&n.props.group.isCollapsed,isLoadingVisible:!1},n}return g(t,e),t.getDerivedStateFromProps=function(e,t){if(e.group){var n=e.group.isCollapsed,r=e.isGroupLoading,o=!n&&r&&r(e.group);return v(v({},t),{isCollapsed:n||!1,isLoadingVisible:o||!1})}return t},t.prototype.render=function(){var e=this.props,t=e.group,n=e.groupLevel,r=void 0===n?0:n,o=e.viewport,i=e.selectionMode,a=e.loadingText,s=e.isSelected,l=void 0!==s&&s,c=e.selected,d=void 0!==c&&c,p=e.indentWidth,m=e.onRenderGroupHeaderCheckbox,h=e.isCollapsedGroupSelectVisible,f=void 0===h||h,g=e.expandButtonProps,y=e.expandButtonIcon,b=e.selectAllButtonProps,C=e.theme,S=e.styles,x=e.className,k=e.compact,P=e.ariaLevel,I=e.ariaPosInSet,w=e.ariaSetSize,E=e.ariaRowIndex,_=e.useFastIcons,D=this.props.onRenderTitle?Lo(this.props.onRenderTitle,this._onRenderTitle):this._onRenderTitle,T=_?this._fastDefaultCheckboxRender:this._defaultCheckboxRender,R=m?Lo(m,T):T,A=this.state,M=A.isCollapsed,N=A.isLoadingVisible,F=i===Vo.multiple,H=F&&(f||!(t&&t.isCollapsed)),O=d||l,B=Sn(C);return this._classNames=tb(S,{theme:C,className:x,selected:O,isCollapsed:M,compact:k}),t?u.createElement("div",{className:this._classNames.root,style:o?{minWidth:o.width}:{},role:"row","aria-level":P,"aria-setsize":w,"aria-posinset":I,"aria-rowindex":E,"data-is-focusable":!0,onKeyUp:this._onKeyUp,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabel?void 0:this._id,"aria-expanded":!this.state.isCollapsed,"aria-selected":F?O:void 0,"data-selection-index":t.startIndex,"data-selection-span":t.count},u.createElement("div",{className:this._classNames.groupHeaderContainer,role:"presentation"},H?u.createElement("div",{role:"gridcell"},u.createElement("button",v({"data-is-focusable":!1,type:"button",className:this._classNames.check,role:"checkbox",id:"".concat(this._id,"-check"),"aria-checked":O,"aria-labelledby":"".concat(this._id,"-check ").concat(this._id),"data-selection-toggle":!0},b),R({checked:O,theme:C},R))):i!==Vo.none&&u.createElement(Fy,{indentWidth:48,count:1}),u.createElement(Fy,{indentWidth:p,count:r}),u.createElement("div",{className:this._classNames.dropIcon,role:"presentation"},u.createElement(gd,{iconName:"Tag"})),u.createElement("div",{role:"gridcell"},u.createElement("button",v({"data-is-focusable":!1,"data-selection-disabled":!0,type:"button",className:this._classNames.expand,onClick:this._onToggleClick,"aria-expanded":!this.state.isCollapsed},g),u.createElement(gd,{className:this._classNames.expandIsCollapsed,iconName:y||(B?"ChevronLeftMed":"ChevronRightMed")}))),D(this.props),N&&u.createElement(eb,{label:a}))):null},t.prototype._defaultCheckboxRender=function(e){return u.createElement(hf,{checked:e.checked})},t.prototype._fastDefaultCheckboxRender=function(e){return u.createElement(rb,{theme:e.theme,checked:e.checked})},t.defaultProps={expandButtonProps:{"aria-label":"expand collapse group"}},t}(u.Component),rb=u.memo((function(e){return u.createElement(hf,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})})),ob=Jo(nb,(function(e){var t,n,r,o,i,a=e.theme,s=e.className,l=e.selected,c=e.isCollapsed,d=e.compact,u=Vy.cellLeftPadding,p=d?40:48,m=a.semanticColors,h=a.palette,f=a.fonts,g=os(Gy,a),v=[Ya(a),{cursor:"default",background:"none",backgroundColor:"transparent",border:"none",padding:0}];return{root:[g.root,Ya(a),a.fonts.medium,{borderBottom:"1px solid ".concat(m.listBackground),cursor:"default",userSelect:"none",selectors:(t={":hover":{background:m.listItemBackgroundHovered,color:m.actionLinkHovered}},t["&:hover .".concat(g.check)]={opacity:1},t[".".concat(io," &:focus .").concat(g.check,", :host(.").concat(io,") &: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(Ea," ").concat(qy," ")+"opacity ".concat(Pa," ").concat(Yy),transitionDelay:wa,opacity:1,transform:"rotate(0.2deg) scale(1);"},n[".".concat(g.check)]={opacity:0},n)},t)},l&&[g.isSelected,{background:m.listItemBackgroundChecked,selectors:(r={":hover":{background:m.listItemBackgroundCheckedHovered}},r["".concat(g.check)]={opacity:1},r)}],d&&[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(io," &:focus, :host(.").concat(io,") &:focus")]={opacity:1},o)}],expand:[g.expand,v,{display:"flex",flexShrink:0,alignItems:"center",justifyContent:"center",fontSize:f.small.fontSize,width:36,height:p,color:l?h.neutralPrimary:h.neutralSecondary,selectors:{":hover":{backgroundColor:l?h.neutralQuaternary:h.neutralLight},":active":{backgroundColor:l?h.neutralTertiaryAlt:h.neutralQuaternaryAlt}}}],expandIsCollapsed:[c?[g.isCollapsed,{transform:"rotate(0deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}]:{transform:Sn(a)?"rotate(-90deg)":"rotate(90deg)",transformOrigin:"50% 50%",transition:"transform .1s linear"}],title:[g.title,{paddingLeft:u,fontSize:d?f.medium.fontSize:f.mediumPlus.fontSize,fontWeight:c?Hi.regular:Hi.semibold,cursor:"pointer",outline:0,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}],dropIcon:[g.dropIcon,{position:"absolute",left:-26,fontSize:Oi.large,color:h.neutralSecondary,transition:"transform ".concat(Ia," ").concat(Zy,", ")+"opacity ".concat(Ea," ").concat(Yy),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"}),ib={root:"ms-GroupShowAll",link:"ms-Link"},ab=wn(),sb=Jo((function(e){var t=e.group,n=e.groupLevel,r=e.showAllLinkText,o=void 0===r?"Show All":r,i=e.styles,a=e.theme,s=e.onToggleSummarize,l=ab(i,{theme:a}),c=u.useCallback((function(e){s(t),e.stopPropagation(),e.preventDefault()}),[s,t]);return t?u.createElement("div",{className:l.root},u.createElement(Fy,{count:n}),u.createElement(Eu,{onClick:c},o)):null}),(function(e){var t,n=e.theme,r=n.fonts,o=os(ib,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"}),lb={root:"ms-groupFooter"},cb=wn(),db=Jo((function(e){var t=e.group,n=e.groupLevel,r=e.footerText,o=e.indentWidth,i=e.styles,a=e.theme,s=cb(i,{theme:a});return t&&r?u.createElement("div",{className:s.root},u.createElement(Fy,{indentWidth:o,count:n}),r):null}),(function(e){var t=e.theme,n=e.className,r=os(lb,t);return{root:[t.fonts.medium,r.root,{position:"relative",padding:"5px 38px"},n]}}),void 0,{scope:"GroupFooter"}),ub=function(e){function t(n){var r=e.call(this,n)||this;r._root=u.createRef(),r._list=u.createRef(),r._subGroupRefs={},r._droppingClassName="",r._onRenderGroupHeader=function(e){return u.createElement(ob,v({},e))},r._onRenderGroupShowAll=function(e){return u.createElement(sb,v({},e))},r._onRenderGroupFooter=function(e){return u.createElement(db,v({},e))},r._renderSubGroup=function(e,n){var o=r.props,i=o.dragDropEvents,a=o.dragDropHelper,s=o.eventsToRegister,l=o.getGroupItemLimit,c=o.groupNestingDepth,d=o.groupProps,p=o.items,m=o.headerProps,h=o.showAllProps,f=o.footerProps,g=o.listProps,v=o.onRenderCell,y=o.selection,b=o.selectionMode,C=o.viewport,S=o.onRenderGroupHeader,x=o.onRenderGroupShowAll,k=o.onRenderGroupFooter,P=o.onShouldVirtualize,I=o.group,w=o.compact,E=e.level?e.level+1:c;return!e||e.count>0||d&&d.showEmptyGroups?u.createElement(t,{ref:function(e){return r._subGroupRefs["subGroup_"+n]=e},key:r._getGroupKey(e,n),dragDropEvents:i,dragDropHelper:a,eventsToRegister:s,footerProps:f,getGroupItemLimit:l,group:e,groupIndex:n,groupNestingDepth:E,groupProps:d,headerProps:m,items:p,listProps:g,onRenderCell:v,selection:y,selectionMode:b,showAllProps:h,viewport:C,onRenderGroupHeader:S,onRenderGroupShowAll:x,onRenderGroupFooter:k,onShouldVirtualize:P,groups:I?I.children:[],compact:w}):null},r._getGroupDragDropOptions=function(){var e=r.props,t=e.group,n=e.groupIndex,o=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:-1,context:{data:t,index:n,isGroup:!0},updateDropState:r._updateDroppingState,canDrag:o.canDrag,canDrop:o.canDrop,onDrop:o.onDrop,onDragStart:o.onDragStart,onDragEnter:o.onDragEnter,onDragLeave:o.onDragLeave,onDragEnd:o.onDragEnd,onDragOver:o.onDragOver}},r._updateDroppingState=function(e,t){var n=r.state.isDropping,o=r.props,i=o.dragDropEvents,a=o.group;n!==e&&(n?i&&i.onDragLeave&&i.onDragLeave(a,t):i&&i.onDragEnter&&(r._droppingClassName=i.onDragEnter(a,t)),r.setState({isDropping:e}))};var o=n.selection,i=n.group;return Xr(r),r._id=Cr("GroupedListSection"),r.state={isDropping:!1,isSelected:!(!o||!i)&&o.isRangeSelected(i.startIndex,i.count)},r._events=new gt(r),r}return g(t,e),t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())),n&&this._events.on(n,Wo,this._onSelectionChange)},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._dragDropSubscription&&this._dragDropSubscription.dispose()},t.prototype.componentDidUpdate=function(e){this.props.group===e.group&&this.props.groupIndex===e.groupIndex&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getGroupDragDropOptions())))},t.prototype.render=function(){var e=this.props,t=e.getGroupItemLimit,n=e.group,r=e.groupIndex,o=e.headerProps,i=e.showAllProps,a=e.footerProps,s=e.viewport,l=e.selectionMode,c=e.onRenderGroupHeader,d=void 0===c?this._onRenderGroupHeader:c,p=e.onRenderGroupShowAll,m=void 0===p?this._onRenderGroupShowAll:p,h=e.onRenderGroupFooter,f=void 0===h?this._onRenderGroupFooter:h,g=e.onShouldVirtualize,y=e.groupedListClassNames,b=e.groups,C=e.compact,S=e.listProps,x=void 0===S?{}:S,k=this.state.isSelected,P=n&&t?t(n):1/0,I=n&&!n.children&&!n.isCollapsed&&!n.isShowingAll&&(n.count>P||n.hasMoreData),w=n&&n.children&&n.children.length>0,E=x.version,_={group:n,groupIndex:r,groupLevel:n?n.level:0,isSelected:k,selected:k,viewport:s,selectionMode:l,groups:b,compact:C},D={groupedListId:this._id,ariaLevel:(null===n||void 0===n?void 0:n.level)?n.level+1:1,ariaSetSize:b?b.length:void 0,ariaPosInSet:void 0!==r?r+1:void 0},T=v(v(v({},o),_),D),R=v(v({},i),_),A=v(v({},a),_),M=!!this.props.dragDropHelper&&this._getGroupDragDropOptions().canDrag(n)&&!!this.props.dragDropEvents.canDragGroups;return u.createElement("div",v({ref:this._root},M&&{draggable:!0},{className:Wn(y&&y.group,this._getDroppingClassName()),role:"presentation"}),d(T,this._onRenderGroupHeader),n&&n.isCollapsed?null:w?u.createElement(oy,{role:"presentation",ref:this._list,items:n?n.children:[],onRenderCell:this._renderSubGroup,getItemCountForPage:this._returnOne,onShouldVirtualize:g,version:E,id:this._id}):this._onRenderGroup(P),n&&n.isCollapsed?null:I&&m(R,this._onRenderGroupShowAll),f(A,this._onRenderGroupFooter))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this.forceListUpdate()},t.prototype.forceListUpdate=function(){var e=this.props.group;if(this._list.current){if(this._list.current.forceUpdate(),e&&e.children&&e.children.length>0)for(var t=e.children.length,n=0;n<t;n++){var r;(r=this._list.current.pageRefs["subGroup_"+String(n)])&&r.forceListUpdate()}}else(r=this._subGroupRefs["subGroup_"+String(0)])&&r.forceListUpdate()},t.prototype._onSelectionChange=function(){var e=this.props,t=e.group,n=e.selection;if(n&&t){var r=n.isRangeSelected(t.startIndex,t.count);r!==this.state.isSelected&&this.setState({isSelected:r})}},t.prototype._onRenderGroupCell=function(e,t,n){return function(r,o){return e(t,r,o,n)}},t.prototype._onRenderGroup=function(e){var t=this.props,n=t.group,r=t.items,o=t.onRenderCell,i=t.listProps,a=t.groupNestingDepth,s=t.onShouldVirtualize,l=t.groupProps,c=n&&!n.isShowingAll?n.count:r.length,d=n?n.startIndex:0;return u.createElement(oy,v({role:l&&l.role?l.role:"rowgroup","aria-label":null===n||void 0===n?void 0:n.name,items:r,onRenderCell:this._onRenderGroupCell(o,a,n),ref:this._list,renderCount:Math.min(c,e),startIndex:d,onShouldVirtualize:s,id:this._id},i))},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(e.level)+String(t))},t.prototype._getDroppingClassName=function(){var e=this.state.isDropping,t=this.props,n=t.group,r=t.groupedListClassNames;return Wn((e=!(!n||!e))&&this._droppingClassName,e&&"is-dropping",e&&r&&r.groupIsDropping)},t}(u.Component),pb=wn(),mb=zy.rowHeight,hb=zy.compactRowHeight,fb=function(e){function t(t){var n=e.call(this,t)||this;n._list=u.createRef(),n._renderGroup=function(e,t){var r=n.props,o=r.dragDropEvents,i=r.dragDropHelper,a=r.eventsToRegister,s=r.groupProps,l=r.items,c=r.listProps,d=r.onRenderCell,p=r.selectionMode,m=r.selection,h=r.viewport,f=r.onShouldVirtualize,g=r.groups,y=r.compact,b={onToggleSelectGroup:n._onToggleSelectGroup,onToggleCollapse:n._onToggleCollapse,onToggleSummarize:n._onToggleSummarize},C=v(v({},s.headerProps),b),S=v(v({},s.showAllProps),b),x=v(v({},s.footerProps),b),k=n._getGroupNestingDepth();if(!s.showEmptyGroups&&e&&0===e.count)return null;var P=v(v({},c||{}),{version:n.state.version});return u.createElement(ub,{key:n._getGroupKey(e,t),dragDropEvents:o,dragDropHelper:i,eventsToRegister:a,footerProps:x,getGroupItemLimit:s&&s.getGroupItemLimit,group:e,groupIndex:t,groupNestingDepth:k,groupProps:s,headerProps:C,listProps:P,items:l,onRenderCell:d,onRenderGroupHeader:s.onRenderHeader,onRenderGroupShowAll:s.onRenderShowAll,onRenderGroupFooter:s.onRenderFooter,selectionMode:p,selection:m,showAllProps:S,viewport:h,onShouldVirtualize:f,groupedListClassNames:n._classNames,groups:g,compact:y})},n._getDefaultGroupItemLimit=function(e){return e.children&&e.children.length>0?e.children.length:e.count},n._getGroupItemLimit=function(e){var t=n.props.groupProps;return(t&&t.getGroupItemLimit?t.getGroupItemLimit:n._getDefaultGroupItemLimit)(e)},n._getGroupHeight=function(e){var t=n.props.compact?hb:mb;return t+(e.isCollapsed?0:t*n._getGroupItemLimit(e))},n._getPageHeight=function(e){var t=n.state.groups,r=n.props.getGroupHeight,o=void 0===r?n._getGroupHeight:r,i=t&&t[e];return i?o(i,e):0},n._onToggleCollapse=function(e){var t=n.props.groupProps,r=t&&t.headerProps&&t.headerProps.onToggleCollapse;e&&(r&&r(e),e.isCollapsed=!e.isCollapsed,n._updateIsSomeGroupExpanded(),n.forceUpdate())},n._onToggleSelectGroup=function(e){var t=n.props,r=t.selection,o=t.selectionMode;e&&r&&o===Vo.multiple&&r.toggleRangeSelected(e.startIndex,e.count)},n._isInnerZoneKeystroke=function(e){return e.which===xn(en)},n._onToggleSummarize=function(e){var t=n.props.groupProps,r=t&&t.showAllProps&&t.showAllProps.onToggleSummarize;r?r(e):(e&&(e.isShowingAll=!e.isShowingAll),n.forceUpdate())},n._getPageSpecification=function(e){var t=n.state.groups,r=t&&t[e];return{key:r&&r.key}},Xr(n),n._isSomeGroupExpanded=n._computeIsSomeGroupExpanded(t.groups);var r=t.listProps,o=(void 0===r?{}:r).version,i=void 0===o?{}:o;return n.state={groups:t.groups,items:t.items,listProps:t.listProps,version:i},n}return g(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,r=e.selectionMode,o=e.compact,i=e.items,a=e.listProps,s=a&&a.version,l=v(v({},t),{selectionMode:r,compact:o,groups:n,listProps:a,items:i}),c=!1;return s===(t.listProps&&t.listProps.version)&&i===t.items&&n===t.groups&&r===t.selectionMode&&o===t.compact||(c=!0),c&&(l=v(v({},l),{version:{}})),l},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){return this._list.current.getStartItemIndexInView()||0},t.prototype.componentDidMount=function(){var e=this.props,t=e.groupProps,n=e.groups,r=void 0===n?[]:n;t&&t.isAllGroupsCollapsed&&this._setGroupsCollapsedState(r,t.isAllGroupsCollapsed)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.usePageCache,r=e.onShouldVirtualize,o=e.theme,i=e.role,a=void 0===i?"treegrid":i,s=e.styles,l=e.compact,c=e.focusZoneProps,d=void 0===c?{}:c,p=e.rootListProps,m=void 0===p?{}:p,h=this.state,f=h.groups,g=h.version;this._classNames=pb(s,{theme:o,className:t,compact:l});var y=d.shouldEnterInnerZone,b=void 0===y?this._isInnerZoneKeystroke:y;return u.createElement(Cu,v({direction:ou.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},d,{shouldEnterInnerZone:b,className:Wn(this._classNames.root,d.className)}),u.createElement(go,null),f?u.createElement(oy,v({ref:this._list,role:a,items:f,onRenderCell:this._renderGroup,getItemCountForPage:this._returnOne,getPageHeight:this._getPageHeight,getPageSpecification:this._getPageSpecification,usePageCache:n,onShouldVirtualize:r,version:g},m)):this._renderGroup(void 0,0))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype.toggleCollapseAll=function(e){var t=this.state.groups,n=void 0===t?[]:t,r=this.props.groupProps,o=r&&r.onToggleCollapseAll;n.length>0&&(o&&o(e),this._setGroupsCollapsedState(n,e),this._updateIsSomeGroupExpanded(),this.forceUpdate())},t.prototype._setGroupsCollapsedState=function(e,t){for(var n=0;n<e.length;n++)e[n].isCollapsed=t},t.prototype._returnOne=function(){return 1},t.prototype._getGroupKey=function(e,t){return"group-"+(e&&e.key?e.key:String(t))},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.state.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._forceListUpdates=function(e){this.setState({version:{}})},t.prototype._computeIsSomeGroupExpanded=function(e){var t=this;return!(!e||!e.some((function(e){return e.children?t._computeIsSomeGroupExpanded(e.children):!e.isCollapsed})))},t.prototype._updateIsSomeGroupExpanded=function(){var e=this.state.groups,t=this.props.onGroupExpandStateChanged,n=this._computeIsSomeGroupExpanded(e);this._isSomeGroupExpanded!==n&&(t&&t(n),this._isSomeGroupExpanded=n)},t.defaultProps={selectionMode:Vo.multiple,isHeaderVisible:!0,groupProps:{},compact:!1},t}(u.Component),gb=Jo(fb,By,void 0,{scope:"GroupedList"}),vb=function e(t){return!(!t||!t.some((function(t){return t.children?e(t.children):!t.isCollapsed})))},yb=function(e,t){if(void 0!==e)for(var n=0;n<e.length;n++)e[n].isCollapsed=t},bb=function(e){return e.which===xn(en)},Cb=wn(),Sb=function(e,t){var n,r;switch(e.type){case"item":return null!==(r=null===(n=e.item)||void 0===n?void 0:n.key)&&void 0!==r?r:null;case"header":return e.group.key;case"footer":return"".concat(e.group.key,"-footer");case"showAll":return"".concat(e.group.key,"-showAll")}return null},xb=function(e){return u.createElement(ob,v({},e))},kb=function(e){return u.createElement(sb,v({},e))},Pb=function(e){return e.group&&e.footerText?u.createElement(db,v({},e)):null},Ib=function(e){var t=e.selection,n=e.selectionMode,r=void 0===n?Vo.multiple:n,o=e.groupProps,i=void 0===o?{}:o,a=e.compact,s=void 0!==a&&a,l=e.items,c=void 0===l?[]:l,d=e.groups,p=e.onGroupExpandStateChanged,m=e.listProps,h=e.className,f=e.usePageCache,g=e.onShouldVirtualize,y=e.theme,b=e.role,C=void 0===b?"treegrid":b,S=e.styles,x=e.focusZoneProps,k=void 0===x?{}:x,P=e.rootListProps,I=void 0===P?{}:P,w=e.onRenderCell,E=e.viewport,_=e.groupedListRef,D=e.groupExpandedVersion,T=e.version,R=i.onRenderHeader,A=void 0===R?xb:R,M=i.onRenderFooter,N=void 0===M?Pb:M,F=i.onRenderShowAll,H=void 0===F?kb:F,O=Cb(S,{theme:y,className:h,compact:s}),B=u.useRef(),L=u.useRef([]),V=u.useRef(vb(d)),z=u.useRef(null),W=u.useState({}),U=W[0],K=W[1],j=u.useState({}),G=j[0],q=j[1],Y=k.shouldEnterInnerZone,Z=void 0===Y?bb:Y,J=u.useMemo((function(){return function(e,t,n,r){if(!e)return t;n.length<1&&(n=new Array(t.length));for(var o=0,i=[],a=e.length-1;a>=0;)i.push({group:e[a],groupIndex:a+1}),a--;for(;i.length>0;){var s=i.pop(),l=s.group,c=s.groupIndex;for(n[o]={group:l,groupId:Cr("GroupedListSection"),type:"header",groupIndex:c},o++;!0!==l.isCollapsed&&(null===l||void 0===l?void 0:l.children)&&l.children.length>0;){for(a=l.children.length-1;a>0;)i.push({group:l.children[a],groupIndex:a+1}),a--;l=l.children[0],n[o]={group:l,groupId:Cr("GroupedListSection"),type:"header",groupIndex:1},o++}if(!0!==l.isCollapsed){for(var d=l.startIndex,u=r?r(l):1/0,p=l.isShowingAll?t.length:l.count,m=d+Math.min(p,u);d<m;)n[o]={group:l,item:t[d],itemIndex:d,type:"item"},d++,o++;!l.children&&!l.isCollapsed&&!l.isShowingAll&&(l.count>u||l.hasMoreData)&&(n[o]={group:l,type:"showAll"},o++)}n[o]={group:l,type:"footer"},o++}return n.length=o,n}(d,c,L.current,null===i||void 0===i?void 0:i.getGroupItemLimit)}),[d,null===i||void 0===i?void 0:i.getGroupItemLimit,c,G,L,D]),Q=u.useCallback((function(e){var t=J[e];return{key:"header"===t.type?t.group.key:void 0}}),[J]);u.useImperativeHandle(_,(function(){var e;return{scrollToIndex:function(t,n,r){var o,i=(e=null!==e&&void 0!==e?e:J.reduce((function(e,t,n){return"item"===t.type&&(e[t.itemIndex]=n),e}),[]))[t],a="function"===typeof n?function(e){var t;return"item"===(null===(t=J[e])||void 0===t?void 0:t.type)?n(J[e].itemIndex):0}:void 0;null===(o=z.current)||void 0===o||o.scrollToIndex(i,a,r)},getStartItemIndexInView:function(){var e;return(null===(e=z.current)||void 0===e?void 0:e.getStartItemIndexInView())||0}}}),[J,z]),u.useEffect((function(){return(null===i||void 0===i?void 0:i.isAllGroupsCollapsed)&&yb(d,i.isAllGroupsCollapsed),B.current=new gt(undefined),function(){var e;null===(e=B.current)||void 0===e||e.dispose(),B.current=void 0}}),[]),u.useEffect((function(){K({})}),[T]),u.useEffect((function(){var e=vb(d);e!==V.current&&(V.current=e,null===p||void 0===p||p(e))}),[d,G,p,D]);var X=u.useCallback((function(e){var t,n=null===(t=null===i||void 0===i?void 0:i.headerProps)||void 0===t?void 0:t.onToggleCollapse;e&&(null===n||void 0===n||n(e),e.isCollapsed=!e.isCollapsed,q({}),K({}))}),[q,i]),$=function(e){e&&t&&r===Vo.multiple&&t.toggleRangeSelected(e.startIndex,e.count)},ee=function(e){var t,n=null===(t=null===i||void 0===i?void 0:i.showAllProps)||void 0===t?void 0:t.onToggleSummarize;n?n(e):(e&&(e.isShowingAll=!e.isShowingAll),K({}),q({}))},te=function(e,t){var n;return{group:e,groupIndex:t,groupLevel:null!==(n=e.level)&&void 0!==n?n:0,viewport:E,selectionMode:r,groups:d,compact:s,onToggleSelectGroup:$,onToggleCollapse:X,onToggleSummarize:ee}};return u.createElement(Cu,v({direction:ou.vertical,"data-automationid":"GroupedList","data-is-scrollable":"false",role:"presentation"},k,{shouldEnterInnerZone:Z,className:Wn(O.root,k.className)}),u.createElement(oy,v({ref:z,role:C,items:J,onRenderCellConditional:function(e,n){var r;if("header"===e.type)return function(e,n){var r,o=e.group;r="treegrid"===C?{ariaLevel:o.level?o.level+1:1,ariaSetSize:d?d.length:void 0,ariaPosInSet:e.groupIndex}:{ariaRowIndex:n};var a=v(v(v(v({},i.headerProps),te(e.group,n)),{key:o.key,groupedListId:e.groupId}),r);return u.createElement(wb,{render:A,defaultRender:xb,item:e,selection:t,eventGroup:B.current,props:a})}(e,n);if("showAll"===e.type)return function(e,t){var n=e.group,r=v(v(v({},i.showAllProps),te(n,t)),{key:n.key?"".concat(n.key,"-show-all"):void 0});return H(r,kb)}(e,n);if("footer"===e.type)return function(e,t){var n=e.group,r=v(v(v({},i.footerProps),te(n,t)),{key:n.key?"".concat(n.key,"-footer"):void 0});return N(r,Pb)}(e,n);var o=e.group.level?e.group.level+1:1;return w(o,e.item,null!==(r=e.itemIndex)&&void 0!==r?r:n,e.group)},usePageCache:f,onShouldVirtualize:g,getPageSpecification:Q,version:U,getKey:Sb},m,I)))},wb=function(e){var t=e.render,n=e.defaultRender,r=e.item,o=e.selection,i=e.eventGroup,a=e.props,s=r.group,l=function(e,t,n,r){var o=u.useState((function(){var r;return null!==(r=null===n||void 0===n?void 0:n.isRangeSelected(e,t))&&void 0!==r&&r})),i=o[0],a=o[1];return u.useEffect((function(){if(n&&r){var o=function(){var r;a(null!==(r=null===n||void 0===n?void 0:n.isRangeSelected(e,t))&&void 0!==r&&r)};return r.on(n,Wo,o),function(){null===r||void 0===r||r.off(n,Wo,o)}}}),[e,t,n,r]),i}(s.startIndex,s.count,o,i);return t(v(v({},a),{isSelected:l,selected:l}),n)},Eb=function(e){function t(t){var n=e.call(this,t)||this;n._groupedList=u.createRef(),Xr(n);var r=t.listProps,o=(void 0===r?{}:r).version,i=void 0===o?{}:o,a=t.groups;return n.state={version:i,groupExpandedVersion:{},groups:a},n}return g(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.groups,r=e.selectionMode,o=e.compact,i=e.items,a=e.listProps,s=a&&a.version,l=v(v({},t),{groups:n});return s===t.version&&i===t.items&&n===t.groups&&r===t.selectionMode&&o===t.compact||(l.version={}),l},t.prototype.scrollToIndex=function(e,t,n){var r;null===(r=this._groupedList.current)||void 0===r||r.scrollToIndex(e,t,n)},t.prototype.getStartItemIndexInView=function(){var e;return(null===(e=this._groupedList.current)||void 0===e?void 0:e.getStartItemIndexInView())||0},t.prototype.render=function(){return u.createElement(Ib,v({},this.props,this.state,{groupedListRef:this._groupedList}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdate()},t.prototype.toggleCollapseAll=function(e){var t,n=this.state.groups,r=this.props.groupProps;n&&n.length>0&&(null===(t=null===r||void 0===r?void 0:r.onToggleCollapseAll)||void 0===t||t.call(r,e),yb(n,e),this.setState({groupExpandedVersion:{}}),this.forceUpdate())},t.prototype._forceListUpdate=function(){this.setState({version:{}})},t.displayName="GroupedListV2",t}(u.Component);Jo(Eb,By,void 0,{scope:"GroupedListV2"}).displayName="GroupedListV2_unstable";var _b=wn(),Db=u.memo((function(e){return u.createElement(hf,{theme:e.theme,checked:e.checked,className:e.className,useFastIcons:!0})}));function Tb(e){return u.createElement(hf,{checked:e.checked})}function Rb(e){return u.createElement(Db,{theme:e.theme,checked:e.checked})}var Ab,Mb=Jo((function(e){var t=e.isVisible,n=void 0!==t&&t,r=e.canSelect,o=void 0!==r&&r,i=e.anySelected,a=void 0!==i&&i,s=e.selected,l=void 0!==s&&s,c=e.selectionMode,d=e.isHeader,p=void 0!==d&&d,m=e.className,h=(e.checkClassName,e.styles),f=e.theme,g=e.compact,b=e.onRenderDetailsCheckbox,C=e.useFastIcons,S=void 0===C||C,x=y(e,["isVisible","canSelect","anySelected","selected","selectionMode","isHeader","className","checkClassName","styles","theme","compact","onRenderDetailsCheckbox","useFastIcons"]),k=S?Rb:Tb,P=b?Lo(b,k):k,I=_b(h,{theme:f,canSelect:o,selected:l,anySelected:a,className:m,isHeader:p,isVisible:n,compact:g}),w={checked:l,theme:f},E=Zr("div",x,["aria-label","aria-labelledby","aria-describedby"]),_=c===Vo.single?"radio":"checkbox";return o?u.createElement("div",v({},x,{role:_,className:Wn(I.root,I.check),"aria-checked":l,"data-selection-toggle":!0,"data-automationid":"DetailsRowCheck",tabIndex:-1}),P(w)):u.createElement("div",v({},E,{className:Wn(I.root,I.check)}))}),(function(e){var t=e.theme,n=e.className,r=e.isHeader,o=e.selected,i=e.anySelected,a=e.canSelect,s=e.compact,l=e.isVisible,c=os(jy,t),d=r?42:s?zy.compactRowHeight:zy.rowHeight,u=l||o||i;return{root:[c.root,n],check:[!a&&c.isDisabled,r&&c.isHeader,Ya(t),t.fonts.small,mf.checkHost,{display:"flex",alignItems:"center",justifyContent:"center",cursor:"default",boxSizing:"border-box",verticalAlign:"top",background:"none",backgroundColor:"transparent",border:"none",opacity:u?1:0,height:d,width:48,padding:0,margin:0}],isDisabled:[]}}),void 0,{scope:"DetailsRowCheck"},!0),Nb=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 gt(this);var o=Je();o&&(this._events.on(o.body,"mouseup",this._onMouseUp.bind(this),!0),this._events.on(o,"mouseup",this._onDocumentMouseUp.bind(this),!0)),this._initialized=!0}var i,a,s,l,c,d,u,p,m,h,f=n.key,g=void 0===f?"".concat(++this._lastId):f,v=[];if(n&&e){var y=n.eventMap,b=n.context,C=n.updateDropState,S={root:e,options:n,key:g};if(p=this._isDraggable(S),m=this._isDroppable(S),(p||m)&&y)for(var x=0,k=y;x<k.length;x++){var P=k[x],I={callback:P.callback.bind(null,b),eventName:P.eventName};v.push(I),this._events.on(e,I.eventName,I.callback)}m&&(a=function(e){e.isHandled||(e.isHandled=!0,r._dragEnterCounts[g]--,0===r._dragEnterCounts[g]&&C(!1,e))},s=function(e){e.preventDefault(),e.isHandled||(e.isHandled=!0,r._dragEnterCounts[g]++,1===r._dragEnterCounts[g]&&C(!0,e))},l=function(e){r._dragEnterCounts[g]=0,C(!1,e)},c=function(e){r._dragEnterCounts[g]=0,C(!1,e),n.onDrop&&n.onDrop(n.context.data,e)},d=function(e){e.preventDefault(),n.onDragOver&&n.onDragOver(n.context.data,e)},this._dragEnterCounts[g]=0,t.on(e,"dragenter",s),t.on(e,"dragleave",a),t.on(e,"dragend",l),t.on(e,"drop",c),t.on(e,"dragover",d)),p&&(u=this._onMouseDown.bind(this,S),l=this._onDragEnd.bind(this,S),i=function(t){var o=n;o&&o.onDragStart&&o.onDragStart(o.context.data,o.context.index,r._selection.getSelection(),t),r._isDragging=!0,t.dataTransfer&&t.dataTransfer.setData("id",e.id)},t.on(e,"dragstart",i),t.on(e,"mousedown",u),t.on(e,"dragend",l)),h={target:S,dispose:function(){if(r._activeTargets[g]===h&&delete r._activeTargets[g],e){for(var n=0,o=v;n<o.length;n++){var f=o[n];r._events.off(e,f.eventName,f.callback)}m&&(t.off(e,"dragenter",s),t.off(e,"dragleave",a),t.off(e,"dragend",l),t.off(e,"dragover",d),t.off(e,"drop",c)),p&&(t.off(e,"dragstart",i),t.off(e,"mousedown",u),t.off(e,"dragend",l))}}},this._activeTargets[g]=h}return{key:g,dispose:function(){h&&h.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&&(gt.raise(this._dragData.dropTarget.root,"dragleave"),gt.raise(this._dragData.dropTarget.root,"drop"))}this._dragData=null},e.prototype._onDocumentMouseUp=function(e){var t=Je();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&&(gt.raise(this._dragData.dropTarget.root,"dragleave"),gt.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&&(gt.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}(),Fb=wn(),Hb=function(e){return function(t){return t?t.column.isIconOnly?u.createElement("span",{className:e.accessibleLabel},t.column.name):u.createElement(u.Fragment,null,t.column.name):null}},Ob=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._tooltipRef=u.createRef(),n._onRenderFilterIcon=function(e){return function(e){var t=e.columnProps,n=y(e,["columnProps"]),r=(null===t||void 0===t?void 0:t.useFastIcons)?md:gd;return u.createElement(r,v({},n))}},n._onRenderColumnHeaderTooltip=function(e){return u.createElement("span",{className:e.hostClassName},e.children)},n._onColumnClick=function(e){var t=n.props,r=t.onColumnClick,o=t.column;o.columnActionsMode!==xy.disabled&&(o.onColumnClick&&o.onColumnClick(e,o),r&&r(e,o))},n._onColumnKeyDown=function(e){var t=n.props,r=t.onColumnKeyDown,o=t.column;o.onColumnKeyDown&&o.onColumnKeyDown(e,o),r&&r(e,o)},n._onColumnBlur=function(){n._tooltipRef.current&&n._tooltipRef.current.dismiss()},n._onColumnFocus=function(){n._tooltipRef.current&&n._tooltipRef.current.show()},n._onDragStart=function(e,t,r,o){var i=n._classNames;t&&(n._updateHeaderDragInfo(t),n._root.current.classList.add(i.borderWhileDragging),n._async.setTimeout((function(){n._root.current&&n._root.current.classList.add(i.noBorderWhileDragging)}),20))},n._onDragEnd=function(e,t){var r=n._classNames;t&&n._updateHeaderDragInfo(-1,t),n._root.current.classList.remove(r.borderWhileDragging),n._root.current.classList.remove(r.noBorderWhileDragging)},n._updateHeaderDragInfo=function(e,t){n.props.setDraggedItemIndex&&n.props.setDraggedItemIndex(e),n.props.updateDragInfo&&n.props.updateDragInfo({itemIndex:e},t)},n._onColumnContextMenu=function(e){var t=n.props,r=t.onColumnContextMenu,o=t.column;o.onColumnContextMenu&&(o.onColumnContextMenu(o,e),e.preventDefault()),r&&(r(o,e),e.preventDefault())},n._onRootMouseDown=function(e){n.props.isDraggable&&0===e.button&&e.stopPropagation()},Xr(n),n._async=new ze(n),n._events=new gt(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.column,n=e.parentId,r=e.isDraggable,o=e.styles,i=e.theme,a=e.cellStyleProps,s=void 0===a?Vy:a,l=e.useFastIcons,c=void 0===l||l,d=this.props.onRenderColumnHeaderTooltip,p=void 0===d?this._onRenderColumnHeaderTooltip:d;this._classNames=Fb(o,{theme:i,headerClassName:t.headerClassName,iconClassName:t.iconClassName,isActionable:t.columnActionsMode!==xy.disabled,isEmpty:!t.name,isIconVisible:t.isSorted||t.isGrouped||t.isFiltered,isPadded:t.isPadded,isIconOnly:t.isIconOnly,cellStyleProps:s,transitionDurationDrag:200,transitionDurationDrop:1500});var m=this._classNames,h=c?md:gd,f=t.onRenderFilterIcon?Lo(t.onRenderFilterIcon,this._onRenderFilterIcon(this._classNames)):this._onRenderFilterIcon(this._classNames),g=t.onRenderHeader?Lo(t.onRenderHeader,Hb(this._classNames)):Hb(this._classNames),y=t.columnActionsMode!==xy.disabled&&(void 0!==t.onColumnClick||void 0!==this.props.onColumnClick),b=this.props.onRenderColumnHeaderTooltip?!t.ariaLabel:this._hasAccessibleDescription(),C={"aria-label":t.ariaLabel?t.ariaLabel:t.isIconOnly?t.name:void 0,"aria-labelledby":t.ariaLabel||t.isIconOnly?void 0:"".concat(n,"-").concat(t.key,"-name"),"aria-describedby":b?"".concat(n,"-").concat(t.key,"-tooltip"):void 0};return u.createElement(u.Fragment,null,u.createElement("div",v({key:t.key,ref:this._root,role:"columnheader"},!y&&C,{"aria-sort":t.isSorted?t.isSortedDescending?"descending":"ascending":"none","data-is-focusable":y||t.columnActionsMode===xy.disabled?void 0:"true",className:m.root,"data-is-draggable":r,draggable:r,style:{width:(t.calculatedWidth||0)+s.cellLeftPadding+s.cellRightPadding+(t.isPadded?s.cellExtraRightPadding:0)},"data-automationid":"ColumnsHeaderColumn","data-item-key":t.key,onBlur:this._onColumnBlur,onFocus:this._onColumnFocus}),r&&u.createElement(h,{iconName:"GripperBarVertical",className:m.gripperBarVerticalStyle}),p({hostClassName:m.cellTooltip,id:"".concat(n,"-").concat(t.key,"-tooltip"),setAriaDescribedBy:!1,column:t,componentRef:this._tooltipRef,content:t.columnActionsMode!==xy.disabled?t.ariaLabel:"",children:u.createElement("span",v({id:"".concat(n,"-").concat(t.key),className:m.cellTitle,"data-is-focusable":y&&t.columnActionsMode!==xy.disabled?"true":void 0,role:y?"button":void 0},y&&C,{onContextMenu:this._onColumnContextMenu,onClick:this._onColumnClick,onKeyDown:this._onColumnKeyDown,"aria-haspopup":t.columnActionsMode===xy.hasDropdown?"menu":void 0,"aria-expanded":t.columnActionsMode===xy.hasDropdown?!!t.isMenuOpen:void 0}),u.createElement("span",{id:"".concat(n,"-").concat(t.key,"-name"),className:m.cellName},(t.iconName||t.iconClassName)&&u.createElement(h,{className:m.iconClassName,iconName:t.iconName}),g(this.props)),t.isFiltered&&u.createElement(h,{className:m.nearIcon,iconName:"Filter"}),(t.isSorted||t.showSortIconWhenUnsorted)&&u.createElement(h,{className:m.sortIcon,iconName:t.isSorted?t.isSortedDescending?"SortDown":"SortUp":"Sort"}),t.isGrouped&&u.createElement(h,{className:m.nearIcon,iconName:"GroupedDescending"}),t.columnActionsMode===xy.hasDropdown&&!t.isIconOnly&&f({"aria-hidden":!0,columnProps:this.props,className:m.filterChevron,iconName:"ChevronDown"}))},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:this._renderAccessibleDescription())},t.prototype.componentDidMount=function(){var e=this;this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling();var t=this._classNames;this.props.isDropped&&(this._root.current&&(this._root.current.classList.add(t.borderAfterDropping),this._async.setTimeout((function(){e._root.current&&e._root.current.classList.add(t.noBorderAfterDropping)}),20)),this._async.setTimeout((function(){e._root.current&&(e._root.current.classList.remove(t.borderAfterDropping),e._root.current.classList.remove(t.noBorderAfterDropping))}),1520))},t.prototype.componentWillUnmount=function(){this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(){!this._dragDropSubscription&&this.props.dragDropHelper&&this.props.isDraggable&&this._addDragDropHandling(),this._dragDropSubscription&&!this.props.isDraggable&&(this._dragDropSubscription.dispose(),this._events.off(this._root.current,"mousedown"),delete this._dragDropSubscription)},t.prototype._getColumnDragDropOptions=function(){var e=this,t=this.props.columnIndex;return{selectionIndex:t,context:{data:t,index:t},canDrag:function(){return e.props.isDraggable},canDrop:function(){return!1},onDragStart:this._onDragStart,updateDropState:function(){},onDrop:function(){},onDragEnd:this._onDragEnd}},t.prototype._hasAccessibleDescription=function(){var e=this.props.column;return!!(e.filterAriaLabel||e.sortAscendingAriaLabel||e.sortDescendingAriaLabel||e.groupAriaLabel||e.sortableAriaLabel)},t.prototype._renderAccessibleDescription=function(){var e=this.props,t=e.column,n=e.parentId,r=this._classNames;return this._hasAccessibleDescription()&&!this.props.onRenderColumnHeaderTooltip?u.createElement("label",{key:"".concat(t.key,"_label"),id:"".concat(n,"-").concat(t.key,"-tooltip"),className:r.accessibleLabel,hidden:!0},t.isFiltered&&t.filterAriaLabel||null,(t.isSorted||t.showSortIconWhenUnsorted)&&(t.isSorted?t.isSortedDescending?t.sortDescendingAriaLabel:t.sortAscendingAriaLabel:t.sortableAriaLabel)||null,t.isGrouped&&t.groupAriaLabel||null):null},t.prototype._addDragDropHandling=function(){this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getColumnDragDropOptions()),this._events.on(this._root.current,"mousedown",this._onRootMouseDown)},t}(u.Component),Bb={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"},Lb=Jo(Ob,(function(e){var t,n=e.theme,r=e.headerClassName,o=e.iconClassName,i=e.isActionable,a=e.isEmpty,s=e.isIconVisible,l=e.isPadded,c=e.isIconOnly,d=e.cellStyleProps,u=void 0===d?Vy:d,p=e.transitionDurationDrag,m=e.transitionDurationDrop,h=n.semanticColors,f=n.palette,g=n.fonts,y=os(Bb,n),b={iconForegroundColor:h.bodySubtext,headerForegroundColor:h.bodyText,headerBackgroundColor:h.bodyBackground,dropdownChevronForegroundColor:f.neutralSecondary,resizerColor:f.neutralTertiaryAlt},C={color:b.iconForegroundColor,opacity:1,paddingLeft:8},S={outline:"1px solid ".concat(f.themePrimary)},x={outlineColor:"transparent"};return{root:[Ky(e),g.small,i&&[y.isActionable,{selectors:{":hover":{color:h.bodyText,background:h.listHeaderBackgroundHovered},":active":{background:h.listHeaderBackgroundPressed}}}],a&&[y.isEmpty,{textOverflow:"clip"}],s&&y.isIconVisible,l&&{paddingRight:u.cellExtraRightPadding+u.cellRightPadding},{selectors:{':hover i[data-icon-name="GripperBarVertical"]':{display:"block"}}},r],gripperBarVerticalStyle:{display:"none",position:"absolute",textAlign:"left",color:f.neutralTertiary,left:1},nearIcon:[y.nearIcon,C],sortIcon:[C,{paddingLeft:4,position:"relative",top:1}],iconClassName:[{color:b.iconForegroundColor,opacity:1},o],filterChevron:[y.filterChevron,{color:b.dropdownChevronForegroundColor,paddingLeft:6,verticalAlign:"middle",fontSize:g.small.fontSize}],cellTitle:[y.cellTitle,Ya(n),v({display:"flex",flexDirection:"row",justifyContent:"flex-start",alignItems:"stretch",boxSizing:"border-box",overflow:"hidden",padding:"0 ".concat(u.cellRightPadding,"px 0 ").concat(u.cellLeftPadding,"px")},c?{alignContent:"flex-end",maxHeight:"100%",flexWrap:"wrap-reverse"}:{})],cellName:[y.cellName,{flex:"0 1 auto",overflow:"hidden",textOverflow:"ellipsis",fontWeight:Hi.semibold,fontSize:g.medium.fontSize},c&&{selectors:(t={},t[".".concat(y.nearIcon)]={paddingLeft:0},t)}],cellTooltip:{display:"block",position:"absolute",top:0,left:0,bottom:0,right:0},accessibleLabel:Qa,borderWhileDragging:S,noBorderWhileDragging:[x,{transition:"outline ".concat(p,"ms ease")}],borderAfterDropping:S,noBorderAfterDropping:[x,{transition:"outline  ".concat(m,"ms ease")}]}}),void 0,{scope:"DetailsColumn"});!function(e){e[e.none=0]="none",e[e.hidden=1]="hidden",e[e.visible=2]="visible"}(Ab||(Ab={}));var Vb=wn(),zb=[],Wb=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=u.createRef(),n._rootComponent=u.createRef(),n._draggedColumnIndex=-1,n._dropHintDetails={},n._updateDroppingState=function(e,t){n._draggedColumnIndex>=0&&"drop"!==t.type&&!e&&n._resetDropHints()},n._onDragOver=function(e,t){n._draggedColumnIndex>=0&&(t.stopPropagation(),n._computeDropHintToBeShown(t.clientX))},n._onDrop=function(e,t){var r=n._getColumnReorderProps();if(n._draggedColumnIndex>=0&&t){var o=n._draggedColumnIndex>n._currentDropHintIndex?n._currentDropHintIndex:n._currentDropHintIndex-1,i=n._isValidCurrentDropHintIndex();if(t.stopPropagation(),i)if(n._onDropIndexInfo.sourceIndex=n._draggedColumnIndex,n._onDropIndexInfo.targetIndex=o,r.onColumnDrop){var a={draggedIndex:n._draggedColumnIndex,targetIndex:o};r.onColumnDrop(a)}else r.handleColumnReorder&&r.handleColumnReorder(n._draggedColumnIndex,o)}n._resetDropHints(),n._dropHintDetails={},n._draggedColumnIndex=-1},n._computeColumnIndexOffset=function(e){var t=1;return e&&(t+=1),n.props.groupNestingDepth&&n.props.groupNestingDepth>0&&(t+=1),t},n._updateDragInfo=function(e,t){var r=n._getColumnReorderProps(),o=e.itemIndex;if(o>=0)n._draggedColumnIndex=o-n._computeColumnIndexOffset(!n._isCheckboxColumnHidden()),n._getDropHintPositions(),r.onColumnDragStart&&r.onColumnDragStart(!0);else if(t&&n._draggedColumnIndex>=0&&(n._resetDropHints(),n._draggedColumnIndex=-1,n._dropHintDetails={},r.onColumnDragEnd)){var i=n._isEventOnHeader(t);r.onColumnDragEnd({dropLocation:i},t)}},n._getDropHintPositions=function(){for(var e,t=n.props.columns,r=void 0===t?zb:t,o=n._getColumnReorderProps(),i=0,a=0,s=o.frozenColumnCountFromStart||0,l=o.frozenColumnCountFromEnd||0,c=s;c<r.length-l+1;c++)if(n._rootElement.current){var d=n._rootElement.current.querySelectorAll("#columnDropHint_"+c)[0];if(d)if(c===s)i=d.offsetLeft,a=d.offsetLeft,e=d;else{var u=(d.offsetLeft+i)/2;n._dropHintDetails[c-1]={originX:i,startX:a,endX:u,dropHintElementRef:e},a=u,e=d,i=d.offsetLeft,c===r.length-l&&(n._dropHintDetails[c]={originX:i,startX:a,endX:d.offsetLeft,dropHintElementRef:e})}}},n._computeDropHintToBeShown=function(e){var t=Sn(n.props.theme);if(n._rootElement.current){var r=e-n._rootElement.current.getBoundingClientRect().left,o=n._currentDropHintIndex;if(n._isValidCurrentDropHintIndex()&&Ub(t,r,n._dropHintDetails[o].startX,n._dropHintDetails[o].endX))return;var i=n.props.columns,a=void 0===i?zb:i,s=n._getColumnReorderProps(),l=s.frozenColumnCountFromStart||0,c=s.frozenColumnCountFromEnd||0,d=l,u=a.length-c,p=-1;if(Kb(t,r,n._dropHintDetails[d].endX)?p=d:jb(t,r,n._dropHintDetails[u].startX)?p=u:n._isValidCurrentDropHintIndex()&&(n._dropHintDetails[o+1]&&Ub(t,r,n._dropHintDetails[o+1].startX,n._dropHintDetails[o+1].endX)?p=o+1:n._dropHintDetails[o-1]&&Ub(t,r,n._dropHintDetails[o-1].startX,n._dropHintDetails[o-1].endX)&&(p=o-1)),-1===p)for(var m=l,h=u;m<h;){var f=Math.ceil((h+m)/2);if(Ub(t,r,n._dropHintDetails[f].startX,n._dropHintDetails[f].endX)){p=f;break}Kb(t,r,n._dropHintDetails[f].originX)?h=f:jb(t,r,n._dropHintDetails[f].originX)&&(m=f)}p===n._draggedColumnIndex||p===n._draggedColumnIndex+1?n._isValidCurrentDropHintIndex()&&n._resetDropHints():o!==p&&p>=0&&(n._resetDropHints(),n._updateDropHintElement(n._dropHintDetails[p].dropHintElementRef,"inline-block"),n._currentDropHintIndex=p)}},n._renderColumnSizer=function(e){var t,r=e.columnIndex,o=n.props.columns,i=void 0===o?zb:o,a=i[r],s=n.state.columnResizeDetails,l=n._classNames;return a.isResizable?u.createElement("div",{key:"".concat(a.key,"_sizer"),"aria-hidden":!0,role:"button","data-is-focusable":!1,onClick:Gb,"data-sizer-index":r,onBlur:n._onSizerBlur,className:Wn(l.cellSizer,r<i.length-1?l.cellSizerStart:l.cellSizerEnd,(t={},t[l.cellIsResizing]=s&&s.columnIndex===r,t)),onDoubleClick:n._onSizerDoubleClick.bind(n,r)}):null},n._onRenderColumnHeaderTooltip=function(e){return u.createElement("span",{className:e.hostClassName},e.children)},n._onSelectAllClicked=function(){var e=n.props.selection;e&&e.toggleAllSelected()},n._onRootMouseDown=function(e){var t=e.target.getAttribute("data-sizer-index"),r=Number(t),o=n.props.columns,i=void 0===o?zb:o;null!==t&&0===e.button&&(n.setState({columnResizeDetails:{columnIndex:r,columnMinWidth:i[r].calculatedWidth,originX:e.clientX}}),e.preventDefault(),e.stopPropagation())},n._onRootMouseMove=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing;r&&!o&&e.clientX!==r.originX&&n.setState({isSizing:!0})},n._onRootKeyDown=function(e){var t=n.state,r=t.columnResizeDetails,o=t.isSizing,i=n.props,a=i.columns,s=void 0===a?zb:a,l=i.onColumnResized,c=e.target.getAttribute("data-sizer-index");if(c&&!o){var d=Number(c);if(r){var u=void 0;e.which===Wt?(n.setState({columnResizeDetails:void 0}),e.preventDefault(),e.stopPropagation()):e.which===Xt?u=Sn(n.props.theme)?1:-1:e.which===en&&(u=Sn(n.props.theme)?-1:1),u&&(e.shiftKey||(u*=10),n.setState({columnResizeDetails:v(v({},r),{columnMinWidth:r.columnMinWidth+u})}),l&&l(s[d],r.columnMinWidth+u,d),e.preventDefault(),e.stopPropagation())}else e.which===Wt&&(n.setState({columnResizeDetails:{columnIndex:d,columnMinWidth:s[d].calculatedWidth}}),e.preventDefault(),e.stopPropagation())}},n._onSizerMouseMove=function(e){var t=e.buttons,r=n.props,o=r.onColumnIsSizingChanged,i=r.onColumnResized,a=r.columns,s=void 0===a?zb:a,l=n.state.columnResizeDetails;if(void 0===t||1===t){if(e.clientX!==l.originX&&o&&o(s[l.columnIndex],!0),i){var c=e.clientX-l.originX;Sn(n.props.theme)&&(c=-c),i(s[l.columnIndex],l.columnMinWidth+c,l.columnIndex)}}else n._onSizerMouseUp(e)},n._onSizerBlur=function(e){n.state.columnResizeDetails&&n.setState({columnResizeDetails:void 0,isSizing:!1})},n._onSizerMouseUp=function(e){var t=n.props,r=t.columns,o=void 0===r?zb:r,i=t.onColumnIsSizingChanged,a=n.state.columnResizeDetails;n.setState({columnResizeDetails:void 0,isSizing:!1}),i&&i(o[a.columnIndex],!1)},n._onToggleCollapseAll=function(){var e=n.props.onToggleCollapseAll,t=!n.state.isAllCollapsed;n.setState({isAllCollapsed:t}),e&&e(t)},Xr(n),n._events=new gt(n),n.state={columnResizeDetails:void 0,isAllCollapsed:n.props.isAllCollapsed,isAllSelected:!!n.props.selection&&n.props.selection.isAllSelected()},n._onDropIndexInfo={sourceIndex:-1,targetIndex:-1},n._id=Cr("header"),n._currentDropHintIndex=-1,n._dragDropHelper=new Nb({selection:{getSelection:function(){}},minimumPixelsForDrag:n.props.minimumPixelsForDrag}),n}return g(t,e),t.prototype.componentDidMount=function(){var e=this.props.selection;this._events.on(e,Wo,this._onSelectionChanged),this._rootElement.current&&(this._events.on(this._rootElement.current,"mousedown",this._onRootMouseDown),this._events.on(this._rootElement.current,"keydown",this._onRootKeyDown),this._getColumnReorderProps()&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())))},t.prototype.componentDidUpdate=function(e){if(this._getColumnReorderProps()?!this._subscriptionObject&&this._rootElement.current&&(this._subscriptionObject=this._dragDropHelper.subscribe(this._rootElement.current,this._events,this._getHeaderDragDropOptions())):this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this.props!==e&&this._onDropIndexInfo.sourceIndex>=0&&this._onDropIndexInfo.targetIndex>=0){var t=e.columns,n=void 0===t?zb:t,r=this.props.columns,o=void 0===r?zb:r;n[this._onDropIndexInfo.sourceIndex].key===o[this._onDropIndexInfo.targetIndex].key&&(this._onDropIndexInfo={sourceIndex:-1,targetIndex:-1})}this.props.isAllCollapsed!==e.isAllCollapsed&&this.setState({isAllCollapsed:this.props.isAllCollapsed})},t.prototype.componentWillUnmount=function(){this._subscriptionObject&&(this._subscriptionObject.dispose(),delete this._subscriptionObject),this._dragDropHelper.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.columns,r=void 0===n?zb:n,o=t.ariaLabel,i=t.ariaLabelForToggleAllGroupsButton,a=t.ariaLabelForSelectAllCheckbox,s=t.selectAllVisibility,l=t.ariaLabelForSelectionColumn,c=t.indentWidth,d=t.onColumnClick,p=t.onColumnContextMenu,m=t.onRenderColumnHeaderTooltip,h=void 0===m?this._onRenderColumnHeaderTooltip:m,f=t.styles,g=t.selectionMode,v=t.theme,y=t.onRenderDetailsCheckbox,b=t.groupNestingDepth,C=t.useFastIcons,S=t.checkboxVisibility,x=t.className,k=this.state,P=k.isAllSelected,I=k.columnResizeDetails,w=k.isSizing,E=k.isAllCollapsed,_=s!==Ab.none,D=s===Ab.hidden,T=S===wy.always,R=this._getColumnReorderProps(),A=R&&R.frozenColumnCountFromStart?R.frozenColumnCountFromStart:0,M=R&&R.frozenColumnCountFromEnd?R.frozenColumnCountFromEnd:0;this._classNames=Vb(f,{theme:v,isAllSelected:P,isSelectAllHidden:s===Ab.hidden,isResizingColumn:!!I&&w,isSizing:w,isAllCollapsed:E,isCheckboxHidden:D,className:x});var N=this._classNames,F=C?md:gd,H=b>0,O=H&&this.props.collapseAllVisibility===Sy.visible,B=this._computeColumnIndexOffset(_),L=Sn(v);return u.createElement(Cu,{role:"row","aria-label":o,className:N.root,componentRef:this._rootComponent,elementRef:this._rootElement,onMouseMove:this._onRootMouseMove,"data-automationid":"DetailsHeader",direction:ou.horizontal},_?[u.createElement("div",{key:"__checkbox",className:N.cellIsCheck,"aria-labelledby":"".concat(this._id,"-checkTooltip"),onClick:D?void 0:this._onSelectAllClicked,role:"columnheader"},h({hostClassName:N.checkTooltip,id:"".concat(this._id,"-checkTooltip"),setAriaDescribedBy:!1,content:a,children:u.createElement(Mb,{id:"".concat(this._id,"-check"),"aria-label":g===Vo.multiple?a:l,"data-is-focusable":!D||void 0,isHeader:!0,selected:P,anySelected:!1,canSelect:!D,className:N.check,onRenderDetailsCheckbox:y,useFastIcons:C,isVisible:T})},this._onRenderColumnHeaderTooltip)),this.props.onRenderColumnHeaderTooltip?null:a&&!D?u.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:N.accessibleLabel,"aria-hidden":!0},a):l&&D?u.createElement("label",{key:"__checkboxLabel",id:"".concat(this._id,"-checkTooltip"),className:N.accessibleLabel,"aria-hidden":!0},l):null]:null,O?u.createElement("div",{className:N.cellIsGroupExpander,onClick:this._onToggleCollapseAll,"data-is-focusable":!0,"aria-label":i,"aria-expanded":!E,role:"columnheader"},u.createElement(F,{className:N.collapseButton,iconName:L?"ChevronLeftMed":"ChevronRightMed"}),u.createElement("span",{className:N.accessibleLabel},i)):H?u.createElement("div",{className:N.cellIsGroupExpander,"data-is-focusable":!1,role:"columnheader"}):null,u.createElement(Fy,{indentWidth:c,role:"gridcell",count:b-1}),r.map((function(t,n){var o=!!R&&(n>=A&&n<r.length-M);return[R&&(o||n===r.length-M)&&e._renderDropHint(n),u.createElement(Lb,{column:t,styles:t.styles,key:t.key,columnIndex:B+n,parentId:e._id,isDraggable:o,updateDragInfo:e._updateDragInfo,dragDropHelper:e._dragDropHelper,onColumnClick:d,onColumnContextMenu:p,onRenderColumnHeaderTooltip:e.props.onRenderColumnHeaderTooltip,isDropped:e._onDropIndexInfo.targetIndex===n,cellStyleProps:e.props.cellStyleProps,useFastIcons:C}),e._renderColumnDivider(n)]})),R&&0===M&&this._renderDropHint(r.length),w&&u.createElement(zc,null,u.createElement("div",{className:N.sizingOverlay,onMouseMove:this._onSizerMouseMove,onMouseUp:this._onSizerMouseUp})))},t.prototype.focus=function(){var e;return!!(null===(e=this._rootComponent.current)||void 0===e?void 0:e.focus())},t.prototype._getColumnReorderProps=function(){var e=this.props,t=e.columnReorderOptions;return e.columnReorderProps||t&&v(v({},t),{onColumnDragEnd:void 0})},t.prototype._getHeaderDragDropOptions=function(){return{selectionIndex:1,context:{data:this,index:0},canDrag:function(){return!1},canDrop:function(){return!0},onDragStart:function(){},updateDropState:this._updateDroppingState,onDrop:this._onDrop,onDragEnd:function(){},onDragOver:this._onDragOver}},t.prototype._isValidCurrentDropHintIndex=function(){return this._currentDropHintIndex>=0},t.prototype._isCheckboxColumnHidden=function(){var e=this.props,t=e.selectionMode,n=e.checkboxVisibility;return t===Vo.none||n===wy.hidden},t.prototype._resetDropHints=function(){this._currentDropHintIndex>=0&&(this._updateDropHintElement(this._dropHintDetails[this._currentDropHintIndex].dropHintElementRef,"none"),this._currentDropHintIndex=-1)},t.prototype._updateDropHintElement=function(e,t){e.childNodes[1].style.display=t,e.childNodes[0].style.display=t},t.prototype._isEventOnHeader=function(e){if(this._rootElement.current){var t=this._rootElement.current.getBoundingClientRect();if(e.clientX>t.left&&e.clientX<t.right&&e.clientY>t.top&&e.clientY<t.bottom)return Py.header}},t.prototype._renderColumnDivider=function(e){var t=this.props.columns,n=(void 0===t?zb:t)[e],r=n.onRenderDivider;return r?r({column:n,columnIndex:e},this._renderColumnSizer):this._renderColumnSizer({column:n,columnIndex:e})},t.prototype._renderDropHint=function(e){var t=this._classNames,n=this.props.useFastIcons?md:gd;return u.createElement("div",{key:"dropHintKey",className:t.dropHintStyle,id:"columnDropHint_".concat(e),"aria-hidden":!0},u.createElement("div",{role:"presentation",key:"dropHintCircleKey",className:t.dropHintCaretStyle,"data-is-focusable":!1,"data-sizer-index":e,"aria-hidden":!0},u.createElement(n,{iconName:"CircleShapeSolid"})),u.createElement("div",{key:"dropHintLineKey","aria-hidden":!0,"data-is-focusable":!1,"data-sizer-index":e,className:t.dropHintLineStyle}))},t.prototype._onSizerDoubleClick=function(e,t){var n=this.props,r=n.onColumnAutoResized,o=n.columns;r&&r((void 0===o?zb:o)[e],e)},t.prototype._onSelectionChanged=function(){var e=!!this.props.selection&&this.props.selection.isAllSelected();this.state.isAllSelected!==e&&this.setState({isAllSelected:e})},t.defaultProps={selectAllVisibility:Ab.visible,collapseAllVisibility:Sy.visible,useFastIcons:!0},t}(u.Component);function Ub(e,t,n,r){return e?t<=n&&t>=r:t>=n&&t<=r}function Kb(e,t,n){return e?t>=n:t<=n}function jb(e,t,n){return e?t<=n:t>=n}function Gb(e){e.stopPropagation()}var qb=Jo(Wb,(function(e){var t,n,r,o,i=e.theme,a=e.className,s=e.isAllSelected,l=e.isResizingColumn,c=e.isSizing,d=e.isAllCollapsed,u=e.cellStyleProps,p=void 0===u?Vy:u,m=i.semanticColors,h=i.palette,f=i.fonts,g=os(Uy,i),y={iconForegroundColor:m.bodySubtext,headerForegroundColor:m.bodyText,headerBackgroundColor:m.bodyBackground,resizerColor:h.neutralTertiaryAlt},b={opacity:1,transition:"opacity 0.3s linear"},C=Ky(e);return{root:[g.root,f.small,{display:"inline-block",background:y.headerBackgroundColor,position:"relative",minWidth:"100%",verticalAlign:"top",height:42,lineHeight:42,whiteSpace:"nowrap",boxSizing:"content-box",paddingBottom:"1px",paddingTop:"16px",borderBottom:"1px solid ".concat(m.bodyDivider),cursor:"default",userSelect:"none",selectors:(t={},t["&:hover .".concat(g.check)]={opacity:1},t["& .".concat(g.tooltipHost," .").concat(g.checkTooltip)]={display:"block"},t)},s&&g.isAllSelected,l&&g.isResizingColumn,a],check:[g.check,{height:42},{selectors:(n={},n[".".concat(io," &:focus, :host(.").concat(io,") &:focus")]={opacity:1},n)}],cellWrapperPadded:{paddingRight:p.cellExtraRightPadding+p.cellRightPadding},cellIsCheck:[C,g.cellIsCheck,{position:"relative",padding:0,margin:0,display:"inline-flex",alignItems:"center",border:"none"},s&&{opacity:1}],cellIsGroupExpander:[C,{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:f.small.fontSize,padding:0,border:"none",width:36,color:h.neutralSecondary,selectors:{":hover":{backgroundColor:h.neutralLighter},":active":{backgroundColor:h.neutralLight}}}],cellIsActionable:{selectors:{":hover":{color:m.bodyText,background:m.listHeaderBackgroundHovered},":active":{background:m.listHeaderBackgroundPressed}}},cellIsEmpty:{textOverflow:"clip"},cellSizer:[g.cellSizer,{selectors:{"&::-moz-focus-inner":{border:0},"&":{outline:"transparent"}}},{display:"inline-block",position:"relative",cursor:"ew-resize",bottom:0,top:0,overflow:"hidden",height:"inherit",background:"transparent",zIndex:1,width:16,selectors:(r={":after":{content:'""',position:"absolute",top:0,bottom:0,width:1,background:y.resizerColor,opacity:0,left:"50%"},":focus:after":b,":hover:after":b},r["&.".concat(g.isResizing,":after")]=[b,{boxShadow:"0 0 5px 0 rgba(0, 0, 0, 0.4)"}],r)}],cellIsResizing:g.isResizing,cellSizerStart:{margin:"0 -8px"},cellSizerEnd:{margin:0,marginLeft:-16},collapseButton:[g.collapseButton,{transformOrigin:"50% 50%",transition:"transform .1s linear"},d?[g.isCollapsed,{transform:"rotate(0deg)"}]:{transform:Sn(i)?"rotate(-90deg)":"rotate(90deg)"}],checkTooltip:g.checkTooltip,sizingOverlay:c&&{position:"absolute",left:0,top:0,right:0,bottom:0,cursor:"ew-resize",background:"rgba(255, 255, 255, 0)",selectors:(o={},o[Wa]=v({background:"transparent"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)},accessibleLabel:Qa,dropHintCircleStyle:[g.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(h.themePrimary),background:h.white}],dropHintCaretStyle:[g.dropHintCaretStyle,{display:"none",position:"absolute",top:-28,left:-6.5,fontSize:f.medium.fontSize,color:h.themePrimary,overflow:"visible",zIndex:10}],dropHintLineStyle:[g.dropHintLineStyle,{display:"none",position:"absolute",bottom:0,top:0,overflow:"hidden",height:42,width:1,background:h.themePrimary,zIndex:10}],dropHintStyle:{display:"inline-block",position:"absolute"}}}),void 0,{scope:"DetailsHeader"}),Yb=function(e){var t=e.columns,n=e.rowClassNames,r=e.cellStyleProps,o=void 0===r?Vy:r,i=e.item,a=e.itemIndex,s=e.isSelected,l=e.onRenderItemColumn,c=e.getCellValueKey,d=e.onRenderField,p=e.cellsByColumn,m=e.enableUpdateAnimations,h=e.rowHeaderId,f=u.useRef(),g=f.current||(f.current={}),v=u.useCallback((function(e){var t=e.column,r=e.cellValueKey,i=e.className,a=e.onRender,s=e.item,l=e.itemIndex,c="undefined"===typeof t.calculatedWidth?"auto":t.calculatedWidth+o.cellLeftPadding+o.cellRightPadding+(t.isPadded?o.cellExtraRightPadding:0),d="".concat(t.key).concat(void 0!==r?"-".concat(r):"");return u.createElement("div",{key:d,id:t.isRowHeader?h:void 0,role:t.isRowHeader?"rowheader":"gridcell",className:Wn(t.className,t.isMultiline&&n.isMultiline,t.isRowHeader&&n.isRowHeader,n.cell,t.isPadded?n.cellPadded:n.cellUnpadded,i),style:{width:c},"data-automationid":"DetailsRowCell","data-automation-key":t.key},a(s,l,t))}),[n,o,h]);return u.createElement("div",{className:n.fields,"data-automationid":"DetailsRowFields",role:"presentation"},t.map((function(e){var t=e.getValueKey,r=void 0===t?c:t,o=p&&e.key in p&&function(){return p[e.key]}||e.onRender||l||Zb,u=v;e.onRenderField&&(u=Lo(e.onRenderField,u)),d&&(u=Lo(d,u));var h=g[e.key],f=m&&r?r(i,a,e):void 0,y=!1;return void 0!==f&&void 0!==h&&f!==h&&(y=!0),g[e.key]=f,u({item:i,itemIndex:a,isSelected:s,column:e,cellValueKey:f,className:y?n.cellAnimation:void 0,onRender:o})})))};function Zb(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 Jb=wn(),Qb=[],Xb=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._cellMeasurer=u.createRef(),n._focusZone=u.createRef(),n._onSelectionChanged=function(){var e=$b(n.props);pt(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})},Xr(n),n._events=new gt(n),n.state={selectionState:$b(t),columnMeasureInfo:void 0,isDropping:!1},n._droppingClassNames="",n}return g(t,e),t.getDerivedStateFromProps=function(e,t){return v(v({},t),{selectionState:$b(e)})},t.prototype.componentDidMount=function(){var e=this.props,t=e.dragDropHelper,n=e.selection,r=e.item,o=e.onDidMount;t&&this._root.current&&(this._dragDropSubscription=t.subscribe(this._root.current,this._events,this._getRowDragDropOptions())),n&&this._events.on(n,Wo,this._onSelectionChanged),o&&r&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentDidUpdate=function(e){var t=this.state,n=this.props,r=n.item,o=n.onDidMount,i=t.columnMeasureInfo;if(this.props.itemIndex===e.itemIndex&&this.props.item===e.item&&this.props.dragDropHelper===e.dragDropHelper||(this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this.props.dragDropHelper&&this._root.current&&(this._dragDropSubscription=this.props.dragDropHelper.subscribe(this._root.current,this._events,this._getRowDragDropOptions()))),i&&i.index>=0&&this._cellMeasurer.current){var a=this._cellMeasurer.current.getBoundingClientRect().width;i.onMeasureDone(a),this.setState({columnMeasureInfo:void 0})}r&&o&&!this._onDidMountCalled&&(this._onDidMountCalled=!0,o(this))},t.prototype.componentWillUnmount=function(){var e=this.props,t=e.item,n=e.onWillUnmount;n&&t&&n(this),this._dragDropSubscription&&(this._dragDropSubscription.dispose(),delete this._dragDropSubscription),this._events.dispose()},t.prototype.shouldComponentUpdate=function(e,t){if(this.props.useReducedRowRenderer){var n=$b(e);return this.state.selectionState.isSelected!==n.isSelected||!pt(this.props,e)}return!0},t.prototype.render=function(){var e,t=this.props,n=t.className,r=t.columns,o=void 0===r?Qb:r,i=t.dragDropEvents,a=t.item,s=t.itemIndex,l=t.id,c=t.flatIndexOffset,d=void 0===c?2:c,p=t.onRenderCheck,m=void 0===p?this._onRenderCheck:p,h=t.onRenderDetailsCheckbox,f=t.onRenderItemColumn,g=t.onRenderField,y=t.getCellValueKey,b=t.selectionMode,C=t.checkboxVisibility,S=t.getRowAriaLabel,x=t.getRowAriaDescription,k=t.getRowAriaDescribedBy,P=t.isGridRow,I=t.checkButtonAriaLabel,w=t.checkboxCellClassName,E=t.rowFieldsAs,_=t.selection,D=t.indentWidth,T=t.enableUpdateAnimations,R=t.compact,A=t.theme,M=t.styles,N=t.cellsByColumn,F=t.groupNestingDepth,H=t.useFastIcons,O=void 0===H||H,B=t.cellStyleProps,L=t.group,V=t.focusZoneProps,z=t.disabled,W=void 0!==z&&z,U=this.state,K=U.columnMeasureInfo,j=U.isDropping,G=this.state.selectionState,q=G.isSelected,Y=void 0!==q&&q,Z=G.isSelectionModal,J=void 0!==Z&&Z,Q=i?!(!i.canDrag||!i.canDrag(a)):void 0,X=j?this._droppingClassNames||"is-dropping":"",$=S?S(a):void 0,ee=x?x(a):void 0,te=k?k(a):void 0,ne=!!_&&_.canSelectItem(a,s)&&!W,re=b===Vo.multiple,oe=b!==Vo.none&&C!==wy.hidden,ie=b===Vo.none?void 0:Y,ae=L?s-L.startIndex+1:void 0,se=L?L.count:void 0,le=V?V.direction:ou.horizontal;this._classNames=v(v({},this._classNames),Jb(M,{theme:A,isSelected:Y,canSelect:!re,anySelected:J,checkboxCellClassName:w,droppingClassName:X,className:n,compact:R,enableUpdateAnimations:T,cellStyleProps:B,disabled:W}));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};pt(this._rowClassNames||{},ce)||(this._rowClassNames=ce);var de=E?Vn(E,Yb):Yb,ue=u.createElement(de,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(l,"-header"),cellsByColumn:N,columns:o,item:a,itemIndex:s,isSelected:Y,columnStartIndex:(oe?1:0)+(F?1:0),onRenderItemColumn:f,onRenderField:g,getCellValueKey:y,enableUpdateAnimations:T,cellStyleProps:B}),pe=this.props.role?this.props.role:"row";this._ariaRowDescriptionId=Cr("DetailsRow-description");var me=o.some((function(e){return!!e.isRowHeader})),he="".concat(l,"-checkbox")+(me?" ".concat(l,"-header"):""),fe=P?{}:{"aria-level":F&&F+1||void 0,"aria-posinset":ae,"aria-setsize":se};return u.createElement(Cu,v({"data-is-focusable":!0},qr(this.props,Gr),"boolean"===typeof Q?{"data-is-draggable":Q,draggable:Q}:{},V,fe,{direction:le,elementRef:this._root,componentRef:this._focusZone,role:pe,"aria-label":$,"aria-disabled":W||void 0,"aria-describedby":ee?this._ariaRowDescriptionId:te,className:this._classNames.root,"data-selection-index":s,"data-selection-touch-invoke":!0,"data-selection-disabled":null!==(e=this.props["data-selection-disabled"])&&void 0!==e?e:W||void 0,"data-item-index":s,"aria-rowindex":void 0===ae?s+d:void 0,"data-automationid":"DetailsRow","aria-selected":ie,allowFocusRoot:!0}),ee?u.createElement("span",{key:"description",role:"presentation",hidden:!0,id:this._ariaRowDescriptionId},ee):null,oe&&u.createElement("div",{role:"gridcell","data-selection-toggle":!0,className:this._classNames.checkCell},m({id:l?"".concat(l,"-checkbox"):void 0,selected:Y,selectionMode:b,anySelected:J,"aria-label":I,"aria-labelledby":l?he:void 0,canSelect:ne,compact:R,className:this._classNames.check,theme:A,isVisible:C===wy.always,onRenderDetailsCheckbox:h,useFastIcons:O})),u.createElement(Fy,{indentWidth:D,role:"gridcell",count:0===F?-1:F}),a&&ue,K&&u.createElement("span",{role:"presentation",className:Wn(this._classNames.cellMeasurer,this._classNames.cell),ref:this._cellMeasurer},u.createElement(de,{rowClassNames:this._rowClassNames,rowHeaderId:"".concat(l,"-header"),columns:[K.column],item:a,itemIndex:s,columnStartIndex:(oe?1:0)+(F?1:0)+o.length,onRenderItemColumn:f,getCellValueKey:y})))},t.prototype.measureCell=function(e,t){var n=this.props.columns,r=v({},(void 0===n?Qb:n)[e]);r.minWidth=0,r.maxWidth=999999,delete r.calculatedWidth,this.setState({columnMeasureInfo:{index:e,column:r,onMeasureDone:t}})},t.prototype.focus=function(e){var t;return void 0===e&&(e=!1),!!(null===(t=this._focusZone.current)||void 0===t?void 0:t.focus(e))},t.prototype._onRenderCheck=function(e){return u.createElement(Mb,v({},e))},t.prototype._getRowDragDropOptions=function(){var e=this.props,t=e.item,n=e.itemIndex,r=e.dragDropEvents;return{eventMap:e.eventsToRegister,selectionIndex:n,context:{data:t,index:n},canDrag:r.canDrag,canDrop:r.canDrop,onDragStart:r.onDragStart,updateDropState:this._updateDroppingState,onDrop:r.onDrop,onDragEnd:r.onDragEnd,onDragOver:r.onDragOver}},t}(u.Component);function $b(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 eC=Jo(Xb,(function(e){var t,n,r,o,i,a,s,l,c,d,u,p,m,h,f=e.theme,g=e.isSelected,y=e.canSelect,b=e.droppingClassName,C=e.isCheckVisible,S=e.checkboxCellClassName,x=e.compact,k=e.className,P=e.cellStyleProps,I=void 0===P?Vy:P,w=e.enableUpdateAnimations,E=e.disabled,_=f.palette,D=f.fonts,T=_.neutralPrimary,R=_.white,A=_.neutralSecondary,M=_.neutralLighter,N=_.neutralLight,F=_.neutralDark,H=_.neutralQuaternaryAlt,O=f.semanticColors,B=O.focusBorder,L=O.linkHovered,V=os(Ly,f),z={defaultHeaderText:T,defaultMetaText:A,defaultBackground:R,defaultHoverHeaderText:F,defaultHoverMetaText:T,defaultHoverBackground:M,selectedHeaderText:F,selectedMetaText:T,selectedBackground:N,selectedHoverHeaderText:F,selectedHoverMetaText:T,selectedHoverBackground:H,focusHeaderText:F,focusMetaText:T,focusBackground:N,focusHoverBackground:H},W=[Ya(f,{inset:-1,borderColor:B,outlineColor:R,highContrastStyle:{top:2,right:2,bottom:2,left:2},pointerEvents:"none"}),V.isSelected,{color:z.selectedMetaText,background:z.selectedBackground,borderBottom:"1px solid ".concat(R),selectors:(t={"&:before":{position:"absolute",display:"block",top:-1,height:1,bottom:0,left:0,right:0,content:"",borderTop:"1px solid ".concat(R)}},t[".".concat(V.cell," > .").concat(wu.root)]={color:L,selectors:(n={},n[Wa]={color:"HighlightText"},n)},t["&:hover"]={background:z.selectedHoverBackground,color:z.selectedHoverMetaText,selectors:(r={},r[Wa]={background:"Highlight",selectors:(o={},o[".".concat(V.cell)]={color:"HighlightText"},o[".".concat(V.cell," > .").concat(wu.root)]={forcedColorAdjust:"none",color:"HighlightText"},o)},r[".".concat(V.isRowHeader)]={color:z.selectedHoverHeaderText,selectors:(i={},i[Wa]={color:"HighlightText"},i)},r)},t["&:focus"]={background:z.focusBackground,selectors:(a={},a[".".concat(V.cell)]={color:z.focusMetaText,selectors:(s={},s[Wa]={color:"HighlightText",selectors:{"> a":{color:"HighlightText"}}},s)},a[".".concat(V.isRowHeader)]={color:z.focusHeaderText,selectors:(l={},l[Wa]={color:"HighlightText"},l)},a[Wa]={background:"Highlight"},a)},t[Wa]=v(v({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{selectors:{a:{color:"HighlightText"}}}),t["&:focus:hover"]={background:z.focusHoverBackground},t)}],U=[V.isContentUnselectable,{userSelect:"none",cursor:"default"}],K={minHeight:Wy.compactRowHeight,border:0},j={minHeight:Wy.compactRowHeight,paddingTop:Wy.compactRowVerticalPadding,paddingBottom:Wy.compactRowVerticalPadding,paddingLeft:"".concat(I.cellLeftPadding,"px")},G=[Ya(f,{inset:-1}),V.cell,{display:"inline-block",position:"relative",boxSizing:"border-box",minHeight:Wy.rowHeight,verticalAlign:"top",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",paddingTop:Wy.rowVerticalPadding,paddingBottom:Wy.rowVerticalPadding,paddingLeft:"".concat(I.cellLeftPadding,"px"),selectors:(c={"& > button":{maxWidth:"100%"}},c["[data-is-focusable='true']"]=Ya(f,{inset:-1,borderColor:A,outlineColor:R}),c)},g&&{selectors:(d={},d[Wa]=v({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),d)},x&&j,E&&{opacity:.5}];return{root:[V.root,ws.fadeIn400,b,f.fonts.small,C&&V.isCheckVisible,Ya(f,{borderColor:B,outlineColor:R}),{borderBottom:"1px solid ".concat(M),background:z.defaultBackground,color:z.defaultMetaText,display:"inline-flex",minWidth:"100%",minHeight:Wy.rowHeight,whiteSpace:"nowrap",padding:0,boxSizing:"border-box",verticalAlign:"top",textAlign:"left",selectors:(u={},u[".".concat(V.listCellFirstChild," &:before")]={display:"none"},u["&:hover"]={background:z.defaultHoverBackground,color:z.defaultHoverMetaText,selectors:(p={},p[".".concat(V.isRowHeader)]={color:z.defaultHoverHeaderText},p[".".concat(V.cell," > .").concat(wu.root)]={color:L},p)},u["&:hover .".concat(V.check)]={opacity:1},u[".".concat(io," &:focus .").concat(V.check,", :host(.").concat(io,") &:focus .").concat(V.check)]={opacity:1},u[".ms-GroupSpacer"]={flexShrink:0,flexGrow:0},u)},g&&W,!y&&U,x&&K,k],cellUnpadded:{paddingRight:"".concat(I.cellRightPadding,"px")},cellPadded:{paddingRight:"".concat(I.cellExtraRightPadding+I.cellRightPadding,"px"),selectors:(m={},m["&.".concat(V.cellCheck)]={paddingRight:0},m)},cell:G,cellAnimation:w&&_a.slideLeftIn40,cellMeasurer:[V.cellMeasurer,{overflow:"visible",whiteSpace:"nowrap"}],checkCell:[G,V.cellCheck,S,{padding:0,paddingTop:1,marginTop:-1,flexShrink:0}],fields:[V.fields,{display:"flex",alignItems:"stretch"}],isRowHeader:[V.isRowHeader,{color:z.defaultHeaderText,fontSize:D.medium.fontSize},g&&{color:z.selectedHeaderText,fontWeight:Hi.semibold,selectors:(h={},h[Wa]={color:"HighlightText"},h)}],isMultiline:[G,{whiteSpace:"normal",wordBreak:"break-word",textOverflow:"clip"}],check:[V.check]}}),void 0,{scope:"DetailsRow"});function tC(e){return function(t){function n(e){var n=t.call(this,e)||this;return n._root=u.createRef(),n._registerResizeObserver=function(){var e=Ve(n._root.current);n._viewportResizeObserver=new e.ResizeObserver(n._onAsyncResize),n._viewportResizeObserver.observe(n._root.current)},n._unregisterResizeObserver=function(){n._viewportResizeObserver&&(n._viewportResizeObserver.disconnect(),delete n._viewportResizeObserver)},n._updateViewport=function(e){var t=n.state.viewport,r=n._root.current,o=Ve(r),i=dt(Pt(r),o),a=dt(r,o);((a&&a.width)!==t.width||(i&&i.height)!==t.height)&&n._resizeAttempts<3&&a&&i?(n._resizeAttempts++,n.setState({viewport:{width:a.width,height:i.height}},(function(){n._updateViewport(e)}))):(n._resizeAttempts=0,e&&n._composedComponentInstance&&n._composedComponentInstance.forceUpdate())},n._async=new ze(n),n._events=new gt(n),n._resizeAttempts=0,n.state={viewport:{width:0,height:0}},n}return g(n,t),n.prototype.componentDidMount=function(){var e=this,t=this.props,n=t.delayFirstMeasure,r=t.disableResizeObserver,o=t.skipViewportMeasures,i=Ve(this._root.current);this._onAsyncResize=this._async.debounce(this._onAsyncResize,500,{leading:!1}),o||(!r&&this._isResizeObserverAvailable()?this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),n?this._async.setTimeout((function(){e._updateViewport()}),500):this._updateViewport())},n.prototype.componentDidUpdate=function(e){var t=e.skipViewportMeasures,n=this.props,r=n.disableResizeObserver,o=n.skipViewportMeasures,i=Ve(this._root.current);o!==t&&(o?(this._unregisterResizeObserver(),this._events.off(i,"resize",this._onAsyncResize)):(!r&&this._isResizeObserverAvailable()?this._viewportResizeObserver||this._registerResizeObserver():this._events.on(i,"resize",this._onAsyncResize),this._updateViewport()))},n.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._unregisterResizeObserver()},n.prototype.render=function(){var t=this.state.viewport,n=t.width>0&&t.height>0?t:void 0;return u.createElement("div",{className:"ms-Viewport",ref:this._root,style:{minWidth:1,minHeight:1}},u.createElement(e,v({ref:this._updateComposedComponentRef,viewport:n},this.props)))},n.prototype.forceUpdate=function(){this._updateViewport(!0)},n.prototype._onAsyncResize=function(){this._updateViewport()},n.prototype._isResizeObserverAvailable=function(){var e=Ve(this._root.current);return e&&e.ResizeObserver},n}(fp)}var nC=wn(),rC=100,oC={tabIndex:0},iC={},aC=function(e){var t=e.selection,n=e.ariaLabelForListHeader,r=e.ariaLabelForSelectAllCheckbox,o=e.ariaLabelForSelectionColumn,i=e.className,a=e.checkboxVisibility,s=e.compact,l=e.constrainMode,c=e.dragDropEvents,d=e.groups,p=e.groupProps,m=e.indentWidth,h=e.items,f=e.isPlaceholderData,g=e.isHeaderVisible,y=e.layoutMode,b=e.onItemInvoked,S=e.onItemContextMenu,x=e.onColumnHeaderClick,k=e.onColumnHeaderContextMenu,P=e.selectionMode,I=void 0===P?t.mode:P,w=e.selectionPreservedOnEmptyClick,E=e.selectionZoneProps,_=e.ariaLabel,D=e.ariaLabelForGrid,T=e.rowElementEventMap,R=e.shouldApplyApplicationRole,A=void 0!==R&&R,M=e.getKey,N=e.listProps,F=e.usePageCache,H=e.onShouldVirtualize,O=e.viewport,B=e.minimumPixelsForDrag,L=e.getGroupHeight,V=e.styles,z=e.theme,W=e.cellStyleProps,U=void 0===W?Vy:W,K=e.onRenderCheckbox,j=e.useFastIcons,G=e.dragDropHelper,q=e.adjustedColumns,Y=e.isCollapsed,Z=e.isSizing,J=e.isSomeGroupExpanded,Q=e.version,X=e.rootRef,$=e.listRef,ee=e.focusZoneRef,te=e.columnReorderOptions,ne=e.groupedListRef,re=e.headerRef,oe=e.onGroupExpandStateChanged,ie=e.onColumnIsSizingChanged,ae=e.onRowDidMount,se=e.onRowWillUnmount,le=e.disableSelectionZone,ce=e.isSelectedOnFocus,de=void 0===ce||ce,ue=e.onColumnResized,pe=e.onColumnAutoResized,me=e.onToggleCollapse,he=e.onActiveRowChanged,fe=e.onBlur,ge=e.rowElementEventMap,ve=e.onRenderMissingItem,ye=e.onRenderItemColumn,be=e.onRenderField,Ce=e.getCellValueKey,Se=e.getRowAriaLabel,xe=e.getRowAriaDescribedBy,ke=e.checkButtonAriaLabel,Pe=e.checkButtonGroupAriaLabel,Ie=e.checkboxCellClassName,we=e.useReducedRowRenderer,Ee=e.enableUpdateAnimations,_e=e.enterModalSelectionOnTouch,De=e.onRenderDefaultRow,Te=e.selectionZoneRef,Re=e.focusZoneProps,Ae="grid",Me=e.role?e.role:Ae,Ne=Cr("row"),Fe=function(e){var t=0,n=e;for(;n&&n.length>0;)t++,n=n[0].children;return t}(d),He=function(e){return u.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),Oe=u.useMemo((function(){return v({renderedWindowsAhead:Z?0:2,renderedWindowsBehind:Z?0:2,getKey:M,version:Q},N)}),[Z,M,Q,N]),Be=Ab.none;if(I===Vo.single&&(Be=Ab.hidden),I===Vo.multiple){var Le=p&&p.headerProps&&p.headerProps.isCollapsedGroupSelectVisible;void 0===Le&&(Le=!0),Be=Le||!d||J?Ab.visible:Ab.hidden}a===wy.hidden&&(Be=Ab.none);var Ve=u.useCallback((function(e){return u.createElement(qb,v({},e))}),[]),ze=u.useCallback((function(){return null}),[]),We=e.onRenderDetailsHeader,Ue=u.useMemo((function(){return We?Lo(We,Ve):Ve}),[We,Ve]),Ke=e.onRenderDetailsFooter,je=u.useMemo((function(){return Ke?Lo(Ke,ze):ze}),[Ke,ze]),Ge=u.useMemo((function(){return{columns:q,groupNestingDepth:Fe,selection:t,selectionMode:I,viewport:O,checkboxVisibility:a,indentWidth:m,cellStyleProps:U}}),[q,Fe,t,I,O,a,m,U]),qe=te&&te.onDragEnd,Ye=u.useCallback((function(e,t){var n=e.dropLocation,r=Py.outside;if(qe){if(n&&n!==Py.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=Py.surface)}qe(r)}}),[qe,X]),Ze=u.useMemo((function(){if(te)return v(v({},te),{onColumnDragEnd:Ye})}),[te,Ye]),Je=(g?1:0)+(e.onRenderDetailsFooter?1:0)+function(e){var t=0;if(e)for(var n=C([],e,!0),r=void 0;n&&n.length>0;)++t,(r=n.pop())&&r.children&&n.push.apply(n,r.children);return t}(d)+(h?h.length:0),Qe=(Be!==Ab.none?1:0)+(q?q.length:0)+(d?1:0),Xe=u.useMemo((function(){return nC(V,{theme:z,compact:s,isFixed:y===Iy.fixedColumns,isHorizontalConstrained:l===ky.horizontalConstrained,className:i})}),[V,z,s,y,l,i]),$e=p&&p.onRenderFooter,et=u.useMemo((function(){return $e?function(e,n){return $e(v(v({},e),{columns:q,groupNestingDepth:Fe,indentWidth:m,selection:t,selectionMode:I,viewport:O,checkboxVisibility:a,cellStyleProps:U}),n)}:void 0}),[$e,q,Fe,m,t,I,O,a,U]),tt=p&&p.onRenderHeader,nt=u.useMemo((function(){return tt?function(e,n){var r,o,i=e.groupIndex,s=void 0!==i?null===(o=null===(r=e.groups)||void 0===r?void 0:r[i])||void 0===o?void 0:o.key:void 0,l=void 0!==s&&He[s]?He[s].totalRowCount:0;return tt(v(v({},e),{columns:q,groupNestingDepth:Fe,indentWidth:m,selection:t,selectionMode:a!==wy.hidden?I:Vo.none,viewport:O,checkboxVisibility:a,cellStyleProps:U,ariaColSpan:q.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==i?l+(g?1:0):void 0}),n)}:function(e,t){var n,r,o=e.groupIndex,i=void 0!==o?null===(r=null===(n=e.groups)||void 0===n?void 0:n[o])||void 0===r?void 0:r.key:void 0,a=void 0!==i&&He[i]?He[i].totalRowCount:0;return t(v(v({},e),{ariaColSpan:q.length,ariaLevel:void 0,ariaPosInSet:void 0,ariaSetSize:void 0,ariaRowCount:void 0,ariaRowIndex:void 0!==o?a+(g?1:0):void 0}))}}),[tt,q,Fe,m,g,t,I,O,a,U,He]),rt=u.useMemo((function(){var e;return v(v({},p),{role:Me===Ae?"rowgroup":"presentation",onRenderFooter:et,onRenderHeader:nt,headerProps:v(v({},null===p||void 0===p?void 0:p.headerProps),{selectAllButtonProps:v({"aria-label":Pe},null===(e=null===p||void 0===p?void 0:p.headerProps)||void 0===e?void 0:e.selectAllButtonProps)})})}),[p,et,nt,Pe,Me]),ot=zl((function(){return Fn((function(e){var t=0;return e.forEach((function(e){return t+=e.calculatedWidth||e.minWidth})),t}))})),it=p&&p.collapseAllVisibility,at=u.useMemo((function(){return ot(q)}),[q,ot]),st=u.useCallback((function(n,r,o,i){var l=e.onRenderRow?Lo(e.onRenderRow,De):De,d=i?i.key:void 0,u=d&&He[d]?He[d].numOfGroupHeadersBeforeItem:0,p=Me===Ae?void 0:"presentation",h=o>0?iC:oC,f={item:r,itemIndex:o,flatIndexOffset:(g?2:1)+u,compact:s,columns:q,groupNestingDepth:n,id:"".concat(Ne,"-").concat(o),selectionMode:I,selection:t,onDidMount:ae,onWillUnmount:se,onRenderItemColumn:ye,onRenderField:be,getCellValueKey:Ce,eventsToRegister:ge,dragDropEvents:c,dragDropHelper:G,viewport:O,checkboxVisibility:a,collapseAllVisibility:it,getRowAriaLabel:Se,getRowAriaDescribedBy:xe,checkButtonAriaLabel:ke,checkboxCellClassName:Ie,useReducedRowRenderer:we,indentWidth:m,cellStyleProps:U,onRenderDetailsCheckbox:K,enableUpdateAnimations:Ee,rowWidth:at,useFastIcons:j,role:p,isGridRow:!0,focusZoneProps:h};return r?l(f):ve?ve(o,f):null}),[s,q,I,t,Ne,ae,se,ye,be,Ce,ge,c,G,O,a,it,Se,xe,g,ke,Ie,we,m,U,K,Ee,j,De,ve,e.onRenderRow,at,Me,He]),lt=u.useCallback((function(e){return function(t,n){return st(e,t,n)}}),[st]),ct=u.useCallback((function(e){return e.which===xn(en,z)}),[z]),dt=v(v({},Re),{componentRef:Re&&Re.componentRef?Re.componentRef:ee,className:Re&&Re.className?Wn(Xe.focusZone,Re.className):Xe.focusZone,direction:Re?Re.direction:ou.vertical,shouldEnterInnerZone:Re&&Re.shouldEnterInnerZone?Re.shouldEnterInnerZone:ct,onActiveElementChanged:Re&&Re.onActiveElementChanged?Re.onActiveElementChanged:he,shouldRaiseClicksOnEnter:!1,onBlur:Re&&Re.onBlur?Re.onBlur:fe}),ut=d&&(null===p||void 0===p?void 0:p.groupedListAs)?Vn(p.groupedListAs,gb):gb,pt=d?u.createElement(ut,{focusZoneProps:dt,componentRef:ne,groups:d,groupProps:rt,items:h,onRenderCell:st,role:"presentation",selection:t,selectionMode:a!==wy.hidden?I:Vo.none,dragDropEvents:c,dragDropHelper:G,eventsToRegister:T,listProps:Oe,onGroupExpandStateChanged:oe,usePageCache:F,onShouldVirtualize:H,getGroupHeight:L,compact:s}):u.createElement(Cu,v({},dt),u.createElement(oy,v({ref:$,role:"presentation",items:h,onRenderCell:lt(0),usePageCache:F,onShouldVirtualize:H},Oe))),mt=u.useCallback((function(e){e.which===tn&&ee.current&&ee.current.focus()&&(de&&0===t.getSelectedIndices().length&&t.setIndexSelected(0,!0,!1),e.preventDefault(),e.stopPropagation())}),[t,ee,de]),ht=u.useCallback((function(e){e.which!==$t||e.altKey||re.current&&re.current.focus()&&(e.preventDefault(),e.stopPropagation())}),[re]);return u.createElement("div",v({ref:X,className:Xe.root,"data-automationid":"DetailsList","data-is-scrollable":"false"},A?{role:"application"}:{}),u.createElement(go,null),u.createElement("div",{role:Me,"aria-label":D||_,"aria-rowcount":f?0:Je,"aria-colcount":Qe,"aria-busy":f},u.createElement("div",{onKeyDown:mt,role:"presentation",className:Xe.headerWrapper},g&&Ue({componentRef:re,selectionMode:I,layoutMode:y,selection:t,columns:q,onColumnClick:x,onColumnContextMenu:k,onColumnResized:ue,onColumnIsSizingChanged:ie,onColumnAutoResized:pe,groupNestingDepth:Fe,isAllCollapsed:Y,onToggleCollapseAll:me,ariaLabel:n,ariaLabelForSelectAllCheckbox:r,ariaLabelForSelectionColumn:o,selectAllVisibility:Be,collapseAllVisibility:p&&p.collapseAllVisibility,viewport:O,columnReorderProps:Ze,minimumPixelsForDrag:B,cellStyleProps:U,checkboxVisibility:a,indentWidth:m,onRenderDetailsCheckbox:K,rowWidth:ot(q),useFastIcons:j},Ue)),u.createElement("div",{onKeyDown:ht,role:"presentation",className:Xe.contentWrapper},le?pt:u.createElement(Ay,v({ref:Te,selection:t,selectionPreservedOnEmptyClick:w,selectionMode:I,isSelectedOnFocus:de,selectionClearedOnEscapePress:de,toggleWithoutModifierPressed:!de,onItemInvoked:b,onItemContextMenu:S,enterModalOnTouch:_e},E||{}),pt)),je(v({},Ge))))},sC=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._header=u.createRef(),n._groupedList=u.createRef(),n._list=u.createRef(),n._focusZone=u.createRef(),n._selectionZone=u.createRef(),n._onRenderRow=function(e,t){return u.createElement(eC,v({},e))},n._getDerivedStateFromProps=function(e,t){var r=n.props,o=r.checkboxVisibility,i=r.items,a=r.setKey,s=r.selectionMode,l=void 0===s?n._selection.mode:s,c=r.columns,d=r.viewport,u=r.compact,p=r.dragDropEvents,m=(n.props.groupProps||{}).isAllGroupsCollapsed,h=void 0===m?void 0:m,f=e.viewport&&e.viewport.width||0,g=d&&d.width||0,y=e.setKey!==a||void 0===e.setKey,b=!1;e.layoutMode!==n.props.layoutMode&&(b=!0);var C=t;return y&&(n._initialFocusedIndex=e.initialFocusedIndex,C=v(v({},C),{focusedItemIndex:void 0!==n._initialFocusedIndex?n._initialFocusedIndex:-1})),n.props.disableSelectionZone||e.items===i||n._selection.setItems(e.items,y),e.checkboxVisibility===o&&e.columns===c&&f===g&&e.compact===u||(b=!0),C=v(v({},C),n._adjustColumns(e,C,!0)),e.selectionMode!==l&&(b=!0),void 0===h&&e.groupProps&&void 0!==e.groupProps.isAllGroupsCollapsed&&(C=v(v({},C),{isCollapsed:e.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:!e.groupProps.isAllGroupsCollapsed})),e.dragDropEvents!==p&&(n._dragDropHelper&&n._dragDropHelper.dispose(),n._dragDropHelper=e.dragDropEvents?new Nb({selection:n._selection,minimumPixelsForDrag:e.minimumPixelsForDrag}):void 0,b=!0),b&&(C=v(v({},C),{version:{}})),C},n._onGroupExpandStateChanged=function(e){n.setState({isSomeGroupExpanded:e})},n._onColumnIsSizingChanged=function(e,t){n.setState({isSizing:t})},n._onRowDidMount=function(e){var t=e.props,r=t.item,o=t.itemIndex,i=n._getItemKey(r,o);n._activeRows[i]=e,n._setFocusToRowIfPending(e);var a=n.props.onRowDidMount;a&&a(r,o)},n._onRowWillUnmount=function(e){var t=n.props.onRowWillUnmount,r=e.props,o=r.item,i=r.itemIndex,a=n._getItemKey(o,i);delete n._activeRows[a],t&&t(o,i)},n._onToggleCollapse=function(e){n.setState({isCollapsed:e}),n._groupedList.current&&n._groupedList.current.toggleCollapseAll(e)},n._onColumnResized=function(e,t,r){var o=Math.max(e.minWidth||rC,t);n.props.onColumnResize&&n.props.onColumnResize(e,o,r),n._rememberCalculatedWidth(e,o),n.setState(v(v({},n._adjustColumns(n.props,n.state,!0,r)),{version:{}}))},n._onColumnAutoResized=function(e,t){var r=0,o=0,i=Object.keys(n._activeRows).length;for(var a in n._activeRows){if(n._activeRows.hasOwnProperty(a))n._activeRows[a].measureCell(t,(function(a){r=Math.max(r,a),++o===i&&n._onColumnResized(e,r,t)}))}},n._onActiveRowChanged=function(e,t){var r=n.props,o=r.items,i=r.onActiveItemChanged;if(e&&e.getAttribute("data-item-index")){var a=Number(e.getAttribute("data-item-index"));a>=0&&(i&&i(o[a],a,t),n.setState({focusedItemIndex:a}))}},n._onBlur=function(e){n.setState({focusedItemIndex:-1})},Xr(n),n._async=new ze(n),n._activeRows={},n._columnOverrides={},n.state={focusedItemIndex:-1,lastWidth:0,adjustedColumns:n._getAdjustedColumns(t,void 0),isSizing:!1,isCollapsed:t.groupProps&&t.groupProps.isAllGroupsCollapsed,isSomeGroupExpanded:t.groupProps&&!t.groupProps.isAllGroupsCollapsed,version:{},getDerivedStateFromProps:n._getDerivedStateFromProps},Tt("DetailsList",t,{selection:"getKey"}),n._selection=t.selection||new Uo({onSelectionChanged:void 0,getKey:t.getKey,selectionMode:t.selectionMode}),n.props.disableSelectionZone||n._selection.setItems(t.items,!1),n._dragDropHelper=t.dragDropEvents?new Nb({selection:n._selection,minimumPixelsForDrag:t.minimumPixelsForDrag}):void 0,n._initialFocusedIndex=t.initialFocusedIndex,n}return g(t,e),t.getDerivedStateFromProps=function(e,t){return t.getDerivedStateFromProps(e,t)},t.prototype.scrollToIndex=function(e,t,n){this._list.current&&this._list.current.scrollToIndex(e,t,n),this._groupedList.current&&this._groupedList.current.scrollToIndex(e,t,n)},t.prototype.focusIndex=function(e,t,n,r){void 0===t&&(t=!1);var o=this.props.items[e];if(o){this.scrollToIndex(e,n,r);var i=this._getItemKey(o,e),a=this._activeRows[i];a&&this._setFocusToRow(a,t)}},t.prototype.getStartItemIndexInView=function(){return this._list&&this._list.current?this._list.current.getStartItemIndexInView():this._groupedList&&this._groupedList.current?this._groupedList.current.getStartItemIndexInView():0},t.prototype.updateColumn=function(e,t){var n,r,o=this.props,i=o.columns,a=void 0===i?[]:i,s=o.selectionMode,l=o.checkboxVisibility,c=o.columnReorderOptions,d=t.width,u=t.newColumnIndex,p=a.findIndex((function(t){return t.key===e.key}));if(d&&this._onColumnResized(e,d,p),void 0!==u&&c){var m=s===Vo.none||l===wy.hidden,h=(l!==wy.hidden?2:1)+p,f=m?h-1:h-2,g=m?u-1:u-2,v=null!==(n=c.frozenColumnCountFromStart)&&void 0!==n?n:0,y=null!==(r=c.frozenColumnCountFromEnd)&&void 0!==r?r:0;if(g>=v&&g<a.length-y)if(c.onColumnDrop){var b={draggedIndex:f,targetIndex:g};c.onColumnDrop(b)}else c.handleColumnReorder&&c.handleColumnReorder(f,g)}},t.prototype.componentWillUnmount=function(){this._dragDropHelper&&this._dragDropHelper.dispose(),this._async.dispose()},t.prototype.componentDidUpdate=function(e,t){this._notifyColumnsResized();var n=sc(this.context);if(void 0!==this._initialFocusedIndex&&(a=this.props.items[this._initialFocusedIndex])){var r=this._getItemKey(a,this._initialFocusedIndex);(o=this._activeRows[r])&&this._setFocusToRowIfPending(o)}if(this.props.items!==e.items&&this.props.items.length>0&&-1!==this.state.focusedItemIndex&&!Ke(this._root.current,null===n||void 0===n?void 0:n.activeElement,!1)){var o,i=this.state.focusedItemIndex<this.props.items.length?this.state.focusedItemIndex:this.props.items.length-1,a=this.props.items[i];r=this._getItemKey(a,this.state.focusedItemIndex);(o=this._activeRows[r])?this._setFocusToRow(o):this._initialFocusedIndex=i}this.props.onDidUpdate&&this.props.onDidUpdate(this)},t.prototype.render=function(){return u.createElement(aC,v({},this.props,this.state,{selection:this._selection,dragDropHelper:this._dragDropHelper,rootRef:this._root,listRef:this._list,groupedListRef:this._groupedList,focusZoneRef:this._focusZone,headerRef:this._header,selectionZoneRef:this._selectionZone,onGroupExpandStateChanged:this._onGroupExpandStateChanged,onColumnIsSizingChanged:this._onColumnIsSizingChanged,onRowDidMount:this._onRowDidMount,onRowWillUnmount:this._onRowWillUnmount,onColumnResized:this._onColumnResized,onColumnAutoResized:this._onColumnAutoResized,onToggleCollapse:this._onToggleCollapse,onActiveRowChanged:this._onActiveRowChanged,onBlur:this._onBlur,onRenderDefaultRow:this._onRenderRow}))},t.prototype.forceUpdate=function(){e.prototype.forceUpdate.call(this),this._forceListUpdates()},t.prototype._getGroupNestingDepth=function(){for(var e=0,t=this.props.groups;t&&t.length>0;)e++,t=t[0].children;return e},t.prototype._setFocusToRowIfPending=function(e){var t=e.props.itemIndex;void 0!==this._initialFocusedIndex&&t===this._initialFocusedIndex&&(this._setFocusToRow(e),delete this._initialFocusedIndex)},t.prototype._setFocusToRow=function(e,t){void 0===t&&(t=!1),this._selectionZone.current&&this._selectionZone.current.ignoreNextFocus(),this._async.setTimeout((function(){e.focus(t)}),0)},t.prototype._forceListUpdates=function(){this._groupedList.current&&this._groupedList.current.forceUpdate(),this._list.current&&this._list.current.forceUpdate()},t.prototype._notifyColumnsResized=function(){this.state.adjustedColumns.forEach((function(e){e.onColumnResize&&e.onColumnResize(e.currentWidth)}))},t.prototype._adjustColumns=function(e,t,n,r){var o=this._getAdjustedColumns(e,t,n,r),i=this.props.viewport,a=i&&i.width?i.width:0;return v(v({},t),{adjustedColumns:o,lastWidth:a})},t.prototype._getAdjustedColumns=function(e,t,n,r){var o,i=this,a=e.items,s=e.layoutMode,l=e.selectionMode,c=e.viewport,d=c&&c.width?c.width:0,u=e.columns,p=this.props?this.props.columns:[],m=t?t.lastWidth:-1,h=t?t.lastSelectionMode:void 0;return n||m!==d||h!==l||p&&u!==p?(u=u||function(e,t,n,r,o,i,a,s){var l=[];if(e&&e.length){var c=e[0];for(var d in c)c.hasOwnProperty(d)&&l.push({key:d,name:d,fieldName:d,minWidth:rC,maxWidth:300,isCollapsible:!!l.length,isMultiline:void 0!==a&&a,isSorted:r===d,isSortedDescending:!!o,isRowHeader:!1,columnActionsMode:null!==s&&void 0!==s?s:xy.clickable,isResizable:t,onColumnClick:n,isGrouped:i===d})}return l}(a,!0),s===Iy.fixedColumns?(o=this._getFixedColumns(u,d,e)).forEach((function(e){i._rememberCalculatedWidth(e,e.calculatedWidth)})):(o=this._getJustifiedColumns(u,d,e)).forEach((function(e){i._getColumnOverride(e.key).currentWidth=e.calculatedWidth})),o):u||[]},t.prototype._getFixedColumns=function(e,t,n){var r=this,o=this.props,i=o.selectionMode,a=void 0===i?this._selection.mode:i,s=o.checkboxVisibility,l=o.flexMargin,c=o.skipViewportMeasures,d=t-(l||0),u=0;e.forEach((function(e){c||!e.flexGrow?d-=e.maxWidth||e.minWidth||rC:(d-=e.minWidth||rC,u+=e.flexGrow),d-=lC(e,n,!0)}));var p=a!==Vo.none&&s!==wy.hidden?48:0,m=36*this._getGroupNestingDepth(),h=(d-=p+m)/u;return c||e.forEach((function(e){var t=v(v({},e),r._columnOverrides[e.key]);if(t.flexGrow&&t.maxWidth){var n=t.flexGrow*h+t.minWidth,o=n-t.maxWidth;o>0&&(d+=o,u-=o/(n-t.minWidth)*t.flexGrow)}})),h=d>0?d/u:0,e.map((function(e){var n=v(v({},e),r._columnOverrides[e.key]);return!c&&n.flexGrow&&d<=0&&0===t||n.calculatedWidth||(!c&&n.flexGrow?(n.calculatedWidth=n.minWidth+n.flexGrow*h,n.calculatedWidth=Math.min(n.calculatedWidth,n.maxWidth||Number.MAX_VALUE)):n.calculatedWidth=n.maxWidth||n.minWidth||rC),n}))},t.prototype._getJustifiedColumns=function(e,t,n){var r=this,o=n.selectionMode,i=void 0===o?this._selection.mode:o,a=n.checkboxVisibility,s=n.skipViewportMeasures,l=i!==Vo.none&&a!==wy.hidden?48:0,c=36*this._getGroupNestingDepth(),d=0,u=0,p=t-(l+c),m=e.map((function(e,t){var o=v(v({},e),{calculatedWidth:e.minWidth||rC}),i=v(v({},o),r._columnOverrides[e.key]);return o.isCollapsible||o.isCollapsable||(u+=lC(o,n)),d+=lC(i,n),i}));if(s)return m;for(var h=m.length-1;h>=0&&d>p;){var f=(C=m[h]).minWidth||rC,g=d-p;if(C.calculatedWidth-f>=g||!C.isCollapsible&&!C.isCollapsable){var y=C.calculatedWidth;u<p&&(C.calculatedWidth=Math.max(C.calculatedWidth-g,f)),d-=y-C.calculatedWidth}else d-=lC(C,n),m.splice(h,1);h--}for(var b=0;b<m.length&&d<p;b++){var C=m[b],S=b===m.length-1,x=this._columnOverrides[C.key];if(!x||!x.calculatedWidth||S){var k=p-d,P=void 0;if(S)P=k;else{var I=C.maxWidth;f=C.minWidth||I||rC;P=I?Math.min(k,I-f):k}C.calculatedWidth=C.calculatedWidth+P,d+=P}}return m},t.prototype._rememberCalculatedWidth=function(e,t){var n=this._getColumnOverride(e.key);n.calculatedWidth=t,n.currentWidth=t},t.prototype._getColumnOverride=function(e){return this._columnOverrides[e]=this._columnOverrides[e]||{}},t.prototype._getItemKey=function(e,t){var n=this.props.getKey,r=void 0;return e&&(r=e.key),n&&(r=n(e,t)),r||(r=t),r},t.defaultProps={layoutMode:Iy.justified,selectionMode:Vo.multiple,constrainMode:ky.horizontalConstrained,checkboxVisibility:wy.onHover,isHeaderVisible:!0,compact:!1,useFastIcons:!0},t.contextType=dr,t=b([tC],t)}(u.Component);function lC(e,t,n){var r=t.cellStyleProps,o=void 0===r?Vy:r;return(n?0:e.calculatedWidth)+o.cellLeftPadding+o.cellRightPadding+(e.isPadded?o.cellExtraRightPadding:0)}var cC,dC={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"},uC=Jo(sC,(function(e){var t,n,r=e.theme,o=e.className,i=e.isHorizontalConstrained,a=e.compact,s=e.isFixed,l=r.semanticColors,c=os(dC,r);return{root:[c.root,r.fonts.small,{position:"relative",color:l.listText,selectors:(t={},t["& .".concat(c.listCell)]={minHeight:38,wordBreak:"break-word"},t)},s&&c.isFixed,a&&[c.compact,{selectors:(n={},n[".".concat(c.listCell)]={minHeight:32},n)}],i&&[c.isHorizontalConstrained,{overflowX:"auto",overflowY:"visible",WebkitOverflowScrolling:"touch"}],o],focusZone:[{display:"inline-block",minWidth:"100%",minHeight:1}],headerWrapper:c.headerWrapper,contentWrapper:c.contentWrapper}}),void 0,{scope:"DetailsList"});!function(e){e[e.normal=0]="normal",e[e.largeHeader=1]="largeHeader",e[e.close=2]="close"}(cC||(cC={}));var pC=Ia,mC={root:"ms-Modal",main:"ms-Dialog-main",scrollableContent:"ms-Modal-scrollableContent",isOpen:"is-open",layer:"ms-Modal-Layer"},hC=wn(),fC=function(e){function t(t){var n=e.call(this,t)||this;Xr(n);var r=n.props.allowTouchBodyScroll,o=void 0!==r&&r;return n._allowTouchBodyScroll=o,n}return g(t,e),t.prototype.componentDidMount=function(){!this._allowTouchBodyScroll&&function(){var e=Je();e&&e.body&&!vt&&(e.body.classList.add(yt),e.body.addEventListener("touchmove",xt,{passive:!1,capture:!1})),vt++}()},t.prototype.componentWillUnmount=function(){!this._allowTouchBodyScroll&&function(){if(vt>0){var e=Je();e&&e.body&&1===vt&&(e.body.classList.remove(yt),e.body.removeEventListener("touchmove",xt)),vt--}}()},t.prototype.render=function(){var e=this.props,t=e.isDarkThemed,n=e.className,r=e.theme,o=e.styles,i=qr(this.props,Gr),a=hC(o,{theme:r,className:n,isDark:t});return u.createElement("div",v({},i,{className:a.root}))},t}(u.Component),gC={root:"ms-Overlay",rootDark:"ms-Overlay--dark"},vC=Jo(fC,(function(e){var t,n=e.className,r=e.theme,o=e.isNone,i=e.isDark,a=r.palette,s=os(gC,r);return{root:[s.root,r.fonts.medium,{backgroundColor:a.whiteTranslucent40,top:0,right:0,bottom:0,left:0,position:"absolute",selectors:(t={},t[Wa]={border:"1px solid WindowText",opacity:0},t)},o&&{visibility:"hidden"},i&&[s.rootDark,{backgroundColor:a.blackTranslucent40}],n]}}),void 0,{scope:"Overlay"}),yC=Fn((function(e,t){return{root:we(e,t&&{touchAction:"none",selectors:{"& *":{userSelect:"none"}}})}})),bC={start:"touchstart",move:"touchmove",stop:"touchend"},CC={start:"mousedown",move:"mousemove",stop:"mouseup"},SC=function(e){function t(t){var n=e.call(this,t)||this;return n._currentEventType=CC,n._events=[],n._onMouseDown=function(e){var t=u.Children.only(n.props.children).props.onMouseDown;return t&&t(e),n._currentEventType=CC,n._onDragStart(e)},n._onMouseUp=function(e){var t=u.Children.only(n.props.children).props.onMouseUp;return t&&t(e),n._currentEventType=CC,n._onDragStop(e)},n._onTouchStart=function(e){var t=u.Children.only(n.props.children).props.onTouchStart;return t&&t(e),n._currentEventType=bC,n._onDragStart(e)},n._onTouchEnd=function(e){var t=u.Children.only(n.props.children).props.onTouchEnd;t&&t(e),n._currentEventType=bC,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});var o=sc(n.context);n._events=[ut(o.body,n._currentEventType.move,n._onDrag,!0),ut(o.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 g(t,e),t.prototype.componentDidUpdate=function(e){!this.props.position||e.position&&this.props.position===e.position||this.setState({position:this.props.position})},t.prototype.componentWillUnmount=function(){this._events.forEach((function(e){return e()}))},t.prototype.render=function(){var e=u.Children.only(this.props.children),t=e.props,n=this.props.position,r=this.state,o=r.position,i=r.isDragging,a=o.x,s=o.y;return n&&!i&&(a=n.x,s=n.y),u.cloneElement(e,{style:v(v({},t.style),{transform:"translate(".concat(a,"px, ").concat(s,"px)")}),className:yC(t.className,this.state.isDragging).root,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onTouchStart:this._onTouchStart,onTouchEnd:this._onTouchEnd})},t.prototype._getControlPosition=function(e){var t=this._getActiveTouch(e);if(void 0===this._touchId||t){var n=t||e;return{x:n.clientX,y:n.clientY}}},t.prototype._getActiveTouch=function(e){return e.targetTouches&&this._findTouchInTouchList(e.targetTouches)||e.changedTouches&&this._findTouchInTouchList(e.changedTouches)},t.prototype._getTouchId=function(e){var t=e.targetTouches&&e.targetTouches[0]||e.changedTouches&&e.changedTouches[0];if(t)return t.identifier},t.prototype._matchesSelector=function(e,t){var n;if(!e||e===(null===(n=sc(this.context))||void 0===n?void 0:n.body))return!1;var r=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return!!r&&(r.call(e,t)||this._matchesSelector(e.parentElement,t))},t.prototype._findTouchInTouchList=function(e){if(void 0!==this._touchId)for(var t=0;t<e.length;t++)if(e[t].identifier===this._touchId)return e[t]},t.prototype._createDragDataFromPosition=function(e){var t=this.state.lastPosition;return void 0===t?{delta:{x:0,y:0},lastPosition:e,position:e}:{delta:{x:e.x-t.x,y:e.y-t.y},lastPosition:t,position:e}},t.prototype._createUpdatedDragData=function(e){var t=this.state.position;return{position:{x:t.x+e.delta.x,y:t.y+e.delta.y},delta:e.delta,lastPosition:t}},t.contextType=dr,t}(u.Component),xC={x:0,y:0},kC={isOpen:!1,isDarkOverlay:!0,className:"",containerClassName:"",enableAriaHiddenSiblings:!0},PC=wn(),IC=u.forwardRef((function(e,t){var n,r,o,i,a,s=$o(kC,e),l=s.allowTouchBodyScroll,c=s.className,d=s.children,p=s.containerClassName,m=s.scrollableContentClassName,h=s.elementToFocusOnDismiss,f=s.firstFocusableSelector,g=s.focusTrapZoneProps,y=s.forceFocusInsideTrap,b=s.disableRestoreFocus,C=void 0===b?s.ignoreExternalFocusing:b,S=s.isBlocking,x=s.isAlert,k=s.isClickableOutsideFocusTrap,P=s.isDarkOverlay,I=s.onDismiss,w=s.layerProps,E=s.overlay,_=s.isOpen,D=s.titleAriaId,T=s.styles,R=s.subtitleAriaId,A=s.theme,M=s.topOffsetFixed,N=s.responsiveMode,F=s.onLayerDidMount,H=s.isModeless,O=s.dragOptions,B=s.onDismissed,L=s.enableAriaHiddenSiblings,V=s.popupProps,z=u.useRef(null),W=u.useRef(null),U=Gl(W,null===g||void 0===g?void 0:g.componentRef),K=u.useRef(null),j=Gl(z,t),G=kp(j),q=jl("ModalFocusTrapZone",null===g||void 0===g?void 0:g.id),Y=ur(),Z=Jl(),J=Z.setTimeout,Q=Z.clearTimeout,X=u.useState(_),$=X[0],ee=X[1],te=u.useState(_),ne=te[0],re=te[1],oe=u.useState(xC),ie=oe[0],ae=oe[1],se=u.useState(),le=se[0],ce=se[1],de=Wl(!1),ue=de[0],pe=de[1],me=pe.toggle,he=pe.setFalse,fe=zl((function(){return{onModalCloseTimer:0,allowTouchBodyScroll:l,scrollableContent:null,lastSetCoordinates:xC,events:new gt({})}})),ge=(O||{}).keepInBounds,ve=null!==x&&void 0!==x?x:S&&!H,ye=void 0===w?"":w.className,be=PC(T,{theme:A,className:c,containerClassName:p,scrollableContentClassName:m,isOpen:_,isVisible:ne,hasBeenOpened:fe.hasBeenOpened,modalRectangleTop:le,topOffsetFixed:M,isModeless:H,layerClassName:ye,windowInnerHeight:null===Y||void 0===Y?void 0:Y.innerHeight,isDefaultDragHandle:O&&!O.dragHandleSelector}),Ce=v(v({eventBubblingEnabled:!1},w),{onLayerDidMount:w&&w.onLayerDidMount?w.onLayerDidMount:F,insertFirst:(null===w||void 0===w?void 0:w.insertFirst)||H,className:be.layer}),Se=u.useCallback((function(e){e?fe.allowTouchBodyScroll?St(e,fe.events):Ct(e,fe.events):fe.events.off(fe.scrollableContent),fe.scrollableContent=e}),[fe]),xe=function(){var e=K.current,t=null===e||void 0===e?void 0:e.getBoundingClientRect();t&&(M&&ce(t.top),ge&&(fe.minPosition={x:-t.left,y:-t.top},fe.maxPosition={x:t.left,y:t.top}))},ke=u.useCallback((function(e,t){var n=fe.minPosition,r=fe.maxPosition;return ge&&n&&r&&(t=Math.max(n[e],t),t=Math.min(r[e],t)),t}),[ge,fe]),Pe=function(){var e;fe.lastSetCoordinates=xC,he(),fe.isInKeyboardMoveMode=!1,ee(!1),ae(xC),null===(e=fe.disposeOnKeyUp)||void 0===e||e.call(fe),null===B||void 0===B||B()},Ie=u.useCallback((function(){he(),fe.isInKeyboardMoveMode=!1}),[fe,he]),we=u.useCallback((function(e,t){ae((function(e){return{x:ke("x",e.x+t.delta.x),y:ke("y",e.y+t.delta.y)}}))}),[ke]),Ee=u.useCallback((function(){W.current&&W.current.focus()}),[]);u.useEffect((function(){Q(fe.onModalCloseTimer),_&&(requestAnimationFrame((function(){return J(xe,0)})),ee(!0),O&&function(){var e=function(e){e.altKey&&e.ctrlKey&&e.keyCode===qt&&Ke(fe.scrollableContent,e.target)&&(me(),e.preventDefault(),e.stopPropagation())};fe.disposeOnKeyUp||(fe.events.on(Y,"keyup",e,!0),fe.disposeOnKeyUp=function(){fe.events.off(Y,"keyup",e,!0),fe.disposeOnKeyUp=void 0})}(),fe.hasBeenOpened=!0,re(!0)),!_&&$&&(fe.onModalCloseTimer=J(Pe,1e3*parseFloat(pC)),re(!1))}),[$,_]),Xl((function(){fe.events.dispose(),fe.onModalCloseTimer&&(Q(fe.onModalCloseTimer),fe.onModalCloseTimer=0)})),function(e,t){u.useImperativeHandle(e.componentRef,(function(){return{focus:function(){t.current&&t.current.focus()}}}),[t])}(s,W),function(e){ec({name:"Modal",props:e,deprecations:{onLayerDidMount:"layerProps.onLayerDidMount"}})}(s);var _e=u.createElement(Kc,v({},g,{id:q,ref:K,componentRef:U,className:Wn(be.main,null===g||void 0===g?void 0:g.className),elementToFocusOnDismiss:null!==(n=null===g||void 0===g?void 0:g.elementToFocusOnDismiss)&&void 0!==n?n:h,isClickableOutsideFocusTrap:null!==(r=null===g||void 0===g?void 0:g.isClickableOutsideFocusTrap)&&void 0!==r?r:H||k||!S,disableRestoreFocus:null!==(o=null===g||void 0===g?void 0:g.disableRestoreFocus)&&void 0!==o?o:C,forceFocusInsideTrap:(null!==(i=null===g||void 0===g?void 0:g.forceFocusInsideTrap)&&void 0!==i?i:y)&&!H,firstFocusableSelector:(null===g||void 0===g?void 0:g.firstFocusableSelector)||f,focusPreviouslyFocusedInnerElement:null===(a=null===g||void 0===g?void 0:g.focusPreviouslyFocusedInnerElement)||void 0===a||a,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=xC,fe.isInKeyboardMoveMode=!1,null===(n=fe.disposeOnKeyDown)||void 0===n||n.call(fe)}:void 0}),O&&fe.isInKeyboardMoveMode&&u.createElement("div",{className:be.keyboardMoveIconContainer},O.keyboardMoveIconProps?u.createElement(gd,v({},O.keyboardMoveIconProps)):u.createElement(gd,{iconName:"move",className:be.keyboardMoveIcon})),u.createElement("div",{ref:Se,className:be.scrollableContent,"data-is-scrollable":!0},O&&ue&&u.createElement(O.menu,{items:[{key:"move",text:O.moveMenuItemText,onClick:function(){var e=function(e){if(e.altKey&&e.ctrlKey&&e.keyCode===qt)return e.preventDefault(),void e.stopPropagation();var t=e.altKey||e.keyCode===Gt;if(ue&&t&&he(),!fe.isInKeyboardMoveMode||e.keyCode!==Gt&&e.keyCode!==Wt||(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 Gt:ae(fe.lastSetCoordinates);case Wt:fe.lastSetCoordinates=xC;break;case $t:ae((function(e){return{x:e.x,y:ke("y",e.y-r)}}));break;case tn:ae((function(e){return{x:e.x,y:ke("y",e.y+r)}}));break;case Xt:ae((function(e){return{x:ke("x",e.x-r),y:e.y}}));break;case en:ae((function(e){return{x:ke("x",e.x+r),y:e.y}}));break;default:n=!1}n&&(e.preventDefault(),e.stopPropagation())}};fe.lastSetCoordinates=ie,he(),fe.isInKeyboardMoveMode=!0,fe.events.on(Y,"keydown",e,!0),fe.disposeOnKeyDown=function(){fe.events.off(Y,"keydown",e,!0),fe.disposeOnKeyDown=void 0}}},{key:"close",text:O.closeMenuItemText,onClick:Pe}],onDismiss:he,alignTargetEdge:!0,coverTarget:!0,directionalHint:zs,directionalHintFixed:!0,shouldFocusOnMount:!0,target:fe.scrollableContent}),d));return $&&G>=(N||pp.small)&&u.createElement(zc,v({ref:j},Ce),u.createElement(rc,v({role:ve?"alertdialog":"dialog",ariaLabelledBy:D,ariaDescribedBy:R,onDismiss:I,shouldRestoreFocus:!C,enableAriaHiddenSiblings:L,"aria-modal":!H},V),u.createElement("div",{className:be.root,role:H?void 0:"document"},!H&&u.createElement(vC,v({"aria-hidden":!0,isDarkThemed:P,onClick:S?void 0:I,allowTouchBodyScroll:l},E)),O?u.createElement(SC,{handleSelector:O.dragHandleSelector||"#".concat(q),preventDragSelector:"button",onStart:Ie,onDragChange:we,onStop:Ee,position:ie},_e):_e)))||null}));IC.displayName="Modal";var wC=Jo(IC,(function(e){var t,n=e.className,r=e.containerClassName,o=e.scrollableContentClassName,i=e.isOpen,a=e.isVisible,s=e.hasBeenOpened,l=e.modalRectangleTop,c=e.theme,d=e.topOffsetFixed,u=e.isModeless,p=e.layerClassName,m=e.isDefaultDragHandle,h=e.windowInnerHeight,f=c.palette,g=c.effects,v=c.fonts,y=os(mC,c);return{root:[y.root,v.medium,{backgroundColor:"transparent",position:"fixed",height:"100%",width:"100%",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,pointerEvents:"none",transition:"opacity ".concat(pC)},d&&"number"===typeof l&&s&&{alignItems:"flex-start"},i&&y.isOpen,a&&{opacity:1},a&&!u&&{pointerEvents:"auto"},n],main:[y.main,{boxShadow:g.elevation64,borderRadius:g.roundedCorner2,backgroundColor:f.white,boxSizing:"border-box",position:"relative",textAlign:"left",outline:"3px solid transparent",maxHeight:"calc(100% - 32px)",maxWidth:"calc(100% - 32px)",minHeight:"176px",minWidth:"288px",overflowY:"auto",zIndex:u?za.Layer:void 0},u&&{pointerEvents:"auto"},d&&"number"===typeof l&&s&&{top:l},m&&{cursor:"move"},r],scrollableContent:[y.scrollableContent,{overflowY:"auto",flexGrow:1,maxHeight:"100vh",selectors:(t={},t["@supports (-webkit-overflow-scrolling: touch)"]={maxHeight:h},t)},o],layer:u&&[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"]});wC.displayName="Modal";var EC=wn(),_C=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=e.theme;return this._classNames=EC(n,{theme:r,className:t}),u.createElement("div",{className:this._classNames.actions},u.createElement("div",{className:this._classNames.actionsRight},this._renderChildrenAsActions()))},t.prototype._renderChildrenAsActions=function(){var e=this;return u.Children.map(this.props.children,(function(t){return t?u.createElement("span",{className:e._classNames.action},t):null}))},t}(u.Component),DC={actions:"ms-Dialog-actions",action:"ms-Dialog-action",actionsRight:"ms-Dialog-actionsRight"},TC=Jo(_C,(function(e){var t=e.className,n=e.theme,r=os(DC,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"});TC.displayName="DialogFooter";var RC=wn(),AC=u.createElement(TC,null).type,MC=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),Rt("DialogContent",t,{titleId:"titleProps.id"}),n}return g(t,e),t.prototype.render=function(){var e,t=this.props,n=t.showCloseButton,r=t.className,o=t.closeButtonAriaLabel,i=t.onDismiss,a=t.subTextId,s=t.subText,l=t.titleProps,c=void 0===l?{}:l,d=t.titleId,p=t.title,m=t.type,h=t.styles,f=t.theme,g=t.draggableHeaderClassName,y=RC(h,{theme:f,className:r,isLargeHeader:m===cC.largeHeader,isClose:m===cC.close,draggableHeaderClassName:g}),b=this._groupChildren();return s&&(e=u.createElement("p",{className:y.subText,id:a},s)),u.createElement("div",{className:y.content},u.createElement("div",{className:y.header},u.createElement("div",v({id:d,role:"heading","aria-level":1},c,{className:Wn(y.title,c.className)}),p),u.createElement("div",{className:y.topButton},this.props.topButtonsProps.map((function(e,t){return u.createElement(mm,v({key:e.uniqueId||t},e))})),(m===cC.close||n&&m!==cC.largeHeader)&&u.createElement(mm,{className:y.button,iconProps:{iconName:"Cancel"},ariaLabel:o,onClick:i}))),u.createElement("div",{className:y.inner},u.createElement("div",{className:y.innerContent},e,b.contents),b.footers))},t.prototype._groupChildren=function(){var e={footers:[],contents:[]};return u.Children.map(this.props.children,(function(t){"object"===typeof t&&null!==t&&t.type===AC?e.footers.push(t):e.contents.push(t)})),e},t.defaultProps={showCloseButton:!1,className:"",topButtonsProps:[],closeButtonAriaLabel:"Close"},t=b([Cp],t)}(u.Component),NC={contentLgHeader:"ms-Dialog-lgHeader",close:"ms-Dialog--close",subText:"ms-Dialog-subText",header:"ms-Dialog-header",headerLg:"ms-Dialog--lgHeader",button:"ms-Dialog-button ms-Dialog-button--close",inner:"ms-Dialog-inner",content:"ms-Dialog-content",title:"ms-Dialog-title"},FC=Jo(MC,(function(e){var t,n,r,o=e.className,i=e.theme,a=e.isLargeHeader,s=e.isClose,l=e.hidden,c=e.isMultiline,d=e.draggableHeaderClassName,u=i.palette,p=i.fonts,m=i.effects,h=i.semanticColors,f=os(NC,i);return{content:[a&&[f.contentLgHeader,{borderTop:"4px solid ".concat(u.themePrimary)}],s&&f.close,{flexGrow:1,overflowY:"hidden"},o],subText:[f.subText,p.medium,{margin:"0 0 24px 0",color:h.bodySubtext,lineHeight:"1.5",wordWrap:"break-word",fontWeight:Hi.regular}],header:[f.header,{position:"relative",width:"100%",boxSizing:"border-box"},s&&f.close,d&&[d,{cursor:"move"}]],button:[f.button,l&&{selectors:{".ms-Icon.ms-Icon--Cancel":{color:h.buttonText,fontSize:Oi.medium}}}],inner:[f.inner,{padding:"0 24px 24px",selectors:(t={},t["@media (min-width: ".concat(320,"px) and (max-width: ").concat(Ga,"px)")]={padding:"0 16px 16px"},t)}],innerContent:[f.content,{position:"relative",width:"100%"}],title:[f.title,p.xLarge,{color:h.bodyText,margin:"0",minHeight:p.xLarge.fontSize,padding:"16px 46px 20px 24px",lineHeight:"normal",selectors:(n={},n["@media (min-width: ".concat(320,"px) and (max-width: ").concat(Ga,"px)")]={padding:"16px 46px 16px 16px"},n)},a&&{color:h.menuHeader},c&&{fontSize:p.xxLarge.fontSize}],topButton:[{display:"flex",flexDirection:"row",flexWrap:"nowrap",position:"absolute",top:"0",right:"0",padding:"15px 15px 0 0",selectors:(r={"> *":{flex:"0 0 auto"},".ms-Dialog-button":{color:h.buttonText},".ms-Dialog-button:hover":{color:h.buttonTextHovered,borderRadius:m.roundedCorner2}},r["@media (min-width: ".concat(320,"px) and (max-width: ").concat(Ga,"px)")]={padding:"15px 8px 0 0"},r)}]}}),void 0,{scope:"DialogContent"});FC.displayName="DialogContent";var HC,OC=wn(),BC={isDarkOverlay:!1,isBlocking:!1,className:"",containerClassName:"",topOffsetFixed:!1,enableAriaHiddenSiblings:!0},LC={type:cC.normal,className:"",topButtonsProps:[]},VC=function(e){function t(t){var n=e.call(this,t)||this;return n._getSubTextId=function(){var e=n.props,t=e.ariaDescribedById,r=e.modalProps,o=e.dialogContentProps,i=e.subText,a=r&&r.subtitleAriaId||t;return a||(a=(o&&o.subText||i)&&n._defaultSubTextId),a},n._getTitleTextId=function(){var e=n.props,t=e.ariaLabelledById,r=e.modalProps,o=e.dialogContentProps,i=e.title,a=r&&r.titleAriaId||t;return a||(a=(o&&o.title||i)&&n._defaultTitleTextId),a},n._id=Cr("Dialog"),n._defaultTitleTextId=n._id+"-title",n._defaultSubTextId=n._id+"-subText",Rt("Dialog",t,{isOpen:"hidden",type:"dialogContentProps.type",subText:"dialogContentProps.subText",contentClassName:"dialogContentProps.className",topButtonsProps:"dialogContentProps.topButtonsProps",className:"modalProps.className",isDarkOverlay:"modalProps.isDarkOverlay",isBlocking:"modalProps.isBlocking",containerClassName:"modalProps.containerClassName",onDismissed:"modalProps.onDismissed",onLayerDidMount:"modalProps.layerProps.onLayerDidMount",ariaDescribedById:"modalProps.subtitleAriaId",ariaLabelledById:"modalProps.titleAriaId"}),n}return g(t,e),t.prototype.render=function(){var e,t,n,r,o,i=this.props,a=i.className,s=i.containerClassName,l=i.contentClassName,c=i.elementToFocusOnDismiss,d=i.firstFocusableSelector,p=i.forceFocusInsideTrap,m=i.styles,h=i.hidden,f=i.disableRestoreFocus,g=void 0===f?i.ignoreExternalFocusing:f,y=i.isBlocking,b=i.isClickableOutsideFocusTrap,C=i.isDarkOverlay,S=i.isOpen,x=void 0===S?!h:S,k=i.onDismiss,P=i.onDismissed,I=i.onLayerDidMount,w=i.responsiveMode,E=i.subText,_=i.theme,D=i.title,T=i.topButtonsProps,R=i.type,A=i.minWidth,M=i.maxWidth,N=i.modalProps,F=v({onLayerDidMount:I},null===N||void 0===N?void 0:N.layerProps);(null===N||void 0===N?void 0:N.dragOptions)&&!(null===(e=N.dragOptions)||void 0===e?void 0:e.dragHandleSelector)&&(r="ms-Dialog-draggable-header",(o=v({},N.dragOptions)).dragHandleSelector=".".concat(r));var H=v(v(v(v({},BC),{elementToFocusOnDismiss:c,firstFocusableSelector:d,forceFocusInsideTrap:p,disableRestoreFocus:g,isClickableOutsideFocusTrap:b,responsiveMode:w,className:a,containerClassName:s,isBlocking:y,isDarkOverlay:C,onDismissed:P}),N),{dragOptions:o,layerProps:F,isOpen:x}),O=v(v(v({className:l,subText:E,title:D,topButtonsProps:T,type:R},LC),i.dialogContentProps),{draggableHeaderClassName:r,titleProps:v({id:(null===(t=i.dialogContentProps)||void 0===t?void 0:t.titleId)||this._defaultTitleTextId},null===(n=i.dialogContentProps)||void 0===n?void 0:n.titleProps)}),B=OC(m,{theme:_,className:H.className,containerClassName:H.containerClassName,hidden:h,dialogDefaultMinWidth:A,dialogDefaultMaxWidth:M});return u.createElement(wC,v({},H,{className:B.root,containerClassName:B.main,onDismiss:k||H.onDismiss,subtitleAriaId:this._getSubTextId(),titleAriaId:this._getTitleTextId()}),u.createElement(FC,v({subTextId:this._defaultSubTextId,showCloseButton:H.isBlocking,onDismiss:k},O),i.children))},t.defaultProps={hidden:!0},t=b([Cp],t)}(u.Component),zC={root:"ms-Dialog"},WC=Jo(VC,(function(e){var t,n=e.className,r=e.containerClassName,o=e.dialogDefaultMinWidth,i=void 0===o?"288px":o,a=e.dialogDefaultMaxWidth,s=void 0===a?"340px":a,l=e.hidden,c=e.theme;return{root:[os(zC,c).root,c.fonts.medium,n],main:[{width:i,outline:"3px solid transparent",selectors:(t={},t["@media (min-width: ".concat(Ka,"px)")]={width:"auto",maxWidth:s,minWidth:i},t)},!l&&{display:"flex"},r]}}),void 0,{scope:"Dialog"});WC.displayName="Dialog",function(e){e[e.normal=0]="normal",e[e.compact=1]="compact"}(HC||(HC={}));var UC,KC=wn(),jC=u.createContext({}),GC=function(e){function t(t){var n=e.call(this,t)||this;return n._rootElement=u.createRef(),n._onClick=function(e){n._onAction(e)},n._onKeyDown=function(e){e.which!==Wt&&e.which!==qt||n._onAction(e)},n._onAction=function(e){var t=n.props,r=t.onClick,o=t.onClickHref,i=t.onClickTarget,a=lc(n.context);r?r(e):!r&&o&&(i?a.open(o,i,"noreferrer noopener nofollow"):a.location.href=o,e.preventDefault(),e.stopPropagation())},Xr(n),Rt("DocumentCard",t,{accentColor:void 0}),n}return g(t,e),t.prototype.render=function(){var e,t=this.props,n=t.onClick,r=t.onClickHref,o=t.children,i=t.type,a=t.accentColor,s=t.styles,l=t.theme,c=t.className,d=qr(this.props,Gr,["className","onClick","type","role"]),p=!(!n&&!r);this._classNames=KC(s,{theme:l,className:c,actionable:p,compact:i===HC.compact}),i===HC.compact&&a&&(e={borderBottomColor:a});var m={role:this.props.role||(p?n?"button":"link":void 0),tabIndex:p?0:void 0};return u.createElement("div",v({ref:this._rootElement,role:"group",className:this._classNames.root,onKeyDown:p?this._onKeyDown:void 0,onClick:p?this._onClick:void 0,style:e},d),u.createElement(jC.Provider,{value:m},o))},t.prototype.focus=function(){this._rootElement.current&&this._rootElement.current.focus()},t.defaultProps={type:HC.normal},t.contextType=dr,t}(u.Component),qC={root:"ms-DocumentCardPreview",icon:"ms-DocumentCardPreview-icon",iconContainer:"ms-DocumentCardPreview-iconContainer"},YC=32,ZC={root:"ms-DocumentCardActivity",multiplePeople:"ms-DocumentCardActivity--multiplePeople",details:"ms-DocumentCardActivity-details",name:"ms-DocumentCardActivity-name",activity:"ms-DocumentCardActivity-activity",avatars:"ms-DocumentCardActivity-avatars",avatar:"ms-DocumentCardActivity-avatar"},JC={root:"ms-DocumentCardTitle"},QC={root:"ms-DocumentCardLocation"},XC={root:"ms-DocumentCard",rootActionable:"ms-DocumentCard--actionable",rootCompact:"ms-DocumentCard--compact"},$C=(Jo(GC,(function(e){var t,n,r=e.className,o=e.theme,i=e.actionable,a=e.compact,s=o.palette,l=o.fonts,c=o.effects,d=os(XC,o);return{root:[d.root,{WebkitFontSmoothing:"antialiased",backgroundColor:s.white,border:"1px solid ".concat(s.neutralLight),maxWidth:"320px",minWidth:"206px",userSelect:"none",position:"relative",selectors:(t={":focus":{outline:"0px solid"}},t[".".concat(io," &:focus, :host(.").concat(io,") &:focus")]=Ja(s.neutralSecondary,c.roundedCorner2),t[".".concat(QC.root," + .").concat(JC.root)]={paddingTop:"4px"},t)},i&&[d.rootActionable,{selectors:{":hover":{cursor:"pointer",borderColor:s.neutralTertiaryAlt},":hover:after":{content:'" "',position:"absolute",top:0,right:0,bottom:0,left:0,border:"1px solid ".concat(s.neutralTertiaryAlt),pointerEvents:"none"}}}],a&&[d.rootCompact,{display:"flex",maxWidth:"480px",height:"108px",selectors:(n={},n[".".concat(qC.root)]={borderRight:"1px solid ".concat(s.neutralLight),borderBottom:0,maxHeight:"106px",maxWidth:"144px"},n[".".concat(qC.icon)]={maxHeight:"32px",maxWidth:"32px"},n[".".concat(ZC.root)]={paddingBottom:"12px"},n[".".concat(JC.root)]={paddingBottom:"12px 16px 8px 16px",fontSize:l.mediumPlus.fontSize,lineHeight:"16px"},n)}],r]}}),void 0,{scope:"DocumentCard"}),wn()),eS=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.actions,r=t.views,o=t.styles,i=t.theme,a=t.className;return this._classNames=$C(o,{theme:i,className:a}),u.createElement("div",{className:this._classNames.root},n&&n.map((function(t,n){return u.createElement("div",{className:e._classNames.action,key:n},u.createElement(mm,v({},t)))})),r>0&&u.createElement("div",{className:this._classNames.views},u.createElement(gd,{iconName:"View",className:this._classNames.viewsIcon}),r))},t}(u.Component),tS={root:"ms-DocumentCardActions",action:"ms-DocumentCardActions-action",views:"ms-DocumentCardActions-views"},nS=(Jo(eS,(function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts,i=os(tS,n);return{root:[i.root,{height:"".concat(34,"px"),padding:"".concat(4,"px ").concat(12,"px"),position:"relative"},t],action:[i.action,{float:"left",marginRight:"4px",color:r.neutralSecondary,cursor:"pointer",selectors:{".ms-Button":{fontSize:o.mediumPlus.fontSize,height:34,width:34},".ms-Button:hover .ms-Button-icon":{color:n.semanticColors.buttonText,cursor:"pointer"}}}],views:[i.views,{textAlign:"right",lineHeight:34}],viewsIcon:{marginRight:"8px",fontSize:o.medium.fontSize,verticalAlign:"top"}}}),void 0,{scope:"DocumentCardActions"}),wn()),rS=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.activity,n=e.people,r=e.styles,o=e.theme,i=e.className;return this._classNames=nS(r,{theme:o,className:i,multiplePeople:n.length>1}),n&&0!==n.length?u.createElement("div",{className:this._classNames.root},this._renderAvatars(n),u.createElement("div",{className:this._classNames.details},u.createElement("span",{className:this._classNames.name},this._getNameString(n)),u.createElement("span",{className:this._classNames.activity},t))):null},t.prototype._renderAvatars=function(e){return u.createElement("div",{className:this._classNames.avatars},e.length>1?this._renderAvatar(e[1]):null,this._renderAvatar(e[0]))},t.prototype._renderAvatar=function(e){return u.createElement("div",{className:this._classNames.avatar},u.createElement(Gd,{imageInitials:e.initials,text:e.name,imageUrl:e.profileImageSrc,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,role:"presentation",size:vd.size32}))},t.prototype._getNameString=function(e){var t=e[0].name;return e.length>=2&&(t+=" +"+(e.length-1)),t},t}(u.Component),oS=(Jo(rS,(function(e){var t=e.theme,n=e.className,r=e.multiplePeople,o=t.palette,i=t.fonts,a=os(ZC,t);return{root:[a.root,r&&a.multiplePeople,{padding:"".concat(8,"px ").concat(16,"px"),position:"relative"},n],avatars:[a.avatars,{marginLeft:"-2px",height:"32px"}],avatar:[a.avatar,{display:"inline-block",verticalAlign:"top",position:"relative",textAlign:"center",width:YC,height:YC,selectors:{"&:after":{content:'" "',position:"absolute",left:"-1px",top:"-1px",right:"-1px",bottom:"-1px",border:"2px solid ".concat(o.white),borderRadius:"50%"},":nth-of-type(2)":r&&{marginLeft:"-16px"}}}],details:[a.details,{left:"".concat(r?72:56,"px"),height:YC,position:"absolute",top:8,width:"calc(100% - ".concat(72,"px)")}],name:[a.name,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralPrimary,fontWeight:Hi.semibold}],activity:[a.activity,{display:"block",fontSize:i.small.fontSize,lineHeight:"15px",height:"15px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:o.neutralSecondary}]}}),void 0,{scope:"DocumentCardActivity"}),wn()),iS=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.children,n=e.styles,r=e.theme,o=e.className;return this._classNames=oS(n,{theme:r,className:o}),u.createElement("div",{className:this._classNames.root},t)},t}(u.Component),aS={root:"ms-DocumentCardDetails"},sS=(Jo(iS,(function(e){var t=e.className,n=e.theme;return{root:[os(aS,n).root,{display:"flex",flexDirection:"column",flex:1,justifyContent:"space-between",overflow:"hidden"},t]}}),void 0,{scope:"DocumentCardDetails"}),wn()),lS=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.location,n=e.locationHref,r=e.ariaLabel,o=e.onClick,i=e.styles,a=e.theme,s=e.className;return this._classNames=sS(i,{theme:a,className:s}),u.createElement("a",{className:this._classNames.root,href:n,onClick:o,"aria-label":r},t)},t}(u.Component),cS=(Jo(lS,(function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[os(QC,t).root,o.small,{color:r.themePrimary,display:"block",fontWeight:Hi.semibold,overflow:"hidden",padding:"8px 16px",position:"relative",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:{":hover":{color:r.themePrimary,cursor:"pointer"}}},n]}}),void 0,{scope:"DocumentCardLocation"}),wn()),dS=function(e){function t(t){var n=e.call(this,t)||this;return n._renderPreviewList=function(e){var t=n.props,r=t.getOverflowDocumentCountText,o=t.maxDisplayCount,i=void 0===o?3:o,a=e.length-i,s=a?r?r(a):"+"+a:null,l=e.slice(0,i).map((function(e,t){return u.createElement("li",{key:t},u.createElement(cd,{className:n._classNames.fileListIcon,src:e.iconSrc,role:"presentation",alt:"",width:"16px",height:"16px"}),u.createElement(Eu,v({className:n._classNames.fileListLink,href:e.url},e.linkProps),e.name))}));return u.createElement("div",null,u.createElement("ul",{className:n._classNames.fileList},l),s&&u.createElement("span",{className:n._classNames.fileListOverflowText},s))},Xr(n),n}return g(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.previewImages,o=n.styles,i=n.theme,a=n.className,s=r.length>1;return this._classNames=cS(o,{theme:i,className:a,isFileList:s}),r.length>1?t=this._renderPreviewList(r):1===r.length&&(t=this._renderPreviewImage(r[0]),r[0].accentColor&&(e={borderBottomColor:r[0].accentColor})),u.createElement("div",{className:this._classNames.root,style:e},t)},t.prototype._renderPreviewImage=function(e){var t=e.width,n=e.height,r=e.imageFit,o=e.previewIconProps,i=e.previewIconContainerClass;if(o)return u.createElement("div",{className:Wn(this._classNames.previewIcon,i),style:{width:t,height:n}},u.createElement(gd,v({},o)));var a,s=u.createElement(cd,{width:t,height:n,imageFit:r,src:e.previewImageSrc,role:"presentation",alt:""});return e.iconSrc&&(a=u.createElement(cd,{className:this._classNames.icon,src:e.iconSrc,role:"presentation",alt:""})),u.createElement("div",null,s,a)},t}(u.Component),uS=(Jo(dS,(function(e){var t,n,r=e.theme,o=e.className,i=e.isFileList,a=r.palette,s=r.fonts,l=os(qC,r);return{root:[l.root,s.small,{backgroundColor:i?a.white:a.neutralLighterAlt,borderBottom:"1px solid ".concat(a.neutralLight),overflow:"hidden",position:"relative"},o],previewIcon:[l.iconContainer,{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"}],icon:[l.icon,{left:"10px",bottom:"10px",position:"absolute"}],fileList:{padding:"16px 16px 0 16px",listStyleType:"none",margin:0,selectors:{li:{height:"16px",lineHeight:"16px",display:"flex",flexWrap:"nowrap",alignItems:"center",marginBottom:"8px",overflow:"hidden"}}},fileListIcon:{display:"inline-block",flexShrink:0,marginRight:"8px"},fileListLink:[Ya(r,{highContrastStyle:{border:"1px solid WindowText",outline:"none"}}),{boxSizing:"border-box",color:a.neutralDark,flexGrow:1,overflow:"hidden",display:"inline-block",textDecoration:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",selectors:(t={":hover":{color:a.themePrimary}},t[".".concat(io," &:focus, :host(.").concat(io,") &:focus")]={selectors:(n={},n[Wa]={outline:"none"},n)},t)}],fileListOverflowText:{padding:"0px 16px 8px 16px",display:"block"}}}),void 0,{scope:"DocumentCardPreview"}),wn()),pS=function(e){function t(t){var n=e.call(this,t)||this;return n._onImageLoad=function(){n.setState({imageHasLoaded:!0})},Xr(n),n.state={imageHasLoaded:!1},n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.width,r=e.height,o=e.imageFit,i=e.imageSrc;return this._classNames=uS(t,this.props),u.createElement("div",{className:this._classNames.root},i&&u.createElement(cd,{width:n,height:r,imageFit:o,src:i,role:"presentation",alt:"",onLoad:this._onImageLoad}),this.state.imageHasLoaded?this._renderCornerIcon():this._renderCenterIcon())},t.prototype._renderCenterIcon=function(){var e=this.props.iconProps;return u.createElement("div",{className:this._classNames.centeredIconWrapper},u.createElement(gd,v({className:this._classNames.centeredIcon},e)))},t.prototype._renderCornerIcon=function(){var e=this.props.iconProps;return u.createElement(gd,v({className:this._classNames.cornerIcon},e))},t}(u.Component),mS="42px",hS="32px",fS=(Jo(pS,(function(e){var t=e.theme,n=e.className,r=e.height,o=e.width,i=t.palette;return{root:[{borderBottom:"1px solid ".concat(i.neutralLight),position:"relative",backgroundColor:i.neutralLighterAlt,overflow:"hidden",height:r&&"".concat(r,"px"),width:o&&"".concat(o,"px")},n],centeredIcon:[{height:mS,width:mS,fontSize:mS}],centeredIconWrapper:[{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",width:"100%",position:"absolute",top:0,left:0}],cornerIcon:[{left:"10px",bottom:"10px",height:hS,width:hS,fontSize:hS,position:"absolute",overflow:"visible"}]}}),void 0,{scope:"DocumentCardImage"}),wn()),gS=function(e){function t(t){var n=e.call(this,t)||this;return n._titleElement=u.createRef(),n._truncateTitle=function(){n._needMeasurement&&n._async.requestAnimationFrame(n._truncateWhenInAnimation)},n._truncateWhenInAnimation=function(){var e=n.props.title,t=n._titleElement.current;if(t){var r=getComputedStyle(t);if(r.width&&r.lineHeight&&r.height){var o=t.clientWidth,i=t.scrollWidth;n._clientWidth=o;var a=Math.floor((parseInt(r.height,10)+5)/parseInt(r.lineHeight,10));t.style.whiteSpace="";var s=i/(parseInt(r.width,10)*a);if(s>1){var l=e.length/s-3;return n.setState({truncatedTitleFirstPiece:e.slice(0,l/2),truncatedTitleSecondPiece:e.slice(e.length-l/2)})}}}},n._shrinkTitle=function(){var e=n.state,t=e.truncatedTitleFirstPiece,r=e.truncatedTitleSecondPiece;if(t&&r){var o=n._titleElement.current;if(!o)return;(o.scrollHeight>o.clientHeight+5||o.scrollWidth>o.clientWidth)&&n.setState({truncatedTitleFirstPiece:t.slice(0,t.length-1),truncatedTitleSecondPiece:r.slice(1)})}},Xr(n),n._async=new ze(n),n._events=new gt(n),n._clientWidth=void 0,n.state={truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0},n}return g(t,e),t.prototype.componentDidUpdate=function(e){var t=this;if(this.props.title!==e.title&&this.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0}),e.shouldTruncate!==this.props.shouldTruncate){var n=lc(this.context);this.props.shouldTruncate?(this._truncateTitle(),this._async.requestAnimationFrame(this._shrinkTitle),this._events.on(n,"resize",this._updateTruncation)):this._events.off(n,"resize",this._updateTruncation)}else this._needMeasurement&&this._async.requestAnimationFrame((function(){t._truncateWhenInAnimation(),t._shrinkTitle()}))},t.prototype.componentDidMount=function(){if(this.props.shouldTruncate){this._truncateTitle();var e=lc(this.context);this._events.on(e,"resize",this._updateTruncation)}},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this,t=this.props,n=t.title,r=t.shouldTruncate,o=t.showAsSecondaryTitle,i=t.styles,a=t.theme,s=t.className,l=this.state,c=l.truncatedTitleFirstPiece,d=l.truncatedTitleSecondPiece;return this._classNames=fS(i,{theme:a,className:s,showAsSecondaryTitle:o}),r&&c&&d?u.createElement(jC.Consumer,null,(function(t){var r=t.role,o=t.tabIndex;return u.createElement("div",{className:e._classNames.root,ref:e._titleElement,title:n,tabIndex:o,role:r},c,"\u2026",d)})):u.createElement(jC.Consumer,null,(function(t){var r=t.role,o=t.tabIndex;return u.createElement("div",{className:e._classNames.root,ref:e._titleElement,title:n,tabIndex:o,role:r,style:e._needMeasurement?{whiteSpace:"nowrap"}:void 0},n)}))},Object.defineProperty(t.prototype,"_needMeasurement",{get:function(){return!!this.props.shouldTruncate&&void 0===this._clientWidth},enumerable:!1,configurable:!0}),t.prototype._updateTruncation=function(){var e=this;this._timerId||(this._timerId=this._async.setTimeout((function(){delete e._timerId,e._clientWidth=void 0,e.setState({truncatedTitleFirstPiece:void 0,truncatedTitleSecondPiece:void 0})}),250))},t.contextType=dr,t}(u.Component),vS=(Jo(gS,(function(e){var t,n=e.theme,r=e.className,o=e.showAsSecondaryTitle,i=n.palette,a=n.fonts,s=n.effects;return{root:[os(JC,n).root,o?a.medium:a.large,{padding:"8px 16px",display:"block",overflow:"hidden",position:"relative",wordWrap:"break-word",height:o?"45px":"38px",lineHeight:o?"18px":"21px",color:o?i.neutralSecondary:i.neutralPrimary,selectors:(t={":focus":{outline:"0px solid"}},t[".".concat(io," &:focus, :host(.").concat(io,") &:focus")]=Ja(i.neutralSecondary,s.roundedCorner2),t)},r]}}),void 0,{scope:"DocumentCardTitle"}),wn()),yS=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.logoIcon,n=e.styles,r=e.theme,o=e.className;return this._classNames=vS(n,{theme:r,className:o}),u.createElement("div",{className:this._classNames.root},u.createElement(gd,{iconName:t}))},t}(u.Component),bS={root:"ms-DocumentCardLogo"},CS=(Jo(yS,(function(e){var t=e.theme,n=e.className,r=t.palette,o=t.fonts;return{root:[os(bS,t).root,{fontSize:o.xxLargePlus.fontSize,color:r.themePrimary,display:"block",padding:"16px 16px 0 16px"},n]}}),void 0,{scope:"DocumentCardLogo"}),wn()),SS=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.statusIcon,n=e.status,r=e.styles,o=e.theme,i=e.className,a={iconName:t,styles:{root:{padding:"8px"}}};return this._classNames=CS(r,{theme:o,className:i}),u.createElement("div",{className:this._classNames.root},t&&u.createElement(gd,v({},a)),n)},t}(u.Component),xS={root:"ms-DocumentCardStatus"},kS=(Jo(SS,(function(e){var t=e.className,n=e.theme,r=n.palette,o=n.fonts;return{root:[os(xS,n).root,o.medium,{margin:"8px 16px",color:r.neutralPrimary,backgroundColor:r.neutralLighter,height:"32px"},t]}}),void 0,{scope:"DocumentCardStatus"}),function(){function e(){this._size=0}return e.prototype.updateOptions=function(e){for(var t=[],n=[],r=0,o=0;o<e.length;o++){var i=e[o],a=i.itemType,s=i.hidden;a===Cv.Divider||a===Cv.Header?(t.push(o),n.push(o)):s?n.push(o):r++}this._size=r,this._displayOnlyOptionsCache=t,this._notSelectableOptionsCache=n,this._cachedOptions=C([],e,!0)},Object.defineProperty(e.prototype,"optionSetSize",{get:function(){return this._size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cachedOptions",{get:function(){return this._cachedOptions},enumerable:!1,configurable:!0}),e.prototype.positionInSet=function(e){if(void 0!==e){for(var t=0;e>this._notSelectableOptionsCache[t];)t++;if(this._displayOnlyOptionsCache[t]===e)throw new Error("Unexpected: Option at index ".concat(e," is not a selectable element."));if(this._notSelectableOptionsCache[t]!==e)return e-t+1}},e}());!function(e){e[e.smallFluid=0]="smallFluid",e[e.smallFixedFar=1]="smallFixedFar",e[e.smallFixedNear=2]="smallFixedNear",e[e.medium=3]="medium",e[e.large=4]="large",e[e.largeFixed=5]="largeFixed",e[e.extraLarge=6]="extraLarge",e[e.custom=7]="custom",e[e.customNear=8]="customNear"}(UC||(UC={}));var PS,IS=wn();!function(e){e[e.closed=0]="closed",e[e.animatingOpen=1]="animatingOpen",e[e.open=2]="open",e[e.animatingClosed=3]="animatingClosed"}(PS||(PS={}));var wS,ES,_S,DS,TS,RS=function(e){function t(t){var n=e.call(this,t)||this;n._panel=u.createRef(),n._animationCallback=null,n._hasCustomNavigation=!(!n.props.onRenderNavigation&&!n.props.onRenderNavigationContent),n.dismiss=function(e){n.props.onDismiss&&n.isActive&&n.props.onDismiss(e),(!e||e&&!e.defaultPrevented)&&n.close()},n._allowScrollOnPanel=function(e){e?n._allowTouchBodyScroll?St(e,n._events):Ct(e,n._events):n._events.off(n._scrollableContent),n._scrollableContent=e},n._onRenderNavigation=function(e){if(!n.props.onRenderNavigationContent&&!n.props.onRenderNavigation&&!n.props.hasCloseButton)return null;var t=n.props.onRenderNavigationContent,r=void 0===t?n._onRenderNavigationContent:t;return u.createElement("div",{className:n._classNames.navigation},r(e,n._onRenderNavigationContent))},n._onRenderNavigationContent=function(e){var t,r=e.closeButtonAriaLabel,o=e.hasCloseButton,i=e.onRenderHeader,a=void 0===i?n._onRenderHeader:i;if(o){var s=null===(t=n._classNames.subComponentStyles)||void 0===t?void 0:t.closeButton();return u.createElement(u.Fragment,null,!n._hasCustomNavigation&&a(n.props,n._onRenderHeader,n._headerTextId),u.createElement(mm,{styles:s,className:n._classNames.closeButton,onClick:n._onPanelClick,ariaLabel:r,title:r,"data-is-visible":!0,iconProps:{iconName:"Cancel"}}))}return null},n._onRenderHeader=function(e,t,r){var o=e.headerText,i=e.headerTextProps,a=void 0===i?{}:i;return o?u.createElement("div",{className:n._classNames.header},u.createElement("div",v({id:r,role:"heading","aria-level":1},a,{className:Wn(n._classNames.headerText,a.className)}),o)):null},n._onRenderBody=function(e){return u.createElement("div",{className:n._classNames.content},e.children)},n._onRenderFooter=function(e){var t=n.props.onRenderFooterContent,r=void 0===t?null:t;return r?u.createElement("div",{className:n._classNames.footer},u.createElement("div",{className:n._classNames.footerInner},r())):null},n._animateTo=function(e){e===PS.open&&n.props.onOpen&&n.props.onOpen(),n._animationCallback=n._async.setTimeout((function(){n.setState({visibility:e}),n._onTransitionComplete(e)}),200)},n._clearExistingAnimationTimer=function(){null!==n._animationCallback&&n._async.clearTimeout(n._animationCallback)},n._onPanelClick=function(e){n.dismiss(e)},n._onTransitionComplete=function(e){n._updateFooterPosition(),e===PS.open&&n.props.onOpened&&n.props.onOpened(),e===PS.closed&&n.props.onDismissed&&n.props.onDismissed()};var r=n.props.allowTouchBodyScroll,o=void 0!==r&&r;return n._allowTouchBodyScroll=o,Xr(n),Rt("Panel",t,{ignoreExternalFocusing:"focusTrapZoneProps",forceFocusInsideTrap:"focusTrapZoneProps",firstFocusableSelector:"focusTrapZoneProps"}),n.state={isFooterSticky:!1,visibility:PS.closed,id:Cr("Panel")},n}return g(t,e),t.getDerivedStateFromProps=function(e,t){return void 0===e.isOpen?null:!e.isOpen||t.visibility!==PS.closed&&t.visibility!==PS.animatingClosed?e.isOpen||t.visibility!==PS.open&&t.visibility!==PS.animatingOpen?null:{visibility:PS.animatingClosed}:{visibility:PS.animatingOpen}},t.prototype.componentDidMount=function(){this._async=new ze(this),this._events=new gt(this);var e=lc(this.context),t=sc(this.context);this._events.on(e,"resize",this._updateFooterPosition),this._shouldListenForOuterClick(this.props)&&this._events.on(null===t||void 0===t?void 0:t.body,"mousedown",this._dismissOnOuterClick,!0),this.props.isOpen&&this.setState({visibility:PS.animatingOpen})},t.prototype.componentDidUpdate=function(e,t){var n=this._shouldListenForOuterClick(this.props),r=this._shouldListenForOuterClick(e);this.state.visibility!==t.visibility&&(this._clearExistingAnimationTimer(),this.state.visibility===PS.animatingOpen?this._animateTo(PS.open):this.state.visibility===PS.animatingClosed&&this._animateTo(PS.closed));var o=sc(this.context);n&&!r?this._events.on(null===o||void 0===o?void 0:o.body,"mousedown",this._dismissOnOuterClick,!0):!n&&r&&this._events.off(null===o||void 0===o?void 0:o.body,"mousedown",this._dismissOnOuterClick,!0)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.render=function(){var e=this.props,t=e.className,n=void 0===t?"":t,r=e.elementToFocusOnDismiss,o=e.firstFocusableSelector,i=e.focusTrapZoneProps,a=e.forceFocusInsideTrap,s=e.hasCloseButton,l=e.headerText,c=e.headerClassName,d=void 0===c?"":c,p=e.ignoreExternalFocusing,m=e.isBlocking,h=e.isFooterAtBottom,f=e.isLightDismiss,g=e.isHiddenOnDismiss,y=e.layerProps,b=e.overlayProps,C=e.popupProps,S=e.type,x=e.styles,k=e.theme,P=e.customWidth,I=e.onLightDismissClick,w=void 0===I?this._onPanelClick:I,E=e.onRenderNavigation,_=void 0===E?this._onRenderNavigation:E,D=e.onRenderHeader,T=void 0===D?this._onRenderHeader:D,R=e.onRenderBody,A=void 0===R?this._onRenderBody:R,M=e.onRenderFooter,N=void 0===M?this._onRenderFooter:M,F=this.state,H=F.isFooterSticky,O=F.visibility,B=F.id,L=S===UC.smallFixedNear||S===UC.customNear,V=Sn(k)?L:!L,z=S===UC.custom||S===UC.customNear?{width:P}:{},W=qr(this.props,Gr),U=this.isActive,K=O===PS.animatingClosed||O===PS.animatingOpen;if(this._headerTextId=l&&B+"-headerText",!U&&!K&&!g)return null;this._classNames=IS(x,{theme:k,className:n,focusTrapZoneClassName:i?i.className:void 0,hasCloseButton:s,headerClassName:d,isAnimating:K,isFooterSticky:H,isFooterAtBottom:h,isOnRightSide:V,isOpen:U,isHiddenOnDismiss:g,type:S,hasCustomNavigation:this._hasCustomNavigation});var j,G=this._classNames,q=this._allowTouchBodyScroll;return m&&U&&(j=u.createElement(vC,v({className:G.overlay,isDarkThemed:!1,onClick:f?w:void 0,allowTouchBodyScroll:q},b))),u.createElement(zc,v({},y),u.createElement(rc,v({role:"dialog","aria-modal":m?"true":void 0,ariaLabelledBy:this._headerTextId?this._headerTextId:void 0,onDismiss:this.dismiss,className:G.hiddenPanel,enableAriaHiddenSiblings:!!U},C),u.createElement("div",v({"aria-hidden":!U&&K},W,{ref:this._panel,className:G.root}),j,u.createElement(Kc,v({ignoreExternalFocusing:p,forceFocusInsideTrap:!(!m||g&&!U)&&a,firstFocusableSelector:o,isClickableOutsideFocusTrap:!0},i,{className:G.main,style:z,elementToFocusOnDismiss:r}),u.createElement("div",{className:G.contentInner},u.createElement("div",{ref:this._allowScrollOnPanel,className:G.scrollableContent,"data-is-scrollable":!0},u.createElement("div",{className:G.commands,"data-is-visible":!0},_(this.props,this._onRenderNavigation)),(this._hasCustomNavigation||!s)&&T(this.props,this._onRenderHeader,this._headerTextId),A(this.props,this._onRenderBody),N(this.props,this._onRenderFooter)))))))},t.prototype.open=function(){void 0===this.props.isOpen&&(this.isActive||this.setState({visibility:PS.animatingOpen}))},t.prototype.close=function(){void 0===this.props.isOpen&&this.isActive&&this.setState({visibility:PS.animatingClosed})},Object.defineProperty(t.prototype,"isActive",{get:function(){return this.state.visibility===PS.open||this.state.visibility===PS.animatingOpen},enumerable:!1,configurable:!0}),t.prototype._shouldListenForOuterClick=function(e){return!!e.isBlocking&&!!e.isOpen},t.prototype._updateFooterPosition=function(){var e=this._scrollableContent;if(e){var t=e.clientHeight,n=e.scrollHeight;this.setState({isFooterSticky:t<n})}},t.prototype._dismissOnOuterClick=function(e){var t=this._panel.current;this.isActive&&t&&!e.defaultPrevented&&(Ke(t,e.target)||(this.props.onOuterClick?this.props.onOuterClick(e):this.dismiss(e)))},t.defaultProps={isHiddenOnDismiss:!1,isOpen:void 0,isBlocking:!0,hasCloseButton:!0,type:UC.smallFixedFar},t.contextType=dr,t}(u.Component),AS={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"},MS="100%",NS="auto",FS=272,HS=340,OS=592,BS=644,LS=940,VS="auto",zS=0,WS=48,US=428,KS=176,jS=((wS={})["@media (min-width: ".concat(Ka,"px)")]={width:HS},wS),GS=((ES={})["@media (min-width: ".concat(640,"px)")]={width:OS},ES["@media (min-width: ".concat(1024,"px)")]={width:BS},ES),qS=((_S={})["@media (min-width: ".concat(768,"px)")]={left:WS,width:NS},_S["@media (min-width: ".concat(ja,"px)")]={left:US},_S),YS=((DS={})["@media (min-width: ".concat(ja,"px)")]={left:VS,width:LS},DS),ZS=((TS={})["@media (min-width: ".concat(ja,"px)")]={left:KS},TS),JS=function(e){var t;switch(e){case UC.smallFixedFar:t=v({},jS);break;case UC.medium:t=v(v({},jS),GS);break;case UC.large:t=v(v(v({},jS),GS),qS);break;case UC.largeFixed:t=v(v(v(v({},jS),GS),qS),YS);break;case UC.extraLarge:t=v(v(v(v({},jS),GS),qS),ZS)}return t},QS={paddingLeft:"24px",paddingRight:"24px"},XS=Jo(RS,(function(e){var t,n,r,o,i=e.className,a=e.focusTrapZoneClassName,s=e.hasCloseButton,l=e.headerClassName,c=e.isAnimating,d=e.isFooterSticky,u=e.isFooterAtBottom,p=e.isOnRightSide,m=e.isOpen,h=e.isHiddenOnDismiss,f=e.hasCustomNavigation,g=e.theme,y=e.type,b=void 0===y?UC.smallFixedFar:y,C=g.effects,S=g.fonts,x=g.semanticColors,k=os(AS,g),P=b===UC.custom||b===UC.customNear;return{root:[k.root,g.fonts.medium,m&&k.isOpen,s&&k.hasCloseButton,{pointerEvents:"none",position:"absolute",top:0,left:0,right:0,bottom:0},P&&p&&k.custom,P&&!p&&k.customNear,i],overlay:[{pointerEvents:"auto",cursor:"pointer"},m&&c&&ws.fadeIn100,!m&&c&&ws.fadeOut100],hiddenPanel:[!m&&!c&&h&&{visibility:"hidden"}],main:[k.main,{backgroundColor:x.bodyBackground,boxShadow:C.elevation64,pointerEvents:"auto",position:"absolute",display:"flex",flexDirection:"column",overflowX:"hidden",overflowY:"auto",WebkitOverflowScrolling:"touch",bottom:0,top:0,left:VS,right:zS,width:MS,selectors:v((t={},t[Wa]={borderLeft:"3px solid ".concat(x.variantBorder),borderRight:"3px solid ".concat(x.variantBorder)},t),JS(b))},b===UC.smallFluid&&{left:zS},b===UC.smallFixedNear&&{left:zS,right:VS,width:FS},b===UC.customNear&&{right:"auto",left:0},P&&{maxWidth:"100vw"},m&&c&&!p&&ws.slideRightIn40,m&&c&&p&&ws.slideLeftIn40,!m&&c&&!p&&ws.slideLeftOut40,!m&&c&&p&&ws.slideRightOut40,a],commands:[k.commands,{backgroundColor:x.bodyBackground,paddingTop:18,selectors:(n={},n["@media (min-height: ".concat(Ka,"px)")]={position:"sticky",top:0,zIndex:1},n)},f&&{paddingTop:"inherit"}],navigation:[k.navigation,{display:"flex",justifyContent:"flex-end"},f&&{height:"44px"}],contentInner:[k.contentInner,{display:"flex",flexDirection:"column",flexGrow:1,overflowY:"hidden"}],header:[k.header,QS,{alignSelf:"flex-start"},s&&!f&&{flexGrow:1},f&&{flexShrink:0}],headerText:[k.headerText,S.xLarge,{color:x.bodyText,lineHeight:"27px",overflowWrap:"break-word",wordWrap:"break-word",wordBreak:"break-word",hyphens:"auto"},l],scrollableContent:[k.scrollableContent,{overflowY:"auto"},u&&{flexGrow:1,display:"inherit",flexDirection:"inherit"}],content:[k.content,QS,{paddingBottom:20},u&&{selectors:(r={},r["@media (min-height: ".concat(Ka,"px)")]={flexGrow:1},r)}],footer:[k.footer,{flexShrink:0,borderTop:"1px solid transparent",transition:"opacity ".concat(wa," ").concat(ka),selectors:(o={},o["@media (min-height: ".concat(Ka,"px)")]={position:"sticky",bottom:0},o)},d&&{backgroundColor:x.bodyBackground,borderTopColor:x.variantBorder}],footerInner:[k.footerInner,QS,{paddingBottom:16,paddingTop:16}],subComponentStyles:{closeButton:{root:[k.closeButton,{marginRight:14,color:g.palette.neutralSecondary,fontSize:Oi.large},f&&{marginRight:0,height:"auto",width:"44px"}],rootHovered:{color:g.palette.neutralPrimary}}}}}),void 0,{scope:"Panel"}),$S="Dropdown",ex=wn(),tx={options:[]};var nx=u.forwardRef((function(e,t){var n=$o(tx,e),r=u.useRef(null),o=Gl(t,r),i=kp(r,n.responsiveMode),a=function(e){var t,n=e.defaultSelectedKeys,r=e.selectedKeys,o=e.defaultSelectedKey,i=e.selectedKey,a=e.options,s=e.multiSelect,l=Yl(a),c=u.useState([]),d=c[0],p=c[1],m=a!==l,h=Yl(t=s?m&&void 0!==n?n:r:m&&void 0!==o?o:i);return u.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 hn(a,(function(t){return null!=e?t.key===e:!!t.selected||!!t.isSelected}))};void 0===t&&l||t===h&&!m||p(function(){if(void 0===t)return s?e():-1!==(a=n(null))?[a]:[];if(!Array.isArray(t))return-1!==(a=n(t))?[a]:[];for(var r=[],o=0,i=t;o<i.length;o++){var a,l=i[o];-1!==(a=n(l))&&r.push(a)}return r}())}),[m,s,l,h,a,t]),[d,p]}(n),s=a[0],l=a[1];return u.createElement(lx,v({},n,{responsiveMode:i,hoisted:{rootRef:o,selectedIndices:s,setSelectedIndices:l}}))}));nx.displayName="DropdownBase";var rx,ox,ix,ax,sx,lx=function(e){function t(t){var n=e.call(this,t)||this;n._host=u.createRef(),n._focusZone=u.createRef(),n._dropDown=u.createRef(),n._scrollIdleDelay=250,n._sizePosCache=new kS,n._requestAnimationFrame=function(e){var t;return function(n){t||(t=new Set,vr(e,{componentWillUnmount:function(){t.forEach((function(e){return cancelAnimationFrame(e)}))}}));var r=requestAnimationFrame((function(){t.delete(r),n()}));t.add(r)}}(n),n.dismissMenu=function(){n.state.isOpen&&n.setState({isOpen:!1})},n._onChange=function(e,t,r,o,i){var a=n.props,s=a.onChange,l=a.onChanged;if(s||l){var c=i?v(v({},t[r]),{selected:!o}):t[r];s&&s(v(v({},e),{target:n._dropDown.current}),c,r),l&&l(c,r)}},n._getPlaceholder=function(){return n.props.placeholder||n.props.placeHolder},n._getTitle=function(e,t){var r=n.props.multiSelectDelimiter,o=void 0===r?", ":r;return e.map((function(e){return e.text})).join(o)},n._onRenderTitle=function(e){return u.createElement(u.Fragment,null,n._getTitle(e))},n._onRenderPlaceholder=function(e){return n._getPlaceholder()?u.createElement(u.Fragment,null,n._getPlaceholder()):null},n._onRenderContainer=function(e){var t=e.calloutProps,r=e.panelProps,o=n.props,i=o.responsiveMode,a=o.dropdownWidth,s=i<=pp.medium,l={firstFocusableTarget:"#".concat(n._listId,"1")},c=n._classNames.subComponentStyles?n._classNames.subComponentStyles.panel:void 0,d=void 0,p=void 0;return"auto"===a?p=n._dropDown.current?n._dropDown.current.clientWidth:0:d=a||(n._dropDown.current?n._dropDown.current.clientWidth:0),s?u.createElement(XS,v({closeButtonAriaLabel:"Close",focusTrapZoneProps:l,hasCloseButton:!0,isOpen:!0,isLightDismiss:!0,onDismiss:n._onDismiss,styles:c},r),n._renderFocusableList(e)):u.createElement(Wc,v({isBeakVisible:!1,gapSpace:0,doNotLayer:!1,directionalHintFixed:!1,directionalHint:js,calloutWidth:d,calloutMinWidth:p},t,{className:n._classNames.callout,target:n._dropDown.current,onDismiss:n._onDismiss,onScroll:n._onScroll,onPositioned:n._onPositioned}),n._renderFocusableList(e))},n._onRenderCaretDown=function(e){return u.createElement(gd,{className:n._classNames.caretDown,iconName:"ChevronDown","aria-hidden":!0})},n._onRenderList=function(e){var t=e.onRenderItem,r=void 0===t?n._onRenderItem:t,o={items:[]},i=[],a=function(){var e=o.id?[u.createElement("div",{role:"group",key:o.id,"aria-labelledby":o.id},o.items)]:o.items;i=C(C([],i,!0),e,!0),o={items:[]}};return e.options.forEach((function(e,t){!function(e,t){switch(e.itemType){case Cv.Header:o.items.length>0&&a();var i=n._id+e.key;o.items.push(r(v(v({id:i},e),{index:t}),n._onRenderItem)),o.id=i;break;case Cv.Divider:t>0&&o.items.push(r(v(v({},e),{index:t}),n._onRenderItem)),o.items.length>0&&a();break;default:o.items.push(r(v(v({},e),{index:t}),n._onRenderItem))}}(e,t)})),o.items.length>0&&a(),u.createElement(u.Fragment,null,i)},n._onRenderItem=function(e){switch(e.itemType){case Cv.Divider:return n._renderSeparator(e);case Cv.Header:return n._renderHeader(e);default:return n._renderOption(e)}},n._renderOption=function(e){var t,r=n.props,o=r.onRenderOption,i=void 0===o?n._onRenderOption:o,a=r.hoisted.selectedIndices,s=void 0===a?[]:a,l=!(void 0===e.index||!s)&&s.indexOf(e.index)>-1,c=e.hidden?n._classNames.dropdownItemHidden:l&&!0===e.disabled?n._classNames.dropdownItemSelectedAndDisabled:l?n._classNames.dropdownItemSelected:!0===e.disabled?n._classNames.dropdownItemDisabled:n._classNames.dropdownItem,d=e.title,p=n._listId+e.index,m=null!==(t=e.id)&&void 0!==t?t:p+"-label",h=n._classNames.subComponentStyles?n._classNames.subComponentStyles.multiSelectItem:void 0;return n.props.multiSelect?u.createElement(Sf,{id:p,key:e.key,disabled:e.disabled,onChange:n._onItemClick(e),inputProps:v({"aria-selected":l,onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option"},{"data-index":e.index,"data-is-focusable":!(e.disabled||e.hidden)}),label:e.text,title:d,onRenderLabel:n._onRenderItemLabel.bind(n,v(v({},e),{id:m})),className:Wn(c,"is-multi-select"),checked:l,styles:h,ariaPositionInSet:e.hidden?void 0:n._sizePosCache.positionInSet(e.index),ariaSetSize:e.hidden?void 0:n._sizePosCache.optionSetSize,ariaLabel:e.ariaLabel,ariaLabelledBy:e.ariaLabel?void 0:m}):u.createElement(vm,{id:p,key:e.key,"data-index":e.index,"data-is-focusable":!e.disabled,disabled:e.disabled,className:c,onClick:n._onItemClick(e),onMouseEnter:n._onItemMouseEnter.bind(n,e),onMouseLeave:n._onMouseItemLeave.bind(n,e),onMouseMove:n._onItemMouseMove.bind(n,e),role:"option","aria-selected":l?"true":"false",ariaLabel:e.ariaLabel,title:d,"aria-posinset":n._sizePosCache.positionInSet(e.index),"aria-setsize":n._sizePosCache.optionSetSize},i(e,n._onRenderOption))},n._onRenderOption=function(e){return u.createElement("span",{className:n._classNames.dropdownOptionText},e.text)},n._onRenderMultiselectOption=function(e){return u.createElement("span",{id:e.id,"aria-hidden":"true",className:n._classNames.dropdownOptionText},e.text)},n._onRenderItemLabel=function(e){var t=n.props.onRenderOption;return(void 0===t?n._onRenderMultiselectOption:t)(e,n._onRenderMultiselectOption)},n._onPositioned=function(e){n._focusZone.current&&n._requestAnimationFrame((function(){var e=n.props.hoisted.selectedIndices;if(n._focusZone.current)if(!n._hasBeenPositioned&&e&&e[0]&&!n.props.options[e[0]].disabled){var t=Je().getElementById("".concat(n._id,"-list").concat(e[0]));t&&n._focusZone.current.focusElement(t),n._hasBeenPositioned=!0}else n._focusZone.current.focus()})),n.state.calloutRenderEdge&&n.state.calloutRenderEdge===e.targetEdge||n.setState({calloutRenderEdge:e.targetEdge})},n._onItemClick=function(e){return function(t){e.disabled||(n.setSelectedIndex(t,e.index),n.props.multiSelect||n.setState({isOpen:!1}))}},n._onScroll=function(){var e=lc(n.context);n._isScrollIdle||void 0===n._scrollIdleTimeoutId?n._isScrollIdle=!1:(e.clearTimeout(n._scrollIdleTimeoutId),n._scrollIdleTimeoutId=void 0),n._scrollIdleTimeoutId=e.setTimeout((function(){n._isScrollIdle=!0}),n._scrollIdleDelay)},n._onMouseItemLeave=function(e,t){if(!n._shouldIgnoreMouseEvent()&&n._host.current)if(n._host.current.setActive)try{n._host.current.setActive()}catch(mE){}else n._host.current.focus()},n._onDismiss=function(){n.setState({isOpen:!1})},n._onDropdownBlur=function(e){n._isDisabled()||n.state.isOpen||(n.setState({hasFocus:!1}),n.props.onBlur&&n.props.onBlur(e))},n._onDropdownKeyDown=function(e){if(!n._isDisabled()&&(n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e),!n.props.onKeyDown||(n.props.onKeyDown(e),!e.defaultPrevented))){var t,r=n.props.hoisted.selectedIndices.length?n.props.hoisted.selectedIndices[0]:-1,o=e.altKey||e.metaKey,i=n.state.isOpen;switch(e.which){case Wt:n.setState({isOpen:!i});break;case Gt:if(!i)return;n.setState({isOpen:!1});break;case $t:if(o){if(i){n.setState({isOpen:!1});break}return}n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,-1,r-1,r));break;case tn:o&&(e.stopPropagation(),e.preventDefault()),o&&!i||n.props.multiSelect?n.setState({isOpen:!0}):n._isDisabled()||(t=n._moveIndex(e,1,r+1,r));break;case Qt:n.props.multiSelect||(t=n._moveIndex(e,1,0,r));break;case Jt:n.props.multiSelect||(t=n._moveIndex(e,-1,n.props.options.length-1,r));break;case qt:break;default:return}t!==r&&(e.stopPropagation(),e.preventDefault())}},n._onDropdownKeyUp=function(e){if(!n._isDisabled()){var t=n._shouldHandleKeyUp(e),r=n.state.isOpen;n.props.onKeyUp&&(n.props.onKeyUp(e),e.defaultPrevented)||(e.which===qt?(n.setState({isOpen:!r}),e.stopPropagation(),e.preventDefault()):t&&r&&n.setState({isOpen:!1}))}},n._onZoneKeyDown=function(e){var t,r,o;n._lastKeyDownWasAltOrMeta=n._isAltOrMeta(e);var i=e.altKey||e.metaKey;switch(e.which){case $t:i?n.setState({isOpen:!1}):n._host.current&&(o=Xe(n._host.current,n._host.current.lastChild,!0));break;case Qt:case Jt:case Yt:case Zt:break;case tn:!i&&n._host.current&&(o=Qe(n._host.current,n._host.current.firstChild,!0));break;case Gt:n.setState({isOpen:!1});break;case zt:n.setState({isOpen:!1});var a=Je();a&&(e.shiftKey?null===(t=et(a.body,n._dropDown.current,!1,!1,!0,!0))||void 0===t||t.focus():null===(r=tt(a.body,n._dropDown.current,!1,!1,!0,!0))||void 0===r||r.focus());break;default:return}o&&o.focus(),e.stopPropagation(),e.preventDefault()},n._onZoneKeyUp=function(e){n._shouldHandleKeyUp(e)&&n.state.isOpen&&(n.setState({isOpen:!1}),e.preventDefault())},n._onDropdownClick=function(e){if(!n.props.onClick||(n.props.onClick(e),!e.defaultPrevented)){var t=n.state.isOpen;n._isDisabled()||n._shouldOpenOnFocus()||n.setState({isOpen:!t}),n._isFocusedByClick=!1}},n._onDropdownMouseDown=function(){n._isFocusedByClick=!0},n._onFocus=function(e){if(!n._isDisabled()){n.props.onFocus&&n.props.onFocus(e);var t={hasFocus:!0};n._shouldOpenOnFocus()&&(t.isOpen=!0),n.setState(t)}},n._isDisabled=function(){var e=n.props.disabled,t=n.props.isDisabled;return void 0===e&&(e=t),e},n._onRenderLabel=function(e){var t=e.label,r=e.required,o=e.disabled,i=n._classNames.subComponentStyles?n._classNames.subComponentStyles.label:void 0;return t?u.createElement(Pf,{className:n._classNames.label,id:n._labelId,required:r,styles:i,disabled:o},t):null},Xr(n);var r=t.multiSelect,o=t.selectedKey,i=t.selectedKeys,a=t.defaultSelectedKey,s=t.defaultSelectedKeys,l=t.options;if(Rt($S,t,{isDisabled:"disabled",onChanged:"onChange",placeHolder:"placeholder",onRenderPlaceHolder:"onRenderPlaceholder"}),Tt($S,t,{defaultSelectedKey:"selectedKey",defaultSelectedKeys:"selectedKeys",selectedKeys:"selectedKey"}),r){var c=function(e){return _t("Dropdown property '".concat(e,"' cannot be used when 'multiSelect' is true. Use '").concat(e,"s' instead."))};void 0!==o&&c("selectedKey"),void 0!==a&&c("defaultSelectedKey")}else{var d=function(e){return _t("Dropdown property '".concat(e,"s' cannot be used when 'multiSelect' is false/unset. Use '").concat(e,"' instead."))};void 0!==i&&d("selectedKey"),void 0!==s&&d("defaultSelectedKey")}return n._id=t.id||Cr("Dropdown"),n._labelId=n._id+"-label",n._listId=n._id+"-list",n._optionId=n._id+"-option",n._isScrollIdle=!0,n._hasBeenPositioned=!1,n._sizePosCache.updateOptions(l),n.state={isOpen:!1,hasFocus:!1,calloutRenderEdge:void 0},n}return g(t,e),Object.defineProperty(t.prototype,"selectedOptions",{get:function(){var e=this.props;return Rv(e.options,e.hoisted.selectedIndices)},enumerable:!1,configurable:!0}),t.prototype.componentWillUnmount=function(){clearTimeout(this._scrollIdleTimeoutId)},t.prototype.componentDidUpdate=function(e,t){!0===t.isOpen&&!1===this.state.isOpen&&(this._gotMouseMove=!1,this._hasBeenPositioned=!1,this.props.onDismiss&&this.props.onDismiss())},t.prototype.render=function(){var e=this._id,t=this.props,n=t.className,r=t.label,o=t.options,i=t.ariaLabel,a=t.required,s=t.errorMessage,l=t.styles,c=t.theme,d=t.panelProps,p=t.calloutProps,m=t.onRenderTitle,h=void 0===m?this._getTitle:m,f=t.onRenderContainer,g=void 0===f?this._onRenderContainer:f,y=t.onRenderCaretDown,b=void 0===y?this._onRenderCaretDown:y,C=t.onRenderLabel,S=void 0===C?this._onRenderLabel:C,x=t.onRenderItem,k=void 0===x?this._onRenderItem:x,P=t.hoisted.selectedIndices,I=this.state,w=I.isOpen,E=I.calloutRenderEdge,_=I.hasFocus,D=t.onRenderPlaceholder||t.onRenderPlaceHolder||this._getPlaceholder;o!==this._sizePosCache.cachedOptions&&this._sizePosCache.updateOptions(o);var T=Rv(o,P),R=qr(t,Gr),A=this._isDisabled(),M=e+"-errorMessage";this._classNames=ex(l,{theme:c,className:n,hasError:!!(s&&s.length>0),hasLabel:!!r,isOpen:w,required:a,disabled:A,isRenderingPlaceholder:!T.length,panelClassName:d?d.className:void 0,calloutClassName:p?p.className:void 0,calloutRenderEdge:E});var N=!!s&&s.length>0;return u.createElement("div",{className:this._classNames.root,ref:this.props.hoisted.rootRef,"aria-owns":w?this._listId:void 0},S(this.props,this._onRenderLabel),u.createElement("div",v({"data-is-focusable":!A,"data-ktp-target":!0,ref:this._dropDown,id:e,tabIndex:A?-1:0,role:"combobox","aria-haspopup":"listbox","aria-expanded":w?"true":"false","aria-label":i,"aria-labelledby":r&&!i?mn(this._labelId,this._optionId):void 0,"aria-describedby":N?this._id+"-errorMessage":void 0,"aria-required":a,"aria-disabled":A,"aria-controls":w?this._listId:void 0},R,{className:this._classNames.dropdown,onBlur:this._onDropdownBlur,onKeyDown:this._onDropdownKeyDown,onKeyUp:this._onDropdownKeyUp,onClick:this._onDropdownClick,onMouseDown:this._onDropdownMouseDown,onFocus:this._onFocus}),u.createElement("span",{id:this._optionId,className:this._classNames.title,"aria-live":_?"polite":void 0,"aria-atomic":!!_||void 0,"aria-invalid":N},T.length?h(T,this._onRenderTitle):D(t,this._onRenderPlaceholder)),u.createElement("span",{className:this._classNames.caretDownWrapper},b(t,this._onRenderCaretDown))),w&&g(v(v({},t),{onDismiss:this._onDismiss,onRenderItem:k}),this._onRenderContainer),N&&u.createElement("div",{role:"alert",id:M,className:this._classNames.errorMessage},s))},t.prototype.focus=function(e){this._dropDown.current&&(this._dropDown.current.focus(),e&&this.setState({isOpen:!0}))},t.prototype.setSelectedIndex=function(e,t){var n=this.props,r=n.options,o=n.selectedKey,i=n.selectedKeys,a=n.multiSelect,s=n.notifyOnReselect,l=n.hoisted.selectedIndices,c=void 0===l?[]:l,d=!!c&&c.indexOf(t)>-1,u=[];if(t=Math.max(0,Math.min(r.length-1,t)),void 0===o&&void 0===i){if(a||s||t!==c[0]){if(a)if(u=c?this._copyArray(c):[],d){var p=u.indexOf(t);p>-1&&u.splice(p,1)}else u.push(t);else u=[t];e.persist(),this.props.hoisted.setSelectedIndices(u),this._onChange(e,r,t,d,a)}}else this._onChange(e,r,t,d,a)},t.prototype._copyArray=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];t.push(o)}return t},t.prototype._moveIndex=function(e,t,n,r){var o=this.props.options;if(r===n||0===o.length)return r;n>=o.length?n=0:n<0&&(n=o.length-1);for(var i=0;o[n].itemType===Cv.Header||o[n].itemType===Cv.Divider||o[n].disabled;){if(i>=o.length)return r;n+t<0?n=o.length:n+t>=o.length&&(n=-1),n+=t,i++}return this.setSelectedIndex(e,n),n},t.prototype._renderFocusableList=function(e){var t=e.onRenderList,n=void 0===t?this._onRenderList:t,r=e.label,o=e.ariaLabel,i=e.multiSelect;return u.createElement("div",{className:this._classNames.dropdownItemsWrapper,onKeyDown:this._onZoneKeyDown,onKeyUp:this._onZoneKeyUp,ref:this._host,tabIndex:0},u.createElement(Cu,{ref:this._focusZone,direction:ou.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)))},t.prototype._renderSeparator=function(e){var t=e.index,n=e.key,r=e.hidden?this._classNames.dropdownDividerHidden:this._classNames.dropdownDivider;return t>0?u.createElement("div",{role:"presentation",key:n,className:r}):null},t.prototype._renderHeader=function(e){var t=this.props.onRenderOption,n=void 0===t?this._onRenderOption:t,r=e.key,o=e.id,i=e.hidden?this._classNames.dropdownItemHeaderHidden:this._classNames.dropdownItemHeader;return u.createElement("div",{id:o,key:r,className:i},n(e,this._onRenderOption))},t.prototype._onItemMouseEnter=function(e,t){this._shouldIgnoreMouseEvent()||t.currentTarget.focus()},t.prototype._onItemMouseMove=function(e,t){var n=sc(this.context),r=t.currentTarget;this._gotMouseMove=!0,this._isScrollIdle&&n.activeElement!==r&&r.focus()},t.prototype._shouldIgnoreMouseEvent=function(){return!this._isScrollIdle||!this._gotMouseMove},t.prototype._isAltOrMeta=function(e){return e.which===jt||"Meta"===e.key},t.prototype._shouldHandleKeyUp=function(e){var t=this._lastKeyDownWasAltOrMeta&&this._isAltOrMeta(e);return this._lastKeyDownWasAltOrMeta=!1,!!t&&!(Oo()||No())},t.prototype._shouldOpenOnFocus=function(){var e=this.state.hasFocus,t=this.props.openOnKeyboardFocus;return!this._isFocusedByClick&&!0===t&&!e},t.defaultProps={options:[]},t.contextType=dr,t}(u.Component),cx={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"},dx=((rx={})["".concat(Wa,", ").concat(Ua.replace("@media ",""))]=v({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),rx),ux={selectors:v((ox={},ox[Wa]=(ix={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},ix[".".concat(io," &:focus:after")]={borderColor:"HighlightText"},ix),ox[".ms-Checkbox-checkbox"]=(ax={},ax[Wa]={borderColor:"HighlightText"},ax),ox),dx)},px={selectors:(sx={},sx[Wa]={borderColor:"Highlight"},sx)},mx=qa(0,Ka),hx=Jo(nx,(function(e){var t,n,r,o,i,a,s,l,c,d,u,p,m=e.theme,h=e.hasError,f=e.hasLabel,g=e.className,y=e.isOpen,b=e.disabled,S=e.required,x=e.isRenderingPlaceholder,k=e.panelClassName,P=e.calloutClassName,I=e.calloutRenderEdge;if(!m)throw new Error("theme is undefined or null in base Dropdown getStyles function.");var w=os(cx,m),E=m.palette,_=m.semanticColors,D=m.effects,T=m.fonts,R={color:_.menuItemTextHovered},A={color:_.menuItemText},M={borderColor:_.errorText},N=[w.dropdownItem,{backgroundColor:"transparent",boxSizing:"border-box",cursor:"pointer",display:"flex",alignItems:"center",padding:"0 8px",width:"100%",minHeight:36,lineHeight:20,height:0,position:"relative",border:"1px solid transparent",borderRadius:0,wordWrap:"break-word",overflowWrap:"break-word",textAlign:"left",".ms-Button-flexContainer":{width:"100%"}}],F=[w.dropdownItemHeader,v(v({},T.medium),{fontWeight:Hi.semibold,color:_.menuHeader,background:"none",backgroundColor:"transparent",border:"none",height:36,lineHeight:36,cursor:"default",padding:"0 8px",userSelect:"none",textAlign:"left",selectors:(t={},t[Wa]=v({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)})],H=_.menuItemBackgroundPressed,O=function(e){var t,n;return void 0===e&&(e=!1),{selectors:(t={"&:hover":[{color:_.menuItemTextHovered,backgroundColor:e?H:_.menuItemBackgroundHovered},ux],"&.is-multi-select:hover":[{backgroundColor:e?H:"transparent"},ux],"&:active:hover":[{color:_.menuItemTextHovered,backgroundColor:e?_.menuItemBackgroundHovered:_.menuItemBackgroundPressed},ux]},t[".".concat(io," &:focus:after, :host(.").concat(io,") &:focus:after")]=(n={left:0,top:0,bottom:0,right:0},n[Wa]={inset:"2px"},n),t[Wa]={border:"none"},t)}},B=C(C([],N,!0),[{backgroundColor:H,color:_.menuItemTextHovered},O(!0),ux],!1),L=C(C([],N,!0),[{color:_.disabledText,cursor:"default",selectors:(n={},n[Wa]={color:"GrayText",border:"none"},n)}],!1),V=I===Ts.bottom?"".concat(D.roundedCorner2," ").concat(D.roundedCorner2," 0 0"):"0 0 ".concat(D.roundedCorner2," ").concat(D.roundedCorner2),z=I===Ts.bottom?"0 0 ".concat(D.roundedCorner2," ").concat(D.roundedCorner2):"".concat(D.roundedCorner2," ").concat(D.roundedCorner2," 0 0");return{root:[w.root,g],label:w.label,dropdown:[w.dropdown,ks,T.medium,{color:_.menuItemText,borderColor:_.focusBorder,position:"relative",outline:0,userSelect:"none",selectors:(r={},r["&:hover ."+w.title]=[!b&&R,{borderColor:y?E.neutralSecondary:E.neutralPrimary},px],r["&:focus ."+w.title]=[!b&&R,{selectors:(o={},o[Wa]={color:"Highlight"},o)}],r["&:focus:after"]=[{pointerEvents:"none",content:"''",position:"absolute",boxSizing:"border-box",top:"0px",left:"0px",width:"100%",height:"100%",border:b?"none":"2px solid ".concat(E.themePrimary),borderRadius:"2px",selectors:(i={},i[Wa]={color:"Highlight"},i)}],r["&:active ."+w.title]=[!b&&R,{borderColor:E.themePrimary},px],r["&:hover ."+w.caretDown]=!b&&A,r["&:focus ."+w.caretDown]=[!b&&A,{selectors:(a={},a[Wa]={color:"Highlight"},a)}],r["&:active ."+w.caretDown]=!b&&A,r["&:hover ."+w.titleIsPlaceHolder]=!b&&A,r["&:focus ."+w.titleIsPlaceHolder]=!b&&A,r["&:active ."+w.titleIsPlaceHolder]=!b&&A,r["&:hover ."+w.titleHasError]=M,r["&:active ."+w.titleHasError]=M,r)},y&&"is-open",b&&"is-disabled",S&&"is-required",S&&!f&&{selectors:(s={":before":{content:"'*'",color:_.errorText,position:"absolute",top:-5,right:-10}},s[Wa]={selectors:{":after":{right:-14}}},s)}],title:[w.title,ks,{backgroundColor:_.inputBackground,borderWidth:1,borderStyle:"solid",borderColor:_.inputBorder,borderRadius:y?V:D.roundedCorner2,cursor:"pointer",display:"block",height:32,lineHeight:30,padding:"0 28px 0 8px",position:"relative",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},x&&[w.titleIsPlaceHolder,{color:_.inputPlaceholderText}],h&&[w.titleHasError,M],b&&{backgroundColor:_.disabledBackground,border:"none",color:_.disabledText,cursor:"default",selectors:(l={},l[Wa]=v({border:"1px solid GrayText",color:"GrayText",backgroundColor:"Window"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),l)}],caretDownWrapper:[w.caretDownWrapper,{height:32,lineHeight:30,paddingTop:1,position:"absolute",right:8,top:0},!b&&{cursor:"pointer"}],caretDown:[w.caretDown,{color:E.neutralSecondary,fontSize:T.small.fontSize,pointerEvents:"none"},b&&{color:_.disabledText,selectors:(c={},c[Wa]=v({color:"GrayText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),c)}],errorMessage:v(v({color:_.errorText},m.fonts.small),{paddingTop:5}),callout:[w.callout,{boxShadow:D.elevation8,borderRadius:z,selectors:(d={},d[".ms-Callout-main"]={borderRadius:z},d)},P],dropdownItemsWrapper:{selectors:{"&:focus":{outline:0}}},dropdownItems:[w.dropdownItems,{display:"block"}],dropdownItem:C(C([],N,!0),[O()],!1),dropdownItemSelected:B,dropdownItemDisabled:L,dropdownItemSelectedAndDisabled:[B,L,{backgroundColor:"transparent"}],dropdownItemHidden:C(C([],N,!0),[{display:"none"}],!1),dropdownDivider:[w.dropdownDivider,{height:1,backgroundColor:_.bodyDivider}],dropdownDividerHidden:[w.dropdownDivider,{display:"none"}],dropdownOptionText:[w.dropdownOptionText,{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",minWidth:0,maxWidth:"100%",wordWrap:"break-word",overflowWrap:"break-word",margin:"1px"}],dropdownItemHeader:F,dropdownItemHeaderHidden:C(C([],F,!0),[{display:"none"}],!1),subComponentStyles:{label:{root:{display:"inline-block"}},multiSelectItem:{root:{padding:0},label:{alignSelf:"stretch",padding:"0 8px",width:"100%"},input:{selectors:(u={},u[".".concat(io," &:focus + label::before, :host(.").concat(io,") &:focus + label::before")]={outlineOffset:"0px"},u)}},panel:{root:[k],main:{selectors:(p={},p[mx]={width:272},p)},contentInner:{padding:"0 0 20px"}}}}}),void 0,{scope:"Dropdown"});hx.displayName="Dropdown",ps([{rawString:".pickerText_9f838726{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;padding:1px;min-height:32px}.pickerText_9f838726:hover{border-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.pickerInput_9f838726{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;margin:1px}.pickerInput_9f838726::-ms-clear{display:none}"}]);var fx=Object.freeze({__proto__:null,pickerText:"pickerText_9f838726",pickerInput:"pickerInput_9f838726"}),gx=function(e){function t(t){var n=e.call(this,t)||this;return n.floatingPicker=u.createRef(),n.selectedItemsList=u.createRef(),n.root=u.createRef(),n.input=u.createRef(),n.onSelectionChange=function(){n.forceUpdate()},n.onInputChange=function(e,t){t||(n.setState({queryString:e}),n.floatingPicker.current&&n.floatingPicker.current.onQueryStringChanged(e))},n.onInputFocus=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e)},n.onInputClick=function(e){if(n.selectedItemsList.current&&n.selectedItemsList.current.unselectAll(),n.floatingPicker.current&&n.inputElement){var t=""===n.inputElement.value||n.inputElement.value!==n.floatingPicker.current.inputText;n.floatingPicker.current.showPicker(t)}},n.onBackspace=function(e){e.which===Vt&&n.selectedItemsList.current&&n.items.length&&(n.input.current&&!n.input.current.isValueSelected&&n.input.current.inputElement===e.currentTarget.ownerDocument.activeElement&&0===n.input.current.cursorLocation?(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeItemAt(n.items.length-1),n._onSelectedItemsChanged()):n.selectedItemsList.current.hasSelectedItems()&&(n.floatingPicker.current&&n.floatingPicker.current.hidePicker(),e.preventDefault(),n.selectedItemsList.current.removeSelectedItems(),n._onSelectedItemsChanged()))},n.onCopy=function(e){n.selectedItemsList.current&&n.selectedItemsList.current.onCopy(e)},n.onPaste=function(e){if(n.props.onPaste){var t=e.clipboardData.getData("Text");e.preventDefault(),n.props.onPaste(t)}},n._onSuggestionSelected=function(e){var t=n.props.currentRenderedQueryString,r=n.state.queryString;if(void 0===t||t===r){var o=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null===o)return;var i,a=o,s=o;s&&s.then?s.then((function(e){i=e,n._addProcessedItem(i)})):(i=a,n._addProcessedItem(i))}},n._onSelectedItemsChanged=function(){n.focus()},n._onSuggestionsShownOrHidden=function(){n.forceUpdate()},Xr(n),n.selection=new Uo({onSelectionChanged:function(){return n.onSelectionChange()}}),n.state={queryString:""},n}return g(t,e),Object.defineProperty(t.prototype,"items",{get:function(){var e,t,n,r;return null!==(r=null!==(n=null!==(e=this.props.selectedItems)&&void 0!==e?e:null===(t=this.selectedItemsList.current)||void 0===t?void 0:t.items)&&void 0!==n?n:this.props.defaultSelectedItems)&&void 0!==r?r:null},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this.forceUpdate()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.clearInput=function(){this.input.current&&this.input.current.clear()},Object.defineProperty(t.prototype,"inputElement",{get:function(){return this.input.current&&this.input.current.inputElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"highlightedItems",{get:function(){return this.selectedItemsList.current?this.selectedItemsList.current.highlightedItems():[]},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.props,t=e.className,n=e.inputProps,r=e.disabled,o=e.focusZoneProps,i=this.floatingPicker.current&&-1!==this.floatingPicker.current.currentSelectedSuggestionIndex?"sug-"+this.floatingPicker.current.currentSelectedSuggestionIndex:void 0,a=!!this.floatingPicker.current&&this.floatingPicker.current.isSuggestionsShown;return u.createElement("div",{ref:this.root,className:Wn("ms-BasePicker ms-BaseExtendedPicker",t||""),onKeyDown:this.onBackspace,onCopy:this.onCopy},u.createElement(Cu,v({direction:ou.bidirectional},o),u.createElement(Ay,{selection:this.selection,selectionMode:Vo.multiple},u.createElement("div",{className:Wn("ms-BasePicker-text",fx.pickerText),role:"list"},this.props.headerComponent,this.renderSelectedItemsList(),this.canAddItems()&&u.createElement($d,v({},n,{className:Wn("ms-BasePicker-input",fx.pickerInput),ref:this.input,onFocus:this.onInputFocus,onClick:this.onInputClick,onInputValueChange:this.onInputChange,"aria-activedescendant":i,"aria-owns":a?"suggestion-list":void 0,"aria-expanded":a,"aria-haspopup":"true",role:"combobox",disabled:r,onPaste:this.onPaste}))))),this.renderFloatingPicker())},Object.defineProperty(t.prototype,"floatingPickerProps",{get:function(){return this.props.floatingPickerProps},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedItemsListProps",{get:function(){return this.props.selectedItemsListProps},enumerable:!1,configurable:!0}),t.prototype.canAddItems=function(){var e=this.props.itemLimit;return void 0===e||this.items.length<e},t.prototype.renderFloatingPicker=function(){var e=this.props.onRenderFloatingPicker;return u.createElement(e,v({componentRef:this.floatingPicker,onChange:this._onSuggestionSelected,onSuggestionsHidden:this._onSuggestionsShownOrHidden,onSuggestionsShown:this._onSuggestionsShownOrHidden,inputElement:this.input.current?this.input.current.inputElement:void 0,selectedItems:this.items,suggestionItems:this.props.suggestionItems?this.props.suggestionItems:void 0},this.floatingPickerProps))},t.prototype.renderSelectedItemsList=function(){var e=this.props.onRenderSelectedItems;return u.createElement(e,v({componentRef:this.selectedItemsList,selection:this.selection,selectedItems:this.props.selectedItems?this.props.selectedItems:void 0,onItemsDeleted:this.props.selectedItems?this.props.onItemsRemoved:void 0},this.selectedItemsListProps))},t.prototype._addProcessedItem=function(e){this.props.onItemAdded&&this.props.onItemAdded(e),this.selectedItemsList.current&&this.selectedItemsList.current.addItems([e]),this.input.current&&this.input.current.clear(),this.floatingPicker.current&&this.floatingPicker.current.hidePicker(),this.focus()},t}(u.Component);ps([{rawString:".resultContent_4cc31f3f{display:table-row}.resultContent_4cc31f3f .resultItem_4cc31f3f{display:table-cell;vertical-align:bottom}.peoplePickerPersona_4cc31f3f{width:180px}.peoplePickerPersona_4cc31f3f .ms-Persona-details{width:100%}.peoplePicker_4cc31f3f .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_4cc31f3f{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center}"}]);var vx,yx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(gx);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}g(t,e)}(yx);!function(e){e[e.none=0]="none",e[e.descriptive=1]="descriptive",e[e.more=2]="more",e[e.downArrow=3]="downArrow"}(vx||(vx={}));var bx=Fn((function(e,t,n){var r=tm(e),o=_e(r,n);return v(v({},o),{root:[r.root,t,e.fonts.medium,n&&n.root]})})),Cx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.className,n=e.styles,r=y(e,["className","styles"]),o=bx(this.props.theme,t,n);return u.createElement(Xp,v({},r,{variantClassName:"ms-Button--facepile",styles:o,onRenderDescription:Mt}))},t=b([fr("FacepileButton",["theme","styles"],!0)],t)}(u.Component),Sx=wn(),xx=function(e){function t(t){var n=e.call(this,t)||this;return n._classNames=Sx(n.props.styles,{theme:n.props.theme,className:n.props.className}),n._getPersonaControl=function(e){var t=n.props,r=t.getPersonaProps,o=t.personaSize;return u.createElement(Qd,v({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:o},r?r(e):null,{styles:{details:{flex:"1 0 auto"}}}))},n._getPersonaCoinControl=function(e){var t=n.props,r=t.getPersonaProps,o=t.personaSize;return u.createElement(Gd,v({imageInitials:e.imageInitials,imageUrl:e.imageUrl,initialsColor:e.initialsColor,allowPhoneInitials:e.allowPhoneInitials,text:e.personaName,size:o},r?r(e):null))},Xr(n),n._ariaDescriptionId=Cr(),n}return g(t,e),t.prototype.render=function(){var e=this.props.overflowButtonProps,t=this.props,n=t.chevronButtonProps,r=t.maxDisplayablePersonas,o=t.personas,i=t.overflowPersonas,a=t.showAddButton,s=t.ariaLabel,l=t.showTooltip,c=void 0===l||l,d=this._classNames,p="number"===typeof r?Math.min(o.length,r):o.length;n&&!e&&(e=n);var m=i&&i.length>0,h=m?o:o.slice(0,p),f=(m?i:o.slice(p))||[];return u.createElement("div",{className:d.root},this.onRenderAriaDescription(),u.createElement("div",{className:d.itemContainer},a?this._getAddNewElement():null,u.createElement("ul",{className:d.members,"aria-label":s},this._onRenderVisiblePersonas(h,0===f.length&&1===o.length,c)),e?this._getOverflowElement(f):null))},t.prototype.onRenderAriaDescription=function(){var e=this.props.ariaDescription,t=this._classNames;return e&&u.createElement("span",{className:t.screenReaderOnly,id:this._ariaDescriptionId},e)},t.prototype._onRenderVisiblePersonas=function(e,t,n){var r=this,o=this.props,i=o.onRenderPersona,a=void 0===i?this._getPersonaControl:i,s=o.onRenderPersonaCoin,l=void 0===s?this._getPersonaCoinControl:s,c=o.onRenderPersonaWrapper;return e.map((function(e,o){var i=t?a(e,r._getPersonaControl):l(e,r._getPersonaCoinControl),s=e.onClick?function(){return r._getElementWithOnClickEvent(i,e,n,o)}:function(){return r._getElementWithoutOnClickEvent(i,e,n,o)};return u.createElement("li",{key:"".concat(t?"persona":"personaCoin","-").concat(o),className:r._classNames.member},c?c(e,s):s())}))},t.prototype._getElementWithOnClickEvent=function(e,t,n,r){var o=t.keytipProps;return u.createElement(Cx,v({},qr(t,Ar),this._getElementProps(t,n,r),{keytipProps:o,onClick:this._onPersonaClick.bind(this,t)}),e)},t.prototype._getElementWithoutOnClickEvent=function(e,t,n,r){return u.createElement("div",v({},qr(t,Ar),this._getElementProps(t,n,r)),e)},t.prototype._getElementProps=function(e,t,n){var r=this._classNames;return{key:(e.imageUrl?"i":"")+n,"data-is-focusable":!0,className:r.itemButton,title:t?e.personaName:void 0,onMouseMove:this._onPersonaMouseMove.bind(this,e),onMouseOut:this._onPersonaMouseOut.bind(this,e)}},t.prototype._getOverflowElement=function(e){switch(this.props.overflowButtonType){case vx.descriptive:return this._getDescriptiveOverflowElement(e);case vx.downArrow:return this._getIconElement("ChevronDown");case vx.more:return this._getIconElement("More");default:return null}},t.prototype._getDescriptiveOverflowElement=function(e){var t=this.props.personaSize;if(!e||e.length<1)return null;var n=e.map((function(e){return e.personaName})).join(", "),r=v({title:n},this.props.overflowButtonProps),o=Math.max(e.length,0),i=this._classNames;return u.createElement(Cx,v({},r,{ariaDescription:r.title,className:i.descriptiveOverflowButton}),u.createElement(Gd,{size:t,onRenderInitials:this._renderInitialsNotPictured(o),initialsColor:bd.transparent}))},t.prototype._getIconElement=function(e){var t=this.props,n=t.overflowButtonProps,r=t.personaSize,o=this._classNames;return u.createElement(Cx,v({},n,{className:o.overflowButton}),u.createElement(Gd,{size:r,onRenderInitials:this._renderInitials(e,!0),initialsColor:bd.transparent}))},t.prototype._getAddNewElement=function(){var e=this.props,t=e.addButtonProps,n=e.personaSize,r=this._classNames;return u.createElement(Cx,v({},t,{className:r.addButton}),u.createElement(Gd,{size:n,onRenderInitials:this._renderInitials("AddFriend")}))},t.prototype._onPersonaClick=function(e,t){e.onClick(t,e),t.preventDefault(),t.stopPropagation()},t.prototype._onPersonaMouseMove=function(e,t){e.onMouseMove&&e.onMouseMove(t,e)},t.prototype._onPersonaMouseOut=function(e,t){e.onMouseOut&&e.onMouseOut(t,e)},t.prototype._renderInitials=function(e,t){var n=this._classNames;return function(){return u.createElement(gd,{iconName:e,className:t?n.overflowInitialsIcon:""})}},t.prototype._renderInitialsNotPictured=function(e){var t=this._classNames;return function(){return u.createElement("span",{className:t.overflowInitialsIcon},e<100?"+"+e:"99+")}},t.defaultProps={maxDisplayablePersonas:5,personas:[],overflowPersonas:[],personaSize:vd.size32},t}(u.Component),kx={root:"ms-Facepile",addButton:"ms-Facepile-addButton ms-Facepile-itemButton",descriptiveOverflowButton:"ms-Facepile-descriptiveOverflowButton ms-Facepile-itemButton",itemButton:"ms-Facepile-itemButton ms-Facepile-person",itemContainer:"ms-Facepile-itemContainer",members:"ms-Facepile-members",member:"ms-Facepile-member",overflowButton:"ms-Facepile-overflowButton ms-Facepile-itemButton"};Jo(xx,(function(e){var t,n=e.className,r=e.theme,o=e.spacingAroundItemButton,i=void 0===o?2:o,a=r.palette,s=r.fonts,l=os(kx,r),c={textAlign:"center",padding:0,borderRadius:"50%",verticalAlign:"top",display:"inline",backgroundColor:"transparent",border:"none",selectors:{"&::-moz-focus-inner":{padding:0,border:0}}};return{root:[l.root,r.fonts.medium,{width:"auto"},n],addButton:[l.addButton,Ya(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.white,backgroundColor:a.themePrimary,marginRight:2*i+"px",selectors:{"&:hover":{backgroundColor:a.themeDark},"&:focus":{backgroundColor:a.themeDark},"&:active":{backgroundColor:a.themeDarker},"&:disabled":{backgroundColor:a.neutralTertiaryAlt}}}],descriptiveOverflowButton:[l.descriptiveOverflowButton,Ya(r,{inset:-1}),c,{fontSize:s.small.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],itemButton:[l.itemButton,c],itemContainer:[l.itemContainer,{display:"flex"}],members:[l.members,{display:"flex",overflow:"hidden",listStyleType:"none",padding:0,margin:"-".concat(i,"px")}],member:[l.member,{display:"inline-flex",flex:"0 0 auto",margin:"".concat(i,"px")}],overflowButton:[l.overflowButton,Ya(r,{inset:-1}),c,{fontSize:s.medium.fontSize,color:a.neutralSecondary,backgroundColor:a.neutralLighter,marginLeft:"".concat(2*i,"px")}],overflowInitialsIcon:[{color:a.neutralPrimary,selectors:(t={},t[Wa]={color:"WindowText"},t)}],screenReaderOnly:Qa}}),void 0,{scope:"Facepile"});ps([{rawString:".callout_ad5629e1 .ms-Suggestions-itemButton{padding:0;border:none}.callout_ad5629e1 .ms-Suggestions{min-width:300px}"}]);var Px,Ix=Object.freeze({__proto__:null,callout:"callout_ad5629e1"});!function(e){e[e.none=0]="none",e[e.forceResolve=1]="forceResolve",e[e.searchMore=2]="searchMore"}(Px||(Px={})),ps([{rawString:".root_8c91000a{min-width:260px}.suggestionsItem_8c91000a{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-sizing:border-box;box-sizing:border-box;width:100%;position:relative;overflow:hidden}.suggestionsItem_8c91000a:hover{background:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:"}.suggestionsItem_8c91000a:hover .closeButton_8c91000a{display:block}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a:hover{background:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a{background:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";color:"},{theme:"neutralPrimary",defaultValue:"#323130"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.suggestionsItem_8c91000a.suggestionsItemIsSuggested_8c91000a .itemButton_8c91000a{color:HighlightText}}.suggestionsItem_8c91000a .closeButton_8c91000a{display:none;color:"},{theme:"neutralSecondary",defaultValue:"#605e5c"},{rawString:"}.suggestionsItem_8c91000a .closeButton_8c91000a:hover{background:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.actionButton_8c91000a{background-color:transparent;border:0;cursor:pointer;margin:0;position:relative;border-top:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";height:40px;width:100%;font-size:12px}[dir=ltr] .actionButton_8c91000a{padding-left:8px}[dir=rtl] .actionButton_8c91000a{padding-right:8px}html[dir=ltr] .actionButton_8c91000a{text-align:left}html[dir=rtl] .actionButton_8c91000a{text-align:right}.actionButton_8c91000a:hover{background-color:"},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:";cursor:pointer}.actionButton_8c91000a:active,.actionButton_8c91000a:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_8c91000a .ms-Button-icon{font-size:16px;width:25px}.actionButton_8c91000a .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_8c91000a .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_8c91000a{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.suggestionsTitle_8c91000a{padding:0 12px;color:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:";font-size:12px;line-height:40px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsContainer_8c91000a{overflow-y:auto;overflow-x:hidden;max-height:300px;border-bottom:1px solid "},{theme:"neutralLight",defaultValue:"#edebe9"},{rawString:"}.suggestionsNone_8c91000a{text-align:center;color:#797775;font-size:12px;line-height:30px}.suggestionsSpinner_8c91000a{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_8c91000a{padding-left:14px}html[dir=rtl] .suggestionsSpinner_8c91000a{padding-right:14px}html[dir=ltr] .suggestionsSpinner_8c91000a{text-align:left}html[dir=rtl] .suggestionsSpinner_8c91000a{text-align:right}.suggestionsSpinner_8c91000a .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_8c91000a .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_8c91000a .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_8c91000a.itemButton_8c91000a{width:100%;padding:0;min-width:0;height:100%}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_8c91000a.itemButton_8c91000a{color:WindowText}}.itemButton_8c91000a.itemButton_8c91000a:hover{color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.closeButton_8c91000a.closeButton_8c91000a{padding:0 4px;height:auto;width:32px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.closeButton_8c91000a.closeButton_8c91000a{color:WindowText}}.closeButton_8c91000a.closeButton_8c91000a:hover{background:"},{theme:"neutralTertiaryAlt",defaultValue:"#c8c6c4"},{rawString:";color:"},{theme:"neutralDark",defaultValue:"#201f1e"},{rawString:"}.suggestionsAvailable_8c91000a{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var wx=Object.freeze({__proto__:null,root:"root_8c91000a",suggestionsItem:"suggestionsItem_8c91000a",closeButton:"closeButton_8c91000a",suggestionsItemIsSuggested:"suggestionsItemIsSuggested_8c91000a",itemButton:"itemButton_8c91000a",actionButton:"actionButton_8c91000a",buttonSelected:"buttonSelected_8c91000a",suggestionsTitle:"suggestionsTitle_8c91000a",suggestionsContainer:"suggestionsContainer_8c91000a",suggestionsNone:"suggestionsNone_8c91000a",suggestionsSpinner:"suggestionsSpinner_8c91000a",suggestionsAvailable:"suggestionsAvailable_8c91000a"}),Ex=wx,_x=wn(),Dx=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),n}return g(t,e),t.prototype.render=function(){var e,t=this.props,n=t.suggestionModel,r=t.RenderSuggestion,o=t.onClick,i=t.className,a=t.id,s=t.onRemoveItem,l=t.isSelectedOverride,c=t.removeButtonAriaLabel,d=t.styles,p=t.theme,m=t.removeButtonIconProps,h=d?_x(d,{theme:p,className:i,suggested:n.selected||l}):{root:Wn("ms-Suggestions-item",Ex.suggestionsItem,(e={},e["is-suggested "+Ex.suggestionsItemIsSuggested]=n.selected||l,e),i),itemButton:Wn("ms-Suggestions-itemButton",Ex.itemButton),closeButton:Wn("ms-Suggestions-closeButton",Ex.closeButton)};return u.createElement("div",{className:h.root,role:"presentation"},u.createElement(vm,{onClick:o,className:h.itemButton,id:a,"aria-selected":n.selected,role:"option","aria-label":n.ariaLabel},r(n.item,this.props)),this.props.showRemoveButton?u.createElement(mm,{iconProps:null!==m&&void 0!==m?m:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},title:c,ariaLabel:c,onClick:s,className:h.closeButton}):null)},t}(u.Component),Tx={root:"ms-Suggestions-item",itemButton:"ms-Suggestions-itemButton",closeButton:"ms-Suggestions-closeButton",isSuggested:"is-suggested"};var Rx=wx,Ax=wn(),Mx=Jo(Dx,(function(e){var t,n,r,o,i,a,s=e.className,l=e.theme,c=e.suggested,d=l.palette,u=l.semanticColors,p=os(Tx,l);return{root:[p.root,{display:"flex",alignItems:"stretch",boxSizing:"border-box",width:"100%",position:"relative",selectors:{"&:hover":{background:u.menuItemBackgroundHovered},"&:hover .ms-Suggestions-closeButton":{display:"block"}}},c&&{selectors:(t={},t[".".concat(io," &, :host(.").concat(io,") &")]={selectors:(n={},n[".".concat(p.closeButton)]={display:"block",background:u.menuItemBackgroundPressed},n)},t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid ".concat(l.semanticColors.focusBorder)},t)},s],itemButton:[p.itemButton,{justifyContent:"flex-start",width:"100%",padding:0,border:"none",height:"100%",minWidth:0,overflow:"hidden",selectors:(r={},r[Wa]={color:"WindowText",selectors:{":hover":v({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"})}},r[":hover"]={color:u.menuItemTextHovered},r)},c&&[p.isSuggested,{background:u.menuItemBackgroundPressed,selectors:(o={":hover":{background:u.menuDivider}},o[Wa]=v({background:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),o)}]],closeButton:[p.closeButton,{display:"none",color:d.neutralSecondary,padding:"0 4px",height:"auto",width:32,selectors:(i={":hover, :active":{background:d.neutralTertiaryAlt,color:d.neutralDark}},i[Wa]={color:"WindowText"},i)},c&&(a={},a[".".concat(io," &, :host(.").concat(io,") &")]={selectors:{":hover, :active":{background:d.neutralTertiary}}},a.selectors={":hover, :active":{background:d.neutralTertiary,color:d.neutralPrimary}},a)]}}),void 0,{scope:"SuggestionItem"}),Nx=function(e){function t(t){var n=e.call(this,t)||this;return n._forceResolveButton=u.createRef(),n._searchForMoreButton=u.createRef(),n._selectedElement=u.createRef(),n._scrollContainer=u.createRef(),n.tryHandleKeyDown=function(e,t){var r=!1,o=null,i=n.state.selectedActionType,a=n.props.suggestions.length;if(e===tn)switch(i){case Px.forceResolve:a>0?(n._refocusOnSuggestions(e),o=Px.none):o=n._searchForMoreButton.current?Px.searchMore:Px.forceResolve;break;case Px.searchMore:n._forceResolveButton.current?o=Px.forceResolve:a>0?(n._refocusOnSuggestions(e),o=Px.none):o=Px.searchMore;break;case Px.none:-1===t&&n._forceResolveButton.current&&(o=Px.forceResolve)}else if(e===$t)switch(i){case Px.forceResolve:n._searchForMoreButton.current?o=Px.searchMore:a>0&&(n._refocusOnSuggestions(e),o=Px.none);break;case Px.searchMore:a>0?(n._refocusOnSuggestions(e),o=Px.none):n._forceResolveButton.current&&(o=Px.forceResolve);break;case Px.none:-1===t&&n._searchForMoreButton.current&&(o=Px.searchMore)}return null!==o&&(n.setState({selectedActionType:o}),r=!0),r},n._getAlertText=function(){var e=n.props,t=e.isLoading,r=e.isSearching,o=e.suggestions,i=e.suggestionsAvailableAlertText,a=e.noResultsFoundText,s=e.isExtendedLoading,l=e.loadingText;if(t||r){if(t&&s)return l||""}else{if(o.length>0)return i||"";if(a)return a}return""},n._getMoreResults=function(){n.props.onGetMoreResults&&(n.props.onGetMoreResults(),n.setState({selectedActionType:Px.none}))},n._forceResolve=function(){n.props.createGenericItem&&n.props.createGenericItem()},n._shouldShowForceResolve=function(){return!!n.props.showForceResolve&&n.props.showForceResolve()},n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._refocusOnSuggestions=function(e){"function"===typeof n.props.refocusSuggestions&&n.props.refocusSuggestions(e)},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},Xr(n),n.state={selectedActionType:Px.none},n}return g(t,e),t.prototype.componentDidMount=function(){this.scrollSelected(),this.activeSelectedElement=this._selectedElement?this._selectedElement.current:null},t.prototype.componentDidUpdate=function(){this._selectedElement.current&&this.activeSelectedElement!==this._selectedElement.current&&(this.scrollSelected(),this.activeSelectedElement=this._selectedElement.current)},t.prototype.render=function(){var e,t,n=this,r=this.props,o=r.forceResolveText,i=r.mostRecentlyUsedHeaderText,a=r.searchForMoreIcon,s=r.searchForMoreText,l=r.className,c=r.moreSuggestionsAvailable,d=r.noResultsFoundText,p=r.suggestions,m=r.isLoading,h=r.isSearching,f=r.loadingText,g=r.onRenderNoResultFound,y=r.searchingText,b=r.isMostRecentlyUsedVisible,C=r.resultsMaximumNumber,S=r.resultsFooterFull,x=r.resultsFooter,k=r.isResultsFooterVisible,P=void 0===k||k,I=r.suggestionsHeaderText,w=r.suggestionsClassName,E=r.theme,_=r.styles,D=r.suggestionsListId,T=r.suggestionsContainerAriaLabel;this._classNames=_?Ax(_,{theme:E,className:l,suggestionsClassName:w,forceResolveButtonSelected:this.state.selectedActionType===Px.forceResolve,searchForMoreButtonSelected:this.state.selectedActionType===Px.searchMore}):{root:Wn("ms-Suggestions",l,Rx.root),title:Wn("ms-Suggestions-title",Rx.suggestionsTitle),searchForMoreButton:Wn("ms-SearchMore-button",Rx.actionButton,(e={},e["is-selected "+Rx.buttonSelected]=this.state.selectedActionType===Px.searchMore,e)),forceResolveButton:Wn("ms-forceResolve-button",Rx.actionButton,(t={},t["is-selected "+Rx.buttonSelected]=this.state.selectedActionType===Px.forceResolve,t)),suggestionsAvailable:Wn("ms-Suggestions-suggestionsAvailable",Rx.suggestionsAvailable),suggestionsContainer:Wn("ms-Suggestions-container",Rx.suggestionsContainer,w),noSuggestions:Wn("ms-Suggestions-none",Rx.suggestionsNone)};var R=this._classNames.subComponentStyles?this._classNames.subComponentStyles.spinner:void 0,A=_?{styles:R}:{className:Wn("ms-Suggestions-spinner",Rx.suggestionsSpinner)},M=I;b&&i&&(M=i);var N=void 0;P&&(N=p.length>=C?S:x);var F=(!p||!p.length)&&!m,H=this.state.selectedActionType===Px.forceResolve?"sug-selectedAction":void 0,O=this.state.selectedActionType===Px.searchMore?"sug-selectedAction":void 0;return u.createElement("div",{className:this._classNames.root,"aria-label":T||M,id:D,role:"listbox"},u.createElement(ru,{message:this._getAlertText(),"aria-live":"polite"}),M?u.createElement("div",{className:this._classNames.title},M):null,o&&this._shouldShowForceResolve()&&u.createElement(vm,{componentRef:this._forceResolveButton,className:this._classNames.forceResolveButton,id:H,onClick:this._forceResolve,"data-automationid":"sug-forceResolve"},o),m&&u.createElement(eb,v({},A,{ariaLabel:f,label:f})),F?function(){var e=function(){return u.createElement("div",{className:n._classNames.noSuggestions},d)};return u.createElement("div",{id:"sug-noResultsFound",role:"option"},g?g(void 0,e):e())}():this._renderSuggestions(),s&&c&&u.createElement(vm,{componentRef:this._searchForMoreButton,className:this._classNames.searchForMoreButton,iconProps:a||{iconName:"Search"},id:O,onClick:this._getMoreResults,"data-automationid":"sug-searchForMore",role:"option"},s),h?u.createElement(eb,v({},A,{ariaLabel:y,label:y})):null,!N||c||b||h?null:u.createElement("div",{className:this._classNames.title},N(this.props)))},t.prototype.hasSuggestedAction=function(){return!!this._searchForMoreButton.current||!!this._forceResolveButton.current},t.prototype.hasSuggestedActionSelected=function(){return this.state.selectedActionType!==Px.none},t.prototype.executeSelectedAction=function(){switch(this.state.selectedActionType){case Px.forceResolve:this._forceResolve();break;case Px.searchMore:this._getMoreResults()}},t.prototype.focusAboveSuggestions=function(){this._forceResolveButton.current?this.setState({selectedActionType:Px.forceResolve}):this._searchForMoreButton.current&&this.setState({selectedActionType:Px.searchMore})},t.prototype.focusBelowSuggestions=function(){this._searchForMoreButton.current?this.setState({selectedActionType:Px.searchMore}):this._forceResolveButton.current&&this.setState({selectedActionType:Px.forceResolve})},t.prototype.focusSearchForMoreButton=function(){this._searchForMoreButton.current&&this._searchForMoreButton.current.focus()},t.prototype.scrollSelected=function(){if(this._selectedElement.current&&this._scrollContainer.current&&void 0!==this._scrollContainer.current.scrollTo){var e=this._selectedElement.current,t=e.offsetHeight,n=e.offsetTop,r=this._scrollContainer.current,o=r.offsetHeight,i=r.scrollTop,a=n+t>i+o;n<i?this._scrollContainer.current.scrollTo(0,n):a&&this._scrollContainer.current.scrollTo(0,n-o+t)}},t.prototype._renderSuggestions=function(){var e=this,t=this.props,n=t.onRenderSuggestion,r=t.removeSuggestionAriaLabel,o=t.suggestionsItemClassName,i=t.resultsMaximumNumber,a=t.showRemoveButtons,s=t.removeButtonIconProps,l=this.props.suggestions,c=Mx,d=-1;return l.some((function(e,t){return!!e.selected&&(d=t,!0)})),i&&(l=d>=i?l.slice(d-i+1,d+1):l.slice(0,i)),0===l.length?null:u.createElement("div",{className:this._classNames.suggestionsContainer,ref:this._scrollContainer,role:"presentation"},l.map((function(t,i){return u.createElement("div",{ref:t.selected?e._selectedElement:void 0,key:t.item.key?t.item.key:i,role:"presentation"},u.createElement(c,{suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,i),className:o,showRemoveButton:a,removeButtonAriaLabel:r,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,i),id:"sug-"+i,removeButtonIconProps:s}))})))},t}(u.Component),Fx={root:"ms-Suggestions",suggestionsContainer:"ms-Suggestions-container",title:"ms-Suggestions-title",forceResolveButton:"ms-forceResolve-button",searchForMoreButton:"ms-SearchMore-button",spinner:"ms-Suggestions-spinner",noSuggestions:"ms-Suggestions-none",suggestionsAvailable:"ms-Suggestions-suggestionsAvailable",isSelected:"is-selected"};function Hx(e){var t,n=e.className,r=e.suggestionsClassName,o=e.theme,i=e.forceResolveButtonSelected,a=e.searchForMoreButtonSelected,s=o.palette,l=o.semanticColors,c=o.fonts,d=os(Fx,o),u={backgroundColor:"transparent",border:0,cursor:"pointer",margin:0,paddingLeft:8,position:"relative",borderTop:"1px solid ".concat(s.neutralLight),height:40,textAlign:"left",width:"100%",fontSize:c.small.fontSize,selectors:{":hover":{backgroundColor:l.menuItemBackgroundPressed,cursor:"pointer"},":focus, :active":{backgroundColor:s.themeLight},".ms-Button-icon":{fontSize:c.mediumPlus.fontSize,width:25},".ms-Button-label":{margin:"0 4px 0 9px"}}},p={backgroundColor:s.themeLight,selectors:(t={},t[Wa]=v({backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t[":after"]={pointerEvents:"none",content:'""',position:"absolute",left:0,top:0,bottom:0,right:0,border:"1px solid ".concat(o.semanticColors.focusBorder)},t)};return{root:[d.root,{minWidth:260},n],suggestionsContainer:[d.suggestionsContainer,{overflowY:"auto",overflowX:"hidden",maxHeight:300,transform:"translate3d(0,0,0)"},r],title:[d.title,{padding:"0 12px",fontSize:c.small.fontSize,color:s.themePrimary,lineHeight:40,borderBottom:"1px solid ".concat(l.menuItemBackgroundPressed)}],forceResolveButton:[d.forceResolveButton,u,i&&[d.isSelected,p]],searchForMoreButton:[d.searchForMoreButton,u,a&&[d.isSelected,p]],noSuggestions:[d.noSuggestions,{textAlign:"center",color:s.neutralSecondary,fontSize:c.small.fontSize,lineHeight:30}],suggestionsAvailable:[d.suggestionsAvailable,Qa],subComponentStyles:{spinner:{root:[d.spinner,{margin:"5px 0",paddingLeft:14,textAlign:"left",whiteSpace:"nowrap",lineHeight:20,fontSize:c.small.fontSize}],circle:{display:"inline-block",verticalAlign:"middle"},label:{display:"inline-block",verticalAlign:"middle",margin:"0 10px 0 16px"}}}}}var Ox,Bx=function(){function e(){var e=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(t){return e._isSuggestionModel(t)?t:{item:t,selected:!1,ariaLabel:t.ariaLabel}},this.suggestions=[],this.currentIndex=-1}return e.prototype.updateSuggestions=function(e,t,n){if(e&&e.length>0){if(n&&e.length>n){var r=t&&t>n?t+1-n:0;e=e.slice(r,r+n-1)}this.suggestions=this.convertSuggestionsToSuggestionItems(e),this.currentIndex=t||0,-1===t?this.currentSuggestion=void 0:void 0!==t&&(this.suggestions[t].selected=!0,this.currentSuggestion=this.suggestions[t])}else this.suggestions=[],this.currentIndex=-1,this.currentSuggestion=void 0},e.prototype.nextSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex<this.suggestions.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.currentIndex===this.suggestions.length-1)return this.setSelectedSuggestion(0),!0}return!1},e.prototype.previousSuggestion=function(){if(this.suggestions&&this.suggestions.length){if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(0===this.currentIndex)return this.setSelectedSuggestion(this.suggestions.length-1),!0}return!1},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getCurrentItem=function(){return this.currentSuggestion},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.hasSelectedSuggestion=function(){return!!this.currentSuggestion},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.createGenericSuggestion=function(e){var t=this.convertSuggestionsToSuggestionItems([e])[0];this.currentSuggestion=t},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]},e.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1)},e.prototype.setSelectedSuggestion=function(e){e>this.suggestions.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=this.suggestions[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&(this.suggestions[this.currentIndex].selected=!1),this.suggestions[e].selected=!0,this.currentIndex=e,this.currentSuggestion=this.suggestions[e])},e}();!function(e){e[e.valid=0]="valid",e[e.warning=1]="warning",e[e.invalid=2]="invalid"}(Ox||(Ox={})),ps([{rawString:".picker_94f06b16{position:relative}.pickerText_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;border:1px solid "},{theme:"neutralTertiary",defaultValue:"#a19f9d"},{rawString:";min-width:180px;min-height:30px}.pickerText_94f06b16:hover{border-color:"},{theme:"inputBorderHovered",defaultValue:"#323130"},{rawString:"}.pickerText_94f06b16.inputFocused_94f06b16{position:relative;border-color:"},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}.pickerText_94f06b16.inputFocused_94f06b16:after{pointer-events:none;content:"";position:absolute;left:-1px;top:-1px;bottom:-1px;right:-1px;border:2px solid '},{theme:"inputFocusBorderAlt",defaultValue:"#0078d4"},{rawString:'}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.pickerText_94f06b16.inputDisabled_94f06b16{position:relative;border-color:GrayText}.pickerText_94f06b16.inputDisabled_94f06b16:after{pointer-events:none;content:"";position:absolute;left:0;top:0;bottom:0;right:0;background-color:Window}}.pickerInput_94f06b16{height:34px;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;outline:0;padding:0 6px 0;-ms-flex-item-align:end;align-self:flex-end}.pickerItems_94f06b16{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;max-width:100%}.screenReaderOnly_94f06b16{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}'}]);var Lx=Object.freeze({__proto__:null,picker:"picker_94f06b16",pickerText:"pickerText_94f06b16",inputFocused:"inputFocused_94f06b16",inputDisabled:"inputDisabled_94f06b16",pickerInput:"pickerInput_94f06b16",pickerItems:"pickerItems_94f06b16",screenReaderOnly:"screenReaderOnly_94f06b16"}),Vx=wn();var zx=function(e){function t(t){var n=e.call(this,t)||this;n.root=u.createRef(),n.input=u.createRef(),n.suggestionElement=u.createRef(),n.SuggestionOfProperType=Nx,n._styledSuggestions=Jo(n.SuggestionOfProperType,Hx,void 0,{scope:"Suggestions"}),n._overrideScrollDismiss=!1,n.dismissSuggestions=function(e){var t=function(){var t=!0;n.props.onDismiss&&(t=n.props.onDismiss(e,n.suggestionStore.currentSuggestion?n.suggestionStore.currentSuggestion.item:void 0)),(!e||e&&!e.defaultPrevented)&&!1!==t&&n.canAddItems()&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestedDisplayValue&&n.addItemByIndex(0)};n.currentPromise?n.currentPromise.then((function(){return t()})):t(),n.setState({suggestionsVisible:!1})},n.refocusSuggestions=function(e){n.resetFocus(),n.suggestionStore.suggestions&&n.suggestionStore.suggestions.length>0&&(e===$t?n.suggestionStore.setSelectedSuggestion(n.suggestionStore.suggestions.length-1):e===tn&&n.suggestionStore.setSelectedSuggestion(0))},n.onInputChange=function(e){n.updateValue(e),n.setState({moreSuggestionsAvailable:!0,isMostRecentlyUsedVisible:!1})},n.onSuggestionClick=function(e,t,r){n.addItemByIndex(r)},n.onSuggestionRemove=function(e,t,r){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionStore.removeSuggestion(r)},n.onInputFocus=function(e){n.selection.setAllSelected(!1),n.state.isFocused||(n._userTriggeredSuggestions(),n.props.inputProps&&n.props.inputProps.onFocus&&n.props.inputProps.onFocus(e))},n.onInputBlur=function(e){n.props.inputProps&&n.props.inputProps.onBlur&&n.props.inputProps.onBlur(e)},n.onBlur=function(e){if(n.state.isFocused){var t=e.relatedTarget;null===e.relatedTarget&&(t=sc(n.context).activeElement),t&&!Ke(n.root.current,t)&&(n.setState({isFocused:!1}),n.props.onBlur&&n.props.onBlur(e))}},n.onWrapperClick=function(e){n.state.items.length&&!n.canAddItems()&&n.resetFocus(n.state.items.length-1)},n.onClick=function(e){void 0!==n.props.inputProps&&void 0!==n.props.inputProps.onClick&&n.props.inputProps.onClick(e),0===e.button&&n._userTriggeredSuggestions()},n.onFocus=function(){n.state.isFocused||n.setState({isFocused:!0})},n.onKeyDown=function(e){var t=e.which;switch(t){case Gt:n.state.suggestionsVisible&&(n.setState({suggestionsVisible:!1}),e.preventDefault(),e.stopPropagation());break;case zt:case Wt:n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedActionSelected()?n.suggestionElement.current.executeSelectedAction():!e.shiftKey&&n.suggestionStore.hasSelectedSuggestion()&&n.state.suggestionsVisible?(n.completeSuggestion(),e.preventDefault(),e.stopPropagation()):n._completeGenericSuggestion();break;case Vt:n.props.disabled||n.onBackspace(e),e.stopPropagation();break;case nn:n.props.disabled||(n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&-1!==n.suggestionStore.currentIndex?(n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(n.suggestionStore.currentSuggestion.item),n.suggestionStore.removeSuggestion(n.suggestionStore.currentIndex),n.forceUpdate()):n.onBackspace(e)),e.stopPropagation();break;case $t:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&0===n.suggestionStore.currentIndex?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusAboveSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.previousSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()));break;case tn:n.input.current&&e.target===n.input.current.inputElement&&n.state.suggestionsVisible&&(n.suggestionElement.current&&n.suggestionElement.current.tryHandleKeyDown(t,n.suggestionStore.currentIndex)?(e.preventDefault(),e.stopPropagation(),n.forceUpdate()):n.suggestionElement.current&&n.suggestionElement.current.hasSuggestedAction()&&n.suggestionStore.currentIndex+1===n.suggestionStore.suggestions.length?(e.preventDefault(),e.stopPropagation(),n.suggestionElement.current.focusBelowSuggestions(),n.suggestionStore.deselectAllSuggestions(),n.forceUpdate()):n.suggestionStore.nextSuggestion()&&(e.preventDefault(),e.stopPropagation(),n.onSuggestionSelect()))}},n.onItemChange=function(e,t){var r=n.state.items;if(t>=0){var o=r;o[t]=e,n._updateSelectedItems(o)}},n.onGetMoreResults=function(){n.setState({isSearching:!0},(function(){if(n.props.onGetMoreResults&&n.input.current){var e=n.props.onGetMoreResults(n.input.current.value,n.state.items),t=e,r=e;Array.isArray(t)?(n.updateSuggestions(t),n.setState({isSearching:!1})):r.then&&r.then((function(e){n.updateSuggestions(e),n.setState({isSearching:!1})}))}else n.setState({isSearching:!1});n.input.current&&n.input.current.focus(),n.setState({moreSuggestionsAvailable:!1,isResultsFooterVisible:!0})}))},n.completeSelection=function(e){n.addItem(e),n.updateValue(""),n.input.current&&n.input.current.clear(),n.setState({suggestionsVisible:!1})},n.addItemByIndex=function(e){n.completeSelection(n.suggestionStore.getSuggestionAtIndex(e).item)},n.addItem=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e;if(null!==t){var r=t,o=t;if(o&&o.then)o.then((function(e){var t=n.state.items.concat([e]);n._updateSelectedItems(t)}));else{var i=n.state.items.concat([r]);n._updateSelectedItems(i)}n.setState({suggestedDisplayValue:"",selectionRemoved:void 0})}},n.removeItem=function(e){var t=n.state.items,r=t.indexOf(e);if(r>=0){var o=t.slice(0,r).concat(t.slice(r+1));n.setState({selectionRemoved:e}),n._updateSelectedItems(o),n._async.setTimeout((function(){n.setState({selectionRemoved:void 0})}),1e3)}},n.removeItems=function(e){var t=n.state.items.filter((function(t){return-1===e.indexOf(t)}));n._updateSelectedItems(t)},n._shouldFocusZoneEnterInnerZone=function(e){if(n.state.suggestionsVisible)switch(e.which){case $t:case tn:return!0}return e.which===Wt},n._onResolveSuggestions=function(e){var t=n.props.onResolveSuggestions(e,n.state.items);null!==t&&n.updateSuggestionsList(t,e)},n._completeGenericSuggestion=function(){if(n.props.onValidateInput&&n.input.current&&n.props.onValidateInput(n.input.current.value)!==Ox.invalid&&n.props.createGenericItem){var e=n.props.createGenericItem(n.input.current.value,n.props.onValidateInput(n.input.current.value));n.suggestionStore.createGenericSuggestion(e),n.completeSuggestion()}},n._userTriggeredSuggestions=function(){if(!n.state.suggestionsVisible){var e=n.input.current?n.input.current.value:"";e?0===n.suggestionStore.suggestions.length?n._onResolveSuggestionsDebounced(e):n.setState({isMostRecentlyUsedVisible:!1,suggestionsVisible:!0}):n.onEmptyInputFocus()}},Xr(n);var r=t.selectedItems||t.defaultSelectedItems||[];return n._id=Cr(),n._ariaMap={selectedItems:"selected-items-".concat(n._id),selectedSuggestionAlert:"selected-suggestion-alert-".concat(n._id),suggestionList:"suggestion-list-".concat(n._id),combobox:"combobox-".concat(n._id)},n.suggestionStore=new Bx,n.selection=new Uo({onSelectionChanged:function(){return n.onSelectionChange()}}),n.selection.setItems(r),n.state={items:r,suggestedDisplayValue:"",isMostRecentlyUsedVisible:!1,moreSuggestionsAvailable:!1,isFocused:!1,isSearching:!1,selectedIndices:[],selectionRemoved:void 0},n}return g(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._async=new ze(this),this.selection.setItems(this.state.items),this._onResolveSuggestionsDebounced=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(e,t){var n=this;if(this.state.items&&this.state.items!==t.items){var r=this.selection.getSelectedIndices()[0];this.selection.setItems(this.state.items),this.state.isFocused&&(this.state.items.length<t.items.length?(this.selection.setIndexSelected(r,!1,!0),this.resetFocus(r)):this.state.items.length>t.items.length&&!this.canAddItems()&&this.resetFocus(this.state.items.length-1))}this.state.suggestionsVisible&&!t.suggestionsVisible&&(this._overrideScrollDismiss=!0,this._async.clearTimeout(this._overrideScrollDimissTimeout),this._overrideScrollDimissTimeout=this._async.setTimeout((function(){n._overrideScrollDismiss=!1}),100))},t.prototype.componentWillUnmount=function(){this.currentPromise&&(this.currentPromise=void 0),this._async.dispose()},t.prototype.focus=function(){this.input.current&&this.input.current.focus()},t.prototype.focusInput=function(){this.input.current&&this.input.current.focus()},t.prototype.completeSuggestion=function(e){this.suggestionStore.hasSelectedSuggestion()&&this.input.current?this.completeSelection(this.suggestionStore.currentSuggestion.item):e&&this._completeGenericSuggestion()},t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,r=e.items,o=this.props,i=o.className,a=o.inputProps,s=o.disabled,l=o.selectionAriaLabel,c=o.selectionRole,d=void 0===c?"list":c,p=o.theme,m=o.styles,h=!!this.state.suggestionsVisible,f=h?this._ariaMap.suggestionList:void 0,g=m?Vx(m,{theme:p,className:i,isFocused:n,disabled:s,inputClassName:a&&a.className}):{root:Wn("ms-BasePicker",i||""),text:Wn("ms-BasePicker-text",Lx.pickerText,this.state.isFocused&&Lx.inputFocused),itemsWrapper:Lx.pickerItems,input:Wn("ms-BasePicker-input",Lx.pickerInput,a&&a.className),screenReaderText:Lx.screenReaderOnly},y=this.props["aria-label"]||(null===a||void 0===a?void 0:a["aria-label"]);return u.createElement("div",{ref:this.root,className:g.root,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onWrapperClick},this.renderCustomAlert(g.screenReaderText),u.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},l||y),u.createElement(Ay,{selection:this.selection,selectionMode:Vo.multiple},u.createElement("div",{className:g.text,"aria-owns":f},r.length>0&&u.createElement("span",{id:this._ariaMap.selectedItems,className:g.itemsWrapper,role:d,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems()),this.canAddItems()&&u.createElement($d,v({spellCheck:!1},a,{className:g.input,componentRef:this.input,id:(null===a||void 0===a?void 0:a.id)?a.id:this._ariaMap.combobox,onClick:this.onClick,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":h?this.getActiveDescendant():void 0,"aria-controls":f,"aria-describedby":r.length>0?this._ariaMap.selectedItems:void 0,"aria-expanded":h,"aria-haspopup":"listbox","aria-label":y,role:"combobox",disabled:s,onInputChange:this.props.onInputChange})))),this.renderSuggestions())},t.prototype.canAddItems=function(){var e=this.state.items,t=this.props.itemLimit;return void 0===t||e.length<t},t.prototype.renderSuggestions=function(){var e=this,t=this._styledSuggestions;return this.state.suggestionsVisible&&this.input?u.createElement(Wc,v({isBeakVisible:!1,gapSpace:5,target:this.input.current?this.input.current.inputElement:void 0,onDismiss:this.dismissSuggestions,directionalHint:js,directionalHintForRTL:qs,preventDismissOnEvent:function(t){return e._preventDismissOnScrollOrResize(t)}},this.props.pickerCalloutProps),u.createElement(t,v({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionElement,onGetMoreResults:this.onGetMoreResults,moreSuggestionsAvailable:this.state.moreSuggestionsAvailable,isLoading:this.state.suggestionsLoading,isExtendedLoading:this.state.suggestionsExtendedLoading,isSearching:this.state.isSearching,isMostRecentlyUsedVisible:this.state.isMostRecentlyUsedVisible,isResultsFooterVisible:this.state.isResultsFooterVisible,refocusSuggestions:this.refocusSuggestions,removeSuggestionAriaLabel:this.props.removeButtonAriaLabel,suggestionsListId:this._ariaMap.suggestionList,createGenericItem:this._completeGenericSuggestion},this.props.pickerSuggestionsProps))):null},t.prototype.renderItems=function(){var e=this,t=this.props,n=t.disabled,r=t.removeButtonAriaLabel,o=t.removeButtonIconProps,i=this.props.onRenderItem,a=this.state,s=a.items,l=a.selectedIndices;return s.map((function(t,a){return i({item:t,index:a,key:t.key?t.key:a,selected:-1!==l.indexOf(a),onRemoveItem:function(){return e.removeItem(t)},disabled:n,onItemChange:e.onItemChange,removeButtonAriaLabel:r,removeButtonIconProps:o})}))},t.prototype.resetFocus=function(e){var t=this.state.items;if(t.length){e=null!==e&&void 0!==e?e:t.length-1;var n=this.root.current&&this.root.current.querySelectorAll("[data-selection-index] > button")[Math.min(e,t.length-1)];n&&n.focus()}else this.input.current&&this.input.current.focus()},t.prototype.onSuggestionSelect=function(){if(this.suggestionStore.currentSuggestion){var e=this.input.current?this.input.current.value:"",t=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e);this.setState({suggestedDisplayValue:t})}},t.prototype.onSelectionChange=function(){this.setState({selectedIndices:this.selection.getSelectedIndices()})},t.prototype.updateSuggestions=function(e){var t,n=null===(t=this.props.pickerSuggestionsProps)||void 0===t?void 0:t.resultsMaximumNumber;this.suggestionStore.updateSuggestions(e,0,n),this.forceUpdate()},t.prototype.onEmptyInputFocus=function(){var e=this.props.onEmptyResolveSuggestions?this.props.onEmptyResolveSuggestions:this.props.onEmptyInputFocus;if(e){var t=e(this.state.items);this.updateSuggestionsList(t),this.setState({isMostRecentlyUsedVisible:!0,suggestionsVisible:!0,moreSuggestionsAvailable:!1})}},t.prototype.updateValue=function(e){this._onResolveSuggestionsDebounced(e)},t.prototype.updateSuggestionsList=function(e,t){var n,r=this;Array.isArray(e)?this._updateAndResolveValue(t,e):e&&e.then&&(this.setState({suggestionsLoading:!0}),this._startLoadTimer(),this.suggestionStore.updateSuggestions([]),void 0!==t?this.setState({suggestionsVisible:this._getShowSuggestions()}):this.setState({suggestionsVisible:this.input.current&&this.input.current.inputElement===(null===(n=sc(this.context))||void 0===n?void 0:n.activeElement)}),this.currentPromise=e,e.then((function(n){e===r.currentPromise&&r._updateAndResolveValue(t,n)})))},t.prototype.resolveNewValue=function(e,t){var n=this;this.updateSuggestions(t);var r=void 0;this.suggestionStore.currentSuggestion&&(r=this._getTextFromItem(this.suggestionStore.currentSuggestion.item,e)),this.setState({suggestedDisplayValue:r,suggestionsVisible:this._getShowSuggestions()},(function(){return n.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})}))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.onBackspace=function(e){(this.state.items.length&&!this.input.current||this.input.current&&!this.input.current.isValueSelected&&0===this.input.current.cursorLocation)&&(this.selection.getSelectedCount()>0?this.removeItems(this.selection.getSelection()):this.removeItem(this.state.items[this.state.items.length-1]))},t.prototype.getActiveDescendant=function(){var e;if(!this.state.suggestionsLoading){var t=this.suggestionStore.currentIndex;return t<0?(null===(e=this.suggestionElement.current)||void 0===e?void 0:e.hasSuggestedAction())?"sug-selectedAction":0===this.suggestionStore.suggestions.length?"sug-noResultsFound":void 0:"sug-".concat(t)}},t.prototype.getSuggestionsAlert=function(e){void 0===e&&(e=Lx.screenReaderOnly);var t=this.suggestionStore.currentIndex;if(this.props.enableSelectedSuggestionAlert){var n=t>-1?this.suggestionStore.getSuggestionAtIndex(this.suggestionStore.currentIndex):void 0,r=n?n.ariaLabel:void 0;return u.createElement("div",{id:this._ariaMap.selectedSuggestionAlert,className:e},"".concat(r," "))}},t.prototype.renderCustomAlert=function(e){void 0===e&&(e=Lx.screenReaderOnly);var t=this.props.suggestionRemovedText,n=void 0===t?"removed {0}":t,r="";this.state.selectionRemoved&&(r=qo(n,this._getTextFromItem(this.state.selectionRemoved,"")));return u.createElement("div",{className:e,id:this._ariaMap.selectedSuggestionAlert,"aria-live":"assertive"},this.getSuggestionsAlert(e),r)},t.prototype._preventDismissOnScrollOrResize=function(e){return!(!this._overrideScrollDismiss||"scroll"!==e.type&&"resize"!==e.type)},t.prototype._startLoadTimer=function(){var e=this;this._async.setTimeout((function(){e.state.suggestionsLoading&&e.setState({suggestionsExtendedLoading:!0})}),3e3)},t.prototype._updateAndResolveValue=function(e,t){var n;if(void 0!==e)this.resolveNewValue(e,t);else{var r=null===(n=this.props.pickerSuggestionsProps)||void 0===n?void 0:n.resultsMaximumNumber;this.suggestionStore.updateSuggestions(t,-1,r),this.state.suggestionsLoading&&this.setState({suggestionsLoading:!1,suggestionsExtendedLoading:!1})}},t.prototype._updateSelectedItems=function(e){var t=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){t._onSelectedItemsUpdated(e)}))},t.prototype._onSelectedItemsUpdated=function(e){this.onChange(e)},t.prototype._getShowSuggestions=function(){var e;return void 0!==this.input.current&&null!==this.input.current&&this.input.current.inputElement===(null===(e=sc(this.context))||void 0===e?void 0:e.activeElement)&&""!==this.input.current.value},t.prototype._getTextFromItem=function(e,t){return this.props.getTextFromItem?this.props.getTextFromItem(e,t):""},t.contextType=dr,t}(u.Component),Wx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.state,t=e.suggestedDisplayValue,n=e.isFocused,r=this.props,o=r.className,i=r.inputProps,a=r.disabled,s=r.selectionAriaLabel,l=r.selectionRole,c=void 0===l?"list":l,d=r.theme,p=r.styles,m=!!this.state.suggestionsVisible,h=m?this._ariaMap.suggestionList:void 0,f=p?Vx(p,{theme:d,className:o,isFocused:n,inputClassName:i&&i.className}):{root:Wn("ms-BasePicker",Lx.picker,o||""),text:Wn("ms-BasePicker-text",Lx.pickerText,this.state.isFocused&&Lx.inputFocused,a&&Lx.inputDisabled),itemsWrapper:Lx.pickerItems,input:Wn("ms-BasePicker-input",Lx.pickerInput,i&&i.className),screenReaderText:Lx.screenReaderOnly},g=this.props["aria-label"]||(null===i||void 0===i?void 0:i["aria-label"]);return u.createElement("div",{ref:this.root,onBlur:this.onBlur,onFocus:this.onFocus},u.createElement("div",{className:f.root,onKeyDown:this.onKeyDown},this.renderCustomAlert(f.screenReaderText),u.createElement("span",{id:"".concat(this._ariaMap.selectedItems,"-label"),hidden:!0},s||g),u.createElement("div",{className:f.text,"aria-owns":h},u.createElement($d,v({},i,{className:f.input,componentRef:this.input,onFocus:this.onInputFocus,onBlur:this.onInputBlur,onClick:this.onClick,onInputValueChange:this.onInputChange,suggestedDisplayValue:t,"aria-activedescendant":m?this.getActiveDescendant():void 0,"aria-controls":h,"aria-expanded":m,"aria-haspopup":"listbox","aria-label":g,"aria-describedby":this.state.items.length>0?this._ariaMap.selectedItems:void 0,role:"combobox",id:(null===i||void 0===i?void 0:i.id)?i.id:this._ariaMap.combobox,disabled:a,onInputChange:this.props.onInputChange})))),this.renderSuggestions(),u.createElement(Ay,{selection:this.selection,selectionMode:Vo.single},u.createElement("div",{id:this._ariaMap.selectedItems,className:"ms-BasePicker-selectedItems",role:c,"aria-labelledby":"".concat(this._ariaMap.selectedItems,"-label")},this.renderItems())))},t.prototype.onBackspace=function(e){},t}(zx),Ux={root:"ms-BasePicker",text:"ms-BasePicker-text",itemsWrapper:"ms-BasePicker-itemsWrapper",input:"ms-BasePicker-input"};function Kx(e){var t,n,r,o=e.className,i=e.theme,a=e.isFocused,s=e.inputClassName,l=e.disabled;if(!i)throw new Error("theme is undefined or null in base BasePicker getStyles function.");var c=i.semanticColors,d=i.effects,u=i.fonts,p=c.inputBorder,m=c.inputBorderHovered,h=c.inputFocusBorderAlt,f=os(Ux,i),g=[u.medium,{color:c.inputPlaceholderText,opacity:1,selectors:(t={},t[Wa]={color:"GrayText"},t)}],v={color:c.disabledText,selectors:(n={},n[Wa]={color:"GrayText"},n)},y="rgba(218, 218, 218, 0.29)";return{root:[f.root,o,{position:"relative"}],text:[f.text,{display:"flex",position:"relative",flexWrap:"wrap",alignItems:"center",boxSizing:"border-box",minWidth:180,minHeight:30,border:"1px solid ".concat(p),borderRadius:d.roundedCorner2},!a&&!l&&{selectors:{":hover":{borderColor:m}}},a&&!l&&Ja(h,d.roundedCorner2),l&&{borderColor:y,selectors:(r={":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,background:y}},r[Wa]={borderColor:"GrayText",selectors:{":after":{background:"none"}}},r)}],itemsWrapper:[f.itemsWrapper,{display:"flex",flexWrap:"wrap",maxWidth:"100%"}],input:[f.input,u.medium,{height:30,border:"none",flexGrow:1,outline:"none",padding:"0 6px 0",alignSelf:"flex-end",borderRadius:d.roundedCorner2,backgroundColor:"transparent",color:c.inputText,selectors:{"::-ms-clear":{display:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}},Is(g),l&&Is(v),s],screenReaderText:Qa}}var jx={root:"ms-PickerPersona-container",itemContent:"ms-PickerItem-content",removeButton:"ms-PickerItem-removeButton",isSelected:"is-selected",isInvalid:"is-invalid"};var Gx=wn(),qx=Jo((function(e){var t=e.item,n=e.onRemoveItem,r=e.index,o=e.selected,i=e.removeButtonAriaLabel,a=e.styles,s=e.theme,l=e.className,c=e.disabled,d=e.removeButtonIconProps,p=u.createRef(),m=Cr(),h=Gx(a,{theme:s,className:l,selected:o,disabled:c,invalid:t.ValidationState===Ox.warning}),f=h.subComponentStyles?h.subComponentStyles.persona:void 0,g=h.subComponentStyles?h.subComponentStyles.personaCoin:void 0;return u.createElement("div",{"data-selection-index":r,className:h.root,role:"listitem",key:r,onClick:function(){var e;null===(e=p.current)||void 0===e||e.focus()}},u.createElement("div",{className:h.itemContent,id:"selectedItemPersona-"+m},u.createElement(Qd,v({size:vd.size24,styles:f,coinProps:{styles:g}},t))),u.createElement(mm,{componentRef:p,id:m,onClick:n,disabled:c,iconProps:null!==d&&void 0!==d?d:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:h.removeButton,ariaLabel:i,"aria-labelledby":"".concat(m," selectedItemPersona-").concat(m)}))}),(function(e){var t,n,r,o,i,a,s,l,c=e.className,d=e.theme,u=e.selected,p=e.invalid,m=e.disabled,h=d.palette,f=d.semanticColors,g=d.fonts,y=os(jx,d),b=[u&&!p&&!m&&{color:"inherit",selectors:(t={":hover":{color:"inherit"}},t[Wa]={color:"HighlightText"},t)},(p&&!u||p&&u&&m)&&{color:"inherit",borderBottom:"2px dotted currentColor",selectors:(n={},n[".".concat(y.root,":hover &")]={color:"inherit"},n)},p&&u&&!m&&{color:"inherit",borderBottom:"2px dotted currentColor",selectors:{":hover":{color:"inherit"}}},m&&{selectors:(r={},r[Wa]={color:"GrayText"},r)}],C=[u&&!p&&!m&&{color:"inherit",selectors:(o={":hover":{color:"inherit"}},o[Wa]={color:"HighlightText"},o)}],S=[p&&{fontSize:g.xLarge.fontSize}];return{root:[y.root,Ya(d,{inset:-2}),{borderRadius:15,display:"inline-flex",alignItems:"center",background:h.neutralLighter,margin:"1px 2px",cursor:"default",userSelect:"none",maxWidth:300,verticalAlign:"middle",minWidth:0,selectors:(i={":hover":{background:u||m?"":h.neutralLight}},i[Wa]=[{border:"1px solid WindowText"},m&&{borderColor:"GrayText"}],i)},u&&!m&&[y.isSelected,{selectors:(a={":focus-within":{background:h.themePrimary,color:h.white}},a[Wa]=v({borderColor:"HighLight",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),a)}],p&&[y.isInvalid],p&&u&&!m&&{":focus-within":{background:h.redDark,color:h.white}},(p&&!u||p&&u&&m)&&{color:h.redDark},c],itemContent:[y.itemContent,{flex:"0 1 auto",minWidth:0,maxWidth:"100%",overflow:"hidden"}],removeButton:[y.removeButton,{borderRadius:15,color:h.neutralPrimary,flex:"0 0 auto",width:24,height:24,selectors:{":hover":{background:h.neutralTertiaryAlt,color:h.neutralDark}}},u&&[Ya(d,{inset:2,borderColor:"transparent",highContrastStyle:{inset:2,left:1,top:1,bottom:1,right:1,outlineColor:"ButtonText"},outlineColor:h.white,borderRadius:15}),{selectors:(s={":hover":{color:h.white,background:h.themeDark},":active":{color:h.white,background:h.themeDarker},":focus":{color:h.white}},s[Wa]={color:"HighlightText"},s)},p&&{selectors:{":hover":{color:h.white,background:h.red},":active":{color:h.white,background:h.redDark}}}],m&&{selectors:(l={},l[".".concat(qp.msButtonIcon)]={color:f.buttonText},l)}],subComponentStyles:{persona:{root:{color:"inherit"},primaryText:b,secondaryText:C},personaCoin:{initials:S}}}}),void 0,{scope:"PeoplePickerItem"}),Yx={root:"ms-PeoplePicker-personaContent",personaWrapper:"ms-PeoplePicker-Persona"};var Zx=wn(),Jx=Jo((function(e){var t=e.personaProps,n=e.suggestionsProps,r=e.compact,o=e.styles,i=e.theme,a=e.className,s=Zx(o,{theme:i,className:n&&n.suggestionsItemClassName||a}),l=s.subComponentStyles&&s.subComponentStyles.persona?s.subComponentStyles.persona:void 0;return u.createElement("div",{className:s.root},u.createElement(Qd,v({size:vd.size24,styles:l,className:s.personaWrapper,showSecondaryText:!r,showOverflowTooltip:!1},t)))}),(function(e){var t,n,r,o=e.className,i=e.theme,a=os(Yx,i),s={selectors:(t={},t[".".concat(Tx.isSuggested," &")]={selectors:(n={},n[Wa]={color:"HighlightText"},n)},t[".".concat(a.root,":hover &")]={selectors:(r={},r[Wa]={color:"HighlightText"},r)},t)};return{root:[a.root,{width:"100%",padding:"4px 12px"},o],personaWrapper:[a.personaWrapper,{width:180}],subComponentStyles:{persona:{primaryText:s,secondaryText:s}}}}),void 0,{scope:"PeoplePickerItemSuggestion"}),Qx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(zx),Xx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(Wx),$x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.defaultProps={onRenderItem:function(e){return u.createElement(qx,v({},e))},onRenderSuggestionsItem:function(e,t){return u.createElement(Jx,{personaProps:e,suggestionsProps:t})},createGenericItem:nk},t}(Qx),ek=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.defaultProps={onRenderItem:function(e){return u.createElement(qx,v({},e))},onRenderSuggestionsItem:function(e,t){return u.createElement(Jx,{personaProps:e,suggestionsProps:t,compact:!0})},createGenericItem:nk},t}(Qx),tk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.defaultProps={onRenderItem:function(e){return u.createElement(qx,v({},e))},onRenderSuggestionsItem:function(e,t){return u.createElement(Jx,{personaProps:e,suggestionsProps:t})},createGenericItem:nk},t}(Xx);function nk(e,t){var n={key:e,primaryText:e,imageInitials:"!",ValidationState:t};return t!==Ox.warning&&(n.imageInitials=_o(e,Sn())),n}Jo($x,Kx,void 0,{scope:"NormalPeoplePicker"}),Jo(ek,Kx,void 0,{scope:"CompactPeoplePicker"}),Jo(tk,Kx,void 0,{scope:"ListPeoplePickerBase"});var rk={root:"ms-TagItem",text:"ms-TagItem-text",close:"ms-TagItem-close",isSelected:"is-selected"};var ok=wn(),ik=Jo((function(e){var t=e.theme,n=e.styles,r=e.selected,o=e.disabled,i=e.enableTagFocusInDisabledPicker,a=e.children,s=e.className,l=e.index,c=e.onRemoveItem,d=e.removeButtonAriaLabel,p=e.title,m=void 0===p?"string"===typeof e.children?e.children:e.item.name:p,h=e.removeButtonIconProps,f=u.createRef(),g=ok(n,{theme:t,className:s,selected:r,disabled:o}),y=jl(),b=i?{"aria-disabled":o,tabindex:0}:{disabled:o};return u.createElement("div",{"data-selection-index":l,className:g.root,role:"listitem",key:l,onClick:function(){var e;null===(e=f.current)||void 0===e||e.focus()}},u.createElement("span",{className:g.text,title:m,id:"".concat(y,"-text")},a),u.createElement(mm,v({componentRef:f,id:y,onClick:c},b,{iconProps:null!==h&&void 0!==h?h:{iconName:"Cancel"},styles:{icon:{fontSize:"12px"}},className:g.close,"aria-labelledby":"".concat(y,"-removeLabel ").concat(y,"-text")})),u.createElement("span",{id:"".concat(y,"-removeLabel"),hidden:!0},d))}),(function(e){var t,n,r,o,i,a=e.className,s=e.theme,l=e.selected,c=e.disabled,d=s.palette,u=s.effects,p=s.fonts,m=s.semanticColors,h=os(rk,s);return{root:[h.root,p.medium,Ya(s),{boxSizing:"content-box",flexShrink:"1",margin:2,height:26,lineHeight:26,cursor:"default",userSelect:"none",display:"flex",flexWrap:"nowrap",maxWidth:300,minWidth:0,borderRadius:u.roundedCorner2,color:m.inputText,background:d.neutralLighter,selectors:(t={":hover":[!c&&!l&&{color:d.neutralDark,background:d.neutralLight,selectors:{".ms-TagItem-close":{color:d.neutralPrimary}}},c&&{background:d.neutralLighter}]},t[Wa]={border:"1px solid ".concat(l?"WindowFrame":"WindowText")},t)},c&&{selectors:(n={},n[Wa]={borderColor:"GrayText"},n)},l&&!c&&[h.isSelected,{":focus-within":{background:d.themePrimary,color:d.white}}],a],text:[h.text,{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",minWidth:30,margin:"0 8px"},c&&{selectors:(r={},r[Wa]={color:"GrayText"},r)}],close:[h.close,Ya(s,{borderColor:"transparent",inset:1,outlineColor:d.white}),{color:d.neutralSecondary,width:30,height:"100%",flex:"0 0 auto",borderRadius:Sn(s)?"".concat(u.roundedCorner2," 0 0 ").concat(u.roundedCorner2):"0 ".concat(u.roundedCorner2," ").concat(u.roundedCorner2," 0"),selectors:(o={":hover":{background:d.neutralQuaternaryAlt,color:d.neutralPrimary}},o[".".concat(h.isSelected," &:focus")]={color:d.white,background:d.themePrimary},o[":focus:hover"]={color:d.white,background:d.themeDark},o[":active"]={color:d.white,backgroundColor:d.themeDark},o)},c&&{selectors:(i={},i[".".concat(qp.msButtonIcon)]={color:d.neutralSecondary},i)}]}}),void 0,{scope:"TagItem"}),ak={suggestionTextOverflow:"ms-TagItem-TextOverflow"};var sk=wn(),lk=Jo((function(e){var t=e.styles,n=e.theme,r=e.children,o=sk(t,{theme:n});return u.createElement("div",{className:o.suggestionTextOverflow}," ",r," ")}),(function(e){var t=e.className,n=e.theme;return{suggestionTextOverflow:[os(ak,n).suggestionTextOverflow,{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"60vw",padding:"6px 12px 7px",whiteSpace:"nowrap"},t]}}),void 0,{scope:"TagItemSuggestion"}),ck=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.defaultProps={onRenderItem:function(e){return u.createElement(ik,v({},e),e.item.name)},onRenderSuggestionsItem:function(e){return u.createElement(lk,null,e.name)}},t}(zx);Jo(ck,Kx,void 0,{scope:"TagPicker"});ps([{rawString:".suggestionsContainer_44c59fda{overflow-y:auto;overflow-x:hidden;max-height:300px}.suggestionsContainer_44c59fda .ms-Suggestion-item:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.suggestionsContainer_44c59fda .is-suggested{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.suggestionsContainer_44c59fda .is-suggested:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}"}]);var dk=Object.freeze({__proto__:null,suggestionsContainer:"suggestionsContainer_44c59fda"}),uk=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=u.createRef(),n.SuggestionsItemOfProperType=Dx,n._onClickTypedSuggestionsItem=function(e,t){return function(r){n.props.onSuggestionClick(r,e,t)}},n._onRemoveTypedSuggestionsItem=function(e,t){return function(r){(0,n.props.onSuggestionRemove)(r,e,t),r.stopPropagation()}},Xr(n),n.currentIndex=-1,n}return g(t,e),t.prototype.nextSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(0),!0;if(this.currentIndex<e.length-1)return this.setSelectedSuggestion(this.currentIndex+1),!0;if(this.props.shouldLoopSelection&&this.currentIndex===e.length-1)return this.setSelectedSuggestion(0),!0}return!1},t.prototype.previousSuggestion=function(){var e=this.props.suggestions;if(e&&e.length>0){if(-1===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0;if(this.currentIndex>0)return this.setSelectedSuggestion(this.currentIndex-1),!0;if(this.props.shouldLoopSelection&&0===this.currentIndex)return this.setSelectedSuggestion(e.length-1),!0}return!1},Object.defineProperty(t.prototype,"selectedElement",{get:function(){return this._selectedElement.current||void 0},enumerable:!1,configurable:!0}),t.prototype.getCurrentItem=function(){return this.props.suggestions[this.currentIndex]},t.prototype.getSuggestionAtIndex=function(e){return this.props.suggestions[e]},t.prototype.hasSuggestionSelected=function(){return-1!==this.currentIndex&&this.currentIndex<this.props.suggestions.length},t.prototype.removeSuggestion=function(e){this.props.suggestions.splice(e,1)},t.prototype.deselectAllSuggestions=function(){this.currentIndex>-1&&this.props.suggestions[this.currentIndex]&&(this.props.suggestions[this.currentIndex].selected=!1,this.currentIndex=-1,this.forceUpdate())},t.prototype.setSelectedSuggestion=function(e){var t=this.props.suggestions;e>t.length-1||e<0?(this.currentIndex=0,this.currentSuggestion.selected=!1,this.currentSuggestion=t[0],this.currentSuggestion.selected=!0):(this.currentIndex>-1&&t[this.currentIndex]&&(t[this.currentIndex].selected=!1),t[e].selected=!0,this.currentIndex=e,this.currentSuggestion=t[e]),this.forceUpdate()},t.prototype.componentDidUpdate=function(){this.scrollSelected()},t.prototype.render=function(){var e=this,t=this.props,n=t.onRenderSuggestion,r=t.suggestionsItemClassName,o=t.resultsMaximumNumber,i=t.showRemoveButtons,a=t.suggestionsContainerAriaLabel,s=this.SuggestionsItemOfProperType,l=this.props.suggestions;return o&&(l=l.slice(0,o)),u.createElement("div",{className:Wn("ms-Suggestions-container",dk.suggestionsContainer),id:"suggestion-list",role:"listbox","aria-label":a},l.map((function(t,o){return u.createElement("div",{ref:t.selected||o===e.currentIndex?e._selectedElement:void 0,key:t.item.key?t.item.key:o,id:"sug-"+o},u.createElement(s,{id:"sug-item"+o,suggestionModel:t,RenderSuggestion:n,onClick:e._onClickTypedSuggestionsItem(t.item,o),className:r,showRemoveButton:i,onRemoveItem:e._onRemoveTypedSuggestionsItem(t.item,o),isSelectedOverride:o===e.currentIndex}))})))},t.prototype.scrollSelected=function(){var e;void 0!==(null===(e=this._selectedElement.current)||void 0===e?void 0:e.scrollIntoView)&&this._selectedElement.current.scrollIntoView(!1)},t}(u.Component);ps([{rawString:".root_ade399af{min-width:260px}.actionButton_ade399af{background:0 0;background-color:transparent;border:0;cursor:pointer;margin:0;padding:0;position:relative;width:100%;font-size:12px}html[dir=ltr] .actionButton_ade399af{text-align:left}html[dir=rtl] .actionButton_ade399af{text-align:right}.actionButton_ade399af:hover{background-color:"},{theme:"neutralLighter",defaultValue:"#f3f2f1"},{rawString:";cursor:pointer}.actionButton_ade399af:active,.actionButton_ade399af:focus{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.actionButton_ade399af .ms-Button-icon{font-size:16px;width:25px}.actionButton_ade399af .ms-Button-label{margin:0 4px 0 9px}html[dir=rtl] .actionButton_ade399af .ms-Button-label{margin:0 9px 0 4px}.buttonSelected_ade399af{background-color:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.buttonSelected_ade399af:hover{background-color:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:";cursor:pointer}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af:hover{background-color:Highlight;color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.buttonSelected_ade399af{background-color:Highlight;color:HighlightText;-ms-high-contrast-adjust:none}}.suggestionsTitle_ade399af{font-size:12px}.suggestionsSpinner_ade399af{margin:5px 0;white-space:nowrap;line-height:20px;font-size:12px}html[dir=ltr] .suggestionsSpinner_ade399af{padding-left:14px}html[dir=rtl] .suggestionsSpinner_ade399af{padding-right:14px}html[dir=ltr] .suggestionsSpinner_ade399af{text-align:left}html[dir=rtl] .suggestionsSpinner_ade399af{text-align:right}.suggestionsSpinner_ade399af .ms-Spinner-circle{display:inline-block;vertical-align:middle}.suggestionsSpinner_ade399af .ms-Spinner-label{display:inline-block;margin:0 10px 0 16px;vertical-align:middle}html[dir=rtl] .suggestionsSpinner_ade399af .ms-Spinner-label{margin:0 16px 0 10px}.itemButton_ade399af{height:100%;width:100%;padding:7px 12px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.itemButton_ade399af{color:WindowText}}.screenReaderOnly_ade399af{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}"}]);var pk,mk=Object.freeze({__proto__:null,root:"root_ade399af",actionButton:"actionButton_ade399af",buttonSelected:"buttonSelected_ade399af",suggestionsTitle:"suggestionsTitle_ade399af",suggestionsSpinner:"suggestionsSpinner_ade399af",itemButton:"itemButton_ade399af",screenReaderOnly:"screenReaderOnly_ade399af"});!function(e){e[e.header=0]="header",e[e.suggestion=1]="suggestion",e[e.footer=2]="footer"}(pk||(pk={}));var hk=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),n}return g(t,e),t.prototype.render=function(){var e,t=this.props,n=t.renderItem,r=t.onExecute,o=t.isSelected,i=t.id,a=t.className;return r?u.createElement("div",{id:i,onClick:r,className:Wn("ms-Suggestions-sectionButton",a,mk.actionButton,(e={},e["is-selected "+mk.buttonSelected]=o,e))},n()):u.createElement("div",{id:i,className:Wn("ms-Suggestions-section",a,mk.suggestionsTitle)},n())},t}(u.Component),fk=function(e){function t(t){var n=e.call(this,t)||this;return n._selectedElement=u.createRef(),n._suggestions=u.createRef(),n.SuggestionsOfProperType=uk,Xr(n),n.state={selectedHeaderIndex:-1,selectedFooterIndex:-1,suggestions:t.suggestions},n}return g(t,e),t.prototype.componentDidMount=function(){this.resetSelectedItem()},t.prototype.componentDidUpdate=function(e){var t=this;this.scrollSelected(),e.suggestions&&e.suggestions!==this.props.suggestions&&this.setState({suggestions:this.props.suggestions},(function(){t.resetSelectedItem()}))},t.prototype.componentWillUnmount=function(){var e;null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions()},t.prototype.render=function(){var e=this.props,t=e.className,n=e.headerItemsProps,r=e.footerItemsProps,o=e.suggestionsAvailableAlertText,i=we(Qa),a=this.state.suggestions&&this.state.suggestions.length>0&&o;return u.createElement("div",{className:Wn("ms-Suggestions",t||"",mk.root)},n&&this.renderHeaderItems(),this._renderSuggestions(),r&&this.renderFooterItems(),a?u.createElement("span",{role:"alert","aria-live":"polite",className:i},o):null)},Object.defineProperty(t.prototype,"currentSuggestion",{get:function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.getCurrentItem())||void 0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"currentSuggestionIndex",{get:function(){return this._suggestions.current?this._suggestions.current.currentIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedElement",{get:function(){var e;return this._selectedElement.current?this._selectedElement.current:null===(e=this._suggestions.current)||void 0===e?void 0:e.selectedElement},enumerable:!1,configurable:!0}),t.prototype.hasSuggestionSelected=function(){var e;return(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())||!1},t.prototype.hasSelection=function(){var e=this.state,t=e.selectedHeaderIndex,n=e.selectedFooterIndex;return-1!==t||this.hasSuggestionSelected()||-1!==n},t.prototype.executeSelectedAction=function(){var e,t=this.props,n=t.headerItemsProps,r=t.footerItemsProps,o=this.state,i=o.selectedHeaderIndex,a=o.selectedFooterIndex;if(n&&-1!==i&&i<n.length){var s=n[i];s.onExecute&&s.onExecute()}else if(null===(e=this._suggestions.current)||void 0===e?void 0:e.hasSuggestionSelected())this.props.completeSuggestion();else if(r&&-1!==a&&a<r.length){var l=r[a];l.onExecute&&l.onExecute()}},t.prototype.removeSuggestion=function(e){var t,n;null===(t=this._suggestions.current)||void 0===t||t.removeSuggestion(e||(null===(n=this._suggestions.current)||void 0===n?void 0:n.currentIndex))},t.prototype.handleKeyDown=function(e){var t,n,r,o,i=this.state,a=i.selectedHeaderIndex,s=i.selectedFooterIndex,l=!1;return e===tn?-1!==a||(null===(t=this._suggestions.current)||void 0===t?void 0:t.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectNextItem(pk.header),l=!0):(null===(n=this._suggestions.current)||void 0===n?void 0:n.hasSuggestionSelected())?(this.selectNextItem(pk.suggestion),l=!0):-1!==s&&(this.selectNextItem(pk.footer),l=!0):this.selectFirstItem():e===$t?-1!==a||(null===(r=this._suggestions.current)||void 0===r?void 0:r.hasSuggestionSelected())||-1!==s?-1!==a?(this.selectPreviousItem(pk.header),l=!0):(null===(o=this._suggestions.current)||void 0===o?void 0:o.hasSuggestionSelected())?(this.selectPreviousItem(pk.suggestion),l=!0):-1!==s&&(this.selectPreviousItem(pk.footer),l=!0):this.selectLastItem():e!==Wt&&e!==zt||this.hasSelection()&&(this.executeSelectedAction(),l=!0),l},t.prototype.scrollSelected=function(){this._selectedElement.current&&this._selectedElement.current.scrollIntoView(!1)},t.prototype.renderHeaderItems=function(){var e=this,t=this.props,n=t.headerItemsProps,r=t.suggestionsHeaderContainerAriaLabel,o=this.state.selectedHeaderIndex;return n?u.createElement("div",{className:Wn("ms-Suggestions-headerContainer",mk.suggestionsContainer),id:"suggestionHeader-list",role:"list","aria-label":r},n.map((function(t,n){var r=-1!==o&&o===n;return t.shouldShow()?u.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-header"+n,key:"sug-header"+n,role:"listitem","aria-label":t.ariaLabel},u.createElement(hk,{id:"sug-header-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype.renderFooterItems=function(){var e=this,t=this.props,n=t.footerItemsProps,r=t.suggestionsFooterContainerAriaLabel,o=this.state.selectedFooterIndex;return n?u.createElement("div",{className:Wn("ms-Suggestions-footerContainer",mk.suggestionsContainer),id:"suggestionFooter-list",role:"list","aria-label":r},n.map((function(t,n){var r=-1!==o&&o===n;return t.shouldShow()?u.createElement("div",{ref:r?e._selectedElement:void 0,id:"sug-footer"+n,key:"sug-footer"+n,role:"listitem","aria-label":t.ariaLabel},u.createElement(hk,{id:"sug-footer-item"+n,isSelected:r,renderItem:t.renderItem,onExecute:t.onExecute,className:t.className})):null}))):null},t.prototype._renderSuggestions=function(){var e=this.SuggestionsOfProperType;return u.createElement(e,v({ref:this._suggestions},this.props,{suggestions:this.state.suggestions}))},t.prototype.selectNextItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectNextItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectNextItem(this._getNextItemSectionType(e),n)}else this._selectNextItemOfItemType(e)},t.prototype.selectPreviousItem=function(e,t){if(e!==t){var n=void 0!==t?t:e;this._selectPreviousItemOfItemType(e,n===e?this._getCurrentIndexForType(e):void 0)||this.selectPreviousItem(this._getPreviousItemSectionType(e),n)}else this._selectPreviousItemOfItemType(e)},t.prototype.resetSelectedItem=function(){var e;this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),null===(e=this._suggestions.current)||void 0===e||e.deselectAllSuggestions(),(void 0===this.props.shouldSelectFirstItem||this.props.shouldSelectFirstItem())&&this.selectFirstItem()},t.prototype.selectFirstItem=function(){this._selectNextItemOfItemType(pk.header)||this._selectNextItemOfItemType(pk.suggestion)||this._selectNextItemOfItemType(pk.footer)},t.prototype.selectLastItem=function(){this._selectPreviousItemOfItemType(pk.footer)||this._selectPreviousItemOfItemType(pk.suggestion)||this._selectPreviousItemOfItemType(pk.header)},t.prototype._selectNextItemOfItemType=function(e,t){var n,r;if(void 0===t&&(t=-1),e===pk.suggestion){if(this.state.suggestions.length>t+1)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(t+1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o=e===pk.header,i=o?this.props.headerItemsProps:this.props.footerItemsProps;if(i&&i.length>t+1)for(var a=t+1;a<i.length;a++){var s=i[a];if(s.onExecute&&s.shouldShow())return this.setState({selectedHeaderIndex:o?a:-1}),this.setState({selectedFooterIndex:o?-1:a}),null===(r=this._suggestions.current)||void 0===r||r.deselectAllSuggestions(),!0}}return!1},t.prototype._selectPreviousItemOfItemType=function(e,t){var n,r;if(e===pk.suggestion){if((o=void 0!==t?t:this.state.suggestions.length)>0)return null===(n=this._suggestions.current)||void 0===n||n.setSelectedSuggestion(o-1),this.setState({selectedHeaderIndex:-1,selectedFooterIndex:-1}),!0}else{var o,i=e===pk.header,a=i?this.props.headerItemsProps:this.props.footerItemsProps;if(a)if((o=void 0!==t?t:a.length)>0)for(var s=o-1;s>=0;s--){var l=a[s];if(l.onExecute&&l.shouldShow())return this.setState({selectedHeaderIndex:i?s:-1}),this.setState({selectedFooterIndex:i?-1:s}),null===(r=this._suggestions.current)||void 0===r||r.deselectAllSuggestions(),!0}}return!1},t.prototype._getCurrentIndexForType=function(e){switch(e){case pk.header:return this.state.selectedHeaderIndex;case pk.suggestion:return this._suggestions.current.currentIndex;case pk.footer:return this.state.selectedFooterIndex}},t.prototype._getNextItemSectionType=function(e){switch(e){case pk.header:return pk.suggestion;case pk.suggestion:return pk.footer;case pk.footer:return pk.header}},t.prototype._getPreviousItemSectionType=function(e){switch(e){case pk.header:return pk.footer;case pk.suggestion:return pk.header;case pk.footer:return pk.suggestion}},t}(u.Component),gk=Ix,vk=function(e){function t(t){var n=e.call(this,t)||this;return n.root=u.createRef(),n.suggestionsControl=u.createRef(),n.SuggestionsControlOfProperType=fk,n.isComponentMounted=!1,n.onQueryStringChanged=function(e){e!==n.state.queryString&&(n.setState({queryString:e}),n.props.onInputChanged&&n.props.onInputChanged(e),n.updateValue(e))},n.hidePicker=function(){var e=n.isSuggestionsShown;n.setState({suggestionsVisible:!1}),n.props.onSuggestionsHidden&&e&&n.props.onSuggestionsHidden()},n.showPicker=function(e){void 0===e&&(e=!1);var t=n.isSuggestionsShown;n.setState({suggestionsVisible:!0});var r=n.props.inputElement?n.props.inputElement.value:"";e&&n.updateValue(r),n.props.onSuggestionsShown&&!t&&n.props.onSuggestionsShown()},n.completeSuggestion=function(){n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.onChange(n.suggestionsControl.current.currentSuggestion.item)},n.onSuggestionClick=function(e,t,r){n.onChange(t),n._updateSuggestionsVisible(!1)},n.onSuggestionRemove=function(e,t,r){n.props.onRemoveSuggestion&&n.props.onRemoveSuggestion(t),n.suggestionsControl.current&&n.suggestionsControl.current.removeSuggestion(r)},n.onKeyDown=function(e){if(n.state.suggestionsVisible&&(!n.props.inputElement||n.props.inputElement.contains(e.target))){var t=e.which;switch(t){case Gt:n.hidePicker(),e.preventDefault(),e.stopPropagation();break;case zt:case Wt:!e.shiftKey&&!e.ctrlKey&&n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)?(e.preventDefault(),e.stopPropagation()):n._onValidateInput();break;case nn:n.props.onRemoveSuggestion&&n.suggestionsControl.current&&n.suggestionsControl.current.hasSuggestionSelected()&&n.suggestionsControl.current.currentSuggestion&&e.shiftKey&&(n.props.onRemoveSuggestion(n.suggestionsControl.current.currentSuggestion.item),n.suggestionsControl.current.removeSuggestion(),n.forceUpdate(),e.stopPropagation());break;case $t:case tn:n.suggestionsControl.current&&n.suggestionsControl.current.handleKeyDown(t)&&(e.preventDefault(),e.stopPropagation(),n._updateActiveDescendant())}}},n._onValidateInput=function(){if(n.state.queryString&&n.props.onValidateInput&&n.props.createGenericItem){var e=n.props.createGenericItem(n.state.queryString,n.props.onValidateInput(n.state.queryString)),t=n.suggestionStore.convertSuggestionsToSuggestionItems([e]);n.onChange(t[0].item)}},n._async=new ze(n),Xr(n),n.suggestionStore=t.suggestionsStore,n.state={queryString:"",didBind:!1},n}return g(t,e),Object.defineProperty(t.prototype,"inputText",{get:function(){return this.state.queryString},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suggestions",{get:function(){return this.suggestionStore.suggestions},enumerable:!1,configurable:!0}),t.prototype.forceResolveSuggestion=function(){this.suggestionsControl.current&&this.suggestionsControl.current.hasSuggestionSelected()?this.completeSuggestion():this._onValidateInput()},Object.defineProperty(t.prototype,"currentSelectedSuggestionIndex",{get:function(){return this.suggestionsControl.current?this.suggestionsControl.current.currentSuggestionIndex:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuggestionsShown",{get:function(){return void 0!==this.state.suggestionsVisible&&this.state.suggestionsVisible},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){this._bindToInputElement(),this.isComponentMounted=!0,this._onResolveSuggestions=this._async.debounce(this._onResolveSuggestions,this.props.resolveDelay)},t.prototype.componentDidUpdate=function(){this._bindToInputElement()},t.prototype.componentWillUnmount=function(){this._unbindFromInputElement(),this.isComponentMounted=!1},t.prototype.updateSuggestions=function(e,t){void 0===t&&(t=!1),this.suggestionStore.updateSuggestions(e),t&&this.forceUpdate()},t.prototype.render=function(){var e=this.props.className;return u.createElement("div",{ref:this.root,className:Wn("ms-BasePicker ms-BaseFloatingPicker",e||"")},this.renderSuggestions())},t.prototype.renderSuggestions=function(){var e=this.SuggestionsControlOfProperType;return this.props.suggestionItems&&this.suggestionStore.updateSuggestions(this.props.suggestionItems),this.state.suggestionsVisible?u.createElement(Wc,v({className:gk.callout,isBeakVisible:!1,gapSpace:5,target:this.props.inputElement,onDismiss:this.hidePicker,directionalHint:js,directionalHintForRTL:qs,calloutWidth:this.props.calloutWidth?this.props.calloutWidth:0},this.props.pickerCalloutProps),u.createElement(e,v({onRenderSuggestion:this.props.onRenderSuggestionsItem,onSuggestionClick:this.onSuggestionClick,onSuggestionRemove:this.onSuggestionRemove,suggestions:this.suggestionStore.getSuggestions(),componentRef:this.suggestionsControl,completeSuggestion:this.completeSuggestion,shouldLoopSelection:!1},this.props.pickerSuggestionsProps))):null},t.prototype.onSelectionChange=function(){this.forceUpdate()},t.prototype.updateValue=function(e){""===e?this.updateSuggestionWithZeroState():this._onResolveSuggestions(e)},t.prototype.updateSuggestionWithZeroState=function(){if(this.props.onZeroQuerySuggestion){var e=(0,this.props.onZeroQuerySuggestion)(this.props.selectedItems);this.updateSuggestionsList(e)}else this.hidePicker()},t.prototype.updateSuggestionsList=function(e){var t=this;Array.isArray(e)?this.updateSuggestions(e,!0):e&&e.then&&(this.currentPromise=e,e.then((function(n){e===t.currentPromise&&t.isComponentMounted&&t.updateSuggestions(n,!0)})))},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype._updateActiveDescendant=function(){if(this.props.inputElement&&this.suggestionsControl.current&&this.suggestionsControl.current.selectedElement){var e=this.suggestionsControl.current.selectedElement.getAttribute("id");e&&this.props.inputElement.setAttribute("aria-activedescendant",e)}},t.prototype._onResolveSuggestions=function(e){var t=this.props.onResolveSuggestions(e,this.props.selectedItems);this._updateSuggestionsVisible(!0),null!==t&&this.updateSuggestionsList(t)},t.prototype._updateSuggestionsVisible=function(e){e?this.showPicker():this.hidePicker()},t.prototype._bindToInputElement=function(){this.props.inputElement&&!this.state.didBind&&(this.props.inputElement.addEventListener("keydown",this.onKeyDown),this.setState({didBind:!0}))},t.prototype._unbindFromInputElement=function(){this.props.inputElement&&this.state.didBind&&(this.props.inputElement.removeEventListener("keydown",this.onKeyDown),this.setState({didBind:!1}))},t}(u.Component);ps([{rawString:".resultContent_f73be5be{display:table-row}.resultContent_f73be5be .resultItem_f73be5be{display:table-cell;vertical-align:bottom}.peoplePickerPersona_f73be5be{width:180px}.peoplePickerPersona_f73be5be .ms-Persona-details{width:100%}.peoplePicker_f73be5be .ms-BasePicker-text{min-height:40px}.peoplePickerPersonaContent_f73be5be{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:7px 12px}"}]);var yk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(vk);!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}g(t,e),t.defaultProps={onRenderSuggestionsItem:function(e,t){return n=v({},e),v({},t),u.createElement("div",{className:Wn("ms-PeoplePicker-personaContent","peoplePickerPersonaContent_f73be5be")},u.createElement(Qd,v({presence:void 0!==n.presence?n.presence:yd.none,size:vd.size40,className:Wn("ms-PeoplePicker-Persona","peoplePickerPersona_f73be5be"),showSecondaryText:!0},n)));var n},createGenericItem:bk}}(yk);function bk(e,t){var n={key:e,primaryText:e,imageInitials:"!",isValid:t};return t||(n.imageInitials=_o(e,Sn())),n}!function(){function e(e){var t=this;this._isSuggestionModel=function(e){return void 0!==e.item},this._ensureSuggestionModel=function(e){return t._isSuggestionModel(e)?e:{item:e,selected:!1,ariaLabel:void 0!==t.getAriaLabel?t.getAriaLabel(e):e.name||e.text||e.primaryText}},this.suggestions=[],this.getAriaLabel=e&&e.getAriaLabel}e.prototype.updateSuggestions=function(e){e&&e.length>0?this.suggestions=this.convertSuggestionsToSuggestionItems(e):this.suggestions=[]},e.prototype.getSuggestions=function(){return this.suggestions},e.prototype.getSuggestionAtIndex=function(e){return this.suggestions[e]},e.prototype.removeSuggestion=function(e){this.suggestions.splice(e,1)},e.prototype.convertSuggestionsToSuggestionItems=function(e){return Array.isArray(e)?e.map(this._ensureSuggestionModel):[]}}();var Ck,Sk,xk={host:"ms-HoverCard-host"};!function(e){e[e.hover=0]="hover",e[e.hotKey=1]="hotKey"}(Ck||(Ck={})),function(e){e.plain="PlainCard",e.expanding="ExpandingCard"}(Sk||(Sk={}));var kk,Pk={root:"ms-ExpandingCard-root",compactCard:"ms-ExpandingCard-compactCard",expandedCard:"ms-ExpandingCard-expandedCard",expandedCardScroll:"ms-ExpandingCard-expandedCardScrollRegion"};!function(e){e[e.compact=0]="compact",e[e.expanded=1]="expanded"}(kk||(kk={}));var Ik=function(e){var t=e.gapSpace,n=void 0===t?0:t,r=e.directionalHint,o=void 0===r?js:r,i=e.directionalHintFixed,a=e.targetElement,s=e.firstFocus,l=e.trapFocus,c=e.onLeave,d=e.className,p=e.finalHeight,m=e.content,h=e.calloutProps,f=v(v(v({},qr(e,Gr)),{className:d,target:a,isBeakVisible:!1,directionalHint:o,directionalHintFixed:i,finalHeight:p,minPagePadding:24,onDismiss:c,gapSpace:n}),h);return u.createElement(u.Fragment,null,l?u.createElement(qc,v({},f,{focusTrapProps:{forceFocusInsideTrap:!1,isClickableOutsideFocusTrap:!0,disableFirstFocus:!s}}),m):u.createElement(Wc,v({},f),m))},wk=wn(),Ek=function(e){function t(t){var n=e.call(this,t)||this;return n._expandedElem=u.createRef(),n._onKeyDown=function(e){e.which===Gt&&n.props.onLeave&&n.props.onLeave(e)},n._onRenderCompactCard=function(){return u.createElement("div",{className:n._classNames.compactCard},n.props.onRenderCompactCard(n.props.renderData))},n._onRenderExpandedCard=function(){return!n.state.firstFrameRendered&&n._async.requestAnimationFrame((function(){n.setState({firstFrameRendered:!0})})),u.createElement("div",{className:n._classNames.expandedCard,ref:n._expandedElem},u.createElement("div",{className:n._classNames.expandedCardScroll},n.props.onRenderExpandedCard&&n.props.onRenderExpandedCard(n.props.renderData)))},n._checkNeedsScroll=function(){var e=n.props.expandedCardHeight;n._async.requestAnimationFrame((function(){n._expandedElem.current&&n._expandedElem.current.scrollHeight>=e&&n.setState({needsScroll:!0})}))},n._async=new ze(n),Xr(n),n.state={firstFrameRendered:!1,needsScroll:!1},n}return g(t,e),t.prototype.componentDidMount=function(){this._checkNeedsScroll()},t.prototype.componentWillUnmount=function(){this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.styles,n=e.compactCardHeight,r=e.expandedCardHeight,o=e.theme,i=e.mode,a=e.className,s=this.state,l=s.needsScroll,c=s.firstFrameRendered,d=n+r;this._classNames=wk(t,{theme:o,compactCardHeight:n,className:a,expandedCardHeight:r,needsScroll:l,expandedCardFirstFrameRendered:i===kk.expanded&&c});var p=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this._onRenderCompactCard(),this._onRenderExpandedCard());return u.createElement(Ik,v({},this.props,{content:p,finalHeight:d,className:this._classNames.root}))},t.defaultProps={compactCardHeight:156,expandedCardHeight:384,directionalHintFixed:!0},t}(u.Component),_k=Jo(Ek,(function(e){var t,n=e.theme,r=e.needsScroll,o=e.expandedCardFirstFrameRendered,i=e.compactCardHeight,a=e.expandedCardHeight,s=e.className,l=n.palette,c=os(Pk,n);return{root:[c.root,{width:320,pointerEvents:"none",selectors:(t={},t[Wa]={border:"1px solid WindowText"},t)},s],compactCard:[c.compactCard,{pointerEvents:"auto",position:"relative",height:i}],expandedCard:[c.expandedCard,{height:1,overflowY:"hidden",pointerEvents:"auto",transition:"height 0.467s cubic-bezier(0.5, 0, 0, 1)",selectors:{":before":{content:'""',position:"relative",display:"block",top:0,left:24,width:272,height:1,backgroundColor:l.neutralLighter}}},o&&{height:a}],expandedCardScroll:[c.expandedCardScroll,r&&{height:"100%",boxSizing:"border-box",overflowY:"auto"}]}}),void 0,{scope:"ExpandingCard"}),Dk={root:"ms-PlainCard-root"};var Tk=wn(),Rk=function(e){function t(t){var n=e.call(this,t)||this;return n._onKeyDown=function(e){e.which===Gt&&n.props.onLeave&&n.props.onLeave(e)},Xr(n),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.theme,r=e.className;this._classNames=Tk(t,{theme:n,className:r});var o=u.createElement("div",{onMouseEnter:this.props.onEnter,onMouseLeave:this.props.onLeave,onKeyDown:this._onKeyDown},this.props.onRenderPlainCard(this.props.renderData));return u.createElement(Ik,v({},this.props,{content:o,className:this._classNames.root}))},t}(u.Component),Ak=Jo(Rk,(function(e){var t,n=e.theme,r=e.className;return{root:[os(Dk,n).root,{pointerEvents:"auto",selectors:(t={},t[Wa]={border:"1px solid WindowText"},t)},r]}}),void 0,{scope:"PlainCard"}),Mk=wn(),Nk=function(e){function t(t){var n=e.call(this,t)||this;return n._hoverCard=u.createRef(),n.dismiss=function(e){n._async.clearTimeout(n._openTimerId),n._async.clearTimeout(n._dismissTimerId),e?n._dismissTimerId=n._async.setTimeout((function(){n._setDismissedState()}),n.props.cardDismissDelay):n._setDismissedState()},n._cardOpen=function(e){n._shouldBlockHoverCard()||"keydown"===e.type&&e.which!==n.props.openHotKey||(n._async.clearTimeout(n._dismissTimerId),"mouseenter"===e.type&&(n._currentMouseTarget=e.currentTarget),n._executeCardOpen(e))},n._executeCardOpen=function(e){n._async.clearTimeout(n._openTimerId),n._openTimerId=n._async.setTimeout((function(){n.setState((function(t){return t.isHoverCardVisible?t:{isHoverCardVisible:!0,mode:kk.compact,openMode:"keydown"===e.type?Ck.hotKey:Ck.hover}}))}),n.props.cardOpenDelay)},n._cardDismiss=function(e,t){if(e){if(!(t instanceof MouseEvent))return;if("keydown"===t.type&&t.which!==Gt)return;n.props.sticky||n._currentMouseTarget!==t.currentTarget&&t.which!==Gt||n.dismiss(!0)}else{if(n.props.sticky&&!(t instanceof MouseEvent)&&t.nativeEvent instanceof MouseEvent&&"mouseleave"===t.type)return;n.dismiss(!0)}},n._setDismissedState=function(){n.setState({isHoverCardVisible:!1,mode:kk.compact,openMode:Ck.hover})},n._instantOpenAsExpanded=function(e){n._async.clearTimeout(n._dismissTimerId),n.setState((function(e){return e.isHoverCardVisible?e:{isHoverCardVisible:!0,mode:kk.expanded}}))},n._setEventListeners=function(){var e=n.props,t=e.trapFocus,r=e.instantOpenOnClick,o=e.eventListenerTarget,i=o?n._getTargetElement(o):n._getTargetElement(n.props.target),a=n._nativeDismissEvent;i&&(n._events.on(i,"mouseenter",n._cardOpen),n._events.on(i,"mouseleave",a),t?n._events.on(i,"keydown",n._cardOpen):(n._events.on(i,"focus",n._cardOpen),n._events.on(i,"blur",a)),r?n._events.on(i,"click",n._instantOpenAsExpanded):(n._events.on(i,"mousedown",a),n._events.on(i,"keydown",a)))},Xr(n),n._async=new ze(n),n._events=new gt(n),n._nativeDismissEvent=n._cardDismiss.bind(n,!0),n._childDismissEvent=n._cardDismiss.bind(n,!1),n.state={isHoverCardVisible:!1,mode:kk.compact,openMode:Ck.hover},n}return g(t,e),t.prototype.componentDidMount=function(){this._setEventListeners()},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.componentDidUpdate=function(e,t){var n=this;e.target!==this.props.target&&(this._events.off(),this._setEventListeners()),t.isHoverCardVisible!==this.state.isHoverCardVisible&&(this.state.isHoverCardVisible?(this._async.setTimeout((function(){n.setState({mode:kk.expanded},(function(){n.props.onCardExpand&&n.props.onCardExpand()}))}),this.props.expandedCardOpenDelay),this.props.onCardVisible&&this.props.onCardVisible()):(this.setState({mode:kk.compact}),this.props.onCardHide&&this.props.onCardHide()))},t.prototype.render=function(){var e=this.props,t=e.expandingCardProps,n=e.children,r=e.id,o=e.setAriaDescribedBy,i=void 0===o||o,a=e.styles,s=e.theme,l=e.className,c=e.type,d=e.plainCardProps,p=e.trapFocus,m=e.setInitialFocus,h=this.state,f=h.isHoverCardVisible,g=h.mode,y=h.openMode,b=r||Cr("hoverCard");this._classNames=Mk(a,{theme:s,className:l});var C=v(v({},qr(this.props,Gr)),{id:b,trapFocus:!!p,firstFocus:m||y===Ck.hotKey,targetElement:this._getTargetElement(this.props.target),onEnter:this._cardOpen,onLeave:this._childDismissEvent}),S=v(v(v({},t),C),{mode:g}),x=v(v({},d),C);return u.createElement("div",{className:this._classNames.host,ref:this._hoverCard,"aria-describedby":i&&f?b:void 0,"data-is-focusable":!this.props.target},n,f&&(c===Sk.expanding?u.createElement(_k,v({},S)):u.createElement(Ak,v({},x))))},t.prototype._getTargetElement=function(e){switch(typeof e){case"string":return Je().querySelector(e);case"object":return e;default:return this._hoverCard.current||void 0}},t.prototype._shouldBlockHoverCard=function(){return!(!this.props.shouldBlockHoverCard||!this.props.shouldBlockHoverCard())},t.defaultProps={cardOpenDelay:500,cardDismissDelay:100,expandedCardOpenDelay:1500,instantOpenOnClick:!1,setInitialFocus:!1,openHotKey:sn,type:Sk.expanding},t}(u.Component);Jo(Nk,(function(e){var t=e.className,n=e.theme;return{host:[os(xk,n).host,t]}}),void 0,{scope:"HoverCard"});L("@fluentui/font-icons-mdl2","8.5.55");"".concat("https://res.cdn.office.net/files/fabric-cdn-prod_20241029.001","/assets/icons/"),Ve();var Fk,Hk,Ok=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.content,n=e.styles,r=e.theme,o=e.disabled,i=e.visible,a=wn()(n,{theme:r,disabled:o,visible:i});return u.createElement("div",{className:a.container},u.createElement("span",{className:a.root},t))},t}(u.Component),Bk=function(e){return{container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]}},Lk=function(e){return function(t){return De({container:[],root:[{border:"none",boxShadow:"none"}],beak:[],beakCurtain:[],calloutMain:[{backgroundColor:"transparent"}]},{root:[{marginLeft:e.left||e.x,marginTop:e.top||e.y}]})}},Vk=Jo(Ok,(function(e){var t,n=e.theme,r=e.disabled,o=e.visible;return{container:[{backgroundColor:n.palette.neutralDark},r&&{opacity:.5,selectors:(t={},t[Wa]={color:"GrayText",opacity:1},t)},!o&&{visibility:"hidden"}],root:[n.fonts.medium,{textAlign:"center",paddingLeft:"3px",paddingRight:"3px",backgroundColor:n.palette.neutralDark,color:n.palette.neutralLight,minWidth:"11px",lineHeight:"17px",height:"17px",display:"inline-block"},r&&{color:n.palette.neutralTertiaryAlt}]}}),void 0,{scope:"KeytipContent"}),zk=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t.prototype.render=function(){var e,t=this.props,n=t.keySequences,r=t.offset,o=t.overflowSetSequence,i=this.props.calloutProps,a=function(e){var t=Je(),n=t.querySelectorAll(e);return Array.from(n).find((function(e){var n;return rt(e,null!==(n=t.defaultView)&&void 0!==n?n:void 0)}))}(e=ip(o?op(n,o):n));return a?(e=a,r&&(i=v({coverTarget:!0,directionalHint:zs},i)),i&&void 0!==i.directionalHint||(i=v(v({},i),{directionalHint:Gs})),u.createElement(Wc,v({},i,{isBeakVisible:!1,doNotLayer:!0,minPagePadding:0,styles:r?Lk(r):Bk,preventDismissOnScroll:!0,target:e}),u.createElement(Vk,v({},this.props)))):u.createElement(u.Fragment,null)},t}(u.Component),Wk=function(e){return{root:[{zIndex:za.KeytipLayer}]}},Uk=function(){function e(){this.nodeMap={},this.root={id:tp,children:[],parent:"",keySequences:[]},this.nodeMap[this.root.id]=this.root}return e.prototype.addNode=function(e,t,n){var r=this._getFullSequence(e),o=rp(r);r.pop();var i=this._getParentID(r),a=this._createNode(o,i,[],e,n);this.nodeMap[t]=a,this.getNodes([i]).forEach((function(e){return e.children.push(o)}))},e.prototype.updateNode=function(e,t){var n=this._getFullSequence(e),r=rp(n);n.pop();var o=this._getParentID(n),i=this.nodeMap[t],a=i.parent;if(i){if(a!==o&&this._removeChildFromParents(a,i.id),i.id!==r)this.getNodes([o]).forEach((function(e){var t=e.children.indexOf(i.id);t>=0?e.children[t]=r:e.children.push(r)}));i.id=r,i.keySequences=e.keySequences,i.overflowSetSequence=e.overflowSetSequence,i.onExecute=e.onExecute,i.onReturn=e.onReturn,i.hasDynamicChildren=e.hasDynamicChildren,i.hasMenu=e.hasMenu,i.parent=o,i.disabled=e.disabled}},e.prototype.removeNode=function(e,t){var n=this._getFullSequence(e),r=rp(n);n.pop(),this._removeChildFromParents(this._getParentID(n),r),this.nodeMap[t]&&delete this.nodeMap[t]},e.prototype.getExactMatchedNode=function(e,t,n){var r=this,o=null!==n&&void 0!==n?n:Je(),i=this.getNodes(t.children).filter((function(t){return r._getNodeSequence(t)===e&&!t.disabled}));if(0!==i.length){var a=i[0];if(1===i.length)return a;var s=a.keySequences,l=a.overflowSetSequence,c=ip(l?op(s,l):s),d=o.querySelectorAll(c);if(i.length<d.length)return a;var u=Array.from(d).findIndex((function(e){var t;return rt(e,null!==(t=o.defaultView)&&void 0!==t?t:void 0)}));return-1!==u?i[u]:i.find((function(e){return e.hasOverflowSubMenu}))||a}},e.prototype.getPartiallyMatchedNodes=function(e,t){var n=this;return this.getNodes(t.children).filter((function(t){return 0===n._getNodeSequence(t).indexOf(e)&&!t.disabled}))},e.prototype.getChildren=function(e){var t=this;if(!e&&!(e=this.currentKeytip))return[];var n=e.children;return Object.keys(this.nodeMap).reduce((function(e,r){return n.indexOf(t.nodeMap[r].id)>=0&&!t.nodeMap[r].persisted&&e.push(t.nodeMap[r].id),e}),[])},e.prototype.getNodes=function(e){var t=this;return Object.keys(this.nodeMap).reduce((function(n,r){return e.indexOf(t.nodeMap[r].id)>=0&&n.push(t.nodeMap[r]),n}),[])},e.prototype.getNode=function(e){var t;return fn((t=this.nodeMap,Object.keys(t).reduce((function(e,n){return e.push(t[n]),e}),[])),(function(t){return t.id===e}))},e.prototype.isCurrentKeytipParent=function(e){if(this.currentKeytip){var t=C([],e.keySequences,!0);e.overflowSetSequence&&(t=op(t,e.overflowSetSequence)),t.pop();var n=0===t.length?this.root.id:rp(t),r=!1;if(this.currentKeytip.overflowSetSequence)r=rp(this.currentKeytip.keySequences)===n;return r||this.currentKeytip.id===n}return!1},e.prototype._getParentID=function(e){return 0===e.length?this.root.id:rp(e)},e.prototype._getFullSequence=function(e){var t=C([],e.keySequences,!0);return e.overflowSetSequence&&(t=op(t,e.overflowSetSequence)),t},e.prototype._getNodeSequence=function(e){var t=C([],e.keySequences,!0);return e.overflowSetSequence&&(t=op(t,e.overflowSetSequence)),t[t.length-1]},e.prototype._createNode=function(e,t,n,r,o){var i=this,a=r.keySequences,s=r.hasDynamicChildren,l=r.overflowSetSequence,c=r.hasMenu,d=r.onExecute,u=r.onReturn,p=r.disabled,m=r.hasOverflowSubMenu,h={id:e,keySequences:a,overflowSetSequence:l,parent:t,children:n,onExecute:d,onReturn:u,hasDynamicChildren:s,hasMenu:c,disabled:p,persisted:o,hasOverflowSubMenu:m};return h.children=Object.keys(this.nodeMap).reduce((function(t,n){return i.nodeMap[n].parent===e&&t.push(i.nodeMap[n].id),t}),[]),h},e.prototype._removeChildFromParents=function(e,t){this.getNodes([e]).forEach((function(e){var n=e.children.indexOf(t);n>=0&&e.children.splice(n,1)}))},e}(),Kk={key:Oo()?"Control":"Meta",modifierKeys:[jt]},jk=Kk,Gk={key:"Escape"},qk=wn(),Yk=function(e){function t(t,n){var r=e.call(this,t,n)||this;r._keytipManager=np.getInstance(),r._delayedKeytipQueue=[],r._keyHandled=!1,r._isKeytipInstanceTargetVisible=function(e,t){var n,o=sc(r.context),i=lc(r.context),a=ip(e),s=null!==(n=null===o||void 0===o?void 0:o.querySelectorAll(a))&&void 0!==n?n:[];return s.length>1&&t<=s.length?rt(s[t-1],null!==i&&void 0!==i?i:void 0):1===t},r._onDismiss=function(e){r.state.inKeytipMode&&r._exitKeytipMode(e)},r._onKeyDown=function(e){r._keyHandled=!1;var t=e.key;switch(t){case"Tab":case"Enter":case"Spacebar":case" ":case"ArrowUp":case"Up":case"ArrowDown":case"Down":case"ArrowLeft":case"Left":case"ArrowRight":case"Right":r.state.inKeytipMode&&(r._keyHandled=!0,r._exitKeytipMode(e));break;default:"Esc"===t?t="Escape":"OS"!==t&&"Win"!==t||(t="Meta");var n={key:t};n.modifierKeys=r._getModifierKey(t,e),r.processTransitionInput(n,e)}},r._onKeyPress=function(e){r.state.inKeytipMode&&!r._keyHandled&&(r.processInput(e.key.toLocaleLowerCase(),e),e.preventDefault(),e.stopPropagation())},r._onKeytipAdded=function(e){var t,n=e.keytip,o=e.uniqueID;if(r._keytipTree.addNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null===(t=r._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),r._addKeytipToQueue(rp(n.keySequences)),r._keytipTree.currentKeytip&&r._keytipTree.currentKeytip.hasDynamicChildren&&r._keytipTree.currentKeytip.children.indexOf(n.id)<0)){var i=r._keytipTree.getNode(r._keytipTree.currentKeytip.id);i&&(r._keytipTree.currentKeytip=i)}r._persistedKeytipChecks(n)},r._onKeytipUpdated=function(e){var t,n=e.keytip,o=e.uniqueID;r._keytipTree.updateNode(n,o),r._setKeytips(),r._keytipTree.isCurrentKeytipParent(n)&&(r._delayedKeytipQueue=r._delayedKeytipQueue.concat((null===(t=r._keytipTree.currentKeytip)||void 0===t?void 0:t.children)||[]),r._addKeytipToQueue(rp(n.keySequences))),r._persistedKeytipChecks(n)},r._persistedKeytipChecks=function(e){if(r._newCurrentKeytipSequences&&gn(e.keySequences,r._newCurrentKeytipSequences)&&r._triggerKeytipImmediately(e),r._isCurrentKeytipAnAlias(e)){var t=e.keySequences;e.overflowSetSequence&&(t=op(t,e.overflowSetSequence)),r._keytipTree.currentKeytip=r._keytipTree.getNode(rp(t))}},r._onKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._removeKeytipFromQueue(rp(t.keySequences)),r._keytipTree.removeNode(t,n),r._setKeytips()},r._onPersistedKeytipAdded=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.addNode(t,n,!0)},r._onPersistedKeytipRemoved=function(e){var t=e.keytip,n=e.uniqueID;r._keytipTree.removeNode(t,n)},r._onPersistedKeytipExecute=function(e){r._persistedKeytipExecute(e.overflowButtonSequences,e.keytipSequences)},r._setInKeytipMode=function(e){r.setState({inKeytipMode:e}),r._keytipManager.inKeytipMode=e},r._warnIfDuplicateKeytips=function(){var e=r._getDuplicateIds(r._keytipTree.getChildren());e.length&&_t("Duplicate keytips found for "+e.join(", "))},r._getDuplicateIds=function(e){var t={};return e.filter((function(e){return t[e]=t[e]?t[e]+1:1,2===t[e]}))},Xr(r),r._events=new gt(r),r._async=new ze(r);var o=r._keytipManager.getKeytips();return r.state={inKeytipMode:!1,keytips:o,visibleKeytips:r._getVisibleKeytips(o)},r._buildTree(),r._currentSequence="",r._events.on(r._keytipManager,Xu.KEYTIP_ADDED,r._onKeytipAdded),r._events.on(r._keytipManager,Xu.KEYTIP_UPDATED,r._onKeytipUpdated),r._events.on(r._keytipManager,Xu.KEYTIP_REMOVED,r._onKeytipRemoved),r._events.on(r._keytipManager,Xu.PERSISTED_KEYTIP_ADDED,r._onPersistedKeytipAdded),r._events.on(r._keytipManager,Xu.PERSISTED_KEYTIP_REMOVED,r._onPersistedKeytipRemoved),r._events.on(r._keytipManager,Xu.PERSISTED_KEYTIP_EXECUTE,r._onPersistedKeytipExecute),r}return g(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.content,r=t.styles,o=this.state,i=o.keytips,a=o.visibleKeytips;return this._classNames=qk(r,{}),u.createElement(zc,{styles:Wk},u.createElement("span",{id:tp,className:this._classNames.innerContent},"".concat(n).concat(", ")),i&&i.map((function(t,n){return u.createElement("span",{key:n,id:rp(t.keySequences),className:e._classNames.innerContent},t.keySequences.join(", "))})),a&&a.map((function(e){return u.createElement(zk,v({key:rp(e.keySequences)},e))})))},t.prototype.componentDidMount=function(){var e=lc(this.context);this._events.on(e,"mouseup",this._onDismiss,!0),this._events.on(e,"pointerup",this._onDismiss,!0),this._events.on(e,"resize",this._onDismiss),this._events.on(e,"keydown",this._onKeyDown,!0),this._events.on(e,"keypress",this._onKeyPress,!0),this._events.on(e,"scroll",this._onDismiss,!0),this._events.on(this._keytipManager,Xu.ENTER_KEYTIP_MODE,this._enterKeytipMode),this._events.on(this._keytipManager,Xu.EXIT_KEYTIP_MODE,this._exitKeytipMode)},t.prototype.componentWillUnmount=function(){this._async.dispose(),this._events.dispose()},t.prototype.getCurrentSequence=function(){return this._currentSequence},t.prototype.getKeytipTree=function(){return this._keytipTree},t.prototype.processTransitionInput=function(e,t){var n=this._keytipTree.currentKeytip;Qu(this.props.keytipExitSequences,e)&&n?(this._keyHandled=!0,this._exitKeytipMode(t)):Qu(this.props.keytipReturnSequences,e)?n&&(this._keyHandled=!0,n.id===this._keytipTree.root.id?this._exitKeytipMode(t):(n.onReturn&&n.onReturn(this._getKtpExecuteTarget(n),this._getKtpTarget(n)),this._currentSequence="",this._keytipTree.currentKeytip=this._keytipTree.getNode(n.parent),this.showKeytips(this._keytipTree.getChildren()),this._warnIfDuplicateKeytips())):Qu(this.props.keytipStartSequences,e)&&!n&&(this._keyHandled=!0,this._enterKeytipMode(e),this._warnIfDuplicateKeytips())},t.prototype.processInput=function(e,t){var n=this._currentSequence+e,r=this._keytipTree.currentKeytip;if(r){var o=this._keytipTree.getExactMatchedNode(n,r);if(o){this._keytipTree.currentKeytip=r=o;var i=this._keytipTree.getChildren();return r.onExecute&&(r.onExecute(this._getKtpExecuteTarget(r),this._getKtpTarget(r)),r=this._keytipTree.currentKeytip),0!==i.length||r.hasDynamicChildren||r.hasMenu?(this.showKeytips(i),this._warnIfDuplicateKeytips()):this._exitKeytipMode(t),void(this._currentSequence="")}var a=this._keytipTree.getPartiallyMatchedNodes(n,r);if(a.length>0){var s=a.filter((function(e){return!e.persisted})).map((function(e){return e.id}));this.showKeytips(s),this._currentSequence=n}}},t.prototype.showKeytips=function(e){for(var t=0,n=this._keytipManager.getKeytips();t<n.length;t++){var r=n[t],o=rp(r.keySequences);r.overflowSetSequence&&(o=rp(op(r.keySequences,r.overflowSetSequence))),e.indexOf(o)>=0?r.visible=!0:r.visible=!1}this._setKeytips()},t.prototype._enterKeytipMode=function(e){this._keytipManager.shouldEnterKeytipMode&&(this._keytipManager.delayUpdatingKeytipChange&&(this._buildTree(),this._setKeytips()),this._keytipTree.currentKeytip=this._keytipTree.root,this.showKeytips(this._keytipTree.getChildren()),this._setInKeytipMode(!0),this.props.onEnterKeytipMode&&this.props.onEnterKeytipMode(e))},t.prototype._buildTree=function(){this._keytipTree=new Uk;for(var e=0,t=Object.keys(this._keytipManager.keytips);e<t.length;e++){var n=t[e],r=this._keytipManager.keytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}for(var o=0,i=Object.keys(this._keytipManager.persistedKeytips);o<i.length;o++){n=i[o],r=this._keytipManager.persistedKeytips[n];this._keytipTree.addNode(r.keytip,r.uniqueID)}},t.prototype._exitKeytipMode=function(e){this._keytipTree.currentKeytip=void 0,this._currentSequence="",this.showKeytips([]),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedKeytipQueue=[],this._setInKeytipMode(!1),this.props.onExitKeytipMode&&this.props.onExitKeytipMode(e)},t.prototype._setKeytips=function(e){void 0===e&&(e=this._keytipManager.getKeytips()),this.setState({keytips:e,visibleKeytips:this._getVisibleKeytips(e)})},t.prototype._persistedKeytipExecute=function(e,t){this._newCurrentKeytipSequences=t;var n=this._keytipTree.getNode(rp(e));n&&n.onExecute&&n.onExecute(this._getKtpExecuteTarget(n),this._getKtpTarget(n))},t.prototype._getVisibleKeytips=function(e){var t=this,n={};return e.filter((function(e){var r=rp(e.keySequences);return e.overflowSetSequence&&(r=rp(op(e.keySequences,e.overflowSetSequence))),n[r]=n[r]?n[r]+1:1,e.visible&&t._isKeytipInstanceTargetVisible(e.keySequences,n[r])}))},t.prototype._getModifierKey=function(e,t){var n=[];return t.altKey&&"Alt"!==e&&n.push(jt),t.ctrlKey&&"Control"!==e&&n.push(Kt),t.shiftKey&&"Shift"!==e&&n.push(Ut),t.metaKey&&"Meta"!==e&&n.push(dn),n.length?n:void 0},t.prototype._triggerKeytipImmediately=function(e){var t=C([],e.keySequences,!0);if(e.overflowSetSequence&&(t=op(t,e.overflowSetSequence)),this._keytipTree.currentKeytip=this._keytipTree.getNode(rp(t)),this._keytipTree.currentKeytip){var n=this._keytipTree.getChildren();n.length&&this.showKeytips(n),this._keytipTree.currentKeytip.onExecute&&this._keytipTree.currentKeytip.onExecute(this._getKtpExecuteTarget(this._keytipTree.currentKeytip),this._getKtpTarget(this._keytipTree.currentKeytip))}this._newCurrentKeytipSequences=void 0},t.prototype._addKeytipToQueue=function(e){var t=this;this._delayedKeytipQueue.push(e),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300)},t.prototype._removeKeytipFromQueue=function(e){var t=this,n=this._delayedKeytipQueue.indexOf(e);n>=0&&(this._delayedKeytipQueue.splice(n,1),this._delayedQueueTimeout&&this._async.clearTimeout(this._delayedQueueTimeout),this._delayedQueueTimeout=this._async.setTimeout((function(){t._delayedKeytipQueue.length&&(t.showKeytips(t._delayedKeytipQueue),t._delayedKeytipQueue=[])}),300))},t.prototype._getKtpExecuteTarget=function(e){return Je().querySelector('[data-ktp-execute-target="'+e.id+'"]')},t.prototype._getKtpTarget=function(e){return Je().querySelector(ip(e.keySequences))},t.prototype._isCurrentKeytipAnAlias=function(e){var t=this._keytipTree.currentKeytip;return!(!t||!t.overflowSetSequence&&!t.persisted||!gn(e.keySequences,t.keySequences))},t.defaultProps={keytipStartSequences:[Kk],keytipExitSequences:[jk],keytipReturnSequences:[Gk],content:""},t.contextType=dr,t}(u.Component),Zk=(Jo(Yk,(function(e){return{innerContent:[{position:"absolute",width:0,height:0,margin:0,padding:0,border:0,overflow:"hidden",visibility:"hidden"}]}}),void 0,{scope:"KeytipLayer"}),wn()),Jk=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._onMouseDown=function(e){var t=n.props,r=t.isEnabled,o=t.onShouldStartSelection;if(!n._isMouseEventOnScrollbar(e)&&!n._isInSelectionToggle(e)&&!n._isTouch&&r&&!n._isDragStartInSelection(e)&&(!o||o(e))&&n._scrollableSurface&&0===e.button&&n._root.current){var i=lc(n.context);n._selectedIndicies={},n._preservedIndicies=void 0,n._events.on(i,"mousemove",n._onAsyncMouseMove,!0),n._events.on(n._scrollableParent,"scroll",n._onAsyncMouseMove),n._events.on(i,"click",n._onMouseUp,!0),n._autoScroll=new wt(n._root.current,i),n._scrollTop=n._scrollableSurface.scrollTop,n._scrollLeft=n._scrollableSurface.scrollLeft,n._rootRect=n._root.current.getBoundingClientRect(),n._onMouseMove(e)}},n._onTouchStart=function(e){n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0)},n._onPointerDown=function(e){"touch"===e.pointerType&&(n._isTouch=!0,n._async.setTimeout((function(){n._isTouch=!1}),0))},Xr(n),n._async=new ze(n),n._events=new gt(n),n.state={dragRect:void 0},n}return g(t,e),t.prototype.componentDidMount=function(){var e=lc(this.context),t=sc(this.context);this._scrollableParent=Pt(this._root.current),this._scrollableSurface=this._scrollableParent===e?null===t||void 0===t?void 0:t.body:this._scrollableParent;var n=this.props.isDraggingConstrainedToRoot?this._root.current:this._scrollableSurface;this._events.on(n,"mousedown",this._onMouseDown),this._events.on(n,"touchstart",this._onTouchStart,!0),this._events.on(n,"pointerdown",this._onPointerDown,!0)},t.prototype.componentWillUnmount=function(){this._autoScroll&&this._autoScroll.dispose(),delete this._scrollableParent,delete this._scrollableSurface,this._events.dispose(),this._async.dispose()},t.prototype.render=function(){var e=this.props,t=e.rootProps,n=e.children,r=e.theme,o=e.className,i=e.styles,a=this.state.dragRect,s=Zk(i,{theme:r,className:o});return u.createElement("div",v({},t,{className:s.root,ref:this._root}),n,a&&u.createElement("div",{className:s.dragMask}),a&&u.createElement("div",{className:s.box,style:a},u.createElement("div",{className:s.boxFill})))},t.prototype._isMouseEventOnScrollbar=function(e){var t=e.target,n=t.offsetWidth-t.clientWidth,r=t.offsetHeight-t.clientHeight;if(n||r){var o=t.getBoundingClientRect();if(Sn(this.props.theme)){if(e.clientX<o.left+n)return!0}else if(e.clientX>o.left+t.clientWidth)return!0;if(e.clientY>o.top+t.clientHeight)return!0}return!1},t.prototype._getRootRect=function(){return{left:this._rootRect.left+(this._scrollableSurface?this._scrollLeft-this._scrollableSurface.scrollLeft:this._scrollLeft),top:this._rootRect.top+(this._scrollableSurface?this._scrollTop-this._scrollableSurface.scrollTop:this._scrollTop),width:this._rootRect.width,height:this._rootRect.height}},t.prototype._onAsyncMouseMove=function(e){var t=this;this._async.requestAnimationFrame((function(){t._onMouseMove(e)})),e.stopPropagation(),e.preventDefault()},t.prototype._onMouseMove=function(e){if(this._autoScroll){void 0!==e.clientX&&(this._lastMouseEvent=e);var t=this._getRootRect(),n={left:e.clientX-t.left,top:e.clientY-t.top};if(this._dragOrigin||(this._dragOrigin=n),void 0!==e.buttons&&0===e.buttons)this._onMouseUp(e);else if(this.state.dragRect||function(e,t){var n=e.left||e.x||0,r=e.top||e.y||0,o=t.left||t.x||0,i=t.top||t.y||0;return Math.sqrt(Math.pow(n-o,2)+Math.pow(r-i,2))}(this._dragOrigin,n)>5){if(!this.state.dragRect){var r=this.props.selection;e.shiftKey||r.setAllSelected(!1),this._preservedIndicies=r&&r.getSelectedIndices&&r.getSelectedIndices()}var o=this.props.isDraggingConstrainedToRoot?{left:Math.max(0,Math.min(t.width,this._lastMouseEvent.clientX-t.left)),top:Math.max(0,Math.min(t.height,this._lastMouseEvent.clientY-t.top))}:{left:this._lastMouseEvent.clientX-t.left,top:this._lastMouseEvent.clientY-t.top},i={left:Math.min(this._dragOrigin.left||0,o.left),top:Math.min(this._dragOrigin.top||0,o.top),width:Math.abs(o.left-(this._dragOrigin.left||0)),height:Math.abs(o.top-(this._dragOrigin.top||0))};this._evaluateSelection(i,t),this.setState({dragRect:i})}return!1}},t.prototype._onMouseUp=function(e){var t=lc(this.context);this._events.off(t),this._events.off(this._scrollableParent,"scroll"),this._autoScroll&&this._autoScroll.dispose(),this._autoScroll=this._dragOrigin=this._lastMouseEvent=void 0,this._selectedIndicies=this._itemRectCache=void 0,this.state.dragRect&&(this.setState({dragRect:void 0}),e.preventDefault(),e.stopPropagation())},t.prototype._isPointInRectangle=function(e,t){return!!t.top&&e.top<t.top&&e.bottom>t.top&&!!t.left&&e.left<t.left&&e.right>t.left},t.prototype._isDragStartInSelection=function(e){var t=this.props.selection;if(!this._root.current||t&&0===t.getSelectedCount())return!1;for(var n=this._root.current.querySelectorAll("[data-selection-index]"),r=0;r<n.length;r++){var o=n[r],i=Number(o.getAttribute("data-selection-index"));if(t.isIndexSelected(i)){var a=o.getBoundingClientRect();if(this._isPointInRectangle(a,{left:e.clientX,top:e.clientY}))return!0}}return!1},t.prototype._isInSelectionToggle=function(e){for(var t=e.target;t&&t!==this._root.current;){if("true"===t.getAttribute("data-selection-toggle"))return!0;t=t.parentElement}return!1},t.prototype._evaluateSelection=function(e,t){if(e&&this._root.current){var n=this.props.selection,r=this._root.current.querySelectorAll("[data-selection-index]");this._itemRectCache||(this._itemRectCache={});for(var o=0;o<r.length;o++){var i=r[o],a=i.getAttribute("data-selection-index"),s=this._itemRectCache[a];s||(s={left:(s=i.getBoundingClientRect()).left-t.left,top:s.top-t.top,width:s.width,height:s.height,right:s.left-t.left+s.width,bottom:s.top-t.top+s.height}).width>0&&s.height>0&&(this._itemRectCache[a]=s),s.top<e.top+e.height&&s.bottom>e.top&&s.left<e.left+e.width&&s.right>e.left?this._selectedIndicies[a]=!0:delete this._selectedIndicies[a]}var l=this._allSelectedIndices||{};for(var a in this._allSelectedIndices={},this._selectedIndicies)this._selectedIndicies.hasOwnProperty(a)&&(this._allSelectedIndices[a]=!0);if(this._preservedIndicies)for(var c=0,d=this._preservedIndicies;c<d.length;c++){a=d[c];this._allSelectedIndices[a]=!0}var u=!1;for(var a in this._allSelectedIndices)if(this._allSelectedIndices[a]!==l[a]){u=!0;break}if(!u)for(var a in l)if(this._allSelectedIndices[a]!==l[a]){u=!0;break}if(u){n.setChangeEvents(!1),n.setAllSelected(!1);for(var p=0,m=Object.keys(this._allSelectedIndices);p<m.length;p++){a=m[p];n.setIndexSelected(Number(a),!0,!1)}n.setChangeEvents(!0)}}},t.defaultProps={rootTagName:"div",rootProps:{},isEnabled:!0},t.contextType=dr,t}(u.Component);Jo(Jk,(function(e){var t,n,r,o=e.theme,i=e.className,a=o.palette;return{root:[i,{position:"relative",cursor:"default"}],dragMask:[{position:"absolute",background:"rgba(255, 0, 0, 0)",left:0,top:0,right:0,bottom:0,selectors:(t={},t[Wa]={background:"none",backgroundColor:"transparent"},t)}],box:[{position:"absolute",boxSizing:"border-box",border:"1px solid ".concat(a.themePrimary),pointerEvents:"none",zIndex:10,selectors:(n={},n[Wa]={borderColor:"Highlight"},n)}],boxFill:[{position:"absolute",boxSizing:"border-box",backgroundColor:a.themePrimary,opacity:.1,left:0,top:0,right:0,bottom:0,selectors:(r={},r[Wa]={background:"none",backgroundColor:"transparent"},r)}]}}),void 0,{scope:"MarqueeSelection"});!function(e){e[e.info=0]="info",e[e.error=1]="error",e[e.blocked=2]="blocked",e[e.severeWarning=3]="severeWarning",e[e.success=4]="success",e[e.warning=5]="warning"}(Fk||(Fk={}));var Qk,Xk,$k,eP,tP=((Hk={})[Fk.info]="Info",Hk[Fk.warning]="Info",Hk[Fk.error]="ErrorBadge",Hk[Fk.blocked]="Blocked2",Hk[Fk.severeWarning]="Warning",Hk[Fk.success]="Completed",Hk),nP=wn(),rP=function(e){switch(e){case Fk.blocked:case Fk.error:case Fk.severeWarning:return"assertive"}return"polite"},oP=function(e){switch(e){case Fk.blocked:case Fk.error:case Fk.severeWarning:return"alert"}return"status"},iP=u.forwardRef((function(e,t){var n=Wl(!1),r=n[0],o=n[1].toggle,i=jl("MessageBar"),a=e.actions,s=e.className,l=e.children,c=e.overflowButtonAriaLabel,d=e.dismissIconProps,p=e.styles,m=e.theme,h=e.messageBarType,f=void 0===h?Fk.info:h,g=e.onDismiss,y=void 0===g?void 0:g,b=e.isMultiline,C=void 0===b||b,S=e.truncated,x=e.dismissButtonAriaLabel,k=e.messageBarIconProps,P=e.role,I=e.delayedRender,w=void 0===I||I,E=e.expandButtonProps,_=e.onExpandButtonToggled,D=void 0===_?void 0:_,T=e.showExpandButton,R=u.useCallback((function(){o(),D&&D(!r)}),[r,D,o]),A=qr(e,Ir,["className","role"]),M=nP(p,{theme:m,messageBarType:f||Fk.info,onDismiss:void 0!==y,actions:void 0!==a,truncated:S,isMultiline:C,expandSingleLine:r,className:s}),N={iconName:r?"DoubleChevronUp":"DoubleChevronDown"},F=a||y?{"aria-describedby":i,role:"region"}:{},H=a?u.createElement("div",{className:M.actions},a):null,O=y?u.createElement(mm,{disabled:!1,className:M.dismissal,onClick:y,iconProps:d||{iconName:"Clear"},title:x,ariaLabel:x}):null;return u.createElement("div",v({ref:t,className:M.root},F),u.createElement("div",{className:M.content},u.createElement("div",{className:M.iconContainer,"aria-hidden":!0},k?u.createElement(gd,v({},k,{className:Wn(M.icon,k.className)})):u.createElement(gd,{iconName:tP[f],className:M.icon})),u.createElement("div",{className:M.text,id:i,role:P||oP(f),"aria-live":rP(f)},u.createElement("span",v({className:M.innerText},A),w?u.createElement(Nt,null,u.createElement("span",null,l)):u.createElement("span",null,l))),(T||!C&&!H&&S)&&u.createElement("div",{className:M.expandSingleLine},u.createElement(mm,v({disabled:!1,className:M.expand,onClick:R,iconProps:N,ariaLabel:c,"aria-expanded":r},E))),!C&&H,!C&&O&&u.createElement("div",{className:M.dismissSingleLine},O),C&&O),C&&H)}));iP.displayName="MessageBar";var aP,sP={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"},lP=((Qk={})[Fk.error]="errorBackground",Qk[Fk.blocked]="errorBackground",Qk[Fk.success]="successBackground",Qk[Fk.warning]="warningBackground",Qk[Fk.severeWarning]="severeWarningBackground",Qk[Fk.info]="infoBackground",Qk),cP=((Xk={})[Fk.error]="errorIcon",Xk[Fk.blocked]="errorIcon",Xk[Fk.success]="successIcon",Xk[Fk.warning]="warningIcon",Xk[Fk.severeWarning]="severeWarningIcon",Xk[Fk.info]="infoIcon",Xk),dP=(($k={})[Fk.error]="#ff0000",$k[Fk.blocked]="#ff0000",$k[Fk.success]="#bad80a",$k[Fk.warning]="#fff100",$k[Fk.severeWarning]="#ff0000",$k[Fk.info]="WindowText",$k),uP=((eP={})[Fk.error]="#e81123",eP[Fk.blocked]="#e81123",eP[Fk.success]="#107c10",eP[Fk.warning]="#966400",eP[Fk.severeWarning]="#d83b01",eP[Fk.info]="WindowText",eP),pP=(Jo(iP,(function(e){var t,n,r,o,i,a,s,l,c,d,u,p=e.theme,m=e.className,h=e.onDismiss,f=e.truncated,g=e.isMultiline,y=e.expandSingleLine,b=e.messageBarType,C=void 0===b?Fk.info:b,S=p.semanticColors,x=p.fonts,k=qa(0,Ga),P=os(sP,p),I={fontSize:Oi.xSmall,height:10,lineHeight:"10px",color:S.messageText,selectors:(t={},t[Wa]=v(v({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),t)},w=[Ya(p,{inset:1,highContrastStyle:{outlineOffset:"-6px",outline:"1px solid Highlight"},borderColor:"transparent"}),{flexShrink:0,width:32,height:32,padding:"8px 12px",selectors:{"& .ms-Button-icon":I,":hover":{backgroundColor:"transparent"},":active":{backgroundColor:"transparent"}}}];return{root:[P.root,x.medium,C===Fk.error&&P.error,C===Fk.blocked&&P.blocked,C===Fk.severeWarning&&P.severeWarning,C===Fk.success&&P.success,C===Fk.warning&&P.warning,g?P.multiline:P.singleline,!g&&h&&P.dismissalSingleLine,!g&&f&&P.expandingSingleLine,{background:S[lP[C]],boxSizing:"border-box",color:S.messageText,minHeight:32,width:"100%",display:"flex",wordBreak:"break-word",selectors:(n={".ms-Link":{color:S.messageLink,selectors:{":hover":{color:S.messageLinkHovered}}}},n[Wa]=v(v({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{background:"transparent",border:"1px solid ".concat(dP[C]),color:"WindowText"}),n[Ua]={border:"1px solid ".concat(uP[C])},n)},g&&{flexDirection:"column"},m],content:[P.content,(r={display:"flex",width:"100%",lineHeight:"normal"},r[k]={display:"grid",gridTemplateColumns:"auto 1fr auto",gridTemplateRows:"1fr auto",gridTemplateAreas:'\n            "icon text close"\n            "action action action"\n          '},r)],iconContainer:[P.iconContainer,(o={fontSize:Oi.medium,minWidth:16,minHeight:16,display:"flex",flexShrink:0,margin:"8px 0 8px 12px"},o[k]={gridArea:"icon"},o)],icon:{color:S[cP[C]],selectors:(i={},i[Wa]=v(v({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),{color:"WindowText"}),i)},text:[P.text,v(v({minWidth:0,display:"flex",flexGrow:1,margin:8},x.small),(a={},a[k]={gridArea:"text"},a.selectors=(s={},s[Wa]=v({},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),s),a)),!h&&{marginRight:12}],innerText:[P.innerText,{lineHeight:16,selectors:{"& span a:last-child":{paddingLeft:4}}},f&&{overflow:"visible",whiteSpace:"pre-wrap"},!g&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},!g&&!f&&{selectors:(l={},l[k]={overflow:"visible",whiteSpace:"pre-wrap"},l)},y&&{overflow:"visible",whiteSpace:"pre-wrap"}],dismissSingleLine:[P.dismissSingleLine,(c={},c[k]={gridArea:"close"},c)],expandSingleLine:P.expandSingleLine,dismissal:[P.dismissal,w],expand:[P.expand,w],actions:[g?P.actions:P.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[k]={gridArea:"action",marginRight:8,marginBottom:8},d.selectors={"& button:nth-child(n+2)":(u={marginLeft:8},u[k]={marginBottom:0},u)},d),g&&{marginBottom:8},h&&!g&&{marginRight:0}]}}),void 0,{scope:"MessageBar"}),{root:"ms-Nav",linkText:"ms-Nav-linkText",compositeLink:"ms-Nav-compositeLink",link:"ms-Nav-link",chevronButton:"ms-Nav-chevronButton",chevronIcon:"ms-Nav-chevron",navItem:"ms-Nav-navItem",navItems:"ms-Nav-navItems",group:"ms-Nav-group",groupContent:"ms-Nav-groupContent"}),mP={textContainer:{overflow:"hidden"},label:{whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden"}};var hP=wn(),fP=function(e){function t(t){var n=e.call(this,t)||this;return n._focusZone=u.createRef(),n._onRenderLink=function(e){var t=n.props,r=t.styles,o=t.groups,i=t.theme,a=hP(r,{theme:i,groups:o});return u.createElement("div",{className:a.linkText},e.name)},n._renderGroup=function(e,t){var r=n.props,o=r.styles,i=r.groups,a=r.theme,s=r.onRenderGroupHeader,l=void 0===s?n._renderGroupHeader:s,c=n._isGroupExpanded(e),d=hP(o,{theme:a,isGroup:!0,isExpanded:c,groups:i}),p=v(v({},e),{isExpanded:c,onHeaderClick:function(t,r){n._onGroupHeaderClicked(e,t)}});return u.createElement("div",{key:t,className:d.group},p.name?l(p,n._renderGroupHeader):null,u.createElement("div",{className:d.groupContent},n._renderLinks(p.links,0)))},n._renderGroupHeader=function(e){var t,r=n.props,o=r.styles,i=r.groups,a=r.theme,s=r.expandButtonAriaLabel,l=e.isExpanded,c=hP(o,{theme:a,isGroup:!0,isExpanded:l,groups:i}),d=null!==(t=e.collapseAriaLabel)&&void 0!==t?t:e.expandAriaLabel,p=(l?d:e.expandAriaLabel)||s,m=e.onHeaderClick,h=m?function(e){m(e,l)}:void 0;return u.createElement("button",{className:c.chevronButton,onClick:h,"aria-label":p,"aria-expanded":l},u.createElement(gd,{className:c.chevronIcon,iconName:"ChevronDown"}),e.name)},Xr(n),n.state={isGroupCollapsed:{},isLinkExpandStateChanged:!1,selectedKey:t.initialSelectedKey||t.selectedKey},n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.styles,n=e.groups,r=e.className,o=e.isOnTop,i=e.role,a=void 0===i?"navigation":i,s=e.theme;if(!n)return null;var l=n.map(this._renderGroup),c=hP(t,{theme:s,className:r,isOnTop:o,groups:n});return u.createElement(Cu,v({direction:ou.vertical,componentRef:this._focusZone},this.props.focusZoneProps),u.createElement("nav",{role:a,className:c.root,"aria-label":this.props.ariaLabel},l))},Object.defineProperty(t.prototype,"selectedKey",{get:function(){return this.state.selectedKey},enumerable:!1,configurable:!0}),t.prototype.focus=function(e){return void 0===e&&(e=!1),!(!this._focusZone||!this._focusZone.current)&&this._focusZone.current.focus(e)},t.prototype._renderNavLink=function(e,t,n){var r,o=this.props,i=o.styles,a=o.groups,s=o.theme,l=e.icon||e.iconProps,c=this._isLinkSelected(e),d=e.ariaCurrent,p=void 0===d?"page":d,m=hP(i,{theme:s,isSelected:c,isDisabled:e.disabled,isButtonEntry:e.onClick&&!e.forceAnchor,leftPadding:14*n+3+(l?0:24),groups:a}),h=e.url&&e.target&&(!(r=e.url)||/^[a-z0-9+-.]+:\/\//i.test(r))?"noopener noreferrer":void 0,f=this.props.linkAs?Vn(this.props.linkAs,cm):cm,g=this.props.onRenderLink?Lo(this.props.onRenderLink,this._onRenderLink):this._onRenderLink;return u.createElement(f,{className:m.link,styles:mP,href:e.url||(e.forceAnchor?"#":void 0),iconProps:e.iconProps||{iconName:e.icon},onClick:e.onClick?this._onNavButtonLinkClicked.bind(this,e):this._onNavAnchorLinkClicked.bind(this,e),title:void 0!==e.title?e.title:e.name,target:e.target,rel:h,disabled:e.disabled,"aria-current":c?p:void 0,"aria-label":e.ariaLabel?e.ariaLabel:void 0,link:e},g(e))},t.prototype._renderCompositeLink=function(e,t,n){var r,o=v({},qr(e,Gr,["onClick"])),i=this.props,a=i.expandButtonAriaLabel,s=i.styles,l=i.groups,c=i.theme,d=hP(s,{theme:c,isExpanded:!!e.isExpanded,isSelected:this._isLinkSelected(e),isLink:!0,isDisabled:e.disabled,position:14*n+1,groups:l}),p="";if(e.links&&e.links.length>0)if(e.collapseAriaLabel||e.expandAriaLabel){var m=null!==(r=e.collapseAriaLabel)&&void 0!==r?r:e.expandAriaLabel;p=e.isExpanded?m:e.expandAriaLabel}else p=a?"".concat(e.name," ").concat(a):e.name;return u.createElement("div",v({},o,{key:e.key||t,className:d.compositeLink}),e.links&&e.links.length>0?u.createElement("button",{className:d.chevronButton,onClick:this._onLinkExpandClicked.bind(this,e),"aria-label":p,"aria-expanded":e.isExpanded?"true":"false"},u.createElement(gd,{className:d.chevronIcon,iconName:"ChevronDown"})):null,this._renderNavLink(e,t,n))},t.prototype._renderLink=function(e,t,n){var r=this.props,o=r.styles,i=r.groups,a=r.theme,s=hP(o,{theme:a,groups:i});return u.createElement("li",{key:e.key||t,role:"listitem",className:s.navItem},this._renderCompositeLink(e,t,n),e.isExpanded?this._renderLinks(e.links,++n):null)},t.prototype._renderLinks=function(e,t){var n=this;if(!e||!e.length)return null;var r=e.map((function(e,r){return n._renderLink(e,r,t)})),o=this.props,i=o.styles,a=o.groups,s=o.theme,l=hP(i,{theme:s,groups:a});return u.createElement("ul",{role:"list",className:l.navItems},r)},t.prototype._onGroupHeaderClicked=function(e,t){e.onHeaderClick&&e.onHeaderClick(t,this._isGroupExpanded(e)),void 0===e.isExpanded&&this._toggleCollapsed(e),t&&(t.preventDefault(),t.stopPropagation())},t.prototype._onLinkExpandClicked=function(e,t){var n=this.props.onLinkExpandClick;n&&n(t,e),t.defaultPrevented||(e.isExpanded=!e.isExpanded,this.setState({isLinkExpandStateChanged:!0})),t.preventDefault(),t.stopPropagation()},t.prototype._preventBounce=function(e,t){!e.url&&e.forceAnchor&&t.preventDefault()},t.prototype._onNavAnchorLinkClicked=function(e,t){this._preventBounce(e,t),this.props.onLinkClick&&this.props.onLinkClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._onNavButtonLinkClicked=function(e,t){this._preventBounce(e,t),e.onClick&&e.onClick(t,e),!e.url&&e.links&&e.links.length>0&&this._onLinkExpandClicked(e,t),this.setState({selectedKey:e.key})},t.prototype._isLinkSelected=function(e){if(void 0!==this.props.selectedKey)return e.key===this.props.selectedKey;if(void 0!==this.state.selectedKey)return e.key===this.state.selectedKey;if("undefined"===typeof Ve()||!e.url)return!1;var t=sc(this.context);(aP=aP||t.createElement("a")).href=e.url||"";var n=aP.href;return location.href===n||(location.protocol+"//"+location.host+location.pathname===n||!!location.hash&&(location.hash===e.url||(aP.href=location.hash.substring(1),aP.href===n)))},t.prototype._isGroupExpanded=function(e){return void 0!==e.isExpanded?e.isExpanded:e.name&&this.state.isGroupCollapsed.hasOwnProperty(e.name)?!this.state.isGroupCollapsed[e.name]:void 0===e.collapseByDefault||!e.collapseByDefault},t.prototype._toggleCollapsed=function(e){var t;if(e.name){var n=v(v({},this.state.isGroupCollapsed),((t={})[e.name]=this._isGroupExpanded(e),t));this.setState({isGroupCollapsed:n})}},t.defaultProps={groups:null},t.contextType=dr,t}(u.Component),gP=(Jo(fP,(function(e){var t,n=e.className,r=e.theme,o=e.isOnTop,i=e.isExpanded,a=e.isGroup,s=e.isLink,l=e.isSelected,c=e.isDisabled,d=e.isButtonEntry,u=e.navHeight,p=void 0===u?44:u,m=e.position,h=e.leftPadding,f=void 0===h?20:h,g=e.leftPaddingExpanded,v=void 0===g?28:g,y=e.rightPadding,b=void 0===y?20:y,C=r.palette,S=r.semanticColors,x=r.fonts,k=os(pP,r);return{root:[k.root,n,x.medium,{overflowY:"auto",userSelect:"none",WebkitOverflowScrolling:"touch"},o&&[{position:"absolute"},ws.slideRightIn40]],linkText:[k.linkText,{margin:"0 4px",overflow:"hidden",verticalAlign:"middle",textAlign:"left",textOverflow:"ellipsis"}],compositeLink:[k.compositeLink,{display:"block",position:"relative",color:S.bodyText},i&&"is-expanded",l&&"is-selected",c&&"is-disabled",c&&{color:S.disabledText}],link:[k.link,Ya(r),{display:"block",position:"relative",height:p,width:"100%",lineHeight:"".concat(p,"px"),textDecoration:"none",cursor:"pointer",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",paddingLeft:f,paddingRight:b,color:S.bodyText,selectors:(t={},t[Wa]={border:0,selectors:{":focus":{border:"1px solid WindowText"}}},t)},!c&&{selectors:{".ms-Nav-compositeLink:hover &":{backgroundColor:S.bodyBackgroundHovered}}},l&&{color:S.bodyTextChecked,fontWeight:Hi.semibold,backgroundColor:S.bodyBackgroundChecked,selectors:{"&:after":{borderLeft:"2px solid ".concat(C.themePrimary),content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,pointerEvents:"none"}}},c&&{color:S.disabledText},d&&{color:C.themePrimary}],chevronButton:[k.chevronButton,Ya(r),x.small,{display:"block",textAlign:"left",lineHeight:"".concat(p,"px"),margin:"5px 0",padding:"0px, ".concat(b,"px, 0px, ").concat(v,"px"),border:"none",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden",cursor:"pointer",color:S.bodyText,backgroundColor:"transparent",selectors:{"&:visited":{color:S.bodyText}}},a&&{fontSize:x.large.fontSize,width:"100%",height:p,borderBottom:"1px solid ".concat(S.bodyDivider)},s&&{display:"block",width:v-2,height:p-2,position:"absolute",top:"1px",left:"".concat(m,"px"),zIndex:za.Nav,padding:0,margin:0}],chevronIcon:[k.chevronIcon,{position:"absolute",left:"8px",height:p,display:"inline-flex",alignItems:"center",lineHeight:"".concat(p,"px"),fontSize:x.small.fontSize,transition:"transform .1s linear"},i&&{transform:"rotate(-180deg)"},s&&{top:0}],navItem:[k.navItem,{padding:0}],navItems:[k.navItems,{listStyleType:"none",padding:0,margin:0}],group:[k.group,i&&"is-expanded"],groupContent:[k.groupContent,{display:"none",marginBottom:"40px"},ws.slideDownIn20,i&&{display:"block"}]}}),void 0,{scope:"Nav"}),function(e){var t=e.onOverflowItemsChanged,n=e.rtl,r=e.pinnedIndex,o=u.useRef(),i=u.useRef(),a=Zl((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=Ve(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=Zl((function(e){return a(e.parentElement),function(){return a(null)}}));return ni((function(){var e=a.current,l=s.current;if(e&&l){for(var c=[],d=0;d<e.children.length;d++){var u=e.children[d];u instanceof HTMLElement&&u!==l&&c.push(u)}var p=[],m=0;o.current=function(){var e=i.current;if(void 0!==e){for(var t=c.length-1;t>=0;t--){if(void 0===p[t]){var o=n?e-c[t].offsetLeft:c[t].offsetLeft+c[t].offsetWidth;t+1<c.length&&t+1===r&&(m=p[t+1]-o),t===c.length-2&&(m+=l.offsetWidth),p[t]=o+m}if(e>p[t])return void f(t+1)}f(0)}};var h=c.length,f=function(e){h!==e&&(h=e,t(e,c.map((function(t,n){return{ele:t,isOverflowing:n>=e&&n!==r}}))))},g=void 0;if(void 0!==i.current){var v=Ve(e);if(v){var y=v.requestAnimationFrame(o.current);g=function(){return v.cancelAnimationFrame(y)}}}return function(){g&&g(),f(c.length),o.current=void 0}}})),{menuButtonRef:s}}),vP=function(e){function t(t){var n=e.call(this,t)||this;return Xr(n),Rt("PivotItem",t,{linkText:"headerText"}),n}return g(t,e),t.prototype.render=function(){return u.createElement("div",v({},qr(this.props,Gr)),this.props.children)},t}(u.Component),yP=wn(),bP=function(e,t){var n={links:[],keyToIndexMapping:{},keyToTabIdMapping:{}};return u.Children.forEach(u.Children.toArray(e.children),(function(r,o){if(CP(r)){var i=r.props,a=i.linkText,s=y(i,["linkText"]),l=r.props.itemKey||o.toString();n.links.push(v(v({headerText:a},s),{itemKey:l})),n.keyToIndexMapping[l]=o,n.keyToTabIdMapping[l]=function(e,t,n,r){return e.getTabId?e.getTabId(n,r):t+"-Tab".concat(r)}(e,t,l,o)}else r&&_t("The children of a Pivot component must be of type PivotItem to be rendered.")})),n},CP=function(e){var t;return u.isValidElement(e)&&(null===(t=e.type)||void 0===t?void 0:t.name)===vP.name},SP=u.forwardRef((function(e,t){var n,r=u.useRef(null),o=u.useRef(null),i=jl("Pivot"),a=Ul(e.selectedKey,e.defaultSelectedKey),s=a[0],l=a[1],c=e.componentRef,d=e.theme,p=e.linkSize,m=e.linkFormat,h=e.overflowBehavior,f=e.overflowAriaLabel,g=e.focusZoneProps,y=e.overflowButtonAs,b={"aria-label":e["aria-label"],"aria-labelledby":e["aria-labelledby"]},C=qr(e,Gr,["aria-label","aria-labelledby"]),S=bP(e,i);u.useImperativeHandle(c,(function(){return{focus:function(){var e;null===(e=r.current)||void 0===e||e.focus()}}}));var x=function(e){if(!e)return null;var t=e.itemCount,r=e.itemIcon,o=e.headerText;return u.createElement("span",{className:n.linkContent},void 0!==r&&u.createElement("span",{className:n.icon},u.createElement(gd,{iconName:r})),void 0!==o&&u.createElement("span",{className:n.text}," ",e.headerText),void 0!==t&&u.createElement("span",{className:n.count}," (",t,")"))},k=function(e,t,r,o){var i,a=t.itemKey,s=t.headerButtonProps,l=t.onRenderItemLink,c=e.keyToTabIdMapping[a],d=r===a;i=l?l(t,x):x(t);var p=t.headerText||"";p+=t.itemCount?" ("+t.itemCount+")":"",p+=t.itemIcon?" xx":"";var m=t.role&&"tab"!==t.role?{role:t.role}:{role:"tab","aria-selected":d};return u.createElement(vm,v({},s,m,{id:c,key:a,className:Wn(o,d&&n.linkIsSelected),onClick:function(e){return P(a,e)},onKeyDown:function(e){return I(a,e)},"aria-label":t.ariaLabel,name:t.headerText,keytipProps:t.keytipProps,"data-content":p}),i)},P=function(e,t){t.preventDefault(),w(e,t)},I=function(e,t){t.which===Wt&&(t.preventDefault(),w(e))},w=function(t,n){var r;if(l(t),S=bP(e,i),e.onLinkClick&&S.keyToIndexMapping[t]>=0){var a=S.keyToIndexMapping[t],s=u.Children.toArray(e.children)[a];CP(s)&&e.onLinkClick(s,n)}null===(r=o.current)||void 0===r||r.dismissMenu()};n=yP(e.styles,{theme:d,linkSize:p,linkFormat:m});var E=function(){return null===(e=s)||void 0!==e&&void 0!==S.keyToIndexMapping[e]?s:S.links.length?S.links[0].itemKey:void 0;var e}(),_=E?S.keyToIndexMapping[E]:0,D=S.links.map((function(e){return k(S,e,E,n.link)})),T=u.useMemo((function(){return{items:[],alignTargetEdge:!0,directionalHint:qs}}),[]),R=gP({onOverflowItemsChanged:function(e,t){t.forEach((function(e){var t=e.ele,n=e.isOverflowing;return t.dataset.isOverflowing="".concat(n)})),T.items=S.links.slice(e).filter((function(e){return e.itemKey!==E})).map((function(t,r){return t.role="menuitem",{key:t.itemKey||"".concat(e+r),onRender:function(){return k(S,t,E,n.linkInMenu)}}}))},rtl:Sn(d),pinnedIndex:_}).menuButtonRef,A=y||vm;return u.createElement("div",v({ref:t},C),u.createElement(Cu,v({componentRef:r,role:"tablist"},b,{direction:ou.horizontal},g,{className:Wn(n.root,null===g||void 0===g?void 0:g.className)}),D,"menu"===h&&u.createElement(A,{className:Wn(n.link,n.overflowMenuButton),elementRef:R,componentRef:o,menuProps:T,menuIconProps:{iconName:"More",style:{color:"inherit"}},ariaLabel:f,role:"tab"})),E&&S.links.map((function(t){return(!0===t.alwaysRender||E===t.itemKey)&&function(t,r){if(e.headersOnly||!t)return null;var o=S.keyToIndexMapping[t],i=S.keyToTabIdMapping[t];return u.createElement("div",{role:"tabpanel",hidden:!r,key:t,"aria-hidden":!r,"aria-labelledby":i,className:n.itemContainer},u.Children.toArray(e.children)[o])}(t.itemKey,E===t.itemKey)})))}));SP.displayName="Pivot";var xP,kP,PP={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"},IP=function(e,t,n){var r,o,i;void 0===n&&(n=!1);var a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,d=l.fonts,u="large"===a,p="tabs"===s;return[d.medium,{color:c.actionLink,padding:"0 8px",position:"relative",backgroundColor:"transparent",border:0,borderRadius:0,selectors:{":hover":{backgroundColor:c.buttonBackgroundHovered,color:c.buttonTextHovered,cursor:"pointer"},":active":{backgroundColor:c.buttonBackgroundPressed,color:c.buttonTextHovered},":focus":{outline:"none"}}},!n&&[{display:"inline-block",lineHeight:44,height:44,marginRight:8,textAlign:"center",selectors:(r={},r[".".concat(io," &:focus, :host(.").concat(io,") &:focus")]={outline:"1px solid ".concat(c.focusBorder)},r[".".concat(io," &:focus:after, :host(.").concat(io,") &:focus:after")]={content:"attr(data-content)",position:"relative",border:0},r[":before"]={backgroundColor:"transparent",bottom:0,content:'""',height:2,left:8,position:"absolute",right:8,transition:"left ".concat(Ia," ").concat(ka,",\n                        right ").concat(Ia," ").concat(ka)},r[":after"]={color:"transparent",content:"attr(data-content)",display:"block",fontWeight:Hi.bold,height:1,overflow:"hidden",visibility:"hidden"},r)},u&&{fontSize:d.large.fontSize},p&&[{marginRight:0,height:44,lineHeight:44,backgroundColor:c.buttonBackground,padding:"0 10px",verticalAlign:"top",selectors:(o={":focus":{outlineOffset:"-2px"}},o[".".concat(io," &:focus::before, :host(.").concat(io,") &:focus::before")]={height:"auto",background:"transparent",transition:"none"},o["&:hover, &:focus"]={color:c.buttonTextCheckedHovered},o["&:active, &:hover"]={color:c.primaryButtonText,backgroundColor:c.primaryButtonBackground},o["&.".concat(t.linkIsSelected)]={backgroundColor:c.primaryButtonBackground,color:c.primaryButtonText,fontWeight:Hi.regular,selectors:(i={":before":{backgroundColor:"transparent",transition:"none",position:"absolute",top:0,left:0,right:0,bottom:0,content:'""',height:0},":hover":{backgroundColor:c.primaryButtonBackgroundHovered,color:c.primaryButtonText},":active":{backgroundColor:c.primaryButtonBackgroundPressed,color:c.primaryButtonText}},i[Wa]=v({fontWeight:Hi.semibold,color:"HighlightText",background:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),i)},o[".".concat(io," &.").concat(t.linkIsSelected,":focus, :host(.").concat(io,") &.").concat(t.linkIsSelected,":focus")]={outlineColor:c.primaryButtonText},o)}]]]};Jo(SP,(function(e){var t,n,r,o,i=e.className,a=e.linkSize,s=e.linkFormat,l=e.theme,c=l.semanticColors,d=l.fonts,u=os(PP,l),p="large"===a,m="tabs"===s;return{root:[u.root,d.medium,ks,{position:"relative",color:c.link,whiteSpace:"nowrap"},p&&u.rootIsLarge,m&&u.rootIsTabs,i],itemContainer:{selectors:{"&[hidden]":{display:"none"}}},link:C(C([u.link],IP(e,u),!0),[(t={},t["&[data-is-overflowing='true']"]={display:"none"},t)],!1),overflowMenuButton:[u.overflowMenuButton,(n={visibility:"hidden",position:"absolute",right:0},n[".".concat(u.link,"[data-is-overflowing='true'] ~ &")]={visibility:"visible",position:"relative"},n)],linkInMenu:C(C([u.linkInMenu],IP(e,u,!0),!0),[{justifyContent:"start",height:36,lineHeight:36,width:"100%"}],!1),linkIsSelected:[u.link,u.linkIsSelected,{fontWeight:Hi.semibold,selectors:(r={":before":{backgroundColor:c.inputBackgroundChecked,selectors:(o={},o[Wa]={backgroundColor:"Highlight"},o)},":hover::before":{left:0,right:0}},r[Wa]={color:"Highlight"},r)}],linkContent:[u.linkContent,{flex:"0 1 100%",selectors:{"& > * ":{marginLeft:4},"& > *:first-child":{marginLeft:0}}}],text:[u.text,{display:"inline-block",verticalAlign:"top"}],count:[u.count,{display:"inline-block",verticalAlign:"top"}],icon:u.icon}}),void 0,{scope:"Pivot"});!function(e){e.links="links",e.tabs="tabs"}(xP||(xP={})),function(e){e.normal="normal",e.large="large"}(kP||(kP={}));var wP,EP=wn(),_P=function(e){function t(t){var n=e.call(this,t)||this;n._onRenderProgress=function(e){var t=n.props,r=t.ariaLabel,o=t.ariaValueText,i=t.barHeight,a=t.className,s=t.description,l=t.label,c=void 0===l?n.props.title:l,d=t.styles,p=t.theme,m="number"===typeof n.props.percentComplete?Math.min(100,Math.max(0,100*n.props.percentComplete)):void 0,h=EP(d,{theme:p,className:a,barHeight:i,indeterminate:void 0===m}),f={width:void 0!==m?m+"%":void 0,transition:void 0!==m&&m<.01?"none":void 0},g=void 0!==m?0:void 0,v=void 0!==m?100:void 0,y=void 0!==m?Math.floor(m):void 0;return u.createElement("div",{className:h.itemProgress},u.createElement("div",{className:h.progressTrack}),u.createElement("div",{className:h.progressBar,style:f,role:"progressbar","aria-describedby":s?n._descriptionId:void 0,"aria-label":r,"aria-labelledby":c?n._labelId:void 0,"aria-valuemin":g,"aria-valuemax":v,"aria-valuenow":y,"aria-valuetext":o}))};var r=Cr("progress-indicator");return n._labelId=r+"-label",n._descriptionId=r+"-description",n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.barHeight,n=e.className,r=e.label,o=void 0===r?this.props.title:r,i=e.description,a=e.styles,s=e.theme,l=e.progressHidden,c=e.onRenderProgress,d=void 0===c?this._onRenderProgress:c,p="number"===typeof this.props.percentComplete?Math.min(100,Math.max(0,100*this.props.percentComplete)):void 0,m=EP(a,{theme:s,className:n,barHeight:t,indeterminate:void 0===p});return u.createElement("div",{className:m.root},o?u.createElement("div",{id:this._labelId,className:m.itemName},o):null,l?null:d(v(v({},this.props),{percentComplete:p}),this._onRenderProgress),i?u.createElement("div",{id:this._descriptionId,className:m.itemDescription},i):null)},t.defaultProps={label:"",description:"",width:180},t}(u.Component),DP={root:"ms-ProgressIndicator",itemName:"ms-ProgressIndicator-itemName",itemDescription:"ms-ProgressIndicator-itemDescription",itemProgress:"ms-ProgressIndicator-itemProgress",progressTrack:"ms-ProgressIndicator-progressTrack",progressBar:"ms-ProgressIndicator-progressBar"},TP=Fn((function(){return Me({"0%":{left:"-30%"},"100%":{left:"100%"}})})),RP=Fn((function(){return Me({"100%":{right:"-30%"},"0%":{right:"100%"}})})),AP=(Jo(_P,(function(e){var t,n,r,o=Sn(e.theme),i=e.className,a=e.indeterminate,s=e.theme,l=e.barHeight,c=void 0===l?2:l,d=s.palette,u=s.semanticColors,p=s.fonts,m=os(DP,s),h=d.neutralLight;return{root:[m.root,p.medium,i],itemName:[m.itemName,Ps,{color:u.bodyText,paddingTop:4,lineHeight:20}],itemDescription:[m.itemDescription,{color:u.bodySubtext,fontSize:p.small.fontSize,lineHeight:18}],itemProgress:[m.itemProgress,{position:"relative",overflow:"hidden",height:c,padding:"".concat(8,"px 0")}],progressTrack:[m.progressTrack,{position:"absolute",width:"100%",height:c,backgroundColor:h,selectors:(t={},t[Wa]={borderBottom:"1px solid WindowText"},t)}],progressBar:[{backgroundColor:d.themePrimary,height:c,position:"absolute",transition:"width .3s ease",width:0,selectors:(n={},n[Wa]=v({backgroundColor:"highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),n)},a?{position:"absolute",minWidth:"33%",background:"linear-gradient(to right, ".concat(h," 0%, ")+"".concat(d.themePrimary," 50%, ").concat(h," 100%)"),animation:"".concat(o?RP():TP()," 3s infinite"),selectors:(r={},r[Wa]={background:"highlight"},r)}:{transition:"width .15s linear"},m.progressBar]}}),void 0,{scope:"ProgressIndicator"}),{root:"ms-RatingStar-root",rootIsSmall:"ms-RatingStar-root--small",rootIsLarge:"ms-RatingStar-root--large",ratingStar:"ms-RatingStar-container",ratingStarBack:"ms-RatingStar-back",ratingStarFront:"ms-RatingStar-front",ratingButton:"ms-Rating-button",ratingStarIsSmall:"ms-Rating--small",ratingStartIsLarge:"ms-Rating--large",labelText:"ms-Rating-labelText",ratingFocusZone:"ms-Rating-focuszone"});function MP(e,t){var n;return{color:e,selectors:(n={},n[Wa]={color:t},n)}}!function(e){e[e.Small=0]="Small",e[e.Large=1]="Large"}(wP||(wP={}));var NP=wn(),FP=function(e){return u.createElement("div",{className:e.classNames.ratingStar},u.createElement(gd,{className:e.classNames.ratingStarBack,iconName:0===e.fillPercentage||100===e.fillPercentage?e.icon:e.unselectedIcon}),!e.disabled&&u.createElement(gd,{className:e.classNames.ratingStarFront,iconName:e.icon,style:{width:e.fillPercentage+"%"}}))},HP=function(e,t){return"".concat(e,"-star-").concat(t-1)},OP=u.forwardRef((function(e,t){var n=jl("Rating"),r=jl("RatingLabel"),o=e.ariaLabel,i=e.ariaLabelFormat,a=e.disabled,s=e.getAriaLabel,l=e.styles,c=e.min,d=void 0===c?e.allowZeroStars?0:1:c,p=e.max,m=void 0===p?5:p,h=e.readOnly,f=e.size,g=e.theme,y=e.icon,b=void 0===y?"FavoriteStarFill":y,C=e.unselectedIcon,S=void 0===C?"FavoriteStar":C,x=e.onRenderStar,k=Math.max(d,0),P=Ul(e.rating,e.defaultRating,e.onChange),I=P[0],w=P[1],E=function(e,t,n){return Math.min(Math.max(null!==e&&void 0!==e?e:t,t),n)}(I,k,m);!function(e){ec({name:"Rating",props:e,controlledUsage:{valueProp:"rating",defaultValueProp:"defaultRating",onChangeProp:"onChange",readOnlyProp:"readOnly"}})}(e),function(e,t){u.useImperativeHandle(e,(function(){return{rating:t}}),[t])}(e.componentRef,E);var _=u.useRef(null),D=Gl(_,t);fo(_);for(var T=qr(e,Gr),R=NP(l,{disabled:a,readOnly:h,theme:g}),A=null===s||void 0===s?void 0:s(E,m),M=o||A,N=[],F=function(e){var t,o,s=function(e,t){var n=Math.ceil(t),r=100;return e===t?r=100:e===n?r=t%1*100:e>n&&(r=0),r}(e,E);N.push(u.createElement("button",v({className:Wn(R.ratingButton,f===wP.Large?R.ratingStarIsLarge:R.ratingStarIsSmall),id:HP(n,e),key:e},e===Math.ceil(E)&&{"data-is-current":!0},{onKeyDown:function(t){var n=t.which,r=e;switch(n){case en:case tn:r=Math.min(m,r+1);break;case Xt:case $t:r=Math.max(1,r-1);break;case Qt:case Yt:r=1;break;case Jt:case Zt:r=m}r===e||void 0!==I&&Math.ceil(I)===r||w(r,t)},onClick:function(t){void 0!==I&&Math.ceil(I)===e||w(e,t)},disabled:!(!a&&!h),role:"radio","aria-hidden":h?"true":void 0,type:"button","aria-checked":e===Math.ceil(E)}),u.createElement("span",{id:"".concat(r,"-").concat(e),className:R.labelText},qo(i||"",e,m)),(t={fillPercentage:s,disabled:a,classNames:R,icon:s>0?b:S,starNum:e,unselectedIcon:S},(o=x)?o(t):u.createElement(FP,v({},t)))))},H=1;H<=m;H++)F(H);var O=f===wP.Large?R.rootIsLarge:R.rootIsSmall;return u.createElement("div",v({ref:D,className:Wn("ms-Rating-star",R.root,O),"aria-label":h?void 0:M,id:n,role:h?void 0:"radiogroup"},T),u.createElement(Cu,v({direction:ou.bidirectional,className:Wn(R.ratingFocusZone,O),defaultActiveElement:"#"+HP(n,Math.ceil(E))},h&&{allowFocusRoot:!0,disabled:!0,role:"textbox","aria-label":A,"aria-readonly":!0,"data-is-focusable":!0,tabIndex:0}),N))}));OP.displayName="RatingBase";Jo(OP,(function(e){var t=e.disabled,n=e.readOnly,r=e.theme,o=r.semanticColors,i=r.palette,a=os(AP,r),s=i.neutralSecondary,l=i.themePrimary,c=i.themeDark,d=i.neutralPrimary,u=o.disabledBodySubtext;return{root:[a.root,r.fonts.medium,!t&&!n&&{selectors:{"&:hover":{selectors:{".ms-RatingStar-back":MP(d,"Highlight")}}}}],rootIsSmall:[a.rootIsSmall,{height:"32px"}],rootIsLarge:[a.rootIsLarge,{height:"36px"}],ratingStar:[a.ratingStar,{display:"inline-block",position:"relative",height:"inherit"}],ratingStarBack:[a.ratingStarBack,{color:s,width:"100%"},t&&MP(u,"GrayText")],ratingStarFront:[a.ratingStarFront,{position:"absolute",height:"100 %",left:"0",top:"0",textAlign:"center",verticalAlign:"middle",overflow:"hidden"},MP(d,"Highlight")],ratingButton:[Ya(r),a.ratingButton,{backgroundColor:"transparent",padding:"".concat(8,"px ").concat(2,"px"),boxSizing:"content-box",margin:"0px",border:"none",cursor:"pointer",selectors:{"&:disabled":{cursor:"default"},"&[disabled]":{cursor:"default"}}},!t&&!n&&{selectors:{"&:hover ~ .ms-Rating-button":{selectors:{".ms-RatingStar-back":MP(s,"WindowText"),".ms-RatingStar-front":MP(s,"WindowText")}},"&:hover":{selectors:{".ms-RatingStar-back":{color:l},".ms-RatingStar-front":{color:c}}}}},t&&{cursor:"default"}],ratingStarIsSmall:[a.ratingStarIsSmall,{fontSize:"16px",lineHeight:"16px",height:"16px"}],ratingStarIsLarge:[a.ratingStartIsLarge,{fontSize:"20px",lineHeight:"20px",height:"20px"}],labelText:[a.labelText,Qa],ratingFocusZone:[Ya(r),a.ratingFocusZone,{display:"inline-block"}]}}),void 0,{scope:"Rating"});var BP={root:"ms-ScrollablePane",contentContainer:"ms-ScrollablePane--contentContainer"},LP=u.createContext({scrollablePane:void 0,window:void 0}),VP=wn(),zP=function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._stickyAboveRef=u.createRef(),n._stickyBelowRef=u.createRef(),n._contentContainer=u.createRef(),n.subscribe=function(e){n._subscribers.add(e)},n.unsubscribe=function(e){n._subscribers.delete(e)},n.addSticky=function(e){n._stickies.add(e),n.contentContainer&&(e.setDistanceFromTop(n.contentContainer),n.sortSticky(e))},n.removeSticky=function(e){n._stickies.delete(e),n._removeStickyFromContainers(e),n.notifySubscribers()},n.sortSticky=function(e,t){n.stickyAbove&&n.stickyBelow&&(t&&n._removeStickyFromContainers(e),e.canStickyTop&&e.stickyContentTop&&n._addToStickyContainer(e,n.stickyAbove,e.stickyContentTop),e.canStickyBottom&&e.stickyContentBottom&&n._addToStickyContainer(e,n.stickyBelow,e.stickyContentBottom))},n.updateStickyRefHeights=function(){var e=n._stickies,t=0,r=0;e.forEach((function(e){var o=e.state,i=o.isStickyTop,a=o.isStickyBottom;e.nonStickyContent&&(i&&(t+=e.nonStickyContent.offsetHeight),a&&(r+=e.nonStickyContent.offsetHeight),n._checkStickyStatus(e))})),n.setState({stickyTopHeight:t,stickyBottomHeight:r})},n.notifySubscribers=function(){n.contentContainer&&n._subscribers.forEach((function(e){e(n.contentContainer,n.stickyBelow)}))},n.getScrollPosition=function(){return n.contentContainer?n.contentContainer.scrollTop:0},n.syncScrollSticky=function(e){e&&n.contentContainer&&e.syncScroll(n.contentContainer)},n._getScrollablePaneContext=function(){return{scrollablePane:{subscribe:n.subscribe,unsubscribe:n.unsubscribe,addSticky:n.addSticky,removeSticky:n.removeSticky,updateStickyRefHeights:n.updateStickyRefHeights,sortSticky:n.sortSticky,notifySubscribers:n.notifySubscribers,syncScrollSticky:n.syncScrollSticky},window:lc(n.context)}},n._addToStickyContainer=function(e,t,r){if(t.children.length){if(!t.contains(r)){var o=[].slice.call(t.children),i=[];n._stickies.forEach((function(r){(t===n.stickyAbove&&e.canStickyTop||e.canStickyBottom)&&i.push(r)}));for(var a=void 0,s=0,l=i.sort((function(e,t){return(e.state.distanceFromTop||0)-(t.state.distanceFromTop||0)})).filter((function(e){var r=t===n.stickyAbove?e.stickyContentTop:e.stickyContentBottom;return!!r&&o.indexOf(r)>-1}));s<l.length;s++){var c=l[s];if((c.state.distanceFromTop||0)>=(e.state.distanceFromTop||0)){a=c;break}}var d=null;a&&(d=t===n.stickyAbove?a.stickyContentTop:a.stickyContentBottom),t.insertBefore(r,d)}}else t.appendChild(r)},n._removeStickyFromContainers=function(e){n.stickyAbove&&e.stickyContentTop&&n.stickyAbove.contains(e.stickyContentTop)&&n.stickyAbove.removeChild(e.stickyContentTop),n.stickyBelow&&e.stickyContentBottom&&n.stickyBelow.contains(e.stickyContentBottom)&&n.stickyBelow.removeChild(e.stickyContentBottom)},n._onWindowResize=function(){var e=n._getScrollbarWidth(),t=n._getScrollbarHeight();n.setState({scrollbarWidth:e,scrollbarHeight:t}),n.notifySubscribers()},n._getStickyContainerStyle=function(e,t){return v(v({height:e},Sn(n.props.theme)?{right:"0",left:"".concat(n.state.scrollbarWidth||n._getScrollbarWidth()||0,"px")}:{left:"0",right:"".concat(n.state.scrollbarWidth||n._getScrollbarWidth()||0,"px")}),t?{top:"0"}:{bottom:"".concat(n.state.scrollbarHeight||n._getScrollbarHeight()||0,"px")})},n._onScroll=function(){var e=n.contentContainer;e&&n._stickies.forEach((function(t){t.syncScroll(e)})),n._notifyThrottled()},n._subscribers=new Set,n._stickies=new Set,Xr(n),n.state={stickyTopHeight:0,stickyBottomHeight:0,scrollbarWidth:0,scrollbarHeight:0},n}return g(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyAbove",{get:function(){return this._stickyAboveRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyBelow",{get:function(){return this._stickyBelowRef.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentContainer",{get:function(){return this._contentContainer.current},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this,t=lc(this.context),n=this.props.initialScrollPosition;this._async=new ze(this),this._notifyThrottled=this._async.throttle(this.notifySubscribers,50),this._events=new gt(this),this._events.on(this.contentContainer,"scroll",this._onScroll),this._events.on(t,"resize",this._onWindowResize),this.contentContainer&&n&&(this.contentContainer.scrollTop=n),this.setStickiesDistanceFromTop(),this._stickies.forEach((function(t){e.sortSticky(t)})),this.notifySubscribers(),t&&"MutationObserver"in t&&(this._mutationObserver=new MutationObserver((function(t){var n=e._getScrollbarHeight();if(n!==e.state.scrollbarHeight&&e.setState({scrollbarHeight:n}),e.notifySubscribers(),t.some(function(e){return null!==this.stickyAbove&&null!==this.stickyBelow&&(this.stickyAbove.contains(e.target)||this.stickyBelow.contains(e.target))}.bind(e)))e.updateStickyRefHeights();else{var r=[];e._stickies.forEach((function(e){e.root&&e.root.contains(t[0].target)&&r.push(e)})),r.length&&r.forEach((function(e){e.forceUpdate()}))}})),this.root&&this._mutationObserver.observe(this.root,{childList:!0,attributes:!0,subtree:!0,characterData:!0}))},t.prototype.componentWillUnmount=function(){this._events.dispose(),this._async.dispose(),this._mutationObserver&&this._mutationObserver.disconnect()},t.prototype.shouldComponentUpdate=function(e,t){return this.props.children!==e.children||this.props.initialScrollPosition!==e.initialScrollPosition||this.props.className!==e.className||this.state.stickyTopHeight!==t.stickyTopHeight||this.state.stickyBottomHeight!==t.stickyBottomHeight||this.state.scrollbarWidth!==t.scrollbarWidth||this.state.scrollbarHeight!==t.scrollbarHeight},t.prototype.componentDidUpdate=function(e,t){var n=this.props.initialScrollPosition;this.contentContainer&&"number"===typeof n&&e.initialScrollPosition!==n&&(this.contentContainer.scrollTop=n),t.stickyTopHeight===this.state.stickyTopHeight&&t.stickyBottomHeight===this.state.stickyBottomHeight||this.notifySubscribers(),this._async.setTimeout(this._onWindowResize,0)},t.prototype.render=function(){var e=this.props,t=e.className,n=e.scrollContainerFocus,r=e.scrollContainerAriaLabel,o=e.theme,i=e.styles,a=e.onScroll,s=this.state,l=s.stickyTopHeight,c=s.stickyBottomHeight,d=VP(i,{theme:o,className:t,scrollbarVisibility:this.props.scrollbarVisibility}),p=n?{role:"group",tabIndex:0,"aria-label":r,onScroll:a}:{onScroll:a};return u.createElement("div",v({},qr(v({},this.props),Gr,["onScroll"]),{ref:this._root,className:d.root}),u.createElement("div",{ref:this._stickyAboveRef,className:d.stickyAbove,style:this._getStickyContainerStyle(l,!0)}),u.createElement("div",v({ref:this._contentContainer},p,{className:d.contentContainer,"data-is-scrollable":!0}),u.createElement(LP.Provider,{value:this._getScrollablePaneContext()},this.props.children)),u.createElement("div",{className:d.stickyBelow,style:this._getStickyContainerStyle(c,!1)},u.createElement("div",{ref:this._stickyBelowRef,className:d.stickyBelowItems})))},t.prototype.setStickiesDistanceFromTop=function(){var e=this;this.contentContainer&&this._stickies.forEach((function(t){t.setDistanceFromTop(e.contentContainer)}))},t.prototype.forceLayoutUpdate=function(){this._onWindowResize()},t.prototype._checkStickyStatus=function(e){this.stickyAbove&&this.stickyBelow&&this.contentContainer&&e.nonStickyContent&&(e.state.isStickyTop||e.state.isStickyBottom?(e.state.isStickyTop&&!this.stickyAbove.contains(e.nonStickyContent)&&e.stickyContentTop&&e.addSticky(e.stickyContentTop),e.state.isStickyBottom&&!this.stickyBelow.contains(e.nonStickyContent)&&e.stickyContentBottom&&e.addSticky(e.stickyContentBottom)):this.contentContainer.contains(e.nonStickyContent)||e.resetSticky())},t.prototype._getScrollbarWidth=function(){var e=this.contentContainer;return e?e.offsetWidth-e.clientWidth:0},t.prototype._getScrollbarHeight=function(){var e=this.contentContainer;return e?e.offsetHeight-e.clientHeight:0},t.contextType=dr,t}(u.Component),WP=(Jo(zP,(function(e){var t,n,r=e.className,o=e.theme,i=os(BP,o),a={position:"absolute",pointerEvents:"none"},s={position:"absolute",top:0,right:0,bottom:0,left:0,WebkitOverflowScrolling:"touch"};return{root:[i.root,o.fonts.medium,s,r],contentContainer:[i.contentContainer,{overflowY:"always"===e.scrollbarVisibility?"scroll":"auto"},s],stickyAbove:[{top:0,zIndex:1,selectors:(t={},t[Wa]={borderBottom:"1px solid WindowText"},t)},a],stickyBelow:[{bottom:0,selectors:(n={},n[Wa]={borderTop:"1px solid WindowText"},n)},a],stickyBelowItems:[{bottom:0},a,{width:"100%"}]}}),void 0,{scope:"ScrollablePane"}),"SearchBox"),UP={root:{height:"auto"},icon:{fontSize:"12px"}},KP={iconName:"Clear"},jP={ariaLabel:"Clear text"},GP=wn(),qP=u.forwardRef((function(e,t){var n=e.ariaLabel,r=e.className,o=e.defaultValue,i=void 0===o?"":o,a=e.disabled,s=e.underlined,l=e.styles,c=e.labelText,d=e.placeholder,p=void 0===d?c:d,m=e.theme,h=e.clearButtonProps,f=void 0===h?jP:h,g=e.disableAnimation,y=void 0!==g&&g,b=e.showIcon,C=void 0!==b&&b,S=e.onClear,x=e.onBlur,k=e.onEscape,P=e.onSearch,I=e.onKeyDown,w=e.iconProps,E=e.role,_=e.onChange,D=e.onChanged,T=u.useState(!1),R=T[0],A=T[1],M=u.useRef(),N=Ul(e.value,i,(function(e,t){e&&e.timeStamp===M.current||(M.current=null===e||void 0===e?void 0:e.timeStamp,null===_||void 0===_||_(e,t),null===D||void 0===D||D(t))})),F=N[0],H=N[1],O=String(F),B=u.useRef(null),L=u.useRef(null),V=Gl(B,t),z=jl(WP,e.id),W=f.onClick,U=GP(l,{theme:m,className:r,underlined:s,hasFocus:R,disabled:a,hasInput:O.length>0,disableAnimation:y,showIcon:C}),K=qr(e,Mr,["className","placeholder","onFocus","onBlur","value","role"]),j=u.useCallback((function(e){var t;null===S||void 0===S||S(e),e.defaultPrevented||(H(""),null===(t=L.current)||void 0===t||t.focus(),e.stopPropagation(),e.preventDefault())}),[S,H]),G=u.useCallback((function(e){null===W||void 0===W||W(e),e.defaultPrevented||j(e)}),[W,j]),q=u.useCallback((function(e){A(!1),null===x||void 0===x||x(e)}),[x]),Y=function(e){H(e.target.value,e)};return function(e){ec({name:WP,props:e,deprecations:{labelText:"placeholder"}})}(e),function(e,t,n){u.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()},blur:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.blur()},hasFocus:function(){return n}}}),[t,n])}(e.componentRef,L,R),u.createElement("div",{role:E,ref:V,className:U.root,onFocusCapture:function(t){var n;A(!0),null===(n=e.onFocus)||void 0===n||n.call(e,t)}},u.createElement("div",{className:U.iconContainer,onClick:function(){L.current&&(L.current.focus(),L.current.selectionStart=L.current.selectionEnd=0)},"aria-hidden":!0},u.createElement(gd,v({iconName:"Search"},w,{className:U.icon}))),u.createElement("input",v({},K,{id:z,className:U.field,placeholder:p,onChange:Y,onInput:Y,onBlur:q,onKeyDown:function(e){switch(e.which){case Gt:null===k||void 0===k||k(e),O&&!e.defaultPrevented&&j(e);break;case Wt:P&&(P(O),e.preventDefault(),e.stopPropagation());break;default:null===I||void 0===I||I(e),e.defaultPrevented&&e.stopPropagation()}},value:O,disabled:a,role:"searchbox","aria-label":n,ref:L})),O.length>0&&u.createElement("div",{className:U.clearButton},u.createElement(mm,v({onBlur:q,styles:UP,iconProps:KP},f,{onClick:G}))))}));qP.displayName=WP;var YP={root:"ms-SearchBox",iconContainer:"ms-SearchBox-iconContainer",icon:"ms-SearchBox-icon",clearButton:"ms-SearchBox-clearButton",field:"ms-SearchBox-field"};Jo(qP,(function(e){var t,n,r,o,i,a=e.theme,s=e.underlined,l=e.disabled,c=e.hasFocus,d=e.className,u=e.hasInput,p=e.disableAnimation,m=e.showIcon,h=a.palette,f=a.fonts,g=a.semanticColors,v=a.effects,y=os(YP,a),b={color:g.inputPlaceholderText,opacity:1},C=h.neutralSecondary,S=h.neutralPrimary,x=h.neutralLighter,k=h.neutralLighter,P=h.neutralLighter;return{root:[y.root,f.medium,ks,{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[Wa]={borderColor:"WindowText"},t[":hover"]={borderColor:g.inputBorderHovered,selectors:(n={},n[Wa]={borderColor:"Highlight"},n)},t[":hover .".concat(y.iconContainer)]={color:g.inputIconHovered},t)},!c&&u&&{selectors:(r={},r[":hover .".concat(y.iconContainer)]={width:4},r[":hover .".concat(y.icon)]={opacity:0,pointerEvents:"none"},r)},c&&["is-active",{position:"relative"},Ja(g.inputFocusBorderAlt,s?0:v.roundedCorner2,s?"borderBottom":"border")],m&&[{selectors:(o={},o[":hover .".concat(y.iconContainer)]={width:32},o[":hover .".concat(y.icon)]={opacity:1},o)}],l&&["is-disabled",{borderColor:x,backgroundColor:P,pointerEvents:"none",cursor:"default",selectors:(i={},i[Wa]={borderColor:"GrayText"},i)}],s&&["is-underlined",{borderWidth:"0 0 1px 0",borderRadius:0,padding:"1px 0 1px 8px"}],s&&l&&{backgroundColor:"transparent"},u&&"can-clear",d],iconContainer:[y.iconContainer,{display:"flex",flexDirection:"column",justifyContent:"center",flexShrink:0,fontSize:16,width:32,textAlign:"center",color:g.inputIcon,cursor:"text"},c&&{width:4},l&&{color:g.inputIconDisabled},!p&&{transition:"width ".concat(Pa)},m&&c&&{width:32}],icon:[y.icon,{opacity:1},c&&{opacity:0,pointerEvents:"none"},!p&&{transition:"opacity ".concat(Pa," 0s")},m&&c&&{opacity:1}],clearButton:[y.clearButton,{display:"flex",flexDirection:"row",alignItems:"stretch",cursor:"pointer",flexBasis:"32px",flexShrink:0,padding:0,margin:"-1px 0px",selectors:{"&:hover .ms-Button":{backgroundColor:k},"&:hover .ms-Button-icon":{color:S},".ms-Button":{borderRadius:Sn(a)?"1px 0 0 1px":"0 1px 1px 0"},".ms-Button-icon":{color:C}}}],field:[y.field,ks,Is(b),{backgroundColor:"transparent",border:"none",outline:"none",fontWeight:"inherit",fontFamily:"inherit",fontSize:"inherit",color:g.inputText,flex:"1 1 0px",minWidth:"0px",overflow:"hidden",textOverflow:"ellipsis",paddingBottom:.5,selectors:{"::-ms-clear":{display:"none"}}},l&&{color:g.disabledText}]}}),void 0,{scope:"SearchBox"});var ZP=function(e){function t(t){var n=e.call(this,t)||this;n.addItems=function(e){var t=n.props.onItemSelected?n.props.onItemSelected(e):e,r=t,o=t;if(o&&o.then)o.then((function(e){var t=n.state.items.concat(e);n.updateItems(t)}));else{var i=n.state.items.concat(r);n.updateItems(i)}},n.removeItemAt=function(e){var t=n.state.items;if(n._canRemoveItem(t[e])&&e>-1){n.props.onItemsDeleted&&n.props.onItemsDeleted([t[e]]);var r=t.slice(0,e).concat(t.slice(e+1));n.updateItems(r)}},n.removeItem=function(e){var t=n.state.items.indexOf(e);n.removeItemAt(t)},n.replaceItem=function(e,t){var r=n.state.items,o=r.indexOf(e);if(o>-1){var i=r.slice(0,o).concat(t).concat(r.slice(o+1));n.updateItems(i)}},n.removeItems=function(e){var t=n.state.items,r=e.filter((function(e){return n._canRemoveItem(e)})),o=t.filter((function(e){return-1===r.indexOf(e)})),i=r[0],a=t.indexOf(i);n.props.onItemsDeleted&&n.props.onItemsDeleted(r),n.updateItems(o,a)},n.onCopy=function(e){if(n.props.onCopyItems&&n.selection.getSelectedCount()>0){var t=n.selection.getSelection();n.copyItems(t)}},n.renderItems=function(){var e=n.props.removeButtonAriaLabel,t=n.props.onRenderItem;return n.state.items.map((function(r,o){return t({item:r,index:o,key:r.key?r.key:o,selected:n.selection.isIndexSelected(o),onRemoveItem:function(){return n.removeItem(r)},onItemChange:n.onItemChange,removeButtonAriaLabel:e,onCopyItem:function(e){return n.copyItems([e])}})}))},n.onSelectionChanged=function(){n.forceUpdate()},n.onItemChange=function(e,t){var r=n.state.items;if(t>=0){var o=r;o[t]=e,n.updateItems(o)}},Xr(n);var r=t.selectedItems||t.defaultSelectedItems||[];return n.state={items:r},n._defaultSelection=new Uo({onSelectionChanged:n.onSelectionChanged}),n}return g(t,e),t.getDerivedStateFromProps=function(e){return e.selectedItems?{items:e.selectedItems}:null},Object.defineProperty(t.prototype,"items",{get:function(){return this.state.items},enumerable:!1,configurable:!0}),t.prototype.removeSelectedItems=function(){this.state.items.length&&this.selection.getSelectedCount()>0&&this.removeItems(this.selection.getSelection())},t.prototype.updateItems=function(e,t){var n=this;this.props.selectedItems?this.onChange(e):this.setState({items:e},(function(){n._onSelectedItemsUpdated(e,t)}))},t.prototype.hasSelectedItems=function(){return this.selection.getSelectedCount()>0},t.prototype.componentDidUpdate=function(e,t){this.state.items&&this.state.items!==t.items&&this.selection.setItems(this.state.items)},t.prototype.unselectAll=function(){this.selection.setAllSelected(!1)},t.prototype.highlightedItems=function(){return this.selection.getSelection()},t.prototype.componentDidMount=function(){this.selection.setItems(this.state.items)},Object.defineProperty(t.prototype,"selection",{get:function(){var e;return null!==(e=this.props.selection)&&void 0!==e?e:this._defaultSelection},enumerable:!1,configurable:!0}),t.prototype.render=function(){return this.renderItems()},t.prototype.onChange=function(e){this.props.onChange&&this.props.onChange(e)},t.prototype.copyItems=function(e){if(this.props.onCopyItems){var t=this.props.onCopyItems(e),n=sc(this.context),r=n.createElement("input");n.body.appendChild(r);try{if(r.value=t,r.select(),!n.execCommand("copy"))throw new Error}catch(o){}finally{n.body.removeChild(r)}}},t.prototype._onSelectedItemsUpdated=function(e,t){this.onChange(e)},t.prototype._canRemoveItem=function(e){return!this.props.canRemoveItem||this.props.canRemoveItem(e)},t.contextType=dr,t}(u.Component);ps([{rawString:".personaContainer_6625fd9a{border-radius:15px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background:"},{theme:"themeLighterAlt",defaultValue:"#eff6fc"},{rawString:';margin:4px;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;vertical-align:middle;position:relative}.personaContainer_6625fd9a::-moz-focus-inner{border:0}.personaContainer_6625fd9a{outline:transparent}.personaContainer_6625fd9a{position:relative}.ms-Fabric--isFocusVisible .personaContainer_6625fd9a:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:"";position:absolute;top:-2px;right:-2px;bottom:-2px;left:-2px;pointer-events:none;border:1px solid '},{theme:"focusBorder",defaultValue:"#605e5c"},{rawString:";border-radius:0}.personaContainer_6625fd9a .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}.personaContainer_6625fd9a .ms-Persona-primaryText.hover_6625fd9a{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a .actionButton_6625fd9a:hover{background:"},{theme:"themeLight",defaultValue:"#c7e0f4"},{rawString:"}.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}.personaContainer_6625fd9a:hover{background:"},{theme:"themeLighter",defaultValue:"#deecf9"},{rawString:"}.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:";font-size:14px;font-weight:400}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a:hover .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{background:"},{theme:"themePrimary",defaultValue:"#0078d4"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .ms-Persona-primaryText{color:HighlightText}}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a{color:"},{theme:"white",defaultValue:"#ffffff"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon:hover{background:"},{theme:"themeDark",defaultValue:"#005a9e"},{rawString:"}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a .actionButton_6625fd9a .ms-Button-icon{color:HighlightText}}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a.personaContainerIsSelected_6625fd9a{border-color:Highlight;background:Highlight;-ms-high-contrast-adjust:none}}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-primaryText{color:"},{theme:"red",defaultValue:"#e81123"},{rawString:"}.personaContainer_6625fd9a.validationError_6625fd9a .ms-Persona-initials{font-size:20px}@media screen and (-ms-high-contrast:active),screen and (forced-colors:active){.personaContainer_6625fd9a{border:1px solid WindowText}}.personaContainer_6625fd9a .itemContent_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;min-width:0;max-width:100%}.personaContainer_6625fd9a .removeButton_6625fd9a{border-radius:15px;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:33px;height:33px;-ms-flex-preferred-size:32px;flex-basis:32px}.personaContainer_6625fd9a .expandButton_6625fd9a{border-radius:15px 0 0 15px;height:33px;width:44px;padding-right:16px;position:inherit;display:-webkit-box;display:-ms-flexbox;display:flex;margin-right:-17px}.personaContainer_6625fd9a .personaWrapper_6625fd9a{position:relative;display:inherit}.personaContainer_6625fd9a .personaWrapper_6625fd9a .ms-Persona-details{padding:0 8px}.personaContainer_6625fd9a .personaDetails_6625fd9a{-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto}.itemContainer_6625fd9a{display:inline-block;vertical-align:top}"}]);var JP=Object.freeze({__proto__:null,personaContainer:"personaContainer_6625fd9a",hover:"hover_6625fd9a",actionButton:"actionButton_6625fd9a",personaContainerIsSelected:"personaContainerIsSelected_6625fd9a",validationError:"validationError_6625fd9a",itemContent:"itemContent_6625fd9a",removeButton:"removeButton_6625fd9a",expandButton:"expandButton_6625fd9a",personaWrapper:"personaWrapper_6625fd9a",personaDetails:"personaDetails_6625fd9a",itemContainer:"itemContainer_6625fd9a"}),QP=function(e){function t(t){var n=e.call(this,t)||this;return n.persona=u.createRef(),Xr(n),n.state={contextualMenuVisible:!1},n}return g(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.item,o=n.onExpandItem,i=n.onRemoveItem,a=n.removeButtonAriaLabel,s=n.index,l=n.selected,c=Cr();return u.createElement("div",{ref:this.persona,className:Wn("ms-PickerPersona-container",JP.personaContainer,(e={},e["is-selected "+JP.personaContainerIsSelected]=l,e),(t={},t["is-invalid "+JP.validationError]=!r.isValid,t)),"data-is-focusable":!0,"data-is-sub-focuszone":!0,"data-selection-index":s,role:"listitem","aria-labelledby":"selectedItemPersona-"+c},u.createElement("div",{hidden:!r.canExpand||void 0===o},u.createElement(mm,{onClick:this._onClickIconButton(o),iconProps:{iconName:"Add",style:{fontSize:"14px"}},className:Wn("ms-PickerItem-removeButton",JP.expandButton,JP.actionButton),ariaLabel:a})),u.createElement("div",{className:Wn(JP.personaWrapper)},u.createElement("div",{className:Wn("ms-PickerItem-content",JP.itemContent),id:"selectedItemPersona-"+c},u.createElement(Qd,v({},r,{onRenderCoin:this.props.renderPersonaCoin,onRenderPrimaryText:this.props.renderPrimaryText,size:vd.size32}))),u.createElement(mm,{onClick:this._onClickIconButton(i),iconProps:{iconName:"Cancel",style:{fontSize:"14px"}},className:Wn("ms-PickerItem-removeButton",JP.removeButton,JP.actionButton),ariaLabel:a})))},t.prototype._onClickIconButton=function(e){return function(t){t.stopPropagation(),t.preventDefault(),e&&e()}},t}(u.Component),XP=function(e){function t(t){var n=e.call(this,t)||this;return n.itemElement=u.createRef(),n._onClick=function(e){e.preventDefault(),n.props.beginEditing&&!n.props.item.isValid?n.props.beginEditing(n.props.item):n.setState({contextualMenuVisible:!0})},n._onCloseContextualMenu=function(e){n.setState({contextualMenuVisible:!1})},Xr(n),n.state={contextualMenuVisible:!1},n}return g(t,e),t.prototype.render=function(){return u.createElement("div",{ref:this.itemElement,onContextMenu:this._onClick},this.props.renderedItem,this.state.contextualMenuVisible?u.createElement(Kp,{items:this.props.menuItems,shouldFocusOnMount:!0,target:this.itemElement.current,onDismiss:this._onCloseContextualMenu,directionalHint:js}):null)},t}(u.Component),$P={root:"ms-EditingItem",input:"ms-EditingItem-input"},eI=function(e){var t=xs();if(!t)throw new Error("theme is undefined or null in Editing item getStyles function.");var n=t.semanticColors,r=os($P,t);return{root:[r.root,{margin:"4px"}],input:[r.input,{border:"0px",outline:"none",width:"100%",backgroundColor:n.inputBackground,color:n.inputText,selectors:{"::-ms-clear":{display:"none"}}}]}},tI=function(e){function t(t){var n=e.call(this,t)||this;return n._editingFloatingPicker=u.createRef(),n._renderEditingSuggestions=function(){var e=n.props.onRenderFloatingPicker,t=n.props.floatingPickerProps;return e&&t?u.createElement(e,v({componentRef:n._editingFloatingPicker,onChange:n._onSuggestionSelected,inputElement:n._editingInput,selectedItems:[]},t)):u.createElement(u.Fragment,null)},n._resolveInputRef=function(e){n._editingInput=e,n.forceUpdate((function(){n._editingInput.focus()}))},n._onInputClick=function(){n._editingFloatingPicker.current&&n._editingFloatingPicker.current.showPicker(!0)},n._onInputBlur=function(e){if(n._editingFloatingPicker.current&&null!==e.relatedTarget){var t=e.relatedTarget;-1===t.className.indexOf("ms-Suggestions-itemButton")&&-1===t.className.indexOf("ms-Suggestions-sectionButton")&&n._editingFloatingPicker.current.forceResolveSuggestion()}},n._onInputChange=function(e){var t=e.target.value;""===t?n.props.onRemoveItem&&n.props.onRemoveItem():n._editingFloatingPicker.current&&n._editingFloatingPicker.current.onQueryStringChanged(t)},n._onSuggestionSelected=function(e){n.props.onEditingComplete(n.props.item,e)},Xr(n),n.state={contextualMenuVisible:!1},n}return g(t,e),t.prototype.componentDidMount=function(){var e=(0,this.props.getEditingItemText)(this.props.item);this._editingFloatingPicker.current&&this._editingFloatingPicker.current.onQueryStringChanged(e),this._editingInput.value=e,this._editingInput.focus()},t.prototype.render=function(){var e=Cr(),t=qr(this.props,Mr),n=wn()(eI);return u.createElement("div",{"aria-labelledby":"editingItemPersona-"+e,className:n.root},u.createElement("input",v({autoCapitalize:"off",autoComplete:"off"},t,{ref:this._resolveInputRef,onChange:this._onInputChange,onKeyDown:this._onInputKeyDown,onBlur:this._onInputBlur,onClick:this._onInputClick,"data-lpignore":!0,className:n.input,id:e})),this._renderEditingSuggestions())},t.prototype._onInputKeyDown=function(e){e.which!==Vt&&e.which!==nn||e.stopPropagation()},t}(u.Component),nI=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return g(t,e),t}(ZP),rI=(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.renderItems=function(){return t.state.items.map((function(e,n){return t._renderItem(e,n)}))},t._beginEditing=function(e){e.isEditing=!0,t.forceUpdate()},t._completeEditing=function(e,n){e.isEditing=!1,t.replaceItem(e,n)},t}g(t,e),t.prototype._renderItem=function(e,t){var n=this,r=this.props.removeButtonAriaLabel,o=this.props.onExpandGroup,i={item:e,index:t,key:e.key?e.key:t,selected:this.selection.isIndexSelected(t),onRemoveItem:function(){return n.removeItem(e)},onItemChange:this.onItemChange,removeButtonAriaLabel:r,onCopyItem:function(e){return n.copyItems([e])},onExpandItem:o?function(){return o(e)}:void 0,menuItems:this._createMenuItems(e)},a=i.menuItems.length>0;if(e.isEditing&&a)return u.createElement(tI,v({},i,{onRenderFloatingPicker:this.props.onRenderFloatingPicker,floatingPickerProps:this.props.floatingPickerProps,onEditingComplete:this._completeEditing,getEditingItemText:this.props.getEditingItemText}));var s=(0,this.props.onRenderItem)(i);return a?u.createElement(XP,{key:i.key,renderedItem:s,beginEditing:this._beginEditing,menuItems:this._createMenuItems(i.item),item:i.item}):s},t.prototype._createMenuItems=function(e){var t=this,n=[];return this.props.editMenuItemText&&this.props.getEditingItemText&&n.push({key:"Edit",text:this.props.editMenuItemText,onClick:function(e,n){t._beginEditing(n.data)},data:e}),this.props.removeMenuItemText&&n.push({key:"Remove",text:this.props.removeMenuItemText,onClick:function(e,n){t.removeItem(n.data)},data:e}),this.props.copyMenuItemText&&n.push({key:"Copy",text:this.props.copyMenuItemText,onClick:function(e,n){t.props.onCopyItems&&t.copyItems([n.data])},data:e}),n},t.defaultProps={onRenderItem:function(e){return u.createElement(QP,v({},e))}}}(nI),wn()),oI=u.forwardRef((function(e,t){var n=e.styles,r=e.theme,o=e.className,i=e.vertical,a=e.alignContent,s=e.children,l=rI(n,{theme:r,className:o,alignContent:a,vertical:i});return u.createElement("div",{className:l.root,ref:t},u.createElement("div",{className:l.content,role:"separator","aria-orientation":i?"vertical":"horizontal"},s))})),iI=Jo(oI,(function(e){var t,n,r=e.theme,o=e.alignContent,i=e.vertical,a=e.className,s="start"===o,l="center"===o,c="end"===o;return{root:[r.fonts.medium,{position:"relative"},o&&{textAlign:o},!o&&{textAlign:"center"},i&&(l||!o)&&{verticalAlign:"middle"},i&&s&&{verticalAlign:"top"},i&&c&&{verticalAlign:"bottom"},i&&{padding:"0 4px",height:"inherit",display:"table-cell",zIndex:1,selectors:{":after":(t={backgroundColor:r.palette.neutralLighter,width:"1px",content:'""',position:"absolute",top:"0",bottom:"0",left:"50%",right:"0",zIndex:-1},t[Wa]={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[Wa]={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"});iI.displayName="Separator";var aI,sI,lI={root:"ms-Shimmer-container",shimmerWrapper:"ms-Shimmer-shimmerWrapper",shimmerGradient:"ms-Shimmer-shimmerGradient",dataWrapper:"ms-Shimmer-dataWrapper"},cI="100%",dI=Fn((function(){return Me({"0%":{transform:"translateX(-".concat(cI,")")},"100%":{transform:"translateX(".concat(cI,")")}})})),uI=Fn((function(){return Me({"100%":{transform:"translateX(-".concat(cI,")")},"0%":{transform:"translateX(".concat(cI,")")}})}));!function(e){e[e.line=1]="line",e[e.circle=2]="circle",e[e.gap=3]="gap"}(aI||(aI={})),function(e){e[e.line=16]="line",e[e.gap=16]="gap",e[e.circle=24]="circle"}(sI||(sI={}));var pI=wn(),mI={root:"ms-ShimmerLine-root",topLeftCorner:"ms-ShimmerLine-topLeftCorner",topRightCorner:"ms-ShimmerLine-topRightCorner",bottomLeftCorner:"ms-ShimmerLine-bottomLeftCorner",bottomRightCorner:"ms-ShimmerLine-bottomRightCorner"};var hI=Jo((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=pI(n,{theme:a,height:t,borderStyle:i});return u.createElement("div",{style:{width:o,minWidth:"number"===typeof o?"".concat(o,"px"):"auto"},className:s.root},u.createElement("svg",{width:"2",height:"2",className:s.topLeftCorner},u.createElement("path",{d:"M0 2 A 2 2, 0, 0, 1, 2 0 L 0 0 Z"})),u.createElement("svg",{width:"2",height:"2",className:s.topRightCorner},u.createElement("path",{d:"M0 0 A 2 2, 0, 0, 1, 2 2 L 2 0 Z"})),u.createElement("svg",{width:"2",height:"2",className:s.bottomRightCorner},u.createElement("path",{d:"M2 0 A 2 2, 0, 0, 1, 0 2 L 2 2 Z"})),u.createElement("svg",{width:"2",height:"2",className:s.bottomLeftCorner},u.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=os(mI,o),s=r||{},l={position:"absolute",fill:i.bodyBackground};return{root:[a.root,o.fonts.medium,{height:"".concat(n,"px"),boxSizing:"content-box",position:"relative",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:i.bodyBackground,borderWidth:0,selectors:(t={},t[Wa]={borderColor:"Window",selectors:{"> *":{fill:"Window"}}},t)},s],topLeftCorner:[a.topLeftCorner,{top:"0",left:"0"},l],topRightCorner:[a.topRightCorner,{top:"0",right:"0"},l],bottomRightCorner:[a.bottomRightCorner,{bottom:"0",right:"0"},l],bottomLeftCorner:[a.bottomLeftCorner,{bottom:"0",left:"0"},l]}}),void 0,{scope:"ShimmerLine"}),fI=wn(),gI={root:"ms-ShimmerGap-root"};var vI=Jo((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=fI(n,{theme:a,height:t,borderStyle:i});return u.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:[os(gI,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[Wa]={backgroundColor:"Window",borderColor:"Window"},t)},a]}}),void 0,{scope:"ShimmerGap"}),yI={root:"ms-ShimmerCircle-root",svg:"ms-ShimmerCircle-svg"};var bI=wn(),CI=Jo((function(e){var t=e.height,n=e.styles,r=e.borderStyle,o=e.theme,i=bI(n,{theme:o,height:t,borderStyle:r});return u.createElement("div",{className:i.root},u.createElement("svg",{viewBox:"0 0 10 10",width:t,height:t,className:i.svg},u.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=os(yI,i),l=o||{};return{root:[s.root,i.fonts.medium,{width:"".concat(r,"px"),height:"".concat(r,"px"),minWidth:"".concat(r,"px"),boxSizing:"content-box",borderTopStyle:"solid",borderBottomStyle:"solid",borderColor:a.bodyBackground,selectors:(t={},t[Wa]={borderColor:"Window"},t)},l],svg:[s.svg,{display:"block",fill:a.bodyBackground,selectors:(n={},n[Wa]={fill:"Window"},n)}]}}),void 0,{scope:"ShimmerCircle"}),SI=wn();var xI=Fn((function(e,t,n,r,o){var i,a=o&&n?o-n:0;if(e&&"center"!==e?e&&"top"===e?i={borderBottomWidth:"".concat(a,"px"),borderTopWidth:"0px"}:e&&"bottom"===e&&(i={borderBottomWidth:"0px",borderTopWidth:"".concat(a,"px")}):i={borderBottomWidth:"".concat(a?Math.floor(a/2):0,"px"),borderTopWidth:"".concat(a?Math.ceil(a/2):0,"px")},r)switch(t){case aI.circle:return{root:v(v({},i),{borderColor:r}),svg:{fill:r}};case aI.gap:return{root:v(v({},i),{borderColor:r,backgroundColor:r})};case aI.line:return{root:v(v({},i),{borderColor:r}),topLeftCorner:{fill:r},topRightCorner:{fill:r},bottomLeftCorner:{fill:r},bottomRightCorner:{fill:r}}}return{root:i}}));var kI={root:"ms-ShimmerElementsGroup-root"};var PI=Jo((function(e){var t=e.styles,n=e.width,r=void 0===n?"auto":n,o=e.shimmerElements,i=e.rowHeight,a=void 0===i?function(e){return e.map((function(e){switch(e.type){case aI.circle:e.height||(e.height=sI.circle);break;case aI.line:e.height||(e.height=sI.line);break;case aI.gap:e.height||(e.height=sI.gap)}return e})).reduce((function(e,t){return t.height&&t.height>e?t.height:e}),0)}(o||[]):i,s=e.flexWrap,l=void 0!==s&&s,c=e.theme,d=e.backgroundColor,p=SI(t,{theme:c,flexWrap:l});return u.createElement("div",{style:{width:r},className:p.root},function(e,t,n){var r=e?e.map((function(e,r){var o=e.type,i=y(e,["type"]),a=i.verticalAlign,s=i.height,l=xI(a,o,s,t,n);switch(e.type){case aI.circle:return u.createElement(CI,v({key:r},i,{styles:l}));case aI.gap:return u.createElement(vI,v({key:r},i,{styles:l}));case aI.line:return u.createElement(hI,v({key:r},i,{styles:l}))}})):u.createElement(hI,{height:sI.line});return r}(o,d,a))}),(function(e){var t=e.flexWrap,n=e.theme;return{root:[os(kI,n).root,n.fonts.medium,{display:"flex",alignItems:"center",flexWrap:t?"wrap":"nowrap",position:"relative"}]}}),void 0,{scope:"ShimmerElementsGroup"}),II=wn(),wI=u.forwardRef((function(e,t){var n=e.styles,r=e.shimmerElements,o=e.children,i=e.width,a=e.className,s=e.customElementsGroup,l=e.theme,c=e.ariaLabel,d=e.shimmerColors,p=e.isDataLoaded,m=void 0!==p&&p,h=e.improveCSSPerformance,f=qr(e,Gr),g=II(n,{theme:l,isDataLoaded:m,className:a,transitionAnimationInterval:200,shimmerColor:d&&d.shimmer,shimmerWaveColor:d&&d.shimmerWave,improveCSSPerformance:h||!s}),y=zl({lastTimeoutId:0}),b=Jl(),C=b.setTimeout,S=b.clearTimeout,x=u.useState(m),k=x[0],P=x[1],I={width:i||"100%"};return u.useEffect((function(){if(m!==k){if(m)return y.lastTimeoutId=C((function(){P(!0)}),200),function(){return S(y.lastTimeoutId)};P(!1)}}),[m]),u.createElement("div",v({},f,{className:g.root,ref:t}),!k&&u.createElement("div",{style:I,className:g.shimmerWrapper},u.createElement("div",{className:g.shimmerGradient}),s||u.createElement(PI,{shimmerElements:r,backgroundColor:d&&d.background})),o&&u.createElement("div",{className:g.dataWrapper},o),c&&!m&&u.createElement("div",{role:"status","aria-live":"polite"},u.createElement(Nt,null,u.createElement("div",{className:g.screenReaderText},c))))}));wI.displayName="Shimmer";var EI=Jo(wI,(function(e){var t,n=e.isDataLoaded,r=e.className,o=e.theme,i=e.transitionAnimationInterval,a=e.shimmerColor,s=e.shimmerWaveColor,l=e.improveCSSPerformance,c=o.semanticColors,d=os(lI,o),u=Sn(o);return{root:[d.root,o.fonts.medium,{position:"relative",height:"auto"},r],shimmerWrapper:[d.shimmerWrapper,{position:"relative",overflow:"hidden",transform:"translateZ(0)",backgroundColor:a||c.disabledBackground,transition:"opacity ".concat(i,"ms"),selectors:(t={},t[Wa]=v({background:"WindowText\n                        linear-gradient(\n                          to right,\n                          transparent 0%,\n                          Window 50%,\n                          transparent 100%)\n                        0 0 / 90% 100%\n                        no-repeat"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),t)},n&&{opacity:"0",position:"absolute",top:"0",bottom:"0",left:"0",right:"0"},l?{selectors:{"> div:last-child":{transform:"translateZ(0)"}}}:{selectors:{"> *":{transform:"translateZ(0)"}}}],shimmerGradient:[d.shimmerGradient,{position:"absolute",top:0,left:0,width:"100%",height:"100%",background:"".concat(a||c.disabledBackground,"\n                      linear-gradient(\n                        to right,\n                        ").concat(a||c.disabledBackground," 0%,\n                        ").concat(s||c.bodyDivider," 50%,\n                        ").concat(a||c.disabledBackground," 100%)\n                      0 0 / 90% 100%\n                      no-repeat"),transform:"translateX(-".concat(cI,")"),animationDuration:"2s",animationTimingFunction:"ease-in-out",animationDirection:"normal",animationIterationCount:"infinite",animationName:u?uI():dI()}],dataWrapper:[d.dataWrapper,{position:"absolute",top:"0",bottom:"0",left:"0",right:"0",opacity:"0",background:"none",backgroundColor:"transparent",border:"none",transition:"opacity ".concat(i,"ms")},n&&{opacity:"1",position:"static"}],screenReaderText:Qa}}),void 0,{scope:"Shimmer"}),_I=wn(),DI=function(e){function t(t){var n=e.call(this,t)||this;return n._onRenderShimmerPlaceholder=function(e,t){var r=n.props.onRenderCustomPlaceholder,o=r?r(t,e,n._renderDefaultShimmerPlaceholder):n._renderDefaultShimmerPlaceholder(t);return u.createElement(EI,{customElementsGroup:o})},n._renderDefaultShimmerPlaceholder=function(e){var t=e.columns,n=e.compact,r=e.selectionMode,o=e.checkboxVisibility,i=e.cellStyleProps,a=void 0===i?Vy:i,s=n?zy.compactRowHeight:zy.rowHeight+1,l=[];return r!==Vo.none&&o!==wy.hidden&&l.push(u.createElement(PI,{key:"checkboxGap",shimmerElements:[{type:aI.gap,width:"40px",height:s}]})),t.forEach((function(e,t){var n=[],r=a.cellLeftPadding+a.cellRightPadding+e.calculatedWidth+(e.isPadded?a.cellExtraRightPadding:0);n.push({type:aI.gap,width:a.cellLeftPadding,height:s}),e.isIconOnly?(n.push({type:aI.line,width:e.calculatedWidth,height:e.calculatedWidth}),n.push({type:aI.gap,width:a.cellRightPadding,height:s})):(n.push({type:aI.line,width:.95*e.calculatedWidth,height:7}),n.push({type:aI.gap,width:a.cellRightPadding+(e.calculatedWidth-.95*e.calculatedWidth)+(e.isPadded?a.cellExtraRightPadding:0),height:s})),l.push(u.createElement(PI,{key:t,width:"".concat(r,"px"),shimmerElements:n}))})),l.push(u.createElement(PI,{key:"endGap",width:"100%",shimmerElements:[{type:aI.gap,width:"100%",height:s}]})),u.createElement("div",{style:{display:"flex"}},l)},n._shimmerItems=t.shimmerLines?new Array(t.shimmerLines):new Array(10),n}return g(t,e),t.prototype.render=function(){var e=this.props,t=e.detailsListStyles,n=e.enableShimmer,r=e.items,o=e.listProps,i=(e.onRenderCustomPlaceholder,e.removeFadingOverlay),a=(e.shimmerLines,e.styles),s=e.theme,l=e.ariaLabelForGrid,c=e.ariaLabelForShimmer,d=y(e,["detailsListStyles","enableShimmer","items","listProps","onRenderCustomPlaceholder","removeFadingOverlay","shimmerLines","styles","theme","ariaLabelForGrid","ariaLabelForShimmer"]),p=o&&o.className;this._classNames=_I(a,{theme:s});var m=v(v({},o),{className:n&&!i?Wn(this._classNames.root,p):p});return u.createElement(uC,v({},d,{styles:t,items:n?this._shimmerItems:r,isPlaceholderData:n,ariaLabelForGrid:n&&c||l,onRenderMissingItem:this._onRenderShimmerPlaceholder,listProps:m}))},t}(u.Component),TI=(Jo(DI,(function(e){var t=e.theme.palette;return{root:{position:"relative",selectors:{":after":{content:'""',position:"absolute",top:0,right:0,bottom:0,left:0,backgroundImage:"linear-gradient(to bottom, transparent 30%, ".concat(t.whiteTranslucent40," 65%,").concat(t.white," 100%)")}}}}}),void 0,{scope:"ShimmeredDetailsList"}),wn()),RI=function(e){return function(t){var n;return(n={})[e]="".concat(t,"%"),n}},AI=function(e,t,n){return n===t?0:(e-t)/(n-t)*100},MI=function(e,t){var n=e.step,r=void 0===n?1:n,o=e.className,i=e.disabled,a=void 0!==i&&i,s=e.label,l=e.max,c=void 0===l?10:l,d=e.min,p=void 0===d?0:d,m=e.showValue,h=void 0===m||m,f=e.buttonProps,g=void 0===f?{}:f,y=e.vertical,b=void 0!==y&&y,C=e.snapToStep,S=e.valueFormat,x=e.styles,k=e.theme,P=e.originFromZero,I=e["aria-labelledby"],w=e.ariaLabel,E=void 0===w?e["aria-label"]:w,_=e.ranged,D=e.onChange,T=e.onChanged,R=u.useRef([]),A=Jl(),M=A.setTimeout,N=A.clearTimeout,F=u.useRef(null),H=ac(),O=Ul(e.value,e.defaultValue,(function(e,t){return null===D||void 0===D?void 0:D(t,_?[j.latestLowerValue,t]:void 0,e)})),B=O[0],L=O[1],V=Ul(e.lowerValue,e.defaultLowerValue,(function(e,t){return null===D||void 0===D?void 0:D(j.latestValue,[t,j.latestValue],e)})),z=V[0],W=V[1],U=Math.max(p,Math.min(c,B||0)),K=Math.max(p,Math.min(U,z||0)),j=zl({onKeyDownTimer:-1,isAdjustingLowerValue:!1,latestValue:U,latestLowerValue:K});j.latestValue=U,j.latestLowerValue=K;var G=jl("Slider",e.id||(null===g||void 0===g?void 0:g.id)),q=TI(x,{className:o,disabled:a,vertical:b,showTransitions:!C&&!j.isBetweenSteps,showValue:h,ranged:_,theme:k}),Y=(c-p)/r,Z=function(){N(j.onKeyDownTimer),j.onKeyDownTimer=-1},J=function(e){Z(),T&&(j.onKeyDownTimer=M((function(){T(e,j.latestValue,_?[j.latestLowerValue,j.latestValue]:void 0)}),1e3))},Q=function(t){var n=e.ariaValueText;if(void 0!==t)return n?n(t):t.toString()},X=function(e,t,n){t=Math.min(c,Math.max(p,t)),n=void 0!==n?Math.min(c,Math.max(p,n)):void 0;var o=0;if(isFinite(r))for(;Math.round(r*Math.pow(10,o))/Math.pow(10,o)!==r;)o++;var i=parseFloat(t.toFixed(o));j.isBetweenSteps=void 0!==n&&n!==i,_?j.isAdjustingLowerValue&&(P?i<=0:i<=j.latestValue)?W(i,e):!j.isAdjustingLowerValue&&(P?i>=0:i>=j.latestLowerValue)&&L(i,e):L(i,e)},$=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},ee=function(t){var n,r=F.current.getBoundingClientRect(),o=(e.vertical?r.height:r.width)/Y;if(e.vertical){var i=$(t,e.vertical);n=(r.bottom-i)/o}else{var a=$(t,e.vertical);n=(Sn(e.theme)?r.right-a:a-r.left)/o}return n},te=function(e,t){var n=ee(e),o=p+r*n,i=p+r*Math.round(n);X(e,i,o),t||(e.preventDefault(),e.stopPropagation())},ne=function(e){if(_){var t=ee(e),n=p+r*t;j.isAdjustingLowerValue=n<=j.latestLowerValue||n-j.latestLowerValue<=j.latestValue-n}"mousedown"===e.type?R.current.push(ut(H,"mousemove",te,!0),ut(H,"mouseup",re,!0)):"touchstart"===e.type&&R.current.push(ut(H,"touchmove",te,!0),ut(H,"touchend",re,!0)),te(e,!0)},re=function(e){j.isBetweenSteps=void 0,null===T||void 0===T||T(e,j.latestValue,_?[j.latestLowerValue,j.latestValue]:void 0),oe()},oe=u.useCallback((function(){R.current.forEach((function(e){return e()})),R.current=[]}),[]);u.useEffect((function(){return oe}),[oe]);var ie=u.useRef(null),ae=u.useRef(null),se=u.useRef(null);!function(e,t,n,r){u.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},get range(){return r},focus:function(){var e;null===(e=t.current)||void 0===e||e.focus()}}}),[r,t,n])}(e,se,U,_?[K,U]:void 0);var le=RI(b?"bottom":Sn(e.theme)?"right":"left"),ce=RI(b?"height":"width"),de=P?0:p,ue=AI(U,p,c),pe=AI(K,p,c),me=AI(de,p,c),he=_?ue-pe:Math.abs(me-ue),fe=Math.min(100-ue,100-me),ge=_?pe:Math.min(ue,me),ve={className:q.root,ref:t},ye={className:q.titleLabel,children:s,disabled:a,htmlFor:E?void 0:G},be=h?{className:q.valueLabel,children:S?S(U):U,disabled:a,htmlFor:a?G:void 0}:void 0,Ce=_&&h?{className:q.valueLabel,children:S?S(K):K,disabled:a}:void 0,Se=P?{className:q.zeroTick,style:le(me)}:void 0,xe={className:Wn(q.lineContainer,q.activeSection),style:ce(he)},ke={className:Wn(q.lineContainer,q.inactiveSection),style:ce(fe)},Pe={className:Wn(q.lineContainer,q.inactiveSection),style:ce(ge)},Ie=v({"aria-disabled":a,role:"slider",tabIndex:a?void 0:0},{"data-is-focusable":!a}),we=v(v(v({id:G,className:Wn(q.slideBox,g.className),ref:se},!a&&{onMouseDown:ne,onTouchStart:ne,onKeyDown:function(t){var n=j.isAdjustingLowerValue?j.latestLowerValue:j.latestValue,o=0;switch(t.which){case xn(Xt,e.theme):case tn:o=-r,Z(),J(t);break;case xn(en,e.theme):case $t:o=r,Z(),J(t);break;case Qt:n=p,Z(),J(t);break;case Jt:n=c,Z(),J(t);break;default:return}X(t,n+o),t.preventDefault(),t.stopPropagation()}}),g&&qr(g,Gr,["id","className"])),!_&&v(v({},Ie),{"aria-valuemin":p,"aria-valuemax":c,"aria-valuenow":U,"aria-valuetext":Q(U),"aria-label":E||s,"aria-labelledby":I})),Ee=a?{}:{onFocus:function(e){j.isAdjustingLowerValue=e.target===ie.current}},_e=v({ref:ae,className:q.thumb,style:le(ue)},_&&v(v(v({},Ie),Ee),{id:"max-".concat(G),"aria-valuemin":K,"aria-valuemax":c,"aria-valuenow":U,"aria-valuetext":Q(U),"aria-label":"max ".concat(E||s)})),De=_?v(v(v({ref:ie,className:q.thumb,style:le(pe)},Ie),Ee),{id:"min-".concat(G),"aria-valuemin":p,"aria-valuemax":U,"aria-valuenow":K,"aria-valuetext":Q(K),"aria-label":"min ".concat(E||s)}):void 0;return{root:ve,label:ye,sliderBox:we,container:{className:q.container},valueLabel:be,lowerValueLabel:Ce,thumb:_e,lowerValueThumb:De,zeroTick:Se,activeTrack:xe,topInactiveTrack:ke,bottomInactiveTrack:Pe,sliderLine:{ref:F,className:q.line}}},NI="SliderBase",FI=u.forwardRef((function(e,t){var n=MI(e,t);return ec({name:NI,props:e,mutuallyExclusive:{value:"defaultValue"}}),u.createElement("div",v({},n.root),n&&u.createElement(Pf,v({},n.label)),u.createElement("div",v({},n.container),e.ranged&&(e.vertical?n.valueLabel&&u.createElement(Pf,v({},n.valueLabel)):n.lowerValueLabel&&u.createElement(Pf,v({},n.lowerValueLabel))),u.createElement("div",v({},n.sliderBox),u.createElement("div",v({},n.sliderLine),e.ranged&&u.createElement("span",v({},n.lowerValueThumb)),u.createElement("span",v({},n.thumb)),n.zeroTick&&u.createElement("span",v({},n.zeroTick)),u.createElement("span",v({},n.bottomInactiveTrack)),u.createElement("span",v({},n.activeTrack)),u.createElement("span",v({},n.topInactiveTrack)))),e.ranged&&e.vertical?n.lowerValueLabel&&u.createElement(Pf,v({},n.lowerValueLabel)):n.valueLabel&&u.createElement(Pf,v({},n.valueLabel))),u.createElement(go,null))}));FI.displayName=NI;var HI,OI={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"},BI=(Jo(FI,(function(e){var t,n,r,o,i,a,s,l,c,d,u,p,m,h=e.className,f=e.titleLabelClassName,g=e.theme,v=e.vertical,y=e.disabled,b=e.showTransitions,S=e.showValue,x=e.ranged,k=g.semanticColors,P=g.palette,I=os(OI,g),w=k.inputBackgroundCheckedHovered,E=k.inputBackgroundChecked,_=P.neutralSecondaryAlt,D=P.neutralPrimary,T=P.neutralSecondaryAlt,R=k.disabledText,A=k.disabledBackground,M=k.inputBackground,N=k.smallInputBorder,F=k.disabledBorder,H=!y&&{backgroundColor:w,selectors:(t={},t[Wa]={backgroundColor:"Highlight"},t)},O=!y&&{backgroundColor:_,selectors:(n={},n[Wa]={borderColor:"Highlight"},n)},B=!y&&{backgroundColor:E,selectors:(r={},r[Wa]={backgroundColor:"Highlight"},r)},L=!y&&{border:"2px solid ".concat(w),selectors:(o={},o[Wa]={borderColor:"Highlight"},o)},V=!e.disabled&&{backgroundColor:k.inputPlaceholderBackgroundChecked,selectors:(i={},i[Wa]={backgroundColor:"Highlight"},i)};return{root:C(C(C(C(C([I.root,g.fonts.medium,{userSelect:"none"},v&&{marginRight:8}],[y?void 0:I.enabled],!1),[y?I.disabled:void 0],!1),[v?void 0:I.row],!1),[v?I.column:void 0],!1),[h],!1),titleLabel:[{padding:0},f],container:[I.container,{display:"flex",flexWrap:"nowrap",alignItems:"center"},v&&{flexDirection:"column",height:"100%",textAlign:"center",margin:"8px 0"}],slideBox:C(C([I.slideBox,!x&&Ya(g),{background:"transparent",border:"none",flexGrow:1,lineHeight:28,display:"flex",alignItems:"center",selectors:(a={},a[":active .".concat(I.activeSection)]=H,a[":hover .".concat(I.activeSection)]=B,a[":active .".concat(I.inactiveSection)]=O,a[":hover .".concat(I.inactiveSection)]=O,a[":active .".concat(I.thumb)]=L,a[":hover .".concat(I.thumb)]=L,a[":active .".concat(I.zeroTick)]=V,a[":hover .".concat(I.zeroTick)]=V,a[Wa]={forcedColorAdjust:"none"},a)},v?{height:"100%",width:28,padding:"8px 0"}:{height:28,width:"auto",padding:"0 8px"}],[S?I.showValue:void 0],!1),[b?I.showTransitions:void 0],!1),thumb:[I.thumb,x&&Ya(g,{inset:-4}),{borderWidth:2,borderStyle:"solid",borderColor:N,borderRadius:10,boxSizing:"border-box",background:M,display:"block",width:16,height:16,position:"absolute"},v?{left:-6,margin:"0 auto",transform:"translateY(8px)"}:{top:-6,transform:Sn(g)?"translateX(50%)":"translateX(-50%)"},b&&{transition:"left ".concat(wa," ").concat(xa)},y&&{borderColor:F,selectors:(s={},s[Wa]={borderColor:"GrayText"},s)}],line:[I.line,{display:"flex",position:"relative"},v?{height:"100%",width:4,margin:"0 auto",flexDirection:"column-reverse"}:{width:"100%"}],lineContainer:[{borderRadius:4,boxSizing:"border-box"},v?{width:4,height:"100%"}:{height:4,width:"100%"}],activeSection:[I.activeSection,{background:D,selectors:(l={},l[Wa]={backgroundColor:"WindowText"},l)},b&&{transition:"width ".concat(wa," ").concat(xa)},y&&{background:R,selectors:(c={},c[Wa]={backgroundColor:"GrayText",borderColor:"GrayText"},c)}],inactiveSection:[I.inactiveSection,{background:T,selectors:(d={},d[Wa]={border:"1px solid WindowText"},d)},b&&{transition:"width ".concat(wa," ").concat(xa)},y&&{background:A,selectors:(u={},u[Wa]={borderColor:"GrayText"},u)}],zeroTick:[I.zeroTick,{position:"absolute",background:k.disabledBorder,selectors:(p={},p[Wa]={backgroundColor:"WindowText"},p)},e.disabled&&{background:k.disabledBackground,selectors:(m={},m[Wa]={backgroundColor:"GrayText"},m)},e.vertical?{width:"16px",height:"1px",transform:Sn(g)?"translateX(6px)":"translateX(-6px)"}:{width:"1px",height:"16px",transform:"translateY(-6px)"}],valueLabel:[I.valueLabel,{flexShrink:1,width:30,lineHeight:"1"},v?{margin:"0 auto",whiteSpace:"nowrap",width:40}:{margin:"0 8px",whiteSpace:"nowrap",width:40}]}}),void 0,{scope:"Slider"}),Fn((function(e){var t,n=e.semanticColors,r=n.disabledText,o=n.disabledBackground;return{backgroundColor:o,pointerEvents:"none",cursor:"default",color:r,selectors:(t={":after":{borderColor:o}},t[Wa]={color:"GrayText"},t)}}))),LI=Fn((function(e,t,n){var r,o,i,a=e.palette,s=e.semanticColors,l=e.effects,c=a.neutralSecondary,d=s.buttonText,u=s.buttonText,p=s.buttonBackgroundHovered,m=s.buttonBackgroundPressed;return _e({root:{outline:"none",display:"block",height:"50%",width:23,padding:0,backgroundColor:"transparent",textAlign:"center",cursor:"default",color:c,selectors:{"&.ms-DownButton":{borderRadius:"0 0 ".concat(l.roundedCorner2," 0")},"&.ms-UpButton":{borderRadius:"0 ".concat(l.roundedCorner2," 0 0")}}},rootHovered:{backgroundColor:p,color:d},rootChecked:{backgroundColor:m,color:u,selectors:(r={},r[Wa]={backgroundColor:"Highlight",color:"HighlightText"},r)},rootPressed:{backgroundColor:m,color:u,selectors:(o={},o[Wa]={backgroundColor:"Highlight",color:"HighlightText"},o)},rootDisabled:{opacity:.5,selectors:(i={},i[Wa]={color:"GrayText",opacity:1},i)},icon:{fontSize:8,marginTop:0,marginRight:0,marginBottom:0,marginLeft:0}},{},n)}));!function(e){e[e.down=-1]="down",e[e.notSpinning=0]="notSpinning",e[e.up=1]="up"}(HI||(HI={}));var VI=wn(),zI="SpinButton",WI={disabled:!1,label:"",step:1,labelPosition:Rs.start,incrementButtonIcon:{iconName:"ChevronUpSmall"},decrementButtonIcon:{iconName:"ChevronDownSmall"}},UI=function(){},KI=function(e,t){var n=t.min,r=t.max;return"number"===typeof r&&(e=Math.min(e,r)),"number"===typeof n&&(e=Math.max(e,n)),e},jI=u.forwardRef((function(e,t){var n=$o(WI,e),r=n.disabled,o=n.label,i=n.min,a=n.max,s=n.step,l=n.defaultValue,c=n.value,d=n.precision,p=n.labelPosition,m=n.iconProps,h=n.incrementButtonIcon,f=n.incrementButtonAriaLabel,g=n.decrementButtonIcon,y=n.decrementButtonAriaLabel,b=n.ariaLabel,C=n.ariaDescribedBy,S=n.upArrowButtonStyles,x=n.downArrowButtonStyles,k=n.theme,P=n.ariaPositionInSet,I=n.ariaSetSize,w=n.ariaValueNow,E=n.ariaValueText,_=n.className,D=n.inputProps,T=n.onDecrement,R=n.onIncrement,A=n.iconButtonProps,M=n.onValidate,N=n.onChange,F=n.styles,H=u.useRef(null),O=jl("input"),B=jl("Label"),L=u.useState(!1),V=L[0],z=L[1],W=u.useState(HI.notSpinning),U=W[0],K=W[1],j=Vl(),G=u.useMemo((function(){return null!==d&&void 0!==d?d:Math.max(function(e){var t=/[1-9]([0]+$)|\.([0-9]*)/.exec(String(e));return t?t[1]?-t[1].length:t[2]?t[2].length:0:0}(s),0)}),[d,s]),q=Ul(c,null!==l&&void 0!==l?l:String(i||0),N),Y=q[0],Z=q[1],J=u.useState(),Q=J[0],X=J[1],$=u.useRef({stepTimeoutHandle:-1,latestValue:void 0,latestIntermediateValue:void 0}).current;$.latestValue=Y,$.latestIntermediateValue=Q;var ee=Yl(c);u.useEffect((function(){c!==ee&&void 0!==Q&&X(void 0)}),[c,ee,Q]);var te=VI(F,{theme:k,disabled:r,isFocused:V,keyboardSpinDirection:U,labelPosition:p,className:_}),ne=qr(n,Gr,["onBlur","onFocus","className","onChange"]),re=u.useCallback((function(e){var t=$.latestIntermediateValue;if(void 0!==t&&t!==$.latestValue){var n=void 0;M?n=M(t,e):t&&t.trim().length&&!isNaN(Number(t))&&(n=String(KI(Number(t),{min:i,max:a}))),void 0!==n&&n!==$.latestValue&&Z(n,e)}X(void 0)}),[$,a,i,M,Z]),oe=u.useCallback((function(){$.stepTimeoutHandle>=0&&(j.clearTimeout($.stepTimeoutHandle),$.stepTimeoutHandle=-1),($.spinningByMouse||U!==HI.notSpinning)&&($.spinningByMouse=!1,K(HI.notSpinning))}),[$,U,j]),ie=u.useCallback((function(e,t){if(t.persist(),void 0!==$.latestIntermediateValue)return"keydown"!==t.type&&"mousedown"!==t.type||re(t),void j.requestAnimationFrame((function(){ie(e,t)}));var n=e($.latestValue||"",t);void 0!==n&&n!==$.latestValue&&Z(n,t);var r=$.spinningByMouse;$.spinningByMouse="mousedown"===t.type,$.spinningByMouse&&($.stepTimeoutHandle=j.setTimeout((function(){ie(e,t)}),r?75:400))}),[$,j,re,Z]),ae=u.useCallback((function(e){if(R)return R(e);var t=KI(Number(e)+Number(s),{max:a});return t=To(t,G),String(t)}),[G,a,R,s]),se=u.useCallback((function(e){if(T)return T(e);var t=KI(Number(e)-Number(s),{min:i});return t=To(t,G),String(t)}),[G,i,T,s]),le=u.useCallback((function(e){(r||e.which===$t||e.which===tn)&&oe()}),[r,oe]),ce=u.useCallback((function(e){ie(ae,e)}),[ae,ie]),de=u.useCallback((function(e){ie(se,e)}),[se,ie]);!function(e,t,n){u.useImperativeHandle(e.componentRef,(function(){return{get value(){return n},focus:function(){t.current&&t.current.focus()}}}),[t,n])}(n,H,Y),GI(n);var ue=!!Y&&!isNaN(Number(Y)),pe=(m||o)&&u.createElement("div",{className:te.labelWrapper},m&&u.createElement(gd,v({},m,{className:te.icon,"aria-hidden":"true"})),o&&u.createElement(Pf,{id:B,htmlFor:O,className:te.label,disabled:r},o));return u.createElement("div",{className:te.root,ref:t},p!==Rs.bottom&&pe,u.createElement("div",v({},ne,{className:te.spinButtonWrapper,"aria-label":b&&b,"aria-posinset":P,"aria-setsize":I,"data-ktp-target":!0}),u.createElement("input",v({value:null!==Q&&void 0!==Q?Q:Y,id:O,onChange:UI,onInput:function(e){X(e.target.value)},className:te.input,type:"text",autoComplete:"off",role:"spinbutton","aria-labelledby":o&&B,"aria-valuetext":null!==E&&void 0!==E?E:ue?void 0:Y,"aria-valuenow":w,"aria-valuemin":i,"aria-valuemax":a,"aria-describedby":C,onBlur:function(e){var t;re(e),z(!1),null===(t=n.onBlur)||void 0===t||t.call(n,e)},ref:H,onFocus:function(e){var t;H.current&&(($.spinningByMouse||U!==HI.notSpinning)&&oe(),H.current.select(),z(!0),null===(t=n.onFocus)||void 0===t||t.call(n,e))},onKeyDown:function(e){if(e.which!==$t&&e.which!==tn&&e.which!==Wt||(e.preventDefault(),e.stopPropagation()),r)oe();else{var t=HI.notSpinning;switch(e.which){case $t:t=HI.up,ie(ae,e);break;case tn:t=HI.down,ie(se,e);break;case Wt:re(e);break;case Gt:X(void 0)}U!==t&&K(t)}},onKeyUp:le,disabled:r,"aria-disabled":r,"data-lpignore":!0,"data-ktp-execute-target":!0},D)),u.createElement("span",{className:te.arrowButtonsContainer},u.createElement(mm,v({styles:LI(k,!0,S),className:"ms-UpButton",checked:U===HI.up,disabled:r,iconProps:h,onMouseDown:ce,onMouseLeave:oe,onMouseUp:oe,tabIndex:-1,ariaLabel:f,"data-is-focusable":!1},A)),u.createElement(mm,v({styles:LI(k,!1,x),className:"ms-DownButton",checked:U===HI.down,disabled:r,iconProps:g,onMouseDown:de,onMouseLeave:oe,onMouseUp:oe,tabIndex:-1,ariaLabel:y,"data-is-focusable":!1},A)))),p===Rs.bottom&&pe)}));jI.displayName=zI;var GI=function(e){ec({name:zI,props:e,mutuallyExclusive:{value:"defaultValue"}})},qI=(Jo(jI,(function(e){var t,n,r,o,i=e.theme,a=e.className,s=e.labelPosition,l=e.disabled,c=e.isFocused,d=i.palette,u=i.semanticColors,p=i.effects,m=i.fonts,h=u.inputBorder,f=u.inputBackground,g=u.inputBorderHovered,y=u.inputFocusBorderAlt,b=u.inputText,C=d.white,S=u.inputBackgroundChecked,x=u.disabledText;return{root:[m.medium,{outline:"none",width:"100%",minWidth:86},a],labelWrapper:[{display:"inline-flex",alignItems:"center"},s===Rs.start&&{height:32,float:"left",marginRight:10},s===Rs.end&&{height:32,float:"right",marginLeft:10},s===Rs.top&&{marginBottom:-1}],icon:[{padding:"0 5px",fontSize:Oi.large},l&&{color:x}],label:{pointerEvents:"none",lineHeight:Oi.large},spinButtonWrapper:[v(v({display:"flex",position:"relative",boxSizing:"border-box",height:32,minWidth:86},Ja(h,p.roundedCorner2,"border",0)),{":after":(t={borderWidth:"1px"},t[Wa]={borderColor:"GrayText"},t)}),(s===Rs.top||s===Rs.bottom)&&{width:"100%"},!l&&[{":hover:after":(n={borderColor:g},n[Wa]={borderColor:"Highlight"},n)},c&&{":hover:after, :after":(r={borderColor:y,borderWidth:"2px"},r[Wa]={borderColor:"Highlight"},r)}],l&&BI(i)],input:["ms-spinButton-input",{boxSizing:"border-box",boxShadow:"none",borderStyle:"none",flex:1,margin:0,fontSize:m.medium.fontSize,fontFamily:"inherit",color:b,backgroundColor:f,height:"100%",padding:"0 8px 0 9px",outline:0,display:"block",minWidth:61,whiteSpace:"nowrap",textOverflow:"ellipsis",overflow:"hidden",cursor:"text",userSelect:"text",borderRadius:"".concat(p.roundedCorner2," 0 0 ").concat(p.roundedCorner2)},!l&&{selectors:{"::selection":{backgroundColor:S,color:C,selectors:(o={},o[Wa]={backgroundColor:"Highlight",borderColor:"Highlight",color:"HighlightText"},o)}}},l&&BI(i)],arrowButtonsContainer:[{display:"block",height:"100%",cursor:"default"},l&&BI(i)]}}),void 0,{scope:"SpinButton"}),v);function YI(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var o=e;return o.isSlot?0===(n=u.Children.toArray(n)).length?o(t):o(v(v({},t),{children:n})):u.createElement.apply(u,C([e,t],n,!1))}function ZI(e,t){void 0===t&&(t={});var n=t.defaultProp,r=void 0===n?"children":n;return function(t,n,o,i,a){if(u.isValidElement(n))return n;var s=function(e,t){var n,r;"string"===typeof t||"number"===typeof t||"boolean"===typeof t?((n={})[e]=t,r=n):r=t;return r}(r,n),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 l=s[a];i.push(l&&l.className),qI(o,l)}return o.className=Ee([e,i],{rtl:Sn(t)}),o}(i,a,t,s);if(o){if(o.component){var c=o.component;return u.createElement(c,v({},l))}if(o.render)return o.render(l,e)}return u.createElement(e,v({},l))}}var JI=Fn((function(e){return ZI(e)}));function QI(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 XI(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 XI(e,t,n,r,o,i){return void 0!==e.create?e.create(t,n,r,o):JI(e)(t,n,r,o,i)}function $I(e,t){void 0===t&&(t={});var n=t.factoryOptions,r=(void 0===n?{}:n).defaultProp,o=function(n){var r=function(e,t,n){var r=["theme","styles","tokens"];return Gn.getSettings(n||r,e,t.customizations)}(t.displayName,u.useContext(qn),t.fields),o=t.state;o&&(n=v(v({},n),o(n)));var i=n.theme||r.theme,a=ew(n,i,t.tokens,r.tokens,n.tokens),s=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];return _e.apply(void 0,r.map((function(r){return"function"===typeof r?r(e,t,n):r})))}(n,i,a,t.styles,r.styles,n.styles),l=v(v({},n),{styles:s,tokens:a,_defaultStyles:s,theme:i});return e(l)};return o.displayName=t.displayName||e.name,r&&(o.create=ZI(o,{defaultProp:r})),qI(o,t.statics),o}function ew(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];for(var o={},i=0,a=n;i<a.length;i++){var s=a[i];s&&(s="function"===typeof s?s(e,t):s,Array.isArray(s)&&(s=ew.apply(void 0,C([e,t],s,!1))),qI(o,s))}return o}L("@fluentui/foundation-legacy","8.4.21");var tw={root:"ms-StackItem"},nw={start:"flex-start",end:"flex-end"},rw=$I((function(e){var t=e.children,n=qr(e,Ir);return null==t?null:YI(QI(e,{root:"div"}).root,v({},n),t)}),{displayName:"StackItem",styles:function(e,t,n){var r=e.grow,o=e.shrink,i=e.disableShrink,a=e.align,s=e.verticalFill,l=e.order,c=e.className,d=e.basis,u=void 0===d?"auto":d,p=os(tw,t);return{root:[t.fonts.medium,p.root,{flexBasis:u,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:nw[a]||a},l&&{order:l},c]}}}),ow=function(e,t){return t.spacing.hasOwnProperty(e)?t.spacing[e]:e},iw=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"}},aw=function(e,t){if(void 0===e||"number"===typeof e||""===e)return e;var n=e.split(" ");return n.length<2?ow(e,t):n.reduce((function(e,n){return ow(e,t)+" "+ow(n,t)}))},sw={start:"flex-start",end:"flex-end"},lw={root:"ms-Stack",inner:"ms-Stack-inner",child:"ms-Stack-child"};function cw(e,t){var n=t.disableShrink,r=t.enableScopedSelectors,o=t.doNotRenderFalsyValues,i=u.Children.toArray(e);return i=u.Children.map(i,(function(e){if(!e)return o?null:e;if(!u.isValidElement(e))return e;if(e.type===u.Fragment)return e.props.children?cw(e.props.children,{disableShrink:n,enableScopedSelectors:r,doNotRenderFalsyValues:o}):null;var t,i=e,a={};(t=e)&&"object"===typeof t&&t.type&&t.type.displayName===rw.displayName&&(a={shrink:!n});var s=i.props.className;return u.cloneElement(i,v(v(v(v({},a),i.props),s&&{className:s}),r&&{className:Wn(lw.child,s)}))}))}var dw,uw=$I((function(e){var t=e.as,n=void 0===t?"div":t,r=e.disableShrink,o=void 0!==r&&r,i=e.doNotRenderFalsyValues,a=void 0!==i&&i,s=e.enableScopedSelectors,l=void 0!==s&&s,c=e.wrap,d=y(e,["as","disableShrink","doNotRenderFalsyValues","enableScopedSelectors","wrap"]);Rt("Stack",e,{gap:"tokens.childrenGap",maxHeight:"tokens.maxHeight",maxWidth:"tokens.maxWidth",padding:"tokens.padding"});var u=cw(e.children,{disableShrink:o,enableScopedSelectors:l,doNotRenderFalsyValues:a}),p=qr(d,Ir),m=QI(e,{root:n,inner:"div"});return YI(m.root,v({},p),c?YI(m.inner,null,u):u)}),{displayName:"Stack",styles:function(e,t,n){var r,o,i,a,s,l,c,d,u,p,m,h,f,g=e.className,y=e.disableShrink,b=e.enableScopedSelectors,C=e.grow,S=e.horizontal,x=e.horizontalAlign,k=e.reversed,P=e.verticalAlign,I=e.verticalFill,w=e.wrap,E=os(lw,t),_=n&&n.childrenGap?n.childrenGap:e.gap,D=n&&n.maxHeight?n.maxHeight:e.maxHeight,T=n&&n.maxWidth?n.maxWidth:e.maxWidth,R=n&&n.padding?n.padding:e.padding,A=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:iw(ow(n[0],t)),columnGap:iw(ow(n[1],t))};var r=iw(ow(e,t));return{rowGap:r,columnGap:r}}(_,t),M=A.rowGap,N=A.columnGap,F="".concat(-.5*N.value).concat(N.unit),H="".concat(-.5*M.value).concat(M.unit),O={textOverflow:"ellipsis"},B="> "+(b?"."+lw.child:"*"),L=((r={})["".concat(B,":not(.").concat(tw.root,")")]={flexShrink:0},r);return w?{root:[E.root,{flexWrap:"wrap",maxWidth:T,maxHeight:D,width:"auto",overflow:"visible",height:"100%"},x&&(o={},o[S?"justifyContent":"alignItems"]=sw[x]||x,o),P&&(i={},i[S?"alignItems":"justifyContent"]=sw[P]||P,i),g,{display:"flex"},S&&{height:I?"100%":"auto"}],inner:[E.inner,(a={display:"flex",flexWrap:"wrap",marginLeft:F,marginRight:F,marginTop:H,marginBottom:H,overflow:"visible",boxSizing:"border-box",padding:aw(R,t),width:0===N.value?"100%":"calc(100% + ".concat(N.value).concat(N.unit,")"),maxWidth:"100vw"},a[B]=v({margin:"".concat(.5*M.value).concat(M.unit," ").concat(.5*N.value).concat(N.unit)},O),a),y&&L,x&&(s={},s[S?"justifyContent":"alignItems"]=sw[x]||x,s),P&&(l={},l[S?"alignItems":"justifyContent"]=sw[P]||P,l),S&&(c={flexDirection:k?"row-reverse":"row",height:0===M.value?"100%":"calc(100% + ".concat(M.value).concat(M.unit,")")},c[B]={maxWidth:0===N.value?"100%":"calc(100% - ".concat(N.value).concat(N.unit,")")},c),!S&&(d={flexDirection:k?"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:[E.root,(u={display:"flex",flexDirection:S?k?"row-reverse":"row":k?"column-reverse":"column",flexWrap:"nowrap",width:"auto",height:I?"100%":"auto",maxWidth:T,maxHeight:D,padding:aw(R,t),boxSizing:"border-box"},u[B]=O,u),y&&L,C&&{flexGrow:!0===C?1:C},x&&(p={},p[S?"justifyContent":"alignItems"]=sw[x]||x,p),P&&(m={},m[S?"alignItems":"justifyContent"]=sw[P]||P,m),S&&N.value>0&&(h={},h["".concat(B,k?":not(:last-child)":":not(:first-child)")]={marginLeft:"".concat(N.value).concat(N.unit)},h),!S&&M.value>0&&(f={},f["".concat(B,k?":not(:last-child)":":not(:first-child)")]={marginTop:"".concat(M.value).concat(M.unit)},f),g]}},statics:{Item:rw}});!function(e){e[e.Both=0]="Both",e[e.Header=1]="Header",e[e.Footer=2]="Footer"}(dw||(dw={}));var pw=function(e,t,n){return e<t&&!function(e,t,n){var r=n<0?0:n;return Math.abs(e-t)<=r}(e,t,n)};!function(e){function t(t){var n=e.call(this,t)||this;return n._root=u.createRef(),n._stickyContentTop=u.createRef(),n._stickyContentBottom=u.createRef(),n._nonStickyContent=u.createRef(),n._placeHolder=u.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){var r,o;if(n.root&&n.nonStickyContent){var i=n._getNonStickyDistanceFromTop(e),a=!1,s=!1,l=null===(o=null!==(r=n._getContext().window)&&void 0!==r?r:window)||void 0===o?void 0:o.document;if(n.canStickyTop){var c=i-n._getStickyDistanceFromTop(),d=e.scrollTop;a=pw(c,d,1)}n.canStickyBottom&&e.clientHeight-t.offsetHeight<=i&&(s=i-n._scrollUtils.getScrollTopInRange(e,1)>=n._getStickyDistanceFromTopForFooter(e,t)),(null===l||void 0===l?void 0:l.activeElement)&&n.nonStickyContent.contains(null===l||void 0===l?void 0:l.activeElement)&&(n.state.isStickyTop!==a||n.state.isStickyBottom!==s)?n._activeElement=null===l||void 0===l?void 0:l.activeElement:n._activeElement=void 0,n.setState({isStickyTop:n.canStickyTop&&a,isStickyBottom:s,distanceFromTop:i})}},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},Xr(n),n.state={isStickyTop:!1,isStickyBottom:!1,distanceFromTop:void 0},n._activeElement=void 0,n._scrollUtils=function(){var e=new Map;return{getScrollTopInRange:function(t,n){var r,o=t.scrollTop,i=null!==(r=e.get(t))&&void 0!==r?r:NaN;return i-n<=o&&i+n>=o?i:(e.set(t,o),o)}}}(),n}g(t,e),Object.defineProperty(t.prototype,"root",{get:function(){return this._root.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"placeholder",{get:function(){return this._placeHolder.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentTop",{get:function(){return this._stickyContentTop.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stickyContentBottom",{get:function(){return this._stickyContentBottom.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nonStickyContent",{get:function(){return this._nonStickyContent.current},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyTop",{get:function(){return this.props.stickyPosition===dw.Both||this.props.stickyPosition===dw.Header},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canStickyBottom",{get:function(){return this.props.stickyPosition===dw.Both||this.props.stickyPosition===dw.Footer},enumerable:!1,configurable:!0}),t.prototype.componentDidMount=function(){var e=this._getContext().scrollablePane;e&&(e.subscribe(this._onScrollEvent),e.addSticky(this))},t.prototype.componentWillUnmount=function(){var e=this._getContext().scrollablePane;e&&(e.unsubscribe(this._onScrollEvent),e.removeSticky(this))},t.prototype.componentDidUpdate=function(e,t){var n=this._getContext().scrollablePane;if(n){var r=this.state,o=r.isStickyBottom,i=r.isStickyTop,a=r.distanceFromTop,s=!1;t.distanceFromTop!==a&&(n.sortSticky(this,!0),s=!0),t.isStickyTop===i&&t.isStickyBottom===o||(this._activeElement&&this._activeElement.focus(),n.updateStickyRefHeights(),s=!0),s&&n.syncScrollSticky(this)}},t.prototype.shouldComponentUpdate=function(e,t){if(!this.context.scrollablePane)return!0;var n=this.state,r=n.isStickyTop,o=n.isStickyBottom,i=n.distanceFromTop;return r!==t.isStickyTop||o!==t.isStickyBottom||this.props.stickyPosition!==e.stickyPosition||this.props.children!==e.children||i!==t.distanceFromTop||mw(this._nonStickyContent,this._stickyContentTop)||mw(this._nonStickyContent,this._stickyContentBottom)||mw(this._nonStickyContent,this._placeHolder)},t.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?u.createElement("div",{ref:this._root},this.canStickyTop&&u.createElement("div",{ref:this._stickyContentTop,style:{pointerEvents:t?"auto":"none"}},u.createElement("div",{style:this._getStickyPlaceholderHeight(t)})),this.canStickyBottom&&u.createElement("div",{ref:this._stickyContentBottom,style:{pointerEvents:n?"auto":"none"}},u.createElement("div",{style:this._getStickyPlaceholderHeight(n)})),u.createElement("div",{style:this._getNonStickyPlaceholderHeightAndWidth(),ref:this._placeHolder},(t||n)&&u.createElement("span",{style:Qa},i),u.createElement("div",{ref:this._nonStickyContent,className:t||n?o:void 0,style:this._getContentStyles(t||n)},i))):u.createElement("div",null,this.props.children)},t.prototype.addSticky=function(e){this.nonStickyContent&&e.appendChild(this.nonStickyContent)},t.prototype.resetSticky=function(){this.nonStickyContent&&this.placeholder&&this.placeholder.appendChild(this.nonStickyContent)},t.prototype.setDistanceFromTop=function(e){var t=this._getNonStickyDistanceFromTop(e);this.setState({distanceFromTop:t})},t.prototype._getContentStyles=function(e){return{backgroundColor:this.props.stickyBackgroundColor||this._getBackground(),overflow:e?"hidden":""}},t.prototype._getStickyPlaceholderHeight=function(e){var t=this.nonStickyContent?this.nonStickyContent.offsetHeight:0;return{visibility:e?"hidden":"visible",height:e?0:t}},t.prototype._getNonStickyPlaceholderHeightAndWidth=function(){var e=this.state,t=e.isStickyTop,n=e.isStickyBottom;if(t||n){var r=0,o=0;return this.nonStickyContent&&this.nonStickyContent.firstElementChild&&(r=this.nonStickyContent.offsetHeight,o=this.nonStickyContent.firstElementChild.scrollWidth+(this.nonStickyContent.firstElementChild.offsetWidth-this.nonStickyContent.firstElementChild.clientWidth)),{height:r,width:o}}return{}},t.prototype._getBackground=function(){var e;if(this.root){for(var t=this.root,n=null!==(e=this._getContext().window)&&void 0!==e?e:window;"rgba(0, 0, 0, 0)"===n.getComputedStyle(t).getPropertyValue("background-color")||"transparent"===n.getComputedStyle(t).getPropertyValue("background-color");){if("HTML"===t.tagName)return;t.parentElement&&(t=t.parentElement)}return n.getComputedStyle(t).getPropertyValue("background-color")}},t.defaultProps={stickyPosition:dw.Both,isScrollSynced:!0},t.contextType=LP}(u.Component);function mw(e,t){return e&&t&&e.current&&t.current&&e.current.offsetHeight!==t.current.offsetHeight}var hw=wn(),fw=function(e){var t=Pg(e);return"ffffff"===(null===t||void 0===t?void 0:t.hex)},gw=Fn((function(e,t,n,r,o,i,a,s,l){var c=lm(e);return De({root:["ms-Button",c.root,n,t,a&&["is-checked",c.rootChecked],i&&["is-disabled",c.rootDisabled],!i&&!a&&{selectors:{":hover":c.rootHovered,":focus":c.rootFocused,":active":c.rootPressed}},i&&a&&[c.rootCheckedDisabled],!i&&a&&{selectors:{":hover":c.rootCheckedHovered,":active":c.rootCheckedPressed}}],flexContainer:["ms-Button-flexContainer",c.flexContainer]})})),vw={left:-2,top:-2,bottom:-2,right:-2,border:"none",outlineColor:"ButtonText"},yw=Jo((function(e){var t=e.item,n=e.idPrefix,r=void 0===n?e.id:n,o=e.isRadio,i=e.selected,a=void 0!==i&&i,s=e.disabled,l=void 0!==s&&s,c=e.styles,d=e.circle,p=void 0===d||d,m=e.color,h=e.onClick,f=e.onHover,g=e.onFocus,y=e.onMouseEnter,b=e.onMouseMove,C=e.onMouseLeave,S=e.onWheel,x=e.onKeyDown,k=e.height,P=e.width,I=e.borderWidth,w=hw(c,{theme:e.theme,disabled:l,selected:a,circle:p,isWhite:fw(m),height:k,width:P,borderWidth:I}),E=function(e){var t,n=w.svg;return u.createElement("svg",{className:n,role:"img","aria-label":e.label,viewBox:"0 0 20 20",fill:null===(t=Pg(e.color))||void 0===t?void 0:t.str},p?u.createElement("circle",{cx:"50%",cy:"50%",r:"50%"}):u.createElement("rect",{width:"100%",height:"100%"}))},_=o?{role:"radio","aria-checked":a,selected:void 0}:{role:"gridcell",selected:a};return u.createElement(Km,v({item:t,id:"".concat(r,"-").concat(t.id,"-").concat(t.index),key:t.id,disabled:l},_,{onRenderItem:function(t){var n=e.onRenderColorCellContent;return(void 0===n?E:n)(t,E)},onClick:h,onHover:f,onFocus:g,label:t.label,className:w.colorCell,getClassNames:gw,index:t.index,onMouseEnter:y,onMouseMove:b,onMouseLeave:C,onWheel:S,onKeyDown:x}))}),(function(e){var t,n,r,o,i,a,s=e.theme,l=e.disabled,c=e.selected,d=e.circle,u=e.isWhite,p=e.height,m=void 0===p?20:p,h=e.width,f=void 0===h?20:h,g=e.borderWidth,v=s.semanticColors,y=s.palette,b=y.neutralLighter,C=y.neutralLight,S=y.neutralSecondary,x=y.neutralTertiary,k=g||(f<24?2:4);return{colorCell:[Ya(s,{inset:-1,position:"relative",highContrastStyle:vw}),{backgroundColor:v.bodyBackground,padding:0,position:"relative",boxSizing:"border-box",display:"inline-block",cursor:"pointer",userSelect:"none",borderRadius:0,border:"none",height:m,width:f,verticalAlign:"top","forced-color-adjust":"none"},!d&&{selectors:(t={},t[".".concat(io," &:focus::after, :host(.").concat(io,") &:focus::after")]={outlineOffset:"".concat(k-1,"px")},t)},d&&{borderRadius:"50%",selectors:(n={},n[".".concat(io," &:focus::after, :host(.").concat(io,") &:focus::after")]={outline:"none",borderColor:v.focusBorder,borderRadius:"50%",left:-k,right:-k,top:-k,bottom:-k,selectors:(r={},r[Wa]={outline:"1px solid ButtonText"},r)},n)},c&&{padding:2,border:"".concat(k,"px solid ").concat(C),selectors:(o={},o["&:hover::before"]={content:'""',height:m,width:f,position:"absolute",top:-k,left:-k,borderRadius:d?"50%":"default",boxShadow:"inset 0 0 0 1px ".concat(S)},o)},!c&&{selectors:(i={},i["&:hover, &:active, &:focus"]={backgroundColor:v.bodyBackground,padding:2,border:"".concat(k,"px solid ").concat(b)},i["&:focus"]={borderColor:v.bodyBackground,padding:0,selectors:{":hover":{borderColor:s.palette.neutralLight,padding:2}}},i)},l&&{color:v.disabledBodyText,pointerEvents:"none",opacity:.3},u&&!c&&{backgroundColor:x,padding:1,selectors:(a={},a[Wa]={outline:"1px solid ButtonText"},a)}],svg:[{width:"100%",height:"100%"},d&&{borderRadius:"50%"}]}}),void 0,{scope:"ColorPickerGridCell"},!0),bw=wn(),Cw="SwatchColorPicker";var Sw=u.forwardRef((function(e,t){var n=jl("swatchColorPicker"),r=e.id||n,o=ic(),i=zl({isNavigationIdle:!0,cellFocused:!1,navigationIdleTimeoutId:void 0,navigationIdleDelay:250}),a=Jl(),s=a.setTimeout,l=a.clearTimeout;!function(e){ec({name:Cw,props:e,mutuallyExclusive:{focusOnHover:"onHover",selectedId:"defaultSelectedId"},deprecations:{isControlled:"selectedId' or 'defaultSelectedId",onColorChanged:"onChange"}})}(e);var c=e.colorCells,d=e.cellShape,p=void 0===d?"circle":d,m=e.columnCount,h=e.shouldFocusCircularNavigate,f=void 0===h||h,g=e.className,y=e.disabled,b=void 0!==y&&y,C=e.doNotContainWithinFocusZone,S=e.styles,x=e.cellMargin,k=void 0===x?10:x,P=e.defaultSelectedId,I=e.focusOnHover,w=e.mouseLeaveParentSelector,E=e.onChange,_=e.onColorChanged,D=e.onCellHovered,T=e.onCellFocused,R=e.getColorGridCellStyles,A=e.cellHeight,M=e.cellWidth,N=e.cellBorderWidth,F=e.onRenderColorCellContent,H=u.useMemo((function(){return c.map((function(e,t){return v(v({},e),{index:t})}))}),[c]),O=u.useCallback((function(e,t){var n,r=null===(n=c.filter((function(e){return e.id===t}))[0])||void 0===n?void 0:n.color;null===E||void 0===E||E(e,t,r),null===_||void 0===_||_(t,r)}),[E,_,c]),B=Ul(e.selectedId,P,O),L=B[0],V=B[1],z=bw(S,{theme:e.theme,className:g,cellMargin:k}),W={root:z.root,tableCell:z.tableCell,focusedContainer:z.focusedContainer},U=c.length<=m,K=u.useCallback((function(e){T&&(i.cellFocused=!1,T(void 0,void 0,e))}),[i,T]),j=u.useCallback((function(e){return I?(i.isNavigationIdle&&!b&&e.currentTarget.focus(),!0):!i.isNavigationIdle||!!b}),[I,i,b]),G=u.useCallback((function(e){if(!I)return!i.isNavigationIdle||!!b;var t=e.currentTarget;return!i.isNavigationIdle||o&&t===o.activeElement||t.focus(),!0}),[I,i,b,o]),q=u.useCallback((function(e){var t,n=w;if(I&&n&&i.isNavigationIdle&&!b)for(var r=null!==(t=null===o||void 0===o?void 0:o.querySelectorAll(n))&&void 0!==t?t:[],a=0;a<r.length;a+=1)if(r[a].contains(e.currentTarget)){if(r[a].setActive)try{r[a].setActive()}catch(mE){}else r[a].focus();break}}),[b,I,i,w,o]),Y=u.useCallback((function(e,t){D&&(e?D(e.id,e.color,t):D(void 0,void 0,t))}),[D]),Z=u.useCallback((function(e,t){if(T)return e?(i.cellFocused=!0,T(e.id,e.color,t)):(i.cellFocused=!1,T(void 0,void 0,t))}),[i,T]),J=u.useCallback((function(e,t){b||e.disabled||e.id!==L&&(T&&i.cellFocused&&(i.cellFocused=!1,T(void 0,void 0,t)),V(e.id,t))}),[b,i,T,L,V]),Q=u.useCallback((function(){i.isNavigationIdle||void 0===i.navigationIdleTimeoutId?i.isNavigationIdle=!1:(l(i.navigationIdleTimeoutId),i.navigationIdleTimeoutId=void 0),i.navigationIdleTimeoutId=s((function(){i.isNavigationIdle=!0}),i.navigationIdleDelay)}),[l,i,s]),X=u.useCallback((function(e){e.which!==$t&&e.which!==tn&&e.which!==Xt&&e.which!==en||Q()}),[Q]),$=function(e){return u.createElement(yw,{item:e,idPrefix:r,color:e.color,styles:R,disabled:b||e.disabled,onClick:J,onHover:Y,onFocus:Z,selected:L===e.id,circle:"circle"===p,label:e.label,onMouseEnter:j,onMouseMove:G,onMouseLeave:q,onWheel:Q,onKeyDown:X,onRenderColorCellContent:F,height:A,width:M,borderWidth:N,isRadio:U})};if(c.length<1||m<1)return null;return u.createElement(Lm,v({},e,{ref:t,id:r,items:H,columnCount:m,isSemanticRadio:U,onRenderItem:function(t,n){var r=e.onRenderColorCell;return(void 0===r?$:r)(t,$)},shouldFocusCircularNavigate:f,doNotContainWithinFocusZone:C,onBlur:K,theme:e.theme,styles:W}))}));Sw.displayName=Cw;var xw={focusedContainer:"ms-swatchColorPickerBodyContainer"},kw=(Jo(Sw,(function(e){var t=e.className,n=e.theme;return{root:{margin:"8px 0",borderCollapse:"collapse"},tableCell:{padding:e.cellMargin/2},focusedContainer:[os(xw,n).focusedContainer,{clear:"both",display:"block",minWidth:"180px"},t]}}),void 0,{scope:"SwatchColorPicker"}),wn()),Pw=u.forwardRef((function(e,t){var n,r,o,i,a,s,l,c=u.useRef(null),d=pr(),p=Gl(c,t),m=jl("teaching-bubble-content-"),h=jl("teaching-bubble-title-"),f=null!==(n=e.ariaDescribedBy)&&void 0!==n?n:m,g=null!==(r=e.ariaLabelledBy)&&void 0!==r?r:h,y=e.illustrationImage,b=e.primaryButtonProps,C=e.secondaryButtonProps,S=e.headline,x=e.hasCondensedHeadline,k=e.hasCloseButton,P=void 0===k?e.hasCloseIcon:k,I=e.onDismiss,w=e.closeButtonAriaLabel,E=e.hasSmallHeadline,_=e.isWide,D=e.styles,T=e.theme,R=e.footerContent,A=e.focusTrapZoneProps,M=kw(D,{theme:T,hasCondensedHeadline:x,hasSmallHeadline:E,hasCloseButton:P,hasHeadline:!!S,isWide:_,primaryButtonClassName:b?b.className:void 0,secondaryButtonClassName:C?C.className:void 0});if(ql(d,"keydown",u.useCallback((function(e){I&&e.which===Gt&&I(e)}),[I])),y&&y.src&&(o=u.createElement("div",{className:M.imageContent},u.createElement(cd,v({},y)))),S){var N="string"===typeof S?"p":"div";i=u.createElement("div",{className:M.header},u.createElement(N,{role:"heading","aria-level":3,className:M.headline,id:g},S))}if(e.children){var F="string"===typeof e.children?"p":"div";a=u.createElement("div",{className:M.body},u.createElement(F,{className:M.subText,id:f},e.children))}return(b||C||R)&&(s=u.createElement(uw,{className:M.footer,horizontal:!0,horizontalAlign:R?"space-between":"end"},u.createElement(uw.Item,{align:"center"},u.createElement("span",null,R)),u.createElement(uw.Item,null,b&&u.createElement(hm,v({},b,{className:M.primaryButton})),C&&u.createElement(sm,v({},C,{className:M.secondaryButton}))))),P&&(l=u.createElement(mm,{className:M.closeButton,iconProps:{iconName:"Cancel"},ariaLabel:w,onClick:I})),function(e,t){u.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,c),u.createElement("div",{className:M.content,ref:p,role:"dialog",tabIndex:-1,"aria-labelledby":g,"aria-describedby":f,"data-is-focusable":!0},o,u.createElement(Kc,v({isClickableOutsideFocusTrap:!0},A),u.createElement("div",{className:M.bodyContent},i,a,s,l)))})),Iw={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"},ww=Fn((function(){return Me({"0%":{opacity:0,animationTimingFunction:xa,transform:"scale3d(.90,.90,.90)"},"100%":{opacity:1,transform:"scale3d(1,1,1)"}})})),Ew=function(e,t){var n=t||{},r=n.calloutWidth,o=n.calloutMaxWidth;return[{display:"block",maxWidth:364,border:0,outline:"transparent",width:r||"calc(100% + 1px)",animationName:"".concat(ww()),animationDuration:"300ms",animationTimingFunction:"linear",animationFillMode:"both"},e&&{maxWidth:o||456}]},_w=function(e,t,n){return t?[e.headerIsCondensed,{marginBottom:14}]:[n&&e.headerIsSmall,!n&&e.headerIsLarge,{selectors:{":not(:last-child)":{marginBottom:14}}}]},Dw=function(e){var t,n,r,o=e.hasCondensedHeadline,i=e.hasSmallHeadline,a=e.hasCloseButton,s=e.hasHeadline,l=e.isWide,c=e.primaryButtonClassName,d=e.secondaryButtonClassName,u=e.theme,p=e.calloutProps,m=void 0===p?{className:void 0,theme:u}:p,h=!o&&!i,f=u.palette,g=u.semanticColors,v=u.fonts,y=os(Iw,u),b=Ya(u,{outlineColor:"transparent",borderColor:"transparent"});return{root:[y.root,v.medium,m.className],body:[y.body,a&&!s&&{marginRight:24},{selectors:{":not(:last-child)":{marginBottom:20}}}],bodyContent:[y.bodyContent,{padding:"20px 24px 20px 24px"}],closeButton:[y.closeButton,{position:"absolute",right:0,top:0,margin:"15px 15px 0 0",borderRadius:0,color:f.white,fontSize:v.small.fontSize,selectors:{":hover":{background:f.themeDarkAlt,color:f.white},":active":{background:f.themeDark,color:f.white},":focus":{border:"1px solid ".concat(g.variantBorder)}}}],content:C(C([y.content],Ew(l),!0),[l&&{display:"flex"}],!1),footer:[y.footer,{display:"flex",flex:"auto",alignItems:"center",color:f.white,selectors:(t={},t[".".concat(y.button,":not(:first-child)")]={marginLeft:10},t)}],header:C(C([y.header],_w(y,o,i),!0),[a&&{marginRight:24},(o||i)&&[v.medium,{fontWeight:Hi.semibold}]],!1),headline:[y.headline,{margin:0,color:f.white,fontWeight:Hi.semibold,overflowWrap:"break-word"},h&&[{fontSize:v.xLarge.fontSize}]],imageContent:[y.header,y.image,l&&{display:"flex",alignItems:"center",maxWidth:154}],primaryButton:[y.primaryButton,c,b,{backgroundColor:f.white,borderColor:f.white,color:f.themePrimary,whiteSpace:"nowrap",selectors:(n={},n[".".concat(y.buttonLabel)]=v.medium,n[":hover"]={backgroundColor:f.themeLighter,borderColor:f.themeLighter,color:f.themeDark},n[":focus"]={backgroundColor:f.themeLighter,border:"1px solid ".concat(f.black),color:f.themeDark,outline:"1px solid ".concat(f.white),outlineOffset:"-2px"},n[":active"]={backgroundColor:f.white,borderColor:f.white,color:f.themePrimary},n)}],secondaryButton:[y.secondaryButton,d,b,{backgroundColor:f.themePrimary,borderColor:f.white,whiteSpace:"nowrap",selectors:(r={},r[".".concat(y.buttonLabel)]=[v.medium,{color:f.white}],r[":hover"]={backgroundColor:f.themeDarkAlt,borderColor:f.white},r[":focus"]={backgroundColor:f.themeDark,border:"1px solid ".concat(f.black),outline:"1px solid ".concat(f.white),outlineOffset:"-2px"},r[":active"]={backgroundColor:f.themePrimary,borderColor:f.white},r)}],subText:[y.subText,{margin:0,fontSize:v.medium.fontSize,color:f.white,fontWeight:Hi.regular}],subComponentStyles:{callout:{root:C(C([],Ew(l,m),!0),[v.medium],!1),beak:[{background:f.themePrimary}],calloutMain:[{background:f.themePrimary}]}}}},Tw=Jo(Pw,Dw,void 0,{scope:"TeachingBubbleContent"}),Rw={beakWidth:16,gapSpace:0,setInitialFocus:!0,doNotLayer:!1,directionalHint:$s},Aw=wn(),Mw=u.forwardRef((function(e,t){var n=u.useRef(null),r=Gl(n,t),o=e.calloutProps,i=e.targetElement,a=e.onDismiss,s=e.hasCloseButton,l=void 0===s?e.hasCloseIcon:s,c=e.isWide,d=e.styles,p=e.theme,m=e.target,h=u.useMemo((function(){return v(v(v({},Rw),o),{theme:p})}),[o,p]),f=Aw(d,{theme:p,isWide:c,calloutProps:h,hasCloseButton:l}),g=f.subComponentStyles?f.subComponentStyles.callout:void 0;return function(e,t){u.useImperativeHandle(e,(function(){return{focus:function(){var e;return null===(e=t.current)||void 0===e?void 0:e.focus()}}}),[t])}(e.componentRef,n),u.createElement(Wc,v({target:m||i,onDismiss:a},h,{className:f.root,styles:g,hideOverflow:!0}),u.createElement("div",{ref:r},u.createElement(Tw,v({},e))))}));Mw.displayName="TeachingBubble";var Nw,Fw,Hw;Jo(Mw,Dw,void 0,{scope:"TeachingBubble"}),$I((function(e){if(null==e.children)return null;e.block,e.className;var t=e.as,n=void 0===t?"span":t,r=(e.variant,e.nowrap,y(e,["block","className","as","variant","nowrap"]));return YI(QI(e,{root:n}).root,v({},qr(r,Ir)))}),{displayName:"Text",styles:function(e,t){var n=e.as,r=e.className,o=e.block,i=e.nowrap,a=e.variant,s=t.fonts,l=t.semanticColors,c=s[a||"medium"];return{root:[c,{color:c.color||l.bodyText,display:o?"td"===n?"table-cell":"block":"inline",mozOsxFontSmoothing:c.MozOsxFontSmoothing,webkitFontSmoothing:c.WebkitFontSmoothing},i&&{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},r]}}}),function(){function e(){}e.setSlot=function(t,n,r,o,i){if(void 0===r&&(r=!1),void 0===o&&(o=!1),void 0===i&&(i=!0),t.color||!t.value)if(i){var a=void 0;if("string"===typeof n){if(!(a=Pg(n)))throw new Error("color is invalid in setSlot(): "+n)}else a=n;e._setSlot(t,a,r,o,i)}else t.color&&e._setSlot(t,t.color,r,o,i)},e.insureSlots=function(t,n){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(!o.inherits&&!o.value){if(!o.color)throw new Error("A color slot rule that does not inherit must provide its own color.");e._setSlot(o,o.color,n,!1,!1)}}},e.getThemeAsJson=function(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];t[r.name]=r.color?r.color.str:r.value||""}return t},e.getThemeAsCode=function(t){return e._makeRemainingCode("loadTheme({\n  palette: {\n",t)},e.getThemeAsCodeWithCreateTheme=function(t){return e._makeRemainingCode("const myTheme = createTheme({\n  palette: {\n",t)},e.getThemeAsSass=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n],o=r.name.charAt(0).toLowerCase()+r.name.slice(1);t+=qo('${0}Color: "[theme: {1}, default: {2}]";\n',o,o,r.color?r.color.str:r.value||"")}return t},e.getThemeForPowerShell=function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r.value)continue;var o=r.name.charAt(0).toLowerCase()+r.name.slice(1),i=r.color?"#"+r.color.hex:r.value||"";r.color&&r.color.a&&100!==r.color.a&&(i+=String(r.color.a.toString(16))),t+=qo('"{0}" = "{1}";\n',o,i)}return"@{\n"+t+"}"},e._setSlot=function(t,n,r,o,i){if(void 0===i&&(i=!0),(t.color||!t.value)&&(i||!t.color||!t.isCustomized||!t.inherits)){!i&&t.isCustomized||o||!t.inherits||!Og(t.asShade)?(t.color=n,t.isCustomized=!0):(t.isBackgroundShade?t.color=function(e,t,n){if(void 0===n&&(n=!1),!e)return null;if(t===_g.Unshaded||!Og(t))return e;var r={h:e.h,s:e.s,v:e.v},o=t-1;return kg(mt(hg((r=n?Lg(r,Tg[Ag.length-1-o]):Bg(r,Dg[o])).h,r.s,r.v),{a:e.a}))}(n,t.asShade,r):t.color=Vg(n,t.asShade,r),t.isCustomized=!1);for(var a=0,s=t.dependentRules;a<s.length;a++){var l=s[a];e._setSlot(l,t.color,r,!1,i)}}},e._makeRemainingCode=function(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];e+=qo("    {0}: '{1}',\n",r.name.charAt(0).toLowerCase()+r.name.slice(1),r.color?"#"+r.color.hex:r.value||"")}return e+="  }});"}}();!function(e){e[e.primaryColor=0]="primaryColor",e[e.backgroundColor=1]="backgroundColor",e[e.foregroundColor=2]="foregroundColor"}(Nw||(Nw={})),function(e){e[e.themePrimary=0]="themePrimary",e[e.themeLighterAlt=1]="themeLighterAlt",e[e.themeLighter=2]="themeLighter",e[e.themeLight=3]="themeLight",e[e.themeTertiary=4]="themeTertiary",e[e.themeSecondary=5]="themeSecondary",e[e.themeDarkAlt=6]="themeDarkAlt",e[e.themeDark=7]="themeDark",e[e.themeDarker=8]="themeDarker",e[e.neutralLighterAlt=9]="neutralLighterAlt",e[e.neutralLighter=10]="neutralLighter",e[e.neutralLight=11]="neutralLight",e[e.neutralQuaternaryAlt=12]="neutralQuaternaryAlt",e[e.neutralQuaternary=13]="neutralQuaternary",e[e.neutralTertiaryAlt=14]="neutralTertiaryAlt",e[e.neutralTertiary=15]="neutralTertiary",e[e.neutralSecondaryAlt=16]="neutralSecondaryAlt",e[e.neutralSecondary=17]="neutralSecondary",e[e.neutralPrimaryAlt=18]="neutralPrimaryAlt",e[e.neutralPrimary=19]="neutralPrimary",e[e.neutralDark=20]="neutralDark",e[e.black=21]="black",e[e.white=22]="white"}(Fw||(Fw={})),function(e){e[e.bodyBackground=0]="bodyBackground",e[e.bodyText=1]="bodyText",e[e.disabledBackground=2]="disabledBackground",e[e.disabledText=3]="disabledText"}(Hw||(Hw={}));var Ow=/^((1[0-2]|0?[1-9]):([0-5][0-9]):([0-5][0-9])\s([AaPp][Mm]))$/,Bw=/^((1[0-2]|0?[1-9]):[0-5][0-9]\s([AaPp][Mm]))$/,Lw=/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9]$/,Vw=/^([0-1]?[0-9]|2[0-3]):[0-5][0-9]$/;(function(e){var t=e.label,n=e.increments,r=void 0===n?30:n,o=e.showSeconds,i=void 0!==o&&o,a=e.allowFreeform,s=void 0===a||a,l=e.useHour12,c=void 0!==l&&l,d=e.timeRange,p=e.strings,m=void 0===p?function(e,t){var n=e?"12-hour":"24-hour",r="hh:mm".concat(t?":ss":"").concat(e?" AP":"");return{invalidInputErrorMessage:"Enter a valid time in the ".concat(n," format: ").concat(r),timeOutOfBoundsErrorMessage:"Please enter a time within the range of {0} and {1}"}}(c,i):p,h=e.defaultValue,f=e.value,g=e.dateAnchor,b=e.onChange,C=e.onFormatDate,S=e.onValidateUserInput,x=e.onValidationResult,k=y(e,["label","increments","showSeconds","allowFreeform","useHour12","timeRange","strings","defaultValue","value","dateAnchor","onChange","onFormatDate","onValidateUserInput","onValidationResult"]),P=u.useState(""),I=P[0],w=P[1],E=u.useState(),_=E[0],D=E[1],T=u.useState(""),R=T[0],A=T[1],M=zl(new Date),N=Ul(f,h),F=N[0],H=N[1],O=Uw(r,d),B=g||f||h||M,L=u.useMemo((function(){return zw(B,"start",r,d)}),[B,r,d]),V=u.useMemo((function(){return zw(B,"end",r,d)}),[B,r,d]),z=u.useMemo((function(){for(var e=Array(O),t=0;t<O;t++)e[t]=0;return e.map((function(e,t){var n=function(e,t){var n=new Date(e.getTime());return n.setTime(n.getTime()+t*jm.MinutesInOneHour*jm.MillisecondsIn1Sec),n}(L,r*t);n.setSeconds(0);var o=Ch(n,i,c);return{key:o,text:C?C(n):o,data:n}}))}),[L,r,O,i,C,c]);u.useEffect((function(){if(F&&!isNaN(F.valueOf())){var e=Ch(F,i,c),t=z.find((function(t){return t.key===e}));D(null===t||void 0===t?void 0:t.key),w(t?t.text:e)}else D(null),w("")}),[F,z,C,i,c]);var W=u.useCallback((function(e,t,n,r){var o,a="";if(r&&s&&!t&&(C?S&&(a=S(r)):a=function(e){var t="";if((c?i?Ow:Bw:i?Lw:Vw).test(e)){if(d&&m.timeOutOfBoundsErrorMessage){var n=bh(c,L,e);(n<L||n>V)&&(t=qo(m.timeOutOfBoundsErrorMessage,L.toString(),V.toString()))}}else t=m.invalidInputErrorMessage;return t}(r)),x&&R!==a&&x(e,{errorMessage:a}),a||void 0!==r&&!r.length){var l=r||(null===t||void 0===t?void 0:t.text)||"";w(l),H(a?new Date("invalid"):void 0),o=new Date("invalid")}else{var u=void 0;if((null===t||void 0===t?void 0:t.data)instanceof Date)u=t.data;else{l=(null===t||void 0===t?void 0:t.key)||r||"";u=bh(c,L,l)}H(u),o=u}null===b||void 0===b||b(e,o),A(a)}),[d,L,V,s,C,S,i,c,m.invalidInputErrorMessage,m.timeOutOfBoundsErrorMessage,H,x,b,R]);return u.createElement(Hv,v({},k,{allowFreeform:s,selectedKey:_,label:t,errorMessage:R,options:z,onChange:W,text:I,onKeyPress:function(e){var t=e.charCode;C||t>=rn&&t<=on||t===qt||t===an||t===ln||t===cn||e.preventDefault()},useComboBoxAsMenuWidth:!0}))}).displayName="TimePicker";var zw=function(e,t,n,r){var o=new Date(e.getTime());if(r){var i=Ww(r),a="start"===t?i.start:i.end;o.getHours()!==a&&o.setHours(a)}else"end"===t&&o.setDate(o.getDate()+1);return o.setMinutes(0),o.setSeconds(0),o.setMilliseconds(0),function(e,t){var n=new Date(e.getTime()),r=n.getMinutes();if(jm.MinutesInOneHour%t)n.setMinutes(0);else{for(var o=jm.MinutesInOneHour/t,i=1;i<=o;i++)if(r>t*(i-1)&&r<=t*i){r=t*i;break}n.setMinutes(r)}return n}(o,n)},Ww=function(e){return{start:Math.min(Math.max(e.start,0),23),end:Math.min(Math.max(e.end,0),23)}},Uw=function(e,t){var n=function(e){var t=jm.HoursInOneDay;if(e){var n=Ww(e);n.start>n.end?t=jm.HoursInOneDay-e.start-e.end:e.end>e.start&&(t=e.end-e.start)}return t}(t);return Math.floor(jm.MinutesInOneHour*n/e)},Kw=wn(),jw="Toggle",Gw=u.forwardRef((function(e,t){var n=e.as,r=void 0===n?"div":n,o=e.ariaLabel,i=e.checked,a=e.className,s=e.defaultChecked,l=void 0!==s&&s,c=e.disabled,d=e.inlineLabel,p=e.label,m=e.offAriaLabel,h=e.offText,f=e.onAriaLabel,g=e.onChange,y=e.onChanged,b=e.onClick,C=e.onText,S=e.role,x=e.styles,k=e.theme,P=Ul(i,l,u.useCallback((function(e,t){null===g||void 0===g||g(e,t),null===y||void 0===y||y(t)}),[g,y])),I=P[0],w=P[1],E=Kw(x,{theme:k,className:a,disabled:c,checked:I,inlineLabel:d,onOffMissing:!C&&!h}),_=I?f:m,D=jl(jw,e.id),T="".concat(D,"-label"),R="".concat(D,"-stateText"),A=I?C:h,M=qr(e,Mr,["defaultChecked"]),N=void 0;o||_||(p&&(N=T),A&&!N&&(N=R));var F=u.useRef(null);fo(F),qw(e,I,F),ec({name:jw,props:e,deprecations:{offAriaLabel:void 0,onAriaLabel:"ariaLabel",onChanged:"onChange"},mutuallyExclusive:{checked:"defaultChecked"}});var H={root:{className:E.root,hidden:M.hidden},label:{children:p,className:E.label,htmlFor:D,id:T},container:{className:E.container},pill:v(v({},M),{"aria-disabled":c,"aria-checked":I,"aria-label":o||_,"aria-labelledby":N,className:E.pill,"data-is-focusable":!0,"data-ktp-target":!0,disabled:c,id:D,onClick:function(e){c||(w(!I,e),b&&b(e))},ref:F,role:S||"switch",type:"button"}),thumb:{className:E.thumb},stateText:{children:A,className:E.text,htmlFor:D,id:R}};return u.createElement(r,v({ref:t},H.root),p&&u.createElement(Pf,v({},H.label)),u.createElement("div",v({},H.container),u.createElement("button",v({},H.pill),u.createElement("span",v({},H.thumb))),(I&&C||h)&&u.createElement(Pf,v({},H.stateText))))}));Gw.displayName="ToggleBase";var qw=function(e,t,n){u.useImperativeHandle(e.componentRef,(function(){return{get checked(){return!!t},focus:function(){n.current&&n.current.focus()}}}),[t,n])},Yw=(Jo(Gw,(function(e){var t,n,r,o,i,a,s,l=e.theme,c=e.className,d=e.disabled,u=e.checked,p=e.inlineLabel,m=e.onOffMissing,h=l.semanticColors,f=l.palette,g=h.bodyBackground,y=h.inputBackgroundChecked,b=h.inputBackgroundCheckedHovered,C=f.neutralDark,S=h.disabledBodySubtext,x=h.smallInputBorder,k=h.inputForegroundChecked,P=h.disabledBodySubtext,I=h.disabledBackground,w=h.smallInputBorder,E=h.inputBorderHovered,_=h.disabledBodySubtext,D=h.disabledText;return{root:["ms-Toggle",u&&"is-checked",!d&&"is-enabled",d&&"is-disabled",l.fonts.medium,{marginBottom:"8px"},p&&{display:"flex",alignItems:"center"},c],label:["ms-Toggle-label",{display:"inline-block"},d&&{color:D,selectors:(t={},t[Wa]={color:"GrayText"},t)},p&&!m&&{marginRight:16},m&&p&&{order:1,marginLeft:16},p&&{wordBreak:"break-word"}],container:["ms-Toggle-innerContainer",{display:"flex",position:"relative"}],pill:["ms-Toggle-background",Ya(l,{inset:-3}),{fontSize:"20px",boxSizing:"border-box",width:40,height:20,borderRadius:10,transition:"all 0.1s ease",border:"1px solid ".concat(w),background:g,cursor:"pointer",display:"flex",alignItems:"center",padding:"0 3px",overflow:"visible"},!d&&[!u&&{selectors:{":hover":[{borderColor:E}],":hover .ms-Toggle-thumb":[{backgroundColor:C,selectors:(n={},n[Wa]={borderColor:"Highlight"},n)}]}},u&&[{background:y,borderColor:"transparent",justifyContent:"flex-end"},{selectors:(r={":hover":[{backgroundColor:b,borderColor:"transparent",selectors:(o={},o[Wa]={backgroundColor:"Highlight"},o)}]},r[Wa]=v({backgroundColor:"Highlight"},{forcedColorAdjust:"none",MsHighContrastAdjust:"none"}),r)}]],d&&[{cursor:"default"},!u&&[{borderColor:_}],u&&[{backgroundColor:S,borderColor:"transparent",justifyContent:"flex-end"}]],!d&&{selectors:{"&:hover":{selectors:(i={},i[Wa]={borderColor:"Highlight"},i)}}}],thumb:["ms-Toggle-thumb",{display:"block",width:12,height:12,borderRadius:"50%",transition:"all 0.1s ease",backgroundColor:x,borderColor:"transparent",borderWidth:6,borderStyle:"solid",boxSizing:"border-box"},!d&&u&&[{backgroundColor:k,selectors:(a={},a[Wa]={backgroundColor:"Window",borderColor:"Window"},a)}],d&&[!u&&[{backgroundColor:P}],u&&[{backgroundColor:I}]]],text:["ms-Toggle-stateText",{selectors:{"&&":{padding:"0",margin:"0 8px",userSelect:"none",fontWeight:Hi.regular}}},d&&{selectors:{"&&":{color:D,selectors:(s={},s[Wa]={color:"GrayText"},s)}}}]}}),void 0,{scope:"Toggle"}),v(v({},ph),{prevWeekAriaLabel:"Previous week",nextWeekAriaLabel:"Next week",prevMonthAriaLabel:"Go to previous month",nextMonthAriaLabel:"Go to next month",prevYearAriaLabel:"Go to previous year",nextYearAriaLabel:"Go to next year",closeButtonAriaLabel:"Close date picker"})),Zw={leftNavigation:"ChevronLeft",rightNavigation:"ChevronRight"},Jw=wn(),Qw=function(e){function t(t){var n=e.call(this,t)||this;n._dayGrid=u.createRef(),n._onSelectDate=function(e){var t=n.props.onSelectDate;n.setState({selectedDate:e}),n._focusOnUpdate=!0,t&&t(e)},n._onNavigateDate=function(e,t){var r=n.props.onNavigateDate;n.setState({navigatedDate:e}),n._focusOnUpdate=t,r&&r(e)},n._renderPreviousWeekNavigationButton=function(e){var t,r=n.props,o=r.minDate,i=r.firstDayOfWeek,a=r.navigationIcons,s=n.state.navigatedDate,l=Sn()?a.rightNavigation:a.leftNavigation,c=!o||eh(o,ih(s,i))<0;return u.createElement("button",{className:Wn(e.navigationIconButton,(t={},t[e.disabledStyle]=!c,t)),disabled:!c,"aria-disabled":!c,onClick:c?n._onSelectPrevDateRange:void 0,onKeyDown:c?n._onButtonKeyDown(n._onSelectPrevDateRange):void 0,title:n._createPreviousWeekAriaLabel(),type:"button"},u.createElement(gd,{iconName:l}))},n._renderNextWeekNavigationButton=function(e){var t,r=n.props,o=r.maxDate,i=r.firstDayOfWeek,a=r.navigationIcons,s=n.state.navigatedDate,l=Sn()?a.leftNavigation:a.rightNavigation,c=!o||eh(Gm(ih(s,i),7),o)<0;return u.createElement("button",{className:Wn(e.navigationIconButton,(t={},t[e.disabledStyle]=!c,t)),disabled:!c,"aria-disabled":!c,onClick:c?n._onSelectNextDateRange:void 0,onKeyDown:c?n._onButtonKeyDown(n._onSelectNextDateRange):void 0,title:n._createNextWeekAriaLabel(),type:"button"},u.createElement(gd,{iconName:l}))},n._onSelectPrevDateRange=function(){n.props.showFullMonth?n._navigateDate(Ym(n.state.navigatedDate,-1)):n._navigateDate(Gm(n.state.navigatedDate,-7))},n._onSelectNextDateRange=function(){n.props.showFullMonth?n._navigateDate(Ym(n.state.navigatedDate,1)):n._navigateDate(Gm(n.state.navigatedDate,7))},n._navigateDate=function(e){n.setState({navigatedDate:e}),n.props.onNavigateDate&&n.props.onNavigateDate(e)},n._onWrapperKeyDown=function(e){switch(e.which){case Wt:case Vt:e.preventDefault()}},n._onButtonKeyDown=function(e){return function(t){if(t.which===Wt)e()}},n._onTouchStart=function(e){var t=e.touches[0];t&&(n._initialTouchX=t.clientX)},n._onTouchMove=function(e){var t=Sn(),r=e.touches[0];r&&void 0!==n._initialTouchX&&r.clientX!==n._initialTouchX&&((r.clientX-n._initialTouchX)*(t?-1:1)<0?n._onSelectNextDateRange():n._onSelectPrevDateRange(),n._initialTouchX=void 0)},n._createPreviousWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,i=n.state.navigatedDate,a=void 0;if(r&&t.prevMonthAriaLabel)a=t.prevMonthAriaLabel+" "+t.months[Ym(i,-1).getMonth()];else if(!r&&t.prevWeekAriaLabel){var s=ih(Gm(i,-7),o),l=Gm(s,6);a=t.prevWeekAriaLabel+" "+n._formatDateRange(s,l)}return a},n._createNextWeekAriaLabel=function(){var e=n.props,t=e.strings,r=e.showFullMonth,o=e.firstDayOfWeek,i=n.state.navigatedDate,a=void 0;if(r&&t.nextMonthAriaLabel)a=t.nextMonthAriaLabel+" "+t.months[Ym(i,1).getMonth()];else if(!r&&t.nextWeekAriaLabel){var s=ih(Gm(i,7),o),l=Gm(s,6);a=t.nextWeekAriaLabel+" "+n._formatDateRange(s,l)}return a},n._formatDateRange=function(e,t){var r=n.props,o=r.dateTimeFormatter,i=r.strings;return"".concat(null===o||void 0===o?void 0:o.formatMonthDayYear(e,i)," - ").concat(null===o||void 0===o?void 0:o.formatMonthDayYear(t,i))},Xr(n);var r=t.initialDate&&!isNaN(t.initialDate.getTime())?t.initialDate:t.today||new Date;return n.state={selectedDate:r,navigatedDate:r,previousShowFullMonth:!!t.showFullMonth,animationDirection:t.animationDirection},n._focusOnUpdate=!1,n}return g(t,e),t.getDerivedStateFromProps=function(e,t){var n=e.initialDate&&!isNaN(e.initialDate.getTime())?e.initialDate:e.today||new Date,r=!!e.showFullMonth,o=r!==t.previousShowFullMonth?wh.Vertical:wh.Horizontal;return $m(n,t.selectedDate)?{selectedDate:n,navigatedDate:t.navigatedDate,previousShowFullMonth:r,animationDirection:o}:{selectedDate:n,navigatedDate:n,previousShowFullMonth:r,animationDirection:o}},t.prototype.focus=function(){this._dayGrid&&this._dayGrid.current&&this._dayGrid.current.focus()},t.prototype.render=function(){var e=this.props,t=e.strings,n=e.dateTimeFormatter,r=e.firstDayOfWeek,o=e.minDate,i=e.maxDate,a=e.restrictedDates,s=e.today,l=e.styles,c=e.theme,d=e.className,p=e.showFullMonth,m=e.weeksToShow,h=y(e,["strings","dateTimeFormatter","firstDayOfWeek","minDate","maxDate","restrictedDates","today","styles","theme","className","showFullMonth","weeksToShow"]),f=Jw(l,{theme:c,className:d});return u.createElement("div",{className:f.root,onKeyDown:this._onWrapperKeyDown,onTouchStart:this._onTouchStart,onTouchMove:this._onTouchMove,"aria-expanded":p},this._renderPreviousWeekNavigationButton(f),u.createElement(Th,v({styles:l,componentRef:this._dayGrid,strings:t,selectedDate:this.state.selectedDate,navigatedDate:this.state.navigatedDate,firstDayOfWeek:r,firstWeekOfYear:Wm.FirstDay,dateRangeType:Um.Day,weeksToShow:p?m:1,dateTimeFormatter:n,minDate:o,maxDate:i,restrictedDates:a,onSelectDate:this._onSelectDate,onNavigateDate:this._onNavigateDate,today:s,lightenDaysOutsideNavigatedMonth:p,animationDirection:this.state.animationDirection},h)),this._renderNextWeekNavigationButton(f))},t.prototype.componentDidUpdate=function(){this._focusOnUpdate&&(this.focus(),this._focusOnUpdate=!1)},t.defaultProps={onSelectDate:void 0,initialDate:void 0,today:new Date,firstDayOfWeek:Vm.Sunday,strings:Yw,navigationIcons:Zw,dateTimeFormatter:uh,animationDirection:wh.Horizontal},t}(u.Component),Xw={root:"ms-WeeklyDayPicker-root"},$w=(Jo(Qw,(function(e){var t,n=e.className,r=e.theme,o=r.palette,i=os(Xw,r);return{root:[i.root,ks,{width:220,padding:12,boxSizing:"content-box",display:"flex",alignItems:"center",flexDirection:"row"},n],dayButton:{borderRadius:"100%"},dayIsToday:{},dayCell:{borderRadius:"100%!important"},daySelected:{},navigationIconButton:[Ya(r,{inset:0}),{width:12,minWidth:12,height:0,overflow:"hidden",padding:0,margin:0,border:"none",display:"flex",alignItems:"center",backgroundColor:o.neutralLighter,fontSize:Fi.small,fontFamily:"inherit",selectors:(t={},t[".".concat(i.root,":hover &, .").concat(io," .").concat(i.root,":focus &, :host(.").concat(io,") .").concat(i.root,":focus &, ")+".".concat(io," &:focus, :host(.").concat(io,") &:focus")]={height:53,minHeight:12,overflow:"initial"},t[".".concat(io," .").concat(i.root,":focus-within &, :host(.").concat(io,") .").concat(i.root,":focus-within &")]={height:53,minHeight:12,overflow:"initial"},t["&:hover"]={cursor:"pointer",backgroundColor:o.neutralLight},t["&:active"]={backgroundColor:o.neutralTertiary},t)}],disabledStyle:{selectors:{"&, &:disabled, & button":{color:o.neutralTertiaryAlt,pointerEvents:"none"}}}}}),void 0,{scope:"WeeklyDayPicker"}),u.createContext(void 0));var eE=function(){var e=u.useContext($w),t=gr(["theme"]).theme;return e||t||Va({})},tE=0,nE={reset:function(){ne.getInstance().onReset((function(){return tE++}))},getId:function(){return tE},renderStyles:function(e,t){return Te(Array.isArray(e)?e:[e],t)},renderFontFace:function(e,t){return Ae(e)},renderKeyframes:function(e){return Me(e)}};var rE=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=ur();s&&(s.__id__=s.__id__||Cr(),i=s.__id__,n.has(i)||(n.add(i),s.addEventListener("unload",r)));var l=eE();a=a||l;var c=nE.getId(),d=[i,c,a],p=function(e,t){var n,r,o,i=t[0],a=t[1],s=t[2];return null===(o=null===(r=null===(n=e.get(i))||void 0===n?void 0:n.get(a))||void 0===r?void 0:r.get(s))||void 0===o?void 0:o.classMap}(t,d);if(u.useEffect((function(){return function(e,t){var n,r,o=t[0],i=t[1],a=t[2],s=null===(r=null===(n=e.get(o))||void 0===n?void 0:n.get(i))||void 0===r?void 0:r.get(a);s&&s.refCount++}(t,[i,c,a]),function(){return function(e,t){var n,r,o,i,a,s,l,c,d=t[0],u=t[1],p=t[2],m=null===(r=null===(n=e.get(d))||void 0===n?void 0:n.get(u))||void 0===r?void 0:r.get(p);m&&(m.refCount--,0===m.refCount&&(null===(i=null===(o=e.get(d))||void 0===o?void 0:o.get(u))||void 0===i||i.delete(p),0===(null===(s=null===(a=e.get(d))||void 0===a?void 0:a.get(u))||void 0===s?void 0:s.size)&&(null===(l=e.get(d))||void 0===l||l.delete(u),0===(null===(c=e.get(d))||void 0===c?void 0:c.size)&&e.delete(d))))}(t,[i,c,a])}}),[i,c,a]),!p){var m=function(e){return"function"===typeof e}(e)?e(a):e;p=nE.renderStyles(m,{targetWindow:s,rtl:!!a.rtl}),function(e,t,n){var r,o,i=t[0],a=t[1],s=t[2],l=null!==(r=e.get(i))&&void 0!==r?r:new Map;e.set(i,l);var c=null!==(o=l.get(a))&&void 0!==o?o:new Map;l.set(a,c),c.set(s,{classMap:n,refCount:0})}(t,d,p)}return p}}((function(e){var t=e.semanticColors,n=e.fonts;return{body:[{color:t.bodyText,background:t.bodyBackground,fontFamily:n.medium.fontFamily,fontWeight:n.medium.fontWeight,fontSize:n.medium.fontSize,MozOsxFontSmoothing:n.medium.MozOsxFontSmoothing,WebkitFontSmoothing:n.medium.WebkitFontSmoothing}]}}));function oE(e){var t=rE(e),n=e.className,r=e.applyTo;!function(e,t){var n,r="body"===e.applyTo,o=null===(n=pr())||void 0===n?void 0:n.body;u.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=Wn(n,t.root,"element"===r&&t.body)}var iE=function(e){var t=e.customizerContext,n=e.ref,r=e.theme,o=e.as||"div",i="string"===typeof e.as?Zr(e.as,e):e.as===u.Fragment?{children:e.children}:function(e,t){var n={};for(var r in e)-1===t.indexOf(r)&&e.hasOwnProperty(r)&&(n[r]=e[r]);return n}(e,["as"]);return u.createElement($w.Provider,{value:r},u.createElement(qn.Provider,{value:t},u.createElement(xo,{providerRef:n},u.createElement(o,v({},i)))))},aE=new Map,sE=function(e){var t=e.theme,n=eE(),r=e.theme=u.useMemo((function(){var e=pi(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||aE.get(i);a||(a=Cr(""),aE.set(i,a)),n.push(a)}}return n.join("-")}(n,t),e}),[n,t]);e.customizerContext=u.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")},lE=u.forwardRef((function(e,t){var n=function(e,t){var n=$o(t,e);return sE(n),{state:n,render:iE}}(e,{ref:Gl(t,u.useRef(null)),as:"div",applyTo:"element"}),r=n.render,o=n.state;return oE(o),r(o)}));lE.displayName="ThemeProvider";var cE=function(e){function t(t){var n=e.call(this,t)||this;return n.optionsListContainerSelector="#pidlddc-div-pagebodycontents .pidlddc-div-paymentMethod",n.embeddedAddPIContainerSelectorRoot="pidlddc-div-embeddedAddPi_",n.addPIContainerBusyBlockRoot="pidlddc-div-busyblock_",n.selectResourceTypeRef=d.default.createRef(),n.addResourceRefs={},n.onErrorShowEditAddressForm=function(e){var t,r=null===(t=null===e||void 0===e?void 0:e.error)||void 0===t?void 0:t.errors;r&&r.some((function(e){var t,r=e.propertyName;if(r&&("address_line1"===r||"address_line2"===r||"address_line3"===r||"city"===r||"region"===r||"postal_code"===r)){var o=n.state.selectedPm,i=o.family,a=o.type,s=n.getEmbeddedAddPiContainerId(i,a),l="".concat(n.optionsListContainerSelector," div#").concat(s),c=null!==(t=document.querySelector(l))&&void 0!==t?t:document,d=c.querySelector("#pidlddc-text-editAddressText")||c.querySelector("#pidlddc-button-editAddressText"),u=c.querySelector("#pidlddc-div-billingAddressShowGroup"),p=c.querySelector("#pidlddc-div-billingAddressEditGroup");d&&p&&u&&M(d,u,p)}}))},n.getSelectResourceTypeProps=function(){var e,t=F(n.props.returnOptions,null===(e=n.props.displayOptions)||void 0===e?void 0:e.busyBlockShowHideHandler);return v(v({},n.props),{returnOptions:t,displayOptions:v(v({},n.props.displayOptions),{disableFocusOnLoad:n.state.disableFocusOnLoad}),ref:n.selectResourceTypeRef,onEvent:n.selectResourceTypeEventHandler,telemetryOptions:n.addParentOperationIdToTelemetryOptions(n.props.telemetryOptions,n.state.parentOperationId),options:void 0})},n.getAddResourceProps=function(e,t){var r,o=d.default.createRef(),i=F(n.props.returnOptions,null===(r=n.props.displayOptions)||void 0===r?void 0:r.busyBlockShowHideHandler);return n.addResourceRefs[n.getAddResourceRefKey(e,t)]=o,v(v({},n.props),{ref:o,returnOptions:i,displayOptions:v(v({},n.props.displayOptions),{disableFocusOnLoad:n.state.disableFocusOnLoad}),pidlDocInfo:v(v({},n.props.pidlDocInfo),{parameters:v(v({},n.props.pidlDocInfo.parameters),{family:e,type:t})}),telemetryOptions:n.addParentOperationIdToTelemetryOptions(n.props.telemetryOptions,n.state.parentOperationId),onEvent:n.addResourceEventHandler})},n.selectResourceTypeEventHandler=function(e,t){var r,o,i,a,s=!0,l=null===(r=n.props.displayOptions)||void 0===r?void 0:r.busyBlockShowHideHandler,c=R.internal.constants.eventNames;if(!l||e!==c.pidlDownloading&&e!==c.inputSubmitting||l(!0),e==R.internal.constants.eventNames.pageRendered){var d=document.querySelectorAll("#pidlddc-div-pagebodycontents");if(d&&d.length>0){var u=null===(o=d[0])||void 0===o?void 0:o.children,p=void 0;u&&u.length>0&&(p=null===(i=u[0])||void 0===i?void 0:i.textContent),p&&n.setState({modalAriaMessage:p})}}if(e===R.internal.constants.eventNames.selectionChanged){var m=null===(a=n.selectResourceTypeRef.current.getSelectedResource())||void 0===a?void 0:a.id,h=null===m||void 0===m?void 0:m.paymentMethodFamily,f=null===m||void 0===m?void 0:m.paymentMethodType;s=h&&f,n.setState({selectedPm:{family:h,type:f}})}n.props.onEvent&&s&&n.props.onEvent(e,t)},n.addResourceEventHandler=function(e,t){var r,o,i=null===(r=n.props.displayOptions)||void 0===r?void 0:r.busyBlockShowHideHandler,a=R.internal.constants.eventNames;e===a.error&&n.onErrorShowEditAddressForm(t),!i||e!==a.pageRendered&&e!==a.inputSubmitted||i(!1),e!==R.internal.constants.eventNames.pageRendered&&e!==R.internal.constants.eventNames.pageRefreshed||n.setState({addResourceRendered:!0}),e===R.internal.constants.eventNames.propertySelected&&n.setState({disableFocusOnLoad:!1,lastFocusedElementId:null===(o=document.activeElement)||void 0===o?void 0:o.id}),n.props.onEvent&&n.props.onEvent(e,t)},n.showAddPiForm=function(e,t){var r=n.getPmId(e,t),o=n.getEmbeddedAddPiContainerId(e,t),i=document.querySelector("".concat(n.optionsListContainerSelector," div#").concat(o));if(document.querySelectorAll("".concat(n.optionsListContainerSelector,' div[id^="').concat(n.embeddedAddPIContainerSelectorRoot,'"]')).forEach((function(e){return e.style.display="none"})),i)i.style.display="block";else{var a=document.querySelector("".concat(n.optionsListContainerSelector,' input[type="radio"][id$="').concat(r,'"]'));if(a&&a.parentElement){if(n.props.busyBlockElement){var s=document.createElement("div");s.id=n.addPIContainerBusyBlockRoot+o,a.parentElement.appendChild(s)}var l=document.createElement("div");l.id=o,a.parentElement.appendChild(l);var c=d.default.createElement(w,v({},n.getAddResourceProps(e,t)));m.default.render(c,l)}}},n.addParentOperationIdToTelemetryOptions=function(e,t){return v(v({},e),{contextData:v(v({},null===e||void 0===e?void 0:e.contextData),{parentOperationId:n.state.parentOperationId})})},n.getPmId=function(e,t){return e+"_"+t.replace(/\s|,/g,"_")},n.getEmbeddedAddPiContainerId=function(e,t){var r=n.getPmId(e,t);return n.embeddedAddPIContainerSelectorRoot+r},n.getAddResourceRefKey=function(e,t){return"".concat(e,"_").concat(t)},n.moveNextPage=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)];(null===o||void 0===o?void 0:o.current)&&o.current.moveNextPage()},n.movePrevPage=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)];(null===o||void 0===o?void 0:o.current)&&o.current.movePrevPage()},n.cancel=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)];(null===o||void 0===o?void 0:o.current)&&o.current.cancel()},n.getNextButtonProps=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)],i=null,a=null;(null===o||void 0===o?void 0:o.current)&&(a=o.current.getPidlExternalControlPropsMap()),a&&a[R.internal.constants.supportedPidlActions.next]?i=a[R.internal.constants.supportedPidlActions.next]:a&&a[R.internal.constants.supportedPidlActions.submit]&&(i=a[R.internal.constants.supportedPidlActions.submit]);var s=null===i||void 0===i?void 0:i.displayContent;return s&&n.localizedStringFound(s,"Next")?{displayContent:s,type:R.internal.constants.supportedPidlActions.next}:i},n.getPrevButtonProps=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)],i=null,a=null;return(null===o||void 0===o?void 0:o.current)&&(a=o.current.getPidlExternalControlPropsMap()),a&&a[R.internal.constants.supportedPidlActions.prev]?i=a[R.internal.constants.supportedPidlActions.prev]:a&&a[R.internal.constants.supportedPidlActions.gohome]&&(i=a[R.internal.constants.supportedPidlActions.gohome]),i},n.getCancelButtonProps=function(){var e=n.state.selectedPm,t=e.family,r=e.type,o=n.addResourceRefs[n.getAddResourceRefKey(t,r)],i=null,a=null;return(null===o||void 0===o?void 0:o.current)&&(a=o.current.getPidlExternalControlPropsMap()),a&&a[R.internal.constants.supportedPidlActions.gohome]&&(i=a[R.internal.constants.supportedPidlActions.gohome]),i},n.getSelectResourceTypeExternalControlPropsMap=function(){var e;return(null===(e=n.selectResourceTypeRef)||void 0===e?void 0:e.current)?n.selectResourceTypeRef.current.getPidlExternalControlPropsMap():null},n.localizedStringFound=function(e,t){var r,o;if(e===t)return!0;var i=null===(r=n.props.pidlDocInfo.parameters.language)||void 0===r?void 0:r.toLowerCase(),a=(i=null!==(o={"chr-cher-us":"en-us"}[i])&&void 0!==o?o:i)?H[i]:null;return!(!a||a[t]!==e)},n.state={addResourceRendered:!1,selectedPm:{family:"",type:""},parentOperationId:R.internal.utils.guid(),modalAriaMessage:"",lastFocusedElementId:void 0,disableFocusOnLoad:n.props.displayOptions.disableFocusOnLoad},n}return g(t,e),t.prototype.render=function(){return d.default.createElement(d.default.Fragment,null,d.default.createElement("style",null," ",'\n                // Targets the embedded Add PIs inside each radio buttons.\n                #pidlddc-div-pagebodycontents div[id^="'.concat(this.embeddedAddPIContainerSelectorRoot,'"] {\n                    margin-left: 24px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup {\n                    flex-wrap: wrap;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup label#pidlddc-label-expiryGroup {\n                    display: block;\n                    width: 100%;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup .pidlddc-div-textbox {\n                    width: 60px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup #pidlddc-text-expiryDelimiter {\n                    margin: 6px 7px 0 8px;\n                }\n\n                #pidlddc-div-pagesubmitblock {\n                    width: 92.5%;\n                    background-color: rgb(255, 255, 255);\n                    padding-top: 10px;\n                    padding-bottom: 10px;\n\n                }\n\n                #pidlddc-div-pagesubmitblock .ms-Button, .pidlddc-ns-panel .pidlddc-submitGroup .ms-Button {\n                    width: 180px;\n                    margin-right: 10px;\n                }\n\n                /* Allows click events for links inside the radio button to work, for example the "privacy statement" link */\n                #pidlddc-div-pagebodycontents .pidlddc-div-paymentMethod .ms-ChoiceField-input {\n                    height: fit-content;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-microsoftPrivacyTextGroup {\n                    margin-top: 10px;\n                }\n                #pidlddc-div-pagebodycontents #pidlddc-text-paymentSummaryText {\n                    margin-bottom: 10px;\n                }\n\n                #pidlddc-div-pagebodycontents div[id^="').concat(this.embeddedAddPIContainerSelectorRoot,"\"] div.pidlddc-logoBlock {\n                    display: none; // Hides the credit card logos in Add PI.\n                }\n\n                /* hides duplicate header for pm types */\n                #pidlddc-div-pagebodycontents #pidlddc-text-paymentOptionText {\n                    display: none;\n                }\n\n                /* hides the duplicate logos for credit card */\n                #pidlddc-div-pagebodycontents .pidlddc-logo-image {\n                    display: none;\n                }\n\n                /* margins for the pm logo containers */\n                #pidlddc-div-pagebodycontents #pidlddc-div-multiplePaymentMethodLogosRowOneGroup {\n                    margin: 9px 6px 0 24px;\n                }\n\n                /* set height of pm logos so they aren't 0px by 0px */\n                #pidlddc-div-pagebodycontents #pidlddc-div-multiplePaymentMethodLogosRowOneGroup img {\n                    height: 32px;\n                    margin-right: 8px;\n                    width: 50px;\n                }\n\n                /* move container for logos below the pm type label */\n                #pidlddc-div-pagebodycontents .pidlddc-div-paymentMethod .ms-ChoiceField .ms-ChoiceField-input + div {\n                    align-items: flex-start;\n                    flex-direction: column;\n                }\n\n                /* alipay QR code */\n                #pidlddc-div-pagebodycontents #pidlddc-image-alipayQrCodeChallengeImage {\n                  width: 229px;\n                  height: 230px;\n                }\n            \n                /* Add spacing between all text fields except for first stack item (logo block) */\n                #pidlddc-div-pagebodycontents #pidlddc-div-pagebodycontents > .ms-StackItem ~ .ms-StackItem {\n                    padding-top: 7px;\n                }\n            ")),N(),d.default.createElement("div",{tabIndex:-1,"aria-label":this.state.modalAriaMessage},d.default.createElement(md,{iconName:"SingleColumnEdit",style:{display:"none"}}),d.default.createElement(_,v({},this.getSelectResourceTypeProps()))))},t.prototype.componentDidUpdate=function(e,t){var n=this,r=this.state.selectedPm,o=r.family,i=r.type,a=this.state.addResourceRendered;if(o&&i&&(o!=t.selectedPm.family||i!=t.selectedPm.type)&&this.showAddPiForm(o,i),a&&a!=t.addResourceRendered){var s=this.getEmbeddedAddPiContainerId(o,i),l=document.querySelector("".concat(this.optionsListContainerSelector," div#").concat(s));l.style.display="none";var c,d="".concat(this.optionsListContainerSelector," div#").concat(s),u=this.props.busyBlockElement;u&&(c=document.getElementById(this.addPIContainerBusyBlockRoot+s)),c&&m.default.render(u,c),setTimeout((function(){var e;if(A(d),n.setState({addResourceRendered:!1}),l.style.display="block",n.state.lastFocusedElementId&&!n.state.disableFocusOnLoad){var t=(null!==(e=document.querySelector(d))&&void 0!==e?e:document).querySelector("#".concat(n.state.lastFocusedElementId));t&&t.focus()}c&&(c.style.display="none",c.remove())}),100)}},t}(d.default.Component),dE=function(e){function t(t){var n=e.call(this,t)||this;return n.optionsListContainerSelector="#pidlddc-div-pagebodycontents",n.updateResourceRef=d.default.createRef(),n.busyCounter={count:0},n.getUpdateResourceProps=function(){var e,t=F(n.props.returnOptions,null===(e=n.props.displayOptions)||void 0===e?void 0:e.busyBlockShowHideHandler);return v(v({},n.props),{ref:n.updateResourceRef,returnOptions:t,displayOptions:v({},n.props.displayOptions),onEvent:n.updateResourceEventHandler})},n.updateResourceEventHandler=function(e,t){var r,o=null===(r=n.props.displayOptions)||void 0===r?void 0:r.busyBlockShowHideHandler,i=R.internal.constants.eventNames;!o||e!==i.pidlDownloading&&e!==i.inputSubmitting||o(!0),!o||e!==i.pageRendered&&e!==i.inputSubmitted||o(!1),e===R.internal.constants.eventNames.pageRendered&&n.setState({updateResourceRendered:!0}),n.props.onEvent&&n.props.onEvent(e,t)},n.moveNextPage=function(){var e;(null===(e=n.updateResourceRef)||void 0===e?void 0:e.current)&&n.updateResourceRef.current.moveNextPage()},n.movePrevPage=function(){var e;(null===(e=n.updateResourceRef)||void 0===e?void 0:e.current)&&n.updateResourceRef.current.movePrevPage()},n.cancel=function(){var e;(null===(e=n.updateResourceRef)||void 0===e?void 0:e.current)&&n.updateResourceRef.current.cancel()},n.state={updateResourceRendered:!1},n}return g(t,e),t.prototype.render=function(){return d.default.createElement(d.default.Fragment,null,d.default.createElement("style",null," ","\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryAndCvvAddGroup, #pidlddc-div-expiryAndCvvUpdateGroup {\n                    align-items: flex-end;\n                }\n                \n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup {\n                    flex-wrap: wrap;\n                }\n                \n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup label#pidlddc-label-expiryGroup {\n                    display: block;\n                    width: 100%;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup .pidlddc-div-textbox {\n                    width: 60px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-expiryGroup #pidlddc-text-expiryDelimiter {\n                    margin: 6px 7px 0 8px;\n                }\n                \n                #pidlddc-div-pagesubmitblock {\n                    width: 92.5%;\n                    background-color: rgb(255, 255, 255);\n                    padding-top: 10px;\n                    padding-bottom: 10px;    \n                }\n\n                #pidlddc-div-pagesubmitblock .ms-Button, .pidlddc-ns-panel .pidlddc-submitGroup .ms-Button {\n                    width: 180px;\n                    margin-right: 10px;\n                }\n\n                #pidlddc-div-pagebodycontents #pidlddc-div-microsoftPrivacyTextGroup {\n                    margin-top: 10px;\n                }\n                \n                #pidlddc-div-pagebodycontents #pidlddc-text-paymentSummaryText  {\n                    margin-bottom: 10px;\n                }\n                \n                /* Add spacing between all text fields */\n                #pidlddc-div-pagebodycontents > .ms-StackItem {\n                    padding-top: 7px;\n                }\n            "),N(),d.default.createElement(D,v({},this.getUpdateResourceProps())))},t.prototype.componentDidUpdate=function(e,t){var n=this.state.updateResourceRendered;n&&n!=t.updateResourceRendered&&setTimeout(A,100,this.optionsListContainerSelector)},t}(d.default.Component),uE=function(e){function t(t){var n=e.call(this,t)||this;return n.selectResourceRef=d.default.createRef(),n.getSelectResourceProps=function(){return v(v({},n.props),{ref:n.selectResourceRef})},n.getSelectedResource=function(){var e,t=null===(e=n.selectResourceRef)||void 0===e?void 0:e.current;if(t)return t.getSelectedResource()},n.moveNextPage=function(){var e,t=null===(e=n.selectResourceRef)||void 0===e?void 0:e.current;t&&t.moveNextPage()},n.movePrevPage=function(){var e,t=null===(e=n.selectResourceRef)||void 0===e?void 0:e.current;t&&t.movePrevPage()},n.cancel=function(){var e,t=null===(e=n.selectResourceRef)||void 0===e?void 0:e.current;t&&t.cancel()},n}return g(t,e),t.prototype.render=function(){return d.default.createElement(d.default.Fragment,null,d.default.createElement("style",null,'\n                    /* Container for each pi item "row" */\n                    #pidlddc-div-pagebodycontents .ms-ChoiceField {\n                        height: 65px;\n                        outline: 1px solid transparent;\n                        border-radius: 4px;\n                        background-color: rgba(0, 0, 0, 0.03);\n                        padding: 14px 16px;\n                    }\n\n                    /* Wraps all content inside each pi choice "row" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .ms-ChoiceField-wrapper {\n                        flex: 1;\n                    }\n\n                    /* Wraps all content to the right of the radio button in each pi choice "row" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container {\n                        flex: 1;\n                        align-items: center;\n                    }\n\n                    /* Targets container of all pi choice text aka "Visa **1234" and "Exp 01/2021" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container .ms-StackItem:nth-child(2) {\n                        flex: 1;\n                    }\n\n                    /* First line of text for each pi choice aka "Visa **1234" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container span[id^="pidlddc-text-optionPaymentText_part1_"] {\n                        font-weight: bold;\n                    }\n\n                    /* Second line of text for each pi choice aka "Exp 01/2021" */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] div[id^="pidlddc-div-optionTextGroup_"] .ms-StackItem:nth-child(2) {\n                        justify-content: flex-start;\n                    }\n\n                    /* Container  the "Update" button for expired pi */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] .ms-StackItem:nth-child(2) {\n                        justify-content: flex-end;\n                        display: flex;\n                    }\n\n                    /* Container inside the "Update" button for expired pi */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] button[id^="pidlddc-button-optionUpdate_"] span {\n                        align-items: center;\n                    }\n\n                    /* "Update" button for expired pi */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .pidlddc-pi-container div[id^="pidlddc-div-optionDisplayGroup_"] button[id^="pidlddc-button-optionUpdate_"] {\n                        color: #0067B8;\n                    }\n\n                    /* Logo for each pi choice */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument .ms-Image {\n                        margin: 0px 16px;\n                    }\n\n                    /* Element with warning class for expired pi choice */\n                    #pidlddc-div-pagebodycontents .pidlddc-div-paymentInstrument div[id^="pidlddc-div-optionTextGroup_"] .pidlddc-warning-icon {\n                        color: #C72127;\n                    }\n\n                    /* Container for Add a way to pay "row" */\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink {\n                        outline: 1px solid transparent;\n                        border-radius: 4px;\n                        background-color: rgba(0, 0, 0, 0.03);\n                        padding: 14px 16px;\n                        margin-top: 6px;\n                        height: 59px;\n                        flex: 1;\n                        width: 100%;\n                    }\n\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink:focus {\n                        outline: 3px solid transparent;\n                    }\n\n                    /* Targets Add a way to pay + icon */\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink i {\n                        color: #000;\n                        margin-right: 16px;\n                    }\n\n                    /* Targets "Add a way to pay" text span */\n                    #pidlddc-div-pagebodycontents #pidlddc-button-newPaymentMethodLink {\n                        font-weight: bold;\n                    }\n\n                    /* Targets "I don\'t want a back-up" text span */\n                    #pidlddc-div-pagebodycontents #pidlddc-text-optionText_NoBackupPISelected {\n                        margin: 0px 16px;\n                        font-weight: bold;\n                    }\n                '),d.default.createElement(E,v({},this.getSelectResourceProps())))},t}(d.default.Component),pE=function(e){function t(t){var n=e.call(this,t)||this;return n.wrapperId="pidlddc-div-validateAddressEnrichment",n.getValidateAddressProps=function(){return v(v({},n.props),{onEvent:n.validateAddressEventHandler})},n.updateModalAriaMessage=function(){var e,t=null!==(e=n.wrapper.querySelector("#pidlddc-text-addressChangePageSubheading"))&&void 0!==e?e:n.wrapper.querySelector("#pidlddc-text-addressSuggestionMessage");t&&t.textContent!==n.state.modalAriaMessage&&n.setState({modalAriaMessage:t.textContent})},n.validateAddressEventHandler=function(e,t){e!==R.internal.constants.eventNames.pageRendered&&e!==R.internal.constants.eventNames.pageRefreshed||n.setState({validateAddressRendered:!0}),n.props.onEvent&&n.props.onEvent(e,t)},n.state={validateAddressRendered:!1,modalAriaMessage:""},n}return g(t,e),t.prototype.componentDidMount=function(){this.wrapper=document.getElementById(this.wrapperId)},t.prototype.componentDidUpdate=function(){var e,t,n,r=null===(e=document.getElementById("pidlddc-div-pagebodycontents"))||void 0===e?void 0:e.children;r&&r.length>2&&(null===(t=r[0])||void 0===t||t.setAttribute("aria-hidden","true"),null===(n=r[1])||void 0===n||n.setAttribute("aria-hidden","true")),this.updateModalAriaMessage()},t.prototype.render=function(){return d.default.createElement(d.default.Fragment,null,d.default.createElement("style",null," ","\n                #".concat(this.wrapperId," {\n                    display: flex;\n                    flex-direction: column;\n                    flex: 1;\n                    height: 100%;\n                }\n\n                #").concat(this.wrapperId," > #pidlddc-div-pagebodycontents {\n                    margin-bottom: 15px;\n                }\n\n                #").concat(this.wrapperId," > #pidlddc-div-pagebodycontents #pidlddc-div-addressChangeGroup {\n                    margin-top: 10px;\n                }\n\n                #").concat(this.wrapperId," > #pidlddc-div-pagesubmitblock {\n                    margin-top: auto;\n                    margin-bottom: 10px;\n                    bottom: auto !important;\n                    position: static !important;\n                }\n            ")),d.default.createElement("div",{id:this.wrapperId},d.default.createElement("div",{"aria-label":this.state.modalAriaMessage,"aria-live":"assertive"}),d.default.createElement(T,v({},this.getValidateAddressProps()))))},t}(d.default.Component);t.AddPaymentInstrument=cE,t.EditPaymentInstrument=dE,t.SelectPaymentInstrument=uE,t.ValidateAddress=pE}}]);
//# sourceMappingURL=8728.44ae83d9.chunk.js.map
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[8759],{28759: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(t){_useWebWorker=!!t},getWebWorker=function(){return _useWebWorker},setLocationHref=function(t){locationHref=t},getLocationHref=function(){return locationHref};function createTag(t){return document.createElement(t)}function extendPrototype(t,e){var r,i,s=t.length;for(r=0;r<s;r+=1)for(var a in i=t[r].prototype)Object.prototype.hasOwnProperty.call(i,a)&&(e.prototype[a]=i[a])}function getDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)}function createProxyFunction(t){function e(){}return e.prototype=t,e}var audioControllerFactory=function(){function t(t){this.audios=[],this.audioFactory=t,this._volume=1,this._isMuted=!1}return t.prototype={addAudio:function(t){this.audios.push(t)},pause:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].pause()},resume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].resume()},setRate:function(t){var e,r=this.audios.length;for(e=0;e<r;e+=1)this.audios[e].setRate(t)},createAudio:function(t){return this.audioFactory?this.audioFactory(t):window.Howl?new window.Howl({src:[t]}):{isPlaying:!1,play:function(){this.isPlaying=!0},seek:function(){this.isPlaying=!1},playing:function(){},rate:function(){},setVolume:function(){}}},setAudioFactory:function(t){this.audioFactory=t},setVolume:function(t){this._volume=t,this._updateVolume()},mute:function(){this._isMuted=!0,this._updateVolume()},unmute:function(){this._isMuted=!1,this._updateVolume()},getVolume:function(){return this._volume},_updateVolume:function(){var t,e=this.audios.length;for(t=0;t<e;t+=1)this.audios[t].volume(this._volume*(this._isMuted?0:1))}},function(){return new t}}(),createTypedArray=function(){function t(t,e){var r,i=0,s=[];switch(t){case"int16":case"uint8c":r=1;break;default:r=1.1}for(i=0;i<e;i+=1)s.push(r);return s}return"function"===typeof Uint8ClampedArray&&"function"===typeof Float32Array?function(e,r){return"float32"===e?new Float32Array(r):"int16"===e?new Int16Array(r):"uint8c"===e?new Uint8ClampedArray(r):t(e,r)}:t}();function createSizedArray(t){return Array.apply(null,{length:t})}function _typeof$6(t){return _typeof$6="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$6(t)}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 t,e=["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"],r=e.length;for(t=0;t<r;t+=1)BMMath[e[t]]=Math[e[t]]}(),BMMath.random=Math.random,BMMath.abs=function(t){if("object"===_typeof$6(t)&&t.length){var e,r=createSizedArray(t.length),i=t.length;for(e=0;e<i;e+=1)r[e]=Math.abs(t[e]);return r}return Math.abs(t)};var defaultCurveSegments=150,degToRads=Math.PI/180,roundCorner=.5519;function roundValues(t){_shouldRoundValues=!!t}function bmRnd(t){return _shouldRoundValues?Math.round(t):t}function styleDiv(t){t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.display="block",t.style.transformOrigin="0 0",t.style.webkitTransformOrigin="0 0",t.style.backfaceVisibility="visible",t.style.webkitBackfaceVisibility="visible",t.style.transformStyle="preserve-3d",t.style.webkitTransformStyle="preserve-3d",t.style.mozTransformStyle="preserve-3d"}function BMEnterFrameEvent(t,e,r,i){this.type=t,this.currentTime=e,this.totalTime=r,this.direction=i<0?-1:1}function BMCompleteEvent(t,e){this.type=t,this.direction=e<0?-1:1}function BMCompleteLoopEvent(t,e,r,i){this.type=t,this.currentLoop=r,this.totalLoops=e,this.direction=i<0?-1:1}function BMSegmentStartEvent(t,e,r){this.type=t,this.firstFrame=e,this.totalFrames=r}function BMDestroyEvent(t,e){this.type=t,this.target=e}function BMRenderFrameErrorEvent(t,e){this.type="renderFrameError",this.nativeError=t,this.currentTime=e}function BMConfigErrorEvent(t){this.type="configError",this.nativeError=t}function BMAnimationConfigErrorEvent(t,e){this.type=t,this.nativeError=e}var createElementID=function(){var t=0;return function(){return idPrefix$1+"__lottie_element_"+(t+=1)}}();function HSVtoRGB(t,e,r){var i,s,a,n,o,h,l,p;switch(h=r*(1-e),l=r*(1-(o=6*t-(n=Math.floor(6*t)))*e),p=r*(1-(1-o)*e),n%6){case 0:i=r,s=p,a=h;break;case 1:i=l,s=r,a=h;break;case 2:i=h,s=r,a=p;break;case 3:i=h,s=l,a=r;break;case 4:i=p,s=h,a=r;break;case 5:i=r,s=h,a=l}return[i,s,a]}function RGBtoHSV(t,e,r){var i,s=Math.max(t,e,r),a=Math.min(t,e,r),n=s-a,o=0===s?0:n/s,h=s/255;switch(s){case a:i=0;break;case t:i=e-r+n*(e<r?6:0),i/=6*n;break;case e:i=r-t+2*n,i/=6*n;break;case r:i=t-e+4*n,i/=6*n}return[i,o,h]}function addSaturationToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[1]+=e,r[1]>1?r[1]=1:r[1]<=0&&(r[1]=0),HSVtoRGB(r[0],r[1],r[2])}function addBrightnessToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[2]+=e,r[2]>1?r[2]=1:r[2]<0&&(r[2]=0),HSVtoRGB(r[0],r[1],r[2])}function addHueToRGB(t,e){var r=RGBtoHSV(255*t[0],255*t[1],255*t[2]);return r[0]+=e/360,r[0]>1?r[0]-=1:r[0]<0&&(r[0]+=1),HSVtoRGB(r[0],r[1],r[2])}var rgbToHex=function(){var t,e,r=[];for(t=0;t<256;t+=1)e=t.toString(16),r[t]=1===e.length?"0"+e:e;return function(t,e,i){return t<0&&(t=0),e<0&&(e=0),i<0&&(i=0),"#"+r[t]+r[e]+r[i]}}(),setSubframeEnabled=function(t){subframeEnabled=!!t},getSubframeEnabled=function(){return subframeEnabled},setExpressionsPlugin=function(t){expressionsPlugin=t},getExpressionsPlugin=function(){return expressionsPlugin},setDefaultCurveSegments=function(t){defaultCurveSegments=t},getDefaultCurveSegments=function(){return defaultCurveSegments},setIdPrefix=function(t){idPrefix$1=t},getIdPrefix=function(){return idPrefix$1};function createNS(t){return document.createElementNS(svgNS,t)}function _typeof$5(t){return _typeof$5="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$5(t)}var dataManager=function(){var t,e,r=1,i=[],s={onmessage:function(){},postMessage:function(e){t({data:e})}},a={postMessage:function(t){s.onmessage({data:t})}};function n(){e||(e=function(e){if(window.Worker&&window.Blob&&getWebWorker()){var r=new Blob(["var _workerSelf = self; self.onmessage = ",e.toString()],{type:"text/javascript"}),i=URL.createObjectURL(r);return new Worker(i)}return t=e,s}((function(t){if(a.dataManager||(a.dataManager=function(){function t(s,a){var n,o,h,l,m,f,c=s.length;for(o=0;o<c;o+=1)if("ks"in(n=s[o])&&!n.completed){if(n.completed=!0,n.tt&&(s[o-1].td=n.tt),n.hasMask){var d=n.masksProperties;for(l=d.length,h=0;h<l;h+=1)if(d[h].pt.k.i)i(d[h].pt.k);else for(f=d[h].pt.k.length,m=0;m<f;m+=1)d[h].pt.k[m].s&&i(d[h].pt.k[m].s[0]),d[h].pt.k[m].e&&i(d[h].pt.k[m].e[0])}0===n.ty?(n.layers=e(n.refId,a),t(n.layers,a)):4===n.ty?r(n.shapes):5===n.ty&&p(n)}}function e(t,e){var r=function(t,e){for(var r=0,i=e.length;r<i;){if(e[r].id===t)return e[r];r+=1}return null}(t,e);return r?r.layers.__used?JSON.parse(JSON.stringify(r.layers)):(r.layers.__used=!0,r.layers):null}function r(t){var e,s,a;for(e=t.length-1;e>=0;e-=1)if("sh"===t[e].ty)if(t[e].ks.k.i)i(t[e].ks.k);else for(a=t[e].ks.k.length,s=0;s<a;s+=1)t[e].ks.k[s].s&&i(t[e].ks.k[s].s[0]),t[e].ks.k[s].e&&i(t[e].ks.k[s].e[0]);else"gr"===t[e].ty&&r(t[e].it)}function i(t){var e,r=t.i.length;for(e=0;e<r;e+=1)t.i[e][0]+=t.v[e][0],t.i[e][1]+=t.v[e][1],t.o[e][0]+=t.v[e][0],t.o[e][1]+=t.v[e][1]}function s(t,e){var r=e?e.split("."):[100,100,100];return t[0]>r[0]||!(r[0]>t[0])&&(t[1]>r[1]||!(r[1]>t[1])&&(t[2]>r[2]||!(r[2]>t[2])&&null))}var a=function(){var t=[4,4,14];function e(t){var e=t.t.d;t.t.d={k:[{s:e,t:0}]}}function r(t){var r,i=t.length;for(r=0;r<i;r+=1)5===t[r].ty&&e(t[r])}return function(e){if(s(t,e.v)&&(r(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),n=function(){var t=[4,7,99];return function(e){if(e.chars&&!s(t,e.v)){var i,a=e.chars.length;for(i=0;i<a;i+=1){var n=e.chars[i];n.data&&n.data.shapes&&(r(n.data.shapes),n.data.ip=0,n.data.op=99999,n.data.st=0,n.data.sr=1,n.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}},e.chars[i].t||(n.data.shapes.push({ty:"no"}),n.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"})))}}}}(),o=function(){var t=[5,7,15];function e(t){var e=t.t.p;"number"===typeof e.a&&(e.a={a:0,k:e.a}),"number"===typeof e.p&&(e.p={a:0,k:e.p}),"number"===typeof e.r&&(e.r={a:0,k:e.r})}function r(t){var r,i=t.length;for(r=0;r<i;r+=1)5===t[r].ty&&e(t[r])}return function(e){if(s(t,e.v)&&(r(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),h=function(){var t=[4,1,9];function e(t){var r,i,s,a=t.length;for(r=0;r<a;r+=1)if("gr"===t[r].ty)e(t[r].it);else if("fl"===t[r].ty||"st"===t[r].ty)if(t[r].c.k&&t[r].c.k[0].i)for(s=t[r].c.k.length,i=0;i<s;i+=1)t[r].c.k[i].s&&(t[r].c.k[i].s[0]/=255,t[r].c.k[i].s[1]/=255,t[r].c.k[i].s[2]/=255,t[r].c.k[i].s[3]/=255),t[r].c.k[i].e&&(t[r].c.k[i].e[0]/=255,t[r].c.k[i].e[1]/=255,t[r].c.k[i].e[2]/=255,t[r].c.k[i].e[3]/=255);else t[r].c.k[0]/=255,t[r].c.k[1]/=255,t[r].c.k[2]/=255,t[r].c.k[3]/=255}function r(t){var r,i=t.length;for(r=0;r<i;r+=1)4===t[r].ty&&e(t[r].shapes)}return function(e){if(s(t,e.v)&&(r(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}(),l=function(){var t=[4,4,18];function e(t){var r,i,s;for(r=t.length-1;r>=0;r-=1)if("sh"===t[r].ty)if(t[r].ks.k.i)t[r].ks.k.c=t[r].closed;else for(s=t[r].ks.k.length,i=0;i<s;i+=1)t[r].ks.k[i].s&&(t[r].ks.k[i].s[0].c=t[r].closed),t[r].ks.k[i].e&&(t[r].ks.k[i].e[0].c=t[r].closed);else"gr"===t[r].ty&&e(t[r].it)}function r(t){var r,i,s,a,n,o,h=t.length;for(i=0;i<h;i+=1){if((r=t[i]).hasMask){var l=r.masksProperties;for(a=l.length,s=0;s<a;s+=1)if(l[s].pt.k.i)l[s].pt.k.c=l[s].cl;else for(o=l[s].pt.k.length,n=0;n<o;n+=1)l[s].pt.k[n].s&&(l[s].pt.k[n].s[0].c=l[s].cl),l[s].pt.k[n].e&&(l[s].pt.k[n].e[0].c=l[s].cl)}4===r.ty&&e(r.shapes)}}return function(e){if(s(t,e.v)&&(r(e.layers),e.assets)){var i,a=e.assets.length;for(i=0;i<a;i+=1)e.assets[i].layers&&r(e.assets[i].layers)}}}();function p(t){0===t.t.a.length&&t.t.p}var m={completeData:function(r){r.__complete||(h(r),a(r),n(r),o(r),l(r),t(r.layers,r.assets),function(r,i){if(r){var s=0,a=r.length;for(s=0;s<a;s+=1)1===r[s].t&&(r[s].data.layers=e(r[s].data.refId,i),t(r[s].data.layers,i))}}(r.chars,r.assets),r.__complete=!0)}};return m.checkColors=h,m.checkChars=n,m.checkPathProperties=o,m.checkShapes=l,m.completeLayers=t,m}()),a.assetLoader||(a.assetLoader=function(){function t(t){var e=t.getResponseHeader("content-type");return e&&"json"===t.responseType&&-1!==e.indexOf("json")||t.response&&"object"===_typeof$5(t.response)?t.response:t.response&&"string"===typeof t.response?JSON.parse(t.response):t.responseText?JSON.parse(t.responseText):null}return{load:function(e,r,i,s){var a,n=new XMLHttpRequest;try{n.responseType="json"}catch(o){}n.onreadystatechange=function(){if(4===n.readyState)if(200===n.status)a=t(n),i(a);else try{a=t(n),i(a)}catch(o){s&&s(o)}};try{n.open("GET",e,!0)}catch(h){n.open("GET",r+"/"+e,!0)}n.send()}}}()),"loadAnimation"===t.data.type)a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}));else if("complete"===t.data.type){var e=t.data.animation;a.dataManager.completeData(e),a.postMessage({id:t.data.id,payload:e,status:"success"})}else"loadData"===t.data.type&&a.assetLoader.load(t.data.path,t.data.fullPath,(function(e){a.postMessage({id:t.data.id,payload:e,status:"success"})}),(function(){a.postMessage({id:t.data.id,status:"error"})}))})),e.onmessage=function(t){var e=t.data,r=e.id,s=i[r];i[r]=null,"success"===e.status?s.onComplete(e.payload):s.onError&&s.onError()})}function o(t,e){var s="processId_"+(r+=1);return i[s]={onComplete:t,onError:e},s}return{loadAnimation:function(t,r,i){n();var s=o(r,i);e.postMessage({type:"loadAnimation",path:t,fullPath:window.location.origin+window.location.pathname,id:s})},loadData:function(t,r,i){n();var s=o(r,i);e.postMessage({type:"loadData",path:t,fullPath:window.location.origin+window.location.pathname,id:s})},completeAnimation:function(t,r,i){n();var s=o(r,i);e.postMessage({type:"complete",animation:t,id:s})}}}(),ImagePreloader=function(){var t=function(){var t=createTag("canvas");t.width=1,t.height=1;var e=t.getContext("2d");return e.fillStyle="rgba(0,0,0,0)",e.fillRect(0,0,1,1),t}();function e(){this.loadedAssets+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function r(){this.loadedFootagesCount+=1,this.loadedAssets===this.totalImages&&this.loadedFootagesCount===this.totalFootages&&this.imagesLoadedCb&&this.imagesLoadedCb(null)}function i(t,e,r){var i="";if(t.e)i=t.p;else if(e){var s=t.p;-1!==s.indexOf("images/")&&(s=s.split("/")[1]),i=e+s}else i=r,i+=t.u?t.u:"",i+=t.p;return i}function s(t){var e=0,r=setInterval(function(){(t.getBBox().width||e>500)&&(this._imageLoaded(),clearInterval(r)),e+=1}.bind(this),50)}function a(t){var e={assetData:t},r=i(t,this.assetsPath,this.path);return dataManager.loadData(r,function(t){e.img=t,this._footageLoaded()}.bind(this),function(){e.img={},this._footageLoaded()}.bind(this)),e}function n(){this._imageLoaded=e.bind(this),this._footageLoaded=r.bind(this),this.testImageLoaded=s.bind(this),this.createFootageData=a.bind(this),this.assetsPath="",this.path="",this.totalImages=0,this.totalFootages=0,this.loadedAssets=0,this.loadedFootagesCount=0,this.imagesLoadedCb=null,this.images=[]}return n.prototype={loadAssets:function(t,e){var r;this.imagesLoadedCb=e;var i=t.length;for(r=0;r<i;r+=1)t[r].layers||(t[r].t&&"seq"!==t[r].t?3===t[r].t&&(this.totalFootages+=1,this.images.push(this.createFootageData(t[r]))):(this.totalImages+=1,this.images.push(this._createImageData(t[r]))))},setAssetsPath:function(t){this.assetsPath=t||""},setPath:function(t){this.path=t||""},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(t){for(var e=0,r=this.images.length;e<r;){if(this.images[e].assetData===t)return this.images[e].img;e+=1}return null},createImgData:function(e){var r=i(e,this.assetsPath,this.path),s=createTag("img");s.crossOrigin="anonymous",s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),s.src=r;var a={img:s,assetData:e};return a},createImageData:function(e){var r=i(e,this.assetsPath,this.path),s=createNS("image");isSafari?this.testImageLoaded(s):s.addEventListener("load",this._imageLoaded,!1),s.addEventListener("error",function(){a.img=t,this._imageLoaded()}.bind(this),!1),s.setAttributeNS("http://www.w3.org/1999/xlink","href",r),this._elementHelper.append?this._elementHelper.append(s):this._elementHelper.appendChild(s);var a={img:s,assetData:e};return a},imageLoaded:e,footageLoaded:r,setCacheType:function(t,e){"svg"===t?(this._elementHelper=e,this._createImageData=this.createImageData.bind(this)):this._createImageData=this.createImgData.bind(this)}},n}();function BaseEvent(){}BaseEvent.prototype={triggerEvent:function(t,e){if(this._cbs[t])for(var r=this._cbs[t],i=0;i<r.length;i+=1)r[i](e)},addEventListener:function(t,e){return this._cbs[t]||(this._cbs[t]=[]),this._cbs[t].push(e),function(){this.removeEventListener(t,e)}.bind(this)},removeEventListener:function(t,e){if(e){if(this._cbs[t]){for(var r=0,i=this._cbs[t].length;r<i;)this._cbs[t][r]===e&&(this._cbs[t].splice(r,1),r-=1,i-=1),r+=1;this._cbs[t].length||(this._cbs[t]=null)}}else this._cbs[t]=null}};var markerParser=function(){function t(t){for(var e,r=t.split("\r\n"),i={},s=0,a=0;a<r.length;a+=1)2===(e=r[a].split(":")).length&&(i[e[0]]=e[1].trim(),s+=1);if(0===s)throw new Error;return i}return function(e){for(var r=[],i=0;i<e.length;i+=1){var s=e[i],a={time:s.tm,duration:s.dr};try{a.payload=JSON.parse(e[i].cm)}catch(n){try{a.payload=t(e[i].cm)}catch(o){a.payload={name:e[i].cm}}}r.push(a)}return r}}(),ProjectInterface=function(){function t(t){this.compositions.push(t)}return function(){function e(t){for(var e=0,r=this.compositions.length;e<r;){if(this.compositions[e].data&&this.compositions[e].data.nm===t)return this.compositions[e].prepareFrame&&this.compositions[e].data.xt&&this.compositions[e].prepareFrame(this.currentFrame),this.compositions[e].compInterface;e+=1}return null}return e.compositions=[],e.currentFrame=0,e.registerComposition=t,e}}(),renderers={},registerRenderer=function(t,e){renderers[t]=e};function getRenderer(t){return renderers[t]}function _typeof$4(t){return _typeof$4="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$4(t)}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(t){(t.wrapper||t.container)&&(this.wrapper=t.wrapper||t.container);var e="svg";t.animType?e=t.animType:t.renderer&&(e=t.renderer);var r=getRenderer(e);this.renderer=new r(this,t.rendererSettings),this.imagePreloader.setCacheType(e,this.renderer.globalData.defs),this.renderer.setProjectInterface(this.projectInterface),this.animType=e,""===t.loop||null===t.loop||void 0===t.loop||!0===t.loop?this.loop=!0:!1===t.loop?this.loop=!1:this.loop=parseInt(t.loop,10),this.autoplay=!("autoplay"in t)||t.autoplay,this.name=t.name?t.name:"",this.autoloadSegments=!Object.prototype.hasOwnProperty.call(t,"autoloadSegments")||t.autoloadSegments,this.assetsPath=t.assetsPath,this.initialSegment=t.initialSegment,t.audioFactory&&this.audioController.setAudioFactory(t.audioFactory),t.animationData?this.setupAnimation(t.animationData):t.path&&(-1!==t.path.lastIndexOf("\\")?this.path=t.path.substr(0,t.path.lastIndexOf("\\")+1):this.path=t.path.substr(0,t.path.lastIndexOf("/")+1),this.fileName=t.path.substr(t.path.lastIndexOf("/")+1),this.fileName=this.fileName.substr(0,this.fileName.lastIndexOf(".json")),dataManager.loadAnimation(t.path,this.configAnimation,this.onSetupError))},AnimationItem.prototype.onSetupError=function(){this.trigger("data_failed")},AnimationItem.prototype.setupAnimation=function(t){dataManager.completeAnimation(t,this.configAnimation)},AnimationItem.prototype.setData=function(t,e){e&&"object"!==_typeof$4(e)&&(e=JSON.parse(e));var r={wrapper:t,animationData:e},i=t.attributes;r.path=i.getNamedItem("data-animation-path")?i.getNamedItem("data-animation-path").value:i.getNamedItem("data-bm-path")?i.getNamedItem("data-bm-path").value:i.getNamedItem("bm-path")?i.getNamedItem("bm-path").value:"",r.animType=i.getNamedItem("data-anim-type")?i.getNamedItem("data-anim-type").value:i.getNamedItem("data-bm-type")?i.getNamedItem("data-bm-type").value:i.getNamedItem("bm-type")?i.getNamedItem("bm-type").value:i.getNamedItem("data-bm-renderer")?i.getNamedItem("data-bm-renderer").value:i.getNamedItem("bm-renderer")?i.getNamedItem("bm-renderer").value:"canvas";var s=i.getNamedItem("data-anim-loop")?i.getNamedItem("data-anim-loop").value:i.getNamedItem("data-bm-loop")?i.getNamedItem("data-bm-loop").value:i.getNamedItem("bm-loop")?i.getNamedItem("bm-loop").value:"";"false"===s?r.loop=!1:"true"===s?r.loop=!0:""!==s&&(r.loop=parseInt(s,10));var a=i.getNamedItem("data-anim-autoplay")?i.getNamedItem("data-anim-autoplay").value:i.getNamedItem("data-bm-autoplay")?i.getNamedItem("data-bm-autoplay").value:!i.getNamedItem("bm-autoplay")||i.getNamedItem("bm-autoplay").value;r.autoplay="false"!==a,r.name=i.getNamedItem("data-name")?i.getNamedItem("data-name").value:i.getNamedItem("data-bm-name")?i.getNamedItem("data-bm-name").value:i.getNamedItem("bm-name")?i.getNamedItem("bm-name").value:"","false"===(i.getNamedItem("data-anim-prerender")?i.getNamedItem("data-anim-prerender").value:i.getNamedItem("data-bm-prerender")?i.getNamedItem("data-bm-prerender").value:i.getNamedItem("bm-prerender")?i.getNamedItem("bm-prerender").value:"")&&(r.prerender=!1),this.setParams(r)},AnimationItem.prototype.includeLayers=function(t){t.op>this.animationData.op&&(this.animationData.op=t.op,this.totalFrames=Math.floor(t.op-this.animationData.ip));var e,r,i=this.animationData.layers,s=i.length,a=t.layers,n=a.length;for(r=0;r<n;r+=1)for(e=0;e<s;){if(i[e].id===a[r].id){i[e]=a[r];break}e+=1}if((t.chars||t.fonts)&&(this.renderer.globalData.fontManager.addChars(t.chars),this.renderer.globalData.fontManager.addFonts(t.fonts,this.renderer.globalData.defs)),t.assets)for(s=t.assets.length,e=0;e<s;e+=1)this.animationData.assets.push(t.assets[e]);this.animationData.__complete=!1,dataManager.completeAnimation(this.animationData,this.onSegmentComplete)},AnimationItem.prototype.onSegmentComplete=function(t){this.animationData=t;var e=getExpressionsPlugin();e&&e.initExpressions(this),this.loadNextSegment()},AnimationItem.prototype.loadNextSegment=function(){var t=this.animationData.segments;if(!t||0===t.length||!this.autoloadSegments)return this.trigger("data_ready"),void(this.timeCompleted=this.totalFrames);var e=t.shift();this.timeCompleted=e.time*this.frameRate;var r=this.path+this.fileName+"_"+this.segmentPos+".json";this.segmentPos+=1,dataManager.loadData(r,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(t){if(this.renderer)try{this.animationData=t,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(t),t.assets||(t.assets=[]),this.assets=this.animationData.assets,this.frameRate=this.animationData.fr,this.frameMult=this.animationData.fr/1e3,this.renderer.searchExtraCompositions(t.assets),this.markers=markerParser(t.markers||[]),this.trigger("config_ready"),this.preloadImages(),this.loadSegments(),this.updaFrameModifier(),this.waitForFontsLoaded(),this.isPaused&&this.audioController.pause()}catch(e){this.triggerConfigError(e)}},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 t=getExpressionsPlugin();t&&t.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(t){this.isSubframeEnabled=!!t},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(t){this.triggerRenderFrameError(t)}},AnimationItem.prototype.play=function(t){t&&this.name!==t||!0===this.isPaused&&(this.isPaused=!1,this.trigger("_pause"),this.audioController.resume(),this._idle&&(this._idle=!1,this.trigger("_active")))},AnimationItem.prototype.pause=function(t){t&&this.name!==t||!1===this.isPaused&&(this.isPaused=!0,this.trigger("_play"),this._idle=!0,this.trigger("_idle"),this.audioController.pause())},AnimationItem.prototype.togglePause=function(t){t&&this.name!==t||(!0===this.isPaused?this.play():this.pause())},AnimationItem.prototype.stop=function(t){t&&this.name!==t||(this.pause(),this.playCount=0,this._completedLoop=!1,this.setCurrentRawFrameValue(0))},AnimationItem.prototype.getMarkerData=function(t){for(var e,r=0;r<this.markers.length;r+=1)if((e=this.markers[r]).payload&&e.payload.name===t)return e;return null},AnimationItem.prototype.goToAndStop=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var s=this.getMarkerData(t);s&&this.goToAndStop(s.time,!0)}else e?this.setCurrentRawFrameValue(t):this.setCurrentRawFrameValue(t*this.frameModifier);this.pause()}},AnimationItem.prototype.goToAndPlay=function(t,e,r){if(!r||this.name===r){var i=Number(t);if(isNaN(i)){var s=this.getMarkerData(t);s&&(s.duration?this.playSegments([s.time,s.time+s.duration],!0):this.goToAndStop(s.time,!0))}else this.goToAndStop(i,e,r);this.play()}},AnimationItem.prototype.advanceTime=function(t){if(!0!==this.isPaused&&!1!==this.isLoaded){var e=this.currentRawFrame+t*this.frameModifier,r=!1;e>=this.totalFrames-1&&this.frameModifier>0?this.loop&&this.playCount!==this.loop?e>=this.totalFrames?(this.playCount+=1,this.checkSegments(e%this.totalFrames)||(this.setCurrentRawFrameValue(e%this.totalFrames),this._completedLoop=!0,this.trigger("loopComplete"))):this.setCurrentRawFrameValue(e):this.checkSegments(e>this.totalFrames?e%this.totalFrames:0)||(r=!0,e=this.totalFrames-1):e<0?this.checkSegments(e%this.totalFrames)||(!this.loop||this.playCount--<=0&&!0!==this.loop?(r=!0,e=0):(this.setCurrentRawFrameValue(this.totalFrames+e%this.totalFrames),this._completedLoop?this.trigger("loopComplete"):this._completedLoop=!0)):this.setCurrentRawFrameValue(e),r&&(this.setCurrentRawFrameValue(e),this.pause(),this.trigger("complete"))}},AnimationItem.prototype.adjustSegment=function(t,e){this.playCount=0,t[1]<t[0]?(this.frameModifier>0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(-1)),this.totalFrames=t[0]-t[1],this.timeCompleted=this.totalFrames,this.firstFrame=t[1],this.setCurrentRawFrameValue(this.totalFrames-.001-e)):t[1]>t[0]&&(this.frameModifier<0&&(this.playSpeed<0?this.setSpeed(-this.playSpeed):this.setDirection(1)),this.totalFrames=t[1]-t[0],this.timeCompleted=this.totalFrames,this.firstFrame=t[0],this.setCurrentRawFrameValue(.001+e)),this.trigger("segmentStart")},AnimationItem.prototype.setSegment=function(t,e){var r=-1;this.isPaused&&(this.currentRawFrame+this.firstFrame<t?r=t:this.currentRawFrame+this.firstFrame>e&&(r=e-t)),this.firstFrame=t,this.totalFrames=e-t,this.timeCompleted=this.totalFrames,-1!==r&&this.goToAndStop(r,!0)},AnimationItem.prototype.playSegments=function(t,e){if(e&&(this.segments.length=0),"object"===_typeof$4(t[0])){var r,i=t.length;for(r=0;r<i;r+=1)this.segments.push(t[r])}else this.segments.push(t);this.segments.length&&e&&this.adjustSegment(this.segments.shift(),0),this.isPaused&&this.play()},AnimationItem.prototype.resetSegments=function(t){this.segments.length=0,this.segments.push([this.animationData.ip,this.animationData.op]),t&&this.checkSegments(0)},AnimationItem.prototype.checkSegments=function(t){return!!this.segments.length&&(this.adjustSegment(this.segments.shift(),t),!0)},AnimationItem.prototype.destroy=function(t){t&&this.name!==t||!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(t){this.currentRawFrame=t,this.gotoFrame()},AnimationItem.prototype.setSpeed=function(t){this.playSpeed=t,this.updaFrameModifier()},AnimationItem.prototype.setDirection=function(t){this.playDirection=t<0?-1:1,this.updaFrameModifier()},AnimationItem.prototype.setVolume=function(t,e){e&&this.name!==e||this.audioController.setVolume(t)},AnimationItem.prototype.getVolume=function(){return this.audioController.getVolume()},AnimationItem.prototype.mute=function(t){t&&this.name!==t||this.audioController.mute()},AnimationItem.prototype.unmute=function(t){t&&this.name!==t||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(t){var e="";if(t.e)e=t.p;else if(this.assetsPath){var r=t.p;-1!==r.indexOf("images/")&&(r=r.split("/")[1]),e=this.assetsPath+r}else e=this.path,e+=t.u?t.u:"",e+=t.p;return e},AnimationItem.prototype.getAssetData=function(t){for(var e=0,r=this.assets.length;e<r;){if(t===this.assets[e].id)return this.assets[e];e+=1}return null},AnimationItem.prototype.hide=function(){this.renderer.hide()},AnimationItem.prototype.show=function(){this.renderer.show()},AnimationItem.prototype.getDuration=function(t){return t?this.totalFrames:this.totalFrames/this.frameRate},AnimationItem.prototype.updateDocumentData=function(t,e,r){try{this.renderer.getElementByPath(t).updateDocumentData(e,r)}catch(i){}},AnimationItem.prototype.trigger=function(t){if(this._cbs&&this._cbs[t])switch(t){case"enterFrame":this.triggerEvent(t,new BMEnterFrameEvent(t,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(t,this.drawnFrameEvent);break;case"loopComplete":this.triggerEvent(t,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult));break;case"complete":this.triggerEvent(t,new BMCompleteEvent(t,this.frameMult));break;case"segmentStart":this.triggerEvent(t,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames));break;case"destroy":this.triggerEvent(t,new BMDestroyEvent(t,this));break;default:this.triggerEvent(t)}"enterFrame"===t&&this.onEnterFrame&&this.onEnterFrame.call(this,new BMEnterFrameEvent(t,this.currentFrame,this.totalFrames,this.frameMult)),"loopComplete"===t&&this.onLoopComplete&&this.onLoopComplete.call(this,new BMCompleteLoopEvent(t,this.loop,this.playCount,this.frameMult)),"complete"===t&&this.onComplete&&this.onComplete.call(this,new BMCompleteEvent(t,this.frameMult)),"segmentStart"===t&&this.onSegmentStart&&this.onSegmentStart.call(this,new BMSegmentStartEvent(t,this.firstFrame,this.totalFrames)),"destroy"===t&&this.onDestroy&&this.onDestroy.call(this,new BMDestroyEvent(t,this))},AnimationItem.prototype.triggerRenderFrameError=function(t){var e=new BMRenderFrameErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)},AnimationItem.prototype.triggerConfigError=function(t){var e=new BMConfigErrorEvent(t,this.currentFrame);this.triggerEvent("error",e),this.onError&&this.onError.call(this,e)};var animationManager=function(){var t={},e=[],r=0,i=0,s=0,a=!0,n=!1;function o(t){for(var r=0,s=t.target;r<i;)e[r].animation===s&&(e.splice(r,1),r-=1,i-=1,s.isPaused||p()),r+=1}function h(t,r){if(!t)return null;for(var s=0;s<i;){if(e[s].elem===t&&null!==e[s].elem)return e[s].animation;s+=1}var a=new AnimationItem;return m(a,t),a.setData(t,r),a}function l(){s+=1,d()}function p(){s-=1}function m(t,r){t.addEventListener("destroy",o),t.addEventListener("_active",l),t.addEventListener("_idle",p),e.push({elem:r,animation:t}),i+=1}function f(t){var o,h=t-r;for(o=0;o<i;o+=1)e[o].animation.advanceTime(h);r=t,s&&!n?window.requestAnimationFrame(f):a=!0}function c(t){r=t,window.requestAnimationFrame(f)}function d(){!n&&s&&a&&(window.requestAnimationFrame(c),a=!1)}return t.registerAnimation=h,t.loadAnimation=function(t){var e=new AnimationItem;return m(e,null),e.setParams(t),e},t.setSpeed=function(t,r){var s;for(s=0;s<i;s+=1)e[s].animation.setSpeed(t,r)},t.setDirection=function(t,r){var s;for(s=0;s<i;s+=1)e[s].animation.setDirection(t,r)},t.play=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.play(t)},t.pause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.pause(t)},t.stop=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.stop(t)},t.togglePause=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.togglePause(t)},t.searchAnimations=function(t,e,r){var i,s=[].concat([].slice.call(document.getElementsByClassName("lottie")),[].slice.call(document.getElementsByClassName("bodymovin"))),a=s.length;for(i=0;i<a;i+=1)r&&s[i].setAttribute("data-bm-type",r),h(s[i],t);if(e&&0===a){r||(r="svg");var n=document.getElementsByTagName("body")[0];n.innerText="";var o=createTag("div");o.style.width="100%",o.style.height="100%",o.setAttribute("data-bm-type",r),n.appendChild(o),h(o,t)}},t.resize=function(){var t;for(t=0;t<i;t+=1)e[t].animation.resize()},t.goToAndStop=function(t,r,s){var a;for(a=0;a<i;a+=1)e[a].animation.goToAndStop(t,r,s)},t.destroy=function(t){var r;for(r=i-1;r>=0;r-=1)e[r].animation.destroy(t)},t.freeze=function(){n=!0},t.unfreeze=function(){n=!1,d()},t.setVolume=function(t,r){var s;for(s=0;s<i;s+=1)e[s].animation.setVolume(t,r)},t.mute=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.mute(t)},t.unmute=function(t){var r;for(r=0;r<i;r+=1)e[r].animation.unmute(t)},t.getRegisteredAnimations=function(){var t,r=e.length,i=[];for(t=0;t<r;t+=1)i.push(e[t].animation);return i},t}(),BezierFactory=function(){var t={getBezierEasing:function(t,r,i,s,a){var n=a||("bez_"+t+"_"+r+"_"+i+"_"+s).replace(/\./g,"p");if(e[n])return e[n];var o=new l([t,r,i,s]);return e[n]=o,o}},e={},r=.1,i="function"===typeof Float32Array;function s(t,e){return 1-3*e+3*t}function a(t,e){return 3*e-6*t}function n(t){return 3*t}function o(t,e,r){return((s(e,r)*t+a(e,r))*t+n(e))*t}function h(t,e,r){return 3*s(e,r)*t*t+2*a(e,r)*t+n(e)}function l(t){this._p=t,this._mSampleValues=i?new Float32Array(11):new Array(11),this._precomputed=!1,this.get=this.get.bind(this)}return l.prototype={get:function(t){var e=this._p[0],r=this._p[1],i=this._p[2],s=this._p[3];return this._precomputed||this._precompute(),e===r&&i===s?t:0===t?0:1===t?1:o(this._getTForX(t),r,s)},_precompute:function(){var t=this._p[0],e=this._p[1],r=this._p[2],i=this._p[3];this._precomputed=!0,t===e&&r===i||this._calcSampleValues()},_calcSampleValues:function(){for(var t=this._p[0],e=this._p[2],i=0;i<11;++i)this._mSampleValues[i]=o(i*r,t,e)},_getTForX:function(t){for(var e=this._p[0],i=this._p[2],s=this._mSampleValues,a=0,n=1;10!==n&&s[n]<=t;++n)a+=r;var l=a+(t-s[--n])/(s[n+1]-s[n])*r,p=h(l,e,i);return p>=.001?function(t,e,r,i){for(var s=0;s<4;++s){var a=h(e,r,i);if(0===a)return e;e-=(o(e,r,i)-t)/a}return e}(t,l,e,i):0===p?l:function(t,e,r,i,s){var a,n,h=0;do{(a=o(n=e+(r-e)/2,i,s)-t)>0?r=n:e=n}while(Math.abs(a)>1e-7&&++h<10);return n}(t,a,a+r,e,i)}},t}(),pooling={double:function(t){return t.concat(createSizedArray(t.length))}},poolFactory=function(t,e,r){var i=0,s=t,a=createSizedArray(s);return{newElement:function(){return i?a[i-=1]:e()},release:function(t){i===s&&(a=pooling.double(a),s*=2),r&&r(t),a[i]=t,i+=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(t){var e,r=t.lengths.length;for(e=0;e<r;e+=1)bezierLengthPool.release(t.lengths[e]);t.lengths.length=0}));function bezFunction(){var t=Math;function e(t,e,r,i,s,a){var n=t*i+e*s+r*a-s*i-a*t-r*e;return n>-.001&&n<.001}var r=function(t,e,r,i){var s,a,n,o,h,l,p=getDefaultCurveSegments(),m=0,f=[],c=[],d=bezierLengthPool.newElement();for(n=r.length,s=0;s<p;s+=1){for(h=s/(p-1),l=0,a=0;a<n;a+=1)o=bmPow(1-h,3)*t[a]+3*bmPow(1-h,2)*h*r[a]+3*(1-h)*bmPow(h,2)*i[a]+bmPow(h,3)*e[a],f[a]=o,null!==c[a]&&(l+=bmPow(f[a]-c[a],2)),c[a]=f[a];l&&(m+=l=bmSqrt(l)),d.percents[s]=h,d.lengths[s]=m}return d.addedLength=m,d};function i(t){this.segmentLength=0,this.points=new Array(t)}function s(t,e){this.partialLength=t,this.point=e}var a=function(){var t={};return function(r,a,n,o){var h=(r[0]+"_"+r[1]+"_"+a[0]+"_"+a[1]+"_"+n[0]+"_"+n[1]+"_"+o[0]+"_"+o[1]).replace(/\./g,"p");if(!t[h]){var l,p,m,f,c,d,u,y=getDefaultCurveSegments(),g=0,v=null;2===r.length&&(r[0]!==a[0]||r[1]!==a[1])&&e(r[0],r[1],a[0],a[1],r[0]+n[0],r[1]+n[1])&&e(r[0],r[1],a[0],a[1],a[0]+o[0],a[1]+o[1])&&(y=2);var b=new i(y);for(m=n.length,l=0;l<y;l+=1){for(u=createSizedArray(m),c=l/(y-1),d=0,p=0;p<m;p+=1)f=bmPow(1-c,3)*r[p]+3*bmPow(1-c,2)*c*(r[p]+n[p])+3*(1-c)*bmPow(c,2)*(a[p]+o[p])+bmPow(c,3)*a[p],u[p]=f,null!==v&&(d+=bmPow(u[p]-v[p],2));g+=d=bmSqrt(d),b.points[l]=new s(d,u),v=u}b.segmentLength=g,t[h]=b}return t[h]}}();function n(t,e){var r=e.percents,i=e.lengths,s=r.length,a=bmFloor((s-1)*t),n=t*e.addedLength,o=0;if(a===s-1||0===a||n===i[a])return r[a];for(var h=i[a]>n?-1:1,l=!0;l;)if(i[a]<=n&&i[a+1]>n?(o=(n-i[a])/(i[a+1]-i[a]),l=!1):a+=h,a<0||a>=s-1){if(a===s-1)return r[a];l=!1}return r[a]+(r[a+1]-r[a])*o}var o=createTypedArray("float32",8);return{getSegmentsLength:function(t){var e,i=segmentsLengthPool.newElement(),s=t.c,a=t.v,n=t.o,o=t.i,h=t._length,l=i.lengths,p=0;for(e=0;e<h-1;e+=1)l[e]=r(a[e],a[e+1],n[e],o[e+1]),p+=l[e].addedLength;return s&&h&&(l[e]=r(a[e],a[0],n[e],o[0]),p+=l[e].addedLength),i.totalLength=p,i},getNewSegment:function(e,r,i,s,a,h,l){a<0?a=0:a>1&&(a=1);var p,m=n(a,l),f=n(h=h>1?1:h,l),c=e.length,d=1-m,u=1-f,y=d*d*d,g=m*d*d*3,v=m*m*d*3,b=m*m*m,P=d*d*u,E=m*d*u+d*m*u+d*d*f,x=m*m*u+d*m*f+m*d*f,S=m*m*f,_=d*u*u,C=m*u*u+d*f*u+d*u*f,A=m*f*u+d*f*f+m*u*f,T=m*f*f,k=u*u*u,D=f*u*u+u*f*u+u*u*f,M=f*f*u+u*f*f+f*u*f,F=f*f*f;for(p=0;p<c;p+=1)o[4*p]=t.round(1e3*(y*e[p]+g*i[p]+v*s[p]+b*r[p]))/1e3,o[4*p+1]=t.round(1e3*(P*e[p]+E*i[p]+x*s[p]+S*r[p]))/1e3,o[4*p+2]=t.round(1e3*(_*e[p]+C*i[p]+A*s[p]+T*r[p]))/1e3,o[4*p+3]=t.round(1e3*(k*e[p]+D*i[p]+M*s[p]+F*r[p]))/1e3;return o},getPointInSegment:function(e,r,i,s,a,o){var h=n(a,o),l=1-h;return[t.round(1e3*(l*l*l*e[0]+(h*l*l+l*h*l+l*l*h)*i[0]+(h*h*l+l*h*h+h*l*h)*s[0]+h*h*h*r[0]))/1e3,t.round(1e3*(l*l*l*e[1]+(h*l*l+l*h*l+l*l*h)*i[1]+(h*h*l+l*h*h+h*l*h)*s[1]+h*h*h*r[1]))/1e3]},buildBezierData:a,pointOnLine2D:e,pointOnLine3D:function(r,i,s,a,n,o,h,l,p){if(0===s&&0===o&&0===p)return e(r,i,a,n,h,l);var m,f=t.sqrt(t.pow(a-r,2)+t.pow(n-i,2)+t.pow(o-s,2)),c=t.sqrt(t.pow(h-r,2)+t.pow(l-i,2)+t.pow(p-s,2)),d=t.sqrt(t.pow(h-a,2)+t.pow(l-n,2)+t.pow(p-o,2));return(m=f>c?f>d?f-c-d:d-c-f:d>c?d-c-f:c-f-d)>-1e-4&&m<1e-4}}}var bez=bezFunction(),PropertyFactory=function(){var t=initialDefaultFrame,e=Math.abs;function r(t,e){var r,s=this.offsetTime;"multidimensional"===this.propType&&(r=createTypedArray("float32",this.pv.length));for(var a,n,o,h,l,p,m,f,c,d=e.lastIndex,u=d,y=this.keyframes.length-1,g=!0;g;){if(a=this.keyframes[u],n=this.keyframes[u+1],u===y-1&&t>=n.t-s){a.h&&(a=n),d=0;break}if(n.t-s>t){d=u;break}u<y-1?u+=1:(d=0,g=!1)}o=this.keyframesMetadata[u]||{};var v,b=n.t-s,P=a.t-s;if(a.to){o.bezierData||(o.bezierData=bez.buildBezierData(a.s,n.s||a.e,a.to,a.ti));var E=o.bezierData;if(t>=b||t<P){var x=t>=b?E.points.length-1:0;for(l=E.points[x].point.length,h=0;h<l;h+=1)r[h]=E.points[x].point[h]}else{o.__fnct?c=o.__fnct:(c=BezierFactory.getBezierEasing(a.o.x,a.o.y,a.i.x,a.i.y,a.n).get,o.__fnct=c),p=c((t-P)/(b-P));var S,_=E.segmentLength*p,C=e.lastFrame<t&&e._lastKeyframeIndex===u?e._lastAddedLength:0;for(f=e.lastFrame<t&&e._lastKeyframeIndex===u?e._lastPoint:0,g=!0,m=E.points.length;g;){if(C+=E.points[f].partialLength,0===_||0===p||f===E.points.length-1){for(l=E.points[f].point.length,h=0;h<l;h+=1)r[h]=E.points[f].point[h];break}if(_>=C&&_<C+E.points[f+1].partialLength){for(S=(_-C)/E.points[f+1].partialLength,l=E.points[f].point.length,h=0;h<l;h+=1)r[h]=E.points[f].point[h]+(E.points[f+1].point[h]-E.points[f].point[h])*S;break}f<m-1?f+=1:g=!1}e._lastPoint=f,e._lastAddedLength=C-E.points[f].partialLength,e._lastKeyframeIndex=u}}else{var A,T,k,D,M;if(y=a.s.length,v=n.s||a.e,this.sh&&1!==a.h)t>=b?(r[0]=v[0],r[1]=v[1],r[2]=v[2]):t<=P?(r[0]=a.s[0],r[1]=a.s[1],r[2]=a.s[2]):function(t,e){var r=e[0],i=e[1],s=e[2],a=e[3],n=Math.atan2(2*i*a-2*r*s,1-2*i*i-2*s*s),o=Math.asin(2*r*i+2*s*a),h=Math.atan2(2*r*a-2*i*s,1-2*r*r-2*s*s);t[0]=n/degToRads,t[1]=o/degToRads,t[2]=h/degToRads}(r,function(t,e,r){var i,s,a,n,o,h=[],l=t[0],p=t[1],m=t[2],f=t[3],c=e[0],d=e[1],u=e[2],y=e[3];return(s=l*c+p*d+m*u+f*y)<0&&(s=-s,c=-c,d=-d,u=-u,y=-y),1-s>1e-6?(i=Math.acos(s),a=Math.sin(i),n=Math.sin((1-r)*i)/a,o=Math.sin(r*i)/a):(n=1-r,o=r),h[0]=n*l+o*c,h[1]=n*p+o*d,h[2]=n*m+o*u,h[3]=n*f+o*y,h}(i(a.s),i(v),(t-P)/(b-P)));else for(u=0;u<y;u+=1)1!==a.h&&(t>=b?p=1:t<P?p=0:(a.o.x.constructor===Array?(o.__fnct||(o.__fnct=[]),o.__fnct[u]?c=o.__fnct[u]:(A=void 0===a.o.x[u]?a.o.x[0]:a.o.x[u],T=void 0===a.o.y[u]?a.o.y[0]:a.o.y[u],k=void 0===a.i.x[u]?a.i.x[0]:a.i.x[u],D=void 0===a.i.y[u]?a.i.y[0]:a.i.y[u],c=BezierFactory.getBezierEasing(A,T,k,D).get,o.__fnct[u]=c)):o.__fnct?c=o.__fnct:(A=a.o.x,T=a.o.y,k=a.i.x,D=a.i.y,c=BezierFactory.getBezierEasing(A,T,k,D).get,a.keyframeMetadata=c),p=c((t-P)/(b-P)))),v=n.s||a.e,M=1===a.h?a.s[u]:a.s[u]+(v[u]-a.s[u])*p,"multidimensional"===this.propType?r[u]=M:r=M}return e.lastIndex=d,r}function i(t){var e=t[0]*degToRads,r=t[1]*degToRads,i=t[2]*degToRads,s=Math.cos(e/2),a=Math.cos(r/2),n=Math.cos(i/2),o=Math.sin(e/2),h=Math.sin(r/2),l=Math.sin(i/2);return[o*h*n+s*a*l,o*a*n+s*h*l,s*h*n-o*a*l,s*a*n-o*h*l]}function s(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime;if(!(e===this._caching.lastFrame||this._caching.lastFrame!==t&&(this._caching.lastFrame>=i&&e>=i||this._caching.lastFrame<r&&e<r))){this._caching.lastFrame>=e&&(this._caching._lastKeyframeIndex=-1,this._caching.lastIndex=0);var s=this.interpolateValue(e,this._caching);this.pv=s}return this._caching.lastFrame=e,this.pv}function a(t){var r;if("unidimensional"===this.propType)r=t*this.mult,e(this.v-r)>1e-5&&(this.v=r,this._mdf=!0);else for(var i=0,s=this.v.length;i<s;)r=t[i]*this.mult,e(this.v[i]-r)>1e-5&&(this.v[i]=r,this._mdf=!0),i+=1}function n(){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t;this.lock=!0,this._mdf=this._isFirstFrame;var e=this.effectsSequence.length,r=this.kf?this.pv:this.data.k;for(t=0;t<e;t+=1)r=this.effectsSequence[t](r);this.setVValue(r),this._isFirstFrame=!1,this.lock=!1,this.frameId=this.elem.globalData.frameId}}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(t,e,r,i){this.propType="unidimensional",this.mult=r||1,this.data=e,this.v=r?e.k*r:e.k,this.pv=e.k,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.vel=0,this.effectsSequence=[],this._isFirstFrame=!0,this.getValue=n,this.setVValue=a,this.addEffect=o}function l(t,e,r,i){var s;this.propType="multidimensional",this.mult=r||1,this.data=e,this._mdf=!1,this.elem=t,this.container=i,this.comp=t.comp,this.k=!1,this.kf=!1,this.frameId=-1;var h=e.k.length;for(this.v=createTypedArray("float32",h),this.pv=createTypedArray("float32",h),this.vel=createTypedArray("float32",h),s=0;s<h;s+=1)this.v[s]=e.k[s]*this.mult,this.pv[s]=e.k[s];this._isFirstFrame=!0,this.effectsSequence=[],this.getValue=n,this.setVValue=a,this.addEffect=o}function p(e,i,h,l){this.propType="unidimensional",this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.frameId=-1,this._caching={lastFrame:t,lastIndex:0,value:0,_lastKeyframeIndex:-1},this.k=!0,this.kf=!0,this.data=i,this.mult=h||1,this.elem=e,this.container=l,this.comp=e.comp,this.v=t,this.pv=t,this._isFirstFrame=!0,this.getValue=n,this.setVValue=a,this.interpolateValue=r,this.effectsSequence=[s.bind(this)],this.addEffect=o}function m(e,i,h,l){var p;this.propType="multidimensional";var m,f,c,d,u=i.k.length;for(p=0;p<u-1;p+=1)i.k[p].to&&i.k[p].s&&i.k[p+1]&&i.k[p+1].s&&(m=i.k[p].s,f=i.k[p+1].s,c=i.k[p].to,d=i.k[p].ti,(2===m.length&&(m[0]!==f[0]||m[1]!==f[1])&&bez.pointOnLine2D(m[0],m[1],f[0],f[1],m[0]+c[0],m[1]+c[1])&&bez.pointOnLine2D(m[0],m[1],f[0],f[1],f[0]+d[0],f[1]+d[1])||3===m.length&&(m[0]!==f[0]||m[1]!==f[1]||m[2]!==f[2])&&bez.pointOnLine3D(m[0],m[1],m[2],f[0],f[1],f[2],m[0]+c[0],m[1]+c[1],m[2]+c[2])&&bez.pointOnLine3D(m[0],m[1],m[2],f[0],f[1],f[2],f[0]+d[0],f[1]+d[1],f[2]+d[2]))&&(i.k[p].to=null,i.k[p].ti=null),m[0]===f[0]&&m[1]===f[1]&&0===c[0]&&0===c[1]&&0===d[0]&&0===d[1]&&(2===m.length||m[2]===f[2]&&0===c[2]&&0===d[2])&&(i.k[p].to=null,i.k[p].ti=null));this.effectsSequence=[s.bind(this)],this.data=i,this.keyframes=i.k,this.keyframesMetadata=[],this.offsetTime=e.data.st,this.k=!0,this.kf=!0,this._isFirstFrame=!0,this.mult=h||1,this.elem=e,this.container=l,this.comp=e.comp,this.getValue=n,this.setVValue=a,this.interpolateValue=r,this.frameId=-1;var y=i.k[0].s.length;for(this.v=createTypedArray("float32",y),this.pv=createTypedArray("float32",y),p=0;p<y;p+=1)this.v[p]=t,this.pv[p]=t;this._caching={lastFrame:t,lastIndex:0,value:createTypedArray("float32",y)},this.addEffect=o}return{getProp:function(t,e,r,i,s){var a;if(e.k.length)if("number"===typeof e.k[0])a=new l(t,e,i,s);else switch(r){case 0:a=new p(t,e,i,s);break;case 1:a=new m(t,e,i,s)}else a=new h(t,e,i,s);return a.effectsSequence.length&&s.addDynamicProperty(a),a}}}();function DynamicPropertyContainer(){}DynamicPropertyContainer.prototype={addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&(this.dynamicProperties.push(t),this.container.addDynamicProperty(this),this._isAnimated=!0)},iterateDynamicProperties:function(){var t;this._mdf=!1;var e=this.dynamicProperties.length;for(t=0;t<e;t+=1)this.dynamicProperties[t].getValue(),this.dynamicProperties[t]._mdf&&(this._mdf=!0)},initDynamicPropertyContainer:function(t){this.container=t,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(t,e){this.c=t,this.setLength(e);for(var r=0;r<e;)this.v[r]=pointPool.newElement(),this.o[r]=pointPool.newElement(),this.i[r]=pointPool.newElement(),r+=1},ShapePath.prototype.setLength=function(t){for(;this._maxLength<t;)this.doubleArrayLength();this._length=t},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(t,e,r,i,s){var a;switch(this._length=Math.max(this._length,i+1),this._length>=this._maxLength&&this.doubleArrayLength(),r){case"v":a=this.v;break;case"i":a=this.i;break;case"o":a=this.o;break;default:a=[]}(!a[i]||a[i]&&!s)&&(a[i]=pointPool.newElement()),a[i][0]=t,a[i][1]=e},ShapePath.prototype.setTripleAt=function(t,e,r,i,s,a,n,o){this.setXYAt(t,e,"v",n,o),this.setXYAt(r,i,"o",n,o),this.setXYAt(s,a,"i",n,o)},ShapePath.prototype.reverse=function(){var t=new ShapePath;t.setPathData(this.c,this._length);var e=this.v,r=this.o,i=this.i,s=0;this.c&&(t.setTripleAt(e[0][0],e[0][1],i[0][0],i[0][1],r[0][0],r[0][1],0,!1),s=1);var a,n=this._length-1,o=this._length;for(a=s;a<o;a+=1)t.setTripleAt(e[n][0],e[n][1],i[n][0],i[n][1],r[n][0],r[n][1],a,!1),n-=1;return t};var shapePool=function(){var t=poolFactory(4,(function(){return new ShapePath}),(function(t){var e,r=t._length;for(e=0;e<r;e+=1)pointPool.release(t.v[e]),pointPool.release(t.i[e]),pointPool.release(t.o[e]),t.v[e]=null,t.i[e]=null,t.o[e]=null;t._length=0,t.c=!1}));return t.clone=function(e){var r,i=t.newElement(),s=void 0===e._length?e.v.length:e._length;for(i.setLength(s),i.c=e.c,r=0;r<s;r+=1)i.setTripleAt(e.v[r][0],e.v[r][1],e.o[r][0],e.o[r][1],e.i[r][0],e.i[r][1],r);return i},t}();function ShapeCollection(){this._length=0,this._maxLength=4,this.shapes=createSizedArray(this._maxLength)}ShapeCollection.prototype.addShape=function(t){this._length===this._maxLength&&(this.shapes=this.shapes.concat(createSizedArray(this._maxLength)),this._maxLength*=2),this.shapes[this._length]=t,this._length+=1},ShapeCollection.prototype.releaseShapes=function(){var t;for(t=0;t<this._length;t+=1)shapePool.release(this.shapes[t]);this._length=0};var shapeCollectionPool=function(){var t={newShapeCollection:function(){return e?i[e-=1]:new ShapeCollection},release:function(t){var s,a=t._length;for(s=0;s<a;s+=1)shapePool.release(t.shapes[s]);t._length=0,e===r&&(i=pooling.double(i),r*=2),i[e]=t,e+=1}},e=0,r=4,i=createSizedArray(r);return t}(),ShapePropertyFactory=function(){var t=-999999;function e(t,e,r){var i,s,a,n,o,h,l,p,m,f=r.lastIndex,c=this.keyframes;if(t<c[0].t-this.offsetTime)i=c[0].s[0],a=!0,f=0;else if(t>=c[c.length-1].t-this.offsetTime)i=c[c.length-1].s?c[c.length-1].s[0]:c[c.length-2].e[0],a=!0;else{for(var d,u,y,g=f,v=c.length-1,b=!0;b&&(d=c[g],!((u=c[g+1]).t-this.offsetTime>t));)g<v-1?g+=1:b=!1;if(y=this.keyframesMetadata[g]||{},f=g,!(a=1===d.h)){if(t>=u.t-this.offsetTime)p=1;else if(t<d.t-this.offsetTime)p=0;else{var P;y.__fnct?P=y.__fnct:(P=BezierFactory.getBezierEasing(d.o.x,d.o.y,d.i.x,d.i.y).get,y.__fnct=P),p=P((t-(d.t-this.offsetTime))/(u.t-this.offsetTime-(d.t-this.offsetTime)))}s=u.s?u.s[0]:d.e[0]}i=d.s[0]}for(h=e._length,l=i.i[0].length,r.lastIndex=f,n=0;n<h;n+=1)for(o=0;o<l;o+=1)m=a?i.i[n][o]:i.i[n][o]+(s.i[n][o]-i.i[n][o])*p,e.i[n][o]=m,m=a?i.o[n][o]:i.o[n][o]+(s.o[n][o]-i.o[n][o])*p,e.o[n][o]=m,m=a?i.v[n][o]:i.v[n][o]+(s.v[n][o]-i.v[n][o])*p,e.v[n][o]=m}function r(){var e=this.comp.renderedFrame-this.offsetTime,r=this.keyframes[0].t-this.offsetTime,i=this.keyframes[this.keyframes.length-1].t-this.offsetTime,s=this._caching.lastFrame;return s!==t&&(s<r&&e<r||s>i&&e>i)||(this._caching.lastIndex=s<e?this._caching.lastIndex:0,this.interpolateShape(e,this.pv,this._caching)),this._caching.lastFrame=e,this.pv}function i(){this.paths=this.localShapeCollection}function s(t){(function(t,e){if(t._length!==e._length||t.c!==e.c)return!1;var r,i=t._length;for(r=0;r<i;r+=1)if(t.v[r][0]!==e.v[r][0]||t.v[r][1]!==e.v[r][1]||t.o[r][0]!==e.o[r][0]||t.o[r][1]!==e.o[r][1]||t.i[r][0]!==e.i[r][0]||t.i[r][1]!==e.i[r][1])return!1;return!0})(this.v,t)||(this.v=shapePool.clone(t),this.localShapeCollection.releaseShapes(),this.localShapeCollection.addShape(this.v),this._mdf=!0,this.paths=this.localShapeCollection)}function a(){if(this.elem.globalData.frameId!==this.frameId)if(this.effectsSequence.length)if(this.lock)this.setVValue(this.pv);else{var t,e;this.lock=!0,this._mdf=!1,t=this.kf?this.pv:this.data.ks?this.data.ks.k:this.data.pt.k;var r=this.effectsSequence.length;for(e=0;e<r;e+=1)t=this.effectsSequence[e](t);this.setVValue(t),this.lock=!1,this.frameId=this.elem.globalData.frameId}else this._mdf=!1}function n(t,e,r){this.propType="shape",this.comp=t.comp,this.container=t,this.elem=t,this.data=e,this.k=!1,this.kf=!1,this._mdf=!1;var s=3===r?e.pt.k:e.ks.k;this.v=shapePool.clone(s),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.reset=i,this.effectsSequence=[]}function o(t){this.effectsSequence.push(t),this.container.addDynamicProperty(this)}function h(e,s,a){this.propType="shape",this.comp=e.comp,this.elem=e,this.container=e,this.offsetTime=e.data.st,this.keyframes=3===a?s.pt.k:s.ks.k,this.keyframesMetadata=[],this.k=!0,this.kf=!0;var n=this.keyframes[0].s[0].i.length;this.v=shapePool.newElement(),this.v.setPathData(this.keyframes[0].s[0].c,n),this.pv=shapePool.clone(this.v),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.paths.addShape(this.v),this.lastFrame=t,this.reset=i,this._caching={lastFrame:t,lastIndex:0},this.effectsSequence=[r.bind(this)]}n.prototype.interpolateShape=e,n.prototype.getValue=a,n.prototype.setVValue=s,n.prototype.addEffect=o,h.prototype.getValue=a,h.prototype.interpolateShape=e,h.prototype.setVValue=s,h.prototype.addEffect=o;var l=function(){var t=roundCorner;function e(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,4),this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.paths=this.localShapeCollection,this.localShapeCollection.addShape(this.v),this.d=e.d,this.elem=t,this.comp=t.comp,this.frameId=-1,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertEllToPath())}return e.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertEllToPath())},convertEllToPath:function(){var e=this.p.v[0],r=this.p.v[1],i=this.s.v[0]/2,s=this.s.v[1]/2,a=3!==this.d,n=this.v;n.v[0][0]=e,n.v[0][1]=r-s,n.v[1][0]=a?e+i:e-i,n.v[1][1]=r,n.v[2][0]=e,n.v[2][1]=r+s,n.v[3][0]=a?e-i:e+i,n.v[3][1]=r,n.i[0][0]=a?e-i*t:e+i*t,n.i[0][1]=r-s,n.i[1][0]=a?e+i:e-i,n.i[1][1]=r-s*t,n.i[2][0]=a?e+i*t:e-i*t,n.i[2][1]=r+s,n.i[3][0]=a?e-i:e+i,n.i[3][1]=r+s*t,n.o[0][0]=a?e+i*t:e-i*t,n.o[0][1]=r-s,n.o[1][0]=a?e+i:e-i,n.o[1][1]=r+s*t,n.o[2][0]=a?e-i*t:e+i*t,n.o[2][1]=r+s,n.o[3][0]=a?e-i:e+i,n.o[3][1]=r-s*t}},extendPrototype([DynamicPropertyContainer],e),e}(),p=function(){function t(t,e){this.v=shapePool.newElement(),this.v.setPathData(!0,0),this.elem=t,this.comp=t.comp,this.data=e,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),1===e.sy?(this.ir=PropertyFactory.getProp(t,e.ir,0,0,this),this.is=PropertyFactory.getProp(t,e.is,0,.01,this),this.convertToPath=this.convertStarToPath):this.convertToPath=this.convertPolygonToPath,this.pt=PropertyFactory.getProp(t,e.pt,0,0,this),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,degToRads,this),this.or=PropertyFactory.getProp(t,e.or,0,0,this),this.os=PropertyFactory.getProp(t,e.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 t.prototype={reset:i,getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertToPath())},convertStarToPath:function(){var t,e,r,i,s=2*Math.floor(this.pt.v),a=2*Math.PI/s,n=!0,o=this.or.v,h=this.ir.v,l=this.os.v,p=this.is.v,m=2*Math.PI*o/(2*s),f=2*Math.PI*h/(2*s),c=-Math.PI/2;c+=this.r.v;var d=3===this.data.d?-1:1;for(this.v._length=0,t=0;t<s;t+=1){r=n?l:p,i=n?m:f;var u=(e=n?o:h)*Math.cos(c),y=e*Math.sin(c),g=0===u&&0===y?0:y/Math.sqrt(u*u+y*y),v=0===u&&0===y?0:-u/Math.sqrt(u*u+y*y);u+=+this.p.v[0],y+=+this.p.v[1],this.v.setTripleAt(u,y,u-g*i*r*d,y-v*i*r*d,u+g*i*r*d,y+v*i*r*d,t,!0),n=!n,c+=a*d}},convertPolygonToPath:function(){var t,e=Math.floor(this.pt.v),r=2*Math.PI/e,i=this.or.v,s=this.os.v,a=2*Math.PI*i/(4*e),n=.5*-Math.PI,o=3===this.data.d?-1:1;for(n+=this.r.v,this.v._length=0,t=0;t<e;t+=1){var h=i*Math.cos(n),l=i*Math.sin(n),p=0===h&&0===l?0:l/Math.sqrt(h*h+l*l),m=0===h&&0===l?0:-h/Math.sqrt(h*h+l*l);h+=+this.p.v[0],l+=+this.p.v[1],this.v.setTripleAt(h,l,h-p*a*s*o,l-m*a*s*o,h+p*a*s*o,l+m*a*s*o,t,!0),n+=r*o}this.paths.length=0,this.paths[0]=this.v}},extendPrototype([DynamicPropertyContainer],t),t}(),m=function(){function t(t,e){this.v=shapePool.newElement(),this.v.c=!0,this.localShapeCollection=shapeCollectionPool.newShapeCollection(),this.localShapeCollection.addShape(this.v),this.paths=this.localShapeCollection,this.elem=t,this.comp=t.comp,this.frameId=-1,this.d=e.d,this.initDynamicPropertyContainer(t),this.p=PropertyFactory.getProp(t,e.p,1,0,this),this.s=PropertyFactory.getProp(t,e.s,1,0,this),this.r=PropertyFactory.getProp(t,e.r,0,0,this),this.dynamicProperties.length?this.k=!0:(this.k=!1,this.convertRectToPath())}return t.prototype={convertRectToPath:function(){var t=this.p.v[0],e=this.p.v[1],r=this.s.v[0]/2,i=this.s.v[1]/2,s=bmMin(r,i,this.r.v),a=s*(1-roundCorner);this.v._length=0,2===this.d||1===this.d?(this.v.setTripleAt(t+r,e-i+s,t+r,e-i+s,t+r,e-i+a,0,!0),this.v.setTripleAt(t+r,e+i-s,t+r,e+i-a,t+r,e+i-s,1,!0),0!==s?(this.v.setTripleAt(t+r-s,e+i,t+r-s,e+i,t+r-a,e+i,2,!0),this.v.setTripleAt(t-r+s,e+i,t-r+a,e+i,t-r+s,e+i,3,!0),this.v.setTripleAt(t-r,e+i-s,t-r,e+i-s,t-r,e+i-a,4,!0),this.v.setTripleAt(t-r,e-i+s,t-r,e-i+a,t-r,e-i+s,5,!0),this.v.setTripleAt(t-r+s,e-i,t-r+s,e-i,t-r+a,e-i,6,!0),this.v.setTripleAt(t+r-s,e-i,t+r-a,e-i,t+r-s,e-i,7,!0)):(this.v.setTripleAt(t-r,e+i,t-r+a,e+i,t-r,e+i,2),this.v.setTripleAt(t-r,e-i,t-r,e-i+a,t-r,e-i,3))):(this.v.setTripleAt(t+r,e-i+s,t+r,e-i+a,t+r,e-i+s,0,!0),0!==s?(this.v.setTripleAt(t+r-s,e-i,t+r-s,e-i,t+r-a,e-i,1,!0),this.v.setTripleAt(t-r+s,e-i,t-r+a,e-i,t-r+s,e-i,2,!0),this.v.setTripleAt(t-r,e-i+s,t-r,e-i+s,t-r,e-i+a,3,!0),this.v.setTripleAt(t-r,e+i-s,t-r,e+i-a,t-r,e+i-s,4,!0),this.v.setTripleAt(t-r+s,e+i,t-r+s,e+i,t-r+a,e+i,5,!0),this.v.setTripleAt(t+r-s,e+i,t+r-a,e+i,t+r-s,e+i,6,!0),this.v.setTripleAt(t+r,e+i-s,t+r,e+i-s,t+r,e+i-a,7,!0)):(this.v.setTripleAt(t-r,e-i,t-r+a,e-i,t-r,e-i,1,!0),this.v.setTripleAt(t-r,e+i,t-r,e+i-a,t-r,e+i,2,!0),this.v.setTripleAt(t+r,e+i,t+r-a,e+i,t+r,e+i,3,!0)))},getValue:function(){this.elem.globalData.frameId!==this.frameId&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf&&this.convertRectToPath())},reset:i},extendPrototype([DynamicPropertyContainer],t),t}(),f={getShapeProp:function(t,e,r){var i;return 3===r||4===r?i=(3===r?e.pt:e.ks).k.length?new h(t,e,r):new n(t,e,r):5===r?i=new m(t,e):6===r?i=new l(t,e):7===r&&(i=new p(t,e)),i.k&&t.addDynamicProperty(i),i},getConstructorFunction:function(){return n},getKeyframedConstructorFunction:function(){return h}};return f}(),Matrix=function(){var t=Math.cos,e=Math.sin,r=Math.tan,i=Math.round;function s(){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 a(r){if(0===r)return this;var i=t(r),s=e(r);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function n(r){if(0===r)return this;var i=t(r),s=e(r);return this._t(1,0,0,0,0,i,-s,0,0,s,i,0,0,0,0,1)}function o(r){if(0===r)return this;var i=t(r),s=e(r);return this._t(i,0,s,0,0,1,0,0,-s,0,i,0,0,0,0,1)}function h(r){if(0===r)return this;var i=t(r),s=e(r);return this._t(i,-s,0,0,s,i,0,0,0,0,1,0,0,0,0,1)}function l(t,e){return this._t(1,e,t,1,0,0)}function p(t,e){return this.shear(r(t),r(e))}function m(i,s){var a=t(s),n=e(s);return this._t(a,n,0,0,-n,a,0,0,0,0,1,0,0,0,0,1)._t(1,0,0,0,r(i),1,0,0,0,0,1,0,0,0,0,1)._t(a,-n,0,0,n,a,0,0,0,0,1,0,0,0,0,1)}function f(t,e,r){return r||0===r||(r=1),1===t&&1===e&&1===r?this:this._t(t,0,0,0,0,e,0,0,0,0,r,0,0,0,0,1)}function c(t,e,r,i,s,a,n,o,h,l,p,m,f,c,d,u){return this.props[0]=t,this.props[1]=e,this.props[2]=r,this.props[3]=i,this.props[4]=s,this.props[5]=a,this.props[6]=n,this.props[7]=o,this.props[8]=h,this.props[9]=l,this.props[10]=p,this.props[11]=m,this.props[12]=f,this.props[13]=c,this.props[14]=d,this.props[15]=u,this}function d(t,e,r){return r=r||0,0!==t||0!==e||0!==r?this._t(1,0,0,0,0,1,0,0,0,0,1,0,t,e,r,1):this}function u(t,e,r,i,s,a,n,o,h,l,p,m,f,c,d,u){var y=this.props;if(1===t&&0===e&&0===r&&0===i&&0===s&&1===a&&0===n&&0===o&&0===h&&0===l&&1===p&&0===m)return y[12]=y[12]*t+y[15]*f,y[13]=y[13]*a+y[15]*c,y[14]=y[14]*p+y[15]*d,y[15]*=u,this._identityCalculated=!1,this;var g=y[0],v=y[1],b=y[2],P=y[3],E=y[4],x=y[5],S=y[6],_=y[7],C=y[8],A=y[9],T=y[10],k=y[11],D=y[12],M=y[13],F=y[14],w=y[15];return y[0]=g*t+v*s+b*h+P*f,y[1]=g*e+v*a+b*l+P*c,y[2]=g*r+v*n+b*p+P*d,y[3]=g*i+v*o+b*m+P*u,y[4]=E*t+x*s+S*h+_*f,y[5]=E*e+x*a+S*l+_*c,y[6]=E*r+x*n+S*p+_*d,y[7]=E*i+x*o+S*m+_*u,y[8]=C*t+A*s+T*h+k*f,y[9]=C*e+A*a+T*l+k*c,y[10]=C*r+A*n+T*p+k*d,y[11]=C*i+A*o+T*m+k*u,y[12]=D*t+M*s+F*h+w*f,y[13]=D*e+M*a+F*l+w*c,y[14]=D*r+M*n+F*p+w*d,y[15]=D*i+M*o+F*m+w*u,this._identityCalculated=!1,this}function y(){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 g(t){for(var e=0;e<16;){if(t.props[e]!==this.props[e])return!1;e+=1}return!0}function v(t){var e;for(e=0;e<16;e+=1)t.props[e]=this.props[e];return t}function b(t){var e;for(e=0;e<16;e+=1)this.props[e]=t[e]}function P(t,e,r){return{x:t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],y:t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],z:t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}}function E(t,e,r){return t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12]}function x(t,e,r){return t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13]}function S(t,e,r){return t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]}function _(){var t=this.props[0]*this.props[5]-this.props[1]*this.props[4],e=this.props[5]/t,r=-this.props[1]/t,i=-this.props[4]/t,s=this.props[0]/t,a=(this.props[4]*this.props[13]-this.props[5]*this.props[12])/t,n=-(this.props[0]*this.props[13]-this.props[1]*this.props[12])/t,o=new Matrix;return o.props[0]=e,o.props[1]=r,o.props[4]=i,o.props[5]=s,o.props[12]=a,o.props[13]=n,o}function C(t){return this.getInverseMatrix().applyToPointArray(t[0],t[1],t[2]||0)}function A(t){var e,r=t.length,i=[];for(e=0;e<r;e+=1)i[e]=C(t[e]);return i}function T(t,e,r){var i=createTypedArray("float32",6);if(this.isIdentity())i[0]=t[0],i[1]=t[1],i[2]=e[0],i[3]=e[1],i[4]=r[0],i[5]=r[1];else{var s=this.props[0],a=this.props[1],n=this.props[4],o=this.props[5],h=this.props[12],l=this.props[13];i[0]=t[0]*s+t[1]*n+h,i[1]=t[0]*a+t[1]*o+l,i[2]=e[0]*s+e[1]*n+h,i[3]=e[0]*a+e[1]*o+l,i[4]=r[0]*s+r[1]*n+h,i[5]=r[0]*a+r[1]*o+l}return i}function k(t,e,r){return this.isIdentity()?[t,e,r]:[t*this.props[0]+e*this.props[4]+r*this.props[8]+this.props[12],t*this.props[1]+e*this.props[5]+r*this.props[9]+this.props[13],t*this.props[2]+e*this.props[6]+r*this.props[10]+this.props[14]]}function D(t,e){if(this.isIdentity())return t+","+e;var r=this.props;return Math.round(100*(t*r[0]+e*r[4]+r[12]))/100+","+Math.round(100*(t*r[1]+e*r[5]+r[13]))/100}function M(){for(var t=0,e=this.props,r="matrix3d(";t<16;)r+=i(1e4*e[t])/1e4,r+=15===t?")":",",t+=1;return r}function F(t){return t<1e-6&&t>0||t>-1e-6&&t<0?i(1e4*t)/1e4:t}function w(){var t=this.props;return"matrix("+F(t[0])+","+F(t[1])+","+F(t[4])+","+F(t[5])+","+F(t[12])+","+F(t[13])+")"}return function(){this.reset=s,this.rotate=a,this.rotateX=n,this.rotateY=o,this.rotateZ=h,this.skew=p,this.skewFromAxis=m,this.shear=l,this.scale=f,this.setTransform=c,this.translate=d,this.transform=u,this.applyToPoint=P,this.applyToX=E,this.applyToY=x,this.applyToZ=S,this.applyToPointArray=k,this.applyToTriplePoints=T,this.applyToPointStringified=D,this.toCSS=M,this.to2dCSS=w,this.clone=v,this.cloneFromProps=b,this.equals=g,this.inversePoints=A,this.inversePoint=C,this.getInverseMatrix=_,this._t=this.transform,this.isIdentity=y,this._identity=!0,this._identityCalculated=!1,this.props=createTypedArray("float32",16),this.reset()}}();function _typeof$3(t){return _typeof$3="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$3(t)}var lottie={},standalone="__[STANDALONE]__",animationData="__[ANIMATIONDATA]__",renderer="";function setLocation(t){setLocationHref(t)}function searchAnimations(){!0===standalone?animationManager.searchAnimations(animationData,standalone,renderer):animationManager.searchAnimations()}function setSubframeRendering(t){setSubframeEnabled(t)}function setPrefix(t){setIdPrefix(t)}function loadAnimation(t){return!0===standalone&&(t.animationData=JSON.parse(animationData)),animationManager.loadAnimation(t)}function setQuality(t){if("string"===typeof t)switch(t){case"high":setDefaultCurveSegments(200);break;default:case"medium":setDefaultCurveSegments(50);break;case"low":setDefaultCurveSegments(10)}else!isNaN(t)&&t>1&&setDefaultCurveSegments(t);getDefaultCurveSegments()>=50?roundValues(!1):roundValues(!0)}function inBrowser(){return"undefined"!==typeof navigator}function installPlugin(t,e){"expressions"===t&&setExpressionsPlugin(e)}function getFactory(t){switch(t){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(t){for(var e=queryString.split("&"),r=0;r<e.length;r+=1){var i=e[r].split("=");if(decodeURIComponent(i[0])==t)return decodeURIComponent(i[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 t={},e={};return t.registerModifier=function(t,r){e[t]||(e[t]=r)},t.getModifier=function(t,r,i){return new e[t](r,i)},t}();function ShapeModifier(){}function TrimModifier(){}function PuckerAndBloatModifier(){}ShapeModifier.prototype.initModifierProperties=function(){},ShapeModifier.prototype.addShapeToModifier=function(){},ShapeModifier.prototype.addShape=function(t){if(!this.closed){t.sh.container.addDynamicProperty(t.sh);var e={shape:t.sh,data:t,localShapeCollection:shapeCollectionPool.newShapeCollection()};this.shapes.push(e),this.addShapeToModifier(e),this._isAnimated&&t.setAsAnimated()}},ShapeModifier.prototype.init=function(t,e){this.shapes=[],this.elem=t,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e),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(t,e){this.s=PropertyFactory.getProp(t,e.s,0,.01,this),this.e=PropertyFactory.getProp(t,e.e,0,.01,this),this.o=PropertyFactory.getProp(t,e.o,0,0,this),this.sValue=0,this.eValue=0,this.getValue=this.processKeys,this.m=e.m,this._isAnimated=!!this.s.effectsSequence.length||!!this.e.effectsSequence.length||!!this.o.effectsSequence.length},TrimModifier.prototype.addShapeToModifier=function(t){t.pathsData=[]},TrimModifier.prototype.calculateShapeEdges=function(t,e,r,i,s){var a=[];e<=1?a.push({s:t,e:e}):t>=1?a.push({s:t-1,e:e-1}):(a.push({s:t,e:1}),a.push({s:0,e:e-1}));var n,o,h=[],l=a.length;for(n=0;n<l;n+=1){var p,m;(o=a[n]).e*s<i||o.s*s>i+r||(p=o.s*s<=i?0:(o.s*s-i)/r,m=o.e*s>=i+r?1:(o.e*s-i)/r,h.push([p,m]))}return h.length||h.push([0,0]),h},TrimModifier.prototype.releasePathsData=function(t){var e,r=t.length;for(e=0;e<r;e+=1)segmentsLengthPool.release(t[e]);return t.length=0,t},TrimModifier.prototype.processShapes=function(t){var e,r,i,s;if(this._mdf||t){var a=this.o.v%360/360;if(a<0&&(a+=1),(e=this.s.v>1?1+a:this.s.v<0?0+a:this.s.v+a)>(r=this.e.v>1?1+a:this.e.v<0?0+a:this.e.v+a)){var n=e;e=r,r=n}e=1e-4*Math.round(1e4*e),r=1e-4*Math.round(1e4*r),this.sValue=e,this.eValue=r}else e=this.sValue,r=this.eValue;var o,h,l,p,m,f=this.shapes.length,c=0;if(r===e)for(s=0;s<f;s+=1)this.shapes[s].localShapeCollection.releaseShapes(),this.shapes[s].shape._mdf=!0,this.shapes[s].shape.paths=this.shapes[s].localShapeCollection,this._mdf&&(this.shapes[s].pathsData.length=0);else if(1===r&&0===e||0===r&&1===e){if(this._mdf)for(s=0;s<f;s+=1)this.shapes[s].pathsData.length=0,this.shapes[s].shape._mdf=!0}else{var d,u,y=[];for(s=0;s<f;s+=1)if((d=this.shapes[s]).shape._mdf||this._mdf||t||2===this.m){if(h=(i=d.shape.paths)._length,m=0,!d.shape._mdf&&d.pathsData.length)m=d.totalShapeLength;else{for(l=this.releasePathsData(d.pathsData),o=0;o<h;o+=1)p=bez.getSegmentsLength(i.shapes[o]),l.push(p),m+=p.totalLength;d.totalShapeLength=m,d.pathsData=l}c+=m,d.shape._mdf=!0}else d.shape.paths=d.localShapeCollection;var g,v=e,b=r,P=0;for(s=f-1;s>=0;s-=1)if((d=this.shapes[s]).shape._mdf){for((u=d.localShapeCollection).releaseShapes(),2===this.m&&f>1?(g=this.calculateShapeEdges(e,r,d.totalShapeLength,P,c),P+=d.totalShapeLength):g=[[v,b]],h=g.length,o=0;o<h;o+=1){v=g[o][0],b=g[o][1],y.length=0,b<=1?y.push({s:d.totalShapeLength*v,e:d.totalShapeLength*b}):v>=1?y.push({s:d.totalShapeLength*(v-1),e:d.totalShapeLength*(b-1)}):(y.push({s:d.totalShapeLength*v,e:d.totalShapeLength}),y.push({s:0,e:d.totalShapeLength*(b-1)}));var E=this.addShapes(d,y[0]);if(y[0].s!==y[0].e){if(y.length>1)if(d.shape.paths.shapes[d.shape.paths._length-1].c){var x=E.pop();this.addPaths(E,u),E=this.addShapes(d,y[1],x)}else this.addPaths(E,u),E=this.addShapes(d,y[1]);this.addPaths(E,u)}}d.shape.paths=u}}},TrimModifier.prototype.addPaths=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e.addShape(t[r])},TrimModifier.prototype.addSegment=function(t,e,r,i,s,a,n){s.setXYAt(e[0],e[1],"o",a),s.setXYAt(r[0],r[1],"i",a+1),n&&s.setXYAt(t[0],t[1],"v",a),s.setXYAt(i[0],i[1],"v",a+1)},TrimModifier.prototype.addSegmentFromArray=function(t,e,r,i){e.setXYAt(t[1],t[5],"o",r),e.setXYAt(t[2],t[6],"i",r+1),i&&e.setXYAt(t[0],t[4],"v",r),e.setXYAt(t[3],t[7],"v",r+1)},TrimModifier.prototype.addShapes=function(t,e,r){var i,s,a,n,o,h,l,p,m=t.pathsData,f=t.shape.paths.shapes,c=t.shape.paths._length,d=0,u=[],y=!0;for(r?(o=r._length,p=r._length):(r=shapePool.newElement(),o=0,p=0),u.push(r),i=0;i<c;i+=1){for(h=m[i].lengths,r.c=f[i].c,a=f[i].c?h.length:h.length+1,s=1;s<a;s+=1)if(d+(n=h[s-1]).addedLength<e.s)d+=n.addedLength,r.c=!1;else{if(d>e.e){r.c=!1;break}e.s<=d&&e.e>=d+n.addedLength?(this.addSegment(f[i].v[s-1],f[i].o[s-1],f[i].i[s],f[i].v[s],r,o,y),y=!1):(l=bez.getNewSegment(f[i].v[s-1],f[i].v[s],f[i].o[s-1],f[i].i[s],(e.s-d)/n.addedLength,(e.e-d)/n.addedLength,h[s-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1),d+=n.addedLength,o+=1}if(f[i].c&&h.length){if(n=h[s-1],d<=e.e){var g=h[s-1].addedLength;e.s<=d&&e.e>=d+g?(this.addSegment(f[i].v[s-1],f[i].o[s-1],f[i].i[0],f[i].v[0],r,o,y),y=!1):(l=bez.getNewSegment(f[i].v[s-1],f[i].v[0],f[i].o[s-1],f[i].i[0],(e.s-d)/g,(e.e-d)/g,h[s-1]),this.addSegmentFromArray(l,r,o,y),y=!1,r.c=!1)}else r.c=!1;d+=n.addedLength,o+=1}if(r._length&&(r.setXYAt(r.v[p][0],r.v[p][1],"i",p),r.setXYAt(r.v[r._length-1][0],r.v[r._length-1][1],"o",r._length-1)),d>e.e)break;i<c-1&&(r=shapePool.newElement(),y=!0,u.push(r),o=0)}return u},extendPrototype([ShapeModifier],PuckerAndBloatModifier),PuckerAndBloatModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.amount=PropertyFactory.getProp(t,e.a,0,null,this),this._isAnimated=!!this.amount.effectsSequence.length},PuckerAndBloatModifier.prototype.processPath=function(t,e){var r=e/100,i=[0,0],s=t._length,a=0;for(a=0;a<s;a+=1)i[0]+=t.v[a][0],i[1]+=t.v[a][1];i[0]/=s,i[1]/=s;var n,o,h,l,p,m,f=shapePool.newElement();for(f.c=t.c,a=0;a<s;a+=1)n=t.v[a][0]+(i[0]-t.v[a][0])*r,o=t.v[a][1]+(i[1]-t.v[a][1])*r,h=t.o[a][0]+(i[0]-t.o[a][0])*-r,l=t.o[a][1]+(i[1]-t.o[a][1])*-r,p=t.i[a][0]+(i[0]-t.i[a][0])*-r,m=t.i[a][1]+(i[1]-t.i[a][1])*-r,f.setTripleAt(n,o,h,l,p,m,a);return f},PuckerAndBloatModifier.prototype.processShapes=function(t){var e,r,i,s,a,n,o=this.shapes.length,h=this.amount.v;if(0!==h)for(r=0;r<o;r+=1){if(n=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,i=0;i<s;i+=1)n.addShape(this.processPath(e[i],h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var TransformPropertyFactory=function(){var t=[0,0];function e(t,e,r){if(this.elem=t,this.frameId=-1,this.propType="transform",this.data=e,this.v=new Matrix,this.pre=new Matrix,this.appliedTransformations=0,this.initDynamicPropertyContainer(r||t),e.p&&e.p.s?(this.px=PropertyFactory.getProp(t,e.p.x,0,0,this),this.py=PropertyFactory.getProp(t,e.p.y,0,0,this),e.p.z&&(this.pz=PropertyFactory.getProp(t,e.p.z,0,0,this))):this.p=PropertyFactory.getProp(t,e.p||{k:[0,0,0]},1,0,this),e.rx){if(this.rx=PropertyFactory.getProp(t,e.rx,0,degToRads,this),this.ry=PropertyFactory.getProp(t,e.ry,0,degToRads,this),this.rz=PropertyFactory.getProp(t,e.rz,0,degToRads,this),e.or.k[0].ti){var i,s=e.or.k.length;for(i=0;i<s;i+=1)e.or.k[i].to=null,e.or.k[i].ti=null}this.or=PropertyFactory.getProp(t,e.or,1,degToRads,this),this.or.sh=!0}else this.r=PropertyFactory.getProp(t,e.r||{k:0},0,degToRads,this);e.sk&&(this.sk=PropertyFactory.getProp(t,e.sk,0,degToRads,this),this.sa=PropertyFactory.getProp(t,e.sa,0,degToRads,this)),this.a=PropertyFactory.getProp(t,e.a||{k:[0,0,0]},1,0,this),this.s=PropertyFactory.getProp(t,e.s||{k:[100,100,100]},1,.01,this),e.o?this.o=PropertyFactory.getProp(t,e.o,0,.01,t):this.o={_mdf:!1,v:1},this._isDirty=!0,this.dynamicProperties.length||this.getValue(!0)}return e.prototype={applyToMatrix:function(t){var e=this._mdf;this.iterateDynamicProperties(),this._mdf=this._mdf||e,this.a&&t.translate(-this.a.v[0],-this.a.v[1],this.a.v[2]),this.s&&t.scale(this.s.v[0],this.s.v[1],this.s.v[2]),this.sk&&t.skewFromAxis(-this.sk.v,this.sa.v),this.r?t.rotate(-this.r.v):t.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?t.translate(this.px.v,this.py.v,-this.pz.v):t.translate(this.px.v,this.py.v,0):t.translate(this.p.v[0],this.p.v[1],-this.p.v[2])},getValue:function(e){if(this.elem.globalData.frameId!==this.frameId){if(this._isDirty&&(this.precalculateMatrix(),this._isDirty=!1),this.iterateDynamicProperties(),this._mdf||e){var r;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 i,s;if(r=this.elem.globalData.frameRate,this.p&&this.p.keyframes&&this.p.getValueAtTime)this.p._caching.lastFrame+this.p.offsetTime<=this.p.keyframes[0].t?(i=this.p.getValueAtTime((this.p.keyframes[0].t+.01)/r,0),s=this.p.getValueAtTime(this.p.keyframes[0].t/r,0)):this.p._caching.lastFrame+this.p.offsetTime>=this.p.keyframes[this.p.keyframes.length-1].t?(i=this.p.getValueAtTime(this.p.keyframes[this.p.keyframes.length-1].t/r,0),s=this.p.getValueAtTime((this.p.keyframes[this.p.keyframes.length-1].t-.05)/r,0)):(i=this.p.pv,s=this.p.getValueAtTime((this.p._caching.lastFrame+this.p.offsetTime-.01)/r,this.p.offsetTime));else if(this.px&&this.px.keyframes&&this.py.keyframes&&this.px.getValueAtTime&&this.py.getValueAtTime){i=[],s=[];var a=this.px,n=this.py;a._caching.lastFrame+a.offsetTime<=a.keyframes[0].t?(i[0]=a.getValueAtTime((a.keyframes[0].t+.01)/r,0),i[1]=n.getValueAtTime((n.keyframes[0].t+.01)/r,0),s[0]=a.getValueAtTime(a.keyframes[0].t/r,0),s[1]=n.getValueAtTime(n.keyframes[0].t/r,0)):a._caching.lastFrame+a.offsetTime>=a.keyframes[a.keyframes.length-1].t?(i[0]=a.getValueAtTime(a.keyframes[a.keyframes.length-1].t/r,0),i[1]=n.getValueAtTime(n.keyframes[n.keyframes.length-1].t/r,0),s[0]=a.getValueAtTime((a.keyframes[a.keyframes.length-1].t-.01)/r,0),s[1]=n.getValueAtTime((n.keyframes[n.keyframes.length-1].t-.01)/r,0)):(i=[a.pv,n.pv],s[0]=a.getValueAtTime((a._caching.lastFrame+a.offsetTime-.01)/r,a.offsetTime),s[1]=n.getValueAtTime((n._caching.lastFrame+n.offsetTime-.01)/r,n.offsetTime))}else i=s=t;this.v.rotate(-Math.atan2(i[1]-s[1],i[0]-s[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],e),e.prototype.addDynamicProperty=function(t){this._addDynamicProperty(t),this.elem.addDynamicProperty(t),this._isDirty=!0},e.prototype._addDynamicProperty=DynamicPropertyContainer.prototype.addDynamicProperty,{getTransformProperty:function(t,r,i){return new e(t,r,i)}}}();function RepeaterModifier(){}function RoundCornersModifier(){}function getFontProperties(t){for(var e=t.fStyle?t.fStyle.split(" "):[],r="normal",i="normal",s=e.length,a=0;a<s;a+=1)switch(e[a].toLowerCase()){case"italic":i="italic";break;case"bold":r="700";break;case"black":r="900";break;case"medium":r="500";break;case"regular":case"normal":r="400";break;case"light":case"thin":r="200"}return{style:i,weight:t.fWeight||r}}extendPrototype([ShapeModifier],RepeaterModifier),RepeaterModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.c=PropertyFactory.getProp(t,e.c,0,null,this),this.o=PropertyFactory.getProp(t,e.o,0,null,this),this.tr=TransformPropertyFactory.getTransformProperty(t,e.tr,this),this.so=PropertyFactory.getProp(t,e.tr.so,0,.01,this),this.eo=PropertyFactory.getProp(t,e.tr.eo,0,.01,this),this.data=e,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(t,e,r,i,s,a){var n=a?-1:1,o=i.s.v[0]+(1-i.s.v[0])*(1-s),h=i.s.v[1]+(1-i.s.v[1])*(1-s);t.translate(i.p.v[0]*n*s,i.p.v[1]*n*s,i.p.v[2]),e.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),e.rotate(-i.r.v*n*s),e.translate(i.a.v[0],i.a.v[1],i.a.v[2]),r.translate(-i.a.v[0],-i.a.v[1],i.a.v[2]),r.scale(a?1/o:o,a?1/h:h),r.translate(i.a.v[0],i.a.v[1],i.a.v[2])},RepeaterModifier.prototype.init=function(t,e,r,i){for(this.elem=t,this.arr=e,this.pos=r,this.elemsData=i,this._currentCopies=0,this._elements=[],this._groups=[],this.frameId=-1,this.initDynamicPropertyContainer(t),this.initModifierProperties(t,e[r]);r>0;)r-=1,this._elements.unshift(e[r]);this.dynamicProperties.length?this.k=!0:this.getValue(!0)},RepeaterModifier.prototype.resetElements=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e]._processed=!1,"gr"===t[e].ty&&this.resetElements(t[e].it)},RepeaterModifier.prototype.cloneElements=function(t){var e=JSON.parse(JSON.stringify(t));return this.resetElements(e),e},RepeaterModifier.prototype.changeGroupRender=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]._render=e,"gr"===t[r].ty&&this.changeGroupRender(t[r].it,e)},RepeaterModifier.prototype.processShapes=function(t){var e,r,i,s,a,n=!1;if(this._mdf||t){var o,h=Math.ceil(this.c.v);if(this._groups.length<h){for(;this._groups.length<h;){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(),n=!0}for(a=0,i=0;i<=this._groups.length-1;i+=1){if(o=a<h,this._groups[i]._render=o,this.changeGroupRender(this._groups[i].it,o),!o){var p=this.elemsData[i].it,m=p[p.length-1];0!==m.transform.op.v?(m.transform.op._mdf=!0,m.transform.op.v=0):m.transform.op._mdf=!1}a+=1}this._currentCopies=h;var f=this.o.v,c=f%1,d=f>0?Math.floor(f):Math.ceil(f),u=this.pMatrix.props,y=this.rMatrix.props,g=this.sMatrix.props;this.pMatrix.reset(),this.rMatrix.reset(),this.sMatrix.reset(),this.tMatrix.reset(),this.matrix.reset();var v,b,P=0;if(f>0){for(;P<d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),P+=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,c,!1),P+=c)}else if(f<0){for(;P>d;)this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!0),P-=1;c&&(this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,-c,!0),P-=c)}for(i=1===this.data.m?0:this._currentCopies-1,s=1===this.data.m?1:-1,a=this._currentCopies;a;){if(b=(r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props).length,e[e.length-1].transform.mProps._mdf=!0,e[e.length-1].transform.op._mdf=!0,e[e.length-1].transform.op.v=1===this._currentCopies?this.so.v:this.so.v+(this.eo.v-this.so.v)*(i/(this._currentCopies-1)),0!==P){for((0!==i&&1===s||i!==this._currentCopies-1&&-1===s)&&this.applyTransforms(this.pMatrix,this.rMatrix,this.sMatrix,this.tr,1,!1),this.matrix.transform(y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],y[8],y[9],y[10],y[11],y[12],y[13],y[14],y[15]),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(u[0],u[1],u[2],u[3],u[4],u[5],u[6],u[7],u[8],u[9],u[10],u[11],u[12],u[13],u[14],u[15]),v=0;v<b;v+=1)r[v]=this.matrix.props[v];this.matrix.reset()}else for(this.matrix.reset(),v=0;v<b;v+=1)r[v]=this.matrix.props[v];P+=1,a-=1,i+=s}}else for(a=this._currentCopies,i=0,s=1;a;)r=(e=this.elemsData[i].it)[e.length-1].transform.mProps.v.props,e[e.length-1].transform.mProps._mdf=!1,e[e.length-1].transform.op._mdf=!1,a-=1,i+=s;return n},RepeaterModifier.prototype.addShape=function(){},extendPrototype([ShapeModifier],RoundCornersModifier),RoundCornersModifier.prototype.initModifierProperties=function(t,e){this.getValue=this.processKeys,this.rd=PropertyFactory.getProp(t,e.r,0,null,this),this._isAnimated=!!this.rd.effectsSequence.length},RoundCornersModifier.prototype.processPath=function(t,e){var r,i=shapePool.newElement();i.c=t.c;var s,a,n,o,h,l,p,m,f,c,d,u,y=t._length,g=0;for(r=0;r<y;r+=1)s=t.v[r],n=t.o[r],a=t.i[r],s[0]===n[0]&&s[1]===n[1]&&s[0]===a[0]&&s[1]===a[1]?0!==r&&r!==y-1||t.c?(o=0===r?t.v[y-1]:t.v[r-1],l=(h=Math.sqrt(Math.pow(s[0]-o[0],2)+Math.pow(s[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=d=s[0]+(o[0]-s[0])*l,m=u=s[1]-(s[1]-o[1])*l,f=p-(p-s[0])*roundCorner,c=m-(m-s[1])*roundCorner,i.setTripleAt(p,m,f,c,d,u,g),g+=1,o=r===y-1?t.v[0]:t.v[r+1],l=(h=Math.sqrt(Math.pow(s[0]-o[0],2)+Math.pow(s[1]-o[1],2)))?Math.min(h/2,e)/h:0,p=f=s[0]+(o[0]-s[0])*l,m=c=s[1]+(o[1]-s[1])*l,d=p-(p-s[0])*roundCorner,u=m-(m-s[1])*roundCorner,i.setTripleAt(p,m,f,c,d,u,g),g+=1):(i.setTripleAt(s[0],s[1],n[0],n[1],a[0],a[1],g),g+=1):(i.setTripleAt(t.v[r][0],t.v[r][1],t.o[r][0],t.o[r][1],t.i[r][0],t.i[r][1],g),g+=1);return i},RoundCornersModifier.prototype.processShapes=function(t){var e,r,i,s,a,n,o=this.shapes.length,h=this.rd.v;if(0!==h)for(r=0;r<o;r+=1){if(n=(a=this.shapes[r]).localShapeCollection,a.shape._mdf||this._mdf||t)for(n.releaseShapes(),a.shape._mdf=!0,e=a.shape.paths.shapes,s=a.shape.paths._length,i=0;i<s;i+=1)n.addShape(this.processPath(e[i],h));a.shape.paths=a.localShapeCollection}this.dynamicProperties.length||(this._mdf=!1)};var FontManager=function(){var t={w:0,size:0,shapes:[],data:{shapes:[]}},e=[];e=e.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 r=["d83cdffb","d83cdffc","d83cdffd","d83cdffe","d83cdfff"],i=[65039,8205];function s(t,e){var r=createTag("span");r.setAttribute("aria-hidden",!0),r.style.fontFamily=e;var i=createTag("span");i.innerText="giItT1WQy@!-/#",r.style.position="absolute",r.style.left="-10000px",r.style.top="-10000px",r.style.fontSize="300px",r.style.fontVariant="normal",r.style.fontStyle="normal",r.style.fontWeight="normal",r.style.letterSpacing="0",r.appendChild(i),document.body.appendChild(r);var s=i.offsetWidth;return i.style.fontFamily=function(t){var e,r=t.split(","),i=r.length,s=[];for(e=0;e<i;e+=1)"sans-serif"!==r[e]&&"monospace"!==r[e]&&s.push(r[e]);return s.join(",")}(t)+", "+e,{node:i,w:s,parent:r}}function a(t,e){var r,i=document.body&&e?"svg":"canvas",s=getFontProperties(t);if("svg"===i){var a=createNS("text");a.style.fontSize="100px",a.setAttribute("font-family",t.fFamily),a.setAttribute("font-style",s.style),a.setAttribute("font-weight",s.weight),a.textContent="1",t.fClass?(a.style.fontFamily="inherit",a.setAttribute("class",t.fClass)):a.style.fontFamily=t.fFamily,e.appendChild(a),r=a}else{var n=new OffscreenCanvas(500,500).getContext("2d");n.font=s.style+" "+s.weight+" 100px "+t.fFamily,r=n}return{measureText:function(t){return"svg"===i?(r.textContent=t,r.getComputedTextLength()):r.measureText(t).width}}}var n=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)};n.isModifier=function(t,e){var i=t.toString(16)+e.toString(16);return-1!==r.indexOf(i)},n.isZeroWidthJoiner=function(t,e){return e?t===i[0]&&e===i[1]:t===i[1]},n.isCombinedCharacter=function(t){return-1!==e.indexOf(t)};var o={addChars:function(t){if(t){var e;this.chars||(this.chars=[]);var r,i,s=t.length,a=this.chars.length;for(e=0;e<s;e+=1){for(r=0,i=!1;r<a;)this.chars[r].style===t[e].style&&this.chars[r].fFamily===t[e].fFamily&&this.chars[r].ch===t[e].ch&&(i=!0),r+=1;i||(this.chars.push(t[e]),a+=1)}}},addFonts:function(t,e){if(t){if(this.chars)return this.isLoaded=!0,void(this.fonts=t.list);if(!document.body)return this.isLoaded=!0,t.list.forEach((function(t){t.helper=a(t),t.cache={}})),void(this.fonts=t.list);var r,i=t.list,n=i.length,o=n;for(r=0;r<n;r+=1){var h,l,p=!0;if(i[r].loaded=!1,i[r].monoCase=s(i[r].fFamily,"monospace"),i[r].sansCase=s(i[r].fFamily,"sans-serif"),i[r].fPath){if("p"===i[r].fOrigin||3===i[r].origin){if((h=document.querySelectorAll('style[f-forigin="p"][f-family="'+i[r].fFamily+'"], style[f-origin="3"][f-family="'+i[r].fFamily+'"]')).length>0&&(p=!1),p){var m=createTag("style");m.setAttribute("f-forigin",i[r].fOrigin),m.setAttribute("f-origin",i[r].origin),m.setAttribute("f-family",i[r].fFamily),m.type="text/css",m.innerText="@font-face {font-family: "+i[r].fFamily+"; font-style: normal; src: url('"+i[r].fPath+"');}",e.appendChild(m)}}else if("g"===i[r].fOrigin||1===i[r].origin){for(h=document.querySelectorAll('link[f-forigin="g"], link[f-origin="1"]'),l=0;l<h.length;l+=1)-1!==h[l].href.indexOf(i[r].fPath)&&(p=!1);if(p){var f=createTag("link");f.setAttribute("f-forigin",i[r].fOrigin),f.setAttribute("f-origin",i[r].origin),f.type="text/css",f.rel="stylesheet",f.href=i[r].fPath,document.body.appendChild(f)}}else if("t"===i[r].fOrigin||2===i[r].origin){for(h=document.querySelectorAll('script[f-forigin="t"], script[f-origin="2"]'),l=0;l<h.length;l+=1)i[r].fPath===h[l].src&&(p=!1);if(p){var c=createTag("link");c.setAttribute("f-forigin",i[r].fOrigin),c.setAttribute("f-origin",i[r].origin),c.setAttribute("rel","stylesheet"),c.setAttribute("href",i[r].fPath),e.appendChild(c)}}}else i[r].loaded=!0,o-=1;i[r].helper=a(i[r],e),i[r].cache={},this.fonts.push(i[r])}0===o?this.isLoaded=!0:setTimeout(this.checkLoadedFonts.bind(this),100)}else this.isLoaded=!0},getCharData:function(e,r,i){for(var s=0,a=this.chars.length;s<a;){if(this.chars[s].ch===e&&this.chars[s].style===r&&this.chars[s].fFamily===i)return this.chars[s];s+=1}return("string"===typeof e&&13!==e.charCodeAt(0)||!e)&&console&&console.warn&&!this._warned&&(this._warned=!0,console.warn("Missing character from exported characters list: ",e,r,i)),t},getFontByName:function(t){for(var e=0,r=this.fonts.length;e<r;){if(this.fonts[e].fName===t)return this.fonts[e];e+=1}return this.fonts[0]},measureText:function(t,e,r){var i=this.getFontByName(e),s=t.charCodeAt(0);if(!i.cache[s+1]){var a=i.helper;if(" "===t){var n=a.measureText("|"+t+"|"),o=a.measureText("||");i.cache[s+1]=(n-o)/100}else i.cache[s+1]=a.measureText(t)/100}return i.cache[s+1]*r},checkLoadedFonts:function(){var t,e,r,i=this.fonts.length,s=i;for(t=0;t<i;t+=1)this.fonts[t].loaded?s-=1:"n"===this.fonts[t].fOrigin||0===this.fonts[t].origin?this.fonts[t].loaded=!0:(e=this.fonts[t].monoCase.node,r=this.fonts[t].monoCase.w,e.offsetWidth!==r?(s-=1,this.fonts[t].loaded=!0):(e=this.fonts[t].sansCase.node,r=this.fonts[t].sansCase.w,e.offsetWidth!==r&&(s-=1,this.fonts[t].loaded=!0)),this.fonts[t].loaded&&(this.fonts[t].sansCase.parent.parentNode.removeChild(this.fonts[t].sansCase.parent),this.fonts[t].monoCase.parent.parentNode.removeChild(this.fonts[t].monoCase.parent)));0!==s&&Date.now()-this.initTime<5e3?setTimeout(this.checkLoadedFontsBinded,20):setTimeout(this.setIsLoadedBinded,10)},setIsLoaded:function(){this.isLoaded=!0}};return n.prototype=o,n}();function RenderableElement(){}RenderableElement.prototype={initRenderable:function(){this.isInRange=!1,this.hidden=!1,this.isTransparent=!1,this.renderableComponents=[]},addRenderableComponent:function(t){-1===this.renderableComponents.indexOf(t)&&this.renderableComponents.push(t)},removeRenderableComponent:function(t){-1!==this.renderableComponents.indexOf(t)&&this.renderableComponents.splice(this.renderableComponents.indexOf(t),1)},prepareRenderableFrame:function(t){this.checkLayerLimits(t)},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(t){this.data.ip-this.data.st<=t&&this.data.op-this.data.st>t?!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 t,e=this.renderableComponents.length;for(t=0;t<e;t+=1)this.renderableComponents[t].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 t(t,e){this._mask=t,this._data=e}return Object.defineProperty(t.prototype,"maskPath",{get:function(){return this._mask.prop.k&&this._mask.prop.getValue(),this._mask.prop}}),Object.defineProperty(t.prototype,"maskOpacity",{get:function(){return this._mask.op.k&&this._mask.op.getValue(),100*this._mask.op.v}}),function(e){var r,i=createSizedArray(e.viewData.length),s=e.viewData.length;for(r=0;r<s;r+=1)i[r]=new t(e.viewData[r],e.masksProperties[r]);return function(t){for(r=0;r<s;){if(e.masksProperties[r].nm===t)return i[r];r+=1}return null}}}(),ExpressionPropertyInterface=function(){var t={pv:0,v:0,mult:1},e={pv:[0,0,0],v:[0,0,0],mult:1};function r(t,e,r){Object.defineProperty(t,"velocity",{get:function(){return e.getVelocityAtTime(e.comp.currentFrame)}}),t.numKeys=e.keyframes?e.keyframes.length:0,t.key=function(i){if(!t.numKeys)return 0;var s="";s="s"in e.keyframes[i-1]?e.keyframes[i-1].s:"e"in e.keyframes[i-2]?e.keyframes[i-2].e:e.keyframes[i-2].s;var a="unidimensional"===r?new Number(s):Object.assign({},s);return a.time=e.keyframes[i-1].t/e.elem.comp.globalData.frameRate,a.value="unidimensional"===r?s[0]:s,a},t.valueAtTime=e.getValueAtTime,t.speedAtTime=e.getSpeedAtTime,t.velocityAtTime=e.getVelocityAtTime,t.propertyGroup=e.propertyGroup}function i(){return t}return function(s){return s?"unidimensional"===s.propType?function(e){e&&"pv"in e||(e=t);var i=1/e.mult,s=e.pv*i,a=new Number(s);return a.value=s,r(a,e,"unidimensional"),function(){return e.k&&e.getValue(),s=e.v*i,a.value!==s&&((a=new Number(s)).value=s,r(a,e,"unidimensional")),a}}(s):function(t){t&&"pv"in t||(t=e);var i=1/t.mult,s=t.data&&t.data.l||t.pv.length,a=createTypedArray("float32",s),n=createTypedArray("float32",s);return a.value=n,r(a,t,"multidimensional"),function(){t.k&&t.getValue();for(var e=0;e<s;e+=1)n[e]=t.v[e]*i,a[e]=n[e];return a}}(s):i}}(),TransformExpressionInterface=function(t){function e(t){switch(t){case"scale":case"Scale":case"ADBE Scale":case 6:return e.scale;case"rotation":case"Rotation":case"ADBE Rotation":case"ADBE Rotate Z":case 10:return e.rotation;case"ADBE Rotate X":return e.xRotation;case"ADBE Rotate Y":return e.yRotation;case"position":case"Position":case"ADBE Position":case 2:return e.position;case"ADBE Position_0":return e.xPosition;case"ADBE Position_1":return e.yPosition;case"ADBE Position_2":return e.zPosition;case"anchorPoint":case"AnchorPoint":case"Anchor Point":case"ADBE AnchorPoint":case 1:return e.anchorPoint;case"opacity":case"Opacity":case 11:return e.opacity;default:return null}}var r,i,s,a;return Object.defineProperty(e,"rotation",{get:ExpressionPropertyInterface(t.r||t.rz)}),Object.defineProperty(e,"zRotation",{get:ExpressionPropertyInterface(t.rz||t.r)}),Object.defineProperty(e,"xRotation",{get:ExpressionPropertyInterface(t.rx)}),Object.defineProperty(e,"yRotation",{get:ExpressionPropertyInterface(t.ry)}),Object.defineProperty(e,"scale",{get:ExpressionPropertyInterface(t.s)}),t.p?a=ExpressionPropertyInterface(t.p):(r=ExpressionPropertyInterface(t.px),i=ExpressionPropertyInterface(t.py),t.pz&&(s=ExpressionPropertyInterface(t.pz))),Object.defineProperty(e,"position",{get:function(){return t.p?a():[r(),i(),s?s():0]}}),Object.defineProperty(e,"xPosition",{get:ExpressionPropertyInterface(t.px)}),Object.defineProperty(e,"yPosition",{get:ExpressionPropertyInterface(t.py)}),Object.defineProperty(e,"zPosition",{get:ExpressionPropertyInterface(t.pz)}),Object.defineProperty(e,"anchorPoint",{get:ExpressionPropertyInterface(t.a)}),Object.defineProperty(e,"opacity",{get:ExpressionPropertyInterface(t.o)}),Object.defineProperty(e,"skew",{get:ExpressionPropertyInterface(t.sk)}),Object.defineProperty(e,"skewAxis",{get:ExpressionPropertyInterface(t.sa)}),Object.defineProperty(e,"orientation",{get:ExpressionPropertyInterface(t.or)}),e},LayerExpressionInterface=function(){function t(t){var e=new Matrix;return void 0!==t?this._elem.finalTransform.mProp.getValueAtTime(t).clone(e):this._elem.finalTransform.mProp.applyToMatrix(e),e}function e(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.applyPoint(r,t)}function r(t,e){var r=this.getMatrix(e);return this.applyPoint(r,t)}function i(t,e){var r=this.getMatrix(e);return r.props[12]=0,r.props[13]=0,r.props[14]=0,this.invertPoint(r,t)}function s(t,e){var r=this.getMatrix(e);return this.invertPoint(r,t)}function a(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.applyToPointArray(e[0],e[1],e[2]||0)}function n(t,e){if(this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(t)}return t.inversePoint(e)}function o(t){var e=new Matrix;if(e.reset(),this._elem.finalTransform.mProp.applyToMatrix(e),this._elem.hierarchy&&this._elem.hierarchy.length){var r,i=this._elem.hierarchy.length;for(r=0;r<i;r+=1)this._elem.hierarchy[r].finalTransform.mProp.applyToMatrix(e);return e.inversePoint(t)}return e.inversePoint(t)}function h(){return[1,1,1,1]}return function(l){var p;function m(t){switch(t){case"ADBE Root Vectors Group":case"Contents":case 2:return m.shapeInterface;case 1:case 6:case"Transform":case"transform":case"ADBE Transform Group":return p;case 4:case"ADBE Effect Parade":case"effects":case"Effects":return m.effect;case"ADBE Text Properties":return m.textInterface;default:return null}}m.getMatrix=t,m.invertPoint=n,m.applyPoint=a,m.toWorld=r,m.toWorldVec=e,m.fromWorld=s,m.fromWorldVec=i,m.toComp=r,m.fromComp=o,m.sampleImage=h,m.sourceRectAtTime=l.sourceRectAtTime.bind(l),m._elem=l;var f=getDescriptor(p=TransformExpressionInterface(l.finalTransform.mProp),"anchorPoint");return Object.defineProperties(m,{hasParent:{get:function(){return l.hierarchy.length}},parent:{get:function(){return l.hierarchy[0].layerInterface}},rotation:getDescriptor(p,"rotation"),scale:getDescriptor(p,"scale"),position:getDescriptor(p,"position"),opacity:getDescriptor(p,"opacity"),anchorPoint:f,anchor_point:f,transform:{get:function(){return p}},active:{get:function(){return l.isInRange}}}),m.startTime=l.data.st,m.index=l.data.ind,m.source=l.data.refId,m.height=0===l.data.ty?l.data.h:100,m.width=0===l.data.ty?l.data.w:100,m.inPoint=l.data.ip/l.comp.globalData.frameRate,m.outPoint=l.data.op/l.comp.globalData.frameRate,m._name=l.data.nm,m.registerMaskInterface=function(t){m.mask=new MaskManagerInterface(t,l)},m.registerEffectsInterface=function(t){m.effect=t},m}}(),propertyGroupFactory=function(t,e){return function(r){return(r=void 0===r?1:r)<=0?t:e(r-1)}},PropertyInterface=function(t,e){var r={_name:t};return function(t){return(t=void 0===t?1:t)<=0?r:e(t-1)}},EffectsExpressionInterface=function(){function t(r,i,s,a){function n(t){for(var e=r.ef,i=0,s=e.length;i<s;){if(t===e[i].nm||t===e[i].mn||t===e[i].ix)return 5===e[i].ty?l[i]:l[i]();i+=1}throw new Error}var o,h=propertyGroupFactory(n,s),l=[],p=r.ef.length;for(o=0;o<p;o+=1)5===r.ef[o].ty?l.push(t(r.ef[o],i.effectElements[o],i.effectElements[o].propertyGroup,a)):l.push(e(i.effectElements[o],r.ef[o].ty,a,h));return"ADBE Color Control"===r.mn&&Object.defineProperty(n,"color",{get:function(){return l[0]()}}),Object.defineProperties(n,{numProperties:{get:function(){return r.np}},_name:{value:r.nm},propertyGroup:{value:h}}),n.enabled=0!==r.en,n.active=n.enabled,n}function e(t,e,r,i){var s=ExpressionPropertyInterface(t.p);return t.p.setGroupProperty&&t.p.setGroupProperty(PropertyInterface("",i)),function(){return 10===e?r.comp.compInterface(t.p.v):s()}}return{createEffectsInterface:function(e,r){if(e.effectsManager){var i,s=[],a=e.data.ef,n=e.effectsManager.effectElements.length;for(i=0;i<n;i+=1)s.push(t(a[i],e.effectsManager.effectElements[i],r,e));var o=e.data.ef||[],h=function(t){for(i=0,n=o.length;i<n;){if(t===o[i].nm||t===o[i].mn||t===o[i].ix)return s[i];i+=1}return null};return Object.defineProperty(h,"numProperties",{get:function(){return o.length}}),h}return null}}}(),CompExpressionInterface=function(t){function e(e){for(var r=0,i=t.layers.length;r<i;){if(t.layers[r].nm===e||t.layers[r].ind===e)return t.elements[r].layerInterface;r+=1}return null}return Object.defineProperty(e,"_name",{value:t.data.nm}),e.layer=e,e.pixelAspect=1,e.height=t.data.h||t.globalData.compSize.h,e.width=t.data.w||t.globalData.compSize.w,e.pixelAspect=1,e.frameDuration=1/t.globalData.frameRate,e.displayStartTime=0,e.numLayers=t.layers.length,e},ShapePathInterface=function(t,e,r){var i=e.sh;function s(t){return"Shape"===t||"shape"===t||"Path"===t||"path"===t||"ADBE Vector Shape"===t||2===t?s.path:null}var a=propertyGroupFactory(s,r);return i.setGroupProperty(PropertyInterface("Path",a)),Object.defineProperties(s,{path:{get:function(){return i.k&&i.getValue(),i}},shape:{get:function(){return i.k&&i.getValue(),i}},_name:{value:t.nm},ix:{value:t.ix},propertyIndex:{value:t.ix},mn:{value:t.mn},propertyGroup:{value:r}}),s},ShapeExpressionInterface=function(){function t(t,n,f){var c,d=[],u=t?t.length:0;for(c=0;c<u;c+=1)"gr"===t[c].ty?d.push(e(t[c],n[c],f)):"fl"===t[c].ty?d.push(r(t[c],n[c],f)):"st"===t[c].ty?d.push(s(t[c],n[c],f)):"tm"===t[c].ty?d.push(a(t[c],n[c],f)):"tr"===t[c].ty||("el"===t[c].ty?d.push(o(t[c],n[c],f)):"sr"===t[c].ty?d.push(h(t[c],n[c],f)):"sh"===t[c].ty?d.push(ShapePathInterface(t[c],n[c],f)):"rc"===t[c].ty?d.push(l(t[c],n[c],f)):"rd"===t[c].ty?d.push(p(t[c],n[c],f)):"rp"===t[c].ty?d.push(m(t[c],n[c],f)):"gf"===t[c].ty?d.push(i(t[c],n[c],f)):d.push((t[c],n[c],function(){return null})));return d}function e(e,r,i){var s=function(t){switch(t){case"ADBE Vectors Group":case"Contents":case 2:return s.content;default:return s.transform}};s.propertyGroup=propertyGroupFactory(s,i);var a=function(e,r,i){var s,a=function(t){for(var e=0,r=s.length;e<r;){if(s[e]._name===t||s[e].mn===t||s[e].propertyIndex===t||s[e].ix===t||s[e].ind===t)return s[e];e+=1}return"number"===typeof t?s[t-1]:null};a.propertyGroup=propertyGroupFactory(a,i),s=t(e.it,r.it,a.propertyGroup),a.numProperties=s.length;var o=n(e.it[e.it.length-1],r.it[r.it.length-1],a.propertyGroup);return a.transform=o,a.propertyIndex=e.cix,a._name=e.nm,a}(e,r,s.propertyGroup),o=n(e.it[e.it.length-1],r.it[r.it.length-1],s.propertyGroup);return s.content=a,s.transform=o,Object.defineProperty(s,"_name",{get:function(){return e.nm}}),s.numProperties=e.np,s.propertyIndex=e.ix,s.nm=e.nm,s.mn=e.mn,s}function r(t,e,r){function i(t){return"Color"===t||"color"===t?i.color:"Opacity"===t||"opacity"===t?i.opacity:null}return Object.defineProperties(i,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function i(t,e,r){function i(t){return"Start Point"===t||"start point"===t?i.startPoint:"End Point"===t||"end point"===t?i.endPoint:"Opacity"===t||"opacity"===t?i.opacity:null}return Object.defineProperties(i,{startPoint:{get:ExpressionPropertyInterface(e.s)},endPoint:{get:ExpressionPropertyInterface(e.e)},opacity:{get:ExpressionPropertyInterface(e.o)},type:{get:function(){return"a"}},_name:{value:t.nm},mn:{value:t.mn}}),e.s.setGroupProperty(PropertyInterface("Start Point",r)),e.e.setGroupProperty(PropertyInterface("End Point",r)),e.o.setGroupProperty(PropertyInterface("Opacity",r)),i}function s(t,e,r){var i,s=propertyGroupFactory(l,r),a=propertyGroupFactory(h,s);function n(r){Object.defineProperty(h,t.d[r].nm,{get:ExpressionPropertyInterface(e.d.dataProps[r].p)})}var o=t.d?t.d.length:0,h={};for(i=0;i<o;i+=1)n(i),e.d.dataProps[i].p.setGroupProperty(a);function l(t){return"Color"===t||"color"===t?l.color:"Opacity"===t||"opacity"===t?l.opacity:"Stroke Width"===t||"stroke width"===t?l.strokeWidth:null}return Object.defineProperties(l,{color:{get:ExpressionPropertyInterface(e.c)},opacity:{get:ExpressionPropertyInterface(e.o)},strokeWidth:{get:ExpressionPropertyInterface(e.w)},dash:{get:function(){return h}},_name:{value:t.nm},mn:{value:t.mn}}),e.c.setGroupProperty(PropertyInterface("Color",s)),e.o.setGroupProperty(PropertyInterface("Opacity",s)),e.w.setGroupProperty(PropertyInterface("Stroke Width",s)),l}function a(t,e,r){function i(e){return e===t.e.ix||"End"===e||"end"===e?i.end:e===t.s.ix?i.start:e===t.o.ix?i.offset:null}var s=propertyGroupFactory(i,r);return i.propertyIndex=t.ix,e.s.setGroupProperty(PropertyInterface("Start",s)),e.e.setGroupProperty(PropertyInterface("End",s)),e.o.setGroupProperty(PropertyInterface("Offset",s)),i.propertyIndex=t.ix,i.propertyGroup=r,Object.defineProperties(i,{start:{get:ExpressionPropertyInterface(e.s)},end:{get:ExpressionPropertyInterface(e.e)},offset:{get:ExpressionPropertyInterface(e.o)},_name:{value:t.nm}}),i.mn=t.mn,i}function n(t,e,r){function i(e){return t.a.ix===e||"Anchor Point"===e?i.anchorPoint:t.o.ix===e||"Opacity"===e?i.opacity:t.p.ix===e||"Position"===e?i.position:t.r.ix===e||"Rotation"===e||"ADBE Vector Rotation"===e?i.rotation:t.s.ix===e||"Scale"===e?i.scale:t.sk&&t.sk.ix===e||"Skew"===e?i.skew:t.sa&&t.sa.ix===e||"Skew Axis"===e?i.skewAxis:null}var s=propertyGroupFactory(i,r);return e.transform.mProps.o.setGroupProperty(PropertyInterface("Opacity",s)),e.transform.mProps.p.setGroupProperty(PropertyInterface("Position",s)),e.transform.mProps.a.setGroupProperty(PropertyInterface("Anchor Point",s)),e.transform.mProps.s.setGroupProperty(PropertyInterface("Scale",s)),e.transform.mProps.r.setGroupProperty(PropertyInterface("Rotation",s)),e.transform.mProps.sk&&(e.transform.mProps.sk.setGroupProperty(PropertyInterface("Skew",s)),e.transform.mProps.sa.setGroupProperty(PropertyInterface("Skew Angle",s))),e.transform.op.setGroupProperty(PropertyInterface("Opacity",s)),Object.defineProperties(i,{opacity:{get:ExpressionPropertyInterface(e.transform.mProps.o)},position:{get:ExpressionPropertyInterface(e.transform.mProps.p)},anchorPoint:{get:ExpressionPropertyInterface(e.transform.mProps.a)},scale:{get:ExpressionPropertyInterface(e.transform.mProps.s)},rotation:{get:ExpressionPropertyInterface(e.transform.mProps.r)},skew:{get:ExpressionPropertyInterface(e.transform.mProps.sk)},skewAxis:{get:ExpressionPropertyInterface(e.transform.mProps.sa)},_name:{value:t.nm}}),i.ty="tr",i.mn=t.mn,i.propertyGroup=r,i}function o(t,e,r){function i(e){return t.p.ix===e?i.position:t.s.ix===e?i.size:null}var s=propertyGroupFactory(i,r);i.propertyIndex=t.ix;var a="tm"===e.sh.ty?e.sh.prop:e.sh;return a.s.setGroupProperty(PropertyInterface("Size",s)),a.p.setGroupProperty(PropertyInterface("Position",s)),Object.defineProperties(i,{size:{get:ExpressionPropertyInterface(a.s)},position:{get:ExpressionPropertyInterface(a.p)},_name:{value:t.nm}}),i.mn=t.mn,i}function h(t,e,r){function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.rotation:t.pt.ix===e?i.points:t.or.ix===e||"ADBE Vector Star Outer Radius"===e?i.outerRadius:t.os.ix===e?i.outerRoundness:!t.ir||t.ir.ix!==e&&"ADBE Vector Star Inner Radius"!==e?t.is&&t.is.ix===e?i.innerRoundness:null:i.innerRadius}var s=propertyGroupFactory(i,r),a="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,a.or.setGroupProperty(PropertyInterface("Outer Radius",s)),a.os.setGroupProperty(PropertyInterface("Outer Roundness",s)),a.pt.setGroupProperty(PropertyInterface("Points",s)),a.p.setGroupProperty(PropertyInterface("Position",s)),a.r.setGroupProperty(PropertyInterface("Rotation",s)),t.ir&&(a.ir.setGroupProperty(PropertyInterface("Inner Radius",s)),a.is.setGroupProperty(PropertyInterface("Inner Roundness",s))),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(a.p)},rotation:{get:ExpressionPropertyInterface(a.r)},points:{get:ExpressionPropertyInterface(a.pt)},outerRadius:{get:ExpressionPropertyInterface(a.or)},outerRoundness:{get:ExpressionPropertyInterface(a.os)},innerRadius:{get:ExpressionPropertyInterface(a.ir)},innerRoundness:{get:ExpressionPropertyInterface(a.is)},_name:{value:t.nm}}),i.mn=t.mn,i}function l(t,e,r){function i(e){return t.p.ix===e?i.position:t.r.ix===e?i.roundness:t.s.ix===e||"Size"===e||"ADBE Vector Rect Size"===e?i.size:null}var s=propertyGroupFactory(i,r),a="tm"===e.sh.ty?e.sh.prop:e.sh;return i.propertyIndex=t.ix,a.p.setGroupProperty(PropertyInterface("Position",s)),a.s.setGroupProperty(PropertyInterface("Size",s)),a.r.setGroupProperty(PropertyInterface("Rotation",s)),Object.defineProperties(i,{position:{get:ExpressionPropertyInterface(a.p)},roundness:{get:ExpressionPropertyInterface(a.r)},size:{get:ExpressionPropertyInterface(a.s)},_name:{value:t.nm}}),i.mn=t.mn,i}function p(t,e,r){function i(e){return t.r.ix===e||"Round Corners 1"===e?i.radius:null}var s=propertyGroupFactory(i,r),a=e;return i.propertyIndex=t.ix,a.rd.setGroupProperty(PropertyInterface("Radius",s)),Object.defineProperties(i,{radius:{get:ExpressionPropertyInterface(a.rd)},_name:{value:t.nm}}),i.mn=t.mn,i}function m(t,e,r){function i(e){return t.c.ix===e||"Copies"===e?i.copies:t.o.ix===e||"Offset"===e?i.offset:null}var s=propertyGroupFactory(i,r),a=e;return i.propertyIndex=t.ix,a.c.setGroupProperty(PropertyInterface("Copies",s)),a.o.setGroupProperty(PropertyInterface("Offset",s)),Object.defineProperties(i,{copies:{get:ExpressionPropertyInterface(a.c)},offset:{get:ExpressionPropertyInterface(a.o)},_name:{value:t.nm}}),i.mn=t.mn,i}return function(e,r,i){var s;function a(t){if("number"===typeof t)return 0===(t=void 0===t?1:t)?i:s[t-1];for(var e=0,r=s.length;e<r;){if(s[e]._name===t)return s[e];e+=1}return null}return a.propertyGroup=propertyGroupFactory(a,(function(){return i})),s=t(e,r,a.propertyGroup),a.numProperties=s.length,a._name="Contents",a}}(),TextExpressionInterface=function(t){var e,r;function i(t){return"ADBE Text Document"===t?i.sourceText:null}return Object.defineProperty(i,"sourceText",{get:function(){t.textProperty.getValue();var i=t.textProperty.currentData.t;return i!==e&&(t.textProperty.currentData.t=e,(r=new String(i)).value=i||new String(i)),r}}),i},getBlendMode=function(){var t={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(e){return t[e]||""}}();function SliderEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function AngleEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function ColorEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function PointEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,1,0,r)}function LayerIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function MaskIndexEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function CheckboxEffect(t,e,r){this.p=PropertyFactory.getProp(e,t.v,0,0,r)}function NoValueEffect(){this.p={}}function EffectsManager(t,e){var r,i=t.ef||[];this.effectElements=[];var s,a=i.length;for(r=0;r<a;r+=1)s=new GroupEffect(i[r],e),this.effectElements.push(s)}function GroupEffect(t,e){this.init(t,e)}function BaseElement(){}function FrameElement(){}function _typeof$2(t){return _typeof$2="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$2(t)}extendPrototype([DynamicPropertyContainer],GroupEffect),GroupEffect.prototype.getValue=GroupEffect.prototype.iterateDynamicProperties,GroupEffect.prototype.init=function(t,e){var r;this.data=t,this.effectElements=[],this.initDynamicPropertyContainer(e);var i,s=this.data.ef.length,a=this.data.ef;for(r=0;r<s;r+=1){switch(i=null,a[r].ty){case 0:i=new SliderEffect(a[r],e,this);break;case 1:i=new AngleEffect(a[r],e,this);break;case 2:i=new ColorEffect(a[r],e,this);break;case 3:i=new PointEffect(a[r],e,this);break;case 4:case 7:i=new CheckboxEffect(a[r],e,this);break;case 10:i=new LayerIndexEffect(a[r],e,this);break;case 11:i=new MaskIndexEffect(a[r],e,this);break;case 5:i=new EffectsManager(a[r],e,this);break;default:i=new NoValueEffect(a[r],e,this)}i&&this.effectElements.push(i)}},BaseElement.prototype={checkMasks:function(){if(!this.data.hasMask)return!1;for(var t=0,e=this.data.masksProperties.length;t<e;){if("n"!==this.data.masksProperties[t].mode&&!1!==this.data.masksProperties[t].cl)return!0;t+=1}return!1},initExpressions:function(){this.layerInterface=LayerExpressionInterface(this),this.data.hasMask&&this.maskManager&&this.layerInterface.registerMaskInterface(this.maskManager);var t=EffectsExpressionInterface.createEffectsInterface(this,this.layerInterface);this.layerInterface.registerEffectsInterface(t),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 t=getBlendMode(this.data.bm);(this.baseElement||this.layerElement).style["mix-blend-mode"]=t},initBaseData:function(t,e,r){this.globalData=e,this.comp=r,this.data=t,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(t,e){var r,i=this.dynamicProperties.length;for(r=0;r<i;r+=1)(e||this._isParent&&"transform"===this.dynamicProperties[r].propType)&&(this.dynamicProperties[r].getValue(),this.dynamicProperties[r]._mdf&&(this.globalData._mdf=!0,this._mdf=!0))},addDynamicProperty:function(t){-1===this.dynamicProperties.indexOf(t)&&this.dynamicProperties.push(t)}};var FootageInterface=function(){var t=function(t){function e(t){return"Outline"===t?e.outlineInterface():null}return e._name="Outline",e.outlineInterface=function(t){var e="",r=t.getFootageData();function i(t){if(r[t])return e=t,"object"===_typeof$2(r=r[t])?i:r;var s=t.indexOf(e);if(-1!==s){var a=parseInt(t.substr(s+e.length),10);return"object"===_typeof$2(r=r[a])?i:r}return""}return function(){return e="",r=t.getFootageData(),i}}(t),e};return function(e){function r(t){return"Data"===t?r.dataInterface:null}return r._name="Data",r.dataInterface=t(e),r}}();function FootageElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.footageData=e.imageLoader.getAsset(this.assetData),this.initBaseData(t,e,r)}function AudioElement(t,e,r){this.initFrame(),this.initRenderable(),this.assetData=e.getAssetData(t.refId),this.initBaseData(t,e,r),this._isPlaying=!1,this._canPlay=!1;var i=this.globalData.getAssetsPath(this.assetData);this.audio=this.globalData.audioController.createAudio(i),this._currentTime=0,this.globalData.audioController.addAudio(this),this._volumeMultiplier=1,this._volume=1,this._previousVolume=null,this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0},this.lv=PropertyFactory.getProp(this,t.au&&t.au.lv?t.au.lv:{k:[100]},1,.01,this)}function BaseRenderer(){}function TransformElement(){}function MaskElement(t,e,r){this.data=t,this.element=e,this.globalData=r,this.storedData=[],this.masksProperties=this.data.masksProperties||[],this.maskElement=null;var i,s,a=this.globalData.defs,n=this.masksProperties?this.masksProperties.length:0;this.viewData=createSizedArray(n),this.solidPath="";var o,h,l,p,m,f,c=this.masksProperties,d=0,u=[],y=createElementID(),g="clipPath",v="clip-path";for(i=0;i<n;i+=1)if(("a"!==c[i].mode&&"n"!==c[i].mode||c[i].inv||100!==c[i].o.k||c[i].o.x)&&(g="mask",v="mask"),"s"!==c[i].mode&&"i"!==c[i].mode||0!==d?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),u.push(l)),s=createNS("path"),"n"===c[i].mode)this.viewData[i]={op:PropertyFactory.getProp(this.element,c[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,c[i],3),elem:s,lastPath:""},a.appendChild(s);else{var b;if(d+=1,s.setAttribute("fill","s"===c[i].mode?"#000000":"#ffffff"),s.setAttribute("clip-rule","nonzero"),0!==c[i].x.k?(g="mask",v="mask",f=PropertyFactory.getProp(this.element,c[i].x,0,null,this.element),b=createElementID(),(p=createNS("filter")).setAttribute("id",b),(m=createNS("feMorphology")).setAttribute("operator","erode"),m.setAttribute("in","SourceGraphic"),m.setAttribute("radius","0"),p.appendChild(m),a.appendChild(p),s.setAttribute("stroke","s"===c[i].mode?"#000000":"#ffffff")):(m=null,f=null),this.storedData[i]={elem:s,x:f,expan:m,lastPath:"",lastOperator:"",filterId:b,lastRadius:0},"i"===c[i].mode){h=u.length;var P=createNS("g");for(o=0;o<h;o+=1)P.appendChild(u[o]);var E=createNS("mask");E.setAttribute("mask-type","alpha"),E.setAttribute("id",y+"_"+d),E.appendChild(s),a.appendChild(E),P.setAttribute("mask","url("+getLocationHref()+"#"+y+"_"+d+")"),u.length=0,u.push(P)}else u.push(s);c[i].inv&&!this.solidPath&&(this.solidPath=this.createLayerSolidPath()),this.viewData[i]={elem:s,lastPath:"",op:PropertyFactory.getProp(this.element,c[i].o,0,.01,this.element),prop:ShapePropertyFactory.getShapeProp(this.element,c[i],3),invRect:l},this.viewData[i].prop.k||this.drawPath(c[i],this.viewData[i].prop.v,this.viewData[i])}for(this.maskElement=createNS(g),n=u.length,i=0;i<n;i+=1)this.maskElement.appendChild(u[i]);d>0&&(this.maskElement.setAttribute("id",y),this.element.maskedElement.setAttribute(v,"url("+getLocationHref()+"#"+y+")"),a.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(t){if(this.prepareRenderableFrame(t,!0),this.prepareProperties(t,!0),this.tm._placeholder)this._currentTime=t/this.data.sr;else{var e=this.tm.v;this._currentTime=e}this._volume=this.lv.v[0];var r=this._volume*this._volumeMultiplier;this._previousVolume!==r&&(this._previousVolume=r,this.audio.volume(r))},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(t){this.audio.rate(t)},AudioElement.prototype.volume=function(t){this._volumeMultiplier=t,this._previousVolume=t*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(t){var e,r,i=this.layers.length;for(this.completeLayers=!0,e=i-1;e>=0;e-=1)this.elements[e]||(r=this.layers[e]).ip-r.st<=t-this.layers[e].st&&r.op-r.st>t-this.layers[e].st&&this.buildItem(e),this.completeLayers=!!this.elements[e]&&this.completeLayers;this.checkPendingElements()},BaseRenderer.prototype.createItem=function(t){switch(t.ty){case 2:return this.createImage(t);case 0:return this.createComp(t);case 1:return this.createSolid(t);case 3:default:return this.createNull(t);case 4:return this.createShape(t);case 5:return this.createText(t);case 6:return this.createAudio(t);case 13:return this.createCamera(t);case 15:return this.createFootage(t)}},BaseRenderer.prototype.createCamera=function(){throw new Error("You're using a 3d camera. Try the html renderer.")},BaseRenderer.prototype.createAudio=function(t){return new AudioElement(t,this.globalData,this)},BaseRenderer.prototype.createFootage=function(t){return new FootageElement(t,this.globalData,this)},BaseRenderer.prototype.buildAllItems=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.buildItem(t);this.checkPendingElements()},BaseRenderer.prototype.includeLayers=function(t){var e;this.completeLayers=!1;var r,i=t.length,s=this.layers.length;for(e=0;e<i;e+=1)for(r=0;r<s;){if(this.layers[r].id===t[e].id){this.layers[r]=t[e];break}r+=1}},BaseRenderer.prototype.setProjectInterface=function(t){this.globalData.projectInterface=t},BaseRenderer.prototype.initItems=function(){this.globalData.progressiveLoad||this.buildAllItems()},BaseRenderer.prototype.buildElementParenting=function(t,e,r){for(var i=this.elements,s=this.layers,a=0,n=s.length;a<n;)s[a].ind==e&&(i[a]&&!0!==i[a]?(r.push(i[a]),i[a].setAsParent(),void 0!==s[a].parent?this.buildElementParenting(t,s[a].parent,r):t.setHierarchy(r)):(this.buildItem(a),this.addPendingElement(t))),a+=1},BaseRenderer.prototype.addPendingElement=function(t){this.pendingElements.push(t)},BaseRenderer.prototype.searchExtraCompositions=function(t){var e,r=t.length;for(e=0;e<r;e+=1)if(t[e].xt){var i=this.createComp(t[e]);i.initExpressions(),this.globalData.projectInterface.registerComposition(i)}},BaseRenderer.prototype.getElementByPath=function(t){var e,r=t.shift();if("number"===typeof r)e=this.elements[r];else{var i,s=this.elements.length;for(i=0;i<s;i+=1)if(this.elements[i].data.nm===r){e=this.elements[i];break}}return 0===t.length?e:e.getElementByPath(t)},BaseRenderer.prototype.setupGlobalData=function(t,e){this.globalData.fontManager=new FontManager,this.globalData.fontManager.addChars(t.chars),this.globalData.fontManager.addFonts(t.fonts,e),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=t.fr,this.globalData.nm=t.nm,this.globalData.compSize={w:t.w,h:t.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 t,e=this.finalTransform.mat,r=0,i=this.hierarchy.length;if(!this.finalTransform._matMdf)for(;r<i;){if(this.hierarchy[r].finalTransform.mProp._mdf){this.finalTransform._matMdf=!0;break}r+=1}if(this.finalTransform._matMdf)for(t=this.finalTransform.mProp.v.props,e.cloneFromProps(t),r=0;r<i;r+=1)t=this.hierarchy[r].finalTransform.mProp.v.props,e.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])}},globalToLocal:function(t){var e=[];e.push(this.finalTransform);for(var r,i=!0,s=this.comp;i;)s.finalTransform?(s.data.hasMask&&e.splice(0,0,s.finalTransform),s=s.comp):i=!1;var a,n=e.length;for(r=0;r<n;r+=1)a=e[r].mat.applyToPointArray(0,0,0),t=[t[0]-a[0],t[1]-a[1],0];return t},mHelper:new Matrix},MaskElement.prototype.getMaskProperty=function(t){return this.viewData[t].prop},MaskElement.prototype.renderFrame=function(t){var e,r=this.element.finalTransform.mat,i=this.masksProperties.length;for(e=0;e<i;e+=1)if((this.viewData[e].prop._mdf||t)&&this.drawPath(this.masksProperties[e],this.viewData[e].prop.v,this.viewData[e]),(this.viewData[e].op._mdf||t)&&this.viewData[e].elem.setAttribute("fill-opacity",this.viewData[e].op.v),"n"!==this.masksProperties[e].mode&&(this.viewData[e].invRect&&(this.element.finalTransform.mProp._mdf||t)&&this.viewData[e].invRect.setAttribute("transform",r.getInverseMatrix().to2dCSS()),this.storedData[e].x&&(this.storedData[e].x._mdf||t))){var s=this.storedData[e].expan;this.storedData[e].x.v<0?("erode"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="erode",this.storedData[e].elem.setAttribute("filter","url("+getLocationHref()+"#"+this.storedData[e].filterId+")")),s.setAttribute("radius",-this.storedData[e].x.v)):("dilate"!==this.storedData[e].lastOperator&&(this.storedData[e].lastOperator="dilate",this.storedData[e].elem.setAttribute("filter",null)),this.storedData[e].elem.setAttribute("stroke-width",2*this.storedData[e].x.v))}},MaskElement.prototype.getMaskelement=function(){return this.maskElement},MaskElement.prototype.createLayerSolidPath=function(){var t="M0,0 ";return t+=" h"+this.globalData.compSize.w,t+=" v"+this.globalData.compSize.h,t+=" h-"+this.globalData.compSize.w,t+=" v-"+this.globalData.compSize.h+" "},MaskElement.prototype.drawPath=function(t,e,r){var i,s,a=" M"+e.v[0][0]+","+e.v[0][1];for(s=e._length,i=1;i<s;i+=1)a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[i][0]+","+e.i[i][1]+" "+e.v[i][0]+","+e.v[i][1];if(e.c&&s>1&&(a+=" C"+e.o[i-1][0]+","+e.o[i-1][1]+" "+e.i[0][0]+","+e.i[0][1]+" "+e.v[0][0]+","+e.v[0][1]),r.lastPath!==a){var n="";r.elem&&(e.c&&(n=t.inv?this.solidPath+a:a),r.elem.setAttribute("d",n)),r.lastPath=a}},MaskElement.prototype.destroy=function(){this.element=null,this.globalData=null,this.maskElement=null,this.data=null,this.masksProperties=null};var filtersFactory=function(){var t={createFilter:function(t,e){var r=createNS("filter");return r.setAttribute("id",t),!0!==e&&(r.setAttribute("filterUnits","objectBoundingBox"),r.setAttribute("x","0%"),r.setAttribute("y","0%"),r.setAttribute("width","100%"),r.setAttribute("height","100%")),r},createAlphaToLuminanceFilter:function(){var t=createNS("feColorMatrix");return t.setAttribute("type","matrix"),t.setAttribute("color-interpolation-filters","sRGB"),t.setAttribute("values","0 0 0 1 0  0 0 0 1 0  0 0 0 1 0  0 0 0 1 1"),t}};return t}(),featureSupport=function(){var t={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))&&(t.maskType=!1),t}(),registeredEffects={},idPrefix="filter_result_";function SVGEffects(t){var e,r,i="SourceGraphic",s=t.data.ef?t.data.ef.length:0,a=createElementID(),n=filtersFactory.createFilter(a,!0),o=0;for(this.filters=[],e=0;e<s;e+=1){r=null;var h=t.data.ef[e].ty;registeredEffects[h]&&(r=new(0,registeredEffects[h].effect)(n,t.effectsManager.effectElements[e],t,idPrefix+o,i),i=idPrefix+o,registeredEffects[h].countsAsEffect&&(o+=1)),r&&this.filters.push(r)}o&&(t.globalData.defs.appendChild(n),t.layerElement.setAttribute("filter","url("+getLocationHref()+"#"+a+")")),this.filters.length&&t.addRenderableComponent(this)}function registerEffect(t,e,r){registeredEffects[t]={effect:e,countsAsEffect:r}}function SVGBaseElement(){}function HierarchyElement(){}function RenderableDOMElement(){}function IImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r),this.sourceRect={top:0,left:0,width:this.assetData.w,height:this.assetData.h}}function ProcessedElement(t,e){this.elem=t,this.pos=e}function IShapeElement(){}SVGEffects.prototype.renderFrame=function(t){var e,r=this.filters.length;for(e=0;e<r;e+=1)this.filters[e].renderFrame(t)},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 t,e,r,i=null;if(this.data.td){if(3==this.data.td||1==this.data.td){var s=createNS("mask");s.setAttribute("id",this.layerId),s.setAttribute("mask-type",3==this.data.td?"luminance":"alpha"),s.appendChild(this.layerElement),i=s,this.globalData.defs.appendChild(s),featureSupport.maskType||1!=this.data.td||(s.setAttribute("mask-type","luminance"),t=createElementID(),e=filtersFactory.createFilter(t),this.globalData.defs.appendChild(e),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),(r=createNS("g")).appendChild(this.layerElement),i=r,s.appendChild(r),r.setAttribute("filter","url("+getLocationHref()+"#"+t+")"))}else if(2==this.data.td){var a=createNS("mask");a.setAttribute("id",this.layerId),a.setAttribute("mask-type","alpha");var n=createNS("g");a.appendChild(n),t=createElementID(),e=filtersFactory.createFilter(t);var o=createNS("feComponentTransfer");o.setAttribute("in","SourceGraphic"),e.appendChild(o);var h=createNS("feFuncA");h.setAttribute("type","table"),h.setAttribute("tableValues","1.0 0.0"),o.appendChild(h),this.globalData.defs.appendChild(e);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"),n.setAttribute("filter","url("+getLocationHref()+"#"+t+")"),n.appendChild(l),n.appendChild(this.layerElement),i=n,featureSupport.maskType||(a.setAttribute("mask-type","luminance"),e.appendChild(filtersFactory.createAlphaToLuminanceFilter()),r=createNS("g"),n.appendChild(l),r.appendChild(this.layerElement),i=r,n.appendChild(r)),this.globalData.defs.appendChild(a)}}else this.data.tt?(this.matteElement.appendChild(this.layerElement),i=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 p=createNS("clipPath"),m=createNS("path");m.setAttribute("d","M0,0 L"+this.data.w+",0 L"+this.data.w+","+this.data.h+" L0,"+this.data.h+"z");var f=createElementID();if(p.setAttribute("id",f),p.appendChild(m),this.globalData.defs.appendChild(p),this.checkMasks()){var c=createNS("g");c.setAttribute("clip-path","url("+getLocationHref()+"#"+f+")"),c.appendChild(this.layerElement),this.transformedElement=c,i?i.appendChild(this.transformedElement):this.baseElement=this.transformedElement}else this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+f+")")}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(t){this.matteElement&&this.matteElement.setAttribute("mask","url("+getLocationHref()+"#"+t+")")}},HierarchyElement.prototype={initHierarchy:function(){this.hierarchy=[],this._isParent=!1,this.checkParenting()},setHierarchy:function(t){this.hierarchy=t},setAsParent:function(){this._isParent=!0},checkParenting:function(){void 0!==this.data.parent&&this.comp.buildElementParenting(this,this.data.parent,[])}},extendPrototype([RenderableElement,createProxyFunction({initElement:function(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),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(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,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 t=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",t),this.layerElement.appendChild(this.innerElem)},IImageElement.prototype.sourceRectAtTime=function(){return this.sourceRect},IShapeElement.prototype={addShapeToModifiers:function(t){var e,r=this.shapeModifiers.length;for(e=0;e<r;e+=1)this.shapeModifiers[e].addShape(t)},isShapeInAnimatedModifiers:function(t){for(var e=this.shapeModifiers.length;0<e;)if(this.shapeModifiers[0].isAnimatedWithShape(t))return!0;return!1},renderModifiers:function(){if(this.shapeModifiers.length){var t,e=this.shapes.length;for(t=0;t<e;t+=1)this.shapes[t].sh.reset();for(t=(e=this.shapeModifiers.length)-1;t>=0&&!this.shapeModifiers[t].processShapes(this._isFirstFrame);t-=1);}},searchProcessedElement:function(t){for(var e=this.processedElements,r=0,i=e.length;r<i;){if(e[r].elem===t)return e[r].pos;r+=1}return 0},addProcessedElement:function(t,e){for(var r=this.processedElements,i=r.length;i;)if(r[i-=1].elem===t)return void(r[i].pos=e);r.push(new ProcessedElement(t,e))},prepareFrame:function(t){this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange)}};var lineCapEnum={1:"butt",2:"round",3:"square"},lineJoinEnum={1:"miter",2:"round",3:"bevel"};function SVGShapeData(t,e,r){this.caches=[],this.styles=[],this.transformers=t,this.lStr="",this.sh=r,this.lvl=e,this._isAnimated=!!r.k;for(var i=0,s=t.length;i<s;){if(t[i].mProps.dynamicProperties.length){this._isAnimated=!0;break}i+=1}}function SVGStyleData(t,e){this.data=t,this.type=t.ty,this.d="",this.lvl=e,this._mdf=!1,this.closed=!0===t.hd,this.pElem=createNS("path"),this.msElem=null}function DashProperty(t,e,r,i){var s;this.elem=t,this.frameId=-1,this.dataProps=createSizedArray(e.length),this.renderer=r,this.k=!1,this.dashStr="",this.dashArray=createTypedArray("float32",e.length?e.length-1:0),this.dashoffset=createTypedArray("float32",1),this.initDynamicPropertyContainer(i);var a,n=e.length||0;for(s=0;s<n;s+=1)a=PropertyFactory.getProp(t,e[s].v,0,0,this),this.k=a.k||this.k,this.dataProps[s]={n:e[s].n,p:a};this.k||this.getValue(!0),this._isAnimated=this.k}function SVGStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r,this._isAnimated=!!this._isAnimated}function SVGFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.c=PropertyFactory.getProp(t,e.c,1,255,this),this.style=r}function SVGNoStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.style=r}function GradientProperty(t,e,r){this.data=e,this.c=createTypedArray("uint8c",4*e.p);var i=e.k.k[0].s?e.k.k[0].s.length-4*e.p:e.k.k.length-4*e.p;this.o=createTypedArray("float32",i),this._cmdf=!1,this._omdf=!1,this._collapsable=this.checkCollapsable(),this._hasOpacity=i,this.initDynamicPropertyContainer(r),this.prop=PropertyFactory.getProp(t,e.k,1,null,this),this.k=this.prop.k,this.getValue(!0)}function SVGGradientFillStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.initGradientData(t,e,r)}function SVGGradientStrokeStyleData(t,e,r){this.initDynamicPropertyContainer(t),this.getValue=this.iterateDynamicProperties,this.w=PropertyFactory.getProp(t,e.w,0,null,this),this.d=new DashProperty(t,e.d||{},"svg",this),this.initGradientData(t,e,r),this._isAnimated=!!this._isAnimated}function ShapeGroupData(){this.it=[],this.prevViewData=[],this.gr=createNS("g")}function SVGTransformData(t,e,r){this.transform={mProps:t,op:e,container:r},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(t){if((this.elem.globalData.frameId!==this.frameId||t)&&(this.frameId=this.elem.globalData.frameId,this.iterateDynamicProperties(),this._mdf=this._mdf||t,this._mdf)){var e=0,r=this.dataProps.length;for("svg"===this.renderer&&(this.dashStr=""),e=0;e<r;e+=1)"o"!==this.dataProps[e].n?"svg"===this.renderer?this.dashStr+=" "+this.dataProps[e].p.v:this.dashArray[e]=this.dataProps[e].p.v:this.dashoffset[0]=this.dataProps[e].p.v}},extendPrototype([DynamicPropertyContainer],DashProperty),extendPrototype([DynamicPropertyContainer],SVGStrokeStyleData),extendPrototype([DynamicPropertyContainer],SVGFillStyleData),extendPrototype([DynamicPropertyContainer],SVGNoStyleData),GradientProperty.prototype.comparePoints=function(t,e){for(var r=0,i=this.o.length/2;r<i;){if(Math.abs(t[4*r]-t[4*e+2*r])>.01)return!1;r+=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 t=0,e=this.data.k.k.length;t<e;){if(!this.comparePoints(this.data.k.k[t].s,this.data.p))return!1;t+=1}else if(!this.comparePoints(this.data.k.k,this.data.p))return!1;return!0},GradientProperty.prototype.getValue=function(t){if(this.prop.getValue(),this._mdf=!1,this._cmdf=!1,this._omdf=!1,this.prop._mdf||t){var e,r,i,s=4*this.data.p;for(e=0;e<s;e+=1)r=e%4===0?100:255,i=Math.round(this.prop.v[e]*r),this.c[e]!==i&&(this.c[e]=i,this._cmdf=!t);if(this.o.length)for(s=this.prop.v.length,e=4*this.data.p;e<s;e+=1)r=e%2===0?100:1,i=e%2===0?Math.round(100*this.prop.v[e]):this.prop.v[e],this.o[e-4*this.data.p]!==i&&(this.o[e-4*this.data.p]=i,this._omdf=!t);this._mdf=!t}},extendPrototype([DynamicPropertyContainer],GradientProperty),SVGGradientFillStyleData.prototype.initGradientData=function(t,e,r){this.o=PropertyFactory.getProp(t,e.o,0,.01,this),this.s=PropertyFactory.getProp(t,e.s,1,null,this),this.e=PropertyFactory.getProp(t,e.e,1,null,this),this.h=PropertyFactory.getProp(t,e.h||{k:0},0,.01,this),this.a=PropertyFactory.getProp(t,e.a||{k:0},0,degToRads,this),this.g=new GradientProperty(t,e.g,this),this.style=r,this.stops=[],this.setGradientData(r.pElem,e),this.setGradientOpacity(e,r),this._isAnimated=!!this._isAnimated},SVGGradientFillStyleData.prototype.setGradientData=function(t,e){var r=createElementID(),i=createNS(1===e.t?"linearGradient":"radialGradient");i.setAttribute("id",r),i.setAttribute("spreadMethod","pad"),i.setAttribute("gradientUnits","userSpaceOnUse");var s,a,n,o=[];for(n=4*e.g.p,a=0;a<n;a+=4)s=createNS("stop"),i.appendChild(s),o.push(s);t.setAttribute("gf"===e.ty?"fill":"stroke","url("+getLocationHref()+"#"+r+")"),this.gf=i,this.cst=o},SVGGradientFillStyleData.prototype.setGradientOpacity=function(t,e){if(this.g._hasOpacity&&!this.g._collapsable){var r,i,s,a=createNS("mask"),n=createNS("path");a.appendChild(n);var o=createElementID(),h=createElementID();a.setAttribute("id",h);var l=createNS(1===t.t?"linearGradient":"radialGradient");l.setAttribute("id",o),l.setAttribute("spreadMethod","pad"),l.setAttribute("gradientUnits","userSpaceOnUse"),s=t.g.k.k[0].s?t.g.k.k[0].s.length:t.g.k.k.length;var p=this.stops;for(i=4*t.g.p;i<s;i+=2)(r=createNS("stop")).setAttribute("stop-color","rgb(255,255,255)"),l.appendChild(r),p.push(r);n.setAttribute("gf"===t.ty?"fill":"stroke","url("+getLocationHref()+"#"+o+")"),"gs"===t.ty&&(n.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),n.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),1===t.lj&&n.setAttribute("stroke-miterlimit",t.ml)),this.of=l,this.ms=a,this.ost=p,this.maskId=h,e.msElem=n}},extendPrototype([DynamicPropertyContainer],SVGGradientFillStyleData),extendPrototype([SVGGradientFillStyleData,DynamicPropertyContainer],SVGGradientStrokeStyleData);var buildShapeString=function(t,e,r,i){if(0===e)return"";var s,a=t.o,n=t.i,o=t.v,h=" M"+i.applyToPointStringified(o[0][0],o[0][1]);for(s=1;s<e;s+=1)h+=" C"+i.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+i.applyToPointStringified(n[s][0],n[s][1])+" "+i.applyToPointStringified(o[s][0],o[s][1]);return r&&e&&(h+=" C"+i.applyToPointStringified(a[s-1][0],a[s-1][1])+" "+i.applyToPointStringified(n[0][0],n[0][1])+" "+i.applyToPointStringified(o[0][0],o[0][1]),h+="z"),h},SVGElementsRenderer=function(){var t=new Matrix,e=new Matrix;function r(t,e,r){(r||e.transform.op._mdf)&&e.transform.container.setAttribute("opacity",e.transform.op.v),(r||e.transform.mProps._mdf)&&e.transform.container.setAttribute("transform",e.transform.mProps.v.to2dCSS())}function i(){}function s(r,i,s){var a,n,o,h,l,p,m,f,c,d,u,y=i.styles.length,g=i.lvl;for(p=0;p<y;p+=1){if(h=i.sh._mdf||s,i.styles[p].lvl<g){for(f=e.reset(),d=g-i.styles[p].lvl,u=i.transformers.length-1;!h&&d>0;)h=i.transformers[u].mProps._mdf||h,d-=1,u-=1;if(h)for(d=g-i.styles[p].lvl,u=i.transformers.length-1;d>0;)c=i.transformers[u].mProps.v.props,f.transform(c[0],c[1],c[2],c[3],c[4],c[5],c[6],c[7],c[8],c[9],c[10],c[11],c[12],c[13],c[14],c[15]),d-=1,u-=1}else f=t;if(n=(m=i.sh.paths)._length,h){for(o="",a=0;a<n;a+=1)(l=m.shapes[a])&&l._length&&(o+=buildShapeString(l,l._length,l.c,f));i.caches[p]=o}else o=i.caches[p];i.styles[p].d+=!0===r.hd?"":o,i.styles[p]._mdf=h||i.styles[p]._mdf}}function a(t,e,r){var i=e.style;(e.c._mdf||r)&&i.pElem.setAttribute("fill","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("fill-opacity",e.o.v)}function n(t,e,r){o(t,e,r),h(0,e,r)}function o(t,e,r){var i,s,a,n,o,h=e.gf,l=e.g._hasOpacity,p=e.s.v,m=e.e.v;if(e.o._mdf||r){var f="gf"===t.ty?"fill-opacity":"stroke-opacity";e.style.pElem.setAttribute(f,e.o.v)}if(e.s._mdf||r){var c=1===t.t?"x1":"cx",d="x1"===c?"y1":"cy";h.setAttribute(c,p[0]),h.setAttribute(d,p[1]),l&&!e.g._collapsable&&(e.of.setAttribute(c,p[0]),e.of.setAttribute(d,p[1]))}if(e.g._cmdf||r){i=e.cst;var u=e.g.c;for(a=i.length,s=0;s<a;s+=1)(n=i[s]).setAttribute("offset",u[4*s]+"%"),n.setAttribute("stop-color","rgb("+u[4*s+1]+","+u[4*s+2]+","+u[4*s+3]+")")}if(l&&(e.g._omdf||r)){var y=e.g.o;for(a=(i=e.g._collapsable?e.cst:e.ost).length,s=0;s<a;s+=1)n=i[s],e.g._collapsable||n.setAttribute("offset",y[2*s]+"%"),n.setAttribute("stop-opacity",y[2*s+1])}if(1===t.t)(e.e._mdf||r)&&(h.setAttribute("x2",m[0]),h.setAttribute("y2",m[1]),l&&!e.g._collapsable&&(e.of.setAttribute("x2",m[0]),e.of.setAttribute("y2",m[1])));else if((e.s._mdf||e.e._mdf||r)&&(o=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)),h.setAttribute("r",o),l&&!e.g._collapsable&&e.of.setAttribute("r",o)),e.e._mdf||e.h._mdf||e.a._mdf||r){o||(o=Math.sqrt(Math.pow(p[0]-m[0],2)+Math.pow(p[1]-m[1],2)));var g=Math.atan2(m[1]-p[1],m[0]-p[0]),v=e.h.v;v>=1?v=.99:v<=-1&&(v=-.99);var b=o*v,P=Math.cos(g+e.a.v)*b+p[0],E=Math.sin(g+e.a.v)*b+p[1];h.setAttribute("fx",P),h.setAttribute("fy",E),l&&!e.g._collapsable&&(e.of.setAttribute("fx",P),e.of.setAttribute("fy",E))}}function h(t,e,r){var i=e.style,s=e.d;s&&(s._mdf||r)&&s.dashStr&&(i.pElem.setAttribute("stroke-dasharray",s.dashStr),i.pElem.setAttribute("stroke-dashoffset",s.dashoffset[0])),e.c&&(e.c._mdf||r)&&i.pElem.setAttribute("stroke","rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r)&&i.pElem.setAttribute("stroke-opacity",e.o.v),(e.w._mdf||r)&&(i.pElem.setAttribute("stroke-width",e.w.v),i.msElem&&i.msElem.setAttribute("stroke-width",e.w.v))}return{createRenderFunction:function(t){switch(t.ty){case"fl":return a;case"gf":return o;case"gs":return n;case"st":return h;case"sh":case"el":case"rc":case"sr":return s;case"tr":return r;case"no":return i;default:return null}}}}();function SVGShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.initElement(t,e,r),this.prevViewData=[]}function LetterProps(t,e,r,i,s,a){this.o=t,this.sw=e,this.sc=r,this.fc=i,this.m=s,this.p=a,this._mdf={o:!0,sw:!!e,sc:!!r,fc:!!i,m:!0,p:!0}}function TextProperty(t,e){this._frameId=initialDefaultFrame,this.pv="",this.v="",this.kf=!1,this._isFirstFrame=!0,this._mdf=!1,this.data=e,this.elem=t,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 t,e,r,i,s=this.shapes.length,a=this.stylesList.length,n=[],o=!1;for(r=0;r<a;r+=1){for(i=this.stylesList[r],o=!1,n.length=0,t=0;t<s;t+=1)-1!==(e=this.shapes[t]).styles.indexOf(i)&&(n.push(e),o=e._isAnimated||o);n.length>1&&o&&this.setShapesAsAnimated(n)}},SVGShapeElement.prototype.setShapesAsAnimated=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].setAsAnimated()},SVGShapeElement.prototype.createStyleElement=function(t,e){var r,i=new SVGStyleData(t,e),s=i.pElem;return"st"===t.ty?r=new SVGStrokeStyleData(this,t,i):"fl"===t.ty?r=new SVGFillStyleData(this,t,i):"gf"===t.ty||"gs"===t.ty?(r=new("gf"===t.ty?SVGGradientFillStyleData:SVGGradientStrokeStyleData)(this,t,i),this.globalData.defs.appendChild(r.gf),r.maskId&&(this.globalData.defs.appendChild(r.ms),this.globalData.defs.appendChild(r.of),s.setAttribute("mask","url("+getLocationHref()+"#"+r.maskId+")"))):"no"===t.ty&&(r=new SVGNoStyleData(this,t,i)),"st"!==t.ty&&"gs"!==t.ty||(s.setAttribute("stroke-linecap",lineCapEnum[t.lc||2]),s.setAttribute("stroke-linejoin",lineJoinEnum[t.lj||2]),s.setAttribute("fill-opacity","0"),1===t.lj&&s.setAttribute("stroke-miterlimit",t.ml)),2===t.r&&s.setAttribute("fill-rule","evenodd"),t.ln&&s.setAttribute("id",t.ln),t.cl&&s.setAttribute("class",t.cl),t.bm&&(s.style["mix-blend-mode"]=getBlendMode(t.bm)),this.stylesList.push(i),this.addToAnimatedContents(t,r),r},SVGShapeElement.prototype.createGroupElement=function(t){var e=new ShapeGroupData;return t.ln&&e.gr.setAttribute("id",t.ln),t.cl&&e.gr.setAttribute("class",t.cl),t.bm&&(e.gr.style["mix-blend-mode"]=getBlendMode(t.bm)),e},SVGShapeElement.prototype.createTransformElement=function(t,e){var r=TransformPropertyFactory.getTransformProperty(this,t,this),i=new SVGTransformData(r,r.o,e);return this.addToAnimatedContents(t,i),i},SVGShapeElement.prototype.createShapeElement=function(t,e,r){var i=4;"rc"===t.ty?i=5:"el"===t.ty?i=6:"sr"===t.ty&&(i=7);var s=new SVGShapeData(e,r,ShapePropertyFactory.getShapeProp(this,t,i,this));return this.shapes.push(s),this.addShapeToModifiers(s),this.addToAnimatedContents(t,s),s},SVGShapeElement.prototype.addToAnimatedContents=function(t,e){for(var r=0,i=this.animatedContents.length;r<i;){if(this.animatedContents[r].element===e)return;r+=1}this.animatedContents.push({fn:SVGElementsRenderer.createRenderFunction(t),element:e,data:t})},SVGShapeElement.prototype.setElementStyles=function(t){var e,r=t.styles,i=this.stylesList.length;for(e=0;e<i;e+=1)this.stylesList[e].closed||r.push(this.stylesList[e])},SVGShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.layerElement,0,[],!0),this.filterUniqueShapes(),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers()},SVGShapeElement.prototype.searchShapes=function(t,e,r,i,s,a,n){var o,h,l,p,m,f,c=[].concat(a),d=t.length-1,u=[],y=[];for(o=d;o>=0;o-=1){if((f=this.searchProcessedElement(t[o]))?e[o]=r[f-1]:t[o]._render=n,"fl"===t[o].ty||"st"===t[o].ty||"gf"===t[o].ty||"gs"===t[o].ty||"no"===t[o].ty)f?e[o].style.closed=!1:e[o]=this.createStyleElement(t[o],s),t[o]._render&&e[o].style.pElem.parentNode!==i&&i.appendChild(e[o].style.pElem),u.push(e[o].style);else if("gr"===t[o].ty){if(f)for(l=e[o].it.length,h=0;h<l;h+=1)e[o].prevViewData[h]=e[o].it[h];else e[o]=this.createGroupElement(t[o]);this.searchShapes(t[o].it,e[o].it,e[o].prevViewData,e[o].gr,s+1,c,n),t[o]._render&&e[o].gr.parentNode!==i&&i.appendChild(e[o].gr)}else"tr"===t[o].ty?(f||(e[o]=this.createTransformElement(t[o],i)),p=e[o].transform,c.push(p)):"sh"===t[o].ty||"rc"===t[o].ty||"el"===t[o].ty||"sr"===t[o].ty?(f||(e[o]=this.createShapeElement(t[o],c,s)),this.setElementStyles(e[o])):"tm"===t[o].ty||"rd"===t[o].ty||"ms"===t[o].ty||"pb"===t[o].ty?(f?(m=e[o]).closed=!1:((m=ShapeModifiers.getModifier(t[o].ty)).init(this,t[o]),e[o]=m,this.shapeModifiers.push(m)),y.push(m)):"rp"===t[o].ty&&(f?(m=e[o]).closed=!0:(m=ShapeModifiers.getModifier(t[o].ty),e[o]=m,m.init(this,t,o,e),this.shapeModifiers.push(m),n=!1),y.push(m));this.addProcessedElement(t[o],o+1)}for(d=u.length,o=0;o<d;o+=1)u[o].closed=!0;for(d=y.length,o=0;o<d;o+=1)y[o].closed=!0},SVGShapeElement.prototype.renderInnerContent=function(){var t;this.renderModifiers();var e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].reset();for(this.renderShape(),t=0;t<e;t+=1)(this.stylesList[t]._mdf||this._isFirstFrame)&&(this.stylesList[t].msElem&&(this.stylesList[t].msElem.setAttribute("d",this.stylesList[t].d),this.stylesList[t].d="M0 0"+this.stylesList[t].d),this.stylesList[t].pElem.setAttribute("d",this.stylesList[t].d||"M0 0"))},SVGShapeElement.prototype.renderShape=function(){var t,e,r=this.animatedContents.length;for(t=0;t<r;t+=1)e=this.animatedContents[t],(this._isFirstFrame||e.element._isAnimated)&&!0!==e.data&&e.fn(e.data,e.element,this._isFirstFrame)},SVGShapeElement.prototype.destroy=function(){this.destroyBaseElement(),this.shapesData=null,this.itemsData=null},LetterProps.prototype.update=function(t,e,r,i,s,a){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 n=!1;return this.o!==t&&(this.o=t,this._mdf.o=!0,n=!0),this.sw!==e&&(this.sw=e,this._mdf.sw=!0,n=!0),this.sc!==r&&(this.sc=r,this._mdf.sc=!0,n=!0),this.fc!==i&&(this.fc=i,this._mdf.fc=!0,n=!0),this.m!==s&&(this.m=s,this._mdf.m=!0,n=!0),!a.length||this.p[0]===a[0]&&this.p[1]===a[1]&&this.p[4]===a[4]&&this.p[5]===a[5]&&this.p[12]===a[12]&&this.p[13]===a[13]||(this.p=a,this._mdf.p=!0,n=!0),n},TextProperty.prototype.defaultBoxWidth=[0,0],TextProperty.prototype.copyData=function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},TextProperty.prototype.setCurrentData=function(t){t.__complete||this.completeTextData(t),this.currentData=t,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(t){this.effectsSequence.push(t),this.elem.addDynamicProperty(this)},TextProperty.prototype.getValue=function(t){if(this.elem.globalData.frameId!==this.frameId&&this.effectsSequence.length||t){this.currentData.t=this.data.d.k[this.keysIndex].s.t;var e=this.currentData,r=this.keysIndex;if(this.lock)this.setCurrentData(this.currentData);else{var i;this.lock=!0,this._mdf=!1;var s=this.effectsSequence.length,a=t||this.data.d.k[this.keysIndex].s;for(i=0;i<s;i+=1)a=r!==this.keysIndex?this.effectsSequence[i](a,a.t):this.effectsSequence[i](this.currentData,a.t);e!==a&&this.setCurrentData(a),this.v=this.currentData,this.pv=this.v,this.lock=!1,this.frameId=this.elem.globalData.frameId}}},TextProperty.prototype.getKeyframeValue=function(){for(var t=this.data.d.k,e=this.elem.comp.renderedFrame,r=0,i=t.length;r<=i-1&&!(r===i-1||t[r+1].t>e);)r+=1;return this.keysIndex!==r&&(this.keysIndex=r),this.data.d.k[this.keysIndex].s},TextProperty.prototype.buildFinalText=function(t){for(var e,r,i=[],s=0,a=t.length,n=!1;s<a;)e=t.charCodeAt(s),FontManager.isCombinedCharacter(e)?i[i.length-1]+=t.charAt(s):e>=55296&&e<=56319?(r=t.charCodeAt(s+1))>=56320&&r<=57343?(n||FontManager.isModifier(e,r)?(i[i.length-1]+=t.substr(s,2),n=!1):i.push(t.substr(s,2)),s+=1):i.push(t.charAt(s)):e>56319?(r=t.charCodeAt(s+1),FontManager.isZeroWidthJoiner(e,r)?(n=!0,i[i.length-1]+=t.substr(s,2),s+=1):i.push(t.charAt(s))):FontManager.isZeroWidthJoiner(e)?(i[i.length-1]+=t.charAt(s),n=!0):i.push(t.charAt(s)),s+=1;return i},TextProperty.prototype.completeTextData=function(t){t.__complete=!0;var e,r,i,s,a,n,o,h=this.elem.globalData.fontManager,l=this.data,p=[],m=0,f=l.m.g,c=0,d=0,u=0,y=[],g=0,v=0,b=h.getFontByName(t.f),P=0,E=getFontProperties(b);t.fWeight=E.weight,t.fStyle=E.style,t.finalSize=t.s,t.finalText=this.buildFinalText(t.t),r=t.finalText.length,t.finalLineHeight=t.lh;var x,S=t.tr/1e3*t.finalSize;if(t.sz)for(var _,C,A=!0,T=t.sz[0],k=t.sz[1];A;){_=0,g=0,r=(C=this.buildFinalText(t.t)).length,S=t.tr/1e3*t.finalSize;var D=-1;for(e=0;e<r;e+=1)x=C[e].charCodeAt(0),i=!1," "===C[e]?D=e:13!==x&&3!==x||(g=0,i=!0,_+=t.finalLineHeight||1.2*t.finalSize),h.chars?(o=h.getCharData(C[e],b.fStyle,b.fFamily),P=i?0:o.w*t.finalSize/100):P=h.measureText(C[e],t.f,t.finalSize),g+P>T&&" "!==C[e]?(-1===D?r+=1:e=D,_+=t.finalLineHeight||1.2*t.finalSize,C.splice(e,D===e?1:0,"\r"),D=-1,g=0):(g+=P,g+=S);_+=b.ascent*t.finalSize/100,this.canResize&&t.finalSize>this.minimumFontSize&&k<_?(t.finalSize-=1,t.finalLineHeight=t.finalSize*t.lh/t.s):(t.finalText=C,r=t.finalText.length,A=!1)}g=-S,P=0;var M,F=0;for(e=0;e<r;e+=1)if(i=!1,13===(x=(M=t.finalText[e]).charCodeAt(0))||3===x?(F=0,y.push(g),v=g>v?g:v,g=-2*S,s="",i=!0,u+=1):s=M,h.chars?(o=h.getCharData(M,b.fStyle,h.getFontByName(t.f).fFamily),P=i?0:o.w*t.finalSize/100):P=h.measureText(s,t.f,t.finalSize)," "===M?F+=P+S:(g+=P+S+F,F=0),p.push({l:P,an:P,add:c,n:i,anIndexes:[],val:s,line:u,animatorJustifyOffset:0}),2==f){if(c+=P,""===s||" "===s||e===r-1){for(""!==s&&" "!==s||(c-=P);d<=e;)p[d].an=c,p[d].ind=m,p[d].extra=P,d+=1;m+=1,c=0}}else if(3==f){if(c+=P,""===s||e===r-1){for(""===s&&(c-=P);d<=e;)p[d].an=c,p[d].ind=m,p[d].extra=P,d+=1;c=0,m+=1}}else p[m].ind=m,p[m].extra=0,m+=1;if(t.l=p,v=g>v?g:v,y.push(g),t.sz)t.boxWidth=t.sz[0],t.justifyOffset=0;else switch(t.boxWidth=v,t.j){case 1:t.justifyOffset=-t.boxWidth;break;case 2:t.justifyOffset=-t.boxWidth/2;break;default:t.justifyOffset=0}t.lineWidths=y;var w,I,V,B,R=l.a;n=R.length;var L=[];for(a=0;a<n;a+=1){for((w=R[a]).a.sc&&(t.strokeColorAnim=!0),w.a.sw&&(t.strokeWidthAnim=!0),(w.a.fc||w.a.fh||w.a.fs||w.a.fb)&&(t.fillColorAnim=!0),B=0,V=w.s.b,e=0;e<r;e+=1)(I=p[e]).anIndexes[a]=B,(1==V&&""!==I.val||2==V&&""!==I.val&&" "!==I.val||3==V&&(I.n||" "==I.val||e==r-1)||4==V&&(I.n||e==r-1))&&(1===w.s.rn&&L.push(B),B+=1);l.a[a].s.totalChars=B;var G,z=-1;if(1===w.s.rn)for(e=0;e<r;e+=1)z!=(I=p[e]).anIndexes[a]&&(z=I.anIndexes[a],G=L.splice(Math.floor(Math.random()*L.length),1)[0]),I.anIndexes[a]=G}t.yOffset=t.finalLineHeight||1.2*t.finalSize,t.ls=t.ls||0,t.ascent=b.ascent*t.finalSize/100},TextProperty.prototype.updateDocumentData=function(t,e){e=void 0===e?this.keysIndex:e;var r=this.copyData({},this.data.d.k[e].s);r=this.copyData(r,t),this.data.d.k[e].s=r,this.recalculate(e),this.elem.addDynamicProperty(this)},TextProperty.prototype.recalculate=function(t){var e=this.data.d.k[t].s;e.__complete=!1,this.keysIndex=0,this._isFirstFrame=!0,this.getValue(e)},TextProperty.prototype.canResizeFont=function(t){this.canResize=t,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)},TextProperty.prototype.setMinimumFontSize=function(t){this.minimumFontSize=Math.floor(t)||1,this.recalculate(this.keysIndex),this.elem.addDynamicProperty(this)};var TextSelectorProp=function(){var t=Math.max,e=Math.min,r=Math.floor;function i(t,e){this._currentTextLength=-1,this.k=!1,this.data=e,this.elem=t,this.comp=t.comp,this.finalS=0,this.finalE=0,this.initDynamicPropertyContainer(t),this.s=PropertyFactory.getProp(t,e.s||{k:0},0,0,this),this.e="e"in e?PropertyFactory.getProp(t,e.e,0,0,this):{v:100},this.o=PropertyFactory.getProp(t,e.o||{k:0},0,0,this),this.xe=PropertyFactory.getProp(t,e.xe||{k:0},0,0,this),this.ne=PropertyFactory.getProp(t,e.ne||{k:0},0,0,this),this.sm=PropertyFactory.getProp(t,e.sm||{k:100},0,0,this),this.a=PropertyFactory.getProp(t,e.a,0,.01,this),this.dynamicProperties.length||this.getValue()}return i.prototype={getMult:function(i){this._currentTextLength!==this.elem.textProperty.currentData.l.length&&this.getValue();var s=0,a=0,n=1,o=1;this.ne.v>0?s=this.ne.v/100:a=-this.ne.v/100,this.xe.v>0?n=1-this.xe.v/100:o=1+this.xe.v/100;var h=BezierFactory.getBezierEasing(s,a,n,o).get,l=0,p=this.finalS,m=this.finalE,f=this.data.sh;if(2===f)l=h(l=m===p?i>=m?1:0:t(0,e(.5/(m-p)+(i-p)/(m-p),1)));else if(3===f)l=h(l=m===p?i>=m?0:1:1-t(0,e(.5/(m-p)+(i-p)/(m-p),1)));else if(4===f)m===p?l=0:(l=t(0,e(.5/(m-p)+(i-p)/(m-p),1)))<.5?l*=2:l=1-2*(l-.5),l=h(l);else if(5===f){if(m===p)l=0;else{var c=m-p,d=-c/2+(i=e(t(0,i+.5-p),m-p)),u=c/2;l=Math.sqrt(1-d*d/(u*u))}l=h(l)}else 6===f?(m===p?l=0:(i=e(t(0,i+.5-p),m-p),l=(1+Math.cos(Math.PI+2*Math.PI*i/(m-p)))/2),l=h(l)):(i>=r(p)&&(l=t(0,e(i-p<0?e(m,1)-(p-i):m-i,1))),l=h(l));if(100!==this.sm.v){var y=.01*this.sm.v;0===y&&(y=1e-8);var g=.5-.5*y;l<g?l=0:(l=(l-g)/y)>1&&(l=1)}return l*this.a.v},getValue:function(t){this.iterateDynamicProperties(),this._mdf=t||this._mdf,this._currentTextLength=this.elem.textProperty.currentData.l.length||0,t&&2===this.data.r&&(this.e.v=this._currentTextLength);var e=2===this.data.r?1:100/this.data.totalChars,r=this.o.v/e,i=this.s.v/e+r,s=this.e.v/e+r;if(i>s){var a=i;i=s,s=a}this.finalS=i,this.finalE=s}},extendPrototype([DynamicPropertyContainer],i),{getTextSelectorProp:function(t,e,r){return new i(t,e,r)}}}();function TextAnimatorDataProperty(t,e,r){var i={propType:!1},s=PropertyFactory.getProp,a=e.a;this.a={r:a.r?s(t,a.r,0,degToRads,r):i,rx:a.rx?s(t,a.rx,0,degToRads,r):i,ry:a.ry?s(t,a.ry,0,degToRads,r):i,sk:a.sk?s(t,a.sk,0,degToRads,r):i,sa:a.sa?s(t,a.sa,0,degToRads,r):i,s:a.s?s(t,a.s,1,.01,r):i,a:a.a?s(t,a.a,1,0,r):i,o:a.o?s(t,a.o,0,.01,r):i,p:a.p?s(t,a.p,1,0,r):i,sw:a.sw?s(t,a.sw,0,0,r):i,sc:a.sc?s(t,a.sc,1,0,r):i,fc:a.fc?s(t,a.fc,1,0,r):i,fh:a.fh?s(t,a.fh,0,0,r):i,fs:a.fs?s(t,a.fs,0,.01,r):i,fb:a.fb?s(t,a.fb,0,.01,r):i,t:a.t?s(t,a.t,0,0,r):i},this.s=TextSelectorProp.getTextSelectorProp(t,e.s,r),this.s.t=e.s.t}function TextAnimatorProperty(t,e,r){this._isFirstFrame=!0,this._hasMaskedPath=!1,this._frameId=-1,this._textData=t,this._renderType=e,this._elem=r,this._animatorsData=createSizedArray(this._textData.a.length),this._pathData={},this._moreOptions={alignment:{}},this.renderedLetters=[],this.lettersChangedFlag=!1,this.initDynamicPropertyContainer(r)}function ITextElement(){}TextAnimatorProperty.prototype.searchProperties=function(){var t,e,r=this._textData.a.length,i=PropertyFactory.getProp;for(t=0;t<r;t+=1)e=this._textData.a[t],this._animatorsData[t]=new TextAnimatorDataProperty(this._elem,e,this);this._textData.p&&"m"in this._textData.p?(this._pathData={a:i(this._elem,this._textData.p.a,0,0,this),f:i(this._elem,this._textData.p.f,0,0,this),l:i(this._elem,this._textData.p.l,0,0,this),r:i(this._elem,this._textData.p.r,0,0,this),p:i(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=i(this._elem,this._textData.m.a,1,0,this)},TextAnimatorProperty.prototype.getMeasures=function(t,e){if(this.lettersChangedFlag=e,this._mdf||this._isFirstFrame||e||this._hasMaskedPath&&this._pathData.m._mdf){this._isFirstFrame=!1;var r,i,s,a,n,o,h,l,p,m,f,c,d,u,y,g,v,b,P,E=this._moreOptions.alignment.v,x=this._animatorsData,S=this._textData,_=this.mHelper,C=this._renderType,A=this.renderedLetters.length,T=t.l;if(this._hasMaskedPath){if(P=this._pathData.m,!this._pathData.n||this._pathData._mdf){var k,D=P.v;for(this._pathData.r.v&&(D=D.reverse()),n={tLength:0,segments:[]},a=D._length-1,g=0,s=0;s<a;s+=1)k=bez.buildBezierData(D.v[s],D.v[s+1],[D.o[s][0]-D.v[s][0],D.o[s][1]-D.v[s][1]],[D.i[s+1][0]-D.v[s+1][0],D.i[s+1][1]-D.v[s+1][1]]),n.tLength+=k.segmentLength,n.segments.push(k),g+=k.segmentLength;s=a,P.v.c&&(k=bez.buildBezierData(D.v[s],D.v[0],[D.o[s][0]-D.v[s][0],D.o[s][1]-D.v[s][1]],[D.i[0][0]-D.v[0][0],D.i[0][1]-D.v[0][1]]),n.tLength+=k.segmentLength,n.segments.push(k),g+=k.segmentLength),this._pathData.pi=n}if(n=this._pathData.pi,o=this._pathData.f.v,f=0,m=1,l=0,p=!0,u=n.segments,o<0&&P.v.c)for(n.tLength<Math.abs(o)&&(o=-Math.abs(o)%n.tLength),m=(d=u[f=u.length-1].points).length-1;o<0;)o+=d[m].partialLength,(m-=1)<0&&(m=(d=u[f-=1].points).length-1);c=(d=u[f].points)[m-1],y=(h=d[m]).partialLength}a=T.length,r=0,i=0;var M,F,w,I,V,B=1.2*t.finalSize*.714,R=!0;w=x.length;var L,G,z,N,O,H,j,q,W,$,Y,X,K=-1,J=o,Z=f,U=m,Q=-1,tt="",et=this.defaultPropsArray;if(2===t.j||1===t.j){var rt=0,it=0,st=2===t.j?-.5:-1,at=0,nt=!0;for(s=0;s<a;s+=1)if(T[s].n){for(rt&&(rt+=it);at<s;)T[at].animatorJustifyOffset=rt,at+=1;rt=0,nt=!0}else{for(F=0;F<w;F+=1)(M=x[F].a).t.propType&&(nt&&2===t.j&&(it+=M.t.v*st),(V=x[F].s.getMult(T[s].anIndexes[F],S.a[F].s.totalChars)).length?rt+=M.t.v*V[0]*st:rt+=M.t.v*V*st);nt=!1}for(rt&&(rt+=it);at<s;)T[at].animatorJustifyOffset=rt,at+=1}for(s=0;s<a;s+=1){if(_.reset(),N=1,T[s].n)r=0,i+=t.yOffset,i+=R?1:0,o=J,R=!1,this._hasMaskedPath&&(m=U,c=(d=u[f=Z].points)[m-1],y=(h=d[m]).partialLength,l=0),tt="",Y="",W="",X="",et=this.defaultPropsArray;else{if(this._hasMaskedPath){if(Q!==T[s].line){switch(t.j){case 1:o+=g-t.lineWidths[T[s].line];break;case 2:o+=(g-t.lineWidths[T[s].line])/2}Q=T[s].line}K!==T[s].ind&&(T[K]&&(o+=T[K].extra),o+=T[s].an/2,K=T[s].ind),o+=E[0]*T[s].an*.005;var ot=0;for(F=0;F<w;F+=1)(M=x[F].a).p.propType&&((V=x[F].s.getMult(T[s].anIndexes[F],S.a[F].s.totalChars)).length?ot+=M.p.v[0]*V[0]:ot+=M.p.v[0]*V),M.a.propType&&((V=x[F].s.getMult(T[s].anIndexes[F],S.a[F].s.totalChars)).length?ot+=M.a.v[0]*V[0]:ot+=M.a.v[0]*V);for(p=!0,this._pathData.a.v&&(o=.5*T[0].an+(g-this._pathData.f.v-.5*T[0].an-.5*T[T.length-1].an)*K/(a-1),o+=this._pathData.f.v);p;)l+y>=o+ot||!d?(v=(o+ot-l)/h.partialLength,G=c.point[0]+(h.point[0]-c.point[0])*v,z=c.point[1]+(h.point[1]-c.point[1])*v,_.translate(-E[0]*T[s].an*.005,-E[1]*B*.01),p=!1):d&&(l+=h.partialLength,(m+=1)>=d.length&&(m=0,u[f+=1]?d=u[f].points:P.v.c?(m=0,d=u[f=0].points):(l-=h.partialLength,d=null)),d&&(c=h,y=(h=d[m]).partialLength));L=T[s].an/2-T[s].add,_.translate(-L,0,0)}else L=T[s].an/2-T[s].add,_.translate(-L,0,0),_.translate(-E[0]*T[s].an*.005,-E[1]*B*.01,0);for(F=0;F<w;F+=1)(M=x[F].a).t.propType&&(V=x[F].s.getMult(T[s].anIndexes[F],S.a[F].s.totalChars),0===r&&0===t.j||(this._hasMaskedPath?V.length?o+=M.t.v*V[0]:o+=M.t.v*V:V.length?r+=M.t.v*V[0]:r+=M.t.v*V));for(t.strokeWidthAnim&&(H=t.sw||0),t.strokeColorAnim&&(O=t.sc?[t.sc[0],t.sc[1],t.sc[2]]:[0,0,0]),t.fillColorAnim&&t.fc&&(j=[t.fc[0],t.fc[1],t.fc[2]]),F=0;F<w;F+=1)(M=x[F].a).a.propType&&((V=x[F].s.getMult(T[s].anIndexes[F],S.a[F].s.totalChars)).length?_.translate(-M.a.v[0]*V[0],-M.a.v[1]*V[1],M.a.v[2]*V[2]):_.translate(-M.a.v[0]*V,-M.a.v[1]*V,M.a.v[2]*V));for(F=0;F<w;F+=1)(M=x[F].a).s.propType&&((V=x[F].s.getMult(T[s].anIndexes[F],S.a[F].s.totalChars)).length?_.scale(1+(M.s.v[0]-1)*V[0],1+(M.s.v[1]-1)*V[1],1):_.scale(1+(M.s.v[0]-1)*V,1+(M.s.v[1]-1)*V,1));for(F=0;F<w;F+=1){if(M=x[F].a,V=x[F].s.getMult(T[s].anIndexes[F],S.a[F].s.totalChars),M.sk.propType&&(V.length?_.skewFromAxis(-M.sk.v*V[0],M.sa.v*V[1]):_.skewFromAxis(-M.sk.v*V,M.sa.v*V)),M.r.propType&&(V.length?_.rotateZ(-M.r.v*V[2]):_.rotateZ(-M.r.v*V)),M.ry.propType&&(V.length?_.rotateY(M.ry.v*V[1]):_.rotateY(M.ry.v*V)),M.rx.propType&&(V.length?_.rotateX(M.rx.v*V[0]):_.rotateX(M.rx.v*V)),M.o.propType&&(V.length?N+=(M.o.v*V[0]-N)*V[0]:N+=(M.o.v*V-N)*V),t.strokeWidthAnim&&M.sw.propType&&(V.length?H+=M.sw.v*V[0]:H+=M.sw.v*V),t.strokeColorAnim&&M.sc.propType)for(q=0;q<3;q+=1)V.length?O[q]+=(M.sc.v[q]-O[q])*V[0]:O[q]+=(M.sc.v[q]-O[q])*V;if(t.fillColorAnim&&t.fc){if(M.fc.propType)for(q=0;q<3;q+=1)V.length?j[q]+=(M.fc.v[q]-j[q])*V[0]:j[q]+=(M.fc.v[q]-j[q])*V;M.fh.propType&&(j=V.length?addHueToRGB(j,M.fh.v*V[0]):addHueToRGB(j,M.fh.v*V)),M.fs.propType&&(j=V.length?addSaturationToRGB(j,M.fs.v*V[0]):addSaturationToRGB(j,M.fs.v*V)),M.fb.propType&&(j=V.length?addBrightnessToRGB(j,M.fb.v*V[0]):addBrightnessToRGB(j,M.fb.v*V))}}for(F=0;F<w;F+=1)(M=x[F].a).p.propType&&(V=x[F].s.getMult(T[s].anIndexes[F],S.a[F].s.totalChars),this._hasMaskedPath?V.length?_.translate(0,M.p.v[1]*V[0],-M.p.v[2]*V[1]):_.translate(0,M.p.v[1]*V,-M.p.v[2]*V):V.length?_.translate(M.p.v[0]*V[0],M.p.v[1]*V[1],-M.p.v[2]*V[2]):_.translate(M.p.v[0]*V,M.p.v[1]*V,-M.p.v[2]*V));if(t.strokeWidthAnim&&(W=H<0?0:H),t.strokeColorAnim&&($="rgb("+Math.round(255*O[0])+","+Math.round(255*O[1])+","+Math.round(255*O[2])+")"),t.fillColorAnim&&t.fc&&(Y="rgb("+Math.round(255*j[0])+","+Math.round(255*j[1])+","+Math.round(255*j[2])+")"),this._hasMaskedPath){if(_.translate(0,-t.ls),_.translate(0,E[1]*B*.01+i,0),this._pathData.p.v){b=(h.point[1]-c.point[1])/(h.point[0]-c.point[0]);var ht=180*Math.atan(b)/Math.PI;h.point[0]<c.point[0]&&(ht+=180),_.rotate(-ht*Math.PI/180)}_.translate(G,z,0),o-=E[0]*T[s].an*.005,T[s+1]&&K!==T[s+1].ind&&(o+=T[s].an/2,o+=.001*t.tr*t.finalSize)}else{switch(_.translate(r,i,0),t.ps&&_.translate(t.ps[0],t.ps[1]+t.ascent,0),t.j){case 1:_.translate(T[s].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[s].line]),0,0);break;case 2:_.translate(T[s].animatorJustifyOffset+t.justifyOffset+(t.boxWidth-t.lineWidths[T[s].line])/2,0,0)}_.translate(0,-t.ls),_.translate(L,0,0),_.translate(E[0]*T[s].an*.005,E[1]*B*.01,0),r+=T[s].l+.001*t.tr*t.finalSize}"html"===C?tt=_.toCSS():"svg"===C?tt=_.to2dCSS():et=[_.props[0],_.props[1],_.props[2],_.props[3],_.props[4],_.props[5],_.props[6],_.props[7],_.props[8],_.props[9],_.props[10],_.props[11],_.props[12],_.props[13],_.props[14],_.props[15]],X=N}A<=s?(I=new LetterProps(X,W,$,Y,tt,et),this.renderedLetters.push(I),A+=1,this.lettersChangedFlag=!0):(I=this.renderedLetters[s],this.lettersChangedFlag=I.update(X,W,$,Y,tt,et)||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(t,e,r){this.lettersChangedFlag=!0,this.initFrame(),this.initBaseData(t,e,r),this.textProperty=new TextProperty(this,t.t,this.dynamicProperties),this.textAnimator=new TextAnimatorProperty(t.t,this.renderType,this),this.initTransform(t,e,r),this.initHierarchy(),this.initRenderable(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),this.createContent(),this.hide(),this.textAnimator.searchProperties(this.dynamicProperties)},ITextElement.prototype.prepareFrame=function(t){this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),(this.textProperty._mdf||this.textProperty._isFirstFrame)&&(this.buildNewText(),this.textProperty._isFirstFrame=!1,this.textProperty._mdf=!1)},ITextElement.prototype.createPathShape=function(t,e){var r,i,s=e.length,a="";for(r=0;r<s;r+=1)"sh"===e[r].ty&&(i=e[r].ks.k,a+=buildShapeString(i,i.i.length,!0,t));return a},ITextElement.prototype.updateDocumentData=function(t,e){this.textProperty.updateDocumentData(t,e)},ITextElement.prototype.canResizeFont=function(t){this.textProperty.canResizeFont(t)},ITextElement.prototype.setMinimumFontSize=function(t){this.textProperty.setMinimumFontSize(t)},ITextElement.prototype.applyTextPropertiesToMatrix=function(t,e,r,i,s){switch(t.ps&&e.translate(t.ps[0],t.ps[1]+t.ascent,0),e.translate(0,-t.ls,0),t.j){case 1:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r]),0,0);break;case 2:e.translate(t.justifyOffset+(t.boxWidth-t.lineWidths[r])/2,0,0)}e.translate(i,s,0)},ITextElement.prototype.buildColor=function(t){return"rgb("+Math.round(255*t[0])+","+Math.round(255*t[1])+","+Math.round(255*t[2])+")"},ITextElement.prototype.emptyProp=new LetterProps,ITextElement.prototype.destroy=function(){};var emptyShapeData={shapes:[]};function SVGTextLottieElement(t,e,r){this.textSpans=[],this.renderType="svg",this.initElement(t,e,r)}function ISolidElement(t,e,r){this.initElement(t,e,r)}function NullElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initFrame(),this.initTransform(t,e,r),this.initHierarchy()}function SVGRendererBase(){}function ICompElement(){}function SVGCompElement(t,e,r){this.layers=t.layers,this.supports3d=!0,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function SVGRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.svgElement=createNS("svg");var r="";if(e&&e.title){var i=createNS("title"),s=createElementID();i.setAttribute("id",s),i.textContent=e.title,this.svgElement.appendChild(i),r+=s}if(e&&e.description){var a=createNS("desc"),n=createElementID();a.setAttribute("id",n),a.textContent=e.description,this.svgElement.appendChild(a),r+=" "+n}r&&this.svgElement.setAttribute("aria-labelledby",r);var o=createNS("defs");this.svgElement.appendChild(o);var h=createNS("g");this.svgElement.appendChild(h),this.layerElement=h,this.renderConfig={preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",progressiveLoad:e&&e.progressiveLoad||!1,hideOnTransparent:!(e&&!1===e.hideOnTransparent),viewBoxOnly:e&&e.viewBoxOnly||!1,viewBoxSize:e&&e.viewBoxSize||!1,className:e&&e.className||"",id:e&&e.id||"",focusable:e&&e.focusable,filterSize:{width:e&&e.filterSize&&e.filterSize.width||"100%",height:e&&e.filterSize&&e.filterSize.height||"100%",x:e&&e.filterSize&&e.filterSize.x||"0%",y:e&&e.filterSize&&e.filterSize.y||"0%"},width:e&&e.width,height:e&&e.height},this.globalData={_mdf:!1,frameNum:-1,defs:o,renderConfig:this.renderConfig},this.elements=[],this.pendingElements=[],this.destroyed=!1,this.rendererType="svg"}function CVContextData(){var t;for(this.saved=[],this.cArrPos=0,this.cTr=new Matrix,this.cO=1,this.savedOp=createTypedArray("float32",15),t=0;t<15;t+=1)this.saved[t]=createTypedArray("float32",16);this._length=15}function ShapeTransformManager(){this.sequences={},this.sequenceList=[],this.transform_key_count=0}function CVEffects(){}function CVMaskElement(t,e){var r;this.data=t,this.element=e,this.masksProperties=this.data.masksProperties||[],this.viewData=createSizedArray(this.masksProperties.length);var i=this.masksProperties.length,s=!1;for(r=0;r<i;r+=1)"n"!==this.masksProperties[r].mode&&(s=!0),this.viewData[r]=ShapePropertyFactory.getShapeProp(this.element,this.masksProperties[r],3);this.hasMasks=s,s&&this.element.addRenderableComponent(this)}function CVBaseElement(){}function CVShapeData(t,e,r,i){this.styledShapes=[],this.tr=[0,0,0,0,0,0];var s,a=4;"rc"===e.ty?a=5:"el"===e.ty?a=6:"sr"===e.ty&&(a=7),this.sh=ShapePropertyFactory.getShapeProp(t,e,a,t);var n,o=r.length;for(s=0;s<o;s+=1)r[s].closed||(n={transforms:i.addTransformSequence(r[s].transforms),trNodes:[]},this.styledShapes.push(n),r[s].elements.push(n))}function CVShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.itemsData=[],this.prevViewData=[],this.shapeModifiers=[],this.processedElements=[],this.transformsManager=new ShapeTransformManager,this.initElement(t,e,r)}function CVTextElement(t,e,r){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(t,e,r)}function CVImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.img=e.imageLoader.getAsset(this.assetData),this.initElement(t,e,r)}function CVSolidElement(t,e,r){this.initElement(t,e,r)}function CanvasRendererBase(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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(t,e,r){this.completeLayers=!1,this.layers=t.layers,this.pendingElements=[],this.elements=createSizedArray(this.layers.length),this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function CanvasRenderer(t,e){this.animationItem=t,this.renderConfig={clearCanvas:!e||void 0===e.clearCanvas||e.clearCanvas,context:e&&e.context||null,progressiveLoad:e&&e.progressiveLoad||!1,preserveAspectRatio:e&&e.preserveAspectRatio||"xMidYMid meet",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",contentVisibility:e&&e.contentVisibility||"visible",className:e&&e.className||"",id:e&&e.id||""},this.renderConfig.dpr=e&&e.dpr||1,this.animationItem.wrapper&&(this.renderConfig.dpr=e&&e.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(t,e,r){this.initElement(t,e,r)}function HShapeElement(t,e,r){this.shapes=[],this.shapesData=t.shapes,this.stylesList=[],this.shapeModifiers=[],this.itemsData=[],this.processedElements=[],this.animatedContents=[],this.shapesContainer=createNS("g"),this.initElement(t,e,r),this.prevViewData=[],this.currentBBox={x:999999,y:-999999,h:0,w:0}}function HTextElement(t,e,r){this.textSpans=[],this.textPaths=[],this.currentBBox={x:999999,y:-999999,h:0,w:0},this.renderType="svg",this.isMasked=!1,this.initElement(t,e,r)}function HCameraElement(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initHierarchy();var i=PropertyFactory.getProp;if(this.pe=i(this,t.pe,0,0,this),t.ks.p.s?(this.px=i(this,t.ks.p.x,1,0,this),this.py=i(this,t.ks.p.y,1,0,this),this.pz=i(this,t.ks.p.z,1,0,this)):this.p=i(this,t.ks.p,1,0,this),t.ks.a&&(this.a=i(this,t.ks.a,1,0,this)),t.ks.or.k.length&&t.ks.or.k[0].to){var s,a=t.ks.or.k.length;for(s=0;s<a;s+=1)t.ks.or.k[s].to=null,t.ks.or.k[s].ti=null}this.or=i(this,t.ks.or,1,degToRads,this),this.or.sh=!0,this.rx=i(this,t.ks.rx,0,degToRads,this),this.ry=i(this,t.ks.ry,0,degToRads,this),this.rz=i(this,t.ks.rz,0,degToRads,this),this.mat=new Matrix,this._prevMat=new Matrix,this._isFirstFrame=!0,this.finalTransform={mProp:this}}function HImageElement(t,e,r){this.assetData=e.getAssetData(t.refId),this.initElement(t,e,r)}function HybridRendererBase(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.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(t,e,r){this.layers=t.layers,this.supports3d=!t.hasMask,this.completeLayers=!1,this.pendingElements=[],this.elements=this.layers?createSizedArray(this.layers.length):[],this.initElement(t,e,r),this.tm=t.tm?PropertyFactory.getProp(this,t.tm,0,e.frameRate,this):{_placeholder:!0}}function HybridRenderer(t,e){this.animationItem=t,this.layers=null,this.renderedFrame=-1,this.renderConfig={className:e&&e.className||"",imagePreserveAspectRatio:e&&e.imagePreserveAspectRatio||"xMidYMid slice",hideOnTransparent:!(e&&!1===e.hideOnTransparent),filterSize:{width:e&&e.filterSize&&e.filterSize.width||"400%",height:e&&e.filterSize&&e.filterSize.height||"400%",x:e&&e.filterSize&&e.filterSize.x||"-100%",y:e&&e.filterSize&&e.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(t){for(var e=0,r=t.length,i=[],s="";e<r;)t[e]===String.fromCharCode(13)||t[e]===String.fromCharCode(3)?(i.push(s),s=""):s+=t[e],e+=1;return i.push(s),i},SVGTextLottieElement.prototype.buildShapeData=function(t,e){if(t.shapes&&t.shapes.length){var r=t.shapes[0];if(r.it){var i=r.it[r.it.length-1];i.s&&(i.s.k[0]=e,i.s.k[1]=e)}}return t},SVGTextLottieElement.prototype.buildNewText=function(){var t,e;this.addDynamicProperty(this);var r=this.textProperty.currentData;this.renderedLetters=createSizedArray(r?r.l.length:0),r.fc?this.layerElement.setAttribute("fill",this.buildColor(r.fc)):this.layerElement.setAttribute("fill","rgba(0,0,0,0)"),r.sc&&(this.layerElement.setAttribute("stroke",this.buildColor(r.sc)),this.layerElement.setAttribute("stroke-width",r.sw)),this.layerElement.setAttribute("font-size",r.finalSize);var i=this.globalData.fontManager.getFontByName(r.f);if(i.fClass)this.layerElement.setAttribute("class",i.fClass);else{this.layerElement.setAttribute("font-family",i.fFamily);var s=r.fWeight,a=r.fStyle;this.layerElement.setAttribute("font-style",a),this.layerElement.setAttribute("font-weight",s)}this.layerElement.setAttribute("aria-label",r.t);var n,o=r.l||[],h=!!this.globalData.fontManager.chars;e=o.length;var l=this.mHelper,p=this.data.singleShape,m=0,f=0,c=!0,d=.001*r.tr*r.finalSize;if(!p||h||r.sz){var u,y=this.textSpans.length;for(t=0;t<e;t+=1){if(this.textSpans[t]||(this.textSpans[t]={span:null,childSpan:null,glyph:null}),!h||!p||0===t){if(n=y>t?this.textSpans[t].span:createNS(h?"g":"text"),y<=t){if(n.setAttribute("stroke-linecap","butt"),n.setAttribute("stroke-linejoin","round"),n.setAttribute("stroke-miterlimit","4"),this.textSpans[t].span=n,h){var g=createNS("g");n.appendChild(g),this.textSpans[t].childSpan=g}this.textSpans[t].span=n,this.layerElement.appendChild(n)}n.style.display="inherit"}if(l.reset(),p&&(o[t].n&&(m=-d,f+=r.yOffset,f+=c?1:0,c=!1),this.applyTextPropertiesToMatrix(r,l,o[t].line,m,f),m+=o[t].l||0,m+=d),h){var v;if(1===(u=this.globalData.fontManager.getCharData(r.finalText[t],i.fStyle,this.globalData.fontManager.getFontByName(r.f).fFamily)).t)v=new SVGCompElement(u.data,this.globalData,this);else{var b=emptyShapeData;u.data&&u.data.shapes&&(b=this.buildShapeData(u.data,r.finalSize)),v=new SVGShapeElement(b,this.globalData,this)}if(this.textSpans[t].glyph){var P=this.textSpans[t].glyph;this.textSpans[t].childSpan.removeChild(P.layerElement),P.destroy()}this.textSpans[t].glyph=v,v._debug=!0,v.prepareFrame(0),v.renderFrame(),this.textSpans[t].childSpan.appendChild(v.layerElement),1===u.t&&this.textSpans[t].childSpan.setAttribute("transform","scale("+r.finalSize/100+","+r.finalSize/100+")")}else p&&n.setAttribute("transform","translate("+l.props[12]+","+l.props[13]+")"),n.textContent=o[t].val,n.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve")}p&&n&&n.setAttribute("d","")}else{var E=this.textContainer,x="start";switch(r.j){case 1:x="end";break;case 2:x="middle";break;default:x="start"}E.setAttribute("text-anchor",x),E.setAttribute("letter-spacing",d);var S=this.buildTextContents(r.finalText);for(e=S.length,f=r.ps?r.ps[1]+r.ascent:0,t=0;t<e;t+=1)(n=this.textSpans[t].span||createNS("tspan")).textContent=S[t],n.setAttribute("x",0),n.setAttribute("y",f),n.style.display="inherit",E.appendChild(n),this.textSpans[t]||(this.textSpans[t]={span:null,glyph:null}),this.textSpans[t].span=n,f+=r.finalLineHeight;this.layerElement.appendChild(E)}for(;t<this.textSpans.length;)this.textSpans[t].span.style.display="none",t+=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 t=this.layerElement.getBBox();this.bbox={top:t.y,left:t.x,width:t.width,height:t.height}}return this.bbox},SVGTextLottieElement.prototype.getValue=function(){var t,e,r=this.textSpans.length;for(this.renderedFrame=this.comp.renderedFrame,t=0;t<r;t+=1)(e=this.textSpans[t].glyph)&&(e.prepareFrame(this.comp.renderedFrame-this.data.st),e._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 t,e;this._sizeChanged=!0;var r,i,s,a=this.textAnimator.renderedLetters,n=this.textProperty.currentData.l;for(e=n.length,t=0;t<e;t+=1)n[t].n||(r=a[t],i=this.textSpans[t].span,(s=this.textSpans[t].glyph)&&s.renderFrame(),r._mdf.m&&i.setAttribute("transform",r.m),r._mdf.o&&i.setAttribute("opacity",r.o),r._mdf.sw&&i.setAttribute("stroke-width",r.sw),r._mdf.sc&&i.setAttribute("stroke",r.sc),r._mdf.fc&&i.setAttribute("fill",r.fc))}},extendPrototype([IImageElement],ISolidElement),ISolidElement.prototype.createContent=function(){var t=createNS("rect");t.setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.layerElement.appendChild(t)},NullElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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(t){return new NullElement(t,this.globalData,this)},SVGRendererBase.prototype.createShape=function(t){return new SVGShapeElement(t,this.globalData,this)},SVGRendererBase.prototype.createText=function(t){return new SVGTextLottieElement(t,this.globalData,this)},SVGRendererBase.prototype.createImage=function(t){return new IImageElement(t,this.globalData,this)},SVGRendererBase.prototype.createSolid=function(t){return new ISolidElement(t,this.globalData,this)},SVGRendererBase.prototype.configAnimation=function(t){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 "+t.w+" "+t.h),this.renderConfig.viewBoxOnly||(this.svgElement.setAttribute("width",t.w),this.svgElement.setAttribute("height",t.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 e=this.globalData.defs;this.setupGlobalData(t,e),this.globalData.progressiveLoad=this.renderConfig.progressiveLoad,this.data=t;var r=createNS("clipPath"),i=createNS("rect");i.setAttribute("width",t.w),i.setAttribute("height",t.h),i.setAttribute("x",0),i.setAttribute("y",0);var s=createElementID();r.setAttribute("id",s),r.appendChild(i),this.layerElement.setAttribute("clip-path","url("+getLocationHref()+"#"+s+")"),e.appendChild(r),this.layers=t.layers,this.elements=createSizedArray(t.layers.length)},SVGRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.layerElement=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},SVGRendererBase.prototype.updateContainerSize=function(){},SVGRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){e[t]=!0;var r=this.createItem(this.layers[t]);e[t]=r,getExpressionsPlugin()&&(0===this.layers[t].ty&&this.globalData.projectInterface.registerComposition(r),r.initExpressions()),this.appendElementInPos(r,t),this.layers[t].tt&&(this.elements[t-1]&&!0!==this.elements[t-1]?r.setMatte(e[t-1].layerId):(this.buildItem(t-1),this.addPendingElement(r)))}},SVGRendererBase.prototype.checkPendingElements=function(){for(;this.pendingElements.length;){var t=this.pendingElements.pop();if(t.checkParenting(),t.data.tt)for(var e=0,r=this.elements.length;e<r;){if(this.elements[e]===t){t.setMatte(this.elements[e-1].layerId);break}e+=1}}},SVGRendererBase.prototype.renderFrame=function(t){if(this.renderedFrame!==t&&!this.destroyed){var e;null===t?t=this.renderedFrame:this.renderedFrame=t,this.globalData.frameNum=t,this.globalData.frameId+=1,this.globalData.projectInterface.currentFrame=t,this.globalData._mdf=!1;var r=this.layers.length;for(this.completeLayers||this.checkLayers(t),e=r-1;e>=0;e-=1)(this.completeLayers||this.elements[e])&&this.elements[e].prepareFrame(t-this.layers[e].st);if(this.globalData._mdf)for(e=0;e<r;e+=1)(this.completeLayers||this.elements[e])&&this.elements[e].renderFrame()}},SVGRendererBase.prototype.appendElementInPos=function(t,e){var r=t.getBaseElement();if(r){for(var i,s=0;s<e;)this.elements[s]&&!0!==this.elements[s]&&this.elements[s].getBaseElement()&&(i=this.elements[s].getBaseElement()),s+=1;i?this.layerElement.insertBefore(r,i):this.layerElement.appendChild(r)}},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(t,e,r){this.initFrame(),this.initBaseData(t,e,r),this.initTransform(t,e,r),this.initRenderable(),this.initHierarchy(),this.initRendererElement(),this.createContainerElements(),this.createRenderableComponents(),!this.data.xt&&e.progressiveLoad||this.buildAllItems(),this.hide()},ICompElement.prototype.prepareFrame=function(t){if(this._mdf=!1,this.prepareRenderableFrame(t),this.prepareProperties(t,this.isInRange),this.isInRange||this.data.xt){if(this.tm._placeholder)this.renderedFrame=t/this.data.sr;else{var e=this.tm.v;e===this.data.op&&(e=this.data.op-1),this.renderedFrame=e}var r,i=this.elements.length;for(this.completeLayers||this.checkLayers(this.renderedFrame),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&(this.elements[r].prepareFrame(this.renderedFrame-this.layers[r].st),this.elements[r]._mdf&&(this._mdf=!0))}},ICompElement.prototype.renderInnerContent=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},ICompElement.prototype.setElements=function(t){this.elements=t},ICompElement.prototype.getElements=function(){return this.elements},ICompElement.prototype.destroyElements=function(){var t,e=this.layers.length;for(t=0;t<e;t+=1)this.elements[t]&&this.elements[t].destroy()},ICompElement.prototype.destroy=function(){this.destroyElements(),this.destroyBaseElement()},extendPrototype([SVGRendererBase,ICompElement,SVGBaseElement],SVGCompElement),SVGCompElement.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},extendPrototype([SVGRendererBase],SVGRenderer),SVGRenderer.prototype.createComp=function(t){return new SVGCompElement(t,this.globalData,this)},CVContextData.prototype.duplicate=function(){var t=2*this._length,e=this.savedOp;this.savedOp=createTypedArray("float32",t),this.savedOp.set(e);var r=0;for(r=this._length;r<t;r+=1)this.saved[r]=createTypedArray("float32",16);this._length=t},CVContextData.prototype.reset=function(){this.cArrPos=0,this.cTr.reset(),this.cO=1},ShapeTransformManager.prototype={addTransformSequence:function(t){var e,r=t.length,i="_";for(e=0;e<r;e+=1)i+=t[e].transform.key+"_";var s=this.sequences[i];return s||(s={transforms:[].concat(t),finalTransform:new Matrix,_mdf:!1},this.sequences[i]=s,this.sequenceList.push(s)),s},processSequence:function(t,e){for(var r,i=0,s=t.transforms.length,a=e;i<s&&!e;){if(t.transforms[i].transform.mProps._mdf){a=!0;break}i+=1}if(a)for(t.finalTransform.reset(),i=s-1;i>=0;i-=1)r=t.transforms[i].transform.mProps.v.props,t.finalTransform.transform(r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],r[8],r[9],r[10],r[11],r[12],r[13],r[14],r[15]);t._mdf=a},processSequences:function(t){var e,r=this.sequenceList.length;for(e=0;e<r;e+=1)this.processSequence(this.sequenceList[e],t)},getNewKey:function(){return this.transform_key_count+=1,"_"+this.transform_key_count}},CVEffects.prototype.renderFrame=function(){},CVMaskElement.prototype.renderFrame=function(){if(this.hasMasks){var t,e,r,i,s=this.element.finalTransform.mat,a=this.element.canvasContext,n=this.masksProperties.length;for(a.beginPath(),t=0;t<n;t+=1)if("n"!==this.masksProperties[t].mode){var o;this.masksProperties[t].inv&&(a.moveTo(0,0),a.lineTo(this.element.globalData.compSize.w,0),a.lineTo(this.element.globalData.compSize.w,this.element.globalData.compSize.h),a.lineTo(0,this.element.globalData.compSize.h),a.lineTo(0,0)),i=this.viewData[t].v,e=s.applyToPointArray(i.v[0][0],i.v[0][1],0),a.moveTo(e[0],e[1]);var h=i._length;for(o=1;o<h;o+=1)r=s.applyToTriplePoints(i.o[o-1],i.i[o],i.v[o]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5]);r=s.applyToTriplePoints(i.o[o-1],i.i[0],i.v[0]),a.bezierCurveTo(r[0],r[1],r[2],r[3],r[4],r[5])}this.element.globalData.renderer.save(!0),a.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 t=this.globalData;if(t.blendMode!==this.data.bm){t.blendMode=this.data.bm;var e=getBlendMode(this.data.bm);t.canvasContext.globalCompositeOperation=e}},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 t=0===this.data.ty;this.globalData.renderer.save(t),this.globalData.renderer.ctxTransform(this.finalTransform.mat.props),this.globalData.renderer.ctxOpacity(this.finalTransform.mProp.o.v),this.renderInnerContent(),this.globalData.renderer.restore(t),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(t,e){var r={data:t,type:t.ty,preTransforms:this.transformsManager.addTransformSequence(e),transforms:[],elements:[],closed:!0===t.hd},i={};if("fl"===t.ty||"st"===t.ty?(i.c=PropertyFactory.getProp(this,t.c,1,255,this),i.c.k||(r.co="rgb("+bmFloor(i.c.v[0])+","+bmFloor(i.c.v[1])+","+bmFloor(i.c.v[2])+")")):"gf"!==t.ty&&"gs"!==t.ty||(i.s=PropertyFactory.getProp(this,t.s,1,null,this),i.e=PropertyFactory.getProp(this,t.e,1,null,this),i.h=PropertyFactory.getProp(this,t.h||{k:0},0,.01,this),i.a=PropertyFactory.getProp(this,t.a||{k:0},0,degToRads,this),i.g=new GradientProperty(this,t.g,this)),i.o=PropertyFactory.getProp(this,t.o,0,.01,this),"st"===t.ty||"gs"===t.ty){if(r.lc=lineCapEnum[t.lc||2],r.lj=lineJoinEnum[t.lj||2],1==t.lj&&(r.ml=t.ml),i.w=PropertyFactory.getProp(this,t.w,0,null,this),i.w.k||(r.wi=i.w.v),t.d){var s=new DashProperty(this,t.d,"canvas",this);i.d=s,i.d.k||(r.da=i.d.dashArray,r.do=i.d.dashoffset[0])}}else r.r=2===t.r?"evenodd":"nonzero";return this.stylesList.push(r),i.style=r,i},CVShapeElement.prototype.createGroupElement=function(){return{it:[],prevViewData:[]}},CVShapeElement.prototype.createTransformElement=function(t){return{transform:{opacity:1,_opMdf:!1,key:this.transformsManager.getNewKey(),op:PropertyFactory.getProp(this,t.o,0,.01,this),mProps:TransformPropertyFactory.getTransformProperty(this,t,this)}}},CVShapeElement.prototype.createShapeElement=function(t){var e=new CVShapeData(this,t,this.stylesList,this.transformsManager);return this.shapes.push(e),this.addShapeToModifiers(e),e},CVShapeElement.prototype.reloadShapes=function(){var t;this._isFirstFrame=!0;var e=this.itemsData.length;for(t=0;t<e;t+=1)this.prevViewData[t]=this.itemsData[t];for(this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,!0,[]),e=this.dynamicProperties.length,t=0;t<e;t+=1)this.dynamicProperties[t].getValue();this.renderModifiers(),this.transformsManager.processSequences(this._isFirstFrame)},CVShapeElement.prototype.addTransformToStyleList=function(t){var e,r=this.stylesList.length;for(e=0;e<r;e+=1)this.stylesList[e].closed||this.stylesList[e].transforms.push(t)},CVShapeElement.prototype.removeTransformFromStyleList=function(){var t,e=this.stylesList.length;for(t=0;t<e;t+=1)this.stylesList[t].closed||this.stylesList[t].transforms.pop()},CVShapeElement.prototype.closeStyles=function(t){var e,r=t.length;for(e=0;e<r;e+=1)t[e].closed=!0},CVShapeElement.prototype.searchShapes=function(t,e,r,i,s){var a,n,o,h,l,p,m=t.length-1,f=[],c=[],d=[].concat(s);for(a=m;a>=0;a-=1){if((h=this.searchProcessedElement(t[a]))?e[a]=r[h-1]:t[a]._shouldRender=i,"fl"===t[a].ty||"st"===t[a].ty||"gf"===t[a].ty||"gs"===t[a].ty)h?e[a].style.closed=!1:e[a]=this.createStyleElement(t[a],d),f.push(e[a].style);else if("gr"===t[a].ty){if(h)for(o=e[a].it.length,n=0;n<o;n+=1)e[a].prevViewData[n]=e[a].it[n];else e[a]=this.createGroupElement(t[a]);this.searchShapes(t[a].it,e[a].it,e[a].prevViewData,i,d)}else"tr"===t[a].ty?(h||(p=this.createTransformElement(t[a]),e[a]=p),d.push(e[a]),this.addTransformToStyleList(e[a])):"sh"===t[a].ty||"rc"===t[a].ty||"el"===t[a].ty||"sr"===t[a].ty?h||(e[a]=this.createShapeElement(t[a])):"tm"===t[a].ty||"rd"===t[a].ty||"pb"===t[a].ty?(h?(l=e[a]).closed=!1:((l=ShapeModifiers.getModifier(t[a].ty)).init(this,t[a]),e[a]=l,this.shapeModifiers.push(l)),c.push(l)):"rp"===t[a].ty&&(h?(l=e[a]).closed=!0:(l=ShapeModifiers.getModifier(t[a].ty),e[a]=l,l.init(this,t,a,e),this.shapeModifiers.push(l),i=!1),c.push(l));this.addProcessedElement(t[a],a+1)}for(this.removeTransformFromStyleList(),this.closeStyles(f),m=c.length,a=0;a<m;a+=1)c[a].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(t,e){(t._opMdf||e.op._mdf||this._isFirstFrame)&&(e.opacity=t.opacity,e.opacity*=e.op.v,e._opMdf=!0)},CVShapeElement.prototype.drawLayer=function(){var t,e,r,i,s,a,n,o,h,l=this.stylesList.length,p=this.globalData.renderer,m=this.globalData.canvasContext;for(t=0;t<l;t+=1)if(("st"!==(o=(h=this.stylesList[t]).type)&&"gs"!==o||0!==h.wi)&&h.data._shouldRender&&0!==h.coOp&&0!==this.globalData.currentGlobalAlpha){for(p.save(),a=h.elements,"st"===o||"gs"===o?(m.strokeStyle="st"===o?h.co:h.grd,m.lineWidth=h.wi,m.lineCap=h.lc,m.lineJoin=h.lj,m.miterLimit=h.ml||0):m.fillStyle="fl"===o?h.co:h.grd,p.ctxOpacity(h.coOp),"st"!==o&&"gs"!==o&&m.beginPath(),p.ctxTransform(h.preTransforms.finalTransform.props),r=a.length,e=0;e<r;e+=1){for("st"!==o&&"gs"!==o||(m.beginPath(),h.da&&(m.setLineDash(h.da),m.lineDashOffset=h.do)),s=(n=a[e].trNodes).length,i=0;i<s;i+=1)"m"===n[i].t?m.moveTo(n[i].p[0],n[i].p[1]):"c"===n[i].t?m.bezierCurveTo(n[i].pts[0],n[i].pts[1],n[i].pts[2],n[i].pts[3],n[i].pts[4],n[i].pts[5]):m.closePath();"st"!==o&&"gs"!==o||(m.stroke(),h.da&&m.setLineDash(this.dashResetter))}"st"!==o&&"gs"!==o&&m.fill(h.r),p.restore()}},CVShapeElement.prototype.renderShape=function(t,e,r,i){var s,a;for(a=t,s=e.length-1;s>=0;s-=1)"tr"===e[s].ty?(a=r[s].transform,this.renderShapeTransform(t,a)):"sh"===e[s].ty||"el"===e[s].ty||"rc"===e[s].ty||"sr"===e[s].ty?this.renderPath(e[s],r[s]):"fl"===e[s].ty?this.renderFill(e[s],r[s],a):"st"===e[s].ty?this.renderStroke(e[s],r[s],a):"gf"===e[s].ty||"gs"===e[s].ty?this.renderGradientFill(e[s],r[s],a):"gr"===e[s].ty?this.renderShape(a,e[s].it,r[s].it):e[s].ty;i&&this.drawLayer()},CVShapeElement.prototype.renderStyledShape=function(t,e){if(this._isFirstFrame||e._mdf||t.transforms._mdf){var r,i,s,a=t.trNodes,n=e.paths,o=n._length;a.length=0;var h=t.transforms.finalTransform;for(s=0;s<o;s+=1){var l=n.shapes[s];if(l&&l.v){for(i=l._length,r=1;r<i;r+=1)1===r&&a.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),a.push({t:"c",pts:h.applyToTriplePoints(l.o[r-1],l.i[r],l.v[r])});1===i&&a.push({t:"m",p:h.applyToPointArray(l.v[0][0],l.v[0][1],0)}),l.c&&i&&(a.push({t:"c",pts:h.applyToTriplePoints(l.o[r-1],l.i[0],l.v[0])}),a.push({t:"z"}))}}t.trNodes=a}},CVShapeElement.prototype.renderPath=function(t,e){if(!0!==t.hd&&t._shouldRender){var r,i=e.styledShapes.length;for(r=0;r<i;r+=1)this.renderStyledShape(e.styledShapes[r],e.sh)}},CVShapeElement.prototype.renderFill=function(t,e,r){var i=e.style;(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity)},CVShapeElement.prototype.renderGradientFill=function(t,e,r){var i,s=e.style;if(!s.grd||e.g._mdf||e.s._mdf||e.e._mdf||1!==t.t&&(e.h._mdf||e.a._mdf)){var a,n=this.globalData.canvasContext,o=e.s.v,h=e.e.v;if(1===t.t)i=n.createLinearGradient(o[0],o[1],h[0],h[1]);else{var l=Math.sqrt(Math.pow(o[0]-h[0],2)+Math.pow(o[1]-h[1],2)),p=Math.atan2(h[1]-o[1],h[0]-o[0]),m=e.h.v;m>=1?m=.99:m<=-1&&(m=-.99);var f=l*m,c=Math.cos(p+e.a.v)*f+o[0],d=Math.sin(p+e.a.v)*f+o[1];i=n.createRadialGradient(c,d,0,o[0],o[1],l)}var u=t.g.p,y=e.g.c,g=1;for(a=0;a<u;a+=1)e.g._hasOpacity&&e.g._collapsable&&(g=e.g.o[2*a+1]),i.addColorStop(y[4*a]/100,"rgba("+y[4*a+1]+","+y[4*a+2]+","+y[4*a+3]+","+g+")");s.grd=i}s.coOp=e.o.v*r.opacity},CVShapeElement.prototype.renderStroke=function(t,e,r){var i=e.style,s=e.d;s&&(s._mdf||this._isFirstFrame)&&(i.da=s.dashArray,i.do=s.dashoffset[0]),(e.c._mdf||this._isFirstFrame)&&(i.co="rgb("+bmFloor(e.c.v[0])+","+bmFloor(e.c.v[1])+","+bmFloor(e.c.v[2])+")"),(e.o._mdf||r._opMdf||this._isFirstFrame)&&(i.coOp=e.o.v*r.opacity),(e.w._mdf||this._isFirstFrame)&&(i.wi=e.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 t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=!1;t.fc?(e=!0,this.values.fill=this.buildColor(t.fc)):this.values.fill="rgba(0,0,0,0)",this.fill=e;var r=!1;t.sc&&(r=!0,this.values.stroke=this.buildColor(t.sc),this.values.sWidth=t.sw);var i,s,a,n,o,h,l,p,m,f,c,d,u=this.globalData.fontManager.getFontByName(t.f),y=t.l,g=this.mHelper;this.stroke=r,this.values.fValue=t.finalSize+"px "+this.globalData.fontManager.getFontByName(t.f).fFamily,s=t.finalText.length;var v=this.data.singleShape,b=.001*t.tr*t.finalSize,P=0,E=0,x=!0,S=0;for(i=0;i<s;i+=1){n=(a=this.globalData.fontManager.getCharData(t.finalText[i],u.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily))&&a.data||{},g.reset(),v&&y[i].n&&(P=-b,E+=t.yOffset,E+=x?1:0,x=!1),m=(l=n.shapes?n.shapes[0].it:[]).length,g.scale(t.finalSize/100,t.finalSize/100),v&&this.applyTextPropertiesToMatrix(t,g,y[i].line,P,E),c=createSizedArray(m-1);var _=0;for(p=0;p<m;p+=1)if("sh"===l[p].ty){for(h=l[p].ks.k.i.length,f=l[p].ks.k,d=[],o=1;o<h;o+=1)1===o&&d.push(g.applyToX(f.v[0][0],f.v[0][1],0),g.applyToY(f.v[0][0],f.v[0][1],0)),d.push(g.applyToX(f.o[o-1][0],f.o[o-1][1],0),g.applyToY(f.o[o-1][0],f.o[o-1][1],0),g.applyToX(f.i[o][0],f.i[o][1],0),g.applyToY(f.i[o][0],f.i[o][1],0),g.applyToX(f.v[o][0],f.v[o][1],0),g.applyToY(f.v[o][0],f.v[o][1],0));d.push(g.applyToX(f.o[o-1][0],f.o[o-1][1],0),g.applyToY(f.o[o-1][0],f.o[o-1][1],0),g.applyToX(f.i[0][0],f.i[0][1],0),g.applyToY(f.i[0][0],f.i[0][1],0),g.applyToX(f.v[0][0],f.v[0][1],0),g.applyToY(f.v[0][0],f.v[0][1],0)),c[_]=d,_+=1}v&&(P+=y[i].l,P+=b),this.textSpans[S]?this.textSpans[S].elem=c:this.textSpans[S]={elem:c},S+=1}},CVTextElement.prototype.renderInnerContent=function(){var t,e,r,i,s,a,n=this.canvasContext;n.font=this.values.fValue,n.lineCap="butt",n.lineJoin="miter",n.miterLimit=4,this.data.singleShape||this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag);var o,h=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;e=l.length;var p,m,f=null,c=null,d=null;for(t=0;t<e;t+=1)if(!l[t].n){if((o=h[t])&&(this.globalData.renderer.save(),this.globalData.renderer.ctxTransform(o.p),this.globalData.renderer.ctxOpacity(o.o)),this.fill){for(o&&o.fc?f!==o.fc&&(f=o.fc,n.fillStyle=o.fc):f!==this.values.fill&&(f=this.values.fill,n.fillStyle=this.values.fill),i=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(m=p[r]).length,this.globalData.canvasContext.moveTo(m[0],m[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[s+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.fill()}if(this.stroke){for(o&&o.sw?d!==o.sw&&(d=o.sw,n.lineWidth=o.sw):d!==this.values.sWidth&&(d=this.values.sWidth,n.lineWidth=this.values.sWidth),o&&o.sc?c!==o.sc&&(c=o.sc,n.strokeStyle=o.sc):c!==this.values.stroke&&(c=this.values.stroke,n.strokeStyle=this.values.stroke),i=(p=this.textSpans[t].elem).length,this.globalData.canvasContext.beginPath(),r=0;r<i;r+=1)for(a=(m=p[r]).length,this.globalData.canvasContext.moveTo(m[0],m[1]),s=2;s<a;s+=6)this.globalData.canvasContext.bezierCurveTo(m[s],m[s+1],m[s+2],m[s+3],m[s+4],m[s+5]);this.globalData.canvasContext.closePath(),this.globalData.canvasContext.stroke()}o&&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 t=createTag("canvas");t.width=this.assetData.w,t.height=this.assetData.h;var e,r,i=t.getContext("2d"),s=this.img.width,a=this.img.height,n=s/a,o=this.assetData.w/this.assetData.h,h=this.assetData.pr||this.globalData.renderConfig.imagePreserveAspectRatio;n>o&&"xMidYMid slice"===h||n<o&&"xMidYMid slice"!==h?e=(r=a)*o:r=(e=s)/o,i.drawImage(this.img,(s-e)/2,(a-r)/2,e,r,0,0,this.assetData.w,this.assetData.h),this.img=t}},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 t=this.canvasContext;t.fillStyle=this.data.sc,t.fillRect(0,0,this.data.sw,this.data.sh)},extendPrototype([BaseRenderer],CanvasRendererBase),CanvasRendererBase.prototype.createShape=function(t){return new CVShapeElement(t,this.globalData,this)},CanvasRendererBase.prototype.createText=function(t){return new CVTextElement(t,this.globalData,this)},CanvasRendererBase.prototype.createImage=function(t){return new CVImageElement(t,this.globalData,this)},CanvasRendererBase.prototype.createSolid=function(t){return new CVSolidElement(t,this.globalData,this)},CanvasRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,CanvasRendererBase.prototype.ctxTransform=function(t){if(1!==t[0]||0!==t[1]||0!==t[4]||1!==t[5]||0!==t[12]||0!==t[13])if(this.renderConfig.clearCanvas){this.transformMat.cloneFromProps(t);var e=this.contextData.cTr.props;this.transformMat.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]),this.contextData.cTr.cloneFromProps(this.transformMat.props);var r=this.contextData.cTr.props;this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13])}else this.canvasContext.transform(t[0],t[1],t[4],t[5],t[12],t[13])},CanvasRendererBase.prototype.ctxOpacity=function(t){if(!this.renderConfig.clearCanvas)return this.canvasContext.globalAlpha*=t<0?0:t,void(this.globalData.currentGlobalAlpha=this.contextData.cO);this.contextData.cO*=t<0?0:t,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(t){if(this.renderConfig.clearCanvas){t&&this.canvasContext.save();var e,r=this.contextData.cTr.props;this.contextData._length<=this.contextData.cArrPos&&this.contextData.duplicate();var i=this.contextData.saved[this.contextData.cArrPos];for(e=0;e<16;e+=1)i[e]=r[e];this.contextData.savedOp[this.contextData.cArrPos]=this.contextData.cO,this.contextData.cArrPos+=1}else this.canvasContext.save()},CanvasRendererBase.prototype.restore=function(t){if(this.renderConfig.clearCanvas){t&&(this.canvasContext.restore(),this.globalData.blendMode="source-over"),this.contextData.cArrPos-=1;var e,r=this.contextData.saved[this.contextData.cArrPos],i=this.contextData.cTr.props;for(e=0;e<16;e+=1)i[e]=r[e];this.canvasContext.setTransform(r[0],r[1],r[4],r[5],r[12],r[13]),r=this.contextData.savedOp[this.contextData.cArrPos],this.contextData.cO=r,this.globalData.currentGlobalAlpha!==r&&(this.canvasContext.globalAlpha=r,this.globalData.currentGlobalAlpha=r)}else this.canvasContext.restore()},CanvasRendererBase.prototype.configAnimation=function(t){if(this.animationItem.wrapper){this.animationItem.container=createTag("canvas");var e=this.animationItem.container.style;e.width="100%",e.height="100%";var r="0px 0px 0px";e.transformOrigin=r,e.mozTransformOrigin=r,e.webkitTransformOrigin=r,e["-webkit-transform"]=r,e.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=t,this.layers=t.layers,this.transformCanvas={w:t.w,h:t.h,sx:0,sy:0,tx:0,ty:0},this.setupGlobalData(t,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(t.layers.length),this.updateContainerSize()},CanvasRendererBase.prototype.updateContainerSize=function(){var t,e,r,i;if(this.reset(),this.animationItem.wrapper&&this.animationItem.container?(t=this.animationItem.wrapper.offsetWidth,e=this.animationItem.wrapper.offsetHeight,this.animationItem.container.setAttribute("width",t*this.renderConfig.dpr),this.animationItem.container.setAttribute("height",e*this.renderConfig.dpr)):(t=this.canvasContext.canvas.width*this.renderConfig.dpr,e=this.canvasContext.canvas.height*this.renderConfig.dpr),-1!==this.renderConfig.preserveAspectRatio.indexOf("meet")||-1!==this.renderConfig.preserveAspectRatio.indexOf("slice")){var s=this.renderConfig.preserveAspectRatio.split(" "),a=s[1]||"meet",n=s[0]||"xMidYMid",o=n.substr(0,4),h=n.substr(4);r=t/e,(i=this.transformCanvas.w/this.transformCanvas.h)>r&&"meet"===a||i<r&&"slice"===a?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=t/(this.transformCanvas.w/this.renderConfig.dpr)):(this.transformCanvas.sx=e/(this.transformCanvas.h/this.renderConfig.dpr),this.transformCanvas.sy=e/(this.transformCanvas.h/this.renderConfig.dpr)),this.transformCanvas.tx="xMid"===o&&(i<r&&"meet"===a||i>r&&"slice"===a)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))/2*this.renderConfig.dpr:"xMax"===o&&(i<r&&"meet"===a||i>r&&"slice"===a)?(t-this.transformCanvas.w*(e/this.transformCanvas.h))*this.renderConfig.dpr:0,this.transformCanvas.ty="YMid"===h&&(i>r&&"meet"===a||i<r&&"slice"===a)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))/2*this.renderConfig.dpr:"YMax"===h&&(i>r&&"meet"===a||i<r&&"slice"===a)?(e-this.transformCanvas.h*(t/this.transformCanvas.w))*this.renderConfig.dpr:0}else"none"===this.renderConfig.preserveAspectRatio?(this.transformCanvas.sx=t/(this.transformCanvas.w/this.renderConfig.dpr),this.transformCanvas.sy=e/(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 t;for(this.renderConfig.clearCanvas&&this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),t=(this.layers?this.layers.length:0)-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.elements.length=0,this.globalData.canvasContext=null,this.animationItem.container=null,this.destroyed=!0},CanvasRendererBase.prototype.renderFrame=function(t,e){if((this.renderedFrame!==t||!0!==this.renderConfig.clearCanvas||e)&&!this.destroyed&&-1!==t){var r;this.renderedFrame=t,this.globalData.frameNum=t-this.animationItem._isFirstFrame,this.globalData.frameId+=1,this.globalData._mdf=!this.renderConfig.clearCanvas||e,this.globalData.projectInterface.currentFrame=t;var i=this.layers.length;for(this.completeLayers||this.checkLayers(t),r=0;r<i;r+=1)(this.completeLayers||this.elements[r])&&this.elements[r].prepareFrame(t-this.layers[r].st);if(this.globalData._mdf){for(!0===this.renderConfig.clearCanvas?this.canvasContext.clearRect(0,0,this.transformCanvas.w,this.transformCanvas.h):this.save(),r=i-1;r>=0;r-=1)(this.completeLayers||this.elements[r])&&this.elements[r].renderFrame();!0!==this.renderConfig.clearCanvas&&this.restore()}}},CanvasRendererBase.prototype.buildItem=function(t){var e=this.elements;if(!e[t]&&99!==this.layers[t].ty){var r=this.createItem(this.layers[t],this,this.globalData);e[t]=r,r.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 t,e=this.canvasContext;for(e.beginPath(),e.moveTo(0,0),e.lineTo(this.data.w,0),e.lineTo(this.data.w,this.data.h),e.lineTo(0,this.data.h),e.lineTo(0,0),e.clip(),t=this.layers.length-1;t>=0;t-=1)(this.completeLayers||this.elements[t])&&this.elements[t].renderFrame()},CVCompElement.prototype.destroy=function(){var t;for(t=this.layers.length-1;t>=0;t-=1)this.elements[t]&&this.elements[t].destroy();this.layers=null,this.elements=null},CVCompElement.prototype.createComp=function(t){return new CVCompElement(t,this.globalData,this)},extendPrototype([CanvasRendererBase],CanvasRenderer),CanvasRenderer.prototype.createComp=function(t){return new CVCompElement(t,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 t=this.transformedElement?this.transformedElement.style:{};if(this.finalTransform._matMdf){var e=this.finalTransform.mat.toCSS();t.transform=e,t.webkitTransform=e}this.finalTransform._opMdf&&(t.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 t;this.data.hasMask?((t=createNS("rect")).setAttribute("width",this.data.sw),t.setAttribute("height",this.data.sh),t.setAttribute("fill",this.data.sc),this.svgElement.setAttribute("width",this.data.sw),this.svgElement.setAttribute("height",this.data.sh)):((t=createTag("div")).style.width=this.data.sw+"px",t.style.height=this.data.sh+"px",t.style.backgroundColor=this.data.sc),this.layerElement.appendChild(t)},extendPrototype([BaseElement,TransformElement,HSolidElement,SVGShapeElement,HBaseElement,HierarchyElement,FrameElement,RenderableElement],HShapeElement),HShapeElement.prototype._renderShapeFrame=HShapeElement.prototype.renderInnerContent,HShapeElement.prototype.createContent=function(){var t;if(this.baseElement.style.fontSize=0,this.data.hasMask)this.layerElement.appendChild(this.shapesContainer),t=this.svgElement;else{t=createNS("svg");var e=this.comp.data?this.comp.data:this.globalData.compSize;t.setAttribute("width",e.w),t.setAttribute("height",e.h),t.appendChild(this.shapesContainer),this.layerElement.appendChild(t)}this.searchShapes(this.shapesData,this.itemsData,this.prevViewData,this.shapesContainer,0,[],!0),this.filterUniqueShapes(),this.shapeCont=t},HShapeElement.prototype.getTransformedPoint=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)e=t[r].mProps.v.applyToPointArray(e[0],e[1],0);return e},HShapeElement.prototype.calculateShapeBoundingBox=function(t,e){var r,i,s,a,n,o=t.sh.v,h=t.transformers,l=o._length;if(!(l<=1)){for(r=0;r<l-1;r+=1)i=this.getTransformedPoint(h,o.v[r]),s=this.getTransformedPoint(h,o.o[r]),a=this.getTransformedPoint(h,o.i[r+1]),n=this.getTransformedPoint(h,o.v[r+1]),this.checkBounds(i,s,a,n,e);o.c&&(i=this.getTransformedPoint(h,o.v[r]),s=this.getTransformedPoint(h,o.o[r]),a=this.getTransformedPoint(h,o.i[0]),n=this.getTransformedPoint(h,o.v[0]),this.checkBounds(i,s,a,n,e))}},HShapeElement.prototype.checkBounds=function(t,e,r,i,s){this.getBoundsOfCurve(t,e,r,i);var a=this.shapeBoundingBox;s.x=bmMin(a.left,s.x),s.xMax=bmMax(a.right,s.xMax),s.y=bmMin(a.top,s.y),s.yMax=bmMax(a.bottom,s.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(t,e,r,i){for(var s,a,n,o,h,l,p,m=[[t[0],i[0]],[t[1],i[1]]],f=0;f<2;++f)a=6*t[f]-12*e[f]+6*r[f],s=-3*t[f]+9*e[f]-9*r[f]+3*i[f],n=3*e[f]-3*t[f],a|=0,n|=0,0===(s|=0)&&0===a||(0===s?(o=-n/a)>0&&o<1&&m[f].push(this.calculateF(o,t,e,r,i,f)):(h=a*a-4*n*s)>=0&&((l=(-a+bmSqrt(h))/(2*s))>0&&l<1&&m[f].push(this.calculateF(l,t,e,r,i,f)),(p=(-a-bmSqrt(h))/(2*s))>0&&p<1&&m[f].push(this.calculateF(p,t,e,r,i,f))));this.shapeBoundingBox.left=bmMin.apply(null,m[0]),this.shapeBoundingBox.top=bmMin.apply(null,m[1]),this.shapeBoundingBox.right=bmMax.apply(null,m[0]),this.shapeBoundingBox.bottom=bmMax.apply(null,m[1])},HShapeElement.prototype.calculateF=function(t,e,r,i,s,a){return bmPow(1-t,3)*e[a]+3*bmPow(1-t,2)*t*r[a]+3*(1-t)*bmPow(t,2)*i[a]+bmPow(t,3)*s[a]},HShapeElement.prototype.calculateBoundingBox=function(t,e){var r,i=t.length;for(r=0;r<i;r+=1)t[r]&&t[r].sh?this.calculateShapeBoundingBox(t[r],e):t[r]&&t[r].it?this.calculateBoundingBox(t[r].it,e):t[r]&&t[r].style&&t[r].w&&this.expandStrokeBoundingBox(t[r].w,e)},HShapeElement.prototype.expandStrokeBoundingBox=function(t,e){var r=0;if(t.keyframes){for(var i=0;i<t.keyframes.length;i+=1){var s=t.keyframes[i].s;s>r&&(r=s)}r*=t.mult}else r=t.v*t.mult;e.x-=r,e.xMax+=r,e.y-=r,e.yMax+=r},HShapeElement.prototype.currentBoxContains=function(t){return this.currentBBox.x<=t.x&&this.currentBBox.y<=t.y&&this.currentBBox.width+this.currentBBox.x>=t.x+t.width&&this.currentBBox.height+this.currentBBox.y>=t.y+t.height},HShapeElement.prototype.renderInnerContent=function(){if(this._renderShapeFrame(),!this.hidden&&(this._isFirstFrame||this._mdf)){var t=this.tempBoundingBox,e=999999;if(t.x=e,t.xMax=-e,t.y=e,t.yMax=-e,this.calculateBoundingBox(this.itemsData,t),t.width=t.xMax<t.x?0:t.xMax-t.x,t.height=t.yMax<t.y?0:t.yMax-t.y,this.currentBoxContains(t))return;var r=!1;if(this.currentBBox.w!==t.width&&(this.currentBBox.w=t.width,this.shapeCont.setAttribute("width",t.width),r=!0),this.currentBBox.h!==t.height&&(this.currentBBox.h=t.height,this.shapeCont.setAttribute("height",t.height),r=!0),r||this.currentBBox.x!==t.x||this.currentBBox.y!==t.y){this.currentBBox.w=t.width,this.currentBBox.h=t.height,this.currentBBox.x=t.x,this.currentBBox.y=t.y,this.shapeCont.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h);var i=this.shapeCont.style,s="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";i.transform=s,i.webkitTransform=s}}},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 t=createNS("g");this.maskedElement.appendChild(t),this.innerElem=t}else this.renderType="html",this.innerElem=this.layerElement;this.checkParenting()},HTextElement.prototype.buildNewText=function(){var t=this.textProperty.currentData;this.renderedLetters=createSizedArray(t.l?t.l.length:0);var e=this.innerElem.style,r=t.fc?this.buildColor(t.fc):"rgba(0,0,0,0)";e.fill=r,e.color=r,t.sc&&(e.stroke=this.buildColor(t.sc),e.strokeWidth=t.sw+"px");var i,s,a=this.globalData.fontManager.getFontByName(t.f);if(!this.globalData.fontManager.chars)if(e.fontSize=t.finalSize+"px",e.lineHeight=t.finalSize+"px",a.fClass)this.innerElem.className=a.fClass;else{e.fontFamily=a.fFamily;var n=t.fWeight,o=t.fStyle;e.fontStyle=o,e.fontWeight=n}var h,l,p,m=t.l;s=m.length;var f,c=this.mHelper,d="",u=0;for(i=0;i<s;i+=1){if(this.globalData.fontManager.chars?(this.textPaths[u]?h=this.textPaths[u]:((h=createNS("path")).setAttribute("stroke-linecap",lineCapEnum[1]),h.setAttribute("stroke-linejoin",lineJoinEnum[2]),h.setAttribute("stroke-miterlimit","4")),this.isMasked||(this.textSpans[u]?p=(l=this.textSpans[u]).children[0]:((l=createTag("div")).style.lineHeight=0,(p=createNS("svg")).appendChild(h),styleDiv(l)))):this.isMasked?h=this.textPaths[u]?this.textPaths[u]:createNS("text"):this.textSpans[u]?(l=this.textSpans[u],h=this.textPaths[u]):(styleDiv(l=createTag("span")),styleDiv(h=createTag("span")),l.appendChild(h)),this.globalData.fontManager.chars){var y,g=this.globalData.fontManager.getCharData(t.finalText[i],a.fStyle,this.globalData.fontManager.getFontByName(t.f).fFamily);if(y=g?g.data:null,c.reset(),y&&y.shapes&&y.shapes.length&&(f=y.shapes[0].it,c.scale(t.finalSize/100,t.finalSize/100),d=this.createPathShape(c,f),h.setAttribute("d",d)),this.isMasked)this.innerElem.appendChild(h);else{if(this.innerElem.appendChild(l),y&&y.shapes){document.body.appendChild(p);var v=p.getBBox();p.setAttribute("width",v.width+2),p.setAttribute("height",v.height+2),p.setAttribute("viewBox",v.x-1+" "+(v.y-1)+" "+(v.width+2)+" "+(v.height+2));var b=p.style,P="translate("+(v.x-1)+"px,"+(v.y-1)+"px)";b.transform=P,b.webkitTransform=P,m[i].yOffset=v.y-1}else p.setAttribute("width",1),p.setAttribute("height",1);l.appendChild(p)}}else if(h.textContent=m[i].val,h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),this.isMasked)this.innerElem.appendChild(h);else{this.innerElem.appendChild(l);var E=h.style,x="translate3d(0,"+-t.finalSize/1.2+"px,0)";E.transform=x,E.webkitTransform=x}this.isMasked?this.textSpans[u]=h:this.textSpans[u]=l,this.textSpans[u].style.display="block",this.textPaths[u]=h,u+=1}for(;u<this.textSpans.length;)this.textSpans[u].style.display="none",u+=1},HTextElement.prototype.renderInnerContent=function(){var t;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),t=this.svgElement.style;var e="translate("+-this.finalTransform.mProp.p.v[0]+"px,"+-this.finalTransform.mProp.p.v[1]+"px)";t.transform=e,t.webkitTransform=e}}if(this.textAnimator.getMeasures(this.textProperty.currentData,this.lettersChangedFlag),this.lettersChangedFlag||this.textAnimator.lettersChangedFlag){var r,i,s,a,n,o=0,h=this.textAnimator.renderedLetters,l=this.textProperty.currentData.l;for(i=l.length,r=0;r<i;r+=1)l[r].n?o+=1:(a=this.textSpans[r],n=this.textPaths[r],s=h[o],o+=1,s._mdf.m&&(this.isMasked?a.setAttribute("transform",s.m):(a.style.webkitTransform=s.m,a.style.transform=s.m)),a.style.opacity=s.o,s.sw&&s._mdf.sw&&n.setAttribute("stroke-width",s.sw),s.sc&&s._mdf.sc&&n.setAttribute("stroke",s.sc),s.fc&&s._mdf.fc&&(n.setAttribute("fill",s.fc),n.style.color=s.fc));if(this.innerElem.getBBox&&!this.hidden&&(this._isFirstFrame||this._mdf)){var p=this.innerElem.getBBox();if(this.currentBBox.w!==p.width&&(this.currentBBox.w=p.width,this.svgElement.setAttribute("width",p.width)),this.currentBBox.h!==p.height&&(this.currentBBox.h=p.height,this.svgElement.setAttribute("height",p.height)),this.currentBBox.w!==p.width+2||this.currentBBox.h!==p.height+2||this.currentBBox.x!==p.x-1||this.currentBBox.y!==p.y-1){this.currentBBox.w=p.width+2,this.currentBBox.h=p.height+2,this.currentBBox.x=p.x-1,this.currentBBox.y=p.y-1,this.svgElement.setAttribute("viewBox",this.currentBBox.x+" "+this.currentBBox.y+" "+this.currentBBox.w+" "+this.currentBBox.h),t=this.svgElement.style;var m="translate("+this.currentBBox.x+"px,"+this.currentBBox.y+"px)";t.transform=m,t.webkitTransform=m}}}},extendPrototype([BaseElement,FrameElement,HierarchyElement],HCameraElement),HCameraElement.prototype.setup=function(){var t,e,r,i,s=this.comp.threeDElements.length;for(t=0;t<s;t+=1)if("3d"===(e=this.comp.threeDElements[t]).type){r=e.perspectiveElem.style,i=e.container.style;var a=this.pe.v+"px",n="0px 0px 0px",o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";r.perspective=a,r.webkitPerspective=a,i.transformOrigin=n,i.mozTransformOrigin=n,i.webkitTransformOrigin=n,r.transform=o,r.webkitTransform=o}},HCameraElement.prototype.createElements=function(){},HCameraElement.prototype.hide=function(){},HCameraElement.prototype.renderFrame=function(){var t,e,r=this._isFirstFrame;if(this.hierarchy)for(e=this.hierarchy.length,t=0;t<e;t+=1)r=this.hierarchy[t].finalTransform.mProp._mdf||r;if(r||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(t=e=this.hierarchy.length-1;t>=0;t-=1){var i=this.hierarchy[t].finalTransform.mProp;this.mat.translate(-i.p.v[0],-i.p.v[1],i.p.v[2]),this.mat.rotateX(-i.or.v[0]).rotateY(-i.or.v[1]).rotateZ(i.or.v[2]),this.mat.rotateX(-i.rx.v).rotateY(-i.ry.v).rotateZ(i.rz.v),this.mat.scale(1/i.s.v[0],1/i.s.v[1],1/i.s.v[2]),this.mat.translate(i.a.v[0],i.a.v[1],i.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 s;s=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 a=Math.sqrt(Math.pow(s[0],2)+Math.pow(s[1],2)+Math.pow(s[2],2)),n=[s[0]/a,s[1]/a,s[2]/a],o=Math.sqrt(n[2]*n[2]+n[0]*n[0]),h=Math.atan2(n[1],o),l=Math.atan2(n[0],-n[2]);this.mat.rotateY(l).rotateX(-h)}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 p=!this._prevMat.equals(this.mat);if((p||this.pe._mdf)&&this.comp.threeDElements){var m,f,c;for(e=this.comp.threeDElements.length,t=0;t<e;t+=1)if("3d"===(m=this.comp.threeDElements[t]).type){if(p){var d=this.mat.toCSS();(c=m.container.style).transform=d,c.webkitTransform=d}this.pe._mdf&&((f=m.perspectiveElem.style).perspective=this.pe.v+"px",f.webkitPerspective=this.pe.v+"px")}this.mat.clone(this._prevMat)}}this._isFirstFrame=!1},HCameraElement.prototype.prepareFrame=function(t){this.prepareProperties(t,!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 t=this.globalData.getAssetsPath(this.assetData),e=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",t),this.layerElement.appendChild(this.imageElem),this.baseElement.setAttribute("width",this.assetData.w),this.baseElement.setAttribute("height",this.assetData.h)):this.layerElement.appendChild(e),e.crossOrigin="anonymous",e.src=t,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(t,e){var r=t.getBaseElement();if(r){var i=this.layers[e];if(i.ddd&&this.supports3d)this.addTo3dContainer(r,e);else if(this.threeDElements)this.addTo3dContainer(r,e);else{for(var s,a,n=0;n<e;)this.elements[n]&&!0!==this.elements[n]&&this.elements[n].getBaseElement&&(a=this.elements[n],s=(this.layers[n].ddd?this.getThreeDContainerByPos(n):a.getBaseElement())||s),n+=1;s?i.ddd&&this.supports3d||this.layerElement.insertBefore(r,s):i.ddd&&this.supports3d||this.layerElement.appendChild(r)}}},HybridRendererBase.prototype.createShape=function(t){return this.supports3d?new HShapeElement(t,this.globalData,this):new SVGShapeElement(t,this.globalData,this)},HybridRendererBase.prototype.createText=function(t){return this.supports3d?new HTextElement(t,this.globalData,this):new SVGTextLottieElement(t,this.globalData,this)},HybridRendererBase.prototype.createCamera=function(t){return this.camera=new HCameraElement(t,this.globalData,this),this.camera},HybridRendererBase.prototype.createImage=function(t){return this.supports3d?new HImageElement(t,this.globalData,this):new IImageElement(t,this.globalData,this)},HybridRendererBase.prototype.createSolid=function(t){return this.supports3d?new HSolidElement(t,this.globalData,this):new ISolidElement(t,this.globalData,this)},HybridRendererBase.prototype.createNull=SVGRenderer.prototype.createNull,HybridRendererBase.prototype.getThreeDContainerByPos=function(t){for(var e=0,r=this.threeDElements.length;e<r;){if(this.threeDElements[e].startPos<=t&&this.threeDElements[e].endPos>=t)return this.threeDElements[e].perspectiveElem;e+=1}return null},HybridRendererBase.prototype.createThreeDContainer=function(t,e){var r,i,s=createTag("div");styleDiv(s);var a=createTag("div");if(styleDiv(a),"3d"===e){(r=s.style).width=this.globalData.compSize.w+"px",r.height=this.globalData.compSize.h+"px";var n="50% 50%";r.webkitTransformOrigin=n,r.mozTransformOrigin=n,r.transformOrigin=n;var o="matrix3d(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)";(i=a.style).transform=o,i.webkitTransform=o}s.appendChild(a);var h={container:a,perspectiveElem:s,startPos:t,endPos:t,type:e};return this.threeDElements.push(h),h},HybridRendererBase.prototype.build3dContainers=function(){var t,e,r=this.layers.length,i="";for(t=0;t<r;t+=1)this.layers[t].ddd&&3!==this.layers[t].ty?("3d"!==i&&(i="3d",e=this.createThreeDContainer(t,"3d")),e.endPos=Math.max(e.endPos,t)):("2d"!==i&&(i="2d",e=this.createThreeDContainer(t,"2d")),e.endPos=Math.max(e.endPos,t));for(t=(r=this.threeDElements.length)-1;t>=0;t-=1)this.resizerElem.appendChild(this.threeDElements[t].perspectiveElem)},HybridRendererBase.prototype.addTo3dContainer=function(t,e){for(var r=0,i=this.threeDElements.length;r<i;){if(e<=this.threeDElements[r].endPos){for(var s,a=this.threeDElements[r].startPos;a<e;)this.elements[a]&&this.elements[a].getBaseElement&&(s=this.elements[a].getBaseElement()),a+=1;s?this.threeDElements[r].container.insertBefore(t,s):this.threeDElements[r].container.appendChild(t);break}r+=1}},HybridRendererBase.prototype.configAnimation=function(t){var e=createTag("div"),r=this.animationItem.wrapper,i=e.style;i.width=t.w+"px",i.height=t.h+"px",this.resizerElem=e,styleDiv(e),i.transformStyle="flat",i.mozTransformStyle="flat",i.webkitTransformStyle="flat",this.renderConfig.className&&e.setAttribute("class",this.renderConfig.className),r.appendChild(e),i.overflow="hidden";var s=createNS("svg");s.setAttribute("width","1"),s.setAttribute("height","1"),styleDiv(s),this.resizerElem.appendChild(s);var a=createNS("defs");s.appendChild(a),this.data=t,this.setupGlobalData(t,s),this.globalData.defs=a,this.layers=t.layers,this.layerElement=this.resizerElem,this.build3dContainers(),this.updateContainerSize()},HybridRendererBase.prototype.destroy=function(){var t;this.animationItem.wrapper&&(this.animationItem.wrapper.innerText=""),this.animationItem.container=null,this.globalData.defs=null;var e=this.layers?this.layers.length:0;for(t=0;t<e;t+=1)this.elements[t].destroy();this.elements.length=0,this.destroyed=!0,this.animationItem=null},HybridRendererBase.prototype.updateContainerSize=function(){var t,e,r,i,s=this.animationItem.wrapper.offsetWidth,a=this.animationItem.wrapper.offsetHeight,n=s/a;this.globalData.compSize.w/this.globalData.compSize.h>n?(t=s/this.globalData.compSize.w,e=s/this.globalData.compSize.w,r=0,i=(a-this.globalData.compSize.h*(s/this.globalData.compSize.w))/2):(t=a/this.globalData.compSize.h,e=a/this.globalData.compSize.h,r=(s-this.globalData.compSize.w*(a/this.globalData.compSize.h))/2,i=0);var o=this.resizerElem.style;o.webkitTransform="matrix3d("+t+",0,0,0,0,"+e+",0,0,0,0,1,0,"+r+","+i+",0,1)",o.transform=o.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 t,e=this.globalData.compSize.w,r=this.globalData.compSize.h,i=this.threeDElements.length;for(t=0;t<i;t+=1){var s=this.threeDElements[t].perspectiveElem.style;s.webkitPerspective=Math.sqrt(Math.pow(e,2)+Math.pow(r,2))+"px",s.perspective=s.webkitPerspective}}},HybridRendererBase.prototype.searchExtraCompositions=function(t){var e,r=t.length,i=createTag("div");for(e=0;e<r;e+=1)if(t[e].xt){var s=this.createComp(t[e],i,this.globalData.comp,null);s.initExpressions(),this.globalData.projectInterface.registerComposition(s)}},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(t,e){for(var r,i=0;i<e;)this.elements[i]&&this.elements[i].getBaseElement&&(r=this.elements[i].getBaseElement()),i+=1;r?this.layerElement.insertBefore(t,r):this.layerElement.appendChild(t)},HCompElement.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)},extendPrototype([HybridRendererBase],HybridRenderer),HybridRenderer.prototype.createComp=function(t){return this.supports3d?new HCompElement(t,this.globalData,this):new SVGCompElement(t,this.globalData,this)};var Expressions=function(){var t={initExpressions:function(t){var e=0,r=[];t.renderer.compInterface=CompExpressionInterface(t.renderer),t.renderer.globalData.projectInterface.registerComposition(t.renderer),t.renderer.globalData.pushExpression=function(){e+=1},t.renderer.globalData.popExpression=function(){0===(e-=1)&&function(){var t,e=r.length;for(t=0;t<e;t+=1)r[t].release();r.length=0}()},t.renderer.globalData.registerExpressionProperty=function(t){-1===r.indexOf(t)&&r.push(t)}}};return t}();function _typeof$1(t){return _typeof$1="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof$1(t)}function seedRandom(t,e){var r=this,i=256,s=e.pow(i,6),a=e.pow(2,52),n=2*a,o=255;function h(t){var e,r=t.length,s=this,a=0,n=s.i=s.j=0,h=s.S=[];for(r||(t=[r++]);a<i;)h[a]=a++;for(a=0;a<i;a++)h[a]=h[n=o&n+t[a%r]+(e=h[a])],h[n]=e;s.g=function(t){for(var e,r=0,a=s.i,n=s.j,h=s.S;t--;)e=h[a=o&a+1],r=r*i+h[o&(h[a]=h[n=o&n+e])+(h[n]=e)];return s.i=a,s.j=n,r}}function l(t,e){return e.i=t.i,e.j=t.j,e.S=t.S.slice(),e}function p(t,e){var r,i=[],s=_typeof$1(t);if(e&&"object"==s)for(r in t)try{i.push(p(t[r],e-1))}catch(a){}return i.length?i:"string"==s?t:t+"\0"}function m(t,e){for(var r,i=t+"",s=0;s<i.length;)e[o&s]=o&(r^=19*e[o&s])+i.charCodeAt(s++);return f(e)}function f(t){return String.fromCharCode.apply(0,t)}e.seedrandom=function(o,c,d){var u=[],y=m(p((c=!0===c?{entropy:!0}:c||{}).entropy?[o,f(t)]:null===o?function(){try{var e=new Uint8Array(i);return(r.crypto||r.msCrypto).getRandomValues(e),f(e)}catch(n){var s=r.navigator,a=s&&s.plugins;return[+new Date,r,a,r.screen,f(t)]}}():o,3),u),g=new h(u),v=function(){for(var t=g.g(6),e=s,r=0;t<a;)t=(t+r)*i,e*=i,r=g.g(1);for(;t>=n;)t/=2,e/=2,r>>>=1;return(t+r)/e};return v.int32=function(){return 0|g.g(4)},v.quick=function(){return g.g(4)/4294967296},v.double=v,m(f(g.S),t),(c.pass||d||function(t,r,i,s){return s&&(s.S&&l(s,g),t.state=function(){return l(g,{})}),i?(e.random=t,r):t})(v,y,"global"in c?c.global:this==e,c.state)},m(e.random(),t)}function initialize$2(t){seedRandom([],t)}var propTypes={SHAPE:"shape"};function _typeof(t){return _typeof="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof(t)}var ExpressionManager=function(){var ob={},Math=BMMath,window=null,document=null,XMLHttpRequest=null,fetch=null,frames=null;function $bm_isInstanceOfArray(t){return t.constructor===Array||t.constructor===Float32Array}function isNumerable(t,e){return"number"===t||"boolean"===t||"string"===t||e instanceof Number}function $bm_neg(t){var e=_typeof(t);if("number"===e||"boolean"===e||t instanceof Number)return-t;if($bm_isInstanceOfArray(t)){var r,i=t.length,s=[];for(r=0;r<i;r+=1)s[r]=-t[r];return s}return t.propType?t.v:-t}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(t,e){var r=_typeof(t),i=_typeof(e);if("string"===r||"string"===i)return t+e;if(isNumerable(r,t)&&isNumerable(i,e))return t+e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]+=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t+e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"===typeof t[s]||t[s]instanceof Number)&&("number"===typeof e[s]||e[s]instanceof Number)?o[s]=t[s]+e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}var add=sum;function sub(t,e){var r=_typeof(t),i=_typeof(e);if(isNumerable(r,t)&&isNumerable(i,e))return"string"===r&&(t=parseInt(t,10)),"string"===i&&(e=parseInt(e,10)),t-e;if($bm_isInstanceOfArray(t)&&isNumerable(i,e))return(t=t.slice(0))[0]-=e,t;if(isNumerable(r,t)&&$bm_isInstanceOfArray(e))return(e=e.slice(0))[0]=t-e[0],e;if($bm_isInstanceOfArray(t)&&$bm_isInstanceOfArray(e)){for(var s=0,a=t.length,n=e.length,o=[];s<a||s<n;)("number"===typeof t[s]||t[s]instanceof Number)&&("number"===typeof e[s]||e[s]instanceof Number)?o[s]=t[s]-e[s]:o[s]=void 0===e[s]?t[s]:t[s]||e[s],s+=1;return o}return 0}function mul(t,e){var r,i,s,a=_typeof(t),n=_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t*e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t[i]*e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t*e[i];return r}return 0}function div(t,e){var r,i,s,a=_typeof(t),n=_typeof(e);if(isNumerable(a,t)&&isNumerable(n,e))return t/e;if($bm_isInstanceOfArray(t)&&isNumerable(n,e)){for(s=t.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t[i]/e;return r}if(isNumerable(a,t)&&$bm_isInstanceOfArray(e)){for(s=e.length,r=createTypedArray("float32",s),i=0;i<s;i+=1)r[i]=t/e[i];return r}return 0}function mod(t,e){return"string"===typeof t&&(t=parseInt(t,10)),"string"===typeof e&&(e=parseInt(e,10)),t%e}var $bm_sum=sum,$bm_sub=sub,$bm_mul=mul,$bm_div=div,$bm_mod=mod;function clamp(t,e,r){if(e>r){var i=r;r=e,e=i}return Math.min(Math.max(t,e),r)}function radiansToDegrees(t){return t/degToRads}var radians_to_degrees=radiansToDegrees;function degreesToRadians(t){return t*degToRads}var degrees_to_radians=radiansToDegrees,helperLengthArray=[0,0,0,0,0,0];function length(t,e){if("number"===typeof t||t instanceof Number)return e=e||0,Math.abs(t-e);var r;e||(e=helperLengthArray);var i=Math.min(t.length,e.length),s=0;for(r=0;r<i;r+=1)s+=Math.pow(e[r]-t[r],2);return Math.sqrt(s)}function normalize(t){return div(t,length(t))}function rgbToHsl(t){var e,r,i=t[0],s=t[1],a=t[2],n=Math.max(i,s,a),o=Math.min(i,s,a),h=(n+o)/2;if(n===o)e=0,r=0;else{var l=n-o;switch(r=h>.5?l/(2-n-o):l/(n+o),n){case i:e=(s-a)/l+(s<a?6:0);break;case s:e=(a-i)/l+2;break;case a:e=(i-s)/l+4}e/=6}return[e,r,h,t[3]]}function hue2rgb(t,e,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?t+6*(e-t)*r:r<.5?e:r<2/3?t+(e-t)*(2/3-r)*6:t}function hslToRgb(t){var e,r,i,s=t[0],a=t[1],n=t[2];if(0===a)e=n,i=n,r=n;else{var o=n<.5?n*(1+a):n+a-n*a,h=2*n-o;e=hue2rgb(h,o,s+1/3),r=hue2rgb(h,o,s),i=hue2rgb(h,o,s-1/3)}return[e,r,i,t[3]]}function linear(t,e,r,i,s){if(void 0!==i&&void 0!==s||(i=e,s=r,e=0,r=1),r<e){var a=r;r=e,e=a}if(t<=e)return i;if(t>=r)return s;var n,o=r===e?0:(t-e)/(r-e);if(!i.length)return i+(s-i)*o;var h=i.length,l=createTypedArray("float32",h);for(n=0;n<h;n+=1)l[n]=i[n]+(s[n]-i[n])*o;return l}function random(t,e){if(void 0===e&&(void 0===t?(t=0,e=1):(e=t,t=void 0)),e.length){var r,i=e.length;t||(t=createTypedArray("float32",i));var s=createTypedArray("float32",i),a=BMMath.random();for(r=0;r<i;r+=1)s[r]=t[r]+a*(e[r]-t[r]);return s}return void 0===t&&(t=0),t+BMMath.random()*(e-t)}function createPath(t,e,r,i){var s,a=t.length,n=shapePool.newElement();n.setPathData(!!i,a);var o,h,l=[0,0];for(s=0;s<a;s+=1)o=e&&e[s]?e[s]:l,h=r&&r[s]?r[s]:l,n.setTripleAt(t[s][0],t[s][1],h[0]+t[s][0],h[1]+t[s][1],o[0]+t[s][0],o[1]+t[s][1],s,!0);return n}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(t,e){var r,i,s=this.pv.length?this.pv.length:1,a=createTypedArray("float32",s),n=Math.floor(5*time);for(r=0,i=0;r<n;){for(i=0;i<s;i+=1)a[i]+=-e+2*e*BMMath.random();r+=1}var o=5*time,h=o-Math.floor(o),l=createTypedArray("float32",s);if(s>1){for(i=0;i<s;i+=1)l[i]=this.pv[i]+a[i]+(-e+2*e*BMMath.random())*h;return l}return this.pv+a[0]+(-e+2*e*BMMath.random())*h}.bind(this);function loopInDuration(t,e){return loopIn(t,e,!0)}function loopOutDuration(t,e){return loopOut(t,e,!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(t,e){var r=[e[0]-t[0],e[1]-t[1],e[2]-t[2]],i=Math.atan2(r[0],Math.sqrt(r[1]*r[1]+r[2]*r[2]))/degToRads;return[-Math.atan2(r[1],r[2])/degToRads,i,0]}function easeOut(t,e,r,i,s){return applyEase(easeOutBez,t,e,r,i,s)}function easeIn(t,e,r,i,s){return applyEase(easeInBez,t,e,r,i,s)}function ease(t,e,r,i,s){return applyEase(easeInOutBez,t,e,r,i,s)}function applyEase(t,e,r,i,s,a){void 0===s?(s=r,a=i):e=(e-r)/(i-r),e>1?e=1:e<0&&(e=0);var n=t(e);if($bm_isInstanceOfArray(s)){var o,h=s.length,l=createTypedArray("float32",h);for(o=0;o<h;o+=1)l[o]=(a[o]-s[o])*n+s[o];return l}return(a-s)*n+s}function nearestKey(t){var e,r,i,s=data.k.length;if(data.k.length&&"number"!==typeof data.k[0])if(r=-1,(t*=elem.comp.globalData.frameRate)<data.k[0].t)r=1,i=data.k[0].t;else{for(e=0;e<s-1;e+=1){if(t===data.k[e].t){r=e+1,i=data.k[e].t;break}if(t>data.k[e].t&&t<data.k[e+1].t){t-data.k[e].t>data.k[e+1].t-t?(r=e+2,i=data.k[e+1].t):(r=e+1,i=data.k[e].t);break}}-1===r&&(r=e+1,i=data.k[e].t)}else r=0,i=0;var a={};return a.index=r,a.time=i/elem.comp.globalData.frameRate,a}function key(t){var e,r,i;if(!data.k.length||"number"===typeof data.k[0])throw new Error("The property has no keyframe at index "+t);t-=1,e={time:data.k[t].t/elem.comp.globalData.frameRate,value:[]};var s=Object.prototype.hasOwnProperty.call(data.k[t],"s")?data.k[t].s:data.k[t-1].e;for(i=s.length,r=0;r<i;r+=1)e[r]=s[r],e.value[r]=s[r];return e}function framesToTime(t,e){return e||(e=elem.comp.globalData.frameRate),t/e}function timeToFrames(t,e){return t||0===t||(t=time),e||(e=elem.comp.globalData.frameRate),t*e}function seedRandom(t){BMMath.seedrandom(randSeed+t)}function sourceRectAtTime(){return elem.sourceRectAtTime()}function substring(t,e){return"string"===typeof value?void 0===e?value.substring(t):value.substring(t,e):""}function substr(t,e){return"string"===typeof value?void 0===e?value.substr(t):value.substr(t,e):""}function posterizeTime(t){time=0===t?0:Math.floor(time*t)/t,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(t){return value=t,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(t,e,r){e.x&&(r.k=!0,r.x=!0,r.initiateExpression=ExpressionManager.initiateExpression,r.effectsSequence.push(r.initiateExpression(t,e,r).bind(r)))},getSpeedAtTime:function(t){var e=this.getValueAtTime(t),r=this.getValueAtTime(t+-.01),i=0;if(e.length){var s;for(s=0;s<e.length;s+=1)i+=Math.pow(r[s]-e[s],2);i=100*Math.sqrt(i)}else i=0;return i},getVelocityAtTime:function(t){if(void 0!==this.vel)return this.vel;var e,r,i=-.001,s=this.getValueAtTime(t),a=this.getValueAtTime(t+i);if(s.length)for(e=createTypedArray("float32",s.length),r=0;r<s.length;r+=1)e[r]=(a[r]-s[r])/i;else e=(a-s)/i;return e},getValueAtTime:function(t){return t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastFrame&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastFrame<t?this._cachingAtTime.lastIndex:0,this._cachingAtTime.value=this.interpolateValue(t,this._cachingAtTime),this._cachingAtTime.lastFrame=t),this._cachingAtTime.value},getStaticValueAtTime:function(){return this.pv},setGroupProperty:function(t){this.propertyGroup=t}};function addPropertyDecorator(){function t(t,e,r){if(!this.k||!this.keyframes)return this.pv;t=t?t.toLowerCase():"";var i,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[l.length-1].t;if(h<=p)return this.pv;if(r?s=p-(i=e?Math.abs(p-this.elem.comp.globalData.frameRate*e):Math.max(0,p-this.elem.data.ip)):((!e||e>l.length-1)&&(e=l.length-1),i=p-(s=l[l.length-1-e].t)),"pingpong"===t){if(Math.floor((h-s)/i)%2!==0)return this.getValueAtTime((i-(h-s)%i+s)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(s/this.comp.globalData.frameRate,0),f=this.getValueAtTime(p/this.comp.globalData.frameRate,0),c=this.getValueAtTime(((h-s)%i+s)/this.comp.globalData.frameRate,0),d=Math.floor((h-s)/i);if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=(f[a]-m[a])*d+c[a];return o}return(f-m)*d+c}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p-.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*((h-p)/this.comp.globalData.frameRate)/5e-4;return o}return u+(h-p)/.001*(u-y)}}return this.getValueAtTime(((h-s)%i+s)/this.comp.globalData.frameRate,0)}function e(t,e,r){if(!this.k)return this.pv;t=t?t.toLowerCase():"";var i,s,a,n,o,h=this.comp.renderedFrame,l=this.keyframes,p=l[0].t;if(h>=p)return this.pv;if(r?s=p+(i=e?Math.abs(this.elem.comp.globalData.frameRate*e):Math.max(0,this.elem.data.op-p)):((!e||e>l.length-1)&&(e=l.length-1),i=(s=l[e].t)-p),"pingpong"===t){if(Math.floor((p-h)/i)%2===0)return this.getValueAtTime(((p-h)%i+p)/this.comp.globalData.frameRate,0)}else{if("offset"===t){var m=this.getValueAtTime(p/this.comp.globalData.frameRate,0),f=this.getValueAtTime(s/this.comp.globalData.frameRate,0),c=this.getValueAtTime((i-(p-h)%i+p)/this.comp.globalData.frameRate,0),d=Math.floor((p-h)/i)+1;if(this.pv.length){for(n=(o=new Array(m.length)).length,a=0;a<n;a+=1)o[a]=c[a]-(f[a]-m[a])*d;return o}return c-(f-m)*d}if("continue"===t){var u=this.getValueAtTime(p/this.comp.globalData.frameRate,0),y=this.getValueAtTime((p+.001)/this.comp.globalData.frameRate,0);if(this.pv.length){for(n=(o=new Array(u.length)).length,a=0;a<n;a+=1)o[a]=u[a]+(u[a]-y[a])*(p-h)/.001;return o}return u+(u-y)*(p-h)/.001}}return this.getValueAtTime((i-((p-h)%i+p))/this.comp.globalData.frameRate,0)}function r(t,e){if(!this.k)return this.pv;if(t=.5*(t||.4),(e=Math.floor(e||5))<=1)return this.pv;var r,i,s=this.comp.renderedFrame/this.comp.globalData.frameRate,a=s-t,n=e>1?(s+t-a)/(e-1):1,o=0,h=0;for(r=this.pv.length?createTypedArray("float32",this.pv.length):0;o<e;){if(i=this.getValueAtTime(a+o*n),this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]+=i[h];else r+=i;o+=1}if(this.pv.length)for(h=0;h<this.pv.length;h+=1)r[h]/=e;else r/=e;return r}function i(t){this._transformCachingAtTime||(this._transformCachingAtTime={v:new Matrix});var e=this._transformCachingAtTime.v;if(e.cloneFromProps(this.pre.props),this.appliedTransformations<1){var r=this.a.getValueAtTime(t);e.translate(-r[0]*this.a.mult,-r[1]*this.a.mult,r[2]*this.a.mult)}if(this.appliedTransformations<2){var i=this.s.getValueAtTime(t);e.scale(i[0]*this.s.mult,i[1]*this.s.mult,i[2]*this.s.mult)}if(this.sk&&this.appliedTransformations<3){var s=this.sk.getValueAtTime(t),a=this.sa.getValueAtTime(t);e.skewFromAxis(-s*this.sk.mult,a*this.sa.mult)}if(this.r&&this.appliedTransformations<4){var n=this.r.getValueAtTime(t);e.rotate(-n*this.r.mult)}else if(!this.r&&this.appliedTransformations<4){var o=this.rz.getValueAtTime(t),h=this.ry.getValueAtTime(t),l=this.rx.getValueAtTime(t),p=this.or.getValueAtTime(t);e.rotateZ(-o*this.rz.mult).rotateY(h*this.ry.mult).rotateX(l*this.rx.mult).rotateZ(-p[2]*this.or.mult).rotateY(p[1]*this.or.mult).rotateX(p[0]*this.or.mult)}if(this.data.p&&this.data.p.s){var m=this.px.getValueAtTime(t),f=this.py.getValueAtTime(t);if(this.data.p.z){var c=this.pz.getValueAtTime(t);e.translate(m*this.px.mult,f*this.py.mult,-c*this.pz.mult)}else e.translate(m*this.px.mult,f*this.py.mult,0)}else{var d=this.p.getValueAtTime(t);e.translate(d[0]*this.p.mult,d[1]*this.p.mult,-d[2]*this.p.mult)}return e}function s(){return this.v.clone(new Matrix)}var a=TransformPropertyFactory.getTransformProperty;TransformPropertyFactory.getTransformProperty=function(t,e,r){var n=a(t,e,r);return n.dynamicProperties.length?n.getValueAtTime=i.bind(n):n.getValueAtTime=s.bind(n),n.setGroupProperty=expressionHelpers.setGroupProperty,n};var n=PropertyFactory.getProp;PropertyFactory.getProp=function(i,s,a,o,h){var l=n(i,s,a,o,h);l.kf?l.getValueAtTime=expressionHelpers.getValueAtTime.bind(l):l.getValueAtTime=expressionHelpers.getStaticValueAtTime.bind(l),l.setGroupProperty=expressionHelpers.setGroupProperty,l.loopOut=t,l.loopIn=e,l.smooth=r,l.getVelocityAtTime=expressionHelpers.getVelocityAtTime.bind(l),l.getSpeedAtTime=expressionHelpers.getSpeedAtTime.bind(l),l.numKeys=1===s.a?s.k.length:0,l.propertyIndex=s.ix;var p=0;return 0!==a&&(p=createTypedArray("float32",1===s.a?s.k[0].s.length:s.k.length)),l._cachingAtTime={lastFrame:initialDefaultFrame,lastIndex:0,value:p},expressionHelpers.searchExpressions(i,s,l),l.k&&h.addDynamicProperty(l),l};var o=ShapePropertyFactory.getConstructorFunction(),h=ShapePropertyFactory.getKeyframedConstructorFunction();function l(){}l.prototype={vertices:function(t,e){this.k&&this.getValue();var r,i=this.v;void 0!==e&&(i=this.getValueAtTime(e,0));var s=i._length,a=i[t],n=i.v,o=createSizedArray(s);for(r=0;r<s;r+=1)o[r]="i"===t||"o"===t?[a[r][0]-n[r][0],a[r][1]-n[r][1]]:[a[r][0],a[r][1]];return o},points:function(t){return this.vertices("v",t)},inTangents:function(t){return this.vertices("i",t)},outTangents:function(t){return this.vertices("o",t)},isClosed:function(){return this.v.c},pointOnPath:function(t,e){var r=this.v;void 0!==e&&(r=this.getValueAtTime(e,0)),this._segmentsLength||(this._segmentsLength=bez.getSegmentsLength(r));for(var i,s=this._segmentsLength,a=s.lengths,n=s.totalLength*t,o=0,h=a.length,l=0;o<h;){if(l+a[o].addedLength>n){var p=o,m=r.c&&o===h-1?0:o+1,f=(n-l)/a[o].addedLength;i=bez.getPointInSegment(r.v[p],r.v[m],r.o[p],r.i[m],f,a[o]);break}l+=a[o].addedLength,o+=1}return i||(i=r.c?[r.v[0][0],r.v[0][1]]:[r.v[r._length-1][0],r.v[r._length-1][1]]),i},vectorOnPath:function(t,e,r){1==t?t=this.v.c:0==t&&(t=.999);var i=this.pointOnPath(t,e),s=this.pointOnPath(t+.001,e),a=s[0]-i[0],n=s[1]-i[1],o=Math.sqrt(Math.pow(a,2)+Math.pow(n,2));return 0===o?[0,0]:"tangent"===r?[a/o,n/o]:[-n/o,a/o]},tangentOnPath:function(t,e){return this.vectorOnPath(t,e,"tangent")},normalOnPath:function(t,e){return this.vectorOnPath(t,e,"normal")},setGroupProperty:expressionHelpers.setGroupProperty,getValueAtTime:expressionHelpers.getStaticValueAtTime},extendPrototype([l],o),extendPrototype([l],h),h.prototype.getValueAtTime=function(t){return this._cachingAtTime||(this._cachingAtTime={shapeValue:shapePool.clone(this.pv),lastIndex:0,lastTime:initialDefaultFrame}),t*=this.elem.globalData.frameRate,(t-=this.offsetTime)!==this._cachingAtTime.lastTime&&(this._cachingAtTime.lastIndex=this._cachingAtTime.lastTime<t?this._caching.lastIndex:0,this._cachingAtTime.lastTime=t,this.interpolateShape(t,this._cachingAtTime.shapeValue,this._cachingAtTime)),this._cachingAtTime.shapeValue},h.prototype.initiateExpression=ExpressionManager.initiateExpression;var p=ShapePropertyFactory.getShapeProp;ShapePropertyFactory.getShapeProp=function(t,e,r,i,s){var a=p(t,e,r,i,s);return a.propertyIndex=e.ix,a.lock=!1,3===r?expressionHelpers.searchExpressions(t,e.pt,a):4===r&&expressionHelpers.searchExpressions(t,e.ks,a),a.k&&t.addDynamicProperty(a),a}}function initialize$1(){addPropertyDecorator()}function addDecorator(){TextProperty.prototype.getExpressionValue=function(t,e){var r=this.calculateExpression(e);if(t.t!==r){var i={};return this.copyData(i,t),i.t=r.toString(),i.__complete=!1,i}return t},TextProperty.prototype.searchProperty=function(){var t=this.searchKeyframes(),e=this.searchExpressions();return this.kf=t||e,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(t,e,r,i,s){this.filterManager=e;var a=createNS("feColorMatrix");a.setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","linearRGB"),a.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"),a.setAttribute("result",i+"_tint_1"),t.appendChild(a),(a=createNS("feColorMatrix")).setAttribute("type","matrix"),a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),a.setAttribute("result",i+"_tint_2"),t.appendChild(a),this.matrixFilter=a;var n=this.createMergeNode(i,[s,i+"_tint_1",i+"_tint_2"]);t.appendChild(n)}function SVGFillFilter(t,e,r,i){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","sRGB"),s.setAttribute("values","1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0"),s.setAttribute("result",i),t.appendChild(s),this.matrixFilter=s}function SVGStrokeEffect(t,e,r){this.initialized=!1,this.filterManager=e,this.elem=r,this.paths=[]}function SVGTritoneFilter(t,e,r,i){this.filterManager=e;var s=createNS("feColorMatrix");s.setAttribute("type","matrix"),s.setAttribute("color-interpolation-filters","linearRGB"),s.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"),t.appendChild(s);var a=createNS("feComponentTransfer");a.setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),this.matrixFilter=a;var n=createNS("feFuncR");n.setAttribute("type","table"),a.appendChild(n),this.feFuncR=n;var o=createNS("feFuncG");o.setAttribute("type","table"),a.appendChild(o),this.feFuncG=o;var h=createNS("feFuncB");h.setAttribute("type","table"),a.appendChild(h),this.feFuncB=h,t.appendChild(a)}function SVGProLevelsFilter(t,e,r,i){this.filterManager=e;var s=this.filterManager.effectElements,a=createNS("feComponentTransfer");(s[10].p.k||0!==s[10].p.v||s[11].p.k||1!==s[11].p.v||s[12].p.k||1!==s[12].p.v||s[13].p.k||0!==s[13].p.v||s[14].p.k||1!==s[14].p.v)&&(this.feFuncR=this.createFeFunc("feFuncR",a)),(s[17].p.k||0!==s[17].p.v||s[18].p.k||1!==s[18].p.v||s[19].p.k||1!==s[19].p.v||s[20].p.k||0!==s[20].p.v||s[21].p.k||1!==s[21].p.v)&&(this.feFuncG=this.createFeFunc("feFuncG",a)),(s[24].p.k||0!==s[24].p.v||s[25].p.k||1!==s[25].p.v||s[26].p.k||1!==s[26].p.v||s[27].p.k||0!==s[27].p.v||s[28].p.k||1!==s[28].p.v)&&(this.feFuncB=this.createFeFunc("feFuncB",a)),(s[31].p.k||0!==s[31].p.v||s[32].p.k||1!==s[32].p.v||s[33].p.k||1!==s[33].p.v||s[34].p.k||0!==s[34].p.v||s[35].p.k||1!==s[35].p.v)&&(this.feFuncA=this.createFeFunc("feFuncA",a)),(this.feFuncR||this.feFuncG||this.feFuncB||this.feFuncA)&&(a.setAttribute("color-interpolation-filters","sRGB"),t.appendChild(a)),(s[3].p.k||0!==s[3].p.v||s[4].p.k||1!==s[4].p.v||s[5].p.k||1!==s[5].p.v||s[6].p.k||0!==s[6].p.v||s[7].p.k||1!==s[7].p.v)&&((a=createNS("feComponentTransfer")).setAttribute("color-interpolation-filters","sRGB"),a.setAttribute("result",i),t.appendChild(a),this.feFuncRComposed=this.createFeFunc("feFuncR",a),this.feFuncGComposed=this.createFeFunc("feFuncG",a),this.feFuncBComposed=this.createFeFunc("feFuncB",a))}function SVGDropShadowEffect(t,e,r,i,s){var a=e.container.globalData.renderConfig.filterSize,n=e.data.fs||a;t.setAttribute("x",n.x||a.x),t.setAttribute("y",n.y||a.y),t.setAttribute("width",n.width||a.width),t.setAttribute("height",n.height||a.height),this.filterManager=e;var o=createNS("feGaussianBlur");o.setAttribute("in","SourceAlpha"),o.setAttribute("result",i+"_drop_shadow_1"),o.setAttribute("stdDeviation","0"),this.feGaussianBlur=o,t.appendChild(o);var h=createNS("feOffset");h.setAttribute("dx","25"),h.setAttribute("dy","0"),h.setAttribute("in",i+"_drop_shadow_1"),h.setAttribute("result",i+"_drop_shadow_2"),this.feOffset=h,t.appendChild(h);var l=createNS("feFlood");l.setAttribute("flood-color","#00ff00"),l.setAttribute("flood-opacity","1"),l.setAttribute("result",i+"_drop_shadow_3"),this.feFlood=l,t.appendChild(l);var p=createNS("feComposite");p.setAttribute("in",i+"_drop_shadow_3"),p.setAttribute("in2",i+"_drop_shadow_2"),p.setAttribute("operator","in"),p.setAttribute("result",i+"_drop_shadow_4"),t.appendChild(p);var m=this.createMergeNode(i,[i+"_drop_shadow_4",s]);t.appendChild(m)}SVGComposableEffect.prototype={createMergeNode:function(t,e){var r,i,s=createNS("feMerge");for(s.setAttribute("result",t),i=0;i<e.length;i+=1)(r=createNS("feMergeNode")).setAttribute("in",e[i]),s.appendChild(r),s.appendChild(r);return s}},extendPrototype([SVGComposableEffect],SVGTintFilter),SVGTintFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v/100;this.matrixFilter.setAttribute("values",r[0]-e[0]+" 0 0 0 "+e[0]+" "+(r[1]-e[1])+" 0 0 0 "+e[1]+" "+(r[2]-e[2])+" 0 0 0 "+e[2]+" 0 0 0 "+i+" 0")}},SVGFillFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[2].p.v,r=this.filterManager.effectElements[6].p.v;this.matrixFilter.setAttribute("values","0 0 0 0 "+e[0]+" 0 0 0 0 "+e[1]+" 0 0 0 0 "+e[2]+" 0 0 0 "+r+" 0")}},SVGStrokeEffect.prototype.initialize=function(){var t,e,r,i,s=this.elem.layerElement.children||this.elem.layerElement.childNodes;for(1===this.filterManager.effectElements[1].p.v?(i=this.elem.maskManager.masksProperties.length,r=0):i=1+(r=this.filterManager.effectElements[0].p.v-1),(e=createNS("g")).setAttribute("fill","none"),e.setAttribute("stroke-linecap","round"),e.setAttribute("stroke-dashoffset",1);r<i;r+=1)t=createNS("path"),e.appendChild(t),this.paths.push({p:t,m:r});if(3===this.filterManager.effectElements[10].p.v){var a=createNS("mask"),n=createElementID();a.setAttribute("id",n),a.setAttribute("mask-type","alpha"),a.appendChild(e),this.elem.globalData.defs.appendChild(a);var o=createNS("g");for(o.setAttribute("mask","url("+getLocationHref()+"#"+n+")");s[0];)o.appendChild(s[0]);this.elem.layerElement.appendChild(o),this.masker=a,e.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(s=this.elem.layerElement.children||this.elem.layerElement.childNodes;s.length;)this.elem.layerElement.removeChild(s[0]);this.elem.layerElement.appendChild(e),this.elem.layerElement.removeAttribute("mask"),e.setAttribute("stroke","#fff")}this.initialized=!0,this.pathMasker=e},SVGStrokeEffect.prototype.renderFrame=function(t){var e;this.initialized||this.initialize();var r,i,s=this.paths.length;for(e=0;e<s;e+=1)if(-1!==this.paths[e].m&&(r=this.elem.maskManager.viewData[this.paths[e].m],i=this.paths[e].p,(t||this.filterManager._mdf||r.prop._mdf)&&i.setAttribute("d",r.lastPath),t||this.filterManager.effectElements[9].p._mdf||this.filterManager.effectElements[4].p._mdf||this.filterManager.effectElements[7].p._mdf||this.filterManager.effectElements[8].p._mdf||r.prop._mdf)){var a;if(0!==this.filterManager.effectElements[7].p.v||100!==this.filterManager.effectElements[8].p.v){var n=.01*Math.min(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),o=.01*Math.max(this.filterManager.effectElements[7].p.v,this.filterManager.effectElements[8].p.v),h=i.getTotalLength();a="0 0 0 "+h*n+" ";var l,p=h*(o-n),m=1+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01,f=Math.floor(p/m);for(l=0;l<f;l+=1)a+="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01+" ";a+="0 "+10*h+" 0 0"}else a="1 "+2*this.filterManager.effectElements[4].p.v*this.filterManager.effectElements[9].p.v*.01;i.setAttribute("stroke-dasharray",a)}if((t||this.filterManager.effectElements[4].p._mdf)&&this.pathMasker.setAttribute("stroke-width",2*this.filterManager.effectElements[4].p.v),(t||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)&&(t||this.filterManager.effectElements[3].p._mdf)){var c=this.filterManager.effectElements[3].p.v;this.pathMasker.setAttribute("stroke","rgb("+bmFloor(255*c[0])+","+bmFloor(255*c[1])+","+bmFloor(255*c[2])+")")}},SVGTritoneFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=this.filterManager.effectElements[2].p.v,s=i[0]+" "+r[0]+" "+e[0],a=i[1]+" "+r[1]+" "+e[1],n=i[2]+" "+r[2]+" "+e[2];this.feFuncR.setAttribute("tableValues",s),this.feFuncG.setAttribute("tableValues",a),this.feFuncB.setAttribute("tableValues",n)}},SVGProLevelsFilter.prototype.createFeFunc=function(t,e){var r=createNS(t);return r.setAttribute("type","table"),e.appendChild(r),r},SVGProLevelsFilter.prototype.getTableValue=function(t,e,r,i,s){for(var a,n,o=0,h=Math.min(t,e),l=Math.max(t,e),p=Array.call(null,{length:256}),m=0,f=s-i,c=e-t;o<=256;)n=(a=o/256)<=h?c<0?s:i:a>=l?c<0?i:s:i+f*Math.pow((a-t)/c,1/r),p[m]=n,m+=1,o+=256/255;return p.join(" ")},SVGProLevelsFilter.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e,r=this.filterManager.effectElements;this.feFuncRComposed&&(t||r[3].p._mdf||r[4].p._mdf||r[5].p._mdf||r[6].p._mdf||r[7].p._mdf)&&(e=this.getTableValue(r[3].p.v,r[4].p.v,r[5].p.v,r[6].p.v,r[7].p.v),this.feFuncRComposed.setAttribute("tableValues",e),this.feFuncGComposed.setAttribute("tableValues",e),this.feFuncBComposed.setAttribute("tableValues",e)),this.feFuncR&&(t||r[10].p._mdf||r[11].p._mdf||r[12].p._mdf||r[13].p._mdf||r[14].p._mdf)&&(e=this.getTableValue(r[10].p.v,r[11].p.v,r[12].p.v,r[13].p.v,r[14].p.v),this.feFuncR.setAttribute("tableValues",e)),this.feFuncG&&(t||r[17].p._mdf||r[18].p._mdf||r[19].p._mdf||r[20].p._mdf||r[21].p._mdf)&&(e=this.getTableValue(r[17].p.v,r[18].p.v,r[19].p.v,r[20].p.v,r[21].p.v),this.feFuncG.setAttribute("tableValues",e)),this.feFuncB&&(t||r[24].p._mdf||r[25].p._mdf||r[26].p._mdf||r[27].p._mdf||r[28].p._mdf)&&(e=this.getTableValue(r[24].p.v,r[25].p.v,r[26].p.v,r[27].p.v,r[28].p.v),this.feFuncB.setAttribute("tableValues",e)),this.feFuncA&&(t||r[31].p._mdf||r[32].p._mdf||r[33].p._mdf||r[34].p._mdf||r[35].p._mdf)&&(e=this.getTableValue(r[31].p.v,r[32].p.v,r[33].p.v,r[34].p.v,r[35].p.v),this.feFuncA.setAttribute("tableValues",e))}},extendPrototype([SVGComposableEffect],SVGDropShadowEffect),SVGDropShadowEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){if((t||this.filterManager.effectElements[4].p._mdf)&&this.feGaussianBlur.setAttribute("stdDeviation",this.filterManager.effectElements[4].p.v/4),t||this.filterManager.effectElements[0].p._mdf){var e=this.filterManager.effectElements[0].p.v;this.feFlood.setAttribute("flood-color",rgbToHex(Math.round(255*e[0]),Math.round(255*e[1]),Math.round(255*e[2])))}if((t||this.filterManager.effectElements[1].p._mdf)&&this.feFlood.setAttribute("flood-opacity",this.filterManager.effectElements[1].p.v/255),t||this.filterManager.effectElements[2].p._mdf||this.filterManager.effectElements[3].p._mdf){var r=this.filterManager.effectElements[3].p.v,i=(this.filterManager.effectElements[2].p.v-90)*degToRads,s=r*Math.cos(i),a=r*Math.sin(i);this.feOffset.setAttribute("dx",s),this.feOffset.setAttribute("dy",a)}}};var _svgMatteSymbols=[];function SVGMatte3Effect(t,e,r){this.initialized=!1,this.filterManager=e,this.filterElem=t,this.elem=r,r.matteElement=createNS("g"),r.matteElement.appendChild(r.layerElement),r.matteElement.appendChild(r.transformedElement),r.baseElement=r.matteElement}function SVGGaussianBlurEffect(t,e,r,i){t.setAttribute("x","-100%"),t.setAttribute("y","-100%"),t.setAttribute("width","300%"),t.setAttribute("height","300%"),this.filterManager=e;var s=createNS("feGaussianBlur");s.setAttribute("result",i),t.appendChild(s),this.feGaussianBlur=s}return SVGMatte3Effect.prototype.findSymbol=function(t){for(var e=0,r=_svgMatteSymbols.length;e<r;){if(_svgMatteSymbols[e]===t)return _svgMatteSymbols[e];e+=1}return null},SVGMatte3Effect.prototype.replaceInParent=function(t,e){var r=t.layerElement.parentNode;if(r){for(var i,s=r.children,a=0,n=s.length;a<n&&s[a]!==t.layerElement;)a+=1;a<=n-2&&(i=s[a+1]);var o=createNS("use");o.setAttribute("href","#"+e),i?r.insertBefore(o,i):r.appendChild(o)}},SVGMatte3Effect.prototype.setElementAsMask=function(t,e){if(!this.findSymbol(e)){var r=createElementID(),i=createNS("mask");i.setAttribute("id",e.layerId),i.setAttribute("mask-type","alpha"),_svgMatteSymbols.push(e);var s=t.globalData.defs;s.appendChild(i);var a=createNS("symbol");a.setAttribute("id",r),this.replaceInParent(e,r),a.appendChild(e.layerElement),s.appendChild(a);var n=createNS("use");n.setAttribute("href","#"+r),i.appendChild(n),e.data.hd=!1,e.show()}t.setMatte(e.layerId)},SVGMatte3Effect.prototype.initialize=function(){for(var t=this.filterManager.effectElements[0].p.v,e=this.elem.comp.elements,r=0,i=e.length;r<i;)e[r]&&e[r].data.ind===t&&this.setElementAsMask(this.elem,e[r]),r+=1;this.initialized=!0},SVGMatte3Effect.prototype.renderFrame=function(){this.initialized||this.initialize()},SVGGaussianBlurEffect.prototype.renderFrame=function(t){if(t||this.filterManager._mdf){var e=.3*this.filterManager.effectElements[0].p.v,r=this.filterManager.effectElements[1].p.v,i=3==r?0:e,s=2==r?0:e;this.feGaussianBlur.setAttribute("stdDeviation",i+" "+s);var a=1==this.filterManager.effectElements[2].p.v?"wrap":"duplicate";this.feGaussianBlur.setAttribute("edgeMode",a)}},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())}}]);
//# sourceMappingURL=8759.9d6beb05.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[9015],{59015:function(r,e,n){n.r(e),n.d(e,{memoizeSelector:function(){return u}});var t=n(84867),a=Object.keys,i=function(r,e){if(!r||!e||r===e)return r===e;var n=a(r);return n.length===a(e).length&&n.every((function(n){return e.hasOwnProperty(n)&&r[n]===e[n]}))},u=function(r,e){var n=function(r){var e=[];return function(n){var a=void 0;if(e.forEach((function(r){var e=(0,t.__read)(r,2),u=e[0],f=e[1];return i(u,n)&&(a=f)})),a)return a;var u=r(n);return e.unshift([n,u]),e=e.slice(0,25),u}}(e),a=void 0;return function(){for(var e=[],u=0;u<arguments.length;u++)e[u]=arguments[u];var f=n(r.apply(void 0,(0,t.__spreadArray)([],(0,t.__read)(e),!1)));if(void 0!==a&&a!==f)if(Array.isArray(f)&&Array.isArray(a)){var o=a;if(f.length===o.length&&f.every((function(r,e){return r===o[e]})))return a}else if("object"===typeof f&&"object"===typeof a&&i(a,f))return a;return a=f,f}}}}]);
//# sourceMappingURL=9015.33d08098.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[925,5687],{46611:function(n,t,e){e.d(t,{G:function(){return u},Q:function(){return a}});var r=e(80322),o=e.n(r),i=o().createContext({}),u=function(n){var t=n.children,e=n.externalEntities;return o().createElement(i.Provider,{value:null!==e&&void 0!==e?e:{}},t)},a=function(){return(0,r.useContext)(i)}},32445:function(n,t,e){e.d(t,{YJ:function(){return d},pV:function(){return f},sB:function(){return l}});var r=e(84867),o=e(80322),i=e.n(o),u=e(46611),a=i().createContext(null),c=i().createContext(null),s=function(n,t){var e;return(0,r.__assign)((0,r.__assign)({},n),((e={})[t.name]={status:t.status,error:t.error,customData:t.customData},e))},l=function(n){var t=n.children,e=(0,o.useReducer)(s,{}),r=e[0],u=e[1];return i().createElement(c.Provider,{value:u},i().createElement(a.Provider,{value:r},t))},f=function(){var n=a,t=(0,o.useContext)(n);if(!t)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return t},d=function(){var n=(0,u.Q)().operationEntities,t=c;n&&(t=n.operationDispatchContext);var e=(0,o.useContext)(t);if(!e)throw new Error("TwoUIOperation: Context is uninitialized. Confirm that your component is contained within an TwoUIOperationsProvider component.");return e}},35913:function(n,t,e){e.d(t,{EN:function(){return v},Lq:function(){return d},PF:function(){return s},VZ:function(){return p},Xo:function(){return C},ZJ:function(){return f},b4:function(){return w}});var r=e(84867),o=e(45),i=e(80322),u=e.n(i),a=e(46611),c=e(32445),s={areaBiId:"areaUndefined"},l=(0,i.createContext)({reportComponentValidationErrorEvent:function(n,t,e){},logComponentMountEvent:function(n,t,e){},twoUITelemetryIds:s,twoUIFlights:[],getCv:function(){return""},reportClick:function(n){},checkUrlAndReportHttp:function(n){}}),f=function(){return(0,i.useContext)(l)},d=function(){return(0,i.useContext)(l).twoUIFlights},p=function(){return(0,i.useContext)(l).twoUITelemetryIds},v=function(n,t,e){var r=(0,i.useContext)(l);(0,o.JO)((function(){r.logComponentMountEvent(n,t,e)}))},m=function(n){var t=n.replace(/[^a-z0-9\-]/gi,"").substring(0,50);return 0===t.length?s.areaBiId:t},w=function(n,t,e){},C=function(n){var t=n.twoUITelemetryIds,e=n.twoUIFlights,i=n.logComponentMountEvent,s=n.reportHttpUrl,f=n.reportComponentValidationErrorEvent,d=n.reportClick,p=n.getCv,v=n.children,C=n.externalEntities,E=function(n){return(0,r.__assign)((0,r.__assign)({},n),{areaBiId:m(n.areaBiId)})}(t);w=f||w;return u().createElement(l.Provider,{value:{twoUITelemetryIds:E,twoUIFlights:e,logComponentMountEvent:function(n,t,e){null===i||void 0===i||i(n,t,e)},reportClick:function(n){null===d||void 0===d||d(n)},reportComponentValidationErrorEvent:function(n,t,e){null===w||void 0===w||w(n,t,e)},getCv:function(){return(null===p||void 0===p?void 0:p())||""},checkUrlAndReportHttp:function(n){n&&s&&(0,o.q$)(n)&&s(n)}}},u().createElement(a.G,{externalEntities:C},u().createElement(c.sB,null,v)))}},70925:function(n,t,e){e.r(t),e.d(t,{DefaultTwoUITelemetryIds:function(){return r.PF},TwoUIOperationsProvider:function(){return o.sB},TwoUIProgressView:function(){return m},TwoUITelemetryProvider:function(){return r.Xo},reportComponentValidationErrorEvent:function(){return r.b4},useComponentMountLogger:function(){return r.EN},useTwoUIComponentQos:function(){return l},useTwoUIFlights:function(){return r.Lq},useTwoUIOperationDispatcher:function(){return o.YJ},useTwoUITelemetry:function(){return r.ZJ},useTwoUITelemetryIds:function(){return r.VZ}});var r=e(35913),o=e(32445),i=e(80322),u=e.n(i),a=e(46611),c={startOperation:function(n,t,e){},reportSuccess:function(n,t,e){},reportFailure:function(n,t,e,r){},reportCancel:function(n,t){}},s=(0,i.createContext)(c),l=function(){var n=(0,a.Q)().componentQosContext,t=s;n&&(t=n);var e=(0,i.useContext)(t);if(!e)throw new Error("TwoUIComponentQoS: Context is uninitialized");return e},f=e(84867),d=e(45),p=function(n){var t,e=(0,o.pV)();if(n.updatingView){var r=null===(t=e[n.operationData.operationName])||void 0===t?void 0:t.status;return u().createElement(d.ip,{isUpdating:"updating"===r},u().createElement(v,(0,f.__assign)({},n)))}return u().createElement(v,(0,f.__assign)({},n))},v=function(n){var t=n.operationData,e=n.finishedView,r=n.failedView,i=void 0===r?null:r,u=n.firstLoadView,a=void 0===u?null:u,c=n.inertView,s=void 0===c?null:c,l=n.updateFailedView,f=void 0===l?i:l,d=n.updatingView,p=void 0===d?e:d,v=(0,o.pV)()[t.operationName],m=null===v||void 0===v?void 0:v.status;if(!m)return"finished"===t.defaultState?e:s;switch(m){case"updating":return p;case"first-load":return a;case"finished":return e;case"update-failed":return f;case"failed":return i;default:return s}},m=function(n){var t,e,r=null!==(e=null===(t=(0,a.Q)().operationEntities)||void 0===t?void 0:t.ExternalProgressView)&&void 0!==e?e:p;return u().createElement(r,(0,f.__assign)({},n))}}}]);
//# sourceMappingURL=925.8d6144eb.chunk.js.map
/*! For license information please see 9541.66cdeffe.chunk.js.LICENSE.txt */
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[9541],{47802:function(t){var r,e,n=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function a(t){if(r===setTimeout)return setTimeout(t,0);if((r===o||!r)&&setTimeout)return r=setTimeout,setTimeout(t,0);try{return r(t,0)}catch(e){try{return r.call(null,t,0)}catch(e){return r.call(this,t,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:o}catch(t){r=o}try{e="function"===typeof clearTimeout?clearTimeout:i}catch(t){e=i}}();var c,u=[],s=!1,f=-1;function l(){s&&c&&(s=!1,c.length?u=c.concat(u):f=-1,u.length&&h())}function h(){if(!s){var t=a(l);s=!0;for(var r=u.length;r;){for(c=u,u=[];++f<r;)c&&c[f].run();f=-1,r=u.length}c=null,s=!1,function(t){if(e===clearTimeout)return clearTimeout(t);if((e===i||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{e(t)}catch(r){try{return e.call(null,t)}catch(r){return e.call(this,t)}}}(t)}}function p(t,r){this.fun=t,this.array=r}function y(){}n.nextTick=function(t){var r=new Array(arguments.length-1);if(arguments.length>1)for(var e=1;e<arguments.length;e++)r[e-1]=arguments[e];u.push(new p(t,r)),1!==u.length||s||a(h)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=y,n.addListener=y,n.once=y,n.off=y,n.removeListener=y,n.removeAllListeners=y,n.emit=y,n.prependListener=y,n.prependOnceListener=y,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},67281:function(t,r,e){var n=e(51954).default;function o(){"use strict";t.exports=o=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var r={},e=Object.prototype,i=e.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function f(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{f({},"")}catch(S){f=function(t,r,e){return t[r]=e}}function l(t,r,e,n){var o=r&&r.prototype instanceof y?r:y,i=Object.create(o.prototype),a=new k(n||[]);return i._invoke=function(t,r,e){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return j()}for(e.method=o,e.arg=i;;){var a=e.delegate;if(a){var c=_(a,e);if(c){if(c===p)continue;return c}}if("next"===e.method)e.sent=e._sent=e.arg;else if("throw"===e.method){if("suspendedStart"===n)throw n="completed",e.arg;e.dispatchException(e.arg)}else"return"===e.method&&e.abrupt("return",e.arg);n="executing";var u=h(t,r,e);if("normal"===u.type){if(n=e.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:e.done}}"throw"===u.type&&(n="completed",e.method="throw",e.arg=u.arg)}}}(t,e,a),i}function h(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(S){return{type:"throw",arg:S}}}r.wrap=l;var p={};function y(){}function d(){}function v(){}var m={};f(m,c,(function(){return this}));var g=Object.getPrototypeOf,w=g&&g(g(O([])));w&&w!==e&&i.call(w,c)&&(m=w);var x=v.prototype=y.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(r){f(t,r,(function(t){return this._invoke(r,t)}))}))}function L(t,r){function e(o,a,c,u){var s=h(t[o],t,a);if("throw"!==s.type){var f=s.arg,l=f.value;return l&&"object"==n(l)&&i.call(l,"__await")?r.resolve(l.__await).then((function(t){e("next",t,c,u)}),(function(t){e("throw",t,c,u)})):r.resolve(l).then((function(t){f.value=t,c(f)}),(function(t){return e("throw",t,c,u)}))}u(s.arg)}var o;this._invoke=function(t,n){function i(){return new r((function(r,o){e(t,n,r,o)}))}return o=o?o.then(i,i):i()}}function _(t,r){var e=t.iterator[r.method];if(void 0===e){if(r.delegate=null,"throw"===r.method){if(t.iterator.return&&(r.method="return",r.arg=void 0,_(t,r),"throw"===r.method))return p;r.method="throw",r.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var n=h(e,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,p;var o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=void 0),r.delegate=null,p):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,p)}function E(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function T(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function O(t){if(t){var r=t[c];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var e=-1,n=function r(){for(;++e<t.length;)if(i.call(t,e))return r.value=t[e],r.done=!1,r;return r.value=void 0,r.done=!0,r};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return d.prototype=v,f(x,"constructor",v),f(v,"constructor",d),d.displayName=f(v,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var r="function"==typeof t&&t.constructor;return!!r&&(r===d||"GeneratorFunction"===(r.displayName||r.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,f(t,s,"GeneratorFunction")),t.prototype=Object.create(x),t},r.awrap=function(t){return{__await:t}},b(L.prototype),f(L.prototype,u,(function(){return this})),r.AsyncIterator=L,r.async=function(t,e,n,o,i){void 0===i&&(i=Promise);var a=new L(l(t,e,n,o),i);return r.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(x),f(x,s,"Generator"),f(x,c,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var r=[];for(var e in t)r.push(e);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=O,k.prototype={constructor:k,reset:function(t){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(T),!t)for(var r in this)"t"===r.charAt(0)&&i.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function e(e,n){return a.type="throw",a.arg=t,r.next=e,n&&(r.method="next",r.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(t,r){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=r&&r<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=r,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(t,r){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&r&&(this.next=r),p},finish:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),T(e),p}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;T(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,e){return this.delegate={iterator:O(t),resultName:r,nextLoc:e},"next"===this.method&&(this.arg=void 0),p}},r}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},51954:function(t){function r(e){return t.exports=r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,r(e)}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},42732:function(t,r,e){var n=e(67281)();t.exports=n;try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}}}]);
//# sourceMappingURL=9541.66cdeffe.chunk.js.map
(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[9766],{9766:function(t,e,n){"use strict";n.r(e),n.d(e,{memoizeFunction:function(){return p}});var r=n(84867),o=n(76341),i=n(2232),a=n.n(i),u="undefined"!==typeof __WHY_DID_YOU_RECOMPUTE__&&__WHY_DID_YOU_RECOMPUTE__||"undefined"!==typeof globalThis&&globalThis.__WHY_DID_YOU_RECOMPUTE__,s={empty:!0},f={},c="undefined"===typeof WeakMap?null:WeakMap,p=function(t,e){if(void 0===e&&(e=100),!c)return t;var n=l(),i=0,s=0,f=u?new Map:void 0,p=u?new Error("Memoized function defined").stack:"";return function(){for(var c,v,h,d,y=[],b=0;b<arguments.length;b++)y[b]=arguments[b];var x=n;(0!==s||e>0&&i>e)&&(n=l(),i=0,s=0,null===f||void 0===f||f.clear()),x=n;for(var g=function(t){var e=_(y[t]);if(!(null===(c=x.map)||void 0===c?void 0:c.has(e))&&(null===(v=x.map)||void 0===v||v.set(e,l()),u&&f)){var n=null!==(h=f.get(x))&&void 0!==h?h:[],i=n.filter((function(t){return t!==e&&a()(t,e)}))[0];if(i){o.safeConsole.warn("Why-did-you-recompute: Identical (deep-comparison) past arguments to memoizeFunction found with differing instance equality: ");var s=new Error("Indentical argument passed").stack;!function t(e,n){o.safeConsole.table(e),Object.keys(e).forEach((function(r){var i=e[r],u=n[r];i!==u&&a()(i,u)&&(o.safeConsole.warn("Duplication present in child prop '".concat(r,"'")),t(i,u))}))}(i,e),o.safeConsole.warn(s),o.safeConsole.warn(p)}f.set(x,(0,r.__spreadArray)((0,r.__spreadArray)([],(0,r.__read)(n),!1),[e],!1))}x=null===(d=x.map)||void 0===d?void 0:d.get(e)},w=0;w<y.length;w++)g(w);return x.hasOwnProperty("value")||(x.value=t.apply(void 0,(0,r.__spreadArray)([],(0,r.__read)(y),!1)),i++),x.value}};function _(t){return t?"object"===typeof t||"function"===typeof t?t:(f[t]||(f[t]={val:t}),f[t]):s}function l(){return{map:c?new c:null}}},24241:function(t,e,n){var r=n(83276),o=n(50698),i=n(18213),a=n(32329),u=n(32833);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},6947:function(t,e,n){var r=n(23586),o=n(50292),i=n(73575),a=n(67227),u=n(24611);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},97217:function(t,e,n){var r=n(316),o=n(58746),i=n(23733),a=n(6841),u=n(41073);function s(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}s.prototype.clear=r,s.prototype.delete=o,s.prototype.get=i,s.prototype.has=a,s.prototype.set=u,t.exports=s},8567:function(t,e,n){var r=n(97217),o=n(84840),i=n(61143);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},4005:function(t,e,n){var r=n(6947),o=n(56744),i=n(13822),a=n(24713),u=n(24837),s=n(81005);function f(t){var e=this.__data__=new r(t);this.size=e.size}f.prototype.clear=o,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=u,f.prototype.set=s,t.exports=f},54384:function(t,e,n){var r=n(65369).Uint8Array;t.exports=r},70662:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},87195:function(t,e,n){var r=n(9964),o=n(71240),i=n(20573),a=n(71484),u=n(83645),s=n(58331),f=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),c=!n&&o(t),p=!n&&!c&&a(t),_=!n&&!c&&!p&&s(t),l=n||c||p||_,v=l?r(t.length,String):[],h=v.length;for(var d in t)!e&&!f.call(t,d)||l&&("length"==d||p&&("offset"==d||"parent"==d)||_&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||u(d,h))||v.push(d);return v}},94828:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},96605:function(t,e,n){var r=n(73012);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},22467:function(t,e,n){var r=n(86228),o=n(20573);t.exports=function(t,e,n){var i=e(t);return o(t)?i:r(i,n(t))}},89002:function(t,e,n){var r=n(54832),o=n(61462);t.exports=function t(e,n,i,a,u){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!==e&&n!==n:r(e,n,i,a,t,u))}},54832:function(t,e,n){var r=n(4005),o=n(87531),i=n(96686),a=n(15349),u=n(81793),s=n(20573),f=n(71484),c=n(58331),p="[object Arguments]",_="[object Array]",l="[object Object]",v=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,d,y){var b=s(t),x=s(e),g=b?_:u(t),w=x?_:u(e),m=(g=g==p?l:g)==l,O=(w=w==p?l:w)==l,z=g==w;if(z&&f(t)){if(!f(e))return!1;b=!0,m=!1}if(z&&!m)return y||(y=new r),b||c(t)?o(t,e,n,h,d,y):i(t,e,g,n,h,d,y);if(!(1&n)){var j=m&&v.call(t,"__wrapped__"),E=O&&v.call(e,"__wrapped__");if(j||E){var k=j?t.value():t,A=E?e.value():e;return y||(y=new r),d(k,A,n,h,y)}}return!!z&&(y||(y=new r),a(t,e,n,h,d,y))}},9964:function(t){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},19599:function(t){t.exports=function(t,e){return t.has(e)}},87531:function(t,e,n){var r=n(8567),o=n(94828),i=n(19599);t.exports=function(t,e,n,a,u,s){var f=1&n,c=t.length,p=e.length;if(c!=p&&!(f&&p>c))return!1;var _=s.get(t),l=s.get(e);if(_&&l)return _==e&&l==t;var v=-1,h=!0,d=2&n?new r:void 0;for(s.set(t,e),s.set(e,t);++v<c;){var y=t[v],b=e[v];if(a)var x=f?a(b,y,v,e,t,s):a(y,b,v,t,e,s);if(void 0!==x){if(x)continue;h=!1;break}if(d){if(!o(e,(function(t,e){if(!i(d,e)&&(y===t||u(y,t,n,a,s)))return d.push(e)}))){h=!1;break}}else if(y!==b&&!u(y,b,n,a,s)){h=!1;break}}return s.delete(t),s.delete(e),h}},96686:function(t,e,n){var r=n(49485),o=n(54384),i=n(73012),a=n(87531),u=n(62313),s=n(12683),f=r?r.prototype:void 0,c=f?f.valueOf:void 0;t.exports=function(t,e,n,r,f,p,_){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(new o(t),new o(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var l=u;case"[object Set]":var v=1&r;if(l||(l=s),t.size!=e.size&&!v)return!1;var h=_.get(t);if(h)return h==e;r|=2,_.set(t,e);var d=a(l(t),l(e),r,f,p,_);return _.delete(t),d;case"[object Symbol]":if(c)return c.call(t)==c.call(e)}return!1}},15349:function(t,e,n){var r=n(182),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,a,u){var s=1&n,f=r(t),c=f.length;if(c!=r(e).length&&!s)return!1;for(var p=c;p--;){var _=f[p];if(!(s?_ in e:o.call(e,_)))return!1}var l=u.get(t),v=u.get(e);if(l&&v)return l==e&&v==t;var h=!0;u.set(t,e),u.set(e,t);for(var d=s;++p<c;){var y=t[_=f[p]],b=e[_];if(i)var x=s?i(b,y,_,e,t,u):i(y,b,_,t,e,u);if(!(void 0===x?y===b||a(y,b,n,i,u):x)){h=!1;break}d||(d="constructor"==_)}if(h&&!d){var g=t.constructor,w=e.constructor;g==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof g&&g instanceof g&&"function"==typeof w&&w instanceof w||(h=!1)}return u.delete(t),u.delete(e),h}},182:function(t,e,n){var r=n(22467),o=n(37836),i=n(83690);t.exports=function(t){return r(t,i,o)}},21199:function(t,e,n){var r=n(18862);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},37836:function(t,e,n){var r=n(70662),o=n(96413),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,u=a?function(t){return null==t?[]:(t=Object(t),r(a(t),(function(e){return i.call(t,e)})))}:o;t.exports=u},83276:function(t,e,n){var r=n(37902);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},50698:function(t){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},18213:function(t,e,n){var r=n(37902),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},32329:function(t,e,n){var r=n(37902),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},32833:function(t,e,n){var r=n(37902);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},83645:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},18862:function(t){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},23586:function(t){t.exports=function(){this.__data__=[],this.size=0}},50292:function(t,e,n){var r=n(96605),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():o.call(e,n,1),--this.size,!0)}},73575:function(t,e,n){var r=n(96605);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},67227:function(t,e,n){var r=n(96605);t.exports=function(t){return r(this.__data__,t)>-1}},24611:function(t,e,n){var r=n(96605);t.exports=function(t,e){var n=this.__data__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this}},316:function(t,e,n){var r=n(24241),o=n(6947),i=n(40979);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},58746:function(t,e,n){var r=n(21199);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},23733:function(t,e,n){var r=n(21199);t.exports=function(t){return r(this,t).get(t)}},6841:function(t,e,n){var r=n(21199);t.exports=function(t){return r(this,t).has(t)}},41073:function(t,e,n){var r=n(21199);t.exports=function(t,e){var n=r(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this}},62313:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},37902:function(t,e,n){var r=n(83746)(Object,"create");t.exports=r},84840:function(t){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},61143:function(t){t.exports=function(t){return this.__data__.has(t)}},12683:function(t){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},56744:function(t,e,n){var r=n(6947);t.exports=function(){this.__data__=new r,this.size=0}},13822:function(t){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},24713:function(t){t.exports=function(t){return this.__data__.get(t)}},24837:function(t){t.exports=function(t){return this.__data__.has(t)}},81005:function(t,e,n){var r=n(6947),o=n(40979),i=n(97217);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(t,e),this.size=n.size,this}},73012:function(t){t.exports=function(t,e){return t===e||t!==t&&e!==e}},2232:function(t,e,n){var r=n(89002);t.exports=function(t,e){return r(t,e)}},83690:function(t,e,n){var r=n(87195),o=n(64108),i=n(10330);t.exports=function(t){return i(t)?r(t):o(t)}},96413:function(t){t.exports=function(){return[]}}}]);
//# sourceMappingURL=9766.0b209aec.chunk.js.map
"use strict";(self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[]).push([[9814],{79814:function(r,e,n){n.r(e),n.d(e,{isSupportedLocale:function(){return t},supportedLocales:function(){return a},toSupportedLocale:function(){return s}});var a=["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 t(r){return a.indexOf(r)>=0}function s(r,e){if(r){var n=r.toLowerCase().replace("_","-"),s=u(n);if(s)return s;if(t(n))return n;var i=n.split("-");if(i.length>2){var c=i.slice(0,i.length-1).join("-");if(t(c))return c;var f=u(c);if(f)return f}if(i.length>1){var l=i[0];if(t(l))return l}var h=n.substr(0,2);if(t(h))return h;var o=u(h);if(o)return o;for(var p=0,k=a;p<k.length;p++){var b=k[p];if(0===b.indexOf(h))return b}}if(e)return e;throw new Error("".concat(r," cannot be mapped to a supported locale"))}function u(r){if(0===r.indexOf("es-")&&"es-es"!==r)return"es-mx";if(0===r.indexOf("en-")&&"en-us"!==r)return"en-gb";if(0===r.indexOf("ja-"))return"ja";switch(r){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}}}}]);
//# sourceMappingURL=9814.431561a3.chunk.js.map
!function(){"use strict";var n={20788:function(n,e,t){Promise.all([t.e(7354),t.e(4493),t.e(3200),t.e(5303),t.e(3815),t.e(322),t.e(4786),t.e(5400),t.e(6360),t.e(6542),t.e(1815)]).then(t.bind(t,1815))}},e={};function t(r){var u=e[r];if(void 0!==u)return u.exports;var o=e[r]={id:r,loaded:!1,exports:{}};return n[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}t.m=n,t.c=e,t.amdO={},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,{a:e}),e},function(){var n,e=Object.getPrototypeOf?function(n){return Object.getPrototypeOf(n)}:function(n){return n.__proto__};t.t=function(r,u){if(1&u&&(r=this(r)),8&u)return r;if("object"===typeof r&&r){if(4&u&&r.__esModule)return r;if(16&u&&"function"===typeof r.then)return r}var o=Object.create(null);t.r(o);var i={};n=n||[null,e({}),e([]),e(e)];for(var c=2&u&&r;"object"==typeof c&&!~n.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach((function(n){i[n]=function(){return r[n]}}));return i.default=function(){return r},t.d(o,i),o}}(),t.d=function(n,e){for(var r in e)t.o(e,r)&&!t.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:e[r]})},t.f={},t.e=function(n){return Promise.all(Object.keys(t.f).reduce((function(e,r){return t.f[r](n,e),e}),[]))},t.u=function(n){return"static/js/"+n+"."+{105:"7cc7cc58",585:"67665160",663:"34081d54",925:"8d6144eb",1179:"8e2e40fd",1396:"60905de3",1707:"b87b3e2c",1815:"244d0b9e",2176:"b7f5b90b",2253:"dc7bc6da",2486:"9b0986a2",2771:"a618162e",3134:"2da89511",3200:"26e6d6ab",3306:"9ac74dd2",3407:"0ae913e6",3431:"93f81ca8",3560:"57577b23",3815:"1e40de27",3951:"898a84da",3989:"bb027167",4242:"e887dfe7",4461:"d306b2f1",4493:"3586c424",4515:"b2e08ca8",4520:"6385d58c",4683:"193bc579",4799:"be286d61",4867:"943b6b28",5035:"5490cfcb",5078:"6d075d8d",5303:"842cd411",5343:"dd1c2ddd",5400:"d3b9f9c4",5415:"155ccb05",5418:"a8f8bcb0",5629:"215c6435",5687:"8c848524",5788:"e6eeb542",5847:"b3603d00",5990:"271846e1",6156:"9d3224bf",6314:"94e95bac",6360:"8d6df2f5",6848:"3b7c54b3",6896:"e588b50c",7248:"c2ff99a8",7354:"b700e918",7387:"d4b6bf72",8022:"5ac488a5",8109:"f155b333",8408:"996478dd",8492:"bde33f40",8562:"60e1974e",8575:"ecc914bf",8726:"89ae1474",8728:"44ae83d9",8759:"9d6beb05",9015:"33d08098",9541:"66cdeffe",9766:"0b209aec",9814:"431561a3"}[n]+".chunk.js"},t.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"===typeof window)return window}}(),t.o=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},function(){var n={},e="@amx/app-privacy:";t.l=function(r,u,o,i){if(n[r])n[r].push(u);else{var c,f;if(void 0!==o)for(var a=document.getElementsByTagName("script"),l=0;l<a.length;l++){var s=a[l];if(s.getAttribute("src")==r||s.getAttribute("data-webpack")==e+o){c=s;break}}c||(f=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,t.nc&&c.setAttribute("nonce",t.nc),c.setAttribute("data-webpack",e+o),c.src=r),n[r]=[u];var d=function(e,t){c.onerror=c.onload=null,clearTimeout(h);var u=n[r];if(delete n[r],c.parentNode&&c.parentNode.removeChild(c),u&&u.forEach((function(n){return n(t)})),e)return e(t)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=d.bind(null,c.onerror),c.onload=d.bind(null,c.onload),f&&document.head.appendChild(c)}}}(),t.r=function(n){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.nmd=function(n){return n.paths=[],n.children||(n.children=[]),n},function(){t.S={};var n={},e={};t.I=function(r,u){u||(u=[]);var o=e[r];if(o||(o=e[r]={}),!(u.indexOf(o)>=0)){if(u.push(o),n[r])return n[r];t.o(t.S,r)||(t.S[r]={});var i=t.S[r],c="@amx/app-privacy",f=function(n,e,t,r){var u=i[n]=i[n]||{},o=u[e];(!o||!o.loaded&&(!r!=!o.eager?r:c>o.from))&&(u[e]={get:t,from:c,eager:!!r})},a=[];if("default"===r)f("@1js/accessibility-utils-ui","4.0.21",(function(){return Promise.all([t.e(7354),t.e(4683),t.e(322),t.e(9099)]).then((function(){return function(){return t(54683)}}))})),f("@1js/create-shared-react-context","6.0.21",(function(){return Promise.all([t.e(322),t.e(3560)]).then((function(){return function(){return t(63560)}}))})),f("@1js/functional/lib/filterOutNull","5.0.16",(function(){return t.e(6156).then((function(){return function(){return t(86156)}}))})),f("@1js/functional/lib/keys","5.0.16",(function(){return t.e(7387).then((function(){return function(){return t(87387)}}))})),f("@1js/functional/lib/makeObject","5.0.16",(function(){return t.e(5418).then((function(){return function(){return t(35418)}}))})),f("@1js/functional/lib/matchAll","5.0.16",(function(){return t.e(8575).then((function(){return function(){return t(18575)}}))})),f("@1js/functional/lib/memoizeFunction","5.0.16",(function(){return Promise.all([t.e(9151),t.e(5035)]).then((function(){return function(){return t(75035)}}))})),f("@1js/functional/lib/throwError","5.0.16",(function(){return t.e(585).then((function(){return function(){return t(70585)}}))})),f("@1js/functional","5.0.16",(function(){return Promise.all([t.e(8726),t.e(5629),t.e(9151),t.e(5209),t.e(4867)]).then((function(){return function(){return t(45629)}}))})),f("@1js/locale","1.4.20",(function(){return t.e(9814).then((function(){return function(){return t(79814)}}))})),f("@1js/localization-components","4.1.0",(function(){return Promise.all([t.e(8109),t.e(322),t.e(1849),t.e(7041)]).then((function(){return function(){return t(68109)}}))})),f("@1js/localization","3.11.28",(function(){return Promise.all([t.e(5847),t.e(3594),t.e(1849),t.e(4482),t.e(7248)]).then((function(){return function(){return t(45847)}}))})),f("@1js/memoize/lib/memoizeFunction","5.0.16",(function(){return Promise.all([t.e(8726),t.e(9766),t.e(6341),t.e(105)]).then((function(){return function(){return t(9766)}}))})),f("@1js/memoize/lib/memoizeFunctionProperties","5.0.16",(function(){return Promise.all([t.e(8726),t.e(9766),t.e(6341),t.e(6896)]).then((function(){return function(){return t(44515)}}))})),f("@1js/memoize/lib/memoizeSelector","5.0.16",(function(){return t.e(1396).then((function(){return function(){return t(59015)}}))})),f("@1js/photo-picker","9.1.2",(function(){return Promise.all([t.e(7354),t.e(6314),t.e(4493),t.e(5990),t.e(663),t.e(1707),t.e(322),t.e(4786),t.e(5069),t.e(5415)]).then((function(){return function(){return t(21707)}}))})),f("@1js/pluralization/lib/ICUpluralization","5.0.16",(function(){return Promise.all([t.e(3594),t.e(3407)]).then((function(){return function(){return t(25788)}}))})),f("@1js/pluralization","5.0.16",(function(){return Promise.all([t.e(4520),t.e(3594)]).then((function(){return function(){return t(84520)}}))})),f("@1js/redux-framework","4.6.40",(function(){return Promise.all([t.e(663),t.e(3134),t.e(322),t.e(3594),t.e(4786),t.e(2486)]).then((function(){return function(){return t(3134)}}))})),f("@1js/safe-console","5.0.13",(function(){return t.e(3431).then((function(){return function(){return t(13431)}}))})),f("@1js/theming","5.0.21",(function(){return Promise.all([t.e(7354),t.e(4799),t.e(322),t.e(3594),t.e(8492)]).then((function(){return function(){return t(44799)}}))})),f("@amx/ux-twoui-telemetry","0.1.25269003",(function(){return Promise.all([t.e(3200),t.e(322),t.e(4786),t.e(5400),t.e(3306)]).then((function(){return function(){return t(70925)}}))})),f("@amx/ux-twoui","0.1.25269003",(function(){return Promise.all([t.e(7354),t.e(6314),t.e(4461),t.e(4493),t.e(5990),t.e(3200),t.e(8562),t.e(5303),t.e(322),t.e(4786),t.e(5400),t.e(5078),t.e(6360)]).then((function(){return function(){return t(75078)}}))})),f("@cspayments/pidl-fluent-ui","2.9.0",(function(){return Promise.all([t.e(7354),t.e(6314),t.e(4461),t.e(4493),t.e(8022),t.e(322),t.e(4786),t.e(6542)]).then((function(){return function(){return t(48022)}}))})),f("@cspayments/pidl-react-enrichment","2.9.0",(function(){return Promise.all([t.e(4242),t.e(8728),t.e(322),t.e(4786),t.e(9541)]).then((function(){return function(){return t(38728)}}))})),f("@cspayments/pidl-react","2.9.0",(function(){return Promise.all([t.e(4242),t.e(2253),t.e(322)]).then((function(){return function(){return t(10898)}}))})),f("@cspayments/pidl-resource-helpers","2.9.0",(function(){return Promise.all([t.e(8408),t.e(3951)]).then((function(){return function(){return t(68408)}}))})),f("jquery","3.6.3",(function(){return t.e(6848).then((function(){return function(){return t(46848)}}))})),f("lottie-web","5.9.6",(function(){return t.e(8759).then((function(){return function(){return t(28759)}}))})),f("react-dom","16.14.0",(function(){return Promise.all([t.e(3989),t.e(322)]).then((function(){return function(){return t(43989)}}))})),f("react-router-dom","5.3.0",(function(){return Promise.all([t.e(2771),t.e(322)]).then((function(){return function(){return t(82771)}}))})),f("react","16.14.0",(function(){return t.e(2176).then((function(){return function(){return t(72176)}}))}));return a.length?n[r]=Promise.all(a).then((function(){return n[r]=1})):n[r]=1}}}(),function(){var n;t.g.importScripts&&(n=t.g.location+"");var e=t.g.document;if(!n&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(n=e.currentScript.src),!n)){var r=e.getElementsByTagName("script");if(r.length)for(var u=r.length-1;u>-1&&(!n||!/^http(s?):/.test(n));)n=r[u--].src}if(!n)throw new Error("Automatic publicPath is not supported in this browser");n=n.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),t.p=n+"../../"}(),function(){var n=function(n){var e=function(n){return n.split(".").map((function(n){return+n==n?+n:n}))},t=/^([^-+]+)?(?:-([^+]+))?(?:\+(.+))?$/.exec(n),r=t[1]?e(t[1]):[];return t[2]&&(r.length++,r.push.apply(r,e(t[2]))),t[3]&&(r.push([]),r.push.apply(r,e(t[3]))),r},e=function(e,t){e=n(e),t=n(t);for(var r=0;;){if(r>=e.length)return r<t.length&&"u"!=(typeof t[r])[0];var u=e[r],o=(typeof u)[0];if(r>=t.length)return"u"==o;var i=t[r],c=(typeof i)[0];if(o!=c)return"o"==o&&"n"==c||"s"==c||"u"==o;if("o"!=o&&"u"!=o&&u!=i)return u<i;r++}},r=function(n){var e=n[0],t="";if(1===n.length)return"*";if(e+.5){t+=0==e?">=":-1==e?"<":1==e?"^":2==e?"~":e>0?"=":"!=";for(var u=1,o=1;o<n.length;o++)u--,t+="u"==(typeof(c=n[o]))[0]?"-":(u>0?".":"")+(u=2,c);return t}var i=[];for(o=1;o<n.length;o++){var c=n[o];i.push(0===c?"not("+f()+")":1===c?"("+f()+" || "+f()+")":2===c?i.pop()+" "+i.pop():r(c))}return f();function f(){return i.pop().replace(/^\((.+)\)$/,"$1")}},u=function(e,t){if(0 in e){t=n(t);var r=e[0],o=r<0;o&&(r=-r-1);for(var i=0,c=1,f=!0;;c++,i++){var a,l,s=c<e.length?(typeof e[c])[0]:"";if(i>=t.length||"o"==(l=(typeof(a=t[i]))[0]))return!f||("u"==s?c>r&&!o:""==s!=o);if("u"==l){if(!f||"u"!=s)return!1}else if(f)if(s==l)if(c<=r){if(a!=e[c])return!1}else{if(o?a>e[c]:a<e[c])return!1;a!=e[c]&&(f=!1)}else if("s"!=s&&"n"!=s){if(o||c<=r)return!1;f=!1,c--}else{if(c<=r||l<s!=o)return!1;f=!1}else"s"!=s&&"n"!=s&&(f=!1,c--)}}var d=[],h=d.pop.bind(d);for(i=1;i<e.length;i++){var m=e[i];d.push(1==m?h()|h():2==m?h()&h():m?u(m,t):!h())}return!!h()},o=function(n,e){return n&&t.o(n,e)},i=function(n){return n.loaded=1,n.get()},c=function(n){return Object.keys(n).reduce((function(e,t){return n[t].eager&&(e[t]=n[t]),e}),{})},f=function(n,t,r){var u=r?c(n[t]):n[t];return Object.keys(u).reduce((function(n,t){return!n||!u[n].loaded&&e(n,t)?t:n}),0)},a=function(n,e,t,u){return"Unsatisfied version "+t+" from "+(t&&n[e][t].from)+" of shared singleton module "+e+" (required "+r(u)+")"},l=function(n){throw new Error(n)},s=function(n){"undefined"!==typeof console&&console.warn&&console.warn(n)},d=function(n){return function(e,r,u,o,i){var c=t.I(e);return c&&c.then&&!u?c.then(n.bind(n,e,t.S[e],r,!1,o,i)):n(e,t.S[e],r,u,o,i)}},h=function(n,e,t){return t?t():function(n,e){return l("Shared module "+e+" doesn't exist in shared scope "+n)}(n,e)},m=d((function(n,e,t,r,u){if(!o(e,t))return h(n,t,u);var c=f(e,t,r);return i(e[t][c])})),p=d((function(n,e,t,r,c,l){if(!o(e,t))return h(n,t,l);var d=f(e,t,r);return u(c,d)||s(a(e,t,d,c)),i(e[t][d])})),b={},j={80322:function(){return p("default","react",!1,[1,16,14,0],(function(){return t.e(2176).then((function(){return function(){return t(72176)}}))}))},94786:function(){return p("default","react-dom",!1,[1,16,14,0],(function(){return t.e(3989).then((function(){return function(){return t(43989)}}))}))},14766:function(){return p("default","react-router-dom",!1,[1,5,1,2],(function(){return t.e(2771).then((function(){return function(){return t(82771)}}))}))},84077:function(){return p("default","@amx/ux-twoui-telemetry",!1,[4,0,1,25269003],(function(){return t.e(925).then((function(){return function(){return t(70925)}}))}))},16542:function(){return p("default","@cspayments/pidl-react",!1,[4,2,7,2],(function(){return Promise.all([t.e(4242),t.e(2253)]).then((function(){return function(){return t(10898)}}))}))},688:function(){return p("default","@cspayments/pidl-fluent-ui",!1,[4,2,7,2],(function(){return Promise.all([t.e(6314),t.e(4461),t.e(8022)]).then((function(){return function(){return t(48022)}}))}))},71630:function(){return p("default","@cspayments/pidl-react-enrichment",!1,[4,2,7,2],(function(){return Promise.all([t.e(4242),t.e(8728)]).then((function(){return function(){return t(38728)}}))}))},72357:function(){return p("default","@cspayments/pidl-resource-helpers",!1,[4,2,7,2],(function(){return t.e(8408).then((function(){return function(){return t(68408)}}))}))},76084:function(){return p("default","jquery",!1,[4,3,6,3],(function(){return t.e(6848).then((function(){return function(){return t(46848)}}))}))},77801:function(){return p("default","@amx/ux-twoui",!1,[4,0,1,25269003],(function(){return Promise.all([t.e(6314),t.e(4461),t.e(5990),t.e(8562),t.e(5078)]).then((function(){return function(){return t(75078)}}))}))},81006:function(){return m("default","@amx/ux-twoui-telemetry",!1,(function(){return t.e(5687).then((function(){return function(){return t(70925)}}))}))},45047:function(){return p("default","@1js/localization",!1,[1,3,11,28],(function(){return Promise.all([t.e(5847),t.e(3594),t.e(1849),t.e(4482)]).then((function(){return function(){return t(45847)}}))}))},73669:function(){return p("default","@1js/localization-components",!1,[1,4,1,0],(function(){return Promise.all([t.e(8109),t.e(1849),t.e(7041)]).then((function(){return function(){return t(68109)}}))}))},39151:function(){return p("default","@1js/memoize/lib/memoizeFunction",!1,[1,5,0,16],(function(){return Promise.all([t.e(8726),t.e(9766),t.e(6341),t.e(105)]).then((function(){return function(){return t(9766)}}))}))},11347:function(){return p("default","@1js/memoize/lib/memoizeSelector",!1,[1,5,0,16],(function(){return t.e(9015).then((function(){return function(){return t(59015)}}))}))},80339:function(){return p("default","@1js/memoize/lib/memoizeFunctionProperties",!1,[1,5,0,16],(function(){return Promise.all([t.e(9766),t.e(6341),t.e(4515)]).then((function(){return function(){return t(44515)}}))}))},27101:function(){return p("default","@1js/functional/lib/memoizeFunction",!1,[1,5,0,16],(function(){return Promise.all([t.e(9151),t.e(5035)]).then((function(){return function(){return t(75035)}}))}))},44063:function(){return p("default","@1js/functional/lib/filterOutNull",!1,[1,5,0,16],(function(){return t.e(6156).then((function(){return function(){return t(86156)}}))}))},74387:function(){return p("default","@1js/functional/lib/keys",!1,[1,5,0,16],(function(){return t.e(7387).then((function(){return function(){return t(87387)}}))}))},17749:function(){return p("default","@1js/create-shared-react-context",!1,[1,6,0,21],(function(){return t.e(1179).then((function(){return function(){return t(63560)}}))}))},50200:function(){return p("default","@1js/localization",!1,[0],(function(){return Promise.all([t.e(5847),t.e(3594),t.e(4482),t.e(5343)]).then((function(){return function(){return t(45847)}}))}))},89330:function(){return p("default","@1js/pluralization",!1,[1,5,0,16],(function(){return Promise.all([t.e(4520),t.e(3594)]).then((function(){return function(){return t(84520)}}))}))},94459:function(){return p("default","@1js/functional/lib/makeObject",!1,[1,5,0,16],(function(){return t.e(5418).then((function(){return function(){return t(35418)}}))}))},97259:function(){return p("default","@1js/functional/lib/matchAll",!1,[1,5,0,16],(function(){return t.e(8575).then((function(){return function(){return t(18575)}}))}))},73594:function(){return p("default","@1js/functional",!1,[1,5,0,16],(function(){return Promise.all([t.e(8726),t.e(5629),t.e(9151),t.e(5209)]).then((function(){return function(){return t(45629)}}))}))},34852:function(){return p("default","@1js/pluralization/lib/ICUpluralization",!1,[1,5,0,16],(function(){return t.e(5788).then((function(){return function(){return t(25788)}}))}))},36205:function(){return p("default","@1js/locale",!1,[1,1,4,20],(function(){return t.e(9814).then((function(){return function(){return t(79814)}}))}))},61883:function(){return p("default","@1js/functional/lib/throwError",!1,[1,5,0,16],(function(){return t.e(585).then((function(){return function(){return t(70585)}}))}))},76341:function(){return p("default","@1js/safe-console",!1,[1,5,0,13],(function(){return t.e(3431).then((function(){return function(){return t(13431)}}))}))},15800:function(){return p("default","@1js/functional",!1,[1,5,0,10],(function(){return Promise.all([t.e(8726),t.e(5629),t.e(9151),t.e(5209)]).then((function(){return function(){return t(45629)}}))}))},34561:function(){return p("default","@1js/redux-framework",!1,[1,4,6,32],(function(){return Promise.all([t.e(3134),t.e(3594)]).then((function(){return function(){return t(3134)}}))}))},36118:function(){return p("default","@1js/accessibility-utils-ui",!1,[1,4,0,15],(function(){return Promise.all([t.e(4683),t.e(9099)]).then((function(){return function(){return t(54683)}}))}))},45589:function(){return p("default","@1js/theming",!1,[1,5,0,15],(function(){return Promise.all([t.e(4799),t.e(3594)]).then((function(){return function(){return t(44799)}}))}))},61962:function(){return p("default","lottie-web",!1,[1,5,9,6],(function(){return t.e(8759).then((function(){return function(){return t(28759)}}))}))},65063:function(){return p("default","@1js/photo-picker",!1,[4,9,1,2],(function(){return Promise.all([t.e(663),t.e(1707),t.e(5069)]).then((function(){return function(){return t(21707)}}))}))}},v={322:[80322],1815:[688,71630,72357,76084,77801,81006],1849:[27101,44063,74387],3594:[73594],4482:[34852,36205,61883],4786:[94786],5069:[15800,34561,36118,45589],5078:[61962,65063],5209:[11347,80339],6341:[76341],6360:[14766,84077],6542:[16542],7041:[17749,50200,89330,94459,97259],9099:[45047,73669],9151:[39151]},y={};t.f.consumes=function(n,e){t.o(v,n)&&v[n].forEach((function(n){if(t.o(b,n))return e.push(b[n]);if(!y[n]){var r=function(e){b[n]=0,t.m[n]=function(r){delete t.c[n],r.exports=e()}};y[n]=!0;var u=function(e){delete b[n],t.m[n]=function(r){throw delete t.c[n],e}};try{var o=j[n]();o.then?e.push(b[n]=o.then(r).catch(u)):r(o)}catch(i){u(i)}}}))}}(),function(){var n={8792:0};t.f.j=function(e,r){var u=t.o(n,e)?n[e]:void 0;if(0!==u)if(u)r.push(u[2]);else if(/^((184|506|520|909)9|(32|448|654)2|(634|704|915)1|3594|4786)$/.test(e))n[e]=0;else{var o=new Promise((function(t,r){u=n[e]=[t,r]}));r.push(u[2]=o);var i=t.p+t.u(e),c=new Error;t.l(i,(function(r){if(t.o(n,e)&&(0!==(u=n[e])&&(n[e]=void 0),u)){var o=r&&("load"===r.type?"missing":r.type),i=r&&r.target&&r.target.src;c.message="Loading chunk "+e+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,u[1](c)}}),"chunk-"+e,e)}};var e=function(e,r){var u,o,i=r[0],c=r[1],f=r[2],a=0;if(i.some((function(e){return 0!==n[e]}))){for(u in c)t.o(c,u)&&(t.m[u]=c[u]);if(f)f(t)}for(e&&e(r);a<i.length;a++)o=i[a],t.o(n,o)&&n[o]&&n[o][0](),n[o]=0},r=self.webpackChunk_amx_app_privacy=self.webpackChunk_amx_app_privacy||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))}();t(20788)}();
//# sourceMappingURL=main.182590dc.js.map
